mage-ai 0.9.58__py3-none-any.whl → 0.9.59__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mage-ai might be problematic. Click here for more details.
- mage_ai/api/logging.py +11 -7
- mage_ai/api/policies/BlockPolicy.py +1 -0
- mage_ai/api/policies/CommandCenterItemPolicy.py +56 -0
- mage_ai/api/policies/CustomTemplatePolicy.py +0 -3
- mage_ai/api/policies/GitBranchPolicy.py +8 -1
- mage_ai/api/policies/GitFilePolicy.py +1 -0
- mage_ai/api/policies/PipelinePolicy.py +2 -0
- mage_ai/api/policies/PipelineSchedulePolicy.py +1 -0
- mage_ai/api/policies/VersionControlBranchPolicy.py +98 -0
- mage_ai/api/policies/VersionControlFilePolicy.py +96 -0
- mage_ai/api/policies/VersionControlProjectPolicy.py +92 -0
- mage_ai/api/policies/VersionControlRemotePolicy.py +94 -0
- mage_ai/api/presenters/CommandCenterItemPresenter.py +19 -0
- mage_ai/api/presenters/GitBranchPresenter.py +2 -0
- mage_ai/api/presenters/GitCustomBranchPresenter.py +1 -0
- mage_ai/api/presenters/PipelinePresenter.py +5 -5
- mage_ai/api/presenters/PipelineSchedulePresenter.py +4 -0
- mage_ai/api/presenters/VersionControlBranchPresenter.py +15 -0
- mage_ai/api/presenters/VersionControlFilePresenter.py +15 -0
- mage_ai/api/presenters/VersionControlProjectPresenter.py +14 -0
- mage_ai/api/presenters/VersionControlRemotePresenter.py +15 -0
- mage_ai/api/resources/BlockResource.py +110 -80
- mage_ai/api/resources/CommandCenterItemResource.py +29 -0
- mage_ai/api/resources/FileResource.py +15 -1
- mage_ai/api/resources/FolderResource.py +2 -1
- mage_ai/api/resources/GitBranchResource.py +183 -108
- mage_ai/api/resources/GitCustomBranchResource.py +9 -2
- mage_ai/api/resources/GitFileResource.py +26 -13
- mage_ai/api/resources/KernelResource.py +9 -1
- mage_ai/api/resources/LogResource.py +1 -1
- mage_ai/api/resources/OauthResource.py +4 -5
- mage_ai/api/resources/PipelineResource.py +71 -38
- mage_ai/api/resources/PipelineRunResource.py +7 -2
- mage_ai/api/resources/PullRequestResource.py +12 -3
- mage_ai/api/resources/SearchResultResource.py +4 -4
- mage_ai/api/resources/VersionControlBranchResource.py +85 -0
- mage_ai/api/resources/VersionControlFileResource.py +65 -0
- mage_ai/api/resources/VersionControlProjectResource.py +46 -0
- mage_ai/api/resources/VersionControlRemoteResource.py +64 -0
- mage_ai/authentication/oauth/constants.py +13 -16
- mage_ai/authentication/operation_history/models.py +11 -32
- mage_ai/authentication/operation_history/utils.py +14 -14
- mage_ai/authentication/permissions/constants.py +5 -0
- mage_ai/authentication/providers/active_directory.py +2 -2
- mage_ai/authentication/providers/bitbucket.py +2 -2
- mage_ai/authentication/providers/constants.py +6 -12
- mage_ai/authentication/providers/ghe.py +2 -2
- mage_ai/authentication/providers/google.py +2 -2
- mage_ai/authentication/providers/okta.py +2 -2
- mage_ai/cache/base.py +11 -3
- mage_ai/cache/block.py +116 -32
- mage_ai/cache/block_action_object/__init__.py +52 -43
- mage_ai/cache/constants.py +1 -0
- mage_ai/cache/file.py +114 -0
- mage_ai/cache/pipeline.py +34 -8
- mage_ai/cache/tag.py +51 -10
- mage_ai/cache/utils.py +44 -3
- mage_ai/cluster_manager/kubernetes/workload_manager.py +9 -1
- mage_ai/command_center/__init__.py +0 -0
- mage_ai/command_center/applications/__init__.py +0 -0
- mage_ai/command_center/applications/constants.py +96 -0
- mage_ai/command_center/applications/factory.py +54 -0
- mage_ai/command_center/blocks/__init__.py +0 -0
- mage_ai/command_center/blocks/factory.py +39 -0
- mage_ai/command_center/blocks/utils.py +127 -0
- mage_ai/command_center/constants.py +66 -0
- mage_ai/command_center/factory.py +161 -0
- mage_ai/command_center/files/__init__.py +0 -0
- mage_ai/command_center/files/constants.py +235 -0
- mage_ai/command_center/files/factory.py +86 -0
- mage_ai/command_center/models.py +442 -0
- mage_ai/command_center/pipeline_runs/__init__.py +0 -0
- mage_ai/command_center/pipeline_runs/utils.py +141 -0
- mage_ai/command_center/pipelines/__init__.py +0 -0
- mage_ai/command_center/pipelines/constants.py +118 -0
- mage_ai/command_center/pipelines/factory.py +132 -0
- mage_ai/command_center/pipelines/utils.py +120 -0
- mage_ai/command_center/service.py +45 -0
- mage_ai/command_center/settings.py +37 -0
- mage_ai/command_center/support/__init__.py +0 -0
- mage_ai/command_center/support/constants.py +46 -0
- mage_ai/command_center/triggers/__init__.py +0 -0
- mage_ai/command_center/triggers/factory.py +49 -0
- mage_ai/command_center/triggers/utils.py +463 -0
- mage_ai/command_center/utils.py +30 -0
- mage_ai/data_preparation/executors/azure_container_instance_executor.py +1 -1
- mage_ai/data_preparation/executors/block_executor.py +68 -19
- mage_ai/data_preparation/executors/ecs_block_executor.py +2 -2
- mage_ai/data_preparation/executors/executor_factory.py +2 -0
- mage_ai/data_preparation/executors/gcp_cloud_run_block_executor.py +1 -1
- mage_ai/data_preparation/executors/k8s_block_executor.py +2 -2
- mage_ai/data_preparation/executors/pyspark_block_executor.py +7 -1
- mage_ai/data_preparation/git/__init__.py +29 -11
- mage_ai/data_preparation/git/api.py +14 -13
- mage_ai/data_preparation/git/clients/base.py +4 -8
- mage_ai/data_preparation/git/clients/github.py +1 -0
- mage_ai/data_preparation/git/utils.py +5 -7
- mage_ai/data_preparation/models/block/__init__.py +556 -329
- mage_ai/data_preparation/models/block/content.py +111 -0
- mage_ai/data_preparation/models/block/data_integration/mixins.py +1 -0
- mage_ai/data_preparation/models/block/dbt/block.py +29 -19
- mage_ai/data_preparation/models/block/dbt/block_sql.py +50 -260
- mage_ai/data_preparation/models/block/dbt/block_yaml.py +74 -156
- mage_ai/data_preparation/models/block/dbt/dbt_adapter.py +22 -10
- mage_ai/data_preparation/models/block/dbt/profiles.py +19 -15
- mage_ai/data_preparation/models/block/dbt/project.py +3 -0
- mage_ai/data_preparation/models/block/dynamic/constants.py +0 -0
- mage_ai/data_preparation/models/block/dynamic/dynamic_child.py +507 -47
- mage_ai/data_preparation/models/block/dynamic/utils.py +432 -1
- mage_ai/data_preparation/models/block/platform/mixins.py +68 -44
- mage_ai/data_preparation/models/block/r/__init__.py +19 -9
- mage_ai/data_preparation/models/block/sql/__init__.py +34 -20
- mage_ai/data_preparation/models/block/sql/utils/shared.py +4 -1
- mage_ai/data_preparation/models/block/utils.py +176 -71
- mage_ai/data_preparation/models/constants.py +7 -0
- mage_ai/data_preparation/models/file.py +21 -2
- mage_ai/data_preparation/models/pipeline.py +20 -8
- mage_ai/data_preparation/models/project/__init__.py +12 -7
- mage_ai/data_preparation/models/project/constants.py +1 -0
- mage_ai/data_preparation/models/triggers/__init__.py +7 -0
- mage_ai/data_preparation/models/utils.py +20 -0
- mage_ai/data_preparation/models/variable.py +113 -15
- mage_ai/data_preparation/shared/utils.py +6 -3
- mage_ai/data_preparation/storage/base_storage.py +17 -0
- mage_ai/data_preparation/storage/gcs_storage.py +4 -0
- mage_ai/data_preparation/storage/local_storage.py +15 -0
- mage_ai/data_preparation/storage/s3_storage.py +4 -0
- mage_ai/data_preparation/templates/data_exporters/qdrant.py +0 -1
- mage_ai/data_preparation/templates/data_loaders/qdrant.py +2 -1
- mage_ai/data_preparation/variable_manager.py +1 -0
- mage_ai/io/base.py +4 -1
- mage_ai/io/bigquery.py +25 -16
- mage_ai/io/clickhouse.py +3 -0
- mage_ai/io/druid.py +3 -0
- mage_ai/io/mongodb.py +1 -1
- mage_ai/io/pinot.py +3 -0
- mage_ai/io/postgres.py +13 -0
- mage_ai/io/snowflake.py +4 -0
- mage_ai/io/spark.py +8 -3
- mage_ai/io/sql.py +6 -0
- mage_ai/orchestration/db/__init__.py +26 -19
- mage_ai/orchestration/db/cache.py +4 -3
- mage_ai/orchestration/db/models/schedules.py +72 -16
- mage_ai/orchestration/db/models/schedules_project_platform.py +2 -3
- mage_ai/orchestration/pipeline_scheduler_original.py +19 -11
- mage_ai/orchestration/pipeline_scheduler_project_platform.py +20 -11
- mage_ai/presenters/interactions/constants.py +1 -0
- mage_ai/presenters/interactions/models.py +4 -3
- mage_ai/presenters/pages/models/client_pages/pipeline_schedules.py +1 -1
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +11 -11
- mage_ai/server/frontend_dist/_next/static/PPQxHOmWVJ0iQFzG2rc8m/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1235.c9ed47779baccc05.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/125-029194ff22eb33a5.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1557-4f7485c2e2228f77.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2474-8e702cea23ddd16d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2479-727fa69ee9be6fab.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/26-38bc9380422f3900.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2717-3e7ea8543b3825b7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3366-420721116ea5a665.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3449-a9c98239582cd6f0.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3548-13563a1ff815f922.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3943-9e0a8ba0db34b35f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/4371-ef23f95888d6cd11.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/4632.a4171dbf46b31c7c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/523-be11ad59861d00ca.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5457-d582b00545b4cb5e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5831-2abc4063e887a03e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/6085-692d2f784c0504f2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/635-1e8857c2b6dde289.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/7022-0d52dd8868621fb0.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/7264-d05f4b7088533f6f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/7361-b3d661ec743bfadf.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/737-cc6467310a130dd9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{4495-4f0340aa82e0c623.js → 7674-9ec4fe64b5bf64d5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8038-85d715c8c8394827.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8095-bdce03896ef9639a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8146-6bed4e7401e067e6.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8192-0c0b91523a38c4ca.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8432-f736d101fc6d9215.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8513-d207733b485c8d03.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/9264-e7e040a54d34360c.js → frontend_dist/_next/static/chunks/9264-7cd9cd0ba86ec5e4.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9265-d2a1aaec75ec69b8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9440-54add041c392517f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9624-59b2f803f9c88cd6.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9832-67896490f6e8a014.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/bd1a647f.fe5d87096be24a62.js → frontend_dist/_next/static/chunks/bd1a647f.04f7913662092327.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/404-7cabe357906f44f2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-a11bd2ebe11b3fd2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-ffca51945cd154ef.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-3ba957769292db80.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-45679fd18b3edd82.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/[...slug]-95735a218106aa99.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-data-products-cf98c2e4d20fd92c.js → global-data-products-81d6c7fd9a9cff38.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-eb4421d51fb7368f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-a8c712e20512fede.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-f1be1d4735ba6919.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-febe676687966276.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/[user]-70efe222130490b5.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-0914c36b3c8fd59f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{users-81e6e5319a59cd07.js → users-4f12e989e7809ef9.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-809d4c99b44991a1.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/oauth-0436d395963cd27a.js → frontend_dist/_next/static/chunks/pages/oauth-aa9079c8dbaea3a5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-4e30fb5b18383b71.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-5d31c3aace39182d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-85a80ee66f60a65c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-0bd74047e257e6d9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-80619dc504d0103b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-3cc8d74ff8525bfd.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-cdc379ff24ff8858.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-03396d6086003e16.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-d6d920758654f6d9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-27727bb87be506c3.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-16aab67743651a0b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-e3ca1bedb660b252.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-9d58701fe7213727.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-0041fd76ee15e49f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-780be9a2da697915.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-db8bb970b1f2273f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-a3422b0ab1dbacd7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks/[...slug]-987a1603f4201943.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks-3dc8bf89cab2722b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-43d3f2a5071b9537.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/preferences-c97b1a39b22c112a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/settings-49efb66da67554ca.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-be6aaec07c138656.js → [...slug]-5117d3555972484c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions-ee1c19d4a192ae4d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-4dc5724486ee3396.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-f380d293cff7592b.js → [...slug]-fa095aac732368c3.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{roles-ddce04fae28bd7f6.js → roles-db6d71f8692a33e7.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-99c6a263d2ab9553.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/{[...slug]-213a43564fdfbe17.js → [...slug]-9d881ac0a3db9baa.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-bee414d57c4b55d7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-e7030e1a7a9e88e1.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/[...slug]-312afc9a3f8d0a4f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/templates-e5300c340aa94c6b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-fa7ca0c86142d146.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/test-bd51b3918b39329e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-5158a9d98d2459e8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-5ce099a7abb354ff.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{webpack-fea697dd168c6d0c.js → webpack-efa55343114c8128.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/css/d1e8e64d0b07af2f.css → frontend_dist/_next/static/css/b59541b123fd7191.css} +1 -1
- mage_ai/server/frontend_dist/block-layout.html +3 -3
- mage_ai/server/frontend_dist/compute.html +11 -11
- mage_ai/server/frontend_dist/files.html +11 -11
- mage_ai/server/frontend_dist/global-data-products/[...slug].html +11 -11
- mage_ai/server/frontend_dist/global-data-products.html +11 -11
- mage_ai/server/frontend_dist/global-hooks/[...slug].html +11 -11
- mage_ai/server/frontend_dist/global-hooks.html +11 -11
- mage_ai/server/frontend_dist/index.html +3 -3
- mage_ai/server/frontend_dist/manage/files.html +11 -11
- mage_ai/server/frontend_dist/manage/settings.html +11 -11
- mage_ai/server/frontend_dist/manage/users/[user].html +11 -11
- mage_ai/server/frontend_dist/manage/users/new.html +11 -11
- mage_ai/server/frontend_dist/manage/users.html +11 -11
- mage_ai/server/frontend_dist/manage.html +11 -11
- mage_ai/server/frontend_dist/oauth.html +8 -8
- mage_ai/server/frontend_dist/overview.html +11 -11
- mage_ai/server/frontend_dist/pipeline-runs.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +3 -3
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +3 -3
- mage_ai/server/frontend_dist/pipelines.html +11 -11
- mage_ai/server/frontend_dist/platform/global-hooks/[...slug].html +11 -11
- mage_ai/server/frontend_dist/platform/global-hooks.html +11 -11
- mage_ai/server/frontend_dist/settings/account/profile.html +11 -11
- mage_ai/server/frontend_dist/settings/platform/preferences.html +11 -11
- mage_ai/server/frontend_dist/settings/platform/settings.html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/permissions.html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/roles.html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/users.html +11 -11
- mage_ai/server/frontend_dist/settings.html +3 -3
- mage_ai/server/frontend_dist/sign-in.html +41 -41
- mage_ai/server/frontend_dist/templates/[...slug].html +11 -11
- mage_ai/server/frontend_dist/templates.html +11 -11
- mage_ai/server/frontend_dist/terminal.html +11 -11
- mage_ai/server/frontend_dist/test.html +3 -5
- mage_ai/server/frontend_dist/triggers.html +11 -11
- mage_ai/server/frontend_dist/version-control.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/404.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1235.c9ed47779baccc05.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/125-029194ff22eb33a5.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1557-4f7485c2e2228f77.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2474-8e702cea23ddd16d.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2479-727fa69ee9be6fab.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/26-38bc9380422f3900.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-3e7ea8543b3825b7.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3366-420721116ea5a665.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3449-a9c98239582cd6f0.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3548-13563a1ff815f922.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-9e0a8ba0db34b35f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4371-ef23f95888d6cd11.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4632.a4171dbf46b31c7c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/523-be11ad59861d00ca.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-d582b00545b4cb5e.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5831-2abc4063e887a03e.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6085-692d2f784c0504f2.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/635-1e8857c2b6dde289.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7022-0d52dd8868621fb0.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7264-d05f4b7088533f6f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7361-b3d661ec743bfadf.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/737-cc6467310a130dd9.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{4495-4f0340aa82e0c623.js → 7674-9ec4fe64b5bf64d5.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8038-85d715c8c8394827.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8095-bdce03896ef9639a.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8146-6bed4e7401e067e6.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8192-0c0b91523a38c4ca.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8432-f736d101fc6d9215.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8513-d207733b485c8d03.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/9264-e7e040a54d34360c.js → frontend_dist_base_path_template/_next/static/chunks/9264-7cd9cd0ba86ec5e4.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9265-d2a1aaec75ec69b8.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9440-54add041c392517f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9624-59b2f803f9c88cd6.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9832-67896490f6e8a014.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/bd1a647f.fe5d87096be24a62.js → frontend_dist_base_path_template/_next/static/chunks/bd1a647f.04f7913662092327.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/404-7cabe357906f44f2.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-a11bd2ebe11b3fd2.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-ffca51945cd154ef.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-3ba957769292db80.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-45679fd18b3edd82.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/[...slug]-95735a218106aa99.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-data-products-cf98c2e4d20fd92c.js → global-data-products-81d6c7fd9a9cff38.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-eb4421d51fb7368f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-a8c712e20512fede.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-f1be1d4735ba6919.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-febe676687966276.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-70efe222130490b5.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-0914c36b3c8fd59f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{users-81e6e5319a59cd07.js → users-4f12e989e7809ef9.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-809d4c99b44991a1.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/oauth-0436d395963cd27a.js → frontend_dist_base_path_template/_next/static/chunks/pages/oauth-aa9079c8dbaea3a5.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-4e30fb5b18383b71.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-5d31c3aace39182d.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-85a80ee66f60a65c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-0bd74047e257e6d9.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-80619dc504d0103b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-3cc8d74ff8525bfd.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-cdc379ff24ff8858.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-03396d6086003e16.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-d6d920758654f6d9.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-27727bb87be506c3.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-16aab67743651a0b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-e3ca1bedb660b252.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-9d58701fe7213727.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-0041fd76ee15e49f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-780be9a2da697915.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-db8bb970b1f2273f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-a3422b0ab1dbacd7.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks/[...slug]-987a1603f4201943.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks-3dc8bf89cab2722b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-43d3f2a5071b9537.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-c97b1a39b22c112a.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/settings-49efb66da67554ca.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-be6aaec07c138656.js → [...slug]-5117d3555972484c.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions-ee1c19d4a192ae4d.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-4dc5724486ee3396.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-f380d293cff7592b.js → [...slug]-fa095aac732368c3.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{roles-ddce04fae28bd7f6.js → roles-db6d71f8692a33e7.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-99c6a263d2ab9553.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/{[...slug]-213a43564fdfbe17.js → [...slug]-9d881ac0a3db9baa.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-bee414d57c4b55d7.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-e7030e1a7a9e88e1.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-312afc9a3f8d0a4f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates-e5300c340aa94c6b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-fa7ca0c86142d146.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-bd51b3918b39329e.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-5158a9d98d2459e8.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-5ce099a7abb354ff.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{webpack-d30cb09c85b4c4f0.js → webpack-bd35e1c7bd7b5a9a.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/css/d1e8e64d0b07af2f.css → frontend_dist_base_path_template/_next/static/css/b59541b123fd7191.css} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/do4WOsw7lNhouR0mtPTFi/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/block-layout.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/compute.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/files.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/global-data-products.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/global-hooks.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/index.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/manage/files.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/manage/settings.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/manage/users.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/manage.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/oauth.html +8 -8
- mage_ai/server/frontend_dist_base_path_template/overview.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +3 -3
- mage_ai/server/frontend_dist_base_path_template/pipelines.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/platform/global-hooks/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/platform/global-hooks.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/platform/preferences.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/platform/settings.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/sign-in.html +39 -39
- mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/templates.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/terminal.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/test.html +3 -5
- mage_ai/server/frontend_dist_base_path_template/triggers.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/version-control.html +11 -11
- mage_ai/server/logger.py +8 -2
- mage_ai/server/server.py +18 -1
- mage_ai/services/aws/ecs/config.py +3 -3
- mage_ai/services/aws/ecs/ecs.py +2 -2
- mage_ai/services/search/block_action_objects.py +59 -5
- mage_ai/settings/models/configuration_option.py +3 -1
- mage_ai/settings/platform/__init__.py +54 -18
- mage_ai/settings/repo.py +5 -4
- mage_ai/shared/custom_logger.py +213 -0
- mage_ai/shared/environments.py +4 -0
- mage_ai/shared/files.py +52 -1
- mage_ai/shared/models.py +2 -1
- mage_ai/shared/parsers.py +8 -1
- mage_ai/shared/path_fixer.py +62 -5
- mage_ai/shared/retry.py +4 -0
- mage_ai/shared/strings.py +4 -0
- mage_ai/tests/api/endpoints/test_blocks.py +101 -1
- mage_ai/tests/api/operations/base/test_base_with_user_permissions.py +4 -1
- mage_ai/tests/base_test.py +21 -2
- mage_ai/tests/cache/test_pipeline_cache.py +11 -8
- mage_ai/tests/data_preparation/executors/test_block_executor.py +55 -45
- mage_ai/tests/data_preparation/git/test_api.py +4 -4
- mage_ai/tests/data_preparation/models/block/dbt/test_block.py +75 -43
- mage_ai/tests/data_preparation/models/block/dbt/test_block_sql.py +329 -329
- mage_ai/tests/data_preparation/models/block/dbt/test_block_yaml.py +296 -296
- mage_ai/tests/data_preparation/models/block/dbt/test_dbt_adapter.py +2 -2
- mage_ai/tests/data_preparation/models/block/dbt/test_dbt_cli.py +4 -4
- mage_ai/tests/data_preparation/models/block/dbt/test_profiles.py +2 -2
- mage_ai/tests/data_preparation/models/block/dbt/test_project.py +2 -2
- mage_ai/tests/data_preparation/models/block/dbt/test_sources.py +2 -2
- mage_ai/tests/data_preparation/models/block/dynamic/test_dynamic_child_block_factory.py +477 -474
- mage_ai/tests/data_preparation/models/block/dynamic/test_dynamic_helpers.py +25 -24
- mage_ai/tests/data_preparation/models/block/platform/test_mixins.py +16 -25
- mage_ai/tests/data_preparation/models/block/test_utils.py +8 -8
- mage_ai/tests/data_preparation/models/test_block.py +6 -8
- mage_ai/tests/data_preparation/models/test_project.py +10 -5
- mage_ai/tests/data_preparation/models/test_variable.py +51 -4
- mage_ai/tests/orchestration/test_pipeline_scheduler_project_platform.py +1 -0
- mage_ai/version_control/__init__.py +0 -0
- mage_ai/version_control/models.py +288 -0
- {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/METADATA +6 -6
- {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/RECORD +490 -476
- mage_ai/server/frontend_dist/_next/static/0XnQ0C0nTr1w0o9CGC7wQ/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1124-d8fc76201b83b376.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1154-2f262f7eb38ebaa1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1235.53172e14801844e5.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1550-32333b36ac6b061b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1557-7cfe722a9b83b935.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1598-dd776e3a92e9cccd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1751-5adf859690505d7b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1952-b2197a87dd67d8e0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2056-0ea1faa46646a77e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2213-52267f1e9ef5751c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2474-352ae192b826d896.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2512-46141494a1b75897.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2717-accc279ae116b1b9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2852872c-15b31a7081e6a868.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2886-9e73e1f48f248741.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2920.86a65e5f26ff1795.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3437-6055fd5aa82880f6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3449-214fce1a0e623b47.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3494-23a9cc2cd649abac.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3745-3662911c364d917b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3763-70c7eb1fc203c903.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3943-a49377acc514e77f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4052-f89c85d2c8f51931.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4296-14eaf96d6479e673.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4804-1254a474f238d078.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5283-9df961e430a79bea.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5457-b373ebdf4d05d8e2.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5499-bc2528f8e18f61a6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5810-e66141c1271bced6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5849-f30d8694e3318a81.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5896-7b8e36634d7d94eb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6043-728790621ca9014c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6050-e48b7f97e96bbcb6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6285-648f9a732e100b2f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6639-74eefed142e14ea6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6965-c613d1834c8ed92d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7022-ea92cb336bd1aab8.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7361-06ef4c642a8fe8c4.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7858-677c641010ac9160.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8125-b9d53e425b6ddc7e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8146-fb8f445644e573b0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8432-0ace6fb7bdbc6864.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/844-1e171f361e63b36d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9269-40e2101f56399dcc.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9302-913007e2f801ad65.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9440-c51bf1e8f271cb25.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9624-89a4b20eb3b3c754.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/976-0a8c2c4d7acd957b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9775-c1142b1312e8f95d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/404-5ddd12931e0e3e41.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-ec5e62e8e5bb4e4c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-44d7291d8f29eb36.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-a6661a9c3647532a.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-26b899d3adb4ed19.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/[...slug]-9bd164317e652311.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-c87d46dc53e35638.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-24785a5ed4eb340d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-2c5fd116ecfacb33.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-8c9285af31efa3fd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/[user]-ec7e0419a64ae3b2.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-039e083cc068da54.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-8e4d4f6edc515265.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-b73185fdcb7a131c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-97b3335bf60f8b07.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-83de126136539668.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-50f45e96892cfb63.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-5fe0f1de6fd365f8.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-306db9e11fa94d21.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-ebea4be0562b08e3.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-f09d21d5c2661504.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-61e770f155ae22ef.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-d347a4614130e2ab.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-056c5e5080a3754f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-208fa8de91f152bc.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-a32e02f46a816eb3.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-8012388b15f0e0a5.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-6714c72f90923cfb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-afc0525ef27fe1f2.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-a91e7d86cd0540d9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks/[...slug]-7c8e5a8908fe9c83.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks-be0684d1527587d8.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-147660a34351147c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/preferences-ec5f01b683920ced.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/settings-28aa4512c0e23ec5.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions-a2850b2e0a282d16.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-b1df80674dca4713.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-41abcd2241958dc8.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-a2c5859f53b5e9e1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-1aea2a0c373bc6ae.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/[...slug]-e7485742708215d2.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/templates-b4086d30a89d6801.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-3cd171f43f0a0df8.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/test-6a22493285c47ba2.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-ad20a31dde4fe59b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-267952b4c87927c7.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/RC0Yenm06LvZI-RWFoT5C/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1124-d8fc76201b83b376.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1154-2f262f7eb38ebaa1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1235.53172e14801844e5.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1550-32333b36ac6b061b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1557-7cfe722a9b83b935.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1598-dd776e3a92e9cccd.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1751-5adf859690505d7b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-b2197a87dd67d8e0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2056-0ea1faa46646a77e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2213-52267f1e9ef5751c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2474-352ae192b826d896.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2512-46141494a1b75897.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-accc279ae116b1b9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2852872c-15b31a7081e6a868.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2886-9e73e1f48f248741.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2920.86a65e5f26ff1795.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3437-6055fd5aa82880f6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3449-214fce1a0e623b47.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3494-23a9cc2cd649abac.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3745-3662911c364d917b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3763-70c7eb1fc203c903.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-a49377acc514e77f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4052-f89c85d2c8f51931.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4296-14eaf96d6479e673.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4804-1254a474f238d078.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5283-9df961e430a79bea.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-b373ebdf4d05d8e2.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5499-bc2528f8e18f61a6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-e66141c1271bced6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5849-f30d8694e3318a81.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5896-7b8e36634d7d94eb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6043-728790621ca9014c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6050-e48b7f97e96bbcb6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6285-648f9a732e100b2f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6639-74eefed142e14ea6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6965-c613d1834c8ed92d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7022-ea92cb336bd1aab8.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7361-06ef4c642a8fe8c4.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7858-677c641010ac9160.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8125-b9d53e425b6ddc7e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8146-fb8f445644e573b0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8432-0ace6fb7bdbc6864.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/844-1e171f361e63b36d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9269-40e2101f56399dcc.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9302-913007e2f801ad65.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9440-c51bf1e8f271cb25.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9624-89a4b20eb3b3c754.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/976-0a8c2c4d7acd957b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9775-c1142b1312e8f95d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/404-5ddd12931e0e3e41.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-ec5e62e8e5bb4e4c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-44d7291d8f29eb36.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-a6661a9c3647532a.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-26b899d3adb4ed19.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/[...slug]-9bd164317e652311.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-c87d46dc53e35638.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-24785a5ed4eb340d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-2c5fd116ecfacb33.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-8c9285af31efa3fd.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-ec7e0419a64ae3b2.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-039e083cc068da54.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-8e4d4f6edc515265.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-b73185fdcb7a131c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-97b3335bf60f8b07.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-83de126136539668.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-50f45e96892cfb63.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-5fe0f1de6fd365f8.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-306db9e11fa94d21.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-ebea4be0562b08e3.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-f09d21d5c2661504.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-61e770f155ae22ef.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-d347a4614130e2ab.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-056c5e5080a3754f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-208fa8de91f152bc.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-a32e02f46a816eb3.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-8012388b15f0e0a5.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-6714c72f90923cfb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-afc0525ef27fe1f2.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-a91e7d86cd0540d9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks/[...slug]-7c8e5a8908fe9c83.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks-be0684d1527587d8.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-147660a34351147c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-ec5f01b683920ced.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/settings-28aa4512c0e23ec5.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions-a2850b2e0a282d16.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-b1df80674dca4713.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-41abcd2241958dc8.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-a2c5859f53b5e9e1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-1aea2a0c373bc6ae.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-e7485742708215d2.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates-b4086d30a89d6801.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-3cd171f43f0a0df8.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-6a22493285c47ba2.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-ad20a31dde4fe59b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-267952b4c87927c7.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{0XnQ0C0nTr1w0o9CGC7wQ → PPQxHOmWVJ0iQFzG2rc8m}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{RC0Yenm06LvZI-RWFoT5C → do4WOsw7lNhouR0mtPTFi}/_ssgManifest.js +0 -0
- {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/WHEEL +0 -0
- {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/top_level.txt +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2484],{54750:function(n,e,t){"use strict";var r=t(82394),o=t(12691),i=t.n(o),c=t(55485),u=t(48670),a=t(44085),l=t(38276),f=t(4190),s=t(30160),p=t(72473),d=t(70515),O=t(28598),h=t(82684);function m(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function b(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?m(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}e.Z=function(n){var e=n.breadcrumbs,t=n.noMarginLeft,r=e.length,o=[];return e.forEach((function(n,e){var m=n.bold,A=n.danger,g=n.label,y=n.linkProps,R=n.loading,v=n.monospace,T=void 0===v||v,D=n.onClick,E=n.options,S=g();r>=2&&e>=1&&o.push((0,O.jsx)(l.Z,{mx:1,children:(0,O.jsx)(p._Q,{muted:!0})},"divider-".concat(S)));var P=(0,O.jsx)(s.ZP,{bold:m,danger:A,default:!m,monospace:T,children:S});if((null===E||void 0===E?void 0:E.length)>=1){var Z,j,w=null===E||void 0===E?void 0:E.find((function(n){return!!n.selected}));if(w)(Z=((null===w||void 0===w||null===(j=w.uuid)||void 0===j?void 0:j.length)||0)*d.ro)&&(Z+=3*d.iI,R&&(Z+=2*d.iI));P=(0,O.jsx)(c.ZP,{alignItems:"center",children:(0,O.jsx)(a.Z,{afterIcon:R?(0,O.jsx)(f.Z,{inverted:!0,small:!0}):null,danger:A,defaultTextColor:!m,maxWidth:Z||null,monospace:T,noBackground:!0,noBorder:!0,onChange:function(n){var e,t=n.target.value,r=null===E||void 0===E?void 0:E.find((function(n){return n.uuid===t}));r&&null!==r&&void 0!==r&&r.onClick&&(null===r||void 0===r||null===(e=r.onClick)||void 0===e||e.call(r,t))},paddingHorizontal:0,paddingVertical:0,value:(null===w||void 0===w?void 0:w.uuid)||"",children:null===E||void 0===E?void 0:E.map((function(n){var e=n.label,t=n.selected,r=n.uuid,o=e?null===e||void 0===e?void 0:e():r;return(0,O.jsx)("option",{value:r,children:t?r:o},r)}))})})}var C=(0,O.jsx)(l.Z,{ml:t||0!==e?0:2,children:P},"breadcrumb-".concat(S));y?C=(0,h.createElement)(i(),b(b({},y),{},{key:"breadcrumb-link-".concat(S),passHref:!0}),(0,O.jsx)(u.Z,{block:!0,default:!m,noOutline:!0,sameColorAsText:m,children:C})):D&&(C=(0,O.jsx)(u.Z,{block:!0,default:!m,noOutline:!0,onClick:D,preventDefault:!0,sameColorAsText:m,children:C})),o.push(C)})),(0,O.jsx)(c.ZP,{alignItems:"center",children:o})}},93808:function(n,e,t){"use strict";t.d(e,{Z:function(){return P}});var r=t(77837),o=t(26304),i=t(62243),c=t(29385),u=t(80022),a=t(13692),l=t(93189),f=t(15544),s=t(82394),p=t(38860),d=t.n(p),O=t(82684),h=t(56663),m=t.n(h),b=t(40761),A=t(34661),g=t(36105),y=t(50178),R=t(69419),v=t(28598),T=["auth"];function D(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function E(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?D(Object(t),!0).forEach((function(e){(0,s.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function S(n){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}();return function(){var t,r=(0,f.Z)(n);if(e){var o=(0,f.Z)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,l.Z)(this,t)}}function P(n){return function(e){(0,a.Z)(l,e);var t=S(l);function l(){var n;(0,i.Z)(this,l);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return n=t.call.apply(t,[this].concat(r)),(0,s.Z)((0,u.Z)(n),"state",{auth:new b.Z(n.props.token)}),n}return(0,c.Z)(l,[{key:"componentDidMount",value:function(){this.setState({auth:new b.Z(this.props.token)})}},{key:"render",value:function(){var e=this.props,t=(e.auth,(0,o.Z)(e,T));return(0,v.jsx)(n,E({auth:this.state.auth},t))}}],[{key:"getInitialProps",value:function(){var e=(0,r.Z)(d().mark((function e(t){var r,o,i,c,u,a,l,f,s;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=m()(t),o=(0,y.ex)(t),i=o.id,c=r[A.Mv],u=r[g.qt],a=new b.Z(c),l=E(E({},t),{},{auth:a,currentGroupId:i,theme:u}),(0,y.YB)(t)&&a.isExpired&&(console.log("OAuth token has expired."),f=E(E({},t.query),{},{redirect_url:t.asPath}),(0,R.nL)("/sign-in?".concat((0,R.uM)(f)),t.res)),!n.getInitialProps){e.next=12;break}return e.next=10,n.getInitialProps(l);case 10:return s=e.sent,e.abrupt("return",E(E({},s),{},{auth:a,currentGroupId:i,theme:u}));case 12:return e.abrupt("return",l);case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()}]),l}(O.Component)}},44425:function(n,e,t){"use strict";t.d(e,{$W:function(){return T},DA:function(){return R},GJ:function(){return g},HX:function(){return P},J8:function(){return S},L8:function(){return a},LE:function(){return m},Lk:function(){return w},Lq:function(){return b},M5:function(){return y},Q3:function(){return D},Qj:function(){return Z},Ut:function(){return _},V4:function(){return N},VZ:function(){return E},dO:function(){return h},f2:function(){return C},iZ:function(){return j},qC:function(){return A},t6:function(){return l},tf:function(){return O}});var r,o,i,c,u,a,l,f=t(75582),s=t(82394);function p(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function d(n){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,s.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):p(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 O,h=(r={},(0,s.Z)(r,l.MARKDOWN,"MD"),(0,s.Z)(r,l.PYTHON,"PY"),(0,s.Z)(r,l.R,"R"),(0,s.Z)(r,l.SQL,"SQL"),(0,s.Z)(r,l.YAML,"YAML"),r),m=(o={},(0,s.Z)(o,l.MARKDOWN,"Markdown"),(0,s.Z)(o,l.PYTHON,"Python"),(0,s.Z)(o,l.R,"R"),(0,s.Z)(o,l.SQL,"SQL"),(0,s.Z)(o,l.YAML,"YAML"),o);!function(n){n.CALLBACK="callback",n.CHART="chart",n.CONDITIONAL="conditional",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.GLOBAL_DATA_PRODUCT="global_data_product",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.MARKDOWN="markdown",n.TRANSFORMER="transformer"}(O||(O={}));var b,A=(i={},(0,s.Z)(i,O.CUSTOM,O.CUSTOM),(0,s.Z)(i,O.DBT,O.DBT),i),g=Object.entries(O).reduce((function(n,e){var t=(0,f.Z)(e,2),r=t[0],o=t[1];return d(d({},n),{},(0,s.Z)({},o,r))}),{}),y=[O.CALLBACK,O.CONDITIONAL,O.EXTENSION];!function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(b||(b={}));var R,v,T=[O.CHART,O.CUSTOM,O.DATA_EXPORTER,O.DATA_LOADER,O.SCRATCHPAD,O.SENSOR,O.MARKDOWN,O.TRANSFORMER],D=[O.CUSTOM,O.DATA_EXPORTER,O.DATA_LOADER,O.SCRATCHPAD,O.SENSOR,O.MARKDOWN,O.TRANSFORMER],E=[O.DATA_EXPORTER,O.DATA_LOADER],S=[O.DATA_EXPORTER,O.DATA_LOADER,O.TRANSFORMER],P=[O.DATA_EXPORTER,O.DATA_LOADER,O.DBT,O.TRANSFORMER],Z=[O.CHART,O.SCRATCHPAD,O.SENSOR,O.MARKDOWN],j=[O.CALLBACK,O.CHART,O.EXTENSION,O.SCRATCHPAD,O.MARKDOWN],w=[O.CUSTOM,O.DATA_EXPORTER,O.DATA_LOADER,O.SENSOR,O.TRANSFORMER];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(R||(R={})),function(n){n.BLOCK_FILE="block_file",n.CUSTOM_BLOCK_TEMPLATE="custom_block_template",n.MAGE_TEMPLATE="mage_template"}(v||(v={}));var C=[O.CUSTOM,O.DATA_EXPORTER,O.DATA_LOADER,O.TRANSFORMER],N=(c={},(0,s.Z)(c,O.CALLBACK,"Callback"),(0,s.Z)(c,O.CHART,"Chart"),(0,s.Z)(c,O.CONDITIONAL,"Conditional"),(0,s.Z)(c,O.CUSTOM,"Custom"),(0,s.Z)(c,O.DATA_EXPORTER,"Data exporter"),(0,s.Z)(c,O.DATA_LOADER,"Data loader"),(0,s.Z)(c,O.DBT,"DBT"),(0,s.Z)(c,O.EXTENSION,"Extension"),(0,s.Z)(c,O.GLOBAL_DATA_PRODUCT,"Global data product"),(0,s.Z)(c,O.MARKDOWN,"Markdown"),(0,s.Z)(c,O.SCRATCHPAD,"Scratchpad"),(0,s.Z)(c,O.SENSOR,"Sensor"),(0,s.Z)(c,O.TRANSFORMER,"Transformer"),c),_=[O.DATA_LOADER,O.TRANSFORMER,O.DATA_EXPORTER,O.SENSOR];u={},(0,s.Z)(u,O.DATA_EXPORTER,"DE"),(0,s.Z)(u,O.DATA_LOADER,"DL"),(0,s.Z)(u,O.SCRATCHPAD,"SP"),(0,s.Z)(u,O.SENSOR,"SR"),(0,s.Z)(u,O.MARKDOWN,"MD"),(0,s.Z)(u,O.TRANSFORMER,"TF")},85854:function(n,e,t){"use strict";var r,o,i,c,u,a,l,f,s=t(82394),p=t(26304),d=t(26653),O=t(38626),h=t(33591),m=t(44897),b=t(95363),A=t(61896),g=t(30160),y=t(70515),R=t(38276),v=t(28598),T=["children","condensed","inline","level","marketing","spacingBelow"];function D(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function E(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?D(Object(t),!0).forEach((function(e){(0,s.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var S=(0,O.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," "," ",""],g.IH,(function(n){return n.color&&"\n color: ".concat(n.color,"\n ")}),(function(n){return n.yellow&&"\n color: ".concat((n.theme.accent||m.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(b.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "}),(function(n){return n.strikethrough&&"\n text-decoration: line-through;\n "})),P=O.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||m.Z.content).active,";\n ")})),Z=O.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],S,h.media.md(r||(r=(0,d.Z)(["\n ","\n "])),A.aQ),h.media.lg(o||(o=(0,d.Z)(["\n ","\n "])),A.aQ),h.media.xl(i||(i=(0,d.Z)(["\n ","\n "])),A.aQ)),j=O.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],S,A.MJ),w=O.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],S,h.media.xs(c||(c=(0,d.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),h.media.sm(u||(u=(0,d.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),h.media.md(a||(a=(0,d.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),h.media.lg(l||(l=(0,d.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),h.media.xl(f||(f=(0,d.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI)),C=O.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],S,A.BL),N=O.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],S),_=O.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],S),x=O.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],S),L=O.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],S,(function(n){return 1===n.level&&"\n ".concat(A.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(A.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 "})),I=function(n){var e,t=n.children,r=n.condensed,o=n.inline,i=n.level,c=n.marketing,u=n.spacingBelow,a=(0,p.Z)(n,T);o?e=L:0===Number(i)?e=Z:1===Number(i)?e=c?w:j:2===Number(i)?e=C:3===Number(i)?e=N:4===Number(i)?e=_:5===Number(i)&&(e=x);var l=(0,v.jsxs)(e,E(E({},a),{},{level:i,children:[u&&(0,v.jsx)(R.Z,{mb:r?2:3,children:t}),!u&&t]}));return o?l:(0,v.jsx)(P,{children:l})};I.defaultProps={level:3,weightStyle:6},e.Z=I},44085:function(n,e,t){"use strict";var r=t(82394),o=t(26304),i=t(82684),c=t(38626),u=t(28968),a=t(70987),l=t(70515),f=t(28598),s=["beforeIcon","children","label","multiple","placeholder"];function p(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function d(n){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,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var O=c.default.select.withConfig({displayName:"Select__SelectStyle",componentId:"sc-q6ezu2-0"})([""," padding-right:","px;&:hover{cursor:pointer;}"," "," "," "," ",""],u.p,3*l.iI,(function(n){return!n.afterIcon&&'\n background-image: url("data:image/svg+xml;utf8,'.concat("\n <svg width='12' height='12' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'>\n <path\n clip-rule='evenodd'\n d='M8.0015 11.7109L14.0022 5.71017L12.588 4.29597L7.99485 8.88914L3.40754 4.34482L2 5.76567L8.0015 11.7109Z'\n fill='%23B4B8C0'\n fill-rule='evenodd'\n />\n </svg>",'");\n background-repeat: no-repeat;\n background-position: -webkit-calc(100% - ').concat(l.iI,"px) center;\n background-position: calc(100% - ").concat(l.iI,"px) center;\n ")}),(function(n){return!n.hasContent&&!n.showPlaceholder&&"\n color: ".concat((n.theme.content||a.Z.content).muted,";\n ")}),(function(n){return n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n ")}),(function(n){return n.color&&"\n color: ".concat(n.color,";\n ")}),(function(n){return n.showPlaceholder&&"\n color: ".concat((n.theme.content||a.Z.content).inverted,";\n ")})),h=function(n,e){var t=n.beforeIcon,r=n.children,i=n.label,c=n.multiple,a=n.placeholder,l=(0,o.Z)(n,s);return(0,f.jsx)(u.Z,d(d({},l),{},{beforeIcon:t,input:(0,f.jsxs)(O,d(d({multiple:c},l),{},{children:[(i||a)&&(0,f.jsx)("option",{disabled:!(null===l||void 0===l||!l.value),value:"",children:i||a}),r]})),label:i,placeholder:a,ref:e,setContentOnMount:!0,showLabelRequirement:function(n){return!!n.content}}))};e.Z=i.forwardRef(h)},6943:function(n,e,t){"use strict";t.r(e);var r=t(77837),o=t(38860),i=t.n(o),c=t(39440),u=t(93808),a=t(28598);function l(){return(0,a.jsx)(c.Z,{uuid:"dashboard"})}l.getInitialProps=(0,r.Z)(i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{});case 1:case"end":return n.stop()}}),n)}))),e.default=(0,u.Z)(l)},91162:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/block-layout",function(){return t(6943)}])}},function(n){n.O(0,[2678,3662,1154,6639,9775,1751,5896,2714,2631,4783,3494,2512,5810,1550,976,9440,9774,2888,179],(function(){return e=91162,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|
|
@@ -1 +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),f=t(30160),p=t(72473),h=t(70515),v=t(74778),m=t(74260),x=t(81728),j=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,I=e.required,S=e.status_calculated,C=e.steps,w=e.tab,E=e.uuid,T=(null===C||void 0===C?void 0:C.length)||0,A=g||{completedGroup:!1,level:0,numberEl:null},R=A.completedGroup,D=A.level,M=A.numberEl,N=0===D?2*h.iI:1.5*h.iI;if(_){var B=(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(d.Z,{p:h.cd,children:(0,j.jsx)(s.ZP,{children:(0,j.jsxs)(c.Z,{flex:1,flexDirection:"column",children:[(0,j.jsxs)(s.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,j.jsx)(u.Z,{level:b?5:4,children:y}),(0,j.jsx)(d.Z,{mr:h.cd}),m.br.COMPLETED===S&&(0,j.jsx)(p.Jr,{size:N,success:!0})]}),O&&(0,j.jsx)(d.Z,{mt:1,children:(0,j.jsx)(f.ZP,{default:!0,small:b,children:O})})]})})}),(0,j.jsx)(o.Z,{light:!0}),null===C||void 0===C?void 0:C.map((function(e,n){return P(e,n,T,{completedGroup:m.br.COMPLETED===S,level:0})}))]});return(0,j.jsxs)(d.Z,{mb:b?0:h.cd,children:[t&&(0,j.jsx)(a.Z,{noPadding:!0,children:B}),!t&&B]},E)}var H=m.br.COMPLETED===S,F=0===D?String(n+1):(0,x.bH)()[n].toLowerCase();var z=!!w&&r,W=(0,j.jsx)(d.Z,{pl:0===D?h.cd:0,children:(0,j.jsxs)(f.ZP,{large:!b,monospace:!0,muted:!0,children:[F,"."]})}),L={muted:H||R,strikethrough:H||R};return(0,j.jsx)(v.aw,{clickable:!!z,onClick:z?function(){return null===r||void 0===r?void 0:r(w)}:null,children:(0,j.jsxs)(d.Z,{py:0!==D||b?1:h.cd,children:[(0,j.jsxs)(s.ZP,{children:[M&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("div",{style:{opacity:0},children:M}),(0,j.jsx)(d.Z,{mr:1})]}),W,(0,j.jsx)(d.Z,{mr:1}),(0,j.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,j.jsxs)(s.ZP,{flexDirection:"column",children:[(0,j.jsxs)(s.ZP,{alignItems:"center",children:[(0,j.jsxs)(c.Z,{flex:1,children:[0===D&&!b&&(0,j.jsx)(u.Z,Z(Z({level:5},L),{},{children:y})),0===D&&b&&(0,j.jsx)(f.ZP,Z(Z({bold:!0,large:!0},L),{},{children:y})),D>=1&&(0,j.jsx)(f.ZP,Z(Z({bold:!0,large:!b},L),{},{children:y})),!I&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(d.Z,{mr:1}),(0,j.jsx)(f.ZP,{muted:!0,uppercase:!0,xsmall:!0,children:"optional"})]})]}),(0,j.jsx)(d.Z,{mr:h.cd}),H&&(0,j.jsx)(p.Jr,{size:N,success:!0}),m.br.INCOMPLETE===S&&(0,j.jsx)(p.uy,{muted:!0,size:N}),m.br.ERROR===S&&(0,j.jsx)(p.uy,{danger:!0,size:N}),(0,j.jsx)(d.Z,{pr:h.cd*(S?1:2)})]}),O&&(0,j.jsx)(d.Z,{mt:1,pr:3*h.cd,children:(0,j.jsx)(f.ZP,Z(Z({default:!0},L),{},{small:b,children:O}))}),k&&(0,j.jsx)(l.Z,{error:k,small:!0,warning:!0})]})})]}),T>=1&&(0,j.jsx)(d.Z,{mt:1,children:null===C||void 0===C?void 0:C.map((function(e,n){return P(e,n,T,{completedGroup:R,level:1,numberEl:W})}))})]})},E)}),[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,j.jsx)(d.Z,{p:h.cd,children:y}):(0,j.jsx)(j.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),f=t(55485),p=t(85854),h=t(65956),v=t(78688),m=t(38276),x=t(30160),j=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 I(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,S=void 0===k||k,C=e.fetchAll,w=e.hideDetails,E=e.onClickStep,T=e.small,A=(0,O.VI)(null,{},[],{uuid:"ConnectionSettings"}),R=(0,i.Z)(A,1)[0],D=(0,o.useState)(null),M=D[0],N=D[1],B=(0,o.useState)(null),H=B[0],F=B[1],z=(0,l.Db)((function(e){var n=e.action,r=e.uuid;return j.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(),F(I(I({},M),{},{computeConnection:n}))},onErrorCallback:function(e,n){return R({errors:n,response:e})}})}}),W=(0,i.Z)(z,2),L=W[0],G=W[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)&&F(null)}}),[r,H,F]),(0,_.jsx)(m.Z,{py:S?g.cd:0,children:null===r||void 0===r?void 0:r.map((function(e,t){var r,o,l,j,y=e.actions,O=e.attributes,k=e.connection,I=e.description,C=e.name,A=e.required,R=e.status_calculated,D=e.steps,B=e.uuid;!w&&!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]})))),!w&&!n&&k&&(null===(o=Object.keys(k||{}))||void 0===o?void 0:o.length)>=1&&(j=(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 z=(0,_.jsxs)(_.Fragment,{children:[!n&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(m.Z,{p:g.cd,children:(0,_.jsx)(f.ZP,{children:(0,_.jsxs)(d.Z,{flex:1,flexDirection:"column",children:[(0,_.jsxs)(f.ZP,{alignItems:"center",children:[(0,_.jsx)(d.Z,{flex:1,children:(0,_.jsx)(p.Z,{level:T?5:4,children:C})}),(0,_.jsx)(m.Z,{mr:g.cd}),(0,_.jsx)(Z.Fs,{danger:u.br.ERROR===R,muted:A&&u.br.INCOMPLETE===R,size:2*g.iI,success:!A||u.br.COMPLETED===R})]}),I&&(0,_.jsx)(m.Z,{mt:1,children:(0,_.jsx)(x.ZP,{default:!0,small:T,children:I})})]})})}),(null===D||void 0===D?void 0:D.length)>=1&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(a.Z,{light:!0}),(0,_.jsx)(v.Z,{contained:!1,onClickStep:E,setupSteps:D,small:T})]})]}),(l||j)&&(0,_.jsx)(m.Z,{p:g.cd,children:(0,_.jsxs)(f.ZP,{children:[l&&(0,_.jsx)(h.Z,{noPadding:!0,children:(0,_.jsxs)(f.ZP,{flexDirection:"column",children:[(0,_.jsx)(m.Z,{p:g.cd,children:(0,_.jsx)(x.ZP,{bold:!0,large:!0,children:"Attributes"})}),(0,_.jsx)(a.Z,{light:!0}),l,(0,_.jsx)(m.Z,{mb:g.cd})]})}),l&&j&&(0,_.jsx)(m.Z,{pr:g.cd}),j&&(0,_.jsx)(h.Z,{noPadding:!0,children:(0,_.jsxs)(f.ZP,{flexDirection:"column",children:[(0,_.jsx)(m.Z,{p:g.cd,children:(0,_.jsx)(x.ZP,{bold:!0,large:!0,children:"Connection"})}),(0,_.jsx)(a.Z,{light:!0}),j,(0,_.jsx)(m.Z,{mb:g.cd})]})})]})}),(null===y||void 0===y?void 0:y.length)>=1&&(0,_.jsxs)(_.Fragment,{children:[!n&&(0,_.jsx)(m.Z,{p:g.cd,children:(0,_.jsx)(f.ZP,{children:(0,_.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,_.jsx)(f.ZP,{alignItems:"center",children:(0,_.jsx)(d.Z,{flex:1,children:(0,_.jsx)(p.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=G&&(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)(m.Z,{p:g.cd,children:(0,_.jsx)(f.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,_.jsxs)(d.Z,{flex:1,flexDirection:"column",children:[(0,_.jsx)(x.ZP,{default:!0,large:!T,children:i}),(0,_.jsx)(m.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}),F(null),L({action:l,uuid:B})},primary:[s._.CREATE,s._.UPDATE].includes(l),secondary:[s._.DESELECT].includes(l),small:T,children:o})})]})})})]},l)}))]})]});return(0,_.jsxs)(m.Z,{mt:t>=1?g.cd:0,px:S?g.cd:0,children:[S&&(0,_.jsx)(h.Z,{noPadding:!0,children:z}),!S&&z]},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,f=t.variables,p=d;return f&&Object.entries(f||{}).forEach((function(e){var t=(0,i.Z)(e,2),d=t[0],f=t[1];p=p.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},f||{}),{},{children:d}))))})),(0,c.jsx)(l.ZP,{danger:n,dangerouslySetInnerHTML:{__html:p},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),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),m=t(82571),x=t(98464),j=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,p=e.afterHidden,y=e.afterWidth,_=e.afterWidthOverride,k=e.appendBreadcrumbs,I=e.before,S=e.beforeWidth,C=e.breadcrumbs,w=e.children,E=e.contained,T=e.errors,A=e.headerMenuItems,R=e.headerOffset,D=e.hideAfterCompletely,M=e.mainContainerHeader,N=e.navigationItems,B=e.setAfterHidden,H=e.setErrors,F=e.subheaderChildren,z=e.subheaderNoPadding,W=e.title,L=e.uuid,G=(0,P.i)().width,V="dashboard_after_width_".concat(L),U="dashboard_before_width_".concat(L),Y=(0,o.useRef)(null),X=(0,o.useState)(_?y:(0,b.U2)(V,y)),q=X[0],J=X[1],K=(0,o.useState)(!1),Q=K[0],$=K[1],ee=(0,o.useState)(I?Math.max((0,b.U2)(U,S),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,j.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 W}}),(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,G]),(0,o.useEffect)((function(){Q||(0,b.t8)(V,q)}),[p,Q,q,V]),(0,o.useEffect)((function(){ie||(0,b.t8)(U,ne)}),[ie,ne,U]);var ue=(0,x.Z)(y);return(0,o.useEffect)((function(){_&&ue!==y&&J(y)}),[_,y,ue]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(u.Z,{title:W}),(0,f.jsx)(a.Z,{breadcrumbs:se,menuItems:A}),(0,f.jsxs)(d.Nk,{ref:n,children:[0!==(null===N||void 0===N?void 0:N.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(m.Z,{navigationItems:N,showMore:!0})}),(0,f.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(v.Z,{after:t,afterHeader:r,afterHeightOffset:g.Mz,afterHidden:p,afterMousedownActive:Q,afterWidth:q,before:I,beforeHeightOffset:g.Mz,beforeMousedownActive:ie,beforeWidth:d.k1+(I?ne:0),contained:E,headerOffset:R,hideAfterCompletely:!B||D,leftOffset:I?d.k1:null,mainContainerHeader:M,mainContainerRef:Y,setAfterHidden:B,setAfterMousedownActive:$,setAfterWidth:J,setBeforeMousedownActive:oe,setBeforeWidth:te,children:[F&&(0,f.jsx)(h,{noPadding:z,children:F}),w]})})]}),T&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===H||void 0===H?void 0:H(null)},children:(0,f.jsx)(c.Z,O(O({},T),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}var k=o.forwardRef(_)},93808:function(e,n,t){"use strict";t.d(n,{Z:function(){return I}});var r=t(77837),i=t(26304),o=t(62243),l=t(29385),c=t(80022),s=t(13692),u=t(93189),a=t(15544),d=t(82394),f=t(38860),p=t.n(f),h=t(82684),v=t(56663),m=t.n(v),x=t(40761),j=t(34661),g=t(36105),Z=t(50178),b=t(69419),P=t(28598),y=["auth"];function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function _(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function k(e){var n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=(0,a.Z)(e);if(n){var i=(0,a.Z)(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return(0,u.Z)(this,t)}}function I(e){return function(n){(0,s.Z)(u,n);var t=k(u);function u(){var e;(0,o.Z)(this,u);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=t.call.apply(t,[this].concat(r)),(0,d.Z)((0,c.Z)(e),"state",{auth:new x.Z(e.props.token)}),e}return(0,l.Z)(u,[{key:"componentDidMount",value:function(){this.setState({auth:new x.Z(this.props.token)})}},{key:"render",value:function(){var n=this.props,t=(n.auth,(0,i.Z)(n,y));return(0,P.jsx)(e,_({auth:this.state.auth},t))}}],[{key:"getInitialProps",value:function(){var n=(0,r.Z)(p().mark((function n(t){var r,i,o,l,c,s,u,a,d;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=m()(t),i=(0,Z.ex)(t),o=i.id,l=r[j.Mv],c=r[g.qt],s=new x.Z(l),u=_(_({},t),{},{auth:s,currentGroupId:o,theme:c}),(0,Z.YB)(t)&&s.isExpired&&(console.log("OAuth token has expired."),a=_(_({},t.query),{},{redirect_url:t.asPath}),(0,b.nL)("/sign-in?".concat((0,b.uM)(a)),t.res)),!e.getInitialProps){n.next=12;break}return n.next=10,e.getInitialProps(u);case 10:return d=n.sent,n.abrupt("return",_(_({},d),{},{auth:s,currentGroupId:o,theme:c}));case 12:return n.abrupt("return",u);case 13:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}]),u}(h.Component)}},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 j},LM:function(){return g},Mj:function(){return Z},QK:function(){return h},RH:function(){return x},a_:function(){return P},fj:function(){return y},kA:function(){return b},qL:function(){return c},r0:function(){return m}});var r,i,o,l,c,s=t(75582),u=t(82394),a=t(72473),d=t(72098);function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(c||(c={}));var h,v,m,x=(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),j=(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"}(h||(h={})),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"}(m||(m={}));var b=[h.ACTIVE,h.INACTIVE,h.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 p(p({},e),{},(0,u.Z)({},i,r))}),{})},65956:function(e,n,t){"use strict";var r=t(38626),i=t(55485),o=t(38276),l=t(30160),c=t(44897),s=t(42631),u=t(47041),a=t(70515),d=t(28598),f=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*a.iI,1.5*a.iI,1.5*a.iI),p=r.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],s.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||c.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||c.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||c.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||c.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||c.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),h=r.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],s.n_,s.n_,(function(e){return"\n background-color: ".concat((e.theme.background||c.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||c.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),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*a.iI,u.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*a.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),m=r.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],s.M8,s.YF,1.75*a.iI);n.Z=function(e){var n=e.borderless,t=e.children,r=e.containerRef,c=e.contentContainerRef,s=e.dark,u=e.footer,a=e.fullHeight,f=void 0===a||a,x=e.fullWidth,j=void 0===x||x,g=e.header,Z=e.headerHeight,b=e.headerIcon,P=e.headerPaddingVertical,y=e.headerTitle,O=e.maxHeight,_=e.maxWidth,k=e.minWidth,I=e.noPadding,S=e.overflowVisible,C=e.subtitle,w=e.success;return(0,d.jsxs)(p,{borderless:n,dark:s,fullHeight:f,fullWidth:j,maxHeight:O,maxWidth:_,minWidth:k,overflowVisible:S,ref:r,success:w,children:[(g||y)&&(0,d.jsxs)(h,{headerPaddingVertical:P,height:Z,children:[g&&g,y&&(0,d.jsx)(i.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(i.ZP,{alignItems:"center",children:[b&&b,(0,d.jsx)(o.Z,{ml:b?1:0,children:(0,d.jsx)(l.ZP,{bold:!0,default:!0,children:y})})]})})]}),(0,d.jsxs)(v,{maxHeight:O,noPadding:I,overflowVisible:S,ref:c,children:[C&&"string"===typeof C&&(0,d.jsx)(o.Z,{mb:2,children:(0,d.jsx)(l.ZP,{default:!0,children:C})}),C&&"string"!==typeof C&&C,t]}),u&&(0,d.jsx)(m,{children:u})]})}},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),f=t.n(d),p=t(21764),h=t(28071),v=t(15338),m=t(55485),x=t(85854),j=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)(m.ZP,{alignItems:"center",children:[(0,P.jsx)(m.ZP,{flexDirection:"column",children:(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:n})}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(j.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),I=t(4190),S=t(75499),C=t(69650),w=t(35686),E=t(72473),T=t(3917),A=t(38626),R=t(44897),D=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||R.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)(S.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),F=t(42122),z=t(70320),W=t(23780);function L(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function G(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?L(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var V=2*b.iI,U={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]),j=(0,z.qB)(),y=(0,l.useState)(null),O=y[0],A=y[1],R=(0,W.VI)(null,{},[],{uuid:d}),L=(0,s.Z)(R,1)[0],Y=(0,u.Db)(w.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 L({errors:n,response:e})}})}}),X=(0,s.Z)(Y,2),q=X[0],J=X[1].isLoading,K=(0,u.Db)((function(e){return w.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;p.Am.error((null===t||void 0===t?void 0:t.error)||r||i,{position:p.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 w.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,F.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;p.Am.error((null===t||void 0===t?void 0:t.error)||r||i,{position:p.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)(E.NO,{size:V}),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)(D,{children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,P.jsxs)(m.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,P.jsx)(x.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)(S.Z,{apiForFetchingAfterAction:w.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)(I.Z,{inverted:!0})});var c=l.active,s=l.applications,u=l.ec2_instance_attributes,d=l.name,p=l.status,y=l.tags,O=null===p||void 0===p?void 0:p.state,S=[h.X.TERMINATED,h.X.TERMINATED_WITH_ERRORS,h.X.TERMINATING].includes(O),C=[h.X.RUNNING,h.X.WAITING].includes(O),w=null===p||void 0===p||null===(r=p.timeline)||void 0===r?void 0:r.creation_date_time;return(0,P.jsxs)(g.Z,{p:b.cd,children:[!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)(x.Z,{level:4,children:"Actions"})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{children:[C&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(E.Fs,{size:V,success:c}),loading:ie,notClickable:c,onClick:c?null:function(){return re(G(G({},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)(m.ZP,{alignItems:"center",children:[(0,P.jsx)(I.Z,{inverted:!0,small:!0}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:(null===p||void 0===p||null===(i=p.state_change_reason)||void 0===i?void 0:i.message)||"Cluster is still launching."})]})]})})]}),(0,P.jsx)(g.Z,{mb:b.cd})]}),(0,P.jsxs)(k.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(x.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:w?(0,T.XG)(f()(w).format(T.BL),j):"-"},{key:"Status message",value:(null===p||void 0===p||null===(o=p.state_change_reason)||void 0===o?void 0:o.message)||"None"},{key:"Release label",textProps:{monospace:!0},value:null===l||void 0===l?void 0:l.release_label},{key:"Service role",textProps:{monospace:!0},value:null===l||void 0===l?void 0:l.service_role},{key:"Scale down behavior",value:null!==l&&void 0!==l&&l.scale_down_behavior?(0,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)(E.Jr,{size:V,success:!0}):(0,P.jsx)(E.x8,{danger:!0,size:V})},{key:"Termination protected",value:null!==l&&void 0!==l&&l.termination_protected?(0,P.jsx)(E.Jr,{size:V,success:!0}):(0,P.jsx)(E.x8,{danger:!0,size:V})},{key:"Visible to all users",value:null!==l&&void 0!==l&&l.visible_to_all_users?(0,P.jsx)(E.Jr,{size:V,success:!0}):(0,P.jsx)(E.x8,{danger:!0,size:V})},{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)(x.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)(m.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)(x.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)(x.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,p=null===s||void 0===s||null===(t=s.state_change_reason)||void 0===t?void 0:t.message,v=[h.X.BOOTSTRAPPING,h.X.STARTING].includes(d),x=[h.X.TERMINATING].includes(d);return[(0,l.createElement)(Z.ZP,G(G({},U),{},{key:"id",success:r}),i),(0,l.createElement)(Z.ZP,G(G({},U),{},{key:"name",monospace:!1,preWrap:!0}),o),(0,P.jsxs)("div",{children:[(0,P.jsx)(Z.ZP,G(G({},U),{},{danger:[h.X.TERMINATED_WITH_ERRORS].includes(d),default:[h.X.STARTING].includes(d),muted:[h.X.TERMINATED].includes(d),success:[h.X.RUNNING,h.X.WAITING].includes(d),warning:[h.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})),p&&(0,P.jsx)(Z.ZP,{muted:!0,preWrap:!0,small:!0,children:p})]},"state"),(0,l.createElement)(Z.ZP,G(G({},U),{},{key:"created",preWrap:!0}),u?(0,T.XG)(f()(u).format(T.BL),j):"-"),(0,l.createElement)(Z.ZP,G(G({},U),{},{center:!0,key:"normalizedInstanceHours"}),c||0),(0,P.jsx)(m.ZP,{justifyContent:"flex-end",children:v||x?(0,P.jsx)(I.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(G(G({},e),{},{active:!0}))},children:(0,P.jsx)(E.Fs,{muted:!r,size:V,success:r})})},"active")]})),selectedRowIndexInternal:O,uuid:d}),o&&(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(I.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),f=(e.selectedComputeService,e.setSelectedSql),p=e.setSelectedTab,h=(0,l.useContext)(A.ThemeContext),m=(0,l.useState)(),x=m[0],j=m[1],y=(0,l.useCallback)((function(e){f((function(){return null})),j(e)}),[f,j]),O=(0,z.qB)(),_=w.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}),{})}),[_]),I=(0,l.useMemo)((function(){return(0,P.jsx)(J.Z,{computeService:i,computeConnections:r,fetchAll:c,onClickStep:function(e){return p((function(){return{main:e}}))}})}),[r,i,c,p]),C=(0,l.useMemo)((function(){return(0,P.jsx)(S.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}),f=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"}),f||"-"),(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]),E=(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]),R=(0,l.useMemo)((function(){return(0,P.jsx)(Q.Z,{setSelectedSql:f,stagesMapping:k})}),[f,k]),D=(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(){x||o||((null===r||void 0===r?void 0:r.length)>=1?y(re):y(te))}),[r,o,x,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:x,tabs:D,underlineColor:null===h||void 0===h||null===(n=h.accent)||void 0===n?void 0:n.blue,underlineStyle:!0})}),(0,P.jsx)(v.Z,{light:!0}),re===x&&I,te===x&&C,ie===x&&E,oe===x&&R]})},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,f=e.emptyState,p=e.setConfigurations,h=e.title,y=(0,l.useRef)(null),O=(0,l.useState)(!1),_=O[0],I=O[1],S=(0,l.useState)(null),C=S[0],w=S[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]),R=(0,l.useMemo)((function(){return(0,P.jsxs)(m.ZP,{alignItems:"center",children:[!_&&(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(E.mm,{}),compact:!0,onClick:function(e){(0,H.j)(e),I(!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),w(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||(p(ae(ae({},o),{},(0,c.Z)({},C,""))),I(!1),w(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),I(!1),w(null)},secondary:!0,small:!0,children:"Cancel"})]})]})}),[n,A,o,T,_,C,y,I,w]),D=(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)(m.ZP,{alignItems:"center",children:[(0,P.jsx)(a.ZP,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){var e=ae({},o);null===e||void 0===e||delete e[t],p(e)},children:(0,P.jsx)(E.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)(j.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(E.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 p(ae(ae({},o),{},(0,c.Z)({},t,e.target.value)))},paddingHorizontal:0,paddingVertical:0,placeholder:i,value:r||""})})]})})]},t)}))}),[o,p]);return(0,P.jsxs)(k.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,P.jsxs)(j.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(x.Z,{level:4,children:h}),d&&(0,P.jsx)(g.Z,{mt:1,children:d})]}),(0,P.jsx)(g.Z,{mr:b.cd}),T&&(0,P.jsx)(m.ZP,{alignItems:"center",children:R})]})}),!T&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(v.Z,{light:!0}),(0,P.jsxs)(g.Z,{p:b.cd,children:[f&&(0,P.jsx)(g.Z,{mb:b.cd,children:(0,P.jsx)(Z.ZP,{default:!0,children:f})}),(0,P.jsx)(m.ZP,{alignItems:"center",children:R})]})]}),T&&D]})},fe=t(74260);function pe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function he(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pe(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var 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:he(he({},null===o||void 0===o?void 0:o.emr_config),e)})}),[o,u]),f=(0,l.useCallback)((function(e){return u({spark_config:he(he({},null===o||void 0===o?void 0:o.spark_config),e)})}),[o,u]),p=(0,l.useMemo)((function(){return(null===o||void 0===o?void 0:o.emr_config)||{}}),[o]),h=(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===h||void 0===h?void 0:h.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 f({others:e})},title:"Spark configurations"}),(0,P.jsx)(g.Z,{mb:b.HN}),fe.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)(m.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,P.jsxs)(j.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(x.Z,{level:4,warning:!(null!==p&&void 0!==p&&p.ec2_key_name)||!(null!==p&&void 0!==p&&p.ec2_key_path),children:"Spark observability"}),(!(null!==p&&void 0!==p&&p.ec2_key_name)||!(null!==p&&void 0!==p&&p.ec2_key_path))&&"ec2_key_name"in((null===t||void 0===t?void 0:t.emr_config)||{})&&"ec2_key_path"in((null===t||void 0===t?void 0:t.emr_config)||{})&&(0,P.jsx)(P.Fragment,{children:(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsxs)(Z.ZP,{warning:!0,children:["Without all the fields in this section present and valid, Mage won\u2019t automatically create the SSH tunnel.",(0,P.jsx)("br",{}),"You must manually create the SSH tunnel in order for Mage to retrieve and display the Spark jobs, statuses, metrics, and system information."]})})}),(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsxs)(Z.ZP,{muted:!0,children:["In order to see the Spark jobs, statuses, metrics, and system information, an SSH tunnel to the AWS EMR Master Node must be created.",(0,P.jsx)("br",{}),"Mage can automatically create the SSH tunnel for you if every field in this section is present and valid."]})}),(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsx)(Z.ZP,{muted:!0})})]})})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"center",children:[(0,P.jsxs)(m.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"EC2 key name"}),(0,P.jsxs)(Z.ZP,{muted:!0,small:!0,children:["SSH tunnel into the EMR cluster using a key pair created from the ",(0,P.jsx)(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)(j.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(E.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===p||void 0===p?void 0:p.ec2_key_name)||""})})]})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"center",children:[(0,P.jsxs)(m.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"EC2 key path"}),(0,P.jsx)(Z.ZP,{muted:!0,small:!0,children:"The absolute file path to the EC2 public key that was used when creating a cluster."})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(j.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(E.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===p||void 0===p?void 0:p.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)(m.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,P.jsxs)(j.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(x.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)(m.ZP,{alignItems:"center",children:[(0,P.jsx)(m.ZP,{flexDirection:"column",children:(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Master instance type"})}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(j.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(E.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===p||void 0===p?void 0:p.master_instance_type)||""})})]})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"center",children:[(0,P.jsx)(m.ZP,{flexDirection:"column",children:(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Slave instance type"})}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(j.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(E.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===p||void 0===p?void 0:p.slave_instance_type)||""})})]})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"center",children:[(0,P.jsx)(m.ZP,{flexDirection:"column",children:(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Number of slave instances"})}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(j.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(E.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===p||void 0===p?void 0:p.slave_instance_count)||""})})]})})]}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsx)(de,{addButtonText:"Add Spark configuration",addTextInputPlaceholder:"e.g. spark.driver.cores",alreadyExistsMessage:"Spark configuration exists",configurationValuePlaceholder:"e.g. 4g",configurations:null===p||void 0===p?void 0:p.master_spark_properties,createButtonText:"Create Spark configuration",description:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(Z.ZP,{muted:!0,children:["List of key-value pairs to be set in ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,children:"SparkConf"})," for the master instance."]}),(0,P.jsxs)(Z.ZP,{muted:!0,children:["For a list of all configurations, see the ",(0,P.jsx)(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===p||void 0===p?void 0:p.slave_spark_properties,createButtonText:"Create Spark configuration",description:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(Z.ZP,{muted:!0,children:["List of key-value pairs to be set in ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,children:"SparkConf"})," for the slave instance."]}),(0,P.jsxs)(Z.ZP,{muted:!0,children:["For a list of all configurations, see the ",(0,P.jsx)(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)(m.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,P.jsxs)(j.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(x.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)(m.ZP,{alignItems:"center",children:[(0,P.jsxs)(m.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Master security group"}),(0,P.jsxs)(Z.ZP,{muted:!0,small:!0,children:["The default managed security group is ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"ElasticMapReduce-master"}),"."]})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(j.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(E.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===p||void 0===p?void 0:p.master_security_group)||""})})]})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"center",children:[(0,P.jsxs)(m.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Slave security group"}),(0,P.jsxs)(Z.ZP,{muted:!0,small:!0,children:["The default managed security group is ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"ElasticMapReduce-slave"}),"."]})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(j.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(E.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===p||void 0===p?void 0:p.slave_security_group)||""})})]})})]}),(0,P.jsx)(g.Z,{mb:b.HN})]}),(0,P.jsxs)(m.ZP,{children:[(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(E.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"})]})]})]})},me=t(21831),xe=t(77456),je=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,f=e.setObjectAttributes,p=(0,l.useCallback)((function(e){return f({emr_config:Ze(Ze({},null===s||void 0===s?void 0:s.emr_config),e)})}),[s,f]),h=(0,l.useCallback)((function(e){return f({spark_config:Ze(Ze({},null===s||void 0===s?void 0:s.spark_config),e)})}),[s,f]),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),I=((0,l.useRef)(null),(0,l.useState)(!1)),S=I[0],w=I[1],T=(0,l.useState)(null),A=T[0],R=T[1],D=(0,l.useMemo)((function(){return(null===O||void 0===O?void 0:O.spark_jars)||[]}),[O]),M=(0,l.useMemo)((function(){return(null===D||void 0===D?void 0:D.length)>=1}),[D]),N=(0,l.useMemo)((function(){return(D||[]).includes(A)}),[D,A]),B=(0,l.useMemo)((function(){return(0,P.jsxs)(m.ZP,{alignItems:"center",children:[!S&&(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(E.mm,{}),compact:!0,onClick:function(e){(0,H.j)(e),w(!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"}),S&&(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),R(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||(h({spark_jars:D.concat(A)}),w(!1),R(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),w(!1),R(null)},secondary:!0,small:!0,children:"Cancel"})]})]})}),[N,D,M,S,A,_,w,R]),F=(0,l.useMemo)((function(){return null===D||void 0===D?void 0:D.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)(m.ZP,{alignItems:"center",children:[(0,P.jsx)(a.ZP,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){var e=(0,me.Z)(D);h({spark_jars:(0,je.oM)(e,n)})},children:(0,P.jsx)(E.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)(j.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(E.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,me.Z)(D);t[n]=e.target.value,h({spark_jars:t})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. /home/path/example1.jar",value:e||""})})]})})]},e)}))}),[D,h]),z=(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)(m.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(m.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)(j.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(E.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 f({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)(m.ZP,{justifyContent:"flex-end",children:(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsx)(xe.Z,{error:null===t||void 0===t?void 0:t.error})})})]})]})})]})}),[i,s,f]);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)(x.Z,{level:4,children:"Setup"})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"center",children:[(0,P.jsxs)(Z.ZP,{danger:"app_name"in r&&!(null!==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)(j.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(E.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 h({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)(m.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(m.ZP,{flexDirection:"column",children:[(0,P.jsxs)(Z.ZP,{danger:"spark_master"in r&&!(null!==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)(j.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(E.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 h({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)(m.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(m.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Spark home directory"}),(0,P.jsx)(Z.ZP,{muted:!0,small:!0,children:"Path where Spark is installed on worker nodes."})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(j.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(E.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 h({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)||""})})]})}),fe.GO.AWS_EMR===d&&z]}),(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)(x.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)(m.ZP,{alignItems:"center",children:[(0,P.jsxs)(m.ZP,{flexDirection:"column",children:[(0,P.jsxs)(Z.ZP,{danger:!l,default:!0,large:!0,monospace:!r,children:[r||o," ",!l&&(0,P.jsx)(Z.ZP,{danger:!0,inline:!0,large:!0,children:"is invalid"})]}),n&&(0,P.jsx)(Z.ZP,{muted:!0,small:!0,children:n})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsxs)(j.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)(xe.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)(x.Z,{level:4,children:"Customizations"})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(m.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Use custom session"}),(0,P.jsxs)(Z.ZP,{muted:!0,small:!0,children:["Whether to create custom SparkSession via",(0,P.jsx)("br",{}),"code and set it in ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"kwargs['context']"}),"."]})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(j.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 h({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)(m.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(m.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Custom session variable"}),(0,P.jsxs)(Z.ZP,{muted:!0,small:!0,children:["The variable name to set in ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"kwargs['context']"}),",",(0,P.jsx)("br",{}),"e.g. If variable name is ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"spark"})," then the Spark session",(0,P.jsx)("br",{}),"is accessed using ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"kwargs['context']['spark']"}),"."]})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(j.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(E.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 h({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)||""})})]})})]}),fe.GO.AWS_EMR===d&&(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"center",children:[(0,P.jsxs)(m.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Bootstrap script path"}),(0,P.jsx)(Z.ZP,{muted:!0,small:!0,children:"Use a custom script to bootstrap the EMR cluster."})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(j.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(E.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 p({bootstrap_script_path:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. /path/to/emr_bootstrap.sh",value:(null===y||void 0===y?void 0:y.bootstrap_script_path)||""})})]})})]}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsx)(de,{addButtonText:"Add environment variable",addTextInputPlaceholder:"e.g. PYTHONPATH",alreadyExistsMessage:"Environment variable exists",configurationValuePlaceholder:"e.g. /home/path",configurations:null===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 h({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)(m.ZP,{alignItems:"flex-start",justifyContent:"space-between",children:[(0,P.jsxs)(j.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(x.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)(m.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)(m.ZP,{alignItems:"center",children:B})]})]}),M&&F]}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsxs)(m.ZP,{children:[(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(E.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&&fe.br.COMPLETED!==i||(r+=1)})):(t.push(e),i&&fe.br.COMPLETED!==o||(r+=1))})),{steps:t,stepsCompleted:r}}),[n]),i=r.steps,o=r.stepsCompleted,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),Ie=t(98777);function Se(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?Se(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Se(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var we="Environment",Ee="Executors";var Te=function(e){e.objectAttributes;var n,t=(0,l.useContext)(A.ThemeContext),r=(0,l.useState)(we),i=r[0],o=r[1],c=w.ZP.spark_executors.list().data,u=(0,l.useMemo)((function(){return null===c||void 0===c?void 0:c.spark_executors}),[c]),a=w.ZP.spark_environments.detail("0").data,d=(0,l.useMemo)((function(){return null===a||void 0===a?void 0:a.spark_environment}),[a]),f=(0,l.useMemo)((function(){var e,n,t,r,i,o,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)(Ie.Z,{noPaddingContent:!0,title:"Runtime",children:[(0,P.jsx)(S.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)(Ie.Z,{noPaddingContent:!0,title:"Hadoop properties",children:[(0,P.jsx)(S.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)(Ie.Z,{noPaddingContent:!0,title:"Metrics properties",children:[(0,P.jsx)(S.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)(Ie.Z,{noPaddingContent:!0,title:"Spark properties",children:[(0,P.jsx)(S.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)(Ie.Z,{noPaddingContent:!0,title:"System properties",children:[(0,P.jsx)(S.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)(Ie.Z,{noPaddingContent:!0,title:"Classpath entries",children:[(0,P.jsx)(S.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)(x.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)(Ie.Z,{noPaddingContent:!0,title:(0,M.vg)(r),children:[(0,P.jsx)(S.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)(x.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)(Ie.Z,{noPaddingContent:!0,title:(0,M.vg)(r),children:[(0,P.jsx)(S.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]),p=(0,l.useMemo)((function(){return null===u||void 0===u?void 0:u.map((function(e){return(0,P.jsxs)("div",{children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(x.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)(Ie.Z,{noPaddingContent:!0,title:"Metrics",children:[(0,P.jsx)(S.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)(Ie.Z,{noPaddingContent:!0,title:"Memory metrics",children:[(0,P.jsx)(S.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)(Ie.Z,{noPaddingContent:!0,title:"Peak memory metrics",children:[(0,P.jsx)(S.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 we},uuid:we},{label:function(){return Ee},uuid:Ee}],underlineColor:null===t||void 0===t||null===(n=t.accent)||void 0===n?void 0:n.blue,underlineStyle:!0})}),(0,P.jsx)(g.Z,{mb:b.cd,children:(0,P.jsx)(v.Z,{light:!0})}),we===i&&f,Ee===i&&p]})},Ae=t(62547),Re=t(23657),De=t(74778),Me=t(46684),Ne=t(53808),Be=t(10332),He=t(15610),Fe=t(69419),ze=t(19183);function We(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 Le(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?We(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):We(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ge=function(e){var n,t=e.contained,r=e.heightOffset,i=e.mainContainerRef,o=(0,ze.i)(),d=o.height,f=(o.width,(0,l.useMemo)((function(){return"ComputeManagement/".concat(t?"contained":"open")}),[t])),p=(0,W.VI)(null,{},[],{uuid:f}),h=(0,s.Z)(p,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],I=(0,l.useState)(null),S=I[0],C=I[1],T=(0,Re.Z)({clustersRefreshInterval:1e4,includeAllStates:_}),A=T.activeCluster,R=T.clusters,D=T.clustersLoading,M=T.computeService,N=T.connections,H=T.connectionsLoading,z=T.fetchAll,L=T.setupComplete,G=(0,l.useState)(null),V=G[0],U=G[1];(0,l.useEffect)((function(){var e;U(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(f)}),[f]),J=(0,l.useMemo)((function(){return"compute_management_before_width_".concat(f)}),[f]),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],fe=ae[1],pe=(0,l.useState)(!0),he=pe[0],me=pe[1],xe=(0,l.useState)(null),je=xe[0],ge=xe[1],Ze=(0,l.useCallback)((function(e){ge((function(n){var t=e(n);return t&&he?me(!1):t||he||!L||me(!0),t}))}),[he,me,ge,L]),Pe=(0,l.useState)(null),ke=Pe[0],Ie=Pe[1],Se=(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,Fe.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&&Ie(e?{main:e}:null)}),[ke,Ce]);var we=(0,l.useState)(null),Ee=we[0],We=we[1],Ge=(0,l.useState)({}),Ve=Ge[0],Ue=Ge[1],Ye=(0,l.useCallback)((function(e){Ue((function(n){return Le(Le({},n),e)})),We((function(n){return Le(Le({},n),e)}))}),[Ue,We]),Xe=((0,l.useCallback)((function(e){return Ye({spark_config:Le(Le({},null===Ee||void 0===Ee?void 0:Ee.spark_config),e)})}),[Ee,Ye]),w.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=w.ZP.spark_applications.list().data,Qe=(0,l.useMemo)((function(){return null===Ke||void 0===Ke?void 0:Ke.spark_applications}),[Ke]),$e=w.ZP.spark_jobs.list().data,en=(0,l.useMemo)((function(){return null===$e||void 0===$e?void 0:$e.spark_jobs}),[$e]);(0,l.useEffect)((function(){me(L)}),[L]),(0,l.useEffect)((function(){qe&&(We(qe),C((0,Be.d)(qe)))}),[qe,We,C,Se]),(0,l.useEffect)((function(){!ke&&S&&Se({main:$.uK.SETUP})}),[S,ke,Se]);var nn=(0,u.Db)(w.ZP.projects.useUpdate(Je),{onSuccess:function(e){return(0,B.wD)(e,{callback:function(e){var n=e.project;Ue({}),We(n),z()},onErrorCallback:function(e,n){return h({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,F.GL)(Le(Le({},Ee),e),["emr_config","remote_variables_dir","spark_config"])})}),[Ee,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:R,clustersLoading:D,computeConnections:N,computeService:M,jobs:en,jobsLoading:!$e})),(0,P.jsx)(X.Z,{block:!0,disabled:!S,noHoverUnderline:!0,noOutline:!0,onClick:function(){return Se((function(){return{main:i}}))},preventDefault:!0,children:(0,P.jsx)(De.bC,{selected:(null===ke||void 0===ke?void 0:ke.main)===i,children:(0,P.jsxs)(m.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"space-between",children:[(0,P.jsxs)(j.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(S){var n=String(S),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=L?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)(m.ZP,{alignItems:"center",children:[L&&(0,P.jsx)(E.Fs,{muted:!(null!==A&&void 0!==A&&A.ready),size:1.5*b.iI,success:null===A||void 0===A?void 0:A.ready}),!L&&(0,P.jsx)(E.uy,{danger:!0,size:1.5*b.iI}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsxs)(j.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!L||!A,small:!0,children:L&&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&&!L&&e.unshift((0,P.jsx)(ye,{computeService:M,onClick:function(){return me(!1)}},"setupProgress")),e.unshift((0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(De.UE,{inline:!0,children:[(0,P.jsxs)(m.ZP,{alignItems:"flex-start",children:[(0,P.jsx)(j.Z,{flex:1,children:i()}),(0,P.jsx)(a.ZP,{compact:!0,onClick:function(){C(null),Se(null)},secondary:!0,small:!0,children:"Change"})]}),(0,P.jsx)(g.Z,{mt:b.cd,children:(0,P.jsx)(m.ZP,{alignItems:"flex-end",children:(0,P.jsxs)(j.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,monospace:!0,children:r}),(0,P.jsx)(x.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,R,D,M,N,Ke,$e,en,S,ke,me,Se,L]),sn=(0,l.useMemo)((function(){var e;return je?(0,P.jsx)(_e.Z,{height:y-(((null===V||void 0===V?void 0:V.height)||0)+Me.Mz+1),model:je}):(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 Se((function(){return{main:e}}))},setupSteps:null===M||void 0===M?void 0:M.setup_steps}):void 0}),[M,y,je,L]),un=(0,l.useMemo)((function(){return(0,P.jsx)(be,{attributesTouched:Ve||{},computeService:M,isLoading:on,mutateObject:ln,objectAttributes:Ee,selectedComputeService:S,setObjectAttributes:Ye})}),[Ve,M,on,Ee,S,Ye,ln]),an=(0,l.useMemo)((function(){return(0,P.jsx)(ve,{attributesTouched:Ve||{},isLoading:on,mutateObject:ln,objectAttributes:Ee,selectedComputeService:S,setObjectAttributes:Ye})}),[Ve,on,Ee,S,Ye,ln]),dn=(0,l.useMemo)((function(){if([$.B2.AWS_EMR,$.B2.STANDALONE_CLUSTER].includes(S))return(0,P.jsx)(le,{applications:Qe,computeConnections:N,computeService:M,connectionsLoading:H,fetchAll:z,jobs:en,loadingApplications:!Ke,loadingJobs:!$e,objectAttributes:Ee,refButtonTabs:v,selectedComputeService:S,setSelectedSql:Ze,setSelectedTab:Se})}),[Qe,M,N,H,z,Ke,$e,en,Ee,v,S,Ze,Se]),fn=(0,l.useMemo)((function(){if([$.B2.AWS_EMR,$.B2.STANDALONE_CLUSTER].includes(S))return(0,P.jsx)(Te,{objectAttributes:Ee})}),[Ee,S]),pn=(0,l.useMemo)((function(){return(0,P.jsxs)(g.Z,{mx:1,py:b.cd,children:[(0,P.jsx)(g.Z,{mb:b.cd,px:b.cd,children:(0,P.jsx)(x.Z,{children:"Select a compute service"})}),(0,P.jsx)(m.ZP,{alignItems:"center",flexWrap:"wrap",children:$.sY.map((function(e){var n=e.buildPayload,t=e.displayName,r=e.documentationHref,i=e.kicker,o=e.renderIcon,l=e.uuid;return(0,P.jsxs)(De.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)(x.Z,{level:4,children:t})]}),(0,P.jsx)(g.Z,{mt:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"center",children:[(0,P.jsx)(a.ZP,{loading:on&&l===S,onClick:function(){C(l),ln(n(Ee))},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,Ee,S,C,ln]),hn=(0,l.useMemo)((function(){return(0,P.jsx)(Y,{clusters:R,computeService:M,fetchAll:z,includeAllStates:_,loading:D,setIncludeAllStates:k})}),[R,D,M,z,_,k]),vn=(0,l.useMemo)((function(){if(!S&&Ee)return pn;if(S&&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 fn;if($.uK.CLUSTERS===e)return hn}}),[hn,pn,dn,Ee,qe,an,S,ke,un,fn]);return(0,P.jsx)(Ae.Z,{after:sn,afterDividerContrast:!0,afterHeightOffset:Me.Mz,afterHidden:he&&!je,afterMousedownActive:re,afterWidth:Q,before:cn,beforeDividerContrast:!0,beforeHeightOffset:0,beforeHidden:!S,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:!S,inline:!0,mainContainerRef:i,setAfterHidden:me,setAfterMousedownActive:ie,setAfterWidth:ne,setBeforeMousedownActive:fe,setBeforeWidth:ue,uuid:f,children:vn})},Ve=t(94629),Ue=t(93808);function Ye(){var e=(0,l.useRef)(null);return(0,P.jsx)(Ve.Z,{title:"Compute management",uuid:"Compute management/index",children:(0,P.jsx)("div",{ref:e,children:(0,P.jsx)(Ge,{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,Ue.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,f=(0,s.Z)(),p=f.sparkEnabled,h=c.ZP.compute_services.detail("compute-service",{},{refreshInterval:t},{pauseFetch:!p}),v=h.data,m=h.mutate,x=(0,o.useMemo)((function(){return null===v||void 0===v?void 0:v.compute_service}),[v]),j={};d&&(j.include_all_states=!0);var g=c.ZP.compute_clusters.compute_services.list(null===x||void 0===x?void 0:x.uuid,j,{refreshInterval:n},{pauseFetch:!p}),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!==x&&void 0!==x&&null!==(e=x.setup_steps)&&void 0!==e&&e.length?null===x||void 0===x||null===(n=x.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}),[x]),_=((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===x||void 0===x?void 0:x.uuid,{},{refreshInterval:u},{pauseFetch:!p})),k=_.data,I=_.mutate,S=(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===I||void 0===I||I(),null===m||void 0===m||m()}))}),[b,I,m]);return{activeCluster:null===y||void 0===y?void 0:y.find((function(e){return e.active})),clusters:y,clustersLoading:!Z,computeService:x,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:S,connectionsLoading:!k,fetchAll:C,fetchComputeClusters:b,fetchComputeConnections:I,fetchComputeService:m,setupComplete:O}}},42278:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/compute",function(){return t(4910)}])},80022:function(e,n,t){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return r}})},15544:function(e,n,t){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}t.d(n,{Z:function(){return r}})},13692:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var r=t(61049);function i(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&(0,r.Z)(e,n)}},93189:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var r=t(12539),i=t(80022);function o(e,n){if(n&&("object"===r(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},61049:function(e,n,t){"use strict";function r(e,n){return r=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},r(e,n)}t.d(n,{Z:function(){return r}})}},function(e){e.O(0,[9774,2678,1154,844,4804,3494,1557,2512,7858,5499,5283,3745,2056,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-26b899d3adb4ed19.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"},65557:function(e,n,t){"use strict";var r=t(21831),i=t(75582),o=t(82684),u=t(49555);n.Z=function(e){var n=e.children,t=e.uuid,c=e.uuids,l=void 0===c?[]:c,s=(0,u.j)("apiReloads"),a=(0,i.Z)(s,1)[0],d=(0,r.Z)(l);t&&d.push(t);var f=d.map((function(e){return String(a[e])||"-"})).join("_");return o.cloneElement(n,{key:f})}},32929:function(e,n,t){"use strict";t.d(n,{A2:function(){return b},dP:function(){return g},hS:function(){return y},iK:function(){return m},n9:function(){return v},qy:function(){return O}});var r,i=t(26304),o=t(82394),u=t(13507),c=t(44425),l=t(72473),s=t(57653),a=t(55283),d=["uuid"],f=["uuid"];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 h(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,o.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}var v={uuid:"Blocks"},b={uuid:"Pipelines"},g=[v,b],m=(r={},(0,o.Z)(r,c.tf.CALLBACK,l.AQ),(0,o.Z)(r,c.tf.CHART,l.GQ),(0,o.Z)(r,c.tf.CONDITIONAL,l.hW),(0,o.Z)(r,c.tf.CUSTOM,l.VS),(0,o.Z)(r,c.tf.DATA_EXPORTER,l.zS),(0,o.Z)(r,c.tf.DATA_LOADER,l.rH),(0,o.Z)(r,c.tf.DBT,l.xE),(0,o.Z)(r,c.tf.EXTENSION,l.Bf),(0,o.Z)(r,c.tf.MARKDOWN,l.$B),(0,o.Z)(r,c.tf.SENSOR,l.LM),(0,o.Z)(r,c.tf.TRANSFORMER,l.Sv),r),O=[{Icon:l.zQ,uuid:"All templates"}].concat([{uuid:c.tf.DATA_LOADER},{uuid:c.tf.TRANSFORMER},{selectedIconProps:{inverted:!0},uuid:c.tf.DATA_EXPORTER},{uuid:c.tf.SENSOR},{selectedIconProps:{inverted:!0},uuid:c.tf.CUSTOM},{uuid:c.tf.CHART},{selectedIconProps:{inverted:!0},uuid:c.tf.CALLBACK},{selectedIconProps:{inverted:!0},uuid:c.tf.CONDITIONAL},{uuid:c.tf.EXTENSION},{selectedBackgroundColor:null,uuid:c.tf.DBT},{selectedIconProps:{inverted:!0},uuid:c.tf.MARKDOWN}].map((function(e){var n=e.uuid,t=(0,i.Z)(e,d);return h({Icon:m[n],filterTemplates:function(e){return null===e||void 0===e?void 0:e.filter((function(e){return e.block_type===n}))},label:function(){return c.V4[n]},selectedBackgroundColor:function(e){return(0,a.qn)(n,{theme:e}).accent},uuid:n},t)}))),y=[{Icon:l.zQ,uuid:"All templates"}].concat([{Icon:l.X5,uuid:s.qL.PYTHON},{Icon:l.ZG,uuid:s.qL.INTEGRATION},{Icon:u.Z,uuid:s.qL.STREAMING}].map((function(e){var n=e.uuid,t=(0,i.Z)(e,f);return h({filterTemplates:function(e){return null===e||void 0===e?void 0:e.filter((function(e){var t;return(null===e||void 0===e||null===(t=e.pipeline)||void 0===t?void 0:t.type)===n}))},label:function(){return s.G7[n]},uuid:n},t)})))},94629:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var r=t(82394),i=t(21831),o=t(82684),u=t(50724),c=t(82555),l=t(97618),s=t(70613),a=t(31557),d=t(68899),f=t(28598);function p(e,n){var t=e.children,r=e.noPadding;return(0,f.jsx)(d.HS,{noPadding:r,ref:n,children:t})}var h=o.forwardRef(p),v=t(62547),b=t(82571),g=t(98464),m=t(77417),O=t(46684),y=t(70515),C=t(53808),j=t(19183);function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function w(e,n){e.addProjectBreadcrumbToCustomBreadcrumbs;var t=e.after,r=e.afterHeader,p=e.afterHidden,x=e.afterWidth,w=e.afterWidthOverride,Z=e.appendBreadcrumbs,S=e.before,k=e.beforeWidth,T=e.breadcrumbs,E=e.children,I=e.contained,R=e.errors,_=e.headerMenuItems,A=e.headerOffset,D=e.hideAfterCompletely,M=e.mainContainerHeader,N=e.navigationItems,B=e.setAfterHidden,L=e.setErrors,F=e.subheaderChildren,H=e.subheaderNoPadding,W=e.title,V=e.uuid,U=(0,j.i)().width,Y="dashboard_after_width_".concat(V),K="dashboard_before_width_".concat(V),X=(0,o.useRef)(null),G=(0,o.useState)(w?x:(0,C.U2)(Y,x)),z=G[0],Q=G[1],q=(0,o.useState)(!1),J=q[0],$=q[1],ee=(0,o.useState)(S?Math.max((0,C.U2)(K,k),13*y.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,m.Z)().project,le=[];T&&le.push.apply(le,(0,i.Z)(T)),null!==T&&void 0!==T&&T.length&&!Z||!ce||null!==T&&void 0!==T&&T.length||le.unshift({bold:!Z,label:function(){return W}}),(0,o.useEffect)((function(){null===X||void 0===X||!X.current||J||ie||null===ue||void 0===ue||ue(X.current.getBoundingClientRect().width)}),[J,z,ie,ne,X,ue,U]),(0,o.useEffect)((function(){J||(0,C.t8)(Y,z)}),[p,J,z,Y]),(0,o.useEffect)((function(){ie||(0,C.t8)(K,ne)}),[ie,ne,K]);var se=(0,g.Z)(x);return(0,o.useEffect)((function(){w&&se!==x&&Q(x)}),[w,x,se]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:W}),(0,f.jsx)(a.Z,{breadcrumbs:le,menuItems:_}),(0,f.jsxs)(d.Nk,{ref:n,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)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(v.Z,{after:t,afterHeader:r,afterHeightOffset:O.Mz,afterHidden:p,afterMousedownActive:J,afterWidth:z,before:S,beforeHeightOffset:O.Mz,beforeMousedownActive:ie,beforeWidth:d.k1+(S?ne:0),contained:I,headerOffset:A,hideAfterCompletely:!B||D,leftOffset:S?d.k1:null,mainContainerHeader:M,mainContainerRef:X,setAfterHidden:B,setAfterMousedownActive:$,setAfterWidth:Q,setBeforeMousedownActive:oe,setBeforeWidth:te,children:[F&&(0,f.jsx)(h,{noPadding:H,children:F}),E]})})]}),R&&(0,f.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===L||void 0===L?void 0:L(null)},children:(0,f.jsx)(c.Z,P(P({},R),{},{onClose:function(){return null===L||void 0===L?void 0:L(null)}}))})]})}var Z=o.forwardRef(w)},87418:function(e,n,t){"use strict";var r=t(82394),i=t(82684),o=t(71180),u=t(50724),c=t(55485),l=t(70374),s=t(30160),a=t(72473),d=t(39643),f=t(26419),p=t(58325),h=t(44688),v=t(28598);function b(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?b(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.defaultTextContent,r=e.fileVersionsVisible,b=e.menuGroups,m=e.onSave,O=e.rightOffset,y=e.setFilesVersionsVisible,C=(0,i.useState)(null),j=C[0],x=C[1],P=(0,i.useRef)({}),w=(0,i.useRef)(null),Z=(0,i.useRef)(null),S=(0,i.useMemo)((function(){return[{disabled:!m,keyTextGroups:[[(0,p.V5)()?d.RJ:d.hE,d.SS]],label:function(){return"Save"},onClick:function(){return m?m():null},uuid:"save"}]}),[m]),k=(0,i.useMemo)((function(){return[{label:function(){return r?"Hide versions":"Show versions"},onClick:function(){return null===y||void 0===y?void 0:y(!r)},uuid:"versions"}]}),[r,y]),T="FileHeaderMenu/index",E=(0,h.y)(),I=E.registerOnKeyDown,R=E.unregisterOnKeyDown;return(0,i.useEffect)((function(){return function(){R(T)}}),[R,T]),I(T,(function(e,n){null!==j&&(n[d.QK]?x((function(e){return 0===e?2:e-1})):n[d.DY]&&x((function(e){return 2===e?0:e+1})))}),[j,x]),(0,v.jsx)(u.Z,{onClickOutside:function(){return x(null)},open:!0,style:{height:"100%",position:"relative"},children:(0,v.jsxs)(c.ZP,{alignItems:"center",fullHeight:!0,fullWidth:!0,children:[!b&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("div",{style:{position:"relative"},children:[(0,v.jsx)(o.ZP,g(g({},f.a),{},{noBackground:0!==j,onClick:function(){return x((function(e){return 0===e?null:0}))},onMouseEnter:function(){return x((function(e){return null!==e?0:null}))},ref:w,children:(0,v.jsx)(s.ZP,{children:"File"})})),(0,v.jsx)(l.Z,{items:S,onClickCallback:function(){return x(null)},open:0===j,parentRef:w,uuid:"FileHeaderMenu/file"})]}),(0,v.jsxs)("div",{style:{position:"relative"},children:[(0,v.jsx)(o.ZP,g(g({},f.a),{},{noBackground:1!==j,onClick:function(){return x((function(e){return 1===e?null:1}))},onMouseEnter:function(){return x((function(e){return null!==e?1:null}))},ref:Z,children:(0,v.jsx)(s.ZP,{children:"Edit"})})),(0,v.jsx)(l.Z,{items:k,onClickCallback:function(){return x(null)},open:1===j,parentRef:Z,uuid:"FileHeaderMenu/edit"})]}),(0,v.jsx)("div",{style:{position:"relative"},children:(0,v.jsx)(o.ZP,g(g({},f.a),{},{beforeIcon:(0,v.jsx)(a.$B,{muted:!r}),noBackground:!r,onClick:function(){return null===y||void 0===y?void 0:y(!r)},children:(0,v.jsx)(s.ZP,{children:r?"Hide file versions":"Show file versions"})}))})]}),b&&(null===b||void 0===b?void 0:b.map((function(e,n){var r,u=e.items,c=e.label,a=e.uuid,d=(null===P||void 0===P||null===(r=P.current)||void 0===r?void 0:r[a])||(0,i.createRef)();return P.current[a]=d,(0,v.jsxs)("div",{style:{position:"relative"},children:[(0,v.jsx)(o.ZP,g(g({},f.a),{},{noBackground:j!==n,onClick:function(){return x((function(e){return e===n?null:n}))},onMouseEnter:function(){return x((function(e){return null!==e?n:null}))},ref:d,children:(0,v.jsx)(s.ZP,{default:t,children:c?null===c||void 0===c?void 0:c():a})})),(0,v.jsx)(l.Z,{items:u,onClickCallback:function(){return x(null)},open:j===n,parentRef:d,rightOffset:O,uuid:"FileHeaderMenu/".concat(a,"/").concat(n)})]},a)}))),n]})})}},69616:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var r=t(82684),i=t(38626),o=t(47041),u=i.default.div.withConfig({displayName:"indexstyle__ScrollerStyle",componentId:"sc-16b7ntp-0"})([""," align-items:center;display:flex;flex-direction:row;height:100%;overflow:auto;"],(0,o.y$)()),c=t(28598);var l=function(e){var n=e.children,t=(e.widthOffset,(0,r.useRef)(null)),i=(0,r.useRef)(null),o=(0,r.useState)(null),l=(o[0],o[1]);return(0,r.useEffect)((function(){setTimeout((function(){var e,n,r,o;l({scroll:(null===t||void 0===t||null===(e=t.current)||void 0===e||null===(n=e.getBoundingClientRect())||void 0===n?void 0:n.width)||0,tabs:(null===i||void 0===i||null===(r=i.current)||void 0===r||null===(o=r.getBoundingClientRect())||void 0===o?void 0:o.width)||0})}),1)}),[]),(0,c.jsx)(u,{ref:t,children:(0,c.jsx)("div",{ref:i,style:{height:"100%"},children:n})})}},28385:function(e,n,t){"use strict";var r=t(82394),i=t(75582),o=t(17717),u=t(82684),c=t(49555),l=t(69864),s=t(71180),a=t(75810),d=t(89706),f=t(97618),p=t(55485),h=t(85854),v=t(38276),b=t(4190),g=t(75499),m=t(30160),O=t(35686),y=t(70515),C=t(80330),j=t(3917),x=t(81728),P=t(72619),w=t(95924),Z=t(86735),S=t(42122),k=t(28598);function T(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function E(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?T(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):T(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.onActionCallback,t=e.pipeline,T=e.selectedBlock,I=e.selectedFilePath,R=e.setErrors,_=e.width,A=(0,c.j)("apiReloads"),D=(0,i.Z)(A,2)[1],M=(0,u.useMemo)((function(){return I?encodeURIComponent(I):T?encodeURIComponent("".concat(null===T||void 0===T?void 0:T.type,"/").concat(null===T||void 0===T?void 0:T.uuid)):null}),[T,I]),N=O.ZP.file_versions.files.list(M,(0,S.hB)({block_uuid:null===T||void 0===T?void 0:T.uuid,pipeline_uuid:null===t||void 0===t?void 0:t.uuid})),B=N.data,L=N.mutate,F=(0,u.useMemo)((function(){return(null===B||void 0===B?void 0:B.file_versions)||[]}),[B]),H=(0,u.useState)(null),W=H[0],V=H[1],U=(0,u.useMemo)((function(){return null===F||void 0===F?void 0:F[W]}),[W,F]),Y=O.ZP.file_contents.detail(U?encodeURIComponent(U.path):null).data,K=(0,u.useMemo)((function(){return null===Y||void 0===Y?void 0:Y.file_content}),[Y]),X=(0,u.useMemo)((function(){return(0,C.lU)()}),[]),G=(0,u.useMemo)((function(){var e,n,t;return null===I||void 0===I||null===(e=I.match(X))||void 0===e||null===(n=e[0])||void 0===n||null===(t=n.split("."))||void 0===t?void 0:t[1]}),[I,X]),z=(0,l.Db)(O.ZP.file_contents.useUpdate(M),{onSuccess:function(e){return(0,P.wD)(e,{callback:function(e){var t;I&&L();var i=null===e||void 0===e||null===(t=e.file_content)||void 0===t?void 0:t.path,u="FileEditor/".concat(i);if(i){var c=i.split(o.sep);if("pipelines"===c[0]){var l=c.slice(1,c.length-1).join(o.sep);u="PipelineDetail/".concat(l)}}D((function(e){return E(E({},e),{},(0,r.Z)({},u,Number(new Date)))})),V((function(e){return e+1})),null===n||void 0===n||n(null===e||void 0===e?void 0:e.file_content,{blockUUID:null===T||void 0===T?void 0:T.uuid})},onErrorCallback:function(e,n){return R({errors:n,response:e})}})}}),Q=(0,i.Z)(z,2),q=Q[0],J=Q[1].isLoading,$=(0,u.useCallback)((function(e){var n=E({},e);return I||(n.block_uuid=null===T||void 0===T?void 0:T.uuid,n.pipeline_uuid=null===t||void 0===t?void 0:t.uuid),q({file_content:n})}),[t,T,I,q]),ee=(0,u.useMemo)((function(){var e=F.map((function(e){var n=e.name,t=e.path;return[(0,k.jsxs)(p.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,k.jsxs)(f.Z,{flex:1,children:[(0,k.jsx)(m.ZP,{default:!0,monospace:!0,children:(0,j.JX)(n,{withSeconds:!0})}),(0,k.jsx)(v.Z,{px:2*y.cd,children:(0,k.jsx)(m.ZP,{monospace:!0,children:n})})]}),U&&(null===U||void 0===U?void 0:U.path)===t&&(0,k.jsx)(s.ZP,{compact:!0,loading:J,onClick:function(e){(0,w.j)(e),$({version:n})},small:!0,children:"Replace with this version"})]},n)]}));if(U){var n=(0,k.jsx)(v.Z,{p:y.cd,children:(0,k.jsx)(b.Z,{},"spinner")});if(K&&(null===K||void 0===K?void 0:K.path)===(null===U||void 0===U?void 0:U.path)){var t=K.content,r=void 0===t?"":t;n=(0,k.jsx)(a.Z,{autoHeight:!0,language:d.nB[G],padding:2*y.iI,readOnly:!0,value:(0,x.Pb)(r)?JSON.stringify(JSON.parse(r),null,2):r,width:_})}e=(0,Z.Hk)([n],W+1,e)}return e}),[K,G,F,J,U,W,$,_]);return(0,k.jsxs)("div",{style:{width:_},children:[(0,k.jsxs)(v.Z,{p:y.cd,children:[(0,k.jsx)(h.Z,{level:5,children:"File versions"}),(0,k.jsx)(m.ZP,{inline:!0,monospace:!0,children:I?decodeURIComponent(I):null===T||void 0===T?void 0:T.uuid})]}),(0,k.jsx)(g.Z,{buildRowProps:function(e){if(U&&W+1===e)return{renderCell:function(e){return e},renderRow:function(e){return e}}},columnFlex:[1],columns:[{uuid:"Version"}],isSelectedRow:function(e){var n;return(null===(n=F[e])||void 0===n?void 0:n.name)===(null===U||void 0===U?void 0:U.name)},onClickRow:function(e){U?e===W?V(null):e<W?V(e):e>W+1&&V(e-1):V(e)},rows:ee})]})}},68192:function(e,n,t){"use strict";t.d(n,{Z:function(){return D}});var r=t(82394),i=t(75582),o=t(82684),u=t(49555),c=t(69864),l=t(65557),s=t(43449),a=t(28598);var d=function(e){var n=e.addNewBlock,t=e.disableRefreshWarning,i=e.fetchPipeline,o=e.fetchVariables,u=e.onUpdateFileSuccess,c=e.openFilePaths,d=e.openSidekickView,f=e.pipeline,p=e.saveFile,h=e.selectedFilePath,v=e.sendTerminalMessage,b=e.setContentByFilePath,g=e.setDisableShortcuts,m=e.setErrors,O=e.setFilesTouched,y=e.setSelectedBlock;return(0,a.jsx)(a.Fragment,{children:null===c||void 0===c?void 0:c.map((function(e){return(0,a.jsx)("div",{style:{display:h===e?null:"none"},children:(0,a.jsx)(l.Z,{uuid:"FileEditor/".concat(decodeURIComponent(e)),children:(0,a.jsx)(s.Z,{active:h===e,addNewBlock:n,disableRefreshWarning:t,fetchPipeline:i,fetchVariables:o,filePath:e?encodeURIComponent(e):null,hideHeaderButtons:!0,onContentChange:function(n){return b((0,r.Z)({},e,n))},onUpdateFileSuccess:u,openSidekickView:d,pipeline:f,sendTerminalMessage:v,setDisableShortcuts:g,setSelectedBlock:y,saveFile:p,selectedFilePath:h,setErrors:m,setFilesTouched:O})})},e)}))})},f=t(29269),p=t(87418),h=t(90758),v=t(89706),b=t(28385),g=t(35686),m=t(39643),O=t(53808),y=t(86735),C="show_hidden_files",j="open_files";function x(){return(0,O.U2)(j,[])}function P(e){(0,O.t8)(j,e)}function w(e){var n=(0,O.U2)(j,[]);return n.includes(e)||n.push(e),P(n),n}function Z(e){var n=(0,O.U2)(j,[]),t=(0,y.Od)(n,(function(n){return n===e}));return P(t),t}var S=t(17717);function k(e){var n=e.split(S.sep);return n[n.length-1]}var T=t(72619),E=t(42041),I=t(23780),R=t(44688);function _(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?_(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.addNewBlock,t=e.blocks,s=e.deleteWidget,y=e.disableContextMenu,j=e.fetchAutocompleteItems,S=e.fetchPipeline,_=e.fetchVariables,D=e.onOpenFile,M=e.onSelectBlockFile,N=e.onSelectFile,B=e.onUpdateFileSuccess,L=e.openSidekickView,F=e.pipeline,H=e.query,W=e.selectedFilePath,V=e.sendTerminalMessage,U=e.setDisableShortcuts,Y=e.setSelectedBlock,K=e.showHiddenFilesSetting,X=e.uuid,G=e.widgets,z=(0,u.j)("apiReloads"),Q=(0,i.Z)(z,2),q=Q[1],J=(0,I.VI)(null,{},[],{uuid:"useFileComponents/".concat(X)}),$=(0,i.Z)(J,1),ee=$[0],ne=(0,o.useState)((0,O.U2)(C,!1)),te=ne[0],re=ne[1],ie=(0,o.useRef)(null),oe=(0,o.useRef)(null),ue=(0,o.useCallback)((function(e){oe.current||(oe.current={}),oe.current=A(A({},oe.current),e)}),[oe]),ce=(0,o.useState)([]),le=ce[0],se=ce[1],ae=(0,o.useState)(null),de=ae[0],fe=ae[1],pe=(0,o.useState)({}),he=pe[0],ve=pe[1],be=(0,o.useState)(!1),ge=be[0],me=be[1],Oe=(0,o.useMemo)((function(){return le.reduce((function(e,n){var t=k(n);return e[t]||(e[t]=[]),e[t].push(n),e}),{})}),[le]),ye=(0,o.useCallback)((function(e){P(e),se(e)}),[]),Ce=(0,o.useCallback)((function(e){ye(w(e))}),[ye]),je=(0,o.useCallback)((function(e){ue((0,r.Z)({},e,null)),ve((function(n){return A(A({},n),{},(0,r.Z)({},e,!1))}));var n=Z(e);ye(n),de===e&&(null===n||void 0===n?void 0:n.length)>=1&&fe(n[n.length-1]),0===(null===n||void 0===n?void 0:n.length)&&fe(null)}),[de,ue,ye]),xe=(0,o.useCallback)((function(e,n){n||(Ce(e),fe(e)),D&&(null===D||void 0===D||D(e,n))}),[Ce,D]);(0,o.useEffect)((function(){var e=x();ye(e),fe(W||function(n){return!n&&(null===e||void 0===e?void 0:e.length)>=1?e[0]:n})}),[W,ye]);var Pe=(0,o.useCallback)((function(){var e=!te;re(e),(0,O.t8)(C,e)}),[te]),we=g.ZP.files.list(K&&te?A(A({},v.BB),H):H),Ze=we.data,Se=we.mutate,ke=(0,o.useMemo)((function(){return(null===Ze||void 0===Ze?void 0:Ze.files)||[]}),[Ze]),Te="Files/index",Ee=(0,R.y)(),Ie=(Ee.disableGlobalKeyboardShortcuts,Ee.registerOnKeyDown),Re=Ee.unregisterOnKeyDown;(0,o.useEffect)((function(){return function(){Re(Te)}}),[Re,Te]),Ie(Te,(function(e,n){var t=Object.entries(he).reduce((function(e,n){var t=(0,i.Z)(n,2),r=t[0];return t[1]?e.concat(r):e}),[]);if((0,E.y)([m.zX,m.hS],n)&&(null===t||void 0===t?void 0:t.length)>=1){e.preventDefault();var r="You have changes that are unsaved: ".concat(t.join(", "),". ")+"Click cancel and save your changes before reloading page.";"undefined"!==typeof location&&window.confirm(r)&&location.reload()}}),[he]);var _e=(0,c.Db)((function(e){return g.ZP.file_contents.useUpdate((null===e||void 0===e?void 0:e.path)&&encodeURIComponent(null===e||void 0===e?void 0:e.path))({file_content:e})}),{onSuccess:function(e){return(0,T.wD)(e,{callback:function(e){var n=e.file_content;q((function(e){return A(A({},e),{},(0,r.Z)({},"FileVersions/".concat(null===n||void 0===n?void 0:n.path),Number(new Date)))})),ue((0,r.Z)({},null===n||void 0===n?void 0:n.path,null))},onErrorCallback:function(e,n){return ee({errors:n,response:e})}})}}),Ae=(0,i.Z)(_e,1),De=Ae[0],Me=(0,o.useCallback)((function(e,n){De(A(A({},n),{},{content:e})),ve((function(e){return A(A({},e),{},(0,r.Z)({},null===n||void 0===n?void 0:n.path,!1))}))}),[ve,De]),Ne=(0,o.useMemo)((function(){return(0,a.jsx)(f.Z,{addNewBlock:n,blocks:t,deleteWidget:s,disableContextMenu:y,fetchAutocompleteItems:j,fetchFiles:Se,fetchPipeline:S,files:ke,showHiddenFilesSetting:K,onClickFile:function(e){return xe(e)},onClickFolder:function(e){return xe(e,!0)},onSelectBlockFile:M,openSidekickView:L,pipeline:F,ref:ie,showError:ee,setSelectedBlock:Y,setShowHiddenFiles:Pe,showHiddenFiles:te,uuid:X,widgets:G})}),[n,t,s,y,j,Se,S,ie,ke,K,M,xe,L,F,Y,ee,te,Pe,X,G]),Be=(0,o.useMemo)((function(){return(0,a.jsx)(d,{addNewBlock:n,disableRefreshWarning:!0,fetchPipeline:S,fetchVariables:_,onUpdateFileSuccess:B,openFilePaths:le,openSidekickView:L,pipeline:F,saveFile:Me,selectedFilePath:de,sendTerminalMessage:V,setContentByFilePath:ue,setDisableShortcuts:U,setErrors:ee,setFilesTouched:ve,setSelectedBlock:Y})}),[n,S,_,B,le,L,F,Me,de,V,ue,U,ve,Y,ee]),Le=(0,o.useMemo)((function(){return(0,a.jsx)(p.Z,{fileVersionsVisible:ge,onSave:function(){var e,n;(null===oe||void 0===oe||null===(e=oe.current)||void 0===e||null===(n=e[de])||void 0===n?void 0:n.length)>=1&&Me(oe.current[de],{path:de})},setFilesVersionsVisible:me})}),[oe,ge,Me,de,me]),Fe=(0,o.useMemo)((function(){return(0,a.jsx)(h.Z,{filePaths:le,filesTouched:he,isSelectedFilePath:function(e,n){return e===n},onClickTab:function(e){fe(e),N&&(null===N||void 0===N||N(e))},onClickTabClose:function(e){return je(e)},renderTabTitle:function(e){var n=k(e),t=Oe[n];return t&&(null===t||void 0===t?void 0:t.length)>=2?e:n},selectedFilePath:de})}),[he,N,le,Oe,je,de]),He=(0,o.useMemo)((function(){return(0,a.jsx)(l.Z,{uuid:"FileVersions/".concat(de?decodeURIComponent(de):""),children:(0,a.jsx)(b.Z,{selectedFilePath:de,setErrors:ee})})}),[de,ee]);return{browser:Ne,controller:Be,fetchFiles:Se,filePaths:le,files:ke,filesTouched:he,menu:Le,openFile:xe,selectedFilePath:de,tabs:Fe,versions:He,versionsVisible:ge}}},26419:function(e,n,t){"use strict";t.d(n,{a:function(){return r}});var r={compact:!0,highlightOnHoverAlt:!0,noBorder:!0,padding:"4px 12px"}},90758:function(e,n,t){"use strict";t.d(n,{Z:function(){return S}});var r=t(82394),i=t(26304),o=t(82684),u=t(38626),c=t(39867),l=t(55485),s=t(48670),a=t(38276),d=t(30160),f=t(12468),p=t(44897),h=t(79899),v=t(72473),b=t(97133),g=t(70515),m=t(15610),O=t(95924),y=t(28598),C=1.25*g.iI;var j=function(e){var n=e.filePath,t=e.filesTouched,r=void 0===t?{}:t,i=e.isLast,u=e.onClickTab,j=e.onClickTabClose,x=e.renderTabTitle,P=e.savePipelineContent,w=e.selected,Z=e.themeContext,S=(0,o.useState)(!1),k=S[0],T=S[1],E=(0,h.Z)({filePath:n,name:n,uuid:n}),I=E.BlockIcon,R=E.Icon,_=E.color,A=E.iconColor,D=E.isBlockFile;return(0,y.jsx)(l.ZP,{flexDirection:"column",fullHeight:!0,onClick:function(e){e.preventDefault(),w||(u?u(n):(null===P||void 0===P||P(),(0,m.u)({file_path:encodeURIComponent(n)})))},onMouseEnter:function(){return T(!0)},onMouseLeave:function(){return T(!1)},children:(0,y.jsx)(b.Gb,{last:i,selected:w,children:(0,y.jsxs)(l.ZP,{alignItems:"center",fullHeight:!0,children:[(0,y.jsx)(f.Z,{appearAbove:!0,appearBefore:!0,label:n,size:null,widthFitContent:!0,children:(0,y.jsxs)(l.ZP,{alignItems:"center",fullHeight:!0,children:[!r[n]&&(0,y.jsx)(y.Fragment,{children:D?(0,y.jsx)(I,{color:_,size:1*g.iI,square:!0}):(0,y.jsx)(R,{fill:A,size:1.5*g.iI})}),r[n]&&(0,y.jsx)(f.Z,{label:"Unsaved changes",size:null,widthFitContent:!0,children:(0,y.jsx)("div",{style:{padding:1},children:(0,y.jsx)(c.Z,{borderColor:(Z||p.Z).borders.danger,size:C})})}),(0,y.jsx)(a.Z,{mr:1}),(0,y.jsx)(d.ZP,{monospace:!0,muted:!w,noWrapping:!0,small:!0,children:x?x(n):n})]})}),j&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(a.Z,{mr:2}),(0,y.jsx)(f.Z,{label:"Close",size:null,widthFitContent:!0,children:(0,y.jsxs)(s.Z,{autoHeight:!0,block:!0,noHoverUnderline:!0,noOutline:!0,onClick:function(e){(0,O.j)(e),null===j||void 0===j||j(n)},preventDefault:!0,children:[(k||w)&&(0,y.jsx)(v.x8,{muted:!w,size:C}),!k&&!w&&(0,y.jsx)("div",{style:{width:C}})]})})]})]})})})},x=t(86735),P=["filePaths","isSelectedFilePath","onClickTab","onClickTabClose","selectedFilePath","tabsBefore"];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 Z(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}var S=function(e){var n=e.filePaths,t=e.isSelectedFilePath,r=e.onClickTab,c=e.onClickTabClose,s=e.selectedFilePath,a=e.tabsBefore,d=(0,i.Z)(e,P),f=(0,o.useContext)(u.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,y.jsxs)(l.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"flex-start",children:[(null===a||void 0===a?void 0:a.length)>=1&&(null===a||void 0===a?void 0:a.map((function(e){var n=e.label,i=e.onClick,o=e.uuid,u=t?t(o,s):s===encodeURIComponent(o);return(0,y.jsx)(j,{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:u,themeContext:f},o)}))),null===p||void 0===p?void 0:p.map((function(e,n){var i=t?t(e,s):s===encodeURIComponent(e);return(0,o.createElement)(j,Z(Z({},d),{},{filePath:e,isLast:n===h-1,key:e,onClickTab:r,onClickTabClose:function(e){if(c)c(e);else{var n=(0,x.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 a},lO:function(){return s},rK:function(){return d},zn:function(){return l}});var r=t(38626),i=t(44897),o=t(2842),u=t(70515),c=t(47041),l=300,s=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),a=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,c.y$)()),f=r.default.div.withConfig({displayName:"indexstyle__FileTabStyle",componentId:"sc-1sv9513-3"})(["border-right:1px solid transparent;height:100%;padding:","px ","px;"," "," ",""],1*u.iI,1.5*u.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 a}});var r,i,o=t(82394),u=t(57653),c=t(82359),l=t(72473),s=t(86735),a="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 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 h(e){return(0,s.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)},93808:function(e,n,t){"use strict";t.d(n,{Z:function(){return S}});var r=t(77837),i=t(26304),o=t(62243),u=t(29385),c=t(80022),l=t(13692),s=t(93189),a=t(15544),d=t(82394),f=t(38860),p=t.n(f),h=t(82684),v=t(56663),b=t.n(v),g=t(40761),m=t(34661),O=t(36105),y=t(50178),C=t(69419),j=t(28598),x=["auth"];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 w(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,d.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 Z(e){var n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=(0,a.Z)(e);if(n){var i=(0,a.Z)(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return(0,s.Z)(this,t)}}function S(e){return function(n){(0,l.Z)(s,n);var t=Z(s);function s(){var e;(0,o.Z)(this,s);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=t.call.apply(t,[this].concat(r)),(0,d.Z)((0,c.Z)(e),"state",{auth:new g.Z(e.props.token)}),e}return(0,u.Z)(s,[{key:"componentDidMount",value:function(){this.setState({auth:new g.Z(this.props.token)})}},{key:"render",value:function(){var n=this.props,t=(n.auth,(0,i.Z)(n,x));return(0,j.jsx)(e,w({auth:this.state.auth},t))}}],[{key:"getInitialProps",value:function(){var n=(0,r.Z)(p().mark((function n(t){var r,i,o,u,c,l,s,a,d;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=b()(t),i=(0,y.ex)(t),o=i.id,u=r[m.Mv],c=r[O.qt],l=new g.Z(u),s=w(w({},t),{},{auth:l,currentGroupId:o,theme:c}),(0,y.YB)(t)&&l.isExpired&&(console.log("OAuth token has expired."),a=w(w({},t.query),{},{redirect_url:t.asPath}),(0,C.nL)("/sign-in?".concat((0,C.uM)(a)),t.res)),!e.getInitialProps){n.next=12;break}return n.next=10,e.getInitialProps(s);case 10:return d=n.sent,n.abrupt("return",w(w({},d),{},{auth:l,currentGroupId:o,theme:c}));case 12:return n.abrupt("return",s);case 13:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}]),s}(h.Component)}},89706:function(e,n,t){"use strict";t.d(n,{BB:function(){return f},JD:function(){return C},Lu:function(){return c},PF:function(){return m},aZ:function(){return u},d2:function(){return g},dT:function(){return l},n6:function(){return p},nB:function(){return y},oy:function(){return O},tE:function(){return h},xF:function(){return b}});var r,i,o,u,c,l,s,a=t(82394),d=t(44425);!function(e){e.DBT="dbt"}(u||(u={})),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"}(c||(c={})),function(e){e.INIT_PY="__init__.py",e.METADATA_YAML="metadata.yaml",e.REQS_TXT="requirements.txt"}(l||(l={})),function(e){e.EXCLUDE_DIR_PATTERN="exclude_dir_pattern",e.EXCLUDE_PATTERN="exclude_pattern",e.PATTERN="pattern"}(s||(s={}));var f=(r={},(0,a.Z)(r,s.EXCLUDE_PATTERN,"a^"),(0,a.Z)(r,s.EXCLUDE_DIR_PATTERN,"a^"),r),p=[c.PY,c.SQL],h=[c.MD,c.PY,c.R,c.SQL,c.YAML],v=[c.JSON,c.MD,c.PY,c.R,c.SH,c.SQL,c.TXT,c.YAML,c.YML],b=new RegExp(v.map((function(e){return".".concat(e,"$")})).join("|")),g=new RegExp([c.CSV,c.JSON,c.MD,c.PY,c.R,c.SH,c.SQL,c.TXT,c.YAML,c.YML].map((function(e){return".".concat(e,"$")})).join("|")),m="charts",O="pipelines",y=(i={},(0,a.Z)(i,c.MD,d.t6.MARKDOWN),(0,a.Z)(i,c.JSON,c.JSON),(0,a.Z)(i,c.PY,d.t6.PYTHON),(0,a.Z)(i,c.R,d.t6.R),(0,a.Z)(i,c.SQL,d.t6.SQL),(0,a.Z)(i,c.TXT,"text"),(0,a.Z)(i,c.YAML,d.t6.YAML),(0,a.Z)(i,c.YML,d.t6.YAML),i),C=(o={},(0,a.Z)(o,d.t6.MARKDOWN,c.MD),(0,a.Z)(o,d.t6.PYTHON,c.PY),(0,a.Z)(o,d.t6.R,c.R),(0,a.Z)(o,d.t6.SQL,c.SQL),(0,a.Z)(o,d.t6.YAML,c.YAML),(0,a.Z)(o,"text",c.TXT),o)},65956:function(e,n,t){"use strict";var r=t(38626),i=t(55485),o=t(38276),u=t(30160),c=t(44897),l=t(42631),s=t(47041),a=t(70515),d=t(28598),f=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*a.iI,1.5*a.iI,1.5*a.iI),p=r.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],l.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||c.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||c.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||c.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||c.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||c.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),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||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*a.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*a.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*a.iI);n.Z=function(e){var n=e.borderless,t=e.children,r=e.containerRef,c=e.contentContainerRef,l=e.dark,s=e.footer,a=e.fullHeight,f=void 0===a||a,g=e.fullWidth,m=void 0===g||g,O=e.header,y=e.headerHeight,C=e.headerIcon,j=e.headerPaddingVertical,x=e.headerTitle,P=e.maxHeight,w=e.maxWidth,Z=e.minWidth,S=e.noPadding,k=e.overflowVisible,T=e.subtitle,E=e.success;return(0,d.jsxs)(p,{borderless:n,dark:l,fullHeight:f,fullWidth:m,maxHeight:P,maxWidth:w,minWidth:Z,overflowVisible:k,ref:r,success:E,children:[(O||x)&&(0,d.jsxs)(h,{headerPaddingVertical:j,height:y,children:[O&&O,x&&(0,d.jsx)(i.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(i.ZP,{alignItems:"center",children:[C&&C,(0,d.jsx)(o.Z,{ml:C?1:0,children:(0,d.jsx)(u.ZP,{bold:!0,default:!0,children:x})})]})})]}),(0,d.jsxs)(v,{maxHeight:P,noPadding:S,overflowVisible:k,ref:c,children:[T&&"string"===typeof T&&(0,d.jsx)(o.Z,{mb:2,children:(0,d.jsx)(u.ZP,{default:!0,children:T})}),T&&"string"!==typeof T&&T,t]}),s&&(0,d.jsx)(b,{children:s})]})}},35185:function(e,n,t){"use strict";var r=t(82394),i=t(91835),o=(t(82684),t(38626)),u=t(44897),c=t(42631),l=t(70515),s=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 f=o.default.div.withConfig({displayName:"ProgressBar__ProgressBarContainerStyle",componentId:"sc-10x9ojc-0"})(["border-radius:","px;height:","px;overflow:hidden;position:relative;width:100%;",""],c.BG,.75*l.iI,(function(e){return"\n background-color: ".concat((e.theme.monotone||u.Z.monotone).grey200,";\n ")})),p=o.default.div.withConfig({displayName:"ProgressBar__ProgressBarStyle",componentId:"sc-10x9ojc-1"})(["height:inherit;position:absolute;"," "," "," ",""],(function(e){return!e.danger&&"\n background-color: ".concat((e.theme.progress||u.Z.progress).positive,";\n ")}),(function(e){return e.progress&&"\n width: ".concat(e.progress,"%;\n ")}),(function(e){return e.danger&&"\n background-color: ".concat((e.theme.progress||u.Z.progress).negative,";\n ")}),(function(e){return e.animateProgress&&"\n animation: animate-progress ".concat(e.animateProgress.duration,"ms linear forwards;\n\n @keyframes animate-progress {\n 0% {\n width: ").concat(e.animateProgress.start,"%;\n }\n\n 100% {\n width: ").concat(e.animateProgress.end,"%;\n }\n }\n ")}));n.Z=function(e){var n=(0,i.Z)({},e);return(0,s.jsx)(f,d(d({},n),{},{children:(0,s.jsx)(p,d({},n))}))}},92677:function(e,n,t){"use strict";var r=t(82684),i=t(38626),o=t(97618),u=t(55485),c=t(28598),l=i.default.div.withConfig({displayName:"ButtonGroup__ButtonGroupStyle",componentId:"sc-15vbmc8-0"})([""]),s=i.default.div.withConfig({displayName:"ButtonGroup__VerticalDivider",componentId:"sc-15vbmc8-1"})(["width:1px;"]);n.Z=function(e){var n=e.children,t=e.divider,i=r.Children.toArray(n).length;return(0,c.jsx)(l,{children:(0,c.jsx)(u.ZP,{children:r.Children.map(n,(function(e,n){return e&&(0,c.jsxs)(o.Z,{children:[n>=1&&t&&(0,c.jsx)(s,{}),r.cloneElement(e,{borderRadiusLeft:i>=2&&0===n,borderRadiusRight:i>=2&&n===i-1,halfPaddingLeft:i>=2&&0!==n,halfPaddingRight:i>=2&&n!==i-1,noBorder:i>=2&&n>0&&n<i-1,noBorderRight:i>=2&&n!==i-1})]},"button-group-child-".concat(n))}))})})}},13507:function(e,n,t){"use strict";var r=t(28598);n.Z=function(e){var n=e.fill,t=void 0===n?"white":n,i=e.size;return(0,r.jsxs)("svg",{fill:"none",height:i,viewBox:"0 0 20 20",width:i,xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("g",{clipPath:"url(#clip0_11802_82850)",children:[(0,r.jsx)("path",{d:"M15.6276 1.73378C15.97 1.96689 16.022 2.44136 15.7638 2.76532C15.5057 3.08929 15.0355 3.13958 14.69 2.91102C13.3636 2.0334 11.8126 1.54269 10.2126 1.50266C8.36175 1.45636 6.54643 2.01561 5.04253 3.09541C3.53863 4.1752 2.4284 5.71649 1.8806 7.48498C1.40702 9.01387 1.37618 10.6403 1.7837 12.1777C1.88982 12.5781 1.69185 13.0076 1.30237 13.1486C0.912892 13.2896 0.479935 13.0887 0.368517 12.6897C-0.147093 10.8435 -0.122519 8.88224 0.447763 7.04116C1.09223 4.96057 2.39838 3.14729 4.16768 1.87695C5.93697 0.606601 8.07265 -0.0513415 10.2501 0.00312922C12.1769 0.0513296 14.0431 0.655033 15.6276 1.73378Z",fill:t}),(0,r.jsx)("path",{d:"M13.2714 5.89383C13.5295 5.56986 13.4781 5.09341 13.1245 4.87771C12.2306 4.33247 11.2055 4.02828 10.15 4.00188C8.84359 3.9692 7.56218 4.36396 6.50061 5.12617C5.43903 5.88838 4.65534 6.97634 4.26866 8.22469C3.95628 9.23316 3.91679 10.3017 4.14767 11.323C4.23901 11.727 4.67403 11.928 5.06351 11.787C5.45299 11.6461 5.64766 11.216 5.57323 10.8086C5.44361 10.0989 5.48588 9.36461 5.70149 8.66852C5.9915 7.73226 6.57927 6.91628 7.37545 6.34463C8.17164 5.77297 9.13269 5.4769 10.1125 5.50141C10.841 5.51963 11.5503 5.71432 12.1813 6.06401C12.5436 6.26478 13.0133 6.2178 13.2714 5.89383Z",fill:t}),(0,r.jsx)("path",{clipRule:"evenodd",d:"M10 7.5C8.61929 7.5 7.5 8.61929 7.5 10C7.5 11.3807 8.61929 12.5 10 12.5C11.3807 12.5 12.5 11.3807 12.5 10C12.5 8.61929 11.3807 7.5 10 7.5ZM9 10C9 10.5523 9.44772 11 10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10Z",fill:t,fillRule:"evenodd"}),(0,r.jsx)("path",{d:"M6.87554 15.1223C6.52192 14.9066 6.47052 14.4301 6.72863 14.1062C6.98673 13.7822 7.45642 13.7352 7.81872 13.936C8.44971 14.2857 9.15897 14.4804 9.88746 14.4986C10.8673 14.5231 11.8284 14.227 12.6245 13.6554C13.4207 13.0837 14.0085 12.2677 14.2985 11.3315C14.5141 10.6354 14.5564 9.90111 14.4268 9.19144C14.3523 8.78397 14.547 8.35395 14.9365 8.21295C15.326 8.07196 15.761 8.27297 15.8523 8.67699C16.0832 9.69826 16.0437 10.7668 15.7313 11.7753C15.3447 13.0237 14.561 14.1116 13.4994 14.8738C12.4378 15.636 11.1564 16.0308 9.84995 15.9981C8.79455 15.9717 7.76942 15.6675 6.87554 15.1223Z",fill:t}),(0,r.jsx)("path",{d:"M4.23615 17.2347C3.97805 17.5586 4.03001 18.0331 4.37241 18.2662C5.95691 19.345 7.82314 19.9487 9.74992 19.9969C11.9274 20.0513 14.063 19.3934 15.8323 18.1231C17.6016 16.8527 18.9078 15.0394 19.5522 12.9588C20.1225 11.1178 20.1471 9.15647 19.6315 7.31026C19.5201 6.91131 19.0871 6.7104 18.6976 6.85139C18.3082 6.99238 18.1102 7.42188 18.2163 7.82227C18.6238 9.35971 18.593 10.9861 18.1194 12.515C17.5716 14.2835 16.4614 15.8248 14.9575 16.9046C13.4536 17.9844 11.6382 18.5436 9.78743 18.4973C8.18738 18.4573 6.63645 17.9666 5.30996 17.089C4.96451 16.8604 4.49426 16.9107 4.23615 17.2347Z",fill:t})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_11802_82850",children:(0,r.jsx)("rect",{fill:t,height:"20",width:"20"})})})]})}},98530:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var r=t(77837),i=t(38860),o=t.n(i),u=t(82684),c=t(94629),l=t(15338),s=t(55485),a=t(38276),d=t(68192),f=t(69616),p=t(46684),h=t(28598);var v=function(){var e=(0,u.useRef)(null),n=(0,u.useState)(null),t=n[0],r=n[1],i=(0,d.Z)({showHiddenFilesSetting:!0}),o=i.browser,v=i.controller,b=i.filePaths,g=i.menu,m=i.selectedFilePath,O=i.tabs,y=i.versions,C=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,h.jsx)(c.Z,{after:y,afterHidden:!(C&&m),before:o,contained:!0,headerOffset:t+p.Mz,mainContainerHeader:function(n){var t=n.widthOffset;return(0,h.jsxs)("div",{ref:e,style:{position:"relative",zIndex:3},children:[(0,h.jsx)(a.Z,{p:1,children:(0,h.jsx)(s.ZP,{alignItems:"center",children:g})}),(0,h.jsx)(l.Z,{light:!0}),(0,h.jsx)(f.Z,{widthOffset:t,children:O})]})},title:"Files",uuid:"Files/index",children:v})},b=t(93808);function g(){return(0,h.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 m=(0,b.Z)(g)},19698:function(e,n,t){"use strict";var r=t(82684),i=t(35686);n.Z=function(){var e=i.ZP.statuses.list().data;return{status:(0,r.useMemo)((function(){var n;return null===e||void 0===e||null===(n=e.statuses)||void 0===n?void 0:n[0]}),[e])}}},58325:function(e,n,t){"use strict";var r;t.d(n,{V5:function(){return o}}),function(e){e.ANDROID="Android",e.CHROME_OS="ChromeOS",e.IOS="iOS",e.LINUX="Linux",e.MAC="macOS",e.WINDOWS="Windows"}(r||(r={}));var i=r;function o(){return function(){var e,n,t,r,o,u,c,l=i.MAC,s=null===(e=window)||void 0===e||null===(n=e.navigator)||void 0===n?void 0:n.userAgent,a=(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 a?["macOS","Macintosh","MacIntel","MacPPC","Mac68K"].includes(a)?l=i.MAC:["Win32","Win64","Windows","WinCE"].includes(a)?l=i.WINDOWS:["iPhone","iPad","iPod"].includes(a)&&(l=i.IOS):s&&(s.includes("Macintosh")?l=i.MAC:s.includes("Windows")?l=i.WINDOWS:s.includes("Linux")&&s.includes("X11")?l=i.LINUX:/(iPhone|iPad)/.test(s)?l=i.IOS:s.includes("Android")&&s.includes("Mobi")?l=i.ANDROID:s.includes("CrOS")&&(l=i.CHROME_OS)),l}()===i.MAC}},99017:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/files",function(){return t(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,3494,1557,2512,7858,5499,5283,5810,9269,3449,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,3494,1557,2512,7858,5499,3943,9624,3763,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,3494,1557,2512,7858,5283,4296,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,3494,1557,2512,7858,5499,5283,4296,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"},65557:function(e,n,t){"use strict";var r=t(21831),i=t(75582),o=t(82684),c=t(49555);n.Z=function(e){var n=e.children,t=e.uuid,u=e.uuids,a=void 0===u?[]:u,l=(0,c.j)("apiReloads"),s=(0,i.Z)(l,1)[0],d=(0,r.Z)(a);t&&d.push(t);var f=d.map((function(e){return String(s[e])||"-"})).join("_");return o.cloneElement(n,{key:f})}},32929:function(e,n,t){"use strict";t.d(n,{A2:function(){return v},dP:function(){return b},hS:function(){return x},iK:function(){return m},n9:function(){return g},qy:function(){return C}});var r,i=t(26304),o=t(82394),c=t(13507),u=t(44425),a=t(72473),l=t(57653),s=t(55283),d=["uuid"],f=["uuid"];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 h(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,o.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}var g={uuid:"Blocks"},v={uuid:"Pipelines"},b=[g,v],m=(r={},(0,o.Z)(r,u.tf.CALLBACK,a.AQ),(0,o.Z)(r,u.tf.CHART,a.GQ),(0,o.Z)(r,u.tf.CONDITIONAL,a.hW),(0,o.Z)(r,u.tf.CUSTOM,a.VS),(0,o.Z)(r,u.tf.DATA_EXPORTER,a.zS),(0,o.Z)(r,u.tf.DATA_LOADER,a.rH),(0,o.Z)(r,u.tf.DBT,a.xE),(0,o.Z)(r,u.tf.EXTENSION,a.Bf),(0,o.Z)(r,u.tf.MARKDOWN,a.$B),(0,o.Z)(r,u.tf.SENSOR,a.LM),(0,o.Z)(r,u.tf.TRANSFORMER,a.Sv),r),C=[{Icon:a.zQ,uuid:"All templates"}].concat([{uuid:u.tf.DATA_LOADER},{uuid:u.tf.TRANSFORMER},{selectedIconProps:{inverted:!0},uuid:u.tf.DATA_EXPORTER},{uuid:u.tf.SENSOR},{selectedIconProps:{inverted:!0},uuid:u.tf.CUSTOM},{uuid:u.tf.CHART},{selectedIconProps:{inverted:!0},uuid:u.tf.CALLBACK},{selectedIconProps:{inverted:!0},uuid:u.tf.CONDITIONAL},{uuid:u.tf.EXTENSION},{selectedBackgroundColor:null,uuid:u.tf.DBT},{selectedIconProps:{inverted:!0},uuid:u.tf.MARKDOWN}].map((function(e){var n=e.uuid,t=(0,i.Z)(e,d);return h({Icon:m[n],filterTemplates:function(e){return null===e||void 0===e?void 0:e.filter((function(e){return e.block_type===n}))},label:function(){return u.V4[n]},selectedBackgroundColor:function(e){return(0,s.qn)(n,{theme:e}).accent},uuid:n},t)}))),x=[{Icon:a.zQ,uuid:"All templates"}].concat([{Icon:a.X5,uuid:l.qL.PYTHON},{Icon:a.ZG,uuid:l.qL.INTEGRATION},{Icon:c.Z,uuid:l.qL.STREAMING}].map((function(e){var n=e.uuid,t=(0,i.Z)(e,f);return h({filterTemplates:function(e){return null===e||void 0===e?void 0:e.filter((function(e){var t;return(null===e||void 0===e||null===(t=e.pipeline)||void 0===t?void 0:t.type)===n}))},label:function(){return l.G7[n]},uuid:n},t)})))},26419:function(e,n,t){"use strict";t.d(n,{a:function(){return r}});var r={compact:!0,highlightOnHoverAlt:!0,noBorder:!0,padding:"4px 12px"}},90758:function(e,n,t){"use strict";t.d(n,{Z:function(){return E}});var r=t(82394),i=t(26304),o=t(82684),c=t(38626),u=t(39867),a=t(55485),l=t(48670),s=t(38276),d=t(30160),f=t(12468),p=t(44897),h=t(79899),g=t(72473),v=t(97133),b=t(70515),m=t(15610),C=t(95924),x=t(28598),y=1.25*b.iI;var T=function(e){var n=e.filePath,t=e.filesTouched,r=void 0===t?{}:t,i=e.isLast,c=e.onClickTab,T=e.onClickTabClose,O=e.renderTabTitle,P=e.savePipelineContent,S=e.selected,Z=e.themeContext,E=(0,o.useState)(!1),j=E[0],I=E[1],A=(0,h.Z)({filePath:n,name:n,uuid:n}),_=A.BlockIcon,w=A.Icon,R=A.color,k=A.iconColor,N=A.isBlockFile;return(0,x.jsx)(a.ZP,{flexDirection:"column",fullHeight:!0,onClick:function(e){e.preventDefault(),S||(c?c(n):(null===P||void 0===P||P(),(0,m.u)({file_path:encodeURIComponent(n)})))},onMouseEnter:function(){return I(!0)},onMouseLeave:function(){return I(!1)},children:(0,x.jsx)(v.Gb,{last:i,selected:S,children:(0,x.jsxs)(a.ZP,{alignItems:"center",fullHeight:!0,children:[(0,x.jsx)(f.Z,{appearAbove:!0,appearBefore:!0,label:n,size:null,widthFitContent:!0,children:(0,x.jsxs)(a.ZP,{alignItems:"center",fullHeight:!0,children:[!r[n]&&(0,x.jsx)(x.Fragment,{children:N?(0,x.jsx)(_,{color:R,size:1*b.iI,square:!0}):(0,x.jsx)(w,{fill:k,size:1.5*b.iI})}),r[n]&&(0,x.jsx)(f.Z,{label:"Unsaved changes",size:null,widthFitContent:!0,children:(0,x.jsx)("div",{style:{padding:1},children:(0,x.jsx)(u.Z,{borderColor:(Z||p.Z).borders.danger,size:y})})}),(0,x.jsx)(s.Z,{mr:1}),(0,x.jsx)(d.ZP,{monospace:!0,muted:!S,noWrapping:!0,small:!0,children:O?O(n):n})]})}),T&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s.Z,{mr:2}),(0,x.jsx)(f.Z,{label:"Close",size:null,widthFitContent:!0,children:(0,x.jsxs)(l.Z,{autoHeight:!0,block:!0,noHoverUnderline:!0,noOutline:!0,onClick:function(e){(0,C.j)(e),null===T||void 0===T||T(n)},preventDefault:!0,children:[(j||S)&&(0,x.jsx)(g.x8,{muted:!S,size:y}),!j&&!S&&(0,x.jsx)("div",{style:{width:y}})]})})]})]})})})},O=t(86735),P=["filePaths","isSelectedFilePath","onClickTab","onClickTabClose","selectedFilePath","tabsBefore"];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 Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?S(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var E=function(e){var n=e.filePaths,t=e.isSelectedFilePath,r=e.onClickTab,u=e.onClickTabClose,l=e.selectedFilePath,s=e.tabsBefore,d=(0,i.Z)(e,P),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,x.jsxs)(a.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,l):l===encodeURIComponent(o);return(0,x.jsx)(T,{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,l):l===encodeURIComponent(e);return(0,o.createElement)(T,Z(Z({},d),{},{filePath:e,isLast:n===h-1,key:e,onClickTab:r,onClickTabClose:function(e){if(u)u(e);else{var n=(0,O.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 l},rK:function(){return d},zn:function(){return a}});var r=t(38626),i=t(44897),o=t(2842),c=t(70515),u=t(47041),a=300,l=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;}"],a,a),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 g},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),a=t(72473),l=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,l.HK)(p(e),(function(e){return e.key}))}var g=(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)},89706:function(e,n,t){"use strict";t.d(n,{BB:function(){return f},JD:function(){return y},Lu:function(){return u},PF:function(){return m},aZ:function(){return c},d2:function(){return b},dT:function(){return a},n6:function(){return p},nB:function(){return x},oy:function(){return C},tE:function(){return h},xF:function(){return v}});var r,i,o,c,u,a,l,s=t(82394),d=t(44425);!function(e){e.DBT="dbt"}(c||(c={})),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"}(a||(a={})),function(e){e.EXCLUDE_DIR_PATTERN="exclude_dir_pattern",e.EXCLUDE_PATTERN="exclude_pattern",e.PATTERN="pattern"}(l||(l={}));var f=(r={},(0,s.Z)(r,l.EXCLUDE_PATTERN,"a^"),(0,s.Z)(r,l.EXCLUDE_DIR_PATTERN,"a^"),r),p=[u.PY,u.SQL],h=[u.MD,u.PY,u.R,u.SQL,u.YAML],g=[u.JSON,u.MD,u.PY,u.R,u.SH,u.SQL,u.TXT,u.YAML,u.YML],v=new RegExp(g.map((function(e){return".".concat(e,"$")})).join("|")),b=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("|")),m="charts",C="pipelines",x=(i={},(0,s.Z)(i,u.MD,d.t6.MARKDOWN),(0,s.Z)(i,u.JSON,u.JSON),(0,s.Z)(i,u.PY,d.t6.PYTHON),(0,s.Z)(i,u.R,d.t6.R),(0,s.Z)(i,u.SQL,d.t6.SQL),(0,s.Z)(i,u.TXT,"text"),(0,s.Z)(i,u.YAML,d.t6.YAML),(0,s.Z)(i,u.YML,d.t6.YAML),i),y=(o={},(0,s.Z)(o,d.t6.MARKDOWN,u.MD),(0,s.Z)(o,d.t6.PYTHON,u.PY),(0,s.Z)(o,d.t6.R,u.R),(0,s.Z)(o,d.t6.SQL,u.SQL),(0,s.Z)(o,d.t6.YAML,u.YAML),(0,s.Z)(o,"text",u.TXT),o)},65956:function(e,n,t){"use strict";var r=t(38626),i=t(55485),o=t(38276),c=t(30160),u=t(44897),a=t(42631),l=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;"," "," "," "," "," "," "," "," "," "," "," ",""],a.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;"," "," "," ",""],a.n_,a.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 ")})),g=r.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*s.iI,l.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 "})),v=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*s.iI);n.Z=function(e){var n=e.borderless,t=e.children,r=e.containerRef,u=e.contentContainerRef,a=e.dark,l=e.footer,s=e.fullHeight,f=void 0===s||s,b=e.fullWidth,m=void 0===b||b,C=e.header,x=e.headerHeight,y=e.headerIcon,T=e.headerPaddingVertical,O=e.headerTitle,P=e.maxHeight,S=e.maxWidth,Z=e.minWidth,E=e.noPadding,j=e.overflowVisible,I=e.subtitle,A=e.success;return(0,d.jsxs)(p,{borderless:n,dark:a,fullHeight:f,fullWidth:m,maxHeight:P,maxWidth:S,minWidth:Z,overflowVisible:j,ref:r,success:A,children:[(C||O)&&(0,d.jsxs)(h,{headerPaddingVertical:T,height:x,children:[C&&C,O&&(0,d.jsx)(i.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(i.ZP,{alignItems:"center",children:[y&&y,(0,d.jsx)(o.Z,{ml:y?1:0,children:(0,d.jsx)(c.ZP,{bold:!0,default:!0,children:O})})]})})]}),(0,d.jsxs)(g,{maxHeight:P,noPadding:E,overflowVisible:j,ref:u,children:[I&&"string"===typeof I&&(0,d.jsx)(o.Z,{mb:2,children:(0,d.jsx)(c.ZP,{default:!0,children:I})}),I&&"string"!==typeof I&&I,t]}),l&&(0,d.jsx)(v,{children:l})]})}},35185:function(e,n,t){"use strict";var r=t(82394),i=t(91835),o=(t(82684),t(38626)),c=t(44897),u=t(42631),a=t(70515),l=t(28598);function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var f=o.default.div.withConfig({displayName:"ProgressBar__ProgressBarContainerStyle",componentId:"sc-10x9ojc-0"})(["border-radius:","px;height:","px;overflow:hidden;position:relative;width:100%;",""],u.BG,.75*a.iI,(function(e){return"\n background-color: ".concat((e.theme.monotone||c.Z.monotone).grey200,";\n ")})),p=o.default.div.withConfig({displayName:"ProgressBar__ProgressBarStyle",componentId:"sc-10x9ojc-1"})(["height:inherit;position:absolute;"," "," "," ",""],(function(e){return!e.danger&&"\n background-color: ".concat((e.theme.progress||c.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||c.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,l.jsx)(f,d(d({},n),{},{children:(0,l.jsx)(p,d({},n))}))}},92677:function(e,n,t){"use strict";var r=t(82684),i=t(38626),o=t(97618),c=t(55485),u=t(28598),a=i.default.div.withConfig({displayName:"ButtonGroup__ButtonGroupStyle",componentId:"sc-15vbmc8-0"})([""]),l=i.default.div.withConfig({displayName:"ButtonGroup__VerticalDivider",componentId:"sc-15vbmc8-1"})(["width:1px;"]);n.Z=function(e){var n=e.children,t=e.divider,i=r.Children.toArray(n).length;return(0,u.jsx)(a,{children:(0,u.jsx)(c.ZP,{children:r.Children.map(n,(function(e,n){return e&&(0,u.jsxs)(o.Z,{children:[n>=1&&t&&(0,u.jsx)(l,{}),r.cloneElement(e,{borderRadiusLeft:i>=2&&0===n,borderRadiusRight:i>=2&&n===i-1,halfPaddingLeft:i>=2&&0!==n,halfPaddingRight:i>=2&&n!==i-1,noBorder:i>=2&&n>0&&n<i-1,noBorderRight:i>=2&&n!==i-1})]},"button-group-child-".concat(n))}))})})}},13507:function(e,n,t){"use strict";var r=t(28598);n.Z=function(e){var n=e.fill,t=void 0===n?"white":n,i=e.size;return(0,r.jsxs)("svg",{fill:"none",height:i,viewBox:"0 0 20 20",width:i,xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("g",{clipPath:"url(#clip0_11802_82850)",children:[(0,r.jsx)("path",{d:"M15.6276 1.73378C15.97 1.96689 16.022 2.44136 15.7638 2.76532C15.5057 3.08929 15.0355 3.13958 14.69 2.91102C13.3636 2.0334 11.8126 1.54269 10.2126 1.50266C8.36175 1.45636 6.54643 2.01561 5.04253 3.09541C3.53863 4.1752 2.4284 5.71649 1.8806 7.48498C1.40702 9.01387 1.37618 10.6403 1.7837 12.1777C1.88982 12.5781 1.69185 13.0076 1.30237 13.1486C0.912892 13.2896 0.479935 13.0887 0.368517 12.6897C-0.147093 10.8435 -0.122519 8.88224 0.447763 7.04116C1.09223 4.96057 2.39838 3.14729 4.16768 1.87695C5.93697 0.606601 8.07265 -0.0513415 10.2501 0.00312922C12.1769 0.0513296 14.0431 0.655033 15.6276 1.73378Z",fill:t}),(0,r.jsx)("path",{d:"M13.2714 5.89383C13.5295 5.56986 13.4781 5.09341 13.1245 4.87771C12.2306 4.33247 11.2055 4.02828 10.15 4.00188C8.84359 3.9692 7.56218 4.36396 6.50061 5.12617C5.43903 5.88838 4.65534 6.97634 4.26866 8.22469C3.95628 9.23316 3.91679 10.3017 4.14767 11.323C4.23901 11.727 4.67403 11.928 5.06351 11.787C5.45299 11.6461 5.64766 11.216 5.57323 10.8086C5.44361 10.0989 5.48588 9.36461 5.70149 8.66852C5.9915 7.73226 6.57927 6.91628 7.37545 6.34463C8.17164 5.77297 9.13269 5.4769 10.1125 5.50141C10.841 5.51963 11.5503 5.71432 12.1813 6.06401C12.5436 6.26478 13.0133 6.2178 13.2714 5.89383Z",fill:t}),(0,r.jsx)("path",{clipRule:"evenodd",d:"M10 7.5C8.61929 7.5 7.5 8.61929 7.5 10C7.5 11.3807 8.61929 12.5 10 12.5C11.3807 12.5 12.5 11.3807 12.5 10C12.5 8.61929 11.3807 7.5 10 7.5ZM9 10C9 10.5523 9.44772 11 10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10Z",fill:t,fillRule:"evenodd"}),(0,r.jsx)("path",{d:"M6.87554 15.1223C6.52192 14.9066 6.47052 14.4301 6.72863 14.1062C6.98673 13.7822 7.45642 13.7352 7.81872 13.936C8.44971 14.2857 9.15897 14.4804 9.88746 14.4986C10.8673 14.5231 11.8284 14.227 12.6245 13.6554C13.4207 13.0837 14.0085 12.2677 14.2985 11.3315C14.5141 10.6354 14.5564 9.90111 14.4268 9.19144C14.3523 8.78397 14.547 8.35395 14.9365 8.21295C15.326 8.07196 15.761 8.27297 15.8523 8.67699C16.0832 9.69826 16.0437 10.7668 15.7313 11.7753C15.3447 13.0237 14.561 14.1116 13.4994 14.8738C12.4378 15.636 11.1564 16.0308 9.84995 15.9981C8.79455 15.9717 7.76942 15.6675 6.87554 15.1223Z",fill:t}),(0,r.jsx)("path",{d:"M4.23615 17.2347C3.97805 17.5586 4.03001 18.0331 4.37241 18.2662C5.95691 19.345 7.82314 19.9487 9.74992 19.9969C11.9274 20.0513 14.063 19.3934 15.8323 18.1231C17.6016 16.8527 18.9078 15.0394 19.5522 12.9588C20.1225 11.1178 20.1471 9.15647 19.6315 7.31026C19.5201 6.91131 19.0871 6.7104 18.6976 6.85139C18.3082 6.99238 18.1102 7.42188 18.2163 7.82227C18.6238 9.35971 18.593 10.9861 18.1194 12.515C17.5716 14.2835 16.4614 15.8248 14.9575 16.9046C13.4536 17.9844 11.6382 18.5436 9.78743 18.4973C8.18738 18.4573 6.63645 17.9666 5.30996 17.089C4.96451 16.8604 4.49426 16.9107 4.23615 17.2347Z",fill:t})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_11802_82850",children:(0,r.jsx)("rect",{fill:t,height:"20",width:"20"})})})]})}},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),a=t(29269),l=t(43449),s=t(90758),d=t(93808),f=t(38276),p=t(59533),h=t(35686),g=t(86735),v=t(15610),b=t(69419),m=t(97133),C=t(75083),x=t(28598);function y(){var e=(0,c.useState)(null),n=e[0],t=e[1],r=(0,b.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,b.iV)()["file_paths[]"]||[];Array.isArray(t)||(t=[t]),t.includes(n)||t.push(n),(0,v.u)({file_path:n,"file_paths[]":t})}),[]),y=h.ZP.files.list(),T=y.data,O=y.mutate,P=(0,c.useMemo)((function(){return(null===T||void 0===T?void 0:T.files)||[]}),[T]),S=(0,c.useRef)(null),Z=(0,c.useState)(null),E=Z[0],j=Z[1],I=(0,c.useState)([]),A=I[0],_=I[1],w=(0,c.useState)({}),R=w[0],k=w[1],N=(0,c.useMemo)((function(){return(0,x.jsx)(f.Z,{ml:1,mt:1,children:(0,x.jsx)(a.Z,{fetchFiles:O,files:P,openFile:d,ref:S,showError:t})})}),[O,P,d,t]);return(0,c.useEffect)((function(){j(i)}),[i]),(0,c.useEffect)((function(){(0,g.fS)(o,A)||_(o)}),[o,A]),(0,x.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,x.jsx)(m.rK,{secondary:!0,children:(0,x.jsx)(s.Z,{filePaths:A,filesTouched:R,selectedFilePath:E})}),pageName:C.L6.FILE_BROWSER,children:null===o||void 0===o?void 0:o.map((function(e){return(0,x.jsx)("div",{style:{display:E===e?null:"none"},children:(0,x.jsx)(u.Z,{uuid:"manage/FileEditor/".concat(decodeURIComponent(e)),children:(0,x.jsx)(l.Z,{active:E===e,filePath:e,selectedFilePath:E,setErrors:t,setFilesTouched:k})})},e)}))})}y.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)(y)},19698:function(e,n,t){"use strict";var r=t(82684),i=t(35686);n.Z=function(){var e=i.ZP.statuses.list().data;return{status:(0,r.useMemo)((function(){var n;return null===e||void 0===e||null===(n=e.statuses)||void 0===n?void 0:n[0]}),[e])}}},90205:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage/files",function(){return t(83087)}])}},function(e){e.O(0,[2678,1154,844,6639,7011,3494,1557,2512,7858,5499,5283,5810,9269,1598,3449,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],{80330:function(n,t,e){"use strict";e.d(t,{TU:function(){return s},lU:function(){return R},ck:function(){return E}});var r=e(21831),u=e(17717),o=e(44425),i=e(57653),c=e(89706),a=e(86735);function T(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t||(e?null:null===n||void 0===n?void 0:n.name);if(null!==n&&void 0!==n&&n.parent){var o=[n.parent.name];return(null===r||void 0===r?void 0:r.length)>=1&&o.push(r),T(n.parent,o.join(u.sep))}return null!==n&&void 0!==n&&n.path?null===n||void 0===n?void 0:n.path:r}var A=e(81728),l=e(42122),E=function(n){var t;if(null===n||void 0===n||n.forEach((function(n){if((null===n||void 0===n?void 0:n.length)>=1){var e=null===n||void 0===n?void 0:n.toLowerCase();(e in o.qC||(e=(0,A.C5)(e))in o.GJ)&&(t=e)}})),!t){var e=["\\.".concat(c.Lu.SQL),"\\.".concat(c.Lu.YAML),"\\.".concat(c.Lu.YML)].join("|"),r=new RegExp("".concat(e,"$"));if(n.join(u.sep).match(r))return o.tf.DBT}return t};function R(){return new RegExp(Object.keys(c.nB).map((function(n){return".(".concat(n,")$")})).join("|"))}function s(n,t,e){var s,f,O=null===n||void 0===n||null===(s=n.path.match(R())[0])||void 0===s?void 0:s.split(".")[1],S=e.type===i.qL.INTEGRATION,p=(0,a.sE)(null===e||void 0===e?void 0:e.blocks,(function(n){var t=n.type;return o.tf.DATA_EXPORTER===t})),d=n.path.replace(t,"").split(u.sep),N=E(n.path.split(u.sep)),L=o.tf.DBT===N,D=(f=d)[0]===o.tf.DBT?f.slice(1).join(u.sep):function(n){return n.at(-1)}(f).split(".")[0];if(d.length>=3&&!L){var _=d.slice(1,d.length-1).join(u.sep);D="".concat(_,"/").concat(D)}var P=c.nB[O],C={configuration:(0,l.hB)({file_path:L&&o.t6.SQL===P?D:null,file_source:{path:T(n)}}),language:P,name:(0,A.wE)(D),type:N};if(N===o.tf.CUSTOM&&(C.color=o.Lq.TEAL),S){var v=(0,a.sE)(e.blocks,(function(n){var t=n.type;return o.tf.DATA_LOADER===t})),Z=(0,a.sE)(e.blocks,(function(n){var t=n.type;return o.tf.TRANSFORMER===t})),b=[];Z?b.push(Z.uuid):null!==p&&void 0!==p&&p.upstream_blocks?b.push.apply(b,(0,r.Z)(p.upstream_blocks)):v&&b.push(v.uuid),C.upstream_blocks=b}return C}},85385:function(n,t,e){"use strict";e.d(t,{Qq:function(){return s},Z7:function(){return f},cH:function(){return u},du:function(){return E},fp:function(){return l},j5:function(){return R},uM:function(){return A}});var r,u,o=e(82394),i=e(57653),c=e(82359),a=e(72473),T=e(86735),A="sideview",l=90;!function(n){n.ADDON_BLOCKS="addon_blocks",n.BLOCK_SETTINGS="block_settings",n.CALLBACKS="callbacks",n.CHARTS="charts",n.DATA="data",n.EXTENSIONS="power_ups",n.FILES="files",n.FILE_VERSIONS="file_versions",n.GRAPHS="graphs",n.INTERACTIONS="interactions",n.REPORTS="reports",n.SECRETS="secrets",n.SETTINGS="settings",n.TERMINAL="terminal",n.TREE="tree",n.VARIABLES="variables"}(u||(u={}));u.BLOCK_SETTINGS,u.CALLBACKS,u.CHARTS,u.DATA,u.EXTENSIONS,u.TREE;var E=[u.DATA];function R(n){var t,e,r,o=[{key:u.TREE,label:"Tree"},{buildLabel:function(n){var t=(n.pipeline||{}).widgets,e=void 0===t?[]:t;return(null===e||void 0===e?void 0:e.length)>=1?"Charts (".concat(e.length,")"):"Charts"},key:u.CHARTS},{buildLabel:function(n){var t=n.variables;return(null===t||void 0===t?void 0:t.length)>=1?"Variables (".concat(t.length,")"):"Variables"},key:u.VARIABLES},{buildLabel:function(n){var t=n.secrets;return(null===t||void 0===t?void 0:t.length)>=1?"Secrets (".concat(t.length,")"):"Secrets"},key:u.SECRETS}];return i.qL.PYSPARK!==(null===n||void 0===n||null===(t=n.pipeline)||void 0===t?void 0:t.type)&&o.push.apply(o,[{buildLabel:function(n){n.pipeline;return"Add-on blocks"},key:u.ADDON_BLOCKS},{buildLabel:function(n){var t=(n.pipeline||{}).extensions,e=void 0===t?{}:t,r=0;return Object.values(e).forEach((function(n){var t=n.blocks;r+=(null===t||void 0===t?void 0:t.length)||0})),r>=1?"Power ups (".concat(r,")"):"Power ups"},key:u.EXTENSIONS}]),o.push.apply(o,[{key:u.DATA,label:"Data"},{key:u.TERMINAL,label:"Terminal"},{key:u.BLOCK_SETTINGS,label:"Block settings"}]),null!==n&&void 0!==n&&null!==(e=n.project)&&void 0!==e&&null!==(r=e.features)&&void 0!==r&&r[c.d.INTERACTIONS]&&o.push({key:u.INTERACTIONS,label:"Interactions"}),o}function s(n){return(0,T.HK)(R(n),(function(n){return n.key}))}var f=(r={},(0,o.Z)(r,u.ADDON_BLOCKS,a.EJ),(0,o.Z)(r,u.BLOCK_SETTINGS,a.JG),(0,o.Z)(r,u.CALLBACKS,a.AQ),(0,o.Z)(r,u.CHARTS,a.GQ),(0,o.Z)(r,u.DATA,a.iA),(0,o.Z)(r,u.EXTENSIONS,a.Bf),(0,o.Z)(r,u.INTERACTIONS,a.yd),(0,o.Z)(r,u.SECRETS,a.Yo),(0,o.Z)(r,u.SETTINGS,a.Zr),(0,o.Z)(r,u.TERMINAL,a.oI),(0,o.Z)(r,u.TREE,a.mp),(0,o.Z)(r,u.VARIABLES,a.LO),r)},44425:function(n,t,e){"use strict";e.d(t,{$W:function(){return _},DA:function(){return L},GJ:function(){return d},HX:function(){return Z},J8:function(){return v},L8:function(){return a},LE:function(){return O},Lk:function(){return I},Lq:function(){return S},M5:function(){return N},Q3:function(){return P},Qj:function(){return b},Ut:function(){return g},V4:function(){return y},VZ:function(){return C},dO:function(){return f},f2:function(){return M},iZ:function(){return h},qC:function(){return p},t6:function(){return T},tf:function(){return s}});var r,u,o,i,c,a,T,A=e(75582),l=e(82394);function E(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function R(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?E(Object(e),!0).forEach((function(t){(0,l.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):E(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}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"}(T||(T={}));var s,f=(r={},(0,l.Z)(r,T.MARKDOWN,"MD"),(0,l.Z)(r,T.PYTHON,"PY"),(0,l.Z)(r,T.R,"R"),(0,l.Z)(r,T.SQL,"SQL"),(0,l.Z)(r,T.YAML,"YAML"),r),O=(u={},(0,l.Z)(u,T.MARKDOWN,"Markdown"),(0,l.Z)(u,T.PYTHON,"Python"),(0,l.Z)(u,T.R,"R"),(0,l.Z)(u,T.SQL,"SQL"),(0,l.Z)(u,T.YAML,"YAML"),u);!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"}(s||(s={}));var S,p=(o={},(0,l.Z)(o,s.CUSTOM,s.CUSTOM),(0,l.Z)(o,s.DBT,s.DBT),o),d=Object.entries(s).reduce((function(n,t){var e=(0,A.Z)(t,2),r=e[0],u=e[1];return R(R({},n),{},(0,l.Z)({},u,r))}),{}),N=[s.CALLBACK,s.CONDITIONAL,s.EXTENSION];!function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(S||(S={}));var L,D,_=[s.CHART,s.CUSTOM,s.DATA_EXPORTER,s.DATA_LOADER,s.SCRATCHPAD,s.SENSOR,s.MARKDOWN,s.TRANSFORMER],P=[s.CUSTOM,s.DATA_EXPORTER,s.DATA_LOADER,s.SCRATCHPAD,s.SENSOR,s.MARKDOWN,s.TRANSFORMER],C=[s.DATA_EXPORTER,s.DATA_LOADER],v=[s.DATA_EXPORTER,s.DATA_LOADER,s.TRANSFORMER],Z=[s.DATA_EXPORTER,s.DATA_LOADER,s.DBT,s.TRANSFORMER],b=[s.CHART,s.SCRATCHPAD,s.SENSOR,s.MARKDOWN],h=[s.CALLBACK,s.CHART,s.EXTENSION,s.SCRATCHPAD,s.MARKDOWN],I=[s.CUSTOM,s.DATA_EXPORTER,s.DATA_LOADER,s.SENSOR,s.TRANSFORMER];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(L||(L={})),function(n){n.BLOCK_FILE="block_file",n.CUSTOM_BLOCK_TEMPLATE="custom_block_template",n.MAGE_TEMPLATE="mage_template"}(D||(D={}));var M=[s.CUSTOM,s.DATA_EXPORTER,s.DATA_LOADER,s.TRANSFORMER],y=(i={},(0,l.Z)(i,s.CALLBACK,"Callback"),(0,l.Z)(i,s.CHART,"Chart"),(0,l.Z)(i,s.CONDITIONAL,"Conditional"),(0,l.Z)(i,s.CUSTOM,"Custom"),(0,l.Z)(i,s.DATA_EXPORTER,"Data exporter"),(0,l.Z)(i,s.DATA_LOADER,"Data loader"),(0,l.Z)(i,s.DBT,"DBT"),(0,l.Z)(i,s.EXTENSION,"Extension"),(0,l.Z)(i,s.GLOBAL_DATA_PRODUCT,"Global data product"),(0,l.Z)(i,s.MARKDOWN,"Markdown"),(0,l.Z)(i,s.SCRATCHPAD,"Scratchpad"),(0,l.Z)(i,s.SENSOR,"Sensor"),(0,l.Z)(i,s.TRANSFORMER,"Transformer"),i),g=[s.DATA_LOADER,s.TRANSFORMER,s.DATA_EXPORTER,s.SENSOR];c={},(0,l.Z)(c,s.DATA_EXPORTER,"DE"),(0,l.Z)(c,s.DATA_LOADER,"DL"),(0,l.Z)(c,s.SCRATCHPAD,"SP"),(0,l.Z)(c,s.SENSOR,"SR"),(0,l.Z)(c,s.MARKDOWN,"MD"),(0,l.Z)(c,s.TRANSFORMER,"TF")},89706:function(n,t,e){"use strict";e.d(t,{BB:function(){return E},JD:function(){return L},Lu:function(){return c},PF:function(){return p},aZ:function(){return i},d2:function(){return S},dT:function(){return a},n6:function(){return R},nB:function(){return N},oy:function(){return d},tE:function(){return s},xF:function(){return O}});var r,u,o,i,c,a,T,A=e(82394),l=e(44425);!function(n){n.DBT="dbt"}(i||(i={})),function(n){n.CSV="csv",n.JSON="json",n.MD="md",n.PY="py",n.R="r",n.SH="sh",n.SQL="sql",n.TXT="txt",n.YAML="yaml",n.YML="yml"}(c||(c={})),function(n){n.INIT_PY="__init__.py",n.METADATA_YAML="metadata.yaml",n.REQS_TXT="requirements.txt"}(a||(a={})),function(n){n.EXCLUDE_DIR_PATTERN="exclude_dir_pattern",n.EXCLUDE_PATTERN="exclude_pattern",n.PATTERN="pattern"}(T||(T={}));var E=(r={},(0,A.Z)(r,T.EXCLUDE_PATTERN,"a^"),(0,A.Z)(r,T.EXCLUDE_DIR_PATTERN,"a^"),r),R=[c.PY,c.SQL],s=[c.MD,c.PY,c.R,c.SQL,c.YAML],f=[c.JSON,c.MD,c.PY,c.R,c.SH,c.SQL,c.TXT,c.YAML,c.YML],O=new RegExp(f.map((function(n){return".".concat(n,"$")})).join("|")),S=new RegExp([c.CSV,c.JSON,c.MD,c.PY,c.R,c.SH,c.SQL,c.TXT,c.YAML,c.YML].map((function(n){return".".concat(n,"$")})).join("|")),p="charts",d="pipelines",N=(u={},(0,A.Z)(u,c.MD,l.t6.MARKDOWN),(0,A.Z)(u,c.JSON,c.JSON),(0,A.Z)(u,c.PY,l.t6.PYTHON),(0,A.Z)(u,c.R,l.t6.R),(0,A.Z)(u,c.SQL,l.t6.SQL),(0,A.Z)(u,c.TXT,"text"),(0,A.Z)(u,c.YAML,l.t6.YAML),(0,A.Z)(u,c.YML,l.t6.YAML),u),L=(o={},(0,A.Z)(o,l.t6.MARKDOWN,c.MD),(0,A.Z)(o,l.t6.PYTHON,c.PY),(0,A.Z)(o,l.t6.R,c.R),(0,A.Z)(o,l.t6.SQL,c.SQL),(0,A.Z)(o,l.t6.YAML,c.YAML),(0,A.Z)(o,"text",c.TXT),o)},72098:function(n,t,e){"use strict";var r;e.d(t,{U:function(){return r}}),function(n){n.PYSPARK="pysparkkernel",n.PYTHON3="python3"}(r||(r={}))},57653:function(n,t,e){"use strict";e.d(t,{$1:function(){return f},G7:function(){return p},LM:function(){return d},Mj:function(){return N},QK:function(){return s},RH:function(){return S},a_:function(){return D},fj:function(){return _},kA:function(){return L},qL:function(){return c},r0:function(){return O}});var r,u,o,i,c,a=e(75582),T=e(82394),A=e(72473),l=e(72098);function E(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function R(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?E(Object(e),!0).forEach((function(t){(0,T.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):E(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}!function(n){n.INTEGRATION="integration",n.PYTHON="python",n.PYSPARK="pyspark",n.STREAMING="streaming"}(c||(c={}));var s,f,O,S=(r={},(0,T.Z)(r,c.INTEGRATION,"Integration"),(0,T.Z)(r,c.PYTHON,"Python"),(0,T.Z)(r,c.PYSPARK,"PySpark"),(0,T.Z)(r,c.STREAMING,"Streaming"),r),p=(u={},(0,T.Z)(u,c.INTEGRATION,"Integration"),(0,T.Z)(u,c.PYTHON,"Standard"),(0,T.Z)(u,c.PYSPARK,"PySpark"),(0,T.Z)(u,c.STREAMING,"Streaming"),u),d="all",N=(c.PYTHON,c.INTEGRATION,c.STREAMING,o={},(0,T.Z)(o,d,A.ie),(0,T.Z)(o,c.INTEGRATION,A.YC),(0,T.Z)(o,c.PYTHON,A.El),(0,T.Z)(o,c.STREAMING,A.dB),o);!function(n){n.ACTIVE="active",n.INACTIVE="inactive",n.NO_SCHEDULES="no_schedules",n.RETRY="retry",n.RETRY_INCOMPLETE_BLOCK_RUNS="retry_incomplete_block_runs"}(s||(s={})),function(n){n.GROUP="group_by",n.HISTORY_DAYS="from_history_days",n.NO_TAGS="no_tags",n.SEARCH="search",n.STATUS="status[]",n.TAG="tag[]",n.TYPE="type[]"}(f||(f={})),function(n){n.STATUS="status",n.TAG="tag",n.TYPE="type"}(O||(O={}));var L=[s.ACTIVE,s.INACTIVE,s.NO_SCHEDULES],D=(i={},(0,T.Z)(i,c.PYTHON,l.U.PYTHON3),(0,T.Z)(i,c.PYSPARK,l.U.PYSPARK),i),_=Object.entries(D).reduce((function(n,t){var e=(0,a.Z)(t,2),r=e[0],u=e[1];return R(R({},n),{},(0,T.Z)({},u,r))}),{})},92677:function(n,t,e){"use strict";var r=e(82684),u=e(38626),o=e(97618),i=e(55485),c=e(28598),a=u.default.div.withConfig({displayName:"ButtonGroup__ButtonGroupStyle",componentId:"sc-15vbmc8-0"})([""]),T=u.default.div.withConfig({displayName:"ButtonGroup__VerticalDivider",componentId:"sc-15vbmc8-1"})(["width:1px;"]);t.Z=function(n){var t=n.children,e=n.divider,u=r.Children.toArray(t).length;return(0,c.jsx)(a,{children:(0,c.jsx)(i.ZP,{children:r.Children.map(t,(function(n,t){return n&&(0,c.jsxs)(o.Z,{children:[t>=1&&e&&(0,c.jsx)(T,{}),r.cloneElement(n,{borderRadiusLeft:u>=2&&0===t,borderRadiusRight:u>=2&&t===u-1,halfPaddingLeft:u>=2&&0!==t,halfPaddingRight:u>=2&&t!==u-1,noBorder:u>=2&&t>0&&t<u-1,noBorderRight:u>=2&&t!==u-1})]},"button-group-child-".concat(t))}))})})}},27216:function(n,t,e){"use strict";e.r(t);var r=e(77837),u=e(38860),o=e.n(u),i=e(82684),c=e(43449),a=e(93808),T=e(59533),A=e(75083),l=e(28598);function E(){var n=(0,i.useState)(null),t=n[0];n[1];return(0,l.jsx)(T.Z,{breadcrumbs:[{label:function(){return"Workspaces"},linkProps:{as:"/manage",href:"/manage"}},{bold:!0,label:function(){return"Settings"}}],errors:t,pageName:A.L6.SETTINGS,children:(0,l.jsx)(c.Z,{active:!0,filePath:"metadata.yaml",selectedFilePath:"metadata.yaml",setFilesTouched:function(){return null}})})}E.getInitialProps=(0,r.Z)(o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{});case 1:case"end":return n.stop()}}),n)}))),t.default=(0,a.Z)(E)},1116:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage/settings",function(){return e(27216)}])}},function(n){n.O(0,[2678,1154,844,6639,3494,1557,2512,5810,1598,3449,9774,2888,179],(function(){return t=1116,n(n.s=t);var t}));var t=n.O();_N_E=t}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4496],{5178:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return N}});var t=n(77837),u=n(38860),o=n.n(u),i=n(82684),s=n(34376),a=n(93808),l=n(38276),c=n(36043),d=n(75582),v=n(21831),f=n(82394),p=n(21764),m=n(69864),b=n(71180),h=n(44085),w=n(75499),_=n(30160),j=n(35686),O=n(86735),g=n(72619),y=n(28598);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 Z(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,f.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}var k=function(e){e.fetchUser;var r=e.user,n=e.workspaces,t=(0,s.useRouter)(),u=(0,i.useState)(),o=u[0],a=u[1],c=(0,i.useState)(!0),P=c[0],k=c[1];(0,i.useEffect)((function(){r&&a(r)}),[r]);var x=null===n||void 0===n?void 0:n.map((function(e){return e.project_uuid})),E=j.ZP.roles.list({entity:"project",entity_ids:x},{},{}),S=E.data,D=(E.mutate,(0,i.useMemo)((function(){var e=(null===S||void 0===S?void 0:S.roles)||[];return null===e||void 0===e?void 0:e.reduce((function(e,r){var n=r.permissions[0].entity_id,t=e[n]||[];return Z(Z({},e),{},(0,f.Z)({},n,[].concat((0,v.Z)(t),[r])))}),{})}),[S])),M=(0,i.useMemo)((function(){var e=o||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,u=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 Z(Z({},e),{},(0,f.Z)({},u,r))}),{})}),[o,r]),N=(0,m.Db)(j.ZP.users.useUpdate(null===r||void 0===r?void 0:r.id),{onSuccess:function(e){return(0,g.wD)(e,{callback:function(){t.push("/manage/users")},onErrorCallback:function(e){var r=e.error,n=r.errors,t=r.exception,u=r.message,o=r.type;p.Am.error((null===n||void 0===n?void 0:n.error)||t||u,{position:p.Am.POSITION.BOTTOM_RIGHT,toastId:o})}})}}),U=(0,d.Z)(N,2),C=U[0],I=U[1].isLoading;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(l.Z,{p:2,children:(0,y.jsx)(b.ZP,{disabled:P,loading:I,onClick:function(){var e,r=Z(Z({},o),{},{roles_new:null===o||void 0===o||null===(e=o.roles_new)||void 0===e?void 0:e.map((function(e){return e.id}))});C({user:r})},primary:!0,children:"Update workspace roles"})}),(0,y.jsx)(w.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===D||void 0===D?void 0:D[n])||[],u=null===M||void 0===M?void 0:M[n];return[(0,y.jsx)(_.ZP,{bold:!0,children:r},"name"),(0,y.jsx)(h.Z,{onChange:function(e){k(!1);var r=(0,O.sE)(t,(function(r){return r.id==e.target.value}));r&&a((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)})))||[],u={roles_new:[].concat((0,v.Z)(t),[r])};return Z(Z({},e),u)}))},placeholder:"No access",primary:!0,setContentOnMount:!0,value:null===u||void 0===u?void 0:u.id,children:t.map((function(e){var r=e.id,n=e.name;return(0,y.jsx)("option",{value:r,children:n},n)}))},"project_role")]}))})]})},x=n(59533),E=n(70515),S=n(14875),D=n(75083);function M(e){var r=e.user,n=(0,s.useRouter)(),t=(0,i.useState)(null),u=t[0],o=t[1],a=null===r||void 0===r?void 0:r.id,d=j.ZP.users.detail(a),v=d.data,f=d.mutate,p=j.ZP.statuses.list().data,m=(0,i.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,i.useMemo)((function(){return null===v||void 0===v?void 0:v.user}),[v]);(0,i.useEffect)((function(){(0,g.bB)(v,o)}),[v]);var h=j.ZP.workspaces.list({cluster_type:m,user_id:a},{refreshInterval:5e3,revalidateOnFocus:!0}).data,w=(0,i.useMemo)((function(){return(0,y.jsx)(l.Z,{p:E.cd,children:(0,y.jsx)(c.Z,{hideFields:[S.s7],onDeleteSuccess:function(){return n.push("/manage/users")},onSaveSuccess:function(){return n.push("/manage/users")},showDelete:!0,title:"Edit user",user:b})})}),[n,b]),_=(0,i.useMemo)((function(){return null===h||void 0===h?void 0:h.workspaces}),[h]);return(0,y.jsx)(x.Z,{before:w,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:u,pageName:D.L6.USERS,children:(0,y.jsx)(k,{fetchUser:f,user:b,workspaces:_})})}M.getInitialProps=function(){var e=(0,t.Z)(o().mark((function e(r){var n;return o().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 N=(0,a.Z)(M)},11976:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage/users/[user]",function(){return n(5178)}])}},function(e){e.O(0,[2678,1154,844,3494,1557,2512,7858,5499,1598,6043,9774,2888,179],(function(){return r=11976,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
|