mage-ai 0.9.44__py3-none-any.whl → 0.9.46__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mage-ai might be problematic. Click here for more details.
- mage_ai/api/constants.py +2 -0
- mage_ai/api/operations/base.py +208 -12
- mage_ai/api/policies/BasePolicy.py +3 -3
- mage_ai/api/policies/ComputeClusterPolicy.py +96 -0
- mage_ai/api/policies/ComputeConnectionPolicy.py +74 -0
- mage_ai/api/policies/ComputeServicePolicy.py +50 -0
- mage_ai/api/policies/DownloadPolicy.py +29 -0
- mage_ai/api/policies/GitCustomBranchPolicy.py +1 -0
- mage_ai/api/policies/GlobalHookPolicy.py +126 -0
- mage_ai/api/policies/OauthPolicy.py +56 -7
- mage_ai/api/policies/ProjectPolicy.py +1 -0
- mage_ai/api/policies/RolePolicy.py +12 -1
- mage_ai/api/presenters/ComputeClusterPresenter.py +19 -0
- mage_ai/api/presenters/ComputeConnectionPresenter.py +26 -0
- mage_ai/api/presenters/ComputeServicePresenter.py +15 -0
- mage_ai/api/presenters/DownloadPresenter.py +13 -0
- mage_ai/api/presenters/GlobalHookPresenter.py +74 -0
- mage_ai/api/presenters/OauthPresenter.py +1 -0
- mage_ai/api/presenters/PipelinePresenter.py +1 -0
- mage_ai/api/presenters/ProjectPresenter.py +1 -0
- mage_ai/api/presenters/SparkApplicationPresenter.py +2 -0
- mage_ai/api/presenters/WorkspacePresenter.py +22 -22
- mage_ai/api/resources/AsyncBaseResource.py +39 -0
- mage_ai/api/resources/BackfillResource.py +1 -0
- mage_ai/api/resources/BlockResource.py +57 -0
- mage_ai/api/resources/ClusterResource.py +1 -1
- mage_ai/api/resources/ComputeClusterResource.py +109 -0
- mage_ai/api/resources/ComputeConnectionResource.py +103 -0
- mage_ai/api/resources/ComputeServiceResource.py +35 -0
- mage_ai/api/resources/DownloadResource.py +56 -0
- mage_ai/api/resources/ExecutionStateResource.py +1 -1
- mage_ai/api/resources/GitBranchResource.py +35 -29
- mage_ai/api/resources/GitCustomBranchResource.py +9 -0
- mage_ai/api/resources/GlobalHookResource.py +192 -0
- mage_ai/api/resources/KernelResource.py +10 -0
- mage_ai/api/resources/OauthResource.py +60 -98
- mage_ai/api/resources/PipelineResource.py +4 -4
- mage_ai/api/resources/PipelineScheduleResource.py +37 -16
- mage_ai/api/resources/ProjectResource.py +5 -3
- mage_ai/api/resources/SessionResource.py +24 -9
- mage_ai/api/resources/SparkApplicationResource.py +5 -5
- mage_ai/api/resources/SparkEnvironmentResource.py +1 -2
- mage_ai/api/resources/SparkExecutorResource.py +1 -2
- mage_ai/api/resources/SparkJobResource.py +3 -6
- mage_ai/api/resources/SparkSqlResource.py +6 -11
- mage_ai/api/resources/SparkStageAttemptResource.py +2 -3
- mage_ai/api/resources/SparkStageAttemptTaskResource.py +1 -2
- mage_ai/api/resources/SparkStageAttemptTaskSummaryResource.py +1 -2
- mage_ai/api/resources/SparkStageResource.py +3 -6
- mage_ai/api/resources/SparkThreadResource.py +1 -2
- mage_ai/api/resources/UserResource.py +32 -31
- mage_ai/api/resources/mixins/spark.py +25 -4
- mage_ai/authentication/oauth/constants.py +4 -0
- mage_ai/authentication/oauth2.py +1 -3
- mage_ai/authentication/permissions/constants.py +4 -0
- mage_ai/authentication/providers/__init__.py +0 -0
- mage_ai/authentication/providers/active_directory.py +136 -0
- mage_ai/authentication/providers/constants.py +17 -0
- mage_ai/authentication/providers/ghe.py +81 -0
- mage_ai/authentication/providers/google.py +86 -0
- mage_ai/authentication/providers/oauth.py +60 -0
- mage_ai/authentication/providers/okta.py +101 -0
- mage_ai/authentication/providers/sso.py +20 -0
- mage_ai/authentication/providers/utils.py +12 -0
- mage_ai/cluster_manager/aws/emr_cluster_manager.py +2 -1
- mage_ai/cluster_manager/workspace/base.py +7 -3
- mage_ai/data_integrations/destinations/constants.py +2 -0
- mage_ai/data_preparation/executors/block_executor.py +3 -0
- mage_ai/data_preparation/executors/pipeline_executor.py +9 -0
- mage_ai/data_preparation/git/__init__.py +3 -3
- mage_ai/data_preparation/git/api.py +69 -35
- mage_ai/data_preparation/models/block/__init__.py +95 -60
- mage_ai/data_preparation/models/block/data_integration/data.py +1 -1
- mage_ai/data_preparation/models/block/dbt/block_sql.py +95 -1
- mage_ai/data_preparation/models/block/dbt/utils.py +6 -0
- mage_ai/data_preparation/models/block/spark/mixins.py +82 -34
- mage_ai/data_preparation/models/download/__init__.py +8 -0
- mage_ai/data_preparation/models/global_hooks/__init__.py +0 -0
- mage_ai/data_preparation/models/global_hooks/constants.py +44 -0
- mage_ai/data_preparation/models/global_hooks/models.py +928 -0
- mage_ai/data_preparation/models/global_hooks/utils.py +21 -0
- mage_ai/data_preparation/models/pipeline.py +82 -6
- mage_ai/data_preparation/models/pipelines/models.py +16 -0
- mage_ai/data_preparation/models/project/__init__.py +6 -0
- mage_ai/data_preparation/models/project/constants.py +1 -0
- mage_ai/data_preparation/models/project/models.py +12 -0
- mage_ai/data_preparation/repo_manager.py +23 -1
- mage_ai/data_preparation/templates/callbacks/base.jinja +4 -0
- mage_ai/data_preparation/templates/data_exporters/streaming/kafka.yaml +1 -0
- mage_ai/data_preparation/templates/data_loaders/streaming/activemq.yaml +6 -0
- mage_ai/data_preparation/templates/data_loaders/streaming/kafka.yaml +1 -0
- mage_ai/data_preparation/templates/data_loaders/streaming/nats.yaml +20 -0
- mage_ai/data_preparation/templates/repo/io_config.yaml +2 -2
- mage_ai/io/duckdb.py +0 -1
- mage_ai/orchestration/concurrency.py +8 -1
- mage_ai/orchestration/db/models/schedules.py +23 -2
- mage_ai/orchestration/pipeline_scheduler.py +168 -105
- mage_ai/orchestration/queue/process_queue.py +9 -1
- mage_ai/orchestration/triggers/api.py +11 -3
- mage_ai/orchestration/triggers/constants.py +1 -0
- mage_ai/orchestration/triggers/utils.py +23 -0
- mage_ai/server/active_kernel.py +37 -4
- mage_ai/server/api/downloads.py +76 -1
- mage_ai/server/api/triggers.py +1 -0
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/_next/static/9jB4XPuz6BzxBcG9VNao5/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1749-9a6276b2918fdae1.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/7519-8c29bbb92e03cc77.js → frontend_dist/_next/static/chunks/1845-5ce774d5ab81ed57.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1952-ac7722e8b1ab88fe.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3419-f8d518d024e7b5c8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/4267-fd4d8049e83178de.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/4366-93e09e5a4a7e182c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5457-949640f4037bf12f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5499-76cf8f023c6b0985.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/553-7f7919e14392ca67.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5638-a65610405a70961c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5810-12eadc488265d55b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5820-28adeabb5cda2b96.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/595-0d174b1f9fbfce4f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/600-705fe234320ec5de.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3122-f27de34d0b5426af.js → frontend_dist/_next/static/chunks/6285-e9b45335bfb9ccaf.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6333-bc1b433b428a9095.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{5397-b5f2e477acc6bd6b.js → 6965-c613d1834c8ed92d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{7022-18fde36eb46e1d65.js → 7022-070ec0144a4d029c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/722-a1584445357a276c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{7858-c83d25349d0e980f.js → 7858-d9df72e95e438284.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8264-0d582a6ca33c3dfa.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3684-cbda680fd8927d07.js → frontend_dist/_next/static/chunks/8432-f191e39f9b5893f2.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/90-a7308bae028d7001.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9264-1d4f0327d42fed91.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9618-2c5045255ac5a6e7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{976-27c4eed1c9b20c44.js → 976-18c98af60b76f1a7.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/framework-22b71764bf44ede4.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-ebef928183f9a3bb.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-a24cb24b6f08bbc9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-419775ca1293b354.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-0f2d4be6fdca86ca.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/{[...slug]-3f6fc312f67ff72e.js → [...slug]-cfd68e760ae00958.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-data-products-f4cd03036c3e8723.js → global-data-products-c3b79ef31007f95b.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-77edfa32d000e88b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-e561ae38cf5592e8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-449a022f2f0f2d94.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-60845f0b59142f32.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-1d9b298fdceabbf1.js → frontend_dist/_next/static/chunks/pages/manage/users/[user]-9384c5f1efa2ac18.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-abd8571907664fdf.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{users-a7c970122a10afdc.js → users-28a930b148d99766.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-f83deb790548693b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/oauth-8bb62c4f6a511c43.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-f0c40645f385f23f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipeline-runs-c79819d6826e5416.js → pipeline-runs-b35d37bfba8fbccc.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-10e9a2d19541caa2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-c8d3a5289ab93f88.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-571c0962333b92f0.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-ff7e9108502f5716.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-a52d2d3e0c2978f4.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-ef680455ae54ccbe.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-ddddcddd2f74b4f6.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-4a238307feddb522.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-e051057d9fe94f23.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-4977276c8f84b5f4.js → [run]-0691711636fa95c7.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-ce717786f31e8f04.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d20b2cd08907afd.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-2914e326a5f1ffe0.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-b75bf17498e87354.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a7500e6e53084d3.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-c0e551d265a8d467.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/{[pipeline]-35fe7762cb83a733.js → [pipeline]-02c843b9c8418bb5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-e47db5c3eaf683af.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-55ac955dfa9a5a8d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-d6a62284c7c99cb3.js → [...slug]-b78b1be5b9ed84b9.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{permissions-b1389695f758c32b.js → permissions-37b78a436eeab258.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-29c92a9bc54ae5cd.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-0bdb66265286ab22.js → [...slug]-db05a80d18c168e5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{roles-e04e18fc295ca76a.js → roles-f55c77e4f46c8d33.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-2a1f8737561fdd94.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/{[...slug]-0267358c91122109.js → [...slug]-e3bf6e5d8bb250c4.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-50fed18bb9b8d142.js → users-20f0a050a42a015d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{settings-56f83205752b1323.js → settings-0f0121db7f5ff93d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-99e2748e3c1d57a3.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-9370551ffa462144.js → frontend_dist/_next/static/chunks/pages/templates/[...slug]-f44ccd1499ffd23a.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/templates-3cff90df13a1a755.js → frontend_dist/_next/static/chunks/pages/templates-1bfaa1c50e844813.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-ed121e305169cf1c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/test-9ae68758102cc843.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{triggers-ffaab4c013e62ba1.js → triggers-572d82d6eb7a5d43.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-2d26d80370a2e481.js +1 -0
- mage_ai/server/frontend_dist/block-layout.html +2 -2
- mage_ai/server/frontend_dist/compute.html +5 -5
- mage_ai/server/frontend_dist/files.html +5 -5
- mage_ai/server/frontend_dist/global-data-products/[...slug].html +5 -5
- mage_ai/server/frontend_dist/global-data-products.html +5 -5
- mage_ai/server/frontend_dist/global-hooks/[...slug].html +24 -0
- mage_ai/server/frontend_dist/global-hooks.html +24 -0
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage/files.html +5 -5
- mage_ai/server/frontend_dist/manage/settings.html +5 -5
- mage_ai/server/frontend_dist/manage/users/[user].html +5 -5
- mage_ai/server/frontend_dist/manage/users/new.html +5 -5
- mage_ai/server/frontend_dist/manage/users.html +5 -5
- mage_ai/server/frontend_dist/manage.html +5 -5
- mage_ai/server/frontend_dist/oauth.html +4 -4
- mage_ai/server/frontend_dist/overview.html +5 -5
- mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +5 -5
- mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/permissions.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/roles.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +17 -17
- mage_ai/server/frontend_dist/templates/[...slug].html +5 -5
- mage_ai/server/frontend_dist/templates.html +5 -5
- mage_ai/server/frontend_dist/terminal.html +5 -5
- mage_ai/server/frontend_dist/test.html +15 -15
- mage_ai/server/frontend_dist/triggers.html +5 -5
- mage_ai/server/frontend_dist/version-control.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1749-9a6276b2918fdae1.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/7519-8c29bbb92e03cc77.js → frontend_dist_base_path_template/_next/static/chunks/1845-5ce774d5ab81ed57.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-ac7722e8b1ab88fe.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-f8d518d024e7b5c8.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4267-fd4d8049e83178de.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4366-93e09e5a4a7e182c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-949640f4037bf12f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5499-76cf8f023c6b0985.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/553-7f7919e14392ca67.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5638-a65610405a70961c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-12eadc488265d55b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5820-28adeabb5cda2b96.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/595-0d174b1f9fbfce4f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/600-705fe234320ec5de.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/3122-f27de34d0b5426af.js → frontend_dist_base_path_template/_next/static/chunks/6285-e9b45335bfb9ccaf.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6333-bc1b433b428a9095.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{5397-b5f2e477acc6bd6b.js → 6965-c613d1834c8ed92d.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{7022-18fde36eb46e1d65.js → 7022-070ec0144a4d029c.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/722-a1584445357a276c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{7858-c83d25349d0e980f.js → 7858-d9df72e95e438284.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-0d582a6ca33c3dfa.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/3684-cbda680fd8927d07.js → frontend_dist_base_path_template/_next/static/chunks/8432-f191e39f9b5893f2.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/90-a7308bae028d7001.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-1d4f0327d42fed91.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9618-2c5045255ac5a6e7.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{976-27c4eed1c9b20c44.js → 976-18c98af60b76f1a7.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/framework-22b71764bf44ede4.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-ebef928183f9a3bb.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-a24cb24b6f08bbc9.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-419775ca1293b354.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-0f2d4be6fdca86ca.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/{[...slug]-3f6fc312f67ff72e.js → [...slug]-cfd68e760ae00958.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-data-products-f4cd03036c3e8723.js → global-data-products-c3b79ef31007f95b.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-77edfa32d000e88b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-e561ae38cf5592e8.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-449a022f2f0f2d94.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-60845f0b59142f32.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage/users/[user]-1d9b298fdceabbf1.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-9384c5f1efa2ac18.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-abd8571907664fdf.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{users-a7c970122a10afdc.js → users-28a930b148d99766.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-f83deb790548693b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/oauth-8bb62c4f6a511c43.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-f0c40645f385f23f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{pipeline-runs-c79819d6826e5416.js → pipeline-runs-b35d37bfba8fbccc.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-10e9a2d19541caa2.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-c8d3a5289ab93f88.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-571c0962333b92f0.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-ff7e9108502f5716.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-a52d2d3e0c2978f4.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-ef680455ae54ccbe.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-ddddcddd2f74b4f6.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-4a238307feddb522.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-e051057d9fe94f23.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-4977276c8f84b5f4.js → [run]-0691711636fa95c7.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-ce717786f31e8f04.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d20b2cd08907afd.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-2914e326a5f1ffe0.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-b75bf17498e87354.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a7500e6e53084d3.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-c0e551d265a8d467.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/{[pipeline]-35fe7762cb83a733.js → [pipeline]-02c843b9c8418bb5.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-e47db5c3eaf683af.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-55ac955dfa9a5a8d.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-d6a62284c7c99cb3.js → [...slug]-b78b1be5b9ed84b9.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{permissions-b1389695f758c32b.js → permissions-37b78a436eeab258.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-29c92a9bc54ae5cd.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-0bdb66265286ab22.js → [...slug]-db05a80d18c168e5.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{roles-e04e18fc295ca76a.js → roles-f55c77e4f46c8d33.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-2a1f8737561fdd94.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/{[...slug]-0267358c91122109.js → [...slug]-e3bf6e5d8bb250c4.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{users-50fed18bb9b8d142.js → users-20f0a050a42a015d.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{settings-56f83205752b1323.js → settings-0f0121db7f5ff93d.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-99e2748e3c1d57a3.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/templates/[...slug]-9370551ffa462144.js → frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-f44ccd1499ffd23a.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/templates-3cff90df13a1a755.js → frontend_dist_base_path_template/_next/static/chunks/pages/templates-1bfaa1c50e844813.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-ed121e305169cf1c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-9ae68758102cc843.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{triggers-ffaab4c013e62ba1.js → triggers-572d82d6eb7a5d43.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-2d26d80370a2e481.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/uPDjJYpJMst1q6psbRyte/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/block-layout.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/compute.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/files.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/global-data-products.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +24 -0
- mage_ai/server/frontend_dist_base_path_template/global-hooks.html +24 -0
- mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/files.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/users.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/oauth.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/overview.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/sign-in.html +9 -9
- mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/templates.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/terminal.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/test.html +14 -14
- mage_ai/server/frontend_dist_base_path_template/triggers.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/version-control.html +2 -2
- mage_ai/server/server.py +43 -15
- mage_ai/server/utils/output_display.py +6 -0
- mage_ai/server/websocket_server.py +14 -0
- mage_ai/services/aws/ecs/config.py +11 -8
- mage_ai/services/aws/emr/config.py +1 -0
- mage_ai/services/aws/emr/constants.py +1 -0
- mage_ai/services/aws/emr/emr.py +20 -7
- mage_ai/services/compute/__init__.py +0 -0
- mage_ai/services/compute/aws/__init__.py +0 -0
- mage_ai/services/compute/aws/constants.py +21 -0
- mage_ai/services/compute/aws/models.py +459 -0
- mage_ai/services/compute/aws/steps.py +482 -0
- mage_ai/services/compute/constants.py +27 -0
- mage_ai/services/compute/models.py +212 -0
- mage_ai/services/k8s/job_manager.py +3 -0
- mage_ai/services/spark/api/aws_emr.py +38 -0
- mage_ai/services/spark/api/base.py +7 -4
- mage_ai/services/spark/api/constants.py +4 -0
- mage_ai/services/spark/api/local.py +25 -24
- mage_ai/services/spark/api/service.py +15 -5
- mage_ai/services/spark/constants.py +1 -1
- mage_ai/services/spark/models/applications.py +45 -3
- mage_ai/services/spark/models/base.py +3 -19
- mage_ai/services/spark/models/environments.py +16 -11
- mage_ai/services/spark/models/executors.py +2 -2
- mage_ai/services/spark/models/sqls.py +46 -15
- mage_ai/services/spark/models/stages.py +55 -32
- mage_ai/services/spark/models/threads.py +2 -2
- mage_ai/services/spark/utils.py +22 -6
- mage_ai/services/ssh/__init__.py +0 -0
- mage_ai/services/ssh/aws/__init__.py +0 -0
- mage_ai/services/ssh/aws/emr/__init__.py +0 -0
- mage_ai/services/ssh/aws/emr/constants.py +10 -0
- mage_ai/services/ssh/aws/emr/models.py +326 -0
- mage_ai/services/ssh/aws/emr/utils.py +151 -0
- mage_ai/settings/__init__.py +16 -1
- mage_ai/settings/secret_generation.py +7 -0
- mage_ai/settings/sso.py +20 -0
- mage_ai/shared/hash.py +17 -1
- mage_ai/shared/models.py +253 -0
- mage_ai/streaming/constants.py +2 -0
- mage_ai/streaming/sources/activemq.py +89 -0
- mage_ai/streaming/sources/nats_js.py +182 -0
- mage_ai/streaming/sources/source_factory.py +8 -0
- mage_ai/tests/ai/test_ai_functions.py +53 -8
- mage_ai/tests/api/endpoints/test_oauths.py +33 -0
- mage_ai/tests/api/endpoints/test_projects.py +1 -0
- mage_ai/tests/api/endpoints/test_workspaces.py +55 -0
- mage_ai/tests/api/operations/test_base.py +7 -5
- mage_ai/tests/api/operations/test_operations.py +0 -1
- mage_ai/tests/api/operations/test_operations_with_hooks.py +577 -0
- mage_ai/tests/api/operations/test_syncs.py +0 -1
- mage_ai/tests/api/operations/test_users.py +13 -2
- mage_ai/tests/data_preparation/executors/test_block_executor.py +1 -0
- mage_ai/tests/data_preparation/models/global_hooks/__init__.py +0 -0
- mage_ai/tests/data_preparation/models/global_hooks/test_global_hooks.py +575 -0
- mage_ai/tests/data_preparation/models/global_hooks/test_hook.py +760 -0
- mage_ai/tests/data_preparation/models/global_hooks/test_utils.py +33 -0
- mage_ai/tests/data_preparation/models/test_pipeline.py +5 -0
- mage_ai/tests/data_preparation/test_repo_manager.py +11 -0
- mage_ai/tests/data_preparation/test_templates.py +1 -0
- mage_ai/tests/factory.py +132 -10
- mage_ai/tests/orchestration/queue/test_process_queue.py +15 -2
- mage_ai/tests/orchestration/test_pipeline_scheduler.py +447 -79
- mage_ai/tests/services/aws/ecs/__init__.py +0 -0
- mage_ai/tests/services/aws/ecs/test_config.py +144 -0
- mage_ai/tests/services/k8s/test_job_manager.py +22 -1
- mage_ai/tests/shared/mixins.py +291 -0
- mage_ai/tests/shared/test_hash.py +17 -1
- mage_ai/tests/streaming/sources/test_activemq.py +32 -0
- mage_ai/tests/streaming/sources/test_nats_js.py +32 -0
- mage_ai/tests/streaming/sources/test_source_factory.py +26 -1
- {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/METADATA +28 -66
- {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/RECORD +443 -364
- mage_ai/authentication/oauth/active_directory.py +0 -17
- mage_ai/server/frontend_dist/_next/static/RPXiX8RpZ7oO-yeaEtV2c/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1125-91d3ce33140ef041.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1749-607014ecf28268bf.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1952-573c7fc7ad84da6e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3004-231cad9039ae5dcb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3419-0873e170ef7d6303.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3932-0ceca9599d6e6d00.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4267-335766a915ee2fa9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5457-8be2e0a3fe0ba64b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5499-bca977f466e259e1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/553-edf533e634e85192.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5810-37c6091b29a1fe53.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/600-0733eb84f0a0a9e0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6333-53b6ebbef95a3691.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/722-3fff38a9019369fe.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8224-39a93ee1058b6069.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8264-6ef8fdb195694807.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9264-1b5c4b071ed544c3.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/framework-7c365855dab1bf41.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-a4a660fa14cf05a9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-c465c14d48392b11.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-b1f8d5a7a9a30f2d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-93c094bad0f299fb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-891e5bd5935f7473.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-d2e4ee4e68d36807.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-4a49126fcfe8ced0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-5f8c5d0bc6ad1113.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/oauth-09467512a85c96ed.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-31bde04718d0d3a8.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-96718f95103d7844.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-a9266d353f288e8c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-b5c29c852262312e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-5d525454ff7aeb3f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-883f4ae9a4a264c0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-c65be964e6398cb7.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-1f5b4a974bd39740.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-074c32397d341de9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-50f5d8706ed0bc73.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-e151c1552fcb67bd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-cc36f0f8c73fee4b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-8336c4326f1e7d96.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-01dd679e4a21e0d9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-4d9051c073a9b2ff.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-88d41c33b8fcb300.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-d859e07561eb9010.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-578d862f3e56e6e6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/test-1c0588d685b909b9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-e284cf1535d93798.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1125-91d3ce33140ef041.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1749-607014ecf28268bf.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-573c7fc7ad84da6e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3004-231cad9039ae5dcb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-0873e170ef7d6303.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3932-0ceca9599d6e6d00.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4267-335766a915ee2fa9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-8be2e0a3fe0ba64b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5499-bca977f466e259e1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/553-edf533e634e85192.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-37c6091b29a1fe53.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/600-0733eb84f0a0a9e0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6333-53b6ebbef95a3691.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/722-3fff38a9019369fe.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8224-39a93ee1058b6069.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-6ef8fdb195694807.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-1b5c4b071ed544c3.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/framework-7c365855dab1bf41.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-a4a660fa14cf05a9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-c465c14d48392b11.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-b1f8d5a7a9a30f2d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-93c094bad0f299fb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-891e5bd5935f7473.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-d2e4ee4e68d36807.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-4a49126fcfe8ced0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-5f8c5d0bc6ad1113.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/oauth-09467512a85c96ed.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-31bde04718d0d3a8.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-96718f95103d7844.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-a9266d353f288e8c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-b5c29c852262312e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-5d525454ff7aeb3f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-883f4ae9a4a264c0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-c65be964e6398cb7.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-1f5b4a974bd39740.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-074c32397d341de9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-50f5d8706ed0bc73.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-e151c1552fcb67bd.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-cc36f0f8c73fee4b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-8336c4326f1e7d96.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-01dd679e4a21e0d9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-4d9051c073a9b2ff.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-88d41c33b8fcb300.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-d859e07561eb9010.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-578d862f3e56e6e6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-1c0588d685b909b9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-e284cf1535d93798.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/rNR5JgSxO3eA2BWGa_i7U/_buildManifest.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{RPXiX8RpZ7oO-yeaEtV2c → 9jB4XPuz6BzxBcG9VNao5}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{rNR5JgSxO3eA2BWGa_i7U → uPDjJYpJMst1q6psbRyte}/_ssgManifest.js +0 -0
- {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/WHEEL +0 -0
- {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8662],{28108:function(t,e,n){"use strict";n.d(e,{Z:function(){return m}});var r=n(82684),i=n(63588),o=n.n(i),u=n(75823),a=n(29989),l=n(62072),c=n(53989),s=n(49894),d=n(18246),f=n(59309),p=n(65743),h=["data","className","top","left","y","x0","x1","xScale","yScale","color","keys","value","order","offset","children"];function v(){return v=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},v.apply(this,arguments)}function m(t){var e=t.data,n=t.className,i=t.top,m=t.left,g=t.y,b=t.x0,y=void 0===b?l.l8:b,x=t.x1,j=void 0===x?l.xf:x,O=t.xScale,w=t.yScale,Z=t.color,E=t.keys,T=t.value,k=t.order,S=t.offset,P=t.children,I=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,h),A=(0,u.Z)();E&&A.keys(E),T&&(0,s.Z)(A.value,T),k&&A.order((0,d.ZP)(k)),S&&A.offset((0,f.ZP)(S));var D=A(e),L=(0,c.Z)(w),M=D.map((function(t,e){var n=t.key;return{index:e,key:n,bars:t.map((function(e,r){var i=(O(j(e))||0)-(O(y(e))||0),o=O(y(e)),u="bandwidth"in w?w(g(e.data)):Math.max((w(g(e.data))||0)-i/2);return{bar:e,key:n,index:r,height:L,width:i,x:o||0,y:u||0,color:Z(t.key,r)}}))}}));return P?r.createElement(r.Fragment,null,P(M)):r.createElement(a.Z,{className:o()("visx-bar-stack-horizontal",n),top:i,left:m},M.map((function(t){return t.bars.map((function(e){return r.createElement(p.Z,v({key:"bar-stack-"+t.index+"-"+e.index,x:e.x,y:e.y,height:e.height,width:e.width,fill:e.color},I))}))})))}},62072:function(t,e,n){"use strict";function r(t){return null==t?void 0:t[0]}function i(t){return null==t?void 0:t[1]}n.d(e,{l8:function(){return r},xf:function(){return i}})},59309:function(t,e,n){"use strict";n.d(e,{ZP:function(){return c}});var r=n(12759),i=n(27500),o=n(82610),u=n(34812),a=n(77944),l={expand:r.Z,diverging:i.Z,none:o.Z,silhouette:u.Z,wiggle:a.Z};Object.keys(l);function c(t){return t&&l[t]||l.none}},18246:function(t,e,n){"use strict";n.d(e,{ZP:function(){return c}});var r=n(39586),i=n(25516),o=n(54164),u=n(8512),a=n(2010),l={ascending:r.Z,descending:i.Z,insideout:o.Z,none:u.Z,reverse:a.Z};Object.keys(l);function c(t){return t&&l[t]||l.none}},93859:function(t,e,n){"use strict";n.d(e,{r:function(){return I},Z:function(){return M}});var r=n(82394),i=n(21831),o=n(82684),u=n(48670),a=n(12691),l=n.n(a),c=n(38626),s=n(78141),d=n(44628),f=n(6508),p=n(55485),h=n(30160),v=n(44897),m=n(70987),g=function(){var t=document.createElement("div");t.setAttribute("style","width: 100px; height: 100px; overflow: scroll; position:absolute; top:-9999px;"),document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e},b=n(95363),y=n(61896),x=n(47041),j=n(48888),O=n(70515),w=n(40489),Z=n(86735),E=n(28598);function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?T(Object(n),!0).forEach((function(e){(0,r.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var S=2*O.iI+y.dN,P=20*O.iI,I=8.7,A=c.default.div.withConfig({displayName:"DataTable__Styles",componentId:"sc-1arr863-0"})([""," "," "," .body > div{","}.table{border-spacing:0;display:inline-block;"," "," "," "," .tr{.td.td-index-column{","}}.th{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;","}.th,.td{"," font-family:",";margin:0;","}.td{padding:","px;}&.sticky{overflow:auto;}.header{overflow:hidden;}}"],(function(t){return t.disableScrolling&&"\n overflow: hidden;\n "}),(function(t){return t.height&&"\n height: ".concat(t.height,"px;\n ")}),(function(t){return t.maxHeight&&"\n max-height: ".concat(t.maxHeight,"px;\n ")}),x.w5,(function(t){return!t.noBorderBottom&&"\n border-bottom: 1px solid ".concat((t.theme.borders||m.Z.borders).medium,";\n ")}),(function(t){return!t.noBorderLeft&&"\n border-left: 1px solid ".concat((t.theme.borders||m.Z.borders).medium,";\n ")}),(function(t){return!t.noBorderRight&&"\n border-right: 1px solid ".concat((t.theme.borders||m.Z.borders).medium,";\n ")}),(function(t){return!t.noBorderTop&&"\n border-top: 1px solid ".concat((t.theme.borders||m.Z.borders).medium,";\n ")}),(function(t){return"\n color: ".concat((t.theme.content||m.Z.content).default,";\n ")}),(function(t){return"\n height: ".concat(t.columnHeaderHeight||S,"px;\n ")}),y.iD,b.ry,(function(t){return"\n background-color: ".concat((t.theme.background||m.Z.background).table,";\n border-bottom: 1px solid ").concat((t.theme.borders||m.Z.borders).medium,";\n border-right: 1px solid ").concat((t.theme.borders||m.Z.borders).medium,";\n ")}),1*O.iI);function D(t){var e=t.original,n=8.5*Math.max.apply(Math,(0,i.Z)(e.map((function(t){return(null===t||void 0===t?void 0:t.length)||0})))),r=Math.ceil(n/(P-2*O.iI));return Math.max(r,1)*y.dN+2*O.iI}function L(t){var e=t.columnHeaderHeight,n=t.columns,r=t.data,a=t.disableScrolling,x=t.height,T=t.index,A=t.invalidValues,L=t.maxHeight,M=t.numberOfIndexes,_=t.previewIndexes,C=t.renderColumnHeader,N=t.width,R=(0,o.useContext)(c.ThemeContext),H=(0,o.useRef)(null),Y=(0,o.useRef)(null);(0,o.useEffect)((function(){var t=function(t){var e;null===H||void 0===H||null===(e=H.current)||void 0===e||e.scroll(t.target.scrollLeft,0)};return Y&&Y.current.addEventListener("scroll",t),function(){var e;null===Y||void 0===Y||null===(e=Y.current)||void 0===e||e.removeEventListener("scroll",t)}}),[H,Y]);var U=(0,o.useMemo)((function(){return T&&r&&T.length===r.length}),[r,T]),V=(0,o.useMemo)((function(){var t=[];return(0,Z.w6)(M).forEach((function(e,n){var o=String(null===r||void 0===r?void 0:r.length).length*I;if(U){var u=T.map((function(t){return M>=2?String(t[n]).length:String(t).length}));o=Math.max.apply(Math,(0,i.Z)(u))*I}t.push(o+2*O.iI)})),t}),[r,T,M,U]),B=n.map((function(t){return null===t||void 0===t?void 0:t.Header})).slice(1),F=(0,o.useMemo)((function(){return g()}),[]),z=(0,o.useMemo)((function(){var t=N-(Math.max.apply(Math,(0,i.Z)(V))+1.5*O.iI+F),e=n.length-1,r=P;return r*e<t&&(r=t/e),{width:r}}),[n,V,F,N]),G=(0,d.useTable)({columns:n,data:r,defaultColumn:z},d.useBlockLayout,f.useSticky),X=G.getTableBodyProps,W=G.getTableProps,J=G.headerGroups,q=G.prepareRow,K=G.rows,Q=(0,o.useCallback)((function(t){var e=t.index,n=t.style,r=new Set((null===_||void 0===_?void 0:_.removedRows)||[]),i=K[e];q(i);var a=i.original,c=r.has(e);return(0,E.jsx)("div",k(k({},i.getRowProps({style:k(k({},n),{},{width:"auto"})})),{},{className:"tr",children:i.cells.map((function(t,n){var r,i=n<=M-1,s=t.getCellProps(),d=t.column.id,f=null===A||void 0===A||null===(r=A[d])||void 0===r?void 0:r.includes(e),v=k({},s.style);i&&(v.fontFamily=b.Vp,v.left=0,v.position="sticky",v.textAlign=T?"right":"center",v.width=V[n]);var g,y=a[n-M],x=B.indexOf(d);if(f&&(v.color=m.Z.interactive.dangerBorder),c&&(v.backgroundColor=m.Z.background.danger),Array.isArray(y)||"object"===typeof y)try{y=JSON.stringify(y)}catch(O){y="Error: cannot display value"}return i&&(U?(g=T[e],Array.isArray(g)&&(g=g[n])):g=t.render("Cell")),(0,o.createElement)("div",k(k({},s),{},{className:"td ".concat(i?"td-index-column":""),key:"".concat(n,"-").concat(y),style:v}),g,!i&&(0,E.jsxs)(p.ZP,{justifyContent:"space-between",children:[(0,E.jsxs)(h.ZP,{danger:f,default:!0,wordBreak:!0,children:[!0===y&&"true",!1===y&&"false",(null===y||"null"===y)&&"null",!0!==y&&!1!==y&&null!==y&&"null"!==y&&y]}),f&&(0,E.jsx)(l(),{as:(0,w.o_)(j.mW,x),href:"/datasets/[...slug]",passHref:!0,children:(0,E.jsx)(u.Z,{danger:!0,children:"View all"})})]}))}))}))}),[B,T,A,V,M,q,K,U,_]),$=(0,o.useMemo)((function(){var t;return L?(t=(0,Z.Sm)(K.map(D)),t+=e||S-y.dN):(t=x,t-=e||S),t}),[e,x,L,K]),tt=(0,o.useMemo)((function(){return(0,E.jsx)(s.S_,{estimatedItemSize:S,height:$,itemCount:null===K||void 0===K?void 0:K.length,itemSize:function(t){return D(K[t])},outerRef:Y,style:{maxHeight:L,pointerEvents:a?"none":null},children:Q})}),[a,$,L,Q,K]);return(0,E.jsx)("div",k(k({},W()),{},{className:"table sticky",style:{width:N},children:(0,E.jsxs)("div",k(k({},X()),{},{className:"body",children:[(0,E.jsx)("div",{className:"header",ref:H,children:J.map((function(t,e){return(0,o.createElement)("div",k(k({},t.getHeaderGroupProps()),{},{className:"tr",key:"".concat(t.id,"_").concat(e)}),t.headers.map((function(t,e){var n,r=e<=M-1,i=t.getHeaderProps(),u=k({},i.style);return r?(u.fontFamily=b.Vp,u.left=0,u.position="sticky",u.textAlign="center",u.width=V[e],u.minWidth=V[e]):C?n=C(t,e-M,{width:z.width}):(n=t.render("Header"),u.color=(R||v.Z).content.default,u.padding=1*O.iI,u.minWidth=z.width),(0,o.createElement)("div",k(k({},i),{},{className:"th",key:t.id,style:u,title:r?"Row number":void 0}),n)})))}))}),tt]}))}))}var M=function(t){var e=t.columnHeaderHeight,n=t.columns,r=t.disableScrolling,i=t.height,u=t.index,a=t.invalidValues,l=t.maxHeight,c=t.noBorderBottom,s=t.noBorderLeft,d=t.noBorderRight,f=t.noBorderTop,p=t.previewIndexes,h=t.renderColumnHeader,v=t.rows,m=t.width;if(null===n||void 0===n?void 0:n.some((function(t){return""===t})))return null;var g=(0,o.useMemo)((function(){return null!==u&&void 0!==u&&u.length&&Array.isArray(u[0])?u[0].length:1}),[u]),b=(0,o.useMemo)((function(){return(0,Z.w6)(g).map((function(t,e){return{Header:(0,Z.w6)(e+1).map((function(){return" "})).join(" "),accessor:function(t,e){return e},sticky:"left"}})).concat(null===n||void 0===n?void 0:n.map((function(t){return{Header:String(t),accessor:String(t)}})))}),[n,g]),y=(0,o.useMemo)((function(){return(0,E.jsx)(L,{columnHeaderHeight:e,columns:b,data:v,disableScrolling:r,height:i,index:u,invalidValues:a,maxHeight:l,numberOfIndexes:g,previewIndexes:p,renderColumnHeader:h,width:m})}),[e,b,v,r,i,u,a,l,g,p,h,m]);return(0,E.jsx)(A,{columnHeaderHeight:e,disableScrolling:r,height:i,maxHeight:l?l+37:l,noBorderBottom:c,noBorderLeft:s,noBorderRight:d,noBorderTop:f,children:y})}},66909:function(t,e,n){"use strict";n.d(e,{Eh:function(){return c},t0:function(){return s}});var r=n(38626),i=n(2842),o=n(17679),u=n(61896),a=n(47041),l=n(70515),c=(l.iI,o.O$+3*l.iI+u.dN),s=r.default.div.withConfig({displayName:"indexstyle__SidekickContainerStyle",componentId:"sc-15ofupc-0"})([""," overflow:auto;position:absolute;width:100%;"," ",""],a.w5,(function(t){return"\n height: calc(100vh - ".concat(i.uX,"px - ").concat(t.heightOffset,"px);\n ")}),(function(t){return t.overflowHidden&&"\n overflow: hidden;\n "}));r.default.div.withConfig({displayName:"indexstyle__PaddingContainerStyle",componentId:"sc-15ofupc-1"})(["padding:","px;",""],2*l.iI,(function(t){return t.noPadding&&"\n padding: 0;\n "}))},16488:function(t,e,n){"use strict";n.d(e,{IJ:function(){return v},M8:function(){return E},Vx:function(){return x},XM:function(){return Z},_U:function(){return h},eI:function(){return y},gU:function(){return O},lO:function(){return I},ri:function(){return g},tL:function(){return j},vJ:function(){return w},xH:function(){return b}});var r,i=n(82394),o=n(92083),u=n.n(o),a=n(3917),l=n(4383),c=n(30229),s=n(42122),d=n(86735);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var h=function(t){return!!t&&!Object.values(c.U5).includes(t)};function v(t){return null===t||void 0===t?void 0:t.reduce((function(t,e){var n=e.block_uuid,r=e.completed_at,o=e.started_at,a=e.status,l=null;o&&r&&(l=u()(r).valueOf()-u()(o).valueOf());return p(p({},t),{},(0,i.Z)({},n,{runtime:l,status:a}))}),{})}var m,g=function(t){var e=[{description:function(){return"This pipeline will run continuously on an interval or just once."},label:function(){return"Schedule"},uuid:c.Xm.TIME},{description:function(){return"This pipeline will run when a specific event occurs."},label:function(){return"Event"},uuid:c.Xm.EVENT},{description:function(){return"Run this pipeline when you make an API call."},label:function(){return"API"},uuid:c.Xm.API}];return t?e.slice(0,1):e};function b(t){var e=(0,s.gR)(t,[c.gm.INTERVAL,c.gm.TYPE]),n=t[c.gm.INTERVAL];n&&(e["schedule_interval[]"]=encodeURIComponent(n));var r=t[c.gm.TYPE];return r&&(e["schedule_type[]"]=r),e}function y(t){if(!t)return null;var e=new Date(u()(t).valueOf()),n=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());return new Date(n)}function x(t){return"string"!==typeof t?t:y(t.split("+")[0]).toISOString().split(".")[0]}!function(t){t.DAY="day",t.HOUR="hour",t.MINUTE="minute",t.SECOND="second"}(m||(m={}));var j=(r={},(0,i.Z)(r,m.DAY,86400),(0,i.Z)(r,m.HOUR,3600),(0,i.Z)(r,m.MINUTE,60),(0,i.Z)(r,m.SECOND,1),r);function O(t){var e=m.SECOND,n=t;return t%86400===0?(n/=86400,e=m.DAY):t%3600===0?(n/=3600,e=m.HOUR):t%60===0&&(n/=60,e=m.MINUTE),{time:n,unit:e}}function w(t,e){return t*j[e]}function Z(t,e,n){var r="".concat(t.toISOString().split("T")[0]," ").concat(null===e||void 0===e?void 0:e.hour,":").concat(null===e||void 0===e?void 0:e.minute);if(null!==n&&void 0!==n&&n.includeSeconds&&(r=r.concat(":00")),null!==n&&void 0!==n&&n.localTimezone){var i=u()(t);i.set("hour",+(null===e||void 0===e?void 0:e.hour)||0),i.set("minute",+(null===e||void 0===e?void 0:e.minute)||0),i.set("second",0),r=i.format(a.lE),null!==n&&void 0!==n&&n.convertToUtc&&(r=(0,a.d$)(r,{includeSeconds:null===n||void 0===n?void 0:n.includeSeconds,utcFormat:!0}))}return r}function E(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="",i=!0;return i&&(n?r="".concat(window.origin,"/api/pipeline_schedules/").concat(null===t||void 0===t?void 0:t.id,"/api_trigger"):(r="".concat(window.origin,"/api/pipeline_schedules/").concat(null===t||void 0===t?void 0:t.id,"/pipeline_runs"),null!==t&&void 0!==t&&t.token&&(r="".concat(r,"/").concat(t.token)))),i&&(e=window.location.port)&&(r=r.replace(e,l.QT)),r}function T(t,e,n){return t.match(/[*,-/]/)?{additionalOffset:0,cronValue:t}:function(t,e,n){var r=n.indexOf(t),i=0;if(e<0)for(var o=0;o>e;o--)0===r?(r=n.length-1,i-=1):r-=1;else if(e>0)for(var u=0;u<e;u++)r===n.length-1?(r=0,i+=1):r+=1;return{additionalOffset:i,cronValue:String(n[r]||t)}}(+t,e,n)}var k=(0,d.m5)(60),S=(0,d.m5)(24),P=(0,a.Cs)();function I(t,e){if(!t)return t;var n=u()().local().format("Z"),r=n.split(":"),i="-"===n[0],o=3===r[0].length?Number(r[0].slice(1)):Number(r[0]),a=Number(r[1]);(i&&!e||!i&&e)&&(o=-o,a=-a);var l=t.split(" "),c=l[0],s=l[1],d=l[2],f=T(c,a,k),p=T(s,o+f.additionalOffset,S);if(l[0]=f.cronValue,l[1]=p.cronValue,0!==(null===p||void 0===p?void 0:p.additionalOffset)){var h=T(d,p.additionalOffset,P);l[2]=h.cronValue}return l.join(" ")}},52729:function(t,e,n){"use strict";n.d(e,{Z:function(){return U}});var r=n(26304),i=n(21831),o=n(82394),u=n(82684),a=n(26226),l=n(84969),c=n(90948),s=n(65743),d=n(29989),f=n(38626),p=n(61655),h=n(16853),v=n(65376),m=n(48072),g=n(98677),b=n(84181),y=n(55485),x=n(4190),j=n(30160),O=n(94035),w=n(70987),Z=n(79633),E=n(89370),T=n(95363),k=n(61896),S=n(70515),P=n(88543),I=n(6568),A=function(t){return t.slice(0,10)},D=function(t,e){var n=t.toISOString().slice(0,10),r=e.toISOString().slice(0,10);return"".concat(n,":").concat(r)},L=n(79221),M=n(98684),_=n(28598),C=["height","loading","selected","width","xAxisLabel","yAxisLabel"];function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function R(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?N(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var H={bottom:S.iI,left:3*S.iI,right:0,top:1*S.iI},Y=(0,p.Z)((function(t){var e=t.columnType,n=t.data,r=void 0===n?[]:n,o=t.getBarColor,a=t.getXValue,p=t.getYValue,y=t.height,x=t.hideTooltip,O=t.large,C=t.margin,N=void 0===C?{}:C,Y=t.muted,U=t.noPadding,V=t.numberOfXTicks,B=t.renderTooltipContent,F=t.selected,z=t.showAxisLabels,G=t.showTooltip,X=t.showYAxisLabels,W=t.showZeroes,J=t.sortData,q=t.tooltipData,K=t.tooltipLeft,Q=t.tooltipOpen,$=t.tooltipTop,tt=t.width,et=t.xLabelFormat,nt=t.yLabelFormat,rt=O?k.J5:k.VK,it=(0,u.useCallback)((function(t){return a?a(t):t[0]}),[a]),ot=(0,u.useCallback)((function(t){return p?p(t):t[1]}),[p]),ut=(0,u.useContext)(f.ThemeContext),at=e===E.RL.DATETIME,lt=R(R({},H),N);z&&(lt=R(R({},lt),{},{left:lt.left+S.iI}));var ct=J?J(r):r.sort((function(t,e){return e[1]-t[1]})),st=at?r.sort((function(t,e){return new Date(t[0])-new Date(e[0])})).filter((function(t){return!!t[0]})):ct.slice(0,60),dt=tt-(lt.left+lt.right),ft=y-(lt.bottom+lt.top),pt=at?function(t,e){var n,r=t.map((function(t){return new Date(t[0])})).sort((function(t,e){return t-e}));return(0,I.Z)({domain:(n=r,[(0,P.Z)(n[0]),(0,P.Z)(n[n.length-1])]),nice:!0,range:[0,e]})}(st,dt):null,ht=function(t,e){if(null===e)return{};var n=e.ticks().map((function(t){return t.toISOString()})),r={},i=0,o=1;return t.forEach((function(t){var e=new Date(t[0]),u=t[1],a=n[i],l=n[o];if(a&&l){var c=new Date(a),s=new Date(l),d=D(c,s);if(e>=c&&e<s)r[d]=(r[d]||0)+u;else for(;o<n.length||!r[d];)if(i+=1,o+=1,c=new Date(n[i]),s=new Date(n[o]),d=D(c,s),e>=c&&e<s)return void(r[d]=(r[d]||0)+u)}})),n.reduce((function(t,e,n,r){if(0===n)return t;var i=A(e),o=A(r[n-1]);return t.push("".concat(o,":").concat(i)),t}),[]).forEach((function(t){r[t]=r[t]||0})),r}(st,pt);st=pt?Object.entries(ht).sort((function(t,e){return new Date(A(t[0]))-new Date(A(e[0]))})):st;var vt=pt?Math.max.apply(Math,(0,i.Z)(Object.values(ht))):0,mt=st.reduce((function(t,e){return(0!==ot(e)||at||W)&&t.push(it(e)),t}),[]),gt=mt.length,bt=function(t,e,n){return n?.05:t>=30&&e<300?.5:t>=15?.3:t>=5?.1:t>2?.05:2===t?.025:0}(gt,tt,at),yt=(0,g.Z)({domain:mt,paddingInner:U?null:bt,range:[0,dt],round:!1}),xt=(0,b.Z)({domain:[0,Math.max.apply(Math,(0,i.Z)(st.map(ot)))],range:[ft,0],round:!0}),jt=(0,M.K)(ut),Ot={active:((null===ut||void 0===ut?void 0:ut.content)||w.Z.content).active,default:jt[0],muted:((null===ut||void 0===ut?void 0:ut.monotone)||w.Z.monotone).gray,selected:((null===ut||void 0===ut?void 0:ut.elevation)||w.Z.elevation).visualizationAccent},wt=Ot.default;Y?wt=Ot.muted:F&&(wt=Ot.selected);var Zt=gt?at?vt:Math.max.apply(Math,(0,i.Z)(st.map((function(t){return ot(t)})))):0,Et=Math.floor(Zt/6),Tt=[0],kt=0;if(Zt>6)for(;kt<Zt;)Tt.push(kt+Et),kt+=Et;else for(;kt<=Zt;)Tt.push(kt+1),kt+=1;Zt>9999?lt=R(R({},lt),{},{left:O?8*S.iI:4.1*S.iI}):Zt>999&&(lt=R(R({},lt),{},{left:O?5*S.iI:3.6*S.iI}));var St=at?2.25:0,Pt=gt<10||e===E.RL.NUMBER||e===E.RL.NUMBER_WITH_DECIMALS||at||X,It=(0,u.useCallback)((function(t){var e=(0,m.Z)(t)||{x:0,y:0},n=e.x,r=e.y,i=(n-(z?lt.left:0))/dt,o=Math.floor(gt*i),u=st[o];"undefined"===typeof u&&(u=st[0]);var a=it(u);a=a.length>15?"".concat(a.slice(0,21)):a;var l=B?B(u):"".concat(a," (").concat(ot(u),")");G({tooltipData:l,tooltipLeft:n-lt.left,tooltipTop:r+lt.top})}),[st,gt,it,ot,lt.left,lt.top,B,z,G,tt]);return tt<10||!r.length?null:(0,_.jsxs)("div",{children:[(0,_.jsxs)("svg",{height:y+lt.bottom*(at?7.5:3),width:tt,children:[(0,_.jsx)(d.Z,{left:z?lt.left:0,top:lt.top+St,children:st.reduce((function(t,e){var n=it(e),r=ot(e);if(0!==r){var i,u=yt.bandwidth(),a=ft-(null!==(i=xt(r))&&void 0!==i?i:0),l=yt(n),c=ft-a;t.push((0,_.jsx)(s.Z,{fill:o?o(e):wt,height:a,onMouseLeave:function(){return x()},onMouseMove:It,onTouchMove:It,onTouchStart:It,width:u,x:l,y:c},"bar-".concat(n)))}return t}),[])}),z&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(l.Z,{left:lt.left,scale:xt,stroke:Ot.muted,tickFormat:function(t){return nt?nt(t):(0,L.P5)(t)},tickLabelProps:function(){return{fill:Ot.active,fontFamily:T.ry,fontSize:rt,textAnchor:"end",transform:"translate(-2,2.5)"}},tickStroke:Ot.muted,tickValues:Tt,top:lt.top+St}),(0,_.jsx)(c.Z,{left:lt.left,numTicks:at?void 0:V||6,orientation:"top",scale:pt||yt,stroke:Ot.muted,tickFormat:function(t){return et?et(String(t)):at?t.toISOString().slice(0,10):String(t)},tickLabelProps:function(t){return{fill:Pt?Ot.active:"transparent",fontFamily:T.ry,fontSize:rt,textAnchor:"middle",transform:at?"rotate(-90,".concat(pt(t),",0) translate(-33,10)"):"translate(0, ".concat(3*lt.bottom,")")}},tickLineProps:{transform:"translate(0,".concat(S.iI,")")},tickStroke:Pt?Ot.muted:"transparent",top:ft+lt.top+St})]})]}),Q&&q&&(0,_.jsx)(h.Z,{left:K,style:v.j,top:$,children:(0,_.jsx)(j.ZP,{color:Z.E5,small:!0,children:q})})]})}));var U=function(t){var e=t.height,n=t.loading,i=t.selected,o=t.width,u=t.xAxisLabel,l=t.yAxisLabel,c=(0,r.Z)(t,C);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{style:{display:"flex",height:e,marginBottom:S.iI,width:"100%"},children:[l&&(0,_.jsx)(y.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,_.jsx)(O.Z,{children:(0,_.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:l})})}),(0,_.jsxs)("div",{style:{height:e,width:l?0===o?o:o-28:o},children:[n&&(0,_.jsx)(x.Z,{}),!n&&(0,_.jsx)(a.Z,{children:function(t){var e=t.height,n=t.width;return(0,_.jsx)(Y,R(R({},c),{},{height:e,selected:i,width:n}))}})]})]}),u&&(0,_.jsx)("div",{style:{paddingLeft:l?36:0,paddingTop:4},children:(0,_.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:u})})]})}},87862:function(t,e,n){"use strict";n.d(e,{Z:function(){return S}});var r=n(26304),i=n(82394),o=n(75582),u=n(26226),a=n(28940),l=n(82684),c=n(29989),s=n(38626),d=n(11684),f=n(24903),p=n(30160),h=n(44897),v=n(95363),m=n(61896),g=n(70515),b=n(98684),y=n(28598),x=["height","width","xAxisLabel"];function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var w={bottom:0,left:0,right:0,top:0},Z=function(t){var e=t.endAngle;return{endAngle:e>Math.PI?2*Math.PI:0,opacity:0,startAngle:e>Math.PI?2*Math.PI:0}},E=function(t){var e=t.startAngle;return{endAngle:t.endAngle,opacity:1,startAngle:e}};function T(t){var e=t.animate,n=t.arcs,r=t.path,i=t.getKey,u=t.getColor,a=t.onClickDatum,l=t.textColor;return(0,d.useTransition)(n,{enter:E,from:e?Z:E,keys:i,leave:e?Z:E,update:E})((function(t,e,n){var c=n.key,s=r.centroid(e),f=(0,o.Z)(s,2),p=f[0],h=f[1],g=e.endAngle-e.startAngle>=.1;return(0,y.jsxs)("g",{children:[(0,y.jsx)(d.animated.path,{d:(0,d.to)([t.startAngle,t.endAngle],(function(t,n){return r(O(O({},e),{},{endAngle:n,startAngle:t}))})),fill:u(e),onClick:function(){return a(e)},onTouchStart:function(){return a(e)}}),g&&(0,y.jsx)(d.animated.g,{style:{opacity:t.opacity},children:(0,y.jsx)("text",{dy:".33em",fill:l,fontFamily:v.ry,fontSize:m.J5,pointerEvents:"none",textAnchor:"middle",x:p,y:h,children:i(e)})})]},c)}))}function k(t){var e=t.animate,n=void 0===e||e,r=t.data,i=t.getX,o=t.getY,u=t.height,d=t.margin,p=void 0===d?w:d,v=t.textColor,m=t.width,x=(0,l.useState)(null),j=x[0],Z=x[1],E=(0,l.useContext)(s.ThemeContext),k=v||(null===E||void 0===E?void 0:E.content.active)||h.Z.content.active;if(m<10)return null;var S=(0,f.Z)({domain:r.map((function(t){return i(t)})),range:(0,b.K)(E)}),P=m-p.left-p.right,I=u-p.top-p.bottom,A=Math.min(P,I)/2,D=I/2,L=P/2,M=Math.min(P/4,12*g.iI);return(0,y.jsx)("svg",{height:u,width:m,children:(0,y.jsx)(c.Z,{left:L+p.left,top:D+p.top,children:(0,y.jsx)(a.Z,{cornerRadius:g.iI/2,data:j?r.filter((function(t){return JSON.stringify(t)===JSON.stringify(j)})):r,innerRadius:Math.max(A-M,12.25),outerRadius:A,padAngle:.005,pieValue:o,children:function(t){return(0,y.jsx)(T,O(O({},t),{},{animate:n,getColor:function(t){var e=t.data;return S(i(e))},getKey:function(t){var e=t.data;return i(e)},onClickDatum:function(t){var e=t.data;return n&&Z(j&&JSON.stringify(j)===JSON.stringify(e)?null:e)},textColor:k}))}})})})}function S(t){var e=t.height,n=t.width,i=t.xAxisLabel,o=(0,r.Z)(t,x),a={};return"undefined"!==typeof e&&(a.height=e),"undefined"!==typeof n&&(a.width=n),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{style:a,children:(0,y.jsx)(u.Z,{children:function(t){var e=t.width,n=t.height;return(0,y.jsx)(k,O(O({},o),{},{height:n,width:e}))}})}),i&&(0,y.jsx)("div",{style:{paddingTop:4},children:(0,y.jsx)(p.ZP,{center:!0,muted:!0,small:!0,children:i})})]})}},98684:function(t,e,n){"use strict";n.d(e,{K:function(){return i}});var r=n(70987),i=function(t){var e=t||r.Z,n=e.brand,i=n.earth200,o=n.earth300,u=n.earth400,a=n.energy200,l=n.energy300,c=n.energy400,s=n.fire200,d=n.fire300,f=n.fire400,p=n.water200,h=n.water300,v=n.water400,m=n.wind200,g=n.wind300,b=n.wind400,y=e.chart;return[y.backgroundPrimary,y.backgroundSecondary,y.backgroundTertiary].concat([b,v,f,c,u,g,h,d,l,o,m,p,s,a,i])}},94035:function(t,e,n){"use strict";var r=n(38626).default.div.withConfig({displayName:"YAxisLabelContainer",componentId:"sc-qwp21x-0"})(["-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);white-space:nowrap;"]);e.Z=r},79221:function(t,e,n){"use strict";n.d(e,{P5:function(){return i},Vs:function(){return o}});n(81728);var r=Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:2});function i(t){return"number"!==typeof t?t:t>=1e4?r.format(t):t.toString()}function o(t,e,n){var r,i;if("undefined"===typeof t||"undefined"===typeof e)return 0;var o=null===t||void 0===t||null===(r=t(e,n))||void 0===r||null===(i=r.props)||void 0===i?void 0:i.children;return(Array.isArray(o)?o:[o]).join("").length}},48888:function(t,e,n){"use strict";n.d(e,{AE:function(){return i},H3:function(){return o},mW:function(){return u},oE:function(){return a},yg:function(){return r}});var r="tabs[]",i="show_columns",o="column",u="Reports",a="Visualizations"},17679:function(t,e,n){"use strict";n.d(e,{O$:function(){return ot},Fk:function(){return ut}});var r=n(75582),i=n(12691),o=n.n(i),u=n(26304),a=n(21831),l=n(82394),c=n(82684),s=n(26226),d=n(84969),f=n(90948),p=n(65743),h=n(28108),v=n(79487),m=n(29989),g=n(38626),b=n(61655),y=n(16853),x=n(65376),j=n(48072),O=n(24903),w=n(84181),Z=n(98677),E=n(30160),T=n(70987),k=n(79633),S=n(61896),P=n(70515),I=n(95363),A=n(28598),D=["height","width"];function L(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function M(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?L(Object(n),!0).forEach((function(e){(0,l.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var _={bottom:5*P.iI,left:3*P.iI,right:20*P.iI,top:0},C=function(t){return t.x},N=function(t){return t.y},R=(0,b.Z)((function(t){var e=t.data,n=t.height,r=t.hideTooltip,i=t.large,o=t.margin,u=void 0===o?{}:o,l=t.renderTooltipContent,s=t.showTooltip,b=t.tooltipData,P=t.tooltipLeft,D=t.tooltipOpen,L=t.tooltipTop,R=t.width,H=t.xAxisLabel,Y=t.xNumTicks,U=t.yLabelFormat,V=t.ySerialize,B=U;B||(B=function(t){return t.length>20?"".concat(t.substring(0,20),"..."):t});var F=i?S.iD:S.J5,z=(0,c.useContext)(g.ThemeContext),G=M(M({},_),u),X=e.slice(Math.max(0,e.length-50)),W=Object.keys(X[0]||[]).filter((function(t){return"x"===t})),J=(0,O.Z)({domain:W,range:[k.hM]}),q=(0,w.Z)({domain:[0,Math.max.apply(Math,(0,a.Z)(X.map(C)))],nice:!0}),K=(0,Z.Z)({domain:X.map(N),padding:.35}),Q={active:(null===z||void 0===z?void 0:z.content.default)||T.Z.content.default,backgroundPrimary:(null===z||void 0===z?void 0:z.chart.backgroundPrimary)||T.Z.chart.backgroundPrimary,backgroundSecondary:(null===z||void 0===z?void 0:z.chart.backgroundSecondary)||T.Z.chart.backgroundSecondary,muted:(null===z||void 0===z?void 0:z.content.muted)||T.Z.content.muted,primary:(null===z||void 0===z?void 0:z.chart.primary)||T.Z.chart.primary,tooltipBackground:(null===z||void 0===z?void 0:z.background.navigation)||T.Z.background.navigation},$=X.map(V),tt=Math.min(Math.max.apply(Math,(0,a.Z)($.map((function(t){return String(t).length})))),20);6*tt>2*G.right?G.right+=5.5*tt:6*tt>=G.right&&(G.right+=3.75*tt);var et=R-G.left-G.right,nt=n-G.top-G.bottom;G.left+=7*tt,q.rangeRound([0,et]),K.rangeRound([nt,0]);var rt=X.map(C).length,it=K($[rt-1]),ot=(0,c.useCallback)((function(t){var e=(0,j.Z)(t)||{x:0,y:0},n=e.x,r=e.y,i=1-(r-it/2)/(nt-it),o=Math.floor(i*rt),u=X[o];"undefined"===typeof u&&(u=X[o-1]),r>it&&r<nt-it&&s({tooltipData:u,tooltipLeft:n,tooltipTop:r+G.top})}),[X,rt,G.top,s,it,nt]);return R<10?null:(0,A.jsxs)("div",{children:[(0,A.jsxs)("svg",{height:n,width:R,children:[(0,A.jsx)(p.Z,{fill:"transparent",height:n-(G.top+G.bottom),onMouseLeave:function(){return r()},onMouseMove:ot,onTouchMove:ot,onTouchStart:ot,rx:14,width:R-G.left,x:G.left,y:0}),(0,A.jsxs)(m.Z,{left:G.left,top:G.top,children:[(0,A.jsx)(h.Z,{color:J,data:X,height:nt,keys:W,pointerEvents:"none",xScale:q,y:V,yScale:K,children:function(t){return t.map((function(t){return t.bars.map((function(e){return(0,A.jsx)("g",{children:(0,A.jsx)(A.Fragment,{children:(0,A.jsx)("rect",{fill:Q.backgroundPrimary,height:e.height,pointerEvents:"none",rx:4,width:e.width,x:e.x,y:e.y})})},"barstack-horizontal-".concat(t.index,"-").concat(e.index))}))}))}}),(0,A.jsx)(d.Z,{hideTicks:!0,scale:K,stroke:Q.muted,tickFormat:function(t){return B(t)},tickLabelProps:function(){return{fill:Q.active,fontFamily:I.ry,fontSize:F,style:{width:"10px"},textAnchor:"end"}},tickStroke:Q.muted,tickValues:$,top:2}),(0,A.jsx)(f.Z,{label:H,labelProps:{fill:Q.muted,fontFamily:I.ry,fontSize:F,textAnchor:"middle"},numTicks:Y,scale:q,stroke:Q.muted,tickLabelProps:function(){return{fill:Q.active,fontFamily:I.ry,fontSize:F,textAnchor:"middle"}},tickStroke:Q.muted,top:nt})]}),b&&(0,A.jsx)("g",{children:(0,A.jsx)(v.Z,{from:{x:G.left,y:L},pointerEvents:"none",stroke:k.Ej,strokeDasharray:"5,2",strokeWidth:1,to:{x:et+G.left,y:L}})})]}),D&&b&&(0,A.jsx)(y.Z,{left:P,style:M(M({},x.j),{},{backgroundColor:Q.tooltipBackground}),top:L,children:(0,A.jsxs)(E.ZP,{black:!0,small:!0,children:[null===l||void 0===l?void 0:l(b),!l&&C(b).toFixed(4)]})})]})}));var H,Y,U,V,B=function(t){var e=t.height,n=t.width,r=(0,u.Z)(t,D);return(0,A.jsx)("div",{style:{height:e,width:"undefined"===typeof n?"100%":n},children:(0,A.jsx)(s.Z,{children:function(t){var e=t.width,n=t.height;return(0,A.jsx)(R,M(M({},r),{},{height:n,width:e}))}})})},F=n(97618),z=n(52729),G=n(48670),X=n(87862),W=n(89370),J=n(86735),q=(J.Qj,J.tS,J.tS,J.tS,J.tS,J.Qj,J.Qj,J.Qj,J.tS,J.tS,H={},(0,l.Z)(H,W.RL.EMAIL,"domain_distribution"),(0,l.Z)(H,W.RL.TEXT,"word_distribution"),(0,l.Z)(H,W.RL.LIST,"element_distribution"),(0,l.Z)(H,"default","value_counts"),H),K=[].concat((0,a.Z)(W.P_),[W.RL.TEXT,W.RL.EMAIL,W.RL.LIST]),Q=(Y={},(0,l.Z)(Y,W.RL.EMAIL,"Domain distribution"),(0,l.Z)(Y,W.RL.TEXT,"Word distribution"),(0,l.Z)(Y,W.RL.LIST,"Element distribution"),(0,l.Z)(Y,"default","Distribution of values"),n(31353));!function(t){t.RANGE="range"}(U||(U={})),function(t){t.BAR_HORIZONTAL="bar_horizontal",t.LINE_CHART="line_chart",t.HISTOGRAM="histogram"}(V||(V={}));var $=n(48888),tt=n(92083),et=n.n(tt),nt=n(81728);function rt(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r||{},o=i.calculateAnomaly,u=i.feature,l=i.getYValue,c=t.x,s=t.x_metadata,d=s.label,f=s.label_type,p=t.y,h=(null===p||void 0===p?void 0:p.map((function(t){return null===l||void 0===l?void 0:l(t)})))||[],v=Math.max.apply(Math,(0,a.Z)(h)),m=Math.max.apply(Math,(0,a.Z)(h)),g=(0,J.Sm)(h),b=(0,J.IN)(h),y=g/Math.max(1,h.length),x=e[d]||u,j=null===x||void 0===x?void 0:x.columnType,O=W.RL.DATETIME===j,w=[],Z=[],E=c.length,T=c.map((function(t,e){var r,i,u,a,l=t.label,c=t.max,s=t.min,d=p[e];if(U.RANGE===f)if(n||(n=c-s),a=W.RL.NUMBER===j&&n<=E)r=Number(s);else if(r=n/2+s,O){var x="M/D/YYYY",T="M/D/YYYY",k="M/D/YYYY";n<=1?(x=n<=.1?"H:mm:ss.SSS":"H:mm:ss",T="H:mm:ss.SSS",k="H:mm:ss.SSS"):n<=60?(x="H:mm",T="H:mm:ss",k="H:mm:ss"):n<=3600?(x="H:mm",T="M/D/YYYY H:mm",k="H:mm"):n<=86400&&(T="M/D/YYYY H:mm",k="M/D/YYYY H:mm"),r=et().unix(r).format(x),i=et().unix(s).format(T),u=et().unix(c).format(k)}else r=(0,nt.QV)(r);else r=l;var S=e>=1?p[e-1]:null,P=!1;o&&(P=o({x:t,y:d,yPrevious:S,yValues:h,yValuesAverage:y,yValuesMax:v,yValuesMin:m,yValuesStandardDeviation:b,yValuesSum:g}));var I={hideRange:a,isUnusual:P,x:t,xLabel:r,xLabelMax:u,xLabelMin:i,y:d};return P&&(a?Z.push(I):w.push(I)),I}));return{distribution:{data:T,featureUUID:d},rangedWithUnusualDistribution:(0,J.YC)(w,(function(t){var e=t.y;return l(e)}),{ascending:!1}),unusualDistribution:(0,J.YC)(Z,(function(t){var e=t.y;return l(e)}),{ascending:!1})}}var it=n(40489);var ot=12*P.iI;function ut(t){var e=t.columnTypes,n=t.columns,i=t.insightsByFeatureUUID,u=t.insightsOverview,a=t.noColumnLinks,l=void 0!==a&&a,c=t.statistics;return function(t,a,s){var d=s.width,f=n[a],p=e[f],h=Q.T5[p],v=(i[f]||{}).charts,m=u.time_series,g=n.filter((function(t){return e[t]===W.RL.DATETIME})),b=null===m||void 0===m?void 0:m.map((function(t){return rt(t,{},{feature:{columnType:p,uuid:f}}).distribution})),y={};null===b||void 0===b||b.forEach((function(t,e){var n=t.data;y[g[e]]=(0,A.jsx)(z.Z,{data:n.map((function(t){var e=t.x,n=t.xLabel,r=t.xLabelMax,i=t.xLabelMin;return[n,t.y.count,i,r,e.min,e.max]})),height:ot,large:!0,margin:{bottom:0,left:0,right:0,top:0},renderTooltipContent:function(t){var e=(0,r.Z)(t,4),n=e[1],i=e[2],o=e[3];return(0,A.jsxs)("p",{children:["Rows: ",n,(0,A.jsx)("br",{}),"Start: ",i,(0,A.jsx)("br",{}),"End: ",o]})},sortData:function(t){return(0,J.YC)(t,"[4]")}},f)}));var x,j=null===v||void 0===v?void 0:v.find((function(t){var e=t.type;return V.HISTOGRAM===e})),O=(j?rt(j,{},{feature:{columnType:p,uuid:f},getYValue:function(t){return t.value}}):{}).distribution,w=void 0===O?null:O,Z=q[p]||q.default,T=null===c||void 0===c?void 0:c["".concat(f,"/").concat(Z)],k=Object.entries(T||{}).map((function(t){var e=(0,r.Z)(t,2),n=e[0];return{x:e[1],y:n}})),S=W.RL.TRUE_OR_FALSE===p;if(W.RL.DATETIME===p)x=y[f];else if(w&&!S)x=(0,A.jsx)(z.Z,{data:w.data.map((function(t){var e=t.hideRange,n=t.isUnusual,r=t.x;return[t.xLabel,t.y.value,r.min,r.max,n,e]})),height:ot,margin:{bottom:0,left:0,right:0,top:0},renderTooltipContent:function(t){var e=(0,r.Z)(t,6),n=e[1],i=e[2],o=e[3],u=e[5];return(0,A.jsxs)("p",{children:[u&&(0,A.jsxs)(A.Fragment,{children:["Rows: ",n,(0,A.jsx)("br",{}),"Value: ",i]}),!u&&(0,A.jsxs)(A.Fragment,{children:["Rows: ",n,(0,A.jsx)("br",{}),"Range: ",i," - ",o]})]})},sortData:function(t){return(0,J.YC)(t,"[2]")},width:d-2*P.iI});else if(K.includes(p)){var I=(0,J.YC)((0,J.YC)(k,"x",{ascending:!1}).slice(0,5),"x");x=(0,A.jsx)(B,{data:I,height:ot,margin:{bottom:0,left:0,right:20,top:0},renderTooltipContent:function(t){var e=t.x,n=t.y;return"".concat(n," appears ").concat((0,nt.x6)(e)," times")},xNumTicks:2,ySerialize:function(t){return t.y}})}else S&&T&&(x=(0,A.jsx)(X.Z,{data:Object.entries(T),getX:function(t){var e=(0,r.Z)(t,2),n=e[0],i=e[1];return"".concat(n," (").concat((0,nt.x6)(i),")")},getY:function(t){return(0,r.Z)(t,2)[1]},height:ot}));return(0,A.jsxs)("div",{style:{padding:P.iI},children:[(0,A.jsxs)("div",{style:{alignItems:"center",display:"flex",marginBottom:P.iI},children:[h&&(0,A.jsx)(F.Z,{title:W.Rp[p],children:(0,A.jsx)(h,{size:2*P.iI})}),(0,A.jsx)("div",{style:{marginLeft:.5*P.iI,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:d-4.5*P.iI},children:l?(0,A.jsx)(E.ZP,{bold:!0,default:!0,title:n[a],children:n[a]}):(0,A.jsx)(o(),{as:(0,it.o_)($.oE,a),href:"/datasets/[...slug]",passHref:!0,children:(0,A.jsx)(G.Z,{bold:!0,monospace:!0,secondary:!0,small:!0,title:n[a],children:n[a]})})})]}),x,!x&&(0,A.jsx)("div",{style:{height:ot}})]})}}},40489:function(t,e,n){"use strict";n.d(e,{o_:function(){return l}});var r=n(75582),i=n(34376),o=n(48888);n(82684),n(12691),n(71180),n(58036),n(97618),n(55485),n(48670),n(38276),n(30160),n(72473),n(28598);var u,a=n(69419);!function(t){t.DATASETS="datasets",t.DATASET_DETAIL="dataset_detail",t.COLUMNS="features",t.COLUMN_DETAIL="feature_detail",t.EXPORT="export"}(u||(u={}));var l=function(t,e){var n=(0,i.useRouter)().query.slug,l=void 0===n?[]:n,c=(0,r.Z)(l,1)[0],s=(0,a.iV)(),d=s.show_columns,f=s.column,p="/".concat(u.DATASETS,"/").concat(c),h="".concat(o.H3,"=").concat(f||e),v="".concat(o.yg,"=").concat(t,"&").concat(h,"&").concat(o.AE,"=").concat(d||0);return"".concat(p,"?").concat(v)}},44265:function(t,e,n){"use strict";n.d(e,{Az:function(){return c},BF:function(){return l},Do:function(){return d},IK:function(){return a},P0:function(){return i},VO:function(){return u},sZ:function(){return s}});var r,i,o=n(82394),u=n(41143).V,a=[u.FAILED,u.COMPLETED,u.RUNNING,u.CANCELLED,u.INITIAL],l=[u.INITIAL,u.RUNNING],c=[u.CANCELLED,u.COMPLETED,u.FAILED],s="__mage_variables",d=(r={},(0,o.Z)(r,u.CANCELLED,"Cancelled"),(0,o.Z)(r,u.COMPLETED,"Done"),(0,o.Z)(r,u.FAILED,"Failed"),(0,o.Z)(r,u.INITIAL,"Ready"),(0,o.Z)(r,u.RUNNING,"Running"),r);!function(t){t.PIPELINE_UUID="pipeline_uuid[]",t.STATUS="status[]",t.TAG="pipeline_tag[]"}(i||(i={}))},30229:function(t,e,n){"use strict";n.d(e,{TR:function(){return p},U5:function(){return l},Wb:function(){return f},Xm:function(){return o},Z4:function(){return c},fq:function(){return a},gm:function(){return s},kJ:function(){return d}});var r,i,o,u=n(82394);!function(t){t.API="api",t.EVENT="event",t.TIME="time"}(o||(o={}));var a,l,c=(r={},(0,u.Z)(r,o.API,(function(){return"API"})),(0,u.Z)(r,o.EVENT,(function(){return"event"})),(0,u.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(t){t.ACTIVE="active",t.INACTIVE="inactive"}(a||(a={})),function(t){t.ONCE="@once",t.HOURLY="@hourly",t.DAILY="@daily",t.WEEKLY="@weekly",t.MONTHLY="@monthly",t.ALWAYS_ON="@always_on"}(l||(l={}));var s,d,f=[l.ONCE,l.HOURLY,l.DAILY,l.WEEKLY,l.MONTHLY];!function(t){t.INTERVAL="frequency[]",t.STATUS="status[]",t.TAG="tag[]",t.TYPE="type[]"}(s||(s={})),function(t){t.CREATED_AT="created_at",t.NAME="name",t.PIPELINE="pipeline_uuid",t.STATUS="status",t.TYPE="schedule_type"}(d||(d={}));var p=(i={},(0,u.Z)(i,d.CREATED_AT,"Created at"),(0,u.Z)(i,d.NAME,"Name"),(0,u.Z)(i,d.PIPELINE,"Pipeline"),(0,u.Z)(i,d.STATUS,"Active"),(0,u.Z)(i,d.TYPE,"Type"),i)},14532:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return et}});var r=n(77837),i=n(75582),o=n(82394),u=n(38860),a=n.n(u),l=n(82684),c=n(69864),s=n(34376),d=n(23192),f=n(71180),p=n(15338),h=n(97618),v=n(55485),m=n(85854),g=n(55072),b=n(75457),y=n(44265),x=n(57653),j=n(93808),O=n(38276),w=n(4190),Z=n(30160),E=n(35686),T=n(21831),k=n(26304),S=n(90299),P=n(93859),I=n(24138),A=n(48339),D=n(70515),L=n(66909),M=n(8955),_=n(16488),C=n(81728),N=n(86735),R=n(28598),H=["blockRuns","blocksOverride","columns","dataType","height","heightOffset","loadingData","outputs","pipeline","renderColumnHeader","rows","selectedRun","selectedTab","setSelectedTab","textData"];function Y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function U(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var V={uuid:"Dependency tree"},B={uuid:"Block output"},F=[B,V];var z=n(28795),G=n(81655),X=n(3917),W=n(72619),J=n(3314),q=n(69419),K=n(70320);function Q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function $(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function tt(t){var e=t.pipeline,n=t.pipelineRun,r=(0,K.q)(),o=(0,s.useRouter)(),u=(0,q.iV)(),a=null!==u&&void 0!==u&&u.page?u.page:0,j=(0,l.useState)(null),Y=j[0],Q=j[1],tt=(0,l.useState)(F[0]),et=tt[0],nt=tt[1],rt=(0,l.useState)(null),it=rt[0],ot=rt[1],ut=E.ZP.blocks.pipeline_runs.list(null===n||void 0===n?void 0:n.id,{},{refreshInterval:5e3}).data,at=e.uuid,lt=E.ZP.pipelines.detail(at,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,ct=(0,l.useMemo)((function(){return $($({},null===lt||void 0===lt?void 0:lt.pipeline),{},{uuid:at})}),[lt,at]),st=E.ZP.pipeline_runs.detail(n.id,{_format:"with_basic_details"},{refreshInterval:3e3,revalidateOnFocus:!0}).data,dt=(0,l.useMemo)((function(){return(null===st||void 0===st?void 0:st.pipeline_run)||{}}),[st]),ft=dt.execution_date,pt=dt.id,ht=dt.status,vt={_limit:g.Q,_offset:a*g.Q,pipeline_run_id:pt},mt=null===u||void 0===u?void 0:u[G.lG.SORT_COL_IDX],gt=null===u||void 0===u?void 0:u[G.lG.SORT_DIRECTION];if(mt){var bt=d.fi[mt],yt=gt||G.sh.ASC;vt.order_by="".concat(bt,"%20").concat(yt)}var xt=E.ZP.block_runs.list(vt,{refreshInterval:5e3}),jt=xt.data,Ot=xt.mutate,wt=(0,l.useMemo)((function(){return(null===jt||void 0===jt?void 0:jt.block_runs)||[]}),[jt]),Zt=(0,c.Db)(E.ZP.pipeline_runs.useUpdate(pt),{onSuccess:function(t){return(0,W.wD)(t,{callback:function(){Q(null),null===Ot||void 0===Ot||Ot()},onErrorCallback:function(t,e){return ot({errors:e,response:t})}})}}),Et=(0,i.Z)(Zt,2),Tt=Et[0],kt=Et[1].isLoading,St=E.ZP.outputs.block_runs.list(null===Y||void 0===Y?void 0:Y.id),Pt=St.data,It=St.loading;(0,l.useEffect)((function(){Y||(null===et||void 0===et?void 0:et.uuid)!==B.uuid||nt(V)}),[Y,null===et||void 0===et?void 0:et.uuid]);var At=(0,l.useMemo)((function(){return(0,R.jsx)(d.ZP,{blockRuns:wt,onClickRow:function(t){Q((function(e){var n=wt[t],r=(null===e||void 0===e?void 0:e.id)!==n.id?n:null;return r&&nt((function(t){return t!==B?B:t})),r}))},pipeline:ct,selectedRun:Y,setErrors:ot,sortableColumnIndexes:d.lG})}),[wt,ct,Y]),Dt=(null===ct||void 0===ct?void 0:ct.type)!==x.qL.STREAMING&&ht&&ht!==y.VO.COMPLETED,Lt=((null===ct||void 0===ct?void 0:ct.type)===x.qL.PYTHON||(null===ct||void 0===ct?void 0:ct.type)===x.qL.INTEGRATION)&&Y&&y.Az.includes(ht),Mt=(0,l.useMemo)((function(){var t;return(null===jt||void 0===jt||null===(t=jt.metadata)||void 0===t?void 0:t.count)||[]}),[jt]),_t=(0,l.useMemo)((function(){return(0,R.jsx)(O.Z,{p:2,children:(0,R.jsx)(g.ZP,{maxPages:g.Et,onUpdate:function(t){var e=Number(t),n=$($({},u),{},{page:e>=0?e:0});Q(null),o.push("/pipelines/[pipeline]/runs/[run]","/pipelines/".concat(at,"/runs/").concat(pt,"?").concat((0,q.uM)(n)))},page:Number(a),totalPages:Math.ceil(Mt/g.Q)})})}),[a,pt,at,u,o,Mt]),Ct=(0,l.useCallback)((function(t){return function(t){var e=t.blockRuns,n=t.blocksOverride,r=(t.columns,t.dataType,t.height),o=t.heightOffset,u=t.loadingData,a=t.outputs,l=t.pipeline,c=t.renderColumnHeader,s=(t.rows,t.selectedRun),d=t.selectedTab,f=t.setSelectedTab,p=(t.textData,U({},(0,k.Z)(t,H)));p.blockStatus=(0,_.IJ)(e);var h=[],m=[];if(!u){var g,b={};null===a||void 0===a||a.forEach((function(t){var e=t.type;b[e]||(b[e]={outputs:[],priority:Object.keys(b).length}),b[e].outputs.push(t)})),null===(g=(0,N.YC)(Object.entries(b),(function(t){var e=(0,i.Z)(t,2);return e[0],e[1].priority})))||void 0===g||g.forEach((function(t){var e=(0,i.Z)(t,2),n=e[0],u=e[1].outputs,a=[];null===u||void 0===u||u.forEach((function(t,e){var i,u=t.sample_data,l=t.text_data,s=t.type,d=(0,R.jsx)(O.Z,{ml:2,children:(0,R.jsx)(Z.ZP,{children:"This block run has no output."})},"output-empty-".concat(e));if(s===A.Gi.TABLE){var f=((null===u||void 0===u?void 0:u.columns)||[]).slice(0,40),p=(null===u||void 0===u?void 0:u.rows)||[];i=p&&(null===p||void 0===p?void 0:p.length)>=1?(0,R.jsx)(P.Z,{columnHeaderHeight:c?L.Eh:0,columns:f,height:r-o-90,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,renderColumnHeader:c,rows:p},"output-table-".concat(e)):d}else{var v=(0,C.Pb)(l)?JSON.stringify(JSON.parse(l),null,2):l;i=l?(0,R.jsx)(O.Z,{ml:2,children:(0,R.jsx)(Z.ZP,{monospace:!0,children:(0,R.jsx)("pre",{children:v})})},"output-text-".concat(e)):d}A.Gi.TEXT===n?(a.push(i),0===e&&m.push({uuid:"Block output ".concat(e+1)})):(h.push(i),m.push({uuid:"Block output ".concat(e+1)}))})),A.Gi.TEXT===n&&h.push(a)}))}var y=h,x=m,j=F;(null===x||void 0===x?void 0:x.length)>=2&&(j=[B].concat((0,T.Z)(x.slice(1)),[V]));var E=d&&f,Y=y[j.findIndex((function(t){return t.uuid===(null===d||void 0===d?void 0:d.uuid)}))];return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("div",{style:{position:"fixed",top:"50px"},children:E&&(0,R.jsx)(O.Z,{py:D.cd,children:(0,R.jsx)(S.Z,{onClickTab:f,selectedTabUUID:null===d||void 0===d?void 0:d.uuid,tabs:s?j:[V]})})}),(0,R.jsxs)("div",{style:{position:"relative",top:"75px"},children:[(!s||V.uuid===(null===d||void 0===d?void 0:d.uuid))&&(0,R.jsx)(I.ZP,U(U({},p),{},{blocksOverride:n,enablePorts:!1,height:r,heightOffset:(o||0)+(E?M.u$:0),pipeline:l})),s&&d&&V.uuid!==(null===d||void 0===d?void 0:d.uuid)&&(0,R.jsxs)(R.Fragment,{children:[u&&(0,R.jsx)(O.Z,{mt:2,children:(0,R.jsx)(v.ZP,{alignItems:"center",fullWidth:!0,justifyContent:"center",children:(0,R.jsx)(w.Z,{color:"white",large:!0})})}),!u&&Y]})]})]})}($($({},t),{},{blockRuns:wt,blocksOverride:null===ut||void 0===ut?void 0:ut.blocks,loadingData:It,outputs:null===Pt||void 0===Pt?void 0:Pt.outputs,selectedRun:Y,selectedTab:et,setSelectedTab:nt,showDynamicBlocks:!0}))}),[wt,ut,Pt,It,Y,et,nt]);return(0,R.jsxs)(b.Z,{breadcrumbs:[{label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(at,"/runs"),href:"/pipelines/[pipeline]/runs"}},{label:function(){return r?(0,X.XG)(ft,r):ft}}],buildSidekick:Ct,errors:it,pageName:z.M.RUNS,pipeline:ct,setErrors:ot,subheader:(Dt||Lt)&&(0,R.jsxs)(v.ZP,{alignItems:"center",children:[y.BF.includes(ht)&&(0,R.jsxs)(h.Z,{children:[(0,R.jsx)(Z.ZP,{bold:!0,default:!0,large:!0,children:"Pipeline is running"}),(0,R.jsx)(O.Z,{mr:1}),(0,R.jsx)(w.Z,{inverted:!0}),(0,R.jsx)(O.Z,{mr:2})]}),Dt&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(f.ZP,{danger:!0,loading:kt,onClick:function(t){(0,J.j)(t),Tt({pipeline_run:{pipeline_run_action:"retry_blocks"}})},outline:!0,children:"Retry incomplete blocks"}),(0,R.jsx)(O.Z,{mr:2})]}),Lt&&(0,R.jsxs)(f.ZP,{loading:kt,onClick:function(t){(0,J.j)(t),Tt({pipeline_run:{from_block_uuid:Y.block_uuid,pipeline_run_action:"retry_blocks"}})},outline:!0,primary:!0,children:["Retry from selected block (",Y.block_uuid,")"]})]}),title:function(t){var e=t.name;return"".concat(e," runs")},uuid:"".concat(z.M.RUNS,"_").concat(at,"_").concat(pt),children:[(0,R.jsx)(O.Z,{mt:D.cd,px:D.cd,children:(0,R.jsx)(m.Z,{level:5,children:"Block runs"})}),(0,R.jsx)(p.Z,{light:!0,mt:D.cd,short:!0}),At,_t]})}tt.getInitialProps=function(){var t=(0,r.Z)(a().mark((function t(e){var n,r,i;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.query,r=n.pipeline,i=n.run,t.abrupt("return",{pipeline:{uuid:r},pipelineRun:{id:i}});case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();var et=(0,j.Z)(tt)},39525:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs/[run]",function(){return n(14532)}])}},function(t){t.O(0,[2678,1154,844,8224,1124,1751,5896,9161,2631,4267,600,8487,8264,7858,5499,3932,5457,722,3419,9774,2888,179],(function(){return e=39525,t(t.s=e);var e}));var e=t.O();_N_E=e}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8662],{28108:function(t,e,n){"use strict";n.d(e,{Z:function(){return m}});var r=n(82684),i=n(63588),o=n.n(i),u=n(75823),a=n(29989),l=n(62072),c=n(53989),s=n(49894),d=n(18246),f=n(59309),p=n(65743),h=["data","className","top","left","y","x0","x1","xScale","yScale","color","keys","value","order","offset","children"];function v(){return v=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},v.apply(this,arguments)}function m(t){var e=t.data,n=t.className,i=t.top,m=t.left,g=t.y,b=t.x0,y=void 0===b?l.l8:b,x=t.x1,j=void 0===x?l.xf:x,O=t.xScale,w=t.yScale,Z=t.color,E=t.keys,T=t.value,k=t.order,S=t.offset,P=t.children,I=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,h),A=(0,u.Z)();E&&A.keys(E),T&&(0,s.Z)(A.value,T),k&&A.order((0,d.ZP)(k)),S&&A.offset((0,f.ZP)(S));var D=A(e),L=(0,c.Z)(w),M=D.map((function(t,e){var n=t.key;return{index:e,key:n,bars:t.map((function(e,r){var i=(O(j(e))||0)-(O(y(e))||0),o=O(y(e)),u="bandwidth"in w?w(g(e.data)):Math.max((w(g(e.data))||0)-i/2);return{bar:e,key:n,index:r,height:L,width:i,x:o||0,y:u||0,color:Z(t.key,r)}}))}}));return P?r.createElement(r.Fragment,null,P(M)):r.createElement(a.Z,{className:o()("visx-bar-stack-horizontal",n),top:i,left:m},M.map((function(t){return t.bars.map((function(e){return r.createElement(p.Z,v({key:"bar-stack-"+t.index+"-"+e.index,x:e.x,y:e.y,height:e.height,width:e.width,fill:e.color},I))}))})))}},62072:function(t,e,n){"use strict";function r(t){return null==t?void 0:t[0]}function i(t){return null==t?void 0:t[1]}n.d(e,{l8:function(){return r},xf:function(){return i}})},59309:function(t,e,n){"use strict";n.d(e,{ZP:function(){return c}});var r=n(12759),i=n(27500),o=n(82610),u=n(34812),a=n(77944),l={expand:r.Z,diverging:i.Z,none:o.Z,silhouette:u.Z,wiggle:a.Z};Object.keys(l);function c(t){return t&&l[t]||l.none}},18246:function(t,e,n){"use strict";n.d(e,{ZP:function(){return c}});var r=n(39586),i=n(25516),o=n(54164),u=n(8512),a=n(2010),l={ascending:r.Z,descending:i.Z,insideout:o.Z,none:u.Z,reverse:a.Z};Object.keys(l);function c(t){return t&&l[t]||l.none}},93859:function(t,e,n){"use strict";n.d(e,{r:function(){return I},Z:function(){return M}});var r=n(82394),i=n(21831),o=n(82684),u=n(48670),a=n(12691),l=n.n(a),c=n(38626),s=n(78141),d=n(44628),f=n(6508),p=n(55485),h=n(30160),v=n(44897),m=n(70987),g=function(){var t=document.createElement("div");t.setAttribute("style","width: 100px; height: 100px; overflow: scroll; position:absolute; top:-9999px;"),document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e},b=n(95363),y=n(61896),x=n(47041),j=n(48888),O=n(70515),w=n(40489),Z=n(86735),E=n(28598);function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?T(Object(n),!0).forEach((function(e){(0,r.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var S=2*O.iI+y.dN,P=20*O.iI,I=8.7,A=c.default.div.withConfig({displayName:"DataTable__Styles",componentId:"sc-1arr863-0"})([""," "," "," .body > div{","}.table{border-spacing:0;display:inline-block;"," "," "," "," .tr{.td.td-index-column{","}}.th{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;","}.th,.td{"," font-family:",";margin:0;","}.td{padding:","px;}&.sticky{overflow:auto;}.header{overflow:hidden;}}"],(function(t){return t.disableScrolling&&"\n overflow: hidden;\n "}),(function(t){return t.height&&"\n height: ".concat(t.height,"px;\n ")}),(function(t){return t.maxHeight&&"\n max-height: ".concat(t.maxHeight,"px;\n ")}),x.w5,(function(t){return!t.noBorderBottom&&"\n border-bottom: 1px solid ".concat((t.theme.borders||m.Z.borders).medium,";\n ")}),(function(t){return!t.noBorderLeft&&"\n border-left: 1px solid ".concat((t.theme.borders||m.Z.borders).medium,";\n ")}),(function(t){return!t.noBorderRight&&"\n border-right: 1px solid ".concat((t.theme.borders||m.Z.borders).medium,";\n ")}),(function(t){return!t.noBorderTop&&"\n border-top: 1px solid ".concat((t.theme.borders||m.Z.borders).medium,";\n ")}),(function(t){return"\n color: ".concat((t.theme.content||m.Z.content).default,";\n ")}),(function(t){return"\n height: ".concat(t.columnHeaderHeight||S,"px;\n ")}),y.iD,b.ry,(function(t){return"\n background-color: ".concat((t.theme.background||m.Z.background).table,";\n border-bottom: 1px solid ").concat((t.theme.borders||m.Z.borders).medium,";\n border-right: 1px solid ").concat((t.theme.borders||m.Z.borders).medium,";\n ")}),1*O.iI);function D(t){var e=t.original,n=8.5*Math.max.apply(Math,(0,i.Z)(e.map((function(t){return(null===t||void 0===t?void 0:t.length)||0})))),r=Math.ceil(n/(P-2*O.iI));return Math.max(r,1)*y.dN+2*O.iI}function L(t){var e=t.columnHeaderHeight,n=t.columns,r=t.data,a=t.disableScrolling,x=t.height,T=t.index,A=t.invalidValues,L=t.maxHeight,M=t.numberOfIndexes,_=t.previewIndexes,C=t.renderColumnHeader,N=t.width,R=(0,o.useContext)(c.ThemeContext),H=(0,o.useRef)(null),Y=(0,o.useRef)(null);(0,o.useEffect)((function(){var t=function(t){var e;null===H||void 0===H||null===(e=H.current)||void 0===e||e.scroll(t.target.scrollLeft,0)};return Y&&Y.current.addEventListener("scroll",t),function(){var e;null===Y||void 0===Y||null===(e=Y.current)||void 0===e||e.removeEventListener("scroll",t)}}),[H,Y]);var U=(0,o.useMemo)((function(){return T&&r&&T.length===r.length}),[r,T]),V=(0,o.useMemo)((function(){var t=[];return(0,Z.w6)(M).forEach((function(e,n){var o=String(null===r||void 0===r?void 0:r.length).length*I;if(U){var u=T.map((function(t){return M>=2?String(t[n]).length:String(t).length}));o=Math.max.apply(Math,(0,i.Z)(u))*I}t.push(o+2*O.iI)})),t}),[r,T,M,U]),B=n.map((function(t){return null===t||void 0===t?void 0:t.Header})).slice(1),F=(0,o.useMemo)((function(){return g()}),[]),z=(0,o.useMemo)((function(){var t=N-(Math.max.apply(Math,(0,i.Z)(V))+1.5*O.iI+F),e=n.length-1,r=P;return r*e<t&&(r=t/e),{width:r}}),[n,V,F,N]),G=(0,d.useTable)({columns:n,data:r,defaultColumn:z},d.useBlockLayout,f.useSticky),X=G.getTableBodyProps,W=G.getTableProps,J=G.headerGroups,q=G.prepareRow,K=G.rows,Q=(0,o.useCallback)((function(t){var e=t.index,n=t.style,r=new Set((null===_||void 0===_?void 0:_.removedRows)||[]),i=K[e];q(i);var a=i.original,c=r.has(e);return(0,E.jsx)("div",k(k({},i.getRowProps({style:k(k({},n),{},{width:"auto"})})),{},{className:"tr",children:i.cells.map((function(t,n){var r,i=n<=M-1,s=t.getCellProps(),d=t.column.id,f=null===A||void 0===A||null===(r=A[d])||void 0===r?void 0:r.includes(e),v=k({},s.style);i&&(v.fontFamily=b.Vp,v.left=0,v.position="sticky",v.textAlign=T?"right":"center",v.width=V[n]);var g,y=a[n-M],x=B.indexOf(d);if(f&&(v.color=m.Z.interactive.dangerBorder),c&&(v.backgroundColor=m.Z.background.danger),Array.isArray(y)||"object"===typeof y)try{y=JSON.stringify(y)}catch(O){y="Error: cannot display value"}return i&&(U?(g=T[e],Array.isArray(g)&&(g=g[n])):g=t.render("Cell")),(0,o.createElement)("div",k(k({},s),{},{className:"td ".concat(i?"td-index-column":""),key:"".concat(n,"-").concat(y),style:v}),g,!i&&(0,E.jsxs)(p.ZP,{justifyContent:"space-between",children:[(0,E.jsxs)(h.ZP,{danger:f,default:!0,wordBreak:!0,children:[!0===y&&"true",!1===y&&"false",(null===y||"null"===y)&&"null",!0!==y&&!1!==y&&null!==y&&"null"!==y&&y]}),f&&(0,E.jsx)(l(),{as:(0,w.o_)(j.mW,x),href:"/datasets/[...slug]",passHref:!0,children:(0,E.jsx)(u.Z,{danger:!0,children:"View all"})})]}))}))}))}),[B,T,A,V,M,q,K,U,_]),$=(0,o.useMemo)((function(){var t;return L?(t=(0,Z.Sm)(K.map(D)),t+=e||S-y.dN):(t=x,t-=e||S),t}),[e,x,L,K]),tt=(0,o.useMemo)((function(){return(0,E.jsx)(s.S_,{estimatedItemSize:S,height:$,itemCount:null===K||void 0===K?void 0:K.length,itemSize:function(t){return D(K[t])},outerRef:Y,style:{maxHeight:L,pointerEvents:a?"none":null},children:Q})}),[a,$,L,Q,K]);return(0,E.jsx)("div",k(k({},W()),{},{className:"table sticky",style:{width:N},children:(0,E.jsxs)("div",k(k({},X()),{},{className:"body",children:[(0,E.jsx)("div",{className:"header",ref:H,children:J.map((function(t,e){return(0,o.createElement)("div",k(k({},t.getHeaderGroupProps()),{},{className:"tr",key:"".concat(t.id,"_").concat(e)}),t.headers.map((function(t,e){var n,r=e<=M-1,i=t.getHeaderProps(),u=k({},i.style);return r?(u.fontFamily=b.Vp,u.left=0,u.position="sticky",u.textAlign="center",u.width=V[e],u.minWidth=V[e]):C?n=C(t,e-M,{width:z.width}):(n=t.render("Header"),u.color=(R||v.Z).content.default,u.padding=1*O.iI,u.minWidth=z.width),(0,o.createElement)("div",k(k({},i),{},{className:"th",key:t.id,style:u,title:r?"Row number":void 0}),n)})))}))}),tt]}))}))}var M=function(t){var e=t.columnHeaderHeight,n=t.columns,r=t.disableScrolling,i=t.height,u=t.index,a=t.invalidValues,l=t.maxHeight,c=t.noBorderBottom,s=t.noBorderLeft,d=t.noBorderRight,f=t.noBorderTop,p=t.previewIndexes,h=t.renderColumnHeader,v=t.rows,m=t.width;if(null===n||void 0===n?void 0:n.some((function(t){return""===t})))return null;var g=(0,o.useMemo)((function(){return null!==u&&void 0!==u&&u.length&&Array.isArray(u[0])?u[0].length:1}),[u]),b=(0,o.useMemo)((function(){return(0,Z.w6)(g).map((function(t,e){return{Header:(0,Z.w6)(e+1).map((function(){return" "})).join(" "),accessor:function(t,e){return e},sticky:"left"}})).concat(null===n||void 0===n?void 0:n.map((function(t){return{Header:String(t),accessor:String(t)}})))}),[n,g]),y=(0,o.useMemo)((function(){return(0,E.jsx)(L,{columnHeaderHeight:e,columns:b,data:v,disableScrolling:r,height:i,index:u,invalidValues:a,maxHeight:l,numberOfIndexes:g,previewIndexes:p,renderColumnHeader:h,width:m})}),[e,b,v,r,i,u,a,l,g,p,h,m]);return(0,E.jsx)(A,{columnHeaderHeight:e,disableScrolling:r,height:i,maxHeight:l?l+37:l,noBorderBottom:c,noBorderLeft:s,noBorderRight:d,noBorderTop:f,children:y})}},66909:function(t,e,n){"use strict";n.d(e,{Eh:function(){return c},t0:function(){return s}});var r=n(38626),i=n(2842),o=n(17679),u=n(61896),a=n(47041),l=n(70515),c=(l.iI,o.O$+3*l.iI+u.dN),s=r.default.div.withConfig({displayName:"indexstyle__SidekickContainerStyle",componentId:"sc-15ofupc-0"})([""," overflow:auto;position:absolute;width:100%;"," ",""],a.w5,(function(t){return"\n height: calc(100vh - ".concat(i.uX,"px - ").concat(t.heightOffset,"px);\n ")}),(function(t){return t.overflowHidden&&"\n overflow: hidden;\n "}));r.default.div.withConfig({displayName:"indexstyle__PaddingContainerStyle",componentId:"sc-15ofupc-1"})(["padding:","px;",""],2*l.iI,(function(t){return t.noPadding&&"\n padding: 0;\n "}))},16488:function(t,e,n){"use strict";n.d(e,{IJ:function(){return v},M8:function(){return E},Vx:function(){return x},XM:function(){return Z},_U:function(){return h},eI:function(){return y},gU:function(){return O},lO:function(){return I},ri:function(){return g},tL:function(){return j},vJ:function(){return w},xH:function(){return b}});var r,i=n(82394),o=n(92083),u=n.n(o),a=n(3917),l=n(4383),c=n(30229),s=n(42122),d=n(86735);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var h=function(t){return!!t&&!Object.values(c.U5).includes(t)};function v(t){return null===t||void 0===t?void 0:t.reduce((function(t,e){var n=e.block_uuid,r=e.completed_at,o=e.started_at,a=e.status,l=null;o&&r&&(l=u()(r).valueOf()-u()(o).valueOf());return p(p({},t),{},(0,i.Z)({},n,{runtime:l,status:a}))}),{})}var m,g=function(t){var e=[{description:function(){return"This pipeline will run continuously on an interval or just once."},label:function(){return"Schedule"},uuid:c.Xm.TIME},{description:function(){return"This pipeline will run when a specific event occurs."},label:function(){return"Event"},uuid:c.Xm.EVENT},{description:function(){return"Run this pipeline when you make an API call."},label:function(){return"API"},uuid:c.Xm.API}];return t?e.slice(0,1):e};function b(t){var e=(0,s.gR)(t,[c.gm.INTERVAL,c.gm.TYPE]),n=t[c.gm.INTERVAL];n&&(e["schedule_interval[]"]=encodeURIComponent(n));var r=t[c.gm.TYPE];return r&&(e["schedule_type[]"]=r),e}function y(t){if(!t)return null;var e=new Date(u()(t).valueOf()),n=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());return new Date(n)}function x(t){return"string"!==typeof t?t:y(t.split("+")[0]).toISOString().split(".")[0]}!function(t){t.DAY="day",t.HOUR="hour",t.MINUTE="minute",t.SECOND="second"}(m||(m={}));var j=(r={},(0,i.Z)(r,m.DAY,86400),(0,i.Z)(r,m.HOUR,3600),(0,i.Z)(r,m.MINUTE,60),(0,i.Z)(r,m.SECOND,1),r);function O(t){var e=m.SECOND,n=t;return t%86400===0?(n/=86400,e=m.DAY):t%3600===0?(n/=3600,e=m.HOUR):t%60===0&&(n/=60,e=m.MINUTE),{time:n,unit:e}}function w(t,e){return t*j[e]}function Z(t,e,n){var r="".concat(t.toISOString().split("T")[0]," ").concat(null===e||void 0===e?void 0:e.hour,":").concat(null===e||void 0===e?void 0:e.minute);if(null!==n&&void 0!==n&&n.includeSeconds&&(r=r.concat(":00")),null!==n&&void 0!==n&&n.localTimezone){var i=u()(t);i.set("hour",+(null===e||void 0===e?void 0:e.hour)||0),i.set("minute",+(null===e||void 0===e?void 0:e.minute)||0),i.set("second",0),r=i.format(a.lE),null!==n&&void 0!==n&&n.convertToUtc&&(r=(0,a.d$)(r,{includeSeconds:null===n||void 0===n?void 0:n.includeSeconds,utcFormat:!0}))}return r}function E(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="",i=!0;return i&&(n?r="".concat(window.origin,"/api/pipeline_schedules/").concat(null===t||void 0===t?void 0:t.id,"/api_trigger"):(r="".concat(window.origin,"/api/pipeline_schedules/").concat(null===t||void 0===t?void 0:t.id,"/pipeline_runs"),null!==t&&void 0!==t&&t.token&&(r="".concat(r,"/").concat(t.token)))),i&&(e=window.location.port)&&(r=r.replace(e,l.QT)),r}function T(t,e,n){return t.match(/[*,-/]/)?{additionalOffset:0,cronValue:t}:function(t,e,n){var r=n.indexOf(t),i=0;if(e<0)for(var o=0;o>e;o--)0===r?(r=n.length-1,i-=1):r-=1;else if(e>0)for(var u=0;u<e;u++)r===n.length-1?(r=0,i+=1):r+=1;return{additionalOffset:i,cronValue:String(n[r]||t)}}(+t,e,n)}var k=(0,d.m5)(60),S=(0,d.m5)(24),P=(0,a.Cs)();function I(t,e){if(!t)return t;var n=u()().local().format("Z"),r=n.split(":"),i="-"===n[0],o=3===r[0].length?Number(r[0].slice(1)):Number(r[0]),a=Number(r[1]);(i&&!e||!i&&e)&&(o=-o,a=-a);var l=t.split(" "),c=l[0],s=l[1],d=l[2],f=T(c,a,k),p=T(s,o+f.additionalOffset,S);if(l[0]=f.cronValue,l[1]=p.cronValue,0!==(null===p||void 0===p?void 0:p.additionalOffset)){var h=T(d,p.additionalOffset,P);l[2]=h.cronValue}return l.join(" ")}},52729:function(t,e,n){"use strict";n.d(e,{Z:function(){return U}});var r=n(26304),i=n(21831),o=n(82394),u=n(82684),a=n(26226),l=n(84969),c=n(90948),s=n(65743),d=n(29989),f=n(38626),p=n(61655),h=n(16853),v=n(65376),m=n(48072),g=n(98677),b=n(84181),y=n(55485),x=n(4190),j=n(30160),O=n(94035),w=n(70987),Z=n(79633),E=n(89370),T=n(95363),k=n(61896),S=n(70515),P=n(88543),I=n(6568),A=function(t){return t.slice(0,10)},D=function(t,e){var n=t.toISOString().slice(0,10),r=e.toISOString().slice(0,10);return"".concat(n,":").concat(r)},L=n(79221),M=n(98684),_=n(28598),C=["height","loading","selected","width","xAxisLabel","yAxisLabel"];function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function R(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?N(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var H={bottom:S.iI,left:3*S.iI,right:0,top:1*S.iI},Y=(0,p.Z)((function(t){var e=t.columnType,n=t.data,r=void 0===n?[]:n,o=t.getBarColor,a=t.getXValue,p=t.getYValue,y=t.height,x=t.hideTooltip,O=t.large,C=t.margin,N=void 0===C?{}:C,Y=t.muted,U=t.noPadding,V=t.numberOfXTicks,B=t.renderTooltipContent,F=t.selected,z=t.showAxisLabels,G=t.showTooltip,X=t.showYAxisLabels,W=t.showZeroes,J=t.sortData,q=t.tooltipData,K=t.tooltipLeft,Q=t.tooltipOpen,$=t.tooltipTop,tt=t.width,et=t.xLabelFormat,nt=t.yLabelFormat,rt=O?k.J5:k.VK,it=(0,u.useCallback)((function(t){return a?a(t):t[0]}),[a]),ot=(0,u.useCallback)((function(t){return p?p(t):t[1]}),[p]),ut=(0,u.useContext)(f.ThemeContext),at=e===E.RL.DATETIME,lt=R(R({},H),N);z&&(lt=R(R({},lt),{},{left:lt.left+S.iI}));var ct=J?J(r):r.sort((function(t,e){return e[1]-t[1]})),st=at?r.sort((function(t,e){return new Date(t[0])-new Date(e[0])})).filter((function(t){return!!t[0]})):ct.slice(0,60),dt=tt-(lt.left+lt.right),ft=y-(lt.bottom+lt.top),pt=at?function(t,e){var n,r=t.map((function(t){return new Date(t[0])})).sort((function(t,e){return t-e}));return(0,I.Z)({domain:(n=r,[(0,P.Z)(n[0]),(0,P.Z)(n[n.length-1])]),nice:!0,range:[0,e]})}(st,dt):null,ht=function(t,e){if(null===e)return{};var n=e.ticks().map((function(t){return t.toISOString()})),r={},i=0,o=1;return t.forEach((function(t){var e=new Date(t[0]),u=t[1],a=n[i],l=n[o];if(a&&l){var c=new Date(a),s=new Date(l),d=D(c,s);if(e>=c&&e<s)r[d]=(r[d]||0)+u;else for(;o<n.length||!r[d];)if(i+=1,o+=1,c=new Date(n[i]),s=new Date(n[o]),d=D(c,s),e>=c&&e<s)return void(r[d]=(r[d]||0)+u)}})),n.reduce((function(t,e,n,r){if(0===n)return t;var i=A(e),o=A(r[n-1]);return t.push("".concat(o,":").concat(i)),t}),[]).forEach((function(t){r[t]=r[t]||0})),r}(st,pt);st=pt?Object.entries(ht).sort((function(t,e){return new Date(A(t[0]))-new Date(A(e[0]))})):st;var vt=pt?Math.max.apply(Math,(0,i.Z)(Object.values(ht))):0,mt=st.reduce((function(t,e){return(0!==ot(e)||at||W)&&t.push(it(e)),t}),[]),gt=mt.length,bt=function(t,e,n){return n?.05:t>=30&&e<300?.5:t>=15?.3:t>=5?.1:t>2?.05:2===t?.025:0}(gt,tt,at),yt=(0,g.Z)({domain:mt,paddingInner:U?null:bt,range:[0,dt],round:!1}),xt=(0,b.Z)({domain:[0,Math.max.apply(Math,(0,i.Z)(st.map(ot)))],range:[ft,0],round:!0}),jt=(0,M.K)(ut),Ot={active:((null===ut||void 0===ut?void 0:ut.content)||w.Z.content).active,default:jt[0],muted:((null===ut||void 0===ut?void 0:ut.monotone)||w.Z.monotone).gray,selected:((null===ut||void 0===ut?void 0:ut.elevation)||w.Z.elevation).visualizationAccent},wt=Ot.default;Y?wt=Ot.muted:F&&(wt=Ot.selected);var Zt=gt?at?vt:Math.max.apply(Math,(0,i.Z)(st.map((function(t){return ot(t)})))):0,Et=Math.floor(Zt/6),Tt=[0],kt=0;if(Zt>6)for(;kt<Zt;)Tt.push(kt+Et),kt+=Et;else for(;kt<=Zt;)Tt.push(kt+1),kt+=1;Zt>9999?lt=R(R({},lt),{},{left:O?8*S.iI:4.1*S.iI}):Zt>999&&(lt=R(R({},lt),{},{left:O?5*S.iI:3.6*S.iI}));var St=at?2.25:0,Pt=gt<10||e===E.RL.NUMBER||e===E.RL.NUMBER_WITH_DECIMALS||at||X,It=(0,u.useCallback)((function(t){var e=(0,m.Z)(t)||{x:0,y:0},n=e.x,r=e.y,i=(n-(z?lt.left:0))/dt,o=Math.floor(gt*i),u=st[o];"undefined"===typeof u&&(u=st[0]);var a=it(u);a=a.length>15?"".concat(a.slice(0,21)):a;var l=B?B(u):"".concat(a," (").concat(ot(u),")");G({tooltipData:l,tooltipLeft:n-lt.left,tooltipTop:r+lt.top})}),[st,gt,it,ot,lt.left,lt.top,B,z,G,tt]);return tt<10||!r.length?null:(0,_.jsxs)("div",{children:[(0,_.jsxs)("svg",{height:y+lt.bottom*(at?7.5:3),width:tt,children:[(0,_.jsx)(d.Z,{left:z?lt.left:0,top:lt.top+St,children:st.reduce((function(t,e){var n=it(e),r=ot(e);if(0!==r){var i,u=yt.bandwidth(),a=ft-(null!==(i=xt(r))&&void 0!==i?i:0),l=yt(n),c=ft-a;t.push((0,_.jsx)(s.Z,{fill:o?o(e):wt,height:a,onMouseLeave:function(){return x()},onMouseMove:It,onTouchMove:It,onTouchStart:It,width:u,x:l,y:c},"bar-".concat(n)))}return t}),[])}),z&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(l.Z,{left:lt.left,scale:xt,stroke:Ot.muted,tickFormat:function(t){return nt?nt(t):(0,L.P5)(t)},tickLabelProps:function(){return{fill:Ot.active,fontFamily:T.ry,fontSize:rt,textAnchor:"end",transform:"translate(-2,2.5)"}},tickStroke:Ot.muted,tickValues:Tt,top:lt.top+St}),(0,_.jsx)(c.Z,{left:lt.left,numTicks:at?void 0:V||6,orientation:"top",scale:pt||yt,stroke:Ot.muted,tickFormat:function(t){return et?et(String(t)):at?t.toISOString().slice(0,10):String(t)},tickLabelProps:function(t){return{fill:Pt?Ot.active:"transparent",fontFamily:T.ry,fontSize:rt,textAnchor:"middle",transform:at?"rotate(-90,".concat(pt(t),",0) translate(-33,10)"):"translate(0, ".concat(3*lt.bottom,")")}},tickLineProps:{transform:"translate(0,".concat(S.iI,")")},tickStroke:Pt?Ot.muted:"transparent",top:ft+lt.top+St})]})]}),Q&&q&&(0,_.jsx)(h.Z,{left:K,style:v.j,top:$,children:(0,_.jsx)(j.ZP,{color:Z.E5,small:!0,children:q})})]})}));var U=function(t){var e=t.height,n=t.loading,i=t.selected,o=t.width,u=t.xAxisLabel,l=t.yAxisLabel,c=(0,r.Z)(t,C);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{style:{display:"flex",height:e,marginBottom:S.iI,width:"100%"},children:[l&&(0,_.jsx)(y.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,_.jsx)(O.Z,{children:(0,_.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:l})})}),(0,_.jsxs)("div",{style:{height:e,width:l?0===o?o:o-28:o},children:[n&&(0,_.jsx)(x.Z,{}),!n&&(0,_.jsx)(a.Z,{children:function(t){var e=t.height,n=t.width;return(0,_.jsx)(Y,R(R({},c),{},{height:e,selected:i,width:n}))}})]})]}),u&&(0,_.jsx)("div",{style:{paddingLeft:l?36:0,paddingTop:4},children:(0,_.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:u})})]})}},87862:function(t,e,n){"use strict";n.d(e,{Z:function(){return S}});var r=n(26304),i=n(82394),o=n(75582),u=n(26226),a=n(28940),l=n(82684),c=n(29989),s=n(38626),d=n(11684),f=n(24903),p=n(30160),h=n(44897),v=n(95363),m=n(61896),g=n(70515),b=n(98684),y=n(28598),x=["height","width","xAxisLabel"];function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var w={bottom:0,left:0,right:0,top:0},Z=function(t){var e=t.endAngle;return{endAngle:e>Math.PI?2*Math.PI:0,opacity:0,startAngle:e>Math.PI?2*Math.PI:0}},E=function(t){var e=t.startAngle;return{endAngle:t.endAngle,opacity:1,startAngle:e}};function T(t){var e=t.animate,n=t.arcs,r=t.path,i=t.getKey,u=t.getColor,a=t.onClickDatum,l=t.textColor;return(0,d.useTransition)(n,{enter:E,from:e?Z:E,keys:i,leave:e?Z:E,update:E})((function(t,e,n){var c=n.key,s=r.centroid(e),f=(0,o.Z)(s,2),p=f[0],h=f[1],g=e.endAngle-e.startAngle>=.1;return(0,y.jsxs)("g",{children:[(0,y.jsx)(d.animated.path,{d:(0,d.to)([t.startAngle,t.endAngle],(function(t,n){return r(O(O({},e),{},{endAngle:n,startAngle:t}))})),fill:u(e),onClick:function(){return a(e)},onTouchStart:function(){return a(e)}}),g&&(0,y.jsx)(d.animated.g,{style:{opacity:t.opacity},children:(0,y.jsx)("text",{dy:".33em",fill:l,fontFamily:v.ry,fontSize:m.J5,pointerEvents:"none",textAnchor:"middle",x:p,y:h,children:i(e)})})]},c)}))}function k(t){var e=t.animate,n=void 0===e||e,r=t.data,i=t.getX,o=t.getY,u=t.height,d=t.margin,p=void 0===d?w:d,v=t.textColor,m=t.width,x=(0,l.useState)(null),j=x[0],Z=x[1],E=(0,l.useContext)(s.ThemeContext),k=v||(null===E||void 0===E?void 0:E.content.active)||h.Z.content.active;if(m<10)return null;var S=(0,f.Z)({domain:r.map((function(t){return i(t)})),range:(0,b.K)(E)}),P=m-p.left-p.right,I=u-p.top-p.bottom,A=Math.min(P,I)/2,D=I/2,L=P/2,M=Math.min(P/4,12*g.iI);return(0,y.jsx)("svg",{height:u,width:m,children:(0,y.jsx)(c.Z,{left:L+p.left,top:D+p.top,children:(0,y.jsx)(a.Z,{cornerRadius:g.iI/2,data:j?r.filter((function(t){return JSON.stringify(t)===JSON.stringify(j)})):r,innerRadius:Math.max(A-M,12.25),outerRadius:A,padAngle:.005,pieValue:o,children:function(t){return(0,y.jsx)(T,O(O({},t),{},{animate:n,getColor:function(t){var e=t.data;return S(i(e))},getKey:function(t){var e=t.data;return i(e)},onClickDatum:function(t){var e=t.data;return n&&Z(j&&JSON.stringify(j)===JSON.stringify(e)?null:e)},textColor:k}))}})})})}function S(t){var e=t.height,n=t.width,i=t.xAxisLabel,o=(0,r.Z)(t,x),a={};return"undefined"!==typeof e&&(a.height=e),"undefined"!==typeof n&&(a.width=n),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{style:a,children:(0,y.jsx)(u.Z,{children:function(t){var e=t.width,n=t.height;return(0,y.jsx)(k,O(O({},o),{},{height:n,width:e}))}})}),i&&(0,y.jsx)("div",{style:{paddingTop:4},children:(0,y.jsx)(p.ZP,{center:!0,muted:!0,small:!0,children:i})})]})}},98684:function(t,e,n){"use strict";n.d(e,{K:function(){return i}});var r=n(70987),i=function(t){var e=t||r.Z,n=e.brand,i=n.earth200,o=n.earth300,u=n.earth400,a=n.energy200,l=n.energy300,c=n.energy400,s=n.fire200,d=n.fire300,f=n.fire400,p=n.water200,h=n.water300,v=n.water400,m=n.wind200,g=n.wind300,b=n.wind400,y=e.chart;return[y.backgroundPrimary,y.backgroundSecondary,y.backgroundTertiary].concat([b,v,f,c,u,g,h,d,l,o,m,p,s,a,i])}},94035:function(t,e,n){"use strict";var r=n(38626).default.div.withConfig({displayName:"YAxisLabelContainer",componentId:"sc-qwp21x-0"})(["-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);white-space:nowrap;"]);e.Z=r},79221:function(t,e,n){"use strict";n.d(e,{P5:function(){return r},Vs:function(){return i}});n(81728);function r(t,e){var n=e||{},r=n.maxFractionDigits,i=n.minAmount,o=Intl.NumberFormat("en-US",{maximumFractionDigits:r||2,notation:"compact"});return"number"!==typeof t?t:t>=(i||1e4)?o.format(t):t.toString()}function i(t,e,n){var r,i;if("undefined"===typeof t||"undefined"===typeof e)return 0;var o=null===t||void 0===t||null===(r=t(e,n))||void 0===r||null===(i=r.props)||void 0===i?void 0:i.children;return(Array.isArray(o)?o:[o]).join("").length}},48888:function(t,e,n){"use strict";n.d(e,{AE:function(){return i},H3:function(){return o},mW:function(){return u},oE:function(){return a},yg:function(){return r}});var r="tabs[]",i="show_columns",o="column",u="Reports",a="Visualizations"},17679:function(t,e,n){"use strict";n.d(e,{O$:function(){return ot},Fk:function(){return ut}});var r=n(75582),i=n(12691),o=n.n(i),u=n(26304),a=n(21831),l=n(82394),c=n(82684),s=n(26226),d=n(84969),f=n(90948),p=n(65743),h=n(28108),v=n(79487),m=n(29989),g=n(38626),b=n(61655),y=n(16853),x=n(65376),j=n(48072),O=n(24903),w=n(84181),Z=n(98677),E=n(30160),T=n(70987),k=n(79633),S=n(61896),P=n(70515),I=n(95363),A=n(28598),D=["height","width"];function L(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function M(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?L(Object(n),!0).forEach((function(e){(0,l.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var _={bottom:5*P.iI,left:3*P.iI,right:20*P.iI,top:0},C=function(t){return t.x},N=function(t){return t.y},R=(0,b.Z)((function(t){var e=t.data,n=t.height,r=t.hideTooltip,i=t.large,o=t.margin,u=void 0===o?{}:o,l=t.renderTooltipContent,s=t.showTooltip,b=t.tooltipData,P=t.tooltipLeft,D=t.tooltipOpen,L=t.tooltipTop,R=t.width,H=t.xAxisLabel,Y=t.xNumTicks,U=t.yLabelFormat,V=t.ySerialize,B=U;B||(B=function(t){return t.length>20?"".concat(t.substring(0,20),"..."):t});var F=i?S.iD:S.J5,z=(0,c.useContext)(g.ThemeContext),G=M(M({},_),u),X=e.slice(Math.max(0,e.length-50)),W=Object.keys(X[0]||[]).filter((function(t){return"x"===t})),J=(0,O.Z)({domain:W,range:[k.hM]}),q=(0,w.Z)({domain:[0,Math.max.apply(Math,(0,a.Z)(X.map(C)))],nice:!0}),K=(0,Z.Z)({domain:X.map(N),padding:.35}),Q={active:(null===z||void 0===z?void 0:z.content.default)||T.Z.content.default,backgroundPrimary:(null===z||void 0===z?void 0:z.chart.backgroundPrimary)||T.Z.chart.backgroundPrimary,backgroundSecondary:(null===z||void 0===z?void 0:z.chart.backgroundSecondary)||T.Z.chart.backgroundSecondary,muted:(null===z||void 0===z?void 0:z.content.muted)||T.Z.content.muted,primary:(null===z||void 0===z?void 0:z.chart.primary)||T.Z.chart.primary,tooltipBackground:(null===z||void 0===z?void 0:z.background.navigation)||T.Z.background.navigation},$=X.map(V),tt=Math.min(Math.max.apply(Math,(0,a.Z)($.map((function(t){return String(t).length})))),20);6*tt>2*G.right?G.right+=5.5*tt:6*tt>=G.right&&(G.right+=3.75*tt);var et=R-G.left-G.right,nt=n-G.top-G.bottom;G.left+=7*tt,q.rangeRound([0,et]),K.rangeRound([nt,0]);var rt=X.map(C).length,it=K($[rt-1]),ot=(0,c.useCallback)((function(t){var e=(0,j.Z)(t)||{x:0,y:0},n=e.x,r=e.y,i=1-(r-it/2)/(nt-it),o=Math.floor(i*rt),u=X[o];"undefined"===typeof u&&(u=X[o-1]),r>it&&r<nt-it&&s({tooltipData:u,tooltipLeft:n,tooltipTop:r+G.top})}),[X,rt,G.top,s,it,nt]);return R<10?null:(0,A.jsxs)("div",{children:[(0,A.jsxs)("svg",{height:n,width:R,children:[(0,A.jsx)(p.Z,{fill:"transparent",height:n-(G.top+G.bottom),onMouseLeave:function(){return r()},onMouseMove:ot,onTouchMove:ot,onTouchStart:ot,rx:14,width:R-G.left,x:G.left,y:0}),(0,A.jsxs)(m.Z,{left:G.left,top:G.top,children:[(0,A.jsx)(h.Z,{color:J,data:X,height:nt,keys:W,pointerEvents:"none",xScale:q,y:V,yScale:K,children:function(t){return t.map((function(t){return t.bars.map((function(e){return(0,A.jsx)("g",{children:(0,A.jsx)(A.Fragment,{children:(0,A.jsx)("rect",{fill:Q.backgroundPrimary,height:e.height,pointerEvents:"none",rx:4,width:e.width,x:e.x,y:e.y})})},"barstack-horizontal-".concat(t.index,"-").concat(e.index))}))}))}}),(0,A.jsx)(d.Z,{hideTicks:!0,scale:K,stroke:Q.muted,tickFormat:function(t){return B(t)},tickLabelProps:function(){return{fill:Q.active,fontFamily:I.ry,fontSize:F,style:{width:"10px"},textAnchor:"end"}},tickStroke:Q.muted,tickValues:$,top:2}),(0,A.jsx)(f.Z,{label:H,labelProps:{fill:Q.muted,fontFamily:I.ry,fontSize:F,textAnchor:"middle"},numTicks:Y,scale:q,stroke:Q.muted,tickLabelProps:function(){return{fill:Q.active,fontFamily:I.ry,fontSize:F,textAnchor:"middle"}},tickStroke:Q.muted,top:nt})]}),b&&(0,A.jsx)("g",{children:(0,A.jsx)(v.Z,{from:{x:G.left,y:L},pointerEvents:"none",stroke:k.Ej,strokeDasharray:"5,2",strokeWidth:1,to:{x:et+G.left,y:L}})})]}),D&&b&&(0,A.jsx)(y.Z,{left:P,style:M(M({},x.j),{},{backgroundColor:Q.tooltipBackground}),top:L,children:(0,A.jsxs)(E.ZP,{black:!0,small:!0,children:[null===l||void 0===l?void 0:l(b),!l&&C(b).toFixed(4)]})})]})}));var H,Y,U,V,B=function(t){var e=t.height,n=t.width,r=(0,u.Z)(t,D);return(0,A.jsx)("div",{style:{height:e,width:"undefined"===typeof n?"100%":n},children:(0,A.jsx)(s.Z,{children:function(t){var e=t.width,n=t.height;return(0,A.jsx)(R,M(M({},r),{},{height:n,width:e}))}})})},F=n(97618),z=n(52729),G=n(48670),X=n(87862),W=n(89370),J=n(86735),q=(J.Qj,J.tS,J.tS,J.tS,J.tS,J.Qj,J.Qj,J.Qj,J.tS,J.tS,H={},(0,l.Z)(H,W.RL.EMAIL,"domain_distribution"),(0,l.Z)(H,W.RL.TEXT,"word_distribution"),(0,l.Z)(H,W.RL.LIST,"element_distribution"),(0,l.Z)(H,"default","value_counts"),H),K=[].concat((0,a.Z)(W.P_),[W.RL.TEXT,W.RL.EMAIL,W.RL.LIST]),Q=(Y={},(0,l.Z)(Y,W.RL.EMAIL,"Domain distribution"),(0,l.Z)(Y,W.RL.TEXT,"Word distribution"),(0,l.Z)(Y,W.RL.LIST,"Element distribution"),(0,l.Z)(Y,"default","Distribution of values"),n(31353));!function(t){t.RANGE="range"}(U||(U={})),function(t){t.BAR_HORIZONTAL="bar_horizontal",t.LINE_CHART="line_chart",t.HISTOGRAM="histogram"}(V||(V={}));var $=n(48888),tt=n(92083),et=n.n(tt),nt=n(81728);function rt(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r||{},o=i.calculateAnomaly,u=i.feature,l=i.getYValue,c=t.x,s=t.x_metadata,d=s.label,f=s.label_type,p=t.y,h=(null===p||void 0===p?void 0:p.map((function(t){return null===l||void 0===l?void 0:l(t)})))||[],v=Math.max.apply(Math,(0,a.Z)(h)),m=Math.max.apply(Math,(0,a.Z)(h)),g=(0,J.Sm)(h),b=(0,J.IN)(h),y=g/Math.max(1,h.length),x=e[d]||u,j=null===x||void 0===x?void 0:x.columnType,O=W.RL.DATETIME===j,w=[],Z=[],E=c.length,T=c.map((function(t,e){var r,i,u,a,l=t.label,c=t.max,s=t.min,d=p[e];if(U.RANGE===f)if(n||(n=c-s),a=W.RL.NUMBER===j&&n<=E)r=Number(s);else if(r=n/2+s,O){var x="M/D/YYYY",T="M/D/YYYY",k="M/D/YYYY";n<=1?(x=n<=.1?"H:mm:ss.SSS":"H:mm:ss",T="H:mm:ss.SSS",k="H:mm:ss.SSS"):n<=60?(x="H:mm",T="H:mm:ss",k="H:mm:ss"):n<=3600?(x="H:mm",T="M/D/YYYY H:mm",k="H:mm"):n<=86400&&(T="M/D/YYYY H:mm",k="M/D/YYYY H:mm"),r=et().unix(r).format(x),i=et().unix(s).format(T),u=et().unix(c).format(k)}else r=(0,nt.QV)(r);else r=l;var S=e>=1?p[e-1]:null,P=!1;o&&(P=o({x:t,y:d,yPrevious:S,yValues:h,yValuesAverage:y,yValuesMax:v,yValuesMin:m,yValuesStandardDeviation:b,yValuesSum:g}));var I={hideRange:a,isUnusual:P,x:t,xLabel:r,xLabelMax:u,xLabelMin:i,y:d};return P&&(a?Z.push(I):w.push(I)),I}));return{distribution:{data:T,featureUUID:d},rangedWithUnusualDistribution:(0,J.YC)(w,(function(t){var e=t.y;return l(e)}),{ascending:!1}),unusualDistribution:(0,J.YC)(Z,(function(t){var e=t.y;return l(e)}),{ascending:!1})}}var it=n(40489);var ot=12*P.iI;function ut(t){var e=t.columnTypes,n=t.columns,i=t.insightsByFeatureUUID,u=t.insightsOverview,a=t.noColumnLinks,l=void 0!==a&&a,c=t.statistics;return function(t,a,s){var d=s.width,f=n[a],p=e[f],h=Q.T5[p],v=(i[f]||{}).charts,m=u.time_series,g=n.filter((function(t){return e[t]===W.RL.DATETIME})),b=null===m||void 0===m?void 0:m.map((function(t){return rt(t,{},{feature:{columnType:p,uuid:f}}).distribution})),y={};null===b||void 0===b||b.forEach((function(t,e){var n=t.data;y[g[e]]=(0,A.jsx)(z.Z,{data:n.map((function(t){var e=t.x,n=t.xLabel,r=t.xLabelMax,i=t.xLabelMin;return[n,t.y.count,i,r,e.min,e.max]})),height:ot,large:!0,margin:{bottom:0,left:0,right:0,top:0},renderTooltipContent:function(t){var e=(0,r.Z)(t,4),n=e[1],i=e[2],o=e[3];return(0,A.jsxs)("p",{children:["Rows: ",n,(0,A.jsx)("br",{}),"Start: ",i,(0,A.jsx)("br",{}),"End: ",o]})},sortData:function(t){return(0,J.YC)(t,"[4]")}},f)}));var x,j=null===v||void 0===v?void 0:v.find((function(t){var e=t.type;return V.HISTOGRAM===e})),O=(j?rt(j,{},{feature:{columnType:p,uuid:f},getYValue:function(t){return t.value}}):{}).distribution,w=void 0===O?null:O,Z=q[p]||q.default,T=null===c||void 0===c?void 0:c["".concat(f,"/").concat(Z)],k=Object.entries(T||{}).map((function(t){var e=(0,r.Z)(t,2),n=e[0];return{x:e[1],y:n}})),S=W.RL.TRUE_OR_FALSE===p;if(W.RL.DATETIME===p)x=y[f];else if(w&&!S)x=(0,A.jsx)(z.Z,{data:w.data.map((function(t){var e=t.hideRange,n=t.isUnusual,r=t.x;return[t.xLabel,t.y.value,r.min,r.max,n,e]})),height:ot,margin:{bottom:0,left:0,right:0,top:0},renderTooltipContent:function(t){var e=(0,r.Z)(t,6),n=e[1],i=e[2],o=e[3],u=e[5];return(0,A.jsxs)("p",{children:[u&&(0,A.jsxs)(A.Fragment,{children:["Rows: ",n,(0,A.jsx)("br",{}),"Value: ",i]}),!u&&(0,A.jsxs)(A.Fragment,{children:["Rows: ",n,(0,A.jsx)("br",{}),"Range: ",i," - ",o]})]})},sortData:function(t){return(0,J.YC)(t,"[2]")},width:d-2*P.iI});else if(K.includes(p)){var I=(0,J.YC)((0,J.YC)(k,"x",{ascending:!1}).slice(0,5),"x");x=(0,A.jsx)(B,{data:I,height:ot,margin:{bottom:0,left:0,right:20,top:0},renderTooltipContent:function(t){var e=t.x,n=t.y;return"".concat(n," appears ").concat((0,nt.x6)(e)," times")},xNumTicks:2,ySerialize:function(t){return t.y}})}else S&&T&&(x=(0,A.jsx)(X.Z,{data:Object.entries(T),getX:function(t){var e=(0,r.Z)(t,2),n=e[0],i=e[1];return"".concat(n," (").concat((0,nt.x6)(i),")")},getY:function(t){return(0,r.Z)(t,2)[1]},height:ot}));return(0,A.jsxs)("div",{style:{padding:P.iI},children:[(0,A.jsxs)("div",{style:{alignItems:"center",display:"flex",marginBottom:P.iI},children:[h&&(0,A.jsx)(F.Z,{title:W.Rp[p],children:(0,A.jsx)(h,{size:2*P.iI})}),(0,A.jsx)("div",{style:{marginLeft:.5*P.iI,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:d-4.5*P.iI},children:l?(0,A.jsx)(E.ZP,{bold:!0,default:!0,title:n[a],children:n[a]}):(0,A.jsx)(o(),{as:(0,it.o_)($.oE,a),href:"/datasets/[...slug]",passHref:!0,children:(0,A.jsx)(G.Z,{bold:!0,monospace:!0,secondary:!0,small:!0,title:n[a],children:n[a]})})})]}),x,!x&&(0,A.jsx)("div",{style:{height:ot}})]})}}},40489:function(t,e,n){"use strict";n.d(e,{o_:function(){return l}});var r=n(75582),i=n(34376),o=n(48888);n(82684),n(12691),n(71180),n(58036),n(97618),n(55485),n(48670),n(38276),n(30160),n(72473),n(28598);var u,a=n(69419);!function(t){t.DATASETS="datasets",t.DATASET_DETAIL="dataset_detail",t.COLUMNS="features",t.COLUMN_DETAIL="feature_detail",t.EXPORT="export"}(u||(u={}));var l=function(t,e){var n=(0,i.useRouter)().query.slug,l=void 0===n?[]:n,c=(0,r.Z)(l,1)[0],s=(0,a.iV)(),d=s.show_columns,f=s.column,p="/".concat(u.DATASETS,"/").concat(c),h="".concat(o.H3,"=").concat(f||e),v="".concat(o.yg,"=").concat(t,"&").concat(h,"&").concat(o.AE,"=").concat(d||0);return"".concat(p,"?").concat(v)}},44265:function(t,e,n){"use strict";n.d(e,{Az:function(){return c},BF:function(){return l},Do:function(){return d},IK:function(){return a},P0:function(){return i},VO:function(){return u},sZ:function(){return s}});var r,i,o=n(82394),u=n(41143).V,a=[u.FAILED,u.COMPLETED,u.RUNNING,u.CANCELLED,u.INITIAL],l=[u.INITIAL,u.RUNNING],c=[u.CANCELLED,u.COMPLETED,u.FAILED],s="__mage_variables",d=(r={},(0,o.Z)(r,u.CANCELLED,"Cancelled"),(0,o.Z)(r,u.COMPLETED,"Done"),(0,o.Z)(r,u.FAILED,"Failed"),(0,o.Z)(r,u.INITIAL,"Ready"),(0,o.Z)(r,u.RUNNING,"Running"),r);!function(t){t.PIPELINE_UUID="pipeline_uuid[]",t.STATUS="status[]",t.TAG="pipeline_tag[]"}(i||(i={}))},30229:function(t,e,n){"use strict";n.d(e,{TR:function(){return p},U5:function(){return l},Wb:function(){return f},Xm:function(){return o},Z4:function(){return c},fq:function(){return a},gm:function(){return s},kJ:function(){return d}});var r,i,o,u=n(82394);!function(t){t.API="api",t.EVENT="event",t.TIME="time"}(o||(o={}));var a,l,c=(r={},(0,u.Z)(r,o.API,(function(){return"API"})),(0,u.Z)(r,o.EVENT,(function(){return"event"})),(0,u.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(t){t.ACTIVE="active",t.INACTIVE="inactive"}(a||(a={})),function(t){t.ONCE="@once",t.HOURLY="@hourly",t.DAILY="@daily",t.WEEKLY="@weekly",t.MONTHLY="@monthly",t.ALWAYS_ON="@always_on"}(l||(l={}));var s,d,f=[l.ONCE,l.HOURLY,l.DAILY,l.WEEKLY,l.MONTHLY];!function(t){t.INTERVAL="frequency[]",t.STATUS="status[]",t.TAG="tag[]",t.TYPE="type[]"}(s||(s={})),function(t){t.CREATED_AT="created_at",t.NAME="name",t.PIPELINE="pipeline_uuid",t.STATUS="status",t.TYPE="schedule_type"}(d||(d={}));var p=(i={},(0,u.Z)(i,d.CREATED_AT,"Created at"),(0,u.Z)(i,d.NAME,"Name"),(0,u.Z)(i,d.PIPELINE,"Pipeline"),(0,u.Z)(i,d.STATUS,"Active"),(0,u.Z)(i,d.TYPE,"Type"),i)},14532:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return et}});var r=n(77837),i=n(75582),o=n(82394),u=n(38860),a=n.n(u),l=n(82684),c=n(69864),s=n(34376),d=n(23192),f=n(71180),p=n(15338),h=n(97618),v=n(55485),m=n(85854),g=n(55072),b=n(75457),y=n(44265),x=n(57653),j=n(93808),O=n(38276),w=n(4190),Z=n(30160),E=n(35686),T=n(21831),k=n(26304),S=n(90299),P=n(93859),I=n(24138),A=n(48339),D=n(70515),L=n(66909),M=n(8955),_=n(16488),C=n(81728),N=n(86735),R=n(28598),H=["blockRuns","blocksOverride","columns","dataType","height","heightOffset","loadingData","outputs","pipeline","renderColumnHeader","rows","selectedRun","selectedTab","setSelectedTab","textData"];function Y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function U(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var V={uuid:"Dependency tree"},B={uuid:"Block output"},F=[B,V];var z=n(28795),G=n(81655),X=n(3917),W=n(72619),J=n(3314),q=n(69419),K=n(70320);function Q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function $(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function tt(t){var e=t.pipeline,n=t.pipelineRun,r=(0,K.q)(),o=(0,s.useRouter)(),u=(0,q.iV)(),a=null!==u&&void 0!==u&&u.page?u.page:0,j=(0,l.useState)(null),Y=j[0],Q=j[1],tt=(0,l.useState)(F[0]),et=tt[0],nt=tt[1],rt=(0,l.useState)(null),it=rt[0],ot=rt[1],ut=E.ZP.blocks.pipeline_runs.list(null===n||void 0===n?void 0:n.id,{},{refreshInterval:5e3}).data,at=e.uuid,lt=E.ZP.pipelines.detail(at,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,ct=(0,l.useMemo)((function(){return $($({},null===lt||void 0===lt?void 0:lt.pipeline),{},{uuid:at})}),[lt,at]),st=E.ZP.pipeline_runs.detail(n.id,{_format:"with_basic_details"},{refreshInterval:3e3,revalidateOnFocus:!0}).data,dt=(0,l.useMemo)((function(){return(null===st||void 0===st?void 0:st.pipeline_run)||{}}),[st]),ft=dt.execution_date,pt=dt.id,ht=dt.status,vt={_limit:g.Q,_offset:a*g.Q,pipeline_run_id:pt},mt=null===u||void 0===u?void 0:u[G.lG.SORT_COL_IDX],gt=null===u||void 0===u?void 0:u[G.lG.SORT_DIRECTION];if(mt){var bt=d.fi[mt],yt=gt||G.sh.ASC;vt.order_by="".concat(bt,"%20").concat(yt)}var xt=E.ZP.block_runs.list(vt,{refreshInterval:5e3}),jt=xt.data,Ot=xt.mutate,wt=(0,l.useMemo)((function(){return(null===jt||void 0===jt?void 0:jt.block_runs)||[]}),[jt]),Zt=(0,c.Db)(E.ZP.pipeline_runs.useUpdate(pt),{onSuccess:function(t){return(0,W.wD)(t,{callback:function(){Q(null),null===Ot||void 0===Ot||Ot()},onErrorCallback:function(t,e){return ot({errors:e,response:t})}})}}),Et=(0,i.Z)(Zt,2),Tt=Et[0],kt=Et[1].isLoading,St=E.ZP.outputs.block_runs.list(null===Y||void 0===Y?void 0:Y.id),Pt=St.data,It=St.loading;(0,l.useEffect)((function(){Y||(null===et||void 0===et?void 0:et.uuid)!==B.uuid||nt(V)}),[Y,null===et||void 0===et?void 0:et.uuid]);var At=(0,l.useMemo)((function(){return(0,R.jsx)(d.ZP,{blockRuns:wt,onClickRow:function(t){Q((function(e){var n=wt[t],r=(null===e||void 0===e?void 0:e.id)!==n.id?n:null;return r&&nt((function(t){return t!==B?B:t})),r}))},pipeline:ct,selectedRun:Y,setErrors:ot,sortableColumnIndexes:d.lG})}),[wt,ct,Y]),Dt=(null===ct||void 0===ct?void 0:ct.type)!==x.qL.STREAMING&&ht&&ht!==y.VO.COMPLETED,Lt=((null===ct||void 0===ct?void 0:ct.type)===x.qL.PYTHON||(null===ct||void 0===ct?void 0:ct.type)===x.qL.INTEGRATION)&&Y&&y.Az.includes(ht),Mt=(0,l.useMemo)((function(){var t;return(null===jt||void 0===jt||null===(t=jt.metadata)||void 0===t?void 0:t.count)||[]}),[jt]),_t=(0,l.useMemo)((function(){return(0,R.jsx)(O.Z,{p:2,children:(0,R.jsx)(g.ZP,{maxPages:g.Et,onUpdate:function(t){var e=Number(t),n=$($({},u),{},{page:e>=0?e:0});Q(null),o.push("/pipelines/[pipeline]/runs/[run]","/pipelines/".concat(at,"/runs/").concat(pt,"?").concat((0,q.uM)(n)))},page:Number(a),totalPages:Math.ceil(Mt/g.Q)})})}),[a,pt,at,u,o,Mt]),Ct=(0,l.useCallback)((function(t){return function(t){var e=t.blockRuns,n=t.blocksOverride,r=(t.columns,t.dataType,t.height),o=t.heightOffset,u=t.loadingData,a=t.outputs,l=t.pipeline,c=t.renderColumnHeader,s=(t.rows,t.selectedRun),d=t.selectedTab,f=t.setSelectedTab,p=(t.textData,U({},(0,k.Z)(t,H)));p.blockStatus=(0,_.IJ)(e);var h=[],m=[];if(!u){var g,b={};null===a||void 0===a||a.forEach((function(t){var e=t.type;b[e]||(b[e]={outputs:[],priority:Object.keys(b).length}),b[e].outputs.push(t)})),null===(g=(0,N.YC)(Object.entries(b),(function(t){var e=(0,i.Z)(t,2);return e[0],e[1].priority})))||void 0===g||g.forEach((function(t){var e=(0,i.Z)(t,2),n=e[0],u=e[1].outputs,a=[];null===u||void 0===u||u.forEach((function(t,e){var i,u=t.sample_data,l=t.text_data,s=t.type,d=(0,R.jsx)(O.Z,{ml:2,children:(0,R.jsx)(Z.ZP,{children:"This block run has no output."})},"output-empty-".concat(e));if(s===A.Gi.TABLE){var f=((null===u||void 0===u?void 0:u.columns)||[]).slice(0,40),p=(null===u||void 0===u?void 0:u.rows)||[];i=p&&(null===p||void 0===p?void 0:p.length)>=1?(0,R.jsx)(P.Z,{columnHeaderHeight:c?L.Eh:0,columns:f,height:r-o-90,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,renderColumnHeader:c,rows:p},"output-table-".concat(e)):d}else{var v=(0,C.Pb)(l)?JSON.stringify(JSON.parse(l),null,2):l;i=l?(0,R.jsx)(O.Z,{ml:2,children:(0,R.jsx)(Z.ZP,{monospace:!0,children:(0,R.jsx)("pre",{children:v})})},"output-text-".concat(e)):d}A.Gi.TEXT===n?(a.push(i),0===e&&m.push({uuid:"Block output ".concat(e+1)})):(h.push(i),m.push({uuid:"Block output ".concat(e+1)}))})),A.Gi.TEXT===n&&h.push(a)}))}var y=h,x=m,j=F;(null===x||void 0===x?void 0:x.length)>=2&&(j=[B].concat((0,T.Z)(x.slice(1)),[V]));var E=d&&f,Y=y[j.findIndex((function(t){return t.uuid===(null===d||void 0===d?void 0:d.uuid)}))];return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("div",{style:{position:"fixed",top:"50px"},children:E&&(0,R.jsx)(O.Z,{py:D.cd,children:(0,R.jsx)(S.Z,{onClickTab:f,selectedTabUUID:null===d||void 0===d?void 0:d.uuid,tabs:s?j:[V]})})}),(0,R.jsxs)("div",{style:{position:"relative",top:"75px"},children:[(!s||V.uuid===(null===d||void 0===d?void 0:d.uuid))&&(0,R.jsx)(I.ZP,U(U({},p),{},{blocksOverride:n,enablePorts:!1,height:r,heightOffset:(o||0)+(E?M.u$:0),pipeline:l})),s&&d&&V.uuid!==(null===d||void 0===d?void 0:d.uuid)&&(0,R.jsxs)(R.Fragment,{children:[u&&(0,R.jsx)(O.Z,{mt:2,children:(0,R.jsx)(v.ZP,{alignItems:"center",fullWidth:!0,justifyContent:"center",children:(0,R.jsx)(w.Z,{color:"white",large:!0})})}),!u&&Y]})]})]})}($($({},t),{},{blockRuns:wt,blocksOverride:null===ut||void 0===ut?void 0:ut.blocks,loadingData:It,outputs:null===Pt||void 0===Pt?void 0:Pt.outputs,selectedRun:Y,selectedTab:et,setSelectedTab:nt,showDynamicBlocks:!0}))}),[wt,ut,Pt,It,Y,et,nt]);return(0,R.jsxs)(b.Z,{breadcrumbs:[{label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(at,"/runs"),href:"/pipelines/[pipeline]/runs"}},{label:function(){return r?(0,X.XG)(ft,r):ft}}],buildSidekick:Ct,errors:it,pageName:z.M.RUNS,pipeline:ct,setErrors:ot,subheader:(Dt||Lt)&&(0,R.jsxs)(v.ZP,{alignItems:"center",children:[y.BF.includes(ht)&&(0,R.jsxs)(h.Z,{children:[(0,R.jsx)(Z.ZP,{bold:!0,default:!0,large:!0,children:"Pipeline is running"}),(0,R.jsx)(O.Z,{mr:1}),(0,R.jsx)(w.Z,{inverted:!0}),(0,R.jsx)(O.Z,{mr:2})]}),Dt&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(f.ZP,{danger:!0,loading:kt,onClick:function(t){(0,J.j)(t),Tt({pipeline_run:{pipeline_run_action:"retry_blocks"}})},outline:!0,children:"Retry incomplete blocks"}),(0,R.jsx)(O.Z,{mr:2})]}),Lt&&(0,R.jsxs)(f.ZP,{loading:kt,onClick:function(t){(0,J.j)(t),Tt({pipeline_run:{from_block_uuid:Y.block_uuid,pipeline_run_action:"retry_blocks"}})},outline:!0,primary:!0,children:["Retry from selected block (",Y.block_uuid,")"]})]}),title:function(t){var e=t.name;return"".concat(e," runs")},uuid:"".concat(z.M.RUNS,"_").concat(at,"_").concat(pt),children:[(0,R.jsx)(O.Z,{mt:D.cd,px:D.cd,children:(0,R.jsx)(m.Z,{level:5,children:"Block runs"})}),(0,R.jsx)(p.Z,{light:!0,mt:D.cd,short:!0}),At,_t]})}tt.getInitialProps=function(){var t=(0,r.Z)(a().mark((function t(e){var n,r,i;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.query,r=n.pipeline,i=n.run,t.abrupt("return",{pipeline:{uuid:r},pipelineRun:{id:i}});case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();var et=(0,j.Z)(tt)},39525:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs/[run]",function(){return n(14532)}])}},function(t){t.O(0,[2678,1154,844,5820,1124,1751,5896,9161,2631,4267,600,8487,8264,7858,5499,5457,4366,722,3419,9774,2888,179],(function(){return e=39525,t(t.s=e);var e}));var e=t.O();_N_E=e}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[244],{29241:function(e,n,t){"use strict";var i=t(38626),r=t(44897),u=i.default.div.withConfig({displayName:"PageSectionHeader",componentId:"sc-1wznrcv-0"})(["left:0;position:sticky;top:0;width:100%;z-index:3;",""],(function(e){return"\n background-color: ".concat(e.backgroundColor||(e.theme.background||r.Z.background).page,";\n border-bottom: 1px solid ").concat((e.theme.borders||r.Z.borders).medium,";\n ")}));n.Z=u},35526:function(e,n,t){"use strict";t.d(n,{Au:function(){return a},I6:function(){return c},Nb:function(){return i},OK:function(){return s},hZ:function(){return p},k2:function(){return d}});var i,r=t(42631),u=t(72473),o=t(70515),l=t(28598),c="".concat(1.5*o.iI,"px"),s=40*o.iI,a=58;!function(e){e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND"}(i||(i={}));var d={autoHide:!0,size:null,widthFitContent:!0},p={afterIconSize:1.5*o.iI,beforeIcon:(0,l.jsx)(u.HN,{}),borderRadius:r.n_,defaultColor:!0,fullWidth:!0,greyBorder:!0,maxWidth:40*o.iI}},46732:function(e,n,t){"use strict";var i=t(82394),r=t(26304),u=(t(82684),t(50724)),o=t(70374),l=t(28598),c=["children","items","open","onClickCallback","onClickOutside","parentRef","uuid","zIndex"];function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.items,i=e.open,s=e.onClickCallback,d=e.onClickOutside,p=e.parentRef,f=e.uuid,v=e.zIndex,b=(0,r.Z)(e,c),h=(0,l.jsxs)("div",{style:{position:"relative",zIndex:(d?3:2)+(v||0)},children:[(0,l.jsx)("div",{ref:p,children:n}),(0,l.jsx)(o.Z,a(a({},b),{},{items:t,onClickCallback:s,open:i,parentRef:p,uuid:f}))]});return d?(0,l.jsx)(u.Z,{onClickOutside:d,open:!0,children:h}):h}},17380:function(e,n,t){"use strict";t.d(n,{i:function(){return a}});t(82684);var i=t(38626),r=(t(97618),t(55485),t(48670),t(38276),t(47329)),u=t.n(r);u().node,u().node,u().node.isRequired,u().bool,u().string.isRequired;t(30160);var o=t(70987),l=t(95363),c=t(70515),s=t(42631),a=(t(28598),"tab");i.default.div.withConfig({displayName:"Tabs__TabHeaderContainerStyle",componentId:"sc-rojme5-0"})(["",""],(function(e){return e.containerWidthPercentage&&"\n width: ".concat(e.containerWidthPercentage,"%;\n ")})),i.default.div.withConfig({displayName:"Tabs__TabHeader",componentId:"sc-rojme5-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;margin-right:","px;position:relative;z-index:2;"," "," ",""],s.BG,s.BG,6*c.iI,(function(e){return e.noBottomBorder&&"\n border-bottom: none;\n "}),(function(e){return e.active&&"\n border-bottom: ".concat(c.cd,"px solid;\n border-color: ").concat((e.theme.interactive||o.Z.interactive).linkPrimary,";\n ")}),(function(e){return e.fullWidth&&"\n width: 100%;\n "})),i.default.div.withConfig({displayName:"Tabs__LinkStyle",componentId:"sc-rojme5-2"})(["align-items:center;display:flex;"," "," ",""],(function(e){return e.bold&&"\n font-family: ".concat(l.nF,";\n ")}),(function(e){return e.fullWidth&&"\n justify-content: center;\n "}),(function(e){return!e.disabled&&"\n &:hover {\n path {\n fill: ".concat((e.theme.content||o.Z.interactive).linkPrimary," !important;\n }\n }\n ")}))},81080:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return $}});var i=t(77837),r=t(75582),u=t(82394),o=t(38860),l=t.n(o),c=t(82684),s=t(69864),a=t(34376),d=t(28598);var p=function(e){var n=e.size;return(0,d.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 8.5H15.5V3.5H20.5V8.5ZM14 9V3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55229 21.5523 10 21 10H15C14.4477 10 14 9.55229 14 9ZM2 5V12.5V14V21.5C2 22.0523 2.44772 22.5 3 22.5H10.5H12H19.5C20.0523 22.5 20.5 22.0523 20.5 21.5V13.5C20.5 12.9477 20.0523 12.5 19.5 12.5H12V5C12 4.44772 11.5523 4 11 4H3C2.44772 4 2 4.44772 2 5ZM10.5 14V21H3.5V14H10.5ZM19 14V21H12V14H19ZM10.5 5.5V12.5H3.5V5.5H10.5Z",fill:"url(#paint0_linear_2842_55048)"}),(0,d.jsx)("defs",{children:(0,d.jsxs)("linearGradient",{id:"paint0_linear_2842_55048",x1:"2",y1:"12.25",x2:"22",y2:"12.25",gradientUnits:"userSpaceOnUse",children:[(0,d.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,d.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},f=t(23192),v=t(71180),b=t(90299),h=t(50724),m=t(55485),g=t(46732),C=t(29241),_=t(55072);var j=function(e){var n=e.size;return(0,d.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("g",{clipPath:"url(#clip0_3007_70027)",children:(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.75 6.6859C1.75 3.95988 3.95988 1.75 6.6859 1.75h.98788c-.23022.41608-.36128.89466-.36128 1.40385s.13106.98777.36128 1.40384h-.71224c-1.32761 0-2.40385 1.07624-2.40385 2.40385 0 1.32761 1.07624 2.40385 2.40385 2.40385H15.609c3.3916 0 6.141 2.74941 6.141 6.14101 0 3.3916-2.7494 6.141-6.141 6.141H9.55584c.23019-.416.36123-.8946.36123-1.4037 0-.5092-.13108-.9879-.36134-1.404H15.609c1.8409 0 3.3333-1.4923 3.3333-3.3333 0-1.8409-1.4924-3.3333-3.3333-3.3333H6.96154C4.08329 12.1731 1.75 9.83979 1.75 6.96154V6.6859zM10.2163.25H6.6859C3.13145.25.25 3.13145.25 6.6859v.27564c0 3.70666 3.00486 6.71156 6.71154 6.71156H15.609c1.0125 0 1.8333.8208 1.8333 1.8333s-.8208 1.8333-1.8333 1.8333H7.01282c-1.60375 0-2.90385 1.3001-2.90385 2.9039 0 1.3248.88713 2.4423 2.09974 2.7911.06039.0173.12158.0328.18352.0463.20007.0436.40785.0665.62099.0665l.02449-.0001H15.609c4.22 0 7.641-3.421 7.641-7.641 0-4.22-3.421-7.64101-7.641-7.64101H6.96154c-.49918 0-.90385-.40467-.90385-.90385 0-.49918.40467-.90385.90385-.90385h3.25636c1.6038 0 2.9039-1.30009 2.9039-2.90384 0-1.60375-1.3001-2.903849-2.9039-2.90385h-.0016zm0 4.30769c-.77528 0-1.4038-.62852-1.4038-1.40384 0-.77505.62808-1.4034 1.403-1.40385h.0017c.7749.00045 1.403.6288 1.403 1.40385 0 .77532-.6285 1.40384-1.4039 1.40384zM7.01282 21.6474c-.10108 0-.19967-.0106-.29469-.0309-.03025-.0065-.06014-.0139-.08963-.0223-.58829-.1673-1.01912-.7086-1.01912-1.3505 0-.7753.62852-1.4039 1.40384-1.4039s1.40385.6286 1.40385 1.4039c0 .7696-.61935 1.3946-1.38683 1.4037h-.01742z",fill:"url(#paint0_linear_3007_70027)"})}),(0,d.jsxs)("defs",{children:[(0,d.jsxs)("linearGradient",{id:"paint0_linear_3007_70027",x1:"11.75",y1:".250001",x2:"11.75",y2:"23.1475",gradientUnits:"userSpaceOnUse",children:[(0,d.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,d.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,d.jsx)("clipPath",{id:"clip0_3007_70027",children:(0,d.jsx)("path",{fill:"#fff",transform:"matrix(0 1 1 0 0 0)",d:"M0 0h24v24H0z"})})]})]})},x=t(75457),O=t(44265),y=t(53943),R=t(89515),w=t(93808),k=t(44085),I=t(38276),Z=t(4190),S=t(17488),P=t(35686),E=t(8955),N=t(98464),D=t(72473),M=t(15610),H=t(28795),T=t(57653),V=t(35526),B=t(41143),L=t(81655),A=t(17380),z=t(70515),F=t(24944),U=t(72619),G=t(42122),K=t(69419);function Q(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function W(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Q(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Q(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Y={Icon:D.Nt,IconSelected:j,label:function(){return"Pipeline runs"},uuid:"pipeline_runs"},X={Icon:D.Re,IconSelected:p,label:function(){return"Block runs"},uuid:"block_runs"},q=[Y,X];function J(e){var n,t,i=e.pipeline,u=(0,a.useRouter)(),o=(0,c.useRef)(null),l=(0,c.useRef)(null),p=(0,c.useState)(null),j=p[0],w=p[1],Q=(0,c.useState)(null),J=Q[0],$=Q[1],ee=(0,c.useState)(Y),ne=ee[0],te=ee[1],ie=(0,c.useState)(E.G7[0]),re=ie[0],ue=ie[1],oe=(0,c.useState)(null),le=oe[0],ce=oe[1],se=(0,c.useState)({}),ae=se[0],de=se[1],pe=(0,c.useState)(null),fe=pe[0],ve=pe[1],be=(0,c.useState)(!1),he=be[0],me=be[1],ge=(0,c.useState)(null),Ce=ge[0],_e=ge[1],je=(0,c.useState)(null),xe=je[0],Oe=je[1],ye=(0,c.useState)(null),Re=ye[0],we=ye[1],ke=(0,c.useMemo)((function(){return Y.uuid===(null===ne||void 0===ne?void 0:ne.uuid)}),[null===ne||void 0===ne?void 0:ne.uuid]),Ie=i.uuid,Ze=P.ZP.pipelines.detail(Ie,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,Se=(0,c.useMemo)((function(){return W(W({},null===Ze||void 0===Ze?void 0:Ze.pipeline),{},{uuid:Ie})}),[Ze,Ie]),Pe=(0,K.iV)(),Ee=(0,N.Z)(Pe),Ne=null!==Pe&&void 0!==Pe&&Pe.page?Pe.page:0;(0,c.useEffect)((function(){var e=Pe.pipeline_run_id,n=Pe.status;if(!(0,G.Xy)(Pe,Ee)){var t=W(W({},Ee),Pe);e?t.pipeline_run_id=e:t.pipeline_uuid=Ie,n?t.status=n:delete t.status,we(t),de({})}}),[Ie,Pe,Ee]);var De={_limit:_.Q,_offset:Ne*_.Q,pipeline_uuid:Ie},Me=(0,G.gR)(W(W({},Re),De),[A.i,"page",L.lG.SORT_COL_IDX,L.lG.SORT_DIRECTION]);ke&&(Me=(0,G.gR)(Me,[M.O2,"status"]));var He=null===Pe||void 0===Pe?void 0:Pe[L.lG.SORT_COL_IDX],Te=null===Pe||void 0===Pe?void 0:Pe[L.lG.SORT_DIRECTION];if(He){var Ve=f.fi[He],Be=Te||L.sh.ASC;Me.order_by="".concat(Ve,"%20").concat(Be)}var Le=P.ZP.block_runs.list(Me,{}).data;(0,c.useEffect)((function(){(0,U.bB)(Le,$)}),[Le]);var Ae=(0,c.useMemo)((function(){return(null===Le||void 0===Le?void 0:Le.block_runs)||[]}),[Le]),ze=W(W({},De),{},{disable_retries_grouping:!0});null!==Pe&&void 0!==Pe&&Pe.status&&(ze.status=Pe.status),ke||(ze=(0,G.gR)(ze,[M.O2]));var Fe=P.ZP.pipeline_runs.list(ze,{refreshInterval:5e3},{pauseFetch:!Ie}),Ue=Fe.data,Ge=Fe.mutate,Ke=(0,c.useMemo)((function(){var e=(null===Ue||void 0===Ue?void 0:Ue.pipeline_runs)||[];if(fe){var n=fe.toLowerCase();e=e.filter((function(e){var t=e.event_variables,i=e.variables;return JSON.stringify(i||{}).toLowerCase().includes(n)||JSON.stringify(t||{}).toLowerCase().includes(n)}))}return e}),[null===Ue||void 0===Ue?void 0:Ue.pipeline_runs,fe]),Qe=(0,c.useMemo)((function(){var e,n;return ke?(null===Ue||void 0===Ue||null===(e=Ue.metadata)||void 0===e?void 0:e.count)||[]:(null===Le||void 0===Le||null===(n=Le.metadata)||void 0===n?void 0:n.count)||[]}),[null===Le||void 0===Le||null===(n=Le.metadata)||void 0===n?void 0:n.count,null===Ue||void 0===Ue||null===(t=Ue.metadata)||void 0===t?void 0:t.count,ke]),We=(0,c.useMemo)((function(){return Ke.some((function(e){var n=e.status;return n===B.V.INITIAL||n===B.V.RUNNING}))}),[Ke]),Ye=(0,c.useMemo)((function(){return Ke.some((function(e){return e.status===B.V.FAILED}))}),[Ke]),Xe=(0,c.useMemo)((function(){return Object.values(ae||{}).filter((function(e){return null!==e}))}),[ae]),qe=Xe.length,Je=(0,c.useMemo)((function(){return Object.values(ae||{}).filter((function(e){return null!==e&&O.BF.includes(null===e||void 0===e?void 0:e.status)}))}),[ae]),$e=Je.length,en=(0,s.Db)(P.ZP.pipelines.useUpdate(Ie),{onSuccess:function(e){return(0,U.wD)(e,{callback:function(){de({}),Ge()},onErrorCallback:function(e,n){return w({errors:n,response:e})}})}}),nn=(0,r.Z)(en,1)[0],tn=(0,s.Db)((function(e){return P.ZP.pipeline_runs.useDelete(e)()}),{onSuccess:function(e){return(0,U.wD)(e,{callback:function(e){var n=e.pipeline_run.pipeline_uuid;null===Ge||void 0===Ge||Ge(),n?u.push("/pipelines/[pipeline]/runs","/pipelines/".concat(n,"/runs")):null===Ge||void 0===Ge||Ge(),ce(null)},onErrorCallback:function(e,n){return w({errors:n,response:e})}})}}),rn=(0,r.Z)(tn,1)[0],un=(0,N.Z)(ne);(0,c.useEffect)((function(){var e=Pe[A.i];e&&te(q.find((function(n){return n.uuid===e})))}),[Pe,ne,un]);var on=(0,c.useMemo)((function(){return[{isGroupingTitle:!0,label:function(){return"".concat(qe," selected")},uuid:"runs_selected_count"},{beforeIcon:(0,d.jsx)(D.hY,{muted:0===qe}),disabled:0===qe,label:function(){return"Retry selected (".concat(qe,")")},onClick:function(){return nn({pipeline:{pipeline_runs:Xe,status:T.QK.RETRY}})},uuid:"retry_selected"},{beforeIcon:(0,d.jsx)(D.hY,{muted:!Ye||We}),disabled:!Ye||We,label:function(){return"Retry all incomplete block runs"},onClick:function(){return nn({pipeline:{status:T.QK.RETRY_INCOMPLETE_BLOCK_RUNS}})},openConfirmationDialogue:!0,uuid:T.QK.RETRY_INCOMPLETE_BLOCK_RUNS},{beforeIcon:(0,d.jsx)(D.uy,{muted:0===$e}),disabled:0===$e,label:function(){return"Cancel selected running (".concat($e,")")},onClick:function(){return nn({pipeline:{pipeline_runs:Je,status:B.V.CANCELLED}})},uuid:"cancel_selected_running"},{beforeIcon:(0,d.jsx)(D.uy,{muted:!(We&&ke)}),disabled:!(We&&ke),label:function(){return"Cancel all running"},onClick:function(){return nn({pipeline:{status:B.V.CANCELLED}})},openConfirmationDialogue:!0,uuid:H.B}]}),[Ye,We,ke,Je,$e,Xe,qe,nn]),ln=(0,c.useMemo)((function(){return(0,d.jsx)(I.Z,{p:2,children:(0,d.jsx)(_.ZP,{maxPages:_.Et,onUpdate:function(e){var n=Number(e),t=W(W({},Pe),{},{page:n>=0?n:0});ce(null),u.push("/pipelines/[pipeline]/runs","/pipelines/".concat(Ie,"/runs?").concat((0,K.uM)(t)))},page:Number(Ne),totalPages:Math.ceil(Qe/_.Q)})})}),[Ne,Ie,Pe,u,Qe]),cn=(0,c.useMemo)((function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(y.Z,{allowBulkSelect:(null===Se||void 0===Se?void 0:Se.type)!==T.qL.STREAMING,allowDelete:!0,deletePipelineRun:rn,disableKeyboardNav:he,emptyMessage:fe?"No runs on this page match your search.":void 0,fetchPipelineRuns:Ge,onClickRow:function(e){return ce((function(n){var t=Ke[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:Ke,selectedRun:le,selectedRuns:ae,setErrors:w,setSelectedRun:ce,setSelectedRuns:de}),ln]})}),[rn,Ge,ln,null===Se||void 0===Se?void 0:Se.type,Ke,le,ae,he,fe]),sn=(0,c.useMemo)((function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.ZP,{blockRuns:Ae,pipeline:Se,sortableColumnIndexes:f.lG}),ln]})}),[Ae,ln,Se]);return(0,d.jsxs)(x.Z,{afterHidden:ke&&!le,breadcrumbs:[{label:function(){return"Runs"}}],buildSidekick:ke?function(e){return(0,E.ZP)(W(W({},e),{},{selectedRun:le,selectedTab:re,setSelectedTab:ue}))}:function(e){return(0,E.ZP)(e)},errors:j||J,pageName:H.M.RUNS,pipeline:Se,setErrors:w,title:function(e){var n=e.name;return"".concat(n," runs")},uuid:"".concat(H.M.RUNS,"_").concat(Ie),children:[(0,d.jsx)(C.Z,{children:(0,d.jsx)(I.Z,{pr:1,py:1,children:(0,d.jsxs)(m.ZP,{alignItems:"center",children:[(0,d.jsx)(b.Z,{onClickTab:function(e){var n=e.uuid;n!==(null===ne||void 0===ne?void 0:ne.uuid)&&(we(null),(0,M.u7)({tab:n},{replaceParams:!0}))},selectedTabUUID:null===ne||void 0===ne?void 0:ne.uuid,tabs:q}),ke&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(F.lZ,{right:1}),(0,d.jsxs)(I.Z,{px:2,children:[(0,d.jsx)(g.Z,{items:on,multipleConfirmDialogues:!0,onClickCallback:function(){return me(!1)},onClickOutside:function(){return me(!1)},open:he,parentRef:o,roundedStyle:!0,setConfirmationAction:Oe,setConfirmationDialogueOpen:_e,topOffset:4,uuid:"PipelineRuns/ActionsMenu",children:(0,d.jsx)(v.ZP,{afterIcon:(0,d.jsx)(D.K5,{}),onClick:function(){return me((function(e){return!e}))},outline:!0,padding:"6px 12px",children:"Actions"})}),(0,d.jsx)(h.Z,{onClickOutside:function(){return _e(null)},open:!!Ce,children:(0,d.jsx)(R.Z,{danger:Ce===H.B,onCancel:function(){return _e(null)},onClick:function(){null===xe||void 0===xe||xe(),_e(null)},subtitle:"This includes runs on other pages as well, not just the current page."+(Ce===T.QK.RETRY_INCOMPLETE_BLOCK_RUNS?" Incomplete block runs will be retried for FAILED pipeline runs specifically.":""),title:Ce===H.B?"Are you sure you want to cancel all pipeline runs in progress?":"Are you sure you want to retry all incomplete block runs for any failed pipeline runs?",width:V.OK})})]}),(0,d.jsxs)(k.Z,{compact:!0,defaultColor:!0,greyBorder:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?(we(null),(0,M.u7)({tab:Y.uuid},{replaceParams:!0})):(0,M.u7)({page:0,status:e.target.value})},paddingRight:4*z.iI,placeholder:"Select run status",value:null===Re||void 0===Re?void 0:Re.status,children:[(0,d.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),O.IK.map((function(e){return(0,d.jsx)("option",{value:e,children:O.Do[e]},e)}))]}),(0,d.jsx)(I.Z,{ml:2}),(0,d.jsx)(S.Z,W(W({},V.hZ),{},{afterIcon:fe?(0,d.jsx)(D.x8,{}):null,afterIconClick:function(){var e;ve(""),null===l||void 0===l||null===(e=l.current)||void 0===e||e.focus()},onChange:function(e){return ve(e.target.value)},paddingVertical:6,placeholder:"Search pipeline run variables",ref:l,value:fe}))]})]})})}),Ue||Le?(0,d.jsxs)(d.Fragment,{children:[ke&&cn,X.uuid===(null===ne||void 0===ne?void 0:ne.uuid)&&sn]}):(0,d.jsx)(I.Z,{m:3,children:(0,d.jsx)(Z.Z,{inverted:!0})})]})}J.getInitialProps=function(){var e=(0,i.Z)(l().mark((function e(n){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var $=(0,w.Z)(J)},79897:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs",function(){return t(81080)}])}},function(e){e.O(0,[2678,1154,844,8224,1124,9161,4267,600,8487,8264,7858,5499,3932,5457,722,3943,3419,9774,2888,179],(function(){return n=79897,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[244],{29241:function(e,n,t){"use strict";var i=t(38626),r=t(44897),u=i.default.div.withConfig({displayName:"PageSectionHeader",componentId:"sc-1wznrcv-0"})(["left:0;position:sticky;top:0;width:100%;z-index:3;",""],(function(e){return"\n background-color: ".concat(e.backgroundColor||(e.theme.background||r.Z.background).page,";\n border-bottom: 1px solid ").concat((e.theme.borders||r.Z.borders).medium,";\n ")}));n.Z=u},35526:function(e,n,t){"use strict";t.d(n,{Au:function(){return a},I6:function(){return c},Nb:function(){return i},OK:function(){return s},hZ:function(){return p},k2:function(){return d}});var i,r=t(42631),u=t(72473),o=t(70515),l=t(28598),c="".concat(1.5*o.iI,"px"),s=40*o.iI,a=58;!function(e){e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND"}(i||(i={}));var d={autoHide:!0,size:null,widthFitContent:!0},p={afterIconSize:1.5*o.iI,beforeIcon:(0,l.jsx)(u.HN,{}),borderRadius:r.n_,defaultColor:!0,fullWidth:!0,greyBorder:!0,maxWidth:40*o.iI}},46732:function(e,n,t){"use strict";var i=t(82394),r=t(26304),u=(t(82684),t(50724)),o=t(70374),l=t(28598),c=["children","items","open","onClickCallback","onClickOutside","parentRef","uuid","zIndex"];function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.items,i=e.open,s=e.onClickCallback,d=e.onClickOutside,p=e.parentRef,f=e.uuid,v=e.zIndex,b=(0,r.Z)(e,c),h=(0,l.jsxs)("div",{style:{position:"relative",zIndex:(d?3:2)+(v||0)},children:[(0,l.jsx)("div",{ref:p,children:n}),(0,l.jsx)(o.Z,a(a({},b),{},{items:t,onClickCallback:s,open:i,parentRef:p,uuid:f}))]});return d?(0,l.jsx)(u.Z,{onClickOutside:d,open:!0,children:h}):h}},17380:function(e,n,t){"use strict";t.d(n,{i:function(){return a}});t(82684);var i=t(38626),r=(t(97618),t(55485),t(48670),t(38276),t(47329)),u=t.n(r);u().node,u().node,u().node.isRequired,u().bool,u().string.isRequired;t(30160);var o=t(70987),l=t(95363),c=t(70515),s=t(42631),a=(t(28598),"tab");i.default.div.withConfig({displayName:"Tabs__TabHeaderContainerStyle",componentId:"sc-rojme5-0"})(["",""],(function(e){return e.containerWidthPercentage&&"\n width: ".concat(e.containerWidthPercentage,"%;\n ")})),i.default.div.withConfig({displayName:"Tabs__TabHeader",componentId:"sc-rojme5-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;margin-right:","px;position:relative;z-index:2;"," "," ",""],s.BG,s.BG,6*c.iI,(function(e){return e.noBottomBorder&&"\n border-bottom: none;\n "}),(function(e){return e.active&&"\n border-bottom: ".concat(c.cd,"px solid;\n border-color: ").concat((e.theme.interactive||o.Z.interactive).linkPrimary,";\n ")}),(function(e){return e.fullWidth&&"\n width: 100%;\n "})),i.default.div.withConfig({displayName:"Tabs__LinkStyle",componentId:"sc-rojme5-2"})(["align-items:center;display:flex;"," "," ",""],(function(e){return e.bold&&"\n font-family: ".concat(l.nF,";\n ")}),(function(e){return e.fullWidth&&"\n justify-content: center;\n "}),(function(e){return!e.disabled&&"\n &:hover {\n path {\n fill: ".concat((e.theme.content||o.Z.interactive).linkPrimary," !important;\n }\n }\n ")}))},81080:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return $}});var i=t(77837),r=t(75582),u=t(82394),o=t(38860),l=t.n(o),c=t(82684),s=t(69864),a=t(34376),d=t(28598);var p=function(e){var n=e.size;return(0,d.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 8.5H15.5V3.5H20.5V8.5ZM14 9V3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55229 21.5523 10 21 10H15C14.4477 10 14 9.55229 14 9ZM2 5V12.5V14V21.5C2 22.0523 2.44772 22.5 3 22.5H10.5H12H19.5C20.0523 22.5 20.5 22.0523 20.5 21.5V13.5C20.5 12.9477 20.0523 12.5 19.5 12.5H12V5C12 4.44772 11.5523 4 11 4H3C2.44772 4 2 4.44772 2 5ZM10.5 14V21H3.5V14H10.5ZM19 14V21H12V14H19ZM10.5 5.5V12.5H3.5V5.5H10.5Z",fill:"url(#paint0_linear_2842_55048)"}),(0,d.jsx)("defs",{children:(0,d.jsxs)("linearGradient",{id:"paint0_linear_2842_55048",x1:"2",y1:"12.25",x2:"22",y2:"12.25",gradientUnits:"userSpaceOnUse",children:[(0,d.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,d.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},f=t(23192),v=t(71180),b=t(90299),h=t(50724),m=t(55485),g=t(46732),C=t(29241),_=t(55072);var j=function(e){var n=e.size;return(0,d.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("g",{clipPath:"url(#clip0_3007_70027)",children:(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.75 6.6859C1.75 3.95988 3.95988 1.75 6.6859 1.75h.98788c-.23022.41608-.36128.89466-.36128 1.40385s.13106.98777.36128 1.40384h-.71224c-1.32761 0-2.40385 1.07624-2.40385 2.40385 0 1.32761 1.07624 2.40385 2.40385 2.40385H15.609c3.3916 0 6.141 2.74941 6.141 6.14101 0 3.3916-2.7494 6.141-6.141 6.141H9.55584c.23019-.416.36123-.8946.36123-1.4037 0-.5092-.13108-.9879-.36134-1.404H15.609c1.8409 0 3.3333-1.4923 3.3333-3.3333 0-1.8409-1.4924-3.3333-3.3333-3.3333H6.96154C4.08329 12.1731 1.75 9.83979 1.75 6.96154V6.6859zM10.2163.25H6.6859C3.13145.25.25 3.13145.25 6.6859v.27564c0 3.70666 3.00486 6.71156 6.71154 6.71156H15.609c1.0125 0 1.8333.8208 1.8333 1.8333s-.8208 1.8333-1.8333 1.8333H7.01282c-1.60375 0-2.90385 1.3001-2.90385 2.9039 0 1.3248.88713 2.4423 2.09974 2.7911.06039.0173.12158.0328.18352.0463.20007.0436.40785.0665.62099.0665l.02449-.0001H15.609c4.22 0 7.641-3.421 7.641-7.641 0-4.22-3.421-7.64101-7.641-7.64101H6.96154c-.49918 0-.90385-.40467-.90385-.90385 0-.49918.40467-.90385.90385-.90385h3.25636c1.6038 0 2.9039-1.30009 2.9039-2.90384 0-1.60375-1.3001-2.903849-2.9039-2.90385h-.0016zm0 4.30769c-.77528 0-1.4038-.62852-1.4038-1.40384 0-.77505.62808-1.4034 1.403-1.40385h.0017c.7749.00045 1.403.6288 1.403 1.40385 0 .77532-.6285 1.40384-1.4039 1.40384zM7.01282 21.6474c-.10108 0-.19967-.0106-.29469-.0309-.03025-.0065-.06014-.0139-.08963-.0223-.58829-.1673-1.01912-.7086-1.01912-1.3505 0-.7753.62852-1.4039 1.40384-1.4039s1.40385.6286 1.40385 1.4039c0 .7696-.61935 1.3946-1.38683 1.4037h-.01742z",fill:"url(#paint0_linear_3007_70027)"})}),(0,d.jsxs)("defs",{children:[(0,d.jsxs)("linearGradient",{id:"paint0_linear_3007_70027",x1:"11.75",y1:".250001",x2:"11.75",y2:"23.1475",gradientUnits:"userSpaceOnUse",children:[(0,d.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,d.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,d.jsx)("clipPath",{id:"clip0_3007_70027",children:(0,d.jsx)("path",{fill:"#fff",transform:"matrix(0 1 1 0 0 0)",d:"M0 0h24v24H0z"})})]})]})},x=t(75457),O=t(44265),y=t(53943),R=t(89515),w=t(93808),k=t(44085),I=t(38276),Z=t(4190),S=t(17488),P=t(35686),E=t(8955),N=t(98464),D=t(72473),M=t(15610),H=t(28795),T=t(57653),V=t(35526),B=t(41143),L=t(81655),A=t(17380),z=t(70515),F=t(24944),U=t(72619),G=t(42122),K=t(69419);function Q(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function W(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Q(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Q(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Y={Icon:D.Nt,IconSelected:j,label:function(){return"Pipeline runs"},uuid:"pipeline_runs"},X={Icon:D.Re,IconSelected:p,label:function(){return"Block runs"},uuid:"block_runs"},q=[Y,X];function J(e){var n,t,i=e.pipeline,u=(0,a.useRouter)(),o=(0,c.useRef)(null),l=(0,c.useRef)(null),p=(0,c.useState)(null),j=p[0],w=p[1],Q=(0,c.useState)(null),J=Q[0],$=Q[1],ee=(0,c.useState)(Y),ne=ee[0],te=ee[1],ie=(0,c.useState)(E.G7[0]),re=ie[0],ue=ie[1],oe=(0,c.useState)(null),le=oe[0],ce=oe[1],se=(0,c.useState)({}),ae=se[0],de=se[1],pe=(0,c.useState)(null),fe=pe[0],ve=pe[1],be=(0,c.useState)(!1),he=be[0],me=be[1],ge=(0,c.useState)(null),Ce=ge[0],_e=ge[1],je=(0,c.useState)(null),xe=je[0],Oe=je[1],ye=(0,c.useState)(null),Re=ye[0],we=ye[1],ke=(0,c.useMemo)((function(){return Y.uuid===(null===ne||void 0===ne?void 0:ne.uuid)}),[null===ne||void 0===ne?void 0:ne.uuid]),Ie=i.uuid,Ze=P.ZP.pipelines.detail(Ie,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,Se=(0,c.useMemo)((function(){return W(W({},null===Ze||void 0===Ze?void 0:Ze.pipeline),{},{uuid:Ie})}),[Ze,Ie]),Pe=(0,K.iV)(),Ee=(0,N.Z)(Pe),Ne=null!==Pe&&void 0!==Pe&&Pe.page?Pe.page:0;(0,c.useEffect)((function(){var e=Pe.pipeline_run_id,n=Pe.status;if(!(0,G.Xy)(Pe,Ee)){var t=W(W({},Ee),Pe);e?t.pipeline_run_id=e:t.pipeline_uuid=Ie,n?t.status=n:delete t.status,we(t),de({})}}),[Ie,Pe,Ee]);var De={_limit:_.Q,_offset:Ne*_.Q,pipeline_uuid:Ie},Me=(0,G.gR)(W(W({},Re),De),[A.i,"page",L.lG.SORT_COL_IDX,L.lG.SORT_DIRECTION]);ke&&(Me=(0,G.gR)(Me,[M.O2,"status"]));var He=null===Pe||void 0===Pe?void 0:Pe[L.lG.SORT_COL_IDX],Te=null===Pe||void 0===Pe?void 0:Pe[L.lG.SORT_DIRECTION];if(He){var Ve=f.fi[He],Be=Te||L.sh.ASC;Me.order_by="".concat(Ve,"%20").concat(Be)}var Le=P.ZP.block_runs.list(Me,{}).data;(0,c.useEffect)((function(){(0,U.bB)(Le,$)}),[Le]);var Ae=(0,c.useMemo)((function(){return(null===Le||void 0===Le?void 0:Le.block_runs)||[]}),[Le]),ze=W(W({},De),{},{disable_retries_grouping:!0});null!==Pe&&void 0!==Pe&&Pe.status&&(ze.status=Pe.status),ke||(ze=(0,G.gR)(ze,[M.O2]));var Fe=P.ZP.pipeline_runs.list(ze,{refreshInterval:5e3},{pauseFetch:!Ie}),Ue=Fe.data,Ge=Fe.mutate,Ke=(0,c.useMemo)((function(){var e=(null===Ue||void 0===Ue?void 0:Ue.pipeline_runs)||[];if(fe){var n=fe.toLowerCase();e=e.filter((function(e){var t=e.event_variables,i=e.variables;return JSON.stringify(i||{}).toLowerCase().includes(n)||JSON.stringify(t||{}).toLowerCase().includes(n)}))}return e}),[null===Ue||void 0===Ue?void 0:Ue.pipeline_runs,fe]),Qe=(0,c.useMemo)((function(){var e,n;return ke?(null===Ue||void 0===Ue||null===(e=Ue.metadata)||void 0===e?void 0:e.count)||[]:(null===Le||void 0===Le||null===(n=Le.metadata)||void 0===n?void 0:n.count)||[]}),[null===Le||void 0===Le||null===(n=Le.metadata)||void 0===n?void 0:n.count,null===Ue||void 0===Ue||null===(t=Ue.metadata)||void 0===t?void 0:t.count,ke]),We=(0,c.useMemo)((function(){return Ke.some((function(e){var n=e.status;return n===B.V.INITIAL||n===B.V.RUNNING}))}),[Ke]),Ye=(0,c.useMemo)((function(){return Ke.some((function(e){return e.status===B.V.FAILED}))}),[Ke]),Xe=(0,c.useMemo)((function(){return Object.values(ae||{}).filter((function(e){return null!==e}))}),[ae]),qe=Xe.length,Je=(0,c.useMemo)((function(){return Object.values(ae||{}).filter((function(e){return null!==e&&O.BF.includes(null===e||void 0===e?void 0:e.status)}))}),[ae]),$e=Je.length,en=(0,s.Db)(P.ZP.pipelines.useUpdate(Ie),{onSuccess:function(e){return(0,U.wD)(e,{callback:function(){de({}),Ge()},onErrorCallback:function(e,n){return w({errors:n,response:e})}})}}),nn=(0,r.Z)(en,1)[0],tn=(0,s.Db)((function(e){return P.ZP.pipeline_runs.useDelete(e)()}),{onSuccess:function(e){return(0,U.wD)(e,{callback:function(e){var n=e.pipeline_run.pipeline_uuid;null===Ge||void 0===Ge||Ge(),n?u.push("/pipelines/[pipeline]/runs","/pipelines/".concat(n,"/runs")):null===Ge||void 0===Ge||Ge(),ce(null)},onErrorCallback:function(e,n){return w({errors:n,response:e})}})}}),rn=(0,r.Z)(tn,1)[0],un=(0,N.Z)(ne);(0,c.useEffect)((function(){var e=Pe[A.i];e&&te(q.find((function(n){return n.uuid===e})))}),[Pe,ne,un]);var on=(0,c.useMemo)((function(){return[{isGroupingTitle:!0,label:function(){return"".concat(qe," selected")},uuid:"runs_selected_count"},{beforeIcon:(0,d.jsx)(D.hY,{muted:0===qe}),disabled:0===qe,label:function(){return"Retry selected (".concat(qe,")")},onClick:function(){return nn({pipeline:{pipeline_runs:Xe,status:T.QK.RETRY}})},uuid:"retry_selected"},{beforeIcon:(0,d.jsx)(D.hY,{muted:!Ye||We}),disabled:!Ye||We,label:function(){return"Retry all incomplete block runs"},onClick:function(){return nn({pipeline:{status:T.QK.RETRY_INCOMPLETE_BLOCK_RUNS}})},openConfirmationDialogue:!0,uuid:T.QK.RETRY_INCOMPLETE_BLOCK_RUNS},{beforeIcon:(0,d.jsx)(D.uy,{muted:0===$e}),disabled:0===$e,label:function(){return"Cancel selected running (".concat($e,")")},onClick:function(){return nn({pipeline:{pipeline_runs:Je,status:B.V.CANCELLED}})},uuid:"cancel_selected_running"},{beforeIcon:(0,d.jsx)(D.uy,{muted:!(We&&ke)}),disabled:!(We&&ke),label:function(){return"Cancel all running"},onClick:function(){return nn({pipeline:{status:B.V.CANCELLED}})},openConfirmationDialogue:!0,uuid:H.B}]}),[Ye,We,ke,Je,$e,Xe,qe,nn]),ln=(0,c.useMemo)((function(){return(0,d.jsx)(I.Z,{p:2,children:(0,d.jsx)(_.ZP,{maxPages:_.Et,onUpdate:function(e){var n=Number(e),t=W(W({},Pe),{},{page:n>=0?n:0});ce(null),u.push("/pipelines/[pipeline]/runs","/pipelines/".concat(Ie,"/runs?").concat((0,K.uM)(t)))},page:Number(Ne),totalPages:Math.ceil(Qe/_.Q)})})}),[Ne,Ie,Pe,u,Qe]),cn=(0,c.useMemo)((function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(y.Z,{allowBulkSelect:(null===Se||void 0===Se?void 0:Se.type)!==T.qL.STREAMING,allowDelete:!0,deletePipelineRun:rn,disableKeyboardNav:he,emptyMessage:fe?"No runs on this page match your search.":void 0,fetchPipelineRuns:Ge,onClickRow:function(e){return ce((function(n){var t=Ke[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:Ke,selectedRun:le,selectedRuns:ae,setErrors:w,setSelectedRun:ce,setSelectedRuns:de}),ln]})}),[rn,Ge,ln,null===Se||void 0===Se?void 0:Se.type,Ke,le,ae,he,fe]),sn=(0,c.useMemo)((function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.ZP,{blockRuns:Ae,pipeline:Se,sortableColumnIndexes:f.lG}),ln]})}),[Ae,ln,Se]);return(0,d.jsxs)(x.Z,{afterHidden:ke&&!le,breadcrumbs:[{label:function(){return"Runs"}}],buildSidekick:ke?function(e){return(0,E.ZP)(W(W({},e),{},{selectedRun:le,selectedTab:re,setSelectedTab:ue}))}:function(e){return(0,E.ZP)(e)},errors:j||J,pageName:H.M.RUNS,pipeline:Se,setErrors:w,title:function(e){var n=e.name;return"".concat(n," runs")},uuid:"".concat(H.M.RUNS,"_").concat(Ie),children:[(0,d.jsx)(C.Z,{children:(0,d.jsx)(I.Z,{pr:1,py:1,children:(0,d.jsxs)(m.ZP,{alignItems:"center",children:[(0,d.jsx)(b.Z,{onClickTab:function(e){var n=e.uuid;n!==(null===ne||void 0===ne?void 0:ne.uuid)&&(we(null),(0,M.u7)({tab:n},{replaceParams:!0}))},selectedTabUUID:null===ne||void 0===ne?void 0:ne.uuid,tabs:q}),ke&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(F.lZ,{right:1}),(0,d.jsxs)(I.Z,{px:2,children:[(0,d.jsx)(g.Z,{items:on,multipleConfirmDialogues:!0,onClickCallback:function(){return me(!1)},onClickOutside:function(){return me(!1)},open:he,parentRef:o,roundedStyle:!0,setConfirmationAction:Oe,setConfirmationDialogueOpen:_e,topOffset:4,uuid:"PipelineRuns/ActionsMenu",children:(0,d.jsx)(v.ZP,{afterIcon:(0,d.jsx)(D.K5,{}),onClick:function(){return me((function(e){return!e}))},outline:!0,padding:"6px 12px",children:"Actions"})}),(0,d.jsx)(h.Z,{onClickOutside:function(){return _e(null)},open:!!Ce,children:(0,d.jsx)(R.Z,{danger:Ce===H.B,onCancel:function(){return _e(null)},onClick:function(){null===xe||void 0===xe||xe(),_e(null)},subtitle:"This includes runs on other pages as well, not just the current page."+(Ce===T.QK.RETRY_INCOMPLETE_BLOCK_RUNS?" Incomplete block runs will be retried for FAILED pipeline runs specifically.":""),title:Ce===H.B?"Are you sure you want to cancel all pipeline runs in progress?":"Are you sure you want to retry all incomplete block runs for any failed pipeline runs?",width:V.OK})})]}),(0,d.jsxs)(k.Z,{compact:!0,defaultColor:!0,greyBorder:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?(we(null),(0,M.u7)({tab:Y.uuid},{replaceParams:!0})):(0,M.u7)({page:0,status:e.target.value})},paddingRight:4*z.iI,placeholder:"Select run status",value:null===Re||void 0===Re?void 0:Re.status,children:[(0,d.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),O.IK.map((function(e){return(0,d.jsx)("option",{value:e,children:O.Do[e]},e)}))]}),(0,d.jsx)(I.Z,{ml:2}),(0,d.jsx)(S.Z,W(W({},V.hZ),{},{afterIcon:fe?(0,d.jsx)(D.x8,{}):null,afterIconClick:function(){var e;ve(""),null===l||void 0===l||null===(e=l.current)||void 0===e||e.focus()},onChange:function(e){return ve(e.target.value)},paddingVertical:6,placeholder:"Search pipeline run variables",ref:l,value:fe}))]})]})})}),Ue||Le?(0,d.jsxs)(d.Fragment,{children:[ke&&cn,X.uuid===(null===ne||void 0===ne?void 0:ne.uuid)&&sn]}):(0,d.jsx)(I.Z,{m:3,children:(0,d.jsx)(Z.Z,{inverted:!0})})]})}J.getInitialProps=function(){var e=(0,i.Z)(l().mark((function e(n){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var $=(0,w.Z)(J)},79897:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs",function(){return t(81080)}])}},function(e){e.O(0,[2678,1154,844,5820,1124,9161,4267,600,8487,8264,7858,5499,5457,4366,722,3943,3419,9774,2888,179],(function(){return n=79897,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8170],{27277:function(e,n,t){"use strict";var i=t(82394),r=t(21831),o=t(82684),c=t(39643),u=t(44688),l=t(28598);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,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}n.Z=function(e){var n=e.highlightedItemIndexInitial,t=void 0===n?null:n,i=e.itemGroups,a=e.noResultGroups,s=e.onHighlightItemIndexChange,f=e.onMouseEnterItem,p=e.onMouseLeaveItem,g=e.onSelectItem,h=e.renderEmptyState,v=e.searchQuery,m=e.selectedItem,b=e.setItemRefs,y=e.uuid,x=(0,o.useState)(!0),j=x[0],_=x[1],O=(0,o.useMemo)((function(){var e=[],n=i.reduce((function(n,t){var i=t.items.filter((function(e){return!v||function(e,n){return e.searchQueries.filter((function(e){return String(e).toLowerCase().includes(n.toLowerCase())})).length>=1}(e,v)}));return 0===i.length?n:(e.push.apply(e,(0,r.Z)(i)),n.concat(d(d({},t),{},{items:i})))}),[]);return{itemGroups:n,itemsFlattened:e}}),[i,v]),Z=O.itemGroups,w=O.itemsFlattened;a&&0===w.length&&(Z.push.apply(Z,(0,r.Z)(a)),w.push.apply(w,(0,r.Z)(a.reduce((function(e,n){var t=n.items;return e.concat(t)}),[]))));var P=(0,o.useRef)(null);P.current=w.map((function(){return(0,o.createRef)()}));var k=(0,o.useState)(t),C=k[0],I=k[1],S=(0,o.useCallback)((function(e){null===s||void 0===s||s(e),I(e)}),[s,I]),N=w[C],E=(0,u.y)(),H=E.registerOnKeyDown,D=E.unregisterOnKeyDown;(0,o.useEffect)((function(){return function(){return D(y)}}),[D,y]),null===H||void 0===H||H(y,(function(e,n,t){var i,r=!0,o=w.length,u=w.findIndex((function(e,i){var r=e.keyboardShortcutValidation;return null===r||void 0===r?void 0:r({keyHistory:t,keyMapping:n},i)})),l=n[c.Gs]&&!n[c.XR]&&!m;return-1!==u?(e.preventDefault(),g(w[u]),_(r),S(u)):(n[c.Uq]||l)&&w[C]?(l&&e.preventDefault(),g(w[C]),_(r),S(C)):(n[c.Bu]?(r=!1,i=null===C?o-1:C-1):n[c.kD]?(r=!1,i=null===C?0:C+1):n[c.vP]&&S(null),"undefined"!==typeof i&&(i>=o?i=0:i<=-1&&(i=o-1),i>=0&&i<=o-1?(S(i),e.preventDefault()):S(null)),void _(r))}),[C,w,m,S,_]),(0,o.useEffect)((function(){null===b||void 0===b||b(P)}),[P,w,b]),(0,o.useEffect)((function(){var e=null===C||"undefined"===typeof C||C>=w.length;(null===v||void 0===v?void 0:v.length)>=1&&e&&S(0)}),[C,w,v,S]);var M=(0,o.useCallback)((function(){return _(!0)}),[_]);return(0,o.useEffect)((function(){return window.addEventListener("mousemove",M),function(){window.removeEventListener("mousemove",M)}}),[M]),0===Z.length&&h?h():(0,l.jsx)(l.Fragment,{children:Z.map((function(e,n){var t=e.items,i=e.renderItem,r=e.renderGroupHeader,o=e.uuid,c=n>=1?Z.slice(0,n).reduce((function(e,n){return e+n.items.length}),0):0,u=t.map((function(e,n){var t=e.itemObject,r=e.value,o=r===(null===N||void 0===N?void 0:N.value),u=n+c,a=(null===t||void 0===t?void 0:t.id)||(null===t||void 0===t?void 0:t.uuid);return(0,l.jsx)("div",{id:"item-".concat(r,"-").concat(a),onMouseMove:function(){return j&&S(u)},ref:P.current[u],children:i(e,{highlighted:o,onClick:function(){return g(e)},onMouseEnter:function(){return null===f||void 0===f?void 0:f(e)},onMouseLeave:function(){return null===p||void 0===p?void 0:p(e)}},n,u)},"item-".concat(r,"-").concat(a))}));return u.length>=1&&(0,l.jsxs)("div",{children:[null===r||void 0===r?void 0:r(),u]},o||"group-uuid-".concat(n))}))})}},81334:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var i=t(82394),r=t(82684),o=t(27277),c=t(31882),u=t(38276),l=t(48381),a=t(30160),d=t(17488),s=t(38626),f=t(44897),p=t(42631),g=t(47041),h=t(70515),v=s.default.div.withConfig({displayName:"indexstyle__DropdownStyle",componentId:"sc-suwkha-0"})([""," border-radius:","px;max-height:","px;overflow:auto;position:absolute;width:100%;z-index:1;"," ",""],g.w5,p.BG,40*h.iI,(function(e){return"\n background-color: ".concat((e.theme.background||f.Z.background).popup,";\n box-shadow: ").concat((e.theme.shadow||f.Z.shadow).popup,";\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset-.5*h.iI,"px;\n ")})),m=s.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-suwkha-1"})(["padding:","px;position:relative;z-index:2;&:hover{cursor:pointer;}",""],.5*h.iI,(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||f.Z.interactive).hoverBackground,";\n ")})),b=t(39643),y=t(3314),x=t(86735),j=t(44688),_=t(28598);function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n,t=e.removeTag,i=e.selectTag,s=e.selectedTags,f=void 0===s?[]:s,p=e.tags,g=void 0===p?[]:p,h=e.uuid,O=(0,r.useRef)(null),w=(0,r.useState)(!1),P=w[0],k=w[1],C=(0,r.useState)(null),I=C[0],S=C[1],N=(0,r.useMemo)((function(){return(0,x.YC)(g||[],"uuid")}),[g]),E=(0,r.useMemo)((function(){return null===N||void 0===N?void 0:N.map((function(e){return{itemObject:e,searchQueries:[e.uuid],value:e.uuid}}))}),[N]),H=(0,r.useMemo)((function(){return(null===I||void 0===I?void 0:I.length)>=1?E.concat({itemObject:{uuid:I},searchQueries:[I],value:"Add tag: ".concat(I)}):E}),[E,I]),D=(0,j.y)(),M=D.registerOnKeyDown,R=D.unregisterOnKeyDown;return(0,r.useEffect)((function(){return function(){return R(h)}}),[R,h]),null===M||void 0===M||M(h,(function(e,n){var t;P&&n[b.vP]&&(k(!1),null===O||void 0===O||null===(t=O.current)||void 0===t||t.blur())}),[P,O]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(l.Z,{onClickTag:t,tags:f}),(0,_.jsxs)(u.Z,{mt:1,style:{position:"relative"},children:[(0,_.jsx)(d.Z,{onBlur:function(){return setTimeout((function(){return k(!1)}),150)},onChange:function(e){return S(e.target.value)},onFocus:function(){return k(!0)},ref:O,value:I||""}),(0,_.jsx)(v,{topOffset:null===O||void 0===O||null===(n=O.current)||void 0===n?void 0:n.getBoundingClientRect().height,children:(0,_.jsx)(o.Z,{itemGroups:[{items:P?H:[],renderItem:function(e,n){var t=e.value;return(0,_.jsx)(m,Z(Z({},n),{},{onClick:function(e){var t;(0,y.j)(e),null===n||void 0===n||null===(t=n.onClick)||void 0===t||t.call(n,e)},children:(0,_.jsx)(c.Z,{small:!0,children:(0,_.jsx)(a.ZP,{children:t})})}))}}],onSelectItem:function(e){var n=e.itemObject;null===i||void 0===i||i(n),S(null)},searchQuery:I,uuid:h})})]})]})}},48381:function(e,n,t){"use strict";var i=t(82684),r=t(31882),o=t(55485),c=t(30160),u=t(86735),l=t(28598);n.Z=function(e){var n=e.onClickTag,t=e.tags,a=void 0===t?[]:t,d=(0,i.useMemo)((function(){return(null===a||void 0===a?void 0:a.length)||0}),[a]),s=(0,i.useMemo)((function(){return(0,u.YC)(a||[],"uuid")}),[a]);return(0,l.jsx)(o.ZP,{alignItems:"center",flexWrap:"wrap",children:null===s||void 0===s?void 0:s.reduce((function(e,t){return e.push((0,l.jsx)("div",{style:{marginBottom:2,marginRight:d>=2?4:0,marginTop:2},children:(0,l.jsx)(r.Z,{onClick:n?function(){return n(t)}:null,small:!0,children:(0,l.jsx)(c.ZP,{children:t.uuid})})},"tag-".concat(t.uuid))),e}),[])})}},57114:function(e,n,t){"use strict";t.d(n,{S:function(){return j},Z:function(){return _}});var i=t(82684),r=t(15338),o=t(97618),c=t(55485),u=t(85854),l=t(65956),a=t(82394),d=t(44085),s=t(38276),f=t(30160),p=t(17488),g=t(69650),h=t(72473),v=t(8193),m=t(70515),b=t(28598);function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,a.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 j=function(e){var n,t=e.children,i=e.description,r=e.invalid,u=e.selectInput,l=e.textInput,a=e.title,y=e.toggleSwitch,j=e.warning;return(0,b.jsx)(s.Z,{p:m.cd,children:(0,b.jsxs)(c.ZP,{alignItems:"center",children:[(0,b.jsxs)(c.ZP,{flexDirection:"column",children:[(0,b.jsxs)(f.ZP,{danger:r,default:!0,large:!0,warning:j,children:[a," ",r&&(0,b.jsx)(f.ZP,{danger:!0,inline:!0,large:!0,children:"is required"})]}),i&&"string"===typeof i&&(0,b.jsx)(f.ZP,{muted:!0,small:!0,children:i}),i&&"string"!==typeof i&&i]}),(0,b.jsx)(s.Z,{mr:m.cd}),(0,b.jsxs)(o.Z,{flex:1,justifyContent:"flex-end",children:[t,l&&(0,b.jsx)(p.Z,x({afterIcon:(0,b.jsx)(h.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:v.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0},l)),u&&(0,b.jsx)(d.Z,x(x({},u),{},{afterIcon:(0,b.jsx)(h._M,{}),afterIconSize:v.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0,children:null===u||void 0===u||null===(n=u.options)||void 0===n?void 0:n.map((function(e){var n=e.label,t=e.value;return(0,b.jsx)("option",{value:t,children:n||t},t)}))})),y&&(0,b.jsx)(g.Z,{checked:!(null===y||void 0===y||!y.checked),compact:!0,onCheck:null===y||void 0===y?void 0:y.onCheck})]})]})})},_=function(e){var n=e.children,t=e.description,a=e.headerChildren,d=e.title;return(0,b.jsxs)(l.Z,{noPadding:!0,children:[(0,b.jsx)(s.Z,{p:m.cd,children:(0,b.jsxs)(c.ZP,{alignItems:"center",children:[(0,b.jsxs)(o.Z,{flex:1,flexDirection:"column",children:[(0,b.jsx)(u.Z,{level:4,children:d}),t&&"string"===typeof t&&(0,b.jsx)(s.Z,{mt:1,children:(0,b.jsx)(f.ZP,{muted:!0,children:t})}),t&&"string"!==typeof t&&t]}),a]})}),i.Children.map(n,(function(e,n){return(0,b.jsxs)("div",{children:[(0,b.jsx)(r.Z,{light:!0}),e]},"".concat(d,"-").concat(n))}))]})}},8193:function(e,n,t){"use strict";t.d(n,{N:function(){return l},Z:function(){return u}});var i=t(38626),r=t(44897),o=t(42631),c=t(70515),u=2*c.iI,l=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1ck7mzt-0"})(["border-radius:","px;padding:","px;",""],o.n_,c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).codeArea,";\n ")}))},68781:function(e,n,t){"use strict";var i;t.d(n,{R:function(){return r}}),function(e){e.AZURE_CONTAINER_INSTANCE="azure_container_instance",e.ECS="ecs",e.GCP_CLOUD_RUN="gcp_cloud_run",e.K8S="k8s",e.LOCAL_PYTHON="local_python",e.PYSPARK="pyspark"}(i||(i={}));var r=[i.AZURE_CONTAINER_INSTANCE,i.ECS,i.GCP_CLOUD_RUN,i.K8S,i.LOCAL_PYTHON,i.PYSPARK]},31882:function(e,n,t){"use strict";var i=t(38626),r=t(71180),o=t(55485),c=t(30160),u=t(44897),l=t(72473),a=t(70515),d=t(61896),s=t(28598),f=i.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," "," ",""],(function(e){return!e.primary&&"\n background-color: ".concat((e.theme.background||u.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||u.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((a.iI+d.Al)/2,"px;\n height: ").concat(1.5*a.iI+d.Al,"px;\n padding: ").concat(a.iI/1.5,"px ").concat(1.25*a.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((a.iI/2+d.Al)/2,"px;\n height: ").concat(d.Al+a.iI/2+2,"px;\n padding: ").concat(a.iI/4,"px ").concat(a.iI,"px;\n ")}),(function(e){return e.xsmall&&"\n border-radius: ".concat((a.iI/1+d.Al)/1,"px;\n height: ").concat(20,"px;\n padding: 4px 6px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||u.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,t=e.children,i=e.disabled,u=e.label,d=e.monospace,p=e.onClick,g=e.primary,h=e.small,v=e.xsmall;return(0,s.jsx)(f,{border:n,primary:g,small:h,xsmall:v,children:(0,s.jsx)(r.ZP,{basic:!0,disabled:i,noBackground:!0,noPadding:!0,onClick:p,transparent:!0,children:(0,s.jsxs)(o.ZP,{alignItems:"center",children:[t,u&&(0,s.jsx)(c.ZP,{monospace:d,small:h,xsmall:v,children:u}),!i&&p&&(0,s.jsx)("div",{style:{marginLeft:2}}),!i&&p&&(0,s.jsx)(l.x8,{default:g,muted:!g,size:h?a.iI:1.25*a.iI})]})})})}},65956:function(e,n,t){"use strict";var i=t(38626),r=t(55485),o=t(38276),c=t(30160),u=t(44897),l=t(42631),a=t(47041),d=t(70515),s=t(28598),f=(0,i.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*d.iI,1.5*d.iI,1.5*d.iI),p=i.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],l.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||u.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||u.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||u.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||u.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),g=i.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],l.n_,l.n_,(function(e){return"\n background-color: ".concat((e.theme.background||u.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),f,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),h=i.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*d.iI,a.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*d.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),v=i.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],l.M8,l.YF,1.75*d.iI);n.Z=function(e){var n=e.borderless,t=e.children,i=e.containerRef,u=e.contentContainerRef,l=e.dark,a=e.footer,d=e.fullHeight,f=void 0===d||d,m=e.fullWidth,b=void 0===m||m,y=e.header,x=e.headerHeight,j=e.headerIcon,_=e.headerPaddingVertical,O=e.headerTitle,Z=e.maxHeight,w=e.maxWidth,P=e.minWidth,k=e.noPadding,C=e.overflowVisible,I=e.subtitle,S=e.success;return(0,s.jsxs)(p,{borderless:n,dark:l,fullHeight:f,fullWidth:b,maxHeight:Z,maxWidth:w,minWidth:P,overflowVisible:C,ref:i,success:S,children:[(y||O)&&(0,s.jsxs)(g,{headerPaddingVertical:_,height:x,children:[y&&y,O&&(0,s.jsx)(r.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(r.ZP,{alignItems:"center",children:[j&&j,(0,s.jsx)(o.Z,{ml:j?1:0,children:(0,s.jsx)(c.ZP,{bold:!0,default:!0,children:O})})]})})]}),(0,s.jsxs)(h,{maxHeight:Z,noPadding:k,overflowVisible:C,ref:u,children:[I&&(0,s.jsx)(o.Z,{mb:2,children:(0,s.jsx)(c.ZP,{default:!0,children:I})}),t]}),a&&(0,s.jsx)(v,{children:a})]})}},85854:function(e,n,t){"use strict";var i,r,o,c,u,l,a,d,s=t(82394),f=t(26304),p=t(26653),g=t(38626),h=t(33591),v=t(44897),m=t(95363),b=t(61896),y=t(30160),x=t(70515),j=t(38276),_=t(28598),O=["children","condensed","inline","level","marketing","spacingBelow"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=(0,g.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," "," ",""],y.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||v.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(m.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(m.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(m.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(m.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(m.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "}),(function(e){return e.strikethrough&&"\n text-decoration: line-through;\n "})),k=g.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||v.Z.content).active,";\n ")})),C=g.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],P,h.media.md(i||(i=(0,p.Z)(["\n ","\n "])),b.aQ),h.media.lg(r||(r=(0,p.Z)(["\n ","\n "])),b.aQ),h.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),b.aQ)),I=g.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],P,b.MJ),S=g.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],P,h.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),h.media.sm(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),h.media.md(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),h.media.lg(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),h.media.xl(d||(d=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI)),N=g.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],P,b.BL),E=g.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],P),H=g.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],P),D=g.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],P),M=g.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],P,(function(e){return 1===e.level&&"\n ".concat(b.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(b.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),R=function(e){var n,t=e.children,i=e.condensed,r=e.inline,o=e.level,c=e.marketing,u=e.spacingBelow,l=(0,f.Z)(e,O);r?n=M:0===Number(o)?n=C:1===Number(o)?n=c?S:I:2===Number(o)?n=N:3===Number(o)?n=E:4===Number(o)?n=H:5===Number(o)&&(n=D);var a=(0,_.jsxs)(n,w(w({},l),{},{level:o,children:[u&&(0,_.jsx)(j.Z,{mb:i?2:3,children:t}),!u&&t]}));return r?a:(0,_.jsx)(k,{children:a})};R.defaultProps={level:3,weightStyle:6},n.Z=R},37003:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return F}});var i=t(77837),r=t(75582),o=t(82394),c=t(38860),u=t.n(c),l=t(82684),a=t(34376),d=t(75457),s=t(93808),f=t(71180),p=t(70652),g=t(55485),h=t(85854),v=t(48670),m=t(44085),b=t(57114),y=t(38276),x=t(81334),j=t(30160),_=t(17488),O=t(35686),Z=t(98464),w=t(77417),P=t(68781),k=t(78419),C=t(70515),I=t(53808),S=t(42122),N=t(81728),E=t(86735),H=t(28598);function D(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function M(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?D(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var R=function(e){var n,t,i,r,c,u,a,d=e.isPipelineUpdating,s=e.pipeline,D=e.updatePipeline,R=(0,w.Z)().project,z=(0,l.useRef)(null),T=(0,l.useRef)(null),A=null===s||void 0===s?void 0:s.uuid,L=(0,l.useMemo)((function(){return(null===s||void 0===s?void 0:s.blocks)||[]}),[s]),B=(0,l.useState)(!1),W=B[0],F=B[1],V=(0,l.useState)(!1),G=V[0],U=V[1],K=(0,l.useState)(null),Q=K[0],Y=K[1],X=(0,Z.Z)(s);(0,l.useEffect)((function(){(0,S.Xy)(s,X)||Y(s)}),[s,X]);var q=(0,l.useCallback)((function(e){F(!0),Y(e)}),[]),J="".concat(k.g6,"_").concat(A),$=(0,l.useState)({}),ee=$[0],ne=$[1],te="".concat(k.vF,"_").concat(A),ie=(0,l.useState)(!1),re=ie[0],oe=ie[1],ce=(0,l.useCallback)((function(e){ne((function(n){var t=e(n);return(0,I.t8)(J,JSON.stringify(t)),t}))}),[J,ne]),ue=(0,l.useCallback)((function(e){oe((function(n){var t=e(n);return(0,I.t8)(te,t),t}))}),[te,oe]);(0,l.useEffect)((function(){var e=(0,I.U2)(J);e&&(0,N.Pb)(e)&&ne(JSON.parse(e))}),[J,ne]),(0,l.useEffect)((function(){var e=(0,I.U2)(te);e&&oe(e)}),[te,oe]);var le=(0,l.useMemo)((function(){return null===Q||void 0===Q?void 0:Q.executor_type}),[Q]);(0,l.useEffect)((function(){G||!le||P.R.find((function(e){return e===le}))||U(!0)}),[G,le]);var ae=(0,l.useMemo)((function(){return(null===L||void 0===L?void 0:L.filter((function(e){var n=e.uuid;return!(null===ee||void 0===ee||!ee[n])}))).length===L.length}),[L,ee]),de=(0,l.useMemo)((function(){return!(null!==L&&void 0!==L&&L.length)}),[L]),se=(0,l.useMemo)((function(){return(null===Q||void 0===Q?void 0:Q.tags)||[]}),[Q]),fe=O.ZP.tags.list().data,pe=(0,l.useMemo)((function(){return((null===fe||void 0===fe?void 0:fe.tags)||[]).filter((function(e){var n=e.uuid;return!se.includes(n)}))}),[fe,se]),ge=(0,l.useMemo)((function(){var e;return null===R||void 0===R||null===(e=R.pipelines)||void 0===e?void 0:e.settings}),[R]),he=(0,l.useMemo)((function(){var e,n,t;return(null===ge||void 0===ge||null===(e=ge.triggers)||void 0===e?void 0:e.save_in_code_automatically)&&"undefined"===typeof(null===Q||void 0===Q||null===(n=Q.settings)||void 0===n||null===(t=n.triggers)||void 0===t?void 0:t.save_in_code_automatically)}),[Q,ge]);return(0,H.jsxs)(y.Z,{p:C.cd,children:[(0,H.jsxs)(b.Z,{title:"Details",children:[(0,H.jsx)(b.S,{invalid:W&&!(null!==Q&&void 0!==Q&&Q.name),textInput:{onChange:function(e){return q((function(n){return M(M({},n),{},{name:e.target.value})}))},value:null===Q||void 0===Q?void 0:Q.name},title:"Pipeline name"}),(0,H.jsx)(b.S,{description:"When enabled, this setting allows sharing of objects and memory space across blocks within a single pipeline.",title:"Run pipeline in a single process",toggleSwitch:{checked:!(null===Q||void 0===Q||!Q.run_pipeline_in_one_process),onCheck:function(e){return q((function(n){return M(M({},n),{},{run_pipeline_in_one_process:e(null===n||void 0===n?void 0:n.run_pipeline_in_one_process)})}))}}}),(0,H.jsx)(b.S,{description:(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(j.ZP,{muted:!0,small:!0,children:"Every time a trigger is created or updated in this pipeline, it\u2019ll be automatically be persisted it in code."}),(null===ge||void 0===ge||null===(n=ge.triggers)||void 0===n?void 0:n.save_in_code_automatically)&&(0,H.jsx)(j.ZP,{small:!0,warning:!0,children:"This settings is enabled at the project level. Changing the value here will only affect this pipeline."})]}),title:"Save triggers in code automatically",toggleSwitch:{checked:he||!(null===Q||void 0===Q||null===(t=Q.settings)||void 0===t||null===(i=t.triggers)||void 0===i||!i.save_in_code_automatically),onCheck:function(e){return q((function(n){var t,i,r;return M(M({},n),{},{settings:M(M({},null===n||void 0===n?void 0:n.settings),{},{triggers:M(M({},null===n||void 0===n||null===(t=n.settings)||void 0===t?void 0:t.triggers),{},{save_in_code_automatically:e(he||(null===n||void 0===n||null===(i=n.settings)||void 0===i||null===(r=i.triggers)||void 0===r?void 0:r.save_in_code_automatically))})})})}))}}})]}),(0,H.jsxs)(y.Z,{mt:C.HN,children:[(0,H.jsx)(h.Z,{children:"Executor type"}),(0,H.jsxs)(j.ZP,{muted:!0,children:["For more information on this setting, please read the ",(0,H.jsx)(v.Z,{href:"https://docs.mage.ai/production/configuring-production-settings/compute-resource#2-set-executor-type-and-customize-the-compute-resource-of-the-mage-executor",openNewWindow:!0,children:"documentation"}),"."]}),(0,H.jsxs)(y.Z,{mt:1,children:[!G&&(0,H.jsx)(m.Z,{label:"Executor type",onChange:function(e){return q((function(n){return M(M({},n),{},{executor_type:e.target.value})}))},primary:!0,ref:z,value:(null===Q||void 0===Q?void 0:Q.executor_type)||"",children:P.R.map((function(e){return(0,H.jsx)("option",{value:e,children:e},e)}))}),G&&(0,H.jsx)(_.Z,{label:"Executor type",monospace:!0,onChange:function(e){return q((function(n){return M(M({},n),{},{executor_type:e.target.value})}))},ref:T,setContentOnMount:!0,value:(null===Q||void 0===Q?void 0:Q.executor_type)||""}),(0,H.jsx)(y.Z,{mt:1,children:(0,H.jsx)(v.Z,{muted:!0,onClick:function(){G?(q((function(e){return M(M({},e),{},{executor_type:null===s||void 0===s?void 0:s.executor_type})})),setTimeout((function(){var e;return null===z||void 0===z||null===(e=z.current)||void 0===e?void 0:e.focus()}),1)):setTimeout((function(){var e;return null===T||void 0===T||null===(e=T.current)||void 0===e?void 0:e.focus()}),1),U(!G)},preventDefault:!0,small:!0,children:G?"Select a preset executor type":"Enter a custom executor type"})})]})]}),(0,H.jsxs)(y.Z,{mt:C.HN,children:[(0,H.jsx)(h.Z,{children:"Retry configuration"}),(0,H.jsxs)(j.ZP,{muted:!0,children:["For more information on this setting, please read the ",(0,H.jsx)(v.Z,{href:"https://docs.mage.ai/orchestration/pipeline-runs/retrying-block-runs",openNewWindow:!0,children:"documentation"}),"."]}),(0,H.jsx)(y.Z,{mt:1,children:(0,H.jsxs)(g.ZP,{children:[(0,H.jsx)(_.Z,{label:"Retries",monospace:!0,onChange:function(e){return q((function(n){return M(M({},n),{},{retry_config:M(M({},null===n||void 0===n?void 0:n.retry_config),{},{retries:"undefined"!==typeof e.target.value&&null!==e.target.value?Number(e.target.value):e.target.value})})}))},setContentOnMount:!0,type:"number",value:(null===Q||void 0===Q||null===(r=Q.retry_config)||void 0===r?void 0:r.retries)||""}),(0,H.jsx)(y.Z,{mr:1}),(0,H.jsx)(_.Z,{label:"Delay",monospace:!0,onChange:function(e){return q((function(n){return M(M({},n),{},{retry_config:M(M({},null===n||void 0===n?void 0:n.retry_config),{},{delay:"undefined"!==typeof e.target.value&&null!==e.target.value?Number(e.target.value):e.target.value})})}))},setContentOnMount:!0,type:"number",value:(null===Q||void 0===Q||null===(c=Q.retry_config)||void 0===c?void 0:c.delay)||""}),(0,H.jsx)(y.Z,{mr:1}),(0,H.jsx)(_.Z,{label:"Max delay",monospace:!0,onChange:function(e){return q((function(n){return M(M({},n),{},{retry_config:M(M({},null===n||void 0===n?void 0:n.retry_config),{},{max_delay:"undefined"!==typeof e.target.value&&null!==e.target.value?Number(e.target.value):e.target.value})})}))},setContentOnMount:!0,type:"number",value:(null===Q||void 0===Q||null===(u=Q.retry_config)||void 0===u?void 0:u.max_delay)||""}),(0,H.jsx)(y.Z,{mr:1}),(0,H.jsx)(p.Z,{checked:!(null===Q||void 0===Q||null===(a=Q.retry_config)||void 0===a||!a.exponential_backoff),label:"Exponential backoff",onClick:function(){return q((function(e){var n;return M(M({},e),{},{retry_config:M(M({},null===e||void 0===e?void 0:e.retry_config),{},{exponential_backoff:!(null!==e&&void 0!==e&&null!==(n=e.retry_config)&&void 0!==n&&n.exponential_backoff)})})}))}})]})})]}),(0,H.jsxs)(y.Z,{mt:C.HN,children:[(0,H.jsx)(h.Z,{children:"Tags"}),(0,H.jsx)(y.Z,{mt:1,children:(0,H.jsx)(x.Z,{removeTag:function(e){q((function(n){return M(M({},n),{},{tags:se.filter((function(n){return n!==e.uuid}))})}))},selectTag:function(e){q((function(n){return M(M({},n),{},{tags:(0,E.$C)(e.uuid,se,(function(n){return n===e.uuid}))})}))},selectedTags:null===se||void 0===se?void 0:se.map((function(e){return{uuid:e}})),tags:pe,uuid:"TagsAutocompleteInputField-".concat(null===s||void 0===s?void 0:s.uuid)})})]}),(0,H.jsx)(y.Z,{mt:C.HN,children:(0,H.jsx)(g.ZP,{children:(0,H.jsx)(f.ZP,{disabled:!W,loading:d,onClick:function(){return D({executor_type:null===Q||void 0===Q?void 0:Q.executor_type,name:null===Q||void 0===Q?void 0:Q.name,retry_config:null===Q||void 0===Q?void 0:Q.retry_config,run_pipeline_in_one_process:null===Q||void 0===Q?void 0:Q.run_pipeline_in_one_process,settings:null===Q||void 0===Q?void 0:Q.settings,tags:null===Q||void 0===Q?void 0:Q.tags}).then((function(){return F(!1)}))},primary:!0,children:"Save pipeline settings"})})}),(0,H.jsx)(y.Z,{mt:C.HN,children:(0,H.jsx)(p.Z,{checked:ae&&!de,disabled:de,label:"Hide all blocks in notebook",onClick:function(){return ce((function(){return ae?{}:null===L||void 0===L?void 0:L.reduce((function(e,n){var t=n.uuid;return M(M({},e),{},(0,o.Z)({},t,!0))}),{})}))}})}),(0,H.jsx)(y.Z,{mt:C.Mq,children:(0,H.jsx)(p.Z,{checked:re,label:"When running a block while editing a pipeline, output the block messages to the logs",onClick:function(){return ue((function(e){return!e}))}})})]})},z=t(28795),T=t(69864),A=t(72619);function L(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function B(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?L(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function W(e){var n=e.pipeline,t=(0,a.useRouter)(),i=(0,l.useState)(null),o=i[0],c=i[1],u=null===n||void 0===n?void 0:n.uuid,s=O.ZP.pipelines.detail(u).data,f=B(B({},null===s||void 0===s?void 0:s.pipeline),n),p=(0,T.Db)(O.ZP.pipelines.useUpdate(u,{update_content:!0}),{onSuccess:function(e){return(0,A.wD)(e,{callback:function(e){if(null!==e&&void 0!==e&&e.pipeline){var n=e.pipeline.uuid;u!==n&&(window.location.href="".concat(t.basePath,"/pipelines/").concat(n,"/settings"))}},onErrorCallback:function(e,n){return c({errors:n,response:e})}})}}),g=(0,r.Z)(p,2),h=g[0],v=g[1].isLoading;return(0,H.jsx)(d.Z,{breadcrumbs:[{label:function(){return"Settings"}}],errors:o,pageName:z.M.SETTINGS,pipeline:f,setErrors:c,title:function(e){var n=e.name;return"".concat(n," settings")},uuid:"".concat(z.M.SETTINGS,"_").concat(u),children:f&&(0,H.jsx)(R,{isPipelineUpdating:v,pipeline:f,updatePipeline:function(e){return h({pipeline:e})}})})}W.getInitialProps=function(){var e=(0,i.Z)(u().mark((function e(n){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var F=(0,s.Z)(W)},59606:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/settings",function(){return t(37003)}])},80022:function(e,n,t){"use strict";function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return i}})},15544:function(e,n,t){"use strict";function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.d(n,{Z:function(){return i}})},13692:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});var i=t(61049);function r(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&(0,i.Z)(e,n)}},93189:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var i=t(12539),r=t(80022);function o(e,n){if(n&&("object"===i(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.Z)(e)}},61049:function(e,n,t){"use strict";function i(e,n){return i=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},i(e,n)}t.d(n,{Z:function(){return i}})}},function(e){e.O(0,[2678,1154,844,4267,600,8487,8264,5457,9774,2888,179],(function(){return n=59606,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7803],{44265:function(n,e,t){"use strict";t.d(e,{Az:function(){return s},BF:function(){return c},Do:function(){return a},IK:function(){return u},P0:function(){return o},VO:function(){return l},sZ:function(){return d}});var r,o,i=t(82394),l=t(41143).V,u=[l.FAILED,l.COMPLETED,l.RUNNING,l.CANCELLED,l.INITIAL],c=[l.INITIAL,l.RUNNING],s=[l.CANCELLED,l.COMPLETED,l.FAILED],d="__mage_variables",a=(r={},(0,i.Z)(r,l.CANCELLED,"Cancelled"),(0,i.Z)(r,l.COMPLETED,"Done"),(0,i.Z)(r,l.FAILED,"Failed"),(0,i.Z)(r,l.INITIAL,"Ready"),(0,i.Z)(r,l.RUNNING,"Running"),r);!function(n){n.PIPELINE_UUID="pipeline_uuid[]",n.STATUS="status[]",n.TAG="pipeline_tag[]"}(o||(o={}))},25050:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return ln}});var r=t(77837),o=t(38860),i=t.n(o),l=t(82684),u=t(75457),c=t(93808),s=t(75582),d=t(82394),a=t(97618),f=t(55485),v=t(85854),m=t(44265),p=t(38276),h=t(4190),x=t(30160),b=t(44897),j=t(72473),Z=t(38626),g=t(42631),_=t(95363),I=t(70515),y=t(61896),P=Z.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-15svh8z-0"})(["border-radius:","px;margin:","px;overflow:hidden;"," "," "," "," "," "," &:hover{"," "," "," "," ","}"],g.n_,I.cd*I.iI,(function(n){return"\n background-color: ".concat((n.theme.background||b.Z.background).panel,";\n border: 1px solid ").concat((n.theme.borders||b.Z.borders).dark,";\n\n &:hover {\n cursor: pointer;\n }\n ")}),(function(n){return n.selected&&n.danger&&"\n border-color: ".concat((n.theme.accent||b.Z.accent).negative,";\n ")}),(function(n){return n.selected&&n.primary&&"\n border-color: ".concat((n.theme.interactive||b.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.selected&&n.default&&"\n border-color: ".concat((n.theme.interactive||b.Z.interactive).focusBackground,";\n ")}),(function(n){return n.selected&&n.success&&"\n border-color: ".concat((n.theme.background||b.Z.background).success,";\n ")}),(function(n){return n.selected&&n.warning&&"\n border-color: ".concat((n.theme.accent||b.Z.accent).warning,";\n ")}),(function(n){return n.danger&&"\n border-color: ".concat((n.theme.accent||b.Z.accent).negative,";\n ")}),(function(n){return n.primary&&"\n border-color: ".concat((n.theme.interactive||b.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.default&&"\n border-color: ".concat((n.theme.interactive||b.Z.interactive).focusBackground,";\n ")}),(function(n){return n.success&&"\n border-color: ".concat((n.theme.background||b.Z.background).success,";\n ")}),(function(n){return n.warning&&"\n border-color: ".concat((n.theme.accent||b.Z.accent).warning,";\n ")})),k=(0,Z.css)([""," "," "," "," ",""],(function(n){return n.danger&&"\n background-color: ".concat((n.theme.accent||b.Z.accent).negative,";\n ")}),(function(n){return n.primary&&"\n background-color: ".concat((n.theme.interactive||b.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.default&&"\n background-color: ".concat((n.theme.interactive||b.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.success&&"\n background-color: ".concat((n.theme.background||b.Z.background).success,";\n ")}),(function(n){return n.warning&&"\n background-color: ".concat((n.theme.accent||b.Z.accent).warning,";\n ")})),N=Z.default.div.withConfig({displayName:"indexstyle__StatusStyle",componentId:"sc-15svh8z-1"})([""," ",";border-radius:","px;display:inline-block;font-family:",";padding:6px;"," "," "," "," "," ",""],k,y.iD,g.D7,_.ry,(function(n){return n.danger&&"\n color: ".concat((n.theme.content||b.Z.content).active,";\n ")}),(function(n){return n.primary&&"\n color: ".concat((n.theme.content||b.Z.content).active,";\n ")}),(function(n){return(n.default||n.success)&&"\n "}),(function(n){return n.default&&"\n color: ".concat((n.theme.content||b.Z.content).default,";\n ")}),(function(n){return n.success&&"\n color: ".concat((n.theme.content||b.Z.content).inverted,";\n ")}),(function(n){return n.warning&&"\n color: ".concat((n.theme.content||b.Z.content).inverted,";\n ")})),O=Z.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-15svh8z-2"})([""," display:flex;height:auto;width:3px;",""],k,(function(n){return n.default&&"\n background-color: ".concat((n.theme.interactive||b.Z.interactive).focusBackground,";\n ")})),E=t(81728),w=t(92083),M=t.n(w),L=t(41143),C=t(86735);function S(n){var e;return Object.keys((null===n||void 0===n||null===(e=n.metrics)||void 0===e?void 0:e.blocks)||{}).sort()}function A(n){var e,t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=null,i=null,l=null,u=null,c={},d=(null===n||void 0===n?void 0:n.block_runs)||[],a=(null===n||void 0===n||null===(e=n.metrics)||void 0===e?void 0:e.blocks)||{},f=(null===n||void 0===n||null===(t=n.metrics)||void 0===t?void 0:t.pipeline)||{},v=D(n);return Object.entries(a).forEach((function(n){var e,t=(0,s.Z)(n,2),d=t[0],a=t[1];if(!r||r===d){var m,p=a||{},h=p.destinations,x=void 0===h?{records_affected:null,records_inserted:null,records_updated:null}:h,b=p.sources,j=void 0===b?{records:null}:b,Z=v[d]||[];if(r&&r===d&&Z.every((function(n){var e=n.status;return L.V.COMPLETED===e}))&&null===o&&(o=0),null!==f&&void 0!==f&&null!==(e=f[d])&&void 0!==e&&e.record_counts)null===o&&(o=0),o+=Number(null===f||void 0===f||null===(m=f[d])||void 0===m?void 0:m.record_counts);else null!==j&&void 0!==j&&j.records&&(null===o&&(o=0),o+=Number(j.records));null!==x&&void 0!==x&&x.records_updated?(null===l&&(l=0),l+=Number(x.records_updated),null===u&&(u=0),u+=Number(x.records_updated)):null!==x&&void 0!==x&&x.records_inserted?(null===l&&(l=0),l+=Number(x.records_inserted),null===i&&(i=0),i+=Number(x.records_inserted)):null!==x&&void 0!==x&&x.records_affected&&(null===l&&(l=0),l+=Number(x.records_affected)),["destinations","sources"].forEach((function(n){var e=a[n]||{};null!==e&&void 0!==e&&e.error&&(c[d]||(c[d]={}),c[d][n]={error:null===e||void 0===e?void 0:e.error,errors:null===e||void 0===e?void 0:e.errors,message:null===e||void 0===e?void 0:e.message})}))}})),null===d||void 0===d||d.forEach((function(n){var e=n.block_uuid,t=n.metrics,r=n.status;if(L.V.FAILED===r&&null!==t&&void 0!==t&&t.error&&e){var o=e.split(":"),i=(0,s.Z)(o,3),l=(i[0],i[1]);i[2];c[l]||(c[l]={}),c[l][""]=t.error}})),{errors:c,records:o,recordsInserted:i,recordsProcessed:l,recordsUpdated:u}}function D(n){var e=n.block_runs,t={};return null===e||void 0===e||e.forEach((function(n){var e=n.block_uuid.split(":"),r=(0,s.Z)(e,3),o=(r[0],r[1]);r[2];t[o]||(t[o]=[]),t[o].push(n)})),t}function V(n){var e=D(n),t={};return Object.entries(e).forEach((function(n){var e=(0,s.Z)(n,2),r=e[0],o=e[1],i=o.filter((function(n){var e=n.status;return L.V.COMPLETED===e})),l=i.map((function(n){var e=n.completed_at,t=n.started_at,r=M().utc(e),o=M().utc(t);return r.diff(o,"second")})),u=i.length,c=o.length;t[r]={completed:u,runtime:l.length>=1?(0,C.Sm)(l)/l.length:null,total:c}})),t}function T(n){var e=n.block_runs,t=(null===e||void 0===e?void 0:e.length)||1,r=function(n){var e=(null===n||void 0===n?void 0:n.block_runs)||[];return null===e||void 0===e?void 0:e.filter((function(n){var e=n.status;return L.V.COMPLETED===e}))}(n).length||0;return r/t}function R(n){var e=n.completed_at,t=n.block_runs,r=void 0===t?[]:t,o=n.status;if(null===r||void 0===r||!r.length)return 0;var i=M().utc();if(e)i=M().utc(e);else if([m.VO.CANCELLED,m.VO.FAILED].includes(o)){var l=(0,C.YC)(r,(function(n){return n.started_at}),{ascending:!1})[0];i=M().utc(l.updated_at)}var u=M().utc(n.created_at);return i.diff(u,"second")}function U(n,e){var t,r,o,i,l,u=D(n),c=V(n),s=(null===n||void 0===n?void 0:n.metrics)||{blocks:null,pipeline:null},d=s.blocks||{},a=s.pipeline||{},f=(d[e],a[e],c[e]||{completed:null,total:null}),v=f.completed,m=f.total,p=v&&m?v/m:0,h=u[e]||[],x=h.every((function(n){var e=n.status;return L.V.COMPLETED===e})),b=(0,C.YC)(h,(function(n){return n.updated_at}),{ascending:!1})[0],j=null===(t=(0,C.YC)(h,(function(n){return n.started_at}),{ascending:!0})[0])||void 0===t?void 0:t.started_at;x?r=null===(l=(0,C.YC)(h,(function(n){return n.completed_at}),{ascending:!1})[0])||void 0===l?void 0:l.completed_at:b&&(i=null===b||void 0===b?void 0:b.updated_at);var Z=x?M().utc(r||i):M().utc(),g=M().utc(j);return{completed:v,completedAt:r,done:x,progress:p,runtime:o=Z.diff(g,"second"),startedAt:j,status:null===b||void 0===b?void 0:b.status,timeText:(0,E.zf)(o),total:m,updatedAt:i}}var F=t(28598);function G(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function z(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?G(Object(t),!0).forEach((function(e){(0,d.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):G(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var B=function(n){var e=n.onSelect,t=n.pipelineRun,r=n.selected,o=(t.block_runs,t.created_at),i=t.status,u=(0,l.useMemo)((function(){return(null===t||void 0===t?void 0:t.metrics)||{blocks:{},destination:null,pipeline:{},source:null}}),[t]),c=((0,l.useMemo)((function(){return u.blocks||{}}),[u]),(0,l.useMemo)((function(){return u.pipeline||{}}),[u])),d=u.destination,Z=u.source,g=(0,l.useMemo)((function(){return Object.keys(c).length}),[c]),_=(0,l.useMemo)((function(){return A(t)}),[t]),y=_.errors,k=_.records,w=_.recordsProcessed,M=(0,l.useMemo)((function(){return T(t)}),[t]),L=(0,l.useMemo)((function(){return[m.VO.COMPLETED].includes(i)}),[i]),C=(0,l.useMemo)((function(){return{danger:m.VO.FAILED===i,default:m.VO.INITIAL===i,primary:m.VO.RUNNING===i,success:L,warning:m.VO.CANCELLED===i}}),[L,i]),S=(0,l.useMemo)((function(){if(t){var n=R(t);return(0,E.zf)(n)}}),[t]);return(0,F.jsx)(P,z(z({},C),{},{onClick:function(){return e(r?null:t.id)},selected:r,children:(0,F.jsxs)(f.ZP,{fullHeight:!0,justifyContent:"space-between",children:[(0,F.jsx)(O,z({},C)),(0,F.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,F.jsxs)(p.Z,{ml:3,py:3,children:[(0,F.jsx)(v.Z,{bold:!0,level:5,monospace:!0,children:o}),(0,F.jsx)(p.Z,{fullWidth:!1,mt:2,children:(0,F.jsx)(N,z(z({},C),{},{children:(0,F.jsxs)(f.ZP,{alignItems:"center",children:[L&&(0,F.jsx)(j.Jr,{inverted:!0,size:2*I.iI}),[m.VO.INITIAL,m.VO.RUNNING].includes(i)&&(0,F.jsx)(h.Z,{color:m.VO.INITIAL!==i?b.Z.monotone.white:null,inverted:m.VO.INITIAL===i,small:!0}),"\xa0",m.VO.RUNNING===i&&(0,F.jsxs)(F.Fragment,{children:["\xa0",Math.round(100*M),"%"]}),![m.VO.INITIAL,m.VO.RUNNING].includes(i)&&m.Do[i],m.VO.INITIAL===i&&"Starting"]})}))}),Object.values(y).length>=1&&(0,F.jsx)(p.Z,{mt:1,children:Object.entries(y).map((function(n,e){var t=(0,s.Z)(n,2),r=t[0];t[1];return(0,F.jsxs)(x.ZP,{monospace:!0,muted:!0,small:!0,children:[r," stream failed"]},r)}))})]})}),(0,F.jsxs)(a.Z,{flex:1,children:[(0,F.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,F.jsxs)(p.Z,{ml:3,py:3,children:[(0,F.jsxs)(p.Z,{mb:1,children:[(0,F.jsx)(x.ZP,{bold:!0,muted:!0,small:!0,children:"Rows processed"}),(0,F.jsx)(x.ZP,{monospace:!0,children:w>=1?(0,E.x6)(w):"-"})]}),(0,F.jsxs)(p.Z,{mb:1,children:[(0,F.jsx)(x.ZP,{bold:!0,muted:!0,small:!0,children:"Rows remaining"}),(0,F.jsx)(x.ZP,{monospace:!0,children:k>=1&&k>=w?(0,E.x6)(k-w):"-"})]}),m.VO.RUNNING!==i&&(0,F.jsxs)(p.Z,{mb:1,children:[(0,F.jsx)(x.ZP,{bold:!0,muted:!0,small:!0,children:"Runtime"}),(0,F.jsx)(x.ZP,{monospace:!0,children:S})]})]})}),(0,F.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,F.jsxs)(p.Z,{ml:3,py:3,children:[(0,F.jsxs)(p.Z,{mb:1,children:[(0,F.jsx)(x.ZP,{bold:!0,muted:!0,small:!0,children:"Source"}),(0,F.jsx)(x.ZP,{monospace:!0,children:Z||"-"})]}),(0,F.jsxs)(p.Z,{mb:1,children:[(0,F.jsx)(x.ZP,{bold:!0,muted:!0,small:!0,children:"Destination"}),(0,F.jsx)(x.ZP,{monospace:!0,children:d||"-"})]}),(0,F.jsxs)(p.Z,{mb:1,children:[(0,F.jsx)(x.ZP,{bold:!0,muted:!0,small:!0,children:"Streams"}),(0,F.jsx)(x.ZP,{monospace:!0,children:g>=1?(0,E.x6)(g):"-"})]})]})})]})]})}))},Y=t(89565),W=t.n(Y),J=t(34376),X=t(71180),q=t(48670),H=t(75499),K=Z.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-1thr560-0"})(["display:flex;flex:1;"," "," ",""],(function(n){return n.even&&n.fill&&"\n background-color: ".concat((n.theme.accent||b.Z.accent).cyan,";\n ")}),(function(n){return n.even&&!n.fill&&"\n background-color: ".concat((n.theme.accent||b.Z.accent).cyanTransparent,";\n ")}),(function(n){return"\n height: ".concat((n.small?1:2)*I.iI,"px;\n ")})),Q=t(3314);var $=function(n){var e=n.onClickRow,t=n.pipelineRun,r=n.selectedStream,o=(0,J.useRouter)(),i=(0,l.useState)(null),u=i[0],c=i[1],d=(0,l.useState)(null),a=d[0],h=d[1],b=(0,l.useMemo)((function(){return t?D(t):{}}),[t]),Z=(0,l.useMemo)((function(){return t?V(t):{}}),[t]),g=(0,l.useMemo)((function(){var n=0,e=[],t=[];if(Object.entries(Z).forEach((function(r){var o=(0,s.Z)(r,2),i=(o[0],o[1]),l=i.completed,u=i.runtime,c=i.total;null===u?t.push(i):(e.push(u),n+=u*(c-l))})),0===e.length)return null;var r=(0,C.Sm)(e)/e.length;return t.forEach((function(e){var t=e.completed,o=e.total;n+=r*(o-t)})),n}),[Z]),_=(0,l.useMemo)((function(){return r?Z[r]:null}),[Z,r]),y=(0,l.useMemo)((function(){if(r&&Z){var n=Z[r]||{},e=n.completed,o=n.total;if(o>=1)return e/o}else if(t)return T(t);return 0}),[_,t,r]),P=(0,l.useMemo)((function(){return(0,F.jsx)(f.ZP,{children:(0,C.w6)(101).map((function(n,e){return(0,F.jsx)(K,{even:e%2===0,fill:y>0&&Math.round(100*y)>=e},e)}))})}),[y]),k=(0,l.useMemo)((function(){if(r){var n=b[r]||[],e=n.every((function(n){var e=n.status;return L.V.COMPLETED===e})),o=(0,C.YC)(n,(function(n){return n.updated_at}),{ascending:!1})[0],i=null===o||void 0===o?void 0:o.status,l=_||{},u=l.completed,c=l.runtime,s=l.total;if(e)return"Sync complete for ".concat(r);if([L.V.CANCELLED,L.V.FAILED].includes(i))return m.Do[i];if(c&&s>=1){var d=Math.ceil(c*(s-u)/60);return"".concat((0,E._6)("minute",d,!0)," to completion")}return"Estimating time remaining for stream..."}if(m.VO.COMPLETED===(null===t||void 0===t?void 0:t.status))return"Sync complete";if(t){if([m.VO.CANCELLED,m.VO.FAILED].includes(null===t||void 0===t?void 0:t.status))return m.Do[null===t||void 0===t?void 0:t.status];if(m.VO.INITIAL===(null===t||void 0===t?void 0:t.status))return"Initializing sync (this can take several minutes)";if(null===g)return"Estimating time remaining...";var a=Math.ceil(g/60);return"".concat((0,E._6)("minute",a,!0)," to completion")}return"Select a sync"}),[b,g,_,t,r]),N=(0,l.useMemo)((function(){return t&&r?U(t,r):{completed:null,completedAt:null,done:null,progress:null,runtime:null,startedAt:null,status:null,timeText:null,total:null,updatedAt:null}}),[t,r]);(0,l.useEffect)((function(){var n;if(t){var e=R(t);c(e),n=setInterval((function(){return c((function(n){return n+1}))}),1e3)}return function(){return clearInterval(n)}}),[t]),(0,l.useEffect)((function(){var n;if(t&&r&&N){var e=(null===N||void 0===N?void 0:N.runtime)||0;h(e),n=setInterval((function(){return h((function(n){return n+1}))}),1e3)}return function(){return clearInterval(n)}}),[t,r,N]);var O=(0,l.useMemo)((function(){if(t){if(r)return null===N||void 0===N?void 0:N.timeText;var n=R(t);return(0,E.zf)(n)}}),[t,r,N]),w=(0,l.useMemo)((function(){var n=Math.floor(u%86400/3600),e=Math.floor(u%3600/60),t=Math.floor(u%60/1);return[n>=10?String(n):"0".concat(n),e>=10?String(e):"0".concat(e),t>=10?String(t):"0".concat(t)].join(":")}),[u]),M=(0,l.useMemo)((function(){var n=Math.floor(a%86400/3600),e=Math.floor(a%3600/60),t=Math.floor(a%60/1);return[n>=10?String(n):"0".concat(n),e>=10?String(e):"0".concat(e),t>=10?String(t):"0".concat(t)].join(":")}),[a]),G=(0,l.useMemo)((function(){return t?A(t):{errors:null,records:null,recordsInserted:null,recordsProcessed:null,recordsUpdated:null}}),[t]),z=G.errors,B=G.records,Y=G.recordsInserted,$=G.recordsProcessed,nn=G.recordsUpdated,en=(0,l.useMemo)((function(){return t&&r?A(t,r):{errors:null,records:null,recordsInserted:null,recordsProcessed:null,recordsUpdated:null}}),[t,r]),tn=(0,l.useMemo)((function(){var n=r?null===en||void 0===en?void 0:en.records:B,e=r?null===en||void 0===en?void 0:en.recordsInserted:Y,t=r?null===en||void 0===en?void 0:en.recordsProcessed:$,o=r?null===en||void 0===en?void 0:en.recordsUpdated:nn,i=[{label:"Rows fetched",value:null===n?"-":(0,E.x6)(n)}];return null===e&&null===o?i.push({label:"Rows processed",value:null===t?"-":(0,E.x6)(t)}):null!==e?i.push({label:"Rows inserted",value:(0,E.x6)(e)}):null!==o&&i.push({label:"Rows updated",value:(0,E.x6)(o)}),i.map((function(n){var e=n.label,t=n.value;return(0,F.jsxs)("div",{children:[(0,F.jsx)(x.ZP,{bold:!0,large:!0,muted:!0,children:e}),(0,F.jsx)(x.ZP,{headline:!0,children:t})]},e)}))}),[B,en,Y,$,nn,O,w,status]),rn=(0,l.useMemo)((function(){if(!t)return(0,F.jsx)("div",{});var n=S(t);return(0,F.jsx)(H.Z,{columnFlex:[null,null,null,null,null,null],columns:[{uuid:"Stream"},{uuid:"Start"},{uuid:"End"},{uuid:"Time"},{uuid:"Progress"},{uuid:"Logs"}],isSelectedRow:function(e){return r&&r===n[e]},onClickRow:e,rows:n.map((function(n){var e=U(t,n),r=(e.completed,e.completedAt),i=e.done,l=e.progress,u=e.startedAt,c=e.status,s=e.timeText,d=(e.total,!!z[n]);return[(0,F.jsx)(x.ZP,{danger:d,default:!d,monospace:!0,children:n},"stream"),(0,F.jsx)(x.ZP,{default:!0,monospace:!0,children:u?u.split(".")[0]:"-"},"started_at"),(0,F.jsx)(x.ZP,{default:!0,monospace:!0,children:r?r.split(".")[0]:"-"},"completed_at"),(0,F.jsx)(x.ZP,{default:!0,children:[L.V.INITIAL,L.V.RUNNING].includes(c)?"-":s},"runtime"),(0,F.jsxs)("div",{children:[i&&(0,F.jsx)(j.Jr,{default:!0,size:2*I.iI}),!i&&(0,F.jsx)(f.ZP,{children:(0,C.w6)(51).map((function(n,e){return(0,F.jsx)(K,{fill:l>0&&Math.round(50*l)>=e,even:e%2===0,small:!0},e)}))})]},"progress"),(0,F.jsx)(X.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(n){o.push("/pipelines/".concat(t.pipeline_uuid,"/logs?pipeline_run_id[]=").concat(t.id)),(0,Q.j)(n)},children:(0,F.jsx)(j.UL,{default:!0,size:2*I.iI})},"logs")]})),uuid:"".concat(null===t||void 0===t?void 0:t.id,"-streams-table")})}),[z,Z,t,r]),on=(0,l.useMemo)((function(){var n,e,o,i,l,u,c,d;if(t&&r){var a=(null===t||void 0===t?void 0:t.metrics)||{blocks:null,destination:null,pipeline:null,source:null},f=null===a||void 0===a||null===(n=a.pipeline)||void 0===n||null===(e=n[r])||void 0===e||null===(o=e.bookmarks)||void 0===o?void 0:o[r],v=null===a||void 0===a||null===(i=a.blocks)||void 0===i||null===(l=i[r])||void 0===l||null===(u=l.destinations)||void 0===u||null===(c=u.state)||void 0===c||null===(d=c.bookmarks)||void 0===d?void 0:d[r];if(f||v){var m=Array.from(new Set(Object.keys(f||{}).concat(Object.keys(v||{})))).sort(),p=[];m.forEach((function(n){var e=[(0,F.jsx)(x.ZP,{bold:!0,monospace:!0,muted:!0,small:!0,children:n},n)];[f,v].forEach((function(t,r){t&&e.push((0,F.jsx)(x.ZP,{monospace:!0,small:!0,children:t[n]},"".concat(n,"-").concat(r)))})),p.push(e)}));var h=[{label:function(){return""},uuid:"column"}];return[[null===a||void 0===a?void 0:a.source,"source",f],[null===a||void 0===a?void 0:a.destination,"destination",v]].forEach((function(n){var e=(0,s.Z)(n,3),t=e[0],r=e[1];e[2]&&h.push({uuid:"".concat(t," (").concat(r,")")})})),(0,F.jsx)(H.Z,{columnFlex:[null,1,1],columns:h,rows:p,uuid:"".concat(r,"-bookmark-table")})}}}),[t,r]),ln=(0,l.useMemo)((function(){var n,e,o,i,l,u;if(t&&r){var c=(null===t||void 0===t?void 0:t.metrics)||{blocks:null,destination:null,pipeline:null,source:null},d=null===c||void 0===c||null===(n=c.blocks)||void 0===n||null===(e=n[r])||void 0===e||null===(o=e.sources)||void 0===o?void 0:o.record,a=null===c||void 0===c||null===(i=c.blocks)||void 0===i||null===(l=i[r])||void 0===l||null===(u=l.destinations)||void 0===u?void 0:u.record;if(d||a){var f=Object.keys(a||d||{}).sort(),v=[];f.forEach((function(n){var e=[(0,F.jsx)(x.ZP,{bold:!0,monospace:!0,muted:!0,small:!0,children:n},n)];[d,a].forEach((function(t,r){if(t){var o=t[n],i="object"===typeof o;e.push((0,F.jsxs)(x.ZP,{monospace:!0,small:!0,textOverflow:!0,whiteSpaceNormal:!0,wordBreak:!0,children:[i&&(0,F.jsx)("pre",{children:JSON.stringify(o,null,2)}),!i&&o]},"".concat(n,"-").concat(r)))}})),v.push(e)}));var m=[{label:function(){return""},uuid:"column"}];return[[null===c||void 0===c?void 0:c.source,"source",d],[null===c||void 0===c?void 0:c.destination,"destination",a]].forEach((function(n){var e=(0,s.Z)(n,3),t=e[0],r=e[1];e[2]&&m.push({uuid:"".concat(t," (").concat(r,")")})})),(0,F.jsx)(H.Z,{columnFlex:[null,1,1],columns:m,rows:v.map((function(n){return n.map((function(n){return(0,F.jsx)(x.ZP,{default:!0,monospace:!0,children:n},n)}))})),uuid:"".concat(r,"-bookmark-table")})}}}),[t,r]),un=(0,l.useMemo)((function(){var n,e,o,i,l,u,c=null===t||void 0===t||null===(n=t.metrics)||void 0===n||null===(e=n.blocks)||void 0===e?void 0:e[r];return(null===c||void 0===c||null===(o=c.sources)||void 0===o||null===(i=o.block_tags)||void 0===i?void 0:i.destination_table)||(null===c||void 0===c||null===(l=c.destinations)||void 0===l||null===(u=l.block_tags)||void 0===u?void 0:u.destination_table)}),[t,r]);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(p.Z,{p:3,children:[r&&(0,F.jsx)(p.Z,{mb:3,children:(0,F.jsxs)(f.ZP,{alignItems:"center",children:[(0,F.jsx)(q.Z,{block:!0,onClick:function(){return o.push("/pipelines/".concat(t.pipeline_uuid,"/syncs?pipeline_run_id=").concat(t.id))},preventDefault:!0,children:(0,F.jsxs)(f.ZP,{alignItems:"center",children:[(0,F.jsx)(j.Xd,{default:!0,size:1.5*I.iI}),(0,F.jsx)(p.Z,{mr:1}),(0,F.jsx)(x.ZP,{default:!0,children:"Syncs"})]})}),(0,F.jsx)(p.Z,{mx:1,children:(0,F.jsx)(x.ZP,{default:!0,monospace:!0,children:"/"})}),(0,F.jsx)(x.ZP,{bold:!0,monospace:!0,children:r})]})}),(0,F.jsxs)(f.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,F.jsx)(p.Z,{mr:2,my:1,children:(0,F.jsx)(v.Z,{level:5,muted:!t,children:k})}),t&&(0,F.jsx)(X.ZP,{onClick:function(){return o.push("/pipelines/".concat(t.pipeline_uuid,"/logs?pipeline_run_id[]=").concat(t.id))},small:!0,children:"Logs"})]}),(0,F.jsx)(p.Z,{mt:2,children:P}),t&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(p.Z,{mt:3,children:(0,F.jsxs)(f.ZP,{justifyContent:"space-between",children:[(0,F.jsxs)("div",{children:[(0,F.jsx)(x.ZP,{bold:!0,large:!0,muted:!0,children:"Runtime"}),(0,F.jsxs)(x.ZP,{headline:!0,children:[r&&[L.V.INITIAL,L.V.RUNNING].includes(null===N||void 0===N?void 0:N.status)&&M,r&&![L.V.INITIAL,L.V.RUNNING].includes(null===N||void 0===N?void 0:N.status)&&(null===N||void 0===N?void 0:N.timeText),!r&&[m.VO.INITIAL,m.VO.RUNNING].includes(null===t||void 0===t?void 0:t.status)&&w,!r&&![m.VO.INITIAL,m.VO.RUNNING].includes(null===t||void 0===t?void 0:t.status)&&O]})]}),tn]})}),Object.values(z).length>=1&&(0,F.jsxs)(p.Z,{mt:3,children:[(0,F.jsx)(v.Z,{level:5,muted:!0,children:"Errors"}),Object.entries(z).map((function(n,e){var t=(0,s.Z)(n,2),o=t[0],i=t[1];return(!r||r===o)&&(0,F.jsx)(p.Z,{mt:e>=1?1:0,children:Object.entries(i).map((function(n){var e=(0,s.Z)(n,2),t=e[0],r=e[1],i=r.error,l=r.errors,u=r.message,c=Array.isArray(i)?i.join(" "):i;return(0,F.jsxs)("div",{children:[(0,F.jsx)(p.Z,{mb:u||(null===l||void 0===l?void 0:l.length)>=1?2:0,children:(0,F.jsxs)(x.ZP,{monospace:!0,preWrap:!0,textOverflow:!0,children:[o,!!t&&(0,F.jsxs)(x.ZP,{inline:!0,monospace:!0,muted:!0,children:["\xa0(",t,")"]}),": ",(0,F.jsx)(x.ZP,{default:!0,inline:!0,monospace:!0,children:c&&(0,F.jsx)(W(),{children:c})})]})}),(0,F.jsx)(x.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:u}),l.map((function(n){return(0,F.jsx)(x.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:n},n)}))]},"".concat(o,"-").concat(t))}))},o)}))]})]})]}),t&&!r&&(0,F.jsx)(p.Z,{my:3,children:rn}),t&&r&&(0,F.jsxs)(F.Fragment,{children:[un&&(0,F.jsx)(p.Z,{my:3,children:(0,F.jsxs)(p.Z,{px:3,children:[(0,F.jsx)(v.Z,{level:5,children:"Table name"}),(0,F.jsx)(p.Z,{mt:1,children:(0,F.jsx)(x.ZP,{default:!0,monospace:!0,children:un})})]})}),on&&(0,F.jsxs)(p.Z,{my:3,children:[(0,F.jsx)(p.Z,{px:3,children:(0,F.jsx)(v.Z,{level:5,children:"Bookmarks"})}),(0,F.jsx)(p.Z,{px:1,children:on})]}),ln&&(0,F.jsxs)(p.Z,{my:3,children:[(0,F.jsx)(p.Z,{px:3,children:(0,F.jsx)(v.Z,{level:5,children:"Sample row"})}),(0,F.jsx)(p.Z,{px:1,children:ln})]})]})]})},nn=t(35686),en=t(28795),tn=t(15610),rn=t(69419);function on(n){var e=n.pipeline,t=e.uuid,r=nn.ZP.pipeline_runs.list({_limit:20,_offset:0,pipeline_uuid:t},{refreshInterval:5e3}).data,o=(0,l.useMemo)((function(){return(null===r||void 0===r?void 0:r.pipeline_runs)||[]}),[r]),i=(0,rn.iV)(),c=(0,l.useState)(null),s=c[0],d=c[1],a=(0,l.useState)(null),f=a[0],v=a[1],m=(0,l.useState)(null),p=m[0],h=m[1];(0,l.useEffect)((function(){null!==i&&void 0!==i&&i.pipeline_run_id?h(null===o||void 0===o?void 0:o.find((function(n){return n.id===Number(i.pipeline_run_id)}))):p&&h(null),null!==i&&void 0!==i&&i.stream?v(i.stream):f&&v(null)}),[o,i,p,f]);var x=(0,l.useCallback)((function(){var n=p?S(p):[];return(0,F.jsx)($,{onClickRow:function(e){var t=n[e];(0,tn.u7)({stream:f===t?null:t})},pipelineRun:p,selectedStream:f})}),[p,f]),b=(0,l.useMemo)((function(){var n="/pipelines/".concat(t,"/syncs");p&&(n="".concat(n,"?pipeline_run_id=").concat(p.id));var e=[{label:function(){return"Syncs"},linkProps:f?{as:n,href:"/pipelines/[pipeline]/syncs"}:null}];return f&&e.push({label:function(){return f}}),e}),[t,p,f]);return(0,F.jsx)(u.Z,{breadcrumbs:b,buildSidekick:x,errors:s,pageName:en.M.SYNCS,pipeline:e,setErrors:d,title:function(n){var e=n.name;return"".concat(e," syncs")},uuid:"".concat(en.M.SYNCS,"_").concat(t),children:o.map((function(n){var e=(null===p||void 0===p?void 0:p.id)===n.id;return(0,F.jsx)(B,{onSelect:function(n){return(0,tn.u7)({pipeline_run_id:n,stream:null})},pipelineRun:n,selected:e},n.id)}))})}on.getInitialProps=function(){var n=(0,r.Z)(i().mark((function n(e){var t;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.query.pipeline,n.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();var ln=(0,c.Z)(on)},59416:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/syncs",function(){return t(25050)}])},80022:function(n,e,t){"use strict";function r(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}t.d(e,{Z:function(){return r}})},15544:function(n,e,t){"use strict";function r(n){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},r(n)}t.d(e,{Z:function(){return r}})},13692:function(n,e,t){"use strict";t.d(e,{Z:function(){return o}});var r=t(61049);function o(n,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&(0,r.Z)(n,e)}},93189:function(n,e,t){"use strict";t.d(e,{Z:function(){return i}});var r=t(12539),o=t(80022);function i(n,e){if(e&&("object"===r(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(n)}},61049:function(n,e,t){"use strict";function r(n,e){return r=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n},r(n,e)}t.d(e,{Z:function(){return r}})}},function(n){n.O(0,[2678,1154,844,4267,600,8487,8264,7858,5499,5457,9774,2888,179],(function(){return e=59416,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[643],{92709:function(e,n,i){"use strict";i.d(n,{$e:function(){return c},Em:function(){return p},IY:function(){return s},Jf:function(){return l},LR:function(){return r},NR:function(){return o},Qj:function(){return d},Wf:function(){return g},b7:function(){return t},m$:function(){return a},tK:function(){return u}});var t="edit",r="[ERR_BLOCK_EXISTS]",l={uuid:"All files"},s={uuid:"Current blocks"},o=[l,s],u="CUSTOM_EVENT_BLOCK_OUTPUT_CHANGED",c="CUSTOM_EVENT_CODE_BLOCK_CHANGED",a="CUSTOM_EVENT_COLUMN_SCROLLER_CURSOR_MOVED",d="CUSTOM_EVENT_COLUMN_SCROLLER_RESET",p="CUSTOM_EVENT_COLUMN_SCROLLER_SCROLL_TO_BLOCK",g="CUSTOM_EVENT_SYNC_COLUMN_POSITIONS"},74395:function(e,n,i){"use strict";i.d(n,{M:function(){return s},W:function(){return l}});var t=i(38626),r=i(46684),l=34*i(70515).iI,s=t.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],r.Mz)},8955:function(e,n,i){"use strict";i.d(n,{G7:function(){return b},ZP:function(){return P},u$:function(){return _}});var t=i(75582),r=i(82394),l=i(26304),s=i(90299),o=i(9134),u=i(24138),c=i(38276),a=i(30160),d=i(75499),p=i(70515),g=i(16488),f=i(42122),h=i(28598),v=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function j(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 x(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?j(Object(i),!0).forEach((function(n){(0,r.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):j(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var _=76,m={uuid:"Run details"},Z={uuid:"Dependency tree"},b=[Z,m];function P(e){var n=e.height,i=e.heightOffset,r=e.pipeline,j=e.selectedRun,P=e.selectedTab,O=e.setSelectedTab,y=x({},(0,l.Z)(e,v));j?y.blockStatus=(0,g.IJ)(null===j||void 0===j?void 0:j.block_runs):y.noStatus=!0;var S=(0,f.Kn)(null===j||void 0===j?void 0:j.variables)?x({},null===j||void 0===j?void 0:j.variables):(null===j||void 0===j?void 0:j.variables)||{},w=null===j||void 0===j?void 0:j.event_variables;if(w&&(0,f.Kn)(w)&&!(0,f.Qr)(w))if((0,f.Kn)(S)&&S.hasOwnProperty("event")){var E=(0,f.Kn)(S.event)?S.event:{};S.event=x(x({},E),w)}else S.event=x({},w);var I=[];S&&JSON.stringify(S,null,2).split("\n").forEach((function(e){I.push(" ".concat(e))}));var T=j&&[["Run ID",null===j||void 0===j?void 0:j.id],["Variables",(0,h.jsx)(o.Z,{language:"json",small:!0,source:I.join("\n")},"variable_value")]],k=j&&(0,h.jsx)(c.Z,{pb:p.cd,px:p.cd,children:(0,h.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:T.map((function(e,n){var i=(0,t.Z)(e,2),r=i[0],l=i[1];return[(0,h.jsx)(a.ZP,{monospace:!0,muted:!0,children:r},"key_".concat(n)),(0,h.jsx)(a.ZP,{monospace:!0,textOverflow:!0,children:l},"val_".concat(n))]})),uuid:"LogDetail"})}),C=P&&O;return(0,h.jsxs)(h.Fragment,{children:[C&&(0,h.jsx)(c.Z,{py:p.cd,children:(0,h.jsx)(s.Z,{onClickTab:O,selectedTabUUID:null===P||void 0===P?void 0:P.uuid,tabs:b})}),(!C||Z.uuid===(null===P||void 0===P?void 0:P.uuid))&&(0,h.jsx)(u.ZP,x(x({},y),{},{height:n,heightOffset:(i||0)+(C?_:0),pipeline:r})),m.uuid===(null===P||void 0===P?void 0:P.uuid)&&k]})}},36604:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return ce}});var t=i(75582),r=i(77837),l=i(82394),s=i(38860),o=i.n(s),u=i(82684),c=i(12691),a=i.n(c),d=i(69864),p=i(34376),g=i(71180),f=i(39457),h=i(15338),v=i(55485),j=i(85854),x=i(48670),_=i(55072),m=i(75457),Z=i(53943),b=i(44265),P=i(30229),O=i(83784),y=i(44085),S=i(38276),w=i(4190),E=i(75499),I=i(48381),T=i(30160),k=i(12468),C=i(35686),N=i(8955),M=i(77417),D=i(74395),R=i(44425),U=i(72473),L=i(70515),F=i(28795),A=i(97196),V=i(8916),H=i(16488),z=i(3917),K=i(44375),W=i(15610),G=i(86735),X=i(42122),q=i(50178),B=i(72619),J=i(3314),$=i(69419),Q=i(70320),Y=i(28598);function ee(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 ne(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?ee(Object(i),!0).forEach((function(n){(0,l.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ee(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var ie=function(e){var n=e.errors,i=e.fetchPipelineSchedule,r=e.pipeline,l=e.pipelineSchedule,s=e.setErrors,o=e.variables,c=(0,M.Z)().project,ee=(0,p.useRouter)(),ie=(0,q.Ct)(),te=(0,Q.q)(),re=(r||{}).uuid,le=l||{},se=le.description,oe=le.id,ue=le.event_matchers,ce=le.name,ae=le.next_pipeline_run_date,de=le.schedule_interval,pe=le.schedule_type,ge=le.settings,fe=le.sla,he=le.start_time,ve=le.status,je=le.tags,xe=le.variables,_e=void 0===xe?{}:xe,me=(0,u.useMemo)((function(){return(0,H._U)(de)}),[de]),Ze=(0,$.iV)(),be={_limit:30,_offset:30*(null!==Ze&&void 0!==Ze&&Ze.page?Ze.page:0)};null!==Ze&&void 0!==Ze&&Ze.status&&(be.status=Ze.status),null!==l&&void 0!==l&&l.global_data_product_uuid&&(be.global_data_product_uuid=null===l||void 0===l?void 0:l.global_data_product_uuid);var Pe=C.ZP.pipeline_runs.pipeline_schedules.list(oe,be,{refreshInterval:3e3,revalidateOnFocus:!0}),Oe=Pe.data,ye=Pe.mutate,Se=(0,u.useMemo)((function(){return(null===Oe||void 0===Oe?void 0:Oe.pipeline_runs)||[]}),[Oe]),we=(0,u.useMemo)((function(){var e;return(null===Oe||void 0===Oe||null===(e=Oe.metadata)||void 0===e?void 0:e.count)||[]}),[Oe]),Ee=(0,u.useState)(null),Ie=Ee[0],Te=Ee[1],ke=(0,u.useMemo)((function(){var e=null!==Ze&&void 0!==Ze&&Ze.page?Ze.page:0;return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(Z.Z,{fetchPipelineRuns:ye,onClickRow:function(e){return Te((function(n){var i=Se[e];return(null===n||void 0===n?void 0:n.id)!==i.id?i:null}))},pipelineRuns:Se,selectedRun:Ie,setErrors:s,setSelectedRun:Te}),(0,Y.jsx)(S.Z,{p:2,children:(0,Y.jsx)(_.ZP,{maxPages:9,onUpdate:function(e){var n=Number(e),i=ne(ne({},Ze),{},{page:n>=0?n:0});ee.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(re,"/triggers/").concat(oe,"?").concat((0,$.uM)(i)))},page:Number(e),totalPages:Math.ceil(we/30)})})]})}),[ye,Se,oe,re,Ze,ee,Ie,s,we]),Ce=(0,u.useState)(N.G7[0]),Ne=Ce[0],Me=Ce[1],De=(0,d.Db)((function(e){return C.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:(0,X.gR)(e,["id"])})}),{onSuccess:function(e){return(0,B.wD)(e,{callback:function(){i()},onErrorCallback:function(e,n){return s({errors:n,response:e})}})}}),Re=(0,t.Z)(De,2),Ue=Re[0],Le=Re[1].isLoading,Fe=C.ZP.pipeline_triggers.pipelines.list(re),Ae=Fe.data,Ve=Fe.mutate,He=(0,u.useMemo)((function(){return(0,G.HK)((null===Ae||void 0===Ae?void 0:Ae.pipeline_triggers)||[],(function(e){return e.name}))}),[Ae]),ze=(0,u.useMemo)((function(){return!(null===He||void 0===He||!He[null===l||void 0===l?void 0:l.name])}),[l,He]),Ke=(0,d.Db)(C.ZP.pipeline_triggers.pipelines.useCreate(re),{onSuccess:function(e){return(0,B.wD)(e,{callback:function(){Ve()},onErrorCallback:function(e,n){return s({errors:n,response:e})}})}}),We=(0,t.Z)(Ke,2),Ge=We[0],Xe=We[1].isLoading,qe=(0,u.useMemo)((function(){return P.fq.ACTIVE===ve}),[ve]),Be=(0,u.useMemo)((function(){var e,n,i={default:!0,size:1.5*L.iI},t=[[(0,Y.jsxs)(v.ZP,{alignItems:"center",children:[(0,Y.jsx)(U.VW,ne({},i)),(0,Y.jsx)(S.Z,{mr:1}),(0,Y.jsx)(T.ZP,{default:!0,children:"Trigger type"})]},"trigger_type_label"),(0,Y.jsx)(T.ZP,{monospace:!0,children:null===(e=P.Z4[pe])||void 0===e?void 0:e.call(P.Z4)},"trigger_type")],[(0,Y.jsxs)(v.ZP,{alignItems:"center",children:[(0,Y.jsx)(U.rs,ne({},i)),(0,Y.jsx)(S.Z,{mr:1}),(0,Y.jsx)(T.ZP,{default:!0,children:"Status"})]},"trigger_status_label"),(0,Y.jsx)(T.ZP,{danger:!qe,monospace:!0,success:qe,children:ve},"trigger_status")]];if(se&&t.push([(0,Y.jsxs)(v.ZP,{alignItems:"center",children:[(0,Y.jsx)(U.KJ,ne({},i)),(0,Y.jsx)(S.Z,{mr:1}),(0,Y.jsx)(T.ZP,{default:!0,children:"Description"})]},"trigger_description_label"),(0,Y.jsx)(T.ZP,{children:se},"trigger_description")]),fe){var r=(0,H.gU)(fe),s=r.time,o=r.unit,u=1===s?o:"".concat(o,"s");t.push([(0,Y.jsxs)(v.ZP,{alignItems:"center",children:[(0,Y.jsx)(U.kI,ne({},i)),(0,Y.jsx)(S.Z,{mr:1}),(0,Y.jsx)(T.ZP,{default:!0,children:"SLA"})]},"trigger_sla_label"),(0,Y.jsx)(T.ZP,{monospace:!0,children:"".concat(s," ").concat(u)},"trigger_sla")])}if(de&&t.push([(0,Y.jsxs)(v.ZP,{alignItems:"center",children:[(0,Y.jsx)(U.Pf,ne({},i)),(0,Y.jsx)(S.Z,{mr:1}),(0,Y.jsx)(T.ZP,{default:!0,children:"Frequency"})]},"trigger_frequency_label"),(0,Y.jsx)(T.ZP,{monospace:!0,children:te&&me?(0,H.lO)(de):de.replace("@","")},"trigger_frequency")],[(0,Y.jsxs)(v.ZP,{alignItems:"center",children:[(0,Y.jsx)(U.aw,ne({},i)),(0,Y.jsx)(S.Z,{mr:1}),(0,Y.jsx)(T.ZP,{default:!0,children:"Next run date"})]},"trigger_next_run_date_label"),(0,Y.jsx)(T.ZP,{monospace:!0,children:ae?te?(0,z.XG)(ae,te):(0,z.d$)(ae,{includeSeconds:!0,utcFormat:!0}):"N/A"},"trigger_next_run_date")]),he&&t.push([(0,Y.jsxs)(v.ZP,{alignItems:"center",children:[(0,Y.jsx)(U.aw,ne({},i)),(0,Y.jsx)(S.Z,{mr:1}),(0,Y.jsx)(T.ZP,{default:!0,children:"Start date"})]},"trigger_start_date_label"),(0,Y.jsx)(T.ZP,{monospace:!0,children:te?(0,z.XG)(he,te):he},"trigger_start_date")]),P.Xm.API===pe){var c=(0,H.M8)(l);t.push([(0,Y.jsxs)(v.ZP,{alignItems:"center",children:[(0,Y.jsx)(U.Ae,ne({},i)),(0,Y.jsx)(S.Z,{mr:1}),(0,Y.jsx)(T.ZP,{default:!0,children:"API endpoint"})]},"trigger_api_endpoint_label"),(0,Y.jsx)(f.Z,{copiedText:c,children:(0,Y.jsx)(T.ZP,{monospace:!0,small:!0,children:c})},"trigger_api_endpoint")])}if(null!==ge&&void 0!==ge&&ge.timeout){var a=(0,H.gU)(null===ge||void 0===ge?void 0:ge.timeout),d=a.time,p=a.unit,g=1===d?p:"".concat(p,"s");t.push([(0,Y.jsxs)(v.ZP,{alignItems:"center",children:[(0,Y.jsx)(k.Z,{default:!0,label:"Timeout set for runs of this trigger",size:1.5*L.iI,widthFitContent:!0}),(0,Y.jsx)(S.Z,{mr:1}),(0,Y.jsx)(T.ZP,{default:!0,children:"Timeout"})]},"trigger_timeout"),(0,Y.jsx)(T.ZP,{monospace:!0,children:"".concat(d," ").concat(g)},"trigger_timeout_label")])}null!==ge&&void 0!==ge&&ge.skip_if_previous_running&&t.push([(0,Y.jsxs)(v.ZP,{alignItems:"center",children:[(0,Y.jsx)(k.Z,{default:!0,label:"Skip current run if any previous runs are still in progress",size:1.5*L.iI,widthFitContent:!0}),(0,Y.jsx)(S.Z,{mr:1}),(0,Y.jsx)(T.ZP,{default:!0,children:"Skip if running"})]},"trigger_skip_if_running"),(0,Y.jsx)(T.ZP,{monospace:!0,children:null===(n=ge.skip_if_previous_running)||void 0===n?void 0:n.toString()},"trigger_skip_if_running_label")]);return null!==ge&&void 0!==ge&&ge.allow_blocks_to_fail&&t.push([(0,Y.jsxs)(v.ZP,{alignItems:"center",children:[(0,Y.jsx)(k.Z,{default:!0,label:"Trigger runs will continue running blocks if other unrelated blocks fail",size:1.5*L.iI,widthFitContent:!0}),(0,Y.jsx)(S.Z,{mr:1}),(0,Y.jsx)(T.ZP,{default:!0,children:"Allow blocks to fail"})]},"trigger_allow_blocks_to_fail"),(0,Y.jsx)(T.ZP,{monospace:!0,children:ge.allow_blocks_to_fail.toString()},"trigger_allow_blocks_to_fail_label")]),(0,Y.jsx)(E.Z,{columnFlex:[null,1],rows:t})}),[se,te,qe,me,ae,l,de,pe,ge,fe,he,ve]),Je=(0,u.useMemo)((function(){return _e||{}}),[_e]),$e=(0,u.useMemo)((function(){var e,n=[];return(0,X.Qr)(Je)?n=(0,V.wx)(o,(function(e){return e.uuid===O.C})):Object.entries(Je).forEach((function(e){var i=(0,t.Z)(e,2),r=i[0],l=i[1];b.sZ!==r&&n.push({uuid:r,value:(0,V.FS)(l)})})),"undefined"!==typeof(n=(0,V.JZ)(n||[],pe))&&null!==(e=n)&&void 0!==e&&e.length?(0,Y.jsx)(E.Z,{columnFlex:[null,1],rows:n.map((function(e){var n=e.uuid,i=e.value;return[(0,Y.jsx)(T.ZP,{default:!0,monospace:!0,children:n},"settings_variable_label_".concat(n)),(0,Y.jsx)(T.ZP,{monospace:!0,children:i},"settings_variable_".concat(n))]}))}):null}),[pe,Je,o]),Qe=(0,u.useMemo)((function(){var e,n,i=[],t=null===Je||void 0===Je||null===(e=Je[b.sZ])||void 0===e?void 0:e.blocks;return null===r||void 0===r||null===(n=r.blocks)||void 0===n||n.forEach((function(e){var n=e.type,r=e.uuid;if(R.tf.DBT===n){var l,s=(null===t||void 0===t||null===(l=t[r])||void 0===l?void 0:l.configuration)||{},o=s.flags,u=s.prefix,c=s.suffix,a=(0,K.IU)(e).name;(o||u||c)&&i.push({flags:o,prefix:u,suffix:c,uuid:a})}})),"undefined"!==typeof i&&null!==i&&void 0!==i&&i.length?(0,Y.jsx)(E.Z,{columnFlex:[1,null],rows:i.map((function(e){var n=e.flags,i=e.prefix,t=e.suffix,r=e.uuid;return[(0,Y.jsxs)(T.ZP,{monospace:!0,small:!0,children:[i&&(0,Y.jsx)(T.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:i}),r,t&&(0,Y.jsx)(T.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:t})]},"settings_variable_label_".concat(r)),(0,Y.jsx)(T.ZP,{monospace:!0,muted:!0,small:!0,children:n&&n.join(", ")},"settings_variable_".concat(r))]}))}):null}),[r,Je]),Ye=(0,u.useMemo)((function(){return(0,Y.jsx)(E.Z,{columnFlex:[null,1],columns:[{uuid:"Provider"},{uuid:"Event"}],rows:null===ue||void 0===ue?void 0:ue.map((function(e,n){var i=e.event_type,t=e.name;return[(0,Y.jsx)(T.ZP,{default:!0,monospace:!0,children:A._P[i].label()},"".concat(i,"_").concat(n,"_label")),(0,Y.jsx)(T.ZP,{monospace:!0,children:t},"".concat(i,"_").concat(n,"_name"))]}))})}),[ue]),en=(0,u.useMemo)((function(){var e,n,i,t,l,s,o;return"undefined"===typeof(null===r||void 0===r||null===(e=r.settings)||void 0===e||null===(n=e.triggers)||void 0===n?void 0:n.save_in_code_automatically)?null===c||void 0===c||null===(i=c.pipelines)||void 0===i||null===(t=i.settings)||void 0===t||null===(l=t.triggers)||void 0===l?void 0:l.save_in_code_automatically:null===r||void 0===r||null===(s=r.settings)||void 0===s||null===(o=s.triggers)||void 0===o?void 0:o.save_in_code_automatically}),[r,c]);return(0,Y.jsxs)(m.Z,{afterHidden:!Ie,before:(0,Y.jsxs)(D.M,{children:[(0,Y.jsxs)(S.Z,{mb:L.HN,pt:L.cd,px:L.cd,children:[(0,Y.jsxs)(S.Z,{mb:L.cd,children:[P.Xm.TIME===pe&&(0,Y.jsx)(U.kO,{size:5*L.iI}),P.Xm.EVENT===pe&&(0,Y.jsx)(U.Jp,{size:5*L.iI}),P.Xm.API===pe&&(0,Y.jsx)(U.Bf,{size:5*L.iI}),!pe&&(0,Y.jsx)(U.VW,{size:5*L.iI})]}),(0,Y.jsx)(j.Z,{children:ce})]}),(0,Y.jsx)(S.Z,{px:L.cd,children:(0,Y.jsx)(j.Z,{level:5,children:"Settings"})}),(0,Y.jsx)(h.Z,{light:!0,mt:1,short:!0}),Be,(null===ue||void 0===ue?void 0:ue.length)>=1&&(0,Y.jsxs)(S.Z,{my:L.HN,children:[(0,Y.jsx)(S.Z,{px:L.cd,children:(0,Y.jsx)(j.Z,{level:5,children:"Events"})}),(0,Y.jsx)(h.Z,{light:!0,mt:1,short:!0}),Ye]}),$e&&(0,Y.jsxs)(S.Z,{my:L.HN,children:[(0,Y.jsx)(S.Z,{px:L.cd,children:(0,Y.jsx)(j.Z,{level:5,children:"Runtime variables"})}),(0,Y.jsx)(h.Z,{light:!0,mt:1,short:!0}),$e]}),Qe&&(0,Y.jsxs)(S.Z,{my:L.HN,children:[(0,Y.jsx)(S.Z,{px:L.cd,children:(0,Y.jsx)(j.Z,{level:5,children:"dbt runtime settings"})}),(0,Y.jsx)(h.Z,{light:!0,mt:1,short:!0}),Qe]}),(null===je||void 0===je?void 0:je.length)>=1&&(0,Y.jsxs)(S.Z,{my:L.HN,children:[(0,Y.jsx)(S.Z,{px:L.cd,children:(0,Y.jsx)(j.Z,{level:5,children:"Tags"})}),(0,Y.jsx)(h.Z,{light:!0,mt:1,short:!0}),(0,Y.jsx)(S.Z,{mt:L.cd,px:L.cd,children:(0,Y.jsx)(I.Z,{tags:null===je||void 0===je?void 0:je.map((function(e){return{uuid:e}}))})})]}),"\\",(0,Y.jsx)(S.Z,{my:L.HN,children:(0,Y.jsxs)(S.Z,{px:L.cd,children:[(0,Y.jsxs)(j.Z,{level:5,children:[ze&&"Trigger exists in code",!ze&&"Store trigger in code"]}),(0,Y.jsxs)(S.Z,{mt:1,children:[en&&(0,Y.jsxs)(T.ZP,{default:!0,children:["This trigger will automatically be persisted in code. To change this behavior, update the ",(0,Y.jsx)(a(),{as:"/pipelines/".concat(re,"/settings"),href:"/pipelines/[pipeline]/settings",passHref:!0,children:(0,Y.jsx)(x.Z,{openNewWindow:!0,children:"pipeline\u2019s settings"})})," or ",(0,Y.jsx)(a(),{as:"/settings/workspace/preferences",href:"/settings/workspace/preferences",passHref:!0,children:(0,Y.jsx)(x.Z,{openNewWindow:!0,children:"project settings"})}),"."]}),!en&&(0,Y.jsxs)(T.ZP,{default:!0,children:["Save or update the trigger and its settings in the pipeline\u2019s metadata and version control the trigger using Git. For more information, please read the ",(0,Y.jsx)(x.Z,{href:"https://docs.mage.ai/guides/triggers/configure-triggers-in-code",openNewWindow:!0,children:"documentation"}),"."]})]}),!en&&(0,Y.jsxs)(S.Z,{mt:L.cd,children:[!Ae&&(0,Y.jsx)(w.Z,{inverted:!0}),Ae&&(0,Y.jsxs)(g.ZP,{disabled:!(null!==l&&void 0!==l&&l.id),loading:Xe,onClick:function(){Ge({pipeline_trigger:{pipeline_schedule_id:null===l||void 0===l?void 0:l.id}})},secondary:!0,children:[ze&&"Update trigger in code",!ze&&"Save trigger in code"]})]})]})})]}),beforeWidth:D.W,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(re,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return ce},linkProps:{as:"/pipelines/".concat(re,"/triggers/").concat(oe),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],buildSidekick:function(e){return(0,N.ZP)(ne(ne({},e),{},{selectedRun:Ie,selectedTab:Ne,setSelectedTab:Me}))},errors:n,pageName:F.M.TRIGGERS,pipeline:r,setErrors:s,subheader:(0,Y.jsxs)(v.ZP,{alignItems:"center",children:[(0,Y.jsx)(g.ZP,{beforeIcon:qe?(0,Y.jsx)(U.dz,{size:2*L.iI}):(0,Y.jsx)(U.Py,{inverted:!ie,size:2*L.iI}),danger:qe&&!ie,loading:Le,onClick:function(e){(0,J.j)(e),Ue({id:oe,status:qe?P.fq.INACTIVE:P.fq.ACTIVE})},outline:!0,success:!qe&&!ie,children:qe?"Pause trigger":"Start trigger"}),(0,Y.jsx)(S.Z,{mr:L.cd}),!ie&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(g.ZP,{linkProps:{as:"/pipelines/".concat(re,"/triggers/").concat(oe,"/edit"),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Edit trigger"}),(0,Y.jsx)(S.Z,{mr:L.cd})]}),(0,Y.jsxs)(y.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?ee.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(re,"/triggers/").concat(oe)):(0,W.u7)({page:0,status:e.target.value})},paddingRight:4*L.iI,placeholder:"Select run status",value:(null===Ze||void 0===Ze?void 0:Ze.status)||"all",children:[(0,Y.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),b.IK.map((function(e){return(0,Y.jsx)("option",{value:e,children:b.Do[e]},e)}))]})]}),title:function(){return ce},uuid:"triggers/detail",children:[(0,Y.jsx)(S.Z,{mt:L.cd,px:L.cd,children:(0,Y.jsx)(j.Z,{level:5,children:"Runs for this trigger"})}),(0,Y.jsx)(h.Z,{light:!0,mt:L.cd,short:!0}),ke]})},te=i(12717),re=i(93808),le=i(92709);function se(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 oe(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?se(Object(i),!0).forEach((function(n){(0,l.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):se(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}function ue(e){var n=e.pipelineScheduleId,i=e.pipelineUUID,t=e.subpath,r=le.b7===t,l=(0,u.useState)(null),s=l[0],o=l[1],c=C.ZP.variables.pipelines.list(i,{},{revalidateOnFocus:!1}).data,a=null===c||void 0===c?void 0:c.variables,d={};r&&(d._format="with_runtime_average");var p=C.ZP.pipeline_schedules.detail("undefined"!==typeof n&&n,d),g=p.data,f=p.mutate,h=null===g||void 0===g?void 0:g.pipeline_schedule,v=C.ZP.pipelines.detail(i,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,j=oe(oe({},null===v||void 0===v?void 0:v.pipeline),{},{uuid:i});return r?(0,Y.jsx)(te.Z,{errors:s,fetchPipelineSchedule:f,pipeline:j,pipelineSchedule:h,setErrors:o,variables:a}):(0,Y.jsx)(ie,{errors:s,fetchPipelineSchedule:f,pipeline:j,pipelineSchedule:h,setErrors:o,variables:a})}ue.getInitialProps=function(){var e=(0,r.Z)(o().mark((function e(n){var i,r,l,s,u,c;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.query,r=i.pipeline,l=i.slug,!Array.isArray(l)){e.next=4;break}return s=(0,t.Z)(l,2),u=s[0],c=s[1],e.abrupt("return",{pipelineScheduleId:u,pipelineUUID:r,subpath:c});case 4:return e.abrupt("return",{pipelineUUID:r});case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var ce=(0,re.Z)(ue)},95488:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/triggers/[...slug]",function(){return i(36604)}])}},function(e){e.O(0,[2678,1154,844,5820,1124,341,9161,4495,9302,4267,600,8487,8264,7858,5499,5457,4366,722,1769,3943,6333,9774,2888,179],(function(){return n=95488,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|