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([[9264],{84649:function(e,n,t){t.d(n,{EN:function(){return w},FX:function(){return I},HS:function(){return _},Nk:function(){return m},Rd:function(){return f},SL:function(){return C},Tj:function(){return Z},UE:function(){return j},Yf:function(){return v},ZG:function(){return c},bC:function(){return h},n5:function(){return p},n8:function(){return k},w5:function(){return y},wj:function(){return b},wl:function(){return g},ze:function(){return x}});var o=t(25976),i=t(44897),r=t(42631),u=t(46684),l=t(70515),a=t(91437),d=t(47041),c=2.5*l.iI,s=40*l.iI,p=10*l.iI,f=o.default.div.withConfig({displayName:"indexstyle__ContainedStyle",componentId:"sc-8sk2qr-0"})([""," overflow:auto;"," "," ",""],d.w5,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).page,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-p,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width-p,"px;\n ")})),m=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-8sk2qr-1"})(["height:100%;position:relative;"]),h=o.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-8sk2qr-2"})(["position:fixed;width:","px;z-index:1;"," "," ",""],s,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-p,"px;\n ")}),(function(e){return!e.height&&"\n height: 100%;\n "})),v=o.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-8sk2qr-3"})(["padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;",""],1*l.iI,l.cd*l.iI,l.cd*l.iI,1*l.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).light,";\n ")})),g=o.default.div.withConfig({displayName:"indexstyle__LinksContainerStyle",componentId:"sc-8sk2qr-4"})([""," overflow:auto;position:fixed;width:","px;",""],d.w5,s,(function(e){return"\n height: calc(100% - ".concat(55+(null!==e&&void 0!==e&&e.contained?p:u.Mz)+((null===e||void 0===e?void 0:e.heightOffset)||0),"px);\n ")})),b=o.default.div.withConfig({displayName:"indexstyle__NavLinkStyle",componentId:"sc-8sk2qr-5"})([""," padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;&:hover{cursor:pointer;}",""],(0,a.eR)(),1*l.iI,l.cd*l.iI,l.cd*l.iI,1*l.iI,(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||i.Z.background).codeTextarea,";\n ")})),x=o.default.div.withConfig({displayName:"indexstyle__IconStyle",componentId:"sc-8sk2qr-6"})([""," border-radius:","px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],(0,a.eR)(),r.n_,5*l.iI,1.25*l.iI,1.25*l.iI,5*l.iI,(function(e){return!e.backgroundColor&&"\n background-color: ".concat((e.theme.background||i.Z.background).chartBlock,";\n ")}),(function(e){return e.backgroundColor&&"\n background-color: ".concat(e.backgroundColor,";\n ")})),y=o.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-8sk2qr-7"})(["margin-left:","px;"],s),_=o.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-8sk2qr-8"})(["padding:","px;",""],l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||i.Z.borders).light,";\n ")})),k=o.default.div.withConfig({displayName:"indexstyle__CardsStyle",componentId:"sc-8sk2qr-9"})(["display:flex;flex-wrap:wrap;padding:","px;"],.75*l.iI),j=o.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-8sk2qr-10"})(["border-radius:","px;margin:","px;padding:","px;width:","px;&:hover{cursor:pointer;}",""],r.n_,.75*l.iI,2.5*l.iI,50*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border: 1px solid ").concat((e.theme.background||i.Z.background).chartBlock,";\n box-shadow: ").concat((e.theme.shadow||i.Z.shadow).frame,";\n ")})),Z=o.default.div.withConfig({displayName:"indexstyle__CardTitleStyle",componentId:"sc-8sk2qr-11"})(["height:","px;"],2.5*l.iI),C=o.default.div.withConfig({displayName:"indexstyle__CardDescriptionStyle",componentId:"sc-8sk2qr-12"})(["height:","px;margin-top:","px;"],2.5*l.iI*2,1*l.iI),w=o.default.div.withConfig({displayName:"indexstyle__TagsStyle",componentId:"sc-8sk2qr-13"})(["height:","px;margin-top:","px;overflow:hidden;"],3.5*l.iI,.5*l.iI),I=o.default.div.withConfig({displayName:"indexstyle__BreadcrumbsStyle",componentId:"sc-8sk2qr-14"})(["padding-bottom:","px;padding-top:","px;",""],1*l.iI,1*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||i.Z.borders).light,";\n ")}))},88328:function(e,n,t){t.d(n,{Z:function(){return A}});var o=t(82394),i=t(75582),r=t(12691),u=t.n(r),l=t(21764),a=t(82684),d=t(69864),c=t(34376),s=t(71180),p=t(90299),f=t(44898),m=t(24138),h=t(97618),v=t(55485),g=t(48670),b=t(38276),x=t(30160),y=t(35576),_=t(17488),k=t(62547),j=t(35686),Z=t(94777),C=t(98464),w=t(46684),I={uuid:"Define"},O={uuid:"Document"},S=[I,O],D=t(70515),P=t(11302),U=t(68899),M=t(72619),N=t(23780),T=t(19183),R=t(28598);function E(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 q(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?E(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var A=function(e){var n=e.defaultTab,t=e.onMutateSuccess,o=e.pipelineUUID,r=e.template,E=e.templateAttributes,A=e.templateUUID,L=(0,T.i)().height,B=(w.Mz,(0,c.useRouter)()),F=(0,N.VI)(null,{},[],{uuid:"CustomTemplates/PipelineTemplateDetail"}),W=(0,i.Z)(F,1)[0],Y=(0,a.useState)(!1),H=Y[0],z=Y[1],K=(0,a.useState)(!1),V=K[0],G=K[1],X=(0,a.useState)(E),J=X[0],Q=X[1],$=(0,a.useCallback)((function(e){G(!0),Q(e)}),[]),ee=(0,C.Z)(r);(0,a.useEffect)((function(){(null===ee||void 0===ee?void 0:ee.template_uuid)!==(null===r||void 0===r?void 0:r.template_uuid)&&Q(r)}),[r,ee]);var ne=j.ZP.pipelines.detail(o).data,te=(0,a.useMemo)((function(){return(null===r||void 0===r?void 0:r.pipeline)||(null===ne||void 0===ne?void 0:ne.pipeline)}),[ne,r]),oe=(0,a.useMemo)((function(){return(null===te||void 0===te?void 0:te.blocks)||[]}),[te]),ie=(0,a.useMemo)((function(){return!r&&!A}),[r,A]),re=(0,a.useState)(n?S.find((function(e){return e.uuid===(null===n||void 0===n?void 0:n.uuid)})):S[0]),ue=re[0],le=re[1],ae=(0,a.useMemo)((function(){return!!ie&&!(null!==J&&void 0!==J&&J.template_uuid)}),[ie,J]),de=(0,a.useState)(!1),ce=de[0],se=de[1],pe=(0,a.useState)(ie?400:300),fe=pe[0],me=pe[1],he=(0,d.Db)(j.ZP.custom_templates.useCreate(),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(e){var n=e.custom_template;t&&(null===t||void 0===t||t()),z(!0),setTimeout((function(){B.push("/templates/[...slug]","/templates/".concat(encodeURIComponent(null===n||void 0===n?void 0:n.template_uuid),"?object_type=").concat(f.R))}),1)},onErrorCallback:function(e,n){return W({errors:n,response:e})}})}}),ve=(0,i.Z)(he,2),ge=ve[0],be=ve[1].isLoading,xe=(0,d.Db)(j.ZP.custom_templates.useUpdate(r?encodeURIComponent(null===r||void 0===r?void 0:r.template_uuid):A&&encodeURIComponent(A),{object_type:f.R}),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(e){var n=e.custom_template;t&&(null===t||void 0===t||t()),null!==r&&void 0!==r&&r.template_uuid&&(null===n||void 0===n?void 0:n.template_uuid)!==(null===r||void 0===r?void 0:r.template_uuid)||A&&(null===n||void 0===n?void 0:n.template_uuid)!==A?B.replace("/templates/[...slug]","/templates/".concat(encodeURIComponent(null===n||void 0===n?void 0:n.template_uuid),"?object_type=").concat(f.R)):(Q(n),G(!1),l.Am.success("Template successfully saved.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:"custom_pipeline_template"}))},onErrorCallback:function(e,n){return W({errors:n,response:e})}})}}),ye=(0,i.Z)(xe,2),_e=ye[0],ke=ye[1].isLoading,je=(0,a.useCallback)((function(){var e={custom_template:q(q({},J),{},{object_type:f.R})};ie?ge(q(q({},e),{},{custom_template:q(q({},null===e||void 0===e?void 0:e.custom_template),{},{pipeline_uuid:o})})):_e(e)}),[ge,ie,o,J,_e]),Ze=(0,a.useMemo)((function(){return(0,R.jsxs)(v.ZP,{flexDirection:"column",fullHeight:!0,children:[(0,R.jsx)(P.Yf,{children:(0,R.jsx)(p.Z,{noPadding:!0,onClickTab:function(e){le(e)},selectedTabUUID:null===ue||void 0===ue?void 0:ue.uuid,tabs:S})}),(0,R.jsxs)(h.Z,{flexDirection:"column",children:[I.uuid===(null===ue||void 0===ue?void 0:ue.uuid)&&(0,R.jsxs)(R.Fragment,{children:[o&&(0,R.jsx)(b.Z,{mt:D.cd,px:D.cd,children:(0,R.jsxs)(x.ZP,{default:!0,children:["This pipeline template will be based off the pipeline ",(0,R.jsx)(u(),{as:"/pipelines/".concat(o),href:"/pipelines/[pipeline]",passHref:!0,children:(0,R.jsx)(g.Z,{bold:!0,default:!0,inline:!0,monospace:!0,openNewWindow:!0,children:o})}),"."]})}),(0,R.jsxs)(b.Z,{mt:D.cd,px:D.cd,children:[(0,R.jsxs)(b.Z,{mb:1,children:[(0,R.jsx)(x.ZP,{bold:!0,children:"Template UUID"}),(0,R.jsx)(x.ZP,{muted:!0,small:!0,children:"Unique identifier for custom template. The UUID will also determine where the custom template file is stored in the project. You can use nested folder names in the template\u2019s UUID."})]}),(0,R.jsx)(_.Z,{monospace:!0,onChange:function(e){return $((function(n){return q(q({},n),{},{template_uuid:e.target.value})}))},placeholder:"e.g. some_template_name",primary:!0,setContentOnMount:!0,value:(null===J||void 0===J?void 0:J.template_uuid)||""})]})]}),O.uuid===(null===ue||void 0===ue?void 0:ue.uuid)&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(b.Z,{mt:D.cd,px:D.cd,children:[(0,R.jsxs)(b.Z,{mb:1,children:[(0,R.jsx)(x.ZP,{bold:!0,children:"Name"}),(0,R.jsx)(x.ZP,{muted:!0,small:!0,children:"A human readable name for your template."})]}),(0,R.jsx)(_.Z,{onChange:function(e){return $((function(n){return q(q({},n),{},{name:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===J||void 0===J?void 0:J.name)||""})]}),(0,R.jsx)(b.Z,{mt:D.cd,px:D.cd,children:(0,R.jsx)(y.Z,{label:"Description",onChange:function(e){return $((function(n){return q(q({},n),{},{description:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===J||void 0===J?void 0:J.description)||""})})]})]}),(0,R.jsx)(P.ig,{children:(0,R.jsx)(b.Z,{p:D.cd,children:(0,R.jsx)(v.ZP,{children:(0,R.jsxs)(s.ZP,{disabled:ae,fullWidth:!0,loading:be||ke,onClick:function(){return je()},primary:!0,children:[!ie&&"Save template",ie&&"Create new template"]})})})})]})}),[ae,be,ke,ie,o,je,null===ue||void 0===ue?void 0:ue.uuid,$,J]),Ce=(0,Z.Z)({shouldWarn:!H&&V,warningMessage:"You have unsaved changes. Are you sure you want to leave?"}).ConfirmLeaveModal;return(0,R.jsxs)(k.Z,{before:Ze,beforeHidden:ce,beforeWidth:fe,leftOffset:U.k1,setBeforeHidden:se,setBeforeWidth:me,children:[(0,R.jsx)(Ce,{}),(0,R.jsx)(m.ZP,{blocks:oe,height:L,heightOffset:w.Mz,noStatus:!0,pipeline:te})]})}},11302:function(e,n,t){t.d(n,{Nk:function(){return a},Yf:function(){return c},bC:function(){return d},ig:function(){return s},w5:function(){return p}});var o=t(25976),i=t(44897),r=t(70515),u=t(84649),l=(r.iI,40*r.iI),a=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-axgvn9-0"})(["height:100%;position:relative;"]),d=o.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-axgvn9-1"})(["overflow:auto;position:fixed;width:","px;z-index:1;"," "," ",""],l,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-u.n5,"px;\n ")}),(function(e){return!e.height&&"\n height: 100%;\n "})),c=o.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-axgvn9-2"})(["padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;width:100%;",""],1*r.iI,r.cd*r.iI,r.cd*r.iI,1*r.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).light,";\n ")})),s=o.default.div.withConfig({displayName:"indexstyle__ButtonsStyle",componentId:"sc-axgvn9-3"})(["margin-top:","px;width:100%;",""],r.cd*r.iI,(function(e){return"\n border-top: 1px solid ".concat((e.theme.borders||i.Z.borders).light,";\n ")})),p=o.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-axgvn9-4"})(["margin-left:","px;"],l)},5755:function(e,n,t){t.d(n,{Z:function(){return z}});var o=t(82394),i=t(75582),r=t(56085),u=t(82684),l=t(65701),a=t(1254),d=t(21764),c=t(69864),s=t(34376),p=t(40761),f=t(71180),m=t(90299),h=t(18746),v=t(44898),g=t(97618),b=t(55485),x=t(38276),y=t(44085),_=t(30160),k=t(35576),j=t(17488),Z=t(35686),C=t(94777),w=t(98464),I=t(44425),O=t(11302),S=t(48339),D=t(39643),P={uuid:"Define"},U={uuid:"Document"},M=[P,U],N=t(11498),T=t(70515),R=t(57653),E=t(4383),q=t(72619),A=t(42041),L=t(23780),B=t(44688),F=t(19183),W=t(28598);function Y(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 H(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Y(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var z=function(e){var n=e.contained,t=e.defaultTab,Y=e.heightOffset,z=e.onCancel,K=e.onCreateCustomTemplate,V=e.onMutateSuccess,G=e.template,X=e.templateAttributes,J=e.templateUUID,Q=(0,F.i)().height,$=(0,s.useRouter)(),ee=(0,L.VI)(null,{},[],{uuid:"CustomTemplates/TemplateDetail"}),ne=(0,i.Z)(ee,1)[0],te=(0,u.useState)(Number(new Date)),oe=te[0],ie=te[1],re=(0,u.useState)(!1),ue=re[0],le=re[1],ae=(0,u.useState)(!1),de=ae[0],ce=ae[1],se=(0,u.useState)(t?M.find((function(e){return e.uuid===(null===t||void 0===t?void 0:t.uuid)})):M[0]),pe=se[0],fe=se[1],me=(0,u.useState)(!1),he=me[0],ve=me[1],ge=(0,u.useState)(X),be=ge[0],xe=ge[1],ye=(0,u.useCallback)((function(e){ve(!0),xe(e)}),[]),_e=Z.ZP.custom_templates.detail(!G&&J&&encodeURIComponent(J),{object_type:v.Z}).data,ke=(0,u.useMemo)((function(){return G||(null===_e||void 0===_e?void 0:_e.custom_template)}),[_e,G]),je=(0,w.Z)(ke);(0,u.useEffect)((function(){(null===je||void 0===je?void 0:je.template_uuid)!==(null===ke||void 0===ke?void 0:ke.template_uuid)&&(ie(Number(new Date)),xe(ke),ce(!0))}),[ke,je]);var Ze=(0,c.Db)(Z.ZP.custom_templates.useCreate(),{onSuccess:function(e){return(0,q.wD)(e,{callback:function(e){var n=e.custom_template;V&&(null===V||void 0===V||V()),K?null===K||void 0===K||K(n):(le(!0),setTimeout((function(){$.push("/templates/[...slug]","/templates/".concat(encodeURIComponent(null===n||void 0===n?void 0:n.template_uuid)))}),1))},onErrorCallback:function(e,n){return ne({errors:n,response:e})}})}}),Ce=(0,i.Z)(Ze,2),we=Ce[0],Ie=Ce[1].isLoading,Oe=(0,c.Db)(Z.ZP.custom_templates.useUpdate(G?encodeURIComponent(null===G||void 0===G?void 0:G.template_uuid):J&&encodeURIComponent(J),{object_type:v.Z}),{onSuccess:function(e){return(0,q.wD)(e,{callback:function(e){var n=e.custom_template;V&&(null===V||void 0===V||V()),xe(n),ve(!1),d.Am.success("Template successfully saved.",{position:d.Am.POSITION.BOTTOM_RIGHT,toastId:"custom_block_template"})},onErrorCallback:function(e,n){return ne({errors:n,response:e})}})}}),Se=(0,i.Z)(Oe,2),De=Se[0],Pe=Se[1].isLoading,Ue=(0,u.useMemo)((function(){return I.tf.MARKDOWN===(null===be||void 0===be?void 0:be.block_type)}),[null===be||void 0===be?void 0:be.block_type]),Me=!G&&!J,Ne=(0,u.useMemo)((function(){return!!Me&&(!(null!==be&&void 0!==be&&be.template_uuid)||!(null!==be&&void 0!==be&&be.block_type)||!Ue&&!(null!==be&&void 0!==be&&be.language))}),[Ue,Me,be]),Te=Z.ZP.kernels.list({},{refreshInterval:5e3,revalidateOnFocus:!0}),Re=Te.data,Ee=Te.mutate,qe=null===Re||void 0===Re?void 0:Re.kernels,Ae=(null===qe||void 0===qe?void 0:qe.find((function(e){return e.name===R.a_[R.qL.PYTHON]})))||(null===qe||void 0===qe?void 0:qe[0]),Le=(0,c.Db)(Z.ZP.kernels.useUpdate(null===Ae||void 0===Ae?void 0:Ae.id),{onSuccess:function(e){return(0,q.wD)(e,{callback:function(){return Ee()},onErrorCallback:function(e,n){return ne({errors:n,response:e})}})}}),Be=(0,i.Z)(Le,1)[0],Fe=(0,u.useCallback)((function(){Be({kernel:{action_type:"interrupt"}}),Ve([])}),[Be]),We=(0,u.useState)({}),Ye=We[0],He=We[1],ze=(0,u.useState)([]),Ke=ze[0],Ve=ze[1],Ge=(0,u.useMemo)((function(){return{language:null===be||void 0===be?void 0:be.language,name:null===be||void 0===be?void 0:be.name,type:null===be||void 0===be?void 0:be.block_type,uuid:null===be||void 0===be?void 0:be.template_uuid}}),[be]),Xe=(0,u.useMemo)((function(){return new p.Z}),[]),Je=(0,u.useMemo)((function(){return{api_key:N.lG,token:Xe.decodedToken.token}}),[Xe]),Qe=(0,r.ZP)((0,E.Ib)(),{onClose:function(){return console.log("socketUrlPublish closed")},onMessage:function(e){if(e){var n=JSON.parse(e.data),t=n.execution_state,i=n.uuid;if(!i)return;He((function(e){var t=e[i]||[];return H(H({},e),{},(0,o.Z)({},i,t.concat(n)))})),S.uF.BUSY===t?Ve((function(e){return e.find((function(e){var n=e.uuid;return i===n}))||!Ge?e:e.concat(Ge)})):S.uF.IDLE===t&&Ve((function(e){return e.filter((function(e){var n=e.uuid;return i!==n}))}))}},onOpen:function(){return console.log("socketUrlPublish opened")},reconnectAttempts:10,reconnectInterval:3e3,shouldReconnect:function(){return console.log("Attempting to reconnect..."),!0}}).sendMessage,$e=(0,u.useCallback)((function(e){var n=e.block,t=e.code,o=e.ignoreAlreadyRunning,i=e.runDownstream,r=void 0!==i&&i,u=e.runIncompleteUpstream,l=void 0!==u&&u,a=e.runSettings,d=void 0===a?{}:a,c=e.runTests,s=void 0!==c&&c,p=e.runUpstream,f=n.extension_uuid,m=n.upstream_blocks,h=n.uuid;Ke.find((function(e){var n=e.uuid;return h===n}))&&!o||(Qe(JSON.stringify(H(H({},Je),{},{code:t,extension_uuid:f,run_downstream:r,run_incomplete_upstream:l,run_settings:d,run_tests:s,run_upstream:p,type:n.type,upstream_blocks:m,uuid:h}))),He((function(e){return delete e[h],e})),Ve((function(e){return e.find((function(e){var n=e.uuid;return h===n}))?e:e.concat(n)})))}),[Ke,Qe,He,Ve,Je]),en=(0,u.useMemo)((function(){return Ke.reduce((function(e,n,t){return H(H({},e),{},(0,o.Z)({},n.uuid,H(H({},n),{},{priority:t})))}),{})}),[Ke]),nn=(0,u.useMemo)((function(){if(!de)return(0,W.jsx)("div",{});var e=en[null===Ge||void 0===Ge?void 0:Ge.uuid],n=e?0===e.priority?S.uF.BUSY:S.uF.QUEUED:S.uF.IDLE;return(0,W.jsx)(h.Z,{block:Ge,defaultValue:null===be||void 0===be?void 0:be.content,disableDrag:!0,executionState:n,hideExtraCommandButtons:!0,hideExtraConfiguration:!0,hideHeaderInteractiveInformation:!0,interruptKernel:Fe,messages:null===Ye||void 0===Ye?void 0:Ye[null===Ge||void 0===Ge?void 0:Ge.uuid],noDivider:!0,onChange:function(e){return ye((function(n){return H(H({},n),{},{content:e})}))},runBlock:$e,runningBlocks:Ke,selected:!0,setErrors:ne,textareaFocused:!0},String(oe))}),[Ge,oe,Fe,Ye,de,$e,Ke,en,ye,ne,be]),tn=(0,u.useCallback)((function(){var e={custom_template:H(H({},be),{},{language:Ue?I.t6.MARKDOWN:null===be||void 0===be?void 0:be.language,object_type:v.Z})};Me?we(e):De(e)}),[we,Ue,Me,be,De]),on="CustomTemplates/TemplateDetail",rn=(0,B.y)(),un=rn.registerOnKeyDown,ln=rn.unregisterOnKeyDown;(0,u.useEffect)((function(){return function(){ln(on)}}),[ln,on]),un(on,(function(e,n){if(he&&(0,A.y)([D.zX,D.hS],n)){e.preventDefault();"undefined"!==typeof location&&window.confirm("You have changes that are unsaved. Click cancel and save your changes before reloading page.")&&location.reload()}else((0,A.y)([D.zX,D.Um],n)||(0,A.y)([D.PQ,D.Um],n))&&(e.preventDefault(),tn())}),[tn,he]);var an=(0,u.useMemo)((function(){return Q-Y}),[Q,Y]),dn=(0,C.Z)({shouldWarn:!ue&&he,warningMessage:"You have unsaved changes. Are you sure you want to leave?"}).ConfirmLeaveModal;return(0,W.jsxs)(O.Nk,{children:[(0,W.jsx)(dn,{}),(0,W.jsx)(O.bC,{height:n?an:null,children:(0,W.jsxs)(b.ZP,{flexDirection:"column",fullHeight:!0,children:[(0,W.jsx)(O.Yf,{children:(0,W.jsx)(m.Z,{noPadding:!0,onClickTab:function(e){fe(e)},selectedTabUUID:null===pe||void 0===pe?void 0:pe.uuid,tabs:Me?M.slice(0,1):M})}),(0,W.jsxs)(g.Z,{flexDirection:"column",children:[P.uuid===(null===pe||void 0===pe?void 0:pe.uuid)&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(x.Z,{mt:T.cd,px:T.cd,children:[(0,W.jsxs)(x.Z,{mb:1,children:[(0,W.jsx)(_.ZP,{bold:!0,children:"Template UUID"}),(0,W.jsx)(_.ZP,{muted:!0,small:!0,children:"Unique identifier for custom template. The UUID will also determine where the custom template file is stored in the project. You can use nested folder names in the template\u2019s UUID."})]}),(0,W.jsx)(j.Z,{monospace:!0,onChange:function(e){return ye((function(n){return H(H({},n),{},{template_uuid:e.target.value})}))},placeholder:"e.g. some_template_name",primary:!0,setContentOnMount:!0,value:(null===be||void 0===be?void 0:be.template_uuid)||""})]}),(0,W.jsx)(x.Z,{mt:T.cd,px:T.cd,children:(0,W.jsx)(y.Z,{label:"Block type",onChange:function(e){return ye((function(n){return H(H({},n),{},{block_type:e.target.value,language:I.tf.MARKDOWN===e.target.value?I.t6.MARKDOWN:null===n||void 0===n?void 0:n.language})}))},primary:!0,value:(null===be||void 0===be?void 0:be.block_type)||"",children:Object.values(I.tf).map((function(e){return(0,W.jsx)("option",{value:e,children:I.V4[e]},e)}))})}),!Ue&&(0,W.jsx)(x.Z,{mt:T.cd,px:T.cd,children:(0,W.jsx)(y.Z,{label:"Language",onChange:function(e){return ye((function(n){return H(H({},n),{},{language:e.target.value})}))},primary:!0,value:(null===be||void 0===be?void 0:be.language)||"",children:Object.values(I.t6).map((function(e){return(0,W.jsx)("option",{value:e,children:I.LE[e]},e)}))})})]}),U.uuid===(null===pe||void 0===pe?void 0:pe.uuid)&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(x.Z,{mt:T.cd,px:T.cd,children:[(0,W.jsxs)(x.Z,{mb:1,children:[(0,W.jsx)(_.ZP,{bold:!0,children:"Name"}),(0,W.jsx)(_.ZP,{muted:!0,small:!0,children:"A human readable name for your template."})]}),(0,W.jsx)(j.Z,{onChange:function(e){return ye((function(n){return H(H({},n),{},{name:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===be||void 0===be?void 0:be.name)||""})]}),(0,W.jsx)(x.Z,{mt:T.cd,px:T.cd,children:(0,W.jsx)(k.Z,{label:"Description",onChange:function(e){return ye((function(n){return H(H({},n),{},{description:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===be||void 0===be?void 0:be.description)||""})})]})]}),(0,W.jsx)(O.ig,{children:(0,W.jsx)(x.Z,{p:T.cd,children:(0,W.jsxs)(b.ZP,{children:[(0,W.jsxs)(f.ZP,{disabled:Ne,fullWidth:!0,loading:Ie||Pe,onClick:function(){return tn()},primary:!0,children:[!Me&&"Save template",Me&&"Create new template"]}),z&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(x.Z,{mr:1}),(0,W.jsx)(f.ZP,{onClick:z,secondary:!0,children:"Cancel"})]})]})})})]})}),(0,W.jsx)(O.w5,{children:(0,W.jsx)(x.Z,{p:T.cd,children:(0,W.jsx)(l.W,{backend:a.PD,children:nn})})})]})}},44898:function(e,n,t){t.d(n,{R:function(){return i},Z:function(){return o}});var o="blocks",i="pipelines"},94777:function(e,n,t){var o=t(75582),i=t(82684),r=t(34376),u=t(71180),l=t(55485),a=t(65956),d=t(38276),c=t(30160),s=t(89538),p=t(28598);n.Z=function(e){var n=e.shouldWarn,t=e.warningMessage,f=(0,r.useRouter)(),m=(0,i.useState)(!1),h=m[0],v=m[1],g=(0,i.useState)({isModalOpen:!1,nextRoute:null}),b=g[0],x=g[1];(0,i.useEffect)((function(){var e=function(e){if(n)return e.preventDefault(),(e||window.event).returnValue="Are you sure you want to leave?"};return window.addEventListener("beforeunload",e),function(){window.removeEventListener("beforeunload",e)}}),[n]),(0,i.useEffect)((function(){var e=function(e){if(n&&!h)throw x({isModalOpen:!0,nextRoute:e}),f.events.emit("routeChangeError"),"navigation aborted"};f.events.on("routeChangeStart",e);var t=function(){return f.events.off("routeChangeStart",e)};if(h){if(!b.nextRoute)return;return f.push(b.nextRoute),t}return t}),[b,h,f,n]);var y=(0,s.dd)((function(){return(0,p.jsxs)(a.Z,{children:[(0,p.jsx)(c.ZP,{children:t}),(0,p.jsx)(d.Z,{mt:2,children:(0,p.jsxs)(l.ZP,{alignItems:"center",children:[(0,p.jsx)(u.ZP,{onClick:function(){return v(!0)},primary:!0,children:"Leave"}),(0,p.jsx)(d.Z,{mr:1}),(0,p.jsx)(u.ZP,{onClick:function(){x({isModalOpen:!1,nextRoute:null})},secondary:!0,children:"Cancel"})]})})]})}),{},[t],{background:!0,hideCallback:function(){x({isModalOpen:!1,nextRoute:null})},uuid:"stale_pipeline_message"}),_=(0,o.Z)(y,2),k=_[0],j=_[1];(0,i.useEffect)((function(){b.isModalOpen?k():j()}),[j,b.isModalOpen,k]);return{ConfirmLeaveModal:function(){return(0,p.jsx)("div",{})}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9265],{62072:function(t,n,e){function i(t){return null==t?void 0:t[0]}function r(t){return null==t?void 0:t[1]}e.d(n,{l8:function(){return i},xf:function(){return r}})},59309:function(t,n,e){e.d(n,{ZP:function(){return c}});var i=e(12759),r=e(27500),o=e(82610),a=e(34812),u=e(77944),l={expand:i.Z,diverging:r.Z,none:o.Z,silhouette:a.Z,wiggle:u.Z};Object.keys(l);function c(t){return t&&l[t]||l.none}},18246:function(t,n,e){e.d(n,{ZP:function(){return c}});var i=e(39586),r=e(25516),o=e(54164),a=e(8512),u=e(2010),l={ascending:i.Z,descending:r.Z,insideout:o.Z,none:a.Z,reverse:u.Z};Object.keys(l);function c(t){return t&&l[t]||l.none}},66909:function(t,n,e){e.d(n,{Eh:function(){return c},t0:function(){return d}});var i=e(25976),r=e(2842),o=e(4982),a=e(61896),u=e(47041),l=e(70515),c=(l.iI,o.O$+3*l.iI+a.dN),d=i.default.div.withConfig({displayName:"indexstyle__SidekickContainerStyle",componentId:"sc-15ofupc-0"})([""," overflow:auto;position:absolute;width:100%;"," ",""],u.w5,(function(t){return"\n height: calc(100vh - ".concat(r.uX,"px - ").concat(t.heightOffset,"px);\n ")}),(function(t){return t.overflowHidden&&"\n overflow: hidden;\n "}));i.default.div.withConfig({displayName:"indexstyle__PaddingContainerStyle",componentId:"sc-15ofupc-1"})(["padding:","px;",""],2*l.iI,(function(t){return t.noPadding&&"\n padding: 0;\n "}))},4982:function(t,n,e){e.d(n,{O$:function(){return pt},Fk:function(){return vt}});var i=e(75582),r=e(12691),o=e.n(r),a=e(26304),u=e(21831),l=e(82394),c=e(82684),d=e(26226),s=e(84969),f=e(90948),h=e(65743),m=e(63588),p=e.n(m),v=e(75823),x=e(29989),g=e(62072),y=e(53989),b=e(49894),Z=e(18246),j=e(59309),k=["data","className","top","left","y","x0","x1","xScale","yScale","color","keys","value","order","offset","children"];function S(){return S=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},S.apply(this,arguments)}function w(t){var n=t.data,e=t.className,i=t.top,r=t.left,o=t.y,a=t.x0,u=void 0===a?g.l8:a,l=t.x1,d=void 0===l?g.xf:l,s=t.xScale,f=t.yScale,m=t.color,w=t.keys,L=t.value,T=t.order,M=t.offset,O=t.children,I=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,k),E=(0,v.Z)();w&&E.keys(w),L&&(0,b.Z)(E.value,L),T&&E.order((0,Z.ZP)(T)),M&&E.offset((0,j.ZP)(M));var R=E(n),Y=(0,y.Z)(f),D=R.map((function(t,n){var e=t.key;return{index:n,key:e,bars:t.map((function(n,i){var r=(s(d(n))||0)-(s(u(n))||0),a=s(u(n)),l="bandwidth"in f?f(o(n.data)):Math.max((f(o(n.data))||0)-r/2);return{bar:n,key:e,index:i,height:Y,width:r,x:a||0,y:l||0,color:m(t.key,i)}}))}}));return O?c.createElement(c.Fragment,null,O(D)):c.createElement(x.Z,{className:p()("visx-bar-stack-horizontal",e),top:i,left:r},D.map((function(t){return t.bars.map((function(n){return c.createElement(h.Z,S({key:"bar-stack-"+t.index+"-"+n.index,x:n.x,y:n.y,height:n.height,width:n.width,fill:n.color},I))}))})))}var L=e(79487),T=e(25976),M=e(61655),O=e(16853),I=e(65376),E=e(48072),R=e(24903),Y=e(84181),D=e(98677),P=e(30160),C=e(70987),_=e(79633),A=e(61896),N=e(70515),H=e(95363),F=e(28598),V=["height","width"];function z(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,i)}return e}function U(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?z(Object(e),!0).forEach((function(n){(0,l.Z)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):z(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var B={bottom:5*N.iI,left:3*N.iI,right:20*N.iI,top:0},Q=function(t){return t.x},W=function(t){return t.y},X=(0,M.Z)((function(t){var n=t.data,e=t.height,i=t.hideTooltip,r=t.large,o=t.margin,a=void 0===o?{}:o,l=t.renderTooltipContent,d=t.showTooltip,m=t.tooltipData,p=t.tooltipLeft,v=t.tooltipOpen,g=t.tooltipTop,y=t.width,b=t.xAxisLabel,Z=t.xNumTicks,j=t.yLabelFormat,k=t.ySerialize,S=j;S||(S=function(t){return t.length>20?"".concat(t.substring(0,20),"..."):t});var M=r?A.iD:A.J5,N=(0,c.useContext)(T.ThemeContext),V=U(U({},B),a),z=n.slice(Math.max(0,n.length-50)),X=Object.keys(z[0]||[]).filter((function(t){return"x"===t})),G=(0,R.Z)({domain:X,range:[_.hM]}),$=(0,Y.Z)({domain:[0,Math.max.apply(Math,(0,u.Z)(z.map(Q)))],nice:!0}),J=(0,D.Z)({domain:z.map(W),padding:.35}),q={active:(null===N||void 0===N?void 0:N.content.default)||C.Z.content.default,backgroundPrimary:(null===N||void 0===N?void 0:N.chart.backgroundPrimary)||C.Z.chart.backgroundPrimary,backgroundSecondary:(null===N||void 0===N?void 0:N.chart.backgroundSecondary)||C.Z.chart.backgroundSecondary,muted:(null===N||void 0===N?void 0:N.content.muted)||C.Z.content.muted,primary:(null===N||void 0===N?void 0:N.chart.primary)||C.Z.chart.primary,tooltipBackground:(null===N||void 0===N?void 0:N.background.navigation)||C.Z.background.navigation},K=z.map(k),tt=Math.min(Math.max.apply(Math,(0,u.Z)(K.map((function(t){return String(t).length})))),20);6*tt>2*V.right?V.right+=5.5*tt:6*tt>=V.right&&(V.right+=3.75*tt);var nt=y-V.left-V.right,et=e-V.top-V.bottom;V.left+=7*tt,$.rangeRound([0,nt]),J.rangeRound([et,0]);var it=z.map(Q).length,rt=J(K[it-1]),ot=(0,c.useCallback)((function(t){var n=(0,E.Z)(t)||{x:0,y:0},e=n.x,i=n.y,r=1-(i-rt/2)/(et-rt),o=Math.floor(r*it),a=z[o];"undefined"===typeof a&&(a=z[o-1]),i>rt&&i<et-rt&&d({tooltipData:a,tooltipLeft:e,tooltipTop:i+V.top})}),[z,it,V.top,d,rt,et]);return y<10?null:(0,F.jsxs)("div",{children:[(0,F.jsxs)("svg",{height:e,width:y,children:[(0,F.jsx)(h.Z,{fill:"transparent",height:e-(V.top+V.bottom),onMouseLeave:function(){return i()},onMouseMove:ot,onTouchMove:ot,onTouchStart:ot,rx:14,width:y-V.left,x:V.left,y:0}),(0,F.jsxs)(x.Z,{left:V.left,top:V.top,children:[(0,F.jsx)(w,{color:G,data:z,height:et,keys:X,pointerEvents:"none",xScale:$,y:k,yScale:J,children:function(t){return t.map((function(t){return t.bars.map((function(n){return(0,F.jsx)("g",{children:(0,F.jsx)(F.Fragment,{children:(0,F.jsx)("rect",{fill:q.backgroundPrimary,height:n.height,pointerEvents:"none",rx:4,width:n.width,x:n.x,y:n.y})})},"barstack-horizontal-".concat(t.index,"-").concat(n.index))}))}))}}),(0,F.jsx)(s.Z,{hideTicks:!0,scale:J,stroke:q.muted,tickFormat:function(t){return S(t)},tickLabelProps:function(){return{fill:q.active,fontFamily:H.ry,fontSize:M,style:{width:"10px"},textAnchor:"end"}},tickStroke:q.muted,tickValues:K,top:2}),(0,F.jsx)(f.Z,{label:b,labelProps:{fill:q.muted,fontFamily:H.ry,fontSize:M,textAnchor:"middle"},numTicks:Z,scale:$,stroke:q.muted,tickLabelProps:function(){return{fill:q.active,fontFamily:H.ry,fontSize:M,textAnchor:"middle"}},tickStroke:q.muted,top:et})]}),m&&(0,F.jsx)("g",{children:(0,F.jsx)(L.Z,{from:{x:V.left,y:g},pointerEvents:"none",stroke:_.Ej,strokeDasharray:"5,2",strokeWidth:1,to:{x:nt+V.left,y:g}})})]}),v&&m&&(0,F.jsx)(O.Z,{left:p,style:U(U({},I.j),{},{backgroundColor:q.tooltipBackground}),top:g,children:(0,F.jsxs)(P.ZP,{black:!0,small:!0,children:[null===l||void 0===l?void 0:l(m),!l&&Q(m).toFixed(4)]})})]})}));var G,$,J,q,K=function(t){var n=t.height,e=t.width,i=(0,a.Z)(t,V);return(0,F.jsx)("div",{style:{height:n,width:"undefined"===typeof e?"100%":e},children:(0,F.jsx)(d.Z,{children:function(t){var n=t.width,e=t.height;return(0,F.jsx)(X,U(U({},i),{},{height:e,width:n}))}})})},tt=e(97618),nt=e(52729),et=e(48670),it=e(87862),rt=e(89370),ot=e(86735),at=(ot.Qj,ot.tS,ot.tS,ot.tS,ot.tS,ot.Qj,ot.Qj,ot.Qj,ot.tS,ot.tS,G={},(0,l.Z)(G,rt.RL.EMAIL,"domain_distribution"),(0,l.Z)(G,rt.RL.TEXT,"word_distribution"),(0,l.Z)(G,rt.RL.LIST,"element_distribution"),(0,l.Z)(G,"default","value_counts"),G),ut=[].concat((0,u.Z)(rt.P_),[rt.RL.TEXT,rt.RL.EMAIL,rt.RL.LIST]),lt=($={},(0,l.Z)($,rt.RL.EMAIL,"Domain distribution"),(0,l.Z)($,rt.RL.TEXT,"Word distribution"),(0,l.Z)($,rt.RL.LIST,"Element distribution"),(0,l.Z)($,"default","Distribution of values"),e(31353));!function(t){t.RANGE="range"}(J||(J={})),function(t){t.BAR_HORIZONTAL="bar_horizontal",t.LINE_CHART="line_chart",t.HISTOGRAM="histogram"}(q||(q={}));var ct=e(48888),dt=e(92083),st=e.n(dt),ft=e(81728);function ht(t,n){var e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i||{},o=r.calculateAnomaly,a=r.feature,l=r.getYValue,c=t.x,d=t.x_metadata,s=d.label,f=d.label_type,h=t.y,m=(null===h||void 0===h?void 0:h.map((function(t){return null===l||void 0===l?void 0:l(t)})))||[],p=Math.max.apply(Math,(0,u.Z)(m)),v=Math.max.apply(Math,(0,u.Z)(m)),x=(0,ot.Sm)(m),g=(0,ot.IN)(m),y=x/Math.max(1,m.length),b=n[s]||a,Z=null===b||void 0===b?void 0:b.columnType,j=rt.RL.DATETIME===Z,k=[],S=[],w=c.length,L=c.map((function(t,n){var i,r,a,u,l=t.label,c=t.max,d=t.min,s=h[n];if(J.RANGE===f)if(e||(e=c-d),u=rt.RL.NUMBER===Z&&e<=w)i=Number(d);else if(i=e/2+d,j){var b="M/D/YYYY",L="M/D/YYYY",T="M/D/YYYY";e<=1?(b=e<=.1?"H:mm:ss.SSS":"H:mm:ss",L="H:mm:ss.SSS",T="H:mm:ss.SSS"):e<=60?(b="H:mm",L="H:mm:ss",T="H:mm:ss"):e<=3600?(b="H:mm",L="M/D/YYYY H:mm",T="H:mm"):e<=86400&&(L="M/D/YYYY H:mm",T="M/D/YYYY H:mm"),i=st().unix(i).format(b),r=st().unix(d).format(L),a=st().unix(c).format(T)}else i=(0,ft.QV)(i);else i=l;var M=n>=1?h[n-1]:null,O=!1;o&&(O=o({x:t,y:s,yPrevious:M,yValues:m,yValuesAverage:y,yValuesMax:p,yValuesMin:v,yValuesStandardDeviation:g,yValuesSum:x}));var I={hideRange:u,isUnusual:O,x:t,xLabel:i,xLabelMax:a,xLabelMin:r,y:s};return O&&(u?S.push(I):k.push(I)),I}));return{distribution:{data:L,featureUUID:s},rangedWithUnusualDistribution:(0,ot.YC)(k,(function(t){var n=t.y;return l(n)}),{ascending:!1}),unusualDistribution:(0,ot.YC)(S,(function(t){var n=t.y;return l(n)}),{ascending:!1})}}var mt=e(40489);var pt=12*N.iI;function vt(t){var n=t.columnTypes,e=t.columns,r=t.insightsByFeatureUUID,a=t.insightsOverview,u=t.noColumnLinks,l=void 0!==u&&u,c=t.statistics;return function(t,u,d){var s=d.width,f=e[u],h=n[f],m=lt.T5[h],p=(r[f]||{}).charts,v=a.time_series,x=e.filter((function(t){return n[t]===rt.RL.DATETIME})),g=null===v||void 0===v?void 0:v.map((function(t){return ht(t,{},{feature:{columnType:h,uuid:f}}).distribution})),y={};null===g||void 0===g||g.forEach((function(t,n){var e=t.data;y[x[n]]=(0,F.jsx)(nt.Z,{data:e.map((function(t){var n=t.x,e=t.xLabel,i=t.xLabelMax,r=t.xLabelMin;return[e,t.y.count,r,i,n.min,n.max]})),height:pt,large:!0,margin:{bottom:0,left:0,right:0,top:0},renderTooltipContent:function(t){var n=(0,i.Z)(t,4),e=n[1],r=n[2],o=n[3];return(0,F.jsxs)("p",{children:["Rows: ",e,(0,F.jsx)("br",{}),"Start: ",r,(0,F.jsx)("br",{}),"End: ",o]})},sortData:function(t){return(0,ot.YC)(t,"[4]")}},f)}));var b,Z=null===p||void 0===p?void 0:p.find((function(t){var n=t.type;return q.HISTOGRAM===n})),j=(Z?ht(Z,{},{feature:{columnType:h,uuid:f},getYValue:function(t){return t.value}}):{}).distribution,k=void 0===j?null:j,S=at[h]||at.default,w=null===c||void 0===c?void 0:c["".concat(f,"/").concat(S)],L=Object.entries(w||{}).map((function(t){var n=(0,i.Z)(t,2),e=n[0];return{x:n[1],y:e}})),T=rt.RL.TRUE_OR_FALSE===h;if(rt.RL.DATETIME===h)b=y[f];else if(k&&!T)b=(0,F.jsx)(nt.Z,{data:k.data.map((function(t){var n=t.hideRange,e=t.isUnusual,i=t.x;return[t.xLabel,t.y.value,i.min,i.max,e,n]})),height:pt,margin:{bottom:0,left:0,right:0,top:0},renderTooltipContent:function(t){var n=(0,i.Z)(t,6),e=n[1],r=n[2],o=n[3],a=n[5];return(0,F.jsxs)("p",{children:[a&&(0,F.jsxs)(F.Fragment,{children:["Rows: ",e,(0,F.jsx)("br",{}),"Value: ",r]}),!a&&(0,F.jsxs)(F.Fragment,{children:["Rows: ",e,(0,F.jsx)("br",{}),"Range: ",r," - ",o]})]})},sortData:function(t){return(0,ot.YC)(t,"[2]")},width:s-2*N.iI});else if(ut.includes(h)){var M=(0,ot.YC)((0,ot.YC)(L,"x",{ascending:!1}).slice(0,5),"x");b=(0,F.jsx)(K,{data:M,height:pt,margin:{bottom:0,left:0,right:20,top:0},renderTooltipContent:function(t){var n=t.x,e=t.y;return"".concat(e," appears ").concat((0,ft.x6)(n)," times")},xNumTicks:2,ySerialize:function(t){return t.y}})}else T&&w&&(b=(0,F.jsx)(it.Z,{data:Object.entries(w),getX:function(t){var n=(0,i.Z)(t,2),e=n[0],r=n[1];return"".concat(e," (").concat((0,ft.x6)(r),")")},getY:function(t){return(0,i.Z)(t,2)[1]},height:pt}));return(0,F.jsxs)("div",{style:{padding:N.iI},children:[(0,F.jsxs)("div",{style:{alignItems:"center",display:"flex",marginBottom:N.iI},children:[m&&(0,F.jsx)(tt.Z,{title:rt.Rp[h],children:(0,F.jsx)(m,{size:2*N.iI})}),(0,F.jsx)("div",{style:{marginLeft:.5*N.iI,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:s-4.5*N.iI},children:l?(0,F.jsx)(P.ZP,{bold:!0,default:!0,title:e[u],children:e[u]}):(0,F.jsx)(o(),{as:(0,mt.o_)(ct.oE,u),href:"/datasets/[...slug]",passHref:!0,children:(0,F.jsx)(et.Z,{bold:!0,monospace:!0,secondary:!0,small:!0,title:e[u],children:e[u]})})})]}),b,!b&&(0,F.jsx)("div",{style:{height:pt}})]})}}},9134:function(t,n,e){var i=e(82684),r=e(21124),o=e(68432),a=e(25976),u=e(65292),l=e(44897),c=e(95363),d=e(70515),s=e(28598);n.Z=function(t){var n=t.language,e=t.maxWidth,f=t.showLineNumbers,h=t.small,m=t.source,p=t.wrapLines,v=(0,i.useContext)(a.ThemeContext);function x(t){var i=t.value;return(0,s.jsx)(o.Z,{customStyle:{backgroundColor:(v.background||l.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:c.Vp,fontSize:h?12:14,marginBottom:0,marginTop:0,maxWidth:e,paddingBottom:2*d.iI,paddingTop:2*d.iI},language:n,lineNumberStyle:{color:(v.content||l.Z.content).muted},showLineNumbers:f,style:u._4,useInlineStyles:!0,wrapLines:p,children:i})}return(0,s.jsx)(r.D,{components:{code:function(t){var n=t.children;return(0,s.jsx)(x,{value:n})}},children:m})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9440],{39440:function(e,n,t){t.d(n,{Z:function(){return fe}});var o=t(21831),i=t(82394),l=t(75582),r=t(65701),u=t(1254),c=t(82684),a=t(69864),d=t(10975),s=t(14567),h=t(47041),f=t(70515),v=t(28598),m=3*f.iI;var p=function(e){e.blockLayoutItem;var n=e.buildChart,t=e.height,o=e.width,i=(0,c.useMemo)((function(){return t-(h.nn+m)}),[t]),l=(0,c.useMemo)((function(){return null===n||void 0===n?void 0:n({height:i,width:o})}),[n,i,o]);return(0,v.jsx)(v.Fragment,{children:l})},x=t(75399),g=t(71180),b=t(4006),j=t(97618),y=t(55485),Z=t(46732),k=t(72473),_=t(25976),C=t(44897),P=t(42631),I=3*f.iI,w=_.default.div.withConfig({displayName:"indexstyle__DividerStyle",componentId:"sc-17acf36-0"})(["display:flex;position:relative;",";",";"],(function(e){return!e.horizontal&&"\n height: 100%;\n justify-content: center;\n width: ".concat(I,"px;\n ")}),(function(e){return e.horizontal&&"\n align-items: center;\n height: ".concat(I,"px;\n margin-left: ").concat(I,"px;\n margin-right: ").concat(I,"px;\n width: calc(100% - ").concat(2*I,"px);\n ")})),O=_.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-17acf36-1"})(["border-radius:","px;"," ",";",";"],P.Ro,(function(e){return"\n background-color: ".concat((e.theme||C.Z).accent.blueLight,";\n ")}),(function(e){return!e.horizontal&&"\n height: 100%;\n width: ".concat(.5*f.iI,"px;\n ")}),(function(e){return e.horizontal&&"\n height: ".concat(.5*f.iI,"px;\n width: 100%;\n ")})),M=_.default.a.withConfig({displayName:"indexstyle__ButtonStyle",componentId:"sc-17acf36-2"})(["align-items:center;border-radius:50%;display:flex;height:","px;justify-content:center;position:absolute;width:","px;"," ",";",";"],3*f.iI,3*f.iI,(function(e){return"\n background-color: ".concat((e.theme||C.Z).background.page,";\n border: ").concat(P.mP,"px solid ").concat((e.theme||C.Z).accent.blueLight,";\n box-shadow:\n 0 0 0 ").concat(P.mP,"px ").concat((e.theme||C.Z).background.page,";\n\n &:hover {\n background-color: ").concat((e.theme||C.Z).interactive.linkPrimary,";\n border: ").concat(P.mP,"px solid ").concat((e.theme||C.Z).interactive.linkPrimary,";\n cursor: pointer;\n }\n ")}),(function(e){return!e.horizontal&&"\n top: ".concat(3*f.iI,"px;\n ")}),(function(e){return e.horizontal&&"\n left: ".concat(3*f.iI,"px;\n ")}));var S=function(e){var n=e.horizontal,t=e.onClickAdd,o=(0,c.useState)(!1),i=o[0],l=o[1];return(0,v.jsx)(w,{horizontal:n,onMouseEnter:function(){return l(!0)},onMouseLeave:function(){return l(!1)},children:i&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(M,{horizontal:n,href:"#",onClick:function(e){e.preventDefault(),null===t||void 0===t||t()},children:(0,v.jsx)(k.Add,{size:2*f.iI})}),(0,v.jsx)(O,{horizontal:n})]})})},E=t(38276),L=t(4190),N=t(30160),R=t(17488),D=t(35686),U=2*(P.YF+f.cd*f.iI)+I,B=_.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-rcft6g-0"})(["border-radius:","px;padding:","px;",""],P.Ro,f.cd*f.iI,(function(e){return"\n border: ".concat(P.YF,"px ").concat(P.M8," ").concat((e.theme||C.Z).interactive.defaultBorder,";\n background-color: ").concat((e.theme||C.Z).background.chartBlock,";\n ")})),H=t(35058);function A(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 F(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?A(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):A(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var q=function(e){var n,t,o=e.block,r=e.blockLayoutItem,u=void 0===r?null:r,a=e.blockUUID,h=e.columnIndex,m=e.columnLayoutSettings,_=e.columnsInRow,C=e.createNewBlockItem,P=e.detail,w=e.disableDrag,O=e.first,M=e.height,A=e.onDrop,q=e.onSave,W=e.pageBlockLayoutUUID,z=e.removeBlockLayoutItem,T=e.rowIndex,J=e.setSelectedBlockItem,K=e.updateLayout,V=e.width,Y=(0,c.useRef)(null),G=(0,c.useState)(!1),X=G[0],Q=G[1],$=(0,c.useState)(!1),ee=$[0],ne=$[1],te=(0,c.useState)(!1),oe=te[0],ie=te[1],le=(0,c.useState)(m)[0],re=(0,c.useState)(null),ue=re[0],ce=re[1],ae=(0,c.useMemo)((function(){return u||ue}),[u,ue]),de=(0,c.useState)(null),se=de[0],he=de[1],fe=(0,c.useMemo)((function(){return(null===ae||void 0===ae?void 0:ae.data)||se}),[ae,se]),ve=(0,c.useMemo)((function(){var e,n=null===ae||void 0===ae||null===(e=ae.data_source)||void 0===e?void 0:e.refresh_interval;return n?Math.max(n,1e3):n}),[ae]),me=D.ZP.block_layout_items.page_block_layouts.detail(!u&&encodeURIComponent(W),!u&&encodeURIComponent(a),{},{refreshInterval:ve,revalidateOnFocus:!ve}).data;(0,c.useEffect)((function(){ae||(o?ce(o):null!==me&&void 0!==me&&me.block_layout_item&&ce(null===me||void 0===me?void 0:me.block_layout_item))}),[o,ae,me]),(0,c.useEffect)((function(){var e,n;null!==me&&void 0!==me&&null!==(e=me.block_layout_item)&&void 0!==e&&e.data&&he(null===me||void 0===me||null===(n=me.block_layout_item)||void 0===n?void 0:n.data)}),[null===me||void 0===me||null===(n=me.block_layout_item)||void 0===n?void 0:n.data]);var pe=(0,c.useCallback)((function(e){var n,t=e.height,o=e.width;if(!fe)return null;var l=null===fe||void 0===fe?void 0:fe.render;if(l){var r=null===fe||void 0===fe?void 0:fe.render_type;if(x.hN.JPEG===r||x.hN.JPG===r)return(0,v.jsx)("img",{height:t,src:"data:image/jpeg;base64,".concat(l),width:o});if(x.hN.PNG===r)return(0,v.jsx)("img",{height:t,src:"data:image/png;base64,".concat(l),width:o});if(x.hN.HTML===r)return(0,v.jsx)("iframe",{srcdoc:l,style:{height:t,width:o}})}return(0,v.jsx)(b.Z,{block:F(F({},ae),{},{configuration:F(F({},null===ae||void 0===ae?void 0:ae.configuration),{},(0,i.Z)({},H.JJ,t))}),data:fe,width:o,xAxisLabel:null===ae||void 0===ae||null===(n=ae.configuration)||void 0===n?void 0:n.x_axis_label})}),[ae,fe]),xe=(0,d.c)((function(){return{collect:function(e){return{isDragging:!!e.isDragging()}},item:{blockLayoutItem:ae,columnIndex:h,rowIndex:T},type:"BlockLayoutItem"}}),[ae,h,T]),ge=(0,l.Z)(xe,2),be=ge[0],je=ge[1],ye=(0,s.L)((function(){return{accept:"BlockLayoutItem",drop:function(e){return null===A||void 0===A?void 0:A(e)}}}),[A]),Ze=(0,l.Z)(ye,2)[1];return P?(0,v.jsx)(p,{blockLayoutItem:ae,buildChart:pe,height:M,width:V}):(0,v.jsxs)(v.Fragment,{children:[O&&(0,v.jsx)(S,{onClickAdd:function(){return C({columnIndex:h,rowIndex:T})}}),(0,v.jsx)(j.Z,{flex:1,flexDirection:"column",children:(0,v.jsx)("div",{onMouseEnter:function(){return ie(!0)},onMouseLeave:function(){return ie(!1)},ref:Ze,children:(0,v.jsxs)(B,F(F({},be),{},{ref:w?null:je,children:[(0,v.jsx)(E.Z,{mb:1,children:(0,v.jsxs)(y.ZP,{alignContent:"center",justifyContent:"space-between",children:[(0,v.jsx)(E.Z,{py:1,children:(0,v.jsx)(N.ZP,{bold:!0,default:!0,children:(null===ae||void 0===ae?void 0:ae.name)||a})}),(0,v.jsx)("div",{children:(0,v.jsx)(Z.Z,{items:[{label:function(){return"Edit content"},onClick:function(){return null===J||void 0===J?void 0:J(ae)},uuid:"Edit content"},{label:function(){return"Change height and/or width"},onClick:function(){return ne(!0)},uuid:"Change"},{label:function(){return"Remove chart"},onClick:function(){return null===z||void 0===z?void 0:z()},uuid:"Remove chart"}],onClickCallback:function(){return Q(!1)},onClickOutside:function(){return Q(!1)},open:X,parentRef:Y,rightOffset:0,uuid:"BlockLayoutItem/".concat(a),children:(oe||X)&&(0,v.jsx)(g.ZP,{iconOnly:!0,noBackground:!0,onClick:function(){Q(!0)},children:(0,v.jsx)(k.Ellipsis,{default:!0,size:2*f.iI})})})})]})}),ee&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(y.ZP,{alignItems:"center",fullWidth:!0,children:[(0,v.jsxs)(j.Z,{flex:1,flexDirection:"column",children:[(0,v.jsx)(N.ZP,{bold:!0,muted:!0,small:!0,children:"Width (flex box)"}),(0,v.jsx)(R.Z,{compact:!0,fullWidth:!0,onChange:function(e){return null===K||void 0===K?void 0:K(F(F({},m),{},{width:"undefined"!==typeof e.target.value?Number(e.target.value):e.target.value}))},primary:!0,setContentOnMount:!0,small:!0,type:"number",value:(null===m||void 0===m?void 0:m.width)||""})]}),(0,v.jsx)(E.Z,{mr:1}),(0,v.jsxs)(j.Z,{flex:1,flexDirection:"column",children:[(0,v.jsx)(N.ZP,{bold:!0,muted:!0,small:!0,children:"Max width (%)"}),(0,v.jsx)(R.Z,{compact:!0,fullWidth:!0,label:"Max width percentage",onChange:function(e){return null===K||void 0===K?void 0:K(F(F({},m),{},{max_width_percentage:"undefined"!==typeof e.target.value?Number(e.target.value):e.target.value}))},primary:!0,setContentOnMount:!0,small:!0,type:"number",value:(null===m||void 0===m?void 0:m.max_width_percentage)||""})]}),(0,v.jsx)(E.Z,{mr:1}),(0,v.jsxs)(j.Z,{flex:1,flexDirection:"column",children:[(0,v.jsx)(N.ZP,{bold:!0,muted:!0,small:!0,children:"Height (pixels)"}),(0,v.jsx)(R.Z,{compact:!0,fullWidth:!0,onChange:function(e){return null===K||void 0===K?void 0:K(F(F({},m),{},{height:"undefined"!==typeof e.target.value?Number(e.target.value):e.target.value}))},primary:!0,setContentOnMount:!0,small:!0,type:"number",value:(null===m||void 0===m?void 0:m.height)||""})]})]}),(0,v.jsx)(E.Z,{mt:f.cd,children:(0,v.jsxs)(y.ZP,{alignItems:"center",justifyContent:"flex-end",children:[(0,v.jsx)(g.ZP,{compact:!0,onClick:function(){null===q||void 0===q||q(),ne(!1)},primary:!0,small:!0,children:"Save"}),(0,v.jsx)(E.Z,{mr:1}),(0,v.jsx)(g.ZP,{compact:!0,onClick:function(){ne(!1),null===K||void 0===K||K(le)},small:!0,children:"Cancel"})]})})]}),!me&&!fe&&(0,v.jsx)(L.Z,{inverted:!0}),fe&&pe({height:M||(null===ae||void 0===ae||null===(t=ae.configuration)||void 0===t?void 0:t[H.JJ]),width:V-(U+1)-(_?I/_:0)})]}))})}),(0,v.jsx)(S,{onClickAdd:function(){return C({columnIndex:h+1,rowIndex:T})}})]})},W=t(44425),z=t(54750),T=t(31882),J=t(10305),K=t(44085),V=t(85108),Y=t(81728),G=t(86735);function X(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 Q(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,i.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 $=function(e){var n=e.block,t=e.updateConfiguration,o=n||{},r=o.data,u=o.configuration,a=(u||{}).chart_type,d=(r||{}).columns,s=V.G8[a],h=(0,c.useMemo)((function(){return Object.entries(s||{}).reduce((function(e,n){var o=(0,l.Z)(n,2),r=o[0],c=o[1];return Q(Q({},e),{},(0,i.Z)({},r,c.map((function(e){var n,o=e.autoRun,l=e.label,r=e.monospace,c=e.options,a=e.settings,s=void 0===a?{}:a,h=e.type,f=e.uuid,m={fullWidth:!0,key:f,label:(0,Y.kC)(l()),monospace:r,onChange:function(e){return t((0,i.Z)({},f,e.target.value),{autoRun:o})},value:(null===u||void 0===u?void 0:u[f])||""};if(V.VR.COLUMNS===h){var p=u[f]||[];n=(0,v.jsxs)(v.Fragment,{children:[(!s.maxValues||p.length<s.maxValues)&&(0,v.jsx)(K.Z,Q(Q({},m),{},{onChange:function(e){var n=u[f]||[],l=e.target.value;n.includes(l)?n=(0,G.Od)(n,(function(e){return e===l})):n.push(l),t((0,i.Z)({},f,n),{autoRun:o})},value:null,children:(0,G.YC)((d||[]).filter((function(e){return!p.includes(e)})),(function(e){return e})).map((function(e){return(0,v.jsx)("option",{value:e,children:e},e)}))})),p.map((function(e){return(0,v.jsx)("div",{style:{display:"inline-block",marginRight:2,marginTop:2},children:(0,v.jsx)(T.Z,{label:e,onClick:function(){t((0,i.Z)({},f,(0,G.Od)(p,(function(n){return n===e}))),{autoRun:o})}})},e)}))]})}else if(V.VR.METRICS===h){var x=u[f]||[];n=(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(N.ZP,{bold:!0,children:"Metrics"}),(0,v.jsx)(N.ZP,{muted:!0,small:!0,children:"Select a column and an aggregation function."}),(0,v.jsxs)(J.Z,{onChange:function(e,n){var l=n.resetValues,r=n.setValues;2===e.filter((function(e){return!!e})).length&&(x.find((function(n){var t=n.aggregation;return n.column===e[1]&&t===e[0]}))||(t((0,i.Z)({},f,x.concat({aggregation:e[0],column:e[1]})),{autoRun:o}),r([null,null]),l()))},children:[(0,v.jsx)(K.Z,Q(Q({},m),{},{label:"aggregation",children:(0,G.YC)(H.bn,(function(e){return e})).map((function(e){return(0,v.jsx)("option",{value:e,children:e},e)}))})),(0,v.jsx)(K.Z,Q(Q({},m),{},{label:"column",children:(0,G.YC)(d||[],(function(e){return e})).map((function(e){return(0,v.jsx)("option",{value:e,children:e},e)}))}))]}),x.map((function(e){var n=e.aggregation,l=e.column;return(0,v.jsx)("div",{style:{display:"inline-block",marginRight:2,marginTop:2},children:(0,v.jsx)(T.Z,{label:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(N.ZP,{inline:!0,monospace:!0,children:[n,"("]}),l,(0,v.jsx)(N.ZP,{inline:!0,monospace:!0,children:")"})]}),onClick:function(){t((0,i.Z)({},f,(0,G.Od)(x,(function(e){var t=e.aggregation,o=e.column;return n===t&&l===o}))),{autoRun:o})}})},"".concat(n,"(").concat(l,")"))}))]})}else n=c?(0,v.jsx)(K.Z,Q(Q({},m),{},{children:c.map((function(e){return(0,v.jsx)("option",{value:e,children:e},e)}))})):(0,v.jsx)(R.Z,Q(Q({},m),{},{type:h}));return(0,v.jsx)(E.Z,{mb:1,children:n},f)}))))}),{noCode:[]})}),[d,u,s,t]),f=(h.code,h.noCode);return(0,v.jsx)(v.Fragment,{children:f})},ee=t(89083),ne=t(15338),te=t(85854),oe=t(48670),ie=t(62547),le=t(2842),re=t(53808),ue=t(42122),ce=t(72619),ae=t(23780),de=t(19183);function se(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 he(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?se(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):se(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var fe=function(e){var n,t=e.leftOffset,d=e.pageBlockLayoutTemplate,s=e.topOffset,m=e.uuid,p=(0,ae.VI)(null,{},[],{uuid:"BlockLayout/".concat(m)}),b=(0,l.Z)(p,1)[0],Z=(0,c.useState)({}),_=(Z[0],Z[1],(0,c.useState)(null)),C=_[0],P=_[1],I=(0,c.useState)(!1),w=(I[0],I[1],(0,c.useRef)(null),"block_layout_after_width_".concat(m)),O="block_layout_before_width_".concat(m),M=(0,c.useRef)(null),U=(0,c.useState)((0,re.U2)(w,40*f.iI)),B=U[0],A=U[1],F=(0,c.useState)(!1),T=F[0],J=F[1],V=(0,c.useState)(Math.max((0,re.U2)(O),50*f.iI)),X=V[0],Q=V[1],se=(0,c.useState)(!1),fe=se[0],ve=se[1],me=(0,c.useRef)(null),pe=(0,de.i)(),xe=(0,c.useState)(null),ge=xe[0],be=xe[1],je=(0,c.useMemo)((function(){var e;return null===ge||void 0===ge||null===(e=ge.data_source)||void 0===e?void 0:e.refresh_interval}),[ge]),ye=D.ZP.block_layout_items.page_block_layouts.detail(ge&&encodeURIComponent(m),ge&&encodeURIComponent(null===ge||void 0===ge?void 0:ge.uuid),{configuration_override:encodeURIComponent(JSON.stringify((null===C||void 0===C?void 0:C.configuration)||"")),data_source_override:encodeURIComponent(JSON.stringify((null===C||void 0===C?void 0:C.data_source)||""))},{refreshInterval:je,revalidateOnFocus:!je}),Ze=ye.data,ke=ye.mutate,_e=(0,c.useMemo)((function(){return null===Ze||void 0===Ze?void 0:Ze.block_layout_item}),[Ze]);(0,c.useEffect)((function(){var e;null!==_e&&void 0!==_e&&null!==(e=_e.data)&&void 0!==e&&e.error&&b({response:null===_e||void 0===_e?void 0:_e.data})}),[_e,b]);var Ce=(0,c.useCallback)((function(e){ke(),P(e)}),[ke,P]),Pe=(0,c.useCallback)((function(e){Ce((function(n){var t=he(he({},n),e);return"undefined"===typeof(null===t||void 0===t?void 0:t.name_new)&&(t.name_new=null===t||void 0===t?void 0:t.name),t})),be(e)}),[Ce,be]),Ie=D.ZP.page_block_layouts.detail(encodeURIComponent(m)).data,we=(0,c.useState)(null),Oe=we[0],Me=we[1],Se=(0,c.useMemo)((function(){return null===Oe||void 0===Oe?void 0:Oe.layout}),[Oe]),Ee=(0,c.useCallback)((function(e){Me((function(n){return he(he({},n),{},{layout:e})}))}),[Me]);(0,c.useEffect)((function(){null!==Ie&&void 0!==Ie&&Ie.page_block_layout&&Me(null===Ie||void 0===Ie?void 0:Ie.page_block_layout)}),[Ie]);var Le=(0,a.Db)(D.ZP.page_block_layouts.useUpdate(encodeURIComponent(m)),{onSuccess:function(e){return(0,ce.wD)(e,{callback:function(e){var n=e.page_block_layout,t=n.blocks;Me(n);var o=Object.values(t).find((function(e){return e.name===(null===C||void 0===C?void 0:C.name_new)}));o&&Pe(o),ke()},onErrorCallback:function(e,n){return b({errors:n,response:e})}})}}),Ne=(0,l.Z)(Le,2),Re=Ne[0],De=Ne[1].isLoading,Ue=(0,c.useCallback)((function(e){return Re({page_block_layout:{blocks:he(he({},null===Oe||void 0===Oe?void 0:Oe.blocks),{},(0,i.Z)({},null===e||void 0===e?void 0:e.uuid,(0,ue.gR)(e,["data"]))),layout:null===Oe||void 0===Oe?void 0:Oe.layout}})}),[Oe,Re]),Be=(0,c.useCallback)((function(){return Re({page_block_layout:{blocks:null===Oe||void 0===Oe?void 0:Oe.blocks,layout:null===Oe||void 0===Oe?void 0:Oe.layout}})}),[Oe,Re]),He=(0,c.useMemo)((function(){return null===Oe||void 0===Oe?void 0:Oe.blocks}),[Oe]),Ae=(0,c.useCallback)((function(e,n,t){var i=(0,o.Z)(Se);i[e][n]=t,Ee(i)}),[Se,Ee]),Fe=(0,c.useState)(null),qe=Fe[0],We=Fe[1],ze=(0,c.useState)(null),Te=ze[0],Je=ze[1];(0,c.useEffect)((function(){var e;null===M||void 0===M||!M.current||T||fe||We(null===M||void 0===M||null===(e=M.current)||void 0===e?void 0:e.getBoundingClientRect())}),[T,fe,M,ge,pe]),(0,c.useEffect)((function(){var e;null!==me&&void 0!==me&&me.current&&Je(null===me||void 0===me||null===(e=me.current)||void 0===e?void 0:e.getBoundingClientRect())}),[me,ge,pe]),(0,c.useEffect)((function(){T||(0,re.t8)(w,B)}),[T,B,w]),(0,c.useEffect)((function(){fe||(0,re.t8)(O,X)}),[fe,X,O]);var Ke=(0,c.useCallback)((function(e,n,t){var i=he({},null===Oe||void 0===Oe?void 0:Oe.blocks);null===i||void 0===i||delete i[e];var l=(0,o.Z)(null===Oe||void 0===Oe?void 0:Oe.layout),r=l[n]||[],u=(0,G.oM)(r,t);0===(null===u||void 0===u?void 0:u.length)?l=(0,G.oM)(l,n):l[n]=u,Re({page_block_layout:{blocks:i,layout:l}})}),[Oe,Re]),Ve=(0,c.useCallback)((function(e,n,t,i){var l=(0,o.Z)(Se||[]),r=l[e]||[],u=r[n];if(e===t&&n!==i){var c=(0,G.oM)(r,n);l[e]=(0,G.Hk)(u,i>n?i:i-1,c)}else{var a=(0,G.oM)(r,n);l[e]=a;var d=(0,G.Hk)(u,i,l[t]);l[t]=d,0===(null===a||void 0===a?void 0:a.length)&&(l=(0,G.oM)(l,e))}e===t&&n===i||Re({page_block_layout:{blocks:null===Oe||void 0===Oe?void 0:Oe.blocks,layout:l}})}),[Se,Oe,Re]),Ye=(0,c.useCallback)((function(e){var n=(0,Y.Y6)(),t={name:n,type:W.tf.CHART,uuid:(0,Y.kE)(n)},l=(0,o.Z)(Se||[]),r={block_uuid:t.uuid,width:1};if(e){var u=e||{},c=u.columnIndex,a=void 0===c?0:c,d=u.rowIndex,s=u.rowIndexInsert;"undefined"!==typeof s?l=(0,G.Hk)([r],s,l):l[d]=(0,G.Hk)(r,a,l[d])}else l.push([r]);Re({page_block_layout:{blocks:he(he({},null===Oe||void 0===Oe?void 0:Oe.blocks),{},(0,i.Z)({},t.uuid,t)),layout:l}}),Pe(t)}),[Se,Oe,Pe,Re]),Ge=(0,c.useMemo)((function(){var e=[];return null===Se||void 0===Se||Se.forEach((function(n,t){var o=[],i=(0,G.Sm)(null===n||void 0===n?void 0:n.map((function(e){return e.width||0})));n.forEach((function(e,l){var r=e.block_uuid,u=e.height,c=e.max_width_percentage,a=e.width,d=null===He||void 0===He?void 0:He[r],s="undefined"!==typeof c&&null!==c?c>=0?c/100:c:null,f=a/i,p=s&&f>s?s:f,x=(null===qe||void 0===qe?void 0:qe.width)-h.nn;o.push((0,v.jsx)(j.Z,{flexBasis:"".concat(Math.floor(100*p),"%"),children:(0,v.jsx)(q,{block:d,blockUUID:r,columnIndex:l,columnLayoutSettings:e,columnsInRow:null===n||void 0===n?void 0:n.length,createNewBlockItem:Ye,first:0===l,height:u,onDrop:function(e){var n=e.columnIndex,o=e.rowIndex;Ve(o,n,t,l)},onSave:Be,pageBlockLayoutUUID:m,removeBlockLayoutItem:function(){return Ke(r,t,l)},rowIndex:t,setSelectedBlockItem:Pe,updateLayout:function(e){return Ae(t,l,e)},width:Math.floor(p*x)})},"row-".concat(t,"-column-").concat(l,"-").concat(r)))})),0===t&&e.push((0,v.jsx)(S,{horizontal:!0,onClickAdd:function(){return Ye({rowIndexInsert:t})}},"layout-divider-".concat(t,"-top"))),e.push((0,v.jsx)(y.ZP,{children:o},"row-".concat(t))),e.push((0,v.jsx)(S,{horizontal:!0,onClickAdd:function(){return Ye({rowIndexInsert:t+1})}},"layout-divider-".concat(t,"-bottom")))})),e}),[He,qe,Ye,Se,Ve,Ke,Be,Pe,Ae,m]),Xe=(0,c.useMemo)((function(){return Ie&&0===(null===Se||void 0===Se?void 0:Se.length)}),[Ie,Se]),Qe=(0,c.useMemo)((function(){return(0,v.jsx)(y.ZP,{justifyContent:"center",children:(0,v.jsxs)(E.Z,{my:3*f.HN,px:f.cd,children:[(0,v.jsxs)(E.Z,{mb:f.Mq,children:[(0,v.jsx)(E.Z,{mb:1,children:(0,v.jsx)(te.Z,{center:!0,children:"Create a custom dashboard"})}),(0,v.jsx)(N.ZP,{center:!0,default:!0,children:"Add customizable charts with the exact insights you need."}),d&&(0,v.jsx)(N.ZP,{center:!0,default:!0,children:"Start with a recommended set or freely define your own."})]}),(0,v.jsxs)(y.ZP,{alignContent:"center",justifyContent:"center",children:[d&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(g.ZP,{onClick:function(){return Re({page_block_layout:d})},primary:!0,children:"Add recommended charts"}),(0,v.jsx)(E.Z,{mr:1})]}),(0,v.jsx)(g.ZP,{onClick:function(){return Ye()},primary:!d,secondary:!!d,children:"Create new chart"})]})]})})}),[Ye,d,Re]),$e=(0,c.useMemo)((function(){return(null===qe||void 0===qe?void 0:qe.height)-(null===Te||void 0===Te?void 0:Te.height)}),[qe,Te]),en=(0,c.useMemo)((function(){return!ge}),[ge]),nn=D.ZP.pipelines.detail(null===C||void 0===C||null===(n=C.data_source)||void 0===n?void 0:n.pipeline_uuid).data,tn=(0,c.useMemo)((function(){return null===nn||void 0===nn?void 0:nn.pipeline}),[nn]),on=(0,c.useMemo)((function(){return(0,G.YC)((null===tn||void 0===tn?void 0:tn.blocks)||[],"uuid")}),[tn]),ln=D.ZP.pipelines.list().data,rn=(0,c.useMemo)((function(){return(0,G.YC)((null===ln||void 0===ln?void 0:ln.pipelines)||[],"uuid")}),[ln]),un=D.ZP.pipeline_schedules.pipelines.list(null===tn||void 0===tn?void 0:tn.uuid).data,cn=(0,c.useMemo)((function(){return null===un||void 0===un?void 0:un.pipeline_schedules}),[un]),an=(0,c.useMemo)((function(){return he(he(he({},ge),C),{},{data:he(he(he({},null===ge||void 0===ge?void 0:ge.data),null===C||void 0===C?void 0:C.data),null===_e||void 0===_e?void 0:_e.data)})}),[_e,C,ge]),dn=(0,c.useMemo)((function(){var e,n,t,o,i,l,r,u,c,a,d,h,m;return(0,v.jsxs)("div",{style:{paddingBottom:f.Mq*f.iI,paddingTop:"undefined"===typeof s?le.Wi:0},children:[(0,v.jsxs)(E.Z,{mt:f.Mq,px:f.cd,children:[(0,v.jsxs)(E.Z,{mb:1,children:[(0,v.jsx)(N.ZP,{bold:!0,children:"Chart name"}),(0,v.jsx)(N.ZP,{muted:!0,small:!0,children:"Human readable name for your chart."})]}),(0,v.jsx)(R.Z,{onChange:function(e){return Ce((function(n){return he(he({},n),{},{name_new:e.target.value})}))},placeholder:"Type name for chart...",primary:!0,setContentOnMount:!0,value:(null===C||void 0===C?void 0:C.name_new)||""})]}),(0,v.jsxs)(E.Z,{mt:f.Mq,px:f.cd,children:[(0,v.jsxs)(E.Z,{mb:1,children:[(0,v.jsx)(N.ZP,{bold:!0,children:"Chart type"}),(0,v.jsx)(N.ZP,{muted:!0,small:!0,children:"Choose how you want to display your data."})]}),(0,v.jsx)(K.Z,{onChange:function(e){return Ce((function(n){return he(he({},n),{},{configuration:{chart_type:e.target.value}})}))},placeholder:"Select chart type",primary:!0,value:(null===C||void 0===C||null===(e=C.configuration)||void 0===e?void 0:e.chart_type)||"",children:H.CK.concat(H.oV.CUSTOM).map((function(e){return(0,v.jsx)("option",{value:e,children:(0,Y.kC)(e)},e)}))})]}),(0,v.jsx)(E.Z,{mt:f.Mq,children:(0,v.jsx)(ne.Z,{light:!0})}),(0,v.jsx)(E.Z,{mt:f.Mq,px:f.cd,children:(0,v.jsx)(te.Z,{children:"Data source"})}),(0,v.jsxs)(E.Z,{mt:f.Mq,px:f.cd,children:[(0,v.jsxs)(E.Z,{mb:1,children:[(0,v.jsx)(N.ZP,{bold:!0,children:"Data source type"}),(0,v.jsx)(N.ZP,{muted:!0,small:!0,children:"Configure where the data for this chart comes from."})]}),(0,v.jsx)(K.Z,{onChange:function(e){return Ce((function(n){return he(he({},n),{},{data_source:he(he({},null===n||void 0===n?void 0:n.data_source),{},{type:e.target.value})})}))},placeholder:"Select data source type",primary:!0,value:(null===C||void 0===C||null===(n=C.data_source)||void 0===n?void 0:n.type)||"",children:x.tW.map((function(e){return(0,v.jsx)("option",{value:e,children:(0,Y.kC)(x.Qj[e])},e)}))})]}),[x.XO.BLOCK,x.XO.BLOCK_RUNS,x.XO.PIPELINE_RUNS,x.XO.PIPELINE_SCHEDULES].includes(null===C||void 0===C||null===(t=C.data_source)||void 0===t?void 0:t.type)&&(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)(E.Z,{mt:f.Mq,px:f.cd,children:[(0,v.jsxs)(E.Z,{mb:1,children:[(0,v.jsx)(N.ZP,{bold:!0,children:"Pipeline UUID"}),(0,v.jsx)(N.ZP,{muted:!0,small:!0,children:"Select the pipeline the data source comes from."})]}),(0,v.jsxs)(K.Z,{monospace:!0,onChange:function(e){return Ce((function(n){return he(he({},n),{},{data_source:he(he({},null===n||void 0===n?void 0:n.data_source),{},{block_uuid:null,pipeline_schedule_id:null,pipeline_uuid:e.target.value})})}))},primary:!0,value:(null===C||void 0===C||null===(o=C.data_source)||void 0===o?void 0:o.pipeline_uuid)||"",children:[(0,v.jsx)("option",{value:null}),null===rn||void 0===rn?void 0:rn.map((function(e){var n=e.uuid;return(0,v.jsx)("option",{value:n,children:n},n)}))]})]})}),[x.XO.PIPELINE_RUNS].includes(null===C||void 0===C||null===(i=C.data_source)||void 0===i?void 0:i.type)&&(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)(E.Z,{mt:f.Mq,px:f.cd,children:[(0,v.jsxs)(E.Z,{mb:1,children:[(0,v.jsx)(N.ZP,{bold:!0,children:"Trigger"}),(0,v.jsx)(N.ZP,{muted:!0,small:!0,children:"Select the trigger that the pipeline runs should belong to."})]}),(0,v.jsxs)(K.Z,{monospace:!0,onChange:function(e){return Ce((function(n){return he(he({},n),{},{data_source:he(he({},null===n||void 0===n?void 0:n.data_source),{},{pipeline_schedule_id:e.target.value})})}))},primary:!0,value:(null===C||void 0===C||null===(l=C.data_source)||void 0===l?void 0:l.pipeline_schedule_id)||"",children:[(0,v.jsx)("option",{value:null}),null===cn||void 0===cn?void 0:cn.map((function(e){var n=e.id,t=e.name;return(0,v.jsx)("option",{value:n,children:t},n)}))]})]})}),x.XO.BLOCK===(null===C||void 0===C||null===(r=C.data_source)||void 0===r?void 0:r.type)&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(E.Z,{mt:f.Mq,px:f.cd,children:[(0,v.jsxs)(E.Z,{mb:1,children:[(0,v.jsx)(N.ZP,{bold:!0,children:"Block UUID"}),(0,v.jsx)(N.ZP,{muted:!0,small:!0,children:"Select the block the data source comes from."})]}),(0,v.jsxs)(K.Z,{monospace:!0,onChange:function(e){return Ce((function(n){return he(he({},n),{},{data_source:he(he({},null===n||void 0===n?void 0:n.data_source),{},{block_uuid:e.target.value})})}))},primary:!0,value:(null===C||void 0===C||null===(u=C.data_source)||void 0===u?void 0:u.block_uuid)||"",children:[(0,v.jsx)("option",{value:null}),null===on||void 0===on?void 0:on.map((function(e){var n=e.uuid;return(0,v.jsx)("option",{value:n,children:n},n)}))]})]}),(0,v.jsxs)(E.Z,{mt:f.Mq,px:f.cd,children:[(0,v.jsxs)(E.Z,{mb:1,children:[(0,v.jsx)(N.ZP,{bold:!0,children:"Partitions"}),(0,v.jsx)(N.ZP,{muted:!0,small:!0,children:"Enter a positive or a negative number. If positive, then data from the block will be the most recent N partitions. If negative, then data from the block will be the oldest N partitions."}),(0,v.jsx)(E.Z,{mt:1,children:(0,v.jsx)(N.ZP,{muted:!0,small:!0,children:"Leave blank if you want the chart to execute the block and display the data produced from that ad hoc block execution."})})]}),(0,v.jsx)(R.Z,{monospace:!0,onChange:function(e){return Ce((function(n){return he(he({},n),{},{data_source:he(he({},null===n||void 0===n?void 0:n.data_source),{},{partitions:"undefined"!==typeof e.target.value?Number(e.target.value):e.target.value})})}))},placeholder:"Enter number of partitions",primary:!0,setContentOnMount:!0,type:"number",value:(null===C||void 0===C||null===(c=C.data_source)||void 0===c?void 0:c.partitions)||""})]})]}),(0,v.jsxs)(E.Z,{mt:f.Mq,px:f.cd,children:[(0,v.jsxs)(E.Z,{mb:1,children:[(0,v.jsx)(N.ZP,{bold:!0,children:"Refresh interval"}),(0,v.jsx)(N.ZP,{muted:!0,small:!0,children:"How frequent do you want this chart to automatically fetch new data from its data source? Enter a number in milliseconds (e.g. 1000ms is 1 second)."})]}),(0,v.jsx)(R.Z,{monospace:!0,onChange:function(e){return Ce((function(n){return he(he({},n),{},{data_source:he(he({},null===n||void 0===n?void 0:n.data_source),{},{refresh_interval:e.target.value})})}))},placeholder:"Enter number for refresh interval",primary:!0,setContentOnMount:!0,type:"number",value:(null===C||void 0===C||null===(a=C.data_source)||void 0===a?void 0:a.refresh_interval)||6e4})]}),(0,v.jsx)(E.Z,{mt:f.Mq,children:(0,v.jsx)(ne.Z,{light:!0})}),(0,v.jsx)(E.Z,{mt:f.Mq,px:f.cd,children:(0,v.jsx)(te.Z,{children:"Chart display settings"})}),(0,v.jsx)(E.Z,{mt:f.Mq,px:f.cd,children:(0,v.jsxs)(N.ZP,{default:!0,children:["Number of columns from data source: ","undefined"!==typeof(null===an||void 0===an||null===(d=an.data)||void 0===d?void 0:d.columns)?(0,v.jsx)(N.ZP,{bold:!0,inline:!0,monospace:!0,children:null===an||void 0===an||null===(h=an.data)||void 0===h||null===(m=h.columns)||void 0===m?void 0:m.length}):(0,v.jsx)(E.Z,{mt:1,children:(0,v.jsx)(L.Z,{inverted:!0,small:!0})})]})}),(0,v.jsx)(E.Z,{mt:f.Mq,px:f.cd,children:(0,v.jsx)($,{block:an,updateConfiguration:function(e){Ce((function(n){return he(he({},n),{},{configuration:he(he({},null===n||void 0===n?void 0:n.configuration),e)})}))}})})]})}),[an,on,C,cn,rn,Ce,s]),sn=(0,c.useMemo)((function(){return ge&&(0,v.jsxs)(E.Z,{py:f.cd,children:[(0,v.jsxs)(E.Z,{mb:f.Mq,px:f.cd,children:[(0,v.jsx)(E.Z,{mb:1,children:(0,v.jsx)(te.Z,{children:"Custom code"})}),(0,v.jsxs)(N.ZP,{default:!0,children:["Write code for custom data sources, parsing, etc. For more information on what is possible, please check out the ",(0,v.jsx)(oe.Z,{href:"https://docs.mage.ai/visualizations/dashboards#custom-code-for-chart",openNewWindow:!0,children:"chart documentation"}),"."]})]}),(0,v.jsx)(ee.Z,{autoHeight:!0,block:ge,onChange:function(e){Ce((function(n){return he(he({},n),{},{content:e})}))},value:(null===C||void 0===C?void 0:C.content)||(null===_e||void 0===_e?void 0:_e.content)||"",width:"100%"})]})}),[_e,C,ge,Ce]);return(0,v.jsxs)(ie.Z,{after:sn,afterHeightOffset:s||0,afterHidden:en,afterMousedownActive:T,afterWidth:B,before:dn,beforeFooter:!en&&(0,v.jsx)(E.Z,{p:f.cd,children:(0,v.jsxs)(y.ZP,{children:[(0,v.jsx)(g.ZP,{fullWidth:!0,loading:De,onClick:function(){return Ue(C)},primary:!0,children:"Save changes"}),(0,v.jsx)(E.Z,{mr:1}),(0,v.jsx)(g.ZP,{fullWidth:!0,onClick:function(){return Pe(null)},secondary:!0,children:"Back to dashboard"})]})}),beforeHeader:(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(z.Z,{breadcrumbs:[{label:function(){return"Back to dashboard"},onClick:function(){return Pe(null)}},{bold:!0,label:function(){return(null===ge||void 0===ge?void 0:ge.name)||(null===ge||void 0===ge?void 0:ge.uuid)}}]})}),beforeHeaderOffset:6*f.iI,beforeHeightOffset:s||0,beforeHidden:en,beforeMousedownActive:fe,beforeWidth:X,contained:!0,headerOffset:s||0,hideAfterCompletely:!0,hideBeforeCompletely:!0,leftOffset:t||0,mainContainerRef:M,setAfterMousedownActive:J,setAfterWidth:A,setBeforeMousedownActive:ve,setBeforeWidth:Q,children:[(0,v.jsx)("div",{ref:me,children:(0,v.jsxs)(y.ZP,{justifyContent:"space-between",children:[(0,v.jsx)(j.Z,{flex:1}),en&&!Xe&&(0,v.jsx)(E.Z,{p:f.cd,children:(0,v.jsx)(g.ZP,{beforeIcon:(0,v.jsx)(k.Add,{size:2*f.iI}),onClick:function(){return Ye()},primary:!0,children:"Create new chart"})})]})}),(0,v.jsxs)(r.W,{backend:u.PD,children:[ge&&(0,v.jsx)(q,{block:ge,blockLayoutItem:he(he({},_e),{},{configuration:he(he({},null===_e||void 0===_e?void 0:_e.configuration),null===C||void 0===C?void 0:C.configuration),data_source:he(he({},null===_e||void 0===_e?void 0:_e.data_source),null===C||void 0===C?void 0:C.data_source)}),blockUUID:null===ge||void 0===ge?void 0:ge.uuid,detail:!0,disableDrag:!0,height:$e,pageBlockLayoutUUID:m,setSelectedBlockItem:Pe,width:null===qe||void 0===qe?void 0:qe.width}),!ge&&!Xe&&Ge,!ge&&Xe&&Qe]})]})}},75399:function(e,n,t){t.d(n,{Qj:function(){return c},XO:function(){return i},hN:function(){return l},tW:function(){return u}});var o,i,l,r=t(82394);!function(e){e.BLOCK="block",e.BLOCK_RUNS="block_runs",e.CHART_CODE="chart_code",e.PIPELINES="pipelines",e.PIPELINE_RUNS="pipeline_runs",e.PIPELINE_SCHEDULES="pipeline_schedules"}(i||(i={})),function(e){e.HTML="html",e.JPEG="jpeg",e.JPG="jpg",e.PNG="png"}(l||(l={}));var u=[i.BLOCK,i.BLOCK_RUNS,i.CHART_CODE,i.PIPELINES,i.PIPELINE_RUNS,i.PIPELINE_SCHEDULES],c=(o={},(0,r.Z)(o,i.BLOCK,"Block data output"),(0,r.Z)(o,i.BLOCK_RUNS,"Block runs"),(0,r.Z)(o,i.CHART_CODE,"Custom code"),(0,r.Z)(o,i.PIPELINES,"Pipelines"),(0,r.Z)(o,i.PIPELINE_RUNS,"Pipeline runs"),(0,r.Z)(o,i.PIPELINE_SCHEDULES,"Triggers"),o)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9624],{29624:function(e,n,i){i.d(n,{Z:function(){return Q}});var t=i(82394),l=i(75582),r=i(12691),u=i.n(r),o=i(82684),c=i(69864),s=i(34376),p=i(71180),d=i(50724),a=i(30160),f=i(44897),h=i(42631),g=i(70515),v=i(25976),_=v.default.div.withConfig({displayName:"indexstyle__ModalStyle",componentId:"sc-qldrgc-0"})(["position:absolute;"," "," display:flex;flex-direction:column;width:","px;overflow:hidden;background-color:",";border:1px solid ",";border-radius:","px;box-shadow:",";"],(function(e){return e.top&&"\n top: ".concat(e.top,"px;\n ")}),(function(e){return e.left&&"\n left: ".concat(e.left,"px;\n ")}),39*g.iI,(function(e){return(e.theme||f.Z).background.dashboard}),(function(e){return(e.theme||f.Z).borders.darkLight}),h.n_,(function(e){return(e.theme||f.Z).shadow.popup})),x=v.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-qldrgc-1"})(["display:flex;flex-direction:column;gap:","px;padding:","px ","px;"],2*g.iI,2.5*g.iI,2*g.iI),j=v.default.div.withConfig({displayName:"indexstyle__ActionsStyle",componentId:"sc-qldrgc-2"})(["display:flex;gap:","px;padding:","px;background-color:",";border-top:1px solid ",";& > *{flex:1;}"],g.iI,2*g.iI,(function(e){return(e.theme||f.Z).background.panel}),(function(e){return(e.theme||f.Z).borders.darkLight})),y=i(72473),b=i(72191),m=i(79633),Z=i(81728),C=i(28598);var P=function(e){var n=e.inProgressRunsCount,i=e.left,t=void 0===i?0:i,l=e.onAllow,r=e.onStop,u=e.pipelineScheduleId,c=e.pipelineUuid,s=e.top,d=void 0===s?0:s,f=e.topOffset,h=void 0===f?0:f,v=(0,o.useRef)(null),P=(0,o.useState)(d+h),k=P[0],w=P[1];return(0,o.useEffect)((function(){var e=null!==v&&void 0!==v&&v.current?v.current.getBoundingClientRect().height:32*g.iI,n=d+h+e>window.innerHeight;w(n?d-e:d+h)}),[t,d,h]),(0,C.jsxs)(_,{left:t,ref:v,top:k,children:[(0,C.jsxs)(x,{children:[(0,C.jsx)(y.AlertTriangle,{fill:m.$R,size:b.nz}),(0,C.jsx)(a.ZP,{bold:!0,large:!0,warning:!0,children:"There ".concat(1===n?"is":"are"," currently ").concat((0,Z._6)("run",n,!0)," in progress.")}),(0,C.jsx)(a.ZP,{large:!0,children:"Do you want to stop or allow the ".concat((0,Z._6)("run",n,!0,!0)," to complete?")})]}),(0,C.jsxs)(j,{children:[(0,C.jsx)(p.ZP,{large:!0,onClick:function(){return r(u,c)},children:"Stop"}),(0,C.jsx)(p.ZP,{large:!0,onClick:function(){return l(u)},children:"Allow"})]})]})},k=i(55485),w=i(48670),O=i(30229),I=i(89515),S=i(38276),R=i(75499),A=i(48381),E=i(69650),D=i(12468),N=i(35686),T=i(77417),q=i(19698),L=i(81655),U=i(41143),z=i(31608),B=i(16488),V=i(3917),F=i(50178),H=i(72619),X=i(95924),$=i(70320),G=i(89538);function K(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function M(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?K(Object(i),!0).forEach((function(n){(0,t.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):K(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var J=1.5*g.iI;var Q=function(e){var n=e.disableActions,i=e.fetchPipelineSchedules,t=e.highlightRowOnHover,r=e.includeCreatedAtColumn,f=e.includePipelineColumn,h=e.pipeline,g=e.pipelineSchedules,v=e.pipelineTriggersByName,_=e.selectedSchedule,x=e.setErrors,j=e.setSelectedSchedule,m=e.stickyHeader,Z=null===h||void 0===h?void 0:h.uuid,K=(0,s.useRouter)(),Q=(0,T.Z)().projectPlatformActivated,W=(0,q.Z)().status,Y=(0,o.useRef)({}),ee=(0,o.useRef)({}),ne=(0,o.useState)(null),ie=ne[0],te=ne[1],le=(0,o.useState)(0),re=le[0],ue=le[1],oe=(0,o.useState)(0),ce=oe[0],se=oe[1],pe=(0,$.qB)(),de=pe?L.O$:{},ae=(0,c.Db)((function(e){return N.ZP.pipelines.useUpdate(e.uuid)({pipeline:e})}),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(){null===i||void 0===i||i()},onErrorCallback:function(e,n){return null===x||void 0===x?void 0:x({errors:n,response:e})}})}}),fe=(0,l.Z)(ae,1)[0],he=(0,c.Db)((function(e){return N.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:e})}),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(){null===i||void 0===i||i()},onErrorCallback:function(e,n){return null===x||void 0===x?void 0:x({errors:n,response:e})}})}}),ge=(0,l.Z)(he,1)[0],ve=(0,c.Db)((function(e){return N.ZP.pipeline_schedules.useDelete(e)()}),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(){null===i||void 0===i||i(),Z?K.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(Z,"/triggers")):null===i||void 0===i||i()},onErrorCallback:function(e,n){return x({errors:n,response:e})}})}}),_e=(0,l.Z)(ve,1)[0],xe=[],je=[];n||(xe.push.apply(xe,[null,null,null]),je.push.apply(je,[{uuid:"Active"},{uuid:"Type"},{center:!0,uuid:"Logs"}])),Q&&(xe.push.apply(xe,[null]),je.push.apply(je,[{uuid:"Project"}])),xe.push.apply(xe,[1,2]),je.push.apply(je,[{uuid:"Name"},{uuid:"Description"}]),n||(xe.push.apply(xe,[null]),je.push({uuid:"Frequency"})),xe.push.apply(xe,[1,1,null]),je.push.apply(je,[M(M({},de),{},{uuid:"Next run date"}),{uuid:"Latest status"},{uuid:"Runs"}]),n||(xe.push.apply(xe,[1]),je.push({uuid:"Tags"})),n||(0,F.Ct)()||(xe.push.apply(xe,[null]),je.push({label:function(){return""},uuid:"edit/delete"})),!n&&f&&(je.splice(2,0,{uuid:"Pipeline"}),xe.splice(2,0,1)),!n&&r&&(je.splice(5,0,M(M({},de),{},{uuid:"Created at"})),xe.splice(5,0,null));var ye=(0,G.dd)((function(e){var n=e.inProgressRunsCount,i=e.left,t=e.pipelineScheduleId,l=e.pipelineUuid,r=e.top,u=e.topOffset;return(0,C.jsx)(P,{inProgressRunsCount:n,left:i,onAllow:function(e){Ze(),ge({id:e,status:O.fq.INACTIVE})},onStop:function(e,n){Ze(),fe({pipeline_schedule_id:e,status:U.V.CANCELLED,uuid:n}),ge({id:e,status:O.fq.INACTIVE})},pipelineScheduleId:t,pipelineUuid:l,top:r,topOffset:u})}),{},[],{background:!0,uuid:"disable_trigger"}),be=(0,l.Z)(ye,2),me=be[0],Ze=be[1];return(0,C.jsx)(z.cl,{overflowVisible:!0,children:0===g.length?(0,C.jsx)(S.Z,{px:3,py:1,children:(0,C.jsx)(a.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No triggers available"})}):(0,C.jsx)(R.Z,{columnFlex:xe,columns:je,highlightRowOnHover:t,isSelectedRow:function(e){return g[e].id===(null===_||void 0===_?void 0:_.id)},onClickRow:j?function(e){return null===j||void 0===j?void 0:j(g[e])}:null,rowVerticalPadding:6,rows:g.map((function(e,i){var t=e.id,l=e.created_at,c=e.description,s=e.next_pipeline_run_date,h=e.pipeline_in_progress_runs_count,g=e.pipeline_runs_count,_=e.pipeline_uuid,x=e.last_pipeline_run_status,j=e.name,m=e.repo_path,P=e.schedule_interval,R=e.status,N=e.tags,T=O.fq.ACTIVE===R,q=(0,B._U)(P),U=Z||_;Y.current[t]=(0,o.createRef)(),ee.current[t]=(0,o.createRef)();var z=null!==v&&void 0!==v&&v[j]?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(S.Z,{mr:1}),(0,C.jsx)(D.Z,{block:!0,label:"This trigger is saved in code.",size:J,widthFitContent:!0,children:(0,C.jsx)(y.Code,{default:!0,size:J})})]}):null,H=[];if(n)H.push.apply(H,[(0,C.jsxs)(k.ZP,{alignItems:"center",children:[(0,C.jsx)(a.ZP,{bold:!0,children:j}),z]},"trigger_name_".concat(i))]);else{var $,G;if(H.push.apply(H,[(0,C.jsx)(D.Z,{block:!0,label:R,size:20,widthFitContent:!0,children:(0,C.jsx)("div",{ref:Y.current[t],style:{position:"relative"},children:(0,C.jsx)(E.Z,{checked:T,compact:!0,onCheck:function(e){return function(e){var n=e.event,i=e.inProgressRunsCount,t=e.pipelineIsActive,l=e.pipelineScheduleId,r=e.pipelineUuid;if((0,X.j)(n),t&&i>0){var u,o=null===(u=Y.current[l])||void 0===u?void 0:u.current,c=null===o||void 0===o?void 0:o.getBoundingClientRect(),s=c.height,p=c.left,d=c.top;me({inProgressRunsCount:i,left:p,pipelineScheduleId:l,pipelineUuid:r,top:d,topOffset:s})}else ge({id:l,status:t?O.fq.INACTIVE:O.fq.ACTIVE})}({event:e,inProgressRunsCount:h,pipelineIsActive:T,pipelineScheduleId:t,pipelineUuid:_})},purpleBackground:!0})})},"trigger_enabled_".concat(i)),(0,C.jsx)(a.ZP,{default:!0,monospace:!0,children:null===($=O.Z4[e.schedule_type])||void 0===$?void 0:$.call(O.Z4)},"trigger_type_".concat(i))]),H.push((0,C.jsx)(p.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return K.push("/pipelines/".concat(U,"/logs?pipeline_schedule_id[]=").concat(t))},children:(0,C.jsx)(y.Logs,{default:!0,size:b.bL})},"logs_button_".concat(i))),Q)H.push.apply(H,[(0,C.jsx)(a.ZP,{default:!0,monospace:!0,children:null===m||void 0===m||null===(G=m.replace((null===W||void 0===W?void 0:W.repo_path_root)||"",""))||void 0===G?void 0:G.slice(1)},"project_".concat(i))]);H.push.apply(H,[(0,C.jsxs)(k.ZP,{alignItems:"center",children:[(0,C.jsx)(u(),{as:"/pipelines/".concat(U,"/triggers/").concat(t),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,C.jsx)(w.Z,{bold:!0,onClick:function(e){(0,X.j)(e),K.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(U,"/triggers/").concat(t))},sky:!0,children:j})}),z]},"trigger_name_".concat(i))])}return H.push.apply(H,[(0,C.jsx)(a.ZP,{default:!0,children:c},"trigger_description_".concat(i))]),n||H.push((0,C.jsx)(a.ZP,{default:!0,monospace:!0,children:pe&&q?(0,B.lO)(P):P},"trigger_frequency_".concat(i))),H.push.apply(H,[(0,C.jsx)(a.ZP,{monospace:!0,small:!0,title:s?"UTC: ".concat(s.slice(0,19)):null,children:s?pe?(0,V.XG)(s,pe):(0,V.d$)(s,{includeSeconds:!0,utcFormat:!0}):(0,C.jsx)(C.Fragment,{children:"\u2014"})},"trigger_next_run_date_".concat(i)),(0,o.createElement)(a.ZP,M(M({},(0,L.NC)(x)),{},{key:"latest_run_status_".concat(i)}),x||"N/A"),(0,C.jsx)(a.ZP,{default:!0,monospace:!0,children:g||"0"},"trigger_run_count_".concat(i))]),n||H.push((0,C.jsx)("div",{children:(0,C.jsx)(A.Z,{tags:null===N||void 0===N?void 0:N.map((function(e){return{uuid:e}}))})},"pipeline_tags_".concat(i))),n||(0,F.Ct)()||H.push((0,C.jsxs)(k.ZP,{children:[(0,C.jsx)(p.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return K.push("/pipelines/".concat(U,"/triggers/").concat(t,"/edit"))},title:"Edit",children:(0,C.jsx)(y.Edit,{default:!0,size:b.bL})}),(0,C.jsx)(S.Z,{mr:1}),(0,C.jsx)(p.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){var e,n,i,l;te(t),ue((null===(e=ee.current[t])||void 0===e||null===(n=e.current)||void 0===n?void 0:n.offsetTop)||0),se((null===(i=ee.current[t])||void 0===i||null===(l=i.current)||void 0===l?void 0:l.offsetLeft)||0)},ref:ee.current[t],title:"Delete",children:(0,C.jsx)(y.Trash,{default:!0,size:b.bL})}),(0,C.jsx)(d.Z,{onClickOutside:function(){return te(null)},open:ie===t,children:(0,C.jsx)(I.Z,{danger:!0,left:(ce||0)-L.nH,onCancel:function(){return te(null)},onClick:function(){te(null),_e(t)},title:"Are you sure you want to delete the trigger ".concat(j,"?"),top:(re||0)-(i<=1?L.oz:L.OK),width:L.Xx})})]},"edit_delete_buttons_".concat(i))),!n&&f&&H.splice(2,0,(0,C.jsx)(a.ZP,{default:!0,monospace:!0,children:U},"pipeline_name_".concat(i))),!n&&r&&H.splice(5,0,(0,C.jsx)(a.ZP,{default:!0,monospace:!0,small:!0,title:l?(0,V._6)(l):null,children:(0,V.XG)(null===l||void 0===l?void 0:l.slice(0,19),pe)},"created_at_".concat(i))),H})),stickyHeader:m,uuid:"pipeline-triggers"})})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9832],{52136:function(t,n,e){e.d(n,{Z:function(){return p}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),l=e(5237),s=e(29989),a=e(81352),h=e(46119),f=e(38469),d=e(12765),y=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function _(){return _=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},_.apply(this,arguments)}function p(t){var n=t.top,e=void 0===n?0:n,i=t.left,r=void 0===i?0:i,u=t.scale,p=t.height,v=t.stroke,x=void 0===v?"#eaf0f6":v,m=t.strokeWidth,Z=void 0===m?1:m,g=t.strokeDasharray,b=t.className,O=t.numTicks,E=void 0===O?10:O,k=t.lineStyle,w=t.offset,T=t.tickValues,N=t.children,j=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,y),M=null!=T?T:(0,h.Z)(u,E),P=(null!=w?w:0)+(0,d.Z)(u)/2,R=M.map((function(t,n){var e,i=(null!=(e=(0,f.Z)(u(t)))?e:0)+P;return{index:n,from:new a.Z({x:i,y:0}),to:new a.Z({x:i,y:p})}}));return o.createElement(s.Z,{className:c()("visx-columns",b),top:e,left:r},N?N({lines:R}):R.map((function(t){var n=t.from,e=t.to,i=t.index;return o.createElement(l.Z,_({key:"column-line-"+i,from:n,to:e,stroke:x,strokeWidth:Z,strokeDasharray:g,style:k},j))})))}p.propTypes={tickValues:r().array,height:r().number.isRequired}},85587:function(t,n,e){e.d(n,{Z:function(){return s}});var i=e(82684),r=e(63588),o=e.n(r),u=e(39309),c=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return l=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},l.apply(this,arguments)}function s(t){var n=t.children,e=t.data,r=void 0===e?[]:e,s=t.x,a=t.y,h=t.fill,f=void 0===h?"transparent":h,d=t.className,y=t.curve,_=t.innerRef,p=t.defined,v=void 0===p?function(){return!0}:p,x=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,c),m=(0,u.jv)({x:s,y:a,defined:v,curve:y});return n?i.createElement(i.Fragment,null,n({path:m})):i.createElement("path",l({ref:_,className:o()("visx-linepath",d),d:m(r)||"",fill:f,strokeLinecap:"round"},x))}},39309:function(t,n,e){e.d(n,{SO:function(){return u},jv:function(){return c}});var i=e(48167),r=e(92201),o=e(49894);function u(t){var n=void 0===t?{}:t,e=n.x,r=n.x0,u=n.x1,c=n.y,l=n.y0,s=n.y1,a=n.defined,h=n.curve,f=(0,i.Z)();return e&&(0,o.Z)(f.x,e),r&&(0,o.Z)(f.x0,r),u&&(0,o.Z)(f.x1,u),c&&(0,o.Z)(f.y,c),l&&(0,o.Z)(f.y0,l),s&&(0,o.Z)(f.y1,s),a&&f.defined(a),h&&f.curve(h),f}function c(t){var n=void 0===t?{}:t,e=n.x,i=n.y,u=n.defined,c=n.curve,l=(0,r.Z)();return e&&(0,o.Z)(l.x,e),i&&(0,o.Z)(l.y,i),u&&l.defined(u),c&&l.curve(c),l}},98889:function(t,n,e){e.d(n,{Z:function(){return p}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),l=e(39309),s=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function a(){return a=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},a.apply(this,arguments)}function h(t){var n=t.children,e=t.x,i=t.x0,r=t.x1,u=t.y,h=t.y0,f=t.y1,d=t.data,y=void 0===d?[]:d,_=t.defined,p=void 0===_?function(){return!0}:_,v=t.className,x=t.curve,m=t.innerRef,Z=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,s),g=(0,l.SO)({x:e,x0:i,x1:r,y:u,y0:h,y1:f,defined:p,curve:x});return n?o.createElement(o.Fragment,null,n({path:g})):o.createElement("path",a({ref:m,className:c()("visx-area",v),d:g(y)||""},Z))}var f=["id","children"];function d(){return d=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},d.apply(this,arguments)}function y(t){var n=t.id,e=t.children,i=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,f);return o.createElement("defs",null,o.createElement("clipPath",d({id:n},i),e))}function _(){return _=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},_.apply(this,arguments)}function p(t){var n=t.className,e=t.curve,i=t.clipAboveTo,r=t.clipBelowTo,u=t.data,l=t.defined,s=t.x,a=t.y0,f=t.y1,d=t.aboveAreaProps,p=t.belowAreaProps,v=t.id,x=void 0===v?"":v;return o.createElement("g",{className:c()("visx-threshold",n)},o.createElement(h,{curve:e,data:u,x:s,y1:f,defined:l},(function(t){var n=t.path,e=null,c=null;return e=n.y0(r)(u),c=n.y0(i)(u),o.createElement("g",null,o.createElement(y,{id:"threshold-clip-below-"+x},o.createElement("path",{d:e||""})),o.createElement(y,{id:"threshold-clip-above-"+x},o.createElement("path",{d:c||""})))})),o.createElement(h,_({curve:e,data:u,defined:l,x:s,y0:a,y1:f,strokeWidth:0,clipPath:"url(#threshold-clip-below-"+x+")"},p)),o.createElement(h,_({curve:e,data:u,defined:l,x:s,y0:a,y1:f,strokeWidth:0,clipPath:"url(#threshold-clip-above-"+x+")"},d)))}y.propTypes={id:r().string.isRequired,children:r().node},p.propTypes={className:r().string,clipAboveTo:r().oneOfType([r().func,r().number]).isRequired,clipBelowTo:r().oneOfType([r().func,r().number]).isRequired,id:r().string.isRequired,data:r().array.isRequired,defined:r().func,x:r().oneOfType([r().func,r().number]).isRequired,y0:r().oneOfType([r().func,r().number]).isRequired,y1:r().oneOfType([r().func,r().number]).isRequired}},61655:function(t,n,e){e.d(n,{Z:function(){return u}});var i=e(82684),r=e(29179);function o(){return o=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},o.apply(this,arguments)}function u(t,n,e){void 0===n&&(n={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===e&&(e=function(t,n){return i.createElement("div",n,t)});return function(u){var c=(0,r.Z)();return e(i.createElement(t,o({},c,u)),n)}}},35681:function(t,n){var e=Math.PI,i=2*e,r=1e-6,o=i-r;function u(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function c(){return new u}u.prototype=c.prototype={constructor:u,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,i){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(t,n,e,i,r,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +i+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(t,n,i,o,u){t=+t,n=+n,i=+i,o=+o,u=+u;var c=this._x1,l=this._y1,s=i-t,a=o-n,h=c-t,f=l-n,d=h*h+f*f;if(u<0)throw new Error("negative radius: "+u);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(d>r)if(Math.abs(f*s-a*h)>r&&u){var y=i-c,_=o-l,p=s*s+a*a,v=y*y+_*_,x=Math.sqrt(p),m=Math.sqrt(d),Z=u*Math.tan((e-Math.acos((p+d-v)/(2*x*m)))/2),g=Z/m,b=Z/x;Math.abs(g-1)>r&&(this._+="L"+(t+g*h)+","+(n+g*f)),this._+="A"+u+","+u+",0,0,"+ +(f*y>h*_)+","+(this._x1=t+b*s)+","+(this._y1=n+b*a)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,u,c,l,s){t=+t,n=+n,s=!!s;var a=(u=+u)*Math.cos(c),h=u*Math.sin(c),f=t+a,d=n+h,y=1^s,_=s?c-l:l-c;if(u<0)throw new Error("negative radius: "+u);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>r||Math.abs(this._y1-d)>r)&&(this._+="L"+f+","+d),u&&(_<0&&(_=_%i+i),_>o?this._+="A"+u+","+u+",0,1,"+y+","+(t-a)+","+(n-h)+"A"+u+","+u+",0,1,"+y+","+(this._x1=f)+","+(this._y1=d):_>r&&(this._+="A"+u+","+u+",0,"+ +(_>=e)+","+y+","+(this._x1=t+u*Math.cos(l))+","+(this._y1=n+u*Math.sin(l))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}},n.Z=c},48167:function(t,n,e){e.d(n,{Z:function(){return l}});var i=e(35681),r=e(90875),o=e(23622),u=e(92201),c=e(98930);function l(){var t=c.x,n=null,e=(0,r.Z)(0),l=c.y,s=(0,r.Z)(!0),a=null,h=o.Z,f=null;function d(r){var o,u,c,d,y,_=r.length,p=!1,v=new Array(_),x=new Array(_);for(null==a&&(f=h(y=(0,i.Z)())),o=0;o<=_;++o){if(!(o<_&&s(d=r[o],o,r))===p)if(p=!p)u=o,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),c=o-1;c>=u;--c)f.point(v[c],x[c]);f.lineEnd(),f.areaEnd()}p&&(v[o]=+t(d,o,r),x[o]=+e(d,o,r),f.point(n?+n(d,o,r):v[o],l?+l(d,o,r):x[o]))}if(y)return f=null,y+""||null}function y(){return(0,u.Z)().defined(s).curve(h).context(a)}return d.x=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.Z)(+e),n=null,d):t},d.x0=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),d):t},d.x1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),d):n},d.y=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),l=null,d):e},d.y0=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),d):e},d.y1=function(t){return arguments.length?(l=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),d):l},d.lineX0=d.lineY0=function(){return y().x(t).y(e)},d.lineY1=function(){return y().x(t).y(l)},d.lineX1=function(){return y().x(n).y(e)},d.defined=function(t){return arguments.length?(s="function"===typeof t?t:(0,r.Z)(!!t),d):s},d.curve=function(t){return arguments.length?(h=t,null!=a&&(f=h(a)),d):h},d.context=function(t){return arguments.length?(null==t?a=f=null:f=h(a=t),d):a},d}},97745:function(t,n,e){function i(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function r(t){this._context=t}function o(t){return new r(t)}e.d(n,{ZP:function(){return o},fE:function(){return r},xm:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}}},23622:function(t,n,e){function i(t){this._context=t}function r(t){return new i(t)}e.d(n,{Z:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}}},92201:function(t,n,e){e.d(n,{Z:function(){return c}});var i=e(35681),r=e(90875),o=e(23622),u=e(98930);function c(){var t=u.x,n=u.y,e=(0,r.Z)(!0),c=null,l=o.Z,s=null;function a(r){var o,u,a,h=r.length,f=!1;for(null==c&&(s=l(a=(0,i.Z)())),o=0;o<=h;++o)!(o<h&&e(u=r[o],o,r))===f&&((f=!f)?s.lineStart():s.lineEnd()),f&&s.point(+t(u,o,r),+n(u,o,r));if(a)return s=null,a+""||null}return a.x=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),a):t},a.y=function(t){return arguments.length?(n="function"===typeof t?t:(0,r.Z)(+t),a):n},a.defined=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(!!t),a):e},a.curve=function(t){return arguments.length?(l=t,null!=c&&(s=l(c)),a):l},a.context=function(t){return arguments.length?(null==t?c=s=null:s=l(c=t),a):c},a}},98930:function(t,n,e){function i(t){return t[0]}function r(t){return t[1]}e.d(n,{x:function(){return i},y:function(){return r}})}}]);
|