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([[8170],{27277:function(e,n,t){"use strict";var i=t(82394),r=t(21831),o=t(82684),c=t(39643),u=t(44688),l=t(28598);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.highlightedItemIndexInitial,t=void 0===n?null:n,i=e.itemGroups,a=e.noResultGroups,s=e.onHighlightItemIndexChange,f=e.onMouseEnterItem,p=e.onMouseLeaveItem,g=e.onSelectItem,h=e.renderEmptyState,v=e.searchQuery,m=e.selectedItem,y=e.setItemRefs,b=e.uuid,x=(0,o.useState)(!0),j=x[0],_=x[1],O=(0,o.useMemo)((function(){var e=[],n=i.reduce((function(n,t){var i=t.items.filter((function(e){return!v||function(e,n){return e.searchQueries.filter((function(e){return String(e).toLowerCase().includes(n.toLowerCase())})).length>=1}(e,v)}));return 0===i.length?n:(e.push.apply(e,(0,r.Z)(i)),n.concat(d(d({},t),{},{items:i})))}),[]);return{itemGroups:n,itemsFlattened:e}}),[i,v]),Z=O.itemGroups,w=O.itemsFlattened;a&&0===w.length&&(Z.push.apply(Z,(0,r.Z)(a)),w.push.apply(w,(0,r.Z)(a.reduce((function(e,n){var t=n.items;return e.concat(t)}),[]))));var P=(0,o.useRef)(null);P.current=w.map((function(){return(0,o.createRef)()}));var k=(0,o.useState)(t),C=k[0],I=k[1],S=(0,o.useCallback)((function(e){null===s||void 0===s||s(e),I(e)}),[s,I]),N=w[C],E=(0,u.y)(),H=E.registerOnKeyDown,D=E.unregisterOnKeyDown;(0,o.useEffect)((function(){return function(){return D(b)}}),[D,b]),null===H||void 0===H||H(b,(function(e,n,t){var i,r=!0,o=w.length,u=w.findIndex((function(e,i){var r=e.keyboardShortcutValidation;return null===r||void 0===r?void 0:r({keyHistory:t,keyMapping:n},i)})),l=n[c.Gs]&&!n[c.XR]&&!m;return-1!==u?(e.preventDefault(),g(w[u]),_(r),S(u)):(n[c.Uq]||l)&&w[C]?(l&&e.preventDefault(),g(w[C]),_(r),S(C)):(n[c.Bu]?(r=!1,i=null===C?o-1:C-1):n[c.kD]?(r=!1,i=null===C?0:C+1):n[c.vP]&&S(null),"undefined"!==typeof i&&(i>=o?i=0:i<=-1&&(i=o-1),i>=0&&i<=o-1?(S(i),e.preventDefault()):S(null)),void _(r))}),[C,w,m,S,_]),(0,o.useEffect)((function(){null===y||void 0===y||y(P)}),[P,w,y]),(0,o.useEffect)((function(){var e=null===C||"undefined"===typeof C||C>=w.length;(null===v||void 0===v?void 0:v.length)>=1&&e&&S(0)}),[C,w,v,S]);var M=(0,o.useCallback)((function(){return _(!0)}),[_]);return(0,o.useEffect)((function(){return window.addEventListener("mousemove",M),function(){window.removeEventListener("mousemove",M)}}),[M]),0===Z.length&&h?h():(0,l.jsx)(l.Fragment,{children:Z.map((function(e,n){var t=e.items,i=e.renderItem,r=e.renderGroupHeader,o=e.uuid,c=n>=1?Z.slice(0,n).reduce((function(e,n){return e+n.items.length}),0):0,u=t.map((function(e,n){var t=e.itemObject,r=e.value,o=r===(null===N||void 0===N?void 0:N.value),u=n+c,a=(null===t||void 0===t?void 0:t.id)||(null===t||void 0===t?void 0:t.uuid);return(0,l.jsx)("div",{id:"item-".concat(r,"-").concat(a),onMouseMove:function(){return j&&S(u)},ref:P.current[u],children:i(e,{highlighted:o,onClick:function(){return g(e)},onMouseEnter:function(){return null===f||void 0===f?void 0:f(e)},onMouseLeave:function(){return null===p||void 0===p?void 0:p(e)}},n,u)},"item-".concat(r,"-").concat(a))}));return u.length>=1&&(0,l.jsxs)("div",{children:[null===r||void 0===r?void 0:r(),u]},o||"group-uuid-".concat(n))}))})}},81334:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var i=t(82394),r=t(82684),o=t(27277),c=t(31882),u=t(38276),l=t(48381),a=t(30160),d=t(17488),s=t(38626),f=t(44897),p=t(42631),g=t(47041),h=t(70515),v=s.default.div.withConfig({displayName:"indexstyle__DropdownStyle",componentId:"sc-suwkha-0"})([""," border-radius:","px;max-height:","px;overflow:auto;position:absolute;width:100%;z-index:1;"," ",""],g.w5,p.BG,40*h.iI,(function(e){return"\n background-color: ".concat((e.theme.background||f.Z.background).popup,";\n box-shadow: ").concat((e.theme.shadow||f.Z.shadow).popup,";\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset-.5*h.iI,"px;\n ")})),m=s.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-suwkha-1"})(["padding:","px;position:relative;z-index:2;&:hover{cursor:pointer;}",""],.5*h.iI,(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||f.Z.interactive).hoverBackground,";\n ")})),y=t(39643),b=t(95924),x=t(86735),j=t(44688),_=t(28598);function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n,t=e.removeTag,i=e.selectTag,s=e.selectedTags,f=void 0===s?[]:s,p=e.tags,g=void 0===p?[]:p,h=e.uuid,O=(0,r.useRef)(null),w=(0,r.useState)(!1),P=w[0],k=w[1],C=(0,r.useState)(null),I=C[0],S=C[1],N=(0,r.useMemo)((function(){return(0,x.YC)(g||[],"uuid")}),[g]),E=(0,r.useMemo)((function(){return null===N||void 0===N?void 0:N.map((function(e){return{itemObject:e,searchQueries:[e.uuid],value:e.uuid}}))}),[N]),H=(0,r.useMemo)((function(){return(null===I||void 0===I?void 0:I.length)>=1?E.concat({itemObject:{uuid:I},searchQueries:[I],value:"Add tag: ".concat(I)}):E}),[E,I]),D=(0,j.y)(),M=D.registerOnKeyDown,R=D.unregisterOnKeyDown;return(0,r.useEffect)((function(){return function(){return R(h)}}),[R,h]),null===M||void 0===M||M(h,(function(e,n){var t;P&&n[y.vP]&&(k(!1),null===O||void 0===O||null===(t=O.current)||void 0===t||t.blur())}),[P,O]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(l.Z,{onClickTag:t,tags:f}),(0,_.jsxs)(u.Z,{mt:1,style:{position:"relative"},children:[(0,_.jsx)(d.Z,{onBlur:function(){return setTimeout((function(){return k(!1)}),150)},onChange:function(e){return S(e.target.value)},onFocus:function(){return k(!0)},ref:O,value:I||""}),(0,_.jsx)(v,{topOffset:null===O||void 0===O||null===(n=O.current)||void 0===n?void 0:n.getBoundingClientRect().height,children:(0,_.jsx)(o.Z,{itemGroups:[{items:P?H:[],renderItem:function(e,n){var t=e.value;return(0,_.jsx)(m,Z(Z({},n),{},{onClick:function(e){var t;(0,b.j)(e),null===n||void 0===n||null===(t=n.onClick)||void 0===t||t.call(n,e)},children:(0,_.jsx)(c.Z,{small:!0,children:(0,_.jsx)(a.ZP,{children:t})})}))}}],onSelectItem:function(e){var n=e.itemObject;null===i||void 0===i||i(n),S(null)},searchQuery:I,uuid:h})})]})]})}},48381:function(e,n,t){"use strict";var i=t(82684),r=t(31882),o=t(55485),c=t(30160),u=t(86735),l=t(28598);n.Z=function(e){var n=e.onClickTag,t=e.tags,a=void 0===t?[]:t,d=(0,i.useMemo)((function(){return(null===a||void 0===a?void 0:a.length)||0}),[a]),s=(0,i.useMemo)((function(){return(0,u.YC)(a||[],"uuid")}),[a]);return(0,l.jsx)(o.ZP,{alignItems:"center",flexWrap:"wrap",children:null===s||void 0===s?void 0:s.reduce((function(e,t){return e.push((0,l.jsx)("div",{style:{marginBottom:2,marginRight:d>=2?4:0,marginTop:2},children:(0,l.jsx)(r.Z,{onClick:n?function(){return n(t)}:null,small:!0,children:(0,l.jsx)(c.ZP,{children:t.uuid})})},"tag-".concat(t.uuid))),e}),[])})}},88543:function(e,n,t){"use strict";t.d(n,{S:function(){return j},Z:function(){return _}});var i=t(82684),r=t(15338),o=t(97618),c=t(55485),u=t(85854),l=t(65956),a=t(82394),d=t(44085),s=t(38276),f=t(30160),p=t(17488),g=t(69650),h=t(72473),v=t(8193),m=t(70515),y=t(28598);function b(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?b(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var j=function(e){var n,t=e.children,i=e.description,r=e.invalid,u=e.large,l=void 0===u||u,a=e.selectInput,b=e.textInput,j=e.title,_=e.toggleSwitch,O=e.warning;return(0,y.jsx)(s.Z,{p:m.cd,children:(0,y.jsxs)(c.ZP,{alignItems:"center",children:[(0,y.jsxs)(c.ZP,{flexDirection:"column",children:[(0,y.jsxs)(f.ZP,{danger:r,default:!0,large:l,warning:O,children:[j," ",r&&(0,y.jsx)(f.ZP,{danger:!0,inline:!0,large:l,children:"is required"})]}),i&&"string"===typeof i&&(0,y.jsx)(f.ZP,{muted:!0,small:!0,children:i}),i&&"string"!==typeof i&&i]}),(0,y.jsx)(s.Z,{mr:m.cd}),(0,y.jsxs)(o.Z,{flex:1,justifyContent:"flex-end",children:[t,b&&(0,y.jsx)(p.Z,x({afterIcon:(0,y.jsx)(h.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:v.Z,alignRight:!0,autoComplete:"off",large:l,noBackground:!0,noBorder:!0,fullWidth:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0},b)),a&&(0,y.jsx)(d.Z,x(x({},a),{},{afterIcon:(0,y.jsx)(h._M,{}),afterIconSize:v.Z,alignRight:!0,autoComplete:"off",large:l,noBackground:!0,noBorder:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0,children:null===a||void 0===a||null===(n=a.options)||void 0===n?void 0:n.map((function(e){var n=e.label,t=e.value;return(0,y.jsx)("option",{value:t,children:n||t},t)}))})),_&&(0,y.jsx)(g.Z,{checked:!(null===_||void 0===_||!_.checked),compact:!0,onCheck:null===_||void 0===_?void 0:_.onCheck})]})]})})},_=function(e){var n=e.children,t=e.description,a=e.headerChildren,d=e.title;return(0,y.jsxs)(l.Z,{noPadding:!0,children:[(0,y.jsx)(s.Z,{p:m.cd,children:(0,y.jsxs)(c.ZP,{alignItems:"center",children:[(0,y.jsxs)(o.Z,{flex:1,flexDirection:"column",children:[(0,y.jsx)(u.Z,{level:4,children:d}),t&&"string"===typeof t&&(0,y.jsx)(s.Z,{mt:1,children:(0,y.jsx)(f.ZP,{muted:!0,children:t})}),t&&"string"!==typeof t&&t]}),a]})}),i.Children.map(n,(function(e,n){return(0,y.jsxs)("div",{children:[(0,y.jsx)(r.Z,{light:!0}),e]},"".concat(d,"-").concat(n))}))]})}},8193:function(e,n,t){"use strict";t.d(n,{N:function(){return l},Z:function(){return u}});var i=t(38626),r=t(44897),o=t(42631),c=t(70515),u=2*c.iI,l=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1ck7mzt-0"})(["border-radius:","px;padding:","px;",""],o.n_,c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).codeArea,";\n ")}))},68781:function(e,n,t){"use strict";var i;t.d(n,{R:function(){return r}}),function(e){e.AZURE_CONTAINER_INSTANCE="azure_container_instance",e.ECS="ecs",e.GCP_CLOUD_RUN="gcp_cloud_run",e.K8S="k8s",e.LOCAL_PYTHON="local_python",e.PYSPARK="pyspark"}(i||(i={}));var r=[i.AZURE_CONTAINER_INSTANCE,i.ECS,i.GCP_CLOUD_RUN,i.K8S,i.LOCAL_PYTHON,i.PYSPARK]},31882:function(e,n,t){"use strict";var i=t(38626),r=t(71180),o=t(55485),c=t(30160),u=t(44897),l=t(72473),a=t(70515),d=t(61896),s=t(28598),f=i.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," "," ",""],(function(e){return!e.primary&&"\n background-color: ".concat((e.theme.background||u.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||u.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((a.iI+d.Al)/2,"px;\n height: ").concat(1.5*a.iI+d.Al,"px;\n padding: ").concat(a.iI/1.5,"px ").concat(1.25*a.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((a.iI/2+d.Al)/2,"px;\n height: ").concat(d.Al+a.iI/2+2,"px;\n padding: ").concat(a.iI/4,"px ").concat(a.iI,"px;\n ")}),(function(e){return e.xsmall&&"\n border-radius: ".concat((a.iI/1+d.Al)/1,"px;\n height: ").concat(20,"px;\n padding: 4px 6px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||u.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,t=e.children,i=e.disabled,u=e.label,d=e.monospace,p=e.onClick,g=e.primary,h=e.small,v=e.xsmall;return(0,s.jsx)(f,{border:n,primary:g,small:h,xsmall:v,children:(0,s.jsx)(r.ZP,{basic:!0,disabled:i,noBackground:!0,noPadding:!0,onClick:p,transparent:!0,children:(0,s.jsxs)(o.ZP,{alignItems:"center",children:[t,u&&(0,s.jsx)(c.ZP,{monospace:d,small:h,xsmall:v,children:u}),!i&&p&&(0,s.jsx)("div",{style:{marginLeft:2}}),!i&&p&&(0,s.jsx)(l.x8,{default:g,muted:!g,size:h?a.iI:1.25*a.iI})]})})})}},65956:function(e,n,t){"use strict";var i=t(38626),r=t(55485),o=t(38276),c=t(30160),u=t(44897),l=t(42631),a=t(47041),d=t(70515),s=t(28598),f=(0,i.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*d.iI,1.5*d.iI,1.5*d.iI),p=i.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],l.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||u.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||u.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||u.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||u.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),g=i.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],l.n_,l.n_,(function(e){return"\n background-color: ".concat((e.theme.background||u.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),f,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),h=i.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*d.iI,a.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*d.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),v=i.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],l.M8,l.YF,1.75*d.iI);n.Z=function(e){var n=e.borderless,t=e.children,i=e.containerRef,u=e.contentContainerRef,l=e.dark,a=e.footer,d=e.fullHeight,f=void 0===d||d,m=e.fullWidth,y=void 0===m||m,b=e.header,x=e.headerHeight,j=e.headerIcon,_=e.headerPaddingVertical,O=e.headerTitle,Z=e.maxHeight,w=e.maxWidth,P=e.minWidth,k=e.noPadding,C=e.overflowVisible,I=e.subtitle,S=e.success;return(0,s.jsxs)(p,{borderless:n,dark:l,fullHeight:f,fullWidth:y,maxHeight:Z,maxWidth:w,minWidth:P,overflowVisible:C,ref:i,success:S,children:[(b||O)&&(0,s.jsxs)(g,{headerPaddingVertical:_,height:x,children:[b&&b,O&&(0,s.jsx)(r.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(r.ZP,{alignItems:"center",children:[j&&j,(0,s.jsx)(o.Z,{ml:j?1:0,children:(0,s.jsx)(c.ZP,{bold:!0,default:!0,children:O})})]})})]}),(0,s.jsxs)(h,{maxHeight:Z,noPadding:k,overflowVisible:C,ref:u,children:[I&&"string"===typeof I&&(0,s.jsx)(o.Z,{mb:2,children:(0,s.jsx)(c.ZP,{default:!0,children:I})}),I&&"string"!==typeof I&&I,t]}),a&&(0,s.jsx)(v,{children:a})]})}},85854:function(e,n,t){"use strict";var i,r,o,c,u,l,a,d,s=t(82394),f=t(26304),p=t(26653),g=t(38626),h=t(33591),v=t(44897),m=t(95363),y=t(61896),b=t(30160),x=t(70515),j=t(38276),_=t(28598),O=["children","condensed","inline","level","marketing","spacingBelow"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=(0,g.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," "," ",""],b.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||v.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(m.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(m.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(m.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(m.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(m.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "}),(function(e){return e.strikethrough&&"\n text-decoration: line-through;\n "})),k=g.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||v.Z.content).active,";\n ")})),C=g.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],P,h.media.md(i||(i=(0,p.Z)(["\n ","\n "])),y.aQ),h.media.lg(r||(r=(0,p.Z)(["\n ","\n "])),y.aQ),h.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),y.aQ)),I=g.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],P,y.MJ),S=g.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],P,h.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),h.media.sm(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),h.media.md(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),h.media.lg(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),h.media.xl(d||(d=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI)),N=g.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],P,y.BL),E=g.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],P),H=g.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],P),D=g.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],P),M=g.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],P,(function(e){return 1===e.level&&"\n ".concat(y.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(y.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),R=function(e){var n,t=e.children,i=e.condensed,r=e.inline,o=e.level,c=e.marketing,u=e.spacingBelow,l=(0,f.Z)(e,O);r?n=M:0===Number(o)?n=C:1===Number(o)?n=c?S:I:2===Number(o)?n=N:3===Number(o)?n=E:4===Number(o)?n=H:5===Number(o)&&(n=D);var a=(0,_.jsxs)(n,w(w({},l),{},{level:o,children:[u&&(0,_.jsx)(j.Z,{mb:i?2:3,children:t}),!u&&t]}));return r?a:(0,_.jsx)(k,{children:a})};R.defaultProps={level:3,weightStyle:6},n.Z=R},37003:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return F}});var i=t(77837),r=t(75582),o=t(82394),c=t(38860),u=t.n(c),l=t(82684),a=t(34376),d=t(75457),s=t(93808),f=t(71180),p=t(70652),g=t(55485),h=t(85854),v=t(48670),m=t(44085),y=t(88543),b=t(38276),x=t(81334),j=t(30160),_=t(17488),O=t(35686),Z=t(98464),w=t(77417),P=t(68781),k=t(78419),C=t(70515),I=t(53808),S=t(42122),N=t(81728),E=t(86735),H=t(28598);function D(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function M(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?D(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var R=function(e){var n,t,i,r,c,u,a,d=e.isPipelineUpdating,s=e.pipeline,D=e.updatePipeline,R=(0,w.Z)().project,z=(0,l.useRef)(null),T=(0,l.useRef)(null),A=null===s||void 0===s?void 0:s.uuid,L=(0,l.useMemo)((function(){return(null===s||void 0===s?void 0:s.blocks)||[]}),[s]),B=(0,l.useState)(!1),W=B[0],F=B[1],V=(0,l.useState)(!1),G=V[0],U=V[1],K=(0,l.useState)(null),Q=K[0],Y=K[1],X=(0,Z.Z)(s);(0,l.useEffect)((function(){(0,S.Xy)(s,X)||Y(s)}),[s,X]);var q=(0,l.useCallback)((function(e){F(!0),Y(e)}),[]),J="".concat(k.g6,"_").concat(A),$=(0,l.useState)({}),ee=$[0],ne=$[1],te="".concat(k.vF,"_").concat(A),ie=(0,l.useState)(!1),re=ie[0],oe=ie[1],ce=(0,l.useCallback)((function(e){ne((function(n){var t=e(n);return(0,I.t8)(J,JSON.stringify(t)),t}))}),[J,ne]),ue=(0,l.useCallback)((function(e){oe((function(n){var t=e(n);return(0,I.t8)(te,t),t}))}),[te,oe]);(0,l.useEffect)((function(){var e=(0,I.U2)(J);e&&(0,N.Pb)(e)&&ne(JSON.parse(e))}),[J,ne]),(0,l.useEffect)((function(){var e=(0,I.U2)(te);e&&oe(e)}),[te,oe]);var le=(0,l.useMemo)((function(){return null===Q||void 0===Q?void 0:Q.executor_type}),[Q]);(0,l.useEffect)((function(){G||!le||P.R.find((function(e){return e===le}))||U(!0)}),[G,le]);var ae=(0,l.useMemo)((function(){return(null===L||void 0===L?void 0:L.filter((function(e){var n=e.uuid;return!(null===ee||void 0===ee||!ee[n])}))).length===L.length}),[L,ee]),de=(0,l.useMemo)((function(){return!(null!==L&&void 0!==L&&L.length)}),[L]),se=(0,l.useMemo)((function(){return(null===Q||void 0===Q?void 0:Q.tags)||[]}),[Q]),fe=O.ZP.tags.list().data,pe=(0,l.useMemo)((function(){return((null===fe||void 0===fe?void 0:fe.tags)||[]).filter((function(e){var n=e.uuid;return!se.includes(n)}))}),[fe,se]),ge=(0,l.useMemo)((function(){var e;return null===R||void 0===R||null===(e=R.pipelines)||void 0===e?void 0:e.settings}),[R]),he=(0,l.useMemo)((function(){var e,n,t;return(null===ge||void 0===ge||null===(e=ge.triggers)||void 0===e?void 0:e.save_in_code_automatically)&&"undefined"===typeof(null===Q||void 0===Q||null===(n=Q.settings)||void 0===n||null===(t=n.triggers)||void 0===t?void 0:t.save_in_code_automatically)}),[Q,ge]);return(0,H.jsxs)(b.Z,{p:C.cd,children:[(0,H.jsxs)(y.Z,{title:"Details",children:[(0,H.jsx)(y.S,{invalid:W&&!(null!==Q&&void 0!==Q&&Q.name),textInput:{onChange:function(e){return q((function(n){return M(M({},n),{},{name:e.target.value})}))},value:null===Q||void 0===Q?void 0:Q.name},title:"Pipeline name"}),(0,H.jsx)(y.S,{description:"When enabled, this setting allows sharing of objects and memory space across blocks within a single pipeline.",title:"Run pipeline in a single process",toggleSwitch:{checked:!(null===Q||void 0===Q||!Q.run_pipeline_in_one_process),onCheck:function(e){return q((function(n){return M(M({},n),{},{run_pipeline_in_one_process:e(null===n||void 0===n?void 0:n.run_pipeline_in_one_process)})}))}}}),(0,H.jsx)(y.S,{description:(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(j.ZP,{muted:!0,small:!0,children:"Every time a trigger is created or updated in this pipeline, it\u2019ll be automatically be persisted it in code."}),(null===ge||void 0===ge||null===(n=ge.triggers)||void 0===n?void 0:n.save_in_code_automatically)&&(0,H.jsx)(j.ZP,{small:!0,warning:!0,children:"This settings is enabled at the project level. Changing the value here will only affect this pipeline."})]}),title:"Save triggers in code automatically",toggleSwitch:{checked:he||!(null===Q||void 0===Q||null===(t=Q.settings)||void 0===t||null===(i=t.triggers)||void 0===i||!i.save_in_code_automatically),onCheck:function(e){return q((function(n){var t,i,r;return M(M({},n),{},{settings:M(M({},null===n||void 0===n?void 0:n.settings),{},{triggers:M(M({},null===n||void 0===n||null===(t=n.settings)||void 0===t?void 0:t.triggers),{},{save_in_code_automatically:e(he||(null===n||void 0===n||null===(i=n.settings)||void 0===i||null===(r=i.triggers)||void 0===r?void 0:r.save_in_code_automatically))})})})}))}}})]}),(0,H.jsxs)(b.Z,{mt:C.HN,children:[(0,H.jsx)(h.Z,{children:"Executor type"}),(0,H.jsxs)(j.ZP,{muted:!0,children:["For more information on this setting, please read the ",(0,H.jsx)(v.Z,{href:"https://docs.mage.ai/production/configuring-production-settings/compute-resource#2-set-executor-type-and-customize-the-compute-resource-of-the-mage-executor",openNewWindow:!0,children:"documentation"}),"."]}),(0,H.jsxs)(b.Z,{mt:1,children:[!G&&(0,H.jsx)(m.Z,{label:"Executor type",onChange:function(e){return q((function(n){return M(M({},n),{},{executor_type:e.target.value})}))},primary:!0,ref:z,value:(null===Q||void 0===Q?void 0:Q.executor_type)||"",children:P.R.map((function(e){return(0,H.jsx)("option",{value:e,children:e},e)}))}),G&&(0,H.jsx)(_.Z,{label:"Executor type",monospace:!0,onChange:function(e){return q((function(n){return M(M({},n),{},{executor_type:e.target.value})}))},ref:T,setContentOnMount:!0,value:(null===Q||void 0===Q?void 0:Q.executor_type)||""}),(0,H.jsx)(b.Z,{mt:1,children:(0,H.jsx)(v.Z,{muted:!0,onClick:function(){G?(q((function(e){return M(M({},e),{},{executor_type:null===s||void 0===s?void 0:s.executor_type})})),setTimeout((function(){var e;return null===z||void 0===z||null===(e=z.current)||void 0===e?void 0:e.focus()}),1)):setTimeout((function(){var e;return null===T||void 0===T||null===(e=T.current)||void 0===e?void 0:e.focus()}),1),U(!G)},preventDefault:!0,small:!0,children:G?"Select a preset executor type":"Enter a custom executor type"})})]})]}),(0,H.jsxs)(b.Z,{mt:C.HN,children:[(0,H.jsx)(h.Z,{children:"Retry configuration"}),(0,H.jsxs)(j.ZP,{muted:!0,children:["For more information on this setting, please read the ",(0,H.jsx)(v.Z,{href:"https://docs.mage.ai/orchestration/pipeline-runs/retrying-block-runs",openNewWindow:!0,children:"documentation"}),"."]}),(0,H.jsx)(b.Z,{mt:1,children:(0,H.jsxs)(g.ZP,{children:[(0,H.jsx)(_.Z,{label:"Retries",monospace:!0,onChange:function(e){return q((function(n){return M(M({},n),{},{retry_config:M(M({},null===n||void 0===n?void 0:n.retry_config),{},{retries:"undefined"!==typeof e.target.value&&null!==e.target.value?Number(e.target.value):e.target.value})})}))},setContentOnMount:!0,type:"number",value:(null===Q||void 0===Q||null===(r=Q.retry_config)||void 0===r?void 0:r.retries)||""}),(0,H.jsx)(b.Z,{mr:1}),(0,H.jsx)(_.Z,{label:"Delay",monospace:!0,onChange:function(e){return q((function(n){return M(M({},n),{},{retry_config:M(M({},null===n||void 0===n?void 0:n.retry_config),{},{delay:"undefined"!==typeof e.target.value&&null!==e.target.value?Number(e.target.value):e.target.value})})}))},setContentOnMount:!0,type:"number",value:(null===Q||void 0===Q||null===(c=Q.retry_config)||void 0===c?void 0:c.delay)||""}),(0,H.jsx)(b.Z,{mr:1}),(0,H.jsx)(_.Z,{label:"Max delay",monospace:!0,onChange:function(e){return q((function(n){return M(M({},n),{},{retry_config:M(M({},null===n||void 0===n?void 0:n.retry_config),{},{max_delay:"undefined"!==typeof e.target.value&&null!==e.target.value?Number(e.target.value):e.target.value})})}))},setContentOnMount:!0,type:"number",value:(null===Q||void 0===Q||null===(u=Q.retry_config)||void 0===u?void 0:u.max_delay)||""}),(0,H.jsx)(b.Z,{mr:1}),(0,H.jsx)(p.Z,{checked:!(null===Q||void 0===Q||null===(a=Q.retry_config)||void 0===a||!a.exponential_backoff),label:"Exponential backoff",onClick:function(){return q((function(e){var n;return M(M({},e),{},{retry_config:M(M({},null===e||void 0===e?void 0:e.retry_config),{},{exponential_backoff:!(null!==e&&void 0!==e&&null!==(n=e.retry_config)&&void 0!==n&&n.exponential_backoff)})})}))}})]})})]}),(0,H.jsxs)(b.Z,{mt:C.HN,children:[(0,H.jsx)(h.Z,{children:"Tags"}),(0,H.jsx)(b.Z,{mt:1,children:(0,H.jsx)(x.Z,{removeTag:function(e){q((function(n){return M(M({},n),{},{tags:se.filter((function(n){return n!==e.uuid}))})}))},selectTag:function(e){q((function(n){return M(M({},n),{},{tags:(0,E.$C)(e.uuid,se,(function(n){return n===e.uuid}))})}))},selectedTags:null===se||void 0===se?void 0:se.map((function(e){return{uuid:e}})),tags:pe,uuid:"TagsAutocompleteInputField-".concat(null===s||void 0===s?void 0:s.uuid)})})]}),(0,H.jsx)(b.Z,{mt:C.HN,children:(0,H.jsx)(g.ZP,{children:(0,H.jsx)(f.ZP,{disabled:!W,loading:d,onClick:function(){return D({executor_type:null===Q||void 0===Q?void 0:Q.executor_type,name:null===Q||void 0===Q?void 0:Q.name,retry_config:null===Q||void 0===Q?void 0:Q.retry_config,run_pipeline_in_one_process:null===Q||void 0===Q?void 0:Q.run_pipeline_in_one_process,settings:null===Q||void 0===Q?void 0:Q.settings,tags:null===Q||void 0===Q?void 0:Q.tags}).then((function(){return F(!1)}))},primary:!0,children:"Save pipeline settings"})})}),(0,H.jsx)(b.Z,{mt:C.HN,children:(0,H.jsx)(p.Z,{checked:ae&&!de,disabled:de,label:"Hide all blocks in notebook",onClick:function(){return ce((function(){return ae?{}:null===L||void 0===L?void 0:L.reduce((function(e,n){var t=n.uuid;return M(M({},e),{},(0,o.Z)({},t,!0))}),{})}))}})}),(0,H.jsx)(b.Z,{mt:C.Mq,children:(0,H.jsx)(p.Z,{checked:re,label:"When running a block while editing a pipeline, output the block messages to the logs",onClick:function(){return ue((function(e){return!e}))}})})]})},z=t(28795),T=t(69864),A=t(72619);function L(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function B(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?L(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function W(e){var n=e.pipeline,t=(0,a.useRouter)(),i=(0,l.useState)(null),o=i[0],c=i[1],u=null===n||void 0===n?void 0:n.uuid,s=O.ZP.pipelines.detail(u).data,f=B(B({},null===s||void 0===s?void 0:s.pipeline),n),p=(0,T.Db)(O.ZP.pipelines.useUpdate(u,{update_content:!0}),{onSuccess:function(e){return(0,A.wD)(e,{callback:function(e){if(null!==e&&void 0!==e&&e.pipeline){var n=e.pipeline.uuid;u!==n&&(window.location.href="".concat(t.basePath,"/pipelines/").concat(n,"/settings"))}},onErrorCallback:function(e,n){return c({errors:n,response:e})}})}}),g=(0,r.Z)(p,2),h=g[0],v=g[1].isLoading;return(0,H.jsx)(d.Z,{breadcrumbs:[{label:function(){return"Settings"}}],errors:o,pageName:z.M.SETTINGS,pipeline:f,setErrors:c,title:function(e){var n=e.name;return"".concat(n," settings")},uuid:"".concat(z.M.SETTINGS,"_").concat(u),children:f&&(0,H.jsx)(R,{isPipelineUpdating:v,pipeline:f,updatePipeline:function(e){return h({pipeline:e})}})})}W.getInitialProps=function(){var e=(0,i.Z)(u().mark((function e(n){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var F=(0,s.Z)(W)},59606:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/settings",function(){return t(37003)}])},80022:function(e,n,t){"use strict";function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return i}})},15544:function(e,n,t){"use strict";function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.d(n,{Z:function(){return i}})},13692:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});var i=t(61049);function r(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&(0,i.Z)(e,n)}},93189:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var i=t(12539),r=t(80022);function o(e,n){if(n&&("object"===i(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.Z)(e)}},61049:function(e,n,t){"use strict";function i(e,n){return i=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},i(e,n)}t.d(n,{Z:function(){return i}})}},function(e){e.O(0,[2678,1154,844,874,9626,8264,5457,9774,2888,179],(function(){return n=59606,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8170],{27277:function(e,n,t){"use strict";var i=t(82394),r=t(21831),o=t(82684),c=t(39643),u=t(44688),l=t(28598);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.highlightedItemIndexInitial,t=void 0===n?null:n,i=e.itemGroups,a=e.noResultGroups,s=e.onHighlightItemIndexChange,f=e.onMouseEnterItem,p=e.onMouseLeaveItem,g=e.onSelectItem,h=e.renderEmptyState,v=e.searchQuery,m=e.selectedItem,y=e.setItemRefs,b=e.uuid,x=(0,o.useState)(!0),j=x[0],_=x[1],O=(0,o.useMemo)((function(){var e=[],n=i.reduce((function(n,t){var i=t.items.filter((function(e){return!v||function(e,n){return e.searchQueries.filter((function(e){return String(e).toLowerCase().includes(n.toLowerCase())})).length>=1}(e,v)}));return 0===i.length?n:(e.push.apply(e,(0,r.Z)(i)),n.concat(d(d({},t),{},{items:i})))}),[]);return{itemGroups:n,itemsFlattened:e}}),[i,v]),Z=O.itemGroups,w=O.itemsFlattened;a&&0===w.length&&(Z.push.apply(Z,(0,r.Z)(a)),w.push.apply(w,(0,r.Z)(a.reduce((function(e,n){var t=n.items;return e.concat(t)}),[]))));var P=(0,o.useRef)(null);P.current=w.map((function(){return(0,o.createRef)()}));var k=(0,o.useState)(t),C=k[0],I=k[1],S=(0,o.useCallback)((function(e){null===s||void 0===s||s(e),I(e)}),[s,I]),N=w[C],E=(0,u.y)(),H=E.registerOnKeyDown,D=E.unregisterOnKeyDown;(0,o.useEffect)((function(){return function(){return D(b)}}),[D,b]),null===H||void 0===H||H(b,(function(e,n,t){var i,r=!0,o=w.length,u=w.findIndex((function(e,i){var r=e.keyboardShortcutValidation;return null===r||void 0===r?void 0:r({keyHistory:t,keyMapping:n},i)})),l=n[c.Gs]&&!n[c.XR]&&!m;return-1!==u?(e.preventDefault(),g(w[u]),_(r),S(u)):(n[c.Uq]||l)&&w[C]?(l&&e.preventDefault(),g(w[C]),_(r),S(C)):(n[c.Bu]?(r=!1,i=null===C?o-1:C-1):n[c.kD]?(r=!1,i=null===C?0:C+1):n[c.vP]&&S(null),"undefined"!==typeof i&&(i>=o?i=0:i<=-1&&(i=o-1),i>=0&&i<=o-1?(S(i),e.preventDefault()):S(null)),void _(r))}),[C,w,m,S,_]),(0,o.useEffect)((function(){null===y||void 0===y||y(P)}),[P,w,y]),(0,o.useEffect)((function(){var e=null===C||"undefined"===typeof C||C>=w.length;(null===v||void 0===v?void 0:v.length)>=1&&e&&S(0)}),[C,w,v,S]);var M=(0,o.useCallback)((function(){return _(!0)}),[_]);return(0,o.useEffect)((function(){return window.addEventListener("mousemove",M),function(){window.removeEventListener("mousemove",M)}}),[M]),0===Z.length&&h?h():(0,l.jsx)(l.Fragment,{children:Z.map((function(e,n){var t=e.items,i=e.renderItem,r=e.renderGroupHeader,o=e.uuid,c=n>=1?Z.slice(0,n).reduce((function(e,n){return e+n.items.length}),0):0,u=t.map((function(e,n){var t=e.itemObject,r=e.value,o=r===(null===N||void 0===N?void 0:N.value),u=n+c,a=(null===t||void 0===t?void 0:t.id)||(null===t||void 0===t?void 0:t.uuid);return(0,l.jsx)("div",{id:"item-".concat(r,"-").concat(a),onMouseMove:function(){return j&&S(u)},ref:P.current[u],children:i(e,{highlighted:o,onClick:function(){return g(e)},onMouseEnter:function(){return null===f||void 0===f?void 0:f(e)},onMouseLeave:function(){return null===p||void 0===p?void 0:p(e)}},n,u)},"item-".concat(r,"-").concat(a))}));return u.length>=1&&(0,l.jsxs)("div",{children:[null===r||void 0===r?void 0:r(),u]},o||"group-uuid-".concat(n))}))})}},81334:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var i=t(82394),r=t(82684),o=t(27277),c=t(31882),u=t(38276),l=t(48381),a=t(30160),d=t(17488),s=t(38626),f=t(44897),p=t(42631),g=t(47041),h=t(70515),v=s.default.div.withConfig({displayName:"indexstyle__DropdownStyle",componentId:"sc-suwkha-0"})([""," border-radius:","px;max-height:","px;overflow:auto;position:absolute;width:100%;z-index:1;"," ",""],g.w5,p.BG,40*h.iI,(function(e){return"\n background-color: ".concat((e.theme.background||f.Z.background).popup,";\n box-shadow: ").concat((e.theme.shadow||f.Z.shadow).popup,";\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset-.5*h.iI,"px;\n ")})),m=s.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-suwkha-1"})(["padding:","px;position:relative;z-index:2;&:hover{cursor:pointer;}",""],.5*h.iI,(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||f.Z.interactive).hoverBackground,";\n ")})),y=t(39643),b=t(95924),x=t(86735),j=t(44688),_=t(28598);function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n,t=e.removeTag,i=e.selectTag,s=e.selectedTags,f=void 0===s?[]:s,p=e.tags,g=void 0===p?[]:p,h=e.uuid,O=(0,r.useRef)(null),w=(0,r.useState)(!1),P=w[0],k=w[1],C=(0,r.useState)(null),I=C[0],S=C[1],N=(0,r.useMemo)((function(){return(0,x.YC)(g||[],"uuid")}),[g]),E=(0,r.useMemo)((function(){return null===N||void 0===N?void 0:N.map((function(e){return{itemObject:e,searchQueries:[e.uuid],value:e.uuid}}))}),[N]),H=(0,r.useMemo)((function(){return(null===I||void 0===I?void 0:I.length)>=1?E.concat({itemObject:{uuid:I},searchQueries:[I],value:"Add tag: ".concat(I)}):E}),[E,I]),D=(0,j.y)(),M=D.registerOnKeyDown,R=D.unregisterOnKeyDown;return(0,r.useEffect)((function(){return function(){return R(h)}}),[R,h]),null===M||void 0===M||M(h,(function(e,n){var t;P&&n[y.vP]&&(k(!1),null===O||void 0===O||null===(t=O.current)||void 0===t||t.blur())}),[P,O]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(l.Z,{onClickTag:t,tags:f}),(0,_.jsxs)(u.Z,{mt:1,style:{position:"relative"},children:[(0,_.jsx)(d.Z,{onBlur:function(){return setTimeout((function(){return k(!1)}),150)},onChange:function(e){return S(e.target.value)},onFocus:function(){return k(!0)},ref:O,value:I||""}),(0,_.jsx)(v,{topOffset:null===O||void 0===O||null===(n=O.current)||void 0===n?void 0:n.getBoundingClientRect().height,children:(0,_.jsx)(o.Z,{itemGroups:[{items:P?H:[],renderItem:function(e,n){var t=e.value;return(0,_.jsx)(m,Z(Z({},n),{},{onClick:function(e){var t;(0,b.j)(e),null===n||void 0===n||null===(t=n.onClick)||void 0===t||t.call(n,e)},children:(0,_.jsx)(c.Z,{small:!0,children:(0,_.jsx)(a.ZP,{children:t})})}))}}],onSelectItem:function(e){var n=e.itemObject;null===i||void 0===i||i(n),S(null)},searchQuery:I,uuid:h})})]})]})}},48381:function(e,n,t){"use strict";var i=t(82684),r=t(31882),o=t(55485),c=t(30160),u=t(86735),l=t(28598);n.Z=function(e){var n=e.onClickTag,t=e.tags,a=void 0===t?[]:t,d=(0,i.useMemo)((function(){return(null===a||void 0===a?void 0:a.length)||0}),[a]),s=(0,i.useMemo)((function(){return(0,u.YC)(a||[],"uuid")}),[a]);return(0,l.jsx)(o.ZP,{alignItems:"center",flexWrap:"wrap",children:null===s||void 0===s?void 0:s.reduce((function(e,t){return e.push((0,l.jsx)("div",{style:{marginBottom:2,marginRight:d>=2?4:0,marginTop:2},children:(0,l.jsx)(r.Z,{onClick:n?function(){return n(t)}:null,small:!0,children:(0,l.jsx)(c.ZP,{children:t.uuid})})},"tag-".concat(t.uuid))),e}),[])})}},88543:function(e,n,t){"use strict";t.d(n,{S:function(){return j},Z:function(){return _}});var i=t(82684),r=t(15338),o=t(97618),c=t(55485),u=t(85854),l=t(65956),a=t(82394),d=t(44085),s=t(38276),f=t(30160),p=t(17488),g=t(69650),h=t(72473),v=t(8193),m=t(70515),y=t(28598);function b(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?b(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var j=function(e){var n,t=e.children,i=e.description,r=e.invalid,u=e.large,l=void 0===u||u,a=e.selectInput,b=e.textInput,j=e.title,_=e.toggleSwitch,O=e.warning;return(0,y.jsx)(s.Z,{p:m.cd,children:(0,y.jsxs)(c.ZP,{alignItems:"center",children:[(0,y.jsxs)(c.ZP,{flexDirection:"column",children:[(0,y.jsxs)(f.ZP,{danger:r,default:!0,large:l,warning:O,children:[j," ",r&&(0,y.jsx)(f.ZP,{danger:!0,inline:!0,large:l,children:"is required"})]}),i&&"string"===typeof i&&(0,y.jsx)(f.ZP,{muted:!0,small:!0,children:i}),i&&"string"!==typeof i&&i]}),(0,y.jsx)(s.Z,{mr:m.cd}),(0,y.jsxs)(o.Z,{flex:1,justifyContent:"flex-end",children:[t,b&&(0,y.jsx)(p.Z,x({afterIcon:(0,y.jsx)(h.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:v.Z,alignRight:!0,autoComplete:"off",large:l,noBackground:!0,noBorder:!0,fullWidth:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0},b)),a&&(0,y.jsx)(d.Z,x(x({},a),{},{afterIcon:(0,y.jsx)(h._M,{}),afterIconSize:v.Z,alignRight:!0,autoComplete:"off",large:l,noBackground:!0,noBorder:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0,children:null===a||void 0===a||null===(n=a.options)||void 0===n?void 0:n.map((function(e){var n=e.label,t=e.value;return(0,y.jsx)("option",{value:t,children:n||t},t)}))})),_&&(0,y.jsx)(g.Z,{checked:!(null===_||void 0===_||!_.checked),compact:!0,onCheck:null===_||void 0===_?void 0:_.onCheck})]})]})})},_=function(e){var n=e.children,t=e.description,a=e.headerChildren,d=e.title;return(0,y.jsxs)(l.Z,{noPadding:!0,children:[(0,y.jsx)(s.Z,{p:m.cd,children:(0,y.jsxs)(c.ZP,{alignItems:"center",children:[(0,y.jsxs)(o.Z,{flex:1,flexDirection:"column",children:[(0,y.jsx)(u.Z,{level:4,children:d}),t&&"string"===typeof t&&(0,y.jsx)(s.Z,{mt:1,children:(0,y.jsx)(f.ZP,{muted:!0,children:t})}),t&&"string"!==typeof t&&t]}),a]})}),i.Children.map(n,(function(e,n){return(0,y.jsxs)("div",{children:[(0,y.jsx)(r.Z,{light:!0}),e]},"".concat(d,"-").concat(n))}))]})}},8193:function(e,n,t){"use strict";t.d(n,{N:function(){return l},Z:function(){return u}});var i=t(38626),r=t(44897),o=t(42631),c=t(70515),u=2*c.iI,l=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1ck7mzt-0"})(["border-radius:","px;padding:","px;",""],o.n_,c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).codeArea,";\n ")}))},68781:function(e,n,t){"use strict";var i;t.d(n,{R:function(){return r}}),function(e){e.AZURE_CONTAINER_INSTANCE="azure_container_instance",e.ECS="ecs",e.GCP_CLOUD_RUN="gcp_cloud_run",e.K8S="k8s",e.LOCAL_PYTHON="local_python",e.PYSPARK="pyspark"}(i||(i={}));var r=[i.AZURE_CONTAINER_INSTANCE,i.ECS,i.GCP_CLOUD_RUN,i.K8S,i.LOCAL_PYTHON,i.PYSPARK]},31882:function(e,n,t){"use strict";var i=t(38626),r=t(71180),o=t(55485),c=t(30160),u=t(44897),l=t(72473),a=t(70515),d=t(61896),s=t(28598),f=i.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," "," ",""],(function(e){return!e.primary&&"\n background-color: ".concat((e.theme.background||u.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||u.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((a.iI+d.Al)/2,"px;\n height: ").concat(1.5*a.iI+d.Al,"px;\n padding: ").concat(a.iI/1.5,"px ").concat(1.25*a.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((a.iI/2+d.Al)/2,"px;\n height: ").concat(d.Al+a.iI/2+2,"px;\n padding: ").concat(a.iI/4,"px ").concat(a.iI,"px;\n ")}),(function(e){return e.xsmall&&"\n border-radius: ".concat((a.iI/1+d.Al)/1,"px;\n height: ").concat(20,"px;\n padding: 4px 6px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||u.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,t=e.children,i=e.disabled,u=e.label,d=e.monospace,p=e.onClick,g=e.primary,h=e.small,v=e.xsmall;return(0,s.jsx)(f,{border:n,primary:g,small:h,xsmall:v,children:(0,s.jsx)(r.ZP,{basic:!0,disabled:i,noBackground:!0,noPadding:!0,onClick:p,transparent:!0,children:(0,s.jsxs)(o.ZP,{alignItems:"center",children:[t,u&&(0,s.jsx)(c.ZP,{monospace:d,small:h,xsmall:v,children:u}),!i&&p&&(0,s.jsx)("div",{style:{marginLeft:2}}),!i&&p&&(0,s.jsx)(l.x8,{default:g,muted:!g,size:h?a.iI:1.25*a.iI})]})})})}},65956:function(e,n,t){"use strict";var i=t(38626),r=t(55485),o=t(38276),c=t(30160),u=t(44897),l=t(42631),a=t(47041),d=t(70515),s=t(28598),f=(0,i.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*d.iI,1.5*d.iI,1.5*d.iI),p=i.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],l.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||u.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||u.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||u.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||u.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),g=i.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],l.n_,l.n_,(function(e){return"\n background-color: ".concat((e.theme.background||u.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),f,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),h=i.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*d.iI,a.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*d.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),v=i.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],l.M8,l.YF,1.75*d.iI);n.Z=function(e){var n=e.borderless,t=e.children,i=e.containerRef,u=e.contentContainerRef,l=e.dark,a=e.footer,d=e.fullHeight,f=void 0===d||d,m=e.fullWidth,y=void 0===m||m,b=e.header,x=e.headerHeight,j=e.headerIcon,_=e.headerPaddingVertical,O=e.headerTitle,Z=e.maxHeight,w=e.maxWidth,P=e.minWidth,k=e.noPadding,C=e.overflowVisible,I=e.subtitle,S=e.success;return(0,s.jsxs)(p,{borderless:n,dark:l,fullHeight:f,fullWidth:y,maxHeight:Z,maxWidth:w,minWidth:P,overflowVisible:C,ref:i,success:S,children:[(b||O)&&(0,s.jsxs)(g,{headerPaddingVertical:_,height:x,children:[b&&b,O&&(0,s.jsx)(r.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(r.ZP,{alignItems:"center",children:[j&&j,(0,s.jsx)(o.Z,{ml:j?1:0,children:(0,s.jsx)(c.ZP,{bold:!0,default:!0,children:O})})]})})]}),(0,s.jsxs)(h,{maxHeight:Z,noPadding:k,overflowVisible:C,ref:u,children:[I&&"string"===typeof I&&(0,s.jsx)(o.Z,{mb:2,children:(0,s.jsx)(c.ZP,{default:!0,children:I})}),I&&"string"!==typeof I&&I,t]}),a&&(0,s.jsx)(v,{children:a})]})}},85854:function(e,n,t){"use strict";var i,r,o,c,u,l,a,d,s=t(82394),f=t(26304),p=t(26653),g=t(38626),h=t(33591),v=t(44897),m=t(95363),y=t(61896),b=t(30160),x=t(70515),j=t(38276),_=t(28598),O=["children","condensed","inline","level","marketing","spacingBelow"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=(0,g.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," "," ",""],b.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||v.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(m.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(m.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(m.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(m.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(m.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "}),(function(e){return e.strikethrough&&"\n text-decoration: line-through;\n "})),k=g.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||v.Z.content).active,";\n ")})),C=g.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],P,h.media.md(i||(i=(0,p.Z)(["\n ","\n "])),y.aQ),h.media.lg(r||(r=(0,p.Z)(["\n ","\n "])),y.aQ),h.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),y.aQ)),I=g.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],P,y.MJ),S=g.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],P,h.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),h.media.sm(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),h.media.md(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),h.media.lg(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),h.media.xl(d||(d=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI)),N=g.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],P,y.BL),E=g.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],P),H=g.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],P),D=g.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],P),M=g.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],P,(function(e){return 1===e.level&&"\n ".concat(y.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(y.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),R=function(e){var n,t=e.children,i=e.condensed,r=e.inline,o=e.level,c=e.marketing,u=e.spacingBelow,l=(0,f.Z)(e,O);r?n=M:0===Number(o)?n=C:1===Number(o)?n=c?S:I:2===Number(o)?n=N:3===Number(o)?n=E:4===Number(o)?n=H:5===Number(o)&&(n=D);var a=(0,_.jsxs)(n,w(w({},l),{},{level:o,children:[u&&(0,_.jsx)(j.Z,{mb:i?2:3,children:t}),!u&&t]}));return r?a:(0,_.jsx)(k,{children:a})};R.defaultProps={level:3,weightStyle:6},n.Z=R},37003:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return F}});var i=t(77837),r=t(75582),o=t(82394),c=t(38860),u=t.n(c),l=t(82684),a=t(34376),d=t(75457),s=t(93808),f=t(71180),p=t(70652),g=t(55485),h=t(85854),v=t(48670),m=t(44085),y=t(88543),b=t(38276),x=t(81334),j=t(30160),_=t(17488),O=t(35686),Z=t(98464),w=t(77417),P=t(68781),k=t(78419),C=t(70515),I=t(53808),S=t(42122),N=t(81728),E=t(86735),H=t(28598);function D(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function M(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?D(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var R=function(e){var n,t,i,r,c,u,a,d=e.isPipelineUpdating,s=e.pipeline,D=e.updatePipeline,R=(0,w.Z)().project,z=(0,l.useRef)(null),T=(0,l.useRef)(null),A=null===s||void 0===s?void 0:s.uuid,L=(0,l.useMemo)((function(){return(null===s||void 0===s?void 0:s.blocks)||[]}),[s]),B=(0,l.useState)(!1),W=B[0],F=B[1],V=(0,l.useState)(!1),G=V[0],U=V[1],K=(0,l.useState)(null),Q=K[0],Y=K[1],X=(0,Z.Z)(s);(0,l.useEffect)((function(){(0,S.Xy)(s,X)||Y(s)}),[s,X]);var q=(0,l.useCallback)((function(e){F(!0),Y(e)}),[]),J="".concat(k.g6,"_").concat(A),$=(0,l.useState)({}),ee=$[0],ne=$[1],te="".concat(k.vF,"_").concat(A),ie=(0,l.useState)(!1),re=ie[0],oe=ie[1],ce=(0,l.useCallback)((function(e){ne((function(n){var t=e(n);return(0,I.t8)(J,JSON.stringify(t)),t}))}),[J,ne]),ue=(0,l.useCallback)((function(e){oe((function(n){var t=e(n);return(0,I.t8)(te,t),t}))}),[te,oe]);(0,l.useEffect)((function(){var e=(0,I.U2)(J);e&&(0,N.Pb)(e)&&ne(JSON.parse(e))}),[J,ne]),(0,l.useEffect)((function(){var e=(0,I.U2)(te);e&&oe(e)}),[te,oe]);var le=(0,l.useMemo)((function(){return null===Q||void 0===Q?void 0:Q.executor_type}),[Q]);(0,l.useEffect)((function(){G||!le||P.R.find((function(e){return e===le}))||U(!0)}),[G,le]);var ae=(0,l.useMemo)((function(){return(null===L||void 0===L?void 0:L.filter((function(e){var n=e.uuid;return!(null===ee||void 0===ee||!ee[n])}))).length===L.length}),[L,ee]),de=(0,l.useMemo)((function(){return!(null!==L&&void 0!==L&&L.length)}),[L]),se=(0,l.useMemo)((function(){return(null===Q||void 0===Q?void 0:Q.tags)||[]}),[Q]),fe=O.ZP.tags.list().data,pe=(0,l.useMemo)((function(){return((null===fe||void 0===fe?void 0:fe.tags)||[]).filter((function(e){var n=e.uuid;return!se.includes(n)}))}),[fe,se]),ge=(0,l.useMemo)((function(){var e;return null===R||void 0===R||null===(e=R.pipelines)||void 0===e?void 0:e.settings}),[R]),he=(0,l.useMemo)((function(){var e,n,t;return(null===ge||void 0===ge||null===(e=ge.triggers)||void 0===e?void 0:e.save_in_code_automatically)&&"undefined"===typeof(null===Q||void 0===Q||null===(n=Q.settings)||void 0===n||null===(t=n.triggers)||void 0===t?void 0:t.save_in_code_automatically)}),[Q,ge]);return(0,H.jsxs)(b.Z,{p:C.cd,children:[(0,H.jsxs)(y.Z,{title:"Details",children:[(0,H.jsx)(y.S,{invalid:W&&!(null!==Q&&void 0!==Q&&Q.name),textInput:{onChange:function(e){return q((function(n){return M(M({},n),{},{name:e.target.value})}))},value:null===Q||void 0===Q?void 0:Q.name},title:"Pipeline name"}),(0,H.jsx)(y.S,{description:"When enabled, this setting allows sharing of objects and memory space across blocks within a single pipeline.",title:"Run pipeline in a single process",toggleSwitch:{checked:!(null===Q||void 0===Q||!Q.run_pipeline_in_one_process),onCheck:function(e){return q((function(n){return M(M({},n),{},{run_pipeline_in_one_process:e(null===n||void 0===n?void 0:n.run_pipeline_in_one_process)})}))}}}),(0,H.jsx)(y.S,{description:(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(j.ZP,{muted:!0,small:!0,children:"Every time a trigger is created or updated in this pipeline, it\u2019ll be automatically be persisted it in code."}),(null===ge||void 0===ge||null===(n=ge.triggers)||void 0===n?void 0:n.save_in_code_automatically)&&(0,H.jsx)(j.ZP,{small:!0,warning:!0,children:"This settings is enabled at the project level. Changing the value here will only affect this pipeline."})]}),title:"Save triggers in code automatically",toggleSwitch:{checked:he||!(null===Q||void 0===Q||null===(t=Q.settings)||void 0===t||null===(i=t.triggers)||void 0===i||!i.save_in_code_automatically),onCheck:function(e){return q((function(n){var t,i,r;return M(M({},n),{},{settings:M(M({},null===n||void 0===n?void 0:n.settings),{},{triggers:M(M({},null===n||void 0===n||null===(t=n.settings)||void 0===t?void 0:t.triggers),{},{save_in_code_automatically:e(he||(null===n||void 0===n||null===(i=n.settings)||void 0===i||null===(r=i.triggers)||void 0===r?void 0:r.save_in_code_automatically))})})})}))}}})]}),(0,H.jsxs)(b.Z,{mt:C.HN,children:[(0,H.jsx)(h.Z,{children:"Executor type"}),(0,H.jsxs)(j.ZP,{muted:!0,children:["For more information on this setting, please read the ",(0,H.jsx)(v.Z,{href:"https://docs.mage.ai/production/configuring-production-settings/compute-resource#2-set-executor-type-and-customize-the-compute-resource-of-the-mage-executor",openNewWindow:!0,children:"documentation"}),"."]}),(0,H.jsxs)(b.Z,{mt:1,children:[!G&&(0,H.jsx)(m.Z,{label:"Executor type",onChange:function(e){return q((function(n){return M(M({},n),{},{executor_type:e.target.value})}))},primary:!0,ref:z,value:(null===Q||void 0===Q?void 0:Q.executor_type)||"",children:P.R.map((function(e){return(0,H.jsx)("option",{value:e,children:e},e)}))}),G&&(0,H.jsx)(_.Z,{label:"Executor type",monospace:!0,onChange:function(e){return q((function(n){return M(M({},n),{},{executor_type:e.target.value})}))},ref:T,setContentOnMount:!0,value:(null===Q||void 0===Q?void 0:Q.executor_type)||""}),(0,H.jsx)(b.Z,{mt:1,children:(0,H.jsx)(v.Z,{muted:!0,onClick:function(){G?(q((function(e){return M(M({},e),{},{executor_type:null===s||void 0===s?void 0:s.executor_type})})),setTimeout((function(){var e;return null===z||void 0===z||null===(e=z.current)||void 0===e?void 0:e.focus()}),1)):setTimeout((function(){var e;return null===T||void 0===T||null===(e=T.current)||void 0===e?void 0:e.focus()}),1),U(!G)},preventDefault:!0,small:!0,children:G?"Select a preset executor type":"Enter a custom executor type"})})]})]}),(0,H.jsxs)(b.Z,{mt:C.HN,children:[(0,H.jsx)(h.Z,{children:"Retry configuration"}),(0,H.jsxs)(j.ZP,{muted:!0,children:["For more information on this setting, please read the ",(0,H.jsx)(v.Z,{href:"https://docs.mage.ai/orchestration/pipeline-runs/retrying-block-runs",openNewWindow:!0,children:"documentation"}),"."]}),(0,H.jsx)(b.Z,{mt:1,children:(0,H.jsxs)(g.ZP,{children:[(0,H.jsx)(_.Z,{label:"Retries",monospace:!0,onChange:function(e){return q((function(n){return M(M({},n),{},{retry_config:M(M({},null===n||void 0===n?void 0:n.retry_config),{},{retries:"undefined"!==typeof e.target.value&&null!==e.target.value?Number(e.target.value):e.target.value})})}))},setContentOnMount:!0,type:"number",value:(null===Q||void 0===Q||null===(r=Q.retry_config)||void 0===r?void 0:r.retries)||""}),(0,H.jsx)(b.Z,{mr:1}),(0,H.jsx)(_.Z,{label:"Delay",monospace:!0,onChange:function(e){return q((function(n){return M(M({},n),{},{retry_config:M(M({},null===n||void 0===n?void 0:n.retry_config),{},{delay:"undefined"!==typeof e.target.value&&null!==e.target.value?Number(e.target.value):e.target.value})})}))},setContentOnMount:!0,type:"number",value:(null===Q||void 0===Q||null===(c=Q.retry_config)||void 0===c?void 0:c.delay)||""}),(0,H.jsx)(b.Z,{mr:1}),(0,H.jsx)(_.Z,{label:"Max delay",monospace:!0,onChange:function(e){return q((function(n){return M(M({},n),{},{retry_config:M(M({},null===n||void 0===n?void 0:n.retry_config),{},{max_delay:"undefined"!==typeof e.target.value&&null!==e.target.value?Number(e.target.value):e.target.value})})}))},setContentOnMount:!0,type:"number",value:(null===Q||void 0===Q||null===(u=Q.retry_config)||void 0===u?void 0:u.max_delay)||""}),(0,H.jsx)(b.Z,{mr:1}),(0,H.jsx)(p.Z,{checked:!(null===Q||void 0===Q||null===(a=Q.retry_config)||void 0===a||!a.exponential_backoff),label:"Exponential backoff",onClick:function(){return q((function(e){var n;return M(M({},e),{},{retry_config:M(M({},null===e||void 0===e?void 0:e.retry_config),{},{exponential_backoff:!(null!==e&&void 0!==e&&null!==(n=e.retry_config)&&void 0!==n&&n.exponential_backoff)})})}))}})]})})]}),(0,H.jsxs)(b.Z,{mt:C.HN,children:[(0,H.jsx)(h.Z,{children:"Tags"}),(0,H.jsx)(b.Z,{mt:1,children:(0,H.jsx)(x.Z,{removeTag:function(e){q((function(n){return M(M({},n),{},{tags:se.filter((function(n){return n!==e.uuid}))})}))},selectTag:function(e){q((function(n){return M(M({},n),{},{tags:(0,E.$C)(e.uuid,se,(function(n){return n===e.uuid}))})}))},selectedTags:null===se||void 0===se?void 0:se.map((function(e){return{uuid:e}})),tags:pe,uuid:"TagsAutocompleteInputField-".concat(null===s||void 0===s?void 0:s.uuid)})})]}),(0,H.jsx)(b.Z,{mt:C.HN,children:(0,H.jsx)(g.ZP,{children:(0,H.jsx)(f.ZP,{disabled:!W,loading:d,onClick:function(){return D({executor_type:null===Q||void 0===Q?void 0:Q.executor_type,name:null===Q||void 0===Q?void 0:Q.name,retry_config:null===Q||void 0===Q?void 0:Q.retry_config,run_pipeline_in_one_process:null===Q||void 0===Q?void 0:Q.run_pipeline_in_one_process,settings:null===Q||void 0===Q?void 0:Q.settings,tags:null===Q||void 0===Q?void 0:Q.tags}).then((function(){return F(!1)}))},primary:!0,children:"Save pipeline settings"})})}),(0,H.jsx)(b.Z,{mt:C.HN,children:(0,H.jsx)(p.Z,{checked:ae&&!de,disabled:de,label:"Hide all blocks in notebook",onClick:function(){return ce((function(){return ae?{}:null===L||void 0===L?void 0:L.reduce((function(e,n){var t=n.uuid;return M(M({},e),{},(0,o.Z)({},t,!0))}),{})}))}})}),(0,H.jsx)(b.Z,{mt:C.Mq,children:(0,H.jsx)(p.Z,{checked:re,label:"When running a block while editing a pipeline, output the block messages to the logs",onClick:function(){return ue((function(e){return!e}))}})})]})},z=t(28795),T=t(69864),A=t(72619);function L(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function B(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?L(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function W(e){var n=e.pipeline,t=(0,a.useRouter)(),i=(0,l.useState)(null),o=i[0],c=i[1],u=null===n||void 0===n?void 0:n.uuid,s=O.ZP.pipelines.detail(u).data,f=B(B({},null===s||void 0===s?void 0:s.pipeline),n),p=(0,T.Db)(O.ZP.pipelines.useUpdate(u,{update_content:!0}),{onSuccess:function(e){return(0,A.wD)(e,{callback:function(e){if(null!==e&&void 0!==e&&e.pipeline){var n=e.pipeline.uuid;u!==n&&(window.location.href="".concat(t.basePath,"/pipelines/").concat(n,"/settings"))}},onErrorCallback:function(e,n){return c({errors:n,response:e})}})}}),g=(0,r.Z)(p,2),h=g[0],v=g[1].isLoading;return(0,H.jsx)(d.Z,{breadcrumbs:[{label:function(){return"Settings"}}],errors:o,pageName:z.M.SETTINGS,pipeline:f,setErrors:c,title:function(e){var n=e.name;return"".concat(n," settings")},uuid:"".concat(z.M.SETTINGS,"_").concat(u),children:f&&(0,H.jsx)(R,{isPipelineUpdating:v,pipeline:f,updatePipeline:function(e){return h({pipeline:e})}})})}W.getInitialProps=function(){var e=(0,i.Z)(u().mark((function e(n){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var F=(0,s.Z)(W)},59606:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/settings",function(){return t(37003)}])},80022:function(e,n,t){"use strict";function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return i}})},15544:function(e,n,t){"use strict";function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.d(n,{Z:function(){return i}})},13692:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});var i=t(61049);function r(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&(0,i.Z)(e,n)}},93189:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var i=t(12539),r=t(80022);function o(e,n){if(n&&("object"===i(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.Z)(e)}},61049:function(e,n,t){"use strict";function i(e,n){return i=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},i(e,n)}t.d(n,{Z:function(){return i}})}},function(e){e.O(0,[2678,1154,844,874,1557,8264,5457,9774,2888,179],(function(){return n=59606,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7803],{16488:function(n,e,t){"use strict";t.d(e,{IJ:function(){return p},M8:function(){return E},Uc:function(){return Z},XM:function(){return O},_U:function(){return m},eI:function(){return x},gU:function(){return _},lO:function(){return w},ri:function(){return b},tL:function(){return g},vJ:function(){return I},xH:function(){return j}});var r,o=t(82394),i=t(92083),u=t.n(i),c=t(3917),l=t(4383),s=t(30229),a=t(42122),d=t(86735);function f(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function v(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?f(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var m=function(n){return!!n&&!Object.values(s.U5).includes(n)};function p(n){return null===n||void 0===n?void 0:n.reduce((function(n,e){var t=e.block_uuid,r=e.completed_at,i=e.started_at,c=e.status,l=null;i&&r&&(l=u()(r).valueOf()-u()(i).valueOf());return v(v({},n),{},(0,o.Z)({},t,{runtime:l,status:c}))}),{})}var h,b=function(n){var e=[{description:function(){return"This pipeline will run continuously on an interval or just once."},label:function(){return"Schedule"},uuid:s.Xm.TIME},{description:function(){return"This pipeline will run when a specific event occurs."},label:function(){return"Event"},uuid:s.Xm.EVENT},{description:function(){return"Run this pipeline when you make an API call."},label:function(){return"API"},uuid:s.Xm.API}];return n?e.slice(0,1):e};function j(n){var e=(0,a.gR)(n,[s.gm.INTERVAL,s.gm.TYPE]),t=n[s.gm.INTERVAL];t&&(e["schedule_interval[]"]=encodeURIComponent(t));var r=n[s.gm.TYPE];return r&&(e["schedule_type[]"]=r),e}function x(n){return n?new Date(u()(n).valueOf()):null}function Z(n,e){return e?(0,c.XG)(n,e):function(n){if("string"!==typeof n)return n;var e=n.split("+")[0];return u()(x(e)).format(c.Nx)}(n)}!function(n){n.DAY="day",n.HOUR="hour",n.MINUTE="minute",n.SECOND="second"}(h||(h={}));var g=(r={},(0,o.Z)(r,h.DAY,86400),(0,o.Z)(r,h.HOUR,3600),(0,o.Z)(r,h.MINUTE,60),(0,o.Z)(r,h.SECOND,1),r);function _(n){var e=h.SECOND,t=n;return n%86400===0?(t/=86400,e=h.DAY):n%3600===0?(t/=3600,e=h.HOUR):n%60===0&&(t/=60,e=h.MINUTE),{time:t,unit:e}}function I(n,e){return n*g[e]}function O(n,e,t){var r,o=u()(n);return o.set("hour",+(null===e||void 0===e?void 0:e.hour)||0),o.set("minute",+(null===e||void 0===e?void 0:e.minute)||0),o.set("second",0),r=o.format(c.TD),null!==t&&void 0!==t&&t.includeSeconds&&(r=r.concat(":00")),null!==t&&void 0!==t&&t.localTimezone&&(r=o.format(c.lE),null!==t&&void 0!==t&&t.convertToUtc&&(r=(0,c.d$)(r,{includeSeconds:null===t||void 0===t?void 0:t.includeSeconds,utcFormat:!0}))),r}function E(n){var e,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="",o=!0;return o&&(t?r="".concat(window.origin,"/api/pipeline_schedules/").concat(null===n||void 0===n?void 0:n.id,"/api_trigger"):(r="".concat(window.origin,"/api/pipeline_schedules/").concat(null===n||void 0===n?void 0:n.id,"/pipeline_runs"),null!==n&&void 0!==n&&n.token&&(r="".concat(r,"/").concat(n.token)))),o&&(e=window.location.port)&&(r=r.replace(e,l.QT)),r}function y(n,e,t){return n.match(/[*,-/]/)?{additionalOffset:0,cronValue:n}:function(n,e,t){var r=t.indexOf(n),o=0;if(e<0)for(var i=0;i>e;i--)0===r?(r=t.length-1,o-=1):r-=1;else if(e>0)for(var u=0;u<e;u++)r===t.length-1?(r=0,o+=1):r+=1;return{additionalOffset:o,cronValue:String(t[r]||n)}}(+n,e,t)}var N=(0,d.m5)(60),P=(0,d.m5)(24),k=(0,c.Cs)();function w(n,e){if(!n)return n;var t=u()().local().format("Z"),r=t.split(":"),o="-"===t[0],i=3===r[0].length?Number(r[0].slice(1)):Number(r[0]),c=Number(r[1]);(o&&!e||!o&&e)&&(i=-i,c=-c);var l=n.split(" "),s=l[0],a=l[1],d=l[2],f=y(s,c,N),v=y(a,i+f.additionalOffset,P);if(l[0]=f.cronValue,l[1]=v.cronValue,0!==(null===v||void 0===v?void 0:v.additionalOffset)){var m=y(d,v.additionalOffset,k);l[2]=m.cronValue}return l.join(" ")}},44265:function(n,e,t){"use strict";t.d(e,{Az:function(){return s},BF:function(){return l},Do:function(){return d},IK:function(){return c},P0:function(){return o},VO:function(){return u},sZ:function(){return a}});var r,o,i=t(82394),u=t(41143).V,c=[u.FAILED,u.COMPLETED,u.RUNNING,u.CANCELLED,u.INITIAL],l=[u.INITIAL,u.RUNNING],s=[u.CANCELLED,u.COMPLETED,u.FAILED],a="__mage_variables",d=(r={},(0,i.Z)(r,u.CANCELLED,"Cancelled"),(0,i.Z)(r,u.COMPLETED,"Done"),(0,i.Z)(r,u.FAILED,"Failed"),(0,i.Z)(r,u.INITIAL,"Ready"),(0,i.Z)(r,u.RUNNING,"Running"),r);!function(n){n.PIPELINE_UUID="pipeline_uuid[]",n.STATUS="status[]",n.TAG="pipeline_tag[]"}(o||(o={}))},30229:function(n,e,t){"use strict";t.d(e,{PN:function(){return c},TR:function(){return m},U5:function(){return s},Wb:function(){return v},Xm:function(){return i},Z4:function(){return a},fq:function(){return l},gm:function(){return d},kJ:function(){return f}});var r,o,i,u=t(82394),c="__bookmark_values__";!function(n){n.API="api",n.EVENT="event",n.TIME="time"}(i||(i={}));var l,s,a=(r={},(0,u.Z)(r,i.API,(function(){return"API"})),(0,u.Z)(r,i.EVENT,(function(){return"event"})),(0,u.Z)(r,i.TIME,(function(){return"schedule"})),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive"}(l||(l={})),function(n){n.ONCE="@once",n.HOURLY="@hourly",n.DAILY="@daily",n.WEEKLY="@weekly",n.MONTHLY="@monthly",n.ALWAYS_ON="@always_on"}(s||(s={}));var d,f,v=[s.ONCE,s.HOURLY,s.DAILY,s.WEEKLY,s.MONTHLY];!function(n){n.INTERVAL="frequency[]",n.STATUS="status[]",n.TAG="tag[]",n.TYPE="type[]"}(d||(d={})),function(n){n.CREATED_AT="created_at",n.NAME="name",n.PIPELINE="pipeline_uuid",n.STATUS="status",n.TYPE="schedule_type"}(f||(f={}));var m=(o={},(0,u.Z)(o,f.CREATED_AT,"Created at"),(0,u.Z)(o,f.NAME,"Name"),(0,u.Z)(o,f.PIPELINE,"Pipeline"),(0,u.Z)(o,f.STATUS,"Active"),(0,u.Z)(o,f.TYPE,"Type"),o)},25050:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return sn}});var r=t(77837),o=t(38860),i=t.n(o),u=t(82684),c=t(75457),l=t(93808),s=t(75582),a=t(82394),d=t(97618),f=t(55485),v=t(85854),m=t(44265),p=t(38276),h=t(4190),b=t(30160),j=t(44897),x=t(38626),Z=t(42631),g=t(95363),_=t(70515),I=t(61896),O=x.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-15svh8z-0"})(["border-radius:","px;margin:","px;overflow:hidden;"," "," "," "," "," "," &:hover{"," "," "," "," ","}"],Z.n_,_.cd*_.iI,(function(n){return"\n background-color: ".concat((n.theme.background||j.Z.background).panel,";\n border: 1px solid ").concat((n.theme.borders||j.Z.borders).dark,";\n\n &:hover {\n cursor: pointer;\n }\n ")}),(function(n){return n.selected&&n.danger&&"\n border-color: ".concat((n.theme.accent||j.Z.accent).negative,";\n ")}),(function(n){return n.selected&&n.primary&&"\n border-color: ".concat((n.theme.interactive||j.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.selected&&n.default&&"\n border-color: ".concat((n.theme.interactive||j.Z.interactive).focusBackground,";\n ")}),(function(n){return n.selected&&n.success&&"\n border-color: ".concat((n.theme.background||j.Z.background).success,";\n ")}),(function(n){return n.selected&&n.warning&&"\n border-color: ".concat((n.theme.accent||j.Z.accent).warning,";\n ")}),(function(n){return n.danger&&"\n border-color: ".concat((n.theme.accent||j.Z.accent).negative,";\n ")}),(function(n){return n.primary&&"\n border-color: ".concat((n.theme.interactive||j.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.default&&"\n border-color: ".concat((n.theme.interactive||j.Z.interactive).focusBackground,";\n ")}),(function(n){return n.success&&"\n border-color: ".concat((n.theme.background||j.Z.background).success,";\n ")}),(function(n){return n.warning&&"\n border-color: ".concat((n.theme.accent||j.Z.accent).warning,";\n ")})),E=(0,x.css)([""," "," "," "," ",""],(function(n){return n.danger&&"\n background-color: ".concat((n.theme.accent||j.Z.accent).negative,";\n ")}),(function(n){return n.primary&&"\n background-color: ".concat((n.theme.interactive||j.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.default&&"\n background-color: ".concat((n.theme.interactive||j.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.success&&"\n background-color: ".concat((n.theme.background||j.Z.background).success,";\n ")}),(function(n){return n.warning&&"\n background-color: ".concat((n.theme.accent||j.Z.accent).warning,";\n ")})),y=x.default.div.withConfig({displayName:"indexstyle__StatusStyle",componentId:"sc-15svh8z-1"})([""," ",";border-radius:","px;display:inline-block;font-family:",";padding:6px;"," "," "," "," "," ",""],E,I.iD,Z.D7,g.ry,(function(n){return n.danger&&"\n color: ".concat((n.theme.content||j.Z.content).active,";\n ")}),(function(n){return n.primary&&"\n color: ".concat((n.theme.content||j.Z.content).active,";\n ")}),(function(n){return(n.default||n.success)&&"\n "}),(function(n){return n.default&&"\n color: ".concat((n.theme.content||j.Z.content).default,";\n ")}),(function(n){return n.success&&"\n color: ".concat((n.theme.content||j.Z.content).inverted,";\n ")}),(function(n){return n.warning&&"\n color: ".concat((n.theme.content||j.Z.content).inverted,";\n ")})),N=x.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-15svh8z-2"})([""," display:flex;height:auto;width:3px;",""],E,(function(n){return n.default&&"\n background-color: ".concat((n.theme.interactive||j.Z.interactive).focusBackground,";\n ")})),P=t(72473),k=t(16488),w=t(92083),T=t.n(w),A=t(41143),L=t(81728),S=t(86735);function M(n){var e;return Object.keys((null===n||void 0===n||null===(e=n.metrics)||void 0===e?void 0:e.blocks)||{}).sort()}function C(n){var e,t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=null,i=null,u=null,c=null,l={},a=(null===n||void 0===n?void 0:n.block_runs)||[],d=(null===n||void 0===n||null===(e=n.metrics)||void 0===e?void 0:e.blocks)||{},f=(null===n||void 0===n||null===(t=n.metrics)||void 0===t?void 0:t.pipeline)||{},v=D(n);return Object.entries(d).forEach((function(n){var e,t=(0,s.Z)(n,2),a=t[0],d=t[1];if(!r||r===a){var m,p=d||{},h=p.destinations,b=void 0===h?{records_affected:null,records_inserted:null,records_updated:null}:h,j=p.sources,x=void 0===j?{records:null}:j,Z=v[a]||[];if(r&&r===a&&Z.every((function(n){var e=n.status;return A.V.COMPLETED===e}))&&null===o&&(o=0),null!==f&&void 0!==f&&null!==(e=f[a])&&void 0!==e&&e.record_counts)null===o&&(o=0),o+=Number(null===f||void 0===f||null===(m=f[a])||void 0===m?void 0:m.record_counts);else null!==x&&void 0!==x&&x.records&&(null===o&&(o=0),o+=Number(x.records));null!==b&&void 0!==b&&b.records_updated?(null===u&&(u=0),u+=Number(b.records_updated),null===c&&(c=0),c+=Number(b.records_updated)):null!==b&&void 0!==b&&b.records_inserted?(null===u&&(u=0),u+=Number(b.records_inserted),null===i&&(i=0),i+=Number(b.records_inserted)):null!==b&&void 0!==b&&b.records_affected&&(null===u&&(u=0),u+=Number(b.records_affected)),["destinations","sources"].forEach((function(n){var e=d[n]||{};null!==e&&void 0!==e&&e.error&&(l[a]||(l[a]={}),l[a][n]={error:null===e||void 0===e?void 0:e.error,errors:null===e||void 0===e?void 0:e.errors,message:null===e||void 0===e?void 0:e.message})}))}})),null===a||void 0===a||a.forEach((function(n){var e=n.block_uuid,t=n.metrics,r=n.status;if(A.V.FAILED===r&&null!==t&&void 0!==t&&t.error&&e){var o=e.split(":"),i=(0,s.Z)(o,3),u=(i[0],i[1]);i[2];l[u]||(l[u]={}),l[u][""]=t.error}})),{errors:l,records:o,recordsInserted:i,recordsProcessed:u,recordsUpdated:c}}function D(n){var e=n.block_runs,t={};return null===e||void 0===e||e.forEach((function(n){var e=n.block_uuid.split(":"),r=(0,s.Z)(e,3),o=(r[0],r[1]);r[2];t[o]||(t[o]=[]),t[o].push(n)})),t}function V(n){var e=D(n),t={};return Object.entries(e).forEach((function(n){var e=(0,s.Z)(n,2),r=e[0],o=e[1],i=o.filter((function(n){var e=n.status;return A.V.COMPLETED===e})),u=i.map((function(n){var e=n.completed_at,t=n.started_at,r=T().utc(e),o=T().utc(t);return r.diff(o,"second")})),c=i.length,l=o.length;t[r]={completed:c,runtime:u.length>=1?(0,S.Sm)(u)/u.length:null,total:l}})),t}function R(n){var e=n.block_runs,t=(null===e||void 0===e?void 0:e.length)||1,r=function(n){var e=(null===n||void 0===n?void 0:n.block_runs)||[];return null===e||void 0===e?void 0:e.filter((function(n){var e=n.status;return A.V.COMPLETED===e}))}(n).length||0;return r/t}function U(n){var e=n.completed_at,t=n.block_runs,r=void 0===t?[]:t,o=n.status;if(null===r||void 0===r||!r.length)return 0;var i=T().utc();if(e)i=T().utc(e);else if([m.VO.CANCELLED,m.VO.FAILED].includes(o)){var u=(0,S.YC)(r,(function(n){return n.started_at}),{ascending:!1})[0];i=T().utc(u.updated_at)}var c=T().utc(n.created_at);return i.diff(c,"second")}function Y(n,e){var t,r,o,i,u,c=D(n),l=V(n),s=(null===n||void 0===n?void 0:n.metrics)||{blocks:null,pipeline:null},a=s.blocks||{},d=s.pipeline||{},f=(a[e],d[e],l[e]||{completed:null,total:null}),v=f.completed,m=f.total,p=v&&m?v/m:0,h=c[e]||[],b=h.every((function(n){var e=n.status;return A.V.COMPLETED===e})),j=(0,S.YC)(h,(function(n){return n.updated_at}),{ascending:!1})[0],x=null===(t=(0,S.YC)(h,(function(n){return n.started_at}),{ascending:!0})[0])||void 0===t?void 0:t.started_at;b?r=null===(u=(0,S.YC)(h,(function(n){return n.completed_at}),{ascending:!1})[0])||void 0===u?void 0:u.completed_at:j&&(i=null===j||void 0===j?void 0:j.updated_at);var Z=b?T().utc(r||i):T().utc(),g=T().utc(x);return{completed:v,completedAt:r,done:b,progress:p,runtime:o=Z.diff(g,"second"),startedAt:x,status:null===j||void 0===j?void 0:j.status,timeText:(0,L.zf)(o),total:m,updatedAt:i}}var F=t(70320),G=t(28598);function z(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function B(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?z(Object(t),!0).forEach((function(e){(0,a.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):z(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var H=function(n){var e=n.onSelect,t=n.pipelineRun,r=n.selected,o=t.created_at,i=t.status,c=(0,u.useMemo)((function(){return(null===t||void 0===t?void 0:t.metrics)||{blocks:{},destination:null,pipeline:{},source:null}}),[t]),l=(0,u.useMemo)((function(){return c.pipeline||{}}),[c]),a=(0,F.qB)(),x=c.destination,Z=c.source,g=(0,u.useMemo)((function(){return Object.keys(l).length}),[l]),I=(0,u.useMemo)((function(){return C(t)}),[t]),E=I.errors,w=I.records,T=I.recordsProcessed,A=(0,u.useMemo)((function(){return R(t)}),[t]),S=(0,u.useMemo)((function(){return[m.VO.COMPLETED].includes(i)}),[i]),M=(0,u.useMemo)((function(){return{danger:m.VO.FAILED===i,default:m.VO.INITIAL===i,primary:m.VO.RUNNING===i,success:S,warning:m.VO.CANCELLED===i}}),[S,i]),D=(0,u.useMemo)((function(){if(t){var n=U(t);return(0,L.zf)(n)}}),[t]);return(0,G.jsx)(O,B(B({},M),{},{onClick:function(){return e(r?null:t.id)},selected:r,children:(0,G.jsxs)(f.ZP,{fullHeight:!0,justifyContent:"space-between",children:[(0,G.jsx)(N,B({},M)),(0,G.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,G.jsxs)(p.Z,{ml:3,py:3,children:[(0,G.jsx)(v.Z,{bold:!0,level:5,monospace:!0,children:(0,k.Uc)(o,a)}),(0,G.jsx)(p.Z,{fullWidth:!1,mt:2,children:(0,G.jsx)(y,B(B({},M),{},{children:(0,G.jsxs)(f.ZP,{alignItems:"center",children:[S&&(0,G.jsx)(P.Jr,{inverted:!0,size:2*_.iI}),[m.VO.INITIAL,m.VO.RUNNING].includes(i)&&(0,G.jsx)(h.Z,{color:m.VO.INITIAL!==i?j.Z.monotone.white:null,inverted:m.VO.INITIAL===i,small:!0}),"\xa0",m.VO.RUNNING===i&&(0,G.jsxs)(G.Fragment,{children:["\xa0",Math.round(100*A),"%"]}),![m.VO.INITIAL,m.VO.RUNNING].includes(i)&&m.Do[i],m.VO.INITIAL===i&&"Starting"]})}))}),Object.values(E).length>=1&&(0,G.jsx)(p.Z,{mt:1,children:Object.entries(E).map((function(n){var e=(0,s.Z)(n,2),t=e[0];e[1];return(0,G.jsxs)(b.ZP,{monospace:!0,muted:!0,small:!0,children:[t," stream failed"]},t)}))})]})}),(0,G.jsxs)(d.Z,{flex:1,children:[(0,G.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,G.jsxs)(p.Z,{ml:3,py:3,children:[(0,G.jsxs)(p.Z,{mb:1,children:[(0,G.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Rows processed"}),(0,G.jsx)(b.ZP,{monospace:!0,children:T>=1?(0,L.x6)(T):"-"})]}),(0,G.jsxs)(p.Z,{mb:1,children:[(0,G.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Rows remaining"}),(0,G.jsx)(b.ZP,{monospace:!0,children:w>=1&&w>=T?(0,L.x6)(w-T):"-"})]}),m.VO.RUNNING!==i&&(0,G.jsxs)(p.Z,{mb:1,children:[(0,G.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Runtime"}),(0,G.jsx)(b.ZP,{monospace:!0,children:D})]})]})}),(0,G.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,G.jsxs)(p.Z,{ml:3,py:3,children:[(0,G.jsxs)(p.Z,{mb:1,children:[(0,G.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Source"}),(0,G.jsx)(b.ZP,{monospace:!0,children:Z||"-"})]}),(0,G.jsxs)(p.Z,{mb:1,children:[(0,G.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Destination"}),(0,G.jsx)(b.ZP,{monospace:!0,children:x||"-"})]}),(0,G.jsxs)(p.Z,{mb:1,children:[(0,G.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Streams"}),(0,G.jsx)(b.ZP,{monospace:!0,children:g>=1?(0,L.x6)(g):"-"})]})]})})]})]})}))},X=t(89565),W=t.n(X),J=t(34376),q=t(71180),K=t(48670),Q=t(75499),$=x.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-1thr560-0"})(["display:flex;flex:1;"," "," ",""],(function(n){return n.even&&n.fill&&"\n background-color: ".concat((n.theme.accent||j.Z.accent).cyan,";\n ")}),(function(n){return n.even&&!n.fill&&"\n background-color: ".concat((n.theme.accent||j.Z.accent).cyanTransparent,";\n ")}),(function(n){return"\n height: ".concat((n.small?1:2)*_.iI,"px;\n ")})),nn=t(95924),en=t(3917);var tn=function(n){var e=n.onClickRow,t=n.pipelineRun,r=n.selectedStream,o=(0,J.useRouter)(),i=(0,F.qB)(),c=(0,u.useState)(null),l=c[0],a=c[1],d=(0,u.useState)(null),h=d[0],j=d[1],x=(0,u.useMemo)((function(){return t?D(t):{}}),[t]),Z=(0,u.useMemo)((function(){return t?V(t):{}}),[t]),g=(0,u.useMemo)((function(){var n=0,e=[],t=[];if(Object.entries(Z).forEach((function(r){var o=(0,s.Z)(r,2),i=(o[0],o[1]),u=i.completed,c=i.runtime,l=i.total;null===c?t.push(i):(e.push(c),n+=c*(l-u))})),0===e.length)return null;var r=(0,S.Sm)(e)/e.length;return t.forEach((function(e){var t=e.completed,o=e.total;n+=r*(o-t)})),n}),[Z]),I=(0,u.useMemo)((function(){return r?Z[r]:null}),[Z,r]),O=(0,u.useMemo)((function(){if(r&&Z){var n=Z[r]||{},e=n.completed,o=n.total;if(o>=1)return e/o}else if(t)return R(t);return 0}),[Z,t,r]),E=(0,u.useMemo)((function(){return(0,G.jsx)(f.ZP,{children:(0,S.w6)(101).map((function(n,e){return(0,G.jsx)($,{even:e%2===0,fill:O>0&&Math.round(100*O)>=e},e)}))})}),[O]),y=(0,u.useMemo)((function(){if(r){var n=x[r]||[],e=n.every((function(n){var e=n.status;return A.V.COMPLETED===e})),o=(0,S.YC)(n,(function(n){return n.updated_at}),{ascending:!1})[0],i=null===o||void 0===o?void 0:o.status,u=I||{},c=u.completed,l=u.runtime,s=u.total;if(e)return"Sync complete for ".concat(r);if([A.V.CANCELLED,A.V.FAILED].includes(i))return m.Do[i];if(l&&s>=1){var a=Math.ceil(l*(s-c)/60);return"".concat((0,L._6)("minute",a,!0)," to completion")}return"Estimating time remaining for stream..."}if(m.VO.COMPLETED===(null===t||void 0===t?void 0:t.status))return"Sync complete";if(t){if([m.VO.CANCELLED,m.VO.FAILED].includes(null===t||void 0===t?void 0:t.status))return m.Do[null===t||void 0===t?void 0:t.status];if(m.VO.INITIAL===(null===t||void 0===t?void 0:t.status))return"Initializing sync (this can take several minutes)";if(null===g)return"Estimating time remaining...";var d=Math.ceil(g/60);return"".concat((0,L._6)("minute",d,!0)," to completion")}return"Select a sync"}),[x,g,I,t,r]),N=(0,u.useMemo)((function(){return t&&r?Y(t,r):{completed:null,completedAt:null,done:null,progress:null,runtime:null,startedAt:null,status:null,timeText:null,total:null,updatedAt:null}}),[t,r]);(0,u.useEffect)((function(){var n;if(t){var e=U(t);a(e),n=setInterval((function(){return a((function(n){return n+1}))}),1e3)}return function(){return clearInterval(n)}}),[t]),(0,u.useEffect)((function(){var n;if(t&&r&&N){var e=(null===N||void 0===N?void 0:N.runtime)||0;j(e),n=setInterval((function(){return j((function(n){return n+1}))}),1e3)}return function(){return clearInterval(n)}}),[t,r,N]);var w=(0,u.useMemo)((function(){if(t){if(r)return null===N||void 0===N?void 0:N.timeText;var n=U(t);return(0,L.zf)(n)}}),[t,r,N]),T=(0,u.useMemo)((function(){var n=Math.floor(l%86400/3600),e=Math.floor(l%3600/60),t=Math.floor(l%60/1);return[n>=10?String(n):"0".concat(n),e>=10?String(e):"0".concat(e),t>=10?String(t):"0".concat(t)].join(":")}),[l]),z=(0,u.useMemo)((function(){var n=Math.floor(h%86400/3600),e=Math.floor(h%3600/60),t=Math.floor(h%60/1);return[n>=10?String(n):"0".concat(n),e>=10?String(e):"0".concat(e),t>=10?String(t):"0".concat(t)].join(":")}),[h]),B=(0,u.useMemo)((function(){return t?C(t):{errors:null,records:null,recordsInserted:null,recordsProcessed:null,recordsUpdated:null}}),[t]),H=B.errors,X=B.records,tn=B.recordsInserted,rn=B.recordsProcessed,on=B.recordsUpdated,un=(0,u.useMemo)((function(){return t&&r?C(t,r):{errors:null,records:null,recordsInserted:null,recordsProcessed:null,recordsUpdated:null}}),[t,r]),cn=(0,u.useMemo)((function(){var n=r?null===un||void 0===un?void 0:un.records:X,e=r?null===un||void 0===un?void 0:un.recordsInserted:tn,t=r?null===un||void 0===un?void 0:un.recordsProcessed:rn,o=r?null===un||void 0===un?void 0:un.recordsUpdated:on,i=[{label:"Rows fetched",value:null===n?"-":(0,L.x6)(n)}];return null===e&&null===o?i.push({label:"Rows processed",value:null===t?"-":(0,L.x6)(t)}):null!==e?i.push({label:"Rows inserted",value:(0,L.x6)(e)}):null!==o&&i.push({label:"Rows updated",value:(0,L.x6)(o)}),i.map((function(n){var e=n.label,t=n.value;return(0,G.jsxs)("div",{children:[(0,G.jsx)(b.ZP,{bold:!0,large:!0,muted:!0,children:e}),(0,G.jsx)(b.ZP,{headline:!0,children:t})]},e)}))}),[X,un,tn,rn,on,r]),ln=(0,u.useMemo)((function(){if(!t)return(0,G.jsx)("div",{});var n=M(t);return(0,G.jsx)(Q.Z,{columnFlex:[null,null,null,null,null,null],columns:[{uuid:"Stream"},{uuid:"Start"},{uuid:"End"},{uuid:"Time"},{uuid:"Progress"},{uuid:"Logs"}],isSelectedRow:function(e){return r&&r===n[e]},onClickRow:e,rows:n.map((function(n){var e=Y(t,n),r=(e.completed,e.completedAt),u=e.done,c=e.progress,l=e.startedAt,s=e.status,a=e.timeText,d=(e.total,!!H[n]);return[(0,G.jsx)(b.ZP,{danger:d,default:!d,monospace:!0,children:n},"stream"),(0,G.jsx)(b.ZP,{default:!0,monospace:!0,title:l?(0,en._6)(l):null,children:l?(0,k.Uc)(l,i):(0,G.jsx)(G.Fragment,{children:"\u2014"})},"started_at"),(0,G.jsx)(b.ZP,{default:!0,monospace:!0,title:r?(0,en._6)(r):null,children:r?(0,k.Uc)(r,i):(0,G.jsx)(G.Fragment,{children:"\u2014"})},"completed_at"),(0,G.jsx)(b.ZP,{default:!0,children:[A.V.INITIAL,A.V.RUNNING].includes(s)?"-":a},"runtime"),(0,G.jsxs)("div",{children:[u&&(0,G.jsx)(P.Jr,{default:!0,size:2*_.iI}),!u&&(0,G.jsx)(f.ZP,{children:(0,S.w6)(51).map((function(n,e){return(0,G.jsx)($,{even:e%2===0,fill:c>0&&Math.round(50*c)>=e,small:!0},e)}))})]},"progress"),(0,G.jsx)(q.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(n){o.push("/pipelines/".concat(t.pipeline_uuid,"/logs?pipeline_run_id[]=").concat(t.id)),(0,nn.j)(n)},children:(0,G.jsx)(P.UL,{default:!0,size:2*_.iI})},"logs")]})),uuid:"".concat(null===t||void 0===t?void 0:t.id,"-streams-table")})}),[i,H,e,t,o,r]),sn=(0,u.useMemo)((function(){var n,e,o,i,u,c,l,a;if(t&&r){var d=(null===t||void 0===t?void 0:t.metrics)||{blocks:null,destination:null,pipeline:null,source:null},f=null===d||void 0===d||null===(n=d.pipeline)||void 0===n||null===(e=n[r])||void 0===e||null===(o=e.bookmarks)||void 0===o?void 0:o[r],v=null===d||void 0===d||null===(i=d.blocks)||void 0===i||null===(u=i[r])||void 0===u||null===(c=u.destinations)||void 0===c||null===(l=c.state)||void 0===l||null===(a=l.bookmarks)||void 0===a?void 0:a[r];if(f||v){var m=Array.from(new Set(Object.keys(f||{}).concat(Object.keys(v||{})))).sort(),p=[];m.forEach((function(n){var e=[(0,G.jsx)(b.ZP,{bold:!0,monospace:!0,muted:!0,small:!0,children:n},n)];[f,v].forEach((function(t,r){t&&e.push((0,G.jsx)(b.ZP,{monospace:!0,small:!0,children:t[n]},"".concat(n,"-").concat(r)))})),p.push(e)}));var h=[{label:function(){return""},uuid:"column"}];return[[null===d||void 0===d?void 0:d.source,"source",f],[null===d||void 0===d?void 0:d.destination,"destination",v]].forEach((function(n){var e=(0,s.Z)(n,3),t=e[0],r=e[1];e[2]&&h.push({uuid:"".concat(t," (").concat(r,")")})})),(0,G.jsx)(Q.Z,{columnFlex:[null,1,1],columns:h,rows:p,uuid:"".concat(r,"-bookmark-table")})}}}),[t,r]),an=(0,u.useMemo)((function(){var n,e,o,i,u,c;if(t&&r){var l=(null===t||void 0===t?void 0:t.metrics)||{blocks:null,destination:null,pipeline:null,source:null},a=null===l||void 0===l||null===(n=l.blocks)||void 0===n||null===(e=n[r])||void 0===e||null===(o=e.sources)||void 0===o?void 0:o.record,d=null===l||void 0===l||null===(i=l.blocks)||void 0===i||null===(u=i[r])||void 0===u||null===(c=u.destinations)||void 0===c?void 0:c.record;if(a||d){var f=Object.keys(d||a||{}).sort(),v=[];f.forEach((function(n){var e=[(0,G.jsx)(b.ZP,{bold:!0,monospace:!0,muted:!0,small:!0,children:n},n)];[a,d].forEach((function(t,r){if(t){var o=t[n],i="object"===typeof o;e.push((0,G.jsxs)(b.ZP,{monospace:!0,small:!0,textOverflow:!0,whiteSpaceNormal:!0,wordBreak:!0,children:[i&&(0,G.jsx)("pre",{children:JSON.stringify(o,null,2)}),!i&&o]},"".concat(n,"-").concat(r)))}})),v.push(e)}));var m=[{label:function(){return""},uuid:"column"}];return[[null===l||void 0===l?void 0:l.source,"source",a],[null===l||void 0===l?void 0:l.destination,"destination",d]].forEach((function(n){var e=(0,s.Z)(n,3),t=e[0],r=e[1];e[2]&&m.push({uuid:"".concat(t," (").concat(r,")")})})),(0,G.jsx)(Q.Z,{columnFlex:[null,1,1],columns:m,rows:v.map((function(n){return n.map((function(n){return(0,G.jsx)(b.ZP,{default:!0,monospace:!0,children:n},n)}))})),uuid:"".concat(r,"-bookmark-table")})}}}),[t,r]),dn=(0,u.useMemo)((function(){var n,e,o,i,u,c,l=null===t||void 0===t||null===(n=t.metrics)||void 0===n||null===(e=n.blocks)||void 0===e?void 0:e[r];return(null===l||void 0===l||null===(o=l.sources)||void 0===o||null===(i=o.block_tags)||void 0===i?void 0:i.destination_table)||(null===l||void 0===l||null===(u=l.destinations)||void 0===u||null===(c=u.block_tags)||void 0===c?void 0:c.destination_table)}),[t,r]);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(p.Z,{p:3,children:[r&&(0,G.jsx)(p.Z,{mb:3,children:(0,G.jsxs)(f.ZP,{alignItems:"center",children:[(0,G.jsx)(K.Z,{block:!0,onClick:function(){return o.push("/pipelines/".concat(t.pipeline_uuid,"/syncs?pipeline_run_id=").concat(t.id))},preventDefault:!0,children:(0,G.jsxs)(f.ZP,{alignItems:"center",children:[(0,G.jsx)(P.Xd,{default:!0,size:1.5*_.iI}),(0,G.jsx)(p.Z,{mr:1}),(0,G.jsx)(b.ZP,{default:!0,children:"Syncs"})]})}),(0,G.jsx)(p.Z,{mx:1,children:(0,G.jsx)(b.ZP,{default:!0,monospace:!0,children:"/"})}),(0,G.jsx)(b.ZP,{bold:!0,monospace:!0,children:r})]})}),(0,G.jsxs)(f.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,G.jsx)(p.Z,{mr:2,my:1,children:(0,G.jsx)(v.Z,{level:5,muted:!t,children:y})}),t&&(0,G.jsx)(q.ZP,{onClick:function(){return o.push("/pipelines/".concat(t.pipeline_uuid,"/logs?pipeline_run_id[]=").concat(t.id))},small:!0,children:"Logs"})]}),(0,G.jsx)(p.Z,{mt:2,children:E}),t&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(p.Z,{mt:3,children:(0,G.jsxs)(f.ZP,{justifyContent:"space-between",children:[(0,G.jsxs)("div",{children:[(0,G.jsx)(b.ZP,{bold:!0,large:!0,muted:!0,children:"Runtime"}),(0,G.jsxs)(b.ZP,{headline:!0,children:[r&&[A.V.INITIAL,A.V.RUNNING].includes(null===N||void 0===N?void 0:N.status)&&z,r&&![A.V.INITIAL,A.V.RUNNING].includes(null===N||void 0===N?void 0:N.status)&&(null===N||void 0===N?void 0:N.timeText),!r&&[m.VO.INITIAL,m.VO.RUNNING].includes(null===t||void 0===t?void 0:t.status)&&T,!r&&![m.VO.INITIAL,m.VO.RUNNING].includes(null===t||void 0===t?void 0:t.status)&&w]})]}),cn]})}),Object.values(H).length>=1&&(0,G.jsxs)(p.Z,{mt:3,children:[(0,G.jsx)(v.Z,{level:5,muted:!0,children:"Errors"}),Object.entries(H).map((function(n,e){var t=(0,s.Z)(n,2),o=t[0],i=t[1];return(!r||r===o)&&(0,G.jsx)(p.Z,{mt:e>=1?1:0,children:Object.entries(i).map((function(n){var e=(0,s.Z)(n,2),t=e[0],r=e[1],i=r.error,u=r.errors,c=r.message,l=Array.isArray(i)?i.join(" "):i;return(0,G.jsxs)("div",{children:[(0,G.jsx)(p.Z,{mb:c||(null===u||void 0===u?void 0:u.length)>=1?2:0,children:(0,G.jsxs)(b.ZP,{monospace:!0,preWrap:!0,textOverflow:!0,children:[o,!!t&&(0,G.jsxs)(b.ZP,{inline:!0,monospace:!0,muted:!0,children:["\xa0(",t,")"]}),": ",(0,G.jsx)(b.ZP,{default:!0,inline:!0,monospace:!0,children:l&&(0,G.jsx)(W(),{children:l})})]})}),(0,G.jsx)(b.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:c}),u.map((function(n){return(0,G.jsx)(b.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:n},n)}))]},"".concat(o,"-").concat(t))}))},o)}))]})]})]}),t&&!r&&(0,G.jsx)(p.Z,{my:3,children:ln}),t&&r&&(0,G.jsxs)(G.Fragment,{children:[dn&&(0,G.jsx)(p.Z,{my:3,children:(0,G.jsxs)(p.Z,{px:3,children:[(0,G.jsx)(v.Z,{level:5,children:"Table name"}),(0,G.jsx)(p.Z,{mt:1,children:(0,G.jsx)(b.ZP,{default:!0,monospace:!0,children:dn})})]})}),sn&&(0,G.jsxs)(p.Z,{my:3,children:[(0,G.jsx)(p.Z,{px:3,children:(0,G.jsx)(v.Z,{level:5,children:"Bookmarks"})}),(0,G.jsx)(p.Z,{px:1,children:sn})]}),an&&(0,G.jsxs)(p.Z,{my:3,children:[(0,G.jsx)(p.Z,{px:3,children:(0,G.jsx)(v.Z,{level:5,children:"Sample row"})}),(0,G.jsx)(p.Z,{px:1,children:an})]})]})]})},rn=t(35686),on=t(28795),un=t(15610),cn=t(69419);function ln(n){var e=n.pipeline,t=e.uuid,r=rn.ZP.pipeline_runs.list({_limit:20,_offset:0,pipeline_uuid:t},{refreshInterval:5e3}).data,o=(0,u.useMemo)((function(){return(null===r||void 0===r?void 0:r.pipeline_runs)||[]}),[r]),i=(0,cn.iV)(),l=(0,u.useState)(null),s=l[0],a=l[1],d=(0,u.useState)(null),f=d[0],v=d[1],m=(0,u.useState)(null),p=m[0],h=m[1];(0,u.useEffect)((function(){null!==i&&void 0!==i&&i.pipeline_run_id?h(null===o||void 0===o?void 0:o.find((function(n){return n.id===Number(i.pipeline_run_id)}))):p&&h(null),null!==i&&void 0!==i&&i.stream?v(i.stream):f&&v(null)}),[o,i,p,f]);var b=(0,u.useCallback)((function(){var n=p?M(p):[];return(0,G.jsx)(tn,{onClickRow:function(e){var t=n[e];(0,un.u)({stream:f===t?null:t})},pipelineRun:p,selectedStream:f})}),[p,f]),j=(0,u.useMemo)((function(){var n="/pipelines/".concat(t,"/syncs");p&&(n="".concat(n,"?pipeline_run_id=").concat(p.id));var e=[{label:function(){return"Syncs"},linkProps:f?{as:n,href:"/pipelines/[pipeline]/syncs"}:null}];return f&&e.push({label:function(){return f}}),e}),[t,p,f]);return(0,G.jsx)(c.Z,{breadcrumbs:j,buildSidekick:b,errors:s,pageName:on.M.SYNCS,pipeline:e,setErrors:a,title:function(n){var e=n.name;return"".concat(e," syncs")},uuid:"".concat(on.M.SYNCS,"_").concat(t),children:o.map((function(n){var e=(null===p||void 0===p?void 0:p.id)===n.id;return(0,G.jsx)(H,{onSelect:function(n){return(0,un.u)({pipeline_run_id:n,stream:null})},pipelineRun:n,selected:e},n.id)}))})}ln.getInitialProps=function(){var n=(0,r.Z)(i().mark((function n(e){var t;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.query.pipeline,n.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();var sn=(0,l.Z)(ln)},59416:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/syncs",function(){return t(25050)}])},80022:function(n,e,t){"use strict";function r(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}t.d(e,{Z:function(){return r}})},15544:function(n,e,t){"use strict";function r(n){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},r(n)}t.d(e,{Z:function(){return r}})},13692:function(n,e,t){"use strict";t.d(e,{Z:function(){return o}});var r=t(61049);function o(n,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&(0,r.Z)(n,e)}},93189:function(n,e,t){"use strict";t.d(e,{Z:function(){return i}});var r=t(12539),o=t(80022);function i(n,e){if(e&&("object"===r(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(n)}},61049:function(n,e,t){"use strict";function r(n,e){return r=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n},r(n,e)}t.d(e,{Z:function(){return r}})}},function(n){n.O(0,[2678,1154,844,874,9626,8264,7858,5499,5457,9774,2888,179],(function(){return e=59416,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7803],{16488:function(n,e,t){"use strict";t.d(e,{IJ:function(){return p},M8:function(){return E},Uc:function(){return Z},XM:function(){return O},_U:function(){return m},eI:function(){return x},gU:function(){return _},lO:function(){return w},ri:function(){return b},tL:function(){return g},vJ:function(){return I},xH:function(){return j}});var r,o=t(82394),i=t(92083),u=t.n(i),c=t(3917),l=t(4383),s=t(30229),a=t(42122),d=t(86735);function f(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function v(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?f(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var m=function(n){return!!n&&!Object.values(s.U5).includes(n)};function p(n){return null===n||void 0===n?void 0:n.reduce((function(n,e){var t=e.block_uuid,r=e.completed_at,i=e.started_at,c=e.status,l=null;i&&r&&(l=u()(r).valueOf()-u()(i).valueOf());return v(v({},n),{},(0,o.Z)({},t,{runtime:l,status:c}))}),{})}var h,b=function(n){var e=[{description:function(){return"This pipeline will run continuously on an interval or just once."},label:function(){return"Schedule"},uuid:s.Xm.TIME},{description:function(){return"This pipeline will run when a specific event occurs."},label:function(){return"Event"},uuid:s.Xm.EVENT},{description:function(){return"Run this pipeline when you make an API call."},label:function(){return"API"},uuid:s.Xm.API}];return n?e.slice(0,1):e};function j(n){var e=(0,a.gR)(n,[s.gm.INTERVAL,s.gm.TYPE]),t=n[s.gm.INTERVAL];t&&(e["schedule_interval[]"]=encodeURIComponent(t));var r=n[s.gm.TYPE];return r&&(e["schedule_type[]"]=r),e}function x(n){return n?new Date(u()(n).valueOf()):null}function Z(n,e){return e?(0,c.XG)(n,e):function(n){if("string"!==typeof n)return n;var e=n.split("+")[0];return u()(x(e)).format(c.Nx)}(n)}!function(n){n.DAY="day",n.HOUR="hour",n.MINUTE="minute",n.SECOND="second"}(h||(h={}));var g=(r={},(0,o.Z)(r,h.DAY,86400),(0,o.Z)(r,h.HOUR,3600),(0,o.Z)(r,h.MINUTE,60),(0,o.Z)(r,h.SECOND,1),r);function _(n){var e=h.SECOND,t=n;return n%86400===0?(t/=86400,e=h.DAY):n%3600===0?(t/=3600,e=h.HOUR):n%60===0&&(t/=60,e=h.MINUTE),{time:t,unit:e}}function I(n,e){return n*g[e]}function O(n,e,t){var r,o=u()(n);return o.set("hour",+(null===e||void 0===e?void 0:e.hour)||0),o.set("minute",+(null===e||void 0===e?void 0:e.minute)||0),o.set("second",0),r=o.format(c.TD),null!==t&&void 0!==t&&t.includeSeconds&&(r=r.concat(":00")),null!==t&&void 0!==t&&t.localTimezone&&(r=o.format(c.lE),null!==t&&void 0!==t&&t.convertToUtc&&(r=(0,c.d$)(r,{includeSeconds:null===t||void 0===t?void 0:t.includeSeconds,utcFormat:!0}))),r}function E(n){var e,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="",o=!0;return o&&(t?r="".concat(window.origin,"/api/pipeline_schedules/").concat(null===n||void 0===n?void 0:n.id,"/api_trigger"):(r="".concat(window.origin,"/api/pipeline_schedules/").concat(null===n||void 0===n?void 0:n.id,"/pipeline_runs"),null!==n&&void 0!==n&&n.token&&(r="".concat(r,"/").concat(n.token)))),o&&(e=window.location.port)&&(r=r.replace(e,l.QT)),r}function y(n,e,t){return n.match(/[*,-/]/)?{additionalOffset:0,cronValue:n}:function(n,e,t){var r=t.indexOf(n),o=0;if(e<0)for(var i=0;i>e;i--)0===r?(r=t.length-1,o-=1):r-=1;else if(e>0)for(var u=0;u<e;u++)r===t.length-1?(r=0,o+=1):r+=1;return{additionalOffset:o,cronValue:String(t[r]||n)}}(+n,e,t)}var N=(0,d.m5)(60),P=(0,d.m5)(24),k=(0,c.Cs)();function w(n,e){if(!n)return n;var t=u()().local().format("Z"),r=t.split(":"),o="-"===t[0],i=3===r[0].length?Number(r[0].slice(1)):Number(r[0]),c=Number(r[1]);(o&&!e||!o&&e)&&(i=-i,c=-c);var l=n.split(" "),s=l[0],a=l[1],d=l[2],f=y(s,c,N),v=y(a,i+f.additionalOffset,P);if(l[0]=f.cronValue,l[1]=v.cronValue,0!==(null===v||void 0===v?void 0:v.additionalOffset)){var m=y(d,v.additionalOffset,k);l[2]=m.cronValue}return l.join(" ")}},44265:function(n,e,t){"use strict";t.d(e,{Az:function(){return s},BF:function(){return l},Do:function(){return d},IK:function(){return c},P0:function(){return o},VO:function(){return u},sZ:function(){return a}});var r,o,i=t(82394),u=t(41143).V,c=[u.FAILED,u.COMPLETED,u.RUNNING,u.CANCELLED,u.INITIAL],l=[u.INITIAL,u.RUNNING],s=[u.CANCELLED,u.COMPLETED,u.FAILED],a="__mage_variables",d=(r={},(0,i.Z)(r,u.CANCELLED,"Cancelled"),(0,i.Z)(r,u.COMPLETED,"Done"),(0,i.Z)(r,u.FAILED,"Failed"),(0,i.Z)(r,u.INITIAL,"Ready"),(0,i.Z)(r,u.RUNNING,"Running"),r);!function(n){n.PIPELINE_UUID="pipeline_uuid[]",n.STATUS="status[]",n.TAG="pipeline_tag[]"}(o||(o={}))},30229:function(n,e,t){"use strict";t.d(e,{PN:function(){return c},TR:function(){return m},U5:function(){return s},Wb:function(){return v},Xm:function(){return i},Z4:function(){return a},fq:function(){return l},gm:function(){return d},kJ:function(){return f}});var r,o,i,u=t(82394),c="__bookmark_values__";!function(n){n.API="api",n.EVENT="event",n.TIME="time"}(i||(i={}));var l,s,a=(r={},(0,u.Z)(r,i.API,(function(){return"API"})),(0,u.Z)(r,i.EVENT,(function(){return"event"})),(0,u.Z)(r,i.TIME,(function(){return"schedule"})),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive"}(l||(l={})),function(n){n.ONCE="@once",n.HOURLY="@hourly",n.DAILY="@daily",n.WEEKLY="@weekly",n.MONTHLY="@monthly",n.ALWAYS_ON="@always_on"}(s||(s={}));var d,f,v=[s.ONCE,s.HOURLY,s.DAILY,s.WEEKLY,s.MONTHLY];!function(n){n.INTERVAL="frequency[]",n.STATUS="status[]",n.TAG="tag[]",n.TYPE="type[]"}(d||(d={})),function(n){n.CREATED_AT="created_at",n.NAME="name",n.PIPELINE="pipeline_uuid",n.STATUS="status",n.TYPE="schedule_type"}(f||(f={}));var m=(o={},(0,u.Z)(o,f.CREATED_AT,"Created at"),(0,u.Z)(o,f.NAME,"Name"),(0,u.Z)(o,f.PIPELINE,"Pipeline"),(0,u.Z)(o,f.STATUS,"Active"),(0,u.Z)(o,f.TYPE,"Type"),o)},25050:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return sn}});var r=t(77837),o=t(38860),i=t.n(o),u=t(82684),c=t(75457),l=t(93808),s=t(75582),a=t(82394),d=t(97618),f=t(55485),v=t(85854),m=t(44265),p=t(38276),h=t(4190),b=t(30160),j=t(44897),x=t(38626),Z=t(42631),g=t(95363),_=t(70515),I=t(61896),O=x.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-15svh8z-0"})(["border-radius:","px;margin:","px;overflow:hidden;"," "," "," "," "," "," &:hover{"," "," "," "," ","}"],Z.n_,_.cd*_.iI,(function(n){return"\n background-color: ".concat((n.theme.background||j.Z.background).panel,";\n border: 1px solid ").concat((n.theme.borders||j.Z.borders).dark,";\n\n &:hover {\n cursor: pointer;\n }\n ")}),(function(n){return n.selected&&n.danger&&"\n border-color: ".concat((n.theme.accent||j.Z.accent).negative,";\n ")}),(function(n){return n.selected&&n.primary&&"\n border-color: ".concat((n.theme.interactive||j.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.selected&&n.default&&"\n border-color: ".concat((n.theme.interactive||j.Z.interactive).focusBackground,";\n ")}),(function(n){return n.selected&&n.success&&"\n border-color: ".concat((n.theme.background||j.Z.background).success,";\n ")}),(function(n){return n.selected&&n.warning&&"\n border-color: ".concat((n.theme.accent||j.Z.accent).warning,";\n ")}),(function(n){return n.danger&&"\n border-color: ".concat((n.theme.accent||j.Z.accent).negative,";\n ")}),(function(n){return n.primary&&"\n border-color: ".concat((n.theme.interactive||j.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.default&&"\n border-color: ".concat((n.theme.interactive||j.Z.interactive).focusBackground,";\n ")}),(function(n){return n.success&&"\n border-color: ".concat((n.theme.background||j.Z.background).success,";\n ")}),(function(n){return n.warning&&"\n border-color: ".concat((n.theme.accent||j.Z.accent).warning,";\n ")})),E=(0,x.css)([""," "," "," "," ",""],(function(n){return n.danger&&"\n background-color: ".concat((n.theme.accent||j.Z.accent).negative,";\n ")}),(function(n){return n.primary&&"\n background-color: ".concat((n.theme.interactive||j.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.default&&"\n background-color: ".concat((n.theme.interactive||j.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.success&&"\n background-color: ".concat((n.theme.background||j.Z.background).success,";\n ")}),(function(n){return n.warning&&"\n background-color: ".concat((n.theme.accent||j.Z.accent).warning,";\n ")})),y=x.default.div.withConfig({displayName:"indexstyle__StatusStyle",componentId:"sc-15svh8z-1"})([""," ",";border-radius:","px;display:inline-block;font-family:",";padding:6px;"," "," "," "," "," ",""],E,I.iD,Z.D7,g.ry,(function(n){return n.danger&&"\n color: ".concat((n.theme.content||j.Z.content).active,";\n ")}),(function(n){return n.primary&&"\n color: ".concat((n.theme.content||j.Z.content).active,";\n ")}),(function(n){return(n.default||n.success)&&"\n "}),(function(n){return n.default&&"\n color: ".concat((n.theme.content||j.Z.content).default,";\n ")}),(function(n){return n.success&&"\n color: ".concat((n.theme.content||j.Z.content).inverted,";\n ")}),(function(n){return n.warning&&"\n color: ".concat((n.theme.content||j.Z.content).inverted,";\n ")})),N=x.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-15svh8z-2"})([""," display:flex;height:auto;width:3px;",""],E,(function(n){return n.default&&"\n background-color: ".concat((n.theme.interactive||j.Z.interactive).focusBackground,";\n ")})),P=t(72473),k=t(16488),w=t(92083),T=t.n(w),A=t(41143),L=t(81728),S=t(86735);function M(n){var e;return Object.keys((null===n||void 0===n||null===(e=n.metrics)||void 0===e?void 0:e.blocks)||{}).sort()}function C(n){var e,t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=null,i=null,u=null,c=null,l={},a=(null===n||void 0===n?void 0:n.block_runs)||[],d=(null===n||void 0===n||null===(e=n.metrics)||void 0===e?void 0:e.blocks)||{},f=(null===n||void 0===n||null===(t=n.metrics)||void 0===t?void 0:t.pipeline)||{},v=D(n);return Object.entries(d).forEach((function(n){var e,t=(0,s.Z)(n,2),a=t[0],d=t[1];if(!r||r===a){var m,p=d||{},h=p.destinations,b=void 0===h?{records_affected:null,records_inserted:null,records_updated:null}:h,j=p.sources,x=void 0===j?{records:null}:j,Z=v[a]||[];if(r&&r===a&&Z.every((function(n){var e=n.status;return A.V.COMPLETED===e}))&&null===o&&(o=0),null!==f&&void 0!==f&&null!==(e=f[a])&&void 0!==e&&e.record_counts)null===o&&(o=0),o+=Number(null===f||void 0===f||null===(m=f[a])||void 0===m?void 0:m.record_counts);else null!==x&&void 0!==x&&x.records&&(null===o&&(o=0),o+=Number(x.records));null!==b&&void 0!==b&&b.records_updated?(null===u&&(u=0),u+=Number(b.records_updated),null===c&&(c=0),c+=Number(b.records_updated)):null!==b&&void 0!==b&&b.records_inserted?(null===u&&(u=0),u+=Number(b.records_inserted),null===i&&(i=0),i+=Number(b.records_inserted)):null!==b&&void 0!==b&&b.records_affected&&(null===u&&(u=0),u+=Number(b.records_affected)),["destinations","sources"].forEach((function(n){var e=d[n]||{};null!==e&&void 0!==e&&e.error&&(l[a]||(l[a]={}),l[a][n]={error:null===e||void 0===e?void 0:e.error,errors:null===e||void 0===e?void 0:e.errors,message:null===e||void 0===e?void 0:e.message})}))}})),null===a||void 0===a||a.forEach((function(n){var e=n.block_uuid,t=n.metrics,r=n.status;if(A.V.FAILED===r&&null!==t&&void 0!==t&&t.error&&e){var o=e.split(":"),i=(0,s.Z)(o,3),u=(i[0],i[1]);i[2];l[u]||(l[u]={}),l[u][""]=t.error}})),{errors:l,records:o,recordsInserted:i,recordsProcessed:u,recordsUpdated:c}}function D(n){var e=n.block_runs,t={};return null===e||void 0===e||e.forEach((function(n){var e=n.block_uuid.split(":"),r=(0,s.Z)(e,3),o=(r[0],r[1]);r[2];t[o]||(t[o]=[]),t[o].push(n)})),t}function V(n){var e=D(n),t={};return Object.entries(e).forEach((function(n){var e=(0,s.Z)(n,2),r=e[0],o=e[1],i=o.filter((function(n){var e=n.status;return A.V.COMPLETED===e})),u=i.map((function(n){var e=n.completed_at,t=n.started_at,r=T().utc(e),o=T().utc(t);return r.diff(o,"second")})),c=i.length,l=o.length;t[r]={completed:c,runtime:u.length>=1?(0,S.Sm)(u)/u.length:null,total:l}})),t}function R(n){var e=n.block_runs,t=(null===e||void 0===e?void 0:e.length)||1,r=function(n){var e=(null===n||void 0===n?void 0:n.block_runs)||[];return null===e||void 0===e?void 0:e.filter((function(n){var e=n.status;return A.V.COMPLETED===e}))}(n).length||0;return r/t}function U(n){var e=n.completed_at,t=n.block_runs,r=void 0===t?[]:t,o=n.status;if(null===r||void 0===r||!r.length)return 0;var i=T().utc();if(e)i=T().utc(e);else if([m.VO.CANCELLED,m.VO.FAILED].includes(o)){var u=(0,S.YC)(r,(function(n){return n.started_at}),{ascending:!1})[0];i=T().utc(u.updated_at)}var c=T().utc(n.created_at);return i.diff(c,"second")}function Y(n,e){var t,r,o,i,u,c=D(n),l=V(n),s=(null===n||void 0===n?void 0:n.metrics)||{blocks:null,pipeline:null},a=s.blocks||{},d=s.pipeline||{},f=(a[e],d[e],l[e]||{completed:null,total:null}),v=f.completed,m=f.total,p=v&&m?v/m:0,h=c[e]||[],b=h.every((function(n){var e=n.status;return A.V.COMPLETED===e})),j=(0,S.YC)(h,(function(n){return n.updated_at}),{ascending:!1})[0],x=null===(t=(0,S.YC)(h,(function(n){return n.started_at}),{ascending:!0})[0])||void 0===t?void 0:t.started_at;b?r=null===(u=(0,S.YC)(h,(function(n){return n.completed_at}),{ascending:!1})[0])||void 0===u?void 0:u.completed_at:j&&(i=null===j||void 0===j?void 0:j.updated_at);var Z=b?T().utc(r||i):T().utc(),g=T().utc(x);return{completed:v,completedAt:r,done:b,progress:p,runtime:o=Z.diff(g,"second"),startedAt:x,status:null===j||void 0===j?void 0:j.status,timeText:(0,L.zf)(o),total:m,updatedAt:i}}var F=t(70320),G=t(28598);function z(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function B(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?z(Object(t),!0).forEach((function(e){(0,a.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):z(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var H=function(n){var e=n.onSelect,t=n.pipelineRun,r=n.selected,o=t.created_at,i=t.status,c=(0,u.useMemo)((function(){return(null===t||void 0===t?void 0:t.metrics)||{blocks:{},destination:null,pipeline:{},source:null}}),[t]),l=(0,u.useMemo)((function(){return c.pipeline||{}}),[c]),a=(0,F.qB)(),x=c.destination,Z=c.source,g=(0,u.useMemo)((function(){return Object.keys(l).length}),[l]),I=(0,u.useMemo)((function(){return C(t)}),[t]),E=I.errors,w=I.records,T=I.recordsProcessed,A=(0,u.useMemo)((function(){return R(t)}),[t]),S=(0,u.useMemo)((function(){return[m.VO.COMPLETED].includes(i)}),[i]),M=(0,u.useMemo)((function(){return{danger:m.VO.FAILED===i,default:m.VO.INITIAL===i,primary:m.VO.RUNNING===i,success:S,warning:m.VO.CANCELLED===i}}),[S,i]),D=(0,u.useMemo)((function(){if(t){var n=U(t);return(0,L.zf)(n)}}),[t]);return(0,G.jsx)(O,B(B({},M),{},{onClick:function(){return e(r?null:t.id)},selected:r,children:(0,G.jsxs)(f.ZP,{fullHeight:!0,justifyContent:"space-between",children:[(0,G.jsx)(N,B({},M)),(0,G.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,G.jsxs)(p.Z,{ml:3,py:3,children:[(0,G.jsx)(v.Z,{bold:!0,level:5,monospace:!0,children:(0,k.Uc)(o,a)}),(0,G.jsx)(p.Z,{fullWidth:!1,mt:2,children:(0,G.jsx)(y,B(B({},M),{},{children:(0,G.jsxs)(f.ZP,{alignItems:"center",children:[S&&(0,G.jsx)(P.Jr,{inverted:!0,size:2*_.iI}),[m.VO.INITIAL,m.VO.RUNNING].includes(i)&&(0,G.jsx)(h.Z,{color:m.VO.INITIAL!==i?j.Z.monotone.white:null,inverted:m.VO.INITIAL===i,small:!0}),"\xa0",m.VO.RUNNING===i&&(0,G.jsxs)(G.Fragment,{children:["\xa0",Math.round(100*A),"%"]}),![m.VO.INITIAL,m.VO.RUNNING].includes(i)&&m.Do[i],m.VO.INITIAL===i&&"Starting"]})}))}),Object.values(E).length>=1&&(0,G.jsx)(p.Z,{mt:1,children:Object.entries(E).map((function(n){var e=(0,s.Z)(n,2),t=e[0];e[1];return(0,G.jsxs)(b.ZP,{monospace:!0,muted:!0,small:!0,children:[t," stream failed"]},t)}))})]})}),(0,G.jsxs)(d.Z,{flex:1,children:[(0,G.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,G.jsxs)(p.Z,{ml:3,py:3,children:[(0,G.jsxs)(p.Z,{mb:1,children:[(0,G.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Rows processed"}),(0,G.jsx)(b.ZP,{monospace:!0,children:T>=1?(0,L.x6)(T):"-"})]}),(0,G.jsxs)(p.Z,{mb:1,children:[(0,G.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Rows remaining"}),(0,G.jsx)(b.ZP,{monospace:!0,children:w>=1&&w>=T?(0,L.x6)(w-T):"-"})]}),m.VO.RUNNING!==i&&(0,G.jsxs)(p.Z,{mb:1,children:[(0,G.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Runtime"}),(0,G.jsx)(b.ZP,{monospace:!0,children:D})]})]})}),(0,G.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,G.jsxs)(p.Z,{ml:3,py:3,children:[(0,G.jsxs)(p.Z,{mb:1,children:[(0,G.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Source"}),(0,G.jsx)(b.ZP,{monospace:!0,children:Z||"-"})]}),(0,G.jsxs)(p.Z,{mb:1,children:[(0,G.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Destination"}),(0,G.jsx)(b.ZP,{monospace:!0,children:x||"-"})]}),(0,G.jsxs)(p.Z,{mb:1,children:[(0,G.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Streams"}),(0,G.jsx)(b.ZP,{monospace:!0,children:g>=1?(0,L.x6)(g):"-"})]})]})})]})]})}))},X=t(89565),W=t.n(X),J=t(34376),q=t(71180),K=t(48670),Q=t(75499),$=x.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-1thr560-0"})(["display:flex;flex:1;"," "," ",""],(function(n){return n.even&&n.fill&&"\n background-color: ".concat((n.theme.accent||j.Z.accent).cyan,";\n ")}),(function(n){return n.even&&!n.fill&&"\n background-color: ".concat((n.theme.accent||j.Z.accent).cyanTransparent,";\n ")}),(function(n){return"\n height: ".concat((n.small?1:2)*_.iI,"px;\n ")})),nn=t(95924),en=t(3917);var tn=function(n){var e=n.onClickRow,t=n.pipelineRun,r=n.selectedStream,o=(0,J.useRouter)(),i=(0,F.qB)(),c=(0,u.useState)(null),l=c[0],a=c[1],d=(0,u.useState)(null),h=d[0],j=d[1],x=(0,u.useMemo)((function(){return t?D(t):{}}),[t]),Z=(0,u.useMemo)((function(){return t?V(t):{}}),[t]),g=(0,u.useMemo)((function(){var n=0,e=[],t=[];if(Object.entries(Z).forEach((function(r){var o=(0,s.Z)(r,2),i=(o[0],o[1]),u=i.completed,c=i.runtime,l=i.total;null===c?t.push(i):(e.push(c),n+=c*(l-u))})),0===e.length)return null;var r=(0,S.Sm)(e)/e.length;return t.forEach((function(e){var t=e.completed,o=e.total;n+=r*(o-t)})),n}),[Z]),I=(0,u.useMemo)((function(){return r?Z[r]:null}),[Z,r]),O=(0,u.useMemo)((function(){if(r&&Z){var n=Z[r]||{},e=n.completed,o=n.total;if(o>=1)return e/o}else if(t)return R(t);return 0}),[Z,t,r]),E=(0,u.useMemo)((function(){return(0,G.jsx)(f.ZP,{children:(0,S.w6)(101).map((function(n,e){return(0,G.jsx)($,{even:e%2===0,fill:O>0&&Math.round(100*O)>=e},e)}))})}),[O]),y=(0,u.useMemo)((function(){if(r){var n=x[r]||[],e=n.every((function(n){var e=n.status;return A.V.COMPLETED===e})),o=(0,S.YC)(n,(function(n){return n.updated_at}),{ascending:!1})[0],i=null===o||void 0===o?void 0:o.status,u=I||{},c=u.completed,l=u.runtime,s=u.total;if(e)return"Sync complete for ".concat(r);if([A.V.CANCELLED,A.V.FAILED].includes(i))return m.Do[i];if(l&&s>=1){var a=Math.ceil(l*(s-c)/60);return"".concat((0,L._6)("minute",a,!0)," to completion")}return"Estimating time remaining for stream..."}if(m.VO.COMPLETED===(null===t||void 0===t?void 0:t.status))return"Sync complete";if(t){if([m.VO.CANCELLED,m.VO.FAILED].includes(null===t||void 0===t?void 0:t.status))return m.Do[null===t||void 0===t?void 0:t.status];if(m.VO.INITIAL===(null===t||void 0===t?void 0:t.status))return"Initializing sync (this can take several minutes)";if(null===g)return"Estimating time remaining...";var d=Math.ceil(g/60);return"".concat((0,L._6)("minute",d,!0)," to completion")}return"Select a sync"}),[x,g,I,t,r]),N=(0,u.useMemo)((function(){return t&&r?Y(t,r):{completed:null,completedAt:null,done:null,progress:null,runtime:null,startedAt:null,status:null,timeText:null,total:null,updatedAt:null}}),[t,r]);(0,u.useEffect)((function(){var n;if(t){var e=U(t);a(e),n=setInterval((function(){return a((function(n){return n+1}))}),1e3)}return function(){return clearInterval(n)}}),[t]),(0,u.useEffect)((function(){var n;if(t&&r&&N){var e=(null===N||void 0===N?void 0:N.runtime)||0;j(e),n=setInterval((function(){return j((function(n){return n+1}))}),1e3)}return function(){return clearInterval(n)}}),[t,r,N]);var w=(0,u.useMemo)((function(){if(t){if(r)return null===N||void 0===N?void 0:N.timeText;var n=U(t);return(0,L.zf)(n)}}),[t,r,N]),T=(0,u.useMemo)((function(){var n=Math.floor(l%86400/3600),e=Math.floor(l%3600/60),t=Math.floor(l%60/1);return[n>=10?String(n):"0".concat(n),e>=10?String(e):"0".concat(e),t>=10?String(t):"0".concat(t)].join(":")}),[l]),z=(0,u.useMemo)((function(){var n=Math.floor(h%86400/3600),e=Math.floor(h%3600/60),t=Math.floor(h%60/1);return[n>=10?String(n):"0".concat(n),e>=10?String(e):"0".concat(e),t>=10?String(t):"0".concat(t)].join(":")}),[h]),B=(0,u.useMemo)((function(){return t?C(t):{errors:null,records:null,recordsInserted:null,recordsProcessed:null,recordsUpdated:null}}),[t]),H=B.errors,X=B.records,tn=B.recordsInserted,rn=B.recordsProcessed,on=B.recordsUpdated,un=(0,u.useMemo)((function(){return t&&r?C(t,r):{errors:null,records:null,recordsInserted:null,recordsProcessed:null,recordsUpdated:null}}),[t,r]),cn=(0,u.useMemo)((function(){var n=r?null===un||void 0===un?void 0:un.records:X,e=r?null===un||void 0===un?void 0:un.recordsInserted:tn,t=r?null===un||void 0===un?void 0:un.recordsProcessed:rn,o=r?null===un||void 0===un?void 0:un.recordsUpdated:on,i=[{label:"Rows fetched",value:null===n?"-":(0,L.x6)(n)}];return null===e&&null===o?i.push({label:"Rows processed",value:null===t?"-":(0,L.x6)(t)}):null!==e?i.push({label:"Rows inserted",value:(0,L.x6)(e)}):null!==o&&i.push({label:"Rows updated",value:(0,L.x6)(o)}),i.map((function(n){var e=n.label,t=n.value;return(0,G.jsxs)("div",{children:[(0,G.jsx)(b.ZP,{bold:!0,large:!0,muted:!0,children:e}),(0,G.jsx)(b.ZP,{headline:!0,children:t})]},e)}))}),[X,un,tn,rn,on,r]),ln=(0,u.useMemo)((function(){if(!t)return(0,G.jsx)("div",{});var n=M(t);return(0,G.jsx)(Q.Z,{columnFlex:[null,null,null,null,null,null],columns:[{uuid:"Stream"},{uuid:"Start"},{uuid:"End"},{uuid:"Time"},{uuid:"Progress"},{uuid:"Logs"}],isSelectedRow:function(e){return r&&r===n[e]},onClickRow:e,rows:n.map((function(n){var e=Y(t,n),r=(e.completed,e.completedAt),u=e.done,c=e.progress,l=e.startedAt,s=e.status,a=e.timeText,d=(e.total,!!H[n]);return[(0,G.jsx)(b.ZP,{danger:d,default:!d,monospace:!0,children:n},"stream"),(0,G.jsx)(b.ZP,{default:!0,monospace:!0,title:l?(0,en._6)(l):null,children:l?(0,k.Uc)(l,i):(0,G.jsx)(G.Fragment,{children:"\u2014"})},"started_at"),(0,G.jsx)(b.ZP,{default:!0,monospace:!0,title:r?(0,en._6)(r):null,children:r?(0,k.Uc)(r,i):(0,G.jsx)(G.Fragment,{children:"\u2014"})},"completed_at"),(0,G.jsx)(b.ZP,{default:!0,children:[A.V.INITIAL,A.V.RUNNING].includes(s)?"-":a},"runtime"),(0,G.jsxs)("div",{children:[u&&(0,G.jsx)(P.Jr,{default:!0,size:2*_.iI}),!u&&(0,G.jsx)(f.ZP,{children:(0,S.w6)(51).map((function(n,e){return(0,G.jsx)($,{even:e%2===0,fill:c>0&&Math.round(50*c)>=e,small:!0},e)}))})]},"progress"),(0,G.jsx)(q.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(n){o.push("/pipelines/".concat(t.pipeline_uuid,"/logs?pipeline_run_id[]=").concat(t.id)),(0,nn.j)(n)},children:(0,G.jsx)(P.UL,{default:!0,size:2*_.iI})},"logs")]})),uuid:"".concat(null===t||void 0===t?void 0:t.id,"-streams-table")})}),[i,H,e,t,o,r]),sn=(0,u.useMemo)((function(){var n,e,o,i,u,c,l,a;if(t&&r){var d=(null===t||void 0===t?void 0:t.metrics)||{blocks:null,destination:null,pipeline:null,source:null},f=null===d||void 0===d||null===(n=d.pipeline)||void 0===n||null===(e=n[r])||void 0===e||null===(o=e.bookmarks)||void 0===o?void 0:o[r],v=null===d||void 0===d||null===(i=d.blocks)||void 0===i||null===(u=i[r])||void 0===u||null===(c=u.destinations)||void 0===c||null===(l=c.state)||void 0===l||null===(a=l.bookmarks)||void 0===a?void 0:a[r];if(f||v){var m=Array.from(new Set(Object.keys(f||{}).concat(Object.keys(v||{})))).sort(),p=[];m.forEach((function(n){var e=[(0,G.jsx)(b.ZP,{bold:!0,monospace:!0,muted:!0,small:!0,children:n},n)];[f,v].forEach((function(t,r){t&&e.push((0,G.jsx)(b.ZP,{monospace:!0,small:!0,children:t[n]},"".concat(n,"-").concat(r)))})),p.push(e)}));var h=[{label:function(){return""},uuid:"column"}];return[[null===d||void 0===d?void 0:d.source,"source",f],[null===d||void 0===d?void 0:d.destination,"destination",v]].forEach((function(n){var e=(0,s.Z)(n,3),t=e[0],r=e[1];e[2]&&h.push({uuid:"".concat(t," (").concat(r,")")})})),(0,G.jsx)(Q.Z,{columnFlex:[null,1,1],columns:h,rows:p,uuid:"".concat(r,"-bookmark-table")})}}}),[t,r]),an=(0,u.useMemo)((function(){var n,e,o,i,u,c;if(t&&r){var l=(null===t||void 0===t?void 0:t.metrics)||{blocks:null,destination:null,pipeline:null,source:null},a=null===l||void 0===l||null===(n=l.blocks)||void 0===n||null===(e=n[r])||void 0===e||null===(o=e.sources)||void 0===o?void 0:o.record,d=null===l||void 0===l||null===(i=l.blocks)||void 0===i||null===(u=i[r])||void 0===u||null===(c=u.destinations)||void 0===c?void 0:c.record;if(a||d){var f=Object.keys(d||a||{}).sort(),v=[];f.forEach((function(n){var e=[(0,G.jsx)(b.ZP,{bold:!0,monospace:!0,muted:!0,small:!0,children:n},n)];[a,d].forEach((function(t,r){if(t){var o=t[n],i="object"===typeof o;e.push((0,G.jsxs)(b.ZP,{monospace:!0,small:!0,textOverflow:!0,whiteSpaceNormal:!0,wordBreak:!0,children:[i&&(0,G.jsx)("pre",{children:JSON.stringify(o,null,2)}),!i&&o]},"".concat(n,"-").concat(r)))}})),v.push(e)}));var m=[{label:function(){return""},uuid:"column"}];return[[null===l||void 0===l?void 0:l.source,"source",a],[null===l||void 0===l?void 0:l.destination,"destination",d]].forEach((function(n){var e=(0,s.Z)(n,3),t=e[0],r=e[1];e[2]&&m.push({uuid:"".concat(t," (").concat(r,")")})})),(0,G.jsx)(Q.Z,{columnFlex:[null,1,1],columns:m,rows:v.map((function(n){return n.map((function(n){return(0,G.jsx)(b.ZP,{default:!0,monospace:!0,children:n},n)}))})),uuid:"".concat(r,"-bookmark-table")})}}}),[t,r]),dn=(0,u.useMemo)((function(){var n,e,o,i,u,c,l=null===t||void 0===t||null===(n=t.metrics)||void 0===n||null===(e=n.blocks)||void 0===e?void 0:e[r];return(null===l||void 0===l||null===(o=l.sources)||void 0===o||null===(i=o.block_tags)||void 0===i?void 0:i.destination_table)||(null===l||void 0===l||null===(u=l.destinations)||void 0===u||null===(c=u.block_tags)||void 0===c?void 0:c.destination_table)}),[t,r]);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(p.Z,{p:3,children:[r&&(0,G.jsx)(p.Z,{mb:3,children:(0,G.jsxs)(f.ZP,{alignItems:"center",children:[(0,G.jsx)(K.Z,{block:!0,onClick:function(){return o.push("/pipelines/".concat(t.pipeline_uuid,"/syncs?pipeline_run_id=").concat(t.id))},preventDefault:!0,children:(0,G.jsxs)(f.ZP,{alignItems:"center",children:[(0,G.jsx)(P.Xd,{default:!0,size:1.5*_.iI}),(0,G.jsx)(p.Z,{mr:1}),(0,G.jsx)(b.ZP,{default:!0,children:"Syncs"})]})}),(0,G.jsx)(p.Z,{mx:1,children:(0,G.jsx)(b.ZP,{default:!0,monospace:!0,children:"/"})}),(0,G.jsx)(b.ZP,{bold:!0,monospace:!0,children:r})]})}),(0,G.jsxs)(f.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,G.jsx)(p.Z,{mr:2,my:1,children:(0,G.jsx)(v.Z,{level:5,muted:!t,children:y})}),t&&(0,G.jsx)(q.ZP,{onClick:function(){return o.push("/pipelines/".concat(t.pipeline_uuid,"/logs?pipeline_run_id[]=").concat(t.id))},small:!0,children:"Logs"})]}),(0,G.jsx)(p.Z,{mt:2,children:E}),t&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(p.Z,{mt:3,children:(0,G.jsxs)(f.ZP,{justifyContent:"space-between",children:[(0,G.jsxs)("div",{children:[(0,G.jsx)(b.ZP,{bold:!0,large:!0,muted:!0,children:"Runtime"}),(0,G.jsxs)(b.ZP,{headline:!0,children:[r&&[A.V.INITIAL,A.V.RUNNING].includes(null===N||void 0===N?void 0:N.status)&&z,r&&![A.V.INITIAL,A.V.RUNNING].includes(null===N||void 0===N?void 0:N.status)&&(null===N||void 0===N?void 0:N.timeText),!r&&[m.VO.INITIAL,m.VO.RUNNING].includes(null===t||void 0===t?void 0:t.status)&&T,!r&&![m.VO.INITIAL,m.VO.RUNNING].includes(null===t||void 0===t?void 0:t.status)&&w]})]}),cn]})}),Object.values(H).length>=1&&(0,G.jsxs)(p.Z,{mt:3,children:[(0,G.jsx)(v.Z,{level:5,muted:!0,children:"Errors"}),Object.entries(H).map((function(n,e){var t=(0,s.Z)(n,2),o=t[0],i=t[1];return(!r||r===o)&&(0,G.jsx)(p.Z,{mt:e>=1?1:0,children:Object.entries(i).map((function(n){var e=(0,s.Z)(n,2),t=e[0],r=e[1],i=r.error,u=r.errors,c=r.message,l=Array.isArray(i)?i.join(" "):i;return(0,G.jsxs)("div",{children:[(0,G.jsx)(p.Z,{mb:c||(null===u||void 0===u?void 0:u.length)>=1?2:0,children:(0,G.jsxs)(b.ZP,{monospace:!0,preWrap:!0,textOverflow:!0,children:[o,!!t&&(0,G.jsxs)(b.ZP,{inline:!0,monospace:!0,muted:!0,children:["\xa0(",t,")"]}),": ",(0,G.jsx)(b.ZP,{default:!0,inline:!0,monospace:!0,children:l&&(0,G.jsx)(W(),{children:l})})]})}),(0,G.jsx)(b.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:c}),u.map((function(n){return(0,G.jsx)(b.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:n},n)}))]},"".concat(o,"-").concat(t))}))},o)}))]})]})]}),t&&!r&&(0,G.jsx)(p.Z,{my:3,children:ln}),t&&r&&(0,G.jsxs)(G.Fragment,{children:[dn&&(0,G.jsx)(p.Z,{my:3,children:(0,G.jsxs)(p.Z,{px:3,children:[(0,G.jsx)(v.Z,{level:5,children:"Table name"}),(0,G.jsx)(p.Z,{mt:1,children:(0,G.jsx)(b.ZP,{default:!0,monospace:!0,children:dn})})]})}),sn&&(0,G.jsxs)(p.Z,{my:3,children:[(0,G.jsx)(p.Z,{px:3,children:(0,G.jsx)(v.Z,{level:5,children:"Bookmarks"})}),(0,G.jsx)(p.Z,{px:1,children:sn})]}),an&&(0,G.jsxs)(p.Z,{my:3,children:[(0,G.jsx)(p.Z,{px:3,children:(0,G.jsx)(v.Z,{level:5,children:"Sample row"})}),(0,G.jsx)(p.Z,{px:1,children:an})]})]})]})},rn=t(35686),on=t(28795),un=t(15610),cn=t(69419);function ln(n){var e=n.pipeline,t=e.uuid,r=rn.ZP.pipeline_runs.list({_limit:20,_offset:0,pipeline_uuid:t},{refreshInterval:5e3}).data,o=(0,u.useMemo)((function(){return(null===r||void 0===r?void 0:r.pipeline_runs)||[]}),[r]),i=(0,cn.iV)(),l=(0,u.useState)(null),s=l[0],a=l[1],d=(0,u.useState)(null),f=d[0],v=d[1],m=(0,u.useState)(null),p=m[0],h=m[1];(0,u.useEffect)((function(){null!==i&&void 0!==i&&i.pipeline_run_id?h(null===o||void 0===o?void 0:o.find((function(n){return n.id===Number(i.pipeline_run_id)}))):p&&h(null),null!==i&&void 0!==i&&i.stream?v(i.stream):f&&v(null)}),[o,i,p,f]);var b=(0,u.useCallback)((function(){var n=p?M(p):[];return(0,G.jsx)(tn,{onClickRow:function(e){var t=n[e];(0,un.u)({stream:f===t?null:t})},pipelineRun:p,selectedStream:f})}),[p,f]),j=(0,u.useMemo)((function(){var n="/pipelines/".concat(t,"/syncs");p&&(n="".concat(n,"?pipeline_run_id=").concat(p.id));var e=[{label:function(){return"Syncs"},linkProps:f?{as:n,href:"/pipelines/[pipeline]/syncs"}:null}];return f&&e.push({label:function(){return f}}),e}),[t,p,f]);return(0,G.jsx)(c.Z,{breadcrumbs:j,buildSidekick:b,errors:s,pageName:on.M.SYNCS,pipeline:e,setErrors:a,title:function(n){var e=n.name;return"".concat(e," syncs")},uuid:"".concat(on.M.SYNCS,"_").concat(t),children:o.map((function(n){var e=(null===p||void 0===p?void 0:p.id)===n.id;return(0,G.jsx)(H,{onSelect:function(n){return(0,un.u)({pipeline_run_id:n,stream:null})},pipelineRun:n,selected:e},n.id)}))})}ln.getInitialProps=function(){var n=(0,r.Z)(i().mark((function n(e){var t;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.query.pipeline,n.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();var sn=(0,l.Z)(ln)},59416:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/syncs",function(){return t(25050)}])},80022:function(n,e,t){"use strict";function r(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}t.d(e,{Z:function(){return r}})},15544:function(n,e,t){"use strict";function r(n){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},r(n)}t.d(e,{Z:function(){return r}})},13692:function(n,e,t){"use strict";t.d(e,{Z:function(){return o}});var r=t(61049);function o(n,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&(0,r.Z)(n,e)}},93189:function(n,e,t){"use strict";t.d(e,{Z:function(){return i}});var r=t(12539),o=t(80022);function i(n,e){if(e&&("object"===r(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(n)}},61049:function(n,e,t){"use strict";function r(n,e){return r=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n},r(n,e)}t.d(e,{Z:function(){return r}})}},function(n){n.O(0,[2678,1154,844,874,1557,8264,7858,5499,5457,9774,2888,179],(function(){return e=59416,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([[643],{92709:function(e,n,i){"use strict";i.d(n,{$e:function(){return u},Em:function(){return p},IY:function(){return s},Jf:function(){return l},LR:function(){return t},NR:function(){return o},Qj:function(){return d},Wf:function(){return g},b7:function(){return r},m$:function(){return a},tK:function(){return c}});var r="edit",t="[ERR_BLOCK_EXISTS]",l={uuid:"All files"},s={uuid:"Current blocks"},o=[l,s],c="CUSTOM_EVENT_BLOCK_OUTPUT_CHANGED",u="CUSTOM_EVENT_CODE_BLOCK_CHANGED",a="CUSTOM_EVENT_COLUMN_SCROLLER_CURSOR_MOVED",d="CUSTOM_EVENT_COLUMN_SCROLLER_RESET",p="CUSTOM_EVENT_COLUMN_SCROLLER_SCROLL_TO_BLOCK",g="CUSTOM_EVENT_SYNC_COLUMN_POSITIONS"},74395:function(e,n,i){"use strict";i.d(n,{M:function(){return s},W:function(){return l}});var r=i(38626),t=i(46684),l=34*i(70515).iI,s=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],t.Mz)},8955:function(e,n,i){"use strict";i.d(n,{G7:function(){return b},ZP:function(){return P},u$:function(){return m}});var r=i(75582),t=i(82394),l=i(26304),s=i(90299),o=i(9134),c=i(24138),u=i(38276),a=i(30160),d=i(75499),p=i(70515),g=i(16488),f=i(42122),h=i(28598),v=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function j(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,r)}return i}function x(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?j(Object(i),!0).forEach((function(n){(0,t.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):j(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var m=44,_={uuid:"Run details"},Z={uuid:"Dependency tree"},b=[Z,_];function P(e){var n=e.height,i=e.heightOffset,t=e.pipeline,j=e.selectedRun,P=e.selectedTab,O=e.setSelectedTab,y=x({},(0,l.Z)(e,v));j?y.blockStatus=(0,g.IJ)(null===j||void 0===j?void 0:j.block_runs):y.noStatus=!0;var k=(0,f.Kn)(null===j||void 0===j?void 0:j.variables)?x({},null===j||void 0===j?void 0:j.variables):(null===j||void 0===j?void 0:j.variables)||{},S=null===j||void 0===j?void 0:j.event_variables;if(S&&(0,f.Kn)(S)&&!(0,f.Qr)(S))if((0,f.Kn)(k)&&k.hasOwnProperty("event")){var w=(0,f.Kn)(k.event)?k.event:{};k.event=x(x({},w),S)}else k.event=x({},S);var C=[];k&&JSON.stringify(k,null,2).split("\n").forEach((function(e){C.push(" ".concat(e))}));var E=j&&[["Run ID",null===j||void 0===j?void 0:j.id],["Variables",(0,h.jsx)(o.Z,{language:"json",small:!0,source:C.join("\n")},"variable_value")]],I=j&&(0,h.jsx)(u.Z,{pb:p.cd,px:p.cd,children:(0,h.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:E.map((function(e,n){var i=(0,r.Z)(e,2),t=i[0],l=i[1];return[(0,h.jsx)(a.ZP,{monospace:!0,muted:!0,children:t},"key_".concat(n)),(0,h.jsx)(a.ZP,{monospace:!0,textOverflow:!0,children:l},"val_".concat(n))]})),uuid:"LogDetail"})}),T=P&&O;return(0,h.jsxs)(h.Fragment,{children:[T&&(0,h.jsx)(u.Z,{py:p.cd,children:(0,h.jsx)(s.Z,{onClickTab:O,selectedTabUUID:null===P||void 0===P?void 0:P.uuid,tabs:b,underlineStyle:!0})}),(!T||Z.uuid===(null===P||void 0===P?void 0:P.uuid))&&(0,h.jsx)(c.ZP,x(x({},y),{},{height:n,heightOffset:(i||0)+(T?m:0),pipeline:t})),_.uuid===(null===P||void 0===P?void 0:P.uuid)&&I]})}},55072:function(e,n,i){"use strict";i.d(n,{Et:function(){return p},Q:function(){return d}});i(82684);var r=i(71180),t=i(55485),l=i(38276),s=i(31748),o=i(72473),c=i(79633),u=i(70515),a=i(28598),d=30,p=9;n.ZP=function(e){var n=e.page,i=e.maxPages,d=e.onUpdate,p=e.totalPages,g=[],f=i;if(f>p)g=Array.from({length:p},(function(e,n){return n}));else{var h=Math.floor(f/2),v=n-h;n+h>=p?(v=p-f+2,f-=2):n-h<=0?(v=0,f-=2):(f-=4,v=n-Math.floor(f/2)),g=Array.from({length:f},(function(e,n){return n+v}))}return(0,a.jsx)(a.Fragment,{children:p>0&&(0,a.jsxs)(t.ZP,{alignItems:"center",children:[(0,a.jsx)(r.ZP,{disabled:0===n,onClick:function(){return d(n-1)},children:(0,a.jsx)(o.Hd,{size:1.5*u.iI,stroke:s.Av})}),!g.includes(0)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.Z,{ml:1,children:(0,a.jsx)(r.ZP,{borderLess:!0,noBackground:!0,onClick:function(){return d(0)},children:1})},0),!g.includes(1)&&(0,a.jsx)(l.Z,{ml:1,children:(0,a.jsx)(r.ZP,{noBackground:!0,noPadding:!0,notClickable:!0,children:"..."})},0)]}),g.map((function(e){return(0,a.jsx)(l.Z,{ml:1,children:(0,a.jsx)(r.ZP,{backgroundColor:e===n&&c.a$,borderLess:!0,noBackground:!0,notClickable:e===n,onClick:function(){e!==n&&d(e)},children:e+1})},e)})),!g.includes(p-1)&&(0,a.jsxs)(a.Fragment,{children:[!g.includes(p-2)&&(0,a.jsx)(l.Z,{ml:1,children:(0,a.jsx)(r.ZP,{noBackground:!0,noPadding:!0,notClickable:!0,children:"..."})},0),(0,a.jsx)(l.Z,{ml:1,children:(0,a.jsx)(r.ZP,{borderLess:!0,noBackground:!0,onClick:function(){return d(p-1)},children:p})},p-1)]}),(0,a.jsx)(l.Z,{ml:1}),(0,a.jsx)(r.ZP,{disabled:n===p-1,onClick:function(){return d(n+1)},children:(0,a.jsx)(o.Kw,{size:1.5*u.iI,stroke:s.Av})})]})})}},36604:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return ge}});var r=i(75582),t=i(77837),l=i(82394),s=i(38860),o=i.n(s),c=i(82684),u=i(12691),a=i.n(u),d=i(38626),p=i(69864),g=i(34376),f=i(71180),h=i(39457),v=i(15338),j=i(55485),x=i(85854),m=i(48670),_=i(55072),Z=i(75457),b=i(53943),P=i(44265),O=i(30229),y=i(57653),k=i(83784),S=i(44085),w=i(38276),C=i(4190),E=i(75499),I=i(48381),T=i(30160),N=i(12468),M=i(35686),D=i(8955),R=i(77417),U=i(74395),L=i(44425),F=i(72473),A=i(72191),H=i(70515),z=i(28795),B=i(97196),V=i(8916),K=i(16488),q=i(3917),G=i(55283),W=i(44375),X=i(15610),J=i(86735),$=i(42122),Q=i(50178),Y=i(72619),ee=i(95924),ne=i(69419),ie=i(70320),re=i(28598);function te(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,r)}return i}function le(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?te(Object(i),!0).forEach((function(n){(0,l.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):te(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var se=function(e){var n=e.errors,i=e.fetchPipelineSchedule,t=e.pipeline,l=e.pipelineSchedule,s=e.setErrors,o=e.variables,u=(0,c.useContext)(d.ThemeContext),te=(0,R.Z)().project,se=(0,g.useRouter)(),oe=(0,Q.Ct)(),ce=(0,ie.qB)(),ue=(0,c.useMemo)((function(){return(0,J.HK)((null===t||void 0===t?void 0:t.blocks)||[],(function(e){return e.uuid}))}),[t]),ae=t||{},de=ae.uuid,pe=ae.type,ge=l||{},fe=ge.description,he=ge.id,ve=ge.event_matchers,je=ge.name,xe=ge.next_pipeline_run_date,me=ge.schedule_interval,_e=ge.schedule_type,Ze=ge.settings,be=ge.sla,Pe=ge.start_time,Oe=ge.status,ye=ge.tags,ke=ge.variables,Se=void 0===ke?{}:ke,we=(0,c.useMemo)((function(){return(0,K._U)(me)}),[me]),Ce=(0,ne.iV)(),Ee={_limit:30,_offset:30*(null!==Ce&&void 0!==Ce&&Ce.page?Ce.page:0)};null!==Ce&&void 0!==Ce&&Ce.status&&(Ee.status=Ce.status),null!==l&&void 0!==l&&l.global_data_product_uuid&&(Ee.global_data_product_uuid=null===l||void 0===l?void 0:l.global_data_product_uuid);var Ie=M.ZP.pipeline_runs.pipeline_schedules.list(he,Ee,{refreshInterval:3e3,revalidateOnFocus:!0}),Te=Ie.data,Ne=Ie.mutate,Me=(0,c.useMemo)((function(){return(null===Te||void 0===Te?void 0:Te.pipeline_runs)||[]}),[Te]),De=(0,c.useMemo)((function(){var e;return(null===Te||void 0===Te||null===(e=Te.metadata)||void 0===e?void 0:e.count)||[]}),[Te]),Re=(0,c.useState)(null),Ue=Re[0],Le=Re[1],Fe=(0,c.useMemo)((function(){var e=null!==Ce&&void 0!==Ce&&Ce.page?Ce.page:0;return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(b.Z,{fetchPipelineRuns:Ne,onClickRow:function(e){return Le((function(n){var i=Me[e];return(null===n||void 0===n?void 0:n.id)!==i.id?i:null}))},pipelineRuns:Me,selectedRun:Ue,setErrors:s,setSelectedRun:Le}),(0,re.jsx)(w.Z,{p:2,children:(0,re.jsx)(_.ZP,{maxPages:9,onUpdate:function(e){var n=Number(e),i=le(le({},Ce),{},{page:n>=0?n:0});se.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(de,"/triggers/").concat(he,"?").concat((0,ne.uM)(i)))},page:Number(e),totalPages:Math.ceil(De/30)})})]})}),[Ne,Me,he,de,Ce,se,Ue,s,De]),Ae=(0,c.useState)(D.G7[0]),He=Ae[0],ze=Ae[1],Be=(0,p.Db)((function(e){return M.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:(0,$.gR)(e,["id"])})}),{onSuccess:function(e){return(0,Y.wD)(e,{callback:function(){i()},onErrorCallback:function(e,n){return null===s||void 0===s?void 0:s({errors:n,response:e})}})}}),Ve=(0,r.Z)(Be,2),Ke=Ve[0],qe=Ve[1].isLoading,Ge=M.ZP.pipeline_triggers.pipelines.list(de),We=Ge.data,Xe=Ge.mutate,Je=(0,c.useMemo)((function(){return(0,J.HK)((null===We||void 0===We?void 0:We.pipeline_triggers)||[],(function(e){return e.name}))}),[We]),$e=(0,c.useMemo)((function(){return!(null===Je||void 0===Je||!Je[null===l||void 0===l?void 0:l.name])}),[l,Je]),Qe=(0,p.Db)(M.ZP.pipeline_triggers.pipelines.useCreate(de),{onSuccess:function(e){return(0,Y.wD)(e,{callback:function(){Xe()},onErrorCallback:function(e,n){return null===s||void 0===s?void 0:s({errors:n,response:e})}})}}),Ye=(0,r.Z)(Qe,2),en=Ye[0],nn=Ye[1].isLoading,rn=(0,p.Db)(M.ZP.pipeline_runs.pipeline_schedules.useCreate(he),{onSuccess:function(e){return(0,Y.wD)(e,{callback:function(){Ne()},onErrorCallback:function(e,n){return null===s||void 0===s?void 0:s({errors:n,response:e})}})}}),tn=(0,r.Z)(rn,2),ln=tn[0],sn=tn[1].isLoading,on=(0,c.useMemo)((function(){return O.fq.ACTIVE===Oe}),[Oe]),cn=(0,c.useMemo)((function(){return!on&&!(_e===O.Xm.TIME&&me===O.U5.ONCE)}),[on,me,_e]),un=(0,c.useMemo)((function(){var e,n,i={default:!0,size:1.5*H.iI},r=[[(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(F.VW,le({},i)),(0,re.jsx)(w.Z,{mr:1}),(0,re.jsx)(T.ZP,{default:!0,children:"Trigger type"})]},"trigger_type_label"),(0,re.jsx)(T.ZP,{monospace:!0,children:null===(e=O.Z4[_e])||void 0===e?void 0:e.call(O.Z4)},"trigger_type")],[(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(F.rs,le({},i)),(0,re.jsx)(w.Z,{mr:1}),(0,re.jsx)(T.ZP,{default:!0,children:"Status"})]},"trigger_status_label"),(0,re.jsx)(T.ZP,{danger:!on,monospace:!0,success:on,children:Oe},"trigger_status")]];if(fe&&r.push([(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(F.KJ,le({},i)),(0,re.jsx)(w.Z,{mr:1}),(0,re.jsx)(T.ZP,{default:!0,children:"Description"})]},"trigger_description_label"),(0,re.jsx)(T.ZP,{children:fe},"trigger_description")]),be){var t=(0,K.gU)(be),s=t.time,o=t.unit,c=1===s?o:"".concat(o,"s");r.push([(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(F.kI,le({},i)),(0,re.jsx)(w.Z,{mr:1}),(0,re.jsx)(T.ZP,{default:!0,children:"SLA"})]},"trigger_sla_label"),(0,re.jsx)(T.ZP,{monospace:!0,children:"".concat(s," ").concat(c)},"trigger_sla")])}if(me&&r.push([(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(F.Pf,le({},i)),(0,re.jsx)(w.Z,{mr:1}),(0,re.jsx)(T.ZP,{default:!0,children:"Frequency"})]},"trigger_frequency_label"),(0,re.jsx)(T.ZP,{monospace:!0,children:ce&&we?(0,K.lO)(me):me.replace("@","")},"trigger_frequency")],[(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(F.aw,le({},i)),(0,re.jsx)(w.Z,{mr:1}),(0,re.jsx)(T.ZP,{default:!0,children:"Next run date"})]},"trigger_next_run_date_label"),(0,re.jsx)(T.ZP,{monospace:!0,children:xe?ce?(0,q.XG)(xe,ce):(0,q.d$)(xe,{includeSeconds:!0,utcFormat:!0}):"N/A"},"trigger_next_run_date")]),Pe&&r.push([(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(F.aw,le({},i)),(0,re.jsx)(w.Z,{mr:1}),(0,re.jsx)(T.ZP,{default:!0,children:"Start date"})]},"trigger_start_date_label"),(0,re.jsx)(T.ZP,{monospace:!0,children:ce?(0,q.XG)(Pe,ce):Pe},"trigger_start_date")]),O.Xm.API===_e){var u=(0,K.M8)(l);r.push([(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(F.Ae,le({},i)),(0,re.jsx)(w.Z,{mr:1}),(0,re.jsx)(T.ZP,{default:!0,children:"API endpoint"})]},"trigger_api_endpoint_label"),(0,re.jsx)(h.Z,{copiedText:u,children:(0,re.jsx)(T.ZP,{monospace:!0,small:!0,children:u})},"trigger_api_endpoint")])}if(null!==Ze&&void 0!==Ze&&Ze.timeout){var a=(0,K.gU)(null===Ze||void 0===Ze?void 0:Ze.timeout),d=a.time,p=a.unit,g=1===d?p:"".concat(p,"s");r.push([(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(N.Z,{default:!0,label:"Timeout set for runs of this trigger",size:1.5*H.iI,widthFitContent:!0}),(0,re.jsx)(w.Z,{mr:1}),(0,re.jsx)(T.ZP,{default:!0,children:"Timeout"})]},"trigger_timeout"),(0,re.jsx)(T.ZP,{monospace:!0,children:"".concat(d," ").concat(g)},"trigger_timeout_label")])}null!==Ze&&void 0!==Ze&&Ze.skip_if_previous_running&&r.push([(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(N.Z,{default:!0,label:"Skip current run if any previous runs are still in progress",size:1.5*H.iI,widthFitContent:!0}),(0,re.jsx)(w.Z,{mr:1}),(0,re.jsx)(T.ZP,{default:!0,children:"Skip if running"})]},"trigger_skip_if_running"),(0,re.jsx)(T.ZP,{monospace:!0,children:null===(n=Ze.skip_if_previous_running)||void 0===n?void 0:n.toString()},"trigger_skip_if_running_label")]);return null!==Ze&&void 0!==Ze&&Ze.allow_blocks_to_fail&&r.push([(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(N.Z,{default:!0,label:"Trigger runs will continue running blocks if other unrelated blocks fail",size:1.5*H.iI,widthFitContent:!0}),(0,re.jsx)(w.Z,{mr:1}),(0,re.jsx)(T.ZP,{default:!0,children:"Allow blocks to fail"})]},"trigger_allow_blocks_to_fail"),(0,re.jsx)(T.ZP,{monospace:!0,children:Ze.allow_blocks_to_fail.toString()},"trigger_allow_blocks_to_fail_label")]),(0,re.jsx)(E.Z,{columnFlex:[null,1],rows:r})}),[fe,ce,on,we,xe,l,me,_e,Ze,be,Pe,Oe]),an=(0,c.useMemo)((function(){return Se||{}}),[Se]),dn=(0,c.useMemo)((function(){var e,n=[];return(0,$.Qr)(an)?n=(0,V.wx)(o,(function(e){return e.uuid===k.C})):Object.entries(an).forEach((function(e){var i=(0,r.Z)(e,2),t=i[0],l=i[1];[P.sZ,O.PN].includes(t)||n.push({uuid:t,value:(0,V.FS)(l)})})),"undefined"!==typeof(n=(0,V.JZ)(n||[],_e))&&null!==(e=n)&&void 0!==e&&e.length?(0,re.jsx)(E.Z,{columnFlex:[null,1],rows:n.map((function(e){var n=e.uuid,i=e.value;return[(0,re.jsx)(T.ZP,{default:!0,monospace:!0,children:n},"settings_variable_label_".concat(n)),(0,re.jsx)(T.ZP,{monospace:!0,children:i},"settings_variable_".concat(n))]}))}):null}),[_e,an,o]),pn=(0,c.useMemo)((function(){var e=null===an||void 0===an?void 0:an[O.PN];return e?(0,re.jsx)(re.Fragment,{children:Object.entries(e||{}).map((function(e){var n,i=(0,r.Z)(e,2),t=i[0],l=i[1],s=null===ue||void 0===ue?void 0:ue[t];return(0,re.jsxs)(w.Z,{mt:1,children:[(0,re.jsx)(w.Z,{pb:1,px:H.cd,children:(0,re.jsx)(T.ZP,{color:(0,G.qn)(null===s||void 0===s?void 0:s.type,{blockColor:null===s||void 0===s?void 0:s.color,theme:u}).accent,monospace:!0,children:t})}),(0,re.jsx)(v.Z,{light:!0}),null===(n=Object.entries(l||{}))||void 0===n?void 0:n.map((function(e,n){var i=(0,r.Z)(e,2),t=i[0],l=i[1];return(0,re.jsx)("div",{children:(0,re.jsx)(E.Z,{columnFlex:[null,1],rows:[[(0,re.jsx)(T.ZP,{default:!0,monospace:!0,children:"Stream"},"stream_title_".concat(n)),(0,re.jsx)(T.ZP,{monospace:!0,rightAligned:!0,children:t},"stream_id_".concat(n))]].concat(Object.entries(l||{}).map((function(e){var n=(0,r.Z)(e,2),i=n[0],t=n[1];return[(0,re.jsx)(T.ZP,{default:!0,monospace:!0,children:i},"settings_variable_label_".concat(i)),(0,re.jsx)(T.ZP,{monospace:!0,rightAligned:!0,children:t},"settings_variable_".concat(i))]})))})},t)}))]},t)}))}):null}),[ue,an,u]),gn=(0,c.useMemo)((function(){var e,n,i=[],r=null===an||void 0===an||null===(e=an[P.sZ])||void 0===e?void 0:e.blocks;return null===t||void 0===t||null===(n=t.blocks)||void 0===n||n.forEach((function(e){var n=e.type,t=e.uuid;if(L.tf.DBT===n){var l,s=(null===r||void 0===r||null===(l=r[t])||void 0===l?void 0:l.configuration)||{},o=s.flags,c=s.prefix,u=s.suffix,a=(0,W.IU)(e).name;(o||c||u)&&i.push({flags:o,prefix:c,suffix:u,uuid:a})}})),"undefined"!==typeof i&&null!==i&&void 0!==i&&i.length?(0,re.jsx)(E.Z,{columnFlex:[1,null],rows:i.map((function(e){var n=e.flags,i=e.prefix,r=e.suffix,t=e.uuid;return[(0,re.jsxs)(T.ZP,{monospace:!0,small:!0,children:[i&&(0,re.jsx)(T.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:i}),t,r&&(0,re.jsx)(T.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:r})]},"settings_variable_label_".concat(t)),(0,re.jsx)(T.ZP,{monospace:!0,muted:!0,small:!0,children:n&&n.join(", ")},"settings_variable_".concat(t))]}))}):null}),[t,an]),fn=(0,c.useMemo)((function(){return(0,re.jsx)(E.Z,{columnFlex:[null,1],columns:[{uuid:"Provider"},{uuid:"Event"}],rows:null===ve||void 0===ve?void 0:ve.map((function(e,n){var i=e.event_type,r=e.name;return[(0,re.jsx)(T.ZP,{default:!0,monospace:!0,children:B._P[i].label()},"".concat(i,"_").concat(n,"_label")),(0,re.jsx)(T.ZP,{monospace:!0,children:r},"".concat(i,"_").concat(n,"_name"))]}))})}),[ve]),hn=(0,c.useMemo)((function(){var e,n,i,r,l,s,o;return"undefined"===typeof(null===t||void 0===t||null===(e=t.settings)||void 0===e||null===(n=e.triggers)||void 0===n?void 0:n.save_in_code_automatically)?null===te||void 0===te||null===(i=te.pipelines)||void 0===i||null===(r=i.settings)||void 0===r||null===(l=r.triggers)||void 0===l?void 0:l.save_in_code_automatically:null===t||void 0===t||null===(s=t.settings)||void 0===s||null===(o=s.triggers)||void 0===o?void 0:o.save_in_code_automatically}),[t,te]);return(0,re.jsxs)(Z.Z,{afterHidden:!Ue,before:(0,re.jsxs)(U.M,{children:[(0,re.jsxs)(w.Z,{mb:H.HN,pt:H.cd,px:H.cd,children:[(0,re.jsxs)(w.Z,{mb:H.cd,children:[O.Xm.TIME===_e&&(0,re.jsx)(F.kO,{size:5*H.iI}),O.Xm.EVENT===_e&&(0,re.jsx)(F.Jp,{size:5*H.iI}),O.Xm.API===_e&&(0,re.jsx)(F.Bf,{size:5*H.iI}),!_e&&(0,re.jsx)(F.VW,{size:5*H.iI})]}),(0,re.jsx)(x.Z,{children:je})]}),(0,re.jsx)(w.Z,{px:H.cd,children:(0,re.jsx)(x.Z,{level:5,children:"Settings"})}),(0,re.jsx)(v.Z,{light:!0,mt:1,short:!0}),un,(null===ve||void 0===ve?void 0:ve.length)>=1&&(0,re.jsxs)(w.Z,{my:H.HN,children:[(0,re.jsx)(w.Z,{px:H.cd,children:(0,re.jsx)(x.Z,{level:5,children:"Events"})}),(0,re.jsx)(v.Z,{light:!0,mt:1,short:!0}),fn]}),dn&&(0,re.jsxs)(w.Z,{my:H.HN,children:[(0,re.jsx)(w.Z,{px:H.cd,children:(0,re.jsx)(x.Z,{level:5,children:"Runtime variables"})}),(0,re.jsx)(v.Z,{light:!0,mt:1,short:!0}),dn]}),pn&&(0,re.jsxs)(w.Z,{my:H.HN,children:[(0,re.jsx)(w.Z,{px:H.cd,children:(0,re.jsx)(x.Z,{level:5,children:"Bookmark values"})}),(0,re.jsx)(v.Z,{light:!0,mt:1,short:!0}),pn]}),gn&&(0,re.jsxs)(w.Z,{my:H.HN,children:[(0,re.jsx)(w.Z,{px:H.cd,children:(0,re.jsx)(x.Z,{level:5,children:"dbt runtime settings"})}),(0,re.jsx)(v.Z,{light:!0,mt:1,short:!0}),gn]}),(null===ye||void 0===ye?void 0:ye.length)>=1&&(0,re.jsxs)(w.Z,{my:H.HN,children:[(0,re.jsx)(w.Z,{px:H.cd,children:(0,re.jsx)(x.Z,{level:5,children:"Tags"})}),(0,re.jsx)(v.Z,{light:!0,mt:1,short:!0}),(0,re.jsx)(w.Z,{mt:H.cd,px:H.cd,children:(0,re.jsx)(I.Z,{tags:null===ye||void 0===ye?void 0:ye.map((function(e){return{uuid:e}}))})})]}),"\\",(0,re.jsx)(w.Z,{my:H.HN,children:(0,re.jsxs)(w.Z,{px:H.cd,children:[(0,re.jsxs)(x.Z,{level:5,children:[$e&&"Trigger exists in code",!$e&&"Store trigger in code"]}),(0,re.jsxs)(w.Z,{mt:1,children:[hn&&(0,re.jsxs)(T.ZP,{default:!0,children:["This trigger will automatically be persisted in code. To change this behavior, update the ",(0,re.jsx)(a(),{as:"/pipelines/".concat(de,"/settings"),href:"/pipelines/[pipeline]/settings",passHref:!0,children:(0,re.jsx)(m.Z,{openNewWindow:!0,children:"pipeline\u2019s settings"})})," or ",(0,re.jsx)(a(),{as:"/settings/workspace/preferences",href:"/settings/workspace/preferences",passHref:!0,children:(0,re.jsx)(m.Z,{openNewWindow:!0,children:"project settings"})}),"."]}),!hn&&(0,re.jsxs)(T.ZP,{default:!0,children:["Save or update the trigger and its settings in the pipeline\u2019s metadata and version control the trigger using Git. For more information, please read the ",(0,re.jsx)(m.Z,{href:"https://docs.mage.ai/guides/triggers/configure-triggers-in-code",openNewWindow:!0,children:"documentation"}),"."]})]}),!hn&&(0,re.jsxs)(w.Z,{mt:H.cd,children:[!We&&(0,re.jsx)(C.Z,{inverted:!0}),We&&(0,re.jsxs)(f.ZP,{disabled:!(null!==l&&void 0!==l&&l.id),loading:nn,onClick:function(){en({pipeline_trigger:{pipeline_schedule_id:null===l||void 0===l?void 0:l.id}})},secondary:!0,children:[$e&&"Update trigger in code",!$e&&"Save trigger in code"]})]})]})})]}),beforeWidth:U.W,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(de,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return je},linkProps:{as:"/pipelines/".concat(de,"/triggers/").concat(he),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],buildSidekick:function(e){return(0,D.ZP)(le(le({},e),{},{selectedRun:Ue,selectedTab:He,setSelectedTab:ze}))},errors:n,pageName:z.M.TRIGGERS,pipeline:t,setErrors:s,subheader:(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(f.ZP,{beforeIcon:on?(0,re.jsx)(F.nr,{size:A.bL}):(0,re.jsx)(F.Bf,{inverted:!oe,size:A.bL}),danger:on&&!oe,loading:qe,onClick:function(e){(0,ee.j)(e),Ke({id:he,status:on?O.fq.INACTIVE:O.fq.ACTIVE})},outline:!0,success:!on&&!oe,children:on?"Disable trigger":"Enable trigger"}),(0,re.jsx)(w.Z,{mr:H.cd}),pe!==y.qL.STREAMING&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(f.ZP,{beforeIcon:(0,re.jsx)(F.xF,{size:A.bL}),disabled:cn,loading:sn,onClick:function(){return ln({pipeline_run:{pipeline_schedule_id:he,pipeline_uuid:de,variables:an}})},outline:!0,title:cn?"Trigger must be enabled to run@once":"Manually run pipeline once immediately",children:(0,re.jsx)(T.ZP,{disabled:cn,children:"Run@once"})}),(0,re.jsx)(w.Z,{mr:H.cd})]}),!oe&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(f.ZP,{beforeIcon:(0,re.jsx)(F.I8,{size:A.bL}),linkProps:{as:"/pipelines/".concat(de,"/triggers/").concat(he,"/edit"),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Edit trigger"}),(0,re.jsx)(w.Z,{mr:H.cd})]}),(0,re.jsxs)(S.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?se.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(de,"/triggers/").concat(he)):(0,X.u)({page:0,status:e.target.value})},paddingRight:4*H.iI,placeholder:"Select run status",value:(null===Ce||void 0===Ce?void 0:Ce.status)||"all",children:[(0,re.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),P.IK.map((function(e){return(0,re.jsx)("option",{value:e,children:P.Do[e]},e)}))]})]}),title:function(){return je},uuid:"triggers/detail",children:[(0,re.jsx)(w.Z,{mt:H.cd,px:H.cd,children:(0,re.jsx)(x.Z,{level:5,children:"Runs for this trigger"})}),(0,re.jsx)(v.Z,{light:!0,mt:H.cd,short:!0}),Fe]})},oe=i(12717),ce=i(93808),ue=i(92709);function ae(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,r)}return i}function de(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?ae(Object(i),!0).forEach((function(n){(0,l.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ae(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}function pe(e){var n=e.pipelineScheduleId,i=e.pipelineUUID,r=e.subpath,t=ue.b7===r,l=(0,c.useState)(null),s=l[0],o=l[1],u=M.ZP.variables.pipelines.list(i,{},{revalidateOnFocus:!1}).data,a=null===u||void 0===u?void 0:u.variables,d={};t&&(d._format="with_runtime_average");var p=M.ZP.pipeline_schedules.detail("undefined"!==typeof n&&n,d),g=p.data,f=p.mutate,h=null===g||void 0===g?void 0:g.pipeline_schedule,v=M.ZP.pipelines.detail(i,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,j=de(de({},null===v||void 0===v?void 0:v.pipeline),{},{uuid:i});return t?(0,re.jsx)(oe.Z,{errors:s,fetchPipelineSchedule:f,pipeline:j,pipelineSchedule:h,setErrors:o,variables:a}):(0,re.jsx)(se,{errors:s,fetchPipelineSchedule:f,pipeline:j,pipelineSchedule:h,setErrors:o,variables:a})}pe.getInitialProps=function(){var e=(0,t.Z)(o().mark((function e(n){var i,t,l,s,c,u;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.query,t=i.pipeline,l=i.slug,!Array.isArray(l)){e.next=4;break}return s=(0,r.Z)(l,2),c=s[0],u=s[1],e.abrupt("return",{pipelineScheduleId:c,pipelineUUID:t,subpath:u});case 4:return e.abrupt("return",{pipelineUUID:t});case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var ge=(0,ce.Z)(pe)},95488:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/triggers/[...slug]",function(){return i(36604)}])}},function(e){e.O(0,[2678,1154,844,5820,1124,341,9161,4495,9302,874,9626,8264,7858,5499,5283,5457,3745,8998,3943,2717,9774,2888,179],(function(){return n=95488,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[643],{92709:function(e,n,i){"use strict";i.d(n,{$e:function(){return u},Em:function(){return p},IY:function(){return s},Jf:function(){return l},LR:function(){return t},NR:function(){return o},Qj:function(){return d},Wf:function(){return g},b7:function(){return r},m$:function(){return a},tK:function(){return c}});var r="edit",t="[ERR_BLOCK_EXISTS]",l={uuid:"All files"},s={uuid:"Current blocks"},o=[l,s],c="CUSTOM_EVENT_BLOCK_OUTPUT_CHANGED",u="CUSTOM_EVENT_CODE_BLOCK_CHANGED",a="CUSTOM_EVENT_COLUMN_SCROLLER_CURSOR_MOVED",d="CUSTOM_EVENT_COLUMN_SCROLLER_RESET",p="CUSTOM_EVENT_COLUMN_SCROLLER_SCROLL_TO_BLOCK",g="CUSTOM_EVENT_SYNC_COLUMN_POSITIONS"},74395:function(e,n,i){"use strict";i.d(n,{M:function(){return s},W:function(){return l}});var r=i(38626),t=i(46684),l=34*i(70515).iI,s=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],t.Mz)},8955:function(e,n,i){"use strict";i.d(n,{G7:function(){return b},ZP:function(){return P},u$:function(){return m}});var r=i(75582),t=i(82394),l=i(26304),s=i(90299),o=i(9134),c=i(24138),u=i(38276),a=i(30160),d=i(75499),p=i(70515),g=i(16488),f=i(42122),h=i(28598),v=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function j(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,r)}return i}function x(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?j(Object(i),!0).forEach((function(n){(0,t.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):j(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var m=44,_={uuid:"Run details"},Z={uuid:"Dependency tree"},b=[Z,_];function P(e){var n=e.height,i=e.heightOffset,t=e.pipeline,j=e.selectedRun,P=e.selectedTab,O=e.setSelectedTab,y=x({},(0,l.Z)(e,v));j?y.blockStatus=(0,g.IJ)(null===j||void 0===j?void 0:j.block_runs):y.noStatus=!0;var k=(0,f.Kn)(null===j||void 0===j?void 0:j.variables)?x({},null===j||void 0===j?void 0:j.variables):(null===j||void 0===j?void 0:j.variables)||{},S=null===j||void 0===j?void 0:j.event_variables;if(S&&(0,f.Kn)(S)&&!(0,f.Qr)(S))if((0,f.Kn)(k)&&k.hasOwnProperty("event")){var w=(0,f.Kn)(k.event)?k.event:{};k.event=x(x({},w),S)}else k.event=x({},S);var C=[];k&&JSON.stringify(k,null,2).split("\n").forEach((function(e){C.push(" ".concat(e))}));var E=j&&[["Run ID",null===j||void 0===j?void 0:j.id],["Variables",(0,h.jsx)(o.Z,{language:"json",small:!0,source:C.join("\n")},"variable_value")]],I=j&&(0,h.jsx)(u.Z,{pb:p.cd,px:p.cd,children:(0,h.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:E.map((function(e,n){var i=(0,r.Z)(e,2),t=i[0],l=i[1];return[(0,h.jsx)(a.ZP,{monospace:!0,muted:!0,children:t},"key_".concat(n)),(0,h.jsx)(a.ZP,{monospace:!0,textOverflow:!0,children:l},"val_".concat(n))]})),uuid:"LogDetail"})}),T=P&&O;return(0,h.jsxs)(h.Fragment,{children:[T&&(0,h.jsx)(u.Z,{py:p.cd,children:(0,h.jsx)(s.Z,{onClickTab:O,selectedTabUUID:null===P||void 0===P?void 0:P.uuid,tabs:b,underlineStyle:!0})}),(!T||Z.uuid===(null===P||void 0===P?void 0:P.uuid))&&(0,h.jsx)(c.ZP,x(x({},y),{},{height:n,heightOffset:(i||0)+(T?m:0),pipeline:t})),_.uuid===(null===P||void 0===P?void 0:P.uuid)&&I]})}},55072:function(e,n,i){"use strict";i.d(n,{Et:function(){return p},Q:function(){return d}});i(82684);var r=i(71180),t=i(55485),l=i(38276),s=i(31748),o=i(72473),c=i(79633),u=i(70515),a=i(28598),d=30,p=9;n.ZP=function(e){var n=e.page,i=e.maxPages,d=e.onUpdate,p=e.totalPages,g=[],f=i;if(f>p)g=Array.from({length:p},(function(e,n){return n}));else{var h=Math.floor(f/2),v=n-h;n+h>=p?(v=p-f+2,f-=2):n-h<=0?(v=0,f-=2):(f-=4,v=n-Math.floor(f/2)),g=Array.from({length:f},(function(e,n){return n+v}))}return(0,a.jsx)(a.Fragment,{children:p>0&&(0,a.jsxs)(t.ZP,{alignItems:"center",children:[(0,a.jsx)(r.ZP,{disabled:0===n,onClick:function(){return d(n-1)},children:(0,a.jsx)(o.Hd,{size:1.5*u.iI,stroke:s.Av})}),!g.includes(0)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.Z,{ml:1,children:(0,a.jsx)(r.ZP,{borderLess:!0,noBackground:!0,onClick:function(){return d(0)},children:1})},0),!g.includes(1)&&(0,a.jsx)(l.Z,{ml:1,children:(0,a.jsx)(r.ZP,{noBackground:!0,noPadding:!0,notClickable:!0,children:"..."})},0)]}),g.map((function(e){return(0,a.jsx)(l.Z,{ml:1,children:(0,a.jsx)(r.ZP,{backgroundColor:e===n&&c.a$,borderLess:!0,noBackground:!0,notClickable:e===n,onClick:function(){e!==n&&d(e)},children:e+1})},e)})),!g.includes(p-1)&&(0,a.jsxs)(a.Fragment,{children:[!g.includes(p-2)&&(0,a.jsx)(l.Z,{ml:1,children:(0,a.jsx)(r.ZP,{noBackground:!0,noPadding:!0,notClickable:!0,children:"..."})},0),(0,a.jsx)(l.Z,{ml:1,children:(0,a.jsx)(r.ZP,{borderLess:!0,noBackground:!0,onClick:function(){return d(p-1)},children:p})},p-1)]}),(0,a.jsx)(l.Z,{ml:1}),(0,a.jsx)(r.ZP,{disabled:n===p-1,onClick:function(){return d(n+1)},children:(0,a.jsx)(o.Kw,{size:1.5*u.iI,stroke:s.Av})})]})})}},36604:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return ge}});var r=i(75582),t=i(77837),l=i(82394),s=i(38860),o=i.n(s),c=i(82684),u=i(12691),a=i.n(u),d=i(38626),p=i(69864),g=i(34376),f=i(71180),h=i(39457),v=i(15338),j=i(55485),x=i(85854),m=i(48670),_=i(55072),Z=i(75457),b=i(53943),P=i(44265),O=i(30229),y=i(57653),k=i(83784),S=i(44085),w=i(38276),C=i(4190),E=i(75499),I=i(48381),T=i(30160),N=i(12468),M=i(35686),D=i(8955),R=i(77417),U=i(74395),L=i(44425),F=i(72473),A=i(72191),H=i(70515),z=i(28795),B=i(97196),V=i(8916),K=i(16488),q=i(3917),G=i(55283),W=i(44375),X=i(15610),J=i(86735),$=i(42122),Q=i(50178),Y=i(72619),ee=i(95924),ne=i(69419),ie=i(70320),re=i(28598);function te(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,r)}return i}function le(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?te(Object(i),!0).forEach((function(n){(0,l.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):te(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var se=function(e){var n=e.errors,i=e.fetchPipelineSchedule,t=e.pipeline,l=e.pipelineSchedule,s=e.setErrors,o=e.variables,u=(0,c.useContext)(d.ThemeContext),te=(0,R.Z)().project,se=(0,g.useRouter)(),oe=(0,Q.Ct)(),ce=(0,ie.qB)(),ue=(0,c.useMemo)((function(){return(0,J.HK)((null===t||void 0===t?void 0:t.blocks)||[],(function(e){return e.uuid}))}),[t]),ae=t||{},de=ae.uuid,pe=ae.type,ge=l||{},fe=ge.description,he=ge.id,ve=ge.event_matchers,je=ge.name,xe=ge.next_pipeline_run_date,me=ge.schedule_interval,_e=ge.schedule_type,Ze=ge.settings,be=ge.sla,Pe=ge.start_time,Oe=ge.status,ye=ge.tags,ke=ge.variables,Se=void 0===ke?{}:ke,we=(0,c.useMemo)((function(){return(0,K._U)(me)}),[me]),Ce=(0,ne.iV)(),Ee={_limit:30,_offset:30*(null!==Ce&&void 0!==Ce&&Ce.page?Ce.page:0)};null!==Ce&&void 0!==Ce&&Ce.status&&(Ee.status=Ce.status),null!==l&&void 0!==l&&l.global_data_product_uuid&&(Ee.global_data_product_uuid=null===l||void 0===l?void 0:l.global_data_product_uuid);var Ie=M.ZP.pipeline_runs.pipeline_schedules.list(he,Ee,{refreshInterval:3e3,revalidateOnFocus:!0}),Te=Ie.data,Ne=Ie.mutate,Me=(0,c.useMemo)((function(){return(null===Te||void 0===Te?void 0:Te.pipeline_runs)||[]}),[Te]),De=(0,c.useMemo)((function(){var e;return(null===Te||void 0===Te||null===(e=Te.metadata)||void 0===e?void 0:e.count)||[]}),[Te]),Re=(0,c.useState)(null),Ue=Re[0],Le=Re[1],Fe=(0,c.useMemo)((function(){var e=null!==Ce&&void 0!==Ce&&Ce.page?Ce.page:0;return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(b.Z,{fetchPipelineRuns:Ne,onClickRow:function(e){return Le((function(n){var i=Me[e];return(null===n||void 0===n?void 0:n.id)!==i.id?i:null}))},pipelineRuns:Me,selectedRun:Ue,setErrors:s,setSelectedRun:Le}),(0,re.jsx)(w.Z,{p:2,children:(0,re.jsx)(_.ZP,{maxPages:9,onUpdate:function(e){var n=Number(e),i=le(le({},Ce),{},{page:n>=0?n:0});se.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(de,"/triggers/").concat(he,"?").concat((0,ne.uM)(i)))},page:Number(e),totalPages:Math.ceil(De/30)})})]})}),[Ne,Me,he,de,Ce,se,Ue,s,De]),Ae=(0,c.useState)(D.G7[0]),He=Ae[0],ze=Ae[1],Be=(0,p.Db)((function(e){return M.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:(0,$.gR)(e,["id"])})}),{onSuccess:function(e){return(0,Y.wD)(e,{callback:function(){i()},onErrorCallback:function(e,n){return null===s||void 0===s?void 0:s({errors:n,response:e})}})}}),Ve=(0,r.Z)(Be,2),Ke=Ve[0],qe=Ve[1].isLoading,Ge=M.ZP.pipeline_triggers.pipelines.list(de),We=Ge.data,Xe=Ge.mutate,Je=(0,c.useMemo)((function(){return(0,J.HK)((null===We||void 0===We?void 0:We.pipeline_triggers)||[],(function(e){return e.name}))}),[We]),$e=(0,c.useMemo)((function(){return!(null===Je||void 0===Je||!Je[null===l||void 0===l?void 0:l.name])}),[l,Je]),Qe=(0,p.Db)(M.ZP.pipeline_triggers.pipelines.useCreate(de),{onSuccess:function(e){return(0,Y.wD)(e,{callback:function(){Xe()},onErrorCallback:function(e,n){return null===s||void 0===s?void 0:s({errors:n,response:e})}})}}),Ye=(0,r.Z)(Qe,2),en=Ye[0],nn=Ye[1].isLoading,rn=(0,p.Db)(M.ZP.pipeline_runs.pipeline_schedules.useCreate(he),{onSuccess:function(e){return(0,Y.wD)(e,{callback:function(){Ne()},onErrorCallback:function(e,n){return null===s||void 0===s?void 0:s({errors:n,response:e})}})}}),tn=(0,r.Z)(rn,2),ln=tn[0],sn=tn[1].isLoading,on=(0,c.useMemo)((function(){return O.fq.ACTIVE===Oe}),[Oe]),cn=(0,c.useMemo)((function(){return!on&&!(_e===O.Xm.TIME&&me===O.U5.ONCE)}),[on,me,_e]),un=(0,c.useMemo)((function(){var e,n,i={default:!0,size:1.5*H.iI},r=[[(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(F.VW,le({},i)),(0,re.jsx)(w.Z,{mr:1}),(0,re.jsx)(T.ZP,{default:!0,children:"Trigger type"})]},"trigger_type_label"),(0,re.jsx)(T.ZP,{monospace:!0,children:null===(e=O.Z4[_e])||void 0===e?void 0:e.call(O.Z4)},"trigger_type")],[(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(F.rs,le({},i)),(0,re.jsx)(w.Z,{mr:1}),(0,re.jsx)(T.ZP,{default:!0,children:"Status"})]},"trigger_status_label"),(0,re.jsx)(T.ZP,{danger:!on,monospace:!0,success:on,children:Oe},"trigger_status")]];if(fe&&r.push([(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(F.KJ,le({},i)),(0,re.jsx)(w.Z,{mr:1}),(0,re.jsx)(T.ZP,{default:!0,children:"Description"})]},"trigger_description_label"),(0,re.jsx)(T.ZP,{children:fe},"trigger_description")]),be){var t=(0,K.gU)(be),s=t.time,o=t.unit,c=1===s?o:"".concat(o,"s");r.push([(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(F.kI,le({},i)),(0,re.jsx)(w.Z,{mr:1}),(0,re.jsx)(T.ZP,{default:!0,children:"SLA"})]},"trigger_sla_label"),(0,re.jsx)(T.ZP,{monospace:!0,children:"".concat(s," ").concat(c)},"trigger_sla")])}if(me&&r.push([(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(F.Pf,le({},i)),(0,re.jsx)(w.Z,{mr:1}),(0,re.jsx)(T.ZP,{default:!0,children:"Frequency"})]},"trigger_frequency_label"),(0,re.jsx)(T.ZP,{monospace:!0,children:ce&&we?(0,K.lO)(me):me.replace("@","")},"trigger_frequency")],[(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(F.aw,le({},i)),(0,re.jsx)(w.Z,{mr:1}),(0,re.jsx)(T.ZP,{default:!0,children:"Next run date"})]},"trigger_next_run_date_label"),(0,re.jsx)(T.ZP,{monospace:!0,children:xe?ce?(0,q.XG)(xe,ce):(0,q.d$)(xe,{includeSeconds:!0,utcFormat:!0}):"N/A"},"trigger_next_run_date")]),Pe&&r.push([(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(F.aw,le({},i)),(0,re.jsx)(w.Z,{mr:1}),(0,re.jsx)(T.ZP,{default:!0,children:"Start date"})]},"trigger_start_date_label"),(0,re.jsx)(T.ZP,{monospace:!0,children:ce?(0,q.XG)(Pe,ce):Pe},"trigger_start_date")]),O.Xm.API===_e){var u=(0,K.M8)(l);r.push([(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(F.Ae,le({},i)),(0,re.jsx)(w.Z,{mr:1}),(0,re.jsx)(T.ZP,{default:!0,children:"API endpoint"})]},"trigger_api_endpoint_label"),(0,re.jsx)(h.Z,{copiedText:u,children:(0,re.jsx)(T.ZP,{monospace:!0,small:!0,children:u})},"trigger_api_endpoint")])}if(null!==Ze&&void 0!==Ze&&Ze.timeout){var a=(0,K.gU)(null===Ze||void 0===Ze?void 0:Ze.timeout),d=a.time,p=a.unit,g=1===d?p:"".concat(p,"s");r.push([(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(N.Z,{default:!0,label:"Timeout set for runs of this trigger",size:1.5*H.iI,widthFitContent:!0}),(0,re.jsx)(w.Z,{mr:1}),(0,re.jsx)(T.ZP,{default:!0,children:"Timeout"})]},"trigger_timeout"),(0,re.jsx)(T.ZP,{monospace:!0,children:"".concat(d," ").concat(g)},"trigger_timeout_label")])}null!==Ze&&void 0!==Ze&&Ze.skip_if_previous_running&&r.push([(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(N.Z,{default:!0,label:"Skip current run if any previous runs are still in progress",size:1.5*H.iI,widthFitContent:!0}),(0,re.jsx)(w.Z,{mr:1}),(0,re.jsx)(T.ZP,{default:!0,children:"Skip if running"})]},"trigger_skip_if_running"),(0,re.jsx)(T.ZP,{monospace:!0,children:null===(n=Ze.skip_if_previous_running)||void 0===n?void 0:n.toString()},"trigger_skip_if_running_label")]);return null!==Ze&&void 0!==Ze&&Ze.allow_blocks_to_fail&&r.push([(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(N.Z,{default:!0,label:"Trigger runs will continue running blocks if other unrelated blocks fail",size:1.5*H.iI,widthFitContent:!0}),(0,re.jsx)(w.Z,{mr:1}),(0,re.jsx)(T.ZP,{default:!0,children:"Allow blocks to fail"})]},"trigger_allow_blocks_to_fail"),(0,re.jsx)(T.ZP,{monospace:!0,children:Ze.allow_blocks_to_fail.toString()},"trigger_allow_blocks_to_fail_label")]),(0,re.jsx)(E.Z,{columnFlex:[null,1],rows:r})}),[fe,ce,on,we,xe,l,me,_e,Ze,be,Pe,Oe]),an=(0,c.useMemo)((function(){return Se||{}}),[Se]),dn=(0,c.useMemo)((function(){var e,n=[];return(0,$.Qr)(an)?n=(0,V.wx)(o,(function(e){return e.uuid===k.C})):Object.entries(an).forEach((function(e){var i=(0,r.Z)(e,2),t=i[0],l=i[1];[P.sZ,O.PN].includes(t)||n.push({uuid:t,value:(0,V.FS)(l)})})),"undefined"!==typeof(n=(0,V.JZ)(n||[],_e))&&null!==(e=n)&&void 0!==e&&e.length?(0,re.jsx)(E.Z,{columnFlex:[null,1],rows:n.map((function(e){var n=e.uuid,i=e.value;return[(0,re.jsx)(T.ZP,{default:!0,monospace:!0,children:n},"settings_variable_label_".concat(n)),(0,re.jsx)(T.ZP,{monospace:!0,children:i},"settings_variable_".concat(n))]}))}):null}),[_e,an,o]),pn=(0,c.useMemo)((function(){var e=null===an||void 0===an?void 0:an[O.PN];return e?(0,re.jsx)(re.Fragment,{children:Object.entries(e||{}).map((function(e){var n,i=(0,r.Z)(e,2),t=i[0],l=i[1],s=null===ue||void 0===ue?void 0:ue[t];return(0,re.jsxs)(w.Z,{mt:1,children:[(0,re.jsx)(w.Z,{pb:1,px:H.cd,children:(0,re.jsx)(T.ZP,{color:(0,G.qn)(null===s||void 0===s?void 0:s.type,{blockColor:null===s||void 0===s?void 0:s.color,theme:u}).accent,monospace:!0,children:t})}),(0,re.jsx)(v.Z,{light:!0}),null===(n=Object.entries(l||{}))||void 0===n?void 0:n.map((function(e,n){var i=(0,r.Z)(e,2),t=i[0],l=i[1];return(0,re.jsx)("div",{children:(0,re.jsx)(E.Z,{columnFlex:[null,1],rows:[[(0,re.jsx)(T.ZP,{default:!0,monospace:!0,children:"Stream"},"stream_title_".concat(n)),(0,re.jsx)(T.ZP,{monospace:!0,rightAligned:!0,children:t},"stream_id_".concat(n))]].concat(Object.entries(l||{}).map((function(e){var n=(0,r.Z)(e,2),i=n[0],t=n[1];return[(0,re.jsx)(T.ZP,{default:!0,monospace:!0,children:i},"settings_variable_label_".concat(i)),(0,re.jsx)(T.ZP,{monospace:!0,rightAligned:!0,children:t},"settings_variable_".concat(i))]})))})},t)}))]},t)}))}):null}),[ue,an,u]),gn=(0,c.useMemo)((function(){var e,n,i=[],r=null===an||void 0===an||null===(e=an[P.sZ])||void 0===e?void 0:e.blocks;return null===t||void 0===t||null===(n=t.blocks)||void 0===n||n.forEach((function(e){var n=e.type,t=e.uuid;if(L.tf.DBT===n){var l,s=(null===r||void 0===r||null===(l=r[t])||void 0===l?void 0:l.configuration)||{},o=s.flags,c=s.prefix,u=s.suffix,a=(0,W.IU)(e).name;(o||c||u)&&i.push({flags:o,prefix:c,suffix:u,uuid:a})}})),"undefined"!==typeof i&&null!==i&&void 0!==i&&i.length?(0,re.jsx)(E.Z,{columnFlex:[1,null],rows:i.map((function(e){var n=e.flags,i=e.prefix,r=e.suffix,t=e.uuid;return[(0,re.jsxs)(T.ZP,{monospace:!0,small:!0,children:[i&&(0,re.jsx)(T.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:i}),t,r&&(0,re.jsx)(T.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:r})]},"settings_variable_label_".concat(t)),(0,re.jsx)(T.ZP,{monospace:!0,muted:!0,small:!0,children:n&&n.join(", ")},"settings_variable_".concat(t))]}))}):null}),[t,an]),fn=(0,c.useMemo)((function(){return(0,re.jsx)(E.Z,{columnFlex:[null,1],columns:[{uuid:"Provider"},{uuid:"Event"}],rows:null===ve||void 0===ve?void 0:ve.map((function(e,n){var i=e.event_type,r=e.name;return[(0,re.jsx)(T.ZP,{default:!0,monospace:!0,children:B._P[i].label()},"".concat(i,"_").concat(n,"_label")),(0,re.jsx)(T.ZP,{monospace:!0,children:r},"".concat(i,"_").concat(n,"_name"))]}))})}),[ve]),hn=(0,c.useMemo)((function(){var e,n,i,r,l,s,o;return"undefined"===typeof(null===t||void 0===t||null===(e=t.settings)||void 0===e||null===(n=e.triggers)||void 0===n?void 0:n.save_in_code_automatically)?null===te||void 0===te||null===(i=te.pipelines)||void 0===i||null===(r=i.settings)||void 0===r||null===(l=r.triggers)||void 0===l?void 0:l.save_in_code_automatically:null===t||void 0===t||null===(s=t.settings)||void 0===s||null===(o=s.triggers)||void 0===o?void 0:o.save_in_code_automatically}),[t,te]);return(0,re.jsxs)(Z.Z,{afterHidden:!Ue,before:(0,re.jsxs)(U.M,{children:[(0,re.jsxs)(w.Z,{mb:H.HN,pt:H.cd,px:H.cd,children:[(0,re.jsxs)(w.Z,{mb:H.cd,children:[O.Xm.TIME===_e&&(0,re.jsx)(F.kO,{size:5*H.iI}),O.Xm.EVENT===_e&&(0,re.jsx)(F.Jp,{size:5*H.iI}),O.Xm.API===_e&&(0,re.jsx)(F.Bf,{size:5*H.iI}),!_e&&(0,re.jsx)(F.VW,{size:5*H.iI})]}),(0,re.jsx)(x.Z,{children:je})]}),(0,re.jsx)(w.Z,{px:H.cd,children:(0,re.jsx)(x.Z,{level:5,children:"Settings"})}),(0,re.jsx)(v.Z,{light:!0,mt:1,short:!0}),un,(null===ve||void 0===ve?void 0:ve.length)>=1&&(0,re.jsxs)(w.Z,{my:H.HN,children:[(0,re.jsx)(w.Z,{px:H.cd,children:(0,re.jsx)(x.Z,{level:5,children:"Events"})}),(0,re.jsx)(v.Z,{light:!0,mt:1,short:!0}),fn]}),dn&&(0,re.jsxs)(w.Z,{my:H.HN,children:[(0,re.jsx)(w.Z,{px:H.cd,children:(0,re.jsx)(x.Z,{level:5,children:"Runtime variables"})}),(0,re.jsx)(v.Z,{light:!0,mt:1,short:!0}),dn]}),pn&&(0,re.jsxs)(w.Z,{my:H.HN,children:[(0,re.jsx)(w.Z,{px:H.cd,children:(0,re.jsx)(x.Z,{level:5,children:"Bookmark values"})}),(0,re.jsx)(v.Z,{light:!0,mt:1,short:!0}),pn]}),gn&&(0,re.jsxs)(w.Z,{my:H.HN,children:[(0,re.jsx)(w.Z,{px:H.cd,children:(0,re.jsx)(x.Z,{level:5,children:"dbt runtime settings"})}),(0,re.jsx)(v.Z,{light:!0,mt:1,short:!0}),gn]}),(null===ye||void 0===ye?void 0:ye.length)>=1&&(0,re.jsxs)(w.Z,{my:H.HN,children:[(0,re.jsx)(w.Z,{px:H.cd,children:(0,re.jsx)(x.Z,{level:5,children:"Tags"})}),(0,re.jsx)(v.Z,{light:!0,mt:1,short:!0}),(0,re.jsx)(w.Z,{mt:H.cd,px:H.cd,children:(0,re.jsx)(I.Z,{tags:null===ye||void 0===ye?void 0:ye.map((function(e){return{uuid:e}}))})})]}),"\\",(0,re.jsx)(w.Z,{my:H.HN,children:(0,re.jsxs)(w.Z,{px:H.cd,children:[(0,re.jsxs)(x.Z,{level:5,children:[$e&&"Trigger exists in code",!$e&&"Store trigger in code"]}),(0,re.jsxs)(w.Z,{mt:1,children:[hn&&(0,re.jsxs)(T.ZP,{default:!0,children:["This trigger will automatically be persisted in code. To change this behavior, update the ",(0,re.jsx)(a(),{as:"/pipelines/".concat(de,"/settings"),href:"/pipelines/[pipeline]/settings",passHref:!0,children:(0,re.jsx)(m.Z,{openNewWindow:!0,children:"pipeline\u2019s settings"})})," or ",(0,re.jsx)(a(),{as:"/settings/workspace/preferences",href:"/settings/workspace/preferences",passHref:!0,children:(0,re.jsx)(m.Z,{openNewWindow:!0,children:"project settings"})}),"."]}),!hn&&(0,re.jsxs)(T.ZP,{default:!0,children:["Save or update the trigger and its settings in the pipeline\u2019s metadata and version control the trigger using Git. For more information, please read the ",(0,re.jsx)(m.Z,{href:"https://docs.mage.ai/guides/triggers/configure-triggers-in-code",openNewWindow:!0,children:"documentation"}),"."]})]}),!hn&&(0,re.jsxs)(w.Z,{mt:H.cd,children:[!We&&(0,re.jsx)(C.Z,{inverted:!0}),We&&(0,re.jsxs)(f.ZP,{disabled:!(null!==l&&void 0!==l&&l.id),loading:nn,onClick:function(){en({pipeline_trigger:{pipeline_schedule_id:null===l||void 0===l?void 0:l.id}})},secondary:!0,children:[$e&&"Update trigger in code",!$e&&"Save trigger in code"]})]})]})})]}),beforeWidth:U.W,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(de,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return je},linkProps:{as:"/pipelines/".concat(de,"/triggers/").concat(he),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],buildSidekick:function(e){return(0,D.ZP)(le(le({},e),{},{selectedRun:Ue,selectedTab:He,setSelectedTab:ze}))},errors:n,pageName:z.M.TRIGGERS,pipeline:t,setErrors:s,subheader:(0,re.jsxs)(j.ZP,{alignItems:"center",children:[(0,re.jsx)(f.ZP,{beforeIcon:on?(0,re.jsx)(F.nr,{size:A.bL}):(0,re.jsx)(F.Bf,{inverted:!oe,size:A.bL}),danger:on&&!oe,loading:qe,onClick:function(e){(0,ee.j)(e),Ke({id:he,status:on?O.fq.INACTIVE:O.fq.ACTIVE})},outline:!0,success:!on&&!oe,children:on?"Disable trigger":"Enable trigger"}),(0,re.jsx)(w.Z,{mr:H.cd}),pe!==y.qL.STREAMING&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(f.ZP,{beforeIcon:(0,re.jsx)(F.xF,{size:A.bL}),disabled:cn,loading:sn,onClick:function(){return ln({pipeline_run:{pipeline_schedule_id:he,pipeline_uuid:de,variables:an}})},outline:!0,title:cn?"Trigger must be enabled to run@once":"Manually run pipeline once immediately",children:(0,re.jsx)(T.ZP,{disabled:cn,children:"Run@once"})}),(0,re.jsx)(w.Z,{mr:H.cd})]}),!oe&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(f.ZP,{beforeIcon:(0,re.jsx)(F.I8,{size:A.bL}),linkProps:{as:"/pipelines/".concat(de,"/triggers/").concat(he,"/edit"),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Edit trigger"}),(0,re.jsx)(w.Z,{mr:H.cd})]}),(0,re.jsxs)(S.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?se.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(de,"/triggers/").concat(he)):(0,X.u)({page:0,status:e.target.value})},paddingRight:4*H.iI,placeholder:"Select run status",value:(null===Ce||void 0===Ce?void 0:Ce.status)||"all",children:[(0,re.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),P.IK.map((function(e){return(0,re.jsx)("option",{value:e,children:P.Do[e]},e)}))]})]}),title:function(){return je},uuid:"triggers/detail",children:[(0,re.jsx)(w.Z,{mt:H.cd,px:H.cd,children:(0,re.jsx)(x.Z,{level:5,children:"Runs for this trigger"})}),(0,re.jsx)(v.Z,{light:!0,mt:H.cd,short:!0}),Fe]})},oe=i(12717),ce=i(93808),ue=i(92709);function ae(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,r)}return i}function de(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?ae(Object(i),!0).forEach((function(n){(0,l.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ae(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}function pe(e){var n=e.pipelineScheduleId,i=e.pipelineUUID,r=e.subpath,t=ue.b7===r,l=(0,c.useState)(null),s=l[0],o=l[1],u=M.ZP.variables.pipelines.list(i,{},{revalidateOnFocus:!1}).data,a=null===u||void 0===u?void 0:u.variables,d={};t&&(d._format="with_runtime_average");var p=M.ZP.pipeline_schedules.detail("undefined"!==typeof n&&n,d),g=p.data,f=p.mutate,h=null===g||void 0===g?void 0:g.pipeline_schedule,v=M.ZP.pipelines.detail(i,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,j=de(de({},null===v||void 0===v?void 0:v.pipeline),{},{uuid:i});return t?(0,re.jsx)(oe.Z,{errors:s,fetchPipelineSchedule:f,pipeline:j,pipelineSchedule:h,setErrors:o,variables:a}):(0,re.jsx)(se,{errors:s,fetchPipelineSchedule:f,pipeline:j,pipelineSchedule:h,setErrors:o,variables:a})}pe.getInitialProps=function(){var e=(0,t.Z)(o().mark((function e(n){var i,t,l,s,c,u;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.query,t=i.pipeline,l=i.slug,!Array.isArray(l)){e.next=4;break}return s=(0,r.Z)(l,2),c=s[0],u=s[1],e.abrupt("return",{pipelineScheduleId:c,pipelineUUID:t,subpath:u});case 4:return e.abrupt("return",{pipelineUUID:t});case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var ge=(0,ce.Z)(pe)},95488:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/triggers/[...slug]",function(){return i(36604)}])}},function(e){e.O(0,[2678,1154,844,5820,1124,341,9161,4495,9302,874,1557,8264,7858,5499,5283,5457,3745,8998,3943,2717,9774,2888,179],(function(){return n=95488,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|