mage-ai 0.9.55__py3-none-any.whl → 0.9.57__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mage-ai might be problematic. Click here for more details.
- mage_ai/api/parsers/ProjectParser.py +29 -0
- mage_ai/api/policies/BlockPolicy.py +1 -0
- mage_ai/api/policies/CustomDesignPolicy.py +3 -0
- mage_ai/api/policies/GitBranchPolicy.py +9 -0
- mage_ai/api/policies/GitCustomBranchPolicy.py +1 -0
- mage_ai/api/policies/GlobalHookPolicy.py +3 -0
- mage_ai/api/policies/ProjectPolicy.py +28 -0
- mage_ai/api/presenters/ProjectPresenter.py +4 -0
- mage_ai/api/resources/BlockResource.py +14 -1
- mage_ai/api/resources/FileResource.py +1 -1
- mage_ai/api/resources/GitFileResource.py +1 -1
- mage_ai/api/resources/GlobalHookResource.py +55 -10
- mage_ai/api/resources/PipelineResource.py +12 -11
- mage_ai/api/resources/ProjectResource.py +95 -7
- mage_ai/authentication/operation_history/models.py +1 -1
- mage_ai/cache/dbt/cache.py +1 -1
- mage_ai/cache/dbt/utils.py +22 -2
- mage_ai/cluster_manager/kubernetes/workload_manager.py +17 -7
- mage_ai/data_preparation/models/block/__init__.py +71 -5
- mage_ai/data_preparation/models/block/dbt/block_sql.py +13 -3
- mage_ai/data_preparation/models/block/dbt/dbt_adapter.py +15 -1
- mage_ai/data_preparation/models/block/dbt/profiles.py +14 -12
- mage_ai/data_preparation/models/block/platform/mixins.py +6 -2
- mage_ai/data_preparation/models/block/platform/utils.py +9 -1
- mage_ai/data_preparation/models/file.py +1 -1
- mage_ai/data_preparation/models/global_hooks/models.py +2 -2
- mage_ai/data_preparation/models/project/__init__.py +74 -4
- mage_ai/data_preparation/models/project/constants.py +1 -0
- mage_ai/data_preparation/repo_manager.py +3 -0
- mage_ai/orchestration/db/models/schedules.py +64 -102
- mage_ai/orchestration/db/models/schedules_project_platform.py +365 -0
- mage_ai/orchestration/pipeline_scheduler.py +5 -1700
- mage_ai/orchestration/pipeline_scheduler_original.py +1635 -0
- mage_ai/orchestration/pipeline_scheduler_project_platform.py +1701 -0
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/_next/static/A7VXVGKgLQCukXcjdysDz/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1557-724bfc3eabd095f7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/161-33f26e485ddef393.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2646-78905b899b68f4eb.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3419-ad674b271b8520ce.js → frontend_dist/_next/static/chunks/3419-b8bd26f5946bec5a.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3437-ce26fc28e114b44e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3540-9bb48b08f439d0a0.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3745-61b1c63bb56bb670.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{5729.0f2748e9e6dab951.js → 5189.dca121eccea793be.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5457-b373ebdf4d05d8e2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5533-3455832bc3f8429b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5729-9d8204ab91da631d.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/5810-e26a0768db1cfdba.js → frontend_dist/_next/static/chunks/5810-addfa3491ae6b01c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8264-68db2a8334ad48f1.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8432-0ace6fb7bdbc6864.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8731-82571147875a2d58.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/874-d9e1b3c9c00ebac9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9264-5df6e4c7b1e85c02.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-0d183e2f234d52c6.js → _app-4c0239ca6203e827.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-822e66aa2e90cf4c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-373217c5de51aeef.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/{[...slug]-1e4838e534c8f31e.js → [...slug]-0325e76a2f3e08c1.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-data-products-bb38f73540efeac4.js → global-data-products-927ebbdc29529765.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-a172f5a447bd8925.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-97bec2ac883e0c26.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-02d001d99eeaae3f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-2e577bfd4f0db2b7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/[user]-1827574a4ba95a72.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-a913c361bcc0d1a9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-4e6fdcbbfc931d67.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-1c327edcf05df9c9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{oauth-eba7027969034415.js → oauth-bd8494f8875c5c97.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-5a98e6a531410afb.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-1442183d13edec2e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-b526282c8ac49986.js → [...slug]-38b2241cdd10320c.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-515eb343210aa1fb.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-1c646dbef65d6a69.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{dashboard-fe4d1321da8291cb.js → dashboard-35cb916a18ac4e1f.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-cd1918632dfef29d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{logs-c011d465f61138ee.js → logs-67b0572c84db0940.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-46c0dabd155581a0.js → block-runs-40201b626ea3a664.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-f2a052cb8a20fe47.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-d1f23308effebe03.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-579899cbaedcdefc.js → monitors-9a116d88f00916ff.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-7a2265b7e44bed0b.js → [run]-2d5abcd019d4bea1.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{runs-9b53da919db959bd.js → runs-5363a7ae9afe8983.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{settings-1839276725bfd757.js → settings-931a1b3112866a72.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{syncs-68d779bc62185470.js → syncs-5ec5367cb877db38.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-01f4528602f4ba2a.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-8366661f8e2b2959.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-358523847fdbf547.js → triggers-378f8dada7d0c1dd.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-627be24ef4963cfb.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks/[...slug]-814bbd11e10c26dc.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks-021ec25e05862f8f.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-00393e67ab1e6788.js → frontend_dist/_next/static/chunks/pages/settings/account/profile-2b0aa123043519b8.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/preferences-05186e17c94347c1.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/settings-efe8bf1bf3177a7e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-eaeba99f9547a20a.js → [...slug]-aa5d871de1f3f7b0.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{permissions-c3140516cc28e467.js → permissions-ce45aad47049d993.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-1bc694b056ff0bcb.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-f6ff0e219a4b9ffd.js → [...slug]-88d29d1774db67e4.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{roles-22ff9d862736b2ec.js → roles-d8ca763e405cd9d1.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{sync-data-614925e838d1974c.js → sync-data-42bd909eb8951040.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/{[...slug]-5b88dfb1c6d0d16c.js → [...slug]-250dfdf22bfe67e9.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-eb904db7ac7ea57c.js → users-97c4ce119f7238b5.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-dcdd0c71f99aebad.js → frontend_dist/_next/static/chunks/pages/sign-in-1af3ba18ff646dd4.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/[...slug]-ff9d49355393daea.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{templates-5ebfe79c24d8c4b4.js → templates-299a2c8f2dd89cf3.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-fb3f398009a02879.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/test-59a08e06f4ef6c3a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-551b85802515e313.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-1362aeda4a31dd41.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{webpack-fea697dd168c6d0c.js → webpack-17c3a8f588f14cfd.js} +1 -1
- mage_ai/server/frontend_dist/block-layout.html +2 -2
- mage_ai/server/frontend_dist/compute.html +2 -2
- mage_ai/server/frontend_dist/files.html +2 -2
- mage_ai/server/frontend_dist/global-data-products/[...slug].html +2 -2
- mage_ai/server/frontend_dist/global-data-products.html +2 -2
- mage_ai/server/frontend_dist/global-hooks/[...slug].html +2 -2
- mage_ai/server/frontend_dist/global-hooks.html +2 -2
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage/files.html +2 -2
- mage_ai/server/frontend_dist/manage/settings.html +2 -2
- mage_ai/server/frontend_dist/manage/users/[user].html +2 -2
- mage_ai/server/frontend_dist/manage/users/new.html +2 -2
- mage_ai/server/frontend_dist/manage/users.html +2 -2
- mage_ai/server/frontend_dist/manage.html +2 -2
- mage_ai/server/frontend_dist/oauth.html +3 -3
- mage_ai/server/frontend_dist/overview.html +2 -2
- mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +2 -2
- mage_ai/server/frontend_dist/platform/global-hooks/[...slug].html +24 -0
- mage_ai/server/frontend_dist/platform/global-hooks.html +24 -0
- mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
- mage_ai/server/frontend_dist/settings/platform/preferences.html +24 -0
- mage_ai/server/frontend_dist/settings/platform/settings.html +24 -0
- mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/permissions.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/roles.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +3 -3
- mage_ai/server/frontend_dist/templates/[...slug].html +2 -2
- mage_ai/server/frontend_dist/templates.html +2 -2
- mage_ai/server/frontend_dist/terminal.html +2 -2
- mage_ai/server/frontend_dist/test.html +2 -2
- mage_ai/server/frontend_dist/triggers.html +2 -2
- mage_ai/server/frontend_dist/version-control.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/404.html +4 -4
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1557-724bfc3eabd095f7.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/161-33f26e485ddef393.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2646-78905b899b68f4eb.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/3419-ad674b271b8520ce.js → frontend_dist_base_path_template/_next/static/chunks/3419-b8bd26f5946bec5a.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3437-ce26fc28e114b44e.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3540-9bb48b08f439d0a0.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3745-61b1c63bb56bb670.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{5729.0f2748e9e6dab951.js → 5189.dca121eccea793be.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-b373ebdf4d05d8e2.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5533-3455832bc3f8429b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5729-9d8204ab91da631d.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/5810-e26a0768db1cfdba.js → frontend_dist_base_path_template/_next/static/chunks/5810-addfa3491ae6b01c.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-68db2a8334ad48f1.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8432-0ace6fb7bdbc6864.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8731-82571147875a2d58.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/874-d9e1b3c9c00ebac9.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-5df6e4c7b1e85c02.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{_app-0d183e2f234d52c6.js → _app-4c0239ca6203e827.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-822e66aa2e90cf4c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-373217c5de51aeef.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/{[...slug]-1e4838e534c8f31e.js → [...slug]-0325e76a2f3e08c1.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-data-products-bb38f73540efeac4.js → global-data-products-927ebbdc29529765.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-a172f5a447bd8925.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-97bec2ac883e0c26.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-02d001d99eeaae3f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-2e577bfd4f0db2b7.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-1827574a4ba95a72.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-a913c361bcc0d1a9.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users-4e6fdcbbfc931d67.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-1c327edcf05df9c9.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{oauth-eba7027969034415.js → oauth-bd8494f8875c5c97.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-5a98e6a531410afb.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-1442183d13edec2e.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-b526282c8ac49986.js → [...slug]-38b2241cdd10320c.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-515eb343210aa1fb.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-1c646dbef65d6a69.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{dashboard-fe4d1321da8291cb.js → dashboard-35cb916a18ac4e1f.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-cd1918632dfef29d.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{logs-c011d465f61138ee.js → logs-67b0572c84db0940.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-46c0dabd155581a0.js → block-runs-40201b626ea3a664.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-f2a052cb8a20fe47.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-d1f23308effebe03.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-579899cbaedcdefc.js → monitors-9a116d88f00916ff.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-7a2265b7e44bed0b.js → [run]-2d5abcd019d4bea1.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{runs-9b53da919db959bd.js → runs-5363a7ae9afe8983.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{settings-1839276725bfd757.js → settings-931a1b3112866a72.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{syncs-68d779bc62185470.js → syncs-5ec5367cb877db38.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-01f4528602f4ba2a.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-8366661f8e2b2959.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-358523847fdbf547.js → triggers-378f8dada7d0c1dd.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-627be24ef4963cfb.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks/[...slug]-814bbd11e10c26dc.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks-021ec25e05862f8f.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/settings/account/profile-00393e67ab1e6788.js → frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-2b0aa123043519b8.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-05186e17c94347c1.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/settings-efe8bf1bf3177a7e.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-eaeba99f9547a20a.js → [...slug]-aa5d871de1f3f7b0.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{permissions-c3140516cc28e467.js → permissions-ce45aad47049d993.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-1bc694b056ff0bcb.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-f6ff0e219a4b9ffd.js → [...slug]-88d29d1774db67e4.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{roles-22ff9d862736b2ec.js → roles-d8ca763e405cd9d1.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{sync-data-614925e838d1974c.js → sync-data-42bd909eb8951040.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/{[...slug]-5b88dfb1c6d0d16c.js → [...slug]-250dfdf22bfe67e9.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{users-eb904db7ac7ea57c.js → users-97c4ce119f7238b5.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/sign-in-dcdd0c71f99aebad.js → frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-1af3ba18ff646dd4.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-ff9d49355393daea.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{templates-5ebfe79c24d8c4b4.js → templates-299a2c8f2dd89cf3.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-fb3f398009a02879.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-59a08e06f4ef6c3a.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-551b85802515e313.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-1362aeda4a31dd41.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{webpack-d30cb09c85b4c4f0.js → webpack-b55fe1e575d8ac9d.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/wSRrM15xnvA8lOWcaque7/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/block-layout.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/compute.html +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 +5 -5
- mage_ai/server/frontend_dist_base_path_template/global-hooks.html +5 -5
- 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 +3 -3
- 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/platform/global-hooks/[...slug].html +24 -0
- mage_ai/server/frontend_dist_base_path_template/platform/global-hooks.html +24 -0
- mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/platform/preferences.html +24 -0
- mage_ai/server/frontend_dist_base_path_template/settings/platform/settings.html +24 -0
- 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 +11 -11
- 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 +2 -2
- 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/websocket_server.py +33 -22
- mage_ai/settings/models/configuration_option.py +15 -1
- mage_ai/settings/platform/__init__.py +44 -20
- mage_ai/shared/io.py +3 -0
- mage_ai/streaming/sinks/rabbitmq.py +3 -1
- mage_ai/streaming/sources/rabbitmq.py +5 -2
- mage_ai/tests/api/endpoints/test_pipeline_runs.py +4 -0
- mage_ai/tests/api/endpoints/test_projects.py +1 -0
- mage_ai/tests/api/resources/test_pipeline_resource.py +2 -2
- mage_ai/tests/data_preparation/models/block/platform/test_mixins.py +4 -3
- mage_ai/tests/data_preparation/models/test_block.py +2 -1
- mage_ai/tests/data_preparation/models/test_project.py +27 -7
- mage_ai/tests/orchestration/db/models/test_schedules.py +25 -7
- mage_ai/tests/orchestration/test_pipeline_scheduler.py +6 -261
- mage_ai/tests/orchestration/test_pipeline_scheduler_project_platform.py +286 -0
- mage_ai/tests/shared/mixins.py +1 -0
- {mage_ai-0.9.55.dist-info → mage_ai-0.9.57.dist-info}/METADATA +1 -1
- {mage_ai-0.9.55.dist-info → mage_ai-0.9.57.dist-info}/RECORD +309 -286
- mage_ai/server/frontend_dist/_next/static/7yQskzl_RfcpoOQn1DPQV/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1125-fbdaaef471846c61.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1952-c4ba37bc172d7051.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2646-d8612648f7836101.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3437-91f6098316edaf17.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3745-0aacee8ac93a042a.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5332-c5abdf5c8d65a52e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5457-6e700aadac17ceec.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8264-dad1f090c4278137.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8432-ec2b97cbf32ec5a7.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8731-9e0ad513b0dfce83.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/874-18d9f33cdd028e9d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9264-4428392376aa9dd4.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9626-2627bc34f11b2906.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-5ead3afa88d14721.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-87b31b998e9f1222.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-a7d74042d52c3c38.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-cf7f1ba0b44ec0fb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-899b362caff47d4d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-b9ddd48737fba474.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/[user]-1e8731ba2559fef4.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-a6307396dfa82c88.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-fc5aafe5085739a9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-c008f0201864d693.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-321f47b2dba4c780.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-bf4d162b5460acc6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-62ee3e957688c725.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-33d9fb90871be84c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-f4ff09cfff8bad46.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/[...slug]-04b0a55e8ad6f814.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-88025dd0ed3051a6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/test-b936dd972db94c6b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-e5e49ac3b9282aaa.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-a5372e488b5f44a2.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/2_SHgS8M315ekLG0qkZzC/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1125-fbdaaef471846c61.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-c4ba37bc172d7051.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2646-d8612648f7836101.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3437-91f6098316edaf17.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3745-0aacee8ac93a042a.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5332-c5abdf5c8d65a52e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-6e700aadac17ceec.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-dad1f090c4278137.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8432-ec2b97cbf32ec5a7.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8731-9e0ad513b0dfce83.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/874-18d9f33cdd028e9d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-4428392376aa9dd4.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9626-2627bc34f11b2906.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-5ead3afa88d14721.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-87b31b998e9f1222.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-a7d74042d52c3c38.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-cf7f1ba0b44ec0fb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-899b362caff47d4d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-b9ddd48737fba474.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-1e8731ba2559fef4.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-a6307396dfa82c88.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users-fc5aafe5085739a9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-c008f0201864d693.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-321f47b2dba4c780.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-bf4d162b5460acc6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-62ee3e957688c725.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-33d9fb90871be84c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-f4ff09cfff8bad46.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-04b0a55e8ad6f814.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-88025dd0ed3051a6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-b936dd972db94c6b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-e5e49ac3b9282aaa.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-a5372e488b5f44a2.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{7yQskzl_RfcpoOQn1DPQV → A7VXVGKgLQCukXcjdysDz}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{2_SHgS8M315ekLG0qkZzC → wSRrM15xnvA8lOWcaque7}/_ssgManifest.js +0 -0
- {mage_ai-0.9.55.dist-info → mage_ai-0.9.57.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.55.dist-info → mage_ai-0.9.57.dist-info}/WHEEL +0 -0
- {mage_ai-0.9.55.dist-info → mage_ai-0.9.57.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.55.dist-info → mage_ai-0.9.57.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
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,s=1,f=!1,d=0,p=0,h=.5;function g(){var t=c().length,i=s<l,o=i?s:l,u=i?l:s;n=(u-o)/Math.max(1,t-d+2*p),f&&(n=Math.floor(n)),o+=(u-o-n*(t-d))*h,e=n*(1-d),f&&(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,s]=n,l=+l,s=+s,g()):[l,s]},t.rangeRound=function(n){return[l,s]=n,l=+l,s=+s,f=!0,g()},t.bandwidth=function(){return e},t.step=function(){return n},t.round=function(n){return arguments.length?(f=!!n,g()):f},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,s]).round(f).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,s=0;a<o;++a){for(var f=n[e[a]],d=f[c][1]||0,p=(d-(f[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,s+=p*d}t[c-1][1]+=t[c-1][0]=u,l&&(u-=s/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,s=[],f=[];for(e=0;e<o;++e)t=c[e],a<l?(a+=u[t],s.push(t)):(l+=u[t],f.push(t));return f.reverse().concat(s)}},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,s=new Array(l);for(i=0;i<l;++i){for(var f,d=u[i],p=s[i]=new Array(c),h=0;h<c;++h)p[h]=f=[0,+a(r[h],d,h,r)],f.data=r[h];p.key=d}for(i=0,o=e(s);i<l;++i)s[o[i]].index=i;return t(s,o),s}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),s=t(44897),f=t(70515),d=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||s.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,s=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:f.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==s,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==s,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==s,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]||{})}))},s=o.E.reduce((function(n,e){return a(a({},n),{},(0,r.Z)({},e,0))}),{}),f=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({},s)),(0,r.Z)(t,u.qL.PYSPARK,{}),(0,r.Z)(t,u.qL.PYTHON,a({},s)),(0,r.Z)(t,u.qL.STREAMING,a({},s)),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],s=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(s).forEach((function(e){var t=(0,i.Z)(e,2),s=t[0],m=t[1];"null"===s||null===s||(r in n.grouped&&s in n.grouped[r]&&(d[s]=a({},n.grouped[r][s])),h[s]={},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[s])&&void 0!==t&&t[a]?d[s][a]:0;h[s][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,f.has(a)&&(o[s][a]=(o[s][a]||0)+l),c+=l})),u[r][s]=a(a({},d[s]),h[s]),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 V}});var r=t(26304),i=t(82394),o=t(21831),u=t(82684),c=t(84969),a=t(90948),l=t(63588),s=t.n(l),f=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 x(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,x=void 0===l?p.xf:l,j=n.xScale,O=n.yScale,w=n.color,_=n.keys,P=n.value,N=n.order,E=n.offset,I=n.children,k=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,f.Z)();_&&S.keys(_),P&&(0,g.Z)(S.value,P),N&&S.order((0,m.ZP)(N)),E&&S.offset((0,v.ZP)(E));var T=S(e),L=(0,h.Z)(j),C=T.map((function(n,e){var t=n.key;return{index:e,key:t,bars:n.map((function(e,r){var i=(O(a(e))||0)-(O(x(e))||0),u=O(x(e)),c="bandwidth"in j?j(o(e.data)):Math.max((j(o(e.data))||0)-L/2);return{bar:e,key:t,index:r,height:i,width:L,x:c||0,y:u||0,color:w(n.key,r)}}))}}));return I?u.createElement(u.Fragment,null,I(C)):u.createElement(d.Z,{className:s()("visx-bar-stack",t),top:r,left:i},C.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},k))}))})))}var j=t(67778),O=t(17066),w=t(29179),_=t(65376),P=t(48072),N=t(98677),E=t(84181),I=t(24903),k=t(55485),S=t(26226),T=t(30160),L=t(94035),C=t(44897),M=t(42631),D=t(95363),A=t(70515),R=t(48277),H=t(79221),U=t(28598),z=["height","width","xAxisLabel","yAxisLabel"];function B(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?B(Object(t),!0).forEach((function(e){(0,i.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):B(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function Y(n){var e=n.backgroundColor,t=n.colors,r=n.data,i=n.getXValue,u=(n.getYValue,n.height),l=n.keys,s=n.margin,f=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,w.Z)(),Z=b.hideTooltip,k=b.showTooltip,S=b.tooltipData,L=b.tooltipLeft,A=b.tooltipOpen,z=b.tooltipTop,B=m-(s.left+s.right),Y=u-(s.bottom+s.top),V=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}),[]),q=(0,N.Z)({domain:r.map(i),padding:.4,range:[0,B],round:!1}),K=(0,E.Z)({domain:[0,Math.max.apply(Math,(0,o.Z)(V))],range:[Y,0],round:!0}),W=null;A&&S&&(W=S.bar.data[S.key],Number.isSafeInteger(W)&&(W=(0,R.uf)(W)));var X=(0,I.Z)({domain:l,range:t});return(0,U.jsxs)("div",{style:{position:"relative",zIndex:2},children:[(0,U.jsxs)("svg",{height:u,width:m,children:[(0,U.jsx)("rect",{fill:e||C.Z.background.chartBlock,height:u,rx:14,width:m,x:0,y:0}),(0,U.jsx)(j.Z,{height:Y,left:s.left,scale:K,stroke:"black",strokeOpacity:.2,top:s.top,width:B}),(0,U.jsx)(d.Z,{left:s.left,top:s.top,children:(0,U.jsx)(x,{color:X,data:r,keys:l,value:function(n,e){return n[e]||0},x:i,xScale:q,yScale:K,children:function(n){return n.map((function(n){return n.bars.map((function(e){return(0,U.jsx)("rect",{fill:e.color,height:e.height,onMouseLeave:Z,onMouseMove:function(n){var t=(0,P.Z)(n),r=e.x+e.width/2+g;k({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,U.jsx)(c.Z,{hideTicks:!0,left:s.left,numTicks:f,scale:K,stroke:C.Z.content.muted,tickFormat:function(n){return y?y(n):(0,H.P5)(n)},tickLabelProps:function(){return{fill:C.Z.content.muted,fontFamily:D.ry,fontSize:11,textAnchor:"end",transform:"translate(0,2.5)"}},top:s.top}),(0,U.jsx)(a.Z,{hideTicks:!0,left:s.left,scale:q,stroke:C.Z.content.muted,tickFormat:v,tickLabelProps:function(){return{fill:C.Z.content.muted,fontFamily:D.ry,fontSize:11,textAnchor:"middle"}},top:Y+s.top})]}),p&&(0,U.jsx)("div",{style:{display:"flex",fontSize:"14px",justifyContent:"center",position:"absolute",top:s.top/2-10,width:"100%"},children:(0,U.jsx)(O.Z,{direction:"row",labelMargin:"0 15px 0 0",scale:X})}),A&&S&&(0,U.jsxs)(_.Z,{left:L,style:F(F({},_.j),{},{backgroundColor:C.Z.background.page,borderRadius:"".concat(M.TR,"px"),padding:".3rem .4rem"}),top:z,children:[(0,U.jsx)(T.ZP,{bold:!0,color:X(S.key),children:S.key}),(0,U.jsx)(T.ZP,{children:W}),(0,U.jsx)(T.ZP,{children:i(S.bar.data)})]})]})}var V=function(n){var e=n.height,t=n.width,i=n.xAxisLabel,o=n.yAxisLabel,u=(0,r.Z)(n,z);return(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)("div",{style:{height:e,marginBottom:A.iI,width:t},children:[o&&(0,U.jsx)(k.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,U.jsx)(L.Z,{children:(0,U.jsx)(T.ZP,{center:!0,muted:!0,small:!0,children:o})})}),(0,U.jsx)("div",{style:{height:e,width:o?0===t?t:t-28:t},children:(0,U.jsx)(S.Z,{children:function(n){var e=n.height,t=n.width;return(0,U.jsx)(Y,F(F({},u),{},{height:e,width:t}))}})}),i&&(0,U.jsx)("div",{style:{paddingLeft:o?36:0,paddingTop:4},children:(0,U.jsx)(T.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={}))},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,{PN:function(){return c},TR:function(){return h},U5:function(){return l},Wb:function(){return p},Xm:function(){return o},Z4:function(){return s},fq:function(){return a},gm:function(){return f},kJ:function(){return d}});var r,i,o,u=t(82394),c="__bookmark_values__";!function(n){n.API="api",n.EVENT="event",n.TIME="time"}(o||(o={}));var a,l,s=(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"}(a||(a={})),function(n){n.ONCE="@once",n.HOURLY="@hourly",n.DAILY="@daily",n.WEEKLY="@weekly",n.MONTHLY="@monthly",n.ALWAYS_ON="@always_on"}(l||(l={}));var f,d,p=[l.ONCE,l.HOURLY,l.DAILY,l.WEEKLY,l.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"}(d||(d={}));var h=(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)},85854:function(n,e,t){"use strict";var r,i,o,u,c,a,l,s,f=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),x=t(38276),j=t(28598),O=["children","condensed","inline","level","marketing","spacingBelow"];function w(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){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?w(Object(t),!0).forEach((function(e){(0,f.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var P=(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 "}),(function(n){return n.strikethrough&&"\n text-decoration: line-through;\n "})),N=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 ")})),E=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],P,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"})([""," ",""],P,y.MJ),k=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],P,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(s||(s=(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"})([""," ",""],P,y.BL),T=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],P),L=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],P),C=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],P),M=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],P,(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 "})),D=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,O);i?e=M:0===Number(o)?e=E:1===Number(o)?e=u?k:I:2===Number(o)?e=S:3===Number(o)?e=T:4===Number(o)?e=L:5===Number(o)&&(e=C);var l=(0,j.jsxs)(e,_(_({},a),{},{level:o,children:[c&&(0,j.jsx)(x.Z,{mb:r?2:3,children:t}),!c&&t]}));return i?l:(0,j.jsx)(N,{children:l})};D.defaultProps={level:3,weightStyle:6},e.Z=D},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),s=t.n(l),f=t(92083),d=t.n(f),p=t(38626),h=t(53998),g=t(55485),m=t(85854),v=t(48670),y=t(7116),b=t(93808),Z=t(38276),x=t(30160),j=t(35686),O=t(64657),w=t(72473),_=t(30229),P=t(70515),N=t(81728),E=t(24491),I=t(3917),k=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 T(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 L=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 C(n){var e=n.pipeline.uuid,t=(0,a.useState)(null),r=t[0],u=t[1],c=j.ZP.pipeline_schedules.pipelines.list(e).data,l=(0,a.useMemo)((function(){return null===c||void 0===c?void 0:c.pipeline_schedules}),[c]),f=(0,a.useMemo)((function(){return null===l||void 0===l?void 0:l.reduce((function(n,e){return T(T({},n),{},(0,o.Z)({},null===e||void 0===e?void 0:e.id,e))}),{})}),[l]),p=j.ZP.pipelines.detail(e,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,b=(0,a.useMemo)((function(){return T(T({},null===p||void 0===p?void 0:p.pipeline),{},{uuid:e})}),[p,e]),S=j.ZP.monitor_stats.detail("pipeline_run_count",{pipeline_uuid:null===b||void 0===b?void 0:b.uuid}).data,C=((null===S||void 0===S?void 0:S.monitor_stat)||{}).stats,M=(0,a.useMemo)((function(){return(0,I.Y_)()}),[]),D=(0,a.useMemo)((function(){return(0,E.p)(C,M)}),[M,C]),A=(0,a.useMemo)((function(){if(C)return Object.entries(C).reduce((function(n,e){var t=(0,i.Z)(e,2),r=t[0],u=t[1].data,c=M.map((function(n){return T({date:n},u[n]||{})}));return T(T({},n),{},(0,o.Z)({},r,c))}),{})}),[M,C]),R=(0,a.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[]);return(0,k.jsx)(y.Z,{breadcrumbs:R,errors:r,monitorType:O.a_.PIPELINE_RUNS,pipeline:b,setErrors:u,children:(0,k.jsxs)(Z.Z,{mt:2,mx:2,children:[(0,k.jsx)(Z.Z,{ml:1,children:(0,k.jsx)(L,{children:(0,k.jsx)(m.Z,{children:"All pipeline runs"})})}),(0,k.jsx)(Z.Z,{mt:1,children:(0,k.jsx)(h.Z,{colors:O.NU,data:D,getXValue:function(n){return n.date},height:200,keys:O.hu,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:O.CD,xLabelFormat:function(n){return d()(n).format("MMM DD")}})}),A&&Object.entries(A).map((function(n){var t,r=(0,i.Z)(n,2),o=r[0],u=r[1],c=null===f||void 0===f?void 0:f[o];return(0,k.jsxs)(Z.Z,{mt:3,children:[(0,k.jsxs)(g.ZP,{alignItems:"center",children:[(0,k.jsx)(Z.Z,{mx:1,children:(0,k.jsx)(L,{children:(0,k.jsx)(x.ZP,{bold:!0,large:!0,children:(0,N.kC)(null===(t=_.Z4[null===c||void 0===c?void 0:c.schedule_type])||void 0===t?void 0:t.call(_.Z4))})})}),(0,k.jsx)(s(),{as:"/pipelines/".concat(e,"/triggers/").concat(null===c||void 0===c?void 0:c.id),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,k.jsx)(v.Z,{children:(0,k.jsxs)(g.ZP,{alignItems:"center",children:[(0,k.jsx)(m.Z,{level:5,children:(null===c||void 0===c?void 0:c.name)||o}),(0,k.jsx)(Z.Z,{ml:1}),(0,k.jsx)(w._Q,{default:!0,size:2*P.iI})]})})})]}),(0,k.jsx)(Z.Z,{mt:1,children:(0,k.jsx)(h.Z,{colors:O.NU,data:u,getXValue:function(n){return n.date},height:200,keys:O.hu,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:O.CD,xLabelFormat:function(n){return d()(n).format("MMM DD")}})})]},o)}))]})})}C.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)(C)},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}})},13692:function(n,e,t){"use strict";t.d(e,{Z:function(){return i}});var r=t(61049);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&&(0,r.Z)(n,e)}},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)}},61049:function(n,e,t){"use strict";function r(n,e){return r=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n},r(n,e)}t.d(e,{Z:function(){return r}})}},function(n){n.O(0,[2678,1154,844,5896,2714,874,9626,8264,5457,9774,2888,179],(function(){return e=89677,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|
|
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,s=1,f=!1,d=0,p=0,h=.5;function g(){var t=c().length,i=s<l,o=i?s:l,u=i?l:s;n=(u-o)/Math.max(1,t-d+2*p),f&&(n=Math.floor(n)),o+=(u-o-n*(t-d))*h,e=n*(1-d),f&&(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,s]=n,l=+l,s=+s,g()):[l,s]},t.rangeRound=function(n){return[l,s]=n,l=+l,s=+s,f=!0,g()},t.bandwidth=function(){return e},t.step=function(){return n},t.round=function(n){return arguments.length?(f=!!n,g()):f},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,s]).round(f).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,s=0;a<o;++a){for(var f=n[e[a]],d=f[c][1]||0,p=(d-(f[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,s+=p*d}t[c-1][1]+=t[c-1][0]=u,l&&(u-=s/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,s=[],f=[];for(e=0;e<o;++e)t=c[e],a<l?(a+=u[t],s.push(t)):(l+=u[t],f.push(t));return f.reverse().concat(s)}},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,s=new Array(l);for(i=0;i<l;++i){for(var f,d=u[i],p=s[i]=new Array(c),h=0;h<c;++h)p[h]=f=[0,+a(r[h],d,h,r)],f.data=r[h];p.key=d}for(i=0,o=e(s);i<l;++i)s[o[i]].index=i;return t(s,o),s}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),s=t(44897),f=t(70515),d=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||s.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,s=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:f.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==s,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==s,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==s,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]||{})}))},s=o.E.reduce((function(n,e){return a(a({},n),{},(0,r.Z)({},e,0))}),{}),f=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({},s)),(0,r.Z)(t,u.qL.PYSPARK,{}),(0,r.Z)(t,u.qL.PYTHON,a({},s)),(0,r.Z)(t,u.qL.STREAMING,a({},s)),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],s=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(s).forEach((function(e){var t=(0,i.Z)(e,2),s=t[0],m=t[1];"null"===s||null===s||(r in n.grouped&&s in n.grouped[r]&&(d[s]=a({},n.grouped[r][s])),h[s]={},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[s])&&void 0!==t&&t[a]?d[s][a]:0;h[s][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,f.has(a)&&(o[s][a]=(o[s][a]||0)+l),c+=l})),u[r][s]=a(a({},d[s]),h[s]),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 V}});var r=t(26304),i=t(82394),o=t(21831),u=t(82684),c=t(84969),a=t(90948),l=t(63588),s=t.n(l),f=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 x(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,x=void 0===l?p.xf:l,j=n.xScale,O=n.yScale,w=n.color,_=n.keys,P=n.value,N=n.order,E=n.offset,I=n.children,k=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,f.Z)();_&&S.keys(_),P&&(0,g.Z)(S.value,P),N&&S.order((0,m.ZP)(N)),E&&S.offset((0,v.ZP)(E));var T=S(e),L=(0,h.Z)(j),C=T.map((function(n,e){var t=n.key;return{index:e,key:t,bars:n.map((function(e,r){var i=(O(a(e))||0)-(O(x(e))||0),u=O(x(e)),c="bandwidth"in j?j(o(e.data)):Math.max((j(o(e.data))||0)-L/2);return{bar:e,key:t,index:r,height:i,width:L,x:c||0,y:u||0,color:w(n.key,r)}}))}}));return I?u.createElement(u.Fragment,null,I(C)):u.createElement(d.Z,{className:s()("visx-bar-stack",t),top:r,left:i},C.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},k))}))})))}var j=t(67778),O=t(17066),w=t(29179),_=t(65376),P=t(48072),N=t(98677),E=t(84181),I=t(24903),k=t(55485),S=t(26226),T=t(30160),L=t(94035),C=t(44897),M=t(42631),D=t(95363),A=t(70515),R=t(48277),H=t(79221),U=t(28598),z=["height","width","xAxisLabel","yAxisLabel"];function B(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?B(Object(t),!0).forEach((function(e){(0,i.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):B(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function Y(n){var e=n.backgroundColor,t=n.colors,r=n.data,i=n.getXValue,u=(n.getYValue,n.height),l=n.keys,s=n.margin,f=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,w.Z)(),Z=b.hideTooltip,k=b.showTooltip,S=b.tooltipData,L=b.tooltipLeft,A=b.tooltipOpen,z=b.tooltipTop,B=m-(s.left+s.right),Y=u-(s.bottom+s.top),V=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}),[]),q=(0,N.Z)({domain:r.map(i),padding:.4,range:[0,B],round:!1}),K=(0,E.Z)({domain:[0,Math.max.apply(Math,(0,o.Z)(V))],range:[Y,0],round:!0}),W=null;A&&S&&(W=S.bar.data[S.key],Number.isSafeInteger(W)&&(W=(0,R.uf)(W)));var X=(0,I.Z)({domain:l,range:t});return(0,U.jsxs)("div",{style:{position:"relative",zIndex:2},children:[(0,U.jsxs)("svg",{height:u,width:m,children:[(0,U.jsx)("rect",{fill:e||C.Z.background.chartBlock,height:u,rx:14,width:m,x:0,y:0}),(0,U.jsx)(j.Z,{height:Y,left:s.left,scale:K,stroke:"black",strokeOpacity:.2,top:s.top,width:B}),(0,U.jsx)(d.Z,{left:s.left,top:s.top,children:(0,U.jsx)(x,{color:X,data:r,keys:l,value:function(n,e){return n[e]||0},x:i,xScale:q,yScale:K,children:function(n){return n.map((function(n){return n.bars.map((function(e){return(0,U.jsx)("rect",{fill:e.color,height:e.height,onMouseLeave:Z,onMouseMove:function(n){var t=(0,P.Z)(n),r=e.x+e.width/2+g;k({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,U.jsx)(c.Z,{hideTicks:!0,left:s.left,numTicks:f,scale:K,stroke:C.Z.content.muted,tickFormat:function(n){return y?y(n):(0,H.P5)(n)},tickLabelProps:function(){return{fill:C.Z.content.muted,fontFamily:D.ry,fontSize:11,textAnchor:"end",transform:"translate(0,2.5)"}},top:s.top}),(0,U.jsx)(a.Z,{hideTicks:!0,left:s.left,scale:q,stroke:C.Z.content.muted,tickFormat:v,tickLabelProps:function(){return{fill:C.Z.content.muted,fontFamily:D.ry,fontSize:11,textAnchor:"middle"}},top:Y+s.top})]}),p&&(0,U.jsx)("div",{style:{display:"flex",fontSize:"14px",justifyContent:"center",position:"absolute",top:s.top/2-10,width:"100%"},children:(0,U.jsx)(O.Z,{direction:"row",labelMargin:"0 15px 0 0",scale:X})}),A&&S&&(0,U.jsxs)(_.Z,{left:L,style:F(F({},_.j),{},{backgroundColor:C.Z.background.page,borderRadius:"".concat(M.TR,"px"),padding:".3rem .4rem"}),top:z,children:[(0,U.jsx)(T.ZP,{bold:!0,color:X(S.key),children:S.key}),(0,U.jsx)(T.ZP,{children:W}),(0,U.jsx)(T.ZP,{children:i(S.bar.data)})]})]})}var V=function(n){var e=n.height,t=n.width,i=n.xAxisLabel,o=n.yAxisLabel,u=(0,r.Z)(n,z);return(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)("div",{style:{height:e,marginBottom:A.iI,width:t},children:[o&&(0,U.jsx)(k.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,U.jsx)(L.Z,{children:(0,U.jsx)(T.ZP,{center:!0,muted:!0,small:!0,children:o})})}),(0,U.jsx)("div",{style:{height:e,width:o?0===t?t:t-28:t},children:(0,U.jsx)(S.Z,{children:function(n){var e=n.height,t=n.width;return(0,U.jsx)(Y,F(F({},u),{},{height:e,width:t}))}})}),i&&(0,U.jsx)("div",{style:{paddingLeft:o?36:0,paddingTop:4},children:(0,U.jsx)(T.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={}))},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,{PN:function(){return c},TR:function(){return h},U5:function(){return l},Wb:function(){return p},Xm:function(){return o},Z4:function(){return s},fq:function(){return a},gm:function(){return f},kJ:function(){return d}});var r,i,o,u=t(82394),c="__bookmark_values__";!function(n){n.API="api",n.EVENT="event",n.TIME="time"}(o||(o={}));var a,l,s=(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"}(a||(a={})),function(n){n.ONCE="@once",n.HOURLY="@hourly",n.DAILY="@daily",n.WEEKLY="@weekly",n.MONTHLY="@monthly",n.ALWAYS_ON="@always_on"}(l||(l={}));var f,d,p=[l.ONCE,l.HOURLY,l.DAILY,l.WEEKLY,l.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"}(d||(d={}));var h=(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)},85854:function(n,e,t){"use strict";var r,i,o,u,c,a,l,s,f=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),x=t(38276),j=t(28598),O=["children","condensed","inline","level","marketing","spacingBelow"];function w(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){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?w(Object(t),!0).forEach((function(e){(0,f.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var P=(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 "}),(function(n){return n.strikethrough&&"\n text-decoration: line-through;\n "})),N=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 ")})),E=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],P,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"})([""," ",""],P,y.MJ),k=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],P,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(s||(s=(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"})([""," ",""],P,y.BL),T=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],P),L=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],P),C=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],P),M=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],P,(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 "})),D=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,O);i?e=M:0===Number(o)?e=E:1===Number(o)?e=u?k:I:2===Number(o)?e=S:3===Number(o)?e=T:4===Number(o)?e=L:5===Number(o)&&(e=C);var l=(0,j.jsxs)(e,_(_({},a),{},{level:o,children:[c&&(0,j.jsx)(x.Z,{mb:r?2:3,children:t}),!c&&t]}));return i?l:(0,j.jsx)(N,{children:l})};D.defaultProps={level:3,weightStyle:6},e.Z=D},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),s=t.n(l),f=t(92083),d=t.n(f),p=t(38626),h=t(53998),g=t(55485),m=t(85854),v=t(48670),y=t(7116),b=t(93808),Z=t(38276),x=t(30160),j=t(35686),O=t(64657),w=t(72473),_=t(30229),P=t(70515),N=t(81728),E=t(24491),I=t(3917),k=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 T(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 L=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 C(n){var e=n.pipeline.uuid,t=(0,a.useState)(null),r=t[0],u=t[1],c=j.ZP.pipeline_schedules.pipelines.list(e).data,l=(0,a.useMemo)((function(){return null===c||void 0===c?void 0:c.pipeline_schedules}),[c]),f=(0,a.useMemo)((function(){return null===l||void 0===l?void 0:l.reduce((function(n,e){return T(T({},n),{},(0,o.Z)({},null===e||void 0===e?void 0:e.id,e))}),{})}),[l]),p=j.ZP.pipelines.detail(e,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,b=(0,a.useMemo)((function(){return T(T({},null===p||void 0===p?void 0:p.pipeline),{},{uuid:e})}),[p,e]),S=j.ZP.monitor_stats.detail("pipeline_run_count",{pipeline_uuid:null===b||void 0===b?void 0:b.uuid}).data,C=((null===S||void 0===S?void 0:S.monitor_stat)||{}).stats,M=(0,a.useMemo)((function(){return(0,I.Y_)()}),[]),D=(0,a.useMemo)((function(){return(0,E.p)(C,M)}),[M,C]),A=(0,a.useMemo)((function(){if(C)return Object.entries(C).reduce((function(n,e){var t=(0,i.Z)(e,2),r=t[0],u=t[1].data,c=M.map((function(n){return T({date:n},u[n]||{})}));return T(T({},n),{},(0,o.Z)({},r,c))}),{})}),[M,C]),R=(0,a.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[]);return(0,k.jsx)(y.Z,{breadcrumbs:R,errors:r,monitorType:O.a_.PIPELINE_RUNS,pipeline:b,setErrors:u,children:(0,k.jsxs)(Z.Z,{mt:2,mx:2,children:[(0,k.jsx)(Z.Z,{ml:1,children:(0,k.jsx)(L,{children:(0,k.jsx)(m.Z,{children:"All pipeline runs"})})}),(0,k.jsx)(Z.Z,{mt:1,children:(0,k.jsx)(h.Z,{colors:O.NU,data:D,getXValue:function(n){return n.date},height:200,keys:O.hu,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:O.CD,xLabelFormat:function(n){return d()(n).format("MMM DD")}})}),A&&Object.entries(A).map((function(n){var t,r=(0,i.Z)(n,2),o=r[0],u=r[1],c=null===f||void 0===f?void 0:f[o];return(0,k.jsxs)(Z.Z,{mt:3,children:[(0,k.jsxs)(g.ZP,{alignItems:"center",children:[(0,k.jsx)(Z.Z,{mx:1,children:(0,k.jsx)(L,{children:(0,k.jsx)(x.ZP,{bold:!0,large:!0,children:(0,N.kC)(null===(t=_.Z4[null===c||void 0===c?void 0:c.schedule_type])||void 0===t?void 0:t.call(_.Z4))})})}),(0,k.jsx)(s(),{as:"/pipelines/".concat(e,"/triggers/").concat(null===c||void 0===c?void 0:c.id),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,k.jsx)(v.Z,{children:(0,k.jsxs)(g.ZP,{alignItems:"center",children:[(0,k.jsx)(m.Z,{level:5,children:(null===c||void 0===c?void 0:c.name)||o}),(0,k.jsx)(Z.Z,{ml:1}),(0,k.jsx)(w._Q,{default:!0,size:2*P.iI})]})})})]}),(0,k.jsx)(Z.Z,{mt:1,children:(0,k.jsx)(h.Z,{colors:O.NU,data:u,getXValue:function(n){return n.date},height:200,keys:O.hu,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:O.CD,xLabelFormat:function(n){return d()(n).format("MMM DD")}})})]},o)}))]})})}C.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)(C)},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}})},13692:function(n,e,t){"use strict";t.d(e,{Z:function(){return i}});var r=t(61049);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&&(0,r.Z)(n,e)}},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)}},61049:function(n,e,t){"use strict";function r(n,e){return r=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n},r(n,e)}t.d(e,{Z:function(){return r}})}},function(n){n.O(0,[2678,1154,844,5896,2714,874,1557,8264,5457,9774,2888,179],(function(){return e=89677,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8662],{28108:function(t,e,n){"use strict";n.d(e,{Z:function(){return m}});var r=n(82684),i=n(63588),o=n.n(i),u=n(75823),a=n(29989),c=n(62072),l=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,y=t.x0,b=void 0===y?c.l8:y,x=t.x1,j=void 0===x?c.xf:x,O=t.xScale,Z=t.yScale,w=t.color,k=t.keys,T=t.value,E=t.order,P=t.offset,S=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),D=(0,u.Z)();k&&D.keys(k),T&&(0,s.Z)(D.value,T),E&&D.order((0,d.ZP)(E)),P&&D.offset((0,f.ZP)(P));var _=D(e),L=(0,l.Z)(Z),A=_.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(b(e))||0),o=O(b(e)),u="bandwidth"in Z?Z(g(e.data)):Math.max((Z(g(e.data))||0)-i/2);return{bar:e,key:n,index:r,height:L,width:i,x:o||0,y:u||0,color:w(t.key,r)}}))}}));return S?r.createElement(r.Fragment,null,S(A)):r.createElement(a.Z,{className:o()("visx-bar-stack-horizontal",n),top:i,left:m},A.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 l}});var r=n(12759),i=n(27500),o=n(82610),u=n(34812),a=n(77944),c={expand:r.Z,diverging:i.Z,none:o.Z,silhouette:u.Z,wiggle:a.Z};Object.keys(c);function l(t){return t&&c[t]||c.none}},18246:function(t,e,n){"use strict";n.d(e,{ZP:function(){return l}});var r=n(39586),i=n(25516),o=n(54164),u=n(8512),a=n(2010),c={ascending:r.Z,descending:i.Z,insideout:o.Z,none:u.Z,reverse:a.Z};Object.keys(c);function l(t){return t&&c[t]||c.none}},66909:function(t,e,n){"use strict";n.d(e,{Eh:function(){return l},t0:function(){return s}});var r=n(38626),i=n(2842),o=n(17679),u=n(61896),a=n(47041),c=n(70515),l=(c.iI,o.O$+3*c.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*c.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 k},Uc:function(){return x},XM:function(){return w},_U:function(){return h},eI:function(){return b},gU:function(){return O},lO:function(){return I},ri:function(){return g},tL:function(){return j},vJ:function(){return Z},xH:function(){return y}});var r,i=n(82394),o=n(92083),u=n.n(o),a=n(3917),c=n(4383),l=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(l.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,c=null;o&&r&&(c=u()(r).valueOf()-u()(o).valueOf());return p(p({},t),{},(0,i.Z)({},n,{runtime:c,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:l.Xm.TIME},{description:function(){return"This pipeline will run when a specific event occurs."},label:function(){return"Event"},uuid:l.Xm.EVENT},{description:function(){return"Run this pipeline when you make an API call."},label:function(){return"API"},uuid:l.Xm.API}];return t?e.slice(0,1):e};function y(t){var e=(0,s.gR)(t,[l.gm.INTERVAL,l.gm.TYPE]),n=t[l.gm.INTERVAL];n&&(e["schedule_interval[]"]=encodeURIComponent(n));var r=t[l.gm.TYPE];return r&&(e["schedule_type[]"]=r),e}function b(t){return t?new Date(u()(t).valueOf()):null}function x(t,e){return e?(0,a.XG)(t,e):function(t){if("string"!==typeof t)return t;var e=t.split("+")[0];return u()(b(e)).format(a.Nx)}(t)}!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 Z(t,e){return t*j[e]}function w(t,e,n){var r,i=u()(t);return 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.TD),null!==n&&void 0!==n&&n.includeSeconds&&(r=r.concat(":00")),null!==n&&void 0!==n&&n.localTimezone&&(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}))),r}function k(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,c.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 E=(0,d.m5)(60),P=(0,d.m5)(24),S=(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 c=t.split(" "),l=c[0],s=c[1],d=c[2],f=T(l,a,E),p=T(s,o+f.additionalOffset,P);if(c[0]=f.cronValue,c[1]=p.cronValue,0!==(null===p||void 0===p?void 0:p.additionalOffset)){var h=T(d,p.additionalOffset,S);c[2]=h.cronValue}return c.join(" ")}},52729:function(t,e,n){"use strict";n.d(e,{Z:function(){return F}});var r=n(26304),i=n(21831),o=n(82394),u=n(82684),a=n(26226),c=n(84969),l=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),y=n(84181),b=n(55485),x=n(4190),j=n(30160),O=n(94035),Z=n(70987),w=n(79633),k=n(89370),T=n(95363),E=n(61896),P=n(70515),S=n(38469),I=n(6568),D=function(t){return t.slice(0,10)},_=function(t,e){var n=t.toISOString().slice(0,10),r=e.toISOString().slice(0,10);return"".concat(n,":").concat(r)},L=n(79221),A=n(98684),M=n(28598),N=["height","loading","selected","width","xAxisLabel","yAxisLabel"];function R(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 C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?R(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Y={bottom:P.iI,left:3*P.iI,right:0,top:1*P.iI},U=(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,b=t.height,x=t.hideTooltip,O=t.large,N=t.margin,R=void 0===N?{}:N,U=t.muted,F=t.noPadding,H=t.numberOfXTicks,V=t.renderTooltipContent,B=t.selected,X=t.showAxisLabels,z=t.showTooltip,G=t.showYAxisLabels,J=t.showZeroes,K=t.sortData,W=t.tooltipData,q=t.tooltipLeft,Q=t.tooltipOpen,$=t.tooltipTop,tt=t.width,et=t.xLabelFormat,nt=t.yLabelFormat,rt=O?E.J5:E.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===k.RL.DATETIME,ct=C(C({},Y),R);X&&(ct=C(C({},ct),{},{left:ct.left+P.iI}));var lt=K?K(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]})):lt.slice(0,60),dt=tt-(ct.left+ct.right),ft=b-(ct.bottom+ct.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,S.Z)(n[0]),(0,S.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],c=n[o];if(a&&c){var l=new Date(a),s=new Date(c),d=_(l,s);if(e>=l&&e<s)r[d]=(r[d]||0)+u;else for(;o<n.length||!r[d];)if(i+=1,o+=1,l=new Date(n[i]),s=new Date(n[o]),d=_(l,s),e>=l&&e<s)return void(r[d]=(r[d]||0)+u)}})),n.reduce((function(t,e,n,r){if(0===n)return t;var i=D(e),o=D(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(D(t[0]))-new Date(D(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||J)&&t.push(it(e)),t}),[]),gt=mt.length,yt=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),bt=(0,g.Z)({domain:mt,paddingInner:F?null:yt,range:[0,dt],round:!1}),xt=(0,y.Z)({domain:[0,Math.max.apply(Math,(0,i.Z)(st.map(ot)))],range:[ft,0],round:!0}),jt=(0,A.K)(ut),Ot={active:((null===ut||void 0===ut?void 0:ut.content)||Z.Z.content).active,default:jt[0],muted:((null===ut||void 0===ut?void 0:ut.monotone)||Z.Z.monotone).gray,selected:((null===ut||void 0===ut?void 0:ut.elevation)||Z.Z.elevation).visualizationAccent},Zt=Ot.default;U?Zt=Ot.muted:B&&(Zt=Ot.selected);var wt=gt?at?vt:Math.max.apply(Math,(0,i.Z)(st.map((function(t){return ot(t)})))):0,kt=Math.floor(wt/6),Tt=[0],Et=0;if(wt>6)for(;Et<wt;)Tt.push(Et+kt),Et+=kt;else for(;Et<=wt;)Tt.push(Et+1),Et+=1;wt>9999?ct=C(C({},ct),{},{left:O?8*P.iI:4.1*P.iI}):wt>999&&(ct=C(C({},ct),{},{left:O?5*P.iI:3.6*P.iI}));var Pt=at?2.25:0,St=gt<10||e===k.RL.NUMBER||e===k.RL.NUMBER_WITH_DECIMALS||at||G,It=(0,u.useCallback)((function(t){var e=(0,m.Z)(t)||{x:0,y:0},n=e.x,r=e.y,i=(n-(X?ct.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 c=V?V(u):"".concat(a," (").concat(ot(u),")");z({tooltipData:c,tooltipLeft:n-ct.left,tooltipTop:r+ct.top})}),[st,gt,it,ot,ct.left,ct.top,V,X,z,tt]);return tt<10||!r.length?null:(0,M.jsxs)("div",{children:[(0,M.jsxs)("svg",{height:b+ct.bottom*(at?7.5:3),width:tt,children:[(0,M.jsx)(d.Z,{left:X?ct.left:0,top:ct.top+Pt,children:st.reduce((function(t,e){var n=it(e),r=ot(e);if(0!==r){var i,u=bt.bandwidth(),a=ft-(null!==(i=xt(r))&&void 0!==i?i:0),c=bt(n),l=ft-a;t.push((0,M.jsx)(s.Z,{fill:o?o(e):Zt,height:a,onMouseLeave:function(){return x()},onMouseMove:It,onTouchMove:It,onTouchStart:It,width:u,x:c,y:l},"bar-".concat(n)))}return t}),[])}),X&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(c.Z,{left:ct.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:ct.top+Pt}),(0,M.jsx)(l.Z,{left:ct.left,numTicks:at?void 0:H||6,orientation:"top",scale:pt||bt,stroke:Ot.muted,tickFormat:function(t){return et?et(String(t)):at?t.toISOString().slice(0,10):String(t)},tickLabelProps:function(t){return{fill:St?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*ct.bottom,")")}},tickLineProps:{transform:"translate(0,".concat(P.iI,")")},tickStroke:St?Ot.muted:"transparent",top:ft+ct.top+Pt})]})]}),Q&&W&&(0,M.jsx)(h.Z,{left:q,style:v.j,top:$,children:(0,M.jsx)(j.ZP,{color:w.E5,small:!0,children:W})})]})}));var F=function(t){var e=t.height,n=t.loading,i=t.selected,o=t.width,u=t.xAxisLabel,c=t.yAxisLabel,l=(0,r.Z)(t,N);return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)("div",{style:{display:"flex",height:e,marginBottom:P.iI,width:"100%"},children:[c&&(0,M.jsx)(b.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,M.jsx)(O.Z,{children:(0,M.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:c})})}),(0,M.jsxs)("div",{style:{height:e,width:c?0===o?o:o-28:o},children:[n&&(0,M.jsx)(x.Z,{}),!n&&(0,M.jsx)(a.Z,{children:function(t){var e=t.height,n=t.width;return(0,M.jsx)(U,C(C({},l),{},{height:e,selected:i,width:n}))}})]})]}),u&&(0,M.jsx)("div",{style:{paddingLeft:c?36:0,paddingTop:4},children:(0,M.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:u})})]})}},87862:function(t,e,n){"use strict";n.d(e,{Z:function(){return P}});var r=n(26304),i=n(82394),o=n(75582),u=n(26226),a=n(28940),c=n(82684),l=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),y=n(98684),b=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 Z={bottom:0,left:0,right:0,top:0},w=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}},k=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,c=t.textColor;return(0,d.useTransition)(n,{enter:k,from:e?w:k,keys:i,leave:e?w:k,update:k})((function(t,e,n){var l=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,b.jsxs)("g",{children:[(0,b.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,b.jsx)(d.animated.g,{style:{opacity:t.opacity},children:(0,b.jsx)("text",{dy:".33em",fill:c,fontFamily:v.ry,fontSize:m.J5,pointerEvents:"none",textAnchor:"middle",x:p,y:h,children:i(e)})})]},l)}))}function E(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?Z:d,v=t.textColor,m=t.width,x=(0,c.useState)(null),j=x[0],w=x[1],k=(0,c.useContext)(s.ThemeContext),E=v||(null===k||void 0===k?void 0:k.content.active)||h.Z.content.active;if(m<10)return null;var P=(0,f.Z)({domain:r.map((function(t){return i(t)})),range:(0,y.K)(k)}),S=m-p.left-p.right,I=u-p.top-p.bottom,D=Math.min(S,I)/2,_=I/2,L=S/2,A=Math.min(S/4,12*g.iI);return(0,b.jsx)("svg",{height:u,width:m,children:(0,b.jsx)(l.Z,{left:L+p.left,top:_+p.top,children:(0,b.jsx)(a.Z,{cornerRadius:g.iI/2,data:j?r.filter((function(t){return JSON.stringify(t)===JSON.stringify(j)})):r,innerRadius:Math.max(D-A,12.25),outerRadius:D,padAngle:.005,pieValue:o,children:function(t){return(0,b.jsx)(T,O(O({},t),{},{animate:n,getColor:function(t){var e=t.data;return P(i(e))},getKey:function(t){var e=t.data;return i(e)},onClickDatum:function(t){var e=t.data;return n&&w(j&&JSON.stringify(j)===JSON.stringify(e)?null:e)},textColor:E}))}})})})}function P(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,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{style:a,children:(0,b.jsx)(u.Z,{children:function(t){var e=t.width,n=t.height;return(0,b.jsx)(E,O(O({},o),{},{height:n,width:e}))}})}),i&&(0,b.jsx)("div",{style:{paddingTop:4},children:(0,b.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,c=n.energy300,l=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,y=n.wind400,b=e.chart;return[b.backgroundPrimary,b.backgroundSecondary,b.backgroundTertiary].concat([y,v,f,l,u,g,h,d,c,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}},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),c=n(82394),l=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),y=n(61655),b=n(16853),x=n(65376),j=n(48072),O=n(24903),Z=n(84181),w=n(98677),k=n(30160),T=n(70987),E=n(79633),P=n(61896),S=n(70515),I=n(95363),D=n(28598),_=["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 A(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,c.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 M={bottom:5*S.iI,left:3*S.iI,right:20*S.iI,top:0},N=function(t){return t.x},R=function(t){return t.y},C=(0,y.Z)((function(t){var e=t.data,n=t.height,r=t.hideTooltip,i=t.large,o=t.margin,u=void 0===o?{}:o,c=t.renderTooltipContent,s=t.showTooltip,y=t.tooltipData,S=t.tooltipLeft,_=t.tooltipOpen,L=t.tooltipTop,C=t.width,Y=t.xAxisLabel,U=t.xNumTicks,F=t.yLabelFormat,H=t.ySerialize,V=F;V||(V=function(t){return t.length>20?"".concat(t.substring(0,20),"..."):t});var B=i?P.iD:P.J5,X=(0,l.useContext)(g.ThemeContext),z=A(A({},M),u),G=e.slice(Math.max(0,e.length-50)),J=Object.keys(G[0]||[]).filter((function(t){return"x"===t})),K=(0,O.Z)({domain:J,range:[E.hM]}),W=(0,Z.Z)({domain:[0,Math.max.apply(Math,(0,a.Z)(G.map(N)))],nice:!0}),q=(0,w.Z)({domain:G.map(R),padding:.35}),Q={active:(null===X||void 0===X?void 0:X.content.default)||T.Z.content.default,backgroundPrimary:(null===X||void 0===X?void 0:X.chart.backgroundPrimary)||T.Z.chart.backgroundPrimary,backgroundSecondary:(null===X||void 0===X?void 0:X.chart.backgroundSecondary)||T.Z.chart.backgroundSecondary,muted:(null===X||void 0===X?void 0:X.content.muted)||T.Z.content.muted,primary:(null===X||void 0===X?void 0:X.chart.primary)||T.Z.chart.primary,tooltipBackground:(null===X||void 0===X?void 0:X.background.navigation)||T.Z.background.navigation},$=G.map(H),tt=Math.min(Math.max.apply(Math,(0,a.Z)($.map((function(t){return String(t).length})))),20);6*tt>2*z.right?z.right+=5.5*tt:6*tt>=z.right&&(z.right+=3.75*tt);var et=C-z.left-z.right,nt=n-z.top-z.bottom;z.left+=7*tt,W.rangeRound([0,et]),q.rangeRound([nt,0]);var rt=G.map(N).length,it=q($[rt-1]),ot=(0,l.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=G[o];"undefined"===typeof u&&(u=G[o-1]),r>it&&r<nt-it&&s({tooltipData:u,tooltipLeft:n,tooltipTop:r+z.top})}),[G,rt,z.top,s,it,nt]);return C<10?null:(0,D.jsxs)("div",{children:[(0,D.jsxs)("svg",{height:n,width:C,children:[(0,D.jsx)(p.Z,{fill:"transparent",height:n-(z.top+z.bottom),onMouseLeave:function(){return r()},onMouseMove:ot,onTouchMove:ot,onTouchStart:ot,rx:14,width:C-z.left,x:z.left,y:0}),(0,D.jsxs)(m.Z,{left:z.left,top:z.top,children:[(0,D.jsx)(h.Z,{color:K,data:G,height:nt,keys:J,pointerEvents:"none",xScale:W,y:H,yScale:q,children:function(t){return t.map((function(t){return t.bars.map((function(e){return(0,D.jsx)("g",{children:(0,D.jsx)(D.Fragment,{children:(0,D.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,D.jsx)(d.Z,{hideTicks:!0,scale:q,stroke:Q.muted,tickFormat:function(t){return V(t)},tickLabelProps:function(){return{fill:Q.active,fontFamily:I.ry,fontSize:B,style:{width:"10px"},textAnchor:"end"}},tickStroke:Q.muted,tickValues:$,top:2}),(0,D.jsx)(f.Z,{label:Y,labelProps:{fill:Q.muted,fontFamily:I.ry,fontSize:B,textAnchor:"middle"},numTicks:U,scale:W,stroke:Q.muted,tickLabelProps:function(){return{fill:Q.active,fontFamily:I.ry,fontSize:B,textAnchor:"middle"}},tickStroke:Q.muted,top:nt})]}),y&&(0,D.jsx)("g",{children:(0,D.jsx)(v.Z,{from:{x:z.left,y:L},pointerEvents:"none",stroke:E.Ej,strokeDasharray:"5,2",strokeWidth:1,to:{x:et+z.left,y:L}})})]}),_&&y&&(0,D.jsx)(b.Z,{left:S,style:A(A({},x.j),{},{backgroundColor:Q.tooltipBackground}),top:L,children:(0,D.jsxs)(k.ZP,{black:!0,small:!0,children:[null===c||void 0===c?void 0:c(y),!c&&N(y).toFixed(4)]})})]})}));var Y,U,F,H,V=function(t){var e=t.height,n=t.width,r=(0,u.Z)(t,_);return(0,D.jsx)("div",{style:{height:e,width:"undefined"===typeof n?"100%":n},children:(0,D.jsx)(s.Z,{children:function(t){var e=t.width,n=t.height;return(0,D.jsx)(C,A(A({},r),{},{height:n,width:e}))}})})},B=n(97618),X=n(52729),z=n(48670),G=n(87862),J=n(89370),K=n(86735),W=(K.Qj,K.tS,K.tS,K.tS,K.tS,K.Qj,K.Qj,K.Qj,K.tS,K.tS,Y={},(0,c.Z)(Y,J.RL.EMAIL,"domain_distribution"),(0,c.Z)(Y,J.RL.TEXT,"word_distribution"),(0,c.Z)(Y,J.RL.LIST,"element_distribution"),(0,c.Z)(Y,"default","value_counts"),Y),q=[].concat((0,a.Z)(J.P_),[J.RL.TEXT,J.RL.EMAIL,J.RL.LIST]),Q=(U={},(0,c.Z)(U,J.RL.EMAIL,"Domain distribution"),(0,c.Z)(U,J.RL.TEXT,"Word distribution"),(0,c.Z)(U,J.RL.LIST,"Element distribution"),(0,c.Z)(U,"default","Distribution of values"),n(31353));!function(t){t.RANGE="range"}(F||(F={})),function(t){t.BAR_HORIZONTAL="bar_horizontal",t.LINE_CHART="line_chart",t.HISTOGRAM="histogram"}(H||(H={}));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,c=i.getYValue,l=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===c||void 0===c?void 0:c(t)})))||[],v=Math.max.apply(Math,(0,a.Z)(h)),m=Math.max.apply(Math,(0,a.Z)(h)),g=(0,K.Sm)(h),y=(0,K.IN)(h),b=g/Math.max(1,h.length),x=e[d]||u,j=null===x||void 0===x?void 0:x.columnType,O=J.RL.DATETIME===j,Z=[],w=[],k=l.length,T=l.map((function(t,e){var r,i,u,a,c=t.label,l=t.max,s=t.min,d=p[e];if(F.RANGE===f)if(n||(n=l-s),a=J.RL.NUMBER===j&&n<=k)r=Number(s);else if(r=n/2+s,O){var x="M/D/YYYY",T="M/D/YYYY",E="M/D/YYYY";n<=1?(x=n<=.1?"H:mm:ss.SSS":"H:mm:ss",T="H:mm:ss.SSS",E="H:mm:ss.SSS"):n<=60?(x="H:mm",T="H:mm:ss",E="H:mm:ss"):n<=3600?(x="H:mm",T="M/D/YYYY H:mm",E="H:mm"):n<=86400&&(T="M/D/YYYY H:mm",E="M/D/YYYY H:mm"),r=et().unix(r).format(x),i=et().unix(s).format(T),u=et().unix(l).format(E)}else r=(0,nt.QV)(r);else r=c;var P=e>=1?p[e-1]:null,S=!1;o&&(S=o({x:t,y:d,yPrevious:P,yValues:h,yValuesAverage:b,yValuesMax:v,yValuesMin:m,yValuesStandardDeviation:y,yValuesSum:g}));var I={hideRange:a,isUnusual:S,x:t,xLabel:r,xLabelMax:u,xLabelMin:i,y:d};return S&&(a?w.push(I):Z.push(I)),I}));return{distribution:{data:T,featureUUID:d},rangedWithUnusualDistribution:(0,K.YC)(Z,(function(t){var e=t.y;return c(e)}),{ascending:!1}),unusualDistribution:(0,K.YC)(w,(function(t){var e=t.y;return c(e)}),{ascending:!1})}}var it=n(40489);var ot=12*S.iI;function ut(t){var e=t.columnTypes,n=t.columns,i=t.insightsByFeatureUUID,u=t.insightsOverview,a=t.noColumnLinks,c=void 0!==a&&a,l=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]===J.RL.DATETIME})),y=null===m||void 0===m?void 0:m.map((function(t){return rt(t,{},{feature:{columnType:p,uuid:f}}).distribution})),b={};null===y||void 0===y||y.forEach((function(t,e){var n=t.data;b[g[e]]=(0,D.jsx)(X.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,D.jsxs)("p",{children:["Rows: ",n,(0,D.jsx)("br",{}),"Start: ",i,(0,D.jsx)("br",{}),"End: ",o]})},sortData:function(t){return(0,K.YC)(t,"[4]")}},f)}));var x,j=null===v||void 0===v?void 0:v.find((function(t){var e=t.type;return H.HISTOGRAM===e})),O=(j?rt(j,{},{feature:{columnType:p,uuid:f},getYValue:function(t){return t.value}}):{}).distribution,Z=void 0===O?null:O,w=W[p]||W.default,T=null===l||void 0===l?void 0:l["".concat(f,"/").concat(w)],E=Object.entries(T||{}).map((function(t){var e=(0,r.Z)(t,2),n=e[0];return{x:e[1],y:n}})),P=J.RL.TRUE_OR_FALSE===p;if(J.RL.DATETIME===p)x=b[f];else if(Z&&!P)x=(0,D.jsx)(X.Z,{data:Z.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,D.jsxs)("p",{children:[u&&(0,D.jsxs)(D.Fragment,{children:["Rows: ",n,(0,D.jsx)("br",{}),"Value: ",i]}),!u&&(0,D.jsxs)(D.Fragment,{children:["Rows: ",n,(0,D.jsx)("br",{}),"Range: ",i," - ",o]})]})},sortData:function(t){return(0,K.YC)(t,"[2]")},width:d-2*S.iI});else if(q.includes(p)){var I=(0,K.YC)((0,K.YC)(E,"x",{ascending:!1}).slice(0,5),"x");x=(0,D.jsx)(V,{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 P&&T&&(x=(0,D.jsx)(G.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,D.jsxs)("div",{style:{padding:S.iI},children:[(0,D.jsxs)("div",{style:{alignItems:"center",display:"flex",marginBottom:S.iI},children:[h&&(0,D.jsx)(B.Z,{title:J.Rp[p],children:(0,D.jsx)(h,{size:2*S.iI})}),(0,D.jsx)("div",{style:{marginLeft:.5*S.iI,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:d-4.5*S.iI},children:c?(0,D.jsx)(k.ZP,{bold:!0,default:!0,title:n[a],children:n[a]}):(0,D.jsx)(o(),{as:(0,it.o_)($.oE,a),href:"/datasets/[...slug]",passHref:!0,children:(0,D.jsx)(z.Z,{bold:!0,monospace:!0,secondary:!0,small:!0,title:n[a],children:n[a]})})})]}),x,!x&&(0,D.jsx)("div",{style:{height:ot}})]})}}},44265:function(t,e,n){"use strict";n.d(e,{Az:function(){return l},BF:function(){return c},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],c=[u.INITIAL,u.RUNNING],l=[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,{PN:function(){return a},TR:function(){return h},U5:function(){return l},Wb:function(){return p},Xm:function(){return o},Z4:function(){return s},fq:function(){return c},gm:function(){return d},kJ:function(){return f}});var r,i,o,u=n(82394),a="__bookmark_values__";!function(t){t.API="api",t.EVENT="event",t.TIME="time"}(o||(o={}));var c,l,s=(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"}(c||(c={})),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 d,f,p=[l.ONCE,l.HOURLY,l.DAILY,l.WEEKLY,l.MONTHLY];!function(t){t.INTERVAL="frequency[]",t.STATUS="status[]",t.TAG="tag[]",t.TYPE="type[]"}(d||(d={})),function(t){t.CREATED_AT="created_at",t.NAME="name",t.PIPELINE="pipeline_uuid",t.STATUS="status",t.TYPE="schedule_type"}(f||(f={}));var h=(i={},(0,u.Z)(i,f.CREATED_AT,"Created at"),(0,u.Z)(i,f.NAME,"Name"),(0,u.Z)(i,f.PIPELINE,"Pipeline"),(0,u.Z)(i,f.STATUS,"Active"),(0,u.Z)(i,f.TYPE,"Type"),i)},14532:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return rt}});var r=n(77837),i=n(75582),o=n(82394),u=n(38860),a=n.n(u),c=n(82684),l=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),y=n(75457),b=n(44265),x=n(57653),j=n(93808),O=n(38276),Z=n(4190),w=n(30160),k=n(35686),T=n(21831),E=n(26304),P=n(90299),S=n(93859),I=n(24138),D=n(48339),_=n(46684),L=n(70515),A=n(66909),M=n(8955),N=n(16488),R=n(81728),C=n(86735),Y=n(28598),U=["blockRuns","blocksOverride","columns","dataType","height","heightOffset","loadingData","outputs","pipeline","renderColumnHeader","rows","selectedRun","selectedTab","setSelectedTab","textData"];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 H(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,o.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 V={uuid:"Dependency tree"},B={uuid:"Block output"},X=[B,V];var z=n(28795),G=n(81655),J=n(3917),K=n(72619),W=n(95924),q=n(69419),Q=n(70320);function $(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 tt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var et=100;function nt(t){var e=t.pipeline,n=t.pipelineRun,r=(0,Q.qB)(),o=(0,s.useRouter)(),u=(0,q.iV)(),a=null!==u&&void 0!==u&&u.page?u.page:0,j=(0,c.useState)(null),F=j[0],$=j[1],nt=(0,c.useState)(X[0]),rt=nt[0],it=nt[1],ot=(0,c.useState)(null),ut=ot[0],at=ot[1],ct=e.uuid,lt=k.ZP.pipelines.detail(ct,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,st=(0,c.useMemo)((function(){return tt(tt({},null===lt||void 0===lt?void 0:lt.pipeline),{},{uuid:ct})}),[lt,ct]),dt=k.ZP.pipeline_runs.detail(n.id,{_format:"with_basic_details"},{refreshInterval:3e3,revalidateOnFocus:!0}).data,ft=(0,c.useMemo)((function(){return(null===dt||void 0===dt?void 0:dt.pipeline_run)||{}}),[dt]),pt=ft.execution_date,ht=ft.id,vt=ft.status,mt={_limit:et,_offset:a*et,pipeline_run_id:ht},gt=null===u||void 0===u?void 0:u[G.lG.SORT_COL_IDX],yt=null===u||void 0===u?void 0:u[G.lG.SORT_DIRECTION];if(gt){var bt=d.fi[gt],xt=yt||G.sh.ASC;mt.order_by="".concat(bt,"%20").concat(xt)}var jt=k.ZP.block_runs.list(mt,{refreshInterval:5e3}),Ot=jt.data,Zt=jt.mutate,wt=(0,c.useMemo)((function(){return(null===Ot||void 0===Ot?void 0:Ot.block_runs)||[]}),[Ot]),kt=wt.map((function(t){return t.block_uuid})),Tt=(0,c.useMemo)((function(){return kt}),[kt]),Et=k.ZP.blocks.pipeline_runs.list(null===n||void 0===n?void 0:n.id,{_limit:et,block_uuid:Tt},{}).data,Pt=(0,l.Db)(k.ZP.pipeline_runs.useUpdate(ht),{onSuccess:function(t){return(0,K.wD)(t,{callback:function(){$(null),null===Zt||void 0===Zt||Zt()},onErrorCallback:function(t,e){return at({errors:e,response:t})}})}}),St=(0,i.Z)(Pt,2),It=St[0],Dt=St[1].isLoading,_t=k.ZP.outputs.block_runs.list(null===F||void 0===F?void 0:F.id),Lt=_t.data,At=_t.loading;(0,c.useEffect)((function(){F||(null===rt||void 0===rt?void 0:rt.uuid)!==B.uuid||it(V)}),[F,null===rt||void 0===rt?void 0:rt.uuid]);var Mt=(0,c.useMemo)((function(){return(0,Y.jsx)(d.ZP,{blockRuns:wt,onClickRow:function(t){$((function(e){var n=wt[t],r=(null===e||void 0===e?void 0:e.id)!==n.id?n:null;return r&&it((function(t){return t!==B?B:t})),r}))},pipeline:st,selectedRun:F,setErrors:at,sortableColumnIndexes:d.lG})}),[wt,st,F]),Nt=(null===st||void 0===st?void 0:st.type)!==x.qL.STREAMING&&vt&&vt!==b.VO.COMPLETED,Rt=((null===st||void 0===st?void 0:st.type)===x.qL.PYTHON||(null===st||void 0===st?void 0:st.type)===x.qL.INTEGRATION)&&F&&b.Az.includes(vt),Ct=(0,c.useMemo)((function(){var t;return(null===Ot||void 0===Ot||null===(t=Ot.metadata)||void 0===t?void 0:t.count)||[]}),[Ot]),Yt=(0,c.useMemo)((function(){return(0,Y.jsx)(O.Z,{p:2,children:(0,Y.jsx)(g.ZP,{maxPages:g.Et,onUpdate:function(t){var e=Number(t),n=tt(tt({},u),{},{page:e>=0?e:0});$(null),o.push("/pipelines/[pipeline]/runs/[run]","/pipelines/".concat(ct,"/runs/").concat(ht,"?").concat((0,q.uM)(n)))},page:Number(a),totalPages:Math.ceil(Ct/et)})})}),[a,ht,ct,u,o,Ct]),Ut=(0,c.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,c=t.pipeline,l=t.renderColumnHeader,s=(t.rows,t.selectedRun),d=t.selectedTab,f=t.setSelectedTab,h=(t.textData,H({},(0,E.Z)(t,U)));h.blockStatus=(0,N.IJ)(e);var m=[],g=[],y=(0,R.bH)();if(!u){var b,x={};null===a||void 0===a||a.forEach((function(t){var e=t.type;x[e]||(x[e]={outputs:[],priority:Object.keys(x).length}),x[e].outputs.push(t)})),null===(b=(0,C.YC)(Object.entries(x),(function(t){var e=(0,i.Z)(t,2);return e[0],e[1].priority})))||void 0===b||b.forEach((function(t,e){var n=(0,i.Z)(t,2),u=n[0],a=n[1].outputs,c=[];null===a||void 0===a||a.forEach((function(t,n){var i,a=t.sample_data,s=t.text_data,d=t.type,f=(0,Y.jsx)(O.Z,{ml:2,children:(0,Y.jsx)(w.ZP,{children:"This block run has no output."})},"output-empty-".concat(e,"-").concat(n));if(d===D.Gi.TABLE){var p=((null===a||void 0===a?void 0:a.columns)||[]).slice(0,40),h=(null===a||void 0===a?void 0:a.rows)||[];i=h&&(null===h||void 0===h?void 0:h.length)>=1?(0,Y.jsx)(S.Z,{columnHeaderHeight:l?A.Eh:0,columns:p,height:r-o-90,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,renderColumnHeader:l,rows:h},"output-table-".concat(e,"-").concat(n)):f}else{var v=(0,R.Pb)(s)?JSON.stringify(JSON.parse(s),null,2):s;i=s?(0,Y.jsx)(O.Z,{ml:2,children:(0,Y.jsx)(w.ZP,{monospace:!0,children:(0,Y.jsx)("pre",{children:v})})},"output-text-".concat(e,"-").concat(n)):f}var b=y[e];D.Gi.TEXT===u?(c.push(i),0===n&&g.push({uuid:"Block output ".concat(n+1).concat(b)})):(m.push(i),g.push({uuid:"Block output ".concat(n+1).concat(b)}))})),D.Gi.TEXT===u&&m.push(c)}))}var j=m,k=g,F=X;(null===k||void 0===k?void 0:k.length)>=2&&(F=[B].concat((0,T.Z)(k.slice(1)),[V]));var z=d&&f,G=j[F.findIndex((function(t){return t.uuid===(null===d||void 0===d?void 0:d.uuid)}))];return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("div",{style:{position:"fixed",top:_.Mz},children:z&&(0,Y.jsx)(Y.Fragment,{children:(0,Y.jsx)(O.Z,{py:0,children:(0,Y.jsx)(P.Z,{onClickTab:f,regularSizeText:!0,selectedTabUUID:null===d||void 0===d?void 0:d.uuid,tabs:s?F:[V],underlineStyle:!0})})})}),(0,Y.jsxs)("div",{style:{position:"relative",top:M.u$},children:[z&&(0,Y.jsx)(p.Z,{light:!0}),(!s||V.uuid===(null===d||void 0===d?void 0:d.uuid))&&(0,Y.jsx)(I.ZP,H(H({},h),{},{blocksOverride:n,enablePorts:!1,height:r,heightOffset:(o||0)+(z?M.u$+1:0),pipeline:c})),s&&d&&V.uuid!==(null===d||void 0===d?void 0:d.uuid)&&(0,Y.jsxs)(Y.Fragment,{children:[u&&(0,Y.jsx)(O.Z,{mt:2,children:(0,Y.jsx)(v.ZP,{alignItems:"center",fullWidth:!0,justifyContent:"center",children:(0,Y.jsx)(Z.Z,{color:"white",large:!0})})}),!u&&(0,Y.jsx)(O.Z,{py:L.cd,children:G})]})]})]})}(tt(tt({},t),{},{blockRuns:wt,blocksOverride:Ct<=et&&(null===Et||void 0===Et?void 0:Et.blocks),loadingData:At,outputs:null===Lt||void 0===Lt?void 0:Lt.outputs,selectedRun:F,selectedTab:rt,setSelectedTab:it,showDynamicBlocks:!0}))}),[wt,Et,Lt,At,F,rt,it,Ct]);return(0,Y.jsxs)(y.Z,{breadcrumbs:[{label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(ct,"/runs"),href:"/pipelines/[pipeline]/runs"}},{label:function(){return r?(0,J.XG)(pt,r):pt}}],buildSidekick:Ut,errors:ut,pageName:z.M.RUNS,pipeline:st,setErrors:at,subheader:(Nt||Rt)&&(0,Y.jsxs)(v.ZP,{alignItems:"center",children:[b.BF.includes(vt)&&(0,Y.jsxs)(h.Z,{children:[(0,Y.jsx)(w.ZP,{bold:!0,default:!0,large:!0,children:"Pipeline is running"}),(0,Y.jsx)(O.Z,{mr:1}),(0,Y.jsx)(Z.Z,{inverted:!0}),(0,Y.jsx)(O.Z,{mr:2})]}),Nt&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(f.ZP,{danger:!0,loading:Dt,onClick:function(t){(0,W.j)(t),It({pipeline_run:{pipeline_run_action:"retry_blocks"}})},outline:!0,children:"Retry incomplete blocks"}),(0,Y.jsx)(O.Z,{mr:2})]}),Rt&&(0,Y.jsxs)(f.ZP,{loading:Dt,onClick:function(t){(0,W.j)(t),It({pipeline_run:{from_block_uuid:F.block_uuid,pipeline_run_action:"retry_blocks"}})},outline:!0,primary:!0,children:["Retry from selected block (",F.block_uuid,")"]})]}),title:function(t){var e=t.name;return"".concat(e," runs")},uuid:"".concat(z.M.RUNS,"_").concat(ct,"_").concat(ht),children:[(0,Y.jsx)(O.Z,{mt:L.cd,px:L.cd,children:(0,Y.jsx)(m.Z,{level:5,children:"Block runs"})}),(0,Y.jsx)(p.Z,{light:!0,mt:L.cd,short:!0}),Mt,Yt]})}nt.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 rt=(0,j.Z)(nt)},39525:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs/[run]",function(){return n(14532)}])}},function(t){t.O(0,[2678,1154,844,5820,1124,1751,5896,9161,2631,874,9626,8264,7858,5499,5283,5457,3745,3859,3419,9774,2888,179],(function(){return e=39525,t(t.s=e);var e}));var e=t.O();_N_E=e}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8662],{28108:function(t,e,n){"use strict";n.d(e,{Z:function(){return m}});var r=n(82684),i=n(63588),o=n.n(i),u=n(75823),a=n(29989),c=n(62072),l=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,y=t.x0,b=void 0===y?c.l8:y,x=t.x1,j=void 0===x?c.xf:x,O=t.xScale,Z=t.yScale,w=t.color,k=t.keys,T=t.value,E=t.order,P=t.offset,S=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),D=(0,u.Z)();k&&D.keys(k),T&&(0,s.Z)(D.value,T),E&&D.order((0,d.ZP)(E)),P&&D.offset((0,f.ZP)(P));var _=D(e),L=(0,l.Z)(Z),A=_.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(b(e))||0),o=O(b(e)),u="bandwidth"in Z?Z(g(e.data)):Math.max((Z(g(e.data))||0)-i/2);return{bar:e,key:n,index:r,height:L,width:i,x:o||0,y:u||0,color:w(t.key,r)}}))}}));return S?r.createElement(r.Fragment,null,S(A)):r.createElement(a.Z,{className:o()("visx-bar-stack-horizontal",n),top:i,left:m},A.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 l}});var r=n(12759),i=n(27500),o=n(82610),u=n(34812),a=n(77944),c={expand:r.Z,diverging:i.Z,none:o.Z,silhouette:u.Z,wiggle:a.Z};Object.keys(c);function l(t){return t&&c[t]||c.none}},18246:function(t,e,n){"use strict";n.d(e,{ZP:function(){return l}});var r=n(39586),i=n(25516),o=n(54164),u=n(8512),a=n(2010),c={ascending:r.Z,descending:i.Z,insideout:o.Z,none:u.Z,reverse:a.Z};Object.keys(c);function l(t){return t&&c[t]||c.none}},66909:function(t,e,n){"use strict";n.d(e,{Eh:function(){return l},t0:function(){return s}});var r=n(38626),i=n(2842),o=n(17679),u=n(61896),a=n(47041),c=n(70515),l=(c.iI,o.O$+3*c.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*c.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 k},Uc:function(){return x},XM:function(){return w},_U:function(){return h},eI:function(){return b},gU:function(){return O},lO:function(){return I},ri:function(){return g},tL:function(){return j},vJ:function(){return Z},xH:function(){return y}});var r,i=n(82394),o=n(92083),u=n.n(o),a=n(3917),c=n(4383),l=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(l.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,c=null;o&&r&&(c=u()(r).valueOf()-u()(o).valueOf());return p(p({},t),{},(0,i.Z)({},n,{runtime:c,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:l.Xm.TIME},{description:function(){return"This pipeline will run when a specific event occurs."},label:function(){return"Event"},uuid:l.Xm.EVENT},{description:function(){return"Run this pipeline when you make an API call."},label:function(){return"API"},uuid:l.Xm.API}];return t?e.slice(0,1):e};function y(t){var e=(0,s.gR)(t,[l.gm.INTERVAL,l.gm.TYPE]),n=t[l.gm.INTERVAL];n&&(e["schedule_interval[]"]=encodeURIComponent(n));var r=t[l.gm.TYPE];return r&&(e["schedule_type[]"]=r),e}function b(t){return t?new Date(u()(t).valueOf()):null}function x(t,e){return e?(0,a.XG)(t,e):function(t){if("string"!==typeof t)return t;var e=t.split("+")[0];return u()(b(e)).format(a.Nx)}(t)}!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 Z(t,e){return t*j[e]}function w(t,e,n){var r,i=u()(t);return 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.TD),null!==n&&void 0!==n&&n.includeSeconds&&(r=r.concat(":00")),null!==n&&void 0!==n&&n.localTimezone&&(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}))),r}function k(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,c.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 E=(0,d.m5)(60),P=(0,d.m5)(24),S=(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 c=t.split(" "),l=c[0],s=c[1],d=c[2],f=T(l,a,E),p=T(s,o+f.additionalOffset,P);if(c[0]=f.cronValue,c[1]=p.cronValue,0!==(null===p||void 0===p?void 0:p.additionalOffset)){var h=T(d,p.additionalOffset,S);c[2]=h.cronValue}return c.join(" ")}},52729:function(t,e,n){"use strict";n.d(e,{Z:function(){return F}});var r=n(26304),i=n(21831),o=n(82394),u=n(82684),a=n(26226),c=n(84969),l=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),y=n(84181),b=n(55485),x=n(4190),j=n(30160),O=n(94035),Z=n(70987),w=n(79633),k=n(89370),T=n(95363),E=n(61896),P=n(70515),S=n(38469),I=n(6568),D=function(t){return t.slice(0,10)},_=function(t,e){var n=t.toISOString().slice(0,10),r=e.toISOString().slice(0,10);return"".concat(n,":").concat(r)},L=n(79221),A=n(98684),M=n(28598),N=["height","loading","selected","width","xAxisLabel","yAxisLabel"];function R(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 C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?R(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Y={bottom:P.iI,left:3*P.iI,right:0,top:1*P.iI},U=(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,b=t.height,x=t.hideTooltip,O=t.large,N=t.margin,R=void 0===N?{}:N,U=t.muted,F=t.noPadding,H=t.numberOfXTicks,V=t.renderTooltipContent,B=t.selected,X=t.showAxisLabels,z=t.showTooltip,G=t.showYAxisLabels,J=t.showZeroes,K=t.sortData,W=t.tooltipData,q=t.tooltipLeft,Q=t.tooltipOpen,$=t.tooltipTop,tt=t.width,et=t.xLabelFormat,nt=t.yLabelFormat,rt=O?E.J5:E.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===k.RL.DATETIME,ct=C(C({},Y),R);X&&(ct=C(C({},ct),{},{left:ct.left+P.iI}));var lt=K?K(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]})):lt.slice(0,60),dt=tt-(ct.left+ct.right),ft=b-(ct.bottom+ct.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,S.Z)(n[0]),(0,S.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],c=n[o];if(a&&c){var l=new Date(a),s=new Date(c),d=_(l,s);if(e>=l&&e<s)r[d]=(r[d]||0)+u;else for(;o<n.length||!r[d];)if(i+=1,o+=1,l=new Date(n[i]),s=new Date(n[o]),d=_(l,s),e>=l&&e<s)return void(r[d]=(r[d]||0)+u)}})),n.reduce((function(t,e,n,r){if(0===n)return t;var i=D(e),o=D(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(D(t[0]))-new Date(D(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||J)&&t.push(it(e)),t}),[]),gt=mt.length,yt=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),bt=(0,g.Z)({domain:mt,paddingInner:F?null:yt,range:[0,dt],round:!1}),xt=(0,y.Z)({domain:[0,Math.max.apply(Math,(0,i.Z)(st.map(ot)))],range:[ft,0],round:!0}),jt=(0,A.K)(ut),Ot={active:((null===ut||void 0===ut?void 0:ut.content)||Z.Z.content).active,default:jt[0],muted:((null===ut||void 0===ut?void 0:ut.monotone)||Z.Z.monotone).gray,selected:((null===ut||void 0===ut?void 0:ut.elevation)||Z.Z.elevation).visualizationAccent},Zt=Ot.default;U?Zt=Ot.muted:B&&(Zt=Ot.selected);var wt=gt?at?vt:Math.max.apply(Math,(0,i.Z)(st.map((function(t){return ot(t)})))):0,kt=Math.floor(wt/6),Tt=[0],Et=0;if(wt>6)for(;Et<wt;)Tt.push(Et+kt),Et+=kt;else for(;Et<=wt;)Tt.push(Et+1),Et+=1;wt>9999?ct=C(C({},ct),{},{left:O?8*P.iI:4.1*P.iI}):wt>999&&(ct=C(C({},ct),{},{left:O?5*P.iI:3.6*P.iI}));var Pt=at?2.25:0,St=gt<10||e===k.RL.NUMBER||e===k.RL.NUMBER_WITH_DECIMALS||at||G,It=(0,u.useCallback)((function(t){var e=(0,m.Z)(t)||{x:0,y:0},n=e.x,r=e.y,i=(n-(X?ct.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 c=V?V(u):"".concat(a," (").concat(ot(u),")");z({tooltipData:c,tooltipLeft:n-ct.left,tooltipTop:r+ct.top})}),[st,gt,it,ot,ct.left,ct.top,V,X,z,tt]);return tt<10||!r.length?null:(0,M.jsxs)("div",{children:[(0,M.jsxs)("svg",{height:b+ct.bottom*(at?7.5:3),width:tt,children:[(0,M.jsx)(d.Z,{left:X?ct.left:0,top:ct.top+Pt,children:st.reduce((function(t,e){var n=it(e),r=ot(e);if(0!==r){var i,u=bt.bandwidth(),a=ft-(null!==(i=xt(r))&&void 0!==i?i:0),c=bt(n),l=ft-a;t.push((0,M.jsx)(s.Z,{fill:o?o(e):Zt,height:a,onMouseLeave:function(){return x()},onMouseMove:It,onTouchMove:It,onTouchStart:It,width:u,x:c,y:l},"bar-".concat(n)))}return t}),[])}),X&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(c.Z,{left:ct.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:ct.top+Pt}),(0,M.jsx)(l.Z,{left:ct.left,numTicks:at?void 0:H||6,orientation:"top",scale:pt||bt,stroke:Ot.muted,tickFormat:function(t){return et?et(String(t)):at?t.toISOString().slice(0,10):String(t)},tickLabelProps:function(t){return{fill:St?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*ct.bottom,")")}},tickLineProps:{transform:"translate(0,".concat(P.iI,")")},tickStroke:St?Ot.muted:"transparent",top:ft+ct.top+Pt})]})]}),Q&&W&&(0,M.jsx)(h.Z,{left:q,style:v.j,top:$,children:(0,M.jsx)(j.ZP,{color:w.E5,small:!0,children:W})})]})}));var F=function(t){var e=t.height,n=t.loading,i=t.selected,o=t.width,u=t.xAxisLabel,c=t.yAxisLabel,l=(0,r.Z)(t,N);return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)("div",{style:{display:"flex",height:e,marginBottom:P.iI,width:"100%"},children:[c&&(0,M.jsx)(b.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,M.jsx)(O.Z,{children:(0,M.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:c})})}),(0,M.jsxs)("div",{style:{height:e,width:c?0===o?o:o-28:o},children:[n&&(0,M.jsx)(x.Z,{}),!n&&(0,M.jsx)(a.Z,{children:function(t){var e=t.height,n=t.width;return(0,M.jsx)(U,C(C({},l),{},{height:e,selected:i,width:n}))}})]})]}),u&&(0,M.jsx)("div",{style:{paddingLeft:c?36:0,paddingTop:4},children:(0,M.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:u})})]})}},87862:function(t,e,n){"use strict";n.d(e,{Z:function(){return P}});var r=n(26304),i=n(82394),o=n(75582),u=n(26226),a=n(28940),c=n(82684),l=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),y=n(98684),b=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 Z={bottom:0,left:0,right:0,top:0},w=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}},k=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,c=t.textColor;return(0,d.useTransition)(n,{enter:k,from:e?w:k,keys:i,leave:e?w:k,update:k})((function(t,e,n){var l=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,b.jsxs)("g",{children:[(0,b.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,b.jsx)(d.animated.g,{style:{opacity:t.opacity},children:(0,b.jsx)("text",{dy:".33em",fill:c,fontFamily:v.ry,fontSize:m.J5,pointerEvents:"none",textAnchor:"middle",x:p,y:h,children:i(e)})})]},l)}))}function E(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?Z:d,v=t.textColor,m=t.width,x=(0,c.useState)(null),j=x[0],w=x[1],k=(0,c.useContext)(s.ThemeContext),E=v||(null===k||void 0===k?void 0:k.content.active)||h.Z.content.active;if(m<10)return null;var P=(0,f.Z)({domain:r.map((function(t){return i(t)})),range:(0,y.K)(k)}),S=m-p.left-p.right,I=u-p.top-p.bottom,D=Math.min(S,I)/2,_=I/2,L=S/2,A=Math.min(S/4,12*g.iI);return(0,b.jsx)("svg",{height:u,width:m,children:(0,b.jsx)(l.Z,{left:L+p.left,top:_+p.top,children:(0,b.jsx)(a.Z,{cornerRadius:g.iI/2,data:j?r.filter((function(t){return JSON.stringify(t)===JSON.stringify(j)})):r,innerRadius:Math.max(D-A,12.25),outerRadius:D,padAngle:.005,pieValue:o,children:function(t){return(0,b.jsx)(T,O(O({},t),{},{animate:n,getColor:function(t){var e=t.data;return P(i(e))},getKey:function(t){var e=t.data;return i(e)},onClickDatum:function(t){var e=t.data;return n&&w(j&&JSON.stringify(j)===JSON.stringify(e)?null:e)},textColor:E}))}})})})}function P(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,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{style:a,children:(0,b.jsx)(u.Z,{children:function(t){var e=t.width,n=t.height;return(0,b.jsx)(E,O(O({},o),{},{height:n,width:e}))}})}),i&&(0,b.jsx)("div",{style:{paddingTop:4},children:(0,b.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,c=n.energy300,l=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,y=n.wind400,b=e.chart;return[b.backgroundPrimary,b.backgroundSecondary,b.backgroundTertiary].concat([y,v,f,l,u,g,h,d,c,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}},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),c=n(82394),l=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),y=n(61655),b=n(16853),x=n(65376),j=n(48072),O=n(24903),Z=n(84181),w=n(98677),k=n(30160),T=n(70987),E=n(79633),P=n(61896),S=n(70515),I=n(95363),D=n(28598),_=["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 A(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,c.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 M={bottom:5*S.iI,left:3*S.iI,right:20*S.iI,top:0},N=function(t){return t.x},R=function(t){return t.y},C=(0,y.Z)((function(t){var e=t.data,n=t.height,r=t.hideTooltip,i=t.large,o=t.margin,u=void 0===o?{}:o,c=t.renderTooltipContent,s=t.showTooltip,y=t.tooltipData,S=t.tooltipLeft,_=t.tooltipOpen,L=t.tooltipTop,C=t.width,Y=t.xAxisLabel,U=t.xNumTicks,F=t.yLabelFormat,H=t.ySerialize,V=F;V||(V=function(t){return t.length>20?"".concat(t.substring(0,20),"..."):t});var B=i?P.iD:P.J5,X=(0,l.useContext)(g.ThemeContext),z=A(A({},M),u),G=e.slice(Math.max(0,e.length-50)),J=Object.keys(G[0]||[]).filter((function(t){return"x"===t})),K=(0,O.Z)({domain:J,range:[E.hM]}),W=(0,Z.Z)({domain:[0,Math.max.apply(Math,(0,a.Z)(G.map(N)))],nice:!0}),q=(0,w.Z)({domain:G.map(R),padding:.35}),Q={active:(null===X||void 0===X?void 0:X.content.default)||T.Z.content.default,backgroundPrimary:(null===X||void 0===X?void 0:X.chart.backgroundPrimary)||T.Z.chart.backgroundPrimary,backgroundSecondary:(null===X||void 0===X?void 0:X.chart.backgroundSecondary)||T.Z.chart.backgroundSecondary,muted:(null===X||void 0===X?void 0:X.content.muted)||T.Z.content.muted,primary:(null===X||void 0===X?void 0:X.chart.primary)||T.Z.chart.primary,tooltipBackground:(null===X||void 0===X?void 0:X.background.navigation)||T.Z.background.navigation},$=G.map(H),tt=Math.min(Math.max.apply(Math,(0,a.Z)($.map((function(t){return String(t).length})))),20);6*tt>2*z.right?z.right+=5.5*tt:6*tt>=z.right&&(z.right+=3.75*tt);var et=C-z.left-z.right,nt=n-z.top-z.bottom;z.left+=7*tt,W.rangeRound([0,et]),q.rangeRound([nt,0]);var rt=G.map(N).length,it=q($[rt-1]),ot=(0,l.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=G[o];"undefined"===typeof u&&(u=G[o-1]),r>it&&r<nt-it&&s({tooltipData:u,tooltipLeft:n,tooltipTop:r+z.top})}),[G,rt,z.top,s,it,nt]);return C<10?null:(0,D.jsxs)("div",{children:[(0,D.jsxs)("svg",{height:n,width:C,children:[(0,D.jsx)(p.Z,{fill:"transparent",height:n-(z.top+z.bottom),onMouseLeave:function(){return r()},onMouseMove:ot,onTouchMove:ot,onTouchStart:ot,rx:14,width:C-z.left,x:z.left,y:0}),(0,D.jsxs)(m.Z,{left:z.left,top:z.top,children:[(0,D.jsx)(h.Z,{color:K,data:G,height:nt,keys:J,pointerEvents:"none",xScale:W,y:H,yScale:q,children:function(t){return t.map((function(t){return t.bars.map((function(e){return(0,D.jsx)("g",{children:(0,D.jsx)(D.Fragment,{children:(0,D.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,D.jsx)(d.Z,{hideTicks:!0,scale:q,stroke:Q.muted,tickFormat:function(t){return V(t)},tickLabelProps:function(){return{fill:Q.active,fontFamily:I.ry,fontSize:B,style:{width:"10px"},textAnchor:"end"}},tickStroke:Q.muted,tickValues:$,top:2}),(0,D.jsx)(f.Z,{label:Y,labelProps:{fill:Q.muted,fontFamily:I.ry,fontSize:B,textAnchor:"middle"},numTicks:U,scale:W,stroke:Q.muted,tickLabelProps:function(){return{fill:Q.active,fontFamily:I.ry,fontSize:B,textAnchor:"middle"}},tickStroke:Q.muted,top:nt})]}),y&&(0,D.jsx)("g",{children:(0,D.jsx)(v.Z,{from:{x:z.left,y:L},pointerEvents:"none",stroke:E.Ej,strokeDasharray:"5,2",strokeWidth:1,to:{x:et+z.left,y:L}})})]}),_&&y&&(0,D.jsx)(b.Z,{left:S,style:A(A({},x.j),{},{backgroundColor:Q.tooltipBackground}),top:L,children:(0,D.jsxs)(k.ZP,{black:!0,small:!0,children:[null===c||void 0===c?void 0:c(y),!c&&N(y).toFixed(4)]})})]})}));var Y,U,F,H,V=function(t){var e=t.height,n=t.width,r=(0,u.Z)(t,_);return(0,D.jsx)("div",{style:{height:e,width:"undefined"===typeof n?"100%":n},children:(0,D.jsx)(s.Z,{children:function(t){var e=t.width,n=t.height;return(0,D.jsx)(C,A(A({},r),{},{height:n,width:e}))}})})},B=n(97618),X=n(52729),z=n(48670),G=n(87862),J=n(89370),K=n(86735),W=(K.Qj,K.tS,K.tS,K.tS,K.tS,K.Qj,K.Qj,K.Qj,K.tS,K.tS,Y={},(0,c.Z)(Y,J.RL.EMAIL,"domain_distribution"),(0,c.Z)(Y,J.RL.TEXT,"word_distribution"),(0,c.Z)(Y,J.RL.LIST,"element_distribution"),(0,c.Z)(Y,"default","value_counts"),Y),q=[].concat((0,a.Z)(J.P_),[J.RL.TEXT,J.RL.EMAIL,J.RL.LIST]),Q=(U={},(0,c.Z)(U,J.RL.EMAIL,"Domain distribution"),(0,c.Z)(U,J.RL.TEXT,"Word distribution"),(0,c.Z)(U,J.RL.LIST,"Element distribution"),(0,c.Z)(U,"default","Distribution of values"),n(31353));!function(t){t.RANGE="range"}(F||(F={})),function(t){t.BAR_HORIZONTAL="bar_horizontal",t.LINE_CHART="line_chart",t.HISTOGRAM="histogram"}(H||(H={}));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,c=i.getYValue,l=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===c||void 0===c?void 0:c(t)})))||[],v=Math.max.apply(Math,(0,a.Z)(h)),m=Math.max.apply(Math,(0,a.Z)(h)),g=(0,K.Sm)(h),y=(0,K.IN)(h),b=g/Math.max(1,h.length),x=e[d]||u,j=null===x||void 0===x?void 0:x.columnType,O=J.RL.DATETIME===j,Z=[],w=[],k=l.length,T=l.map((function(t,e){var r,i,u,a,c=t.label,l=t.max,s=t.min,d=p[e];if(F.RANGE===f)if(n||(n=l-s),a=J.RL.NUMBER===j&&n<=k)r=Number(s);else if(r=n/2+s,O){var x="M/D/YYYY",T="M/D/YYYY",E="M/D/YYYY";n<=1?(x=n<=.1?"H:mm:ss.SSS":"H:mm:ss",T="H:mm:ss.SSS",E="H:mm:ss.SSS"):n<=60?(x="H:mm",T="H:mm:ss",E="H:mm:ss"):n<=3600?(x="H:mm",T="M/D/YYYY H:mm",E="H:mm"):n<=86400&&(T="M/D/YYYY H:mm",E="M/D/YYYY H:mm"),r=et().unix(r).format(x),i=et().unix(s).format(T),u=et().unix(l).format(E)}else r=(0,nt.QV)(r);else r=c;var P=e>=1?p[e-1]:null,S=!1;o&&(S=o({x:t,y:d,yPrevious:P,yValues:h,yValuesAverage:b,yValuesMax:v,yValuesMin:m,yValuesStandardDeviation:y,yValuesSum:g}));var I={hideRange:a,isUnusual:S,x:t,xLabel:r,xLabelMax:u,xLabelMin:i,y:d};return S&&(a?w.push(I):Z.push(I)),I}));return{distribution:{data:T,featureUUID:d},rangedWithUnusualDistribution:(0,K.YC)(Z,(function(t){var e=t.y;return c(e)}),{ascending:!1}),unusualDistribution:(0,K.YC)(w,(function(t){var e=t.y;return c(e)}),{ascending:!1})}}var it=n(40489);var ot=12*S.iI;function ut(t){var e=t.columnTypes,n=t.columns,i=t.insightsByFeatureUUID,u=t.insightsOverview,a=t.noColumnLinks,c=void 0!==a&&a,l=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]===J.RL.DATETIME})),y=null===m||void 0===m?void 0:m.map((function(t){return rt(t,{},{feature:{columnType:p,uuid:f}}).distribution})),b={};null===y||void 0===y||y.forEach((function(t,e){var n=t.data;b[g[e]]=(0,D.jsx)(X.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,D.jsxs)("p",{children:["Rows: ",n,(0,D.jsx)("br",{}),"Start: ",i,(0,D.jsx)("br",{}),"End: ",o]})},sortData:function(t){return(0,K.YC)(t,"[4]")}},f)}));var x,j=null===v||void 0===v?void 0:v.find((function(t){var e=t.type;return H.HISTOGRAM===e})),O=(j?rt(j,{},{feature:{columnType:p,uuid:f},getYValue:function(t){return t.value}}):{}).distribution,Z=void 0===O?null:O,w=W[p]||W.default,T=null===l||void 0===l?void 0:l["".concat(f,"/").concat(w)],E=Object.entries(T||{}).map((function(t){var e=(0,r.Z)(t,2),n=e[0];return{x:e[1],y:n}})),P=J.RL.TRUE_OR_FALSE===p;if(J.RL.DATETIME===p)x=b[f];else if(Z&&!P)x=(0,D.jsx)(X.Z,{data:Z.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,D.jsxs)("p",{children:[u&&(0,D.jsxs)(D.Fragment,{children:["Rows: ",n,(0,D.jsx)("br",{}),"Value: ",i]}),!u&&(0,D.jsxs)(D.Fragment,{children:["Rows: ",n,(0,D.jsx)("br",{}),"Range: ",i," - ",o]})]})},sortData:function(t){return(0,K.YC)(t,"[2]")},width:d-2*S.iI});else if(q.includes(p)){var I=(0,K.YC)((0,K.YC)(E,"x",{ascending:!1}).slice(0,5),"x");x=(0,D.jsx)(V,{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 P&&T&&(x=(0,D.jsx)(G.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,D.jsxs)("div",{style:{padding:S.iI},children:[(0,D.jsxs)("div",{style:{alignItems:"center",display:"flex",marginBottom:S.iI},children:[h&&(0,D.jsx)(B.Z,{title:J.Rp[p],children:(0,D.jsx)(h,{size:2*S.iI})}),(0,D.jsx)("div",{style:{marginLeft:.5*S.iI,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:d-4.5*S.iI},children:c?(0,D.jsx)(k.ZP,{bold:!0,default:!0,title:n[a],children:n[a]}):(0,D.jsx)(o(),{as:(0,it.o_)($.oE,a),href:"/datasets/[...slug]",passHref:!0,children:(0,D.jsx)(z.Z,{bold:!0,monospace:!0,secondary:!0,small:!0,title:n[a],children:n[a]})})})]}),x,!x&&(0,D.jsx)("div",{style:{height:ot}})]})}}},44265:function(t,e,n){"use strict";n.d(e,{Az:function(){return l},BF:function(){return c},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],c=[u.INITIAL,u.RUNNING],l=[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,{PN:function(){return a},TR:function(){return h},U5:function(){return l},Wb:function(){return p},Xm:function(){return o},Z4:function(){return s},fq:function(){return c},gm:function(){return d},kJ:function(){return f}});var r,i,o,u=n(82394),a="__bookmark_values__";!function(t){t.API="api",t.EVENT="event",t.TIME="time"}(o||(o={}));var c,l,s=(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"}(c||(c={})),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 d,f,p=[l.ONCE,l.HOURLY,l.DAILY,l.WEEKLY,l.MONTHLY];!function(t){t.INTERVAL="frequency[]",t.STATUS="status[]",t.TAG="tag[]",t.TYPE="type[]"}(d||(d={})),function(t){t.CREATED_AT="created_at",t.NAME="name",t.PIPELINE="pipeline_uuid",t.STATUS="status",t.TYPE="schedule_type"}(f||(f={}));var h=(i={},(0,u.Z)(i,f.CREATED_AT,"Created at"),(0,u.Z)(i,f.NAME,"Name"),(0,u.Z)(i,f.PIPELINE,"Pipeline"),(0,u.Z)(i,f.STATUS,"Active"),(0,u.Z)(i,f.TYPE,"Type"),i)},14532:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return rt}});var r=n(77837),i=n(75582),o=n(82394),u=n(38860),a=n.n(u),c=n(82684),l=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),y=n(75457),b=n(44265),x=n(57653),j=n(93808),O=n(38276),Z=n(4190),w=n(30160),k=n(35686),T=n(21831),E=n(26304),P=n(90299),S=n(93859),I=n(24138),D=n(48339),_=n(46684),L=n(70515),A=n(66909),M=n(8955),N=n(16488),R=n(81728),C=n(86735),Y=n(28598),U=["blockRuns","blocksOverride","columns","dataType","height","heightOffset","loadingData","outputs","pipeline","renderColumnHeader","rows","selectedRun","selectedTab","setSelectedTab","textData"];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 H(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,o.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 V={uuid:"Dependency tree"},B={uuid:"Block output"},X=[B,V];var z=n(28795),G=n(81655),J=n(3917),K=n(72619),W=n(95924),q=n(69419),Q=n(70320);function $(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 tt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var et=100;function nt(t){var e=t.pipeline,n=t.pipelineRun,r=(0,Q.qB)(),o=(0,s.useRouter)(),u=(0,q.iV)(),a=null!==u&&void 0!==u&&u.page?u.page:0,j=(0,c.useState)(null),F=j[0],$=j[1],nt=(0,c.useState)(X[0]),rt=nt[0],it=nt[1],ot=(0,c.useState)(null),ut=ot[0],at=ot[1],ct=e.uuid,lt=k.ZP.pipelines.detail(ct,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,st=(0,c.useMemo)((function(){return tt(tt({},null===lt||void 0===lt?void 0:lt.pipeline),{},{uuid:ct})}),[lt,ct]),dt=k.ZP.pipeline_runs.detail(n.id,{_format:"with_basic_details"},{refreshInterval:3e3,revalidateOnFocus:!0}).data,ft=(0,c.useMemo)((function(){return(null===dt||void 0===dt?void 0:dt.pipeline_run)||{}}),[dt]),pt=ft.execution_date,ht=ft.id,vt=ft.status,mt={_limit:et,_offset:a*et,pipeline_run_id:ht},gt=null===u||void 0===u?void 0:u[G.lG.SORT_COL_IDX],yt=null===u||void 0===u?void 0:u[G.lG.SORT_DIRECTION];if(gt){var bt=d.fi[gt],xt=yt||G.sh.ASC;mt.order_by="".concat(bt,"%20").concat(xt)}var jt=k.ZP.block_runs.list(mt,{refreshInterval:5e3}),Ot=jt.data,Zt=jt.mutate,wt=(0,c.useMemo)((function(){return(null===Ot||void 0===Ot?void 0:Ot.block_runs)||[]}),[Ot]),kt=wt.map((function(t){return t.block_uuid})),Tt=(0,c.useMemo)((function(){return kt}),[kt]),Et=k.ZP.blocks.pipeline_runs.list(null===n||void 0===n?void 0:n.id,{_limit:et,block_uuid:Tt},{}).data,Pt=(0,l.Db)(k.ZP.pipeline_runs.useUpdate(ht),{onSuccess:function(t){return(0,K.wD)(t,{callback:function(){$(null),null===Zt||void 0===Zt||Zt()},onErrorCallback:function(t,e){return at({errors:e,response:t})}})}}),St=(0,i.Z)(Pt,2),It=St[0],Dt=St[1].isLoading,_t=k.ZP.outputs.block_runs.list(null===F||void 0===F?void 0:F.id),Lt=_t.data,At=_t.loading;(0,c.useEffect)((function(){F||(null===rt||void 0===rt?void 0:rt.uuid)!==B.uuid||it(V)}),[F,null===rt||void 0===rt?void 0:rt.uuid]);var Mt=(0,c.useMemo)((function(){return(0,Y.jsx)(d.ZP,{blockRuns:wt,onClickRow:function(t){$((function(e){var n=wt[t],r=(null===e||void 0===e?void 0:e.id)!==n.id?n:null;return r&&it((function(t){return t!==B?B:t})),r}))},pipeline:st,selectedRun:F,setErrors:at,sortableColumnIndexes:d.lG})}),[wt,st,F]),Nt=(null===st||void 0===st?void 0:st.type)!==x.qL.STREAMING&&vt&&vt!==b.VO.COMPLETED,Rt=((null===st||void 0===st?void 0:st.type)===x.qL.PYTHON||(null===st||void 0===st?void 0:st.type)===x.qL.INTEGRATION)&&F&&b.Az.includes(vt),Ct=(0,c.useMemo)((function(){var t;return(null===Ot||void 0===Ot||null===(t=Ot.metadata)||void 0===t?void 0:t.count)||[]}),[Ot]),Yt=(0,c.useMemo)((function(){return(0,Y.jsx)(O.Z,{p:2,children:(0,Y.jsx)(g.ZP,{maxPages:g.Et,onUpdate:function(t){var e=Number(t),n=tt(tt({},u),{},{page:e>=0?e:0});$(null),o.push("/pipelines/[pipeline]/runs/[run]","/pipelines/".concat(ct,"/runs/").concat(ht,"?").concat((0,q.uM)(n)))},page:Number(a),totalPages:Math.ceil(Ct/et)})})}),[a,ht,ct,u,o,Ct]),Ut=(0,c.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,c=t.pipeline,l=t.renderColumnHeader,s=(t.rows,t.selectedRun),d=t.selectedTab,f=t.setSelectedTab,h=(t.textData,H({},(0,E.Z)(t,U)));h.blockStatus=(0,N.IJ)(e);var m=[],g=[],y=(0,R.bH)();if(!u){var b,x={};null===a||void 0===a||a.forEach((function(t){var e=t.type;x[e]||(x[e]={outputs:[],priority:Object.keys(x).length}),x[e].outputs.push(t)})),null===(b=(0,C.YC)(Object.entries(x),(function(t){var e=(0,i.Z)(t,2);return e[0],e[1].priority})))||void 0===b||b.forEach((function(t,e){var n=(0,i.Z)(t,2),u=n[0],a=n[1].outputs,c=[];null===a||void 0===a||a.forEach((function(t,n){var i,a=t.sample_data,s=t.text_data,d=t.type,f=(0,Y.jsx)(O.Z,{ml:2,children:(0,Y.jsx)(w.ZP,{children:"This block run has no output."})},"output-empty-".concat(e,"-").concat(n));if(d===D.Gi.TABLE){var p=((null===a||void 0===a?void 0:a.columns)||[]).slice(0,40),h=(null===a||void 0===a?void 0:a.rows)||[];i=h&&(null===h||void 0===h?void 0:h.length)>=1?(0,Y.jsx)(S.Z,{columnHeaderHeight:l?A.Eh:0,columns:p,height:r-o-90,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,renderColumnHeader:l,rows:h},"output-table-".concat(e,"-").concat(n)):f}else{var v=(0,R.Pb)(s)?JSON.stringify(JSON.parse(s),null,2):s;i=s?(0,Y.jsx)(O.Z,{ml:2,children:(0,Y.jsx)(w.ZP,{monospace:!0,children:(0,Y.jsx)("pre",{children:v})})},"output-text-".concat(e,"-").concat(n)):f}var b=y[e];D.Gi.TEXT===u?(c.push(i),0===n&&g.push({uuid:"Block output ".concat(n+1).concat(b)})):(m.push(i),g.push({uuid:"Block output ".concat(n+1).concat(b)}))})),D.Gi.TEXT===u&&m.push(c)}))}var j=m,k=g,F=X;(null===k||void 0===k?void 0:k.length)>=2&&(F=[B].concat((0,T.Z)(k.slice(1)),[V]));var z=d&&f,G=j[F.findIndex((function(t){return t.uuid===(null===d||void 0===d?void 0:d.uuid)}))];return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("div",{style:{position:"fixed",top:_.Mz},children:z&&(0,Y.jsx)(Y.Fragment,{children:(0,Y.jsx)(O.Z,{py:0,children:(0,Y.jsx)(P.Z,{onClickTab:f,regularSizeText:!0,selectedTabUUID:null===d||void 0===d?void 0:d.uuid,tabs:s?F:[V],underlineStyle:!0})})})}),(0,Y.jsxs)("div",{style:{position:"relative",top:M.u$},children:[z&&(0,Y.jsx)(p.Z,{light:!0}),(!s||V.uuid===(null===d||void 0===d?void 0:d.uuid))&&(0,Y.jsx)(I.ZP,H(H({},h),{},{blocksOverride:n,enablePorts:!1,height:r,heightOffset:(o||0)+(z?M.u$+1:0),pipeline:c})),s&&d&&V.uuid!==(null===d||void 0===d?void 0:d.uuid)&&(0,Y.jsxs)(Y.Fragment,{children:[u&&(0,Y.jsx)(O.Z,{mt:2,children:(0,Y.jsx)(v.ZP,{alignItems:"center",fullWidth:!0,justifyContent:"center",children:(0,Y.jsx)(Z.Z,{color:"white",large:!0})})}),!u&&(0,Y.jsx)(O.Z,{py:L.cd,children:G})]})]})]})}(tt(tt({},t),{},{blockRuns:wt,blocksOverride:Ct<=et&&(null===Et||void 0===Et?void 0:Et.blocks),loadingData:At,outputs:null===Lt||void 0===Lt?void 0:Lt.outputs,selectedRun:F,selectedTab:rt,setSelectedTab:it,showDynamicBlocks:!0}))}),[wt,Et,Lt,At,F,rt,it,Ct]);return(0,Y.jsxs)(y.Z,{breadcrumbs:[{label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(ct,"/runs"),href:"/pipelines/[pipeline]/runs"}},{label:function(){return r?(0,J.XG)(pt,r):pt}}],buildSidekick:Ut,errors:ut,pageName:z.M.RUNS,pipeline:st,setErrors:at,subheader:(Nt||Rt)&&(0,Y.jsxs)(v.ZP,{alignItems:"center",children:[b.BF.includes(vt)&&(0,Y.jsxs)(h.Z,{children:[(0,Y.jsx)(w.ZP,{bold:!0,default:!0,large:!0,children:"Pipeline is running"}),(0,Y.jsx)(O.Z,{mr:1}),(0,Y.jsx)(Z.Z,{inverted:!0}),(0,Y.jsx)(O.Z,{mr:2})]}),Nt&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(f.ZP,{danger:!0,loading:Dt,onClick:function(t){(0,W.j)(t),It({pipeline_run:{pipeline_run_action:"retry_blocks"}})},outline:!0,children:"Retry incomplete blocks"}),(0,Y.jsx)(O.Z,{mr:2})]}),Rt&&(0,Y.jsxs)(f.ZP,{loading:Dt,onClick:function(t){(0,W.j)(t),It({pipeline_run:{from_block_uuid:F.block_uuid,pipeline_run_action:"retry_blocks"}})},outline:!0,primary:!0,children:["Retry from selected block (",F.block_uuid,")"]})]}),title:function(t){var e=t.name;return"".concat(e," runs")},uuid:"".concat(z.M.RUNS,"_").concat(ct,"_").concat(ht),children:[(0,Y.jsx)(O.Z,{mt:L.cd,px:L.cd,children:(0,Y.jsx)(m.Z,{level:5,children:"Block runs"})}),(0,Y.jsx)(p.Z,{light:!0,mt:L.cd,short:!0}),Mt,Yt]})}nt.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 rt=(0,j.Z)(nt)},39525:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs/[run]",function(){return n(14532)}])}},function(t){t.O(0,[2678,1154,844,5820,1124,1751,5896,9161,2631,874,1557,8264,7858,5499,5283,5457,3745,3859,3419,9774,2888,179],(function(){return e=39525,t(t.s=e);var e}));var e=t.O();_N_E=e}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[244],{29241:function(e,n,t){"use strict";var i=t(38626),r=t(44897),u=i.default.div.withConfig({displayName:"PageSectionHeader",componentId:"sc-1wznrcv-0"})(["left:0;position:sticky;top:0;width:100%;z-index:3;",""],(function(e){return"\n background-color: ".concat(e.backgroundColor||(e.theme.background||r.Z.background).page,";\n border-bottom: 1px solid ").concat((e.theme.borders||r.Z.borders).medium,";\n ")}));n.Z=u},35526:function(e,n,t){"use strict";t.d(n,{Au:function(){return a},I6:function(){return c},Nb:function(){return i},OK:function(){return s},hZ:function(){return p},k2:function(){return d}});var i,r=t(42631),u=t(72473),o=t(70515),l=t(28598),c="".concat(1.5*o.iI,"px"),s=40*o.iI,a=58;!function(e){e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND"}(i||(i={}));var d={autoHide:!0,size:null,widthFitContent:!0},p={afterIconSize:1.5*o.iI,beforeIcon:(0,l.jsx)(u.HN,{}),borderRadius:r.n_,defaultColor:!0,fullWidth:!0,greyBorder:!0,maxWidth:40*o.iI}},46732:function(e,n,t){"use strict";var i=t(82394),r=t(26304),u=(t(82684),t(50724)),o=t(70374),l=t(28598),c=["children","items","open","onClickCallback","onClickOutside","parentRef","uuid","zIndex"];function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.items,i=e.open,s=e.onClickCallback,d=e.onClickOutside,p=e.parentRef,f=e.uuid,v=e.zIndex,b=(0,r.Z)(e,c),h=(0,l.jsxs)("div",{style:{position:"relative",zIndex:(d?3:2)+(v||0)},children:[(0,l.jsx)("div",{ref:p,children:n}),(0,l.jsx)(o.Z,a(a({},b),{},{items:t,onClickCallback:s,open:i,parentRef:p,uuid:f}))]});return d?(0,l.jsx)(u.Z,{onClickOutside:d,open:!0,children:h}):h}},17380:function(e,n,t){"use strict";t.d(n,{i:function(){return a}});t(82684);var i=t(38626),r=(t(97618),t(55485),t(48670),t(38276),t(47329)),u=t.n(r);u().node,u().node,u().node.isRequired,u().bool,u().string.isRequired;t(30160);var o=t(70987),l=t(95363),c=t(70515),s=t(42631),a=(t(28598),"tab");i.default.div.withConfig({displayName:"Tabs__TabHeaderContainerStyle",componentId:"sc-rojme5-0"})(["",""],(function(e){return e.containerWidthPercentage&&"\n width: ".concat(e.containerWidthPercentage,"%;\n ")})),i.default.div.withConfig({displayName:"Tabs__TabHeader",componentId:"sc-rojme5-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;margin-right:","px;position:relative;z-index:2;"," "," ",""],s.BG,s.BG,6*c.iI,(function(e){return e.noBottomBorder&&"\n border-bottom: none;\n "}),(function(e){return e.active&&"\n border-bottom: ".concat(c.cd,"px solid;\n border-color: ").concat((e.theme.interactive||o.Z.interactive).linkPrimary,";\n ")}),(function(e){return e.fullWidth&&"\n width: 100%;\n "})),i.default.div.withConfig({displayName:"Tabs__LinkStyle",componentId:"sc-rojme5-2"})(["align-items:center;display:flex;"," "," ",""],(function(e){return e.bold&&"\n font-family: ".concat(l.nF,";\n ")}),(function(e){return e.fullWidth&&"\n justify-content: center;\n "}),(function(e){return!e.disabled&&"\n &:hover {\n path {\n fill: ".concat((e.theme.content||o.Z.interactive).linkPrimary," !important;\n }\n }\n ")}))},81080:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return ee}});var i=t(77837),r=t(75582),u=t(82394),o=t(38860),l=t.n(o),c=t(82684),s=t(69864),a=t(34376),d=t(28598);var p=function(e){var n=e.size;return(0,d.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 8.5H15.5V3.5H20.5V8.5ZM14 9V3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55229 21.5523 10 21 10H15C14.4477 10 14 9.55229 14 9ZM2 5V12.5V14V21.5C2 22.0523 2.44772 22.5 3 22.5H10.5H12H19.5C20.0523 22.5 20.5 22.0523 20.5 21.5V13.5C20.5 12.9477 20.0523 12.5 19.5 12.5H12V5C12 4.44772 11.5523 4 11 4H3C2.44772 4 2 4.44772 2 5ZM10.5 14V21H3.5V14H10.5ZM19 14V21H12V14H19ZM10.5 5.5V12.5H3.5V5.5H10.5Z",fill:"url(#paint0_linear_2842_55048)"}),(0,d.jsx)("defs",{children:(0,d.jsxs)("linearGradient",{id:"paint0_linear_2842_55048",x1:"2",y1:"12.25",x2:"22",y2:"12.25",gradientUnits:"userSpaceOnUse",children:[(0,d.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,d.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},f=t(23192),v=t(71180),b=t(90299),h=t(50724),m=t(55485),g=t(46732),C=t(29241),_=t(55072);var j=function(e){var n=e.size;return(0,d.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("g",{clipPath:"url(#clip0_3007_70027)",children:(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.75 6.6859C1.75 3.95988 3.95988 1.75 6.6859 1.75h.98788c-.23022.41608-.36128.89466-.36128 1.40385s.13106.98777.36128 1.40384h-.71224c-1.32761 0-2.40385 1.07624-2.40385 2.40385 0 1.32761 1.07624 2.40385 2.40385 2.40385H15.609c3.3916 0 6.141 2.74941 6.141 6.14101 0 3.3916-2.7494 6.141-6.141 6.141H9.55584c.23019-.416.36123-.8946.36123-1.4037 0-.5092-.13108-.9879-.36134-1.404H15.609c1.8409 0 3.3333-1.4923 3.3333-3.3333 0-1.8409-1.4924-3.3333-3.3333-3.3333H6.96154C4.08329 12.1731 1.75 9.83979 1.75 6.96154V6.6859zM10.2163.25H6.6859C3.13145.25.25 3.13145.25 6.6859v.27564c0 3.70666 3.00486 6.71156 6.71154 6.71156H15.609c1.0125 0 1.8333.8208 1.8333 1.8333s-.8208 1.8333-1.8333 1.8333H7.01282c-1.60375 0-2.90385 1.3001-2.90385 2.9039 0 1.3248.88713 2.4423 2.09974 2.7911.06039.0173.12158.0328.18352.0463.20007.0436.40785.0665.62099.0665l.02449-.0001H15.609c4.22 0 7.641-3.421 7.641-7.641 0-4.22-3.421-7.64101-7.641-7.64101H6.96154c-.49918 0-.90385-.40467-.90385-.90385 0-.49918.40467-.90385.90385-.90385h3.25636c1.6038 0 2.9039-1.30009 2.9039-2.90384 0-1.60375-1.3001-2.903849-2.9039-2.90385h-.0016zm0 4.30769c-.77528 0-1.4038-.62852-1.4038-1.40384 0-.77505.62808-1.4034 1.403-1.40385h.0017c.7749.00045 1.403.6288 1.403 1.40385 0 .77532-.6285 1.40384-1.4039 1.40384zM7.01282 21.6474c-.10108 0-.19967-.0106-.29469-.0309-.03025-.0065-.06014-.0139-.08963-.0223-.58829-.1673-1.01912-.7086-1.01912-1.3505 0-.7753.62852-1.4039 1.40384-1.4039s1.40385.6286 1.40385 1.4039c0 .7696-.61935 1.3946-1.38683 1.4037h-.01742z",fill:"url(#paint0_linear_3007_70027)"})}),(0,d.jsxs)("defs",{children:[(0,d.jsxs)("linearGradient",{id:"paint0_linear_3007_70027",x1:"11.75",y1:".250001",x2:"11.75",y2:"23.1475",gradientUnits:"userSpaceOnUse",children:[(0,d.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,d.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,d.jsx)("clipPath",{id:"clip0_3007_70027",children:(0,d.jsx)("path",{fill:"#fff",transform:"matrix(0 1 1 0 0 0)",d:"M0 0h24v24H0z"})})]})]})},x=t(75457),O=t(44265),y=t(53943),R=t(89515),w=t(93808),k=t(44085),I=t(38276),S=t(4190),Z=t(17488),P=t(35686),E=t(8955),N=t(98464),D=t(72473),M=t(28795),T=t(11498),H=t(57653),V=t(35526),B=t(41143),L=t(81655),F=t(17380),A=t(70515),z=t(24944),U=t(72619),G=t(15610),K=t(42122),Q=t(69419);function W(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?W(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):W(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var X={Icon:D.Nt,IconSelected:j,label:function(){return"Pipeline runs"},uuid:"pipeline_runs"},q={Icon:D.Re,IconSelected:p,label:function(){return"Block runs"},uuid:"block_runs"},J=[X,q];function $(e){var n,t,i=e.pipeline,u=(0,a.useRouter)(),o=(0,c.useRef)(null),l=(0,c.useRef)(null),p=(0,c.useState)(null),j=p[0],w=p[1],W=(0,c.useState)(null),$=W[0],ee=W[1],ne=(0,c.useState)(X),te=ne[0],ie=ne[1],re=(0,c.useState)(E.G7[0]),ue=re[0],oe=re[1],le=(0,c.useState)(null),ce=le[0],se=le[1],ae=(0,c.useState)({}),de=ae[0],pe=ae[1],fe=(0,c.useState)(null),ve=fe[0],be=fe[1],he=(0,c.useState)(!1),me=he[0],ge=he[1],Ce=(0,c.useState)(null),_e=Ce[0],je=Ce[1],xe=(0,c.useState)(null),Oe=xe[0],ye=xe[1],Re=(0,c.useState)(null),we=Re[0],ke=Re[1],Ie=(0,c.useMemo)((function(){return X.uuid===(null===te||void 0===te?void 0:te.uuid)}),[null===te||void 0===te?void 0:te.uuid]),Se=i.uuid,Ze=P.ZP.pipelines.detail(Se,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,Pe=(0,c.useMemo)((function(){return Y(Y({},null===Ze||void 0===Ze?void 0:Ze.pipeline),{},{uuid:Se})}),[Ze,Se]),Ee=(0,Q.iV)(),Ne=(0,N.Z)(Ee),De=null!==Ee&&void 0!==Ee&&Ee.page?Ee.page:0;(0,c.useEffect)((function(){var e=Ee.pipeline_run_id,n=Ee.status;if(!(0,K.Xy)(Ee,Ne)){var t=Y(Y({},Ne),Ee);e?t.pipeline_run_id=e:t.pipeline_uuid=Se,n?t.status=n:delete t.status,ke(t),pe({})}}),[Se,Ee,Ne]);var Me={_limit:_.Q,_offset:De*_.Q,pipeline_uuid:Se},Te=(0,K.gR)(Y(Y({},we),Me),[F.i,"page",L.lG.SORT_COL_IDX,L.lG.SORT_DIRECTION]);Ie&&(Te=(0,K.gR)(Te,[T.$D.OFFSET,"status"]));var He=null===Ee||void 0===Ee?void 0:Ee[L.lG.SORT_COL_IDX],Ve=null===Ee||void 0===Ee?void 0:Ee[L.lG.SORT_DIRECTION];if(He){var Be=f.fi[He],Le=Ve||L.sh.ASC;Te.order_by="".concat(Be,"%20").concat(Le)}var Fe=P.ZP.block_runs.list(Te,{}).data;(0,c.useEffect)((function(){(0,U.bB)(Fe,ee)}),[Fe]);var Ae=(0,c.useMemo)((function(){return(null===Fe||void 0===Fe?void 0:Fe.block_runs)||[]}),[Fe]),ze=Y(Y({},Me),{},{disable_retries_grouping:!0});null!==Ee&&void 0!==Ee&&Ee.status&&(ze.status=Ee.status),Ie||(ze=(0,K.gR)(ze,[T.$D.OFFSET]));var Ue=P.ZP.pipeline_runs.list(ze,{refreshInterval:5e3},{pauseFetch:!Se}),Ge=Ue.data,Ke=Ue.mutate,Qe=(0,c.useMemo)((function(){var e=(null===Ge||void 0===Ge?void 0:Ge.pipeline_runs)||[];if(ve){var n=ve.toLowerCase();e=e.filter((function(e){var t=e.event_variables,i=e.variables;return JSON.stringify(i||{}).toLowerCase().includes(n)||JSON.stringify(t||{}).toLowerCase().includes(n)}))}return e}),[null===Ge||void 0===Ge?void 0:Ge.pipeline_runs,ve]),We=(0,c.useMemo)((function(){var e,n;return Ie?(null===Ge||void 0===Ge||null===(e=Ge.metadata)||void 0===e?void 0:e.count)||[]:(null===Fe||void 0===Fe||null===(n=Fe.metadata)||void 0===n?void 0:n.count)||[]}),[null===Fe||void 0===Fe||null===(n=Fe.metadata)||void 0===n?void 0:n.count,null===Ge||void 0===Ge||null===(t=Ge.metadata)||void 0===t?void 0:t.count,Ie]),Ye=(0,c.useMemo)((function(){return Qe.some((function(e){var n=e.status;return n===B.V.INITIAL||n===B.V.RUNNING}))}),[Qe]),Xe=(0,c.useMemo)((function(){return Qe.some((function(e){return e.status===B.V.FAILED}))}),[Qe]),qe=(0,c.useMemo)((function(){return Object.values(de||{}).filter((function(e){return null!==e}))}),[de]),Je=qe.length,$e=(0,c.useMemo)((function(){return Object.values(de||{}).filter((function(e){return null!==e&&O.BF.includes(null===e||void 0===e?void 0:e.status)}))}),[de]),en=$e.length,nn=(0,s.Db)(P.ZP.pipelines.useUpdate(Se),{onSuccess:function(e){return(0,U.wD)(e,{callback:function(){pe({}),Ke()},onErrorCallback:function(e,n){return w({errors:n,response:e})}})}}),tn=(0,r.Z)(nn,1)[0],rn=(0,s.Db)((function(e){return P.ZP.pipeline_runs.useDelete(e)()}),{onSuccess:function(e){return(0,U.wD)(e,{callback:function(e){var n=e.pipeline_run.pipeline_uuid;null===Ke||void 0===Ke||Ke(),n?u.push("/pipelines/[pipeline]/runs","/pipelines/".concat(n,"/runs")):null===Ke||void 0===Ke||Ke(),se(null)},onErrorCallback:function(e,n){return w({errors:n,response:e})}})}}),un=(0,r.Z)(rn,1)[0],on=(0,N.Z)(te);(0,c.useEffect)((function(){var e=Ee[F.i];e&&ie(J.find((function(n){return n.uuid===e})))}),[Ee,te,on]);var ln=(0,c.useMemo)((function(){return[{isGroupingTitle:!0,label:function(){return"".concat(Je," selected")},uuid:"runs_selected_count"},{beforeIcon:(0,d.jsx)(D.hY,{muted:0===Je}),disabled:0===Je,label:function(){return"Retry selected (".concat(Je,")")},onClick:function(){return tn({pipeline:{pipeline_runs:qe,status:H.QK.RETRY}})},uuid:"retry_selected"},{beforeIcon:(0,d.jsx)(D.hY,{muted:!Xe||Ye}),disabled:!Xe||Ye,label:function(){return"Retry all incomplete block runs"},onClick:function(){return tn({pipeline:{status:H.QK.RETRY_INCOMPLETE_BLOCK_RUNS}})},openConfirmationDialogue:!0,uuid:H.QK.RETRY_INCOMPLETE_BLOCK_RUNS},{beforeIcon:(0,d.jsx)(D.uy,{muted:0===en}),disabled:0===en,label:function(){return"Cancel selected running (".concat(en,")")},onClick:function(){return tn({pipeline:{pipeline_runs:$e,status:B.V.CANCELLED}})},uuid:"cancel_selected_running"},{beforeIcon:(0,d.jsx)(D.uy,{muted:!(Ye&&Ie)}),disabled:!(Ye&&Ie),label:function(){return"Cancel all running"},onClick:function(){return tn({pipeline:{status:B.V.CANCELLED}})},openConfirmationDialogue:!0,uuid:M.B}]}),[Xe,Ye,Ie,$e,en,qe,Je,tn]),cn=(0,c.useMemo)((function(){return(0,d.jsx)(I.Z,{p:2,children:(0,d.jsx)(_.ZP,{maxPages:_.Et,onUpdate:function(e){var n=Number(e),t=Y(Y({},Ee),{},{page:n>=0?n:0});se(null),u.push("/pipelines/[pipeline]/runs","/pipelines/".concat(Se,"/runs?").concat((0,Q.uM)(t)))},page:Number(De),totalPages:Math.ceil(We/_.Q)})})}),[De,Se,Ee,u,We]),sn=(0,c.useMemo)((function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(y.Z,{allowBulkSelect:(null===Pe||void 0===Pe?void 0:Pe.type)!==H.qL.STREAMING,allowDelete:!0,deletePipelineRun:un,disableKeyboardNav:me,emptyMessage:ve?"No runs on this page match your search.":void 0,fetchPipelineRuns:Ke,onClickRow:function(e){return se((function(n){var t=Qe[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:Qe,selectedRun:ce,selectedRuns:de,setErrors:w,setSelectedRun:se,setSelectedRuns:pe}),cn]})}),[un,Ke,cn,null===Pe||void 0===Pe?void 0:Pe.type,Qe,ce,de,me,ve]),an=(0,c.useMemo)((function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.ZP,{blockRuns:Ae,pipeline:Pe,sortableColumnIndexes:f.lG}),cn]})}),[Ae,cn,Pe]);return(0,d.jsxs)(x.Z,{afterHidden:Ie&&!ce,breadcrumbs:[{label:function(){return"Runs"}}],buildSidekick:Ie?function(e){return(0,E.ZP)(Y(Y({},e),{},{selectedRun:ce,selectedTab:ue,setSelectedTab:oe}))}:function(e){return(0,E.ZP)(e)},errors:j||$,pageName:M.M.RUNS,pipeline:Pe,setErrors:w,title:function(e){var n=e.name;return"".concat(n," runs")},uuid:"".concat(M.M.RUNS,"_").concat(Se),children:[(0,d.jsx)(C.Z,{children:(0,d.jsx)(I.Z,{pr:1,py:1,children:(0,d.jsxs)(m.ZP,{alignItems:"center",children:[(0,d.jsx)(b.Z,{onClickTab:function(e){var n=e.uuid;n!==(null===te||void 0===te?void 0:te.uuid)&&(ke(null),(0,G.u)({tab:n},{replaceParams:!0}))},selectedTabUUID:null===te||void 0===te?void 0:te.uuid,tabs:J}),Ie&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(z.lZ,{right:1}),(0,d.jsxs)(I.Z,{px:2,children:[(0,d.jsx)(g.Z,{items:ln,multipleConfirmDialogues:!0,onClickCallback:function(){return ge(!1)},onClickOutside:function(){return ge(!1)},open:me,parentRef:o,roundedStyle:!0,setConfirmationAction:ye,setConfirmationDialogueOpen:je,topOffset:4,uuid:"PipelineRuns/ActionsMenu",children:(0,d.jsx)(v.ZP,{afterIcon:(0,d.jsx)(D.K5,{}),onClick:function(){return ge((function(e){return!e}))},outline:!0,padding:"6px 12px",children:"Actions"})}),(0,d.jsx)(h.Z,{onClickOutside:function(){return je(null)},open:!!_e,children:(0,d.jsx)(R.Z,{danger:_e===M.B,onCancel:function(){return je(null)},onClick:function(){null===Oe||void 0===Oe||Oe(),je(null)},subtitle:"This includes runs on other pages as well, not just the current page."+(_e===H.QK.RETRY_INCOMPLETE_BLOCK_RUNS?" Incomplete block runs will be retried for FAILED pipeline runs specifically.":""),title:_e===M.B?"Are you sure you want to cancel all pipeline runs in progress?":"Are you sure you want to retry all incomplete block runs for any failed pipeline runs?",width:V.OK})})]}),(0,d.jsxs)(k.Z,{compact:!0,defaultColor:!0,greyBorder:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?(ke(null),(0,G.u)({tab:X.uuid},{replaceParams:!0})):(0,G.u)({page:0,status:e.target.value})},paddingRight:4*A.iI,placeholder:"Select run status",value:null===we||void 0===we?void 0:we.status,children:[(0,d.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),O.IK.map((function(e){return(0,d.jsx)("option",{value:e,children:O.Do[e]},e)}))]}),(0,d.jsx)(I.Z,{ml:2}),(0,d.jsx)(Z.Z,Y(Y({},V.hZ),{},{afterIcon:ve?(0,d.jsx)(D.x8,{}):null,afterIconClick:function(){var e;be(""),null===l||void 0===l||null===(e=l.current)||void 0===e||e.focus()},onChange:function(e){return be(e.target.value)},paddingVertical:6,placeholder:"Search pipeline run variables",ref:l,value:ve}))]})]})})}),Ge||Fe?(0,d.jsxs)(d.Fragment,{children:[Ie&&sn,q.uuid===(null===te||void 0===te?void 0:te.uuid)&&an]}):(0,d.jsx)(I.Z,{m:3,children:(0,d.jsx)(S.Z,{inverted:!0})})]})}$.getInitialProps=function(){var e=(0,i.Z)(l().mark((function e(n){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var ee=(0,w.Z)($)},79897:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs",function(){return t(81080)}])}},function(e){e.O(0,[2678,1154,844,5820,1124,9161,874,9626,8264,7858,5499,5283,5457,3745,3943,3419,9774,2888,179],(function(){return n=79897,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[244],{29241:function(e,n,t){"use strict";var i=t(38626),r=t(44897),u=i.default.div.withConfig({displayName:"PageSectionHeader",componentId:"sc-1wznrcv-0"})(["left:0;position:sticky;top:0;width:100%;z-index:3;",""],(function(e){return"\n background-color: ".concat(e.backgroundColor||(e.theme.background||r.Z.background).page,";\n border-bottom: 1px solid ").concat((e.theme.borders||r.Z.borders).medium,";\n ")}));n.Z=u},35526:function(e,n,t){"use strict";t.d(n,{Au:function(){return a},I6:function(){return c},Nb:function(){return i},OK:function(){return s},hZ:function(){return p},k2:function(){return d}});var i,r=t(42631),u=t(72473),o=t(70515),l=t(28598),c="".concat(1.5*o.iI,"px"),s=40*o.iI,a=58;!function(e){e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND"}(i||(i={}));var d={autoHide:!0,size:null,widthFitContent:!0},p={afterIconSize:1.5*o.iI,beforeIcon:(0,l.jsx)(u.HN,{}),borderRadius:r.n_,defaultColor:!0,fullWidth:!0,greyBorder:!0,maxWidth:40*o.iI}},46732:function(e,n,t){"use strict";var i=t(82394),r=t(26304),u=(t(82684),t(50724)),o=t(70374),l=t(28598),c=["children","items","open","onClickCallback","onClickOutside","parentRef","uuid","zIndex"];function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.items,i=e.open,s=e.onClickCallback,d=e.onClickOutside,p=e.parentRef,f=e.uuid,v=e.zIndex,b=(0,r.Z)(e,c),h=(0,l.jsxs)("div",{style:{position:"relative",zIndex:(d?3:2)+(v||0)},children:[(0,l.jsx)("div",{ref:p,children:n}),(0,l.jsx)(o.Z,a(a({},b),{},{items:t,onClickCallback:s,open:i,parentRef:p,uuid:f}))]});return d?(0,l.jsx)(u.Z,{onClickOutside:d,open:!0,children:h}):h}},17380:function(e,n,t){"use strict";t.d(n,{i:function(){return a}});t(82684);var i=t(38626),r=(t(97618),t(55485),t(48670),t(38276),t(47329)),u=t.n(r);u().node,u().node,u().node.isRequired,u().bool,u().string.isRequired;t(30160);var o=t(70987),l=t(95363),c=t(70515),s=t(42631),a=(t(28598),"tab");i.default.div.withConfig({displayName:"Tabs__TabHeaderContainerStyle",componentId:"sc-rojme5-0"})(["",""],(function(e){return e.containerWidthPercentage&&"\n width: ".concat(e.containerWidthPercentage,"%;\n ")})),i.default.div.withConfig({displayName:"Tabs__TabHeader",componentId:"sc-rojme5-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;margin-right:","px;position:relative;z-index:2;"," "," ",""],s.BG,s.BG,6*c.iI,(function(e){return e.noBottomBorder&&"\n border-bottom: none;\n "}),(function(e){return e.active&&"\n border-bottom: ".concat(c.cd,"px solid;\n border-color: ").concat((e.theme.interactive||o.Z.interactive).linkPrimary,";\n ")}),(function(e){return e.fullWidth&&"\n width: 100%;\n "})),i.default.div.withConfig({displayName:"Tabs__LinkStyle",componentId:"sc-rojme5-2"})(["align-items:center;display:flex;"," "," ",""],(function(e){return e.bold&&"\n font-family: ".concat(l.nF,";\n ")}),(function(e){return e.fullWidth&&"\n justify-content: center;\n "}),(function(e){return!e.disabled&&"\n &:hover {\n path {\n fill: ".concat((e.theme.content||o.Z.interactive).linkPrimary," !important;\n }\n }\n ")}))},81080:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return ee}});var i=t(77837),r=t(75582),u=t(82394),o=t(38860),l=t.n(o),c=t(82684),s=t(69864),a=t(34376),d=t(28598);var p=function(e){var n=e.size;return(0,d.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 8.5H15.5V3.5H20.5V8.5ZM14 9V3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55229 21.5523 10 21 10H15C14.4477 10 14 9.55229 14 9ZM2 5V12.5V14V21.5C2 22.0523 2.44772 22.5 3 22.5H10.5H12H19.5C20.0523 22.5 20.5 22.0523 20.5 21.5V13.5C20.5 12.9477 20.0523 12.5 19.5 12.5H12V5C12 4.44772 11.5523 4 11 4H3C2.44772 4 2 4.44772 2 5ZM10.5 14V21H3.5V14H10.5ZM19 14V21H12V14H19ZM10.5 5.5V12.5H3.5V5.5H10.5Z",fill:"url(#paint0_linear_2842_55048)"}),(0,d.jsx)("defs",{children:(0,d.jsxs)("linearGradient",{id:"paint0_linear_2842_55048",x1:"2",y1:"12.25",x2:"22",y2:"12.25",gradientUnits:"userSpaceOnUse",children:[(0,d.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,d.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},f=t(23192),v=t(71180),b=t(90299),h=t(50724),m=t(55485),g=t(46732),C=t(29241),_=t(55072);var j=function(e){var n=e.size;return(0,d.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("g",{clipPath:"url(#clip0_3007_70027)",children:(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.75 6.6859C1.75 3.95988 3.95988 1.75 6.6859 1.75h.98788c-.23022.41608-.36128.89466-.36128 1.40385s.13106.98777.36128 1.40384h-.71224c-1.32761 0-2.40385 1.07624-2.40385 2.40385 0 1.32761 1.07624 2.40385 2.40385 2.40385H15.609c3.3916 0 6.141 2.74941 6.141 6.14101 0 3.3916-2.7494 6.141-6.141 6.141H9.55584c.23019-.416.36123-.8946.36123-1.4037 0-.5092-.13108-.9879-.36134-1.404H15.609c1.8409 0 3.3333-1.4923 3.3333-3.3333 0-1.8409-1.4924-3.3333-3.3333-3.3333H6.96154C4.08329 12.1731 1.75 9.83979 1.75 6.96154V6.6859zM10.2163.25H6.6859C3.13145.25.25 3.13145.25 6.6859v.27564c0 3.70666 3.00486 6.71156 6.71154 6.71156H15.609c1.0125 0 1.8333.8208 1.8333 1.8333s-.8208 1.8333-1.8333 1.8333H7.01282c-1.60375 0-2.90385 1.3001-2.90385 2.9039 0 1.3248.88713 2.4423 2.09974 2.7911.06039.0173.12158.0328.18352.0463.20007.0436.40785.0665.62099.0665l.02449-.0001H15.609c4.22 0 7.641-3.421 7.641-7.641 0-4.22-3.421-7.64101-7.641-7.64101H6.96154c-.49918 0-.90385-.40467-.90385-.90385 0-.49918.40467-.90385.90385-.90385h3.25636c1.6038 0 2.9039-1.30009 2.9039-2.90384 0-1.60375-1.3001-2.903849-2.9039-2.90385h-.0016zm0 4.30769c-.77528 0-1.4038-.62852-1.4038-1.40384 0-.77505.62808-1.4034 1.403-1.40385h.0017c.7749.00045 1.403.6288 1.403 1.40385 0 .77532-.6285 1.40384-1.4039 1.40384zM7.01282 21.6474c-.10108 0-.19967-.0106-.29469-.0309-.03025-.0065-.06014-.0139-.08963-.0223-.58829-.1673-1.01912-.7086-1.01912-1.3505 0-.7753.62852-1.4039 1.40384-1.4039s1.40385.6286 1.40385 1.4039c0 .7696-.61935 1.3946-1.38683 1.4037h-.01742z",fill:"url(#paint0_linear_3007_70027)"})}),(0,d.jsxs)("defs",{children:[(0,d.jsxs)("linearGradient",{id:"paint0_linear_3007_70027",x1:"11.75",y1:".250001",x2:"11.75",y2:"23.1475",gradientUnits:"userSpaceOnUse",children:[(0,d.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,d.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,d.jsx)("clipPath",{id:"clip0_3007_70027",children:(0,d.jsx)("path",{fill:"#fff",transform:"matrix(0 1 1 0 0 0)",d:"M0 0h24v24H0z"})})]})]})},x=t(75457),O=t(44265),y=t(53943),R=t(89515),w=t(93808),k=t(44085),I=t(38276),S=t(4190),Z=t(17488),P=t(35686),E=t(8955),N=t(98464),D=t(72473),M=t(28795),T=t(11498),H=t(57653),V=t(35526),B=t(41143),L=t(81655),F=t(17380),A=t(70515),z=t(24944),U=t(72619),G=t(15610),K=t(42122),Q=t(69419);function W(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?W(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):W(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var X={Icon:D.Nt,IconSelected:j,label:function(){return"Pipeline runs"},uuid:"pipeline_runs"},q={Icon:D.Re,IconSelected:p,label:function(){return"Block runs"},uuid:"block_runs"},J=[X,q];function $(e){var n,t,i=e.pipeline,u=(0,a.useRouter)(),o=(0,c.useRef)(null),l=(0,c.useRef)(null),p=(0,c.useState)(null),j=p[0],w=p[1],W=(0,c.useState)(null),$=W[0],ee=W[1],ne=(0,c.useState)(X),te=ne[0],ie=ne[1],re=(0,c.useState)(E.G7[0]),ue=re[0],oe=re[1],le=(0,c.useState)(null),ce=le[0],se=le[1],ae=(0,c.useState)({}),de=ae[0],pe=ae[1],fe=(0,c.useState)(null),ve=fe[0],be=fe[1],he=(0,c.useState)(!1),me=he[0],ge=he[1],Ce=(0,c.useState)(null),_e=Ce[0],je=Ce[1],xe=(0,c.useState)(null),Oe=xe[0],ye=xe[1],Re=(0,c.useState)(null),we=Re[0],ke=Re[1],Ie=(0,c.useMemo)((function(){return X.uuid===(null===te||void 0===te?void 0:te.uuid)}),[null===te||void 0===te?void 0:te.uuid]),Se=i.uuid,Ze=P.ZP.pipelines.detail(Se,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,Pe=(0,c.useMemo)((function(){return Y(Y({},null===Ze||void 0===Ze?void 0:Ze.pipeline),{},{uuid:Se})}),[Ze,Se]),Ee=(0,Q.iV)(),Ne=(0,N.Z)(Ee),De=null!==Ee&&void 0!==Ee&&Ee.page?Ee.page:0;(0,c.useEffect)((function(){var e=Ee.pipeline_run_id,n=Ee.status;if(!(0,K.Xy)(Ee,Ne)){var t=Y(Y({},Ne),Ee);e?t.pipeline_run_id=e:t.pipeline_uuid=Se,n?t.status=n:delete t.status,ke(t),pe({})}}),[Se,Ee,Ne]);var Me={_limit:_.Q,_offset:De*_.Q,pipeline_uuid:Se},Te=(0,K.gR)(Y(Y({},we),Me),[F.i,"page",L.lG.SORT_COL_IDX,L.lG.SORT_DIRECTION]);Ie&&(Te=(0,K.gR)(Te,[T.$D.OFFSET,"status"]));var He=null===Ee||void 0===Ee?void 0:Ee[L.lG.SORT_COL_IDX],Ve=null===Ee||void 0===Ee?void 0:Ee[L.lG.SORT_DIRECTION];if(He){var Be=f.fi[He],Le=Ve||L.sh.ASC;Te.order_by="".concat(Be,"%20").concat(Le)}var Fe=P.ZP.block_runs.list(Te,{}).data;(0,c.useEffect)((function(){(0,U.bB)(Fe,ee)}),[Fe]);var Ae=(0,c.useMemo)((function(){return(null===Fe||void 0===Fe?void 0:Fe.block_runs)||[]}),[Fe]),ze=Y(Y({},Me),{},{disable_retries_grouping:!0});null!==Ee&&void 0!==Ee&&Ee.status&&(ze.status=Ee.status),Ie||(ze=(0,K.gR)(ze,[T.$D.OFFSET]));var Ue=P.ZP.pipeline_runs.list(ze,{refreshInterval:5e3},{pauseFetch:!Se}),Ge=Ue.data,Ke=Ue.mutate,Qe=(0,c.useMemo)((function(){var e=(null===Ge||void 0===Ge?void 0:Ge.pipeline_runs)||[];if(ve){var n=ve.toLowerCase();e=e.filter((function(e){var t=e.event_variables,i=e.variables;return JSON.stringify(i||{}).toLowerCase().includes(n)||JSON.stringify(t||{}).toLowerCase().includes(n)}))}return e}),[null===Ge||void 0===Ge?void 0:Ge.pipeline_runs,ve]),We=(0,c.useMemo)((function(){var e,n;return Ie?(null===Ge||void 0===Ge||null===(e=Ge.metadata)||void 0===e?void 0:e.count)||[]:(null===Fe||void 0===Fe||null===(n=Fe.metadata)||void 0===n?void 0:n.count)||[]}),[null===Fe||void 0===Fe||null===(n=Fe.metadata)||void 0===n?void 0:n.count,null===Ge||void 0===Ge||null===(t=Ge.metadata)||void 0===t?void 0:t.count,Ie]),Ye=(0,c.useMemo)((function(){return Qe.some((function(e){var n=e.status;return n===B.V.INITIAL||n===B.V.RUNNING}))}),[Qe]),Xe=(0,c.useMemo)((function(){return Qe.some((function(e){return e.status===B.V.FAILED}))}),[Qe]),qe=(0,c.useMemo)((function(){return Object.values(de||{}).filter((function(e){return null!==e}))}),[de]),Je=qe.length,$e=(0,c.useMemo)((function(){return Object.values(de||{}).filter((function(e){return null!==e&&O.BF.includes(null===e||void 0===e?void 0:e.status)}))}),[de]),en=$e.length,nn=(0,s.Db)(P.ZP.pipelines.useUpdate(Se),{onSuccess:function(e){return(0,U.wD)(e,{callback:function(){pe({}),Ke()},onErrorCallback:function(e,n){return w({errors:n,response:e})}})}}),tn=(0,r.Z)(nn,1)[0],rn=(0,s.Db)((function(e){return P.ZP.pipeline_runs.useDelete(e)()}),{onSuccess:function(e){return(0,U.wD)(e,{callback:function(e){var n=e.pipeline_run.pipeline_uuid;null===Ke||void 0===Ke||Ke(),n?u.push("/pipelines/[pipeline]/runs","/pipelines/".concat(n,"/runs")):null===Ke||void 0===Ke||Ke(),se(null)},onErrorCallback:function(e,n){return w({errors:n,response:e})}})}}),un=(0,r.Z)(rn,1)[0],on=(0,N.Z)(te);(0,c.useEffect)((function(){var e=Ee[F.i];e&&ie(J.find((function(n){return n.uuid===e})))}),[Ee,te,on]);var ln=(0,c.useMemo)((function(){return[{isGroupingTitle:!0,label:function(){return"".concat(Je," selected")},uuid:"runs_selected_count"},{beforeIcon:(0,d.jsx)(D.hY,{muted:0===Je}),disabled:0===Je,label:function(){return"Retry selected (".concat(Je,")")},onClick:function(){return tn({pipeline:{pipeline_runs:qe,status:H.QK.RETRY}})},uuid:"retry_selected"},{beforeIcon:(0,d.jsx)(D.hY,{muted:!Xe||Ye}),disabled:!Xe||Ye,label:function(){return"Retry all incomplete block runs"},onClick:function(){return tn({pipeline:{status:H.QK.RETRY_INCOMPLETE_BLOCK_RUNS}})},openConfirmationDialogue:!0,uuid:H.QK.RETRY_INCOMPLETE_BLOCK_RUNS},{beforeIcon:(0,d.jsx)(D.uy,{muted:0===en}),disabled:0===en,label:function(){return"Cancel selected running (".concat(en,")")},onClick:function(){return tn({pipeline:{pipeline_runs:$e,status:B.V.CANCELLED}})},uuid:"cancel_selected_running"},{beforeIcon:(0,d.jsx)(D.uy,{muted:!(Ye&&Ie)}),disabled:!(Ye&&Ie),label:function(){return"Cancel all running"},onClick:function(){return tn({pipeline:{status:B.V.CANCELLED}})},openConfirmationDialogue:!0,uuid:M.B}]}),[Xe,Ye,Ie,$e,en,qe,Je,tn]),cn=(0,c.useMemo)((function(){return(0,d.jsx)(I.Z,{p:2,children:(0,d.jsx)(_.ZP,{maxPages:_.Et,onUpdate:function(e){var n=Number(e),t=Y(Y({},Ee),{},{page:n>=0?n:0});se(null),u.push("/pipelines/[pipeline]/runs","/pipelines/".concat(Se,"/runs?").concat((0,Q.uM)(t)))},page:Number(De),totalPages:Math.ceil(We/_.Q)})})}),[De,Se,Ee,u,We]),sn=(0,c.useMemo)((function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(y.Z,{allowBulkSelect:(null===Pe||void 0===Pe?void 0:Pe.type)!==H.qL.STREAMING,allowDelete:!0,deletePipelineRun:un,disableKeyboardNav:me,emptyMessage:ve?"No runs on this page match your search.":void 0,fetchPipelineRuns:Ke,onClickRow:function(e){return se((function(n){var t=Qe[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:Qe,selectedRun:ce,selectedRuns:de,setErrors:w,setSelectedRun:se,setSelectedRuns:pe}),cn]})}),[un,Ke,cn,null===Pe||void 0===Pe?void 0:Pe.type,Qe,ce,de,me,ve]),an=(0,c.useMemo)((function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.ZP,{blockRuns:Ae,pipeline:Pe,sortableColumnIndexes:f.lG}),cn]})}),[Ae,cn,Pe]);return(0,d.jsxs)(x.Z,{afterHidden:Ie&&!ce,breadcrumbs:[{label:function(){return"Runs"}}],buildSidekick:Ie?function(e){return(0,E.ZP)(Y(Y({},e),{},{selectedRun:ce,selectedTab:ue,setSelectedTab:oe}))}:function(e){return(0,E.ZP)(e)},errors:j||$,pageName:M.M.RUNS,pipeline:Pe,setErrors:w,title:function(e){var n=e.name;return"".concat(n," runs")},uuid:"".concat(M.M.RUNS,"_").concat(Se),children:[(0,d.jsx)(C.Z,{children:(0,d.jsx)(I.Z,{pr:1,py:1,children:(0,d.jsxs)(m.ZP,{alignItems:"center",children:[(0,d.jsx)(b.Z,{onClickTab:function(e){var n=e.uuid;n!==(null===te||void 0===te?void 0:te.uuid)&&(ke(null),(0,G.u)({tab:n},{replaceParams:!0}))},selectedTabUUID:null===te||void 0===te?void 0:te.uuid,tabs:J}),Ie&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(z.lZ,{right:1}),(0,d.jsxs)(I.Z,{px:2,children:[(0,d.jsx)(g.Z,{items:ln,multipleConfirmDialogues:!0,onClickCallback:function(){return ge(!1)},onClickOutside:function(){return ge(!1)},open:me,parentRef:o,roundedStyle:!0,setConfirmationAction:ye,setConfirmationDialogueOpen:je,topOffset:4,uuid:"PipelineRuns/ActionsMenu",children:(0,d.jsx)(v.ZP,{afterIcon:(0,d.jsx)(D.K5,{}),onClick:function(){return ge((function(e){return!e}))},outline:!0,padding:"6px 12px",children:"Actions"})}),(0,d.jsx)(h.Z,{onClickOutside:function(){return je(null)},open:!!_e,children:(0,d.jsx)(R.Z,{danger:_e===M.B,onCancel:function(){return je(null)},onClick:function(){null===Oe||void 0===Oe||Oe(),je(null)},subtitle:"This includes runs on other pages as well, not just the current page."+(_e===H.QK.RETRY_INCOMPLETE_BLOCK_RUNS?" Incomplete block runs will be retried for FAILED pipeline runs specifically.":""),title:_e===M.B?"Are you sure you want to cancel all pipeline runs in progress?":"Are you sure you want to retry all incomplete block runs for any failed pipeline runs?",width:V.OK})})]}),(0,d.jsxs)(k.Z,{compact:!0,defaultColor:!0,greyBorder:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?(ke(null),(0,G.u)({tab:X.uuid},{replaceParams:!0})):(0,G.u)({page:0,status:e.target.value})},paddingRight:4*A.iI,placeholder:"Select run status",value:null===we||void 0===we?void 0:we.status,children:[(0,d.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),O.IK.map((function(e){return(0,d.jsx)("option",{value:e,children:O.Do[e]},e)}))]}),(0,d.jsx)(I.Z,{ml:2}),(0,d.jsx)(Z.Z,Y(Y({},V.hZ),{},{afterIcon:ve?(0,d.jsx)(D.x8,{}):null,afterIconClick:function(){var e;be(""),null===l||void 0===l||null===(e=l.current)||void 0===e||e.focus()},onChange:function(e){return be(e.target.value)},paddingVertical:6,placeholder:"Search pipeline run variables",ref:l,value:ve}))]})]})})}),Ge||Fe?(0,d.jsxs)(d.Fragment,{children:[Ie&&sn,q.uuid===(null===te||void 0===te?void 0:te.uuid)&&an]}):(0,d.jsx)(I.Z,{m:3,children:(0,d.jsx)(S.Z,{inverted:!0})})]})}$.getInitialProps=function(){var e=(0,i.Z)(l().mark((function e(n){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var ee=(0,w.Z)($)},79897:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs",function(){return t(81080)}])}},function(e){e.O(0,[2678,1154,844,5820,1124,9161,874,1557,8264,7858,5499,5283,5457,3745,3943,3419,9774,2888,179],(function(){return n=79897,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|