mage-ai 0.9.57__py3-none-any.whl → 0.9.59__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mage-ai might be problematic. Click here for more details.
- mage_ai/ai/constants.py +1 -0
- mage_ai/ai/generator.py +7 -0
- mage_ai/ai/llm_pipeline_wizard.py +13 -0
- mage_ai/ai/openai_client.py +9 -1
- mage_ai/api/logging.py +11 -7
- mage_ai/api/policies/BlockPolicy.py +1 -0
- mage_ai/api/policies/CacheItemPolicy.py +16 -3
- mage_ai/api/policies/CommandCenterItemPolicy.py +56 -0
- mage_ai/api/policies/CustomTemplatePolicy.py +0 -3
- mage_ai/api/policies/GitBranchPolicy.py +8 -1
- mage_ai/api/policies/GitFilePolicy.py +1 -0
- mage_ai/api/policies/PipelinePolicy.py +2 -0
- mage_ai/api/policies/PipelineSchedulePolicy.py +1 -0
- mage_ai/api/policies/VersionControlBranchPolicy.py +98 -0
- mage_ai/api/policies/VersionControlFilePolicy.py +96 -0
- mage_ai/api/policies/VersionControlProjectPolicy.py +92 -0
- mage_ai/api/policies/VersionControlRemotePolicy.py +94 -0
- mage_ai/api/presenters/CommandCenterItemPresenter.py +19 -0
- mage_ai/api/presenters/GitBranchPresenter.py +2 -0
- mage_ai/api/presenters/GitCustomBranchPresenter.py +1 -0
- mage_ai/api/presenters/PipelinePresenter.py +5 -5
- mage_ai/api/presenters/PipelineSchedulePresenter.py +4 -0
- mage_ai/api/presenters/VersionControlBranchPresenter.py +15 -0
- mage_ai/api/presenters/VersionControlFilePresenter.py +15 -0
- mage_ai/api/presenters/VersionControlProjectPresenter.py +14 -0
- mage_ai/api/presenters/VersionControlRemotePresenter.py +15 -0
- mage_ai/api/resources/BlockResource.py +110 -80
- mage_ai/api/resources/CacheItemResource.py +88 -0
- mage_ai/api/resources/CommandCenterItemResource.py +29 -0
- mage_ai/api/resources/FileResource.py +15 -1
- mage_ai/api/resources/FolderResource.py +2 -1
- mage_ai/api/resources/GitBranchResource.py +183 -108
- mage_ai/api/resources/GitCustomBranchResource.py +9 -2
- mage_ai/api/resources/GitFileResource.py +26 -13
- mage_ai/api/resources/KernelResource.py +9 -1
- mage_ai/api/resources/LogResource.py +1 -1
- mage_ai/api/resources/OauthResource.py +4 -5
- mage_ai/api/resources/PipelineResource.py +71 -38
- mage_ai/api/resources/PipelineRunResource.py +7 -2
- mage_ai/api/resources/ProjectResource.py +1 -2
- mage_ai/api/resources/PullRequestResource.py +12 -3
- mage_ai/api/resources/SearchResultResource.py +4 -4
- mage_ai/api/resources/VersionControlBranchResource.py +85 -0
- mage_ai/api/resources/VersionControlFileResource.py +65 -0
- mage_ai/api/resources/VersionControlProjectResource.py +46 -0
- mage_ai/api/resources/VersionControlRemoteResource.py +64 -0
- mage_ai/authentication/oauth/constants.py +13 -16
- mage_ai/authentication/operation_history/models.py +11 -32
- mage_ai/authentication/operation_history/utils.py +14 -14
- mage_ai/authentication/permissions/constants.py +5 -0
- mage_ai/authentication/providers/active_directory.py +2 -2
- mage_ai/authentication/providers/bitbucket.py +2 -2
- mage_ai/authentication/providers/constants.py +6 -12
- mage_ai/authentication/providers/ghe.py +2 -2
- mage_ai/authentication/providers/google.py +2 -2
- mage_ai/authentication/providers/okta.py +2 -2
- mage_ai/cache/base.py +11 -3
- mage_ai/cache/block.py +116 -32
- mage_ai/cache/block_action_object/__init__.py +52 -43
- mage_ai/cache/constants.py +1 -0
- mage_ai/cache/dbt/utils.py +31 -10
- mage_ai/cache/file.py +114 -0
- mage_ai/cache/models.py +2 -0
- mage_ai/cache/pipeline.py +34 -8
- mage_ai/cache/tag.py +51 -10
- mage_ai/cache/utils.py +44 -3
- mage_ai/cluster_manager/kubernetes/workload_manager.py +9 -1
- mage_ai/command_center/__init__.py +0 -0
- mage_ai/command_center/applications/__init__.py +0 -0
- mage_ai/command_center/applications/constants.py +96 -0
- mage_ai/command_center/applications/factory.py +54 -0
- mage_ai/command_center/blocks/__init__.py +0 -0
- mage_ai/command_center/blocks/factory.py +39 -0
- mage_ai/command_center/blocks/utils.py +127 -0
- mage_ai/command_center/constants.py +66 -0
- mage_ai/command_center/factory.py +161 -0
- mage_ai/command_center/files/__init__.py +0 -0
- mage_ai/command_center/files/constants.py +235 -0
- mage_ai/command_center/files/factory.py +86 -0
- mage_ai/command_center/models.py +442 -0
- mage_ai/command_center/pipeline_runs/__init__.py +0 -0
- mage_ai/command_center/pipeline_runs/utils.py +141 -0
- mage_ai/command_center/pipelines/__init__.py +0 -0
- mage_ai/command_center/pipelines/constants.py +118 -0
- mage_ai/command_center/pipelines/factory.py +132 -0
- mage_ai/command_center/pipelines/utils.py +120 -0
- mage_ai/command_center/service.py +45 -0
- mage_ai/command_center/settings.py +37 -0
- mage_ai/command_center/support/__init__.py +0 -0
- mage_ai/command_center/support/constants.py +46 -0
- mage_ai/command_center/triggers/__init__.py +0 -0
- mage_ai/command_center/triggers/factory.py +49 -0
- mage_ai/command_center/triggers/utils.py +463 -0
- mage_ai/command_center/utils.py +30 -0
- mage_ai/data_preparation/executors/azure_container_instance_executor.py +1 -1
- mage_ai/data_preparation/executors/block_executor.py +68 -19
- mage_ai/data_preparation/executors/ecs_block_executor.py +2 -2
- mage_ai/data_preparation/executors/executor_factory.py +2 -0
- mage_ai/data_preparation/executors/gcp_cloud_run_block_executor.py +1 -1
- mage_ai/data_preparation/executors/k8s_block_executor.py +2 -2
- mage_ai/data_preparation/executors/pyspark_block_executor.py +7 -1
- mage_ai/data_preparation/git/__init__.py +29 -11
- mage_ai/data_preparation/git/api.py +14 -13
- mage_ai/data_preparation/git/clients/base.py +4 -8
- mage_ai/data_preparation/git/clients/github.py +1 -0
- mage_ai/data_preparation/git/utils.py +5 -7
- mage_ai/data_preparation/models/block/__init__.py +556 -329
- mage_ai/data_preparation/models/block/content.py +111 -0
- mage_ai/data_preparation/models/block/data_integration/mixins.py +1 -0
- mage_ai/data_preparation/models/block/dbt/block.py +30 -20
- mage_ai/data_preparation/models/block/dbt/block_sql.py +93 -257
- mage_ai/data_preparation/models/block/dbt/block_yaml.py +81 -158
- mage_ai/data_preparation/models/block/dbt/constants.py +12 -0
- mage_ai/data_preparation/models/block/dbt/dbt_adapter.py +23 -10
- mage_ai/data_preparation/models/block/dbt/dbt_cli.py +124 -612
- mage_ai/data_preparation/models/block/dbt/profiles.py +19 -15
- mage_ai/data_preparation/models/block/dbt/project.py +3 -0
- mage_ai/data_preparation/models/block/dynamic/constants.py +0 -0
- mage_ai/data_preparation/models/block/dynamic/dynamic_child.py +507 -47
- mage_ai/data_preparation/models/block/dynamic/utils.py +432 -1
- mage_ai/data_preparation/models/block/platform/mixins.py +68 -44
- mage_ai/data_preparation/models/block/r/__init__.py +19 -9
- mage_ai/data_preparation/models/block/sql/__init__.py +33 -18
- mage_ai/data_preparation/models/block/sql/utils/shared.py +4 -1
- mage_ai/data_preparation/models/block/utils.py +176 -71
- mage_ai/data_preparation/models/constants.py +7 -0
- mage_ai/data_preparation/models/file.py +23 -4
- mage_ai/data_preparation/models/pipeline.py +20 -8
- mage_ai/data_preparation/models/project/__init__.py +12 -7
- mage_ai/data_preparation/models/project/constants.py +2 -0
- mage_ai/data_preparation/models/triggers/__init__.py +7 -0
- mage_ai/data_preparation/models/utils.py +20 -0
- mage_ai/data_preparation/models/variable.py +113 -15
- mage_ai/data_preparation/shared/utils.py +6 -3
- mage_ai/data_preparation/storage/base_storage.py +17 -0
- mage_ai/data_preparation/storage/gcs_storage.py +4 -0
- mage_ai/data_preparation/storage/local_storage.py +15 -0
- mage_ai/data_preparation/storage/s3_storage.py +4 -0
- mage_ai/data_preparation/templates/data_exporters/qdrant.py +0 -1
- mage_ai/data_preparation/templates/data_loaders/qdrant.py +2 -1
- mage_ai/data_preparation/variable_manager.py +1 -0
- mage_ai/io/base.py +4 -1
- mage_ai/io/bigquery.py +25 -16
- mage_ai/io/clickhouse.py +3 -0
- mage_ai/io/druid.py +3 -0
- mage_ai/io/mongodb.py +1 -1
- mage_ai/io/pinot.py +3 -0
- mage_ai/io/postgres.py +13 -0
- mage_ai/io/snowflake.py +4 -0
- mage_ai/io/spark.py +8 -3
- mage_ai/io/sql.py +6 -0
- mage_ai/orchestration/db/__init__.py +26 -19
- mage_ai/orchestration/db/cache.py +4 -3
- mage_ai/orchestration/db/models/schedules.py +72 -16
- mage_ai/orchestration/db/models/schedules_project_platform.py +2 -3
- mage_ai/orchestration/pipeline_scheduler_original.py +19 -11
- mage_ai/orchestration/pipeline_scheduler_project_platform.py +20 -11
- mage_ai/presenters/interactions/constants.py +1 -0
- mage_ai/presenters/interactions/models.py +4 -3
- mage_ai/presenters/pages/models/client_pages/pipeline_schedules.py +1 -1
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +11 -11
- mage_ai/server/frontend_dist/_next/static/PPQxHOmWVJ0iQFzG2rc8m/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1235.c9ed47779baccc05.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/125-029194ff22eb33a5.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1557-4f7485c2e2228f77.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2474-8e702cea23ddd16d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2479-727fa69ee9be6fab.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/26-38bc9380422f3900.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2717-3e7ea8543b3825b7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3366-420721116ea5a665.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3449-a9c98239582cd6f0.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3548-13563a1ff815f922.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3943-9e0a8ba0db34b35f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/4371-ef23f95888d6cd11.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/4632.a4171dbf46b31c7c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/523-be11ad59861d00ca.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5457-d582b00545b4cb5e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{5189.dca121eccea793be.js → 5729.0f2748e9e6dab951.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5831-2abc4063e887a03e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/6085-692d2f784c0504f2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/635-1e8857c2b6dde289.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/7022-0d52dd8868621fb0.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/7264-d05f4b7088533f6f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/7361-b3d661ec743bfadf.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/737-cc6467310a130dd9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{4495-4f0340aa82e0c623.js → 7674-9ec4fe64b5bf64d5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8038-85d715c8c8394827.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8095-bdce03896ef9639a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8146-6bed4e7401e067e6.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8192-0c0b91523a38c4ca.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8432-f736d101fc6d9215.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8513-d207733b485c8d03.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9264-7cd9cd0ba86ec5e4.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9265-d2a1aaec75ec69b8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9440-54add041c392517f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9624-59b2f803f9c88cd6.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9832-67896490f6e8a014.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/bd1a647f.fe5d87096be24a62.js → frontend_dist/_next/static/chunks/bd1a647f.04f7913662092327.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/404-7cabe357906f44f2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-a11bd2ebe11b3fd2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-ffca51945cd154ef.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-3ba957769292db80.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-45679fd18b3edd82.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/[...slug]-95735a218106aa99.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-data-products-927ebbdc29529765.js → global-data-products-81d6c7fd9a9cff38.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-eb4421d51fb7368f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-a8c712e20512fede.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-f1be1d4735ba6919.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-febe676687966276.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/[user]-70efe222130490b5.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-0914c36b3c8fd59f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-4f12e989e7809ef9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-809d4c99b44991a1.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/oauth-bd8494f8875c5c97.js → frontend_dist/_next/static/chunks/pages/oauth-aa9079c8dbaea3a5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-4e30fb5b18383b71.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-5d31c3aace39182d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-85a80ee66f60a65c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-0bd74047e257e6d9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-80619dc504d0103b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-3cc8d74ff8525bfd.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-cdc379ff24ff8858.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-03396d6086003e16.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-d6d920758654f6d9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-27727bb87be506c3.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-16aab67743651a0b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-e3ca1bedb660b252.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-9d58701fe7213727.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-0041fd76ee15e49f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-780be9a2da697915.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-db8bb970b1f2273f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-a3422b0ab1dbacd7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks/[...slug]-987a1603f4201943.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks-3dc8bf89cab2722b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-43d3f2a5071b9537.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/preferences-c97b1a39b22c112a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/settings-49efb66da67554ca.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-aa5d871de1f3f7b0.js → [...slug]-5117d3555972484c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions-ee1c19d4a192ae4d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-4dc5724486ee3396.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-88d29d1774db67e4.js → [...slug]-fa095aac732368c3.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{roles-d8ca763e405cd9d1.js → roles-db6d71f8692a33e7.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-99c6a263d2ab9553.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/{[...slug]-250dfdf22bfe67e9.js → [...slug]-9d881ac0a3db9baa.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-bee414d57c4b55d7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-e7030e1a7a9e88e1.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/[...slug]-312afc9a3f8d0a4f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/templates-e5300c340aa94c6b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-fa7ca0c86142d146.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/test-bd51b3918b39329e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-5158a9d98d2459e8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-5ce099a7abb354ff.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{webpack-17c3a8f588f14cfd.js → webpack-efa55343114c8128.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/css/d1e8e64d0b07af2f.css → frontend_dist/_next/static/css/b59541b123fd7191.css} +1 -1
- mage_ai/server/frontend_dist/block-layout.html +3 -3
- mage_ai/server/frontend_dist/compute.html +11 -11
- mage_ai/server/frontend_dist/files.html +11 -11
- mage_ai/server/frontend_dist/global-data-products/[...slug].html +11 -11
- mage_ai/server/frontend_dist/global-data-products.html +11 -11
- mage_ai/server/frontend_dist/global-hooks/[...slug].html +11 -11
- mage_ai/server/frontend_dist/global-hooks.html +11 -11
- mage_ai/server/frontend_dist/index.html +3 -3
- mage_ai/server/frontend_dist/manage/files.html +11 -11
- mage_ai/server/frontend_dist/manage/settings.html +11 -11
- mage_ai/server/frontend_dist/manage/users/[user].html +11 -11
- mage_ai/server/frontend_dist/manage/users/new.html +11 -11
- mage_ai/server/frontend_dist/manage/users.html +11 -11
- mage_ai/server/frontend_dist/manage.html +11 -11
- mage_ai/server/frontend_dist/oauth.html +8 -8
- mage_ai/server/frontend_dist/overview.html +11 -11
- mage_ai/server/frontend_dist/pipeline-runs.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +3 -3
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +3 -3
- mage_ai/server/frontend_dist/pipelines.html +11 -11
- mage_ai/server/frontend_dist/platform/global-hooks/[...slug].html +11 -11
- mage_ai/server/frontend_dist/platform/global-hooks.html +11 -11
- mage_ai/server/frontend_dist/settings/account/profile.html +11 -11
- mage_ai/server/frontend_dist/settings/platform/preferences.html +11 -11
- mage_ai/server/frontend_dist/settings/platform/settings.html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/permissions.html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/roles.html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/users.html +11 -11
- mage_ai/server/frontend_dist/settings.html +3 -3
- mage_ai/server/frontend_dist/sign-in.html +40 -41
- mage_ai/server/frontend_dist/templates/[...slug].html +11 -11
- mage_ai/server/frontend_dist/templates.html +11 -11
- mage_ai/server/frontend_dist/terminal.html +11 -11
- mage_ai/server/frontend_dist/test.html +3 -3
- mage_ai/server/frontend_dist/triggers.html +11 -11
- mage_ai/server/frontend_dist/version-control.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/404.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1235.c9ed47779baccc05.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/125-029194ff22eb33a5.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1557-4f7485c2e2228f77.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2474-8e702cea23ddd16d.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2479-727fa69ee9be6fab.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/26-38bc9380422f3900.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-3e7ea8543b3825b7.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3366-420721116ea5a665.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3449-a9c98239582cd6f0.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3548-13563a1ff815f922.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-9e0a8ba0db34b35f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4371-ef23f95888d6cd11.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4632.a4171dbf46b31c7c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/523-be11ad59861d00ca.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-d582b00545b4cb5e.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{5189.dca121eccea793be.js → 5729.0f2748e9e6dab951.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5831-2abc4063e887a03e.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6085-692d2f784c0504f2.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/635-1e8857c2b6dde289.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7022-0d52dd8868621fb0.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7264-d05f4b7088533f6f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7361-b3d661ec743bfadf.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/737-cc6467310a130dd9.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{4495-4f0340aa82e0c623.js → 7674-9ec4fe64b5bf64d5.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8038-85d715c8c8394827.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8095-bdce03896ef9639a.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8146-6bed4e7401e067e6.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8192-0c0b91523a38c4ca.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8432-f736d101fc6d9215.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8513-d207733b485c8d03.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-7cd9cd0ba86ec5e4.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9265-d2a1aaec75ec69b8.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9440-54add041c392517f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9624-59b2f803f9c88cd6.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9832-67896490f6e8a014.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/bd1a647f.fe5d87096be24a62.js → frontend_dist_base_path_template/_next/static/chunks/bd1a647f.04f7913662092327.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/404-7cabe357906f44f2.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-a11bd2ebe11b3fd2.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-ffca51945cd154ef.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-3ba957769292db80.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-45679fd18b3edd82.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/[...slug]-95735a218106aa99.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-data-products-927ebbdc29529765.js → global-data-products-81d6c7fd9a9cff38.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-eb4421d51fb7368f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-a8c712e20512fede.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-f1be1d4735ba6919.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-febe676687966276.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-70efe222130490b5.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-0914c36b3c8fd59f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users-4f12e989e7809ef9.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-809d4c99b44991a1.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/oauth-bd8494f8875c5c97.js → frontend_dist_base_path_template/_next/static/chunks/pages/oauth-aa9079c8dbaea3a5.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-4e30fb5b18383b71.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-5d31c3aace39182d.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-85a80ee66f60a65c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-0bd74047e257e6d9.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-80619dc504d0103b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-3cc8d74ff8525bfd.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-cdc379ff24ff8858.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-03396d6086003e16.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-d6d920758654f6d9.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-27727bb87be506c3.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-16aab67743651a0b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-e3ca1bedb660b252.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-9d58701fe7213727.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-0041fd76ee15e49f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-780be9a2da697915.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-db8bb970b1f2273f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-a3422b0ab1dbacd7.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks/[...slug]-987a1603f4201943.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks-3dc8bf89cab2722b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-43d3f2a5071b9537.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-c97b1a39b22c112a.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/settings-49efb66da67554ca.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-aa5d871de1f3f7b0.js → [...slug]-5117d3555972484c.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions-ee1c19d4a192ae4d.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-4dc5724486ee3396.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-88d29d1774db67e4.js → [...slug]-fa095aac732368c3.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{roles-d8ca763e405cd9d1.js → roles-db6d71f8692a33e7.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-99c6a263d2ab9553.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/{[...slug]-250dfdf22bfe67e9.js → [...slug]-9d881ac0a3db9baa.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-bee414d57c4b55d7.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-e7030e1a7a9e88e1.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-312afc9a3f8d0a4f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates-e5300c340aa94c6b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-fa7ca0c86142d146.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-bd51b3918b39329e.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-5158a9d98d2459e8.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-5ce099a7abb354ff.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{webpack-b55fe1e575d8ac9d.js → webpack-bd35e1c7bd7b5a9a.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/css/d1e8e64d0b07af2f.css → frontend_dist_base_path_template/_next/static/css/b59541b123fd7191.css} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/do4WOsw7lNhouR0mtPTFi/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/block-layout.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/compute.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/files.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/global-data-products.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/global-hooks.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/index.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/manage/files.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/manage/settings.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/manage/users.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/manage.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/oauth.html +8 -8
- mage_ai/server/frontend_dist_base_path_template/overview.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +3 -3
- mage_ai/server/frontend_dist_base_path_template/pipelines.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/platform/global-hooks/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/platform/global-hooks.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/platform/preferences.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/platform/settings.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/sign-in.html +40 -41
- mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/templates.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/terminal.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/test.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/triggers.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/version-control.html +11 -11
- mage_ai/server/logger.py +8 -2
- mage_ai/server/server.py +18 -1
- mage_ai/services/aws/ecs/config.py +3 -3
- mage_ai/services/aws/ecs/ecs.py +2 -2
- mage_ai/services/search/block_action_objects.py +59 -5
- mage_ai/settings/models/configuration_option.py +3 -1
- mage_ai/settings/platform/__init__.py +64 -20
- mage_ai/settings/platform/utils.py +4 -1
- mage_ai/settings/repo.py +5 -4
- mage_ai/shared/custom_logger.py +213 -0
- mage_ai/shared/environments.py +4 -0
- mage_ai/shared/files.py +52 -1
- mage_ai/shared/models.py +2 -1
- mage_ai/shared/parsers.py +8 -1
- mage_ai/shared/path_fixer.py +62 -5
- mage_ai/shared/retry.py +4 -0
- mage_ai/shared/strings.py +4 -0
- mage_ai/tests/api/endpoints/test_blocks.py +101 -1
- mage_ai/tests/api/operations/base/test_base_with_user_permissions.py +4 -1
- mage_ai/tests/base_test.py +21 -2
- mage_ai/tests/cache/test_pipeline_cache.py +11 -8
- mage_ai/tests/data_preparation/executors/test_block_executor.py +55 -45
- mage_ai/tests/data_preparation/git/test_api.py +4 -4
- mage_ai/tests/data_preparation/models/block/dbt/test_block.py +75 -43
- mage_ai/tests/data_preparation/models/block/dbt/test_block_sql.py +329 -320
- mage_ai/tests/data_preparation/models/block/dbt/test_block_yaml.py +298 -268
- mage_ai/tests/data_preparation/models/block/dbt/test_dbt_adapter.py +14 -4
- mage_ai/tests/data_preparation/models/block/dbt/test_dbt_cli.py +14 -11
- mage_ai/tests/data_preparation/models/block/dbt/test_profiles.py +2 -2
- mage_ai/tests/data_preparation/models/block/dbt/test_project.py +2 -2
- mage_ai/tests/data_preparation/models/block/dbt/test_sources.py +2 -2
- mage_ai/tests/data_preparation/models/block/dynamic/test_dynamic_child_block_factory.py +477 -474
- mage_ai/tests/data_preparation/models/block/dynamic/test_dynamic_helpers.py +25 -24
- mage_ai/tests/data_preparation/models/block/platform/test_mixins.py +16 -25
- mage_ai/tests/data_preparation/models/block/test_utils.py +8 -8
- mage_ai/tests/data_preparation/models/test_block.py +6 -8
- mage_ai/tests/data_preparation/models/test_project.py +10 -5
- mage_ai/tests/data_preparation/models/test_variable.py +51 -4
- mage_ai/tests/orchestration/test_pipeline_scheduler_project_platform.py +1 -0
- mage_ai/version_control/__init__.py +0 -0
- mage_ai/version_control/models.py +288 -0
- {mage_ai-0.9.57.dist-info → mage_ai-0.9.59.dist-info}/METADATA +49 -47
- {mage_ai-0.9.57.dist-info → mage_ai-0.9.59.dist-info}/RECORD +504 -486
- mage_ai/server/frontend_dist/_next/static/A7VXVGKgLQCukXcjdysDz/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1124-09b283a2f26cc576.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1154-2f262f7eb38ebaa1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1235.53172e14801844e5.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1557-724bfc3eabd095f7.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/161-33f26e485ddef393.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1751-5adf859690505d7b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1821-953efd0da290d25f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2474-352ae192b826d896.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2646-78905b899b68f4eb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2717-477f64b5e272d5a3.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2852872c-15b31a7081e6a868.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2920.86a65e5f26ff1795.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3004-9fff558eeede3a83.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/341-ef0f7b98b7f69802.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3419-b8bd26f5946bec5a.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3437-ce26fc28e114b44e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3540-9bb48b08f439d0a0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3745-61b1c63bb56bb670.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3859-ba594d21a1260cd2.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3943-a49377acc514e77f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5283-8d1dacb2eeb9e652.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5457-b373ebdf4d05d8e2.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5499-261cfa2410506eb4.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5533-3455832bc3f8429b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5729-9d8204ab91da631d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5810-addfa3491ae6b01c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5820-28adeabb5cda2b96.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5896-7b8e36634d7d94eb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6043-728790621ca9014c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6285-648f9a732e100b2f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6563-5b3b97c9088baf69.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6639-74eefed142e14ea6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6965-c613d1834c8ed92d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7022-1c1c93b6222d48f9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7361-559f4d2eca379217.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7858-26a5a5d04fa3c703.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8146-7fc9ef7d0202e6ab.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8264-68db2a8334ad48f1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8432-0ace6fb7bdbc6864.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/844-1e171f361e63b36d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8731-82571147875a2d58.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/874-d9e1b3c9c00ebac9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8998-e46ae0a83be32d42.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9264-5df6e4c7b1e85c02.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9302-913007e2f801ad65.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9440-c51bf1e8f271cb25.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9624-89a4b20eb3b3c754.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/976-0a8c2c4d7acd957b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/404-5ddd12931e0e3e41.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-4c0239ca6203e827.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-d40babdbf465a7e1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-822e66aa2e90cf4c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-373217c5de51aeef.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/[...slug]-0325e76a2f3e08c1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-a172f5a447bd8925.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-97bec2ac883e0c26.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-02d001d99eeaae3f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-2e577bfd4f0db2b7.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/[user]-1827574a4ba95a72.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-a913c361bcc0d1a9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-4e6fdcbbfc931d67.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-1c327edcf05df9c9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-5a98e6a531410afb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-1442183d13edec2e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-38b2241cdd10320c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-1c646dbef65d6a69.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-35cb916a18ac4e1f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-cd1918632dfef29d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-67b0572c84db0940.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-40201b626ea3a664.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-d1f23308effebe03.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-9a116d88f00916ff.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-2d5abcd019d4bea1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-5363a7ae9afe8983.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-931a1b3112866a72.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-5ec5367cb877db38.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-8366661f8e2b2959.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-378f8dada7d0c1dd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-627be24ef4963cfb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks/[...slug]-814bbd11e10c26dc.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks-021ec25e05862f8f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-2b0aa123043519b8.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/preferences-05186e17c94347c1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/settings-efe8bf1bf3177a7e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions-ce45aad47049d993.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-1bc694b056ff0bcb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-42bd909eb8951040.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-97c4ce119f7238b5.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-1af3ba18ff646dd4.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/[...slug]-ff9d49355393daea.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/templates-299a2c8f2dd89cf3.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-fb3f398009a02879.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/test-59a08e06f4ef6c3a.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-551b85802515e313.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-1362aeda4a31dd41.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1124-09b283a2f26cc576.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1154-2f262f7eb38ebaa1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1235.53172e14801844e5.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1557-724bfc3eabd095f7.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/161-33f26e485ddef393.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1751-5adf859690505d7b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1821-953efd0da290d25f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2474-352ae192b826d896.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2646-78905b899b68f4eb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-477f64b5e272d5a3.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2852872c-15b31a7081e6a868.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2920.86a65e5f26ff1795.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3004-9fff558eeede3a83.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/341-ef0f7b98b7f69802.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-b8bd26f5946bec5a.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3437-ce26fc28e114b44e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3540-9bb48b08f439d0a0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3745-61b1c63bb56bb670.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3859-ba594d21a1260cd2.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-a49377acc514e77f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5283-8d1dacb2eeb9e652.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-b373ebdf4d05d8e2.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5499-261cfa2410506eb4.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5533-3455832bc3f8429b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5729-9d8204ab91da631d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-addfa3491ae6b01c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5820-28adeabb5cda2b96.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5896-7b8e36634d7d94eb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6043-728790621ca9014c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6285-648f9a732e100b2f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6563-5b3b97c9088baf69.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6639-74eefed142e14ea6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6965-c613d1834c8ed92d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7022-1c1c93b6222d48f9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7361-559f4d2eca379217.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7858-26a5a5d04fa3c703.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8146-7fc9ef7d0202e6ab.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-68db2a8334ad48f1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8432-0ace6fb7bdbc6864.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/844-1e171f361e63b36d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8731-82571147875a2d58.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/874-d9e1b3c9c00ebac9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8998-e46ae0a83be32d42.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-5df6e4c7b1e85c02.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9302-913007e2f801ad65.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9440-c51bf1e8f271cb25.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9624-89a4b20eb3b3c754.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/976-0a8c2c4d7acd957b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/404-5ddd12931e0e3e41.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-4c0239ca6203e827.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-d40babdbf465a7e1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-822e66aa2e90cf4c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-373217c5de51aeef.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/[...slug]-0325e76a2f3e08c1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-a172f5a447bd8925.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-97bec2ac883e0c26.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-02d001d99eeaae3f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-2e577bfd4f0db2b7.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-1827574a4ba95a72.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-a913c361bcc0d1a9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users-4e6fdcbbfc931d67.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-1c327edcf05df9c9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-5a98e6a531410afb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-1442183d13edec2e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-38b2241cdd10320c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-1c646dbef65d6a69.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-35cb916a18ac4e1f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-cd1918632dfef29d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-67b0572c84db0940.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-40201b626ea3a664.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-d1f23308effebe03.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-9a116d88f00916ff.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-2d5abcd019d4bea1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-5363a7ae9afe8983.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-931a1b3112866a72.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-5ec5367cb877db38.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-8366661f8e2b2959.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-378f8dada7d0c1dd.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-627be24ef4963cfb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks/[...slug]-814bbd11e10c26dc.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks-021ec25e05862f8f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-2b0aa123043519b8.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-05186e17c94347c1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/settings-efe8bf1bf3177a7e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions-ce45aad47049d993.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-1bc694b056ff0bcb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-42bd909eb8951040.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-97c4ce119f7238b5.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-1af3ba18ff646dd4.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-ff9d49355393daea.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates-299a2c8f2dd89cf3.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-fb3f398009a02879.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-59a08e06f4ef6c3a.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-551b85802515e313.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-1362aeda4a31dd41.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/wSRrM15xnvA8lOWcaque7/_buildManifest.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{A7VXVGKgLQCukXcjdysDz → PPQxHOmWVJ0iQFzG2rc8m}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{wSRrM15xnvA8lOWcaque7 → do4WOsw7lNhouR0mtPTFi}/_ssgManifest.js +0 -0
- {mage_ai-0.9.57.dist-info → mage_ai-0.9.59.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.57.dist-info → mage_ai-0.9.59.dist-info}/WHEEL +0 -0
- {mage_ai-0.9.57.dist-info → mage_ai-0.9.59.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.57.dist-info → mage_ai-0.9.59.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1557],{54750:function(e,n,t){var i=t(82394),r=t(12691),o=t.n(r),l=t(55485),c=t(48670),a=t(44085),s=t(38276),u=t(4190),d=t(30160),h=t(72473),f=t(70515),p=t(28598),v=t(82684);function m(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?m(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.breadcrumbs,t=e.noMarginLeft,i=n.length,r=[];return n.forEach((function(e,n){var m=e.bold,g=e.danger,j=e.label,b=e.linkProps,y=e.loading,Z=e.monospace,C=void 0===Z||Z,M=e.onClick,w=e.options,_=j();i>=2&&n>=1&&r.push((0,p.jsx)(s.Z,{mx:1,children:(0,p.jsx)(h.ChevronRight,{muted:!0})},"divider-".concat(_)));var O=(0,p.jsx)(d.ZP,{bold:m,danger:g,default:!m,monospace:C,children:_});if((null===w||void 0===w?void 0:w.length)>=1){var F,k,H=null===w||void 0===w?void 0:w.find((function(e){return!!e.selected}));if(H)(F=((null===H||void 0===H||null===(k=H.uuid)||void 0===k?void 0:k.length)||0)*f.ro)&&(F+=3*f.iI,y&&(F+=2*f.iI));O=(0,p.jsx)(l.ZP,{alignItems:"center",children:(0,p.jsx)(a.Z,{afterIcon:y?(0,p.jsx)(u.Z,{inverted:!0,small:!0}):null,danger:g,defaultTextColor:!m,maxWidth:F||null,monospace:C,noBackground:!0,noBorder:!0,onChange:function(e){var n,t=e.target.value,i=null===w||void 0===w?void 0:w.find((function(e){return e.uuid===t}));i&&null!==i&&void 0!==i&&i.onClick&&(null===i||void 0===i||null===(n=i.onClick)||void 0===n||n.call(i,t))},paddingHorizontal:0,paddingVertical:0,value:(null===H||void 0===H?void 0:H.uuid)||"",children:null===w||void 0===w?void 0:w.map((function(e){var n=e.label,t=e.selected,i=e.uuid,r=n?null===n||void 0===n?void 0:n():i;return(0,p.jsx)("option",{value:i,children:t?i:r},i)}))})})}var P=(0,p.jsx)(s.Z,{ml:t||0!==n?0:2,children:O},"breadcrumb-".concat(_));b?P=(0,v.createElement)(o(),x(x({},b),{},{key:"breadcrumb-link-".concat(_),passHref:!0}),(0,p.jsx)(c.Z,{block:!0,default:!m,noOutline:!0,sameColorAsText:m,children:P})):M&&(P=(0,p.jsx)(c.Z,{block:!0,default:!m,noOutline:!0,onClick:M,preventDefault:!0,sameColorAsText:m,children:P})),r.push(P)})),(0,p.jsx)(l.ZP,{alignItems:"center",children:r})}},28026:function(e,n,t){t.d(n,{Z:function(){return P}});var i=t(82394),r=t(89565),o=t.n(r),l=t(82684),c=t(40761),a=t(50724),s=t(30160),u=t(25976),d=t(44897),h=t(70515),f=t(47041),p=(0,u.css)([""," ",""],(function(e){return!e.width&&"\n width: 100%;\n "}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")})),v=u.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-11d4rgl-0"})([""," "," height:100%;overflow:auto;position:absolute;",""],p,f.w5,(function(e){return"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),m=u.default.div.withConfig({displayName:"indexstyle__InnerStyle",componentId:"sc-11d4rgl-1"})([""," padding:","px;"],p,h.cd*h.iI),x=(u.default.div.withConfig({displayName:"indexstyle__LineStyle",componentId:"sc-11d4rgl-2"})(["height:","px;"],20),(0,u.css)(["@keyframes cursor-blink{0%{opacity:0;}}::before{","}::after{","}"],(function(e){return e.focusBeginning&&"\n position: absolute;\n background-color: ".concat((e.theme.accent||d.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(h.iI,"px;\n opacity: 0.3;\n ")}),(function(e){return e.focused&&"\n background-color: ".concat((e.theme.accent||d.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(h.iI,"px;\n opacity: 0.3;\n ")}))),g=u.default.div.withConfig({displayName:"indexstyle__InputStyle",componentId:"sc-11d4rgl-3"})(["align-items:center;display:flex;gap:2px;",""],x),j=u.default.span.withConfig({displayName:"indexstyle__CharacterStyle",componentId:"sc-11d4rgl-4"})([""," ::after{","}"],x,(function(e){return e.focused&&"\n position: absolute;\n "})),b=t(48339),y=t(39643),Z=t(11498),C=t(42041),M=t(95924),w=t(44688),_=t(28598);function O(e,n){var t="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"===typeof e)return F(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return F(e,n)}(e))||n&&e&&"number"===typeof e.length){t&&(e=t);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return l=e.done,e},e:function(e){c=!0,o=e},f:function(){try{l||null==t.return||t.return()}finally{if(c)throw o}}}}function F(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}function k(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function H(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,i.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}var P=function(e){var n=e.lastMessage,t=e.onFocus,i=e.sendMessage,r=e.uuid,u=void 0===r?"terminal":r,d=e.width,h=(0,l.useRef)(null),f=(0,l.useRef)(null),p=(0,l.useState)(""),x=p[0],F=p[1],k=(0,l.useState)(0),P=k[0],I=k[1],E=(0,l.useState)(0),z=E[0],D=E[1],S=(0,l.useState)([]),T=S[0],A=S[1],L=(0,l.useState)(!1),R=L[0],N=L[1],B=(0,l.useState)(),U=B[0],G=B[1],Y=(0,l.useMemo)((function(){return new c.Z}),[]),W=(0,l.useMemo)((function(){return{api_key:Z.lG,token:Y.decodedToken.token}}),[Y]);(0,l.useEffect)((function(){if(n){var e=JSON.parse(n.data);G((function(n){var t=n||"";return"stdout"===e[0]?t+e[1]:t}))}}),[n]);var X=(0,l.useMemo)((function(){return U?U.split("\n").filter((function(e){return!e.includes("# Mage terminal settings command")})).map((function(e){return{data:e,type:b.Gi.TEXT}})):[]}),[U]);(0,l.useEffect)((function(){if(h.current&&f.current){var e=f.current.getBoundingClientRect().height;h.current.scrollTo(0,e)}}),[x,X,h,f]);var V=(0,w.y)(),J=V.registerOnKeyDown,Q=V.setDisableGlobalKeyboardShortcuts,q=V.unregisterOnKeyDown;(0,l.useEffect)((function(){return function(){q(u)}}),[q,u]);var K=(0,l.useCallback)((function(){D((function(e){return e>0?e-1:e}))}),[]),$=(0,l.useCallback)((function(){D((function(e){return e<x.length?e+1:e}))}),[x]),ee=(0,l.useCallback)((function(e){i(JSON.stringify(H(H({},W),{},{command:["stdin",e]}))),i(JSON.stringify(H(H({},W),{},{command:["stdin","\r"]}))),(null===e||void 0===e?void 0:e.length)>=2&&(I(T.length+1),A((function(n){return n.concat(e)})),D(0)),F("")}),[T,i,F,A,I,D]),ne=(0,l.useCallback)((function(e){var n=(null===e||void 0===e?void 0:e.split(/\n/))||[];if(n.length>1){var t=n.slice(0,-1);ee(x+t.join("\n"));var i=(n.slice(-1)[0]||"").trim();F(i),D(i.length)}else F((function(n){return n+e})),D(x.length+e.length)}),[x,ee,F,D]);J(u,(function(e,n,t){var r=e.code,o=e.key;if(R)if((0,M.j)(e),(0,C.y)([y.PQ,y.VS],n))(null===x||void 0===x?void 0:x.length)>=0&&(i(JSON.stringify(H(H({},W),{},{command:["stdin",x]}))),i(JSON.stringify(H(H({},W),{},{command:["stdin","\x03"]}))),D(0)),F("");else if(y.Qj!==r||n[y.zX])if((0,C.y)([y.QK],n))K();else if((0,C.y)([y.DY],n))$();else if((0,C.y)([y.Bu],n)){if(T.length>=1){var l,c=Math.max(0,P-1);F(T[c]),I(c),D((null===(l=T[c])||void 0===l?void 0:l.length)||0)}}else if((0,C.y)([y.kD],n)){if(T.length>=1){var a=Math.min(T.length,P+1),s=T[a]||"";F(s),I(a),D(s.length)}}else if((0,C.y)([y.Uq],n))ee(x);else if((0,C.y)([y.zX,y.VS],n))navigator.clipboard.writeText(window.getSelection().toString());else if((0,C.y)([y.zX,y.Pd],n)||(0,C.y)([y.PQ,y.Pd],n)){var u,d,h,f,p;"undefined"===typeof(null===(u=navigator)||void 0===u?void 0:u.clipboard)?alert('Clipboard pasting is not allowed in insecure contexts. If your Mage deployment is not secure but you still want to use clipboard paste, you can override this setting (which should only be done temporarily) on Chrome browsers by going to "chrome://flags/#unsafely-treat-insecure-origin-as-secure", adding your origin to "Insecure origins treated as secure", and enabling that setting.'):null!==(d=navigator)&&void 0!==d&&null!==(h=d.clipboard)&&void 0!==h&&h.readText?navigator.clipboard.readText().then(ne).catch((function(e){return alert("".concat(e,'\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.'))})):null!==(f=navigator)&&void 0!==f&&null!==(p=f.clipboard)&&void 0!==p&&p.read?navigator.clipboard.read().then((function(e){var n,t=O(e);try{for(t.s();!(n=t.n()).done;){var i,r=n.value,o=O(r.types);try{for(o.s();!(i=o.n()).done;){var l=i.value;if("text/plain"===l)return r.getType(l)}}catch(c){o.e(c)}finally{o.f()}}}catch(c){t.e(c)}finally{t.f()}})).then((function(e){return e.text()})).then(ne).catch((function(e){return alert("".concat(e,'\n For Firefox, users need to allow clipboard paste by setting the "dom.events.asyncClipboard.read" preference in "about:config" to "true" and clicking "Paste" in the context menu that appears.'))})):alert('If pasting is not working properly, you may need to adjust some settings in your browser.\n\n For Firefox, users need to allow clipboard paste by setting both the "dom.events.asyncClipboard.clipboardItem" and "dom.events.asyncClipboard.read" preferences in "about:config" to "true" and clicking "Paste" in the context menu that appears.\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.\n')}else n[y.zX]||n[y.PQ]||1!==o.length||(F((function(e){return e.slice(0,z)+o+e.slice(z)})),D((function(e){return e+1})));else{var v=Math.max(0,z-1);F((function(e){return e.slice(0,v)+e.slice(z)})),D((function(e){return Math.max(0,e-1)}))}}),[x,T,P,R,F,A,I,u]);var te=(0,l.useMemo)((function(){var e;return null===(e=X[X.length-1])||void 0===e?void 0:e.data}),[X]);return(0,_.jsx)(v,{ref:h,width:d,children:(0,_.jsx)(a.Z,{isOpen:!0,onClick:function(){null===t||void 0===t||t(),N(!0),Q(!0)},onClickOutside:function(){N(!1),Q(!1)},style:{minHeight:"100%"},children:(0,_.jsxs)(m,{ref:f,width:d,children:[null===X||void 0===X?void 0:X.reduce((function(e,n,t){if(t==X.length-1)return e;var i=n||{},r=i.command,l=i.data,c=i.type,a=[];a=(a=Array.isArray(l)?l:[l]).filter((function(e){return e}));var u=[];return a.forEach((function(e,n){var i;if(b.jU.includes(c)&&(i=(0,_.jsx)(s.ZP,{monospace:!0,preWrap:!0,children:e&&(0,_.jsx)(o(),{children:e})})),i){var l="command-".concat(t,"-").concat(n,"-").concat(e);r||u.push((0,_.jsx)("div",{children:i},l))}})),e.concat(u)}),[]),(0,_.jsx)(g,{focused:R&&0===(null===x||void 0===x?void 0:x.length),children:(0,_.jsxs)(s.ZP,{monospace:!0,children:[(0,_.jsx)(s.ZP,{inline:!0,monospace:!0,children:te&&(0,_.jsx)(o(),{children:te})}),null===x||void 0===x?void 0:x.split("").map((function(e,n,t){return(0,_.jsxs)(j,{focusBeginning:R&&0===z&&0===n,focused:R&&(z===n+1||z>=t.length&&n===t.length-1),children:[" "===e&&(0,_.jsx)(_.Fragment,{children:"\xa0"}),"\n"===e&&(0,_.jsx)("br",{})," "!==e&&e]},"command-".concat(n,"-").concat(e))}))]})})]})})})}},31353:function(e,n,t){t.d(n,{Mz:function(){return a},T5:function(){return u},bf:function(){return s}});var i,r=t(82394),o=t(72473),l=t(89370),c=t(70515),a=7*c.iI,s=22,u=(c.iI,c.iI,i={},(0,r.Z)(i,l.RL.CATEGORY,o.Category),(0,r.Z)(i,l.RL.CATEGORY_HIGH_CARDINALITY,o.Categories),(0,r.Z)(i,l.RL.DATETIME,o.CalendarDate),(0,r.Z)(i,l.RL.EMAIL,o.Email),(0,r.Z)(i,l.RL.LIST,o.List),(0,r.Z)(i,l.RL.NUMBER,o.NumberHash),(0,r.Z)(i,l.RL.NUMBER_WITH_DECIMALS,o.NumberWithDecimalHash),(0,r.Z)(i,l.RL.PHONE_NUMBER,o.Phone),(0,r.Z)(i,l.RL.TEXT,o.Alphabet),(0,r.Z)(i,l.RL.TRUE_OR_FALSE,o.Binary),(0,r.Z)(i,l.RL.UUID,o.IDLetters),(0,r.Z)(i,l.RL.ZIP_CODE,o.MapPin),i)},31557:function(e,n,t){t.d(n,{Z:function(){return Ne}});var i=t(21831),r=t(75582),o=t(12691),l=t.n(o),c=t(25976),a=t(82684),s=t(69864),u=t(34376),d=t(40761),h=t(54750),f=t(71180),p=t(39867),v=t(50724),m=t(58036),x=t(97618),g=t(55485),j=t(70374),b=t(82394),y=t(56085),Z=t(70652),C=t(44085),M=t(38276),w=t(4190),_=t(28026),O=t(30160),F=t(35576),k=t(17488),H=t(69650),P=t(35686),I=t(72473),E=t(44897),z=t(42631),D=t(31353),S=t(47041),T=t(70515),A=c.default.div.withConfig({displayName:"GitActionsstyle__HeaderStyle",componentId:"sc-ynrhio-0"})(["border-bottom:1px solid #1B1C20;height:","px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;"],D.Mz),L=c.default.div.withConfig({displayName:"GitActionsstyle__TerminalStyle",componentId:"sc-ynrhio-1"})(["height:calc(75vh - ","px);position:relative;"],D.Mz),R=c.default.div.withConfig({displayName:"GitActionsstyle__PanelStyle",componentId:"sc-ynrhio-2"})(["height:75vh;min-height:300px;width:75vw;backgroundColor:#232429;border-radius:","px;",""],z.n_,(function(e){return"\n background-color: ".concat((e.theme.background||E.Z.background).panel,";\n ")})),N=c.default.div.withConfig({displayName:"GitActionsstyle__OutputStyle",componentId:"sc-ynrhio-3"})([""," padding:","px;height:calc(75vh - ","px);overflow-y:auto;"],S.w5,2*T.iI,D.Mz),B=t(4383),U=t(72619),G=t(86735),Y=t(50178),W=t(28598);function X(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function V(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,b.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}var J={clone:"Clone repository",new_branch:"Create new branch",commit:"Commit & push",pull:"Pull",reset_hard:"Hard reset"};var Q=function(e){var n,t=e.branch,i=(e.fetchBranch,(0,a.useState)()),o=i[0],l=i[1],c=(0,a.useState)(),u=c[0],d=c[1],h=(0,a.useState)(),p=h[0],v=h[1],m=(0,a.useState)(),x=m[0],j=m[1],b=(0,a.useState)(),E=b[0],z=b[1],D=(0,a.useState)(),S=D[0],T=D[1],X=P.ZP.git_custom_branches.list(),Q=X.data,q=X.mutate,K=(0,a.useMemo)((function(){return null===Q||void 0===Q?void 0:Q.git_custom_branches}),[Q]),$=P.ZP.syncs.list().data,ee=(0,a.useMemo)((function(){var e;if($)return null===(e=$.syncs)||void 0===e?void 0:e[0]}),[$]),ne=(0,s.Db)(P.ZP.git_branches.useCreate(),{onSuccess:function(e){return(0,U.wD)(e,{callback:function(){q(),window.location.reload()},onErrorCallback:function(e){var n=e.error.exception;z(n)}})}}),te=(0,r.Z)(ne,2),ie=te[0],re=te[1].isLoading,oe=(0,s.Db)((function(){return P.ZP.git_branches.useUpdate(t)({git_branch:{action_type:"status"}})}),{onSuccess:function(e){return(0,U.wD)(e,{onErrorCallback:function(e){var n=e.error.exception;z(n)}})}}),le=(0,r.Z)(oe,1)[0],ce=(0,s.Db)(P.ZP.git_branches.useUpdate(t),{onSuccess:function(e){return(0,U.wD)(e,{callback:function(){z(null),j("DONE")},onErrorCallback:function(e){var n=e.error.exception;z(n)}})}}),ae=(0,r.Z)(ce,2),se=ae[0],ue=ae[1].isLoading,de=(0,s.Db)(P.ZP.git_branches.useUpdate(t),{onSuccess:function(e){return(0,U.wD)(e,{callback:function(){z(null),window.location.reload()},onErrorCallback:function(e){var n=e.error.exception;z(n)}})}}),he=(0,r.Z)(de,2),fe=he[0],pe=he[1].isLoading,ve=(0,a.useState)(),me=ve[0],xe=ve[1],ge=(0,a.useState)([]),je=ge[0],be=ge[1],ye=(0,a.useState)([]),Ze=ye[0],Ce=ye[1],Me=(0,a.useCallback)((function(){le().then((function(e){var n=e.data,t=null===n||void 0===n?void 0:n.git_branch,i=null===t||void 0===t?void 0:t.status,r=null===t||void 0===t?void 0:t.modified_files,o=null===t||void 0===t?void 0:t.untracked_files;xe(i),be(o),Ce(r)}))}),[le]),we=(0,a.useMemo)((function(){return re||ue||pe}),[re,ue,pe]);(0,a.useEffect)((function(){return Me()}),[p,Me]);var _e=(0,a.useMemo)((function(){return(0,Y.PR)()||{}}),[]),Oe=(0,a.useMemo)((function(){var e={term_name:null!==_e&&void 0!==_e&&_e.id?"git_".concat(null===_e||void 0===_e?void 0:_e.id):"git"};return null!==ee&&void 0!==ee&&ee.repo_path&&(e.cwd=null===ee||void 0===ee?void 0:ee.repo_path),e}),[null===ee||void 0===ee?void 0:ee.repo_path,_e]),Fe=(0,y.ZP)((0,B.Ib)("terminal"),{shouldReconnect:function(){return!0}},"cwd"in Oe),ke=Fe.lastMessage,He=Fe.sendMessage,Pe=(0,a.useCallback)((function(e){return(0,W.jsx)(Z.Z,{checked:((null===o||void 0===o?void 0:o.files)||[]).includes(e),label:(0,W.jsx)(O.ZP,{small:!0,children:e}),onClick:function(){l((function(n){var t=(null===n||void 0===n?void 0:n.files)||[];return t=t.includes(e)?(0,G.Od)(t,(function(n){return n===e})):[e].concat(t),V(V({},n),{},{files:t})}))},small:!0},e)}),[o]),Ie=(0,a.useMemo)((function(){return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(f.ZP,{onClick:function(){return l((function(e){return V(V({},e),{},{files:Ze.concat(je)})}))},children:"Include all changes"}),Ze&&Ze.length>0&&(0,W.jsxs)(M.Z,{mb:1,children:[(0,W.jsx)(M.Z,{my:1,children:(0,W.jsx)(O.ZP,{children:"Modified files"})}),Ze.map(Pe)]}),je&&je.length>0&&(0,W.jsxs)(M.Z,{mb:1,children:[(0,W.jsx)(M.Z,{my:1,children:(0,W.jsx)(O.ZP,{children:"Untracked files"})}),je.map(Pe)]})]})}),[Pe,Ze,je]),Ee=(0,a.useMemo)((function(){return(0,W.jsx)(M.Z,{p:2,children:we?(0,W.jsx)(w.Z,{color:"white"}):(0,W.jsxs)(W.Fragment,{children:["commit"===p&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(F.Z,{compact:!0,fullWidth:!0,label:"Commit message",monospace:!0,onChange:function(e){return l((function(n){return V(V({},n),{},{message:e.target.value})}))},required:!0,value:null===o||void 0===o?void 0:o.message}),(0,W.jsx)(M.Z,{mt:1}),(0,W.jsxs)(g.ZP,{children:[(0,W.jsx)(f.ZP,{borderLess:!0,onClick:function(){se({git_branch:V({action_type:"commit"},o)}).then((function(){Me(),l(null)}))},success:!0,children:"Commit"}),(0,W.jsx)(M.Z,{mr:1}),(0,W.jsx)(f.ZP,{borderLess:!0,onClick:function(){se({git_branch:{action_type:"push"}})},primary:!0,children:"Push"})]})]}),"new_branch"===p&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(k.Z,{compact:!0,fullWidth:!0,label:"Branch name",monospace:!0,onChange:function(e){return l({name:e.target.value})},value:null===o||void 0===o?void 0:o.name}),(0,W.jsx)(M.Z,{mt:1}),(0,W.jsx)(f.ZP,{borderLess:!0,onClick:function(){ie({git_branch:o})},primary:!0,children:"Create"})]}),"clone"===p&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(O.ZP,{children:["Clone from ",(0,W.jsx)(O.ZP,{default:!0,inline:!0,children:null===ee||void 0===ee?void 0:ee.remote_repo_link})," to ",(0,W.jsx)(O.ZP,{default:!0,inline:!0,children:null===ee||void 0===ee?void 0:ee.repo_path}),". This ",(0,W.jsx)(O.ZP,{danger:!0,inline:!0,children:"will overwrite"})," any existing data in the local repository."]}),(0,W.jsx)(M.Z,{mt:1}),(0,W.jsx)(f.ZP,{borderLess:!0,onClick:function(){fe({git_branch:{action_type:"clone"}})},primary:!0,children:"Clone"})]}),"pull"===p&&(0,W.jsx)(f.ZP,{borderLess:!0,onClick:function(){fe({git_branch:{action_type:"pull"}})},primary:!0,children:"Pull"}),"reset_hard"===p&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(M.Z,{mb:1,children:(0,W.jsx)(O.ZP,{children:u||"This will reset your local branch to match the remote branch."})}),u?(0,W.jsx)(f.ZP,{borderLess:!0,onClick:function(){d(null),fe({git_branch:{action_type:"reset"}})},warning:!0,children:"Confirm"}):(0,W.jsx)(f.ZP,{borderLess:!0,onClick:function(){return d("Are you sure you want to reset your branch? Your local changes may be erased.")},primary:!0,children:"Reset branch"})]}),(0,W.jsx)(M.Z,{mt:1,children:!we&&(0,W.jsxs)(W.Fragment,{children:[!E&&x&&(0,W.jsx)(O.ZP,{children:x}),E&&(0,W.jsx)(O.ZP,{preWrap:!0,danger:!0,children:E})]})})]})})}),[we,p,E,ee,x,o,u,me]),ze=(0,a.useMemo)((function(){return(0,W.jsx)(_.Z,{lastMessage:ke,sendMessage:He})}),[ke,He]);return(0,W.jsxs)(R,{children:[(0,W.jsxs)(A,{children:[(0,W.jsx)(M.Z,{m:2,children:(0,W.jsxs)(g.ZP,{children:[(0,W.jsx)(C.Z,{beforeIcon:(0,W.jsx)(I.Branch,{}),compact:!0,onChange:function(e){e.preventDefault(),ie({git_branch:{name:e.target.value}})},placeholder:"Select a branch",value:t,children:null===K||void 0===K?void 0:K.map((function(e){var n=e.name;return(0,W.jsx)("option",{value:n,children:n},n)}))},"select_branch"),(0,W.jsx)(M.Z,{ml:2}),(0,W.jsxs)(C.Z,{compact:!0,onChange:function(e){e.preventDefault(),v(e.target.value),T(!1),j(null),l(null)},value:p,children:[(0,W.jsx)("option",{value:"",children:"Select an action"}),Object.entries(J).map((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];return(0,W.jsx)("option",{value:t,children:i},t)}))]},"select_git_action")]})}),(0,W.jsx)(M.Z,{m:2,children:(0,W.jsxs)(g.ZP,{alignItems:"center",children:[(0,W.jsx)(O.ZP,{children:"UI"}),(0,W.jsx)(M.Z,{ml:1}),(0,W.jsx)(H.Z,{checked:!!S,monotone:!0,onCheck:function(){return T((function(e){return!e}))}}),(0,W.jsx)(M.Z,{ml:1}),(0,W.jsx)(O.ZP,{children:"Terminal"})]})})]}),(0,W.jsxs)(g.ZP,{children:[(0,W.jsx)("div",{style:{width:"50%"},children:(0,W.jsx)(N,{children:"commit"===p?Ie:(0,W.jsx)(W.Fragment,{children:null===me||void 0===me||null===(n=me.split("\\n"))||void 0===n?void 0:n.map((function(e){return(0,W.jsx)(O.ZP,{monospace:!0,preWrap:!0,small:!0,children:e},e)}))})})}),(0,W.jsx)("div",{style:{width:"50%"},children:S?(0,W.jsx)(L,{children:ze}):Ee})]})]})},q=t(65186),K=t(93369),$=t(48670),ee=t(63637),ne=t(89515),te=t(26304),ie="12px 20px",re="1px",oe=(0,c.default)(f.ZP).withConfig({displayName:"indexstyle__ButtonStyle",componentId:"sc-hssntx-0"})(["",";"],(function(e){return e.active&&"\n background-color: ".concat((e.theme.background||E.Z.background).dashboard,";\n ")})),le=c.default.div.withConfig({displayName:"indexstyle__DropdownContainerStyle",componentId:"sc-hssntx-1"})(["position:absolute;top:",";right:0;width:","px;display:flex;flex-direction:column;gap:",";overflow:hidden;background-color:",";border-radius:","px;border:1px solid ",";"],(function(e){return e.top||0}),45*T.iI,re,(function(e){return(e.theme.borders||E.Z.borders).darkLight}),z.n_,(function(e){return(e.theme.borders||E.Z.borders).darkLight})),ce=c.default.div.withConfig({displayName:"indexstyle__DropdownHeaderStyle",componentId:"sc-hssntx-2"})(["padding:",";background-color:",";"],ie,(function(e){return(e.theme.background||E.Z.background).panel})),ae=c.default.div.withConfig({displayName:"indexstyle__TimeListContainerStyle",componentId:"sc-hssntx-3"})(["height:","px;display:flex;gap:",";"],20*T.iI,re),se=c.default.div.withConfig({displayName:"indexstyle__TimeColumnStyle",componentId:"sc-hssntx-4"})(["display:flex;flex-direction:column;align-items:center;flex:1;gap:",";"],re),ue=c.default.div.withConfig({displayName:"indexstyle__DropdownCellStyle",componentId:"sc-hssntx-5"})(["width:100%;padding:",";display:flex;flex-direction:",";flex-grow:",";justify-content:center;align-items:center;background-color:",";"],ie,(function(e){return e.flexDirection||"unset"}),(function(e){return e.flexGrow||"unset"}),(function(e){return(e.theme.background||E.Z.background).dashboard})),de=c.default.div.withConfig({displayName:"indexstyle__ToggleGroupStyle",componentId:"sc-hssntx-6"})(["display:flex;flex-direction:column;"]),he=(0,c.default)(ue).withConfig({displayName:"indexstyle__ToggleDropdownCellStyle",componentId:"sc-hssntx-7"})(["justify-content:flex-start;gap:12px;padding-right:","px;"],1.25*T.iI),fe=["active","mountedCallback","time","timeZone"];function pe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function ve(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pe(Object(t),!0).forEach((function(n){(0,b.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}function me(e){var n=e.active,t=e.mountedCallback,i=e.time,r=e.timeZone,o=(0,te.Z)(e,fe),l=(0,a.useRef)(null);return(0,a.useEffect)((function(){null!==l&&void 0!==l&&l.current&&t(l.current.offsetHeight)}),[t]),(0,W.jsx)(oe,ve(ve({},o),{},{active:n,borderLess:!0,borderRadius:"".concat(z.BG,"px"),compact:!0,highlightOnHoverAlt:!0,ref:l,transparent:!0,children:(0,W.jsx)(O.ZP,{inline:!0,monospace:!0,small:!0,children:"".concat(i," ").concat(r)})}))}var xe=(0,a.memo)(me),ge=t(12468),je=t(63055),be=t(82359),ye=t(72191),Ze=t(70320),Ce=t(79633),Me=t(3917),we=t(78419),_e=t(53808);var Oe=t(23780);function Fe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function ke(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Fe(Object(t),!0).forEach((function(n){(0,b.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Fe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var He=[Me.Oh.UTC,Me.Oh.LOCAL];var Pe=function(e){var n=e.projectName,t=(0,a.useState)((0,Ze.qB)()),i=t[0],o=t[1],l=(0,a.useState)((0,_e.U2)(we.kL,!1)),c=l[0],u=l[1],d=(0,a.useState)(!1),h=d[0],f=d[1],p=(0,a.useState)((0,Me.e)({includeSeconds:!0,timeZones:He})),m=p[0],x=p[1],g=(0,a.useState)(0),j=g[0],y=g[1],Z=i?Me.Oh.LOCAL:Me.Oh.UTC,C=window.innerWidth<je.nc,M=(0,Oe.VI)(null,{},[],{uuid:"components/ServerTimeDropdown"}),w=(0,r.Z)(M,1)[0],_=(0,s.Db)(P.ZP.projects.useUpdate(n),{onSuccess:function(e){return(0,U.wD)(e,{onErrorCallback:function(e,n){return w({errors:n,response:e})}})}}),F=(0,r.Z)(_,1)[0],k=(0,a.useCallback)((function(){f((function(e){return!e}))}),[]),I=(0,a.useCallback)((function(e){y(e)}),[]),E=(0,a.useCallback)((function(){var e=(0,Me.e)({includeSeconds:c,timeZones:He});x((function(n){return n.size===e.size&&n.get(Me.Oh.UTC)===e.get(Me.Oh.UTC)?n:e}))}),[c]),z=[{checked:i,label:"Display local timezone (requires refresh)",onCheck:function(){var e=!i;o((0,Ze.hY)(e)),F({project:{features:(0,b.Z)({},be.d.LOCAL_TIMEZONE,e)}})},uuid:be.d.LOCAL_TIMEZONE},{checked:c,label:"Include seconds in current time",onCheck:function(){var e;u((e=!c,!!(0,_e.uN)(we.kL,e)))},uuid:"current_time_seconds"}];return(0,a.useEffect)((function(){var e=setInterval((function(){E()}),1e3);return function(){return clearInterval(e)}}),[E]),(0,a.useEffect)((function(){E()}),[c,E]),m?(0,W.jsx)(v.Z,{onClickOutside:function(){return f(!1)},open:!0,children:(0,W.jsxs)("div",{style:{position:"relative"},children:[(0,W.jsx)(xe,{active:h,disabled:C,mountedCallback:I,onClick:k,time:m.get(Z),timeZone:(0,Me.WT)(Z)}),!C&&h&&(0,W.jsxs)(le,{top:j,children:[(0,W.jsx)(ce,{children:(0,W.jsx)(O.ZP,{bold:!0,muted:!0,uppercase:!0,children:"Current Time"})}),(0,W.jsx)(ae,{children:He.map((function(e){return(0,W.jsxs)(se,{children:[(0,W.jsx)(ue,{children:(0,W.jsx)(O.ZP,{bold:!0,center:!0,muted:!0,uppercase:!0,children:"".concat(e).concat(e===Me.Oh.LOCAL?" - ".concat((0,Me.WT)(e)):"")})}),(0,W.jsxs)(ue,{flexDirection:"column",flexGrow:3,children:[(0,W.jsx)(O.ZP,{bold:!0,center:!0,color:Ce.J$,largeLg:!0,children:m.get(e)}),(0,W.jsx)(O.ZP,{center:!0,muted:!0,small:!0,children:e===Me.Oh.UTC?"Universal Time":Me.mi[e]})]})]},e)}))}),(0,W.jsx)(de,{children:z.map((function(e){return(0,W.jsxs)(he,{children:[(0,W.jsx)(H.Z,{checked:e.checked,compact:!0,onCheck:e.onCheck,purpleBackground:!0}),(0,W.jsx)(O.ZP,{children:e.label}),e.uuid===be.d.LOCAL_TIMEZONE&&(0,W.jsx)(ge.Z,ke(ke({},Ze.EB),{},{appearAbove:!0,appearBefore:!0,size:ye.bL}))]},e.label)}))})]})]})}):null},Ie=t(58401),Ee=t(77417),ze=t(46684),De=c.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-y3uzxv-0"})(["padding:","px ","px;&:hover{cursor:pointer;","}",""],.5*T.iI,1.5*T.iI,(function(e){return"\n background-color: ".concat((e.theme.interactive||E.Z.interactive).hoverBackground,";\n ")}),(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||E.Z.interactive).hoverBackground,";\n ")})),Se=t(95363),Te=t(66472),Ae=t(95924),Le=t(69419),Re=t(89538);var Ne=function(e){var n,t=e.breadcrumbs,o=e.menuItems,b=e.project,y=e.version,Z=(0,Oe.VI)(null,{},[],{uuid:"shared/Header"}),C=(0,r.Z)(Z,1)[0],w=(0,a.useContext)(c.ThemeContext),_=(0,Y.PR)(),F=(0,a.useState)(!1),k=F[0],H=F[1],E=(0,a.useState)(null),z=E[0],D=E[1],S=(0,a.useState)(!1),A=S[0],L=S[1],R=(0,a.useState)(null),N=R[0],B=R[1],G=(0,a.useRef)(null),X=(0,a.useRef)(null),V=(0,u.useRouter)(),J=d.Z.isLoggedIn(),te=P.ZP.git_branches.detail("test",{_format:"with_basic_details"},{revalidateOnFocus:!1},{pauseFetch:(0,Y.YB)()&&!J}),ie=te.data,re=te.mutate,oe=(0,a.useMemo)((function(){return(null===ie||void 0===ie?void 0:ie.git_branch)||{}}),[ie]),le=oe.is_git_integration_enabled,ce=oe.name,ae=(0,Ie.Z)().design,se=(0,Ee.Z)(),ue=se.featureEnabled,de=se.featureUUIDs,he=se.project,fe=se.rootProject,pe=(0,a.useMemo)((function(){return b||he}),[he,b]),ve=(0,a.useMemo)((function(){return y||(null===pe||void 0===pe?void 0:pe.version)}),[pe,y]),me=(0,s.Db)(P.ZP.projects.useUpdate(null===pe||void 0===pe?void 0:pe.name),{onSuccess:function(e){return(0,U.wD)(e,{callback:function(){window.location.reload()},onErrorCallback:function(e,n){return C({errors:n,response:e})}})}}),xe=(0,r.Z)(me,2),ge=xe[0],je=xe[1].isLoading,be=[];if(fe&&be.push({label:function(){return null===fe||void 0===fe?void 0:fe.name},linkProps:{href:"/"}}),pe){var ye={label:function(){return null===pe||void 0===pe?void 0:pe.name}};fe?(ye.loading=je,ye.options=Object.keys((null===fe||void 0===fe?void 0:fe.projects)||{}).map((function(e){return{onClick:function(){ge({project:{activate_project:e}})},selected:e===(null===pe||void 0===pe?void 0:pe.name),uuid:e}}))):ye.linkProps={href:"/"},be.push(ye)}var Ze=(0,a.useMemo)((function(){return[].concat(be,(0,i.Z)(t||[]))}),[be,t,pe]),Me=V.query.pipeline,we=(pe||{}).latest_version,_e=(0,a.useState)(null),Fe=_e[0],ke=(_e[1],(0,a.useMemo)((function(){var e,n,t=ze.y7,i=(0,W.jsx)(q.Z,{height:ze.y7});if(null!==ae&&void 0!==ae&&null!==(e=ae.components)&&void 0!==e&&null!==(n=e.header)&&void 0!==n&&n.media){var r,o,c=null===ae||void 0===ae||null===(r=ae.components)||void 0===r||null===(o=r.header)||void 0===o?void 0:o.media;if(null!==Fe){var a=((null===Fe||void 0===Fe?void 0:Fe.width)||1)/((null===Fe||void 0===Fe?void 0:Fe.height)||1);t=ze.sQ,i=(0,W.jsx)(ze.XD,{height:ze.sQ,width:ze.sQ*a,url:(null===c||void 0===c?void 0:c.url)||(null===c||void 0===c?void 0:c.file_path)})}}return(0,W.jsx)(l(),{as:"/",href:"/",passHref:!0,children:(0,W.jsx)($.Z,{block:!0,height:t,noHoverUnderline:!0,noOutline:!0,children:i})})}),[Fe,ae])),He=[{label:function(){return"Settings"},linkProps:{href:"/settings/workspace/preferences"},uuid:"user_settings"}].concat((0,i.Z)(ue(null===de||void 0===de?void 0:de.COMMAND_CENTER)?[{label:function(){return"Launch command center"},onClick:function(e){(0,Ae.j)(e),(0,Te.WJ)()},uuid:"Launch command center"}]:[]));(0,Y.YB)()&&He.push({label:function(){return"Sign out"},onClick:function(){d.Z.logout((function(){P.ZP.sessions.updateAsyncServer(null,1).then((function(){(0,Le.nL)("/sign-in")})).catch((function(){(0,Le.nL)("/")}))}))},uuid:"sign_out"});var Ne=(0,Re.dd)((function(){return(0,W.jsx)(Q,{branch:ce,fetchBranch:re})}),{},[ce,re],{background:!0,uuid:"git_actions"}),Be=(0,r.Z)(Ne,2),Ue=Be[0],Ge=(Be[1],(0,a.useMemo)((function(){return(null===ce||void 0===ce?void 0:ce.length)>=21?"".concat(ce.slice(0,21),"..."):ce}),[ce])),Ye=(0,a.useMemo)((function(){return!(!_||null===_||void 0===_||!_.avatar)&&!/[A-Za-z0-9]+/.exec((null===_||void 0===_?void 0:_.avatar)||"")}),[_]),We=(0,a.useMemo)((function(){return!(!_||null===_||void 0===_||!_.avatar)&&!!/[A-Za-z0-9]+/.exec((null===_||void 0===_?void 0:_.avatar)||"")}),[_]),Xe=(0,a.useMemo)((function(){var e;if(!_||null===_||void 0===_||!_.avatar)return(0,W.jsx)(ee.Z,{});var n={color:null===w||void 0===w||null===(e=w.content)||void 0===e?void 0:e.active,fontFamily:Se.v$};return We?(n.fontSize=2*T.iI,n.lineHeight="".concat(2*T.iI,"px"),n.position="relative",n.top=1):n.fontSize=3*T.iI,(0,W.jsx)("div",{style:n,children:null===_||void 0===_?void 0:_.avatar})}),[We,_]);return(0,W.jsx)(ze.I5,{children:(0,W.jsx)(m.Z,{children:(0,W.jsxs)(g.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"space-between",children:[(0,W.jsxs)(x.Z,{alignItems:"center",children:[ke,(0,W.jsx)(h.Z,{breadcrumbs:Ze})]}),(0,W.jsxs)(x.Z,{alignItems:"center",children:[le&&ce&&(0,W.jsx)(M.Z,{ml:1,children:(0,W.jsx)(K.ZP,{compact:!0,highlightOnHoverAlt:!0,noBackground:!0,noHoverUnderline:!0,onClick:Ue,sameColorAsText:!0,title:ce,uuid:"Header/GitActions",children:(0,W.jsxs)(g.ZP,{alignItems:"center",children:[(0,W.jsx)(I.Branch,{size:1.5*T.iI}),(0,W.jsx)(M.Z,{ml:1}),(0,W.jsx)(O.ZP,{monospace:!0,small:!0,children:Ge})]})})}),(0,W.jsx)(M.Z,{ml:1,children:(0,W.jsx)(Pe,{projectName:null===pe||void 0===pe?void 0:pe.name})}),ve&&"undefined"!==typeof ve&&(0,W.jsx)(M.Z,{ml:2,children:(0,W.jsx)($.Z,{href:"https://www.mage.ai/changelog",monospace:!0,openNewWindow:!0,sameColorAsText:!0,small:!0,children:"v".concat(ve)})}),we&&ve&&we!==ve&&(0,W.jsx)(M.Z,{ml:1,children:(0,W.jsx)(f.ZP,{backgroundColor:Ce.$R,borderLess:!0,compact:!0,linkProps:{href:"https://docs.mage.ai/about/releases"},noHoverUnderline:!0,pill:!0,sameColorAsText:!0,target:"_blank",title:"Update to version ".concat(we),children:(0,W.jsx)(O.ZP,{black:!0,bold:!0,children:"Update"})})}),(0,W.jsx)(M.Z,{ml:3,children:(0,W.jsx)(K.ZP,{beforeElement:(0,W.jsx)(I.Slack,{}),compact:!0,highlightOnHoverAlt:!0,inline:!0,linkProps:{as:"https://www.mage.ai/chat",href:"https://www.mage.ai/chat"},noBackground:!0,noHoverUnderline:!0,openNewTab:!0,sameColorAsText:!0,uuid:"Header/live_chat",children:"Live help"})}),o&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(M.Z,{ml:2}),(0,W.jsx)(v.Z,{onClickOutside:function(){return D(null)},open:!0,style:{position:"relative"},children:(0,W.jsxs)(g.ZP,{children:[(0,W.jsx)(De,{highlighted:0===z,onClick:function(){return D((function(e){return 0===e?null:0}))},onMouseEnter:function(){return D((function(e){return null!==e?0:null}))},ref:G,children:(0,W.jsx)(O.ZP,{children:"Menu"})}),(0,W.jsx)(j.Z,{alternateBackground:!0,items:o,onClickCallback:function(){return D(null)},open:0===z,parentRef:G,rightOffset:0,setConfirmationAction:B,setConfirmationDialogueOpen:L,uuid:"PipelineDetail/Header/menu"})]})}),(0,W.jsx)(v.Z,{onClickOutside:function(){return L(!1)},open:A,children:(0,W.jsx)(ne.Z,{danger:!0,onCancel:function(){return L(!1)},onClick:N,right:16*T.iI,subtitle:"This is irreversible and will immediately delete everything associated with the pipeline, including its blocks, triggers, runs, logs, and history.",title:"Are you sure you want to delete the pipeline ".concat(Me,"?"),width:40*T.iI})})]}),(J||!(0,Y.YB)())&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(M.Z,{ml:2}),(0,W.jsx)(v.Z,{onClickOutside:function(){return H(!1)},open:!0,style:{position:"relative"},children:(0,W.jsxs)(g.ZP,{alignItems:"center",flexDirection:"row",children:[(0,W.jsx)(De,{onClick:function(){return H(!0)},ref:X,children:Ye&&(null===_||void 0===_||null===(n=_.avatar)||void 0===n?void 0:n.length)>=2?Xe:(0,W.jsx)(p.Z,{color:Ce.Jm,size:4*T.iI,children:Xe})}),(0,W.jsx)(j.Z,{alternateBackground:!0,items:He,onClickCallback:function(){return H(!1)},open:k,parentRef:X,rightOffset:0,uuid:"shared/Header/user_menu"})]})})]})]})]})})})}},89370:function(e,n,t){t.d(n,{P_:function(){return l},RL:function(){return r},Rp:function(){return c}});var i,r,o=t(82394);!function(e){e.CATEGORY="category",e.CATEGORY_HIGH_CARDINALITY="category_high_cardinality",e.DATETIME="datetime",e.EMAIL="email",e.LIST="list",e.NUMBER="number",e.NUMBER_WITH_DECIMALS="number_with_decimals",e.PHONE_NUMBER="phone_number",e.TEXT="text",e.TRUE_OR_FALSE="true_or_false",e.UUID="uuid",e.ZIP_CODE="zip_code"}(r||(r={}));r.NUMBER,r.NUMBER_WITH_DECIMALS,r.NUMBER,r.NUMBER_WITH_DECIMALS,r.DATETIME,r.NUMBER,r.NUMBER_WITH_DECIMALS,r.CATEGORY,r.CATEGORY_HIGH_CARDINALITY,r.DATETIME,r.EMAIL,r.PHONE_NUMBER,r.TEXT,r.TRUE_OR_FALSE,r.CATEGORY,r.CATEGORY_HIGH_CARDINALITY,r.DATETIME,r.EMAIL,r.PHONE_NUMBER,r.TEXT;var l=[r.CATEGORY,r.CATEGORY_HIGH_CARDINALITY],c=(i={},(0,o.Z)(i,r.NUMBER,"Number"),(0,o.Z)(i,r.NUMBER_WITH_DECIMALS,"Decimal number"),(0,o.Z)(i,r.CATEGORY,"Category"),(0,o.Z)(i,r.CATEGORY_HIGH_CARDINALITY,"Category (high cardinality)"),(0,o.Z)(i,r.DATETIME,"Date/Time"),(0,o.Z)(i,r.EMAIL,"Email"),(0,o.Z)(i,r.LIST,"List"),(0,o.Z)(i,r.PHONE_NUMBER,"Phone number"),(0,o.Z)(i,r.TEXT,"Text"),(0,o.Z)(i,r.TRUE_OR_FALSE,"Boolean"),(0,o.Z)(i,r.ZIP_CODE,"Zip code"),i)},89515:function(e,n,t){t.d(n,{Z:function(){return m}});var i=t(71180),r=t(55485),o=t(25976),l=t(44897),c=t(42631),a=t(31353),s=t(70515),u=t(28598),d=o.default.div.withConfig({displayName:"PopupMenuContainer__ContainerStyle",componentId:"sc-lq9od4-0"})(["border-radius:","px;padding:","px;position:absolute;z-index:",";cursor:default;"," "," "," "," "," "," "," "," ",""],c.TR,2*s.iI,a.bf+100,(function(e){return"\n background-color: ".concat((e.theme.interactive||l.Z.interactive).defaultBackground,";\n box-shadow: ").concat((e.theme.shadow||l.Z.shadow).window,";\n ")}),(function(e){return"undefined"!==typeof e.left&&"\n left: ".concat(e.left,"px;\n ")}),(function(e){return"undefined"!==typeof e.right&&"\n right: ".concat(e.right,"px;\n ")}),(function(e){return"undefined"!==typeof e.top&&"\n top: ".concat(e.top,"px;\n ")}),(function(e){return"undefined"!==typeof e.bottom&&"\n bottom: ".concat(e.bottom,"px;\n ")}),(function(e){return"undefined"===typeof e.top&&"undefined"===typeof e.bottom&&"\n top: ".concat(a.Mz-1*s.iI,"px;\n ")}),(function(e){return e.centerOnScreen&&"\n top: 40%;\n left: 50%;\n transform: translate(-50%,-50%);\n "}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}),(function(e){return!e.width&&"\n min-width: ".concat(33*s.iI,"px;\n ")}));var h=function(e){var n=e.bottom,t=e.centerOnScreen,i=e.children,r=e.left,o=e.right,l=e.top,c=e.width;return(0,u.jsx)(d,{bottom:n,centerOnScreen:t,left:r,right:o,top:l,width:c,children:i})},f=t(38276),p=t(30160),v=32*s.iI;var m=function(e){var n=e.bottom,t=e.cancelText,o=e.centerOnScreen,l=e.confirmText,c=e.danger,a=e.left,s=e.isLoading,d=e.neutral,m=e.onCancel,x=e.onClick,g=e.right,j=e.subtitle,b=e.title,y=e.top,Z=e.width;return(0,u.jsxs)(h,{bottom:n,centerOnScreen:o,left:a,right:g,top:y,width:Z||v,children:[(0,u.jsxs)(r.ZP,{alignItems:"center",flexDirection:"column",children:[(0,u.jsx)(f.Z,{pb:1,children:(0,u.jsx)(p.ZP,{bold:!0,danger:c,large:!0,warning:!c,whiteSpaceNormal:!0,children:b})}),(0,u.jsx)(p.ZP,{small:!0,children:j})]}),(0,u.jsx)(f.Z,{mt:2,children:(0,u.jsxs)(r.ZP,{alignItems:"center",justifyContent:"center",children:[m&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(i.ZP,{onClick:m,children:t||"Cancel"}),(0,u.jsx)(f.Z,{mr:1})]}),(0,u.jsx)(i.ZP,{loading:s,onClick:x,children:(0,u.jsx)(p.ZP,{bold:!0,danger:c,success:!c&&!d,children:l||"Confirm"})})]})})]})}},65186:function(e,n,t){var i=t(28598),r=18.53/14;n.Z=function(e){var n=e.height,t=e.width,o=n||(t?t*(1/r):14),l=t||(n?n*r:18.53);return(0,i.jsxs)("svg",{width:l,height:o,viewBox:"0 0 20 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{opacity:"0.4",d:"M15.3266 0L19.2641 1.82961e-06L11.9687 14L8.03125 14L15.3266 0Z",fill:"url(#paint0_linear_1303_5)"}),(0,i.jsx)("path",{d:"M11.9692 1.82961e-06L8.03164 0L0.736328 14L4.67383 14L8.03164 7.55626V14H11.9691V8.38194e-05L11.9692 1.82961e-06Z",fill:"url(#paint1_linear_1303_5)"}),(0,i.jsx)("path",{d:"M15.3269 2.57679e-06H19.2644V14H15.3269V2.57679e-06Z",fill:"url(#paint2_linear_1303_5)"}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("linearGradient",{id:"paint0_linear_1303_5",x1:"8.03125",y1:"7",x2:"19.2641",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,i.jsxs)("linearGradient",{id:"paint1_linear_1303_5",x1:"0.736328",y1:"7",x2:"19.2644",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,i.jsxs)("linearGradient",{id:"paint2_linear_1303_5",x1:"0.736328",y1:"7",x2:"19.2644",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})]})]})}},63637:function(e,n,t){var i=t(25976),r=t(28598),o=i.default.svg.withConfig({displayName:"Mage8Bit__SVGStyle",componentId:"sc-cj6ltf-0"})([""]);n.Z=function(e){var n=e.size,t=void 0===n?20:n,i=e.viewBox,l=void 0===i?"0 0 20 20":i;return(0,r.jsxs)(o,{height:t,viewBox:l,width:t,children:[(0,r.jsxs)("g",{clipPath:"url(#clip0_297_42814)",children:[(0,r.jsx)("path",{d:"M13.334 0h1.66667v1.66667H13.334zM11.666 1.6665h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M10 1.6665h1.66667v1.66667H10z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M8.33398 1.6665h1.66667v1.66667H8.33398z",fill:"#AF93FF"}),(0,r.jsx)("path",{d:"M8.33398 3.3335h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M6.66602 3.3335h1.66667v1.66667H6.66602z",fill:"#AF93FF"}),(0,r.jsx)("path",{d:"M3.33398 5h1.66667v1.66667H3.33398z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M5 5h1.66667v1.66667H5z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M6.66602 5h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M6.66602 5h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M6.66602 8.3335h1.66667v1.66667H6.66602z",fill:"#000"}),(0,r.jsx)("path",{d:"M6.66602 6.6665h1.66667v1.66667H6.66602z",fill:"#AD8FFF"}),(0,r.jsx)("path",{d:"M6.66602 10h1.66667v1.66667H6.66602z",fill:"#C9B6FF"}),(0,r.jsx)("path",{d:"M8.33398 6.6665h1.66667v1.66667H8.33398z",fill:"#AD8FFF"}),(0,r.jsx)("path",{d:"M1.66602 13.3335h1.66667v1.66667H1.66602z",fill:"#C9B6FF"}),(0,r.jsx)("path",{d:"M1.66602 11.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,r.jsx)("path",{d:"M1.66602 10h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,r.jsx)("path",{d:"M1.66602 8.3335h1.66667v1.66667H1.66602zM1.66602 6.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,r.jsx)("path",{d:"M1.66602 6.6665h1.66667v1.66667H1.66602zM0 0h1.66667v1.66667H0zM3.33398 1.6665h1.66667v1.66667H3.33398zM0 3.3335h1.66667v1.66667H0z",fill:"#2ECDF7"}),(0,r.jsx)("path",{d:"M1.66602 16.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,r.jsx)("path",{d:"M1.66602 16.6665h1.66667v1.66667H1.66602zM1.66602 18.3335h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,r.jsx)("path",{d:"M1.66602 15h1.66667v1.66667H1.66602zM3.33398 15h1.66667v1.66667H3.33398z",fill:"#C9B6FF"}),(0,r.jsx)("path",{d:"M3.33398 16.6665h1.66667v1.66667H3.33398z",fill:"#C9B6FF"}),(0,r.jsx)("path",{d:"M3.33398 13.3335h1.66667v1.66667H3.33398z",fill:"#AD8FFF"}),(0,r.jsx)("path",{d:"M8.33398 8.3335h1.66667v1.66667H8.33398z",fill:"#C9B6FF"}),(0,r.jsx)("path",{d:"M10 6.6665h1.66667v1.66667H10z",fill:"#AD8FFF"}),(0,r.jsx)("path",{d:"M10 10h1.66667v1.66667H10z",fill:"#C9B6FF"}),(0,r.jsx)("path",{d:"M11.666 6.6665h1.66667v1.66667H11.666z",fill:"#AD8FFF"}),(0,r.jsx)("path",{d:"M11.666 8.3335h1.66667v1.66667H11.666z",fill:"#C9B6FF"}),(0,r.jsx)("path",{d:"M8.33398 10h1.66667v1.66667H8.33398z",fill:"#FF8DA9"}),(0,r.jsx)("path",{d:"M8.33398 11.6665h1.66667v1.66667H8.33398z",fill:"#FF8DA9"}),(0,r.jsx)("path",{d:"M6.66602 11.6665h1.66667v1.66667H6.66602z",fill:"#D9D9D9"}),(0,r.jsx)("path",{d:"M6.66602 11.6665h1.66667v1.66667H6.66602z",fill:"#D9D9D9"}),(0,r.jsx)("path",{d:"M5 10h1.66667v1.66667H5z",fill:"#D9D9D9"}),(0,r.jsx)("path",{d:"M5 8.3335h1.66667v1.66667H5z",fill:"#232429"}),(0,r.jsx)("path",{d:"M8.33398 11.6665h1.66667v1.66667H8.33398zM8.33398 13.3335h1.66667v1.66667H8.33398z",fill:"#D9D9D9"}),(0,r.jsx)("path",{d:"M10 11.6665h1.66667v1.66667H10z",fill:"#D9D9D9"}),(0,r.jsx)("path",{d:"M11.666 10h1.66667v1.66667H11.666zM13.334 6.6665h1.66667v1.66667H13.334zM13.334 8.3335h1.66667v1.66667H13.334z",fill:"#D9D9D9"}),(0,r.jsx)("path",{d:"M15 8.3335h1.66667v1.66667H15z",fill:"#757575"}),(0,r.jsx)("path",{d:"M15 10h1.66667v1.66667H15z",fill:"#D9D9D9"}),(0,r.jsx)("path",{d:"M10 8.3335h1.66667v1.66667H10z",fill:"#000"}),(0,r.jsx)("path",{d:"M8.33398 5h1.66667v1.66667H8.33398zM11.666 5h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M13.334 10h1.66667v1.66667H13.334zM11.666 11.6665h1.66667v1.66667H11.666zM10 13.3335h1.66667v1.66667H10z",fill:"#501FD8"}),(0,r.jsx)("path",{d:"M8.33398 15h1.66667v1.66667H8.33398zM6.66602 13.3335h1.66667v1.66667H6.66602zM15 11.6665h1.66667v1.66667H15z",fill:"#501FD8"}),(0,r.jsx)("path",{d:"M16.666 11.6665h1.66667v1.66667H16.666zM16.666 13.3335h1.66667v1.66667H16.666z",fill:"#501FD8"}),(0,r.jsx)("path",{d:"M15 13.3335h1.66667v1.66667H15z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M13.334 13.3335h1.66667v1.66667H13.334zM13.334 11.6665h1.66667v1.66667H13.334zM11.666 13.3335h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M11.666 15h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M10 15h1.66667v1.66667H10z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M8.33398 16.6665h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M6.66602 15h1.66667v1.66667H6.66602z",fill:"#AF93FF"}),(0,r.jsx)("path",{d:"M6.66602 16.6665h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M5 16.6665h1.66667v1.66667H5z",fill:"#AF93FF"}),(0,r.jsx)("path",{d:"M5 18.3335h1.66667v1.66667H5z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M6.66602 18.3335h1.66667v1.66667H6.66602zM8.33398 18.3335h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M10 18.3335h1.66667v1.66667H10z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M11.666 18.3335h1.66667v1.66667H11.666zM13.334 18.3335h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M15 18.3335h1.66667v1.66667H15z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M16.666 18.3335h1.66667v1.66667H16.666z",fill:"#652EFF"}),(0,r.jsx)("path",{d:"M3.33398 18.3335h1.66667v1.66667H3.33398zM10 16.6665h1.66667v1.66667H10z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M11.666 16.6665h1.66667v1.66667H11.666zM13.334 15h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M13.334 16.6665h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M15 16.6665h1.66667v1.66667H15z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M15 15h1.66667v1.66667H15z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M16.666 15h1.66667v1.66667H16.666zM18.334 16.6665h1.66667v1.66667H18.334zM18.334 18.3335h1.66667v1.66667H18.334z",fill:"#501FD8"}),(0,r.jsx)("path",{d:"M16.666 16.6665h1.66667v1.66667H16.666z",fill:"#652EFF"}),(0,r.jsx)("path",{d:"M13.334 5h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M15 5h1.66667v1.66667H15zM10 5h1.66667v1.66667H10z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M10 3.3335h1.66667v1.66667H10z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M11.666 3.3335h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M11.666 0h1.66667v1.66667H11.666z",fill:"#AF93FF"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_297_42814",children:(0,r.jsx)("path",{d:"M0 0h20v20H0z",fill:"#fff"})})})]})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2474],{81066:function(e,n,t){t.d(n,{B:function(){return f}});var o=t(82394),r=t(46732),i=t(93369),l=t(72473),c=t(8059),u=t(70515),a=t(28598);function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var f={bold:!0,greyBorder:!0,paddingBottom:9,paddingTop:9};n.Z=function(e){var n=e.addButtonMenuOpen,t=e.addButtonMenuRef,o=e.isLoading,d=e.label,p=e.menuItems,b=e.onClick,h=e.onClickCallback;return(0,a.jsx)(r.Z,{disableKeyboardShortcuts:!0,items:p,onClickCallback:h,onClickOutside:h,open:n,parentRef:t,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/NewItemMenu",children:(0,a.jsx)(i.ZP,s(s({},f),{},{background:c.eW,beforeElement:(0,a.jsx)(l.Add,{size:2.5*u.iI}),loading:o,onClick:function(e){e.preventDefault(),null===b||void 0===b||b()},uuid:"shared/AddButton/index",children:d}))})}},55072:function(e,n,t){t.d(n,{Et:function(){return f},Q:function(){return s}});t(82684);var o=t(71180),r=t(55485),i=t(38276),l=t(31748),c=t(72473),u=t(79633),a=t(70515),d=t(28598),s=30,f=9;n.ZP=function(e){var n=e.page,t=e.maxPages,s=e.onUpdate,f=e.totalPages,p=[],b=t;if(b>f)p=Array.from({length:f},(function(e,n){return n}));else{var h=Math.floor(b/2),g=n-h;n+h>=f?(g=f-b+2,b-=2):n-h<=0?(g=0,b-=2):(b-=4,g=n-Math.floor(b/2)),p=Array.from({length:b},(function(e,n){return n+g}))}return(0,d.jsx)(d.Fragment,{children:f>0&&(0,d.jsxs)(r.ZP,{alignItems:"center",children:[(0,d.jsx)(o.ZP,{disabled:0===n,onClick:function(){return s(n-1)},children:(0,d.jsx)(c.PaginateArrowLeft,{size:1.5*a.iI,stroke:l.Av})}),!p.includes(0)&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(i.Z,{ml:1,children:(0,d.jsx)(o.ZP,{borderLess:!0,noBackground:!0,onClick:function(){return s(0)},children:1})},0),!p.includes(1)&&(0,d.jsx)(i.Z,{ml:1,children:(0,d.jsx)(o.ZP,{noBackground:!0,noPadding:!0,notClickable:!0,children:"..."})},0)]}),p.map((function(e){return(0,d.jsx)(i.Z,{ml:1,children:(0,d.jsx)(o.ZP,{backgroundColor:e===n&&u.a$,borderLess:!0,noBackground:!0,notClickable:e===n,onClick:function(){e!==n&&s(e)},children:e+1})},e)})),!p.includes(f-1)&&(0,d.jsxs)(d.Fragment,{children:[!p.includes(f-2)&&(0,d.jsx)(i.Z,{ml:1,children:(0,d.jsx)(o.ZP,{noBackground:!0,noPadding:!0,notClickable:!0,children:"..."})},0),(0,d.jsx)(i.Z,{ml:1,children:(0,d.jsx)(o.ZP,{borderLess:!0,noBackground:!0,onClick:function(){return s(f-1)},children:f})},f-1)]}),(0,d.jsx)(i.Z,{ml:1}),(0,d.jsx)(o.ZP,{disabled:n===f-1,onClick:function(){return s(n+1)},children:(0,d.jsx)(c.PaginateArrowRight,{size:1.5*a.iI,stroke:l.Av})})]})})}},35526:function(e,n,t){t.d(n,{Au:function(){return d},I6:function(){return u},Nb:function(){return o},OK:function(){return a},hZ:function(){return f},k2:function(){return s}});var o,r=t(42631),i=t(72473),l=t(70515),c=t(28598),u="".concat(1.5*l.iI,"px"),a=40*l.iI,d=58;!function(e){e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND"}(o||(o={}));var s={autoHide:!0,size:null,widthFitContent:!0},f={afterIconSize:1.5*l.iI,beforeIcon:(0,c.jsx)(i.Search,{}),borderRadius:r.n_,defaultColor:!0,fullWidth:!0,greyBorder:!0,maxWidth:40*l.iI}},85544:function(e,n,t){t.d(n,{Z:function(){return $}});var o=t(82394),r=t(75582),i=t(82684),l=t(81066),c=t(79757),u=t(50724),a=t(97618),d=t(55485),s=t(46732),f=t(93369),p=t(89515),b=t(38276),h=t(30160),g=t(17488),j=t(71180),m=t(69650),x=t(25976),y=t(44897),v=t(42631),k=t(47041),O=t(70515),C=74*O.iI,Z=48*O.iI,P=x.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-18n432u-0"})(["position:absolute;border-radius:","px;overflow:hidden;width:","px;display:none;"," "," "," "," ",""],v.n_,C,(function(e){return"\n background-color: ".concat((e.theme||y.Z).background.panel,";\n border: ").concat(v.mP,"px ").concat(v.M8," ").concat((e.theme||y.Z).interactive.defaultBackground,";\n box-shadow: ").concat((e.theme.shadow||y.Z.shadow).window,";\n ")}),(function(e){return e.display&&"\n display: block;\n "}),(function(e){return e.compact&&"\n width: ".concat(.75*C,"px;\n ")}),(function(e){return"undefined"!==typeof e.left&&"\n left: ".concat(e.left,"px;\n ")}),(function(e){return"undefined"!==typeof e.top&&"\n top: ".concat(e.top,"px;\n ")})),I=x.default.div.withConfig({displayName:"indexstyle__MainStyle",componentId:"sc-18n432u-1"})(["display:flex;border-radius:","px;overflow:hidden;height:","px;"," ",""],v.n_,Z,(function(e){return"\n background-color: ".concat((e.theme||y.Z).background.content,";\n border: ").concat(v.YF,"px ").concat(v.M8," ").concat((e.theme||y.Z).interactive.defaultBackground,";\n ")}),(function(e){return e.compact&&"\n height: ".concat(Z/2,"px;\n ")})),w=x.default.aside.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-18n432u-2"})(["width:100%;overflow:auto;"," ",""],k.w5,(function(e){return"\n border-right: ".concat(v.YF,"px ").concat(v.M8," ").concat((e.theme||y.Z).background.panel,";\n ")})),S=x.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-18n432u-3"})(["width:100%;overflow:auto;",""],k.w5),B=(0,x.css)(["display:flex;align-items:center;justify-content:space-between;padding:","px ","px;"],O.iI,2*O.iI),M=x.default.div.withConfig({displayName:"indexstyle__OptionStyle",componentId:"sc-18n432u-4"})([""," padding-top:","px;padding-bottom:","px;&:hover{cursor:pointer;","}",""],B,1.5*O.iI,1.5*O.iI,(function(e){return"\n background-color: ".concat((e.theme||y.Z).monotone.black,";\n ")}),(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme||y.Z).monotone.black,";\n ")})),T=x.default.div.withConfig({displayName:"indexstyle__ToggleValueStyle",componentId:"sc-18n432u-5"})([""," ",""],B,(function(e){return"\n border-bottom: ".concat(v.YF,"px ").concat(v.M8," ").concat((e.theme||y.Z).borders.medium2,";\n ")})),D=t(72473),A=t(15610),E=t(11498),R=t(81728),F=t(28598);function _(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function L(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,o.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 N=function(e){var n,t,l,c=e.children,s=e.compact,f=e.onClickCallback,p=e.onClickOutside,g=e.onSecondaryClick,x=e.open,y=e.options,v=void 0===y?{}:y,k=e.parentRef,O=e.query,C=e.resetLimitOnApply,Z=e.resetPageOnApply,B=e.setOpen,_=e.toggleValueMapping,N=(0,i.useState)(null),z=N[0],V=N[1],K=(0,i.useState)(v),G=K[0],q=K[1];(0,i.useEffect)((function(){q(v)}),[v]);var W=((null===k||void 0===k||null===(n=k.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).top,Y=void 0===W?0:W,$=Object.keys(v);return(0,F.jsxs)(u.Z,{onClickOutside:p,open:!0,children:[(0,F.jsx)("div",{ref:k,children:c}),(0,F.jsxs)(P,{compact:s,display:x,top:Y-5,children:[(0,F.jsxs)(I,{compact:s,children:[(0,F.jsx)(a.Z,{flex:"1",children:(0,F.jsx)(w,{children:$.map((function(e){return(0,F.jsxs)(M,{highlighted:z===e,onMouseEnter:function(){return V(e)},children:[(0,F.jsx)(h.ZP,{children:(0,R.J3)((0,R.kC)(e))}),(0,F.jsx)(D.ChevronRight,{})]},e)}))})}),(0,F.jsx)(a.Z,{flex:"2",children:(0,F.jsx)(S,{children:z&&Object.entries((null===(l=G||v)||void 0===l?void 0:l[z])||{}).map((function(e){var n,t=(0,r.Z)(e,2),i=t[0],l=t[1],c=null===_||void 0===_?void 0:_[z],u=("function"===typeof(null===c||void 0===c?void 0:c[i])?(0,R.kC)(null===c||void 0===c||null===(n=c[i])||void 0===n?void 0:n.call(c)):null===c||void 0===c?void 0:c[i])||i;return(0,F.jsxs)(T,{children:[(0,F.jsx)(h.ZP,{title:c?null:u,width:200,children:u}),(0,F.jsx)(m.Z,{checked:l,onCheck:function(){return q((function(e){return L(L({},e),{},(0,o.Z)({},z,L(L({},null===e||void 0===e?void 0:e[z]),{},(0,o.Z)({},i,!l))))}))}})]},i)}))})})]}),(0,F.jsx)(b.Z,{m:1,children:(0,F.jsxs)(d.ZP,{children:[(0,F.jsx)(j.ZP,{onClick:function(){var e=Object.entries(G).reduce((function(e,n){var t=(0,r.Z)(n,2),o=t[0],i=t[1],l=[];return Object.entries(i).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0];return n[1]&&l.push(t)})),e[o]=l,e}),{});null===f||void 0===f||f(O,e);var n={addingMultipleValues:!0,pushHistory:!0,resetLimitParams:C,resetPage:Z};null!==O&&void 0!==O&&O[E.$D.LIMIT]&&(n.itemsPerPage=+(null===O||void 0===O?void 0:O[E.$D.LIMIT])),(0,A.g)(O,e,n)},secondary:!0,children:"Apply"}),(0,F.jsx)(b.Z,{mr:1}),(0,F.jsx)(j.ZP,{noBackground:!0,onClick:function(){B(!1),null===g||void 0===g||g()},children:"Defaults"})]})})]})]})},z=t(12468),V=t(35526),K=t(24944),G=t(42122),q=t(50178);function W(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function Y(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,o.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 $=function(e){var n=e.addButtonProps,t=e.children,o=e.deleteRowProps,j=e.extraActionButtonProps,m=e.filterOptions,x=void 0===m?{}:m,y=e.filterValueLabelMapping,v=e.groupButtonProps,k=e.moreActionsMenuItems,C=e.onClickFilterDefaults,Z=e.onFilterApply,P=e.query,I=void 0===P?{}:P,w=e.resetLimitOnFilterApply,S=e.resetPageOnFilterApply,B=e.secondaryButtonProps,M=e.searchProps,T=e.selectedRowId,A=e.setSelectedRow,E=e.showDivider,R=(0,q.Ct)(),_=(0,i.useRef)(null),L=(0,i.useRef)(null),W=(0,i.useRef)(null),$=(0,i.useRef)(null),H=(0,i.useRef)(null),J=(0,i.useState)(!1),Q=J[0],U=J[1],X=(0,i.useState)(!1),ee=X[0],ne=X[1],te=(0,i.useState)(!1),oe=te[0],re=te[1],ie=(0,i.useState)(!1),le=ie[0],ce=ie[1],ue=(0,i.useState)(null),ae=ue[0],de=ue[1],se=!T,fe=(0,i.useCallback)((function(){return U(!1)}),[]),pe=(0,i.useCallback)((function(){return ne(!1)}),[]),be=(0,i.useCallback)((function(){return re(!1)}),[]),he=(0,i.useCallback)((function(){return ce(null)}),[]),ge=(0,i.useCallback)((function(){return de(null)}),[]),je=j||{},me=je.Icon,xe=je.confirmationDescription,ye=je.confirmationMessage,ve=je.isLoading,ke=je.label,Oe=je.onClick,Ce=je.openConfirmationDialogue,Ze=je.tooltip,Pe=o||{},Ie=Pe.confirmationMessage,we=Pe.isLoading,Se=Pe.item,Be=Pe.onDelete,Me=M||{},Te=Me.placeholder,De=Me.onChange,Ae=Me.value,Ee=(0,i.useMemo)((function(){return Object.entries(x).reduce((function(e,n){var t=(0,r.Z)(n,2),o=t[0],i=t[1];return e[o]={},i.forEach((function(n){var t,r=(null===(t=I["".concat(o,"[]")])||void 0===t?void 0:t.includes(n))||!1;e[o][n]=r})),e}),{})}),[x,I]),Re=n||{},Fe=Re.label,_e=Re.menuItems,Le=Re.onClick,Ne=Re.isLoading,ze=(0,i.useMemo)((function(){return(0,F.jsx)(l.Z,{addButtonMenuOpen:Q,addButtonMenuRef:_,isLoading:Ne,label:Fe,menuItems:_e,onClick:Le||function(){return U((function(e){return!e}))},onClickCallback:fe})}),[Fe,_e,Q,fe,Ne,Le]),Ve=B||{},Ke=Ve.beforeIcon,Ge=Ve.disabled,qe=Ve.label,We=Ve.onClick,Ye=Ve.isLoading,$e=Ve.tooltip,He=(0,i.useMemo)((function(){return(0,F.jsx)(f.ZP,{beforeElement:Ke,bold:!0,disabled:Ge,greyBorder:!0,loading:Ye,onClick:We,outline:!0,paddingBottom:9,paddingTop:9,title:$e,uuid:"Table/Toolbar/SecondaryButton",children:qe})}),[Ye,We,Ke,Ge,qe,$e]),Je=(0,i.useMemo)((function(){return(0,G.dw)(Ee)}),[Ee]),Qe=(0,i.useMemo)((function(){return(0,F.jsx)(N,{compact:!0,onClickCallback:function(e,n){Z&&(null===Z||void 0===Z||Z(e,n)),pe&&(null===pe||void 0===pe||pe())},onClickOutside:pe,onSecondaryClick:C,open:ee,options:Ee,parentRef:L,query:I,resetLimitOnApply:w,resetPageOnApply:S,setOpen:ne,toggleValueMapping:y,children:(0,F.jsx)(f.ZP,Y(Y({},l.B),{},{afterElement:Je>0?(0,F.jsx)(c.Z,{cyan:!0,noVerticalPadding:!0,children:(0,F.jsx)(h.ZP,{bold:!0,inverted:!0,children:Je})}):null,beforeElement:(0,F.jsx)(D.Filter,{size:2*O.iI}),onClick:function(){return ne((function(e){return!e}))},uuid:"Table/Toolbar/FilterButton",children:"Filter"}))})}),[pe,ee,Ee,y,Je,C,Z,I,w,S]),Ue=v||{},Xe=Ue.groupByLabel,en=Ue.menuItems,nn=(0,i.useMemo)((function(){return(0,F.jsx)(s.Z,{disableKeyboardShortcuts:!0,items:en,onClickCallback:be,onClickOutside:be,open:oe,parentRef:W,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/GroupMenu",children:(0,F.jsx)(f.ZP,Y(Y({},l.B),{},{beforeElement:(0,F.jsx)(D.Group,{size:2.5*O.iI}),onClick:function(){re((function(e){return!e}))},uuid:"Table/Toolbar/GroupButton",children:Xe?"Grouped by ".concat(Xe):"Group"}))})}),[be,oe,Xe,en]),tn=(0,i.useMemo)((function(){return(0,F.jsx)(s.Z,{disableKeyboardShortcuts:!0,items:k,onClickCallback:he,onClickOutside:he,open:le,parentRef:$,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/MoreActionsMenu",children:(0,F.jsx)(z.Z,Y(Y({},V.k2),{},{label:"More actions",children:(0,F.jsx)(f.ZP,{Icon:D.Ellipsis,bold:!0,disabled:se,greyBorder:!0,onClick:function(){return ce((function(e){return!e}))},smallIcon:!0,uuid:"Table/Toolbar/MoreActionsButton"})}))})}),[he,se,le,k]);return(0,F.jsxs)(d.ZP,{alignItems:"center",children:[n&&ze,B&&(0,F.jsx)(b.Z,{ml:1,children:He}),t,E&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(b.Z,{ml:"12px"}),(0,F.jsx)(K.lZ,{})]}),(n||B||t)&&(0,F.jsx)(b.Z,{mr:V.I6}),Qe,(null===en||void 0===en?void 0:en.length)>0&&(0,F.jsx)(b.Z,{ml:V.I6,children:nn}),!R&&Oe&&(0,F.jsxs)(b.Z,{ml:V.I6,children:[(0,F.jsx)(z.Z,Y(Y({},V.k2),{},{label:Ze,children:(0,F.jsx)(f.ZP,{Icon:!ve&&me,bold:!0,disabled:se,greyBorder:!0,loading:ve,onClick:Ce?function(){return de(V.Nb.FIRST)}:Oe,smallIcon:!0,uuid:"Table/Toolbar/ExtraActionButton",children:ke})})),(0,F.jsx)(u.Z,{onClickOutside:ge,open:ae===V.Nb.FIRST,children:(0,F.jsx)(p.Z,{onCancel:ge,onClick:function(){null===Oe||void 0===Oe||Oe(),ge(),null===A||void 0===A||A(null)},subtitle:xe,title:ye,top:V.Au,width:V.OK})})]}),!R&&Be&&(0,F.jsxs)(b.Z,{ml:V.I6,children:[(0,F.jsx)(z.Z,Y(Y({},V.k2),{},{label:"Delete ".concat(Se),children:(0,F.jsx)(f.ZP,{Icon:!we&&D.Trash,bold:!0,disabled:se,greyBorder:!0,loading:we,onClick:function(){return de(V.Nb.SECOND)},smallIcon:!0,uuid:"Table/Toolbar/DeleteButton"})})),(0,F.jsx)(u.Z,{onClickOutside:ge,open:ae===V.Nb.SECOND,children:(0,F.jsx)(p.Z,{danger:!0,onCancel:ge,onClick:function(){null===Be||void 0===Be||Be(T),ge(),null===A||void 0===A||A(null)},subtitle:Ie,title:"Are you sure you want to delete the ".concat(Se," ").concat(T,"?"),top:V.Au,width:V.OK})})]}),!R&&(null===k||void 0===k?void 0:k.length)>0&&(0,F.jsx)(b.Z,{ml:V.I6,children:tn}),De&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(b.Z,{ml:V.I6}),(0,F.jsx)(a.Z,{flex:1,children:(0,F.jsx)(g.Z,Y(Y({},V.hZ),{},{afterIcon:Ae?(0,F.jsx)(D.Close,{}):null,afterIconClick:function(){var e;De(""),null===H||void 0===H||null===(e=H.current)||void 0===e||e.focus()},onChange:function(e){return De(e.target.value)},paddingVertical:9,placeholder:Te||null,ref:H,value:Ae}))})]})]})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2479],{56756:function(e,n){var t,o,i;o=[],void 0===(i="function"===typeof(t=function(){var e,n,t,o,i=window,r=i.cancelRequestAnimationFrame&&i.requestAnimationFrame||setTimeout,l=i.cancelRequestAnimationFrame||clearTimeout,u=[],c=0,d=!1,a=7,s=35,f=125,v=0,p=0,h=0,m={get didTimeout(){return!1},timeRemaining:function(){var e=a-(Date.now()-p);return Math.max(0,e)}},b=g((function(){a=22,f=66,s=0}));function g(e){var n,t,o=99,i=function i(){var r=Date.now()-t;r<o?n=setTimeout(i,o-r):(n=null,e())};return function(){t=Date.now(),n||(n=setTimeout(i,o))}}function C(){d&&(o&&l(o),t&&clearTimeout(t),d=!1)}function j(){125!=f&&(a=7,f=125,s=35,d&&(C(),k())),b()}function y(){o=null,t=setTimeout(x,0)}function w(){t=null,r(y)}function k(){d||(n=f-(Date.now()-p),e=Date.now(),d=!0,s&&n<s&&(n=s),n>9?t=setTimeout(w,n):(n=0,w()))}function x(){var o,i,r,l=a>9?9:1;if(p=Date.now(),d=!1,t=null,c>2||p-n-50<e)for(i=0,r=u.length;i<r&&m.timeRemaining()>l;i++)o=u.shift(),h++,o&&o(m);u.length?k():c=0}function F(e){return v++,u.push(e),k(),v}function D(e){var n=e-1-h;u[n]&&(u[n]=null)}if(i.requestIdleCallback&&i.cancelIdleCallback)try{i.requestIdleCallback((function(){}),{timeout:0})}catch(O){!function(e){var n,t;if(i.requestIdleCallback=function(n,t){return t&&"number"==typeof t.timeout?e(n,t.timeout):e(n)},i.IdleCallbackDeadline&&(n=IdleCallbackDeadline.prototype)){if(!(t=Object.getOwnPropertyDescriptor(n,"timeRemaining"))||!t.configurable||!t.get)return;Object.defineProperty(n,"timeRemaining",{value:function(){return t.get.call(this)},enumerable:!0,configurable:!0})}}(i.requestIdleCallback)}else i.requestIdleCallback=F,i.cancelIdleCallback=D,i.document&&document.addEventListener&&(i.addEventListener("scroll",j,!0),i.addEventListener("resize",j),document.addEventListener("focus",j,!0),document.addEventListener("mouseover",j,!0),["click","keypress","touchstart","mousedown"].forEach((function(e){document.addEventListener(e,j,{capture:!0,passive:!0})})),i.MutationObserver&&new MutationObserver(j).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}));return{request:F,cancel:D}})?t.apply(n,o):t)||(e.exports=i)},79899:function(e,n,t){t.d(n,{Z:function(){return v}});var o=t(82684),i=t(39867),r=t(89706),l=t(44425),u=t(32929),c=t(72473),d=t(71953),a=t(55283),s=t(53005),f=t(81728);function v(e){var n=e.allowEmptyFolders,t=e.children,v=e.disabled,p=e.file,h=e.filePath,m=e.isInPipelinesFolder,b=e.isFileDisabled,g=e.isNotFolder,C=e.level,j=e.name,y=e.theme,w=e.useRootFolder,k=e.uuid,x=(0,o.useMemo)((function(){return h||(w?(0,s.a9)(p):(0,s.jN)(p))}),[p,h,w,,]),F=(0,o.useMemo)((function(){return!!t&&!g}),[t,g]),D=(0,o.useMemo)((function(){var e,n,t;return null===k||void 0===k||null===(e=k.split)||void 0===e||null===(n=e.call(k,"/"))||void 0===n||null===(t=n.find)||void 0===t?void 0:t.call(n,(function(e){return(0,f.C5)(e)in l.GJ}))}),[k]),O=(0,o.useMemo)((function(){return D?(0,f.C5)(D):null}),[D]),Z=(0,o.useMemo)((function(){return F&&D&&D===j}),[D,F,j]),E=(0,o.useMemo)((function(){return D&&!F&&(0,s.y)(j)&&(0,s.o$)(j,O)}),[O,D,F,j]),P=(0,o.useMemo)((function(){return D?(0,a.qn)(O,{theme:y}).accent:null}),[O,D]),I=j===r.oy,L=(0,o.useMemo)((function(){return b?b(x,t):v||m&&"__init__.py"===j||D&&"__init__.py"===j}),[t,v,,x,D,b,m,j]),_=(0,o.useMemo)((function(){var e,t=c.FileFill;if(!F&&g)t=c.Ellipsis;else if(I)t=c.PipelineV3;else if(j===r.PF)t=c.Charts;else if(F)t=Z&&(null===u.iK||void 0===u.iK?void 0:u.iK[O])||c.FolderV2Filled;else if(!j&&n)t=c.Ellipsis;else if(m&&!F&&"metadata.yaml"===j)t=c.Pipeline;else if(null!==j&&void 0!==j&&j.includes(".log"))t=c.Logs;else if(!F){var o=(0,s.mD)(j);o&&o in d.T&&(t=d.T[o],e=d.k[o])}return{Icon:t,iconColor:e}}),[n,O,Z,F,m,g,C,j]),R=_.Icon,T=_.iconColor;return{BlockIcon:(0,o.useMemo)((function(){var e=i.Z;return l.tf.CHART===O&&(e=c.Charts),e}),[O]),Icon:R,blockType:O,color:P,disabled:L,filePathToUse:x,folderNameForBlock:D,iconColor:T,isBlockFile:E,isFirstParentFolderForBlock:Z,isFolder:F,isPipelineFolder:I}}},71953:function(e,n,t){t.d(n,{T:function(){return c},k:function(){return d}});var o,i,r=t(82394),l=t(72473),u=t(89706),c=(o={},(0,r.Z)(o,u.Lu.CSV,l.Table),(0,r.Z)(o,u.Lu.JSON,l.Code),(0,r.Z)(o,u.Lu.MD,l.File),(0,r.Z)(o,u.Lu.PY,l.Lightning),(0,r.Z)(o,u.Lu.R,l.Insights),(0,r.Z)(o,u.Lu.SH,l.Terminal),(0,r.Z)(o,u.Lu.SQL,l.Database),(0,r.Z)(o,u.Lu.TXT,l.Alphabet),(0,r.Z)(o,u.Lu.YAML,l.List),(0,r.Z)(o,u.Lu.YML,l.List),o),d=(i={},(0,r.Z)(i,u.Lu.CSV,"#C7CDDA"),(0,r.Z)(i,u.Lu.JSON,"#6B50D7"),(0,r.Z)(i,u.Lu.MD,"#9B6CA7"),(0,r.Z)(i,u.Lu.PY,"#FFE873"),(0,r.Z)(i,u.Lu.R,"#FF144D"),(0,r.Z)(i,u.Lu.SH,"#CBFE00"),(0,r.Z)(i,u.Lu.SQL,"#00758F"),(0,r.Z)(i,u.Lu.TXT,"#C7CDDA"),(0,r.Z)(i,u.Lu.YAML,"#95ECE2"),(0,r.Z)(i,u.Lu.YML,"#95ECE2"),i)},46978:function(e,n,t){t.d(n,{Cl:function(){return u},Nk:function(){return c},ZG:function(){return l}});var o=t(25976),i=t(44897),r=t(70515),l=1.5*r.iI,u=1*l+r.iI/2,c=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(e){return"\n background-color: ".concat((e.theme.interactive||i.Z.interactive).hoverBackground,";\n ")}))},52479:function(e,n,t){t.d(n,{Z:function(){return Oe}});var o=t(82394),i=t(75582),r=t(82684),l=t(25976),u=t(69864),c=t(85202),d=t(44425),a=t(71180),s=t(50724),f=t(55485),v=t(70374),p=t(38276),h=t(30160),m=t(44897),b=t(42631),g=t(70515),C=l.default.div.withConfig({displayName:"indexstyle__FileHeaderMenuContainerStyle",componentId:"sc-1lru5j9-0"})(["height:100%;width:100%;position:relative;padding:","px;",""],g.iI/2,(function(e){return"\n border-bottom: ".concat(b.YF,"px ").concat(b.M8," ").concat((e.theme||m.Z).borders.medium,";\n ")})),j=t(72473),y=t(26419),w=t(28598);function k(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function x(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,o.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}var F=function(e){var n=e.setShowHiddenFiles,t=e.showHiddenFiles,o=(0,r.useState)(null),i=o[0],l=o[1],u=(0,r.useRef)(null),c=(0,r.useMemo)((function(){return[{label:function(){return(0,w.jsxs)(f.ZP,{alignItems:"center",children:[t?(0,w.jsx)(j.PreviewOpen,{success:!0}):(0,w.jsx)(j.PreviewHidden,{muted:!0}),(0,w.jsx)(p.Z,{mr:1}),(0,w.jsx)(h.ZP,{noWrapping:!0,children:"Hidden files"})]})},onClick:function(){n((function(e){return!e}))},uuid:"Hidden files"}]}),[n,t]);return(0,w.jsx)(C,{children:(0,w.jsx)(s.Z,{onClickOutside:function(){return l(null)},open:!0,style:{width:"fit-content"},children:(0,w.jsx)(f.ZP,{alignItems:"center",fullHeight:!0,children:(0,w.jsxs)("div",{style:{position:"relative"},children:[(0,w.jsx)(a.ZP,x(x({},y.a),{},{noBackground:0!==i,onClick:function(){return l((function(e){return 0===e?null:0}))},onMouseEnter:function(){return l((function(e){return null!==e?0:null}))},ref:u,children:(0,w.jsx)(h.ZP,{default:!0,children:"View"})})),(0,w.jsx)(v.Z,{alternateBackground:!0,items:c,onClickCallback:function(){return l(null)},open:0===i,parentRef:u,uuid:"FileBrowser/FileHeaderMenu/view"})]})})})})},D=(t(56756),t(78050)),O=t(89706),Z=t(97618),E=t(79899),P=t(68804),I=t(46978),L=t(85385),_=t(53808),R=t(53005),T=t(86735);function S(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function M(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,o.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 N="default_repo",A=l.default.div.withConfig({displayName:"Folder__ChildrenStyle",componentId:"sc-1gsjts-0"})([".expanded_children{display:block;}.collapsed_children{display:none;}"]),B=l.default.div.withConfig({displayName:"Folder__ChevronStyle",componentId:"sc-1gsjts-1"})([".expanded{.down{display:block;position:relative;}.right{display:none;position:absolute;}}.collapsed{.down{display:none;position:absolute;}.right{display:block;position:relative;}}"]);function U(e){var n=e.children,t=e.idleTimeout,o=(0,r.useState)(!1),i=o[0],l=o[1];return(0,r.useEffect)((function(){i&&l(!1);var e=requestIdleCallback((function(){return l(!0)}),{timeout:t});return function(){return cancelIdleCallback(e)}}),[t]),i?n:null}var H=function e(n){var t=n.allowEmptyFolders,i=n.allowSelectingFolders,l=n.containerRef,u=n.disableContextMenu,c=n.file,d=n.isFileDisabled,a=n.isInPipelinesFolder,s=n.isNotFolder,f=n.level,v=n.onClickFile,p=n.onClickFolder,m=n.onSelectBlockFile,b=n.onlyShowChildren,C=n.openFile,y=n.openSidekickView,k=n.reloadCount,x=n.renderAfterContent,F=n.selectFile,S=n.setContextItem,H=n.setCoordinates,q=n.setDraggingFile,Y=n.setSelectedFile,Q=n.theme,V=n.timeout,z=n.useRootFolder,W=n.uuidCombined,G=n.uuidContainer,$=(0,r.useRef)(null),X=c.children,J=c.disabled,K=c.name,ee=c.parent,ne=(0,r.useMemo)((function(){return X?(0,T.YC)(X,(function(e){return e.children?0:1})):X}),[X]),te=(0,r.useMemo)((function(){return[].concat(W||[]).concat(K||N)}),[K,W,,]),oe=(0,r.useMemo)((function(){return null===te||void 0===te?void 0:te.join("/")}),[te]),ie=(0,_.U2)(_.lQ,{}),re=(0,r.useRef)(null),le=(0,r.useRef)(null),ue=(0,r.useRef)(oe in ie?ie[oe]:0===f),ce=(0,r.useRef)(0),de=null===ue||void 0===ue?void 0:ue.current;K||t||(c.name=N);var ae=(0,E.Z)({allowEmptyFolders:t,children:ne,disabled:J,file:c,isInPipelinesFolder:a,isFileDisabled:d,isNotFolder:s,level:f,name:K,theme:Q,useRootFolder:z,uuid:oe}),se=ae.BlockIcon,fe=ae.Icon,ve=(ae.blockType,ae.color),pe=ae.disabled,he=ae.filePathToUse,me=ae.folderNameForBlock,be=ae.iconColor,ge=ae.isBlockFile,Ce=ae.isFirstParentFolderForBlock,je=ae.isFolder,ye=ae.isPipelineFolder,we=(0,r.useCallback)((function(n){return null===n||void 0===n?void 0:n.map((function(n){return(0,w.jsx)(e,{allowEmptyFolders:t,allowSelectingFolders:i,containerRef:l,disableContextMenu:u,file:M(M({},n),{},{parent:c}),isFileDisabled:d,isNotFolder:null===n||void 0===n?void 0:n.isNotFolder,isInPipelinesFolder:a||ye,level:b?f:f+1,onClickFile:v,onClickFolder:p,onSelectBlockFile:m,openFile:C,openSidekickView:y,reloadCount:k,renderAfterContent:x,selectFile:F,setContextItem:S,setCoordinates:H,setDraggingFile:q,setSelectedFile:Y,theme:Q,timeout:V,useRootFolder:z,uuidCombined:te,uuidContainer:G},"".concat(oe,"/").concat((null===n||void 0===n?void 0:n.name)||N,"-").concat(k))}))}),[t,i,ne,u,c,d,a,ye,f,v,p,m,b,C,y,k,x,F,S,H,q,Y,z,oe,te,G]),ke=(0,r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(ue.current="undefined"===typeof e||null===e?!ue.current:e,null!==re&&void 0!==re&&re.current&&(re.current.className=null!==ue&&void 0!==ue&&ue.current?"expanded_children":"collapsed_children",le.current.className=null!==ue&&void 0!==ue&&ue.current?"expanded":"collapsed"),0===(null===ce||void 0===ce?void 0:ce.current)){var t;if(null===$||void 0===$||!$.current){var i,r=document.getElementById(null===re||void 0===re||null===(i=re.current)||void 0===i?void 0:i.id);$.current=(0,D.createRoot)(r)}null===$||void 0===$||null===(t=$.current)||void 0===t||t.render((null===ne||void 0===ne?void 0:ne.length)>=1?(0,w.jsx)(U,{idleTimeout:n||1,children:we(ne)}):je?we(xe):(0,w.jsx)("div",{}))}(0,_.rQ)(_.lQ,(0,o.Z)({},oe,ue.current)),ce.current+=1}),[ne,je,oe]);(0,r.useEffect)((function(){var e=function(e){var n=e.detail,t=n.expand,i=(n.file,n.folder);je&&i&&null!==oe&&void 0!==oe&&oe.startsWith(null===i||void 0===i?void 0:i.uuid)&&((0,_.rQ)(_.lQ,(0,o.Z)({},oe,t)),ke(t,100*f))};return window.addEventListener(P.op,e),function(){window.removeEventListener(P.op,e)}}),[je,f,ke,oe]);var xe=(0,r.useMemo)((function(){return[{disabled:!0,name:"Empty",parent:c,isNotFolder:!0,uuid:te}]}),[c,te]),Fe=(0,r.useMemo)((function(){var e=[];return(0,T.w6)(f).forEach((function(n,t){var o,i=I.Cl-1;e.push((0,w.jsx)("div",{style:{borderLeft:"1px solid ".concat(null===Q||void 0===Q||null===(o=Q.content)||void 0===o?void 0:o.disabled),height:22,marginLeft:i/2-2,paddingLeft:i/2+2}},"line-".concat(oe,"-").concat(t)))})),e}),[f,Q,oe]);return(0,r.useEffect)((function(){setTimeout((function(){var e;if(de&&0===(null===ce||void 0===ce?void 0:ce.current)&&null!==re&&void 0!==re&&null!==(e=re.current)&&void 0!==e&&e.id){ce.current=1;try{var n;if(null===$||void 0===$||!$.current){var t,o=document.getElementById(null===re||void 0===re||null===(t=re.current)||void 0===t?void 0:t.id);$.current=(0,D.createRoot)(o)}null===$||void 0===$||null===(n=$.current)||void 0===n||n.render((null===ne||void 0===ne?void 0:ne.length)>=1?(0,w.jsx)(U,{idleTimeout:100*f,children:we(ne)}):null!==ne&&void 0!==ne&&ne.length?null:je?we(xe):(0,w.jsx)("div",{}))}catch(i){console.log(i)}}}),1)}),[]),(0,w.jsxs)(w.Fragment,{children:[!b&&(0,w.jsxs)("div",{className:"row",onClick:function(e){if(e.preventDefault(),!pe){if((null===ee||void 0===ee?void 0:ee.name)===O.PF){null===y||void 0===y||y(L.cH.CHARTS);var n=(0,R.lr)(c);n&&(null===m||void 0===m||m(n.uuid,n.type,(0,R.jN)(c)))}var t=(0,R.V3)(c);if(ne)i?F(he):ke(),null===p||void 0===p||p(he);else if(v)v(he);else if(t)null===m||void 0===m||m(t.uuid,t.type,(0,R.jN)(c),{file:c,path:he});else if(K.match(O.xF))null===C||void 0===C||C(he);else{var o=(0,R.lr)(c);o&&(null===m||void 0===m||m(o.uuid,o.type,(0,R.jN)(c)))}}},onContextMenu:function(e){var n;clearTimeout(V.current),null!==l&&void 0!==l&&null!==(n=l.current)&&void 0!==n&&n.contains(e.target)&&!u&&(e.preventDefault(),H({x:e.pageX,y:e.pageY}),q(null),Y(M(M({},c),{},{uuid:oe})))},onMouseDown:function(e){var n,t=c?(0,R.lr)(c,null,!0):null;null===l||void 0===l||null===(n=l.current)||void 0===n||!n.contains(e.target)||!t||(null===ne||void 0===ne?void 0:ne.length)>=1||u||pe||a||(e.preventDefault(),clearTimeout(V.current),V.current=setTimeout((function(){H({x:e.pageX,y:e.pageY}),q(c),Y(null)}),300))},style:{alignItems:"center",cursor:"default",display:"flex",minWidth:f*I.Cl+c.name.length*g.Fo+2*g.iI,paddingRight:g.iI/4},children:[(0,w.jsxs)(Z.Z,{alignItems:"center",flex:1,children:[Fe,(0,w.jsxs)(B,{children:[ne&&(0,w.jsxs)("div",{className:de?"expanded":"collapsed",ref:le,children:[(0,w.jsx)("div",{className:"down",children:(0,w.jsx)(j.ChevronDown,{muted:!0,size:I.ZG})}),(0,w.jsx)("div",{className:"right",children:(0,w.jsx)(j.ChevronRight,{muted:!0,size:I.ZG})})]}),!ne&&(0,w.jsx)("div",{style:{width:I.ZG}})]}),(0,w.jsx)("div",{style:{marginLeft:g.iI/2,marginRight:g.iI/2},children:me&&!je&&ge?(0,w.jsx)(se,{color:ve,size:me&&!je?.7*I.ZG:I.ZG,square:!0}):(0,w.jsx)(fe,{fill:be||(Ce?ve:null),disabled:pe,size:I.ZG})}),(0,w.jsx)(h.ZP,{default:!pe,disabled:pe,monospace:!0,small:!0,children:K})]}),x&&x(c)]}),(0,w.jsx)(A,{children:(0,w.jsx)("div",{className:de?"expanded_children":"collapsed_children",id:"".concat(G,"-").concat(oe),ref:re})})]})},q=t(65186),Y=t(93369),Q=t(65956),V=t(17488),z=t(35686),W=t(42122),G=t(72619);var $=function(e){var n=e.fetchFileTree,t=e.file,o=e.moveFile,l=e.onCancel,c=e.onCreateFile,d=e.selectedFolder,s=e.showError,v=(0,r.useRef)(null),h=(0,W.Qr)(t)?null:t,m=(0,r.useState)(h?(0,R.jN)(h,null,!0):""),b=m[0],C=m[1],j=(0,r.useState)(h?null===h||void 0===h?void 0:h.name:""),y=j[0],k=j[1];(0,r.useEffect)((function(){var e;null===v||void 0===v||null===(e=v.current)||void 0===e||e.focus()}),[]),(0,r.useEffect)((function(){d&&C((0,R.eV)(null===d||void 0===d?void 0:d.uuid))}),[d]);var x=(0,u.Db)(z.ZP.files.useCreate(),{onSuccess:function(e){return(0,G.wD)(e,{callback:function(e){var t=e.file;null===n||void 0===n||n(),l(),null===c||void 0===c||c(t)},onErrorCallback:function(e,n){return s({errors:n,response:e})}})}}),F=(0,i.Z)(x,1)[0],D=(0,u.Db)(z.ZP.files.useUpdate(h&&encodeURIComponent((0,R.jN)(h))),{onSuccess:function(e){return(0,G.wD)(e,{callback:function(){null===n||void 0===n||n(),l()},onErrorCallback:function(e,n){return s({errors:n,response:e})}})}}),O=(0,i.Z)(D,1)[0];return(0,w.jsxs)(Q.Z,{footer:(0,w.jsxs)(f.ZP,{children:[(0,w.jsxs)(Y.ZP,{bold:!0,disabled:!y,inline:!0,onClick:function(){return h?O({file:{dir_path:b,name:y},file_json_only:!0}):F({file:{dir_path:b,name:y,overwrite:!1},file_json_only:!0})},primary:!0,tabIndex:0,uuid:"NewFile/create_file",children:[h?o?"Move":"Rename":"Create"," file"]}),(0,w.jsx)(p.Z,{ml:1,children:(0,w.jsx)(a.ZP,{onClick:function(){return l()},tabIndex:0,children:"Cancel"})})]}),headerTitle:h?o?"Move file":"Rename file":"New file",minWidth:50*g.iI,children:[(0,w.jsx)(V.Z,{disabled:!!h&&!o,label:"Directory",monospace:!0,onChange:function(e){return C(e.target.value)},setContentOnMount:!0,value:b}),(0,w.jsx)(p.Z,{mt:2,children:(0,w.jsx)(V.Z,{disabled:!!o,label:"Filename",monospace:!0,onChange:function(e){return k(e.target.value)},ref:v,required:!0,value:y})})]})},X=t(82359);var J=function(e){var n=e.fetchFileTree,t=e.file,o=e.moveFile,l=e.onCancel,c=e.onCreateFile,d=e.projectType,s=e.selectedFolder,v=e.setErrors,h=e.showError,m=(0,r.useRef)(null),b=(0,W.Qr)(t)?null:t,C=(0,r.useState)(b?(0,R.jN)(b,null,!0):""),j=C[0],y=C[1],k=(0,r.useState)(b?null===b||void 0===b?void 0:b.name:""),x=k[0],F=k[1];(0,r.useEffect)((function(){var e;null===m||void 0===m||null===(e=m.current)||void 0===e||e.focus()}),[]),(0,r.useEffect)((function(){s&&y((0,R.eV)(null===s||void 0===s?void 0:s.uuid))}),[s]);var D=(0,u.Db)(z.ZP.folders.useCreate(),{onSuccess:function(e){return(0,G.wD)(e,{callback:function(e){var t=e.file;null===n||void 0===n||n(),l(),null===c||void 0===c||c(t)},onErrorCallback:function(e,n){return v?v({errors:n,response:e}):h({errors:n,response:e})}})}}),O=(0,i.Z)(D,1)[0],Z=(0,u.Db)(z.ZP.folders.useUpdate(b&&encodeURIComponent((0,R.jN)(b))),{onSuccess:function(e){return(0,G.wD)(e,{callback:function(){null===n||void 0===n||n(),l()},onErrorCallback:function(e,n){return v?v({errors:n,response:e}):h({errors:n,response:e})}})}}),E=(0,i.Z)(Z,1)[0],P=(0,u.Db)(z.ZP.projects.useCreate(),{onSuccess:function(e){return(0,G.wD)(e,{callback:function(){null===n||void 0===n||n(),l()},onErrorCallback:function(e,n){return v?v({errors:n,response:e}):h({errors:n,response:e})}})}}),I=(0,i.Z)(P,2),L=I[0],_=I[1].isLoading;return(0,w.jsxs)(Q.Z,{footer:(0,w.jsxs)(f.ZP,{children:[(0,w.jsxs)(Y.ZP,{bold:!0,disabled:!x,inline:!0,loading:_,onClick:function(){return b?E({folder:{name:x,path:j}}):d?L({project:{repo_path:j,type:d,uuid:x}}):O({folder:{name:x,overwrite:!1,path:j}})},primary:!0,tabIndex:0,uuid:"NewFolder/create_folder",children:[d&&"Create project",!d&&(0,w.jsxs)(w.Fragment,{children:[b?o?"Move":"Rename":"Create"," folder"]})]}),(0,w.jsx)(p.Z,{ml:1,children:(0,w.jsx)(a.ZP,{onClick:function(){return l()},tabIndex:0,children:"Cancel"})})]}),headerTitle:b?o?"Move folder":"Rename folder":d?X.k.STANDALONE===d?"New Mage project":X.k.DBT===d?"New dbt project":"New project":"New folder",minWidth:50*g.iI,children:[(0,w.jsx)(V.Z,{disabled:!!b&&!o,label:d?"Project directory":"Directory",monospace:!0,onChange:function(e){return y(e.target.value)},setContentOnMount:!0,value:j}),(0,w.jsx)(p.Z,{mt:2,children:(0,w.jsx)(V.Z,{disabled:!!o,label:d?"Project name":"Folder name",monospace:!0,onChange:function(e){return F(e.target.value)},ref:m,required:!0,value:x})})]})},K=t(57653),ee=t(89515),ne=t(17717),te=t(77011);function oe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function ie(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?oe(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):oe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var re=l.default.div.withConfig({displayName:"MultiFileInput__DropzoneStyle",componentId:"sc-1l6yd2y-0"})(["&:hover{cursor:pointer;}"]);var le=function(e){var n=e.children,t=e.inputOnChange,o=e.inputProps,i=e.onDragActiveChange,l=e.setFiles,u=(0,r.useCallback)((function(e){l(e)}),[l]),c=(0,te.uI)({onDrop:u}),d=c.getInputProps,a=c.getRootProps,s=c.isDragActive,f=d(),v=f.accept,p=f.autoComplete,h=f.multiple,m=f.onChange,b=f.onClick,g=f.ref,C=f.style,j=f.tabIndex,y=f.type,k=ie(ie({},o),{},{accept:v,autoComplete:p,multiple:h,onChange:function(e){null===t||void 0===t||t(e),null===o||void 0===o||o.onChange(e),m(e)},onClick:b,ref:g,style:C,tabIndex:j,type:y});return(0,r.useEffect)((function(){null===i||void 0===i||i(s)}),[s,i]),(0,w.jsxs)(re,ie(ie({},a()),{},{children:[(0,w.jsx)("input",ie(ie({},k),{},{directory:"",webkitdirectory:""})),n]}))};function ue(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function ce(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,o.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.children,t=e.directoryPath,l=e.onDragActiveChange,c=e.setFileUploadProgress,d=e.setUploadedFiles,a=(0,u.Db)(z.ZP.files.useCreate({onUploadProgress:function(e,n){var t,i=n.body,r=[null===i||void 0===i?void 0:i.dir_path,null===i||void 0===i||null===(t=i.file)||void 0===t?void 0:t.name].filter((function(e){return(null===e||void 0===e?void 0:e.length)>=1})).join(ne.sep);null===c||void 0===c||c((function(n){return ce(ce({},n),{},(0,o.Z)({},r,e.loaded/e.total))}))}})),s=(0,i.Z)(a,1)[0],f=(0,r.useCallback)((function(e){e.forEach((function(e){var n=e.name,i=e.path,r=[t],l=i.split(ne.sep).filter((function(e){return e&&e!==n})).join(ne.sep);l&&r.push(l);var u=[],a=r.join(ne.sep);(null===a||void 0===a?void 0:a.length)>=1&&r.push(a),u.push(n);var f=u.join(ne.sep);s({dir_path:a,file:e,overwrite:!1}).then((function(e){var n=e.data,t=n.error,i=n.file;d((function(e){return ce(ce({},e),{},(0,o.Z)({},f,i||t))}))})),c((function(e){return ce(ce({},e),{},(0,o.Z)({},f,0))}))}))}),[s,t,c,d]);return(0,w.jsx)(le,{onDragActiveChange:l,setFiles:f,children:n})},ae=t(35185),se=t(75499),fe=(g.iI,l.default.div.withConfig({displayName:"indexstyle__DropZoneStyle",componentId:"sc-1g3zz7z-0"})(["border-radius:","px;padding:","px;max-width:","px;min-width:","px;",""],b.n_,8*g.iI,100*g.iI,55*g.iI,(function(e){return"\n border: 1px dashed ".concat((e.theme.borders||m.Z.borders).contrast,";\n ")}))),ve=l.default.div.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1g3zz7z-1"})(["max-width:","px;min-width:","px;"],100*g.iI,55*g.iI);var pe=function(e){var n=e.fetchFileTree,t=e.onCancel,o=e.selectedFolder,l=(0,r.useState)(!1),u=l[0],c=l[1],d=(0,r.useState)({}),s=d[0],v=d[1],m=(0,r.useState)({}),b=m[0],g=m[1],C=!(0,W.Qr)(s),j=(0,r.useMemo)((function(){var e=[];return(0,T.YC)(Object.entries(s),(function(e){var n=(0,i.Z)(e,2),t=n[0];n[1];return t})).forEach((function(n){var t=(0,i.Z)(n,2),o=t[0],r=t[1],l=b[o],u=null===l||void 0===l?void 0:l.message;e.push([(0,w.jsxs)("div",{children:[(0,w.jsx)(h.ZP,{overflowWrap:!0,preWrap:!0,children:o}),u&&(0,w.jsx)(p.Z,{mt:1,children:(0,w.jsx)(h.ZP,{danger:!0,small:!0,children:u})})]},"name-".concat(o)),(0,w.jsx)(ae.Z,{danger:!!u,progress:100*r},"progress-".concat(o))])})),(0,w.jsx)(se.Z,{columnFlex:[1,4],columns:[{uuid:"Filename"},{uuid:"Upload progress"}],rows:e,uuid:"block-runs"})}),[s,b]);return(0,w.jsxs)(Q.Z,{footer:(0,w.jsxs)(f.ZP,{fullWidth:!0,children:[(0,w.jsx)(a.ZP,{onClick:function(){return t()},children:"Close"}),C&&(0,w.jsx)(p.Z,{ml:1,children:(0,w.jsx)(a.ZP,{onClick:function(){v({}),g({})},children:"Clear files and retry"})})]}),headerTitle:"Upload files",children:[C&&(0,w.jsx)(ve,{children:j}),!C&&(0,w.jsx)(de,{directoryPath:o?(0,R.jN)(o):"",onDragActiveChange:c,setFileUploadProgress:v,setUploadedFiles:function(e){g(e),null===n||void 0===n||n()},children:(0,w.jsx)(fe,{children:(0,w.jsxs)(h.ZP,{center:!0,children:[u&&"Drop to upload",!u&&"Click or drop files and folders to upload"]})})})]})},he=t(77417),me=t(19698),be=t(31353),ge=t(68669),Ce=t(74401),je=t(44952),ye=t(89538);function we(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function ke(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,o.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 xe,Fe=20*g.iI;function De(e,n){var t=e.addNewBlock,o=(e.blocks,e.deleteWidget),a=e.disableContextMenu,s=(e.fetchAutocompleteItems,e.fetchFiles),f=e.fetchPipeline,p=e.files,m=e.onClickFile,b=e.onClickFolder,C=e.onCreateFile,y=e.onSelectBlockFile,k=e.openFile,x=(e.openSidekickView,e.pipeline),D=e.renderAfterContent,O=e.showError,Z=e.setSelectedBlock,E=e.setShowHiddenFiles,L=e.showHiddenFiles,_=e.showHiddenFilesSetting,S=e.uuid,M=(e.widgets,(0,r.useRef)(null)),N=((0,r.useRef)(null),(0,r.useContext)(l.ThemeContext)),A=(0,r.useState)(null),B=A[0],U=A[1],Y=(0,r.useState)(null),Q=Y[0],V=Y[1],W=(0,r.useState)(null),ne=W[0],te=W[1],oe=(0,r.useState)(0),ie=oe[0],re=oe[1],le=(0,r.useState)(null);le[0],le[1];(0,r.useEffect)((function(){re((function(e){return e+1}))}),[p]);var ue=(0,r.useMemo)((function(){return ne&&"undefined"!==typeof(null===ne||void 0===ne?void 0:ne.children)&&ne}),[ne]),ce=(0,he.Z)(),de=ce.featureEnabled,ae=ce.featureUUIDs,se=ce.project,fe=(0,me.Z)().status,ve=(0,u.Db)((function(e){return z.ZP.downloads.files.useCreate(e)()}),{onSuccess:function(e){return(0,G.wD)(e,{callback:function(){var n=e.data.download.token;(0,je.K)(n)},onErrorCallback:function(e,n){return O({errors:n,response:e})}})}}),we=(0,i.Z)(ve,1)[0],xe=(0,u.Db)((function(e){return z.ZP.files.useDelete(e)()}),{onSuccess:function(e){return(0,G.wD)(e,{callback:function(){null===s||void 0===s||s()},onErrorCallback:function(e,n){return O({errors:n,response:e})}})}}),De=(0,i.Z)(xe,1)[0],Oe=(0,u.Db)((function(e){return z.ZP.folders.useDelete(e)()}),{onSuccess:function(e){return(0,G.wD)(e,{callback:function(){null===s||void 0===s||s()},onErrorCallback:function(e,n){return O({errors:n,response:e})}})}}),Ze=(0,i.Z)(Oe,1)[0],Ee=(0,u.Db)((function(e){var n=e.block,t=(n.language,n.type,n.uuid),o=e.file,i=e.force,r=void 0!==i&&i;return z.ZP.blocks.useDelete(encodeURIComponent(t),{file_path:o?encodeURIComponent((0,Ce.a)(o)):null,force:r})()}),{onSuccess:function(e){return(0,G.wD)(e,{callback:function(){null===s||void 0===s||s()},onErrorCallback:function(e,n){var t=e.error,o=t.exception;if(!t.message.includes("raise HasDownstreamDependencies"))return O({errors:n,response:e});_e({block:Be,file:ne,exception:o})}})}}),Pe=(0,i.Z)(Ee,1)[0],Ie=(0,ye.dd)((function(e){var n=e.block,t=e.file;return(0,w.jsx)(ee.Z,{centerOnScreen:!0,danger:!0,onCancel:Re,onClick:function(){return Pe({block:n,file:t,force:!0}).then((function(){return Re()}))},subtitle:"Deleting this block file is dangerous. This block may have dependencies in active pipelines. Press confirm to delete this block anyway and remove it as a dependency from downstream blocks.",title:"Delete ".concat(n.uuid," anyway?"),width:34*g.iI})})),Le=(0,i.Z)(Ie,2),_e=Le[0],Re=Le[1],Te=(0,T.sE)(null===x||void 0===x?void 0:x.blocks,(function(e){var n=e.type;return d.tf.DATA_EXPORTER===n})),Se=(0,u.Db)(z.ZP.blocks.pipelines.useUpdate(encodeURIComponent(null===x||void 0===x?void 0:x.uuid),encodeURIComponent(null===Te||void 0===Te?void 0:Te.uuid)),{onSuccess:function(e){return(0,G.wD)(e,{callback:function(){null===f||void 0===f||f()},onErrorCallback:function(e,n){return O({errors:n,response:e})}})}}),Me=(0,i.Z)(Se,1)[0],Ne=(0,r.useCallback)((function(){return te(null)}),[te]);(0,r.useEffect)((function(){var e,o,i,r=function(e){if(clearTimeout(M.current),V(null),Q&&x&&t){var o,i,r=(null===n||void 0===n||null===(o=n.current)||void 0===o||null===(i=o.getBoundingClientRect)||void 0===i?void 0:i.call(o))||{},l=r.width,u=r.x;if(e.pageX>u+l){var c=(null===x||void 0===x?void 0:x.type)===K.qL.INTEGRATION,d=(0,ge.TU)(ke(ke({},Q),{},{path:(0,Ce.a)(Q)}),fe.repo_path,x);null===t||void 0===t||t(ke(ke({},d),{},{require_unique_name:!1}),(function(e){c&&Te&&Me({block:ke(ke({},Te),{},{upstream_blocks:[e.uuid]})}),null===Z||void 0===Z||Z(e)}),{disableFetchingFiles:!0})}}},l=function(e){Q&&U({x:e.pageX,y:e.pageY})};return null===(e=document)||void 0===e||e.addEventListener("click",Ne),null===(o=document)||void 0===o||o.addEventListener("mousemove",l),null===(i=document)||void 0===i||i.addEventListener("mouseup",r),function(){var e,n,t;null===(e=document)||void 0===e||e.removeEventListener("click",Ne),null===(n=document)||void 0===n||n.removeEventListener("mousemove",l),null===(t=document)||void 0===t||t.removeEventListener("mouseup",r)}}),[t,Te,Q,Ne,x,n,Z,fe,M,Me]);var Ae=(0,r.useMemo)((function(){return null===p||void 0===p?void 0:p.map((function(e){return(0,w.jsx)(H,{containerRef:n,disableContextMenu:a,file:e,level:0,onClickFile:m,onClickFolder:b,onSelectBlockFile:y,openFile:k,reloadCount:ie,renderAfterContent:D,setCoordinates:U,setDraggingFile:V,setSelectedFile:te,theme:N,timeout:M,uuidContainer:S},"".concat(e.name,"-").concat(ie))}))}),[a,p,m,b,k,y,ie,D,S]),Be=(0,r.useMemo)((function(){return ne&&(0,R.lr)(ne)}),[ne]),Ue=(0,r.useMemo)((function(){return Q&&(0,R.lr)(Q)}),[Q]),He=(0,ye.dd)((function(){return(0,w.jsx)(pe,{fetchFileTree:s,onCancel:Qe,selectedFolder:ue})}),{},[s,ue],{background:!0,uuid:"upload_files"}),qe=(0,i.Z)(He,2),Ye=qe[0],Qe=qe[1],Ve=(0,ye.dd)((function(e){return(0,w.jsx)($,{fetchFileTree:s,file:null===e||void 0===e?void 0:e.file,moveFile:null===e||void 0===e?void 0:e.moveFile,onCancel:Ge,onCreateFile:C,selectedFolder:ue,showError:O})}),{},[s,C,ue,O],{background:!0,disableClickOutside:!0,uuid:"new_file"}),ze=(0,i.Z)(Ve,2),We=ze[0],Ge=ze[1],$e=(0,ye.dd)((function(e){return(0,w.jsx)(J,{fetchFileTree:s,file:null===e||void 0===e?void 0:e.file,moveFile:null===e||void 0===e?void 0:e.moveFile,onCancel:Ke,projectType:null===e||void 0===e?void 0:e.projectType,selectedFolder:ue,showError:O})}),{},[s,ue,O,O],{background:!0,disableClickOutside:!0,uuid:"new_folder"}),Xe=(0,i.Z)($e,2),Je=Xe[0],Ke=Xe[1],en=(0,r.useMemo)((function(){var e;if(!Be&&!ne&&!ue)return(0,w.jsx)("div",{});var t=(null===n||void 0===n||null===(e=n.current)||void 0===e?void 0:e.getBoundingClientRect())||{},i=t.x,r=t.width,l=B||{},u=l.x,a=void 0===u?0:u,s=l.y,f=void 0===s?0:s,p=a+g.iI;a+Fe>=i+r&&(p=i+r-(Fe+g.iI)),p<0&&(p=0);var h=[];ue?(h.push.apply(h,[{label:function(){return"New folder"},onClick:function(){Je()},uuid:"new_folder"},{label:function(){return"Rename folder"},onClick:function(){Je({file:ue})},uuid:"rename_folder"},{label:function(){return"Move folder"},onClick:function(){Je({file:ue,moveFile:!0})},uuid:"Move_folder"},{label:function(){return"Delete folder"},onClick:function(){var e=(0,Ce.a)(ue);window.confirm("Are you sure you want to delete folder ".concat(e," and all its subfolders and files?"))&&Ze(encodeURIComponent(e))},uuid:"Delete_folder"},{label:function(){return"New file"},onClick:function(){We({file:{}})},uuid:"new_file"},{label:function(){return"Upload files"},onClick:function(){Ye()},uuid:"upload_files"},{label:function(){return"Expand all subfolders"},onClick:function(){var e=new CustomEvent(P.op,{detail:{expand:!0,file:ne,folder:ue}});window.dispatchEvent(e)},uuid:"Expand all subfolders"},{label:function(){return"Collapse all subfolders"},onClick:function(){var e=new CustomEvent(P.op,{detail:{expand:!1,file:ne,folder:ue}});window.dispatchEvent(e)},uuid:"Collapse all subfolders"}]),null!==de&&void 0!==de&&de(null===ae||void 0===ae?void 0:ae.PROJECT_PLATFORM)&&h.push({beforeIcon:(0,w.jsx)(q.Z,{width:1.5*g.iI}),onClick:function(){Je({projectType:X.k.STANDALONE})},uuid:"New Mage project"}),null!==de&&void 0!==de&&de(null===ae||void 0===ae?void 0:ae.DBT_V2)&&h.push({beforeIcon:(0,w.jsx)(j.DBT,{}),onClick:function(){Je({projectType:X.k.DBT})},uuid:"New dbt project"})):ne&&(h.push.apply(h,[{label:function(){return"Rename file"},onClick:function(){We({file:ne})},uuid:"rename_file"},{label:function(){return"Move file"},onClick:function(){We({file:ne,moveFile:!0})},uuid:"move_file"},{label:function(){return"Download file"},onClick:function(){var e=(0,Ce.a)(ne);we(encodeURIComponent(e))},uuid:"download_file"}]),Be?h.push({label:function(){return"Delete file"},onClick:function(){if(Be.type===d.tf.CHART)window.confirm("Are you sure you want to delete ".concat(Be.uuid,"?"))&&o(Be);else{var e=(0,Ce.a)(ne);window.confirm("Are you sure you want to delete ".concat(e,"?"))&&De(encodeURIComponent(e))}},uuid:"delete_block_file"}):h.push({label:function(){return"Delete file"},onClick:function(){var e=(0,Ce.a)(ne);window.confirm("Are you sure you want to delete file ".concat(e,"?"))&&De(encodeURIComponent(e))},uuid:"delete_file"}));var m=f+g.iI/2,b=36*h.length;return f+b>=window.innerHeight&&(m=f-b),(0,c.createPortal)((0,w.jsx)("div",{style:{left:p,position:"fixed",top:m,zIndex:be.bf+100},children:(0,w.jsx)(v.Z,{items:h,open:!0,parentRef:void 0,uuid:"FileBrowser/ContextMenu",width:Fe})}),document.body)}),[B,Pe,De,Ze,o,we,de,ae,se,n,Ye,We,Je,Be,ne,ue]);return(0,w.jsxs)(I.Nk,{ref:n,children:[_&&E&&"undefined"!==typeof L&&(0,w.jsx)(F,{setShowHiddenFiles:E,showHiddenFiles:L}),Ae,(Be||ne||ue)&&en,Ue&&(0,w.jsx)("div",{style:{left:(null===B||void 0===B?void 0:B.x)-g.iI,position:"fixed",top:(null===B||void 0===B?void 0:B.y)-g.iI,zIndex:be.bf+100},children:(0,w.jsx)(h.ZP,{cursor:"grabbing",monospace:!0,children:null===Ue||void 0===Ue?void 0:Ue.uuid})})]})}!function(e){e.BLOCK_FILE="block_file",e.DISABLED="disabled",e.FILE="file",e.FOLDER="folder",e.PIPELINE="pipeline"}(xe||(xe={}));var Oe=r.forwardRef(De)},53005:function(e,n,t){t.d(n,{IO:function(){return m},V3:function(){return h},a9:function(){return c},eV:function(){return d},jN:function(){return a},lr:function(){return p},mD:function(){return s},o$:function(){return v},u$:function(){return b},y:function(){return f}});var o=t(17717),i=t(44425),r=t(89706),l=t(81728),u=t(68669);function c(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=n||(t?null:null===e||void 0===e?void 0:e.name);if(null!==e&&void 0!==e&&e.parent){var r=[e.parent.name];return(null===i||void 0===i?void 0:i.length)>=1&&r.push(i),c(e.parent,r.join(o.sep))}return i}function d(e){return null===e||void 0===e?void 0:e.split(o.sep).slice(1).join(o.sep)}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=c(e,n,t);return d(o)}function s(e){var n=null===e||void 0===e?void 0:e.match(r.d2);return(null===n||void 0===n?void 0:n.length)>=1?n[0].replace(".",""):null}function f(e){var n=["\\.".concat(r.Lu.PY),"\\.".concat(r.Lu.R),"\\.".concat(r.Lu.SQL),"\\.".concat(r.Lu.YAML),"\\.".concat(r.Lu.YML)].join("|"),t=new RegExp("".concat(n,"$")),o=e.match(t);return(null===o||void 0===o?void 0:o.length)>=1?o[0].replace(".",""):null}function v(e,n){var t=f(e);return!["__init__.py"].includes(e)&&(i.tf.DBT!==n||![r.Lu.YAML,r.Lu.YML].includes(t))}function p(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=c(e,n).split(o.sep);if(!l)return null;var d=(0,u.ck)(l);if(!l)return null;var a="";a=l.length>=3?l.slice(2,l.length).join(o.sep):l[l.length-1];var s=t?i.Q3:i.$W;if(s.concat(i.tf.DBT).includes(d)&&f(a)){var v=a.lastIndexOf("."),p=a.slice(v+1);return{language:r.nB[p],type:d,uuid:a.slice(0,v)}}}function h(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=c(e,n).split(o.sep);if(t[1]){var u=(0,l.C5)(t[n?0:1]);t[1]===i.tf.DBT&&(u=i.tf.DBT);var d=t[t.length-1],a=new RegExp(".".concat(r.Lu.YAML,"$")),s=new RegExp(".".concat(r.Lu.R,"$")),f=new RegExp(".".concat(r.Lu.SQL,"$")),v=new RegExp(".".concat(r.Lu.MD,"$"));if(d.match(a)&&i.VZ.includes(u))return{type:u,uuid:d.replace(a,"")};if(d.match(s)&&i.J8.includes(u))return{type:u,uuid:d.replace(s,"")};if(d.match(f)&&i.HX.includes(u)){var p=d.replace(/[.]/g,"_"),h=u===i.tf.DBT?t.slice(2,-1).join("_").concat("_".concat(p)):d.replace(f,"");return{type:u,uuid:h}}return d.match(v)&&u===i.tf.MARKDOWN?{type:u,uuid:d.replace(v,"")}:void 0}}function m(e,n){var t=e.split("."),i=t[t.length-1];r.n6.includes(i)&&t.pop();var l=t.join("").split(o.sep),u=l.slice(1,l.length).join("");return n.find((function(e){return e.uuid===u}))}function b(e){var n=e||{},t=n.language,o=n.name,u=n.type;if(o&&t&&u){var c=u===i.tf.CUSTOM?u:"".concat(u,"s"),d=r.JD[t],a=(0,l.kE)(o);return"".concat(c,"/").concat(a,".").concat(d)}}},68669:function(e,n,t){t.d(n,{TU:function(){return p},ck:function(){return f},lU:function(){return v}});var o=t(21831),i=t(17717),r=t(44425),l=t(57653),u=t(89706),c=t(86735),d=t(74401),a=t(81728),s=t(42122),f=function(e){var n;if(null===e||void 0===e||e.forEach((function(e){if((null===e||void 0===e?void 0:e.length)>=1){var t=null===e||void 0===e?void 0:e.toLowerCase();(t in r.qC||(t=(0,a.C5)(t))in r.GJ)&&(n=t)}})),!n){var t=["\\.".concat(u.Lu.SQL),"\\.".concat(u.Lu.YAML),"\\.".concat(u.Lu.YML)].join("|"),o=new RegExp("".concat(t,"$"));if(e.join(i.sep).match(o))return r.tf.DBT}return n};function v(){return new RegExp(Object.keys(u.nB).map((function(e){return".(".concat(e,")$")})).join("|"))}function p(e,n,t){var p,h,m=null===e||void 0===e||null===(p=e.path.match(v())[0])||void 0===p?void 0:p.split(".")[1],b=t.type===l.qL.INTEGRATION,g=(0,c.sE)(null===t||void 0===t?void 0:t.blocks,(function(e){var n=e.type;return r.tf.DATA_EXPORTER===n})),C=e.path.replace(n,"").split(i.sep),j=f(e.path.split(i.sep)),y=r.tf.DBT===j,w=(h=C)[0]===r.tf.DBT?h.slice(1).join(i.sep):function(e){return e.at(-1)}(h).split(".")[0];if(C.length>=3&&!y){var k,x,F=null===C||void 0===C?void 0:C.findIndex((function(e){return null===e||void 0===e?void 0:e.startsWith(j)})),D=null!==C&&void 0!==C&&null!==(k=C[(null===C||void 0===C?void 0:C.length)-1])&&void 0!==k&&k.startsWith(w)?(null===C||void 0===C?void 0:C.length)-1:null===C||void 0===C?void 0:C.length,O=null===C||void 0===C||null===(x=C.slice(F+1,D))||void 0===x?void 0:x.join(i.sep);(null===O||void 0===O?void 0:O.length)>=1&&(w="".concat(O,"/").concat(w))}var Z=u.nB[m],E={configuration:(0,s.hB)({file_path:y&&r.t6.SQL===Z?(0,d.a)(e):null,file_source:{path:(0,d.a)(e)}}),language:Z,name:(0,a.wE)(w),type:j};if(j===r.tf.CUSTOM&&(E.color=r.Lq.TEAL),b){var P=(0,c.sE)(t.blocks,(function(e){var n=e.type;return r.tf.DATA_LOADER===n})),I=(0,c.sE)(t.blocks,(function(e){var n=e.type;return r.tf.TRANSFORMER===n})),L=[];I?L.push(I.uuid):null!==g&&void 0!==g&&g.upstream_blocks?L.push.apply(L,(0,o.Z)(g.upstream_blocks)):P&&L.push(P.uuid),E.upstream_blocks=L}return E}},44952:function(e,n,t){t.d(n,{K:function(){return i}});var o=t(4383);function i(e){var n=(0,o.ZP)("downloads",e),t=document.createElement("a");t.href=n,document.body.appendChild(t),t.click(),window.URL.revokeObjectURL(n),document.body.removeChild(t)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[26],{20026:function(t){var e;globalThis,e=()=>(()=>{"use strict";var t={794:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CronParser=void 0;var r=n(586),i=function(){function t(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!1),this.expression=t,this.dayOfWeekStartIndexZero=e,this.monthStartIndexZero=n}return t.prototype.parse=function(){var t=this.extractParts(this.expression);return this.normalize(t),this.validate(t),t},t.prototype.extractParts=function(t){if(!this.expression)throw new Error("Expression is empty");var e=t.trim().split(/[ ]+/);if(e.length<5)throw new Error("Expression has only ".concat(e.length," part").concat(1==e.length?"":"s",". At least 5 parts are required."));if(5==e.length)e.unshift(""),e.push("");else if(6==e.length)/\d{4}$/.test(e[5])||"?"==e[4]||"?"==e[2]?e.unshift(""):e.push("");else if(e.length>7)throw new Error("Expression has ".concat(e.length," parts; too many!"));return e},t.prototype.normalize=function(t){var e=this;if(t[3]=t[3].replace("?","*"),t[5]=t[5].replace("?","*"),t[2]=t[2].replace("?","*"),0==t[0].indexOf("0/")&&(t[0]=t[0].replace("0/","*/")),0==t[1].indexOf("0/")&&(t[1]=t[1].replace("0/","*/")),0==t[2].indexOf("0/")&&(t[2]=t[2].replace("0/","*/")),0==t[3].indexOf("1/")&&(t[3]=t[3].replace("1/","*/")),0==t[4].indexOf("1/")&&(t[4]=t[4].replace("1/","*/")),0==t[6].indexOf("1/")&&(t[6]=t[6].replace("1/","*/")),t[5]=t[5].replace(/(^\d)|([^#/\s]\d)/g,(function(t){var n=t.replace(/\D/,""),r=n;return e.dayOfWeekStartIndexZero?"7"==n&&(r="0"):r=(parseInt(n)-1).toString(),t.replace(n,r)})),"L"==t[5]&&(t[5]="6"),"?"==t[3]&&(t[3]="*"),t[3].indexOf("W")>-1&&(t[3].indexOf(",")>-1||t[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var n={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in n)t[5]=t[5].replace(new RegExp(r,"gi"),n[r].toString());t[4]=t[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,(function(t){var n=t.replace(/\D/,""),r=n;return e.monthStartIndexZero&&(r=(parseInt(n)+1).toString()),t.replace(n,r)}));var i={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var o in i)t[4]=t[4].replace(new RegExp(o,"gi"),i[o].toString());"0"==t[0]&&(t[0]=""),/\*|\-|\,|\//.test(t[2])||!/\*|\//.test(t[1])&&!/\*|\//.test(t[0])||(t[2]+="-".concat(t[2]));for(var a=0;a<t.length;a++)if(-1!=t[a].indexOf(",")&&(t[a]=t[a].split(",").filter((function(t){return""!==t})).join(",")||"*"),"*/1"==t[a]&&(t[a]="*"),t[a].indexOf("/")>-1&&!/^\*|\-|\,/.test(t[a])){var s=null;switch(a){case 4:s="12";break;case 5:s="6";break;case 6:s="9999";break;default:s=null}if(null!==s){var u=t[a].split("/");t[a]="".concat(u[0],"-").concat(s,"/").concat(u[1])}}},t.prototype.validate=function(t){this.assertNoInvalidCharacters("DOW",t[5]),this.assertNoInvalidCharacters("DOM",t[3]),this.validateRange(t)},t.prototype.validateRange=function(t){r.default.secondRange(t[0]),r.default.minuteRange(t[1]),r.default.hourRange(t[2]),r.default.dayOfMonthRange(t[3]),r.default.monthRange(t[4],this.monthStartIndexZero),r.default.dayOfWeekRange(t[5],this.dayOfWeekStartIndexZero)},t.prototype.assertNoInvalidCharacters=function(t,e){var n=e.match(/[A-KM-VX-Z]+/gi);if(n&&n.length)throw new Error("".concat(t," part contains invalid values: '").concat(n.toString(),"'"))},t}();e.CronParser=i},728:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ExpressionDescriptor=void 0;var r=n(910),i=n(794),o=function(){function t(e,n){if(this.expression=e,this.options=n,this.expressionParts=new Array(5),!this.options.locale&&t.defaultLocale&&(this.options.locale=t.defaultLocale),!t.locales[this.options.locale]){var r=Object.keys(t.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(r,"'.")),this.options.locale=r}this.i18n=t.locales[this.options.locale],void 0===n.use24HourTimeFormat&&(n.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return t.toString=function(e,n){var r=void 0===n?{}:n,i=r.throwExceptionOnParseError,o=void 0===i||i,a=r.verbose,s=void 0!==a&&a,u=r.dayOfWeekStartIndexZero,c=void 0===u||u,h=r.monthStartIndexZero,p=void 0!==h&&h,f=r.use24HourTimeFormat,l=r.locale,y=void 0===l?null:l,m=r.tzOffset;return new t(e,{throwExceptionOnParseError:o,verbose:s,dayOfWeekStartIndexZero:c,monthStartIndexZero:p,use24HourTimeFormat:f,locale:y,tzOffset:void 0===m?0:m}).getFullDescription()},t.initialize=function(e,n){void 0===n&&(n="en"),t.specialCharacters=["/","-",",","*"],t.defaultLocale=n,e.load(t.locales)},t.prototype.getFullDescription=function(){var t="";try{var e=new i.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=e.parse();var n=this.getTimeOfDayDescription(),r=this.getDayOfMonthDescription(),o=this.getMonthDescription();t+=n+r+this.getDayOfWeekDescription()+o+this.getYearDescription(),t=(t=this.transformVerbosity(t,!!this.options.verbose)).charAt(0).toLocaleUpperCase()+t.substr(1)}catch(a){if(this.options.throwExceptionOnParseError)throw"".concat(a);t=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD()}return t},t.prototype.getTimeOfDayDescription=function(){var e=this.expressionParts[0],n=this.expressionParts[1],i=this.expressionParts[2],o="";if(r.StringUtilities.containsAny(n,t.specialCharacters)||r.StringUtilities.containsAny(i,t.specialCharacters)||r.StringUtilities.containsAny(e,t.specialCharacters))if(e||!(n.indexOf("-")>-1)||n.indexOf(",")>-1||n.indexOf("/")>-1||r.StringUtilities.containsAny(i,t.specialCharacters))if(!e&&i.indexOf(",")>-1&&-1==i.indexOf("-")&&-1==i.indexOf("/")&&!r.StringUtilities.containsAny(n,t.specialCharacters)){var a=i.split(",");o+=this.i18n.at();for(var s=0;s<a.length;s++)o+=" ",o+=this.formatTime(a[s],n,""),s<a.length-2&&(o+=","),s==a.length-2&&(o+=this.i18n.spaceAnd())}else{var u=this.getSecondsDescription(),c=this.getMinutesDescription(),h=this.getHoursDescription();if((o+=u)&&c&&(o+=", "),o+=c,c===h)return o;o&&h&&(o+=", "),o+=h}else{var p=n.split("-");o+=r.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(i,p[0],""),this.formatTime(i,p[1],""))}else o+=this.i18n.atSpace()+this.formatTime(i,n,e);return o},t.prototype.getSecondsDescription=function(){var t=this;return this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),(function(t){return t}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Seconds(e),e)}),(function(e){return t.i18n.secondsX0ThroughX1PastTheMinute()}),(function(e){return"0"==e?"":parseInt(e)<20?t.i18n.atX0SecondsPastTheMinute(e):t.i18n.atX0SecondsPastTheMinuteGt20()||t.i18n.atX0SecondsPastTheMinute(e)}))},t.prototype.getMinutesDescription=function(){var t=this,e=this.expressionParts[0],n=this.expressionParts[2];return this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),(function(t){return t}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Minutes(e),e)}),(function(e){return t.i18n.minutesX0ThroughX1PastTheHour()}),(function(r){try{return"0"==r&&-1==n.indexOf("/")&&""==e?t.i18n.everyHour():parseInt(r)<20?t.i18n.atX0MinutesPastTheHour(r):t.i18n.atX0MinutesPastTheHourGt20()||t.i18n.atX0MinutesPastTheHour(r)}catch(i){return t.i18n.atX0MinutesPastTheHour(r)}}))},t.prototype.getHoursDescription=function(){var t=this,e=this.expressionParts[2],n=this.getSegmentDescription(e,this.i18n.everyHour(),(function(e){return t.formatTime(e,"0","")}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Hours(e),e)}),(function(e){return t.i18n.betweenX0AndX1()}),(function(e){return t.i18n.atX0()}));if(n&&e.includes("-")&&"0"!=this.expressionParts[1]){var i=Array.from(n.matchAll(/:00/g));if(i.length>1){var o=i[i.length-1].index;n=n.substring(0,o)+":59"+n.substring(o+3)}}return n},t.prototype.getDayOfWeekDescription=function(){var t=this,e=this.i18n.daysOfTheWeek();return"*"==this.expressionParts[5]?"":this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),(function(n,r){var i=n;n.indexOf("#")>-1?i=n.substring(0,n.indexOf("#")):n.indexOf("L")>-1&&(i=i.replace("L",""));var o=t.i18n.daysOfTheWeekInCase?t.i18n.daysOfTheWeekInCase(r)[parseInt(i)]:e[parseInt(i)];if(n.indexOf("#")>-1){var a=null,s=n.substring(n.indexOf("#")+1),u=n.substring(0,n.indexOf("#"));switch(s){case"1":a=t.i18n.first(u);break;case"2":a=t.i18n.second(u);break;case"3":a=t.i18n.third(u);break;case"4":a=t.i18n.fourth(u);break;case"5":a=t.i18n.fifth(u)}o=a+" "+o}return o}),(function(e){return 1==parseInt(e)?"":r.StringUtilities.format(t.i18n.commaEveryX0DaysOfTheWeek(e),e)}),(function(e){var n=e.substring(0,e.indexOf("-"));return"*"!=t.expressionParts[3]?t.i18n.commaAndX0ThroughX1(n):t.i18n.commaX0ThroughX1(n)}),(function(e){var n=null;if(e.indexOf("#")>-1){var r=e.substring(e.indexOf("#")+1);n=t.i18n.commaOnThe(r).trim()+t.i18n.spaceX0OfTheMonth()}else n=e.indexOf("L")>-1?t.i18n.commaOnTheLastX0OfTheMonth(e.replace("L","")):"*"!=t.expressionParts[3]?t.i18n.commaAndOnX0():t.i18n.commaOnlyOnX0(e);return n}))},t.prototype.getMonthDescription=function(){var t=this,e=this.i18n.monthsOfTheYear();return this.getSegmentDescription(this.expressionParts[4],"",(function(n,r){return r&&t.i18n.monthsOfTheYearInCase?t.i18n.monthsOfTheYearInCase(r)[parseInt(n)-1]:e[parseInt(n)-1]}),(function(e){return 1==parseInt(e)?"":r.StringUtilities.format(t.i18n.commaEveryX0Months(e),e)}),(function(e){return t.i18n.commaMonthX0ThroughMonthX1()||t.i18n.commaX0ThroughX1()}),(function(e){return t.i18n.commaOnlyInMonthX0?t.i18n.commaOnlyInMonthX0():t.i18n.commaOnlyInX0()}))},t.prototype.getDayOfMonthDescription=function(){var t=this,e=null,n=this.expressionParts[3];switch(n){case"L":e=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":e=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var i=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(i){var o=parseInt(i[0].replace("W","")),a=1==o?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),o.toString());e=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),a);break}var s=n.match(/L-(\d{1,2})/);if(s){var u=s[1];e=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(u),u);break}if("*"==n&&"*"!=this.expressionParts[5])return"";e=this.getSegmentDescription(n,this.i18n.commaEveryDay(),(function(e){return"L"==e?t.i18n.lastDay():t.i18n.dayX0?r.StringUtilities.format(t.i18n.dayX0(),e):e}),(function(e){return"1"==e?t.i18n.commaEveryDay():t.i18n.commaEveryX0Days(e)}),(function(e){return t.i18n.commaBetweenDayX0AndX1OfTheMonth(e)}),(function(e){return t.i18n.commaOnDayX0OfTheMonth(e)}))}return e},t.prototype.getYearDescription=function(){var t=this;return this.getSegmentDescription(this.expressionParts[6],"",(function(t){return/^\d+$/.test(t)?new Date(parseInt(t),1).getFullYear().toString():t}),(function(e){return r.StringUtilities.format(t.i18n.commaEveryX0Years(e),e)}),(function(e){return t.i18n.commaYearX0ThroughYearX1()||t.i18n.commaX0ThroughX1()}),(function(e){return t.i18n.commaOnlyInYearX0?t.i18n.commaOnlyInYearX0():t.i18n.commaOnlyInX0()}))},t.prototype.getSegmentDescription=function(t,e,n,i,o,a){var s=null,u=t.indexOf("/")>-1,c=t.indexOf("-")>-1,h=t.indexOf(",")>-1;if(t)if("*"===t)s=e;else if(u||c||h)if(h){for(var p=t.split(","),f="",l=0;l<p.length;l++)if(l>0&&p.length>2&&(f+=",",l<p.length-1&&(f+=" ")),l>0&&p.length>1&&(l==p.length-1||2==p.length)&&(f+="".concat(this.i18n.spaceAnd()," ")),p[l].indexOf("/")>-1||p[l].indexOf("-")>-1){var y=p[l].indexOf("-")>-1&&-1==p[l].indexOf("/"),m=this.getSegmentDescription(p[l],e,n,i,y?this.i18n.commaX0ThroughX1:o,a);y&&(m=m.replace(", ","")),f+=m}else f+=u?this.getSegmentDescription(p[l],e,n,i,o,a):n(p[l]);s=u?f:r.StringUtilities.format(a(t),f)}else if(u){if(p=t.split("/"),s=r.StringUtilities.format(i(p[1]),p[1]),p[0].indexOf("-")>-1){var d=this.generateRangeSegmentDescription(p[0],o,n);0!=d.indexOf(", ")&&(s+=", "),s+=d}else if(-1==p[0].indexOf("*")){var g=r.StringUtilities.format(a(p[0]),n(p[0]));g=g.replace(", ",""),s+=r.StringUtilities.format(this.i18n.commaStartingX0(),g)}}else c&&(s=this.generateRangeSegmentDescription(t,o,n));else s=r.StringUtilities.format(a(t),n(t));else s="";return s},t.prototype.generateRangeSegmentDescription=function(t,e,n){var i="",o=t.split("-"),a=n(o[0],1),s=n(o[1],2),u=e(t);return i+=r.StringUtilities.format(u,a,s)},t.prototype.formatTime=function(t,e,n){var r=parseInt(t)+(this.options.tzOffset?this.options.tzOffset:0);r>=24?r-=24:r<0&&(r=24+r);var i="",o=!1;this.options.use24HourTimeFormat||(i=(o=!(!this.i18n.setPeriodBeforeTime||!this.i18n.setPeriodBeforeTime()))?"".concat(this.getPeriod(r)," "):" ".concat(this.getPeriod(r)),r>12&&(r-=12),0===r&&(r=12));var a=e,s="";return n&&(s=":".concat(("00"+n).substring(n.length))),"".concat(o?i:"").concat(("00"+r.toString()).substring(r.toString().length),":").concat(("00"+a.toString()).substring(a.toString().length)).concat(s).concat(o?"":i)},t.prototype.transformVerbosity=function(t,e){return e||(t=(t=(t=(t=t.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),"")).replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),"")).replace(new RegExp(this.i18n.commaEveryDay(),"g"),"")).replace(/\, ?$/,"")),t},t.prototype.getPeriod=function(t){return t>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},t.locales={},t}();e.ExpressionDescriptor=o},336:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.enLocaleLoader=void 0;var r=n(751),i=function(){function t(){}return t.prototype.load=function(t){t.en=new r.en},t}();e.enLocaleLoader=i},751:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.en=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!1},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},t.prototype.everyMinute=function(){return"every minute"},t.prototype.everyHour=function(){return"every hour"},t.prototype.atSpace=function(){return"At "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},t.prototype.at=function(){return"At"},t.prototype.spaceAnd=function(){return" and"},t.prototype.everySecond=function(){return"every second"},t.prototype.everyX0Seconds=function(){return"every %s seconds"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},t.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},t.prototype.everyX0Minutes=function(){return"every %s minutes"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},t.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},t.prototype.everyX0Hours=function(){return"every %s hours"},t.prototype.betweenX0AndX1=function(){return"between %s and %s"},t.prototype.atX0=function(){return"at %s"},t.prototype.commaEveryDay=function(){return", every day"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},t.prototype.commaX0ThroughX1=function(){return", %s through %s"},t.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},t.prototype.first=function(){return"first"},t.prototype.second=function(){return"second"},t.prototype.third=function(){return"third"},t.prototype.fourth=function(){return"fourth"},t.prototype.fifth=function(){return"fifth"},t.prototype.commaOnThe=function(){return", on the "},t.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},t.prototype.lastDay=function(){return"the last day"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},t.prototype.commaOnlyOnX0=function(){return", only on %s"},t.prototype.commaAndOnX0=function(){return", and on %s"},t.prototype.commaEveryX0Months=function(){return", every %s months"},t.prototype.commaOnlyInX0=function(){return", only in %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},t.prototype.firstWeekday=function(){return"first weekday"},t.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},t.prototype.commaEveryX0Days=function(){return", every %s days"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},t.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},t.prototype.commaEveryHour=function(){return", every hour"},t.prototype.commaEveryX0Years=function(){return", every %s years"},t.prototype.commaStartingX0=function(){return", starting %s"},t.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},t.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},t}();e.en=n},586:(t,e)=>{function n(t,e){if(!t)throw new Error(e)}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t.secondRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var i=parseInt(e[r],10);n(i>=0&&i<=59,"seconds part must be >= 0 and <= 59")}},t.minuteRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var i=parseInt(e[r],10);n(i>=0&&i<=59,"minutes part must be >= 0 and <= 59")}},t.hourRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var i=parseInt(e[r],10);n(i>=0&&i<=23,"hours part must be >= 0 and <= 23")}},t.dayOfMonthRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var i=parseInt(e[r],10);n(i>=1&&i<=31,"DOM part must be >= 1 and <= 31")}},t.monthRange=function(t,e){for(var r=t.split(","),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var o=parseInt(r[i],10);n(o>=1&&o<=12,e?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},t.dayOfWeekRange=function(t,e){for(var r=t.split(","),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var o=parseInt(r[i],10);n(o>=0&&o<=6,e?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},t}();e.default=r},910:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StringUtilities=void 0;var n=function(){function t(){}return t.format=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t.replace(/%s/g,(function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.shift()}))},t.containsAny=function(t,e){return e.some((function(e){return t.indexOf(e)>-1}))},t}();e.StringUtilities=n}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}var r={};return(()=>{var t=r;Object.defineProperty(t,"__esModule",{value:!0}),t.toString=void 0;var e=n(728),i=n(336);e.ExpressionDescriptor.initialize(new i.enLocaleLoader),t.default=e.ExpressionDescriptor;var o=e.ExpressionDescriptor.toString;t.toString=o})(),r})(),t.exports=e()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2717],{8916:function(e,n,t){t.d(n,{FS:function(){return s},JZ:function(){return v},Tt:function(){return d},e7:function(){return h},wx:function(){return a}});var i=t(75582),r=t(82394),l=t(83784),o=t(30229);function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function c(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}function s(e){return"string"===typeof e?e:JSON.stringify(e)}function a(e,n){var t,i;return null===e||void 0===e||null===(t=e.find((function(e){var t=e.block;return n(t)})))||void 0===t||null===(i=t.variables)||void 0===i?void 0:i.map((function(e){var n=e.value;return c(c({},e),{},{value:s(n)})}))}function d(e){var n;return null===(n=a(e,(function(e){return e.uuid===l.C})))||void 0===n?void 0:n.reduce((function(e,n){var t=n.uuid,i=n.value;return c(c({},e),{},(0,r.Z)({},t,i))}),{})}function v(e,n){return n===o.Xm.TIME?e.push({uuid:"execution_date",value:"<run datetime>"}):n===o.Xm.EVENT&&e.push({uuid:"event",value:"<trigger event>"}),e}function h(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,i.Z)(n,2),l=t[0],o=t[1],u=o;try{u=JSON.parse(o)}catch(s){}return c(c({},e),{},(0,r.Z)({},l,u))}),{}):e}},81334:function(e,n,t){t.d(n,{Z:function(){return _}});var i=t(82394),r=t(82684),l=t(27277),o=t(31882),u=t(38276),c=t(48381),s=t(30160),a=t(17488),d=t(25976),v=t(44897),h=t(42631),p=t(47041),f=t(70515),m=d.default.div.withConfig({displayName:"indexstyle__DropdownStyle",componentId:"sc-suwkha-0"})([""," border-radius:","px;max-height:","px;overflow:auto;position:absolute;width:100%;z-index:1;"," ",""],p.w5,h.BG,40*f.iI,(function(e){return"\n background-color: ".concat((e.theme.background||v.Z.background).popup,";\n box-shadow: ").concat((e.theme.shadow||v.Z.shadow).popup,";\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset-.5*f.iI,"px;\n ")})),j=d.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-suwkha-1"})(["padding:","px;position:relative;z-index:2;&:hover{cursor:pointer;}",""],.5*f.iI,(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||v.Z.interactive).hoverBackground,";\n ")})),g=t(39643),x=t(95924),Z=t(86735),b=t(44688),y=t(28598);function P(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function O(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,i.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 _=function(e){var n,t=e.removeTag,i=e.selectTag,d=e.selectedTags,v=void 0===d?[]:d,h=e.tags,p=void 0===h?[]:h,f=e.uuid,P=(0,r.useRef)(null),_=(0,r.useState)(!1),k=_[0],S=_[1],w=(0,r.useState)(null),I=w[0],C=w[1],T=(0,r.useMemo)((function(){return(0,Z.YC)(p||[],"uuid")}),[p]),E=(0,r.useMemo)((function(){return null===T||void 0===T?void 0:T.map((function(e){return{itemObject:e,searchQueries:[e.uuid],value:e.uuid}}))}),[T]),M=(0,r.useMemo)((function(){return(null===I||void 0===I?void 0:I.length)>=1?E.concat({itemObject:{uuid:I},searchQueries:[I],value:"Add tag: ".concat(I)}):E}),[E,I]),D=(0,b.y)(),N=D.registerOnKeyDown,A=D.unregisterOnKeyDown;return(0,r.useEffect)((function(){return function(){return A(f)}}),[A,f]),null===N||void 0===N||N(f,(function(e,n){var t;k&&n[g.vP]&&(S(!1),null===P||void 0===P||null===(t=P.current)||void 0===t||t.blur())}),[k,P]),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.Z,{onClickTag:t,tags:v}),(0,y.jsxs)(u.Z,{mt:1,style:{position:"relative"},children:[(0,y.jsx)(a.Z,{onBlur:function(){return setTimeout((function(){return S(!1)}),150)},onChange:function(e){return C(e.target.value)},onFocus:function(){return S(!0)},ref:P,value:I||""}),(0,y.jsx)(m,{topOffset:null===P||void 0===P||null===(n=P.current)||void 0===n?void 0:n.getBoundingClientRect().height,children:(0,y.jsx)(l.Z,{itemGroups:[{items:k?M:[],renderItem:function(e,n){var t=e.value;return(0,y.jsx)(j,O(O({},n),{},{onClick:function(e){var t;(0,x.j)(e),null===n||void 0===n||null===(t=n.onClick)||void 0===t||t.call(n,e)},children:(0,y.jsx)(o.Z,{small:!0,children:(0,y.jsx)(s.ZP,{children:t})})}))}}],onSelectItem:function(e){var n=e.itemObject;null===i||void 0===i||i(n),C(null)},searchQuery:I,uuid:f})})]})]})}},71610:function(e,n,t){var i=t(82394),r=t(75582),l=t(12691),o=t.n(l),u=t(25976),c=t(82684),s=t(32013),a=t(98777),d=t(15338),v=t(48670),h=t(88543),p=t(38276),f=t(4190),m=t(75499),j=t(30160),g=t(35686),x=t(70515),Z=t(30229),b=t(32080),y=t(81728),P=t(3917),O=t(55283),_=t(70320),k=t(28598);function S(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function w(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,i.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 I={large:!1};n.Z=function(e){var n=e.bookmarkValues,t=e.originalBookmarkValues,l=e.setBookmarkValues,S=e.pipeline,C=(0,c.useContext)(u.ThemeContext),T=(0,_.qB)(),E=(0,c.useState)(null),M=E[0],D=E[1],N=(0,c.useMemo)((function(){return null!==S&&void 0!==S&&S.blocks?(0,b.n)(S):null}),[S]),A=(0,c.useMemo)((function(){return Object.keys(N||{})||[]}),[N]),L=g.ZP.integration_sources.pipelines.list(null===S||void 0===S?void 0:S.uuid,{block_uuid:A},{},{pauseFetch:!(null!==A&&void 0!==A&&A.length)}).data,H=(0,c.useMemo)((function(){return null===L||void 0===L?void 0:L.integration_sources}),[L]);return(0,c.useEffect)((function(){if((null===H||void 0===H?void 0:H.length)>=1&&(!n||!M)){var e={};null===H||void 0===H||H.map((function(n){var t,i=n.block,l=n.streams,o=null===i||void 0===i?void 0:i.uuid;e[o]={},null===(t=Object.entries(l||{}))||void 0===t||t.forEach((function(n){var t,i,l=(0,r.Z)(n,2),u=l[0],c=l[1];e[o][u]=null===c||void 0===c||null===(t=c.state)||void 0===t||null===(i=t.bookmarks)||void 0===i?void 0:i[u]}))})),n||l(e),M||D(e)}}),[n,M,l,D,H]),(0,k.jsxs)(p.Z,{p:x.cd,children:[!L&&(0,k.jsx)(f.Z,{inverted:!0,small:!0}),null===H||void 0===H?void 0:H.map((function(e){var u=e.block,f=e.pipeline_run,g=e.pipeline_schedule,b=e.streams,_=null===u||void 0===u?void 0:u.uuid;return(0,k.jsx)(h.Z,{title:(0,k.jsx)(j.ZP,{color:(0,O.qn)(null===u||void 0===u?void 0:u.type,{blockColor:null===u||void 0===u?void 0:u.color,theme:C}).accent,monospace:!0,children:_}),children:(0,k.jsx)(s.Z,{noBorder:!0,noBoxShadow:!0,children:Object.entries(b||{}).map((function(e){var u,s,b,O,C=(0,r.Z)(e,2),E=C[0],D=C[1],N=D.record,A=D.state,L=(null===A||void 0===A||null===(u=A.bookmarks)||void 0===u?void 0:u[E])||{};return(0,k.jsxs)(a.Z,{noBorderRadius:!0,noPaddingContent:!0,title:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:E}),titleXPadding:x.cd*x.iI,titleYPadding:x.cd*x.iI,children:[(0,k.jsx)(h.S,w(w({},I),{},{title:"Last pipeline run started at",children:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:(null===f||void 0===f?void 0:f.started_at)&&(0,P.XG)(null===f||void 0===f?void 0:f.started_at,T)})})),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsx)(h.S,w(w({},I),{},{title:"Last pipeline run completed at",children:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:(null===f||void 0===f?void 0:f.completed_at)&&(0,P.XG)(null===f||void 0===f?void 0:f.completed_at,T)})})),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsx)(h.S,w(w({},I),{},{title:"Trigger",children:(0,k.jsx)(o(),{as:"/pipelines/".concat(null===S||void 0===S?void 0:S.uuid,"/triggers/").concat(null===g||void 0===g?void 0:g.id),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,k.jsx)(v.Z,{block:!0,default:!0,openNewWindow:!0,children:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:null===g||void 0===g?void 0:g.name})})})})),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsx)(h.S,w(w({},I),{},{title:"Type",children:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:(0,y.kC)((null===(s=Z.Z4[null===g||void 0===g?void 0:g.schedule_type])||void 0===s?void 0:s.call(Z.Z4))||"")})})),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsx)(h.S,w(w({},I),{},{title:"Frequency",children:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:null===g||void 0===g?void 0:g.schedule_interval})})),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsxs)(p.Z,{p:x.cd,children:[(0,k.jsx)(j.ZP,{bold:!0,large:!0,children:"Bookmark values"}),(0,k.jsx)(p.Z,{mt:1,children:(0,k.jsxs)(j.ZP,{muted:!0,small:!0,children:["Overriding the bookmark values will be applied to all pipeline runs",(0,k.jsx)("br",{}),"for this trigger until there is at least 1 successful pipeline run in this trigger."]})})]}),(0,k.jsx)(d.Z,{light:!0,short:!0}),!(null!==(b=Object.values(L||{}))&&void 0!==b&&b.length)&&(0,k.jsx)(p.Z,{p:x.cd,children:(0,k.jsx)(j.ZP,{muted:!0,children:"There are currently no bookmark values for this stream."})}),Object.entries(L||{}).map((function(e){var o,u,s,a,d,v,p=(0,r.Z)(e,2),f=p[0],m=(p[1],null===n||void 0===n||null===(o=n[_])||void 0===o||null===(u=o[E])||void 0===u?void 0:u[f]),g=(null===t||void 0===t||null===(s=t[_])||void 0===s||null===(a=s[E])||void 0===a||a[f],null===M||void 0===M||null===(d=M[_])||void 0===d||null===(v=d[E])||void 0===v?void 0:v[f]);return(0,c.createElement)(h.S,w(w({},I),{},{title:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:f}),description:g&&g!==m&&(0,k.jsxs)(j.ZP,{muted:!0,small:!0,children:["Original bookmark value from the last pipeline run: ",(0,k.jsx)(j.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:g})]}),key:"".concat(_,"-bookmark-values-").concat(f),textInput:{monospace:!0,onChange:function(e){return l((function(t){var r;return w(w({},t),{},(0,i.Z)({},_,w(w({},null===n||void 0===n?void 0:n[_]),{},(0,i.Z)({},E,w(w({},null===n||void 0===n||null===(r=n[_])||void 0===r?void 0:r[E]),{},(0,i.Z)({},f,e.target.value))))))}))},value:String(m||"")}}))})),(0,k.jsx)(d.Z,{light:!0}),(0,c.createElement)(h.S,w(w({},I),{},{title:"Record",description:"The most recently synced record.",key:"block-uuid-".concat(_,"-").concat(E)}),(0,k.jsx)(m.Z,{columnFlex:[1,null],columns:[{uuid:"Column"},{uuid:"Value"}],rows:null===(O=Object.entries(N||{}))||void 0===O?void 0:O.map((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];return[(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:t},t),(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:String(i)},"".concat(t,"-").concat(i))]}))}))]})}))})})}))]})}},88785:function(e,n,t){t.d(n,{J:function(){return c},U:function(){return u}});var i=t(25976),r=t(44897),l=t(42631),o=t(70515),u=i.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-m7tlau-0"})(["border-radius:","px;border-style:solid;border-width:2px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],l.TR,14*o.iI,o.cd*o.iI,o.cd*o.iI,40*o.iI,(function(e){return!e.selected&&"\n border-color: ".concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.selected&&"\n border-color: ".concat((e.theme.interactive||r.Z.interactive).linkPrimary,";\n ")})),c=i.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],l.n_,o.tr,(function(e){return"\n background-color: ".concat((e.theme.interactive||r.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.absolute&&"\n position: absolute;\n z-index: 2;\n right: 0;\n top: ".concat(2.5*o.iI,"px;\n ")}),(function(e){return e.topPosition&&"\n top: -".concat(42*o.iI,"px;\n ")}))},12717:function(e,n,t){t.d(n,{Z:function(){return qe}});var i=t(21831),r=t(82394),l=t(75582),o=t(12691),u=t.n(o),c=t(82684),s=t(20026),a=t.n(s),d=t(92083),v=t.n(d),h=t(21764),p=t(69864),f=t(34376),m=t(71610),j=t(71180),g=t(90299),x=t(14805),Z=t(70652),b=t(50724),y=t(9134),P=t(39457),O=t(25976),_=t(39867),k=t(55485),S=t(85854),w=t(38276),I=t(75499),C=t(30160),T=t(17488),E=t(12468),M=t(44375),D=t(70515),N=t(55283),A=t(86735),L=t(28598);function H(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function q(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?H(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):H(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var z=function(e){var n=e.blocks,t=e.updateVariables,i=e.variables,l=(0,c.useContext)(O.ThemeContext),o=(0,c.useCallback)((function(e,n){return t((function(){var t=(null===i||void 0===i?void 0:i.__mage_variables)||{},l=(null===t||void 0===t?void 0:t.blocks)||{},o=l[e]||{},u=(null===o||void 0===o?void 0:o.configuration)||{};return q(q({},i),{},{__mage_variables:q(q({},t),{},{blocks:q(q({},l),{},(0,r.Z)({},e,q(q({},o),{},{configuration:q(q({},u),n)})))})})}))}),[t,i]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(S.Z,{children:"dbt runtime settings"}),(0,L.jsx)(w.Z,{mt:D.Mq,children:(0,L.jsx)(I.Z,{columnFlex:[1,null,null,null],columns:[{uuid:"Block"},{uuid:"Flags"},{uuid:"Prefix"},{uuid:"Suffix"}],compact:!0,rows:null===n||void 0===n?void 0:n.map((function(e){var n,t,r,u=e.type,c=e.uuid,s=(0,M.IU)(e).name,a=(0,N.qn)(u,{blockColor:e.color,theme:l}).accent,d=null===i||void 0===i||null===(n=i.__mage_variables)||void 0===n||null===(t=n.blocks)||void 0===t||null===(r=t[c])||void 0===r?void 0:r.configuration,v=d||{},h=v.prefix,p=v.suffix,f=(null===d||void 0===d?void 0:d.flags)||[],m=!(null===f||void 0===f||!f.includes(M.Dy));return[(0,L.jsx)(E.Z,{block:!0,label:(0,L.jsx)(C.ZP,{monospace:!0,small:!0,children:c}),size:null,widthFitContent:!0,children:(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(_.Z,{color:a,size:1.5*D.iI,square:!0}),(0,L.jsx)(w.Z,{mr:1}),(0,L.jsxs)(C.ZP,{monospace:!0,small:!0,children:[h&&(0,L.jsx)(C.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:h}),s,p&&(0,L.jsx)(C.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:p})]})]})},"uuid-".concat(c)),(0,L.jsx)(k.ZP,{alignItems:"center",children:(0,L.jsx)(Z.Z,{checked:m,label:M.Dy,monospace:!0,onClick:function(){return o(c,{flags:m?(0,A.Od)(f,(function(e){return M.Dy===e})):f.concat(M.Dy)})},small:!0})},"flags-".concat(c)),(0,L.jsx)(T.Z,{compact:!0,monospace:!0,onChange:function(e){return o(c,{prefix:e.target.value})},placeholder:"N+, +",small:!0,value:h,width:10*D.iI},"prefix-".concat(c)),(0,L.jsx)(T.Z,{compact:!0,monospace:!0,onChange:function(e){return o(c,{suffix:e.target.value})},placeholder:"+, +N",small:!0,value:p,width:10*D.iI},"suffix-".concat(c))]}))})})]})},U=t(97196),R=t(15338),V=t(97618),F=t(48670),W=t(26304),B=t(44897),Y=t(95363),X=t(61896),J=["children","large","lineHeight","ordered"];function G(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function K(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}var Q=(0,O.css)([""," "," "," "," "," "," "," "," "," ",""],(function(e){return!e.muted&&"\n color: ".concat((e.theme.content||B.Z.content).default,";\n ")}),(function(e){return e.muted&&"\n color: ".concat((e.theme.content||B.Z.content).muted,";\n ")}),(function(e){return e.inverted&&"\n color: ".concat((e.theme.content||B.Z.content).inverted,";\n ")}),(function(e){return e.color&&"\n color: ".concat(e.color,";\n ")}),(function(e){return!e.monospace&&"\n font-family: ".concat(Y.ry,";\n ")}),(function(e){return e.monospace&&"\n font-family: ".concat(Y.Vp,";\n ")}),(function(e){return e.large&&"\n ".concat(X.x_,"\n ")}),(function(e){return!e.large&&!e.small&&"\n ".concat(X.i3,"\n ")}),(function(e){return e.small&&"\n ".concat(X.J5,"\n ")}),(function(e){return e.lineHeight&&"\n line-height: ".concat(e.lineHeight,"px !important;\n ")})),$=O.default.ul.withConfig({displayName:"List__UnorderedListStyle",componentId:"sc-1f6yhbi-0"})(["",""],Q),ee=O.default.ol.withConfig({displayName:"List__OrderedListStyle",componentId:"sc-1f6yhbi-1"})(["",""],Q),ne=O.default.li.withConfig({displayName:"List__ListItemStyle",componentId:"sc-1f6yhbi-2"})(["",""],(function(e){return e.large&&e.marginTop&&"\n margin-top: ".concat(1*D.iI,"px;\n ")}));var te,ie=function(e){var n=e.children,t=e.large,i=e.lineHeight,r=e.ordered,l=(0,W.Z)(e,J),o=r?ee:$;return(0,L.jsx)(o,K(K({large:t,lineHeight:i},l),{},{children:c.Children.map(n,(function(e,n){var i;return(0,L.jsx)(ne,K(K({large:t,marginTop:n>=1},l),{},{children:c.cloneElement(e)}),(null===(i=e.props)||void 0===i?void 0:i.key)||n)}))}))},re=t(37899),le=t(75457),oe=t(30229),ue=t(57653),ce=t(83784),se=t(44085),ae=t(81334),de=t(69650),ve=t(81769),he=t(54193),pe=t(72473),fe=t(81728),me=t(16488),je=t(70320),ge=(te={},(0,r.Z)(te,he.zj.DATE,pe.CalendarDate),(0,r.Z)(te,he.zj.DATETIME,pe.Schedule),(0,r.Z)(te,he.zj.DICTIONARY,pe.DocumentIcon),(0,r.Z)(te,he.zj.FLOAT,pe.NumberWithDecimalHash),(0,r.Z)(te,he.zj.INTEGER,pe.NumberHash),(0,r.Z)(te,he.zj.LIST,pe.TodoList),(0,r.Z)(te,he.zj.STRING,pe.Alphabet),te);var xe=function(e){var n,t,i,r=e.containerRef,o=e.date,u=e.interactions,s=e.pipeline,a=e.pipelineInteraction,d=e.pipelineSchedule,v=e.setVariables,h=e.showSummary,p=e.time,f=e.triggerTypes,m=e.variables,j=(0,c.useMemo)((function(){return(0,A.HK)(u||[],(function(e){return e.uuid}))}),[u]),g=(0,c.useMemo)((function(){return(null===s||void 0===s?void 0:s.blocks)||[]}),[s]),x=(0,c.useMemo)((function(){return(null===a||void 0===a?void 0:a.blocks)||{}}),[a]),Z=(0,c.useMemo)((function(){var e=[];null===g||void 0===g||g.length;return null===g||void 0===g||g.map((function(n,t){var i=(n||{uuid:null}).uuid,l=(null===x||void 0===x?void 0:x[i])||[];null===l||void 0===l||l.length;e.push((0,L.jsx)(w.Z,{p:D.cd,children:null===l||void 0===l?void 0:l.map((function(e,n){return(0,L.jsx)(w.Z,{mt:n>=1?2*D.cd:0,children:(0,L.jsx)(ve.Z,{blockInteraction:e,containerRef:r,interaction:null===j||void 0===j?void 0:j[null===e||void 0===e?void 0:e.uuid],setVariables:v,variables:m})},"".concat(null===e||void 0===e?void 0:e.uuid,"-").concat(n))}))}))})),e}),[g,r,j,v,m]),b=(0,je.qB)(),y=(0,c.useMemo)((function(){return o&&null!==p&&void 0!==p&&p.hour&&null!==p&&void 0!==p&&p.minute?(0,me.XM)(o,p,{convertToUtc:b,includeSeconds:!0,localTimezone:b}):null}),[o,b,p]),P=(0,c.useMemo)((function(){var e=[];null===g||void 0===g||g.length;return null===g||void 0===g||g.map((function(n,t){var i=(n||{uuid:null}).uuid,r=(null===x||void 0===x?void 0:x[i])||[];null===r||void 0===r||r.forEach((function(n,r){var o=null===j||void 0===j?void 0:j[null===n||void 0===n?void 0:n.uuid];Object.entries((null===o||void 0===o?void 0:o.variables)||{}).forEach((function(n,o){var u,c=(0,l.Z)(n,2),s=c[0],a=c[1],d=a.name,v=a.required,h=a.types,p=null===m||void 0===m?void 0:m[s],f="undefined"===typeof p,j=v&&f,g=(null===ge||void 0===ge?void 0:ge[h[0]])||pe.Alphabet,x=[];"undefined"!==typeof p?p&&Array.isArray(p||[])?null===p||void 0===p||p.forEach((function(e){x.push(e&&"object"===typeof e?x.push(JSON.stringify(e)):x.push(String(e)))})):p&&"object"===typeof p?Object.entries(p||{}).forEach((function(e){var n=(0,l.Z)(e,2),t=n[0];n[1]&&x.push(String(t))})):x.push(String(p)):x.push(p||""),e.push([(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(g,{default:!0,size:1.5*D.iI}),(0,L.jsx)(w.Z,{mr:1}),(0,L.jsx)(C.ZP,{default:!0,monospace:!0,children:s})]},"".concat(i,"-").concat(s,"-label-").concat(d,"-").concat(t,"-").concat(r,"-").concat(o)),(0,L.jsx)(w.Z,{py:D.cd,children:(0,L.jsxs)(C.ZP,{danger:j,monospace:!j,muted:f,children:[f&&!j&&"-",j&&"This is required",!f&&!j&&(null===x||void 0===x||null===(u=x.map((function(e){return String(e)})))||void 0===u?void 0:u.join(", "))]})},"".concat(i,"-").concat(s,"-value-").concat(d,"-").concat(p,"-").concat(t,"-").concat(r,"-").concat(o))])}))}))})),(0,L.jsx)(I.Z,{columnFlex:[null,1],rows:e})}),[g,j,m]);return(0,L.jsxs)(L.Fragment,{children:[!h&&Z,h&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(w.Z,{p:D.cd,children:(0,L.jsx)(S.Z,{children:"Settings"})}),(0,L.jsx)(R.Z,{light:!0,short:!0}),(0,L.jsx)(I.Z,{columnFlex:[null,1],rows:[[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(pe.Lightning,{default:!0}),(0,L.jsx)(w.Z,{mr:1}),(0,L.jsx)(C.ZP,{default:!0,children:"Trigger type"})]},"trigger_type"),(0,L.jsx)(w.Z,{py:D.cd,children:(0,L.jsx)(C.ZP,{danger:!(null!==d&&void 0!==d&&d.schedule_type),monospace:!0,children:null!==d&&void 0!==d&&d.schedule_type?null===f||void 0===f||null===(n=f.find((function(e){return e.uuid===(null===d||void 0===d?void 0:d.schedule_type)})))||void 0===n||null===(t=n.label)||void 0===t?void 0:t.call(n):"This is required"})},"trigger_type_input")],[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(pe.Alphabet,{default:!0}),(0,L.jsx)(w.Z,{mr:1}),(0,L.jsx)(C.ZP,{default:!0,children:"Trigger name"})]},"trigger_name"),(0,L.jsx)(w.Z,{py:D.cd,children:(0,L.jsx)(C.ZP,{danger:!(null!==d&&void 0!==d&&d.name),monospace:!0,children:(null===d||void 0===d?void 0:d.name)||"This is required"})},"trigger_name_input")],[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(pe.Alphabet,{default:!0}),(0,L.jsx)(w.Z,{mr:1}),(0,L.jsx)(C.ZP,{default:!0,children:"Trigger description"})]},"trigger_description"),(0,L.jsx)(w.Z,{py:D.cd,children:(0,L.jsx)(C.ZP,{monospace:!0,muted:!(null!==d&&void 0!==d&&d.description),children:(null===d||void 0===d?void 0:d.description)||"-"})},"trigger_description_input")],[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(pe.Schedule,{default:!0,size:1.5*D.iI}),(0,L.jsx)(w.Z,{mr:1}),(0,L.jsx)(C.ZP,{default:!0,children:"Frequency"})]},"frequency"),(0,L.jsx)(w.Z,{py:D.cd,children:(0,L.jsxs)(C.ZP,{danger:!(null!==d&&void 0!==d&&d.schedule_interval),monospace:!0,muted:!(null!==d&&void 0!==d&&d.schedule_interval),children:[(null===d||void 0===d?void 0:d.schedule_interval)&&(0,fe.vg)((null===d||void 0===d||null===(i=d.schedule_interval)||void 0===i?void 0:i.substring(1))||""),!(null!==d&&void 0!==d&&d.schedule_interval)&&"This is required"]})},"frequency_input")],[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(pe.CalendarDate,{default:!0,size:1.5*D.iI}),(0,L.jsx)(w.Z,{mr:1}),(0,L.jsx)(C.ZP,{default:!0,children:"Start date and time"})]},"start_time"),(0,L.jsx)(w.Z,{py:D.cd,children:(0,L.jsx)(C.ZP,{danger:!y,monospace:!!y,muted:!y,children:y||"This is required"})},"start_time_input")]]}),(0,L.jsx)(w.Z,{p:D.cd,children:(0,L.jsx)(S.Z,{children:"Customize"})}),(0,L.jsx)(R.Z,{light:!0,short:!0}),P]})]})},Ze=t(35686),be=t(77417),ye=t(44425),Pe=t(88785),Oe=t(3917),_e=t(82359),ke=t(28795),Se={label:function(){return"CUSTOMIZE"},uuid:"customize"},we={label:function(){return"SETTINGS"},uuid:"settings"},Ie={label:function(){return"REVIEW"},uuid:"review"},Ce=[we,Se,Ie],Te=t(32080),Ee=t(22286),Me=t(79500),De=t(8916),Ne=t(42122),Ae=t(72619);function Le(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function He(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Le(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Le(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var qe=function(e){var n=e.creatingWithLimitation,t=e.errors,o=e.fetchPipelineSchedule,s=e.onCancel,d=e.pipeline,O=e.pipelineSchedule,_=e.setErrors,E=e.variables,M=e.useCreateScheduleMutation,H=(0,be.Z)().project,q=(0,c.useRef)(null),W=(0,f.useRouter)(),B=(0,je.qB)(),Y=null===d||void 0===d?void 0:d.uuid,X=(0,c.useMemo)((function(){return null===O||void 0===O?void 0:O.id}),[O]),J=(null===d||void 0===d?void 0:d.type)===ue.qL.STREAMING,G=(0,c.useMemo)((function(){var e;return null===O||void 0===O||null===(e=O.variables)||void 0===e?void 0:e[oe.PN]}),[O]),K=(0,c.useState)(G?"string"===typeof G&&(0,fe.Pb)(G)?JSON.stringify(G):G:null),Q=K[0],$=K[1],ee=(0,c.useState)([]),ne=ee[0],te=ee[1],ve=(0,c.useState)(!0),he=ve[0],ge=ve[1],Le=(0,c.useState)(!1),qe=Le[0],ze=Le[1],Ue=(0,c.useState)(!1),Re=Ue[0],Ve=Ue[1],Fe=(0,c.useState)(null),We=Fe[0],Be=Fe[1],Ye=(0,c.useState)({}),Xe=Ye[0],Je=Ye[1],Ge=(0,c.useState)(null),Ke=Ge[0],Qe=Ge[1],$e=(0,c.useState)(null),en=$e[0],nn=$e[1],tn=(0,c.useState)(!1),rn=tn[0],ln=tn[1],on=(0,c.useState)(null),un=on[0],cn=on[1],sn=(0,c.useState)(Ce[0].uuid),an=sn[0],dn=sn[1],vn=(0,c.useMemo)((function(){var e;return!(null===H||void 0===H||null===(e=H.features)||void 0===e||!e[_e.d.INTERACTIONS])}),[null===H||void 0===H?void 0:H.features]),hn=(0,c.useMemo)((function(){return!X&&n}),[n,X]),pn=Ze.ZP.pipeline_interactions.detail(vn&&Y,{filter_for_permissions:1}).data,fn=Ze.ZP.interactions.pipeline_interactions.list(vn&&Y).data,mn=(0,c.useMemo)((function(){return(null===pn||void 0===pn?void 0:pn.pipeline_interaction)||{}}),[pn]),jn=(0,c.useMemo)((function(){return(null===fn||void 0===fn?void 0:fn.interactions)||[]}),[fn]),gn=(0,c.useMemo)((function(){var e;return vn&&(null===(e=Object.keys((null===mn||void 0===mn?void 0:mn.blocks)||{}))||void 0===e?void 0:e.length)>=1}),[vn,mn]),xn=(0,c.useMemo)((function(){return!!X&&gn}),[gn,X]),Zn=(0,c.useMemo)((function(){var e,n={};return null===mn||void 0===mn||null===(e=mn.permissions)||void 0===e||e.forEach((function(e){var t=e.triggers;null===t||void 0===t||t.forEach((function(e){var t=e.schedule_interval,i=e.schedule_type;null!==n&&void 0!==n&&n[i]||(n[i]={}),t&&(n[i][t]=!0)}))})),n}),[mn]),bn=(0,c.useMemo)((function(){return(0,De.wx)(E,(function(e){return e.uuid===ce.C}))}),[E]),yn=(0,c.useMemo)((function(){return Ke||{}}),[Ke]),Pn=yn.description,On=yn.name,_n=yn.schedule_interval,kn=yn.schedule_type,Sn=yn.settings,wn=void 0===Sn?{}:Sn,In=yn.start_time,Cn=yn.tags,Tn=yn.variables,En=void 0===Tn?{}:Tn;(0,c.useEffect)((function(){!We&&wn&&Be(wn)}),[We,wn]);var Mn=(0,c.useState)(null),Dn=Mn[0],Nn=Mn[1],An=(0,c.useState)({hour:"00",minute:"00"}),Ln=An[0],Hn=An[1],qn=(0,c.useState)({dayOfMonth:null,dayOfWeek:null,hour:null,minute:null,second:null}),zn=qn[0],Un=qn[1],Rn=Ze.ZP.event_rules.detail(oe.Xm.EVENT===kn?"aws":null).data,Vn=(0,c.useMemo)((function(){var e;return(null===Rn||void 0===Rn||null===(e=Rn.event_rule)||void 0===e?void 0:e.rules)||[]}),[Rn]),Fn=(0,c.useMemo)((function(){return(0,A.HK)(Vn,(function(e){return e.name}))}),[Vn]),Wn=(0,p.Db)(Ze.ZP.pipeline_schedules.useUpdate(X),{onSuccess:function(e){return(0,Ae.wD)(e,{callback:function(){null===o||void 0===o||o(),W.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(Y,"/triggers/").concat(X))},onErrorCallback:function(e,n){return _({errors:n,response:e})}})}}),Bn=(0,l.Z)(Wn,2),Yn=Bn[0],Xn=Bn[1].isLoading,Jn=(0,c.useMemo)((function(){return En||{}}),[En]);(0,c.useEffect)((function(){var e=v().utc().format(Oe.TD),n=(0,Me.a)(In||e,{localTimezone:B});if(Nn(null===n||void 0===n?void 0:n.date),Hn(null===n||void 0===n?void 0:n.time),In){var t=v()(In).utc();Un({dayOfMonth:t.date(),dayOfWeek:t.day(),hour:t.hours(),minute:t.minutes(),second:t.seconds()})}}),[B,In]),(0,c.useEffect)((function(){Jn&&Object.keys(Jn).length>0&&ge(!0)}),[Jn]),(0,c.useEffect)((function(){Je(he?null===bn||void 0===bn?void 0:bn.reduce((function(e,n){var t=n.uuid,i=n.value;return He(He({},e),{},(0,r.Z)({},t,Jn[t]||i))}),{}):null)}),[bn,he,Jn]);var Gn=(0,c.useMemo)((function(){return(0,me._U)(_n)}),[_n]),Kn=(0,c.useMemo)((function(){return Gn&&un?a().toString(un,{throwExceptionOnParseError:!1}):""}),[un,Gn]),Qn=(0,c.useMemo)((function(){return null===Kn||void 0===Kn?void 0:Kn.toLowerCase().includes("error")}),[Kn]);(0,c.useEffect)((function(){if(O&&!Ke){if(te(O.event_matchers),(0,me._U)(null===O||void 0===O?void 0:O.schedule_interval)){var e=B?(0,me.lO)(null===O||void 0===O?void 0:O.schedule_interval):null===O||void 0===O?void 0:O.schedule_interval;cn(e),Qe(He(He({},O),{},{schedule_interval:"custom"}))}else Qe(J?He(He({},O),{},{schedule_interval:oe.U5.ONCE}):O);var n=O.sla;if(n){ze(!0);var t=(0,me.gU)(n),i=t.time,r=t.unit;Qe((function(e){return He(He({},e),{},{slaAmount:i,slaUnit:r})}))}}}),[B,J,O,Ke,_n]);var $n=(0,c.useMemo)((function(){return!(null===We||void 0===We||!We.landing_time_enabled)}),[We]),et=(0,c.useMemo)((function(){return oe.Xm.TIME!==kn||![oe.U5.DAILY,oe.U5.HOURLY,oe.U5.MONTHLY,oe.U5.WEEKLY].includes(_n)}),[_n,kn]),nt=(0,c.useMemo)((function(){return $n&&!et}),[et,$n]),tt=(0,c.useCallback)((function(){var e=He(He({},(0,Ne.GL)(Ke,["name","description","schedule_type","tags"])),{},{event_matchers:[],schedule_interval:null,start_time:null,variables:(0,De.e7)(He(He({},Xe),Q?(0,r.Z)({},oe.PN,Q):{}))});if(nt){var n=zn.dayOfMonth,t=zn.dayOfWeek,i=zn.hour,l=zn.minute,o=zn.second,u=v()("2023-07-01").utc();(0,fe.HW)(n)&&(u=u.date(n)),(0,fe.HW)(t)&&(u=u.day(t)),(0,fe.HW)(i)&&(u=u.hours(i)),(0,fe.HW)(l)&&(u=u.minutes(l)),(0,fe.HW)(o)&&(u=u.seconds(o)),e.schedule_interval=Gn?un:Ke.schedule_interval,e.start_time=u.toISOString()}else oe.Xm.EVENT===Ke.schedule_type?e.event_matchers=ne:(e.schedule_interval=Gn?B&&!Qn&&un?(0,me.lO)(un,!0):un:Ke.schedule_interval,e.start_time=Dn&&null!==Ln&&void 0!==Ln&&Ln.hour&&null!==Ln&&void 0!==Ln&&Ln.minute?(0,me.XM)(Dn,Ln,{convertToUtc:B,includeSeconds:!0,localTimezone:B}):null);if(qe){var c=null===Ke||void 0===Ke?void 0:Ke.slaAmount,s=null===Ke||void 0===Ke?void 0:Ke.slaUnit;if(!c||isNaN(c)||!s)return void h.Am.error("Please enter a valid SLA",{position:h.Am.POSITION.BOTTOM_RIGHT,toastId:"sla_error"});e.sla=(0,me.vJ)(c,s)}else null!==O&&void 0!==O&&O.sla&&(e.sla=0);e.settings=We,Yn({pipeline_schedule:He(He({},e),{},{variables:en||(null===e||void 0===e?void 0:e.variables)})})}),[Q,Qn,un,Dn,B,qe,ne,Gn,zn,O,Xe,Ke,We,nt,Ln,Yn,en]),it=(0,c.useMemo)((function(){if(null===O||void 0===O||!O.runtime_average)return"Trigger doesn\u2019t have enough history to estimate runtime.";var e=Number(null===O||void 0===O?void 0:O.runtime_average),n=Math.max(Math.floor(e/3600),0),t=Math.max(Math.floor((e-60*n*60)/60),0),i=Math.max(Math.floor(e-(60*n*60+60*t)),0),r=[];return n>=1&&r.push((0,fe._6)("hour",n,!0)),t>=1&&r.push((0,fe._6)("minute",t,!0)),i>=1&&r.push((0,fe._6)("second",i,!0)),r.join(" ")}),[O]),rt=(0,c.useMemo)((function(){if(!nt)return null;var e=[(0,L.jsxs)(w.Z,{mr:1,children:[(0,L.jsx)(w.Z,{mb:1,children:(0,L.jsx)(C.ZP,{bold:!0,default:!0,small:!0,children:"Minute"})}),(0,L.jsxs)(se.Z,{compact:!0,monospace:!0,onChange:function(e){Un((function(n){return He(He({},n),{},{minute:e.target.value})}))},value:(null===zn||void 0===zn?void 0:zn.minute)||"",children:[(0,L.jsx)("option",{value:""}),(0,A.w6)(60).map((function(e,n){return(0,L.jsx)("option",{value:n,children:n>=10?String(n):"0".concat(n)},n)}))]})]},"Minute"),(0,L.jsxs)(w.Z,{mr:1,children:[(0,L.jsx)(w.Z,{mb:1,children:(0,L.jsx)(C.ZP,{bold:!0,default:!0,small:!0,children:"Second"})}),(0,L.jsxs)(se.Z,{compact:!0,monospace:!0,onChange:function(e){Un((function(n){return He(He({},n),{},{second:e.target.value})}))},value:(null===zn||void 0===zn?void 0:zn.second)||"",children:[(0,L.jsx)("option",{value:""}),(0,A.w6)(60).map((function(e,n){return(0,L.jsx)("option",{value:n,children:n>=10?String(n):"0".concat(n)},n)}))]})]},"Second")];return[oe.U5.DAILY,oe.U5.MONTHLY,oe.U5.WEEKLY].includes(_n)&&e.unshift((0,L.jsxs)(w.Z,{mr:1,children:[(0,L.jsx)(w.Z,{mb:1,children:(0,L.jsx)(C.ZP,{bold:!0,default:!0,small:!0,children:"Hour"})}),(0,L.jsxs)(se.Z,{compact:!0,monospace:!0,onChange:function(e){Un((function(n){return He(He({},n),{},{hour:e.target.value})}))},value:(null===zn||void 0===zn?void 0:zn.hour)||"",children:[(0,L.jsx)("option",{value:""}),(0,A.w6)(24).map((function(e,n){return(0,L.jsx)("option",{value:n,children:n>=10?String(n):"0".concat(n)},n)}))]})]},"Hour")),oe.U5.WEEKLY===_n?e.unshift((0,L.jsxs)(w.Z,{mr:1,children:[(0,L.jsx)(w.Z,{mb:1,children:(0,L.jsx)(C.ZP,{bold:!0,default:!0,small:!0,children:"Day of the week"})}),(0,L.jsxs)(se.Z,{compact:!0,monospace:!0,onChange:function(e){Un((function(n){return He(He({},n),{},{dayOfWeek:e.target.value})}))},value:(null===zn||void 0===zn?void 0:zn.dayOfWeek)||"",children:[(0,L.jsx)("option",{value:""}),(0,L.jsx)("option",{value:6,children:"Sunday"}),(0,L.jsx)("option",{value:0,children:"Monday"}),(0,L.jsx)("option",{value:1,children:"Tuesday"}),(0,L.jsx)("option",{value:2,children:"Wednesday"}),(0,L.jsx)("option",{value:3,children:"Thursday"}),(0,L.jsx)("option",{value:4,children:"Friday"}),(0,L.jsx)("option",{value:5,children:"Saturday"})]})]},"Day of the week")):oe.U5.MONTHLY===_n&&e.unshift((0,L.jsxs)(w.Z,{mr:1,children:[(0,L.jsx)(w.Z,{mb:1,children:(0,L.jsx)(C.ZP,{bold:!0,default:!0,small:!0,children:"Day of the month"})}),(0,L.jsxs)(se.Z,{compact:!0,monospace:!0,onChange:function(e){Un((function(n){return He(He({},n),{},{dayOfMonth:e.target.value})}))},value:(null===zn||void 0===zn?void 0:zn.dayOfMonth)||"",children:[(0,L.jsx)("option",{value:""}),(0,A.w6)(31).map((function(e,n){return(0,L.jsx)("option",{value:n+1,children:n+1>=10?String(n+1):"0".concat(n+1)},n+1)}))]})]},"Day of the month")),(0,L.jsx)(k.ZP,{children:e})}),[zn,_n,nt]),lt=(0,c.useMemo)((function(){return[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(pe.Alphabet,{default:!0}),(0,L.jsx)(w.Z,{mr:1}),(0,L.jsx)(C.ZP,{default:!0,children:"Trigger name"})]},"trigger_name"),(0,L.jsx)(T.Z,{monospace:!0,onChange:function(e){e.preventDefault(),Qe((function(n){return He(He({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:On},"trigger_name_input")]}),[On]),ot=(0,c.useMemo)((function(){return[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(pe.Alphabet,{default:!0}),(0,L.jsx)(w.Z,{mr:1}),(0,L.jsx)(C.ZP,{default:!0,children:"Trigger description"})]},"trigger_description"),(0,L.jsx)(T.Z,{monospace:!0,onChange:function(e){e.preventDefault(),Qe((function(n){return He(He({},n),{},{description:e.target.value})}))},placeholder:"Description",value:Pn},"trigger_description_input")]}),[Pn]),ut=(0,c.useMemo)((function(){var e=[lt,ot,[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(pe.Schedule,{default:!0,size:1.5*D.iI}),(0,L.jsx)(w.Z,{mr:1}),(0,L.jsx)(C.ZP,{default:!0,children:"Frequency"})]},"frequency"),(0,L.jsxs)("div",{children:[(0,L.jsxs)(se.Z,{monospace:!0,onChange:function(e){e.preventDefault();var n=e.target.value;Qe((function(e){return He(He({},e),{},{schedule_interval:n})}))},placeholder:"Choose the frequency to run",value:_n,children:[Object.values(oe.U5).reduce((function(e,n){var t;return!hn||null!==Zn&&void 0!==Zn&&null!==(t=Zn[oe.Xm.TIME])&&void 0!==t&&t[n]?e.concat((0,L.jsx)("option",{value:n,children:n.substring(1)},n)):e}),[]),!hn&&(0,L.jsx)("option",{value:"custom",children:"custom"},"custom")]}),!hn&&(0,L.jsx)(w.Z,{mt:1,p:1,children:(0,L.jsxs)(C.ZP,{muted:!0,small:!0,children:["If you don't see the frequency option you need, select ",(0,L.jsx)(C.ZP,{inline:!0,monospace:!0,small:!0,children:"custom"})," and enter CRON syntax."]})})]},"frequency_input")]];return hn||e.push([(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(pe.Switch,{default:!0,size:1.5*D.iI}),(0,L.jsx)(w.Z,{mr:1}),(0,L.jsx)(C.ZP,{default:!0,children:"Enable landing time"})]},"frequency"),(0,L.jsxs)("div",{children:[(0,L.jsx)(de.Z,{checked:$n,disabled:et,onCheck:function(){Be((function(e){return He(He({},e),{},{landing_time_enabled:!$n})}))}}),(0,L.jsxs)(w.Z,{mt:1,p:1,children:[et&&(0,L.jsxs)(C.ZP,{muted:!0,small:!0,children:["In order to enable landing time, the trigger\u2019s frequency must be ",(0,L.jsx)(C.ZP,{inline:!0,monospace:!0,small:!0,children:oe.U5.HOURLY}),", ",(0,L.jsx)(C.ZP,{inline:!0,monospace:!0,small:!0,children:oe.U5.DAILY}),", ",(0,L.jsx)(C.ZP,{inline:!0,monospace:!0,small:!0,children:oe.U5.WEEKLY}),", or ",(0,L.jsx)(C.ZP,{inline:!0,monospace:!0,small:!0,children:oe.U5.MONTHLY}),"."]}),!et&&(0,L.jsx)(C.ZP,{muted:!0,small:!0,children:"Instead of starting at a specific time, this trigger will schedule pipeline runs at a time where it will finish by the specified time below."})]})]},"frequency_input")]),nt&&e.push([(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(pe.Schedule,{default:!0,size:1.5*D.iI}),(0,L.jsx)(w.Z,{mr:1}),(0,L.jsx)(C.ZP,{default:!0,children:"Average runtime"})]},"runtime_average"),(0,L.jsx)(k.ZP,{alignItems:"center",style:{minHeight:"".concat(5.75*D.iI,"px")},children:(0,L.jsx)(C.ZP,{monospace:!0,children:it})},"runtime_average_value")]),e.push([(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(pe.CalendarDate,{default:!0,size:1.5*D.iI}),(0,L.jsx)(w.Z,{mr:1}),(0,L.jsxs)(C.ZP,{default:!0,children:[nt&&"Pipeline complete by",!nt&&"Start date and time"]})]},"start_time"),nt?rt:(0,L.jsxs)("div",{style:{minHeight:"".concat(5.75*D.iI,"px")},children:[!rn&&(0,L.jsx)(T.Z,{monospace:!0,onClick:function(){return ln((function(e){return!e}))},placeholder:"YYYY-MM-DD HH:MM",value:Dn?(0,me.XM)(Dn,Ln,{localTimezone:B}):""}),(0,L.jsx)("div",{style:{width:"400px"},children:(0,L.jsx)(b.Z,{disableEscape:!0,onClickOutside:function(){return ln(!1)},open:rn,style:{position:"relative"},children:(0,L.jsx)(x.Z,{localTime:B,selectedDate:Dn,selectedTime:Ln,setSelectedDate:Nn,setSelectedTime:Hn,topPosition:!0})})})]},"start_time_input")]),J&&e.splice(2,2),Gn&&e.splice(2,0,[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(pe.Code,{default:!0,size:1.5*D.iI}),(0,L.jsx)(w.Z,{mr:1}),(0,L.jsx)(C.ZP,{default:!0,children:"Cron expression"})]},"cron_expression"),(0,L.jsxs)("div",{children:[(0,L.jsx)(T.Z,{monospace:!0,onChange:function(e){e.preventDefault(),cn(e.target.value)},placeholder:"* * * * *",value:un}),(0,L.jsxs)(w.Z,{mt:1,p:1,children:[(0,L.jsx)(C.ZP,{monospace:!0,xsmall:!0,children:"[minute] [hour] [day(month)] [month] [day(week)]"}),(0,L.jsx)(w.Z,{mb:"2px"}),un?(0,L.jsx)(C.ZP,{danger:Qn,muted:!0,small:!0,children:Qn?"Invalid cron expression. Please check the cron syntax.":(0,L.jsxs)(L.Fragment,{children:['"',Kn,'"']})}):null,B&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(C.ZP,{bold:!0,inline:!0,small:!0,warning:!0,children:"Note:\xa0"}),(0,L.jsxs)(C.ZP,{inline:!0,small:!0,children:["If you have the display_local_timezone setting enabled, the local cron expression above will match your local timezone only",(0,L.jsx)("br",{}),"if the minute and hour values are single values without any special characters, such as the comma, hyphen, or slash.",(0,L.jsx)("br",{}),"You can still use cron expressions with special characters for the minute/hour values, but it will be based in UTC time."]})]})]})]},"cron_expression_input")]),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(w.Z,{mb:2,px:D.cd,children:(0,L.jsx)(S.Z,{children:"Settings"})}),(0,L.jsx)(R.Z,{light:!0,short:!0}),(0,L.jsx)(I.Z,{columnFlex:[null,1],rows:e})]})}),[Qn,un,Dn,B,hn,Gn,J,et,$n,rt,Zn,Kn,it,_n,rn,nt,Ln,lt,ot]),ct=(0,c.useCallback)((function(e,n){te((function(t){return Object.entries(n).forEach((function(n){var i=(0,l.Z)(n,2),r=i[0],o=i[1];t[e][r]=o})),(0,i.Z)(t)}))}),[te]),st=(0,c.useMemo)((function(){return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(w.Z,{mb:D.cd,px:D.cd,children:(0,L.jsx)(S.Z,{children:"Settings"})}),(0,L.jsx)(R.Z,{light:!0,short:!0}),(0,L.jsx)(I.Z,{columnFlex:[null,1],rows:[lt,ot]}),(0,L.jsxs)(w.Z,{mb:2,mt:5,px:D.cd,children:[(0,L.jsx)(S.Z,{children:"Events"}),(0,L.jsxs)(C.ZP,{muted:!0,children:["Add 1 or more event that will trigger this pipeline to run.",(0,L.jsx)("br",{}),"If you add more than 1 event, this pipeline will trigger if any of the events are received."]}),(0,L.jsxs)(w.Z,{mt:D.Mq,children:[(0,L.jsx)(C.ZP,{bold:!0,large:!0,children:"AWS events"}),(0,L.jsxs)(C.ZP,{muted:!0,children:["In order to retrieve all the possible AWS events you can trigger your pipeline from,",(0,L.jsx)("br",{}),"you\u2019ll need to set 3 environment variables (",(0,L.jsx)(F.Z,{href:"https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html",openNewWindow:!0,underline:!0,children:"more info here"}),"):"]}),(0,L.jsx)(w.Z,{mt:1,children:(0,L.jsxs)(ie,{monospace:!0,ordered:!0,children:[(0,L.jsx)(C.ZP,{monospace:!0,children:"AWS_REGION_NAME"}),(0,L.jsx)(C.ZP,{monospace:!0,children:"AWS_ACCESS_KEY_ID"}),(0,L.jsx)(C.ZP,{monospace:!0,children:"AWS_SECRET_ACCESS_KEY"})]})})]})]}),(0,L.jsx)(R.Z,{light:!0,short:!0}),(null===ne||void 0===ne?void 0:ne.length)>=1&&(0,L.jsx)(I.Z,{alignTop:!0,columnFlex:[1,1,2,null],columns:[{uuid:"Provider"},{uuid:"Event"},{uuid:"Pattern"},{label:function(){return""},uuid:"delete"}],rows:null===ne||void 0===ne?void 0:ne.map((function(e,n){var t=e.event_type,i=e.name,r=e.pattern,l=e.id||"".concat(t,"-").concat(i,"-").concat(n,"-").concat(JSON.stringify(r)),o=[];return r&&JSON.stringify(r,null,2).split("\n").forEach((function(e){o.push(" ".concat(e))})),[(0,L.jsx)(se.Z,{monospace:!0,onChange:function(e){return ct(n,{event_type:e.target.value})},placeholder:"Event provider",value:t||"",children:U.S5.map((function(e){var n=e.label,t=e.uuid;return(0,L.jsx)("option",{value:t,children:n()},t)}))},"event-provider-".concat(l)),(0,L.jsx)(se.Z,{monospace:!0,onChange:function(e){var t,i=e.target.value,r=null===(t=Fn[i])||void 0===t?void 0:t.event_pattern;ct(n,{name:i,pattern:r?JSON.parse(r):null})},placeholder:"Event name",value:i,children:Vn.map((function(e){var n=e.name;return(0,L.jsx)("option",{value:n,children:n},n)}))},"event-name-".concat(l)),r&&(0,L.jsx)(y.Z,{language:"json",small:!0,source:o.join("\n")}),(0,L.jsx)(j.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return te((function(e){return(0,A.oM)(e,n)}))},children:(0,L.jsx)(pe.Trash,{default:!0,size:2*D.iI})},"remove_event")]}))}),(0,L.jsx)(w.Z,{p:D.cd,children:(0,L.jsx)(j.ZP,{beforeIcon:(0,L.jsx)(pe.Add,{size:2*D.iI}),onClick:function(){return te((function(e){return e.concat({})}))},outline:!0,children:"Add event matcher"})})]})}),[ne,Vn,Fn,lt,ot,ct]),at=(0,c.useMemo)((function(){var e=(0,me.M8)(O,Re);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(w.Z,{mb:D.cd,px:D.cd,children:(0,L.jsx)(S.Z,{children:"Settings"})}),(0,L.jsx)(R.Z,{light:!0,short:!0}),(0,L.jsx)(I.Z,{columnFlex:[null,1],rows:[lt,ot]}),(0,L.jsxs)(w.Z,{mb:2,mt:5,px:D.cd,children:[(0,L.jsx)(S.Z,{children:"Endpoint"}),(0,L.jsxs)(C.ZP,{muted:!0,children:["Make a ",(0,L.jsx)(C.ZP,{bold:!0,inline:!0,monospace:!0,children:"POST"})," request to the following endpoint:"]}),(0,L.jsx)(w.Z,{mt:D.Mq,children:(0,L.jsx)(P.Z,{copiedText:e,linkText:e,monospace:!0,withCopyIcon:!0})}),(0,L.jsx)(w.Z,{mt:D.Mq,children:(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(w.Z,{mr:1,children:(0,L.jsx)(de.Z,{checked:Re,onCheck:function(){return Ve(!Re)}})}),(0,L.jsx)(C.ZP,{muted:!0,children:"Show alternative endpoint to pass token in headers"})]})})]}),Re&&(0,L.jsxs)(w.Z,{mb:2,mt:5,px:D.cd,children:[(0,L.jsx)(S.Z,{children:"Headers"}),(0,L.jsx)(C.ZP,{muted:!0,children:"You will need to include the following headers in your request to authenticate with the server."}),(0,L.jsx)(w.Z,{mt:D.Mq,children:(0,L.jsx)(P.Z,{copiedText:"Content-Type: application/json\n Authorization: Bearer ".concat(null===O||void 0===O?void 0:O.token,"\n "),withCopyIcon:!0,children:(0,L.jsx)(y.Z,{language:"json",small:!0,source:"\n Content-Type: application/json\n Authorization: Bearer ".concat(null===O||void 0===O?void 0:O.token,"\n ")})})})]}),(0,L.jsxs)(w.Z,{mb:2,mt:5,px:D.cd,children:[(0,L.jsx)(S.Z,{children:"Payload"}),(0,L.jsx)(C.ZP,{muted:!0,children:"You can optionally include runtime variables in your request payload. These runtime variables are accessible from within each pipeline block."}),(0,L.jsx)(w.Z,{mt:D.Mq,children:(0,L.jsx)(P.Z,{copiedText:'{\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n}\n',withCopyIcon:!0,children:(0,L.jsx)(y.Z,{language:"json",small:!0,source:'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\n'})})})]}),(0,L.jsxs)(w.Z,{mb:2,mt:5,px:D.cd,children:[(0,L.jsx)(S.Z,{children:"Sample cURL command"}),(0,L.jsx)(w.Z,{mt:D.Mq,children:(0,L.jsx)(y.Z,{language:"bash",small:!0,source:Re?"\n curl -X POST ".concat(e," \\\n --header 'Content-Type: application/json' \\\n --header 'Authorization: Bearer ").concat(null===O||void 0===O?void 0:O.token,'\' \\\n --data \'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\'\n '):"\n curl -X POST ".concat(e,' \\\n --header \'Content-Type: application/json\' \\\n --data \'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\'\n')})})]})]})}),[O,Ve,ot,lt,Re]),dt=!kn||oe.Xm.TIME===kn&&!(J&&Dn||!J&&Dn&&_n)||oe.Xm.EVENT===kn&&(!(null!==ne&&void 0!==ne&&ne.length)||!ne.every((function(e){var n=e.event_type,t=e.name;return n&&t}))),vt=(0,c.useMemo)((function(){var e;return(null===d||void 0===d||null===(e=d.blocks)||void 0===e?void 0:e.filter((function(e){var n=e.type;return ye.tf.DBT===n})))||[]}),[d]),ht=(0,c.useMemo)((function(){return null!==d&&void 0!==d&&d.blocks?(0,Te.n)(d):null}),[d]),pt=(0,c.useMemo)((function(){var e,n;return(0,L.jsxs)(w.Z,{py:D.cd,children:[(0,L.jsxs)(w.Z,{mb:D.HN,px:D.cd,children:[(0,L.jsx)(S.Z,{children:"Run settings"}),(0,L.jsxs)(w.Z,{mt:D.Mq,children:[!J&&(0,L.jsxs)(w.Z,{mb:D.Mq,children:[(0,L.jsx)(C.ZP,{children:"Set a timeout for each run of this trigger (optional)"}),(0,L.jsx)(w.Z,{mb:1}),(0,L.jsx)(T.Z,{label:"Timeout (in seconds)",onChange:function(e){return Be((function(n){return He(He({},n),{},{timeout:e.target.value})}))},primary:!0,setContentOnMount:!0,type:"number",value:null===We||void 0===We?void 0:We.timeout})]}),(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(w.Z,{mr:2,children:(0,L.jsx)(de.Z,{checked:qe,onCheck:function(e){ze(e),e||Qe((function(e){return He(He({},e),{},{slaAmount:0})}))}})}),(0,L.jsx)(C.ZP,{default:!0,monospace:!0,children:"Configure trigger SLA"})]}),qe&&(0,L.jsx)(I.Z,{columnFlex:[null,1],rows:[[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(pe.CalendarDate,{default:!0,size:1.5*D.iI}),(0,L.jsx)(w.Z,{mr:1}),(0,L.jsx)(C.ZP,{default:!0,children:"SLA"})]},"sla_detail"),(0,L.jsxs)(k.ZP,{children:[(0,L.jsx)(V.Z,{flex:1,children:(0,L.jsx)(T.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),Qe((function(n){return He(He({},n),{},{slaAmount:e.target.value})}))},placeholder:"Time",value:null===Ke||void 0===Ke?void 0:Ke.slaAmount})}),(0,L.jsx)(V.Z,{flex:1,children:(0,L.jsx)(se.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),Qe((function(n){return He(He({},n),{},{slaUnit:e.target.value})}))},placeholder:"Select time unit",small:!0,value:null===Ke||void 0===Ke?void 0:Ke.slaUnit,children:Object.keys(me.tL).map((function(e){return(0,L.jsx)("option",{value:e,children:"".concat(e,"(s)")},e)}))})})]},"sla_input_detail")]]})]}),(0,L.jsx)(w.Z,{mt:D.Mq,children:(0,L.jsx)(k.ZP,{alignItems:"center",children:(0,L.jsx)(Z.Z,{checked:null===We||void 0===We?void 0:We.allow_blocks_to_fail,label:"Keep running pipeline even if blocks fail",onClick:function(){return Be((function(e){return He(He({},e),{},{allow_blocks_to_fail:!(null!==We&&void 0!==We&&We.allow_blocks_to_fail)})}))}})})}),oe.Xm.TIME===kn&&(0,L.jsx)(w.Z,{mt:D.Mq,children:(0,L.jsx)(k.ZP,{alignItems:"center",children:(0,L.jsx)(Z.Z,{checked:null===We||void 0===We?void 0:We.skip_if_previous_running,label:"Skip run if previous run still in progress",onClick:function(){return Be((function(e){return He(He({},e),{},{skip_if_previous_running:!(null!==We&&void 0!==We&&We.skip_if_previous_running)})}))}})})})]}),(0,L.jsxs)(w.Z,{mb:D.HN,children:[(0,L.jsxs)(w.Z,{px:D.cd,children:[(0,L.jsx)(S.Z,{children:"Runtime variables"}),(0,Ne.Qr)(bn)&&(0,L.jsxs)(w.Z,{mt:1,children:[(0,L.jsx)(C.ZP,{default:!0,children:"This pipeline has no runtime variables."}),(0,L.jsx)(u(),{as:"/pipelines/".concat(Y,"/edit?sideview=variables"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,L.jsx)(F.Z,{primary:!0,children:"Click here"})})," ",(0,L.jsx)(C.ZP,{default:!0,inline:!0,children:"to add variables to this pipeline."})]})]}),(0,L.jsx)(w.Z,{mt:D.Mq,children:(0,L.jsx)(re.Z,{enableVariablesOverwrite:!0,originalVariables:null===O||void 0===O?void 0:O.variables,runtimeVariables:Xe,setRuntimeVariables:Je})})]}),ht&&(null===(e=Object.keys(ht||{}))||void 0===e?void 0:e.length)>=1&&(0,L.jsxs)(w.Z,{mb:D.HN,children:[(0,L.jsx)(w.Z,{px:D.cd,children:(0,L.jsx)(S.Z,{children:"Override bookmark values"})}),(0,L.jsx)(m.Z,{bookmarkValues:Q,originalBookmarkValues:null===O||void 0===O||null===(n=O.variables)||void 0===n?void 0:n[oe.PN],pipeline:d,setBookmarkValues:$})]}),(null===vt||void 0===vt?void 0:vt.length)>=1&&(0,L.jsx)(w.Z,{mb:D.HN,children:(0,L.jsx)(z,{blocks:vt,updateVariables:Je,variables:He(He({},Jn),Xe)})})]})}),[ht,Q,vt,qe,bn,J,d,null===O||void 0===O?void 0:O.variables,Y,Xe,Ke,kn,Jn,$,ze,Je,We]),ft=Ze.ZP.tags.list().data,mt=(0,c.useMemo)((function(){return((null===ft||void 0===ft?void 0:ft.tags)||[]).filter((function(e){var n=e.uuid;return!(null!==Cn&&void 0!==Cn&&Cn.includes(n))}))}),[ft,Cn]),jt=(0,c.useMemo)((function(){return(0,me.ri)(J)}),[J]),gt=(0,c.useMemo)((function(){return(0,L.jsx)(xe,{containerRef:q,date:Dn,interactions:jn,pipeline:d,pipelineInteraction:mn,pipelineSchedule:Ke,setVariables:function(e){Qe((function(n){var t=He({},e((null===n||void 0===n?void 0:n.variables)||{})),i=He({},t);return null===jn||void 0===jn||jn.forEach((function(e){Object.entries((null===e||void 0===e?void 0:e.variables)||{}).forEach((function(e){var n=(0,l.Z)(e,2),t=n[0],r=n[1].types;i&&t in i&&(i[t]=(0,Ee.M)(i[t],r))}))})),nn(i),He(He({},n),{},{variables:t})}))},showSummary:Ie.uuid===an,time:Ln,triggerTypes:jt,variables:null===Ke||void 0===Ke?void 0:Ke.variables})}),[q,Dn,jn,d,mn,Ke,an,Qe,nn,Ln,jt]),xt=(0,c.useMemo)((function(){return oe.fq.ACTIVE===(null===Ke||void 0===Ke?void 0:Ke.status)}),[Ke]),Zt=M?null===M||void 0===M?void 0:M((function(e){return W.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(null===d||void 0===d?void 0:d.uuid,"/triggers/").concat(e))})):[null,{isLoading:!1}],bt=(0,l.Z)(Zt,2),yt=bt[0],Pt=bt[1].isLoading,Ot=(0,c.useCallback)((function(){null===yt||void 0===yt||yt({pipeline_schedule:He(He({},Ke),{},{variables:en||(null===Ke||void 0===Ke?void 0:Ke.variables)})})}),[yt,en,Ke]),_t=(0,c.useMemo)((function(){var e,n;return X?(e=(0,L.jsx)(j.ZP,{linkProps:{as:"/pipelines/".concat(Y,"/triggers/").concat(X),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel and go back"}),n=(0,L.jsx)(j.ZP,{onClick:tt,primary:!0,children:"Save trigger"})):we.uuid===an?(e=(0,L.jsx)(j.ZP,{onClick:function(){return null===s||void 0===s?void 0:s()},secondary:!0,children:"Cancel and go back"}),n=(0,L.jsx)(j.ZP,{afterIcon:(0,L.jsx)(pe.PaginateArrowRight,{}),onClick:function(){return dn(Se.uuid)},primary:!0,children:"Next: Customize"})):Se.uuid===an?(e=(0,L.jsx)(j.ZP,{beforeIcon:(0,L.jsx)(pe.PaginateArrowLeft,{}),onClick:function(){return dn(we.uuid)},secondary:!0,children:"Back: Settings"}),n=(0,L.jsx)(j.ZP,{afterIcon:(0,L.jsx)(pe.PaginateArrowRight,{}),onClick:function(){return dn(Ie.uuid)},primary:!0,children:"Next: Review"})):Ie.uuid===an&&(e=(0,L.jsx)(j.ZP,{beforeIcon:(0,L.jsx)(pe.PaginateArrowLeft,{}),onClick:function(){return dn(Se.uuid)},secondary:!0,children:"Back: Customize"}),n=(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(j.ZP,{beforeIcon:(0,L.jsx)(pe.Lightning,{}),loading:Pt,onClick:function(){return Ot()},primary:!0,children:X?"Save trigger":"Create trigger"}),!X&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(w.Z,{mr:D.cd}),(0,L.jsx)(de.Z,{checked:xt,compact:!0,onCheck:function(e){return Qe((function(n){return He(He({},n),{},{status:e(xt)?oe.fq.ACTIVE:oe.fq.INACTIVE})}))}}),(0,L.jsx)(w.Z,{mr:1}),(0,L.jsx)(C.ZP,{default:xt,muted:!xt,small:!0,children:"Set trigger to be active immediately after creating"})]})]})),(0,L.jsx)(w.Z,{p:D.cd,children:(0,L.jsxs)(k.ZP,{alignItems:"center",children:[e,e&&n&&(0,L.jsx)(w.Z,{mr:D.cd}),n]})})}),[Ot,Pt,xt,s,tt,X,Y,an,dn]),kt=(0,c.useMemo)((function(){var e,n,t,i,r,l,o;return"undefined"===typeof(null===d||void 0===d||null===(e=d.settings)||void 0===e||null===(n=e.triggers)||void 0===n?void 0:n.save_in_code_automatically)?null===H||void 0===H||null===(t=H.pipelines)||void 0===t||null===(i=t.settings)||void 0===i||null===(r=i.triggers)||void 0===r?void 0:r.save_in_code_automatically:null===d||void 0===d||null===(l=d.settings)||void 0===l||null===(o=l.triggers)||void 0===o?void 0:o.save_in_code_automatically}),[d,H]);return(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(le.Z,{after:!hn&&pt,afterHidden:hn,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(Y,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return null===O||void 0===O?void 0:O.name},linkProps:{as:"/pipelines/".concat(Y,"/triggers/").concat(X),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],errors:t,pageName:ke.M.TRIGGERS,pipeline:d,setErrors:_,subheader:hn||xn?(0,L.jsx)(w.Z,{px:D.cd,children:(0,L.jsx)(g.Z,{noPadding:!0,onClickTab:function(e){var n=e.uuid;return dn(n)},regularSizeText:!0,selectedTabUUID:an,tabs:Ce,underlineColor:(0,N.qn)(ye.tf.DATA_LOADER).accent,underlineStyle:!0})}):(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(j.ZP,{disabled:dt,loading:Xn,onClick:tt,outline:!0,primary:!0,children:"Save changes"}),(0,L.jsx)(w.Z,{mr:D.cd}),(0,L.jsx)(j.ZP,{linkProps:{as:"/pipelines/".concat(Y,"/triggers/").concat(X),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel"}),kt&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(w.Z,{mr:D.cd}),(0,L.jsxs)(C.ZP,{default:!0,xsmall:!0,children:["This trigger will automatically be persisted in code.",(0,L.jsx)("br",{}),"To change this behavior, update the ",(0,L.jsx)(u(),{as:"/pipelines/".concat(Y,"/settings"),href:"/pipelines/[pipeline]/settings",passHref:!0,children:(0,L.jsx)(F.Z,{openNewWindow:!0,xsmall:!0,children:"pipeline\u2019s settings"})})," or ",(0,L.jsx)(u(),{as:"/settings/workspace/preferences",href:"/settings/workspace/preferences",passHref:!0,children:(0,L.jsx)(F.Z,{openNewWindow:!0,xsmall:!0,children:"project settings"})}),"."]})]})]}),subheaderNoPadding:hn||xn,title:function(){return null!==O&&void 0!==O&&O.name?"Edit ".concat(null===O||void 0===O?void 0:O.name):"New trigger"},uuid:"triggers/edit",children:(0,L.jsxs)("div",{ref:q,children:[(hn||xn)&&(0,L.jsx)(R.Z,{light:!0}),(hn||xn)&&(Se.uuid===an||Ie.uuid===an)&>,(!hn||we.uuid===an)&&(!xn||we.uuid===an)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(w.Z,{p:D.cd,children:[(0,L.jsxs)(w.Z,{mb:2,children:[(0,L.jsx)(S.Z,{children:"Trigger type"}),(0,L.jsx)(C.ZP,{muted:!0,children:"How would you like this pipeline to be triggered?"})]}),(0,L.jsx)(k.ZP,{children:jt.reduce((function(e,n){var t=n.label,i=n.description,r=n.uuid,l=kn===r,o=kn&&!l;return!hn||null!==Zn&&void 0!==Zn&&Zn[r]?e.concat((0,L.jsx)(j.ZP,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){oe.Xm.EVENT!==r||null!==ne&&void 0!==ne&&ne.length||te([{}]),Qe((function(e){return He(He({},e),{},{schedule_type:r})}))},children:(0,L.jsx)(Pe.U,{selected:l,children:(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(V.Z,{children:(0,L.jsx)("input",{checked:l,type:"radio"})}),(0,L.jsx)(w.Z,{mr:D.cd}),(0,L.jsxs)(V.Z,{alignItems:"flex-start",flexDirection:"column",children:[(0,L.jsx)(S.Z,{bold:!0,default:!l&&!o,level:5,muted:!l&&o,children:t()}),(0,L.jsx)(C.ZP,{default:!l&&!o,leftAligned:!0,muted:o,children:i()})]})]})})},r)):e}),[])})]}),(0,L.jsxs)(w.Z,{mt:D.HN,children:[oe.Xm.TIME===kn&&ut,oe.Xm.EVENT===kn&&st,oe.Xm.API===kn&&at]}),!hn&&(0,L.jsxs)(w.Z,{mt:D.HN,px:D.cd,children:[(0,L.jsxs)(w.Z,{mb:2,children:[(0,L.jsx)(S.Z,{children:"Tags"}),(0,L.jsx)(C.ZP,{muted:!0,children:"Add or remove tags from this trigger."})]}),(0,L.jsx)(ae.Z,{removeTag:function(e){Qe((function(n){return He(He({},n),{},{tags:null===Cn||void 0===Cn?void 0:Cn.filter((function(n){return n!==e.uuid}))})}))},selectTag:function(e){Qe((function(n){return He(He({},n),{},{tags:(0,A.$C)(e.uuid,Cn,(function(n){return n===e.uuid}))})}))},selectedTags:null===Cn||void 0===Cn?void 0:Cn.map((function(e){return{uuid:e}})),tags:mt,uuid:"TagsAutocompleteInputField-trigger-".concat(X)})]})]}),(hn||xn)&&_t]})})})}},37899:function(e,n,t){var i=t(82394),r=t(75582),l=t(82684),o=t(71180),u=t(15338),c=t(97618),s=t(55485),a=t(38276),d=t(75499),v=t(30160),h=t(35576),p=t(17488),f=t(72473),m=t(70515),j=t(42122),g=t(81728),x=t(28598);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){e.borderless,e.compact;var n=e.enableVariablesOverwrite,t=e.originalVariables,Z=e.runtimeVariables,y=(e.setEnableVariablesOverwrite,e.setRuntimeVariables),P=(0,l.useState)({}),O=P[0],_=P[1],k=(0,l.useState)(null),S=k[0],w=k[1],I=(0,l.useState)(null),C=I[0],T=I[1];(0,l.useEffect)((function(){var e=Object.entries(Z||{}).reduce((function(e,n){var t=(0,r.Z)(n,2),l=t[0],o=t[1],u=(0,g.Pb)(o)&&"object"===typeof JSON.parse(o)&&!Array.isArray(JSON.parse(o))&&null!==JSON.parse(o);return b(b({},e),{},(0,i.Z)({},l,u))}),{});_(e)}),[]);var E=function(e,n){var t={borderless:!0,key:"variable_uuid_input_".concat(e),monospace:!0,onChange:function(n){n.preventDefault(),y((function(t){return b(b({},t),{},(0,i.Z)({},e,n.target.value))}))},paddingHorizontal:0,placeholder:"Variable value",value:n};return O[e]?(0,x.jsx)(h.Z,b(b({},t),{},{rows:1,value:n})):(0,x.jsx)(p.Z,b({},t))};return(0,x.jsxs)(x.Fragment,{children:[n&&Z&&Object.entries(Z).length>0&&(0,x.jsx)(d.Z,{columnFlex:[null,1,null],columns:[{uuid:"Variable"},{uuid:"Value"},{label:function(){return""},uuid:"Action"}],rows:Object.entries(Z).map((function(e){var n=(0,r.Z)(e,2),i=n[0],l=n[1];return[(0,x.jsx)(v.ZP,{default:!0,monospace:!0,children:i},"variable_".concat(i)),E(i,l),!(null!==t&&void 0!==t&&t[i])&&(0,x.jsx)(o.ZP,{iconOnly:!0,onClick:function(){y((function(e){return(0,j.gR)(e,[i])}))},children:(0,x.jsx)(f.Trash,{default:!0})})]}))}),(0,x.jsx)(a.Z,{p:m.cd,children:(0,x.jsxs)(s.ZP,{alignItems:"center",children:[(0,x.jsx)(c.Z,{flex:1,children:(0,x.jsx)(p.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return w(e.target.value)},placeholder:"New variable UUID",value:S||""})}),(0,x.jsx)(a.Z,{mr:1}),(0,x.jsx)(c.Z,{flex:1,children:(0,x.jsx)(p.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return T(e.target.value)},placeholder:"Variable value",value:C||""})}),(0,x.jsx)(a.Z,{mr:1}),(0,x.jsx)(o.ZP,{beforeIcon:(0,x.jsx)(f.Add,{}),disabled:!S||!C,onClick:function(){y((function(e){return b(b({},e),{},(0,i.Z)({},S,C))})),w(null),T(null)},children:"Add runtime variable"})]})}),(0,x.jsx)(u.Z,{light:!0})]})}},97196:function(e,n,t){t.d(n,{S5:function(){return l},_P:function(){return o}});var i,r=t(86735);!function(e){e.AWS="aws_event"}(i||(i={}));var l=[{label:function(){return"AWS"},uuid:i.AWS}],o=(0,r.HK)(l,(function(e){return e.uuid}))},83784:function(e,n,t){t.d(n,{C:function(){return i}});var i="global"},14805:function(e,n,t){var i=t(82394),r=t(44495),l=t(55485),o=t(44085),u=t(38276),c=t(30160),s=t(88785),a=t(70515),d=t(86735),v=t(28598);function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.localTime,t=e.selectedDate,i=e.selectedTime,h=e.setSelectedDate,f=e.setSelectedTime,m=e.topPosition;return(0,v.jsxs)(s.J,{absolute:!0,topPosition:m,children:[(0,v.jsx)(r.ZP,{onChange:h,value:t}),(0,v.jsx)(u.Z,{mb:2}),(0,v.jsxs)(l.ZP,{alignItems:"center",children:[(0,v.jsxs)(c.ZP,{default:!0,large:!0,children:["Time (",n?"Local":"UTC","):"]}),(0,v.jsx)(u.Z,{pr:2}),(0,v.jsx)(o.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return p(p({},n),{},{hour:e.target.value})}))},paddingRight:5*a.iI,placeholder:"HH",value:null===i||void 0===i?void 0:i.hour,children:(0,d.m5)(24,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,v.jsx)("option",{value:e,children:e},"hour_".concat(e))}))}),(0,v.jsx)(u.Z,{px:1,children:(0,v.jsx)(c.ZP,{bold:!0,large:!0,children:":"})}),(0,v.jsx)(o.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return p(p({},n),{},{minute:e.target.value})}))},paddingRight:5*a.iI,placeholder:"MM",value:null===i||void 0===i?void 0:i.minute,children:(0,d.m5)(60,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,v.jsx)("option",{value:e,children:e},"minute_".concat(e))}))})]})]})}},79500:function(e,n,t){t.d(n,{a:function(){return l}});var i=t(16488),r=t(3917);function l(e,n){var t,l;if(null!==n&&void 0!==n&&n.localTimezone)t=(0,r.n$)(e),l={hour:(0,r.lJ)(String(t.getHours())),minute:(0,r.lJ)(String(t.getMinutes()))};else{var o=e.split(" ")[1];t=(0,i.eI)(e),l={hour:o.substring(0,2),minute:o.substring(3,5)}}return{date:t,time:l}}},9134:function(e,n,t){var i=t(82684),r=t(21124),l=t(68432),o=t(25976),u=t(65292),c=t(44897),s=t(95363),a=t(70515),d=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,v=e.showLineNumbers,h=e.small,p=e.source,f=e.wrapLines,m=(0,i.useContext)(o.ThemeContext);function j(e){var i=e.value;return(0,d.jsx)(l.Z,{customStyle:{backgroundColor:(m.background||c.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:s.Vp,fontSize:h?12:14,marginBottom:0,marginTop:0,maxWidth:t,paddingBottom:2*a.iI,paddingTop:2*a.iI},language:n,lineNumberStyle:{color:(m.content||c.Z.content).muted},showLineNumbers:v,style:u._4,useInlineStyles:!0,wrapLines:f,children:i})}return(0,d.jsx)(r.D,{components:{code:function(e){var n=e.children;return(0,d.jsx)(j,{value:n})}},children:p})}},32080:function(e,n,t){t.d(n,{n:function(){return l}});var i=t(44425),r=t(61599);function l(e){var n,t={};return null===e||void 0===e||null===(n=e.blocks)||void 0===n||n.forEach((function(e){var n=e.catalog,l=e.type,o=e.uuid;if(i.tf.DATA_LOADER===l&&null!==n&&void 0!==n&&n.streams){var u,c=null===n||void 0===n||null===(u=n.streams)||void 0===u?void 0:u.filter((function(e){var n=e.replication_method;return r._B.INCREMENTAL===n}));(null===c||void 0===c?void 0:c.length)>=1&&(o in t||(t[o]={block:e,streams:[]}),t[o].streams.push(c))}})),t}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3366],{78688:function(e,n,t){var r=t(82394),c=t(82684),i=t(15338),o=t(77456),l=t(97618),s=t(55485),u=t(85854),d=t(65956),a=t(38276),p=t(30160),v=t(72473),f=t(70515),h=t(74778),j=t(74260),m=t(81728),x=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.contained,t=void 0===n||n,r=e.onClickStep,b=e.setupSteps,Z=e.small,O=(0,c.useCallback)((function(e,n,c,b){var P=e.name,E=e.description,y=e.group,I=e.error,D=e.required,C=e.status_calculated,T=e.steps,w=e.tab,_=e.uuid,S=(null===T||void 0===T?void 0:T.length)||0,N=b||{completedGroup:!1,level:0,numberEl:null},k=N.completedGroup,R=N.level,A=N.numberEl,M=0===R?2*f.iI:1.5*f.iI;if(y){var L=(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(a.Z,{p:f.cd,children:(0,x.jsx)(s.ZP,{children:(0,x.jsxs)(l.Z,{flex:1,flexDirection:"column",children:[(0,x.jsxs)(s.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,x.jsx)(u.Z,{level:Z?5:4,children:P}),(0,x.jsx)(a.Z,{mr:f.cd}),j.br.COMPLETED===C&&(0,x.jsx)(v.Check,{size:M,success:!0})]}),E&&(0,x.jsx)(a.Z,{mt:1,children:(0,x.jsx)(p.ZP,{default:!0,small:Z,children:E})})]})})}),(0,x.jsx)(i.Z,{light:!0}),null===T||void 0===T?void 0:T.map((function(e,n){return O(e,n,S,{completedGroup:j.br.COMPLETED===C,level:0})}))]});return(0,x.jsxs)(a.Z,{mb:Z?0:f.cd,children:[t&&(0,x.jsx)(d.Z,{noPadding:!0,children:L}),!t&&L]},_)}var G=j.br.COMPLETED===C,U=0===R?String(n+1):(0,m.bH)()[n].toLowerCase();var F=!!w&&r,z=(0,x.jsx)(a.Z,{pl:0===R?f.cd:0,children:(0,x.jsxs)(p.ZP,{large:!Z,monospace:!0,muted:!0,children:[U,"."]})}),H={muted:G||k,strikethrough:G||k};return(0,x.jsx)(h.aw,{clickable:!!F,onClick:F?function(){return null===r||void 0===r?void 0:r(w)}:null,children:(0,x.jsxs)(a.Z,{py:0!==R||Z?1:f.cd,children:[(0,x.jsxs)(s.ZP,{children:[A&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{style:{opacity:0},children:A}),(0,x.jsx)(a.Z,{mr:1})]}),z,(0,x.jsx)(a.Z,{mr:1}),(0,x.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,x.jsxs)(s.ZP,{flexDirection:"column",children:[(0,x.jsxs)(s.ZP,{alignItems:"center",children:[(0,x.jsxs)(l.Z,{flex:1,children:[0===R&&!Z&&(0,x.jsx)(u.Z,g(g({level:5},H),{},{children:P})),0===R&&Z&&(0,x.jsx)(p.ZP,g(g({bold:!0,large:!0},H),{},{children:P})),R>=1&&(0,x.jsx)(p.ZP,g(g({bold:!0,large:!Z},H),{},{children:P})),!D&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(a.Z,{mr:1}),(0,x.jsx)(p.ZP,{muted:!0,uppercase:!0,xsmall:!0,children:"optional"})]})]}),(0,x.jsx)(a.Z,{mr:f.cd}),G&&(0,x.jsx)(v.Check,{size:M,success:!0}),j.br.INCOMPLETE===C&&(0,x.jsx)(v.AlertTriangle,{muted:!0,size:M}),j.br.ERROR===C&&(0,x.jsx)(v.AlertTriangle,{danger:!0,size:M}),(0,x.jsx)(a.Z,{pr:f.cd*(C?1:2)})]}),E&&(0,x.jsx)(a.Z,{mt:1,pr:3*f.cd,children:(0,x.jsx)(p.ZP,g(g({default:!0},H),{},{small:Z,children:E}))}),I&&(0,x.jsx)(o.Z,{error:I,small:!0,warning:!0})]})})]}),S>=1&&(0,x.jsx)(a.Z,{mt:1,children:null===T||void 0===T?void 0:T.map((function(e,n){return O(e,n,S,{completedGroup:k,level:1,numberEl:z})}))})]})},_)}),[t,r,Z]),P=[],E=(null===b||void 0===b?void 0:b.length)||0;return null===b||void 0===b||b.forEach((function(e,n){e.status;P.push(O(e,n,E))})),t?(0,x.jsx)(a.Z,{p:f.cd,children:P}):(0,x.jsx)(x.Fragment,{children:P})}},89308:function(e,n,t){var r=t(82394),c=t(75582),i=t(82684),o=t(69864),l=t(71180),s=t(26032),u=t(74260),d=t(15338),a=t(97618),p=t(55485),v=t(85854),f=t(65956),h=t(78688),j=t(38276),m=t(30160),x=t(35686),b=t(70515),g=t(72473),Z=t(81728),O=t(10332),P=t(72619),E=t(23780),y=t(28598);function I(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?I(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):I(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,I=e.contained,C=void 0===I||I,T=e.fetchAll,w=e.hideDetails,_=e.onClickStep,S=e.small,N=(0,E.VI)(null,{},[],{uuid:"ConnectionSettings"}),k=(0,c.Z)(N,1)[0],R=(0,i.useState)(null),A=R[0],M=R[1],L=(0,i.useState)(null),G=L[0],U=L[1],F=(0,o.Db)((function(e){var n=e.action,r=e.uuid;return x.ZP.compute_connections.compute_services.useUpdate(null===t||void 0===t?void 0:t.uuid,r)({compute_connection:{action:n}})}),{onSuccess:function(e){return(0,P.wD)(e,{callback:function(e){var n=e.compute_connection;null===T||void 0===T||T(),U(D(D({},A),{},{computeConnection:n}))},onErrorCallback:function(e,n){return k({errors:n,response:e})}})}}),z=(0,c.Z)(F,2),H=z[0],V=z[1].isLoading;return(0,i.useEffect)((function(){if(G){var e,n=null===r||void 0===r?void 0:r.find((function(e){var n,t=e.uuid;return(null===G||void 0===G||null===(n=G.computeConnection)||void 0===n?void 0:n.uuid)===t}));(null===n||void 0===n?void 0:n.state)!==(null===G||void 0===G||null===(e=G.computeConnection)||void 0===e?void 0:e.state)&&U(null)}}),[r,G,U]),(0,y.jsx)(j.Z,{py:C?b.cd:0,children:null===r||void 0===r?void 0:r.map((function(e,t){var r,i,o,x,P=e.actions,E=e.attributes,I=e.connection,D=e.description,T=e.name,N=e.required,k=e.status_calculated,R=e.steps,L=e.uuid;!w&&!n&&E&&(null===(r=Object.keys(E||{}))||void 0===r?void 0:r.length)>=1&&(o=(0,O.s)(Object.entries(E||{}).map((function(e){var n=(0,c.Z)(e,2),t=n[0],r=n[1];return[(0,Z.vg)(t),r]})))),!w&&!n&&I&&(null===(i=Object.keys(I||{}))||void 0===i?void 0:i.length)>=1&&(x=(0,O.s)(Object.entries(I||{}).map((function(e){var n=(0,c.Z)(e,2),t=n[0],r=n[1];return[(0,Z.vg)(t),r]}))));var F=(0,y.jsxs)(y.Fragment,{children:[!n&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(j.Z,{p:b.cd,children:(0,y.jsx)(p.ZP,{children:(0,y.jsxs)(a.Z,{flex:1,flexDirection:"column",children:[(0,y.jsxs)(p.ZP,{alignItems:"center",children:[(0,y.jsx)(a.Z,{flex:1,children:(0,y.jsx)(v.Z,{level:S?5:4,children:T})}),(0,y.jsx)(j.Z,{mr:b.cd}),(0,y.jsx)(g.PowerOnOffButton,{danger:u.br.ERROR===k,muted:N&&u.br.INCOMPLETE===k,size:2*b.iI,success:!N||u.br.COMPLETED===k})]}),D&&(0,y.jsx)(j.Z,{mt:1,children:(0,y.jsx)(m.ZP,{default:!0,small:S,children:D})})]})})}),(null===R||void 0===R?void 0:R.length)>=1&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(d.Z,{light:!0}),(0,y.jsx)(h.Z,{contained:!1,onClickStep:_,setupSteps:R,small:S})]})]}),(o||x)&&(0,y.jsx)(j.Z,{p:b.cd,children:(0,y.jsxs)(p.ZP,{children:[o&&(0,y.jsx)(f.Z,{noPadding:!0,children:(0,y.jsxs)(p.ZP,{flexDirection:"column",children:[(0,y.jsx)(j.Z,{p:b.cd,children:(0,y.jsx)(m.ZP,{bold:!0,large:!0,children:"Attributes"})}),(0,y.jsx)(d.Z,{light:!0}),o,(0,y.jsx)(j.Z,{mb:b.cd})]})}),o&&x&&(0,y.jsx)(j.Z,{pr:b.cd}),x&&(0,y.jsx)(f.Z,{noPadding:!0,children:(0,y.jsxs)(p.ZP,{flexDirection:"column",children:[(0,y.jsx)(j.Z,{p:b.cd,children:(0,y.jsx)(m.ZP,{bold:!0,large:!0,children:"Connection"})}),(0,y.jsx)(d.Z,{light:!0}),x,(0,y.jsx)(j.Z,{mb:b.cd})]})})]})}),(null===P||void 0===P?void 0:P.length)>=1&&(0,y.jsxs)(y.Fragment,{children:[!n&&(0,y.jsx)(j.Z,{p:b.cd,children:(0,y.jsx)(p.ZP,{children:(0,y.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,y.jsx)(p.ZP,{alignItems:"center",children:(0,y.jsx)(a.Z,{flex:1,children:(0,y.jsx)(v.Z,{level:S?5:4,children:"Actions"})})})})})}),null===P||void 0===P?void 0:P.map((function(e,t){var r,c=e.description,i=e.name,o=e.uuid,u=V&&(null===A||void 0===A?void 0:A.uuid)===L&&(null===A||void 0===A?void 0:A.actionUUID)===o||s.i.PENDING===(null===G||void 0===G||null===(r=G.computeConnection)||void 0===r?void 0:r.state);return(0,y.jsxs)("div",{children:[(!n||t>=1)&&(0,y.jsx)(d.Z,{light:!0}),(0,y.jsx)(j.Z,{p:b.cd,children:(0,y.jsx)(p.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,y.jsxs)(a.Z,{flex:1,flexDirection:"column",children:[(0,y.jsx)(m.ZP,{default:!0,large:!S,children:c}),(0,y.jsx)(j.Z,{mt:b.cd,children:(0,y.jsx)(l.ZP,{compact:S,danger:[s._.DELETE].includes(o),loading:u,onClick:function(){M({actionUUID:o,uuid:L}),U(null),H({action:o,uuid:L})},primary:[s._.CREATE,s._.UPDATE].includes(o),secondary:[s._.DESELECT].includes(o),small:S,children:i})})]})})})]},o)}))]})]});return(0,y.jsxs)(j.Z,{mt:t>=1?b.cd:0,px:C?b.cd:0,children:[C&&(0,y.jsx)(f.Z,{noPadding:!0,children:F}),!C&&F]},L)}))})}},77456:function(e,n,t){var r=t(82394),c=t(75582),i=t(43695),o=t(30160),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 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,d=e.warning,a=t.message,p=t.variables,v=a;return p&&Object.entries(p||{}).forEach((function(e){var t=(0,c.Z)(e,2),a=t[0],p=t[1];v=v.replace("{{".concat(a,"}}"),(0,i.Dq)((0,l.jsx)(o.ZP,u(u({danger:n,inline:!0,large:r,muted:!n&&!d,small:s,warning:d},p||{}),{},{children:a}))))})),(0,l.jsx)(o.ZP,{danger:n,dangerouslySetInnerHTML:{__html:v},muted:!n&&!d,large:r,small:s,warning:d})}},74778:function(e,n,t){t.d(n,{UE:function(){return s},aw:function(){return u},bC:function(){return d}});var r=t(25976),c=t(44897),i=t(42631),o=t(70515),l=t(91437),s=r.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-1b5e7g-0"})([""," border-radius:","px;padding:","px;"," ",""],(0,l.eR)(),i.D7,2.5*o.iI,(function(e){return"\n background-color: ".concat((e.theme.background||c.Z.background).panel,";\n border: 1px solid ").concat((e.theme.borders||c.Z.borders).darkLight,";\n box-shadow: ").concat((e.theme.shadow||c.Z.shadow).frame,";\n ")}),(function(e){return!e.inline&&"\n height: ".concat(28*o.iI,"px;\n width: ").concat(40*o.iI,"px;\n margin: ").concat(o.cd/2*o.iI,"px;\n ")})),u=r.default.div.withConfig({displayName:"indexstyle__SetupStepRowStyle",componentId:"sc-1b5e7g-1"})([""," ",""],(0,l.eR)(),(function(e){return e.clickable&&"\n &:hover {\n background-color: ".concat((e.theme.interactive||c.Z.interactive).hoverOverlay,";\n cursor: pointer;\n }\n ")})),d=r.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-1b5e7g-2"})([""," height:","px;padding-left:","px;padding-right:","px;"," ",""],(0,l.eR)(),7*o.iI,o.cd*o.iI,o.cd*o.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.interactive||c.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||c.Z.background).codeTextarea,";\n ")}))},28071:function(e,n,t){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){var r,c;t.d(n,{_:function(){return r},i:function(){return c}}),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"}(c||(c={}))},23657:function(e,n,t){var r=t(82394),c=t(75582),i=t(82684),o=t(74260),l=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 d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.clustersRefreshInterval,t=e.computeServiceRefreshInterval,u=e.connectionsRefreshInterval,a=e.includeAllStates,p=e.pauseFetch,v=(0,s.Z)(),f=v.sparkEnabled,h=l.ZP.compute_services.detail("compute-service",{},{refreshInterval:t},{pauseFetch:!f||p}),j=h.data,m=h.mutate,x=(0,i.useMemo)((function(){return null===j||void 0===j?void 0:j.compute_service}),[j]),b={};a&&(b.include_all_states=!0);var g=l.ZP.compute_clusters.compute_services.list(null===x||void 0===x?void 0:x.uuid,b,{refreshInterval:n},{pauseFetch:!f||p}),Z=g.data,O=g.mutate,P=(0,i.useMemo)((function(){return(null===Z||void 0===Z?void 0:Z.compute_clusters)||[]}),[Z]),E=(0,i.useMemo)((function(){return null===P||void 0===P?void 0:P.map((function(e){return e.cluster}))}),[P]),y=(0,i.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||o.br.COMPLETED===t})):null}),[x]),I=((0,i.useMemo)((function(){return null===E||void 0===E?void 0:E.find((function(e){return e.active}))}),[E]),l.ZP.compute_connections.compute_services.list(null===x||void 0===x?void 0:x.uuid,{},{refreshInterval:u},{pauseFetch:!f||p})),D=I.data,C=I.mutate,T=(0,i.useMemo)((function(){return(null===D||void 0===D?void 0:D.compute_connections)||[]}),[D]),w=(0,i.useCallback)((function(){return new Promise((function(){null===O||void 0===O||O(),null===C||void 0===C||C(),null===m||void 0===m||m()}))}),[O,C,m]);return{activeCluster:null===E||void 0===E?void 0:E.find((function(e){return e.active})),clusters:E,clustersLoading:!Z,computeService:x,computeServiceUUIDs:Object.entries(o.GO).reduce((function(e,n){var t=(0,c.Z)(n,2),i=t[0],o=t[1];return d(d({},e),{},(0,r.Z)({},i,o))}),{}),connections:T,connectionsLoading:!D,fetchAll:w,fetchComputeClusters:O,fetchComputeConnections:C,fetchComputeService:m,setupComplete:y}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3449],{1589:function(e,n,t){var o=t(82684);var i="function"===typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e===1/n)||e!==e&&n!==n},u=o.useState,l=o.useEffect,r=o.useLayoutEffect,c=o.useDebugValue;function a(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!i(e,t)}catch(o){return!0}}var s="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,n){return n()}:function(e,n){var t=n(),o=u({inst:{value:t,getSnapshot:n}}),i=o[0].inst,s=o[1];return r((function(){i.value=t,i.getSnapshot=n,a(i)&&s({inst:i})}),[e,t,n]),l((function(){return a(i)&&s({inst:i}),e((function(){a(i)&&s({inst:i})}))}),[e]),c(t),t};n.useSyncExternalStore=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:s},73847:function(e,n,t){var o=t(82684),i=t(48216);var u="function"===typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e===1/n)||e!==e&&n!==n},l=i.useSyncExternalStore,r=o.useRef,c=o.useEffect,a=o.useMemo,s=o.useDebugValue;n.useSyncExternalStoreWithSelector=function(e,n,t,o,i){var d=r(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=a((function(){function e(e){if(!c){if(c=!0,l=e,e=o(e),void 0!==i&&f.hasValue){var n=f.value;if(i(n,e))return r=n}return r=e}if(n=r,u(l,e))return n;var t=o(e);return void 0!==i&&i(n,t)?n:(l=e,r=t)}var l,r,c=!1,a=void 0===t?null:t;return[function(){return e(n())},null===a?void 0:function(){return e(a())}]}),[n,t,o,i]);var v=l(e,d[0],d[1]);return c((function(){f.hasValue=!0,f.value=v}),[v]),s(v),v}},48216:function(e,n,t){e.exports=t(1589)},81550:function(e,n,t){e.exports=t(73847)},43449:function(e,n,t){var o=t(82394),i=t(75582),u=t(17717),l=t(82684),r=t(49555),c=t(69864),a=t(40761),s=t(44425),d=t(71180),f=t(92677),v=t(89083),p=t(89706),h=t(55485),b=t(93369),S=t(57653),g=t(38276),y=t(35686),m=t(39643),k=t(11498),E=t(85385),O=t(68669),j=t(86735),w=t(81728),P=t(72619),x=t(42041),C=t(44688),D=t(19183),Z=t(28598);function _(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function T(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,o.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}n.Z=function(e){var n,t=e.active,_=e.addNewBlock,R=e.disableRefreshWarning,M=e.fetchPipeline,V=e.fetchVariables,I=e.filePath,N=e.codeEditorMaximumHeightOffset,U=e.hideHeaderButtons,F=e.onContentChange,A=e.onUpdateFileSuccess,G=e.openSidekickView,L=e.originalContent,B=e.pipeline,H=e.saveFile,W=e.selectedFilePath,X=e.sendTerminalMessage,q=e.setDisableShortcuts,J=e.setErrors,z=e.setFilesTouched,K=e.setSelectedBlock,Q=(0,r.j)("apiReloads"),Y=(0,i.Z)(Q,2)[1],$=(0,l.useState)(null),ee=$[0],ne=$[1],te=(0,l.useState)(!1),oe=te[0],ie=(te[1],(0,l.useRef)(null)),ue=(0,D.i)().height,le=(0,l.useMemo)((function(){return new a.Z}),[]),re=(0,l.useMemo)((function(){return{api_key:k.lG,token:le.decodedToken.token}}),[le]),ce=y.ZP.statuses.list().data,ae=(0,l.useMemo)((function(){var e,n;return null===ce||void 0===ce||null===(e=ce.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.repo_path}),[ce]),se=y.ZP.file_contents.detail(I).data;(0,l.useEffect)((function(){null!==se&&void 0!==se&&se.file_content?ne(se.file_content):null!==se&&void 0!==se&&se.error&&(0,P.h$)(se,{onErrorCallback:function(e,n){return J({errors:n,response:e})}})}),[se,J]);var de=(0,l.useState)(null===ee||void 0===ee?void 0:ee.content),fe=de[0],ve=de[1],pe=(0,l.useCallback)((function(e){ve(e),F&&(null===F||void 0===F||F(e))}),[F]),he=(0,l.useState)(!1),be=he[0],Se=he[1];(0,l.useEffect)((function(){var e;W&&(null===ie||void 0===ie||null===(e=ie.current)||void 0===e||e.scrollIntoView())}),[W]);var ge=(0,c.Db)(y.ZP.file_contents.useUpdate((null===ee||void 0===ee?void 0:ee.path)&&encodeURIComponent(null===ee||void 0===ee?void 0:ee.path)),{onSuccess:function(e){return(0,P.wD)(e,{callback:function(e){var n=e.file_content;Y((function(e){return T(T({},e),{},(0,o.Z)({},"FileVersions/".concat(null===ee||void 0===ee?void 0:ee.path),Number(new Date)))})),A&&(null===A||void 0===A||A(n))},onErrorCallback:function(e,n){return null===J||void 0===J?void 0:J({errors:n,response:e})}})}}),ye=(0,i.Z)(ge,1)[0],me=(0,l.useCallback)((function(e,n){if(H)return H(e,n);ye({file_content:T(T({},n),{},{content:e})}).then((function(){decodeURIComponent(I).split(u.sep).pop()===p.dT.METADATA_YAML&&V&&(null===V||void 0===V||V())})),null===z||void 0===z||z((function(e){return T(T({},e),{},(0,o.Z)({},null===n||void 0===n?void 0:n.path,!1))})),Se(!1)}),[V,I,H,z,ye]),ke=(0,l.useMemo)((function(){return(0,O.lU)()}),[]),Ee=(0,l.useMemo)((function(){var e,n,t,o;return null===(null===ee||void 0===ee||null===(e=ee.path)||void 0===e?void 0:e.match(ke))?p.Lu.TXT:null===ee||void 0===ee||null===(n=ee.path)||void 0===n||null===(t=n.match(ke))||void 0===t||null===(o=t[0])||void 0===o?void 0:o.split(".")[1]}),[ke,ee]),Oe=(0,l.useMemo)((function(){return null===L||void 0===L?void 0:L[null===ee||void 0===ee?void 0:ee.path]}),[ee,L]),je=(0,l.useMemo)((function(){if(null!==ee&&void 0!==ee&&ee.path){var e=!!Oe&&(null===Oe||void 0===Oe?void 0:Oe.content_from_base);return(0,Z.jsx)(v.Z,{autoHeight:!0,height:N?ue-N:null,language:p.nB[Ee],onChange:function(e){pe(e),z&&z((function(e){return null!==e&&void 0!==e&&e[null===ee||void 0===ee?void 0:ee.path]?e:T(T({},e),{},(0,o.Z)({},null===ee||void 0===ee?void 0:ee.path,!0))})),Se(!0)},onMountCallback:function(e){q&&(e.onDidFocusEditorWidget=function(){null===q||void 0===q||q(!0)}),q&&(e.onDidBlurEditorWidget=function(){null===q||void 0===q||q(!1)})},onSave:function(e){me(e,ee)},originalValue:null===Oe||void 0===Oe?void 0:Oe.content_from_base,padding:10,readOnly:!!e,selected:!0,showDiffs:!!e,textareaFocused:!0,value:(0,w.Pb)(null===ee||void 0===ee?void 0:ee.content)?JSON.stringify(JSON.parse(null===ee||void 0===ee?void 0:ee.content),null,2):null===ee||void 0===ee?void 0:ee.content,width:"100%"})}}),[N,ee,Ee,ue,Oe,me,pe,z]),we=null!==B&&void 0!==B&&B.blocks?(0,j.sE)(null===B||void 0===B?void 0:B.blocks,(function(e){var n=e.type;return s.tf.DATA_EXPORTER===n})):null,Pe=(0,c.Db)(y.ZP.blocks.pipelines.useUpdate(encodeURIComponent(null===B||void 0===B?void 0:B.uuid),encodeURIComponent(null===we||void 0===we?void 0:we.uuid)),{onSuccess:function(e){return(0,P.wD)(e,{callback:function(){null===M||void 0===M||M()}})}}),xe=(0,i.Z)(Pe,1)[0],Ce=_&&B&&ee&&p.tE.includes(Ee)&&(0,O.ck)(null===ee||void 0===ee||null===(n=ee.path)||void 0===n?void 0:n.split(u.sep))&&(0,Z.jsx)(d.ZP,{onClick:function(){var e=(null===B||void 0===B?void 0:B.type)===S.qL.INTEGRATION,n=(0,O.TU)(ee,ae,B);_(n,(function(n){e&&we&&xe({block:T(T({},we),{},{upstream_blocks:[n.uuid]})}),null===K||void 0===K||K(n)}))},primary:!0,children:"Add to current pipeline"}),De=X&&(0,Z.jsx)(g.Z,{m:2,children:(0,Z.jsx)(b.ZP,{disabled:!ae,inline:!0,loading:oe,onClick:function(){null===G||void 0===G||G(E.cH.TERMINAL),null===X||void 0===X||X(JSON.stringify(T(T({},re),{},{command:["stdin","pip install -r ".concat(ae,"/requirements.txt\r")]})))},title:ae?"Pip install packages from your saved requirements.txt file (\u2318+S to save).":"Please use right panel terminal to install packages.",uuid:"FileEditor/InstallPackages",children:"Install packages"})}),Ze="FileEditor/".concat((null===ee||void 0===ee?void 0:ee.path)||I),_e=(0,C.y)(),Te=_e.registerOnKeyDown,Re=_e.unregisterOnKeyDown;return(0,l.useEffect)((function(){return function(){Re(Ze)}}),[Re,Ze]),Te(Ze,(function(e,n){if(t&&!R)if((0,x.y)([m.zX,m.Um],n)||(0,x.y)([m.PQ,m.Um],n))e.preventDefault(),me(fe,ee);else if(be&&(0,x.y)([m.zX,m.hS],n)){e.preventDefault();var o="".concat(ee.path," has changes that are unsaved. ")+"Click cancel and save your changes before reloading page.";"undefined"!==typeof location&&window.confirm(o)&&location.reload()}}),[t,fe,R,ee,me,be]),(0,Z.jsxs)("div",{ref:ie,children:[!U&&(0,Z.jsx)(g.Z,{p:2,children:(0,Z.jsxs)(h.ZP,{justifyContent:"space-between",children:[(0,Z.jsxs)(f.Z,{children:[Ce,(0,Z.jsx)(d.ZP,{disabled:!fe,onClick:function(e){e.preventDefault(),me(fe,ee)},title:fe?null:"No changes have been made to this file.",children:"Save file content"})]}),G&&(0,Z.jsx)(f.Z,{children:(0,Z.jsx)(d.ZP,{compact:!0,onClick:function(){G(E.cH.FILE_VERSIONS)},small:!0,title:"View previous changes to this file.",children:"Show versions"})})]})}),je,I===p.dT.REQS_TXT&&De]})}},49555:function(e,n,t){t.d(n,{j:function(){return s}});var o=t(82684);const i=e=>{let n;const t=new Set,o=(e,o)=>{const i="function"===typeof e?e(n):e;if(i!==n){const e=n;n=o?i:Object.assign({},n,i),t.forEach((t=>t(n,e)))}},i=()=>n,u={setState:o,getState:i,subscribe:e=>(t.add(e),()=>t.delete(e)),destroy:()=>t.clear()};return n=e(o,i,u),u};var u=t(81550);const{useSyncExternalStoreWithSelector:l}=u;const r=e=>{const n="function"===typeof e?(e=>e?i(e):i)(e):e,t=(e,t)=>function(e,n=e.getState,t){const i=l(e.subscribe,e.getState,e.getServerState||e.getState,n,t);return(0,o.useDebugValue)(i),i}(n,e,t);return Object.assign(t,n),t};var c=e=>e?r(e):r;var a=(e=>{const n=c((()=>e)),t=(Object.keys(e),(e,t)=>{n.setState((n=>{return{[e]:(o=n[e],i=t,"function"==typeof i?i(o):i)};var o,i}))});return{useGlobalState:e=>{const i=(0,o.useCallback)((n=>n[e]),[e]);return[n(i),(0,o.useCallback)((n=>t(e,n)),[e])]},getGlobalState:e=>n.getState()[e],setGlobalState:t,subscribe:(e,t)=>{n.subscribe(((n,o)=>{n[e]!==o[e]&&t(n[e])}))}}})({apiReloads:{}}),s=a.useGlobalState}}]);
|