mage-ai 0.9.45__py3-none-any.whl → 0.9.47__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.
- mage_ai/api/constants.py +2 -0
- mage_ai/api/operations/base.py +230 -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/GlobalHookPolicy.py +126 -0
- mage_ai/api/policies/IntegrationSourcePolicy.py +62 -0
- mage_ai/api/policies/OauthPolicy.py +56 -4
- mage_ai/api/policies/ProjectPolicy.py +1 -0
- 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/IntegrationSourcePresenter.py +9 -2
- mage_ai/api/presenters/PipelinePresenter.py +3 -0
- mage_ai/api/presenters/PipelineRunPresenter.py +8 -3
- mage_ai/api/presenters/PipelineSchedulePresenter.py +22 -1
- 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/BlockResource.py +5 -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/DataProviderResource.py +2 -0
- mage_ai/api/resources/DownloadResource.py +56 -0
- mage_ai/api/resources/ExecutionStateResource.py +1 -1
- mage_ai/api/resources/GlobalHookResource.py +192 -0
- mage_ai/api/resources/IntegrationSourceResource.py +149 -2
- mage_ai/api/resources/KernelResource.py +10 -0
- mage_ai/api/resources/OauthResource.py +28 -33
- 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 +0 -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/mixins/spark.py +25 -4
- mage_ai/authentication/oauth2.py +1 -3
- mage_ai/authentication/permissions/constants.py +4 -0
- mage_ai/authentication/providers/active_directory.py +136 -0
- mage_ai/authentication/providers/constants.py +3 -0
- mage_ai/authentication/providers/ghe.py +24 -25
- mage_ai/authentication/providers/google.py +25 -26
- mage_ai/authentication/providers/oauth.py +2 -2
- mage_ai/authentication/providers/okta.py +28 -29
- mage_ai/authentication/providers/sso.py +2 -2
- 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 +1 -0
- mage_ai/data_integrations/sources/constants.py +5 -0
- mage_ai/data_integrations/utils/scheduler.py +57 -2
- mage_ai/data_preparation/executors/block_executor.py +9 -1
- mage_ai/data_preparation/executors/pipeline_executor.py +9 -0
- mage_ai/data_preparation/models/block/__init__.py +82 -17
- mage_ai/data_preparation/models/block/data_integration/constants.py +3 -0
- mage_ai/data_preparation/models/block/data_integration/data.py +1 -1
- mage_ai/data_preparation/models/block/data_integration/utils.py +196 -37
- mage_ai/data_preparation/models/block/spark/mixins.py +82 -34
- mage_ai/data_preparation/models/block/sql/utils/shared.py +18 -1
- mage_ai/data_preparation/models/block/utils.py +28 -13
- 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 +93 -0
- mage_ai/data_preparation/models/global_hooks/models.py +992 -0
- mage_ai/data_preparation/models/global_hooks/predicates.py +316 -0
- mage_ai/data_preparation/models/global_hooks/utils.py +21 -0
- mage_ai/data_preparation/models/pipeline.py +84 -6
- mage_ai/data_preparation/models/pipelines/integration_pipeline.py +0 -1
- 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/preferences.py +29 -18
- mage_ai/data_preparation/repo_manager.py +35 -3
- mage_ai/data_preparation/sync/__init__.py +2 -0
- mage_ai/data_preparation/templates/constants.py +14 -0
- mage_ai/data_preparation/templates/data_exporters/chroma.py +24 -0
- mage_ai/data_preparation/templates/data_exporters/streaming/rabbitmq.yaml +7 -0
- mage_ai/data_preparation/templates/data_loaders/chroma.py +27 -0
- mage_ai/data_preparation/templates/data_loaders/streaming/activemq.yaml +6 -0
- mage_ai/data_preparation/templates/data_loaders/streaming/nats.yaml +20 -0
- mage_ai/data_preparation/templates/repo/io_config.yaml +3 -0
- mage_ai/io/base.py +1 -0
- mage_ai/io/chroma.py +153 -0
- mage_ai/io/config.py +8 -0
- mage_ai/orchestration/db/models/schedules.py +100 -36
- mage_ai/orchestration/pipeline_scheduler.py +58 -19
- 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/server/active_kernel.py +37 -4
- mage_ai/server/api/downloads.py +76 -1
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/_next/static/N3FS4bHv0jpYeeg672uYK/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1749-bf512b4dabbab7fa.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{7519-8c29bbb92e03cc77.js → 1845-5ce774d5ab81ed57.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1952-57858e7445d24413.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/2714-1e79e9f2e998b544.js → frontend_dist/_next/static/chunks/2714-68fef54789d7eaeb.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2717-92cdffd87b6f6e05.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3419-715ca383fa15a5ef.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3437-b4d6a037cf5781f8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3943-c9fb980f03df6450.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/4267-cb102e060a43d9bd.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3932-0ceca9599d6e6d00.js → frontend_dist/_next/static/chunks/4366-3e52497942acbafe.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{4783-1a21d9be47574bba.js → 4783-422429203610c318.js} +1 -1
- 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-e26a0768db1cfdba.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5820-28adeabb5cda2b96.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{5896-14e5a23b1c6a0769.js → 5896-7b8e36634d7d94eb.js} +1 -1
- 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-648f9a732e100b2f.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6798-b904395b0c18647b.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/5397-b5f2e477acc6bd6b.js → frontend_dist/_next/static/chunks/6965-c613d1834c8ed92d.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/7022-18fde36eb46e1d65.js → frontend_dist/_next/static/chunks/7022-e76cae3ba5ee5312.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/722-900f786d24f91b2e.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/7361-694e1e4fb9c97d68.js → frontend_dist/_next/static/chunks/7361-6c5c9063b9f91700.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/7858-c83d25349d0e980f.js → frontend_dist/_next/static/chunks/7858-d9df72e95e438284.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{8146-92e7ccfed169ee9c.js → 8146-27f0e31f309897a5.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/845-9a73c65fe3fdc328.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8487-8e1c09546dff4dbf.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/90-a7308bae028d7001.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9264-cc44b07f248707b0.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9618-4eb49cdbd1ba11d7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{976-18c98af60b76f1a7.js → 976-0a8c2c4d7acd957b.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-78c4a077a2f279c2.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-b37d221eb5ddc248.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]-7adc543fc490367a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-51d366993f6dd449.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-fe6e73463a20d67c.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-d8a38b5d1f50e798.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/overview-a4647a274cf4dffa.js → frontend_dist/_next/static/chunks/pages/overview-f0c40645f385f23f.js} +1 -1
- 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]-9adc2974aada27ba.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-51b1311dff2a974e.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-2333e524d34b474a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{logs-a52d2d3e0c2978f4.js → 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-6d1afeb4a84f50f7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-1ff9bb8e22ca1e75.js +1 -0
- 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-11363aa58d51f4e1.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]-779c3ef0676a12ac.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-bbea9a088657404a.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-3737f2b0afc2ede3.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-3c8f062913c66f3e.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-c1f4ed17d501ccca.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/_next/static/chunks/pages/{templates-3cff90df13a1a755.js → 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-8bdd858240d5dbf6.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-dd4fb405695f74bf.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{webpack-8af2b89c5a3779fc.js → webpack-fea697dd168c6d0c.js} +1 -1
- 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 +24 -25
- 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/aoO6jYZLVlUGCCdY-wmy8/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1749-bf512b4dabbab7fa.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{7519-8c29bbb92e03cc77.js → 1845-5ce774d5ab81ed57.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-57858e7445d24413.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/2714-1e79e9f2e998b544.js → frontend_dist_base_path_template/_next/static/chunks/2714-68fef54789d7eaeb.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-92cdffd87b6f6e05.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-715ca383fa15a5ef.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3437-b4d6a037cf5781f8.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-c9fb980f03df6450.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4267-cb102e060a43d9bd.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/3932-0ceca9599d6e6d00.js → frontend_dist_base_path_template/_next/static/chunks/4366-3e52497942acbafe.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{4783-1a21d9be47574bba.js → 4783-422429203610c318.js} +1 -1
- 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-e26a0768db1cfdba.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/{5896-14e5a23b1c6a0769.js → 5896-7b8e36634d7d94eb.js} +1 -1
- 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-648f9a732e100b2f.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6798-b904395b0c18647b.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/5397-b5f2e477acc6bd6b.js → frontend_dist_base_path_template/_next/static/chunks/6965-c613d1834c8ed92d.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/7022-18fde36eb46e1d65.js → frontend_dist_base_path_template/_next/static/chunks/7022-e76cae3ba5ee5312.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/722-900f786d24f91b2e.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/7361-694e1e4fb9c97d68.js → frontend_dist_base_path_template/_next/static/chunks/7361-6c5c9063b9f91700.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/7858-c83d25349d0e980f.js → frontend_dist_base_path_template/_next/static/chunks/7858-d9df72e95e438284.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{8146-92e7ccfed169ee9c.js → 8146-27f0e31f309897a5.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/845-9a73c65fe3fdc328.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8487-8e1c09546dff4dbf.js +1 -0
- 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-cc44b07f248707b0.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9618-4eb49cdbd1ba11d7.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{976-18c98af60b76f1a7.js → 976-0a8c2c4d7acd957b.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-78c4a077a2f279c2.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-b37d221eb5ddc248.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]-7adc543fc490367a.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-51d366993f6dd449.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-fe6e73463a20d67c.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-d8a38b5d1f50e798.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/overview-a4647a274cf4dffa.js → frontend_dist_base_path_template/_next/static/chunks/pages/overview-f0c40645f385f23f.js} +1 -1
- 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]-9adc2974aada27ba.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-51b1311dff2a974e.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-2333e524d34b474a.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{logs-a52d2d3e0c2978f4.js → 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-6d1afeb4a84f50f7.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-1ff9bb8e22ca1e75.js +1 -0
- 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-11363aa58d51f4e1.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]-779c3ef0676a12ac.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-bbea9a088657404a.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-3737f2b0afc2ede3.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-3c8f062913c66f3e.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-c1f4ed17d501ccca.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_base_path_template/_next/static/chunks/pages/{templates-3cff90df13a1a755.js → 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-8bdd858240d5dbf6.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-dd4fb405695f74bf.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{webpack-074f3eb2281fba79.js → webpack-d30cb09c85b4c4f0.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/block-layout.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/compute.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/files.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/global-data-products.html +5 -5
- 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 +5 -5
- mage_ai/server/frontend_dist_base_path_template/manage/settings.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/manage/users.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/manage.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/oauth.html +4 -4
- mage_ai/server/frontend_dist_base_path_template/overview.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +5 -5
- 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 +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/sign-in.html +28 -29
- mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/templates.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/terminal.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/test.html +15 -15
- mage_ai/server/frontend_dist_base_path_template/triggers.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/version-control.html +5 -5
- mage_ai/server/server.py +44 -12
- mage_ai/server/utils/output_display.py +6 -0
- mage_ai/server/websocket_server.py +14 -0
- 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 +4 -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 +8 -1
- mage_ai/settings/repo.py +3 -0
- mage_ai/settings/secret_generation.py +7 -0
- mage_ai/settings/sso.py +8 -0
- mage_ai/shared/files.py +47 -0
- mage_ai/shared/hash.py +16 -0
- mage_ai/shared/models.py +254 -0
- mage_ai/streaming/constants.py +3 -0
- mage_ai/streaming/sinks/postgres.py +2 -0
- mage_ai/streaming/sinks/rabbitmq.py +76 -0
- mage_ai/streaming/sinks/sink_factory.py +4 -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 +622 -0
- mage_ai/tests/api/operations/test_syncs.py +0 -1
- mage_ai/tests/api/operations/test_users.py +13 -2
- mage_ai/tests/api/policies/test_oauth_policy.py +38 -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 +600 -0
- mage_ai/tests/data_preparation/models/global_hooks/test_hook.py +804 -0
- mage_ai/tests/data_preparation/models/global_hooks/test_predicates.py +803 -0
- mage_ai/tests/data_preparation/models/global_hooks/test_utils.py +38 -0
- mage_ai/tests/data_preparation/models/test_block.py +26 -0
- mage_ai/tests/data_preparation/models/test_pipeline.py +15 -0
- mage_ai/tests/data_preparation/test_repo_manager.py +11 -0
- mage_ai/tests/factory.py +105 -5
- mage_ai/tests/orchestration/queue/test_process_queue.py +15 -2
- mage_ai/tests/orchestration/test_pipeline_scheduler.py +82 -1
- mage_ai/tests/services/k8s/test_job_manager.py +38 -1
- mage_ai/tests/shared/mixins.py +328 -0
- mage_ai/tests/shared/test_hash.py +17 -1
- mage_ai/tests/streaming/sinks/test_rabbitmq.py +36 -0
- 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.45.dist-info → mage_ai-0.9.47.dist-info}/METADATA +14 -4
- {mage_ai-0.9.45.dist-info → mage_ai-0.9.47.dist-info}/RECORD +467 -386
- {mage_ai-0.9.45.dist-info → mage_ai-0.9.47.dist-info}/WHEEL +1 -1
- mage_ai/authentication/oauth/active_directory.py +0 -17
- 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/3943-9e1105393a3be0de.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-95ad799d13326dce.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/722-2a171fe616310f60.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/8487-032ef9b17d20aad9.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-1203afde83fa2d6e.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/pipelines/[pipeline]/backfills/[...slug]-b4c0a36c69c346a4.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-9f233917aa72ad82.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-5af599da035252a7.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-8597f8e13d80ee48.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-5e0d047a6c9cb1fc.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-b0a508aa52914dad.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-95394769a783c6c7.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-5a306deca6717862.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-0dbc5b11019e78a0.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/triggers-ffaab4c013e62ba1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-114000e84313994f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/icIDjCezcfhiKL87kgeSY/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/_O1kJQLGtZmoBMyWpQrea/_buildManifest.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/3943-9e1105393a3be0de.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-95ad799d13326dce.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/722-2a171fe616310f60.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/8487-032ef9b17d20aad9.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-1203afde83fa2d6e.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/pipelines/[pipeline]/backfills/[...slug]-b4c0a36c69c346a4.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-9f233917aa72ad82.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-5af599da035252a7.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-8597f8e13d80ee48.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-5e0d047a6c9cb1fc.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-b0a508aa52914dad.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-95394769a783c6c7.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-5a306deca6717862.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-0dbc5b11019e78a0.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/triggers-ffaab4c013e62ba1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-114000e84313994f.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{icIDjCezcfhiKL87kgeSY → N3FS4bHv0jpYeeg672uYK}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{_O1kJQLGtZmoBMyWpQrea → aoO6jYZLVlUGCCdY-wmy8}/_ssgManifest.js +0 -0
- {mage_ai-0.9.45.dist-info → mage_ai-0.9.47.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.45.dist-info → mage_ai-0.9.47.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.45.dist-info → mage_ai-0.9.47.dist-info}/top_level.txt +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5912],{98677:function(n,t,e){"use strict";function r(n,t,e){n=+n,t=+t,e=(o=arguments.length)<2?(t=n,n=0,1):o<3?1:+e;for(var r=-1,o=0|Math.max(0,Math.ceil((t-n)/e)),i=new Array(o);++r<o;)i[r]=n+r*e;return i}e.d(t,{Z:function(){return a}});var o=e(8208),i=e(8162);function c(){var n,t,e=(0,i.Z)().unknown(void 0),u=e.domain,a=e.range,l=0,d=1,f=!1,s=0,p=0,h=.5;function m(){var e=u().length,o=d<l,i=o?d:l,c=o?l:d;n=(c-i)/Math.max(1,e-s+2*p),f&&(n=Math.floor(n)),i+=(c-i-n*(e-s))*h,t=n*(1-s),f&&(i=Math.round(i),t=Math.round(t));var m=r(e).map((function(t){return i+n*t}));return a(o?m.reverse():m)}return delete e.unknown,e.domain=function(n){return arguments.length?(u(n),m()):u()},e.range=function(n){return arguments.length?([l,d]=n,l=+l,d=+d,m()):[l,d]},e.rangeRound=function(n){return[l,d]=n,l=+l,d=+d,f=!0,m()},e.bandwidth=function(){return t},e.step=function(){return n},e.round=function(n){return arguments.length?(f=!!n,m()):f},e.padding=function(n){return arguments.length?(s=Math.min(1,p=+n),m()):s},e.paddingInner=function(n){return arguments.length?(s=Math.min(1,n),m()):s},e.paddingOuter=function(n){return arguments.length?(p=+n,m()):p},e.align=function(n){return arguments.length?(h=Math.max(0,Math.min(1,n)),m()):h},e.copy=function(){return c(u(),[l,d]).round(f).paddingInner(s).paddingOuter(p).align(h)},o.o.apply(m(),arguments)}var u=(0,e(93342).Z)("domain","range","reverse","align","padding","round");function a(n){return u(c(),n)}},62072:function(n,t,e){"use strict";function r(n){return null==n?void 0:n[0]}function o(n){return null==n?void 0:n[1]}e.d(t,{l8:function(){return r},xf:function(){return o}})},53989:function(n,t,e){"use strict";function r(n){if("bandwidth"in n)return n.bandwidth();var t=n.range(),e=n.domain();return Math.abs(t[t.length-1]-t[0])/e.length}e.d(t,{Z:function(){return r}})},59309:function(n,t,e){"use strict";e.d(t,{ZP:function(){return l}});var r=e(12759),o=e(27500),i=e(82610),c=e(34812),u=e(77944),a={expand:r.Z,diverging:o.Z,none:i.Z,silhouette:c.Z,wiggle:u.Z};Object.keys(a);function l(n){return n&&a[n]||a.none}},18246:function(n,t,e){"use strict";e.d(t,{ZP:function(){return l}});var r=e(39586),o=e(25516),i=e(54164),c=e(8512),u=e(2010),a={ascending:r.Z,descending:o.Z,insideout:i.Z,none:c.Z,reverse:u.Z};Object.keys(a);function l(n){return n&&a[n]||a.none}},13946:function(n,t,e){"use strict";e.d(t,{t:function(){return r}});var r=Array.prototype.slice},27500:function(n,t,e){"use strict";function r(n,t){if((u=n.length)>0)for(var e,r,o,i,c,u,a=0,l=n[t[0]].length;a<l;++a)for(i=c=0,e=0;e<u;++e)(o=(r=n[t[e]][a])[1]-r[0])>0?(r[0]=i,r[1]=i+=o):o<0?(r[1]=c,r[0]=c+=o):(r[0]=0,r[1]=o)}e.d(t,{Z:function(){return r}})},12759:function(n,t,e){"use strict";e.d(t,{Z:function(){return o}});var r=e(82610);function o(n,t){if((o=n.length)>0){for(var e,o,i,c=0,u=n[0].length;c<u;++c){for(i=e=0;e<o;++e)i+=n[e][c][1]||0;if(i)for(e=0;e<o;++e)n[e][c][1]/=i}(0,r.Z)(n,t)}}},82610:function(n,t,e){"use strict";function r(n,t){if((o=n.length)>1)for(var e,r,o,i=1,c=n[t[0]],u=c.length;i<o;++i)for(r=c,c=n[t[i]],e=0;e<u;++e)c[e][1]+=c[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]}e.d(t,{Z:function(){return r}})},34812:function(n,t,e){"use strict";e.d(t,{Z:function(){return o}});var r=e(82610);function o(n,t){if((e=n.length)>0){for(var e,o=0,i=n[t[0]],c=i.length;o<c;++o){for(var u=0,a=0;u<e;++u)a+=n[u][o][1]||0;i[o][1]+=i[o][0]=-a/2}(0,r.Z)(n,t)}}},77944:function(n,t,e){"use strict";e.d(t,{Z:function(){return o}});var r=e(82610);function o(n,t){if((i=n.length)>0&&(o=(e=n[t[0]]).length)>0){for(var e,o,i,c=0,u=1;u<o;++u){for(var a=0,l=0,d=0;a<i;++a){for(var f=n[t[a]],s=f[u][1]||0,p=(s-(f[u-1][1]||0))/2,h=0;h<a;++h){var m=n[t[h]];p+=(m[u][1]||0)-(m[u-1][1]||0)}l+=s,d+=p*s}e[u-1][1]+=e[u-1][0]=c,l&&(c-=d/l)}e[u-1][1]+=e[u-1][0]=c,(0,r.Z)(n,t)}}},34128:function(n,t,e){"use strict";e.d(t,{Z:function(){return o}});var r=e(8512);function o(n){var t=n.map(i);return(0,r.Z)(n).sort((function(n,e){return t[n]-t[e]}))}function i(n){for(var t,e=-1,r=0,o=n.length,i=-1/0;++e<o;)(t=+n[e][1])>i&&(i=t,r=e);return r}},39586:function(n,t,e){"use strict";e.d(t,{S:function(){return i},Z:function(){return o}});var r=e(8512);function o(n){var t=n.map(i);return(0,r.Z)(n).sort((function(n,e){return t[n]-t[e]}))}function i(n){for(var t,e=0,r=-1,o=n.length;++r<o;)(t=+n[r][1])&&(e+=t);return e}},25516:function(n,t,e){"use strict";e.d(t,{Z:function(){return o}});var r=e(39586);function o(n){return(0,r.Z)(n).reverse()}},54164:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(34128),o=e(39586);function i(n){var t,e,i=n.length,c=n.map(o.S),u=(0,r.Z)(n),a=0,l=0,d=[],f=[];for(t=0;t<i;++t)e=u[t],a<l?(a+=c[e],d.push(e)):(l+=c[e],f.push(e));return f.reverse().concat(d)}},8512:function(n,t,e){"use strict";function r(n){for(var t=n.length,e=new Array(t);--t>=0;)e[t]=t;return e}e.d(t,{Z:function(){return r}})},2010:function(n,t,e){"use strict";e.d(t,{Z:function(){return o}});var r=e(8512);function o(n){return(0,r.Z)(n).reverse()}},75823:function(n,t,e){"use strict";e.d(t,{Z:function(){return a}});var r=e(13946),o=e(90875),i=e(82610),c=e(8512);function u(n,t){return n[t]}function a(){var n=(0,o.Z)([]),t=c.Z,e=i.Z,a=u;function l(r){var o,i,c=n.apply(this,arguments),u=r.length,l=c.length,d=new Array(l);for(o=0;o<l;++o){for(var f,s=c[o],p=d[o]=new Array(u),h=0;h<u;++h)p[h]=f=[0,+a(r[h],s,h,r)],f.data=r[h];p.key=s}for(o=0,i=t(d);o<l;++o)d[i[o]].index=o;return e(d,i),d}return l.keys=function(t){return arguments.length?(n="function"===typeof t?t:(0,o.Z)(r.t.call(t)),l):n},l.value=function(n){return arguments.length?(a="function"===typeof n?n:(0,o.Z)(+n),l):a},l.order=function(n){return arguments.length?(t=null==n?c.Z:"function"===typeof n?n:(0,o.Z)(r.t.call(n)),l):t},l.offset=function(n){return arguments.length?(e=null==n?i.Z:n,l):e},l}},59739:function(n,t,e){"use strict";var r=e(56669);function o(){}function i(){}i.resetWarningCache=o,n.exports=function(){function n(n,t,e,o,i,c){if(c!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return n}n.isRequired=n;var e={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:t,element:n,elementType:n,instanceOf:t,node:n,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return e.PropTypes=e,e}},47329:function(n,t,e){n.exports=e(59739)()},56669:function(n){"use strict";n.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},55283:function(n,t,e){"use strict";e.d(t,{HC:function(){return R},HS:function(){return Z},IN:function(){return s},Kf:function(){return g},Nk:function(){return y},PB:function(){return v},PY:function(){return b},WC:function(){return p},fk:function(){return S},gE:function(){return A},j1:function(){return N},jv:function(){return x},nz:function(){return O},oh:function(){return f},qn:function(){return m},t1:function(){return T},u2:function(){return h},y9:function(){return _}});var r=e(38626),o=e(44897),i=e(44425),c=e(42631),u=e(8059),a=e(70515),l=e(47041),d=e(91437),f=68,s=1.5*a.iI,p=3*a.iI;function h(n){var t=u.eW;return i.tf.CALLBACK===n?t=u.J:i.tf.CHART===n||i.tf.CONDITIONAL===n?t=u.Hv:i.tf.CUSTOM===n?t=u.AK:i.tf.DATA_EXPORTER===n?t=u.Sr:i.tf.DATA_LOADER===n?t=u.R2:i.tf.DBT===n?t=u.J:i.tf.EXTENSION===n?t=u.FI:i.tf.GLOBAL_DATA_PRODUCT===n?t=u.yr:i.tf.SCRATCHPAD===n?t=u.Hv:i.tf.SENSOR===n?t=u.rK:i.tf.MARKDOWN===n?t=u.RK:i.tf.TRANSFORMER===n&&(t=u.eW),t}function m(n,t){var e,r,c=((null===t||void 0===t||null===(e=t.theme)||void 0===e?void 0:e.borders)||o.Z.borders).light,u=((null===t||void 0===t||null===(r=t.theme)||void 0===r?void 0:r.monotone)||o.Z.monotone).grey500,a=t||{},l=a.blockColor,d=a.isSelected,f=a.theme;return d?c=(f||o.Z).content.active:i.tf.TRANSFORMER===n||l===i.Lq.PURPLE?(c=(f||o.Z).accent.purple,u=(f||o.Z).accent.purpleLight):i.tf.DATA_EXPORTER===n||l===i.Lq.YELLOW?(c=(f||o.Z).accent.yellow,u=(f||o.Z).accent.yellowLight):i.tf.DATA_LOADER===n||l===i.Lq.BLUE?(c=(f||o.Z).accent.blue,u=(f||o.Z).accent.blueLight):i.tf.MARKDOWN===n?(c=(f||o.Z).accent.sky,u=(f||o.Z).accent.skyLight):i.tf.SENSOR===n||l===i.Lq.PINK?(c=(f||o.Z).accent.pink,u=(f||o.Z).accent.pinkLight):i.tf.DBT===n?(c=(f||o.Z).accent.dbt,u=(f||o.Z).accent.dbtLight):i.tf.EXTENSION===n||l===i.Lq.TEAL?(c=((null===f||void 0===f?void 0:f.accent)||o.Z.accent).teal,u=((null===f||void 0===f?void 0:f.accent)||o.Z.accent).tealLight):i.tf.CALLBACK===n?(c=((null===f||void 0===f?void 0:f.accent)||o.Z.accent).rose,u=((null===f||void 0===f?void 0:f.accent)||o.Z.accent).roseLight):i.tf.CONDITIONAL===n||i.tf.SCRATCHPAD===n||l===i.Lq.GREY||i.tf.CUSTOM===n&&!l?(c=(f||o.Z).content.default,u=(f||o.Z).accent.contentDefaultTransparent):i.tf.GLOBAL_DATA_PRODUCT!==n||l||(c=(f||o.Z).monotone.white,u=(f||o.Z).monotone.whiteTransparent),{accent:c,accentLight:u}}var g=(0,r.css)([""," "," "," "," "," "," ",""],(0,d.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(m(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(m(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||o.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||o.Z.borders).danger,";\n ")}),(function(n){return n.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(n){return n.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),y=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),b=r.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],g,c.n_,c.M8,c.mP,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n\n &:hover {\n border-color: ").concat(m(n.blockType,n).accent,";\n }\n ")})),v=r.default.div.withConfig({displayName:"indexstyle__HeaderHorizontalBorder",componentId:"sc-s5rj34-2"})(["",""],(function(n){return"\n border-bottom: 1px solid ".concat((n.theme||o.Z).borders.darkLight,";\n ")})),O=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-3"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;"," "," "," ",""],g,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,1*a.iI,1*a.iI,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.dashboard,";\n ")}),(function(n){return"undefined"!==typeof n.zIndex&&null!==n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")}),(function(n){return!n.noSticky&&"\n // This is to hide the horizontal scrollbar in the block header when sideBySide is enabled,\n // and the screen width is too small.\n position: sticky;\n top: -5px;\n "}),(function(n){return n.noSticky&&"\n ".concat((0,l.y$)(),"\n\n overflow-x: auto;\n overflow-y: visible;\n ")})),Z=r.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-s5rj34-4"})([""," "," ",""],(function(n){return!n.darkBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).darkLight,";\n ")}),(function(n){return n.darkBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).medium,";\n ")}),(function(n){return!n.noBackground&&"\n background-color: ".concat((n.theme||o.Z).background.dashboard,";\n ")})),x=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-5"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;position:relative;"," "," "," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],g,c.M8,c.mP,c.M8,c.mP,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(n){return!n.noPadding&&"\n padding-bottom: ".concat(a.iI,"px;\n padding-top: ").concat(a.iI,"px;\n ")}),(function(n){return n.lightBackground&&"\n background-color: ".concat((n.theme||o.Z).background.content,";\n ")}),(function(n){return!n.hideBorderBottom&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n overflow: hidden;\n ")})),A=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-6"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;&:hover{"," .block-divider-inner{","}}"," "," "," ",""],2*a.iI,(function(n){return n.additionalZIndex>0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||o.Z.text).fileBrowser,";\n ")}),(function(n){return!n.height&&"\n height: ".concat(2*a.iI,"px;\n ")}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return!n.bottom&&"\n bottom: ".concat(.5*a.iI,"px;\n ")}),(function(n){return"undefined"!==typeof n.bottom&&"\n bottom: ".concat(n.bottom,"px;\n ")})),T=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-7"})(["height 1px;width:100%;position:absolute;z-index:-1;"," ",""],(function(n){return!n.top&&"\n top: ".concat(1.5*a.iI,"px;\n ")}),(function(n){return"undefined"!==typeof n.top&&"\n top: ".concat(n.top,"px;\n ")})),_=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-8"})([""," ",""],(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?a.iI:f,"px;\n ")}),(function(n){return!n.noMargin&&"\n margin-bottom: ".concat(1*a.iI,"px;\n padding-bottom: ").concat(1*a.iI,"px;\n ")})),R=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-9"})(["bottom:","px;left:","px;position:absolute;"],1*a.iI,f),S=r.default.div.withConfig({displayName:"indexstyle__ScrollColunnsContainerStyle",componentId:"sc-s5rj34-10"})(["position:relative;",""],(function(n){return"\n z-index: ".concat((null===n||void 0===n?void 0:n.zIndex)||1,";\n ")})),N=r.default.div.attrs((function(n){var t=n.height,e=n.left,r=n.right,o=n.top;return{style:{position:"fixed",height:t,width:n.width,left:e,right:r,top:o,zIndex:(n.zIndex||0)+2}}})).withConfig({displayName:"indexstyle__ScrollColunnStyle",componentId:"sc-s5rj34-11"})([""])},46978:function(n,t,e){"use strict";e.d(t,{Cl:function(){return u},Nk:function(){return a},ZG:function(){return c}});var r=e(38626),o=e(44897),i=e(70515),c=1.5*i.iI,u=1*c+i.iI/2,a=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(n){return"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}))},64657:function(n,t,e){"use strict";e.d(t,{CD:function(){return u},NU:function(){return i},a_:function(){return r},hu:function(){return c}});var r,o=e(44897);!function(n){n.BLOCK_RUNS="block_runs",n.BLOCK_RUNTIME="block_runtime",n.PIPELINE_RUNS="pipeline_runs"}(r||(r={}));var i=[o.Z.accent.warning,o.Z.background.success,o.Z.accent.negative,o.Z.content.active,o.Z.interactive.linkPrimary],c=["cancelled","completed","failed","initial","running"],u=-50},7116:function(n,t,e){"use strict";e.d(t,{Z:function(){return g}});e(82684);var r=e(34376),o=e(85854),i=e(75457),c=e(38276),u=e(30160),a=e(74395),l=e(38626),d=e(44897),f=e(70515),s=l.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1in9sst-0"})(["padding:","px ","px;"," ",""],f.iI,f.tr,(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||d.Z.interactive).checked,";\n ")}),(function(n){return!n.selected&&"\n cursor: pointer;\n "})),p=e(64657),h=e(28795),m=e(28598);var g=function(n){var t=n.breadcrumbs,e=n.children,l=n.errors,d=n.monitorType,g=n.pipeline,y=n.setErrors,b=n.subheader,v=(0,r.useRouter)();return(0,m.jsx)(i.Z,{before:(0,m.jsxs)(a.M,{children:[(0,m.jsx)(c.Z,{p:f.cd,children:(0,m.jsx)(o.Z,{level:4,muted:!0,children:"Insights"})}),(0,m.jsx)(s,{onClick:function(n){n.preventDefault(),v.push("/pipelines/[pipeline]/monitors","/pipelines/".concat(null===g||void 0===g?void 0:g.uuid,"/monitors"))},selected:p.a_.PIPELINE_RUNS==d,children:(0,m.jsx)(u.ZP,{children:"Pipeline runs"})}),(0,m.jsx)(s,{onClick:function(n){n.preventDefault(),v.push("/pipelines/[pipeline]/monitors/block-runs","/pipelines/".concat(null===g||void 0===g?void 0:g.uuid,"/monitors/block-runs"))},selected:p.a_.BLOCK_RUNS==d,children:(0,m.jsx)(u.ZP,{children:"Block runs"})}),(0,m.jsx)(s,{onClick:function(n){n.preventDefault(),v.push("/pipelines/[pipeline]/monitors/block-runtime","/pipelines/".concat(null===g||void 0===g?void 0:g.uuid,"/monitors/block-runtime"))},selected:p.a_.BLOCK_RUNTIME==d,children:(0,m.jsx)(u.ZP,{children:"Block runtime"})})]}),breadcrumbs:t,errors:l,pageName:h.M.MONITOR,pipeline:g,setErrors:y,subheader:b,uuid:"pipeline/monitor",children:e})}},74395:function(n,t,e){"use strict";e.d(t,{M:function(){return c},W:function(){return i}});var r=e(38626),o=e(46684),i=34*e(70515).iI,c=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],o.Mz)},53998:function(n,t,e){"use strict";e.d(t,{Z:function(){return F}});var r=e(26304),o=e(82394),i=e(21831),c=e(82684),u=e(84969),a=e(90948),l=e(63588),d=e.n(l),f=e(75823),s=e(29989),p=e(62072),h=e(53989),m=e(49894),g=e(18246),y=e(59309),b=e(65743),v=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function O(){return O=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},O.apply(this,arguments)}function Z(n){var t=n.data,e=n.className,r=n.top,o=n.left,i=n.x,u=n.y0,a=void 0===u?p.l8:u,l=n.y1,Z=void 0===l?p.xf:l,x=n.xScale,A=n.yScale,T=n.color,_=n.keys,R=n.value,S=n.order,N=n.offset,E=n.children,P=function(n,t){if(null==n)return{};var e,r,o={},i=Object.keys(n);for(r=0;r<i.length;r++)e=i[r],t.indexOf(e)>=0||(o[e]=n[e]);return o}(n,v),w=(0,f.Z)();_&&w.keys(_),R&&(0,m.Z)(w.value,R),S&&w.order((0,g.ZP)(S)),N&&w.offset((0,y.ZP)(N));var C=w(t),I=(0,h.Z)(x),j=C.map((function(n,t){var e=n.key;return{index:t,key:e,bars:n.map((function(t,r){var o=(A(a(t))||0)-(A(Z(t))||0),c=A(Z(t)),u="bandwidth"in x?x(i(t.data)):Math.max((x(i(t.data))||0)-I/2);return{bar:t,key:e,index:r,height:o,width:I,x:u||0,y:c||0,color:T(n.key,r)}}))}}));return E?c.createElement(c.Fragment,null,E(j)):c.createElement(s.Z,{className:d()("visx-bar-stack",e),top:r,left:o},j.map((function(n){return n.bars.map((function(t){return c.createElement(b.Z,O({key:"bar-stack-"+n.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},P))}))})))}var x=e(67778),A=e(17066),T=e(29179),_=e(65376),R=e(48072),S=e(98677),N=e(84181),E=e(24903),P=e(55485),w=e(26226),C=e(30160),I=e(94035),j=e(44897),k=e(42631),D=e(95363),L=e(70515),M=e(48277),H=e(79221),B=e(28598),U=["height","width","xAxisLabel","yAxisLabel"];function Y(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function z(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(e),!0).forEach((function(t){(0,o.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Y(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function K(n){var t=n.backgroundColor,e=n.colors,r=n.data,o=n.getXValue,c=(n.getYValue,n.height),l=n.keys,d=n.margin,f=n.numYTicks,p=n.showLegend,h=n.tooltipLeftOffset,m=void 0===h?0:h,g=n.width,y=n.xLabelFormat,b=n.yLabelFormat,v=(0,T.Z)(),O=v.hideTooltip,P=v.showTooltip,w=v.tooltipData,I=v.tooltipLeft,L=v.tooltipOpen,U=v.tooltipTop,Y=g-(d.left+d.right),K=c-(d.bottom+d.top),F=r.reduce((function(n,t){var e=t,r=l.reduce((function(n,t){return Number(e[t])&&(n+=Number(e[t])),n}),0);return n.push(r),n}),[]),X=(0,S.Z)({domain:r.map(o),padding:.4,range:[0,Y],round:!1}),G=(0,N.Z)({domain:[0,Math.max.apply(Math,(0,i.Z)(F))],range:[K,0],round:!0}),W=null;L&&w&&(W=w.bar.data[w.key],Number.isSafeInteger(W)&&(W=(0,M.uf)(W)));var q=(0,E.Z)({domain:l,range:e});return(0,B.jsxs)("div",{style:{position:"relative",zIndex:2},children:[(0,B.jsxs)("svg",{height:c,width:g,children:[(0,B.jsx)("rect",{fill:t||j.Z.background.chartBlock,height:c,rx:14,width:g,x:0,y:0}),(0,B.jsx)(x.Z,{height:K,left:d.left,scale:G,stroke:"black",strokeOpacity:.2,top:d.top,width:Y}),(0,B.jsx)(s.Z,{left:d.left,top:d.top,children:(0,B.jsx)(Z,{color:q,data:r,keys:l,value:function(n,t){return n[t]||0},x:o,xScale:X,yScale:G,children:function(n){return n.map((function(n){return n.bars.map((function(t){return(0,B.jsx)("rect",{fill:t.color,height:t.height,onMouseLeave:O,onMouseMove:function(n){var e=(0,R.Z)(n),r=t.x+t.width/2+m;P({tooltipData:t,tooltipLeft:r,tooltipTop:(null===e||void 0===e?void 0:e.y)+10})},width:t.width,x:t.x,y:t.y},"bar-stack-".concat(n.index,"-").concat(t.index))}))}))}})}),(0,B.jsx)(u.Z,{hideTicks:!0,left:d.left,numTicks:f,scale:G,stroke:j.Z.content.muted,tickFormat:function(n){return b?b(n):(0,H.P5)(n)},tickLabelProps:function(){return{fill:j.Z.content.muted,fontFamily:D.ry,fontSize:11,textAnchor:"end",transform:"translate(0,2.5)"}},top:d.top}),(0,B.jsx)(a.Z,{hideTicks:!0,left:d.left,scale:X,stroke:j.Z.content.muted,tickFormat:y,tickLabelProps:function(){return{fill:j.Z.content.muted,fontFamily:D.ry,fontSize:11,textAnchor:"middle"}},top:K+d.top})]}),p&&(0,B.jsx)("div",{style:{display:"flex",fontSize:"14px",justifyContent:"center",position:"absolute",top:d.top/2-10,width:"100%"},children:(0,B.jsx)(A.Z,{direction:"row",labelMargin:"0 15px 0 0",scale:q})}),L&&w&&(0,B.jsxs)(_.Z,{left:I,style:z(z({},_.j),{},{backgroundColor:j.Z.background.page,borderRadius:"".concat(k.TR,"px"),padding:".3rem .4rem"}),top:U,children:[(0,B.jsx)(C.ZP,{bold:!0,color:q(w.key),children:w.key}),(0,B.jsx)(C.ZP,{children:W}),(0,B.jsx)(C.ZP,{children:o(w.bar.data)})]})]})}var F=function(n){var t=n.height,e=n.width,o=n.xAxisLabel,i=n.yAxisLabel,c=(0,r.Z)(n,U);return(0,B.jsx)(B.Fragment,{children:(0,B.jsxs)("div",{style:{height:t,marginBottom:L.iI,width:e},children:[i&&(0,B.jsx)(P.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,B.jsx)(I.Z,{children:(0,B.jsx)(C.ZP,{center:!0,muted:!0,small:!0,children:i})})}),(0,B.jsx)("div",{style:{height:t,width:i?0===e?e:e-28:e},children:(0,B.jsx)(w.Z,{children:function(n){var t=n.height,e=n.width;return(0,B.jsx)(K,z(z({},c),{},{height:t,width:e}))}})}),o&&(0,B.jsx)("div",{style:{paddingLeft:i?36:0,paddingTop:4},children:(0,B.jsx)(C.ZP,{center:!0,muted:!0,small:!0,children:o})})]})})}},94035:function(n,t,e){"use strict";var r=e(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;"]);t.Z=r},79221:function(n,t,e){"use strict";e.d(t,{P5:function(){return r},Vs:function(){return o}});e(81728);function r(n,t){var e=t||{},r=e.maxFractionDigits,o=e.minAmount,i=Intl.NumberFormat("en-US",{maximumFractionDigits:r||2,notation:"compact"});return"number"!==typeof n?n:n>=(o||1e4)?i.format(n):n.toString()}function o(n,t,e){var r,o;if("undefined"===typeof n||"undefined"===typeof t)return 0;var i=null===n||void 0===n||null===(r=n(t,e))||void 0===r||null===(o=r.props)||void 0===o?void 0:o.children;return(Array.isArray(i)?i:[i]).join("").length}},44425:function(n,t,e){"use strict";e.d(t,{$W:function(){return y},DA:function(){return m},HX:function(){return Z},J8:function(){return O},L8:function(){return u},LE:function(){return s},Lk:function(){return T},Lq:function(){return p},M5:function(){return h},Q3:function(){return b},Qj:function(){return x},Ut:function(){return S},V4:function(){return R},VZ:function(){return v},dO:function(){return f},f2:function(){return _},iZ:function(){return A},t6:function(){return a},tf:function(){return d}});var r,o,i,c,u,a,l=e(82394);!function(n){n.CONDITION="condition",n.DBT_SNAPSHOT="snapshot",n.DYNAMIC="dynamic",n.DYNAMIC_CHILD="dynamic_child",n.REDUCE_OUTPUT="reduce_output",n.REPLICA="replica"}(u||(u={})),function(n){n.MARKDOWN="markdown",n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(a||(a={}));var d,f=(r={},(0,l.Z)(r,a.MARKDOWN,"MD"),(0,l.Z)(r,a.PYTHON,"PY"),(0,l.Z)(r,a.R,"R"),(0,l.Z)(r,a.SQL,"SQL"),(0,l.Z)(r,a.YAML,"YAML"),r),s=(o={},(0,l.Z)(o,a.MARKDOWN,"Markdown"),(0,l.Z)(o,a.PYTHON,"Python"),(0,l.Z)(o,a.R,"R"),(0,l.Z)(o,a.SQL,"SQL"),(0,l.Z)(o,a.YAML,"YAML"),o);!function(n){n.CALLBACK="callback",n.CHART="chart",n.CONDITIONAL="conditional",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.GLOBAL_DATA_PRODUCT="global_data_product",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.MARKDOWN="markdown",n.TRANSFORMER="transformer"}(d||(d={}));var p,h=[d.CALLBACK,d.CONDITIONAL,d.EXTENSION];!function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(p||(p={}));var m,g,y=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN,d.TRANSFORMER],b=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN,d.TRANSFORMER],v=[d.DATA_EXPORTER,d.DATA_LOADER],O=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],Z=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],x=[d.CHART,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN],A=[d.CALLBACK,d.CHART,d.EXTENSION,d.SCRATCHPAD,d.MARKDOWN],T=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SENSOR,d.TRANSFORMER];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(m||(m={})),function(n){n.BLOCK_FILE="block_file",n.CUSTOM_BLOCK_TEMPLATE="custom_block_template",n.MAGE_TEMPLATE="mage_template"}(g||(g={}));var _=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],R=(i={},(0,l.Z)(i,d.CALLBACK,"Callback"),(0,l.Z)(i,d.CHART,"Chart"),(0,l.Z)(i,d.CONDITIONAL,"Conditional"),(0,l.Z)(i,d.CUSTOM,"Custom"),(0,l.Z)(i,d.DATA_EXPORTER,"Data exporter"),(0,l.Z)(i,d.DATA_LOADER,"Data loader"),(0,l.Z)(i,d.DBT,"DBT"),(0,l.Z)(i,d.EXTENSION,"Extension"),(0,l.Z)(i,d.GLOBAL_DATA_PRODUCT,"Global data product"),(0,l.Z)(i,d.MARKDOWN,"Markdown"),(0,l.Z)(i,d.SCRATCHPAD,"Scratchpad"),(0,l.Z)(i,d.SENSOR,"Sensor"),(0,l.Z)(i,d.TRANSFORMER,"Transformer"),i),S=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER,d.SENSOR];c={},(0,l.Z)(c,d.DATA_EXPORTER,"DE"),(0,l.Z)(c,d.DATA_LOADER,"DL"),(0,l.Z)(c,d.SCRATCHPAD,"SP"),(0,l.Z)(c,d.SENSOR,"SR"),(0,l.Z)(c,d.MARKDOWN,"MD"),(0,l.Z)(c,d.TRANSFORMER,"TF")},72098:function(n,t,e){"use strict";var r;e.d(t,{U:function(){return r}}),function(n){n.PYSPARK="pysparkkernel",n.PYTHON3="python3"}(r||(r={}))},57653:function(n,t,e){"use strict";e.d(t,{$1:function(){return m},G7:function(){return b},LM:function(){return v},Mj:function(){return O},QK:function(){return h},RH:function(){return y},a_:function(){return x},fj:function(){return A},kA:function(){return Z},qL:function(){return u},r0:function(){return g}});var r,o,i,c,u,a=e(75582),l=e(82394),d=e(72473),f=e(72098);function s(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function p(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?s(Object(e),!0).forEach((function(t){(0,l.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):s(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}!function(n){n.INTEGRATION="integration",n.PYTHON="python",n.PYSPARK="pyspark",n.STREAMING="streaming"}(u||(u={}));var h,m,g,y=(r={},(0,l.Z)(r,u.INTEGRATION,"Integration"),(0,l.Z)(r,u.PYTHON,"Python"),(0,l.Z)(r,u.PYSPARK,"PySpark"),(0,l.Z)(r,u.STREAMING,"Streaming"),r),b=(o={},(0,l.Z)(o,u.INTEGRATION,"Integration"),(0,l.Z)(o,u.PYTHON,"Standard"),(0,l.Z)(o,u.PYSPARK,"PySpark"),(0,l.Z)(o,u.STREAMING,"Streaming"),o),v="all",O=(u.PYTHON,u.INTEGRATION,u.STREAMING,i={},(0,l.Z)(i,v,d.ie),(0,l.Z)(i,u.INTEGRATION,d.YC),(0,l.Z)(i,u.PYTHON,d.El),(0,l.Z)(i,u.STREAMING,d.dB),i);!function(n){n.ACTIVE="active",n.INACTIVE="inactive",n.NO_SCHEDULES="no_schedules",n.RETRY="retry",n.RETRY_INCOMPLETE_BLOCK_RUNS="retry_incomplete_block_runs"}(h||(h={})),function(n){n.GROUP="group_by",n.HISTORY_DAYS="from_history_days",n.NO_TAGS="no_tags",n.STATUS="status[]",n.TAG="tag[]",n.TYPE="type[]"}(m||(m={})),function(n){n.STATUS="status",n.TAG="tag",n.TYPE="type"}(g||(g={}));var Z=[h.ACTIVE,h.INACTIVE,h.NO_SCHEDULES],x=(c={},(0,l.Z)(c,u.PYTHON,f.U.PYTHON3),(0,l.Z)(c,u.PYSPARK,f.U.PYSPARK),c),A=Object.entries(x).reduce((function(n,t){var e=(0,a.Z)(t,2),r=e[0],o=e[1];return p(p({},n),{},(0,l.Z)({},o,r))}),{})},85854:function(n,t,e){"use strict";var r,o,i,c,u,a,l,d,f=e(82394),s=e(26304),p=e(26653),h=e(38626),m=e(33591),g=e(44897),y=e(95363),b=e(61896),v=e(30160),O=e(70515),Z=e(38276),x=e(28598),A=["children","condensed","inline","level","marketing","spacingBelow"];function T(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function _(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?T(Object(e),!0).forEach((function(t){(0,f.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):T(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var R=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],v.IH,(function(n){return n.color&&"\n color: ".concat(n.color,"\n ")}),(function(n){return n.yellow&&"\n color: ".concat((n.theme.accent||g.Z.accent).yellow,";\n ")}),(function(n){return n.center&&"\n text-align: center;\n "}),(function(n){return!n.monospace&&0===Number(n.weightStyle)&&"\n font-family: ".concat(y.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(y.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(y.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(y.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(y.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "})),S=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||g.Z.content).active,";\n ")})),N=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],R,m.media.md(r||(r=(0,p.Z)(["\n ","\n "])),b.aQ),m.media.lg(o||(o=(0,p.Z)(["\n ","\n "])),b.aQ),m.media.xl(i||(i=(0,p.Z)(["\n ","\n "])),b.aQ)),E=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],R,b.MJ),P=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],R,m.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),m.media.sm(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),m.media.md(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),m.media.lg(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),m.media.xl(d||(d=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI)),w=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],R,b.BL),C=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],R),I=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],R),j=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],R),k=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],R,(function(n){return 1===n.level&&"\n ".concat(b.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(b.BL,"\n ")}),(function(n){return 3===n.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(n){return 4===n.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),D=function(n){var t,e=n.children,r=n.condensed,o=n.inline,i=n.level,c=n.marketing,u=n.spacingBelow,a=(0,s.Z)(n,A);o?t=k:0===Number(i)?t=N:1===Number(i)?t=c?P:E:2===Number(i)?t=w:3===Number(i)?t=C:4===Number(i)?t=I:5===Number(i)&&(t=j);var l=(0,x.jsxs)(t,_(_({},a),{},{level:i,children:[u&&(0,x.jsx)(Z.Z,{mb:r?2:3,children:e}),!u&&e]}));return o?l:(0,x.jsx)(S,{children:l})};D.defaultProps={level:3,weightStyle:6},t.Z=D},57772:function(n,t,e){"use strict";e.r(t);var r=e(77837),o=e(75582),i=e(82394),c=e(38860),u=e.n(c),a=e(82684),l=e(92083),d=e.n(l),f=e(38626),s=e(53998),p=e(39867),h=e(55485),m=e(85854),g=e(7116),y=e(93808),b=e(44085),v=e(38276),O=e(35686),Z=e(44897),x=e(64657),A=e(46978),T=e(55283),_=e(3917),R=e(86735),S=e(28598);function N(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function E(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?N(Object(e),!0).forEach((function(t){(0,i.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):N(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function P(n){var t=n.pipeline,e=(0,a.useContext)(f.ThemeContext),r=(0,a.useState)(null),c=r[0],u=r[1],l=t.uuid,y=O.ZP.pipelines.detail(l,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,N=(0,a.useMemo)((function(){return E(E({},null===y||void 0===y?void 0:y.pipeline),{},{uuid:l})}),[y,l]),P=O.ZP.pipeline_schedules.pipelines.list(l).data,w=(0,a.useMemo)((function(){return null===P||void 0===P?void 0:P.pipeline_schedules}),[P]),C=(0,a.useMemo)((function(){return(0,R.HK)(null===N||void 0===N?void 0:N.blocks,(function(n){return n.uuid}))||{}}),[N]),I={pipeline_uuid:l};(c||0===c)&&(I.pipeline_schedule_id=Number(c));var j=O.ZP.monitor_stats.detail("block_run_count",I),k=j.data,D=j.mutate,L=((null===k||void 0===k?void 0:k.monitor_stat)||{}).stats,M=(0,a.useMemo)((function(){return(0,_.Y_)()}),[]),H=(0,a.useMemo)((function(){if(L)return Object.entries(L).reduce((function(n,t){var e=(0,o.Z)(t,2),r=e[0],c=e[1].data,u=M.map((function(n){return E({date:n},c[n]||{})}));return E(E({},n),{},(0,i.Z)({},r,u))}),{})}),[M,L]),B=(0,a.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[]);return(0,S.jsx)(g.Z,{breadcrumbs:B,monitorType:x.a_.BLOCK_RUNS,pipeline:N,subheader:(0,S.jsx)(h.ZP,{children:(0,S.jsxs)(b.Z,{backgroundColor:Z.Z.interactive.defaultBackground,label:"Trigger:",onChange:function(n){var t=n.target.value;"initial"!==t?(u(t),D(t)):(D(),u(null))},value:c||"initial",children:[(0,S.jsx)("option",{value:"initial",children:"All"}),w&&w.map((function(n){return(0,S.jsx)("option",{value:n.id,children:n.name},n.id)}))]})}),children:(0,S.jsx)(v.Z,{mx:2,children:H&&Object.entries(H).map((function(n){var t,r,i=(0,o.Z)(n,2),c=i[0],u=i[1];return(0,S.jsxs)(v.Z,{mt:3,children:[(0,S.jsxs)(h.ZP,{alignItems:"center",children:[(0,S.jsx)(v.Z,{mx:1,children:(0,S.jsx)(p.Z,{color:(0,T.qn)(null===(t=C[c])||void 0===t?void 0:t.type,{blockColor:null===(r=C[c])||void 0===r?void 0:r.color,theme:e}).accent,size:A.ZG,square:!0})}),(0,S.jsx)(m.Z,{level:4,children:c})]}),(0,S.jsx)(v.Z,{mt:1,children:(0,S.jsx)(s.Z,{colors:x.NU,data:u,getXValue:function(n){return n.date},height:200,keys:x.hu,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:x.CD,xLabelFormat:function(n){return d()(n).format("MMM DD")}})})]},c)}))})})}P.getInitialProps=function(){var n=(0,r.Z)(u().mark((function n(t){var e;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.query.pipeline,n.abrupt("return",{pipeline:{uuid:e}});case 2:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}(),t.default=(0,y.Z)(P)},48277:function(n,t,e){"use strict";e.d(t,{$P:function(){return l},JI:function(){return i},VJ:function(){return a},fD:function(){return c},uf:function(){return o},vN:function(){return u}});var r=e(75582),o=function(n){var t=String(n).split("."),e=(0,r.Z)(t,2),o=e[0],i=e[1];return"".concat(o.replace(/\B(?=(\d{3})+(?!\d))/g,",")).concat(i?".".concat(i):"")};function i(n){var t=Math.floor(Date.now()/1e3);return n>0?t-n:t}function c(n){return(n>>>0).toString(2)}function u(n,t){return String(BigInt(n)+BigInt(t))}function a(n,t){return String(BigInt(n)-BigInt(t))}function l(n){return parseInt(n,2)}},83542:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors/block-runs",function(){return e(57772)}])},80022:function(n,t,e){"use strict";function r(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}e.d(t,{Z:function(){return r}})},15544:function(n,t,e){"use strict";function r(n){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},r(n)}e.d(t,{Z:function(){return r}})},99177:function(n,t,e){"use strict";function r(n,t){return r=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n},r(n,t)}function o(n,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&r(n,t)}e.d(t,{Z:function(){return o}})},93189:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(12539),o=e(80022);function i(n,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(n)}}},function(n){n.O(0,[2678,1154,844,5896,2714,4267,600,8487,8264,5457,9774,2888,179],(function(){return t=83542,n(n.s=t);var t}));var t=n.O();_N_E=t}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4947],{55283:function(n,t,e){"use strict";e.d(t,{HC:function(){return R},HS:function(){return x},IN:function(){return f},Kf:function(){return y},Nk:function(){return b},PB:function(){return v},PY:function(){return g},WC:function(){return p},fk:function(){return Z},gE:function(){return A},j1:function(){return N},jv:function(){return T},nz:function(){return O},oh:function(){return s},qn:function(){return m},t1:function(){return E},u2:function(){return h},y9:function(){return _}});var r=e(38626),o=e(44897),i=e(44425),c=e(42631),a=e(8059),u=e(70515),l=e(47041),d=e(91437),s=68,f=1.5*u.iI,p=3*u.iI;function h(n){var t=a.eW;return i.tf.CALLBACK===n?t=a.J:i.tf.CHART===n||i.tf.CONDITIONAL===n?t=a.Hv:i.tf.CUSTOM===n?t=a.AK:i.tf.DATA_EXPORTER===n?t=a.Sr:i.tf.DATA_LOADER===n?t=a.R2:i.tf.DBT===n?t=a.J:i.tf.EXTENSION===n?t=a.FI:i.tf.GLOBAL_DATA_PRODUCT===n?t=a.yr:i.tf.SCRATCHPAD===n?t=a.Hv:i.tf.SENSOR===n?t=a.rK:i.tf.MARKDOWN===n?t=a.RK:i.tf.TRANSFORMER===n&&(t=a.eW),t}function m(n,t){var e,r,c=((null===t||void 0===t||null===(e=t.theme)||void 0===e?void 0:e.borders)||o.Z.borders).light,a=((null===t||void 0===t||null===(r=t.theme)||void 0===r?void 0:r.monotone)||o.Z.monotone).grey500,u=t||{},l=u.blockColor,d=u.isSelected,s=u.theme;return d?c=(s||o.Z).content.active:i.tf.TRANSFORMER===n||l===i.Lq.PURPLE?(c=(s||o.Z).accent.purple,a=(s||o.Z).accent.purpleLight):i.tf.DATA_EXPORTER===n||l===i.Lq.YELLOW?(c=(s||o.Z).accent.yellow,a=(s||o.Z).accent.yellowLight):i.tf.DATA_LOADER===n||l===i.Lq.BLUE?(c=(s||o.Z).accent.blue,a=(s||o.Z).accent.blueLight):i.tf.MARKDOWN===n?(c=(s||o.Z).accent.sky,a=(s||o.Z).accent.skyLight):i.tf.SENSOR===n||l===i.Lq.PINK?(c=(s||o.Z).accent.pink,a=(s||o.Z).accent.pinkLight):i.tf.DBT===n?(c=(s||o.Z).accent.dbt,a=(s||o.Z).accent.dbtLight):i.tf.EXTENSION===n||l===i.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).teal,a=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).tealLight):i.tf.CALLBACK===n?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).rose,a=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).roseLight):i.tf.CONDITIONAL===n||i.tf.SCRATCHPAD===n||l===i.Lq.GREY||i.tf.CUSTOM===n&&!l?(c=(s||o.Z).content.default,a=(s||o.Z).accent.contentDefaultTransparent):i.tf.GLOBAL_DATA_PRODUCT!==n||l||(c=(s||o.Z).monotone.white,a=(s||o.Z).monotone.whiteTransparent),{accent:c,accentLight:a}}var y=(0,r.css)([""," "," "," "," "," "," ",""],(0,d.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(m(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(m(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||o.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||o.Z.borders).danger,";\n ")}),(function(n){return n.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(n){return n.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),b=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),g=r.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],y,c.n_,c.M8,c.mP,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n\n &:hover {\n border-color: ").concat(m(n.blockType,n).accent,";\n }\n ")})),v=r.default.div.withConfig({displayName:"indexstyle__HeaderHorizontalBorder",componentId:"sc-s5rj34-2"})(["",""],(function(n){return"\n border-bottom: 1px solid ".concat((n.theme||o.Z).borders.darkLight,";\n ")})),O=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-3"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;"," "," "," ",""],y,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,1*u.iI,1*u.iI,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.dashboard,";\n ")}),(function(n){return"undefined"!==typeof n.zIndex&&null!==n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")}),(function(n){return!n.noSticky&&"\n // This is to hide the horizontal scrollbar in the block header when sideBySide is enabled,\n // and the screen width is too small.\n position: sticky;\n top: -5px;\n "}),(function(n){return n.noSticky&&"\n ".concat((0,l.y$)(),"\n\n overflow-x: auto;\n overflow-y: visible;\n ")})),x=r.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-s5rj34-4"})([""," "," ",""],(function(n){return!n.darkBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).darkLight,";\n ")}),(function(n){return n.darkBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).medium,";\n ")}),(function(n){return!n.noBackground&&"\n background-color: ".concat((n.theme||o.Z).background.dashboard,";\n ")})),T=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-5"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;position:relative;"," "," "," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],y,c.M8,c.mP,c.M8,c.mP,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(n){return!n.noPadding&&"\n padding-bottom: ".concat(u.iI,"px;\n padding-top: ").concat(u.iI,"px;\n ")}),(function(n){return n.lightBackground&&"\n background-color: ".concat((n.theme||o.Z).background.content,";\n ")}),(function(n){return!n.hideBorderBottom&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n overflow: hidden;\n ")})),A=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-6"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;&:hover{"," .block-divider-inner{","}}"," "," "," ",""],2*u.iI,(function(n){return n.additionalZIndex>0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||o.Z.text).fileBrowser,";\n ")}),(function(n){return!n.height&&"\n height: ".concat(2*u.iI,"px;\n ")}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return!n.bottom&&"\n bottom: ".concat(.5*u.iI,"px;\n ")}),(function(n){return"undefined"!==typeof n.bottom&&"\n bottom: ".concat(n.bottom,"px;\n ")})),E=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-7"})(["height 1px;width:100%;position:absolute;z-index:-1;"," ",""],(function(n){return!n.top&&"\n top: ".concat(1.5*u.iI,"px;\n ")}),(function(n){return"undefined"!==typeof n.top&&"\n top: ".concat(n.top,"px;\n ")})),_=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-8"})([""," ",""],(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?u.iI:s,"px;\n ")}),(function(n){return!n.noMargin&&"\n margin-bottom: ".concat(1*u.iI,"px;\n padding-bottom: ").concat(1*u.iI,"px;\n ")})),R=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-9"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,s),Z=r.default.div.withConfig({displayName:"indexstyle__ScrollColunnsContainerStyle",componentId:"sc-s5rj34-10"})(["position:relative;",""],(function(n){return"\n z-index: ".concat((null===n||void 0===n?void 0:n.zIndex)||1,";\n ")})),N=r.default.div.attrs((function(n){var t=n.height,e=n.left,r=n.right,o=n.top;return{style:{position:"fixed",height:t,width:n.width,left:e,right:r,top:o,zIndex:(n.zIndex||0)+2}}})).withConfig({displayName:"indexstyle__ScrollColunnStyle",componentId:"sc-s5rj34-11"})([""])},46978:function(n,t,e){"use strict";e.d(t,{Cl:function(){return a},Nk:function(){return u},ZG:function(){return c}});var r=e(38626),o=e(44897),i=e(70515),c=1.5*i.iI,a=1*c+i.iI/2,u=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(n){return"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}))},64657:function(n,t,e){"use strict";e.d(t,{CD:function(){return a},NU:function(){return i},a_:function(){return r},hu:function(){return c}});var r,o=e(44897);!function(n){n.BLOCK_RUNS="block_runs",n.BLOCK_RUNTIME="block_runtime",n.PIPELINE_RUNS="pipeline_runs"}(r||(r={}));var i=[o.Z.accent.warning,o.Z.background.success,o.Z.accent.negative,o.Z.content.active,o.Z.interactive.linkPrimary],c=["cancelled","completed","failed","initial","running"],a=-50},7116:function(n,t,e){"use strict";e.d(t,{Z:function(){return y}});e(82684);var r=e(34376),o=e(85854),i=e(75457),c=e(38276),a=e(30160),u=e(74395),l=e(38626),d=e(44897),s=e(70515),f=l.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1in9sst-0"})(["padding:","px ","px;"," ",""],s.iI,s.tr,(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||d.Z.interactive).checked,";\n ")}),(function(n){return!n.selected&&"\n cursor: pointer;\n "})),p=e(64657),h=e(28795),m=e(28598);var y=function(n){var t=n.breadcrumbs,e=n.children,l=n.errors,d=n.monitorType,y=n.pipeline,b=n.setErrors,g=n.subheader,v=(0,r.useRouter)();return(0,m.jsx)(i.Z,{before:(0,m.jsxs)(u.M,{children:[(0,m.jsx)(c.Z,{p:s.cd,children:(0,m.jsx)(o.Z,{level:4,muted:!0,children:"Insights"})}),(0,m.jsx)(f,{onClick:function(n){n.preventDefault(),v.push("/pipelines/[pipeline]/monitors","/pipelines/".concat(null===y||void 0===y?void 0:y.uuid,"/monitors"))},selected:p.a_.PIPELINE_RUNS==d,children:(0,m.jsx)(a.ZP,{children:"Pipeline runs"})}),(0,m.jsx)(f,{onClick:function(n){n.preventDefault(),v.push("/pipelines/[pipeline]/monitors/block-runs","/pipelines/".concat(null===y||void 0===y?void 0:y.uuid,"/monitors/block-runs"))},selected:p.a_.BLOCK_RUNS==d,children:(0,m.jsx)(a.ZP,{children:"Block runs"})}),(0,m.jsx)(f,{onClick:function(n){n.preventDefault(),v.push("/pipelines/[pipeline]/monitors/block-runtime","/pipelines/".concat(null===y||void 0===y?void 0:y.uuid,"/monitors/block-runtime"))},selected:p.a_.BLOCK_RUNTIME==d,children:(0,m.jsx)(a.ZP,{children:"Block runtime"})})]}),breadcrumbs:t,errors:l,pageName:h.M.MONITOR,pipeline:y,setErrors:b,subheader:g,uuid:"pipeline/monitor",children:e})}},74395:function(n,t,e){"use strict";e.d(t,{M:function(){return c},W:function(){return i}});var r=e(38626),o=e(46684),i=34*e(70515).iI,c=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],o.Mz)},74168:function(n,t,e){"use strict";var r=e(26304),o=e(21831),i=e(82394),c=e(82684),a=e(26226),u=e(38626),l=e(90948),d=e(84969),s=e(65743),f=e(85587),p=e(79487),h=e(52136),m=e(67778),y=e(29989),b=e(17066),g=e(84482),v=e(76771),O=e(98889),x=e(65376),T=e(61655),A=e(97745),E=e(48072),_=e(10103),R=e(84181),Z=e(24903),N=e(55485),S=e(30160),P=e(94035),k=e(44897),I=e(8454),C=e(79633),D=e(95363),L=e(61896),j=e(70515),w=e(86735),M=e(79221),H=e(98684),U=e(28598),B=["areaBetweenLines","data","events","height","lineLegendNames","margin","width","xAxisLabel","xLabelFormat","yAxisLabel","yLabelFormat"];function F(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function Y(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?F(Object(e),!0).forEach((function(t){(0,i.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):F(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var K=Y(Y({},x.j),{},{backgroundColor:k.Z.background.muted,border:"none"}),z=(0,T.Z)((function(n){var t=n.areaBetweenLines,e=n.data,r=n.events,i=void 0!==r&&r,a=n.getX,T=n.getY,N=n.getYScaleValues,P=n.gridProps,B=void 0===P?{}:P,F=n.height,z=n.hideGridX,X=n.hideTooltip,G=n.increasedXTicks,W=n.lineLegendNames,q=n.margin,V=n.noCurve,Q=n.numYTicks,J=n.renderXTooltipContent,$=n.renderYTooltipContent,nn=n.showTooltip,tn=n.thickStroke,en=n.tooltipData,rn=n.tooltipLeft,on=void 0===rn?0:rn,cn=n.tooltipTop,an=void 0===cn?[]:cn,un=n.width,ln=n.xLabelFormat,dn=n.xLabelRotate,sn=void 0===dn||dn,fn=n.yLabelFormat,pn=(0,c.useContext)(u.ThemeContext),hn=a||function(n){return null===n||void 0===n?void 0:n.x},mn=T||function(n){var t,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null===n||void 0===n||null===(t=n.y)||void 0===t?void 0:t[e]},yn=k.Z.monotone.gray,bn=k.Z.brand.wind200,gn=k.Z.content.muted,vn=k.Z.monotone.gray,On=e.map((function(n){return Number(hn(n))}));if(un<10)return null;var xn=un-q.left-q.right,Tn=F-q.top-q.bottom,An=xn/2,En=0===e.length?0:Math.max.apply(Math,(0,o.Z)(e.map((function(n){var t=n.y;return(null===t||void 0===t?void 0:t.length)||0})))),_n=(0,c.useMemo)((function(){return(0,R.Z)({domain:[Math.min.apply(Math,(0,o.Z)(On)),Math.max.apply(Math,(0,o.Z)(On))],range:[0,xn]})}),[xn,On]),Rn=Math.min.apply(Math,(0,o.Z)(e.map((function(n){var t=n.y;return Math.min.apply(Math,(0,o.Z)(N?N(t):t||[]))})))),Zn=Math.max.apply(Math,(0,o.Z)(e.map((function(n){var t=n.y;return Math.max.apply(Math,(0,o.Z)(N?N(t):t||[]))})))),Nn=(0,c.useMemo)((function(){return(0,R.Z)({domain:[Rn,Zn],nice:!0,range:[Tn,0]})}),[Tn,Zn,Rn]),Sn=un>520?G?20:10:G?10:5,Pn=(0,H.K)(pn),kn=gn,In=Pn.map((function(n){return{stroke:n}})),Cn=(0,Z.Z)({domain:W||[],range:In.map((function(n){return n.stroke}))}),Dn=(0,c.useCallback)((function(n){var t=((0,E.Z)(n)||{x:0}).x,r=_n.invert(t-q.left),o=(0,w.ry)(On,(function(n){return r>=n})),i=e[o-1],c=e[o],a=i;c&&(r-hn(i)>hn(c)-r?a=c:(a=i,o-=1));var u=(0,_.range)(0,En).map((function(n){return Nn(mn(a,n))})),l=u.some((function(n){return"undefined"===typeof n}));(mn(a)||N&&!l)&&nn({tooltipData:Y(Y({},a),{},{index:o}),tooltipLeft:t,tooltipTop:u})}),[e,hn,mn,N,q,nn,_n,On,Nn]),Ln={};return V||(Ln.curve=A.ZP),(0,U.jsxs)(U.Fragment,{children:[W&&(0,U.jsx)("div",{style:{marginLeft:null===q||void 0===q?void 0:q.left},children:(0,U.jsx)(b.Z,{labelFormat:function(n){return n},scale:Cn,children:function(n){return(0,U.jsx)("div",{style:{display:"flex",flexDirection:I.qs.ROW},children:n.map((function(n,t){return(0,U.jsxs)(g.Z,{margin:"0 5px",onClick:function(){i&&alert("clicked: ".concat(JSON.stringify(n)))},children:[(0,U.jsx)("svg",{height:15,width:15,children:(0,U.jsx)("rect",{fill:n.value,height:15,width:15})}),(0,U.jsx)(v.Z,{align:"left",margin:"0 0 0 4px",children:(0,U.jsx)(S.ZP,{small:!0,children:n.text})})]},"legend-quantile-".concat(t))}))})}})}),(0,U.jsxs)("svg",{height:F,width:un,children:[!t&&(0,U.jsx)(s.Z,{fill:"transparent",height:F,onMouseLeave:function(){return X()},onMouseMove:Dn,onTouchMove:Dn,onTouchStart:Dn,rx:14,width:un-(q.left+q.right),x:q.left,y:0}),(0,U.jsxs)(y.Z,{left:q.left,top:q.top,children:[!z&&(0,U.jsx)(h.Z,Y({height:Tn,pointerEvents:"none",scale:_n,stroke:yn,strokeDasharray:"3,3",strokeOpacity:.4,width:xn},B)),(0,U.jsx)(m.Z,Y({height:Tn,pointerEvents:"none",scale:Nn,stroke:yn,strokeDasharray:"3,3",strokeOpacity:.4,width:xn},B)),(0,U.jsx)("line",{stroke:yn,x1:xn,x2:xn,y1:0,y2:Tn}),(0,U.jsx)(l.Z,{numTicks:Sn,scale:_n,stroke:kn,tickFormat:function(n){return ln?ln(n):n},tickLabelProps:function(n){return{fill:gn,fontFamily:D.ry,fontSize:L.J5,textAnchor:"middle",transform:sn&&"rotate(-45, ".concat(_n(n),", 0) translate(-32, 4)")}},tickStroke:kn,top:Tn}),(0,U.jsx)(d.Z,{hideTicks:!0,numTicks:Q,scale:Nn,stroke:kn,tickFormat:function(n){return fn?fn(n):(0,M.P5)(n)},tickLabelProps:function(n){return{dx:String(n).length>4?3:0,fill:gn,fontFamily:D.ry,fontSize:L.J5,textAnchor:"end",transform:"translate(0,2.5)"}},tickStroke:kn}),t&&t.map((function(n){var t=n[0],r=n[1];return(0,c.createElement)(O.Z,Y(Y({},Ln),{},{aboveAreaProps:{fill:k.Z.brand.earth400,fillOpacity:.3},belowAreaProps:{fill:bn,fillOpacity:.2},clipAboveTo:0,clipBelowTo:Tn,data:e,id:"".concat(Math.random()),key:"".concat(t,"-").concat(r),x:function(n){return _n(hn(n))},y0:function(n){return Nn("undefined"===typeof r?Rn:mn(n,r))},y1:function(n){return Nn(mn(n,t))}}))})),(0,_.range)(0,En).map((function(n){return(0,c.createElement)(f.Z,Y(Y({},Ln),{},{data:e.filter((function(n){return void 0!=n.y})),key:n,pointerEvents:"none",strokeWidth:tn?2:1,x:function(n){return _n(hn(n))},y:function(t){return Nn(t.y&&(n>=t.y.length?Rn:mn(t,n)))}},In[n]))}))]}),en&&(0,U.jsxs)("g",{children:[(0,U.jsx)(p.Z,{from:{x:on,y:q.top},pointerEvents:"none",stroke:C.Ej,strokeDasharray:"5,2",strokeWidth:1,to:{x:on,y:Tn+q.top}}),an.map((function(n,t){return(0,U.jsx)("circle",{cx:on,cy:n+1+q.top,fill:In[t].stroke,fillOpacity:.1,pointerEvents:"none",r:4,stroke:vn,strokeOpacity:.1,strokeWidth:1},t)})),an.map((function(n,t){return(0,U.jsx)("circle",{cx:on,cy:n+q.top,fill:In[t].stroke,pointerEvents:"none",r:4,stroke:In[t].stroke,strokeWidth:2},t)}))]})]}),en&&(0,U.jsxs)("div",{children:[an.map((function(n,t){var e=mn(en,t);return t>=1&&Math.abs(an[t-1]-n)<5*j.iI&&(n+=3*j.iI),(0,U.jsxs)(x.Z,{left:on>An?on-(0,M.Vs)($,en,t)*j.iI:on+j.iI,style:K,top:n-2*j.iI,children:[$&&$(en,t),!$&&(0,U.jsxs)(S.ZP,{center:!0,small:!0,children:[e.toFixed?e.toFixed(3):e," ",null===W||void 0===W?void 0:W[t]]})]},t)})),(0,U.jsxs)(x.Z,{left:on>An?on-4*(0,M.Vs)(J,en):on,style:Y(Y({},K),{},{transform:"translateX(-65%)"}),top:Tn+q.top,children:[J&&J(en),!J&&(0,U.jsx)(S.ZP,{center:!0,small:!0,children:hn(en).toFixed(3)})]})]})]})}));t.Z=function(n){var t=n.areaBetweenLines,e=n.data,o=(n.events,n.height),i=n.lineLegendNames,c=n.margin,u=void 0===c?{}:c,l=n.width,d=n.xAxisLabel,s=n.xLabelFormat,f=n.yAxisLabel,p=n.yLabelFormat,h=(0,r.Z)(n,B),m=Y(Y({},{bottom:3*j.iI,left:5*j.iI,right:3*j.iI,top:3*j.iI}),u);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)("div",{style:{display:"flex",height:o,marginBottom:j.iI,width:"100%"},children:[f&&(0,U.jsx)(N.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,U.jsx)(P.Z,{children:(0,U.jsx)(S.ZP,{center:!0,muted:!0,small:!0,children:f})})}),(0,U.jsx)("div",{style:{height:o,width:"undefined"===typeof l?"100%":l},children:(0,U.jsx)(a.Z,{children:function(n){var r=n.width,o=n.height;return(0,U.jsx)(z,Y(Y({},h),{},{areaBetweenLines:t,data:e,height:o,lineLegendNames:i,margin:m,width:r,xLabelFormat:s,yLabelFormat:p}))}})})]}),d&&(0,U.jsx)("div",{style:{paddingLeft:f?36:0,paddingTop:4},children:(0,U.jsx)(S.ZP,{center:!0,muted:!0,small:!0,children:d})})]})}},98684:function(n,t,e){"use strict";e.d(t,{K:function(){return o}});var r=e(70987),o=function(n){var t=n||r.Z,e=t.brand,o=e.earth200,i=e.earth300,c=e.earth400,a=e.energy200,u=e.energy300,l=e.energy400,d=e.fire200,s=e.fire300,f=e.fire400,p=e.water200,h=e.water300,m=e.water400,y=e.wind200,b=e.wind300,g=e.wind400,v=t.chart;return[v.backgroundPrimary,v.backgroundSecondary,v.backgroundTertiary].concat([g,m,f,l,c,b,h,s,u,i,y,p,d,a,o])}},94035:function(n,t,e){"use strict";var r=e(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;"]);t.Z=r},79221:function(n,t,e){"use strict";e.d(t,{P5:function(){return r},Vs:function(){return o}});e(81728);function r(n,t){var e=t||{},r=e.maxFractionDigits,o=e.minAmount,i=Intl.NumberFormat("en-US",{maximumFractionDigits:r||2,notation:"compact"});return"number"!==typeof n?n:n>=(o||1e4)?i.format(n):n.toString()}function o(n,t,e){var r,o;if("undefined"===typeof n||"undefined"===typeof t)return 0;var i=null===n||void 0===n||null===(r=n(t,e))||void 0===r||null===(o=r.props)||void 0===o?void 0:o.children;return(Array.isArray(i)?i:[i]).join("").length}},8454:function(n,t,e){"use strict";var r,o,i,c;e.d(t,{Q0:function(){return r},qs:function(){return o}}),function(n){n.ADD="add",n.AVERAGE="average",n.CLEAN_COLUMN_NAME="clean_column_name",n.COUNT="count",n.COUNT_DISTINCT="count_distinct",n.CUSTOM="custom",n.DIFF="diff",n.DROP_DUPLICATE="drop_duplicate",n.EXPAND_COLUMN="expand_column",n.EXPLODE="explode",n.FILTER="filter",n.FIRST="first",n.FIX_SYNTAX_ERRORS="fix_syntax_errors",n.GROUP="group",n.IMPUTE="impute",n.JOIN="join",n.LAST="last",n.LIMIT="limit",n.MAX="max",n.MEDIAN="median",n.MIN="min",n.MODE="mode",n.NORMALIZE="normalize",n.REFORMAT="reformat",n.REMOVE="remove",n.REMOVE_OUTLIERS="remove_outliers",n.SCALE="scale",n.SELECT="select",n.SHIFT_DOWN="shift_down",n.SHIFT_UP="shift_up",n.SORT="sort",n.STANDARDIZE="standardize",n.SUM="sum",n.UNION="union",n.UPDATE_TYPE="update_type",n.UPDATE_VALUE="update_value"}(r||(r={})),function(n){n.COLUMN="column",n.ROW="row"}(o||(o={})),function(n){n.NOT_APPLIED="not_applied",n.COMPLETED="completed"}(i||(i={})),function(n){n.FEATURE="feature"}(c||(c={}))},44425:function(n,t,e){"use strict";e.d(t,{$W:function(){return b},DA:function(){return m},HX:function(){return x},J8:function(){return O},L8:function(){return a},LE:function(){return f},Lk:function(){return E},Lq:function(){return p},M5:function(){return h},Q3:function(){return g},Qj:function(){return T},Ut:function(){return Z},V4:function(){return R},VZ:function(){return v},dO:function(){return s},f2:function(){return _},iZ:function(){return A},t6:function(){return u},tf:function(){return d}});var r,o,i,c,a,u,l=e(82394);!function(n){n.CONDITION="condition",n.DBT_SNAPSHOT="snapshot",n.DYNAMIC="dynamic",n.DYNAMIC_CHILD="dynamic_child",n.REDUCE_OUTPUT="reduce_output",n.REPLICA="replica"}(a||(a={})),function(n){n.MARKDOWN="markdown",n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(u||(u={}));var d,s=(r={},(0,l.Z)(r,u.MARKDOWN,"MD"),(0,l.Z)(r,u.PYTHON,"PY"),(0,l.Z)(r,u.R,"R"),(0,l.Z)(r,u.SQL,"SQL"),(0,l.Z)(r,u.YAML,"YAML"),r),f=(o={},(0,l.Z)(o,u.MARKDOWN,"Markdown"),(0,l.Z)(o,u.PYTHON,"Python"),(0,l.Z)(o,u.R,"R"),(0,l.Z)(o,u.SQL,"SQL"),(0,l.Z)(o,u.YAML,"YAML"),o);!function(n){n.CALLBACK="callback",n.CHART="chart",n.CONDITIONAL="conditional",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.GLOBAL_DATA_PRODUCT="global_data_product",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.MARKDOWN="markdown",n.TRANSFORMER="transformer"}(d||(d={}));var p,h=[d.CALLBACK,d.CONDITIONAL,d.EXTENSION];!function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(p||(p={}));var m,y,b=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN,d.TRANSFORMER],g=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN,d.TRANSFORMER],v=[d.DATA_EXPORTER,d.DATA_LOADER],O=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],x=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],T=[d.CHART,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN],A=[d.CALLBACK,d.CHART,d.EXTENSION,d.SCRATCHPAD,d.MARKDOWN],E=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SENSOR,d.TRANSFORMER];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(m||(m={})),function(n){n.BLOCK_FILE="block_file",n.CUSTOM_BLOCK_TEMPLATE="custom_block_template",n.MAGE_TEMPLATE="mage_template"}(y||(y={}));var _=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],R=(i={},(0,l.Z)(i,d.CALLBACK,"Callback"),(0,l.Z)(i,d.CHART,"Chart"),(0,l.Z)(i,d.CONDITIONAL,"Conditional"),(0,l.Z)(i,d.CUSTOM,"Custom"),(0,l.Z)(i,d.DATA_EXPORTER,"Data exporter"),(0,l.Z)(i,d.DATA_LOADER,"Data loader"),(0,l.Z)(i,d.DBT,"DBT"),(0,l.Z)(i,d.EXTENSION,"Extension"),(0,l.Z)(i,d.GLOBAL_DATA_PRODUCT,"Global data product"),(0,l.Z)(i,d.MARKDOWN,"Markdown"),(0,l.Z)(i,d.SCRATCHPAD,"Scratchpad"),(0,l.Z)(i,d.SENSOR,"Sensor"),(0,l.Z)(i,d.TRANSFORMER,"Transformer"),i),Z=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER,d.SENSOR];c={},(0,l.Z)(c,d.DATA_EXPORTER,"DE"),(0,l.Z)(c,d.DATA_LOADER,"DL"),(0,l.Z)(c,d.SCRATCHPAD,"SP"),(0,l.Z)(c,d.SENSOR,"SR"),(0,l.Z)(c,d.MARKDOWN,"MD"),(0,l.Z)(c,d.TRANSFORMER,"TF")},72098:function(n,t,e){"use strict";var r;e.d(t,{U:function(){return r}}),function(n){n.PYSPARK="pysparkkernel",n.PYTHON3="python3"}(r||(r={}))},57653:function(n,t,e){"use strict";e.d(t,{$1:function(){return m},G7:function(){return g},LM:function(){return v},Mj:function(){return O},QK:function(){return h},RH:function(){return b},a_:function(){return T},fj:function(){return A},kA:function(){return x},qL:function(){return a},r0:function(){return y}});var r,o,i,c,a,u=e(75582),l=e(82394),d=e(72473),s=e(72098);function f(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function p(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?f(Object(e),!0).forEach((function(t){(0,l.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):f(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}!function(n){n.INTEGRATION="integration",n.PYTHON="python",n.PYSPARK="pyspark",n.STREAMING="streaming"}(a||(a={}));var h,m,y,b=(r={},(0,l.Z)(r,a.INTEGRATION,"Integration"),(0,l.Z)(r,a.PYTHON,"Python"),(0,l.Z)(r,a.PYSPARK,"PySpark"),(0,l.Z)(r,a.STREAMING,"Streaming"),r),g=(o={},(0,l.Z)(o,a.INTEGRATION,"Integration"),(0,l.Z)(o,a.PYTHON,"Standard"),(0,l.Z)(o,a.PYSPARK,"PySpark"),(0,l.Z)(o,a.STREAMING,"Streaming"),o),v="all",O=(a.PYTHON,a.INTEGRATION,a.STREAMING,i={},(0,l.Z)(i,v,d.ie),(0,l.Z)(i,a.INTEGRATION,d.YC),(0,l.Z)(i,a.PYTHON,d.El),(0,l.Z)(i,a.STREAMING,d.dB),i);!function(n){n.ACTIVE="active",n.INACTIVE="inactive",n.NO_SCHEDULES="no_schedules",n.RETRY="retry",n.RETRY_INCOMPLETE_BLOCK_RUNS="retry_incomplete_block_runs"}(h||(h={})),function(n){n.GROUP="group_by",n.HISTORY_DAYS="from_history_days",n.NO_TAGS="no_tags",n.STATUS="status[]",n.TAG="tag[]",n.TYPE="type[]"}(m||(m={})),function(n){n.STATUS="status",n.TAG="tag",n.TYPE="type"}(y||(y={}));var x=[h.ACTIVE,h.INACTIVE,h.NO_SCHEDULES],T=(c={},(0,l.Z)(c,a.PYTHON,s.U.PYTHON3),(0,l.Z)(c,a.PYSPARK,s.U.PYSPARK),c),A=Object.entries(T).reduce((function(n,t){var e=(0,u.Z)(t,2),r=e[0],o=e[1];return p(p({},n),{},(0,l.Z)({},o,r))}),{})},85854:function(n,t,e){"use strict";var r,o,i,c,a,u,l,d,s=e(82394),f=e(26304),p=e(26653),h=e(38626),m=e(33591),y=e(44897),b=e(95363),g=e(61896),v=e(30160),O=e(70515),x=e(38276),T=e(28598),A=["children","condensed","inline","level","marketing","spacingBelow"];function E(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function _(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?E(Object(e),!0).forEach((function(t){(0,s.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):E(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var R=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],v.IH,(function(n){return n.color&&"\n color: ".concat(n.color,"\n ")}),(function(n){return n.yellow&&"\n color: ".concat((n.theme.accent||y.Z.accent).yellow,";\n ")}),(function(n){return n.center&&"\n text-align: center;\n "}),(function(n){return!n.monospace&&0===Number(n.weightStyle)&&"\n font-family: ".concat(b.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "})),Z=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||y.Z.content).active,";\n ")})),N=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],R,m.media.md(r||(r=(0,p.Z)(["\n ","\n "])),g.aQ),m.media.lg(o||(o=(0,p.Z)(["\n ","\n "])),g.aQ),m.media.xl(i||(i=(0,p.Z)(["\n ","\n "])),g.aQ)),S=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],R,g.MJ),P=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],R,m.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),m.media.sm(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),m.media.md(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),m.media.lg(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),m.media.xl(d||(d=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI)),k=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],R,g.BL),I=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],R),C=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],R),D=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],R),L=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],R,(function(n){return 1===n.level&&"\n ".concat(g.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(g.BL,"\n ")}),(function(n){return 3===n.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(n){return 4===n.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),j=function(n){var t,e=n.children,r=n.condensed,o=n.inline,i=n.level,c=n.marketing,a=n.spacingBelow,u=(0,f.Z)(n,A);o?t=L:0===Number(i)?t=N:1===Number(i)?t=c?P:S:2===Number(i)?t=k:3===Number(i)?t=I:4===Number(i)?t=C:5===Number(i)&&(t=D);var l=(0,T.jsxs)(t,_(_({},u),{},{level:i,children:[a&&(0,T.jsx)(x.Z,{mb:r?2:3,children:e}),!a&&e]}));return o?l:(0,T.jsx)(Z,{children:l})};j.defaultProps={level:3,weightStyle:6},t.Z=j},82864:function(n,t,e){"use strict";e.r(t);var r=e(77837),o=e(75582),i=e(82394),c=e(38860),a=e.n(c),u=e(82684),l=e(92083),d=e.n(l),s=e(39867),f=e(55485),p=e(85854),h=e(74168),m=e(7116),y=e(93808),b=e(38276),g=e(44085),v=e(30160),O=e(35686),x=e(44897),T=e(42631),A=e(46978),E=e(64657),_=e(38626),R=e(81728),Z=e(55283),N=e(3917),S=e(86735),P=e(28598);function k(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function I(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?k(Object(e),!0).forEach((function(t){(0,i.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):k(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var C="all_blocks";function D(n){var t,e=n.pipeline,r=(0,u.useContext)(_.ThemeContext),c=(0,u.useState)(null),a=c[0],l=c[1],y=e.uuid,k=O.ZP.pipelines.detail(y,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,D=(0,u.useMemo)((function(){return I(I({},null===k||void 0===k?void 0:k.pipeline),{},{uuid:y})}),[k,y]),L=O.ZP.pipeline_schedules.pipelines.list(y).data,j=(0,u.useMemo)((function(){return null===L||void 0===L?void 0:L.pipeline_schedules}),[L]),w=(0,u.useMemo)((function(){return(0,S.HK)(null===D||void 0===D?void 0:D.blocks,(function(n){return n.uuid}))||{}}),[D]),M={pipeline_uuid:y};(a||0===a)&&(M.pipeline_schedule_id=Number(a));var H=O.ZP.monitor_stats.detail("block_run_time",M),U=H.data,B=H.mutate;(0,u.useEffect)((function(){B(a)}),[B,a]);var F=((null===U||void 0===U?void 0:U.monitor_stat)||{}).stats,Y=(0,u.useMemo)((function(){return(0,N.Y_)()}),[]),K=(0,u.useMemo)((function(){var n,t;return F&&(n=(0,i.Z)({},C,[]),t={},Object.entries(F).forEach((function(e){var r=(0,o.Z)(e,2),i=r[0],c=r[1].data;t[i]=[],Y.forEach((function(e,r){t[i].push({x:e,y:e in c?[c[e]]:null}),n.all_blocks[r]||(n.all_blocks[r]={x:e,y:null}),e in c&&(n.all_blocks[r].y||(n.all_blocks[r].y=[]),n.all_blocks[r].y.push({blockUUID:i,runtime:c[e]}))}))}))),I(I({},n),t)}),[Y,F]),z=(0,u.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[]);return(0,P.jsx)(m.Z,{breadcrumbs:z,monitorType:E.a_.BLOCK_RUNTIME,pipeline:D,subheader:(0,P.jsx)(f.ZP,{children:(0,P.jsxs)(g.Z,{backgroundColor:x.Z.interactive.defaultBackground,label:"Trigger:",onChange:function(n){var t=n.target.value;"initial"!==t?(l(t),B(t)):(B(),l(null))},value:a||"initial",children:[(0,P.jsx)("option",{value:"initial",children:"All"}),j&&j.map((function(n){return(0,P.jsx)("option",{value:n.id,children:n.name},n.id)}))]})}),children:(0,P.jsx)(b.Z,{mx:2,children:(null===K||void 0===K||null===(t=K.all_blocks)||void 0===t?void 0:t.length)>0&&Object.entries(K).map((function(n,t){var e,i,c=(0,o.Z)(n,2),a=c[0],u=c[1];return(0,P.jsxs)(b.Z,{mt:2,children:[(0,P.jsxs)(f.ZP,{alignItems:"center",children:[(0,P.jsx)(b.Z,{mx:1,children:(0,P.jsx)(s.Z,{color:(0,Z.qn)(null===(e=w[a])||void 0===e?void 0:e.type,{blockColor:null===(i=w[a])||void 0===i?void 0:i.color,theme:r}).accent,size:A.ZG,square:!0})}),(0,P.jsx)(p.Z,{level:4,children:a===C?(0,R.J3)((0,R.kC)(a)):a})]}),(0,P.jsx)("div",{style:{backgroundColor:x.Z.background.chartBlock,borderRadius:"".concat(T.TR,"px"),marginTop:"8px"},children:(0,P.jsx)(h.Z,{data:u,getX:function(n){return d()(n.x).valueOf()},getY:a===C?function(n,t){var e,r;return null===n||void 0===n||null===(e=n.y)||void 0===e||null===(r=e[t])||void 0===r?void 0:r.runtime}:null,getYScaleValues:a===C?function(n){return(null===n||void 0===n?void 0:n.map((function(n){return null===n||void 0===n?void 0:n.runtime})))||[]}:null,gridProps:{stroke:"black",strokeDasharray:null,strokeOpacity:.2},height:a===C?800:200,hideGridX:!0,margin:{bottom:30,left:35,right:-1,top:10},noCurve:!0,renderXTooltipContent:function(n){return(0,P.jsx)(v.ZP,{center:!0,inverted:!0,small:!0,children:d()(n.x).format("MMM DD")})},renderYTooltipContent:function(n,t){var e,r=null===n||void 0===n||null===(e=n.y)||void 0===e?void 0:e[t];if(a===C){var o=null===r||void 0===r?void 0:r.blockUUID,i=null===r||void 0===r?void 0:r.runtime;return void 0!==i&&(0,P.jsxs)(v.ZP,{center:!0,inverted:!0,small:!0,children:[o||"",": ",i.toFixed?i.toFixed(3):i,"s"]})}return void 0!==r&&(0,P.jsxs)(v.ZP,{center:!0,inverted:!0,small:!0,children:[r.toFixed?r.toFixed(3):r,"s"]})},thickStroke:!0,xLabelFormat:function(n){return d()(n).format("MMM DD")},xLabelRotate:!1,yLabelFormat:function(n){return n%1===0?n:n.toFixed(1)}})})]},"".concat(a,"_").concat(t))}))})})}D.getInitialProps=function(){var n=(0,r.Z)(a().mark((function n(t){var e;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.query.pipeline,n.abrupt("return",{pipeline:{uuid:e}});case 2:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}(),t.default=(0,y.Z)(D)},76017:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors/block-runtime",function(){return e(82864)}])}},function(n){n.O(0,[2678,3662,1154,844,5896,2714,3122,4267,600,8487,8264,5457,9774,2888,179],(function(){return t=76017,n(n.s=t);var t}));var t=n.O();_N_E=t}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7713],{98677:function(n,e,t){"use strict";function r(n,e,t){n=+n,e=+e,t=(i=arguments.length)<2?(e=n,n=0,1):i<3?1:+t;for(var r=-1,i=0|Math.max(0,Math.ceil((e-n)/t)),o=new Array(i);++r<i;)o[r]=n+r*t;return o}t.d(e,{Z:function(){return a}});var i=t(8208),o=t(8162);function u(){var n,e,t=(0,o.Z)().unknown(void 0),c=t.domain,a=t.range,l=0,f=1,s=!1,d=0,p=0,h=.5;function g(){var t=c().length,i=f<l,o=i?f:l,u=i?l:f;n=(u-o)/Math.max(1,t-d+2*p),s&&(n=Math.floor(n)),o+=(u-o-n*(t-d))*h,e=n*(1-d),s&&(o=Math.round(o),e=Math.round(e));var g=r(t).map((function(e){return o+n*e}));return a(i?g.reverse():g)}return delete t.unknown,t.domain=function(n){return arguments.length?(c(n),g()):c()},t.range=function(n){return arguments.length?([l,f]=n,l=+l,f=+f,g()):[l,f]},t.rangeRound=function(n){return[l,f]=n,l=+l,f=+f,s=!0,g()},t.bandwidth=function(){return e},t.step=function(){return n},t.round=function(n){return arguments.length?(s=!!n,g()):s},t.padding=function(n){return arguments.length?(d=Math.min(1,p=+n),g()):d},t.paddingInner=function(n){return arguments.length?(d=Math.min(1,n),g()):d},t.paddingOuter=function(n){return arguments.length?(p=+n,g()):p},t.align=function(n){return arguments.length?(h=Math.max(0,Math.min(1,n)),g()):h},t.copy=function(){return u(c(),[l,f]).round(s).paddingInner(d).paddingOuter(p).align(h)},i.o.apply(g(),arguments)}var c=(0,t(93342).Z)("domain","range","reverse","align","padding","round");function a(n){return c(u(),n)}},62072:function(n,e,t){"use strict";function r(n){return null==n?void 0:n[0]}function i(n){return null==n?void 0:n[1]}t.d(e,{l8:function(){return r},xf:function(){return i}})},53989:function(n,e,t){"use strict";function r(n){if("bandwidth"in n)return n.bandwidth();var e=n.range(),t=n.domain();return Math.abs(e[e.length-1]-e[0])/t.length}t.d(e,{Z:function(){return r}})},59309:function(n,e,t){"use strict";t.d(e,{ZP:function(){return l}});var r=t(12759),i=t(27500),o=t(82610),u=t(34812),c=t(77944),a={expand:r.Z,diverging:i.Z,none:o.Z,silhouette:u.Z,wiggle:c.Z};Object.keys(a);function l(n){return n&&a[n]||a.none}},18246:function(n,e,t){"use strict";t.d(e,{ZP:function(){return l}});var r=t(39586),i=t(25516),o=t(54164),u=t(8512),c=t(2010),a={ascending:r.Z,descending:i.Z,insideout:o.Z,none:u.Z,reverse:c.Z};Object.keys(a);function l(n){return n&&a[n]||a.none}},13946:function(n,e,t){"use strict";t.d(e,{t:function(){return r}});var r=Array.prototype.slice},27500:function(n,e,t){"use strict";function r(n,e){if((c=n.length)>0)for(var t,r,i,o,u,c,a=0,l=n[e[0]].length;a<l;++a)for(o=u=0,t=0;t<c;++t)(i=(r=n[e[t]][a])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=u,r[0]=u+=i):(r[0]=0,r[1]=i)}t.d(e,{Z:function(){return r}})},12759:function(n,e,t){"use strict";t.d(e,{Z:function(){return i}});var r=t(82610);function i(n,e){if((i=n.length)>0){for(var t,i,o,u=0,c=n[0].length;u<c;++u){for(o=t=0;t<i;++t)o+=n[t][u][1]||0;if(o)for(t=0;t<i;++t)n[t][u][1]/=o}(0,r.Z)(n,e)}}},82610:function(n,e,t){"use strict";function r(n,e){if((i=n.length)>1)for(var t,r,i,o=1,u=n[e[0]],c=u.length;o<i;++o)for(r=u,u=n[e[o]],t=0;t<c;++t)u[t][1]+=u[t][0]=isNaN(r[t][1])?r[t][0]:r[t][1]}t.d(e,{Z:function(){return r}})},34812:function(n,e,t){"use strict";t.d(e,{Z:function(){return i}});var r=t(82610);function i(n,e){if((t=n.length)>0){for(var t,i=0,o=n[e[0]],u=o.length;i<u;++i){for(var c=0,a=0;c<t;++c)a+=n[c][i][1]||0;o[i][1]+=o[i][0]=-a/2}(0,r.Z)(n,e)}}},77944:function(n,e,t){"use strict";t.d(e,{Z:function(){return i}});var r=t(82610);function i(n,e){if((o=n.length)>0&&(i=(t=n[e[0]]).length)>0){for(var t,i,o,u=0,c=1;c<i;++c){for(var a=0,l=0,f=0;a<o;++a){for(var s=n[e[a]],d=s[c][1]||0,p=(d-(s[c-1][1]||0))/2,h=0;h<a;++h){var g=n[e[h]];p+=(g[c][1]||0)-(g[c-1][1]||0)}l+=d,f+=p*d}t[c-1][1]+=t[c-1][0]=u,l&&(u-=f/l)}t[c-1][1]+=t[c-1][0]=u,(0,r.Z)(n,e)}}},34128:function(n,e,t){"use strict";t.d(e,{Z:function(){return i}});var r=t(8512);function i(n){var e=n.map(o);return(0,r.Z)(n).sort((function(n,t){return e[n]-e[t]}))}function o(n){for(var e,t=-1,r=0,i=n.length,o=-1/0;++t<i;)(e=+n[t][1])>o&&(o=e,r=t);return r}},39586:function(n,e,t){"use strict";t.d(e,{S:function(){return o},Z:function(){return i}});var r=t(8512);function i(n){var e=n.map(o);return(0,r.Z)(n).sort((function(n,t){return e[n]-e[t]}))}function o(n){for(var e,t=0,r=-1,i=n.length;++r<i;)(e=+n[r][1])&&(t+=e);return t}},25516:function(n,e,t){"use strict";t.d(e,{Z:function(){return i}});var r=t(39586);function i(n){return(0,r.Z)(n).reverse()}},54164:function(n,e,t){"use strict";t.d(e,{Z:function(){return o}});var r=t(34128),i=t(39586);function o(n){var e,t,o=n.length,u=n.map(i.S),c=(0,r.Z)(n),a=0,l=0,f=[],s=[];for(e=0;e<o;++e)t=c[e],a<l?(a+=u[t],f.push(t)):(l+=u[t],s.push(t));return s.reverse().concat(f)}},8512:function(n,e,t){"use strict";function r(n){for(var e=n.length,t=new Array(e);--e>=0;)t[e]=e;return t}t.d(e,{Z:function(){return r}})},2010:function(n,e,t){"use strict";t.d(e,{Z:function(){return i}});var r=t(8512);function i(n){return(0,r.Z)(n).reverse()}},75823:function(n,e,t){"use strict";t.d(e,{Z:function(){return a}});var r=t(13946),i=t(90875),o=t(82610),u=t(8512);function c(n,e){return n[e]}function a(){var n=(0,i.Z)([]),e=u.Z,t=o.Z,a=c;function l(r){var i,o,u=n.apply(this,arguments),c=r.length,l=u.length,f=new Array(l);for(i=0;i<l;++i){for(var s,d=u[i],p=f[i]=new Array(c),h=0;h<c;++h)p[h]=s=[0,+a(r[h],d,h,r)],s.data=r[h];p.key=d}for(i=0,o=e(f);i<l;++i)f[o[i]].index=i;return t(f,o),f}return l.keys=function(e){return arguments.length?(n="function"===typeof e?e:(0,i.Z)(r.t.call(e)),l):n},l.value=function(n){return arguments.length?(a="function"===typeof n?n:(0,i.Z)(+n),l):a},l.order=function(n){return arguments.length?(e=null==n?u.Z:"function"===typeof n?n:(0,i.Z)(r.t.call(n)),l):e},l.offset=function(n){return arguments.length?(t=null==n?o.Z:n,l):t},l}},59739:function(n,e,t){"use strict";var r=t(56669);function i(){}function o(){}o.resetWarningCache=i,n.exports=function(){function n(n,e,t,i,o,u){if(u!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return n}n.isRequired=n;var t={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:e,element:n,elementType:n,instanceOf:e,node:n,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},47329:function(n,e,t){n.exports=t(59739)()},56669:function(n){"use strict";n.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},64657:function(n,e,t){"use strict";t.d(e,{CD:function(){return c},NU:function(){return o},a_:function(){return r},hu:function(){return u}});var r,i=t(44897);!function(n){n.BLOCK_RUNS="block_runs",n.BLOCK_RUNTIME="block_runtime",n.PIPELINE_RUNS="pipeline_runs"}(r||(r={}));var o=[i.Z.accent.warning,i.Z.background.success,i.Z.accent.negative,i.Z.content.active,i.Z.interactive.linkPrimary],u=["cancelled","completed","failed","initial","running"],c=-50},7116:function(n,e,t){"use strict";t.d(e,{Z:function(){return m}});t(82684);var r=t(34376),i=t(85854),o=t(75457),u=t(38276),c=t(30160),a=t(74395),l=t(38626),f=t(44897),s=t(70515),d=l.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1in9sst-0"})(["padding:","px ","px;"," ",""],s.iI,s.tr,(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||f.Z.interactive).checked,";\n ")}),(function(n){return!n.selected&&"\n cursor: pointer;\n "})),p=t(64657),h=t(28795),g=t(28598);var m=function(n){var e=n.breadcrumbs,t=n.children,l=n.errors,f=n.monitorType,m=n.pipeline,v=n.setErrors,y=n.subheader,b=(0,r.useRouter)();return(0,g.jsx)(o.Z,{before:(0,g.jsxs)(a.M,{children:[(0,g.jsx)(u.Z,{p:s.cd,children:(0,g.jsx)(i.Z,{level:4,muted:!0,children:"Insights"})}),(0,g.jsx)(d,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors","/pipelines/".concat(null===m||void 0===m?void 0:m.uuid,"/monitors"))},selected:p.a_.PIPELINE_RUNS==f,children:(0,g.jsx)(c.ZP,{children:"Pipeline runs"})}),(0,g.jsx)(d,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors/block-runs","/pipelines/".concat(null===m||void 0===m?void 0:m.uuid,"/monitors/block-runs"))},selected:p.a_.BLOCK_RUNS==f,children:(0,g.jsx)(c.ZP,{children:"Block runs"})}),(0,g.jsx)(d,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors/block-runtime","/pipelines/".concat(null===m||void 0===m?void 0:m.uuid,"/monitors/block-runtime"))},selected:p.a_.BLOCK_RUNTIME==f,children:(0,g.jsx)(c.ZP,{children:"Block runtime"})})]}),breadcrumbs:e,errors:l,pageName:h.M.MONITOR,pipeline:m,setErrors:v,subheader:y,uuid:"pipeline/monitor",children:t})}},74395:function(n,e,t){"use strict";t.d(e,{M:function(){return u},W:function(){return o}});var r=t(38626),i=t(46684),o=34*t(70515).iI,u=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],i.Mz)},24491:function(n,e,t){"use strict";t.d(e,{i:function(){return d},p:function(){return l}});var r=t(82394),i=t(75582),o=t(61556),u=t(57653);function c(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 a(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?c(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var l=function(n,e){if(!n)return[];var t=Object.entries(n).reduce((function(n,e){var t=(0,i.Z)(e,2),r=(t[0],t[1].data),o={};return Object.entries(r).forEach((function(e){var t=(0,i.Z)(e,2),r=t[0],u=t[1],c={};r in n&&(c=n[r]);var l={};Object.entries(u).forEach((function(n){var e,t=(0,i.Z)(n,2),r=t[0],o=t[1],u=null!==(e=c)&&void 0!==e&&e[r]?c[r]:0;l[r]=u+o})),o[r]=a(a({},c),l)})),a(a({},n),o)}),{});return e.map((function(n){return a({date:n},t[n]||{})}))},f=o.E.reduce((function(n,e){return a(a({},n),{},(0,r.Z)({},e,0))}),{}),s=new Set(o.E),d=function(n,e){var t;if(!n)return{groupedPipelineRunData:[],pipelineRunCountByPipelineType:{},totalPipelineRunCount:0,ungroupedPipelineRunData:[]};var o=(t={},(0,r.Z)(t,u.qL.INTEGRATION,a({},f)),(0,r.Z)(t,u.qL.PYSPARK,{}),(0,r.Z)(t,u.qL.PYTHON,a({},f)),(0,r.Z)(t,u.qL.STREAMING,a({},f)),t),c=0,l=Object.entries(n).reduce((function(n,e){var t=(0,i.Z)(e,2),r=(t[0],t[1].data),u={},l={};return Object.entries(r).forEach((function(e){var t=(0,i.Z)(e,2),r=t[0],f=t[1],d={},p={};r in n.grouped?(d=a({},n.grouped[r]),u[r]=a({},d)):u[r]={},r in n.ungrouped&&(p=a({},n.ungrouped[r]));var h={},g={};Object.entries(f).forEach((function(e){var t=(0,i.Z)(e,2),f=t[0],m=t[1];"null"===f||null===f||(r in n.grouped&&f in n.grouped[r]&&(d[f]=a({},n.grouped[r][f])),h[f]={},Object.entries(m).forEach((function(n){var e,t,r,u=(0,i.Z)(n,2),a=u[0],l=u[1],m=null!==(e=d)&&void 0!==e&&null!==(t=e[f])&&void 0!==t&&t[a]?d[f][a]:0;h[f][a]=m+l;var v=null!==(r=p)&&void 0!==r&&r[a]?p[a]:0;g[a]=null!==g&&void 0!==g&&g[a]?g[a]+l:v+l,s.has(a)&&(o[f][a]=(o[f][a]||0)+l),c+=l})),u[r][f]=a(a({},d[f]),h[f]),l[r]=a(a({},p),g))}))})),{grouped:a(a({},n.grouped),u),ungrouped:a(a({},n.ungrouped),l)}}),{grouped:{},ungrouped:{}}),d=[],p=[];return e.forEach((function(n){d.push(a({date:n},l.grouped[n]||{})),p.push(a({date:n},l.ungrouped[n]||{}))})),{groupedPipelineRunData:d,pipelineRunCountByPipelineType:o,totalPipelineRunCount:c,ungroupedPipelineRunData:p}}},53998:function(n,e,t){"use strict";t.d(e,{Z:function(){return G}});var r=t(26304),i=t(82394),o=t(21831),u=t(82684),c=t(84969),a=t(90948),l=t(63588),f=t.n(l),s=t(75823),d=t(29989),p=t(62072),h=t(53989),g=t(49894),m=t(18246),v=t(59309),y=t(65743),b=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function Z(){return Z=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Z.apply(this,arguments)}function O(n){var e=n.data,t=n.className,r=n.top,i=n.left,o=n.x,c=n.y0,a=void 0===c?p.l8:c,l=n.y1,O=void 0===l?p.xf:l,x=n.xScale,j=n.yScale,P=n.color,N=n.keys,_=n.value,E=n.order,w=n.offset,I=n.children,T=function(n,e){if(null==n)return{};var t,r,i={},o=Object.keys(n);for(r=0;r<o.length;r++)t=o[r],e.indexOf(t)>=0||(i[t]=n[t]);return i}(n,b),S=(0,s.Z)();N&&S.keys(N),_&&(0,g.Z)(S.value,_),E&&S.order((0,m.ZP)(E)),w&&S.offset((0,v.ZP)(w));var k=S(e),A=(0,h.Z)(x),L=k.map((function(n,e){var t=n.key;return{index:e,key:t,bars:n.map((function(e,r){var i=(j(a(e))||0)-(j(O(e))||0),u=j(O(e)),c="bandwidth"in x?x(o(e.data)):Math.max((x(o(e.data))||0)-A/2);return{bar:e,key:t,index:r,height:i,width:A,x:c||0,y:u||0,color:P(n.key,r)}}))}}));return I?u.createElement(u.Fragment,null,I(L)):u.createElement(d.Z,{className:f()("visx-bar-stack",t),top:r,left:i},L.map((function(n){return n.bars.map((function(e){return u.createElement(y.Z,Z({key:"bar-stack-"+n.index+"-"+e.index,x:e.x,y:e.y,height:e.height,width:e.width,fill:e.color},T))}))})))}var x=t(67778),j=t(17066),P=t(29179),N=t(65376),_=t(48072),E=t(98677),w=t(84181),I=t(24903),T=t(55485),S=t(26226),k=t(30160),A=t(94035),L=t(44897),C=t(42631),R=t(95363),M=t(70515),D=t(48277),Y=t(79221),H=t(28598),U=["height","width","xAxisLabel","yAxisLabel"];function z(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function B(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?z(Object(t),!0).forEach((function(e){(0,i.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):z(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function F(n){var e=n.backgroundColor,t=n.colors,r=n.data,i=n.getXValue,u=(n.getYValue,n.height),l=n.keys,f=n.margin,s=n.numYTicks,p=n.showLegend,h=n.tooltipLeftOffset,g=void 0===h?0:h,m=n.width,v=n.xLabelFormat,y=n.yLabelFormat,b=(0,P.Z)(),Z=b.hideTooltip,T=b.showTooltip,S=b.tooltipData,A=b.tooltipLeft,M=b.tooltipOpen,U=b.tooltipTop,z=m-(f.left+f.right),F=u-(f.bottom+f.top),G=r.reduce((function(n,e){var t=e,r=l.reduce((function(n,e){return Number(t[e])&&(n+=Number(t[e])),n}),0);return n.push(r),n}),[]),V=(0,E.Z)({domain:r.map(i),padding:.4,range:[0,z],round:!1}),K=(0,w.Z)({domain:[0,Math.max.apply(Math,(0,o.Z)(G))],range:[F,0],round:!0}),q=null;M&&S&&(q=S.bar.data[S.key],Number.isSafeInteger(q)&&(q=(0,D.uf)(q)));var W=(0,I.Z)({domain:l,range:t});return(0,H.jsxs)("div",{style:{position:"relative",zIndex:2},children:[(0,H.jsxs)("svg",{height:u,width:m,children:[(0,H.jsx)("rect",{fill:e||L.Z.background.chartBlock,height:u,rx:14,width:m,x:0,y:0}),(0,H.jsx)(x.Z,{height:F,left:f.left,scale:K,stroke:"black",strokeOpacity:.2,top:f.top,width:z}),(0,H.jsx)(d.Z,{left:f.left,top:f.top,children:(0,H.jsx)(O,{color:W,data:r,keys:l,value:function(n,e){return n[e]||0},x:i,xScale:V,yScale:K,children:function(n){return n.map((function(n){return n.bars.map((function(e){return(0,H.jsx)("rect",{fill:e.color,height:e.height,onMouseLeave:Z,onMouseMove:function(n){var t=(0,_.Z)(n),r=e.x+e.width/2+g;T({tooltipData:e,tooltipLeft:r,tooltipTop:(null===t||void 0===t?void 0:t.y)+10})},width:e.width,x:e.x,y:e.y},"bar-stack-".concat(n.index,"-").concat(e.index))}))}))}})}),(0,H.jsx)(c.Z,{hideTicks:!0,left:f.left,numTicks:s,scale:K,stroke:L.Z.content.muted,tickFormat:function(n){return y?y(n):(0,Y.P5)(n)},tickLabelProps:function(){return{fill:L.Z.content.muted,fontFamily:R.ry,fontSize:11,textAnchor:"end",transform:"translate(0,2.5)"}},top:f.top}),(0,H.jsx)(a.Z,{hideTicks:!0,left:f.left,scale:V,stroke:L.Z.content.muted,tickFormat:v,tickLabelProps:function(){return{fill:L.Z.content.muted,fontFamily:R.ry,fontSize:11,textAnchor:"middle"}},top:F+f.top})]}),p&&(0,H.jsx)("div",{style:{display:"flex",fontSize:"14px",justifyContent:"center",position:"absolute",top:f.top/2-10,width:"100%"},children:(0,H.jsx)(j.Z,{direction:"row",labelMargin:"0 15px 0 0",scale:W})}),M&&S&&(0,H.jsxs)(N.Z,{left:A,style:B(B({},N.j),{},{backgroundColor:L.Z.background.page,borderRadius:"".concat(C.TR,"px"),padding:".3rem .4rem"}),top:U,children:[(0,H.jsx)(k.ZP,{bold:!0,color:W(S.key),children:S.key}),(0,H.jsx)(k.ZP,{children:q}),(0,H.jsx)(k.ZP,{children:i(S.bar.data)})]})]})}var G=function(n){var e=n.height,t=n.width,i=n.xAxisLabel,o=n.yAxisLabel,u=(0,r.Z)(n,U);return(0,H.jsx)(H.Fragment,{children:(0,H.jsxs)("div",{style:{height:e,marginBottom:M.iI,width:t},children:[o&&(0,H.jsx)(T.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,H.jsx)(A.Z,{children:(0,H.jsx)(k.ZP,{center:!0,muted:!0,small:!0,children:o})})}),(0,H.jsx)("div",{style:{height:e,width:o?0===t?t:t-28:t},children:(0,H.jsx)(S.Z,{children:function(n){var e=n.height,t=n.width;return(0,H.jsx)(F,B(B({},u),{},{height:e,width:t}))}})}),i&&(0,H.jsx)("div",{style:{paddingLeft:o?36:0,paddingTop:4},children:(0,H.jsx)(k.ZP,{center:!0,muted:!0,small:!0,children:i})})]})})}},94035:function(n,e,t){"use strict";var r=t(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(n,e,t){"use strict";t.d(e,{P5:function(){return r},Vs:function(){return i}});t(81728);function r(n,e){var t=e||{},r=t.maxFractionDigits,i=t.minAmount,o=Intl.NumberFormat("en-US",{maximumFractionDigits:r||2,notation:"compact"});return"number"!==typeof n?n:n>=(i||1e4)?o.format(n):n.toString()}function i(n,e,t){var r,i;if("undefined"===typeof n||"undefined"===typeof e)return 0;var o=null===n||void 0===n||null===(r=n(e,t))||void 0===r||null===(i=r.props)||void 0===i?void 0:i.children;return(Array.isArray(o)?o:[o]).join("").length}},41143:function(n,e,t){"use strict";var r;t.d(e,{V:function(){return r}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running",n.UPSTREAM_FAILED="upstream_failed",n.CONDITION_FAILED="condition_failed"}(r||(r={}))},72098:function(n,e,t){"use strict";var r;t.d(e,{U:function(){return r}}),function(n){n.PYSPARK="pysparkkernel",n.PYTHON3="python3"}(r||(r={}))},61556:function(n,e,t){"use strict";t.d(e,{E:function(){return o},h:function(){return r}});t(57653);var r,i=t(41143);!function(n){n.BLOCK_RUN_COUNT="block_run_count",n.BLOCK_RUN_TIME="block_run_time",n.PIPELINE_RUN_COUNT="pipeline_run_count",n.PIPELINE_RUN_TIME="pipeline_run_time"}(r||(r={}));var o=[i.V.RUNNING,i.V.COMPLETED,i.V.FAILED]},30229:function(n,e,t){"use strict";t.d(e,{TR:function(){return p},U5:function(){return a},Wb:function(){return d},Xm:function(){return o},Z4:function(){return l},fq:function(){return c},gm:function(){return f},kJ:function(){return s}});var r,i,o,u=t(82394);!function(n){n.API="api",n.EVENT="event",n.TIME="time"}(o||(o={}));var c,a,l=(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(n){n.ACTIVE="active",n.INACTIVE="inactive"}(c||(c={})),function(n){n.ONCE="@once",n.HOURLY="@hourly",n.DAILY="@daily",n.WEEKLY="@weekly",n.MONTHLY="@monthly",n.ALWAYS_ON="@always_on"}(a||(a={}));var f,s,d=[a.ONCE,a.HOURLY,a.DAILY,a.WEEKLY,a.MONTHLY];!function(n){n.INTERVAL="frequency[]",n.STATUS="status[]",n.TAG="tag[]",n.TYPE="type[]"}(f||(f={})),function(n){n.CREATED_AT="created_at",n.NAME="name",n.PIPELINE="pipeline_uuid",n.STATUS="status",n.TYPE="schedule_type"}(s||(s={}));var p=(i={},(0,u.Z)(i,s.CREATED_AT,"Created at"),(0,u.Z)(i,s.NAME,"Name"),(0,u.Z)(i,s.PIPELINE,"Pipeline"),(0,u.Z)(i,s.STATUS,"Active"),(0,u.Z)(i,s.TYPE,"Type"),i)},57653:function(n,e,t){"use strict";t.d(e,{$1:function(){return g},G7:function(){return y},LM:function(){return b},Mj:function(){return Z},QK:function(){return h},RH:function(){return v},a_:function(){return x},fj:function(){return j},kA:function(){return O},qL:function(){return c},r0:function(){return m}});var r,i,o,u,c,a=t(75582),l=t(82394),f=t(72473),s=t(72098);function d(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function p(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?d(Object(t),!0).forEach((function(e){(0,l.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}!function(n){n.INTEGRATION="integration",n.PYTHON="python",n.PYSPARK="pyspark",n.STREAMING="streaming"}(c||(c={}));var h,g,m,v=(r={},(0,l.Z)(r,c.INTEGRATION,"Integration"),(0,l.Z)(r,c.PYTHON,"Python"),(0,l.Z)(r,c.PYSPARK,"PySpark"),(0,l.Z)(r,c.STREAMING,"Streaming"),r),y=(i={},(0,l.Z)(i,c.INTEGRATION,"Integration"),(0,l.Z)(i,c.PYTHON,"Standard"),(0,l.Z)(i,c.PYSPARK,"PySpark"),(0,l.Z)(i,c.STREAMING,"Streaming"),i),b="all",Z=(c.PYTHON,c.INTEGRATION,c.STREAMING,o={},(0,l.Z)(o,b,f.ie),(0,l.Z)(o,c.INTEGRATION,f.YC),(0,l.Z)(o,c.PYTHON,f.El),(0,l.Z)(o,c.STREAMING,f.dB),o);!function(n){n.ACTIVE="active",n.INACTIVE="inactive",n.NO_SCHEDULES="no_schedules",n.RETRY="retry",n.RETRY_INCOMPLETE_BLOCK_RUNS="retry_incomplete_block_runs"}(h||(h={})),function(n){n.GROUP="group_by",n.HISTORY_DAYS="from_history_days",n.NO_TAGS="no_tags",n.STATUS="status[]",n.TAG="tag[]",n.TYPE="type[]"}(g||(g={})),function(n){n.STATUS="status",n.TAG="tag",n.TYPE="type"}(m||(m={}));var O=[h.ACTIVE,h.INACTIVE,h.NO_SCHEDULES],x=(u={},(0,l.Z)(u,c.PYTHON,s.U.PYTHON3),(0,l.Z)(u,c.PYSPARK,s.U.PYSPARK),u),j=Object.entries(x).reduce((function(n,e){var t=(0,a.Z)(e,2),r=t[0],i=t[1];return p(p({},n),{},(0,l.Z)({},i,r))}),{})},85854:function(n,e,t){"use strict";var r,i,o,u,c,a,l,f,s=t(82394),d=t(26304),p=t(26653),h=t(38626),g=t(33591),m=t(44897),v=t(95363),y=t(61896),b=t(30160),Z=t(70515),O=t(38276),x=t(28598),j=["children","condensed","inline","level","marketing","spacingBelow"];function P(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function N(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?P(Object(t),!0).forEach((function(e){(0,s.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var _=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],b.IH,(function(n){return n.color&&"\n color: ".concat(n.color,"\n ")}),(function(n){return n.yellow&&"\n color: ".concat((n.theme.accent||m.Z.accent).yellow,";\n ")}),(function(n){return n.center&&"\n text-align: center;\n "}),(function(n){return!n.monospace&&0===Number(n.weightStyle)&&"\n font-family: ".concat(v.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(v.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(v.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(v.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(v.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "})),E=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||m.Z.content).active,";\n ")})),w=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],_,g.media.md(r||(r=(0,p.Z)(["\n ","\n "])),y.aQ),g.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),y.aQ),g.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),y.aQ)),I=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],_,y.MJ),T=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],_,g.media.xs(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*Z.iI,7*Z.iI),g.media.sm(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*Z.iI,7*Z.iI),g.media.md(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*Z.iI,7*Z.iI),g.media.lg(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*Z.iI,7*Z.iI),g.media.xl(f||(f=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*Z.iI,7*Z.iI)),S=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],_,y.BL),k=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],_),A=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],_),L=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],_),C=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],_,(function(n){return 1===n.level&&"\n ".concat(y.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(y.BL,"\n ")}),(function(n){return 3===n.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(n){return 4===n.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),R=function(n){var e,t=n.children,r=n.condensed,i=n.inline,o=n.level,u=n.marketing,c=n.spacingBelow,a=(0,d.Z)(n,j);i?e=C:0===Number(o)?e=w:1===Number(o)?e=u?T:I:2===Number(o)?e=S:3===Number(o)?e=k:4===Number(o)?e=A:5===Number(o)&&(e=L);var l=(0,x.jsxs)(e,N(N({},a),{},{level:o,children:[c&&(0,x.jsx)(O.Z,{mb:r?2:3,children:t}),!c&&t]}));return i?l:(0,x.jsx)(E,{children:l})};R.defaultProps={level:3,weightStyle:6},e.Z=R},65663:function(n,e,t){"use strict";t.r(e);var r=t(77837),i=t(75582),o=t(82394),u=t(38860),c=t.n(u),a=t(82684),l=t(12691),f=t.n(l),s=t(92083),d=t.n(s),p=t(38626),h=t(53998),g=t(55485),m=t(85854),v=t(48670),y=t(7116),b=t(93808),Z=t(38276),O=t(30160),x=t(35686),j=t(64657),P=t(72473),N=t(30229),_=t(70515),E=t(81728),w=t(24491),I=t(3917),T=t(28598);function S(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 k(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?S(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var A=p.default.div.withConfig({displayName:"monitors__GradientTextStyle",componentId:"sc-1is2m2l-0"})(["background:linear-gradient(90deg,#7D55EC 28.12%,#2AB2FE 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;"]);function L(n){var e=n.pipeline.uuid,t=(0,a.useState)(null),r=t[0],u=t[1],c=x.ZP.pipeline_schedules.pipelines.list(e).data,l=(0,a.useMemo)((function(){return null===c||void 0===c?void 0:c.pipeline_schedules}),[c]),s=(0,a.useMemo)((function(){return null===l||void 0===l?void 0:l.reduce((function(n,e){return k(k({},n),{},(0,o.Z)({},null===e||void 0===e?void 0:e.id,e))}),{})}),[l]),p=x.ZP.pipelines.detail(e,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,b=(0,a.useMemo)((function(){return k(k({},null===p||void 0===p?void 0:p.pipeline),{},{uuid:e})}),[p,e]),S=x.ZP.monitor_stats.detail("pipeline_run_count",{pipeline_uuid:null===b||void 0===b?void 0:b.uuid}).data,L=((null===S||void 0===S?void 0:S.monitor_stat)||{}).stats,C=(0,a.useMemo)((function(){return(0,I.Y_)()}),[]),R=(0,a.useMemo)((function(){return(0,w.p)(L,C)}),[C,L]),M=(0,a.useMemo)((function(){if(L)return Object.entries(L).reduce((function(n,e){var t=(0,i.Z)(e,2),r=t[0],u=t[1].data,c=C.map((function(n){return k({date:n},u[n]||{})}));return k(k({},n),{},(0,o.Z)({},r,c))}),{})}),[C,L]),D=(0,a.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[]);return(0,T.jsx)(y.Z,{breadcrumbs:D,errors:r,monitorType:j.a_.PIPELINE_RUNS,pipeline:b,setErrors:u,children:(0,T.jsxs)(Z.Z,{mt:2,mx:2,children:[(0,T.jsx)(Z.Z,{ml:1,children:(0,T.jsx)(A,{children:(0,T.jsx)(m.Z,{children:"All pipeline runs"})})}),(0,T.jsx)(Z.Z,{mt:1,children:(0,T.jsx)(h.Z,{colors:j.NU,data:R,getXValue:function(n){return n.date},height:200,keys:j.hu,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:j.CD,xLabelFormat:function(n){return d()(n).format("MMM DD")}})}),M&&Object.entries(M).map((function(n){var t,r=(0,i.Z)(n,2),o=r[0],u=r[1],c=null===s||void 0===s?void 0:s[o];return(0,T.jsxs)(Z.Z,{mt:3,children:[(0,T.jsxs)(g.ZP,{alignItems:"center",children:[(0,T.jsx)(Z.Z,{mx:1,children:(0,T.jsx)(A,{children:(0,T.jsx)(O.ZP,{bold:!0,large:!0,children:(0,E.kC)(null===(t=N.Z4[null===c||void 0===c?void 0:c.schedule_type])||void 0===t?void 0:t.call(N.Z4))})})}),(0,T.jsx)(f(),{as:"/pipelines/".concat(e,"/triggers/").concat(null===c||void 0===c?void 0:c.id),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,T.jsx)(v.Z,{children:(0,T.jsxs)(g.ZP,{alignItems:"center",children:[(0,T.jsx)(m.Z,{level:5,children:(null===c||void 0===c?void 0:c.name)||o}),(0,T.jsx)(Z.Z,{ml:1}),(0,T.jsx)(P._Q,{default:!0,size:2*_.iI})]})})})]}),(0,T.jsx)(Z.Z,{mt:1,children:(0,T.jsx)(h.Z,{colors:j.NU,data:u,getXValue:function(n){return n.date},height:200,keys:j.hu,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:j.CD,xLabelFormat:function(n){return d()(n).format("MMM DD")}})})]},o)}))]})})}L.getInitialProps=function(){var n=(0,r.Z)(c().mark((function n(e){var t;return c().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)}}(),e.default=(0,b.Z)(L)},48277:function(n,e,t){"use strict";t.d(e,{$P:function(){return l},JI:function(){return o},VJ:function(){return a},fD:function(){return u},uf:function(){return i},vN:function(){return c}});var r=t(75582),i=function(n){var e=String(n).split("."),t=(0,r.Z)(e,2),i=t[0],o=t[1];return"".concat(i.replace(/\B(?=(\d{3})+(?!\d))/g,",")).concat(o?".".concat(o):"")};function o(n){var e=Math.floor(Date.now()/1e3);return n>0?e-n:e}function u(n){return(n>>>0).toString(2)}function c(n,e){return String(BigInt(n)+BigInt(e))}function a(n,e){return String(BigInt(n)-BigInt(e))}function l(n){return parseInt(n,2)}},89677:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors",function(){return t(65663)}])},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}})},99177: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)}function i(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&&r(n,e)}t.d(e,{Z:function(){return i}})},93189:function(n,e,t){"use strict";t.d(e,{Z:function(){return o}});var r=t(12539),i=t(80022);function o(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,i.Z)(n)}}},function(n){n.O(0,[2678,1154,844,5896,2714,4267,600,8487,8264,5457,9774,2888,179],(function(){return e=89677,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[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,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 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8170],{27277:function(e,n,t){"use strict";var r=t(82394),i=t(21831),o=t(82684),u=t(39643),c=t(44688),l=t(28598);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.highlightedItemIndexInitial,t=void 0===n?null:n,r=e.itemGroups,a=e.noResultGroups,d=e.onHighlightItemIndexChange,f=e.onMouseEnterItem,p=e.onMouseLeaveItem,v=e.onSelectItem,m=e.renderEmptyState,g=e.searchQuery,h=e.selectedItem,y=e.setItemRefs,b=e.uuid,O=(0,o.useState)(!0),j=O[0],x=O[1],_=(0,o.useMemo)((function(){var e=[],n=r.reduce((function(n,t){var r=t.items.filter((function(e){return!g||function(e,n){return e.searchQueries.filter((function(e){return String(e).toLowerCase().includes(n.toLowerCase())})).length>=1}(e,g)}));return 0===r.length?n:(e.push.apply(e,(0,i.Z)(r)),n.concat(s(s({},t),{},{items:r})))}),[]);return{itemGroups:n,itemsFlattened:e}}),[r,g]),P=_.itemGroups,Z=_.itemsFlattened;a&&0===Z.length&&(P.push.apply(P,(0,i.Z)(a)),Z.push.apply(Z,(0,i.Z)(a.reduce((function(e,n){var t=n.items;return e.concat(t)}),[]))));var w=(0,o.useRef)(null);w.current=Z.map((function(){return(0,o.createRef)()}));var S=(0,o.useState)(t),N=S[0],I=S[1],C=(0,o.useCallback)((function(e){null===d||void 0===d||d(e),I(e)}),[d,I]),k=Z[N],E=(0,c.y)(),T=E.registerOnKeyDown,R=E.unregisterOnKeyDown;(0,o.useEffect)((function(){return function(){return R(b)}}),[R,b]),null===T||void 0===T||T(b,(function(e,n,t){var r,i=!0,o=Z.length,c=Z.findIndex((function(e,r){var i=e.keyboardShortcutValidation;return null===i||void 0===i?void 0:i({keyHistory:t,keyMapping:n},r)})),l=n[u.Gs]&&!n[u.XR]&&!h;return-1!==c?(e.preventDefault(),v(Z[c]),x(i),C(c)):(n[u.Uq]||l)&&Z[N]?(l&&e.preventDefault(),v(Z[N]),x(i),C(N)):(n[u.Bu]?(i=!1,r=null===N?o-1:N-1):n[u.kD]?(i=!1,r=null===N?0:N+1):n[u.vP]&&C(null),"undefined"!==typeof r&&(r>=o?r=0:r<=-1&&(r=o-1),r>=0&&r<=o-1?(C(r),e.preventDefault()):C(null)),void x(i))}),[N,Z,h,C,x]),(0,o.useEffect)((function(){null===y||void 0===y||y(w)}),[w,Z,y]),(0,o.useEffect)((function(){var e=null===N||"undefined"===typeof N||N>=Z.length;(null===g||void 0===g?void 0:g.length)>=1&&e&&C(0)}),[N,Z,g,C]);var A=(0,o.useCallback)((function(){return x(!0)}),[x]);return(0,o.useEffect)((function(){return window.addEventListener("mousemove",A),function(){window.removeEventListener("mousemove",A)}}),[A]),0===P.length&&m?m():(0,l.jsx)(l.Fragment,{children:P.map((function(e,n){var t=e.items,r=e.renderItem,i=e.renderGroupHeader,o=e.uuid,u=n>=1?P.slice(0,n).reduce((function(e,n){return e+n.items.length}),0):0,c=t.map((function(e,n){var t=e.itemObject,i=e.value,o=i===(null===k||void 0===k?void 0:k.value),c=n+u,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(i,"-").concat(a),onMouseMove:function(){return j&&C(c)},ref:w.current[c],children:r(e,{highlighted:o,onClick:function(){return v(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,c)},"item-".concat(i,"-").concat(a))}));return c.length>=1&&(0,l.jsxs)("div",{children:[null===i||void 0===i?void 0:i(),c]},o||"group-uuid-".concat(n))}))})}},81334:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var r=t(82394),i=t(82684),o=t(27277),u=t(31882),c=t(38276),l=t(48381),a=t(30160),s=t(17488),d=t(38626),f=t(44897),p=t(42631),v=t(47041),m=t(70515),g=d.default.div.withConfig({displayName:"indexstyle__DropdownStyle",componentId:"sc-suwkha-0"})([""," border-radius:","px;max-height:","px;overflow:auto;position:absolute;width:100%;z-index:1;"," ",""],v.w5,p.BG,40*m.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*m.iI,"px;\n ")})),h=d.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-suwkha-1"})(["padding:","px;position:relative;z-index:2;&:hover{cursor:pointer;}",""],.5*m.iI,(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||f.Z.interactive).hoverBackground,";\n ")})),y=t(39643),b=t(3314),O=t(86735),j=t(44688),x=t(28598);function _(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Z=function(e){var n,t=e.removeTag,r=e.selectTag,d=e.selectedTags,f=void 0===d?[]:d,p=e.tags,v=void 0===p?[]:p,m=e.uuid,_=(0,i.useRef)(null),Z=(0,i.useState)(!1),w=Z[0],S=Z[1],N=(0,i.useState)(null),I=N[0],C=N[1],k=(0,i.useMemo)((function(){return(0,O.YC)(v||[],"uuid")}),[v]),E=(0,i.useMemo)((function(){return null===k||void 0===k?void 0:k.map((function(e){return{itemObject:e,searchQueries:[e.uuid],value:e.uuid}}))}),[k]),T=(0,i.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]),R=(0,j.y)(),A=R.registerOnKeyDown,D=R.unregisterOnKeyDown;return(0,i.useEffect)((function(){return function(){return D(m)}}),[D,m]),null===A||void 0===A||A(m,(function(e,n){var t;w&&n[y.vP]&&(S(!1),null===_||void 0===_||null===(t=_.current)||void 0===t||t.blur())}),[w,_]),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(l.Z,{onClickTag:t,tags:f}),(0,x.jsxs)(c.Z,{mt:1,style:{position:"relative"},children:[(0,x.jsx)(s.Z,{onBlur:function(){return setTimeout((function(){return S(!1)}),150)},onChange:function(e){return C(e.target.value)},onFocus:function(){return S(!0)},ref:_,value:I||""}),(0,x.jsx)(g,{topOffset:null===_||void 0===_||null===(n=_.current)||void 0===n?void 0:n.getBoundingClientRect().height,children:(0,x.jsx)(o.Z,{itemGroups:[{items:w?T:[],renderItem:function(e,n){var t=e.value;return(0,x.jsx)(h,P(P({},n),{},{onClick:function(e){var t;(0,b.j)(e),null===n||void 0===n||null===(t=n.onClick)||void 0===t||t.call(n,e)},children:(0,x.jsx)(u.Z,{small:!0,children:(0,x.jsx)(a.ZP,{children:t})})}))}}],onSelectItem:function(e){var n=e.itemObject;null===r||void 0===r||r(n),C(null)},searchQuery:I,uuid:m})})]})]})}},48381:function(e,n,t){"use strict";var r=t(82684),i=t(31882),o=t(55485),u=t(30160),c=t(86735),l=t(28598);n.Z=function(e){var n=e.onClickTag,t=e.tags,a=void 0===t?[]:t,s=(0,r.useMemo)((function(){return(null===a||void 0===a?void 0:a.length)||0}),[a]),d=(0,r.useMemo)((function(){return(0,c.YC)(a||[],"uuid")}),[a]);return(0,l.jsx)(o.ZP,{alignItems:"center",flexWrap:"wrap",children:null===d||void 0===d?void 0:d.reduce((function(e,t){return e.push((0,l.jsx)("div",{style:{marginBottom:2,marginRight:s>=2?4:0,marginTop:2},children:(0,l.jsx)(i.Z,{onClick:n?function(){return n(t)}:null,small:!0,children:(0,l.jsx)(u.ZP,{children:t.uuid})})},"tag-".concat(t.uuid))),e}),[])})}},68781:function(e,n,t){"use strict";var r;t.d(n,{R:function(){return i}}),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"}(r||(r={}));var i=[r.AZURE_CONTAINER_INSTANCE,r.ECS,r.GCP_CLOUD_RUN,r.K8S,r.LOCAL_PYTHON,r.PYSPARK]},72098:function(e,n,t){"use strict";var r;t.d(n,{U:function(){return r}}),function(e){e.PYSPARK="pysparkkernel",e.PYTHON3="python3"}(r||(r={}))},57653:function(e,n,t){"use strict";t.d(n,{$1:function(){return m},G7:function(){return y},LM:function(){return b},Mj:function(){return O},QK:function(){return v},RH:function(){return h},a_:function(){return x},fj:function(){return _},kA:function(){return j},qL:function(){return c},r0:function(){return g}});var r,i,o,u,c,l=t(75582),a=t(82394),s=t(72473),d=t(72098);function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(c||(c={}));var v,m,g,h=(r={},(0,a.Z)(r,c.INTEGRATION,"Integration"),(0,a.Z)(r,c.PYTHON,"Python"),(0,a.Z)(r,c.PYSPARK,"PySpark"),(0,a.Z)(r,c.STREAMING,"Streaming"),r),y=(i={},(0,a.Z)(i,c.INTEGRATION,"Integration"),(0,a.Z)(i,c.PYTHON,"Standard"),(0,a.Z)(i,c.PYSPARK,"PySpark"),(0,a.Z)(i,c.STREAMING,"Streaming"),i),b="all",O=(c.PYTHON,c.INTEGRATION,c.STREAMING,o={},(0,a.Z)(o,b,s.ie),(0,a.Z)(o,c.INTEGRATION,s.YC),(0,a.Z)(o,c.PYTHON,s.El),(0,a.Z)(o,c.STREAMING,s.dB),o);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules",e.RETRY="retry",e.RETRY_INCOMPLETE_BLOCK_RUNS="retry_incomplete_block_runs"}(v||(v={})),function(e){e.GROUP="group_by",e.HISTORY_DAYS="from_history_days",e.NO_TAGS="no_tags",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(m||(m={})),function(e){e.STATUS="status",e.TAG="tag",e.TYPE="type"}(g||(g={}));var j=[v.ACTIVE,v.INACTIVE,v.NO_SCHEDULES],x=(u={},(0,a.Z)(u,c.PYTHON,d.U.PYTHON3),(0,a.Z)(u,c.PYSPARK,d.U.PYSPARK),u),_=Object.entries(x).reduce((function(e,n){var t=(0,l.Z)(n,2),r=t[0],i=t[1];return p(p({},e),{},(0,a.Z)({},i,r))}),{})},31882:function(e,n,t){"use strict";var r=t(38626),i=t(71180),o=t(55485),u=t(30160),c=t(44897),l=t(72473),a=t(70515),s=t(61896),d=t(28598),f=r.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||c.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||c.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((a.iI+s.Al)/2,"px;\n height: ").concat(1.5*a.iI+s.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+s.Al)/2,"px;\n height: ").concat(s.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+s.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||c.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,t=e.children,r=e.disabled,c=e.label,s=e.monospace,p=e.onClick,v=e.primary,m=e.small,g=e.xsmall;return(0,d.jsx)(f,{border:n,primary:v,small:m,xsmall:g,children:(0,d.jsx)(i.ZP,{basic:!0,disabled:r,noBackground:!0,noPadding:!0,onClick:p,transparent:!0,children:(0,d.jsxs)(o.ZP,{alignItems:"center",children:[t,c&&(0,d.jsx)(u.ZP,{monospace:s,small:m,xsmall:g,children:c}),!r&&p&&(0,d.jsx)("div",{style:{marginLeft:2}}),!r&&p&&(0,d.jsx)(l.x8,{default:v,muted:!v,size:m?a.iI:1.25*a.iI})]})})})}},85854:function(e,n,t){"use strict";var r,i,o,u,c,l,a,s,d=t(82394),f=t(26304),p=t(26653),v=t(38626),m=t(33591),g=t(44897),h=t(95363),y=t(61896),b=t(30160),O=t(70515),j=t(38276),x=t(28598),_=["children","condensed","inline","level","marketing","spacingBelow"];function P(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?P(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=(0,v.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],b.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||g.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(h.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(h.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(h.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(h.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(h.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(h.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(h.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(h.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(h.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),S=v.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||g.Z.content).active,";\n ")})),N=v.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],w,m.media.md(r||(r=(0,p.Z)(["\n ","\n "])),y.aQ),m.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),y.aQ),m.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),y.aQ)),I=v.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],w,y.MJ),C=v.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],w,m.media.xs(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),m.media.sm(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),m.media.md(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),m.media.lg(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),m.media.xl(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI)),k=v.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],w,y.BL),E=v.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],w),T=v.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],w),R=v.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],w),A=v.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],w,(function(e){return 1===e.level&&"\n ".concat(y.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(y.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 "})),D=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,u=e.marketing,c=e.spacingBelow,l=(0,f.Z)(e,_);i?n=A:0===Number(o)?n=N:1===Number(o)?n=u?C:I:2===Number(o)?n=k:3===Number(o)?n=E:4===Number(o)?n=T:5===Number(o)&&(n=R);var a=(0,x.jsxs)(n,Z(Z({},l),{},{level:o,children:[c&&(0,x.jsx)(j.Z,{mb:r?2:3,children:t}),!c&&t]}));return i?a:(0,x.jsx)(S,{children:a})};D.defaultProps={level:3,weightStyle:6},n.Z=D},37003:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return z}});var r=t(77837),i=t(75582),o=t(82394),u=t(38860),c=t.n(u),l=t(82684),a=t(34376),s=t(75457),d=t(93808),f=t(71180),p=t(70652),v=t(55485),m=t(85854),g=t(48670),h=t(44085),y=t(38276),b=t(81334),O=t(30160),j=t(17488),x=t(35686),_=t(98464),P=t(68781),Z=t(78419),w=t(70515),S=t(53808),N=t(42122),I=t(81728),C=t(86735),k=t(28598);function E(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function T(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?E(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var R=function(e){var n,t,r,i,u=e.isPipelineUpdating,c=e.pipeline,a=e.updatePipeline,s=(0,l.useRef)(null),d=(0,l.useRef)(null),E=null===c||void 0===c?void 0:c.uuid,R=(0,l.useMemo)((function(){return(null===c||void 0===c?void 0:c.blocks)||[]}),[c]),A=(0,l.useState)(!1),D=A[0],H=A[1],M=(0,l.useState)(!1),Y=M[0],G=M[1],z=(0,l.useState)(null),L=z[0],U=z[1],K=(0,_.Z)(c);(0,l.useEffect)((function(){(0,N.Xy)(c,K)||U(c)}),[c,K]);var B=(0,l.useCallback)((function(e){H(!0),U(e)}),[]),F="".concat(Z.g6,"_").concat(E),Q=(0,l.useState)({}),q=Q[0],X=Q[1],V="".concat(Z.vF,"_").concat(E),W=(0,l.useState)(!1),J=W[0],$=W[1],ee=(0,l.useCallback)((function(e){X((function(n){var t=e(n);return(0,S.t8)(F,JSON.stringify(t)),t}))}),[F,X]),ne=(0,l.useCallback)((function(e){$((function(n){var t=e(n);return(0,S.t8)(V,t),t}))}),[V,$]);(0,l.useEffect)((function(){var e=(0,S.U2)(F);e&&(0,I.Pb)(e)&&X(JSON.parse(e))}),[F,X]),(0,l.useEffect)((function(){var e=(0,S.U2)(V);e&&$(e)}),[V,$]);var te=(0,l.useMemo)((function(){return null===L||void 0===L?void 0:L.executor_type}),[L]);(0,l.useEffect)((function(){Y||!te||P.R.find((function(e){return e===te}))||G(!0)}),[Y,te]);var re=(0,l.useMemo)((function(){return(null===R||void 0===R?void 0:R.filter((function(e){var n=e.uuid;return!(null===q||void 0===q||!q[n])}))).length===R.length}),[R,q]),ie=(0,l.useMemo)((function(){return!(null!==R&&void 0!==R&&R.length)}),[R]),oe=(0,l.useMemo)((function(){return(null===L||void 0===L?void 0:L.tags)||[]}),[L]),ue=x.ZP.tags.list().data,ce=(0,l.useMemo)((function(){return((null===ue||void 0===ue?void 0:ue.tags)||[]).filter((function(e){var n=e.uuid;return!oe.includes(n)}))}),[ue,oe]);return(0,k.jsxs)(y.Z,{p:w.cd,children:[(0,k.jsx)(j.Z,{label:"Pipeline name",onChange:function(e){return B((function(n){return T(T({},n),{},{name:e.target.value})}))},primary:!0,required:!0,setContentOnMount:!0,value:(null===L||void 0===L?void 0:L.name)||""}),(0,k.jsxs)(y.Z,{mt:w.Mq,children:[(0,k.jsx)(p.Z,{checked:!(null===L||void 0===L||!L.run_pipeline_in_one_process),label:"Run pipeline in a single process",onClick:function(){return B((function(e){return T(T({},e),{},{run_pipeline_in_one_process:!(null!==e&&void 0!==e&&e.run_pipeline_in_one_process)})}))}}),(0,k.jsx)(y.Z,{mt:1,children:(0,k.jsx)(O.ZP,{muted:!0,small:!0,children:"When enabled, this setting allows sharing of objects and memory space across blocks within a single pipeline."})})]}),(0,k.jsxs)(y.Z,{mt:w.HN,children:[(0,k.jsx)(m.Z,{children:"Executor type"}),(0,k.jsxs)(O.ZP,{muted:!0,children:["For more information on this setting, please read the ",(0,k.jsx)(g.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,k.jsxs)(y.Z,{mt:1,children:[!Y&&(0,k.jsx)(h.Z,{label:"Executor type",onChange:function(e){return B((function(n){return T(T({},n),{},{executor_type:e.target.value})}))},primary:!0,ref:s,value:(null===L||void 0===L?void 0:L.executor_type)||"",children:P.R.map((function(e){return(0,k.jsx)("option",{value:e,children:e},e)}))}),Y&&(0,k.jsx)(j.Z,{label:"Executor type",monospace:!0,onChange:function(e){return B((function(n){return T(T({},n),{},{executor_type:e.target.value})}))},ref:d,setContentOnMount:!0,value:(null===L||void 0===L?void 0:L.executor_type)||""}),(0,k.jsx)(y.Z,{mt:1,children:(0,k.jsx)(g.Z,{muted:!0,onClick:function(){Y?(B((function(e){return T(T({},e),{},{executor_type:null===c||void 0===c?void 0:c.executor_type})})),setTimeout((function(){var e;return null===s||void 0===s||null===(e=s.current)||void 0===e?void 0:e.focus()}),1)):setTimeout((function(){var e;return null===d||void 0===d||null===(e=d.current)||void 0===e?void 0:e.focus()}),1),G(!Y)},preventDefault:!0,small:!0,children:Y?"Select a preset executor type":"Enter a custom executor type"})})]})]}),(0,k.jsxs)(y.Z,{mt:w.HN,children:[(0,k.jsx)(m.Z,{children:"Retry configuration"}),(0,k.jsxs)(O.ZP,{muted:!0,children:["For more information on this setting, please read the ",(0,k.jsx)(g.Z,{href:"https://docs.mage.ai/orchestration/pipeline-runs/retrying-block-runs",openNewWindow:!0,children:"documentation"}),"."]}),(0,k.jsx)(y.Z,{mt:1,children:(0,k.jsxs)(v.ZP,{children:[(0,k.jsx)(j.Z,{label:"Retries",monospace:!0,onChange:function(e){return B((function(n){return T(T({},n),{},{retry_config:T(T({},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===L||void 0===L||null===(n=L.retry_config)||void 0===n?void 0:n.retries)||""}),(0,k.jsx)(y.Z,{mr:1}),(0,k.jsx)(j.Z,{label:"Delay",monospace:!0,onChange:function(e){return B((function(n){return T(T({},n),{},{retry_config:T(T({},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===L||void 0===L||null===(t=L.retry_config)||void 0===t?void 0:t.delay)||""}),(0,k.jsx)(y.Z,{mr:1}),(0,k.jsx)(j.Z,{label:"Max delay",monospace:!0,onChange:function(e){return B((function(n){return T(T({},n),{},{retry_config:T(T({},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===L||void 0===L||null===(r=L.retry_config)||void 0===r?void 0:r.max_delay)||""}),(0,k.jsx)(y.Z,{mr:1}),(0,k.jsx)(p.Z,{checked:!(null===L||void 0===L||null===(i=L.retry_config)||void 0===i||!i.exponential_backoff),label:"Exponential backoff",onClick:function(){return B((function(e){var n;return T(T({},e),{},{retry_config:T(T({},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,k.jsxs)(y.Z,{mt:w.HN,children:[(0,k.jsx)(m.Z,{children:"Tags"}),(0,k.jsx)(y.Z,{mt:1,children:(0,k.jsx)(b.Z,{removeTag:function(e){B((function(n){return T(T({},n),{},{tags:oe.filter((function(n){return n!==e.uuid}))})}))},selectTag:function(e){B((function(n){return T(T({},n),{},{tags:(0,C.$C)(e.uuid,oe,(function(n){return n===e.uuid}))})}))},selectedTags:null===oe||void 0===oe?void 0:oe.map((function(e){return{uuid:e}})),tags:ce,uuid:"TagsAutocompleteInputField-".concat(null===c||void 0===c?void 0:c.uuid)})})]}),(0,k.jsx)(y.Z,{mt:w.HN,children:(0,k.jsx)(v.ZP,{children:(0,k.jsx)(f.ZP,{disabled:!D,loading:u,onClick:function(){return a({executor_type:null===L||void 0===L?void 0:L.executor_type,name:null===L||void 0===L?void 0:L.name,retry_config:null===L||void 0===L?void 0:L.retry_config,run_pipeline_in_one_process:null===L||void 0===L?void 0:L.run_pipeline_in_one_process,tags:null===L||void 0===L?void 0:L.tags}).then((function(){return H(!1)}))},primary:!0,children:"Save pipeline settings"})})}),(0,k.jsx)(y.Z,{mt:w.HN,children:(0,k.jsx)(p.Z,{checked:re&&!ie,disabled:ie,label:"Hide all blocks in notebook",onClick:function(){return ee((function(){return re?{}:null===R||void 0===R?void 0:R.reduce((function(e,n){var t=n.uuid;return T(T({},e),{},(0,o.Z)({},t,!0))}),{})}))}})}),(0,k.jsx)(y.Z,{mt:w.Mq,children:(0,k.jsx)(p.Z,{checked:J,label:"When running a block while editing a pipeline, output the block messages to the logs",onClick:function(){return ne((function(e){return!e}))}})})]})},A=t(28795),D=t(69864),H=t(72619);function M(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?M(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):M(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function G(e){var n=e.pipeline,t=(0,a.useRouter)(),r=(0,l.useState)(null),o=r[0],u=r[1],c=null===n||void 0===n?void 0:n.uuid,d=x.ZP.pipelines.detail(c).data,f=Y(Y({},null===d||void 0===d?void 0:d.pipeline),n),p=(0,D.Db)(x.ZP.pipelines.useUpdate(c,{update_content:!0}),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(e){if(null!==e&&void 0!==e&&e.pipeline){var n=e.pipeline.uuid;c!==n&&(window.location.href="".concat(t.basePath,"/pipelines/").concat(n,"/settings"))}},onErrorCallback:function(e,n){return u({errors:n,response:e})}})}}),v=(0,i.Z)(p,2),m=v[0],g=v[1].isLoading;return(0,k.jsx)(s.Z,{breadcrumbs:[{label:function(){return"Settings"}}],errors:o,pageName:A.M.SETTINGS,pipeline:f,setErrors:u,title:function(e){var n=e.name;return"".concat(n," settings")},uuid:"".concat(A.M.SETTINGS,"_").concat(c),children:f&&(0,k.jsx)(R,{isPipelineUpdating:g,pipeline:f,updatePipeline:function(e){return m({pipeline:e})}})})}G.getInitialProps=function(){var e=(0,r.Z)(c().mark((function e(n){var t;return c().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 z=(0,d.Z)(G)},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 r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return r}})},15544:function(e,n,t){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}t.d(n,{Z:function(){return r}})},99177:function(e,n,t){"use strict";function r(e,n){return r=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},r(e,n)}function i(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&r(e,n)}t.d(n,{Z:function(){return i}})},93189:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var r=t(12539),i=t(80022);function o(e,n){if(n&&("object"===r(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}}},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}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7803],{72098:function(n,e,t){"use strict";var r;t.d(e,{U:function(){return r}}),function(n){n.PYSPARK="pysparkkernel",n.PYTHON3="python3"}(r||(r={}))},44265:function(n,e,t){"use strict";t.d(e,{Az:function(){return s},BF:function(){return l},Do:function(){return a},IK:function(){return c},P0:function(){return o},VO:function(){return u},sZ:function(){return d}});var r,o,i=t(82394),u=t(41143).V,c=[u.FAILED,u.COMPLETED,u.RUNNING,u.CANCELLED,u.INITIAL],l=[u.INITIAL,u.RUNNING],s=[u.CANCELLED,u.COMPLETED,u.FAILED],d="__mage_variables",a=(r={},(0,i.Z)(r,u.CANCELLED,"Cancelled"),(0,i.Z)(r,u.COMPLETED,"Done"),(0,i.Z)(r,u.FAILED,"Failed"),(0,i.Z)(r,u.INITIAL,"Ready"),(0,i.Z)(r,u.RUNNING,"Running"),r);!function(n){n.PIPELINE_UUID="pipeline_uuid[]",n.STATUS="status[]",n.TAG="pipeline_tag[]"}(o||(o={}))},57653:function(n,e,t){"use strict";t.d(e,{$1:function(){return m},G7:function(){return j},LM:function(){return x},Mj:function(){return Z},QK:function(){return p},RH:function(){return b},a_:function(){return I},fj:function(){return P},kA:function(){return g},qL:function(){return c},r0:function(){return h}});var r,o,i,u,c,l=t(75582),s=t(82394),d=t(72473),a=t(72098);function f(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 v(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?f(Object(t),!0).forEach((function(e){(0,s.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}!function(n){n.INTEGRATION="integration",n.PYTHON="python",n.PYSPARK="pyspark",n.STREAMING="streaming"}(c||(c={}));var p,m,h,b=(r={},(0,s.Z)(r,c.INTEGRATION,"Integration"),(0,s.Z)(r,c.PYTHON,"Python"),(0,s.Z)(r,c.PYSPARK,"PySpark"),(0,s.Z)(r,c.STREAMING,"Streaming"),r),j=(o={},(0,s.Z)(o,c.INTEGRATION,"Integration"),(0,s.Z)(o,c.PYTHON,"Standard"),(0,s.Z)(o,c.PYSPARK,"PySpark"),(0,s.Z)(o,c.STREAMING,"Streaming"),o),x="all",Z=(c.PYTHON,c.INTEGRATION,c.STREAMING,i={},(0,s.Z)(i,x,d.ie),(0,s.Z)(i,c.INTEGRATION,d.YC),(0,s.Z)(i,c.PYTHON,d.El),(0,s.Z)(i,c.STREAMING,d.dB),i);!function(n){n.ACTIVE="active",n.INACTIVE="inactive",n.NO_SCHEDULES="no_schedules",n.RETRY="retry",n.RETRY_INCOMPLETE_BLOCK_RUNS="retry_incomplete_block_runs"}(p||(p={})),function(n){n.GROUP="group_by",n.HISTORY_DAYS="from_history_days",n.NO_TAGS="no_tags",n.STATUS="status[]",n.TAG="tag[]",n.TYPE="type[]"}(m||(m={})),function(n){n.STATUS="status",n.TAG="tag",n.TYPE="type"}(h||(h={}));var g=[p.ACTIVE,p.INACTIVE,p.NO_SCHEDULES],I=(u={},(0,s.Z)(u,c.PYTHON,a.U.PYTHON3),(0,s.Z)(u,c.PYSPARK,a.U.PYSPARK),u),P=Object.entries(I).reduce((function(n,e){var t=(0,l.Z)(e,2),r=t[0],o=t[1];return v(v({},n),{},(0,s.Z)({},o,r))}),{})},25050:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return un}});var r=t(77837),o=t(38860),i=t.n(o),u=t(82684),c=t(75457),l=t(93808),s=t(75582),d=t(82394),a=t(97618),f=t(55485),v=t(85854),p=t(44265),m=t(38276),h=t(4190),b=t(30160),j=t(44897),x=t(72473),Z=t(38626),g=t(42631),I=t(95363),P=t(70515),O=t(61896),_=Z.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-15svh8z-0"})(["border-radius:","px;margin:","px;overflow:hidden;"," "," "," "," "," "," &:hover{"," "," "," "," ","}"],g.n_,P.cd*P.iI,(function(n){return"\n background-color: ".concat((n.theme.background||j.Z.background).panel,";\n border: 1px solid ").concat((n.theme.borders||j.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||j.Z.accent).negative,";\n ")}),(function(n){return n.selected&&n.primary&&"\n border-color: ".concat((n.theme.interactive||j.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.selected&&n.default&&"\n border-color: ".concat((n.theme.interactive||j.Z.interactive).focusBackground,";\n ")}),(function(n){return n.selected&&n.success&&"\n border-color: ".concat((n.theme.background||j.Z.background).success,";\n ")}),(function(n){return n.selected&&n.warning&&"\n border-color: ".concat((n.theme.accent||j.Z.accent).warning,";\n ")}),(function(n){return n.danger&&"\n border-color: ".concat((n.theme.accent||j.Z.accent).negative,";\n ")}),(function(n){return n.primary&&"\n border-color: ".concat((n.theme.interactive||j.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.default&&"\n border-color: ".concat((n.theme.interactive||j.Z.interactive).focusBackground,";\n ")}),(function(n){return n.success&&"\n border-color: ".concat((n.theme.background||j.Z.background).success,";\n ")}),(function(n){return n.warning&&"\n border-color: ".concat((n.theme.accent||j.Z.accent).warning,";\n ")})),y=(0,Z.css)([""," "," "," "," ",""],(function(n){return n.danger&&"\n background-color: ".concat((n.theme.accent||j.Z.accent).negative,";\n ")}),(function(n){return n.primary&&"\n background-color: ".concat((n.theme.interactive||j.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.default&&"\n background-color: ".concat((n.theme.interactive||j.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.success&&"\n background-color: ".concat((n.theme.background||j.Z.background).success,";\n ")}),(function(n){return n.warning&&"\n background-color: ".concat((n.theme.accent||j.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;"," "," "," "," "," ",""],y,O.iD,g.D7,I.ry,(function(n){return n.danger&&"\n color: ".concat((n.theme.content||j.Z.content).active,";\n ")}),(function(n){return n.primary&&"\n color: ".concat((n.theme.content||j.Z.content).active,";\n ")}),(function(n){return(n.default||n.success)&&"\n "}),(function(n){return n.default&&"\n color: ".concat((n.theme.content||j.Z.content).default,";\n ")}),(function(n){return n.success&&"\n color: ".concat((n.theme.content||j.Z.content).inverted,";\n ")}),(function(n){return n.warning&&"\n color: ".concat((n.theme.content||j.Z.content).inverted,";\n ")})),E=Z.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-15svh8z-2"})([""," display:flex;height:auto;width:3px;",""],y,(function(n){return n.default&&"\n background-color: ".concat((n.theme.interactive||j.Z.interactive).focusBackground,";\n ")})),k=t(81728),T=t(92083),S=t.n(T),A=t(41143),w=t(86735);function M(n){var e;return Object.keys((null===n||void 0===n||null===(e=n.metrics)||void 0===e?void 0:e.blocks)||{}).sort()}function C(n){var e,t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=null,i=null,u=null,c=null,l={},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=R(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 p,m=a||{},h=m.destinations,b=void 0===h?{records_affected:null,records_inserted:null,records_updated:null}:h,j=m.sources,x=void 0===j?{records:null}:j,Z=v[d]||[];if(r&&r===d&&Z.every((function(n){var e=n.status;return A.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===(p=f[d])||void 0===p?void 0:p.record_counts);else null!==x&&void 0!==x&&x.records&&(null===o&&(o=0),o+=Number(x.records));null!==b&&void 0!==b&&b.records_updated?(null===u&&(u=0),u+=Number(b.records_updated),null===c&&(c=0),c+=Number(b.records_updated)):null!==b&&void 0!==b&&b.records_inserted?(null===u&&(u=0),u+=Number(b.records_inserted),null===i&&(i=0),i+=Number(b.records_inserted)):null!==b&&void 0!==b&&b.records_affected&&(null===u&&(u=0),u+=Number(b.records_affected)),["destinations","sources"].forEach((function(n){var e=a[n]||{};null!==e&&void 0!==e&&e.error&&(l[d]||(l[d]={}),l[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(A.V.FAILED===r&&null!==t&&void 0!==t&&t.error&&e){var o=e.split(":"),i=(0,s.Z)(o,3),u=(i[0],i[1]);i[2];l[u]||(l[u]={}),l[u][""]=t.error}})),{errors:l,records:o,recordsInserted:i,recordsProcessed:u,recordsUpdated:c}}function R(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 L(n){var e=R(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 A.V.COMPLETED===e})),u=i.map((function(n){var e=n.completed_at,t=n.started_at,r=S().utc(e),o=S().utc(t);return r.diff(o,"second")})),c=i.length,l=o.length;t[r]={completed:c,runtime:u.length>=1?(0,w.Sm)(u)/u.length:null,total:l}})),t}function D(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 A.V.COMPLETED===e}))}(n).length||0;return r/t}function V(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=S().utc();if(e)i=S().utc(e);else if([p.VO.CANCELLED,p.VO.FAILED].includes(o)){var u=(0,w.YC)(r,(function(n){return n.started_at}),{ascending:!1})[0];i=S().utc(u.updated_at)}var c=S().utc(n.created_at);return i.diff(c,"second")}function U(n,e){var t,r,o,i,u,c=R(n),l=L(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],l[e]||{completed:null,total:null}),v=f.completed,p=f.total,m=v&&p?v/p:0,h=c[e]||[],b=h.every((function(n){var e=n.status;return A.V.COMPLETED===e})),j=(0,w.YC)(h,(function(n){return n.updated_at}),{ascending:!1})[0],x=null===(t=(0,w.YC)(h,(function(n){return n.started_at}),{ascending:!0})[0])||void 0===t?void 0:t.started_at;b?r=null===(u=(0,w.YC)(h,(function(n){return n.completed_at}),{ascending:!1})[0])||void 0===u?void 0:u.completed_at:j&&(i=null===j||void 0===j?void 0:j.updated_at);var Z=b?S().utc(r||i):S().utc(),g=S().utc(x);return{completed:v,completedAt:r,done:b,progress:m,runtime:o=Z.diff(g,"second"),startedAt:x,status:null===j||void 0===j?void 0:j.status,timeText:(0,k.zf)(o),total:p,updatedAt:i}}var G=t(28598);function Y(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 F(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(t),!0).forEach((function(e){(0,d.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Y(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var H=function(n){var e=n.onSelect,t=n.pipelineRun,r=n.selected,o=(t.block_runs,t.created_at),i=t.status,c=(0,u.useMemo)((function(){return(null===t||void 0===t?void 0:t.metrics)||{blocks:{},destination:null,pipeline:{},source:null}}),[t]),l=((0,u.useMemo)((function(){return c.blocks||{}}),[c]),(0,u.useMemo)((function(){return c.pipeline||{}}),[c])),d=c.destination,Z=c.source,g=(0,u.useMemo)((function(){return Object.keys(l).length}),[l]),I=(0,u.useMemo)((function(){return C(t)}),[t]),O=I.errors,y=I.records,T=I.recordsProcessed,S=(0,u.useMemo)((function(){return D(t)}),[t]),A=(0,u.useMemo)((function(){return[p.VO.COMPLETED].includes(i)}),[i]),w=(0,u.useMemo)((function(){return{danger:p.VO.FAILED===i,default:p.VO.INITIAL===i,primary:p.VO.RUNNING===i,success:A,warning:p.VO.CANCELLED===i}}),[A,i]),M=(0,u.useMemo)((function(){if(t){var n=V(t);return(0,k.zf)(n)}}),[t]);return(0,G.jsx)(_,F(F({},w),{},{onClick:function(){return e(r?null:t.id)},selected:r,children:(0,G.jsxs)(f.ZP,{fullHeight:!0,justifyContent:"space-between",children:[(0,G.jsx)(E,F({},w)),(0,G.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,G.jsxs)(m.Z,{ml:3,py:3,children:[(0,G.jsx)(v.Z,{bold:!0,level:5,monospace:!0,children:o}),(0,G.jsx)(m.Z,{fullWidth:!1,mt:2,children:(0,G.jsx)(N,F(F({},w),{},{children:(0,G.jsxs)(f.ZP,{alignItems:"center",children:[A&&(0,G.jsx)(x.Jr,{inverted:!0,size:2*P.iI}),[p.VO.INITIAL,p.VO.RUNNING].includes(i)&&(0,G.jsx)(h.Z,{color:p.VO.INITIAL!==i?j.Z.monotone.white:null,inverted:p.VO.INITIAL===i,small:!0}),"\xa0",p.VO.RUNNING===i&&(0,G.jsxs)(G.Fragment,{children:["\xa0",Math.round(100*S),"%"]}),![p.VO.INITIAL,p.VO.RUNNING].includes(i)&&p.Do[i],p.VO.INITIAL===i&&"Starting"]})}))}),Object.values(O).length>=1&&(0,G.jsx)(m.Z,{mt:1,children:Object.entries(O).map((function(n,e){var t=(0,s.Z)(n,2),r=t[0];t[1];return(0,G.jsxs)(b.ZP,{monospace:!0,muted:!0,small:!0,children:[r," stream failed"]},r)}))})]})}),(0,G.jsxs)(a.Z,{flex:1,children:[(0,G.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,G.jsxs)(m.Z,{ml:3,py:3,children:[(0,G.jsxs)(m.Z,{mb:1,children:[(0,G.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Rows processed"}),(0,G.jsx)(b.ZP,{monospace:!0,children:T>=1?(0,k.x6)(T):"-"})]}),(0,G.jsxs)(m.Z,{mb:1,children:[(0,G.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Rows remaining"}),(0,G.jsx)(b.ZP,{monospace:!0,children:y>=1&&y>=T?(0,k.x6)(y-T):"-"})]}),p.VO.RUNNING!==i&&(0,G.jsxs)(m.Z,{mb:1,children:[(0,G.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Runtime"}),(0,G.jsx)(b.ZP,{monospace:!0,children:M})]})]})}),(0,G.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,G.jsxs)(m.Z,{ml:3,py:3,children:[(0,G.jsxs)(m.Z,{mb:1,children:[(0,G.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Source"}),(0,G.jsx)(b.ZP,{monospace:!0,children:Z||"-"})]}),(0,G.jsxs)(m.Z,{mb:1,children:[(0,G.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Destination"}),(0,G.jsx)(b.ZP,{monospace:!0,children:d||"-"})]}),(0,G.jsxs)(m.Z,{mb:1,children:[(0,G.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Streams"}),(0,G.jsx)(b.ZP,{monospace:!0,children:g>=1?(0,k.x6)(g):"-"})]})]})})]})]})}))},z=t(89565),B=t.n(z),K=t(34376),W=t(71180),J=t(48670),X=t(75499),q=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||j.Z.accent).cyan,";\n ")}),(function(n){return n.even&&!n.fill&&"\n background-color: ".concat((n.theme.accent||j.Z.accent).cyanTransparent,";\n ")}),(function(n){return"\n height: ".concat((n.small?1:2)*P.iI,"px;\n ")})),Q=t(3314);var $=function(n){var e=n.onClickRow,t=n.pipelineRun,r=n.selectedStream,o=(0,K.useRouter)(),i=(0,u.useState)(null),c=i[0],l=i[1],d=(0,u.useState)(null),a=d[0],h=d[1],j=(0,u.useMemo)((function(){return t?R(t):{}}),[t]),Z=(0,u.useMemo)((function(){return t?L(t):{}}),[t]),g=(0,u.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]),u=i.completed,c=i.runtime,l=i.total;null===c?t.push(i):(e.push(c),n+=c*(l-u))})),0===e.length)return null;var r=(0,w.Sm)(e)/e.length;return t.forEach((function(e){var t=e.completed,o=e.total;n+=r*(o-t)})),n}),[Z]),I=(0,u.useMemo)((function(){return r?Z[r]:null}),[Z,r]),O=(0,u.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 D(t);return 0}),[I,t,r]),_=(0,u.useMemo)((function(){return(0,G.jsx)(f.ZP,{children:(0,w.w6)(101).map((function(n,e){return(0,G.jsx)(q,{even:e%2===0,fill:O>0&&Math.round(100*O)>=e},e)}))})}),[O]),y=(0,u.useMemo)((function(){if(r){var n=j[r]||[],e=n.every((function(n){var e=n.status;return A.V.COMPLETED===e})),o=(0,w.YC)(n,(function(n){return n.updated_at}),{ascending:!1})[0],i=null===o||void 0===o?void 0:o.status,u=I||{},c=u.completed,l=u.runtime,s=u.total;if(e)return"Sync complete for ".concat(r);if([A.V.CANCELLED,A.V.FAILED].includes(i))return p.Do[i];if(l&&s>=1){var d=Math.ceil(l*(s-c)/60);return"".concat((0,k._6)("minute",d,!0)," to completion")}return"Estimating time remaining for stream..."}if(p.VO.COMPLETED===(null===t||void 0===t?void 0:t.status))return"Sync complete";if(t){if([p.VO.CANCELLED,p.VO.FAILED].includes(null===t||void 0===t?void 0:t.status))return p.Do[null===t||void 0===t?void 0:t.status];if(p.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,k._6)("minute",a,!0)," to completion")}return"Select a sync"}),[j,g,I,t,r]),N=(0,u.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,u.useEffect)((function(){var n;if(t){var e=V(t);l(e),n=setInterval((function(){return l((function(n){return n+1}))}),1e3)}return function(){return clearInterval(n)}}),[t]),(0,u.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 E=(0,u.useMemo)((function(){if(t){if(r)return null===N||void 0===N?void 0:N.timeText;var n=V(t);return(0,k.zf)(n)}}),[t,r,N]),T=(0,u.useMemo)((function(){var n=Math.floor(c%86400/3600),e=Math.floor(c%3600/60),t=Math.floor(c%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(":")}),[c]),S=(0,u.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]),Y=(0,u.useMemo)((function(){return t?C(t):{errors:null,records:null,recordsInserted:null,recordsProcessed:null,recordsUpdated:null}}),[t]),F=Y.errors,H=Y.records,z=Y.recordsInserted,$=Y.recordsProcessed,nn=Y.recordsUpdated,en=(0,u.useMemo)((function(){return t&&r?C(t,r):{errors:null,records:null,recordsInserted:null,recordsProcessed:null,recordsUpdated:null}}),[t,r]),tn=(0,u.useMemo)((function(){var n=r?null===en||void 0===en?void 0:en.records:H,e=r?null===en||void 0===en?void 0:en.recordsInserted:z,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,k.x6)(n)}];return null===e&&null===o?i.push({label:"Rows processed",value:null===t?"-":(0,k.x6)(t)}):null!==e?i.push({label:"Rows inserted",value:(0,k.x6)(e)}):null!==o&&i.push({label:"Rows updated",value:(0,k.x6)(o)}),i.map((function(n){var e=n.label,t=n.value;return(0,G.jsxs)("div",{children:[(0,G.jsx)(b.ZP,{bold:!0,large:!0,muted:!0,children:e}),(0,G.jsx)(b.ZP,{headline:!0,children:t})]},e)}))}),[H,en,z,$,nn,E,T,status]),rn=(0,u.useMemo)((function(){if(!t)return(0,G.jsx)("div",{});var n=M(t);return(0,G.jsx)(X.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,u=e.progress,c=e.startedAt,l=e.status,s=e.timeText,d=(e.total,!!F[n]);return[(0,G.jsx)(b.ZP,{danger:d,default:!d,monospace:!0,children:n},"stream"),(0,G.jsx)(b.ZP,{default:!0,monospace:!0,children:c?c.split(".")[0]:"-"},"started_at"),(0,G.jsx)(b.ZP,{default:!0,monospace:!0,children:r?r.split(".")[0]:"-"},"completed_at"),(0,G.jsx)(b.ZP,{default:!0,children:[A.V.INITIAL,A.V.RUNNING].includes(l)?"-":s},"runtime"),(0,G.jsxs)("div",{children:[i&&(0,G.jsx)(x.Jr,{default:!0,size:2*P.iI}),!i&&(0,G.jsx)(f.ZP,{children:(0,w.w6)(51).map((function(n,e){return(0,G.jsx)(q,{fill:u>0&&Math.round(50*u)>=e,even:e%2===0,small:!0},e)}))})]},"progress"),(0,G.jsx)(W.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,G.jsx)(x.UL,{default:!0,size:2*P.iI})},"logs")]})),uuid:"".concat(null===t||void 0===t?void 0:t.id,"-streams-table")})}),[F,Z,t,r]),on=(0,u.useMemo)((function(){var n,e,o,i,u,c,l,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===(u=i[r])||void 0===u||null===(c=u.destinations)||void 0===c||null===(l=c.state)||void 0===l||null===(d=l.bookmarks)||void 0===d?void 0:d[r];if(f||v){var p=Array.from(new Set(Object.keys(f||{}).concat(Object.keys(v||{})))).sort(),m=[];p.forEach((function(n){var e=[(0,G.jsx)(b.ZP,{bold:!0,monospace:!0,muted:!0,small:!0,children:n},n)];[f,v].forEach((function(t,r){t&&e.push((0,G.jsx)(b.ZP,{monospace:!0,small:!0,children:t[n]},"".concat(n,"-").concat(r)))})),m.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,G.jsx)(X.Z,{columnFlex:[null,1,1],columns:h,rows:m,uuid:"".concat(r,"-bookmark-table")})}}}),[t,r]),un=(0,u.useMemo)((function(){var n,e,o,i,u,c;if(t&&r){var l=(null===t||void 0===t?void 0:t.metrics)||{blocks:null,destination:null,pipeline:null,source:null},d=null===l||void 0===l||null===(n=l.blocks)||void 0===n||null===(e=n[r])||void 0===e||null===(o=e.sources)||void 0===o?void 0:o.record,a=null===l||void 0===l||null===(i=l.blocks)||void 0===i||null===(u=i[r])||void 0===u||null===(c=u.destinations)||void 0===c?void 0:c.record;if(d||a){var f=Object.keys(a||d||{}).sort(),v=[];f.forEach((function(n){var e=[(0,G.jsx)(b.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,G.jsxs)(b.ZP,{monospace:!0,small:!0,textOverflow:!0,whiteSpaceNormal:!0,wordBreak:!0,children:[i&&(0,G.jsx)("pre",{children:JSON.stringify(o,null,2)}),!i&&o]},"".concat(n,"-").concat(r)))}})),v.push(e)}));var p=[{label:function(){return""},uuid:"column"}];return[[null===l||void 0===l?void 0:l.source,"source",d],[null===l||void 0===l?void 0:l.destination,"destination",a]].forEach((function(n){var e=(0,s.Z)(n,3),t=e[0],r=e[1];e[2]&&p.push({uuid:"".concat(t," (").concat(r,")")})})),(0,G.jsx)(X.Z,{columnFlex:[null,1,1],columns:p,rows:v.map((function(n){return n.map((function(n){return(0,G.jsx)(b.ZP,{default:!0,monospace:!0,children:n},n)}))})),uuid:"".concat(r,"-bookmark-table")})}}}),[t,r]),cn=(0,u.useMemo)((function(){var n,e,o,i,u,c,l=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===l||void 0===l||null===(o=l.sources)||void 0===o||null===(i=o.block_tags)||void 0===i?void 0:i.destination_table)||(null===l||void 0===l||null===(u=l.destinations)||void 0===u||null===(c=u.block_tags)||void 0===c?void 0:c.destination_table)}),[t,r]);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(m.Z,{p:3,children:[r&&(0,G.jsx)(m.Z,{mb:3,children:(0,G.jsxs)(f.ZP,{alignItems:"center",children:[(0,G.jsx)(J.Z,{block:!0,onClick:function(){return o.push("/pipelines/".concat(t.pipeline_uuid,"/syncs?pipeline_run_id=").concat(t.id))},preventDefault:!0,children:(0,G.jsxs)(f.ZP,{alignItems:"center",children:[(0,G.jsx)(x.Xd,{default:!0,size:1.5*P.iI}),(0,G.jsx)(m.Z,{mr:1}),(0,G.jsx)(b.ZP,{default:!0,children:"Syncs"})]})}),(0,G.jsx)(m.Z,{mx:1,children:(0,G.jsx)(b.ZP,{default:!0,monospace:!0,children:"/"})}),(0,G.jsx)(b.ZP,{bold:!0,monospace:!0,children:r})]})}),(0,G.jsxs)(f.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,G.jsx)(m.Z,{mr:2,my:1,children:(0,G.jsx)(v.Z,{level:5,muted:!t,children:y})}),t&&(0,G.jsx)(W.ZP,{onClick:function(){return o.push("/pipelines/".concat(t.pipeline_uuid,"/logs?pipeline_run_id[]=").concat(t.id))},small:!0,children:"Logs"})]}),(0,G.jsx)(m.Z,{mt:2,children:_}),t&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(m.Z,{mt:3,children:(0,G.jsxs)(f.ZP,{justifyContent:"space-between",children:[(0,G.jsxs)("div",{children:[(0,G.jsx)(b.ZP,{bold:!0,large:!0,muted:!0,children:"Runtime"}),(0,G.jsxs)(b.ZP,{headline:!0,children:[r&&[A.V.INITIAL,A.V.RUNNING].includes(null===N||void 0===N?void 0:N.status)&&S,r&&![A.V.INITIAL,A.V.RUNNING].includes(null===N||void 0===N?void 0:N.status)&&(null===N||void 0===N?void 0:N.timeText),!r&&[p.VO.INITIAL,p.VO.RUNNING].includes(null===t||void 0===t?void 0:t.status)&&T,!r&&![p.VO.INITIAL,p.VO.RUNNING].includes(null===t||void 0===t?void 0:t.status)&&E]})]}),tn]})}),Object.values(F).length>=1&&(0,G.jsxs)(m.Z,{mt:3,children:[(0,G.jsx)(v.Z,{level:5,muted:!0,children:"Errors"}),Object.entries(F).map((function(n,e){var t=(0,s.Z)(n,2),o=t[0],i=t[1];return(!r||r===o)&&(0,G.jsx)(m.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,u=r.errors,c=r.message,l=Array.isArray(i)?i.join(" "):i;return(0,G.jsxs)("div",{children:[(0,G.jsx)(m.Z,{mb:c||(null===u||void 0===u?void 0:u.length)>=1?2:0,children:(0,G.jsxs)(b.ZP,{monospace:!0,preWrap:!0,textOverflow:!0,children:[o,!!t&&(0,G.jsxs)(b.ZP,{inline:!0,monospace:!0,muted:!0,children:["\xa0(",t,")"]}),": ",(0,G.jsx)(b.ZP,{default:!0,inline:!0,monospace:!0,children:l&&(0,G.jsx)(B(),{children:l})})]})}),(0,G.jsx)(b.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:c}),u.map((function(n){return(0,G.jsx)(b.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:n},n)}))]},"".concat(o,"-").concat(t))}))},o)}))]})]})]}),t&&!r&&(0,G.jsx)(m.Z,{my:3,children:rn}),t&&r&&(0,G.jsxs)(G.Fragment,{children:[cn&&(0,G.jsx)(m.Z,{my:3,children:(0,G.jsxs)(m.Z,{px:3,children:[(0,G.jsx)(v.Z,{level:5,children:"Table name"}),(0,G.jsx)(m.Z,{mt:1,children:(0,G.jsx)(b.ZP,{default:!0,monospace:!0,children:cn})})]})}),on&&(0,G.jsxs)(m.Z,{my:3,children:[(0,G.jsx)(m.Z,{px:3,children:(0,G.jsx)(v.Z,{level:5,children:"Bookmarks"})}),(0,G.jsx)(m.Z,{px:1,children:on})]}),un&&(0,G.jsxs)(m.Z,{my:3,children:[(0,G.jsx)(m.Z,{px:3,children:(0,G.jsx)(v.Z,{level:5,children:"Sample row"})}),(0,G.jsx)(m.Z,{px:1,children:un})]})]})]})},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,u.useMemo)((function(){return(null===r||void 0===r?void 0:r.pipeline_runs)||[]}),[r]),i=(0,rn.iV)(),l=(0,u.useState)(null),s=l[0],d=l[1],a=(0,u.useState)(null),f=a[0],v=a[1],p=(0,u.useState)(null),m=p[0],h=p[1];(0,u.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)}))):m&&h(null),null!==i&&void 0!==i&&i.stream?v(i.stream):f&&v(null)}),[o,i,m,f]);var b=(0,u.useCallback)((function(){var n=m?M(m):[];return(0,G.jsx)($,{onClickRow:function(e){var t=n[e];(0,tn.u7)({stream:f===t?null:t})},pipelineRun:m,selectedStream:f})}),[m,f]),j=(0,u.useMemo)((function(){var n="/pipelines/".concat(t,"/syncs");m&&(n="".concat(n,"?pipeline_run_id=").concat(m.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,m,f]);return(0,G.jsx)(c.Z,{breadcrumbs:j,buildSidekick:b,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===m||void 0===m?void 0:m.id)===n.id;return(0,G.jsx)(H,{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 un=(0,l.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}})},99177: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)}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&&r(n,e)}t.d(e,{Z:function(){return o}})},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)}}},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}]);
|