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([[4249],{48381:function(e,n,r){"use strict";var t=r(82684),i=r(31882),o=r(55485),u=r(30160),l=r(86735),c=r(28598);n.Z=function(e){var n=e.onClickTag,r=e.tags,a=void 0===r?[]:r,s=(0,t.useMemo)((function(){return(null===a||void 0===a?void 0:a.length)||0}),[a]),d=(0,t.useMemo)((function(){return(0,l.YC)(a||[],"uuid")}),[a]);return(0,c.jsx)(o.ZP,{alignItems:"center",flexWrap:"wrap",children:null===d||void 0===d?void 0:d.reduce((function(e,r){return e.push((0,c.jsx)("div",{style:{marginBottom:2,marginRight:s>=2?4:0,marginTop:2},children:(0,c.jsx)(i.Z,{onClick:n?function(){return n(r)}:null,small:!0,children:(0,c.jsx)(u.ZP,{children:r.uuid})})},"tag-".concat(r.uuid))),e}),[])})}},16488:function(e,n,r){"use strict";r.d(n,{IJ:function(){return g},M8:function(){return P},Uc:function(){return j},XM:function(){return Z},_U:function(){return v},eI:function(){return b},gU:function(){return O},lO:function(){return E},ri:function(){return m},tL:function(){return y},vJ:function(){return w},xH:function(){return x}});var t,i=r(82394),o=r(92083),u=r.n(o),l=r(3917),c=r(4383),a=r(30229),s=r(42122),d=r(86735);function p(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function f(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?p(Object(r),!0).forEach((function(n){(0,i.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var v=function(e){return!!e&&!Object.values(a.U5).includes(e)};function g(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var r=n.block_uuid,t=n.completed_at,o=n.started_at,l=n.status,c=null;o&&t&&(c=u()(t).valueOf()-u()(o).valueOf());return f(f({},e),{},(0,i.Z)({},r,{runtime:c,status:l}))}),{})}var h,m=function(e){var n=[{description:function(){return"This pipeline will run continuously on an interval or just once."},label:function(){return"Schedule"},uuid:a.Xm.TIME},{description:function(){return"This pipeline will run when a specific event occurs."},label:function(){return"Event"},uuid:a.Xm.EVENT},{description:function(){return"Run this pipeline when you make an API call."},label:function(){return"API"},uuid:a.Xm.API}];return e?n.slice(0,1):n};function x(e){var n=(0,s.gR)(e,[a.gm.INTERVAL,a.gm.TYPE]),r=e[a.gm.INTERVAL];r&&(n["schedule_interval[]"]=encodeURIComponent(r));var t=e[a.gm.TYPE];return t&&(n["schedule_type[]"]=t),n}function b(e){return e?new Date(u()(e).valueOf()):null}function j(e,n){return n?(0,l.XG)(e,n):function(e){if("string"!==typeof e)return e;var n=e.split("+")[0];return u()(b(n)).format(l.Nx)}(e)}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(h||(h={}));var y=(t={},(0,i.Z)(t,h.DAY,86400),(0,i.Z)(t,h.HOUR,3600),(0,i.Z)(t,h.MINUTE,60),(0,i.Z)(t,h.SECOND,1),t);function O(e){var n=h.SECOND,r=e;return e%86400===0?(r/=86400,n=h.DAY):e%3600===0?(r/=3600,n=h.HOUR):e%60===0&&(r/=60,n=h.MINUTE),{time:r,unit:n}}function w(e,n){return e*y[n]}function Z(e,n,r){var t,i=u()(e);return i.set("hour",+(null===n||void 0===n?void 0:n.hour)||0),i.set("minute",+(null===n||void 0===n?void 0:n.minute)||0),i.set("second",0),t=i.format(l.TD),null!==r&&void 0!==r&&r.includeSeconds&&(t=t.concat(":00")),null!==r&&void 0!==r&&r.localTimezone&&(t=i.format(l.lE),null!==r&&void 0!==r&&r.convertToUtc&&(t=(0,l.d$)(t,{includeSeconds:null===r||void 0===r?void 0:r.includeSeconds,utcFormat:!0}))),t}function P(e){var n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t="",i=!0;return i&&(r?t="".concat(window.origin,"/api/pipeline_schedules/").concat(null===e||void 0===e?void 0:e.id,"/api_trigger"):(t="".concat(window.origin,"/api/pipeline_schedules/").concat(null===e||void 0===e?void 0:e.id,"/pipeline_runs"),null!==e&&void 0!==e&&e.token&&(t="".concat(t,"/").concat(e.token)))),i&&(n=window.location.port)&&(t=t.replace(n,c.QT)),t}function I(e,n,r){return e.match(/[*,-/]/)?{additionalOffset:0,cronValue:e}:function(e,n,r){var t=r.indexOf(e),i=0;if(n<0)for(var o=0;o>n;o--)0===t?(t=r.length-1,i-=1):t-=1;else if(n>0)for(var u=0;u<n;u++)t===r.length-1?(t=0,i+=1):t+=1;return{additionalOffset:i,cronValue:String(r[t]||e)}}(+e,n,r)}var k=(0,d.m5)(60),_=(0,d.m5)(24),C=(0,l.Cs)();function E(e,n){if(!e)return e;var r=u()().local().format("Z"),t=r.split(":"),i="-"===r[0],o=3===t[0].length?Number(t[0].slice(1)):Number(t[0]),l=Number(t[1]);(i&&!n||!i&&n)&&(o=-o,l=-l);var c=e.split(" "),a=c[0],s=c[1],d=c[2],p=I(a,l,k),f=I(s,o+p.additionalOffset,_);if(c[0]=p.cronValue,c[1]=f.cronValue,0!==(null===f||void 0===f?void 0:f.additionalOffset)){var v=I(d,f.additionalOffset,C);c[2]=v.cronValue}return c.join(" ")}},30229:function(e,n,r){"use strict";r.d(n,{PN:function(){return l},TR:function(){return v},U5:function(){return a},Wb:function(){return f},Xm:function(){return o},Z4:function(){return s},fq:function(){return c},gm:function(){return d},kJ:function(){return p}});var t,i,o,u=r(82394),l="__bookmark_values__";!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var c,a,s=(t={},(0,u.Z)(t,o.API,(function(){return"API"})),(0,u.Z)(t,o.EVENT,(function(){return"event"})),(0,u.Z)(t,o.TIME,(function(){return"schedule"})),t);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(c||(c={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly",e.ALWAYS_ON="@always_on"}(a||(a={}));var d,p,f=[a.ONCE,a.HOURLY,a.DAILY,a.WEEKLY,a.MONTHLY];!function(e){e.INTERVAL="frequency[]",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(d||(d={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(p||(p={}));var v=(i={},(0,u.Z)(i,p.CREATED_AT,"Created at"),(0,u.Z)(i,p.NAME,"Name"),(0,u.Z)(i,p.PIPELINE,"Pipeline"),(0,u.Z)(i,p.STATUS,"Active"),(0,u.Z)(i,p.TYPE,"Type"),i)},31882:function(e,n,r){"use strict";var t=r(38626),i=r(71180),o=r(55485),u=r(30160),l=r(44897),c=r(72473),a=r(70515),s=r(61896),d=r(28598),p=t.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||l.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||l.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((a.iI+s.Al)/2,"px;\n height: ").concat(1.5*a.iI+s.Al,"px;\n padding: ").concat(a.iI/1.5,"px ").concat(1.25*a.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((a.iI/2+s.Al)/2,"px;\n height: ").concat(s.Al+a.iI/2+2,"px;\n padding: ").concat(a.iI/4,"px ").concat(a.iI,"px;\n ")}),(function(e){return e.xsmall&&"\n border-radius: ".concat((a.iI/1+s.Al)/1,"px;\n height: ").concat(20,"px;\n padding: 4px 6px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||l.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,r=e.children,t=e.disabled,l=e.label,s=e.monospace,f=e.onClick,v=e.primary,g=e.small,h=e.xsmall;return(0,d.jsx)(p,{border:n,primary:v,small:g,xsmall:h,children:(0,d.jsx)(i.ZP,{basic:!0,disabled:t,noBackground:!0,noPadding:!0,onClick:f,transparent:!0,children:(0,d.jsxs)(o.ZP,{alignItems:"center",children:[r,l&&(0,d.jsx)(u.ZP,{monospace:s,small:g,xsmall:h,children:l}),!t&&f&&(0,d.jsx)("div",{style:{marginLeft:2}}),!t&&f&&(0,d.jsx)(c.x8,{default:v,muted:!v,size:g?a.iI:1.25*a.iI})]})})})}},46732:function(e,n,r){"use strict";var t=r(82394),i=r(26304),o=(r(82684),r(50724)),u=r(70374),l=r(28598),c=["children","items","open","onClickCallback","onClickOutside","parentRef","uuid","zIndex"];function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function s(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?a(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}n.Z=function(e){var n=e.children,r=e.items,t=e.open,a=e.onClickCallback,d=e.onClickOutside,p=e.parentRef,f=e.uuid,v=e.zIndex,g=(0,i.Z)(e,c),h=(0,l.jsxs)("div",{style:{position:"relative",zIndex:(d?3:2)+(v||0)},children:[(0,l.jsx)("div",{ref:p,children:n}),(0,l.jsx)(u.Z,s(s({},g),{},{items:r,onClickCallback:a,open:t,parentRef:p,uuid:f}))]});return d?(0,l.jsx)(o.Z,{onClickOutside:d,open:!0,children:h}):h}},35185:function(e,n,r){"use strict";var t=r(82394),i=r(91835),o=(r(82684),r(38626)),u=r(44897),l=r(42631),c=r(70515),a=r(28598);function s(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function d(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?s(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var p=o.default.div.withConfig({displayName:"ProgressBar__ProgressBarContainerStyle",componentId:"sc-10x9ojc-0"})(["border-radius:","px;height:","px;overflow:hidden;position:relative;width:100%;",""],l.BG,.75*c.iI,(function(e){return"\n background-color: ".concat((e.theme.monotone||u.Z.monotone).grey200,";\n ")})),f=o.default.div.withConfig({displayName:"ProgressBar__ProgressBarStyle",componentId:"sc-10x9ojc-1"})(["height:inherit;position:absolute;"," "," "," ",""],(function(e){return!e.danger&&"\n background-color: ".concat((e.theme.progress||u.Z.progress).positive,";\n ")}),(function(e){return e.progress&&"\n width: ".concat(e.progress,"%;\n ")}),(function(e){return e.danger&&"\n background-color: ".concat((e.theme.progress||u.Z.progress).negative,";\n ")}),(function(e){return e.animateProgress&&"\n animation: animate-progress ".concat(e.animateProgress.duration,"ms linear forwards;\n\n @keyframes animate-progress {\n 0% {\n width: ").concat(e.animateProgress.start,"%;\n }\n\n 100% {\n width: ").concat(e.animateProgress.end,"%;\n }\n }\n ")}));n.Z=function(e){var n=(0,i.Z)({},e);return(0,a.jsx)(p,d(d({},n),{},{children:(0,a.jsx)(f,d({},n))}))}},38415:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return Ce}});var t=r(77837),i=r(75582),o=r(82394),u=r(38860),l=r.n(u),c=r(12691),a=r.n(c),s=r(82684),d=r(69864),p=r(34376),f=r(24138),v=r(15338),g=r(93369),h=r(48670),m=r(55072),x=r(75457),b=r(30229),j=r(93808),y=r(82359),O=r(71610),w=r(71180),Z=r(90299),P=r(55485),I=r(85854),k=r(37899),_=r(65956),C=r(38276),E=r(30160),T=r(44897),S=r(70515),N={uuid:"RUNTIME VARIABLES"},R={uuid:"BOOKMARK VALUES"},M=r(32080),A=r(8916),D=r(81728),B=r(28598);function V(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function L(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?V(Object(r),!0).forEach((function(n){(0,o.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var U="".concat(S.iI,"px ").concat(3*S.iI,"px");var Y=function(e){var n=e.initialPipelineSchedulePayload,r=e.onCancel,t=e.onSuccess,i=e.pipeline,u=e.variables,l=(0,s.useState)(null),c=l[0],a=l[1],d=(0,s.useState)(!0),p=d[0],f=d[1],g=(0,s.useState)(u||{}),h=g[0],m=g[1],x=(0,s.useState)(null),j=x[0],y=x[1],V=(0,s.useMemo)((function(){return L(L({},n),{},{name:(0,D.Y6)(),variables:p?(0,A.e7)(L(L({},h),c?(0,o.Z)({},b.PN,c):{})):null})}),[c,n,p,h]),Y=(0,s.useMemo)((function(){return null!==i&&void 0!==i&&i.blocks?(0,M.n)(i):null}),[i]),H=(0,s.useMemo)((function(){var e;return Y&&(null===(e=Object.keys(Y||{}))||void 0===e?void 0:e.length)>=1?[N,R]:null}),[Y]);(0,s.useEffect)((function(){(null===H||void 0===H?void 0:H.length)>=1&&!j&&y(null===H||void 0===H?void 0:H[0])}),[j,y,H]);var F=(0,s.useMemo)((function(){return null!==H&&void 0!==H&&H.length?(0,B.jsx)(Z.Z,{onClickTab:function(e){y(e)},selectedTabUUID:null===j||void 0===j?void 0:j.uuid,tabs:H,underlineStyle:!0}):null}),[j,y,H]);return(0,B.jsxs)(_.Z,{noPadding:!0,footer:(0,B.jsxs)(P.ZP,{alignItems:"center",fullWidth:!0,justifyContent:"flex-end",children:[(0,B.jsx)(w.ZP,{onClick:function(){t({pipeline_schedule:V}),r()},padding:U,primaryAlternate:!0,children:"Run now"}),(0,B.jsx)(C.Z,{mr:1}),(0,B.jsx)(w.ZP,{borderColor:T.Z.background.page,onClick:r,padding:U,secondary:!0,children:"Cancel"})]}),header:(0,B.jsx)(I.Z,{level:5,children:"Run pipeline now"}),maxHeight:"90vh",minWidth:85*S.iI,subtitle:(0,B.jsxs)(B.Fragment,{children:[!(null!==H&&void 0!==H&&H.length)&&(0,B.jsx)(C.Z,{p:S.cd,children:(0,B.jsx)(E.ZP,{default:!0,children:"Creates a new trigger and immediately runs the current pipeline once."})}),(null===H||void 0===H?void 0:H.length)>=1&&F,(0,B.jsx)(v.Z,{light:!0})]}),children:[(!(null!==H&&void 0!==H&&H.length)||N.uuid===(null===j||void 0===j?void 0:j.uuid))&&(0,B.jsxs)(B.Fragment,{children:[(null===H||void 0===H?void 0:H.length)>=1&&(0,B.jsx)(C.Z,{p:S.cd,children:(0,B.jsx)(E.ZP,{default:!0,children:"Creates a new trigger and immediately runs the current pipeline once."})}),(0,B.jsx)(k.Z,{enableVariablesOverwrite:p,originalVariables:u,runtimeVariables:h,setEnableVariablesOverwrite:f,setRuntimeVariables:m})]}),R.uuid===(null===j||void 0===j?void 0:j.uuid)&&(0,B.jsx)(O.Z,{bookmarkValues:c,pipeline:i,setBookmarkValues:a})]})},H=r(97618),F=r(72473),G=r(38626),z=r(42631),X=r(47041),q=r(91437),W=G.default.div.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-pu8csx-0"})([""," overflow-y:auto;position:relative;width:100%;z-index:3;border-radius:","px;"," "," "," ",""],X.w5,z.n_,(function(e){return"\n background-color: ".concat((e.theme.background||T.Z.background).page,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.flex&&"\n flex: 1;\n "}),(function(e){return(e.noBorder||e.noBorderRadius)&&"\n border-radius: 0;\n "})),K=G.default.div.withConfig({displayName:"indexstyle__ColumnHeaderRowStyle",componentId:"sc-pu8csx-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;position:sticky;top:0;width:100%;z-index:2;"," "," ",""],z.n_,z.n_,(function(e){return"\n background-color: ".concat((e.theme.background||T.Z.background).panel,";\n ")}),(function(e){return!e.noBorder&&"\n border: 1px solid ".concat((e.theme.interactive||T.Z.interactive).defaultBorder,";\n ")}),(function(e){return(e.noBorder||e.noBorderRadius)&&"\n border-radius: 0;\n "})),Q=G.default.div.withConfig({displayName:"indexstyle__ColumnHeaderCellStyle",componentId:"sc-pu8csx-2"})([""," ",""],(function(e){return!e.small&&"\n padding: ".concat(1.5*S.iI,"px;\n ")}),(function(e){return e.small&&"\n padding: ".concat(1.5*S.iI,"px;\n ")})),J=G.default.div.withConfig({displayName:"indexstyle__RowTitleStyle",componentId:"sc-pu8csx-3"})([""," "," ",""],(function(e){return"\n background-color: ".concat((e.theme.background||T.Z.background).header,";\n border: 1px solid ").concat((e.theme.interative||T.Z.interactive).defaultBorder,";\n ")}),(function(e){return!e.small&&"\n padding: ".concat(1.5*S.iI,"px;\n ")}),(function(e){return e.small&&"\n padding: ".concat(1.5*S.iI,"px;\n ")})),$=G.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-pu8csx-4"})([""," "," "," ",""],(0,q.eR)(),(function(e){return"\n background-color: ".concat((e.theme.background||T.Z.background).page,";\n border-top: none;\n border-bottom: none;\n ")}),(function(e){return!e.noBorder&&"\n border-bottom: 1px solid ".concat((e.theme.interactive||T.Z.interactive).defaultBorder,";\n border-left: 1px solid ").concat((e.theme.interactive||T.Z.interactive).defaultBorder,";\n border-right: 1px solid ").concat((e.theme.interactive||T.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.finalRow&&!e.noBorderRadius&&"\n border-bottom-left-radius: ".concat(z.n_,"px;\n border-bottom-right-radius: ").concat(z.n_,"px;\n ")})),ee=G.default.div.withConfig({displayName:"indexstyle__TextStyle",componentId:"sc-pu8csx-5"})(["p{cursor:pointer;}"]),ne=G.default.div.withConfig({displayName:"indexstyle__RowCellStyle",componentId:"sc-pu8csx-6"})(["width:100%;z-index:0;"," "," "," "," ",""],(function(e){return!e.first&&"\n border-left: 1px solid ".concat((e.theme.background||T.Z.background).page,";\n ")}),(function(e){return!e.small&&"\n padding: ".concat(1.5*S.iI,"px;\n ")}),(function(e){return e.small&&"\n padding: ".concat(1.5*S.iI,"px;\n ")}),(function(e){return e.textColor&&"\n & p {\n color: ".concat(e.textColor,";\n }\n ")}),(function(e){return e.vanish&&"\n border: none;\n padding: 0 !important;\n width: 0% !important;\n height: 100% !important;\n background-color: ".concat((e.theme.background||T.Z.background).page," !important;\n ")})),re=r(35185);var te=function(e){var n,r=e.cellIndex,t=e.danger,i=e.flex,o=e.render,u=e.rowGroupIndex,l=e.rowIndex,c=e.selected,a=e.small,d=e.showBackground,p=e.showProgress,f=e.textColor,v=e.value,g=e.vanish,m=(0,s.useState)(!1),x=m[0],b=m[1],j=Array.isArray(v);return n=o?o(v):"function"===typeof v?v({selected:c}):j?(0,B.jsxs)(H.Z,{alignItems:"start",flexDirection:"row",justifyContent:"space-between",children:[(0,B.jsxs)(E.ZP,{small:a,textOverflow:!0,title:v[0],children:[x&&(0,B.jsx)(B.Fragment,{children:"".concat(v[0]," & ").concat(v.length-1," more")}),!x&&(0,B.jsx)(B.Fragment,{children:v.map((function(e){return(0,B.jsx)("div",{children:e},e)}))})]}),(0,B.jsxs)(h.Z,{onClick:function(){return b(!x)},children:[x&&(0,B.jsx)(F.K5,{muted:!0,size:2*S.iI}),!x&&(0,B.jsx)(F.ol,{muted:!0,size:2*S.iI})]})]}):p?(0,B.jsx)(P.ZP,{alignItems:"center",fullHeight:!0,fullWidth:!0,children:(0,B.jsx)(re.Z,{danger:v<80,progress:v})}):(0,B.jsx)(E.ZP,{bold:t,danger:t,small:a,textOverflow:!0,title:v,children:v}),(0,B.jsx)(H.Z,{flex:i,textOverflow:!0,children:(0,B.jsx)(ne,{first:0===r,showBackground:d,small:a,textColor:f,vanish:g,children:!g&&(0,B.jsxs)(B.Fragment,{children:[n," "]})})},"cell-".concat(u,"-").concat(l,"-").concat(r,"-").concat(v))};var ie=function(e){var n=e.columnFlexNumbers,r=e.columnHeaders,t=e.height,i=e.isTextSelectionRequired,o=e.noBorder,u=e.noBorderRadius,l=e.onClickRow,c=e.onHoverRow,a=e.renderRowCellByIndex,d=e.rowGroupData,p=void 0===d?[]:d,f=e.selectedRowIndexes,v=e.small,g=e.flex,m=e.warnings,x=void 0===m?[]:m,b=(0,s.useMemo)((function(){return p.length}),[p]);return(0,B.jsxs)(W,{flex:g,height:t,noBorder:o,noBorderRadius:u,noScrollbarTrackBackground:!0,children:[(0,B.jsx)(K,{noBorder:o,noBorderRadius:u,children:(0,B.jsx)(P.ZP,{alignItems:"center",children:r.map((function(e,r){var t=e.Icon,i=e.label;return(0,B.jsx)(H.Z,{flex:n[r],children:(0,B.jsx)(Q,{first:0===r,small:v,children:(0,B.jsxs)(P.ZP,{alignItems:"center",children:[t&&(0,B.jsx)(F.Jr,{}),t&&(0,B.jsx)(C.Z,{mr:1}),(0,B.jsx)(E.ZP,{bold:!0,children:i})]})})},i)}))})}),p&&p.map((function(e,r){var t,s=e.title,d=e.rowData,p=s||r,g=[];s&&(t=(0,B.jsx)(J,{small:v,children:(0,B.jsx)(E.ZP,{bold:!0,children:s})}));var m=null===d||void 0===d?void 0:d.length;return null===d||void 0===d||d.forEach((function(e,t){var s=e.columnTextColors,d=e.columnValues,j=e.danger,y=e.uuid,O=(null===f||void 0===f?void 0:f[0])===r&&(null===f||void 0===f?void 0:f[1])===t,w=[],Z=x.find((function(e){return e.name===d[0]})),I=Z&&(0,D.HD)(d[1])?(0,D.Tz)(d[1]):d[1],k=Z&&Z.compare(I,Z.val);null===d||void 0===d||d.forEach((function(e,i,o){var u=null===a||void 0===a?void 0:a[i],l=s?s[i]:void 0;Array.isArray(e)?w.push((0,B.jsx)(te,{cellIndex:i,flex:n[i],render:u,rowGroupIndex:r,rowIndex:t,selected:O,showBackground:t%2===1,showProgress:e[0],small:v,textColor:l,value:e[1]},i)):"undefined"===typeof e?(w.pop(),i=o.length+1,w.push((0,B.jsx)(te,{cellIndex:i,danger:j,flex:n[i],render:u,rowGroupIndex:r,rowIndex:t,selected:O,showBackground:t%2===1,small:v,textColor:l,value:e,vanish:!0},i))):w.push((0,B.jsx)(te,{cellIndex:i,danger:k||j,flex:n[i],render:u,rowGroupIndex:r,rowIndex:t,selected:O,showBackground:t%2===1,small:v,textColor:l,value:e},i))}));var _=(0,B.jsx)(P.ZP,{textOverflow:!0,children:w});g.push((0,B.jsxs)($,{finalRow:b-1===r&&m-1===t,hasHover:!!c,noBorder:o,noBorderRadius:u,onMouseEnter:function(){return null===c||void 0===c?void 0:c({rowGroupIndex:r,rowIndex:t,uuid:y})},selected:O,children:[l&&(i?(0,B.jsx)(ee,{onClick:function(){return l({rowGroupIndex:r,rowIndex:t,uuid:y})},role:"cell",children:_}):(0,B.jsx)(h.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:function(){return l({rowGroupIndex:r,rowIndex:t,uuid:y})},preventDefault:!0,children:_})),!l&&_]},"row-group-".concat(p,"-row-").concat(t)))})),(0,B.jsxs)("div",{children:[t,g]},p)}))]})},oe=G.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1xgfh62-0"})(["display:flex;flex-direction:column;height:","px;border-bottom:1px solid ",";"],(function(e){return e.height}),T.Z.borders.medium),ue=r(79633);var le=function(e){var n=e.height,r=e.scheduleType,t=e.variables,o=e.variablesOverride,u=[];Object.entries(t).forEach((function(e){var n=(0,i.Z)(e,2),r=n[0],t=n[1],l=null===o||void 0===o?void 0:o[r];u.push({uuid:r,value:(0,A.FS)(l||t)})})),(0,A.JZ)(u,r);var l=Object.keys(t).length;return(0,B.jsx)(oe,{height:n,children:t&&(0,B.jsx)(ie,{columnFlexNumbers:[1,1],columnHeaders:[{label:"Runtime variable (".concat(l,")")},{label:"Value"}],noBorderRadius:!0,rowGroupData:[{rowData:u.map((function(e){var n=e.uuid,r=e.value;return{columnTextColors:[ue.Or,void 0],columnValues:[n,r],uuid:n}}))}],small:!0})})},ce=r(4190),ae=r(12717),se=r(85544),de=r(29624),pe=r(35686),fe=r(72191),ve=r(28795),ge=r(81066),he=r(24944),me=r(3917),xe=r(69419),be=r(16488),je=r(86735),ye=r(42122),Oe=r(50178),we=r(72619),Ze=r(70320),Pe=r(89538);function Ie(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function ke(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ie(Object(r),!0).forEach((function(n){(0,o.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ie(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function _e(e){var n=e.pipeline,r=(0,p.useRouter)(),t=(0,Oe.Ct)(),u=n.uuid,l=pe.ZP.pipelines.detail(u,{includes_outputs:!1},{revalidateOnFocus:!1}).data,c=(0,s.useMemo)((function(){return(null===l||void 0===l?void 0:l.pipeline)||n}),[null===l||void 0===l?void 0:l.pipeline,n]),j=(0,s.useState)(null),O=j[0],w=j[1],Z=(0,s.useState)(null),P=Z[0],I=Z[1],k=(0,s.useState)(!1),_=k[0],T=k[1],N=pe.ZP.projects.list().data,R=(0,s.useMemo)((function(){var e;return null===N||void 0===N||null===(e=N.projects)||void 0===e?void 0:e[0]}),[N]),M=((0,s.useMemo)((function(){var e;return(0,Ze.hY)(null===R||void 0===R||null===(e=R.features)||void 0===e?void 0:e[y.d.LOCAL_TIMEZONE])}),[null===R||void 0===R?void 0:R.features]),pe.ZP.client_pages.detail("pipeline_schedule:create",{"pipelines[]":[u]},{},{key:"Triggers/Edit/".concat(u)}).data),V=(0,s.useMemo)((function(){return null===M||void 0===M?void 0:M.client_page}),[M]),L=(0,s.useMemo)((function(){var e,n;return null===V||void 0===V||null===(e=V.components)||void 0===e||null===(n=e.find((function(e){return"create_with_interactions_component"===e.uuid})))||void 0===n?void 0:n.enabled}),[V]),U=(0,s.useMemo)((function(){return null===V||void 0===V?void 0:V.disabled}),[V]),H=pe.ZP.variables.pipelines.list(u,{global_only:!0},{revalidateOnFocus:!1}).data,G=null===H||void 0===H?void 0:H.variables,z=(0,xe.iV)(),X=(0,xe.DQ)(z,[b.gm.INTERVAL,b.gm.STATUS,b.gm.TAG,b.gm.TYPE]),q=(0,be.xH)(X),W=null!==z&&void 0!==z&&z.page?z.page:0,K=pe.ZP.pipeline_schedules.pipelines.list(u,ke(ke({},q),{},{_limit:m.Q,_offset:(null!==z&&void 0!==z&&z.page?z.page:0)*m.Q}),{refreshInterval:7500}),Q=K.data,J=K.mutate,$=(0,s.useMemo)((function(){return(null===Q||void 0===Q?void 0:Q.pipeline_schedules)||[]}),[Q]),ee=function(e){return(0,d.Db)(pe.ZP.pipeline_schedules.pipelines.useCreate(u),{onSuccess:function(n){return(0,we.wD)(n,{callback:function(n){var r=n.pipeline_schedule.id;null===e||void 0===e||e(r)},onErrorCallback:function(e,n){return w({errors:n,response:e})}})}})},ne=ee((function(e){return r.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(null===c||void 0===c?void 0:c.uuid,"/triggers/").concat(e,"/edit"))})),re=(0,i.Z)(ne,2),te=re[0],ie=re[1].isLoading,oe=ee(J),ue=(0,i.Z)(oe,2),Ie=ue[0],_e=ue[1].isLoading,Ce=(0,s.useMemo)((function(){return(0,A.Tt)(G)}),[G]),Ee=(0,D.Y6)(),Te=(0,s.useMemo)((function(){return{name:Ee,schedule_interval:b.U5.ONCE,schedule_type:b.Xm.TIME,start_time:(0,me.d$)((new Date).toISOString(),{dayAgo:!0,utcFormat:!0}),status:b.fq.ACTIVE}}),[Ee]),Se=(0,Pe.dd)((function(){return(0,B.jsx)(Y,{initialPipelineSchedulePayload:Te,onCancel:Me,onSuccess:Ie,pipeline:c,variables:Ce})}),{},[G,c,Ce],{background:!0,uuid:"run_pipeline_now_popup"}),Ne=(0,i.Z)(Se,2),Re=Ne[0],Me=Ne[1],Ae=(0,s.useState)(),De=Ae[0],Be=Ae[1],Ve=(0,s.useMemo)((function(){var e=null===De||void 0===De?void 0:De.variables,n=!(0,ye.Qr)(Ce);return function(r){var i=80;if(n){var o=Object.keys(Ce).length;i=46+43*Math.min(5,o)+1}var l=r.height-i;return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(f.ZP,ke(ke({},r),{},{enablePorts:!1,height:l,noStatus:!0})),n&&(0,B.jsx)(le,{height:i,scheduleType:null===De||void 0===De?void 0:De.schedule_type,variables:Ce,variablesOverride:e}),!n&&(0,B.jsxs)(C.Z,{p:S.cd,children:[(0,B.jsx)(E.ZP,{children:"This pipeline has no runtime variables."}),!t&&(0,B.jsxs)(C.Z,{mt:1,children:[(0,B.jsx)(a(),{as:"/pipelines/".concat(u,"/edit?sideview=variables"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,B.jsx)(h.Z,{primary:!0,children:"Click here"})})," ",(0,B.jsx)(E.ZP,{inline:!0,children:"to add variables to this pipeline."})]})]})]})}}),[t,u,null===De||void 0===De?void 0:De.schedule_type,null===De||void 0===De?void 0:De.variables,Ce]),Le=(0,s.useMemo)((function(){var e;return(null===Q||void 0===Q||null===(e=Q.metadata)||void 0===e?void 0:e.count)||[]}),[Q]),Ue=pe.ZP.pipeline_triggers.pipelines.list(u).data,Ye=(0,s.useMemo)((function(){return(0,je.HK)((null===Ue||void 0===Ue?void 0:Ue.pipeline_triggers)||[],(function(e){return e.name}))}),[Ue]);(0,s.useEffect)((function(){var e=((null===Ue||void 0===Ue?void 0:Ue.pipeline_triggers)||[]).find((function(e){var n=e.settings;return null===n||void 0===n?void 0:n.invalid_schedule_interval}));I(e?{displayMessage:'Schedule interval for Trigger (in code) "'.concat(null===e||void 0===e?void 0:e.name,'"')+" is invalid. Please check your cron expression\u2019s syntax in the pipeline\u2019s triggers.yaml file."}:null)}),[null===Ue||void 0===Ue?void 0:Ue.pipeline_triggers]);var He=pe.ZP.tags.list().data,Fe=(0,s.useMemo)((function(){return(0,je.YC)((null===He||void 0===He?void 0:He.tags)||[],(function(e){return e.uuid}))}),[He]),Ge=pe.ZP.pipeline_interactions.detail(L&&u,{filter_for_permissions:1}).data,ze=pe.ZP.interactions.pipeline_interactions.list(L&&u).data,Xe=pe.ZP.pipelines.detail(L&&u).data,qe=(0,s.useMemo)((function(){return(null===Ge||void 0===Ge?void 0:Ge.pipeline_interaction)||{}}),[Ge]),We=((0,s.useMemo)((function(){return(null===ze||void 0===ze?void 0:ze.interactions)||[]}),[ze]),(0,s.useMemo)((function(){var e;return L&&(null===(e=Object.keys((null===qe||void 0===qe?void 0:qe.blocks)||{}))||void 0===e?void 0:e.length)>=1}),[L,qe])),Ke=(0,s.useMemo)((function(){return We&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(C.Z,{ml:"12px"}),(0,B.jsx)(he.lZ,{}),(0,B.jsx)(C.Z,{ml:"12px"}),(0,B.jsx)(g.ZP,ke(ke({},ge.B),{},{Icon:F.yd,inline:!0,onClick:function(){return T(!0)},uuid:"Create trigger with no-code",children:"Create trigger with no-code"}))]})}),[We,T]),Qe=(0,s.useMemo)((function(){return(0,B.jsx)(se.Z,{addButtonProps:!U&&{isLoading:ie,label:"New trigger",onClick:function(){return te({pipeline_schedule:{name:(0,D.Y6)()}})}},filterOptions:{frequency:Object.values(b.U5),status:Object.values(b.fq),tag:Fe.map((function(e){return e.uuid})),type:Object.values(b.Xm)},filterValueLabelMapping:{status:Object.values(b.fq).reduce((function(e,n){return ke(ke({},e),{},(0,o.Z)({},n,(0,D.kC)(n)))}),{}),tag:Fe.reduce((function(e,n){var r=n.uuid;return ke(ke({},e),{},(0,o.Z)({},r,r))}),{}),type:b.Z4},onClickFilterDefaults:function(){r.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(u,"/triggers"))},query:X,resetPageOnFilterApply:!0,secondaryButtonProps:!U&&{beforeIcon:(0,B.jsx)(F.xF,{size:fe.bL}),disabled:t,isLoading:_e,label:"Run@once",onClick:Re,tooltip:"Creates an @once trigger and runs pipeline immediately"},showDivider:!U,children:Ke})}),[te,U,ie,_e,t,Ke,u,X,r,Re,Fe]),Je=(0,s.useMemo)((function(){var e=[];return _?e.push.apply(e,[{label:function(){return"Triggers"},onClick:function(){return T(!1)}},{bold:!0,label:function(){return"New trigger"}}]):e.push({label:function(){return"Triggers"}}),e}),[_,T]);return _?(0,B.jsx)(ae.Z,{creatingWithLimitation:!0,errors:O,onCancel:function(){return T(!1)},pipeline:null===Xe||void 0===Xe?void 0:Xe.pipeline,setErrors:w,useCreateScheduleMutation:ee}):(0,B.jsx)(x.Z,{breadcrumbs:Je,buildSidekick:!_&&Ve,errors:O||P,pageName:ve.M.TRIGGERS,pipeline:c,setErrors:w,subheader:!_&&Qe,title:function(e){var n=e.name;return"".concat(n," triggers")},uuid:"".concat(ve.M.TRIGGERS,"_").concat(u),children:!_&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(v.Z,{light:!0}),Q?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(de.Z,{fetchPipelineSchedules:J,pipeline:c,pipelineSchedules:$,pipelineTriggersByName:Ye,selectedSchedule:De,setErrors:w,setSelectedSchedule:Be}),(0,B.jsx)(C.Z,{p:2,children:(0,B.jsx)(m.ZP,{maxPages:9,onUpdate:function(e){var n=Number(e),t=ke(ke({},z),{},{page:n>=0?n:0});r.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(u,"/triggers?").concat((0,xe.uM)(t)))},page:Number(W),totalPages:Math.ceil(Le/m.Q)})})]}):(0,B.jsx)(C.Z,{m:2,children:(0,B.jsx)(ce.Z,{inverted:!0,large:!0})})]})})}_e.getInitialProps=function(){var e=(0,t.Z)(l().mark((function e(n){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:r}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var Ce=(0,j.Z)(_e)},40183:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/triggers",function(){return r(38415)}])}},function(e){e.O(0,[2678,1154,844,5820,1124,341,9161,4495,9302,874,9626,8264,7858,5499,5283,5457,3745,8998,9624,2474,2717,9774,2888,179],(function(){return n=40183,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4249],{48381:function(e,n,r){"use strict";var t=r(82684),i=r(31882),o=r(55485),u=r(30160),l=r(86735),c=r(28598);n.Z=function(e){var n=e.onClickTag,r=e.tags,a=void 0===r?[]:r,s=(0,t.useMemo)((function(){return(null===a||void 0===a?void 0:a.length)||0}),[a]),d=(0,t.useMemo)((function(){return(0,l.YC)(a||[],"uuid")}),[a]);return(0,c.jsx)(o.ZP,{alignItems:"center",flexWrap:"wrap",children:null===d||void 0===d?void 0:d.reduce((function(e,r){return e.push((0,c.jsx)("div",{style:{marginBottom:2,marginRight:s>=2?4:0,marginTop:2},children:(0,c.jsx)(i.Z,{onClick:n?function(){return n(r)}:null,small:!0,children:(0,c.jsx)(u.ZP,{children:r.uuid})})},"tag-".concat(r.uuid))),e}),[])})}},16488:function(e,n,r){"use strict";r.d(n,{IJ:function(){return g},M8:function(){return P},Uc:function(){return j},XM:function(){return Z},_U:function(){return v},eI:function(){return b},gU:function(){return O},lO:function(){return E},ri:function(){return m},tL:function(){return y},vJ:function(){return w},xH:function(){return x}});var t,i=r(82394),o=r(92083),u=r.n(o),l=r(3917),c=r(4383),a=r(30229),s=r(42122),d=r(86735);function p(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function f(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?p(Object(r),!0).forEach((function(n){(0,i.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var v=function(e){return!!e&&!Object.values(a.U5).includes(e)};function g(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var r=n.block_uuid,t=n.completed_at,o=n.started_at,l=n.status,c=null;o&&t&&(c=u()(t).valueOf()-u()(o).valueOf());return f(f({},e),{},(0,i.Z)({},r,{runtime:c,status:l}))}),{})}var h,m=function(e){var n=[{description:function(){return"This pipeline will run continuously on an interval or just once."},label:function(){return"Schedule"},uuid:a.Xm.TIME},{description:function(){return"This pipeline will run when a specific event occurs."},label:function(){return"Event"},uuid:a.Xm.EVENT},{description:function(){return"Run this pipeline when you make an API call."},label:function(){return"API"},uuid:a.Xm.API}];return e?n.slice(0,1):n};function x(e){var n=(0,s.gR)(e,[a.gm.INTERVAL,a.gm.TYPE]),r=e[a.gm.INTERVAL];r&&(n["schedule_interval[]"]=encodeURIComponent(r));var t=e[a.gm.TYPE];return t&&(n["schedule_type[]"]=t),n}function b(e){return e?new Date(u()(e).valueOf()):null}function j(e,n){return n?(0,l.XG)(e,n):function(e){if("string"!==typeof e)return e;var n=e.split("+")[0];return u()(b(n)).format(l.Nx)}(e)}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(h||(h={}));var y=(t={},(0,i.Z)(t,h.DAY,86400),(0,i.Z)(t,h.HOUR,3600),(0,i.Z)(t,h.MINUTE,60),(0,i.Z)(t,h.SECOND,1),t);function O(e){var n=h.SECOND,r=e;return e%86400===0?(r/=86400,n=h.DAY):e%3600===0?(r/=3600,n=h.HOUR):e%60===0&&(r/=60,n=h.MINUTE),{time:r,unit:n}}function w(e,n){return e*y[n]}function Z(e,n,r){var t,i=u()(e);return i.set("hour",+(null===n||void 0===n?void 0:n.hour)||0),i.set("minute",+(null===n||void 0===n?void 0:n.minute)||0),i.set("second",0),t=i.format(l.TD),null!==r&&void 0!==r&&r.includeSeconds&&(t=t.concat(":00")),null!==r&&void 0!==r&&r.localTimezone&&(t=i.format(l.lE),null!==r&&void 0!==r&&r.convertToUtc&&(t=(0,l.d$)(t,{includeSeconds:null===r||void 0===r?void 0:r.includeSeconds,utcFormat:!0}))),t}function P(e){var n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t="",i=!0;return i&&(r?t="".concat(window.origin,"/api/pipeline_schedules/").concat(null===e||void 0===e?void 0:e.id,"/api_trigger"):(t="".concat(window.origin,"/api/pipeline_schedules/").concat(null===e||void 0===e?void 0:e.id,"/pipeline_runs"),null!==e&&void 0!==e&&e.token&&(t="".concat(t,"/").concat(e.token)))),i&&(n=window.location.port)&&(t=t.replace(n,c.QT)),t}function I(e,n,r){return e.match(/[*,-/]/)?{additionalOffset:0,cronValue:e}:function(e,n,r){var t=r.indexOf(e),i=0;if(n<0)for(var o=0;o>n;o--)0===t?(t=r.length-1,i-=1):t-=1;else if(n>0)for(var u=0;u<n;u++)t===r.length-1?(t=0,i+=1):t+=1;return{additionalOffset:i,cronValue:String(r[t]||e)}}(+e,n,r)}var k=(0,d.m5)(60),_=(0,d.m5)(24),C=(0,l.Cs)();function E(e,n){if(!e)return e;var r=u()().local().format("Z"),t=r.split(":"),i="-"===r[0],o=3===t[0].length?Number(t[0].slice(1)):Number(t[0]),l=Number(t[1]);(i&&!n||!i&&n)&&(o=-o,l=-l);var c=e.split(" "),a=c[0],s=c[1],d=c[2],p=I(a,l,k),f=I(s,o+p.additionalOffset,_);if(c[0]=p.cronValue,c[1]=f.cronValue,0!==(null===f||void 0===f?void 0:f.additionalOffset)){var v=I(d,f.additionalOffset,C);c[2]=v.cronValue}return c.join(" ")}},30229:function(e,n,r){"use strict";r.d(n,{PN:function(){return l},TR:function(){return v},U5:function(){return a},Wb:function(){return f},Xm:function(){return o},Z4:function(){return s},fq:function(){return c},gm:function(){return d},kJ:function(){return p}});var t,i,o,u=r(82394),l="__bookmark_values__";!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var c,a,s=(t={},(0,u.Z)(t,o.API,(function(){return"API"})),(0,u.Z)(t,o.EVENT,(function(){return"event"})),(0,u.Z)(t,o.TIME,(function(){return"schedule"})),t);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(c||(c={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly",e.ALWAYS_ON="@always_on"}(a||(a={}));var d,p,f=[a.ONCE,a.HOURLY,a.DAILY,a.WEEKLY,a.MONTHLY];!function(e){e.INTERVAL="frequency[]",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(d||(d={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(p||(p={}));var v=(i={},(0,u.Z)(i,p.CREATED_AT,"Created at"),(0,u.Z)(i,p.NAME,"Name"),(0,u.Z)(i,p.PIPELINE,"Pipeline"),(0,u.Z)(i,p.STATUS,"Active"),(0,u.Z)(i,p.TYPE,"Type"),i)},31882:function(e,n,r){"use strict";var t=r(38626),i=r(71180),o=r(55485),u=r(30160),l=r(44897),c=r(72473),a=r(70515),s=r(61896),d=r(28598),p=t.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||l.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||l.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((a.iI+s.Al)/2,"px;\n height: ").concat(1.5*a.iI+s.Al,"px;\n padding: ").concat(a.iI/1.5,"px ").concat(1.25*a.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((a.iI/2+s.Al)/2,"px;\n height: ").concat(s.Al+a.iI/2+2,"px;\n padding: ").concat(a.iI/4,"px ").concat(a.iI,"px;\n ")}),(function(e){return e.xsmall&&"\n border-radius: ".concat((a.iI/1+s.Al)/1,"px;\n height: ").concat(20,"px;\n padding: 4px 6px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||l.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,r=e.children,t=e.disabled,l=e.label,s=e.monospace,f=e.onClick,v=e.primary,g=e.small,h=e.xsmall;return(0,d.jsx)(p,{border:n,primary:v,small:g,xsmall:h,children:(0,d.jsx)(i.ZP,{basic:!0,disabled:t,noBackground:!0,noPadding:!0,onClick:f,transparent:!0,children:(0,d.jsxs)(o.ZP,{alignItems:"center",children:[r,l&&(0,d.jsx)(u.ZP,{monospace:s,small:g,xsmall:h,children:l}),!t&&f&&(0,d.jsx)("div",{style:{marginLeft:2}}),!t&&f&&(0,d.jsx)(c.x8,{default:v,muted:!v,size:g?a.iI:1.25*a.iI})]})})})}},46732:function(e,n,r){"use strict";var t=r(82394),i=r(26304),o=(r(82684),r(50724)),u=r(70374),l=r(28598),c=["children","items","open","onClickCallback","onClickOutside","parentRef","uuid","zIndex"];function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function s(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?a(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}n.Z=function(e){var n=e.children,r=e.items,t=e.open,a=e.onClickCallback,d=e.onClickOutside,p=e.parentRef,f=e.uuid,v=e.zIndex,g=(0,i.Z)(e,c),h=(0,l.jsxs)("div",{style:{position:"relative",zIndex:(d?3:2)+(v||0)},children:[(0,l.jsx)("div",{ref:p,children:n}),(0,l.jsx)(u.Z,s(s({},g),{},{items:r,onClickCallback:a,open:t,parentRef:p,uuid:f}))]});return d?(0,l.jsx)(o.Z,{onClickOutside:d,open:!0,children:h}):h}},35185:function(e,n,r){"use strict";var t=r(82394),i=r(91835),o=(r(82684),r(38626)),u=r(44897),l=r(42631),c=r(70515),a=r(28598);function s(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function d(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?s(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var p=o.default.div.withConfig({displayName:"ProgressBar__ProgressBarContainerStyle",componentId:"sc-10x9ojc-0"})(["border-radius:","px;height:","px;overflow:hidden;position:relative;width:100%;",""],l.BG,.75*c.iI,(function(e){return"\n background-color: ".concat((e.theme.monotone||u.Z.monotone).grey200,";\n ")})),f=o.default.div.withConfig({displayName:"ProgressBar__ProgressBarStyle",componentId:"sc-10x9ojc-1"})(["height:inherit;position:absolute;"," "," "," ",""],(function(e){return!e.danger&&"\n background-color: ".concat((e.theme.progress||u.Z.progress).positive,";\n ")}),(function(e){return e.progress&&"\n width: ".concat(e.progress,"%;\n ")}),(function(e){return e.danger&&"\n background-color: ".concat((e.theme.progress||u.Z.progress).negative,";\n ")}),(function(e){return e.animateProgress&&"\n animation: animate-progress ".concat(e.animateProgress.duration,"ms linear forwards;\n\n @keyframes animate-progress {\n 0% {\n width: ").concat(e.animateProgress.start,"%;\n }\n\n 100% {\n width: ").concat(e.animateProgress.end,"%;\n }\n }\n ")}));n.Z=function(e){var n=(0,i.Z)({},e);return(0,a.jsx)(p,d(d({},n),{},{children:(0,a.jsx)(f,d({},n))}))}},38415:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return Ce}});var t=r(77837),i=r(75582),o=r(82394),u=r(38860),l=r.n(u),c=r(12691),a=r.n(c),s=r(82684),d=r(69864),p=r(34376),f=r(24138),v=r(15338),g=r(93369),h=r(48670),m=r(55072),x=r(75457),b=r(30229),j=r(93808),y=r(82359),O=r(71610),w=r(71180),Z=r(90299),P=r(55485),I=r(85854),k=r(37899),_=r(65956),C=r(38276),E=r(30160),T=r(44897),S=r(70515),N={uuid:"RUNTIME VARIABLES"},R={uuid:"BOOKMARK VALUES"},M=r(32080),A=r(8916),D=r(81728),B=r(28598);function V(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function L(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?V(Object(r),!0).forEach((function(n){(0,o.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var U="".concat(S.iI,"px ").concat(3*S.iI,"px");var Y=function(e){var n=e.initialPipelineSchedulePayload,r=e.onCancel,t=e.onSuccess,i=e.pipeline,u=e.variables,l=(0,s.useState)(null),c=l[0],a=l[1],d=(0,s.useState)(!0),p=d[0],f=d[1],g=(0,s.useState)(u||{}),h=g[0],m=g[1],x=(0,s.useState)(null),j=x[0],y=x[1],V=(0,s.useMemo)((function(){return L(L({},n),{},{name:(0,D.Y6)(),variables:p?(0,A.e7)(L(L({},h),c?(0,o.Z)({},b.PN,c):{})):null})}),[c,n,p,h]),Y=(0,s.useMemo)((function(){return null!==i&&void 0!==i&&i.blocks?(0,M.n)(i):null}),[i]),H=(0,s.useMemo)((function(){var e;return Y&&(null===(e=Object.keys(Y||{}))||void 0===e?void 0:e.length)>=1?[N,R]:null}),[Y]);(0,s.useEffect)((function(){(null===H||void 0===H?void 0:H.length)>=1&&!j&&y(null===H||void 0===H?void 0:H[0])}),[j,y,H]);var F=(0,s.useMemo)((function(){return null!==H&&void 0!==H&&H.length?(0,B.jsx)(Z.Z,{onClickTab:function(e){y(e)},selectedTabUUID:null===j||void 0===j?void 0:j.uuid,tabs:H,underlineStyle:!0}):null}),[j,y,H]);return(0,B.jsxs)(_.Z,{noPadding:!0,footer:(0,B.jsxs)(P.ZP,{alignItems:"center",fullWidth:!0,justifyContent:"flex-end",children:[(0,B.jsx)(w.ZP,{onClick:function(){t({pipeline_schedule:V}),r()},padding:U,primaryAlternate:!0,children:"Run now"}),(0,B.jsx)(C.Z,{mr:1}),(0,B.jsx)(w.ZP,{borderColor:T.Z.background.page,onClick:r,padding:U,secondary:!0,children:"Cancel"})]}),header:(0,B.jsx)(I.Z,{level:5,children:"Run pipeline now"}),maxHeight:"90vh",minWidth:85*S.iI,subtitle:(0,B.jsxs)(B.Fragment,{children:[!(null!==H&&void 0!==H&&H.length)&&(0,B.jsx)(C.Z,{p:S.cd,children:(0,B.jsx)(E.ZP,{default:!0,children:"Creates a new trigger and immediately runs the current pipeline once."})}),(null===H||void 0===H?void 0:H.length)>=1&&F,(0,B.jsx)(v.Z,{light:!0})]}),children:[(!(null!==H&&void 0!==H&&H.length)||N.uuid===(null===j||void 0===j?void 0:j.uuid))&&(0,B.jsxs)(B.Fragment,{children:[(null===H||void 0===H?void 0:H.length)>=1&&(0,B.jsx)(C.Z,{p:S.cd,children:(0,B.jsx)(E.ZP,{default:!0,children:"Creates a new trigger and immediately runs the current pipeline once."})}),(0,B.jsx)(k.Z,{enableVariablesOverwrite:p,originalVariables:u,runtimeVariables:h,setEnableVariablesOverwrite:f,setRuntimeVariables:m})]}),R.uuid===(null===j||void 0===j?void 0:j.uuid)&&(0,B.jsx)(O.Z,{bookmarkValues:c,pipeline:i,setBookmarkValues:a})]})},H=r(97618),F=r(72473),G=r(38626),z=r(42631),X=r(47041),q=r(91437),W=G.default.div.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-pu8csx-0"})([""," overflow-y:auto;position:relative;width:100%;z-index:3;border-radius:","px;"," "," "," ",""],X.w5,z.n_,(function(e){return"\n background-color: ".concat((e.theme.background||T.Z.background).page,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.flex&&"\n flex: 1;\n "}),(function(e){return(e.noBorder||e.noBorderRadius)&&"\n border-radius: 0;\n "})),K=G.default.div.withConfig({displayName:"indexstyle__ColumnHeaderRowStyle",componentId:"sc-pu8csx-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;position:sticky;top:0;width:100%;z-index:2;"," "," ",""],z.n_,z.n_,(function(e){return"\n background-color: ".concat((e.theme.background||T.Z.background).panel,";\n ")}),(function(e){return!e.noBorder&&"\n border: 1px solid ".concat((e.theme.interactive||T.Z.interactive).defaultBorder,";\n ")}),(function(e){return(e.noBorder||e.noBorderRadius)&&"\n border-radius: 0;\n "})),Q=G.default.div.withConfig({displayName:"indexstyle__ColumnHeaderCellStyle",componentId:"sc-pu8csx-2"})([""," ",""],(function(e){return!e.small&&"\n padding: ".concat(1.5*S.iI,"px;\n ")}),(function(e){return e.small&&"\n padding: ".concat(1.5*S.iI,"px;\n ")})),J=G.default.div.withConfig({displayName:"indexstyle__RowTitleStyle",componentId:"sc-pu8csx-3"})([""," "," ",""],(function(e){return"\n background-color: ".concat((e.theme.background||T.Z.background).header,";\n border: 1px solid ").concat((e.theme.interative||T.Z.interactive).defaultBorder,";\n ")}),(function(e){return!e.small&&"\n padding: ".concat(1.5*S.iI,"px;\n ")}),(function(e){return e.small&&"\n padding: ".concat(1.5*S.iI,"px;\n ")})),$=G.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-pu8csx-4"})([""," "," "," ",""],(0,q.eR)(),(function(e){return"\n background-color: ".concat((e.theme.background||T.Z.background).page,";\n border-top: none;\n border-bottom: none;\n ")}),(function(e){return!e.noBorder&&"\n border-bottom: 1px solid ".concat((e.theme.interactive||T.Z.interactive).defaultBorder,";\n border-left: 1px solid ").concat((e.theme.interactive||T.Z.interactive).defaultBorder,";\n border-right: 1px solid ").concat((e.theme.interactive||T.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.finalRow&&!e.noBorderRadius&&"\n border-bottom-left-radius: ".concat(z.n_,"px;\n border-bottom-right-radius: ").concat(z.n_,"px;\n ")})),ee=G.default.div.withConfig({displayName:"indexstyle__TextStyle",componentId:"sc-pu8csx-5"})(["p{cursor:pointer;}"]),ne=G.default.div.withConfig({displayName:"indexstyle__RowCellStyle",componentId:"sc-pu8csx-6"})(["width:100%;z-index:0;"," "," "," "," ",""],(function(e){return!e.first&&"\n border-left: 1px solid ".concat((e.theme.background||T.Z.background).page,";\n ")}),(function(e){return!e.small&&"\n padding: ".concat(1.5*S.iI,"px;\n ")}),(function(e){return e.small&&"\n padding: ".concat(1.5*S.iI,"px;\n ")}),(function(e){return e.textColor&&"\n & p {\n color: ".concat(e.textColor,";\n }\n ")}),(function(e){return e.vanish&&"\n border: none;\n padding: 0 !important;\n width: 0% !important;\n height: 100% !important;\n background-color: ".concat((e.theme.background||T.Z.background).page," !important;\n ")})),re=r(35185);var te=function(e){var n,r=e.cellIndex,t=e.danger,i=e.flex,o=e.render,u=e.rowGroupIndex,l=e.rowIndex,c=e.selected,a=e.small,d=e.showBackground,p=e.showProgress,f=e.textColor,v=e.value,g=e.vanish,m=(0,s.useState)(!1),x=m[0],b=m[1],j=Array.isArray(v);return n=o?o(v):"function"===typeof v?v({selected:c}):j?(0,B.jsxs)(H.Z,{alignItems:"start",flexDirection:"row",justifyContent:"space-between",children:[(0,B.jsxs)(E.ZP,{small:a,textOverflow:!0,title:v[0],children:[x&&(0,B.jsx)(B.Fragment,{children:"".concat(v[0]," & ").concat(v.length-1," more")}),!x&&(0,B.jsx)(B.Fragment,{children:v.map((function(e){return(0,B.jsx)("div",{children:e},e)}))})]}),(0,B.jsxs)(h.Z,{onClick:function(){return b(!x)},children:[x&&(0,B.jsx)(F.K5,{muted:!0,size:2*S.iI}),!x&&(0,B.jsx)(F.ol,{muted:!0,size:2*S.iI})]})]}):p?(0,B.jsx)(P.ZP,{alignItems:"center",fullHeight:!0,fullWidth:!0,children:(0,B.jsx)(re.Z,{danger:v<80,progress:v})}):(0,B.jsx)(E.ZP,{bold:t,danger:t,small:a,textOverflow:!0,title:v,children:v}),(0,B.jsx)(H.Z,{flex:i,textOverflow:!0,children:(0,B.jsx)(ne,{first:0===r,showBackground:d,small:a,textColor:f,vanish:g,children:!g&&(0,B.jsxs)(B.Fragment,{children:[n," "]})})},"cell-".concat(u,"-").concat(l,"-").concat(r,"-").concat(v))};var ie=function(e){var n=e.columnFlexNumbers,r=e.columnHeaders,t=e.height,i=e.isTextSelectionRequired,o=e.noBorder,u=e.noBorderRadius,l=e.onClickRow,c=e.onHoverRow,a=e.renderRowCellByIndex,d=e.rowGroupData,p=void 0===d?[]:d,f=e.selectedRowIndexes,v=e.small,g=e.flex,m=e.warnings,x=void 0===m?[]:m,b=(0,s.useMemo)((function(){return p.length}),[p]);return(0,B.jsxs)(W,{flex:g,height:t,noBorder:o,noBorderRadius:u,noScrollbarTrackBackground:!0,children:[(0,B.jsx)(K,{noBorder:o,noBorderRadius:u,children:(0,B.jsx)(P.ZP,{alignItems:"center",children:r.map((function(e,r){var t=e.Icon,i=e.label;return(0,B.jsx)(H.Z,{flex:n[r],children:(0,B.jsx)(Q,{first:0===r,small:v,children:(0,B.jsxs)(P.ZP,{alignItems:"center",children:[t&&(0,B.jsx)(F.Jr,{}),t&&(0,B.jsx)(C.Z,{mr:1}),(0,B.jsx)(E.ZP,{bold:!0,children:i})]})})},i)}))})}),p&&p.map((function(e,r){var t,s=e.title,d=e.rowData,p=s||r,g=[];s&&(t=(0,B.jsx)(J,{small:v,children:(0,B.jsx)(E.ZP,{bold:!0,children:s})}));var m=null===d||void 0===d?void 0:d.length;return null===d||void 0===d||d.forEach((function(e,t){var s=e.columnTextColors,d=e.columnValues,j=e.danger,y=e.uuid,O=(null===f||void 0===f?void 0:f[0])===r&&(null===f||void 0===f?void 0:f[1])===t,w=[],Z=x.find((function(e){return e.name===d[0]})),I=Z&&(0,D.HD)(d[1])?(0,D.Tz)(d[1]):d[1],k=Z&&Z.compare(I,Z.val);null===d||void 0===d||d.forEach((function(e,i,o){var u=null===a||void 0===a?void 0:a[i],l=s?s[i]:void 0;Array.isArray(e)?w.push((0,B.jsx)(te,{cellIndex:i,flex:n[i],render:u,rowGroupIndex:r,rowIndex:t,selected:O,showBackground:t%2===1,showProgress:e[0],small:v,textColor:l,value:e[1]},i)):"undefined"===typeof e?(w.pop(),i=o.length+1,w.push((0,B.jsx)(te,{cellIndex:i,danger:j,flex:n[i],render:u,rowGroupIndex:r,rowIndex:t,selected:O,showBackground:t%2===1,small:v,textColor:l,value:e,vanish:!0},i))):w.push((0,B.jsx)(te,{cellIndex:i,danger:k||j,flex:n[i],render:u,rowGroupIndex:r,rowIndex:t,selected:O,showBackground:t%2===1,small:v,textColor:l,value:e},i))}));var _=(0,B.jsx)(P.ZP,{textOverflow:!0,children:w});g.push((0,B.jsxs)($,{finalRow:b-1===r&&m-1===t,hasHover:!!c,noBorder:o,noBorderRadius:u,onMouseEnter:function(){return null===c||void 0===c?void 0:c({rowGroupIndex:r,rowIndex:t,uuid:y})},selected:O,children:[l&&(i?(0,B.jsx)(ee,{onClick:function(){return l({rowGroupIndex:r,rowIndex:t,uuid:y})},role:"cell",children:_}):(0,B.jsx)(h.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:function(){return l({rowGroupIndex:r,rowIndex:t,uuid:y})},preventDefault:!0,children:_})),!l&&_]},"row-group-".concat(p,"-row-").concat(t)))})),(0,B.jsxs)("div",{children:[t,g]},p)}))]})},oe=G.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1xgfh62-0"})(["display:flex;flex-direction:column;height:","px;border-bottom:1px solid ",";"],(function(e){return e.height}),T.Z.borders.medium),ue=r(79633);var le=function(e){var n=e.height,r=e.scheduleType,t=e.variables,o=e.variablesOverride,u=[];Object.entries(t).forEach((function(e){var n=(0,i.Z)(e,2),r=n[0],t=n[1],l=null===o||void 0===o?void 0:o[r];u.push({uuid:r,value:(0,A.FS)(l||t)})})),(0,A.JZ)(u,r);var l=Object.keys(t).length;return(0,B.jsx)(oe,{height:n,children:t&&(0,B.jsx)(ie,{columnFlexNumbers:[1,1],columnHeaders:[{label:"Runtime variable (".concat(l,")")},{label:"Value"}],noBorderRadius:!0,rowGroupData:[{rowData:u.map((function(e){var n=e.uuid,r=e.value;return{columnTextColors:[ue.Or,void 0],columnValues:[n,r],uuid:n}}))}],small:!0})})},ce=r(4190),ae=r(12717),se=r(85544),de=r(29624),pe=r(35686),fe=r(72191),ve=r(28795),ge=r(81066),he=r(24944),me=r(3917),xe=r(69419),be=r(16488),je=r(86735),ye=r(42122),Oe=r(50178),we=r(72619),Ze=r(70320),Pe=r(89538);function Ie(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function ke(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ie(Object(r),!0).forEach((function(n){(0,o.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ie(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function _e(e){var n=e.pipeline,r=(0,p.useRouter)(),t=(0,Oe.Ct)(),u=n.uuid,l=pe.ZP.pipelines.detail(u,{includes_outputs:!1},{revalidateOnFocus:!1}).data,c=(0,s.useMemo)((function(){return(null===l||void 0===l?void 0:l.pipeline)||n}),[null===l||void 0===l?void 0:l.pipeline,n]),j=(0,s.useState)(null),O=j[0],w=j[1],Z=(0,s.useState)(null),P=Z[0],I=Z[1],k=(0,s.useState)(!1),_=k[0],T=k[1],N=pe.ZP.projects.list().data,R=(0,s.useMemo)((function(){var e;return null===N||void 0===N||null===(e=N.projects)||void 0===e?void 0:e[0]}),[N]),M=((0,s.useMemo)((function(){var e;return(0,Ze.hY)(null===R||void 0===R||null===(e=R.features)||void 0===e?void 0:e[y.d.LOCAL_TIMEZONE])}),[null===R||void 0===R?void 0:R.features]),pe.ZP.client_pages.detail("pipeline_schedule:create",{"pipelines[]":[u]},{},{key:"Triggers/Edit/".concat(u)}).data),V=(0,s.useMemo)((function(){return null===M||void 0===M?void 0:M.client_page}),[M]),L=(0,s.useMemo)((function(){var e,n;return null===V||void 0===V||null===(e=V.components)||void 0===e||null===(n=e.find((function(e){return"create_with_interactions_component"===e.uuid})))||void 0===n?void 0:n.enabled}),[V]),U=(0,s.useMemo)((function(){return null===V||void 0===V?void 0:V.disabled}),[V]),H=pe.ZP.variables.pipelines.list(u,{global_only:!0},{revalidateOnFocus:!1}).data,G=null===H||void 0===H?void 0:H.variables,z=(0,xe.iV)(),X=(0,xe.DQ)(z,[b.gm.INTERVAL,b.gm.STATUS,b.gm.TAG,b.gm.TYPE]),q=(0,be.xH)(X),W=null!==z&&void 0!==z&&z.page?z.page:0,K=pe.ZP.pipeline_schedules.pipelines.list(u,ke(ke({},q),{},{_limit:m.Q,_offset:(null!==z&&void 0!==z&&z.page?z.page:0)*m.Q}),{refreshInterval:7500}),Q=K.data,J=K.mutate,$=(0,s.useMemo)((function(){return(null===Q||void 0===Q?void 0:Q.pipeline_schedules)||[]}),[Q]),ee=function(e){return(0,d.Db)(pe.ZP.pipeline_schedules.pipelines.useCreate(u),{onSuccess:function(n){return(0,we.wD)(n,{callback:function(n){var r=n.pipeline_schedule.id;null===e||void 0===e||e(r)},onErrorCallback:function(e,n){return w({errors:n,response:e})}})}})},ne=ee((function(e){return r.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(null===c||void 0===c?void 0:c.uuid,"/triggers/").concat(e,"/edit"))})),re=(0,i.Z)(ne,2),te=re[0],ie=re[1].isLoading,oe=ee(J),ue=(0,i.Z)(oe,2),Ie=ue[0],_e=ue[1].isLoading,Ce=(0,s.useMemo)((function(){return(0,A.Tt)(G)}),[G]),Ee=(0,D.Y6)(),Te=(0,s.useMemo)((function(){return{name:Ee,schedule_interval:b.U5.ONCE,schedule_type:b.Xm.TIME,start_time:(0,me.d$)((new Date).toISOString(),{dayAgo:!0,utcFormat:!0}),status:b.fq.ACTIVE}}),[Ee]),Se=(0,Pe.dd)((function(){return(0,B.jsx)(Y,{initialPipelineSchedulePayload:Te,onCancel:Me,onSuccess:Ie,pipeline:c,variables:Ce})}),{},[G,c,Ce],{background:!0,uuid:"run_pipeline_now_popup"}),Ne=(0,i.Z)(Se,2),Re=Ne[0],Me=Ne[1],Ae=(0,s.useState)(),De=Ae[0],Be=Ae[1],Ve=(0,s.useMemo)((function(){var e=null===De||void 0===De?void 0:De.variables,n=!(0,ye.Qr)(Ce);return function(r){var i=80;if(n){var o=Object.keys(Ce).length;i=46+43*Math.min(5,o)+1}var l=r.height-i;return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(f.ZP,ke(ke({},r),{},{enablePorts:!1,height:l,noStatus:!0})),n&&(0,B.jsx)(le,{height:i,scheduleType:null===De||void 0===De?void 0:De.schedule_type,variables:Ce,variablesOverride:e}),!n&&(0,B.jsxs)(C.Z,{p:S.cd,children:[(0,B.jsx)(E.ZP,{children:"This pipeline has no runtime variables."}),!t&&(0,B.jsxs)(C.Z,{mt:1,children:[(0,B.jsx)(a(),{as:"/pipelines/".concat(u,"/edit?sideview=variables"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,B.jsx)(h.Z,{primary:!0,children:"Click here"})})," ",(0,B.jsx)(E.ZP,{inline:!0,children:"to add variables to this pipeline."})]})]})]})}}),[t,u,null===De||void 0===De?void 0:De.schedule_type,null===De||void 0===De?void 0:De.variables,Ce]),Le=(0,s.useMemo)((function(){var e;return(null===Q||void 0===Q||null===(e=Q.metadata)||void 0===e?void 0:e.count)||[]}),[Q]),Ue=pe.ZP.pipeline_triggers.pipelines.list(u).data,Ye=(0,s.useMemo)((function(){return(0,je.HK)((null===Ue||void 0===Ue?void 0:Ue.pipeline_triggers)||[],(function(e){return e.name}))}),[Ue]);(0,s.useEffect)((function(){var e=((null===Ue||void 0===Ue?void 0:Ue.pipeline_triggers)||[]).find((function(e){var n=e.settings;return null===n||void 0===n?void 0:n.invalid_schedule_interval}));I(e?{displayMessage:'Schedule interval for Trigger (in code) "'.concat(null===e||void 0===e?void 0:e.name,'"')+" is invalid. Please check your cron expression\u2019s syntax in the pipeline\u2019s triggers.yaml file."}:null)}),[null===Ue||void 0===Ue?void 0:Ue.pipeline_triggers]);var He=pe.ZP.tags.list().data,Fe=(0,s.useMemo)((function(){return(0,je.YC)((null===He||void 0===He?void 0:He.tags)||[],(function(e){return e.uuid}))}),[He]),Ge=pe.ZP.pipeline_interactions.detail(L&&u,{filter_for_permissions:1}).data,ze=pe.ZP.interactions.pipeline_interactions.list(L&&u).data,Xe=pe.ZP.pipelines.detail(L&&u).data,qe=(0,s.useMemo)((function(){return(null===Ge||void 0===Ge?void 0:Ge.pipeline_interaction)||{}}),[Ge]),We=((0,s.useMemo)((function(){return(null===ze||void 0===ze?void 0:ze.interactions)||[]}),[ze]),(0,s.useMemo)((function(){var e;return L&&(null===(e=Object.keys((null===qe||void 0===qe?void 0:qe.blocks)||{}))||void 0===e?void 0:e.length)>=1}),[L,qe])),Ke=(0,s.useMemo)((function(){return We&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(C.Z,{ml:"12px"}),(0,B.jsx)(he.lZ,{}),(0,B.jsx)(C.Z,{ml:"12px"}),(0,B.jsx)(g.ZP,ke(ke({},ge.B),{},{Icon:F.yd,inline:!0,onClick:function(){return T(!0)},uuid:"Create trigger with no-code",children:"Create trigger with no-code"}))]})}),[We,T]),Qe=(0,s.useMemo)((function(){return(0,B.jsx)(se.Z,{addButtonProps:!U&&{isLoading:ie,label:"New trigger",onClick:function(){return te({pipeline_schedule:{name:(0,D.Y6)()}})}},filterOptions:{frequency:Object.values(b.U5),status:Object.values(b.fq),tag:Fe.map((function(e){return e.uuid})),type:Object.values(b.Xm)},filterValueLabelMapping:{status:Object.values(b.fq).reduce((function(e,n){return ke(ke({},e),{},(0,o.Z)({},n,(0,D.kC)(n)))}),{}),tag:Fe.reduce((function(e,n){var r=n.uuid;return ke(ke({},e),{},(0,o.Z)({},r,r))}),{}),type:b.Z4},onClickFilterDefaults:function(){r.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(u,"/triggers"))},query:X,resetPageOnFilterApply:!0,secondaryButtonProps:!U&&{beforeIcon:(0,B.jsx)(F.xF,{size:fe.bL}),disabled:t,isLoading:_e,label:"Run@once",onClick:Re,tooltip:"Creates an @once trigger and runs pipeline immediately"},showDivider:!U,children:Ke})}),[te,U,ie,_e,t,Ke,u,X,r,Re,Fe]),Je=(0,s.useMemo)((function(){var e=[];return _?e.push.apply(e,[{label:function(){return"Triggers"},onClick:function(){return T(!1)}},{bold:!0,label:function(){return"New trigger"}}]):e.push({label:function(){return"Triggers"}}),e}),[_,T]);return _?(0,B.jsx)(ae.Z,{creatingWithLimitation:!0,errors:O,onCancel:function(){return T(!1)},pipeline:null===Xe||void 0===Xe?void 0:Xe.pipeline,setErrors:w,useCreateScheduleMutation:ee}):(0,B.jsx)(x.Z,{breadcrumbs:Je,buildSidekick:!_&&Ve,errors:O||P,pageName:ve.M.TRIGGERS,pipeline:c,setErrors:w,subheader:!_&&Qe,title:function(e){var n=e.name;return"".concat(n," triggers")},uuid:"".concat(ve.M.TRIGGERS,"_").concat(u),children:!_&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(v.Z,{light:!0}),Q?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(de.Z,{fetchPipelineSchedules:J,pipeline:c,pipelineSchedules:$,pipelineTriggersByName:Ye,selectedSchedule:De,setErrors:w,setSelectedSchedule:Be}),(0,B.jsx)(C.Z,{p:2,children:(0,B.jsx)(m.ZP,{maxPages:9,onUpdate:function(e){var n=Number(e),t=ke(ke({},z),{},{page:n>=0?n:0});r.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(u,"/triggers?").concat((0,xe.uM)(t)))},page:Number(W),totalPages:Math.ceil(Le/m.Q)})})]}):(0,B.jsx)(C.Z,{m:2,children:(0,B.jsx)(ce.Z,{inverted:!0,large:!0})})]})})}_e.getInitialProps=function(){var e=(0,t.Z)(l().mark((function e(n){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:r}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var Ce=(0,j.Z)(_e)},40183:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/triggers",function(){return r(38415)}])}},function(e){e.O(0,[2678,1154,844,5820,1124,341,9161,4495,9302,874,1557,8264,7858,5499,5283,5457,3745,8998,9624,2474,2717,9774,2888,179],(function(){return n=40183,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1221],{52749:function(e,n,i){"use strict";var t=i(82394),o=i(82684),r=i(71180),u=i(55485),l=i(93369),c=i(7267),d=i(38276),s=i(30160),a=i(35576),p=i(17488),f=i(72473),v=i(4015),h=i(70515),m=i(81728),b=i(28598);function g(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function x(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?g(Object(i),!0).forEach((function(n){(0,t.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):g(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}n.Z=function(e){var n,i,t,g,j=e.createPipeline,Z=e.isLoading,y=e.onClose,w=(0,o.useRef)(null),P=(0,o.useState)(!1),I=P[0],C=P[1],_=(0,o.useState)({name:(0,m.Y6)()}),k=_[0],O=_[1];return(0,o.useEffect)((function(){var e;null===w||void 0===w||null===(e=w.current)||void 0===e||e.focus()}),[]),(0,b.jsxs)(v.Nk,{children:[(0,b.jsx)(v.I5,{children:(0,b.jsx)(u.ZP,{alignItems:"center",justifyContent:"center",children:(0,b.jsx)(f.xq,{size:5*h.iI,warning:!0})})}),(0,b.jsx)(v.gI,{children:(0,b.jsxs)(d.Z,{py:1,children:[(0,b.jsx)(d.Z,{mb:1,children:(0,b.jsx)(s.ZP,{default:!0,children:"New pipeline"})}),(0,b.jsx)(s.ZP,{textOverflow:!0,children:"Using AI"})]})}),(0,b.jsxs)(v.gI,{children:[(0,b.jsx)(s.ZP,{default:!0,children:"Name"}),(0,b.jsx)(p.Z,{alignRight:!0,noBackground:!0,noBorder:!0,onChange:function(e){return O((function(n){return x(x({},n),{},{name:e.target.value})}))},paddingVertical:h.iI,placeholder:"Enter pipeline name...",value:(null===k||void 0===k?void 0:k.name)||""})]}),(0,b.jsx)(v.gI,{children:(0,b.jsxs)(u.ZP,{flexDirection:"column",fullWidth:!0,children:[(0,b.jsx)(d.Z,{mb:2,pt:1,children:(0,b.jsx)(s.ZP,{default:!0,children:"Describe what the pipeline should do"})}),(0,b.jsxs)(d.Z,{pb:1,pr:h.cd,children:[(0,b.jsx)(a.Z,{fullWidth:!0,onChange:function(e){return O((function(n){return x(x({},n),{},{llm:{request:{pipeline_description:e.target.value},use_case:c.z.GENERATE_PIPELINE_WITH_DESCRIPTION}})}))},placeholder:"Type the pipeline purpose...",ref:w,rows:8,value:(null===k||void 0===k||null===(n=k.llm)||void 0===n||null===(i=n.request)||void 0===i?void 0:i.pipeline_description)||""}),(Z||I)&&(0,b.jsx)(d.Z,{mt:1,children:(0,b.jsx)(s.ZP,{warning:!0,children:"Pipeline is being generated using AI based on your description above..."})})]})]})}),(0,b.jsx)(v.$b,{children:(0,b.jsxs)(u.ZP,{fullWidth:!0,children:[(0,b.jsx)(l.ZP,{bold:!0,centerText:!0,disabled:!(null!==k&&void 0!==k&&k.name)||!(null!==k&&void 0!==k&&null!==(t=k.llm)&&void 0!==t&&null!==(g=t.request)&&void 0!==g&&g.pipeline_description),loading:Z||I,onClick:function(){C(!0),j({pipeline:k}).then((function(){return C(!1)}))},primary:!0,tabIndex:0,uuid:"AIControlPanel/CreatePipeline",children:"Create pipeline"}),y&&(0,b.jsx)(d.Z,{ml:1,children:(0,b.jsx)(r.ZP,{onClick:y,tabIndex:0,children:"Cancel"})})]})})]})}},60523:function(e,n,i){"use strict";var t=i(21831),o=i(82394),r=i(82684),u=i(38626),l=i(34376),c=i(54750),d=i(71180),s=i(90299),a=i(44898),p=i(55485),f=i(88328),v=i(38276),h=i(4190),m=i(48381),b=i(5755),g=i(30160),x=i(35686),j=i(72473),Z=i(84649),y=i(32929),w=i(15610),P=i(19183),I=i(28598);function C(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function _(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?C(Object(i),!0).forEach((function(n){(0,o.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):C(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}n.Z=function(e){var n,i=e.contained,o=e.defaultLinkUUID,C=e.defaultTab,k=e.objectType,O=e.onClickCustomTemplate,T=e.pipelineUUID,A=e.showAddingNewTemplates,E=e.showBreadcrumbs,S=e.tabs,M=(0,l.useRouter)(),D=(0,r.useContext)(u.ThemeContext),R=(0,P.i)(),N=R.height,U=R.width,L=(0,r.useMemo)((function(){return S||y.dP}),[S]),B=(0,r.useState)(A||!1),G=B[0],H=B[1],Y=(0,r.useState)(o?y.qy.find((function(e){return e.uuid===o})):y.qy[0]),$=Y[0],q=Y[1],W=(0,r.useState)(C?L.find((function(e){return e.uuid===(null===C||void 0===C?void 0:C.uuid)})):L[0]),z=W[0],F=W[1],V=(0,r.useState)(null),Q=V[0],K=V[1],X=x.ZP.custom_templates.list({object_type:a.Z},{},{pauseFetch:y.n9.uuid!==(null===z||void 0===z?void 0:z.uuid)}),J=X.data,ee=X.mutate,ne=(0,r.useMemo)((function(){var e=(null===J||void 0===J?void 0:J.custom_templates)||[];return null!==$&&void 0!==$&&$.filterTemplates?null===$||void 0===$?void 0:$.filterTemplates(e):e}),[J,$]),ie=x.ZP.custom_templates.list({object_type:a.R},{},{pauseFetch:y.A2.uuid!==(null===z||void 0===z?void 0:z.uuid)}),te=ie.data,oe=ie.mutate,re=(0,r.useMemo)((function(){var e=(null===te||void 0===te?void 0:te.custom_templates)||[];return null!==$&&void 0!==$&&$.filterTemplates?null===$||void 0===$?void 0:$.filterTemplates(e):e}),[te,$]),ue=(0,r.useMemo)((function(){return y.qy.map((function(e){var n=e.Icon,i=e.label,t=e.selectedBackgroundColor,o=e.selectedIconProps,r=e.uuid,u=(null===$||void 0===$?void 0:$.uuid)===r,l=_({size:Z.ZG},u&&o?o:{});return(0,I.jsx)(Z.wj,{onClick:function(){return q(e)},selected:u,children:(0,I.jsxs)(p.ZP,{alignItems:"center",children:[(0,I.jsx)(Z.ze,{backgroundColor:u&&t?t(D):null,children:n?(0,I.jsx)(n,_({},l)):(0,I.jsx)(j.pd,_({},l))}),(0,I.jsx)(g.ZP,{bold:!0,large:!0,children:i?i():r})]})},r)}))}),[$,D]),le=(0,r.useMemo)((function(){return y.hS.map((function(e){var n=e.Icon,i=e.label,t=e.selectedBackgroundColor,o=e.selectedIconProps,r=e.uuid,u=(null===$||void 0===$?void 0:$.uuid)===r,l=_({size:Z.ZG},u&&o?o:{});return(0,I.jsx)(Z.wj,{onClick:function(){return q(e)},selected:u,children:(0,I.jsxs)(p.ZP,{alignItems:"center",children:[(0,I.jsx)(Z.ze,{backgroundColor:u&&t?t(D):null,children:n?(0,I.jsx)(n,_({},l)):(0,I.jsx)(j.pd,_({},l))}),(0,I.jsx)(g.ZP,{bold:!0,large:!0,children:i?i():r})]})},r)}))}),[$,D]),ce=(0,r.useMemo)((function(){return null===ne||void 0===ne?void 0:ne.map((function(e){var n=e.description,i=e.name,o=e.tags,r=e.template_uuid,u=e.user,l=[];return null!==o&&void 0!==o&&o.length?l.push.apply(l,(0,t.Z)(o)):null!==u&&void 0!==u&&u.username&&l.push(null===u||void 0===u?void 0:u.username),(0,I.jsxs)(Z.UE,{onClick:function(){O?O(e):M.push("/templates/[...slug]","/templates/".concat(encodeURIComponent(r)))},children:[(0,I.jsx)(Z.Tj,{children:(0,I.jsx)(g.ZP,{bold:!0,monospace:!0,textOverflow:!0,children:i||r})}),(0,I.jsx)(Z.SL,{children:(0,I.jsx)(g.ZP,{default:!!n,italic:!n,muted:!n,textOverflowLines:2,children:n||"No description"})}),(0,I.jsx)(Z.EN,{children:(null===l||void 0===l?void 0:l.length)>=1&&(0,I.jsx)(m.Z,{tags:null===l||void 0===l?void 0:l.map((function(e){return{uuid:e}}))})})]},r)}))}),[ne,O,M]),de=(0,r.useMemo)((function(){return null===re||void 0===re?void 0:re.map((function(e){var n=e.description,i=e.name,o=e.tags,r=e.template_uuid,u=e.user,l=[];return null!==o&&void 0!==o&&o.length?l.push.apply(l,(0,t.Z)(o)):null!==u&&void 0!==u&&u.username&&l.push(null===u||void 0===u?void 0:u.username),(0,I.jsxs)(Z.UE,{onClick:function(){O?O(e):M.push("/templates/[...slug]","/templates/".concat(encodeURIComponent(r),"?object_type=").concat(a.R))},children:[(0,I.jsx)(Z.Tj,{children:(0,I.jsx)(g.ZP,{bold:!0,monospace:!0,textOverflow:!0,children:i||r})}),(0,I.jsx)(Z.SL,{children:(0,I.jsx)(g.ZP,{default:!!n,italic:!n,muted:!n,textOverflowLines:2,children:n||"No description"})}),(0,I.jsx)(Z.EN,{children:(null===l||void 0===l?void 0:l.length)>=1&&(0,I.jsx)(m.Z,{tags:null===l||void 0===l?void 0:l.map((function(e){return{uuid:e}}))})})]},r)}))}),[re,O,M]),se=(0,r.useMemo)((function(){if(!E)return null;var e=[];return G?e.push.apply(e,[{label:function(){return"Templates"},onClick:function(){H(!1)}},{bold:!0,label:function(){return"New custom template"}}]):e.push({label:function(){return"Templates"}}),(0,I.jsx)(Z.FX,{children:(0,I.jsx)(c.Z,{breadcrumbs:e})})}),[G,E]),ae=(0,r.useMemo)((function(){return E?36:0}),[E]),pe=(0,r.useMemo)((function(){return N-ae}),[N,ae]);if(G)return n=a.R===k&&T?(0,I.jsx)(f.Z,{onMutateSuccess:oe,pipelineUUID:T,templateAttributes:$&&(null===$||void 0===$?void 0:$.uuid)!==(null===y.qy||void 0===y.qy?void 0:y.qy[0].uuid)?{pipeline_type:null===$||void 0===$?void 0:$.uuid}:null,templateUUID:null===Q||void 0===Q?void 0:Q.template_uuid}):(0,I.jsx)(b.Z,{contained:i,heightOffset:ae,onCreateCustomTemplate:i?function(e){K(e)}:null,onMutateSuccess:ee,templateAttributes:$&&(null===$||void 0===$?void 0:$.uuid)!==(null===y.qy||void 0===y.qy?void 0:y.qy[0].uuid)?{block_type:null===$||void 0===$?void 0:$.uuid}:null,templateUUID:null===Q||void 0===Q?void 0:Q.template_uuid}),i?(0,I.jsxs)(I.Fragment,{children:[E&&se,(0,I.jsx)(Z.Rd,{height:pe,width:U,children:n})]}):n;var fe=(0,I.jsxs)(Z.Nk,{children:[(0,I.jsxs)(Z.bC,{height:i?pe:null,children:[(0,I.jsx)(Z.Yf,{children:(0,I.jsx)(s.Z,{noPadding:!0,onClickTab:function(e){i?F(e):(0,w.u)({object_type:y.A2.uuid===e.uuid?a.R:a.Z})},selectedTabUUID:null===z||void 0===z?void 0:z.uuid,tabs:L})}),(0,I.jsxs)(Z.wl,{contained:i,heightOffset:ae,children:[y.n9.uuid===(null===z||void 0===z?void 0:z.uuid)&&ue,y.A2.uuid===(null===z||void 0===z?void 0:z.uuid)&&le]})]}),(0,I.jsxs)(Z.w5,{children:[y.n9.uuid===(null===z||void 0===z?void 0:z.uuid)&&(0,I.jsx)(Z.HS,{children:(0,I.jsx)(d.ZP,{beforeIcon:(0,I.jsx)(j.mm,{size:Z.ZG}),onClick:function(){H(!0)},primary:!0,children:"New block template"})}),y.n9.uuid===(null===z||void 0===z?void 0:z.uuid)&&(0,I.jsxs)(I.Fragment,{children:[!J&&(0,I.jsx)(v.Z,{p:2,children:(0,I.jsx)(h.Z,{inverted:!0})}),J&&!(null!==ce&&void 0!==ce&&ce.length)&&(0,I.jsxs)(v.Z,{p:2,children:[(0,I.jsx)(g.ZP,{children:"There are currently no templates matching your search."}),(0,I.jsx)("br",{}),(0,I.jsx)(g.ZP,{children:"Add a new template by clicking the button above."})]}),(null===ce||void 0===ce?void 0:ce.length)>=1&&(0,I.jsx)(Z.n8,{children:ce})]}),y.A2.uuid===(null===z||void 0===z?void 0:z.uuid)&&(0,I.jsxs)(I.Fragment,{children:[!te&&(0,I.jsx)(v.Z,{p:2,children:(0,I.jsx)(h.Z,{inverted:!0})}),te&&!(null!==de&&void 0!==de&&de.length)&&(0,I.jsxs)(v.Z,{p:2,children:[(0,I.jsx)(g.ZP,{children:"There are currently no templates matching your search."}),(0,I.jsx)("br",{}),(0,I.jsx)(g.ZP,{children:'Add a new template by right-clicking a pipeline row from the Pipelines page and selecting "Create template".'})]}),(null===de||void 0===de?void 0:de.length)>=1&&(0,I.jsx)(Z.n8,{children:de})]})]})]});return i?(0,I.jsxs)(I.Fragment,{children:[E&&se,(0,I.jsx)(Z.Rd,{height:pe,width:U,children:fe})]}):fe}},94629:function(e,n,i){"use strict";i.d(n,{Z:function(){return C}});var t=i(82394),o=i(21831),r=i(82684),u=i(50724),l=i(82555),c=i(97618),d=i(70613),s=i(31557),a=i(68899),p=i(28598);function f(e,n){var i=e.children,t=e.noPadding;return(0,p.jsx)(a.HS,{noPadding:t,ref:n,children:i})}var v=r.forwardRef(f),h=i(62547),m=i(82571),b=i(98464),g=i(77417),x=i(46684),j=i(70515),Z=i(53808),y=i(19183);function w(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function P(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?w(Object(i),!0).forEach((function(n){(0,t.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):w(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}function I(e,n){e.addProjectBreadcrumbToCustomBreadcrumbs;var i=e.after,t=e.afterHeader,f=e.afterHidden,w=e.afterWidth,I=e.afterWidthOverride,C=e.appendBreadcrumbs,_=e.before,k=e.beforeWidth,O=e.breadcrumbs,T=e.children,A=e.contained,E=e.errors,S=e.headerMenuItems,M=e.headerOffset,D=e.hideAfterCompletely,R=e.mainContainerHeader,N=e.navigationItems,U=e.setAfterHidden,L=e.setErrors,B=e.subheaderChildren,G=e.subheaderNoPadding,H=e.title,Y=e.uuid,$=(0,y.i)().width,q="dashboard_after_width_".concat(Y),W="dashboard_before_width_".concat(Y),z=(0,r.useRef)(null),F=(0,r.useState)(I?w:(0,Z.U2)(q,w)),V=F[0],Q=F[1],K=(0,r.useState)(!1),X=K[0],J=K[1],ee=(0,r.useState)(_?Math.max((0,Z.U2)(W,k),13*j.iI):null),ne=ee[0],ie=ee[1],te=(0,r.useState)(!1),oe=te[0],re=te[1],ue=(0,r.useState)(null)[1],le=(0,g.Z)().project,ce=[];O&&ce.push.apply(ce,(0,o.Z)(O)),null!==O&&void 0!==O&&O.length&&!C||!le||null!==O&&void 0!==O&&O.length||ce.unshift({bold:!C,label:function(){return H}}),(0,r.useEffect)((function(){null===z||void 0===z||!z.current||X||oe||null===ue||void 0===ue||ue(z.current.getBoundingClientRect().width)}),[X,V,oe,ne,z,ue,$]),(0,r.useEffect)((function(){X||(0,Z.t8)(q,V)}),[f,X,V,q]),(0,r.useEffect)((function(){oe||(0,Z.t8)(W,ne)}),[oe,ne,W]);var de=(0,b.Z)(w);return(0,r.useEffect)((function(){I&&de!==w&&Q(w)}),[I,w,de]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(d.Z,{title:H}),(0,p.jsx)(s.Z,{breadcrumbs:ce,menuItems:S}),(0,p.jsxs)(a.Nk,{ref:n,children:[0!==(null===N||void 0===N?void 0:N.length)&&(0,p.jsx)(a.lm,{showMore:!0,children:(0,p.jsx)(m.Z,{navigationItems:N,showMore:!0})}),(0,p.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(h.Z,{after:i,afterHeader:t,afterHeightOffset:x.Mz,afterHidden:f,afterMousedownActive:X,afterWidth:V,before:_,beforeHeightOffset:x.Mz,beforeMousedownActive:oe,beforeWidth:a.k1+(_?ne:0),contained:A,headerOffset:M,hideAfterCompletely:!U||D,leftOffset:_?a.k1:null,mainContainerHeader:R,mainContainerRef:z,setAfterHidden:U,setAfterMousedownActive:J,setAfterWidth:Q,setBeforeMousedownActive:re,setBeforeWidth:ie,children:[B&&(0,p.jsx)(v,{noPadding:G,children:B}),T]})})]}),E&&(0,p.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===L||void 0===L?void 0:L(null)},children:(0,p.jsx)(l.Z,P(P({},E),{},{onClose:function(){return null===L||void 0===L?void 0:L(null)}}))})]})}var C=r.forwardRef(I)},65458:function(e,n,i){"use strict";i.d(n,{d:function(){return s}});var t=i(13507),o=i(72473),r=i(57653),u=i(70515),l=i(81728),c=i(28598),d=1.5*u.iI,s=function(e,n){var i=[{beforeIcon:(0,c.jsx)(o.X5,{}),label:function(){return"Standard (batch)"},onClick:function(){return e({pipeline:{name:(0,l.Y6)()}})},uuid:"Pipelines/NewPipelineMenu/standard"},{beforeIcon:(0,c.jsx)(o.ZG,{}),label:function(){return"Data integration"},onClick:function(){return e({pipeline:{name:(0,l.Y6)(),type:r.qL.INTEGRATION}})},uuid:"Pipelines/NewPipelineMenu/integration"},{beforeIcon:(0,c.jsx)(t.Z,{size:d}),label:function(){return"Streaming"},onClick:function(){return e({pipeline:{name:(0,l.Y6)(),type:r.qL.STREAMING}})},uuid:"Pipelines/NewPipelineMenu/streaming"}];return null!==n&&void 0!==n&&n.showBrowseTemplates&&i.push({beforeIcon:(0,c.jsx)(o.zQ,{}),label:function(){return"From a template"},onClick:function(){var e;return null===n||void 0===n||null===(e=n.showBrowseTemplates)||void 0===e?void 0:e.call(n)},uuid:"Pipelines/NewPipelineMenu/custom_template"}),null!==n&&void 0!==n&&n.showAIModal&&i.push({beforeIcon:(0,c.jsx)(o.xq,{}),label:function(){return"Using AI (beta)"},onClick:function(){var e;return null===n||void 0===n||null===(e=n.showAIModal)||void 0===e?void 0:e.call(n)},uuid:"Pipelines/NewPipelineMenu/AI_modal"}),i}},4015:function(e,n,i){"use strict";i.d(n,{$b:function(){return s},I5:function(){return c},Nk:function(){return l},gI:function(){return d}});var t=i(38626),o=i(44897),r=i(42631),u=i(70515),l=t.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-h093u4-0"})([""," ",""],(function(e){return!e.width&&"\n width: ".concat(40*u.iI,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")})),c=t.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-h093u4-1"})(["padding:","px;",""],2.5*u.iI,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).dashboard,";\n border-left: 1px solid ").concat((e.theme.interactive||o.Z.interactive).defaultBorder,";\n border-right: 1px solid ").concat((e.theme.interactive||o.Z.interactive).defaultBorder,";\n border-top-left-radius: ").concat(r.n_,"px;\n border-top-right-radius: ").concat(r.n_,"px;\n border-top: 1px solid ").concat((e.theme.interactive||o.Z.interactive).defaultBorder,";\n ")})),d=t.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-h093u4-2"})(["align-items:center;justify-content:space-between;",""],(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).dashboard,";\n border-left: 1px solid ").concat((e.theme.interactive||o.Z.interactive).defaultBorder,";\n border-right: 1px solid ").concat((e.theme.interactive||o.Z.interactive).defaultBorder,";\n border-top: 1px solid ").concat((e.theme.interactive||o.Z.interactive).defaultBorder,";\n display: ").concat((null===e||void 0===e?void 0:e.display)||"flex",";\n padding-bottom: ").concat(1*u.iI+((null===e||void 0===e?void 0:e.paddingVerticalAddition)||0),"px;\n padding-left: ").concat(u.cd*u.iI,"px;\n padding-top: ").concat(1*u.iI+((null===e||void 0===e?void 0:e.paddingVerticalAddition)||0),"px;\n ")})),s=t.default.div.withConfig({displayName:"indexstyle__FooterStyle",componentId:"sc-h093u4-3"})(["padding:","px ","px;",""],2.5*u.iI,2*u.iI,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).panel,";\n border-bottom-left-radius: ").concat(r.n_,"px;\n border-bottom-right-radius: ").concat(r.n_,"px;\n border-bottom: 1px solid ").concat((e.theme.interactive||o.Z.interactive).defaultBorder,";\n border-left: 1px solid ").concat((e.theme.interactive||o.Z.interactive).defaultBorder,";\n border-right: 1px solid ").concat((e.theme.interactive||o.Z.interactive).defaultBorder,";\n ")}))},48381:function(e,n,i){"use strict";var t=i(82684),o=i(31882),r=i(55485),u=i(30160),l=i(86735),c=i(28598);n.Z=function(e){var n=e.onClickTag,i=e.tags,d=void 0===i?[]:i,s=(0,t.useMemo)((function(){return(null===d||void 0===d?void 0:d.length)||0}),[d]),a=(0,t.useMemo)((function(){return(0,l.YC)(d||[],"uuid")}),[d]);return(0,c.jsx)(r.ZP,{alignItems:"center",flexWrap:"wrap",children:null===a||void 0===a?void 0:a.reduce((function(e,i){return e.push((0,c.jsx)("div",{style:{marginBottom:2,marginRight:s>=2?4:0,marginTop:2},children:(0,c.jsx)(o.Z,{onClick:n?function(){return n(i)}:null,small:!0,children:(0,c.jsx)(u.ZP,{children:i.uuid})})},"tag-".concat(i.uuid))),e}),[])})}},8666:function(e,n,i){"use strict";var t;i.d(n,{b:function(){return t}}),function(e){e.BLOCK="block",e.PIPELINE="pipeline"}(t||(t={}))},30229:function(e,n,i){"use strict";i.d(n,{PN:function(){return l},TR:function(){return v},U5:function(){return d},Wb:function(){return f},Xm:function(){return r},Z4:function(){return s},fq:function(){return c},gm:function(){return a},kJ:function(){return p}});var t,o,r,u=i(82394),l="__bookmark_values__";!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(r||(r={}));var c,d,s=(t={},(0,u.Z)(t,r.API,(function(){return"API"})),(0,u.Z)(t,r.EVENT,(function(){return"event"})),(0,u.Z)(t,r.TIME,(function(){return"schedule"})),t);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(c||(c={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly",e.ALWAYS_ON="@always_on"}(d||(d={}));var a,p,f=[d.ONCE,d.HOURLY,d.DAILY,d.WEEKLY,d.MONTHLY];!function(e){e.INTERVAL="frequency[]",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(a||(a={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(p||(p={}));var v=(o={},(0,u.Z)(o,p.CREATED_AT,"Created at"),(0,u.Z)(o,p.NAME,"Name"),(0,u.Z)(o,p.PIPELINE,"Pipeline"),(0,u.Z)(o,p.STATUS,"Active"),(0,u.Z)(o,p.TYPE,"Type"),o)},31882:function(e,n,i){"use strict";var t=i(38626),o=i(71180),r=i(55485),u=i(30160),l=i(44897),c=i(72473),d=i(70515),s=i(61896),a=i(28598),p=t.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||l.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||l.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((d.iI+s.Al)/2,"px;\n height: ").concat(1.5*d.iI+s.Al,"px;\n padding: ").concat(d.iI/1.5,"px ").concat(1.25*d.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((d.iI/2+s.Al)/2,"px;\n height: ").concat(s.Al+d.iI/2+2,"px;\n padding: ").concat(d.iI/4,"px ").concat(d.iI,"px;\n ")}),(function(e){return e.xsmall&&"\n border-radius: ".concat((d.iI/1+s.Al)/1,"px;\n height: ").concat(20,"px;\n padding: 4px 6px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||l.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,i=e.children,t=e.disabled,l=e.label,s=e.monospace,f=e.onClick,v=e.primary,h=e.small,m=e.xsmall;return(0,a.jsx)(p,{border:n,primary:v,small:h,xsmall:m,children:(0,a.jsx)(o.ZP,{basic:!0,disabled:t,noBackground:!0,noPadding:!0,onClick:f,transparent:!0,children:(0,a.jsxs)(r.ZP,{alignItems:"center",children:[i,l&&(0,a.jsx)(u.ZP,{monospace:s,small:h,xsmall:m,children:l}),!t&&f&&(0,a.jsx)("div",{style:{marginLeft:2}}),!t&&f&&(0,a.jsx)(c.x8,{default:v,muted:!v,size:h?d.iI:1.25*d.iI})]})})})}},55620:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return Me}});var t=i(77837),o=i(75582),r=i(21831),u=i(82394),l=i(38860),c=i.n(l),d=i(12691),s=i.n(d),a=i(82684),p=i(69864),f=i(34376),v=i(52749),h=i(60523),m=i(71180),b=i(90299),g=i(31882),x=i(94629),j=i(97618),Z=i(55485),y=i(85854),w=i(93369),P=i(65956),I=i(38276),C=i(30160),_=i(35576),k=i(17488),O=i(28598);var T=function(e){var n=e.description,i=e.isLoading,t=e.maxWidth,o=e.minWidth,r=e.noEmptyValue,u=e.onClose,l=e.onSave,c=e.textArea,d=e.title,s=e.value,p=(0,a.useRef)(null),f=(0,a.useState)(s),v=f[0],h=f[1],b=c?_.Z:k.Z;return(0,a.useEffect)((function(){var e;null===p||void 0===p||null===(e=p.current)||void 0===e||e.focus()}),[]),(0,O.jsxs)(P.Z,{maxWidth:t,minWidth:o,children:[(0,O.jsx)(C.ZP,{bold:!0,children:d}),(0,O.jsx)(I.Z,{mt:1,children:(0,O.jsx)(b,{monospace:!0,onChange:function(e){return h(e.target.value)},ref:p,rows:c?7:null,value:v})}),n&&(0,O.jsx)(I.Z,{mt:2,children:(0,O.jsx)(C.ZP,{muted:!0,small:!0,children:n})}),(0,O.jsx)(I.Z,{mt:3,children:(0,O.jsxs)(Z.ZP,{children:[(0,O.jsx)(w.ZP,{bold:!0,inline:!0,loading:i,onClick:function(){v===s||r&&!v?u():l(v)},outline:!0,primary:!0,uuid:"Inputs/InputModal/SaveInput",children:"Save"}),(0,O.jsx)(I.Z,{ml:1}),(0,O.jsx)(m.ZP,{onClick:u,children:"Cancel"})]})})]})},A=i(48670),E=i(55072),S=i(57653),M=i(55729),D=i(93808),R=i(82359),N=i(44085),U=i(4190),L=i(75499),B=i(48381),G=i(69650),H=i(85544),Y=i(35686),$=i(44897),q=i(77417),W=i(42631),z=i(44425),F=i(72473),V=i(23780),Q=i(8666),K=i(46684),X=i(53808),J="pipeline_list_filters",ee="pipeline_list_group_bys",ne="pipeline_list_sort_column_index",ie="pipeline_list_sort_direction",te="pipeline_list_selected_tab_uuid";function oe(e){return(0,X.t8)(J,e),e}function re(e){return(0,X.t8)(ee,e),e}var ue=i(11498),le=i(32929),ce=i(44898),de=i(70515),se=i(30229),ae=i(81655),pe=i(31608),fe=i(81728),ve=i(3917),he=i(72619),me=i(69419),be=i(65458),ge=i(15610),xe=i(86735),je=i(42122),Ze=i(95924),ye=i(70320),we=i(89538),Pe=i(44952);function Ie(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function Ce(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?Ie(Object(i),!0).forEach((function(n){(0,u.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ie(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var _e={Icon:F.Pf,label:function(){return"Recently viewed"},uuid:"recent"},ke={Icon:F.vd,label:function(e){return null!==e&&void 0!==e&&e.count?"All pipelines \u203a ".concat((null===e||void 0===e?void 0:e.count)||0):"All pipelines"},uuid:"all"},Oe=[ke,_e],Te="tab",Ae=[S.$1.SEARCH],Ee={borderRadius:"".concat(W.BG,"px"),iconOnly:!0,noBackground:!0,noBorder:!0,outline:!0,padding:"4px"};function Se(){var e,n,i,t,l=(0,f.useRouter)(),c=(0,a.useRef)(null),d=(0,a.useRef)(null),w=(0,a.useRef)(null),_=(0,a.useRef)(null),k=(0,q.Z)(),D=k.fetchProjects,W=k.project,Ie=(0,a.useState)(null),Se=Ie[0],Me=Ie[1],De=(0,a.useState)(null),Re=De[0],Ne=De[1],Ue=(0,a.useState)(null),Le=Ue[0],Be=Ue[1],Ge=(0,a.useState)(null),He=Ge[0],Ye=Ge[1],$e=(0,a.useState)(null),qe=$e[0],We=$e[1],ze=(0,a.useCallback)((function(e){We(e),clearTimeout(_.current),_.current=setTimeout((function(){return(0,ge.u)((0,u.Z)({},S.$1.SEARCH,e))}),500)}),[We]),Fe=(0,a.useState)({}),Ve=Fe[0],Qe=Fe[1],Ke=(0,a.useState)(null),Xe=Ke[0],Je=Ke[1],en=(0,me.iV)(),nn=Ce((0,u.Z)({},ue.$D.LIMIT,E.Q),(0,me.DQ)(en,[S.$1.SEARCH,S.$1.STATUS,S.$1.TAG,S.$1.TYPE].concat((0,r.Z)(ue.RG)))),tn=(0,a.useMemo)((function(){return null===en||void 0===en?void 0:en.tab}),[en]);(0,a.useEffect)((function(){var e;Me(null===c||void 0===c||null===(e=c.current)||void 0===e?void 0:e.getBoundingClientRect().height)}),[en,c]);var on=(0,a.useMemo)((function(){var e;return(0,ye.hY)(null===W||void 0===W||null===(e=W.features)||void 0===e?void 0:e[R.d.LOCAL_TIMEZONE])}),[null===W||void 0===W?void 0:W.features]),rn=(0,a.useMemo)((function(){var e;return null===W||void 0===W||null===(e=W.features)||void 0===e?void 0:e[R.d.OPERATION_HISTORY]}),[W]),un=(0,a.useMemo)((function(){return on?ae.O$:{}}),[on]),ln=Y.ZP.pipelines.list(Ce(Ce({},nn),{},{include_schedules:1}),{revalidateOnFocus:!1}),cn=ln.data,dn=ln.mutate,sn=(0,a.useMemo)((function(){return(null===en||void 0===en?void 0:en[S.$1.HISTORY_DAYS])||7}),[en]),an=Y.ZP.pipelines.list(Ce(Ce({},nn),{},(e={},(0,u.Z)(e,S.$1.HISTORY_DAYS,(0,fe.HW)(sn)?Number(sn):sn),(0,u.Z)(e,"include_schedules",1),e)),{},{pauseFetch:!rn||!tn||_e.uuid!==tn}),pn=an.data,fn=an.mutate,vn=(0,a.useCallback)((function(e){return e}),[qe]),hn=(0,a.useMemo)((function(){var e=vn((null===cn||void 0===cn?void 0:cn.pipelines)||[]);if(null!==en&&void 0!==en&&en[S.$1.TAG]){var n=en[S.$1.TAG];e=e.filter((function(e){var i=e.tags;return i.some((function(e){return n.includes(e)}))||0===i.length&&n.includes(S.$1.NO_TAGS)}))}return e}),[cn,vn,en]),mn=(0,a.useMemo)((function(){return vn((null===pn||void 0===pn?void 0:pn.pipelines)||[])}),[pn,vn]),bn=(0,a.useMemo)((function(){return(0,xe.HK)(hn,(function(e){return e.uuid}))}),[hn]),gn=(0,a.useMemo)((function(){return(0,xe.HK)(mn,(function(e){return e.uuid}))}),[mn]),xn=(0,a.useCallback)((function(e){var n,i,t,o;return null===e||void 0===e||null===(n=e[2])||void 0===n||null===(i=n.props)||void 0===i||null===(t=i.children)||void 0===t||null===(o=t.props)||void 0===o?void 0:o.children}),[]),jn=(0,a.useMemo)((function(){return(null===Le||void 0===Le?void 0:Le.length)>0?null===Le||void 0===Le?void 0:Le.map((function(e){var n=xn(e);return null===bn||void 0===bn?void 0:bn[n]})):hn}),[xn,Le,hn,bn]),Zn=(0,a.useMemo)((function(){return(null===He||void 0===He?void 0:He.length)>0?null===He||void 0===He?void 0:He.map((function(e){var n=xn(e);return null===gn||void 0===gn?void 0:gn[n]})):mn}),[xn,He,mn,gn]),yn=(0,a.useMemo)((function(){return[1,2,3,4,5,6,8,9]}),[]),wn=null===en||void 0===en?void 0:en[ae.lG.SORT_COL_IDX],Pn=null===en||void 0===en?void 0:en[ae.lG.SORT_DIRECTION],In=(0,a.useMemo)((function(){return wn?{columnIndex:+wn,sortDirection:Pn||ae.sh.ASC}:void 0}),[wn,Pn]),Cn=null===en||void 0===en?void 0:en[S.$1.GROUP],_n=(0,p.Db)((function(e){var n=e.pipelineUUID,i=e.filesOnly,t=void 0!==i&&i;return Y.ZP.downloads.pipelines.useCreate(n)({download:{ignore_folder_structure:t}})}),{onSuccess:function(e){return(0,he.wD)(e,{callback:function(){var n=e.data.download.token;(0,Pe.K)(n)},onErrorCallback:function(e,n){return Je({errors:n,response:e})}})}}),kn=(0,o.Z)(_n,1)[0];(0,a.useEffect)((function(){null!==nn&&void 0!==nn&&nn[S.$1.SEARCH]&&null===qe&&We(null===nn||void 0===nn?void 0:nn[S.$1.SEARCH])}),[nn,qe,We]),(0,a.useEffect)((function(){var e,n={};if(wn&&yn.includes(+wn))(0,X.t8)(ne,wn),Pn&&(0,X.t8)(ie,Pn);else{var i=(0,X.U2)(ne,null),t=(0,X.U2)(ie,ae.sh.ASC);null!==i&&(n[ae.lG.SORT_COL_IDX]=i,n[ae.lG.SORT_DIRECTION]=t)}rn&&(tn?(0,X.t8)(te,tn):n.tab=(0,X.U2)(te,null===Oe||void 0===Oe||null===(e=Oe[0])||void 0===e?void 0:e.uuid));if(Cn)re((0,u.Z)({},Cn,!0));else{var r,l=(0,X.U2)(ee,{});l&&Object.entries(l).forEach((function(e){var n=(0,o.Z)(e,2),i=n[0],t=n[1];!r&&t&&(r=i)})),r&&(n[S.$1.GROUP]=r)}if((0,je.Qr)(nn)){var c={},d=(0,X.U2)(J,{});d&&Object.entries(d).forEach((function(e){var n=(0,o.Z)(e,2),i=n[0],t=n[1];"undefined"!==typeof t&&null!==t&&(ue.RG.includes(i)||Ae.includes(i)?c[i]=t:(c[i]=[],Object.entries(t).forEach((function(e){var n=(0,o.Z)(e,2),t=n[0];n[1]&&c[i].push(t)}))))})),(0,je.Qr)(c)||(n={},Object.entries(Ce(Ce({},n),c)||{}).forEach((function(e){var i=(0,o.Z)(e,2),t=i[0],r=i[1];"undefined"!==typeof r&&null!==r&&(n[t]=r)})))}else{var s={};Object.entries(nn).forEach((function(e){var n=(0,o.Z)(e,2),i=n[0],t=n[1];s[i]={};var r,u=t;"undefined"!==typeof t&&null!==t&&(ue.RG.includes(i)||Ae.includes(i)?s[i]=u:(Array.isArray(u)||(u=[u]),u&&Array.isArray(u)&&(null===(r=u)||void 0===r||r.forEach((function(e){s[i][e]=!0})))))})),oe((0,je.hB)(s))}(0,je.Qr)(n)||(0,ge.u)((0,je.hB)(n),{pushHistory:!1})}),[Cn,rn,nn,tn,yn,wn,Pn]),(0,a.useEffect)((function(){(0,he.bB)(cn,Je)}),[cn]);var On=function(e){return(0,p.Db)(Y.ZP.pipelines.useCreate(),{onSuccess:function(n){return(0,he.wD)(n,{callback:function(n){var i=n.pipeline.uuid;null===e||void 0===e||e(i)},onErrorCallback:function(e,n){return Je({errors:n,response:e})}})}})},Tn=On((function(e){return l.push("/pipelines/[pipeline]/edit","/pipelines/".concat(e,"/edit"))})),An=(0,o.Z)(Tn,2),En=An[0],Sn=An[1].isLoading,Mn=On((function(){null===dn||void 0===dn||dn(),null===fn||void 0===fn||fn()})),Dn=(0,o.Z)(Mn,2),Rn=Dn[0],Nn=Dn[1].isLoading,Un=(0,p.Db)((function(e){return Y.ZP.pipelines.useUpdate(e.uuid)({pipeline:e})}),{onSuccess:function(e){return(0,he.wD)(e,{callback:function(e){var n=e.pipeline.uuid;Qe((function(e){return Ce(Ce({},e),{},(0,u.Z)({},n,!1))})),dn(),null===fn||void 0===fn||fn(),null===Vn||void 0===Vn||Vn(),Ne(null)},onErrorCallback:function(e,n){var i,t=null===e||void 0===e||null===(i=e.url_parameters)||void 0===i?void 0:i.pk;Qe((function(e){return Ce(Ce({},e),{},(0,u.Z)({},t,!1))})),Je({errors:n,response:e})}})}}),Ln=(0,o.Z)(Un,2),Bn=Ln[0],Gn=Ln[1].isLoading,Hn=(0,p.Db)((function(e){return Y.ZP.pipelines.useDelete(e)()}),{onSuccess:function(e){return(0,he.wD)(e,{callback:function(){null===dn||void 0===dn||dn(),null===fn||void 0===fn||fn()},onErrorCallback:function(e,n){return Je({errors:n,response:e})}})}}),Yn=(0,o.Z)(Hn,2),$n=Yn[0],qn=Yn[1].isLoading,Wn=(0,we.dd)((function(e){var n=e.pipeline,i=e.pipelineDescription,t=e.pipelineName;return(0,O.jsx)(T,{isLoading:Gn,minWidth:55*de.iI,noEmptyValue:!!t,onClose:Vn,onSave:function(e){var i=n||Re;if(i){var o=i.uuid,r={uuid:o};t?r.name=e:r.description=e,Qe((function(e){return Ce(Ce({},e),{},(0,u.Z)({},o,!0))})),Bn(r)}},textArea:!t,title:t?"Rename pipeline":"Edit description for ".concat(null===n||void 0===n?void 0:n.uuid),value:t||i})}),{},[Gn,Re],{background:!0,uuid:"rename_pipeline_and_save"}),zn=(0,o.Z)(Wn,2),Fn=zn[0],Vn=zn[1],Qn=(0,we.dd)((function(){return(0,O.jsx)(V.BC,{children:(0,O.jsx)(h.Z,{contained:!0,onClickCustomTemplate:function(e){En({pipeline:{custom_template_uuid:null===e||void 0===e?void 0:e.template_uuid,name:(0,fe.Y6)()}}).then((function(){Jn()}))},showBreadcrumbs:!0,tabs:[le.A2]})})}),{},[En],{background:!0,uuid:"browse_templates"}),Kn=(0,o.Z)(Qn,2),Xn=Kn[0],Jn=Kn[1],ei=(0,we.dd)((function(e){var n=e.cancelButtonText,i=(e.header,e.onCancel),t=e.onSaveSuccess;return(0,O.jsx)(V.BC,{children:(0,O.jsx)(M.Z,{cancelButtonText:n,contained:!0,header:(0,O.jsx)(I.Z,{mb:de.HN,children:(0,O.jsxs)(P.Z,{children:[(0,O.jsx)(C.ZP,{warning:!0,children:"You need to add an OpenAI API key to your project before you can generate pipelines using AI."}),(0,O.jsx)(I.Z,{mt:1,children:(0,O.jsxs)(C.ZP,{warning:!0,children:["Read ",(0,O.jsx)(A.Z,{href:"https://help.openai.com/en/articles/4936850-where-do-i-find-my-secret-api-key",openNewWindow:!0,children:"OpenAI\u2019s documentation"})," to get your API key."]})})]})}),onCancel:function(){null===i||void 0===i||i(),ti()},onSaveSuccess:function(e){D(),ti(),null===t||void 0===t||t(e)}})})}),{},[D],{background:!0,uuid:"configure_project"}),ni=(0,o.Z)(ei,2),ii=ni[0],ti=ni[1],oi=(0,we.dd)((function(){return(0,O.jsx)(V.BC,{children:(0,O.jsx)(v.Z,{createPipeline:En,isLoading:Sn,onClose:li})})}),{},[En,Sn],{background:!0,disableClickOutside:!0,disableCloseButton:!0,uuid:"AI_modal"}),ri=(0,o.Z)(oi,2),ui=ri[0],li=ri[1],ci=(0,a.useMemo)((function(){return(0,be.d)(En,{showAIModal:function(){null!==W&&void 0!==W&&W.openai_api_key?ui():ii({onSaveSuccess:function(){ui()}})},showBrowseTemplates:Xn})}),[En,W,ui,Xn,ii]),di=Y.ZP.tags.list().data,si=(0,a.useMemo)((function(){return(0,xe.YC)((null===di||void 0===di?void 0:di.tags)||[],(function(e){return e.uuid}))}),[di]),ai=(0,a.useMemo)((function(){return(0,O.jsx)(H.Z,{addButtonProps:{isLoading:Sn,label:"New",menuItems:ci},deleteRowProps:{confirmationMessage:"This is irreversible and will immediately delete everything associated with the pipeline, including its blocks, triggers, runs, logs, and history.",isLoading:qn,item:"pipeline",onDelete:function(){window.confirm("Are you sure you want to delete pipeline ".concat(null===Re||void 0===Re?void 0:Re.uuid,"?"))&&$n(null===Re||void 0===Re?void 0:Re.uuid)}},extraActionButtonProps:{Icon:F.oX,confirmationDescription:"Cloning the selected pipeline will create a new pipeline with the same configuration and code blocks. The blocks use the same block files as the original pipeline. Pipeline triggers, runs, backfills, and logs are not copied over to the new pipeline.",confirmationMessage:"Do you want to clone the pipeline ".concat(null===Re||void 0===Re?void 0:Re.uuid,"?"),isLoading:Nn,onClick:function(){return Rn({pipeline:{clone_pipeline_uuid:null===Re||void 0===Re?void 0:Re.uuid}})},openConfirmationDialogue:!0,tooltip:"Clone pipeline"},filterOptions:{status:S.kA,tag:[S.$1.NO_TAGS].concat((0,r.Z)(si.map((function(e){return e.uuid})))),type:Object.values(S.qL)},filterValueLabelMapping:{status:S.kA.reduce((function(e,n){return Ce(Ce({},e),{},(0,u.Z)({},n,(0,fe.J3)((0,fe.kC)(n))))}),{}),tag:Ce((0,u.Z)({},S.$1.NO_TAGS,"No tags"),si.reduce((function(e,n){var i=n.uuid;return Ce(Ce({},e),{},(0,u.Z)({},i,i))}),{})),type:S.G7},groupButtonProps:{groupByLabel:Cn,menuItems:[{beforeIcon:Cn===S.r0.STATUS?(0,O.jsx)(F.Jr,{fill:$.Z.content.default,size:1.5*de.iI}):(0,O.jsx)(F.Cd,{muted:!0,size:1.5*de.iI}),label:function(){return(0,fe.kC)(S.r0.STATUS)},onClick:function(){var e=Cn===S.r0.STATUS?null:S.r0.STATUS;e||re({}),(0,ge.u)((0,u.Z)({},S.$1.GROUP,e),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Status"},{beforeIcon:Cn===S.r0.TAG?(0,O.jsx)(F.Jr,{fill:$.Z.content.default,size:1.5*de.iI}):(0,O.jsx)(F.Cd,{muted:!0,size:1.5*de.iI}),label:function(){return(0,fe.kC)(S.r0.TAG)},onClick:function(){var e=Cn===S.r0.TAG?null:S.r0.TAG;e||re({}),(0,ge.u)((0,u.Z)({},S.$1.GROUP,e),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Tag"},{beforeIcon:Cn===S.r0.TYPE?(0,O.jsx)(F.Jr,{fill:$.Z.content.default,size:1.5*de.iI}):(0,O.jsx)(F.Cd,{muted:!0,size:1.5*de.iI}),label:function(){return(0,fe.kC)(S.r0.TYPE)},onClick:function(){var e=Cn===S.r0.TYPE?null:S.r0.TYPE;e||re({}),(0,ge.u)((0,u.Z)({},S.$1.GROUP,e),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Type"}]},moreActionsMenuItems:[{label:function(){return"Rename pipeline"},onClick:function(){return Fn({pipelineName:null===Re||void 0===Re?void 0:Re.name})},uuid:"Pipelines/MoreActionsMenu/Rename"},{label:function(){return"Edit description"},onClick:function(){return Fn({pipeline:Re,pipelineDescription:null===Re||void 0===Re?void 0:Re.description})},uuid:"Pipelines/MoreActionsMenu/EditDescription"}],onClickFilterDefaults:function(){oe({}),l.push("/pipelines")},onFilterApply:function(e,n){Object.values(n).every((function(e){return!(null!==e&&void 0!==e&&e.length)}))&&oe({})},query:nn,resetLimitOnFilterApply:!0,searchProps:{onChange:ze,value:qe},selectedRowId:null===Re||void 0===Re?void 0:Re.uuid,setSelectedRow:Ne})}),[Rn,$n,Cn,Nn,Sn,qn,ci,nn,l,qe,Re,ze,Fn,si]),pi=(0,V.VI)(null,{},[],{uuid:"pipelines/list"}),fi=(0,o.Z)(pi,1)[0],vi=(0,p.Db)(Y.ZP.projects.useUpdate(null===W||void 0===W?void 0:W.name),{onSuccess:function(e){return(0,he.wD)(e,{callback:function(){D()},onErrorCallback:function(e,n){return fi({errors:n,response:e})}})}}),hi=(0,o.Z)(vi,2),mi=hi[0],bi=hi[1].isLoading,gi=(0,a.useCallback)((function(e){return mi({project:e})}),[mi]),xi=(0,we.dd)((function(){return(0,O.jsxs)(P.Z,{maxWidth:60*de.iI,children:[(0,O.jsx)(I.Z,{mb:1,children:(0,O.jsx)(y.Z,{children:"Help improve Mage"})}),(0,O.jsx)(I.Z,{mb:de.cd,children:(0,O.jsx)(C.ZP,{default:!0,children:"Please contribute usage statistics to help improve the developer experience for you and everyone in the community \ud83e\udd1d."})}),(0,O.jsx)(I.Z,{mb:de.cd,children:(0,O.jsx)(P.Z,{success:!0,children:(0,O.jsxs)(Z.ZP,{alignItems:"center",children:[(0,O.jsx)(F.Yo,{size:5*de.iI,success:!0}),(0,O.jsx)(I.Z,{mr:1}),(0,O.jsx)(j.Z,{children:(0,O.jsx)(C.ZP,{children:"All usage statistics are completely anonymous. It\u2019s impossible for Mage to know which statistics belongs to whom."})})]})})}),(0,O.jsx)(I.Z,{mb:de.cd,children:(0,O.jsxs)(C.ZP,{default:!0,children:["By opting into sending usage statistics to ",(0,O.jsx)(A.Z,{href:"https://www.mage.ai",openNewWindow:!0,children:"Mage"}),", it\u2019ll help the team and community of contributors (",(0,O.jsx)(A.Z,{href:"https://www.mage.ai/chat",openNewWindow:!0,children:"Magers"}),") learn what\u2019s going wrong with the tool and what improvements can be made."]})}),(0,O.jsx)(I.Z,{mb:de.cd,children:(0,O.jsx)(C.ZP,{default:!0,children:"In addition to helping reduce potential errors, you\u2019ll help inform which features are useful and which need work."})}),(0,O.jsx)(I.Z,{mb:de.cd,children:(0,O.jsxs)(Z.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,O.jsx)(C.ZP,{bold:!0,children:"I want to help make Mage more powerful for everyone"}),(0,O.jsx)(I.Z,{mr:de.cd}),(0,O.jsx)(G.Z,{checked:!0,onCheck:function(){window.confirm("Are you sure you don\u2019t want to help everyone in the community?")&&gi({help_improve_mage:!1}).then((function(){return yi()}))}})]})}),bi&&(0,O.jsx)(I.Z,{mb:de.cd,children:(0,O.jsx)(U.Z,{inverted:!0})}),(0,O.jsx)(I.Z,{mb:de.cd,children:(0,O.jsxs)(C.ZP,{muted:!0,small:!0,children:["To learn more about how this works, please check out the ",(0,O.jsx)(A.Z,{href:"https://docs.mage.ai/contributing/statistics/overview",openNewWindow:!0,small:!0,children:"documentation"}),"."]})}),(0,O.jsx)(m.ZP,{onClick:function(){return gi({help_improve_mage:!0}).then((function(){return yi()}))},secondary:!0,children:"Close"})]})}),{},[W],{background:!0,hideCallback:function(){gi({help_improve_mage:!0})},uuid:"help_mage"}),ji=(0,o.Z)(xi,2),Zi=ji[0],yi=ji[1];(0,a.useEffect)((function(){W&&null===(null===W||void 0===W?void 0:W.help_improve_mage)&&Zi()}),[W,Zi]);var wi=(0,a.useCallback)((function(e){var n={};null===e||void 0===e||e.forEach((function(e,i){var t=null===e||void 0===e?void 0:e[Cn];if(S.r0.STATUS===Cn){var o=(e||{}).schedules,r=void 0===o?[]:o,u=r.length;t=r.find((function(e){var n=e.status;return se.fq.ACTIVE===n}))?S.QK.ACTIVE:u>=1?S.QK.INACTIVE:S.QK.NO_SCHEDULES}else if(S.r0.TAG===Cn){t=(null===e||void 0===e?void 0:e.tags)?(0,xe.YC)(e.tags,(function(e){return e})).join(", "):""}n[t]||(n[t]=[]),n[t].push(i)}));var i=[],t=[];S.r0.STATUS===Cn?Object.values(S.QK).forEach((function(e){i.push(n[e]),t.push((0,fe.vg)(e))})):S.r0.TAG===Cn?(0,xe.YC)(Object.keys(n),(function(e){return e})).forEach((function(e){i.push(n[e]),e?t.push(e.split(", ").map((function(e,n){return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("div",{style:{marginLeft:n>=1?4:0}},"".concat(e,"-").concat(n,"-spacing")),(0,O.jsx)(g.Z,{small:!0,children:(0,O.jsx)(C.ZP,{children:e})},"".concat(e,"-").concat(n))]})}))):t.push("No tags")})):S.r0.TYPE===Cn&&Object.values(S.qL).forEach((function(e){i.push(n[e]),t.push(S.G7[e])}));var o=[],r=[];return null===i||void 0===i||i.forEach((function(e,n){"undefined"!==typeof e&&null!==e&&(null===e||void 0===e?void 0:e.length)>=1&&(r.push(e),o.push(null===t||void 0===t?void 0:t[n]))})),{rowGroupHeaders:o,rowsGroupedByIndex:r}}),[Cn]),Pi=(0,a.useMemo)((function(){return wi(jn)}),[wi,jn]),Ii=Pi.rowGroupHeaders,Ci=Pi.rowsGroupedByIndex,_i=(0,a.useMemo)((function(){return wi(Zn)}),[wi,Zn]),ki=_i.rowGroupHeaders,Oi=_i.rowsGroupedByIndex,Ti=(0,a.useCallback)((function(e,n,i,t,o){return(0,O.jsx)(L.Z,{columnFlex:[null,null,null,2,null,null,null,1,null,null,null],columns:[{label:function(){return""},uuid:"action"},{uuid:(0,fe.kC)(S.r0.STATUS)},{uuid:"Name"},{uuid:"Description"},{uuid:(0,fe.kC)(S.r0.TYPE)},Ce(Ce({},un),{},{uuid:"Updated at"}),Ce(Ce({},un),{},{uuid:"Created at"}),{uuid:"Tags"},{uuid:"Blocks"},{uuid:"Triggers"},{center:!0,label:function(){return""},uuid:"Actions"}],defaultSortColumnIndex:2,getUniqueRowIdentifier:xn,isSelectedRow:function(e){var i;return(null===(i=n[e])||void 0===i?void 0:i.uuid)===(null===Re||void 0===Re?void 0:Re.uuid)},localStorageKeySortColIdx:ne,localStorageKeySortDirection:ie,onClickRow:function(e){return Ne((function(i){var t=n[e];return(null===i||void 0===i?void 0:i.uuid)!==(null===t||void 0===t?void 0:t.uuid)?t:null}))},onDoubleClickRow:function(e){l.push("/pipelines/[pipeline]/edit","/pipelines/".concat(n[e].uuid,"/edit"))},ref:d,renderRightClickMenuItems:function(e){var i=n[e];return[{label:function(){return"Edit description"},onClick:function(){return Fn({pipeline:i,pipelineDescription:null===i||void 0===i?void 0:i.description})},uuid:"edit_description"},{label:function(){return"Rename"},onClick:function(){return Fn({pipeline:i,pipelineName:null===i||void 0===i?void 0:i.name})},uuid:"rename"},{label:function(){return"Clone"},onClick:function(){return Rn({pipeline:{clone_pipeline_uuid:null===i||void 0===i?void 0:i.uuid}})},uuid:"clone"},{label:function(){return"Download (keep folder structure)"},onClick:function(){kn({pipelineUUID:null===i||void 0===i?void 0:i.uuid,filesOnly:!1})},uuid:"download_keep_folder_structure"},{label:function(){return"Download (without folder structure)"},onClick:function(){kn({pipelineUUID:null===i||void 0===i?void 0:i.uuid,filesOnly:!0})},uuid:"download_without_folder_structure"},{label:function(){return"Add/Remove tags"},onClick:function(){l.push("/pipelines/[pipeline]/settings","/pipelines/".concat(null===i||void 0===i?void 0:i.uuid,"/settings"))},uuid:"add_tags"},{label:function(){return"Create template"},onClick:function(){l.push("/templates?object_type=".concat(ce.R,"&new=1&pipeline_uuid=").concat(null===i||void 0===i?void 0:i.uuid))},uuid:"create_custom_template"},{label:function(){return"Create global data product"},onClick:function(){l.push("/global-data-products?object_type=".concat(Q.b.PIPELINE,"&new=1&object_uuid=").concat(null===i||void 0===i?void 0:i.uuid))},uuid:"create_global_data_product"},{label:function(){return"Delete"},onClick:function(){window.confirm("Are you sure you want to delete pipeline ".concat(null===i||void 0===i?void 0:i.uuid,"?"))&&$n(null===i||void 0===i?void 0:i.uuid)},uuid:"delete"}]},rightClickMenuHeight:252,rightClickMenuWidth:30*de.iI,rowGroupHeaders:i,rows:null===e||void 0===e?void 0:e.map((function(e,n){var i=e.blocks,t=e.created_at,o=e.description,r=e.schedules,c=e.tags,d=e.type,a=e.updated_at,p=e.uuid,f=i.filter((function(e){var n=e.type;return z.tf.SCRATCHPAD!==n})).length,v=r.length,h=r.find((function(e){var n=e.status;return se.fq.ACTIVE===n})),b=(0,O.jsx)("div",{children:(0,O.jsx)(B.Z,{tags:null===c||void 0===c?void 0:c.map((function(e){return{uuid:e}}))})},"pipeline_tags_".concat(n));return[v>=1||Ve[p]?(0,O.jsx)(m.ZP,{iconOnly:!0,loading:!!Ve[p],noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(n){(0,Ze.j)(n),Qe((function(e){return Ce(Ce({},e),{},(0,u.Z)({},p,!0))})),Bn(Ce(Ce({},e),{},{status:h?se.fq.INACTIVE:se.fq.ACTIVE}))},children:h?(0,O.jsx)(F.dz,{muted:!0,size:2*de.iI}):(0,O.jsx)(F.Py,{default:!0,size:2*de.iI})}):null,(0,O.jsx)(C.ZP,{default:!h,monospace:!0,success:!!h,children:h?se.fq.ACTIVE:v>=1?se.fq.INACTIVE:"no schedules"},"pipeline_status_".concat(n)),(0,O.jsx)(s(),{as:"/pipelines/".concat(p),href:"/pipelines/[pipeline]",passHref:!0,children:(0,O.jsx)(A.Z,{sameColorAsText:!0,children:p})},"pipeline_name_".concat(n)),(0,O.jsx)(C.ZP,{default:!0,preWrap:!0,title:o,children:o},"pipeline_description_".concat(n)),(0,O.jsx)(C.ZP,{children:S.G7[d]},"pipeline_type_".concat(n)),(0,O.jsx)(C.ZP,{monospace:!0,small:!0,title:a?(0,ve._6)(a):null,children:a?(0,ve.XG)(a,on):(0,O.jsx)(O.Fragment,{children:"\u2014"})},"pipeline_updated_at_".concat(n)),(0,O.jsx)(C.ZP,{monospace:!0,small:!0,title:t?(0,ve._6)(t):null,children:t?(0,ve.XG)(t.slice(0,19),on):(0,O.jsx)(O.Fragment,{children:"\u2014"})},"pipeline_created_at_".concat(n)),b,(0,O.jsx)(C.ZP,{default:0===f,monospace:!0,children:f},"pipeline_block_count_".concat(n)),(0,O.jsx)(C.ZP,{default:0===v,monospace:!0,children:v},"pipeline_trigger_count_".concat(n)),(0,O.jsxs)(j.Z,{flex:1,justifyContent:"flex-end",children:[(0,O.jsx)(m.ZP,Ce(Ce({},Ee),{},{onClick:function(){kn({pipelineUUID:p})},title:"Download (keep folder structure)",children:(0,O.jsx)(F.vc,{default:!0,size:2*de.iI})})),(0,O.jsx)(I.Z,{mr:1}),(0,O.jsx)(m.ZP,Ce(Ce({},Ee),{},{onClick:function(){l.push("/pipelines/[pipeline]","/pipelines/".concat(p))},title:"Detail",children:(0,O.jsx)(F.UY,{default:!0,size:2*de.iI})})),(0,O.jsx)(I.Z,{mr:1}),(0,O.jsx)(m.ZP,Ce(Ce({},Ee),{},{onClick:function(){l.push("/pipelines/[pipeline]/logs","/pipelines/".concat(p,"/logs"))},title:"Logs",children:(0,O.jsx)(F.$B,{default:!0,size:2*de.iI})}))]},"chevron_icon_".concat(n))]})),rowsGroupedByIndex:t,setRowsSorted:o,sortableColumnIndexes:yn,sortedColumn:In,stickyHeader:!0})}),[Rn,$n,kn,on,xn,Ve,l,Re,Qe,Ne,Fn,yn,In,un,Bn]),Ai=(0,a.useMemo)((function(){return Ti(hn,jn,Ii,Ci,Be)}),[hn,jn,Ti,Ii,Ci,Be]),Ei=(0,a.useMemo)((function(){return Ti(mn,Zn,ki,Oi,Ye)}),[mn,Zn,Ti,ki,Oi,Ye]),Si=(0,a.useMemo)((function(){return(null===hn||void 0===hn?void 0:hn.length)||0}),[hn]),Mi=(0,a.useMemo)((function(){return(null===mn||void 0===mn?void 0:mn.length)||0}),[mn]),Di=(0,a.useMemo)((function(){return(!rn||ke.uuid===tn)&&!Si||rn&&_e.uuid===tn&&!Mi}),[rn,Si,Mi,tn]),Ri=(0,a.useMemo)((function(){var e=null===nn||void 0===nn?void 0:nn[ue.$D.LIMIT];return(0,O.jsxs)(Z.ZP,{alignItems:"center",children:[(0,O.jsx)(C.ZP,{muted:!0,small:!0,children:"Per page"}),(0,O.jsx)(I.Z,{mr:1}),(0,O.jsxs)(N.Z,{compact:!0,onChange:function(e){return(0,ge.u)((0,u.Z)({},ue.$D.LIMIT,e.target.value),{pushHistory:!0})},small:!0,value:e,children:[e&&(e>5*E.Q||e%E.Q)&&(0,O.jsx)("option",{value:e,children:e}),(0,xe.w6)(5).map((function(e,n){var i=(n+1)*E.Q;return(0,O.jsx)("option",{value:i,children:i},i)}))]})]})}),[nn]),Ni=(0,a.useMemo)((function(){var e,n,i=cn;rn&&_e.uuid===tn&&(i=pn);var t=(null===(e=i)||void 0===e||null===(n=e.metadata)||void 0===n?void 0:n.count)||0,o=(null===nn||void 0===nn?void 0:nn[ue.$D.LIMIT])||E.Q,r=(null===nn||void 0===nn?void 0:nn[ue.$D.OFFSET])||0,l=Math.ceil(t/o);return(0,O.jsx)(I.Z,{p:de.cd,children:(0,O.jsx)(E.ZP,{maxPages:E.Et,onUpdate:function(e){var n=Number(e);(0,ge.u)((0,u.Z)({},ue.$D.OFFSET,n*o))},page:Math.floor(r/o),totalPages:l})})}),[cn,pn,rn,nn,tn]);return(0,O.jsxs)(x.Z,{errors:Xe,setErrors:Je,subheaderChildren:(0,O.jsxs)(Z.ZP,{alignItems:"center",justifyContent:"space-between",children:[ai,Ri]}),title:"Pipelines",uuid:"pipelines/index",children:[rn&&(0,O.jsx)(I.Z,{px:de.cd,ref:c,children:(0,O.jsx)(b.Z,{noPadding:!0,onClickTab:function(e){var n,i=e.uuid;return(0,ge.u)((n={},(0,u.Z)(n,Te,i),(0,u.Z)(n,ue.$D.LIMIT,null),(0,u.Z)(n,ue.$D.OFFSET,null),n),{pushHistory:!0})},regularSizeText:!0,selectedTabUUID:tn,tabs:Oe.map((function(e){var n=e.Icon,i=e.label;return{Icon:n,label:function(){var e;return i({count:null===cn||void 0===cn||null===(e=cn.metadata)||void 0===e?void 0:e.count})},uuid:e.uuid}})),underlineStyle:!0})}),Di?(0,O.jsx)(I.Z,{p:de.Mq,children:cn?(0,O.jsx)(C.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No pipelines available"}):(0,O.jsx)(U.Z,{inverted:!0,large:!0})}):null,(0,O.jsxs)(pe.cl,{hide:Di,includePadding:!!Cn,maxHeight:"calc(100vh - ".concat(K.Mz+74+(Se||0)+(null===w||void 0===w||null===(n=w.current)||void 0===n||null===(i=n.getBoundingClientRect)||void 0===i||null===(t=i.call(n))||void 0===t?void 0:t.height),"px)"),children:[(!rn||ke.uuid===tn)&&Ai,rn&&_e.uuid===tn&&Ei]}),(0,O.jsx)("div",{ref:w,children:Ni})]})}Se.getInitialProps=(0,t.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var Me=(0,D.Z)(Se)},44952:function(e,n,i){"use strict";i.d(n,{K:function(){return o}});var t=i(4383);function o(e){var n=(0,t.ZP)("downloads",e),i=document.createElement("a");i.href=n,document.body.appendChild(i),i.click(),window.URL.revokeObjectURL(n),document.body.removeChild(i)}},79274:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines",function(){return i(55620)}])}},function(e){e.O(0,[2678,1154,844,5820,6639,1124,1751,341,1821,874,1557,8264,7858,5499,5283,3745,5810,3859,2646,8998,3004,9264,2474,5729,9774,2888,179],(function(){return n=79274,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6503],{40033:function(r,e,t){"use strict";var o=t(82684),n=t(94629),u=t(8569),c=t(81728),i=t(28598);e.Z=function(r){var e=r.operationType,t=r.resourceType,l=r.rootProject,a=r.slug,s=(0,o.useMemo)((function(){var r=[a,t?(0,c.j3)(t):t,e?(0,c.vg)(e):e].filter((function(r){return(null===r||void 0===r?void 0:r.length)>=1})).join(" ");return(null===r||void 0===r?void 0:r.length)>=40?"".concat(null===r||void 0===r?void 0:r.slice(0,40),"..."):r}),[e,t,a]);return(0,i.jsx)(n.Z,{addProjectBreadcrumbToCustomBreadcrumbs:!0,breadcrumbs:[{label:function(){return l?"Platform global hooks":"Global hooks"},linkProps:{href:"/".concat(l?"platform/":"","global-hooks")}},{bold:!0,label:function(){return s}}],title:a,uuid:"GlobalHookDetail/index",children:(0,i.jsx)(u.Z,{operationType:e,resourceType:t,rootProject:l,uuid:a})})}},71439:function(r,e,t){"use strict";t.r(e);var o=t(77837),n=t(82394),u=t(91835),c=t(38860),i=t.n(c),l=t(40033),a=t(93808),s=t(28598);function p(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,o)}return t}function f(r){var e=(0,u.Z)({},r);return(0,s.jsx)(l.Z,function(r){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?p(Object(t),!0).forEach((function(e){(0,n.Z)(r,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}))}return r}({rootProject:!0},e))}f.getInitialProps=function(){var r=(0,o.Z)(i().mark((function r(e){var t,o,n,u;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.query,o=t.operation_type,n=t.resource_type,u=t.slug,r.abrupt("return",{operationType:o,resourceType:n,slug:null===u||void 0===u?void 0:u[0]});case 2:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),e.default=(0,a.Z)(f)},50979:function(r,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/platform/global-hooks/[...slug]",function(){return t(71439)}])}},function(r){r.O(0,[2678,1154,844,874,1557,8264,7858,5283,3437,9774,2888,179],(function(){return e=50979,r(r.s=e);var e}));var e=r.O();_N_E=e}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4543],{44374:function(e,o,n){"use strict";n.d(o,{Z:function(){return T}});var t=n(82684),i=n(71180),l=n(94629),r=n(8569),u=n(82394),c=n(12691),a=n.n(c),d=n(38626),s=n(34376),p=n(55485),v=n(48670),f=n(75499),h=n(30160),b=n(35686),m=n(72473),j=n(8193),k={default:!0,monospace:!0},P=n(81728),_=n(3917),g=n(55283),y=n(86735),w=n(70320),x=n(28598);function Z(e,o){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);o&&(t=t.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,t)}return n}function O(e){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?Z(Object(n),!0).forEach((function(o){(0,u.Z)(e,o,n[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))}))}return e}var E=function(e){var o=e.rootProject,n=(0,w.qB)(),i=(0,t.useContext)(d.ThemeContext),l=(0,s.useRouter)(),r=(0,t.useState)(null),u=r[0],c=(r[1],b.ZP.global_hooks.list(O({_format:"with_pipeline_details",include_snapshot_validation:1},o?{root_project:o}:{})).data),Z=(0,t.useMemo)((function(){return(null===c||void 0===c?void 0:c.global_hooks)||[]}),[c]);return(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(f.Z,{columnFlex:[null,null,null,null,1,null,null],columns:[{uuid:"UUID"},{uuid:"Resource"},{uuid:"Operation"},{uuid:"Pipeline"},{uuid:"Outputs"},{center:!0,uuid:"Valid"},{rightAligned:!0,uuid:"Snapshotted at"}],onClickRow:function(e,n){var t=null===Z||void 0===Z?void 0:Z[e],i=t.operation_type,r=t.resource_type,u=t.uuid;l.push("/".concat(o?"platform/":"","global-hooks/").concat(u,"?operation_type=").concat(i,"&resource_type=").concat(r))},getObjectAtRowIndex:function(e){return null===Z||void 0===Z?void 0:Z[e]},rows:null===Z||void 0===Z?void 0:Z.map((function(e){var o,l=e.metadata,r=e.operation_type,u=e.outputs,c=e.pipeline,d=e.pipeline_details,s=e.resource_type,f=e.uuid,b=null===c||void 0===c?void 0:c.uuid,w=b?(0,x.jsx)(a(),{as:"/pipelines/".concat(b,"/edit"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,x.jsx)(v.Z,O(O({},k),{},{openNewWindow:!0,children:b}))},"pipeline"):(0,t.createElement)(h.ZP,O(O({},k),{},{key:"pipeline",muted:!0}),"-"),Z=[];if((null===u||void 0===u?void 0:u.length)>=1&&(null===d||void 0===d||null===(o=d.blocks)||void 0===o?void 0:o.length)>=1){var E=(0,y.HK)((null===d||void 0===d?void 0:d.blocks)||[],(function(e){return e.uuid}));null===u||void 0===u||u.forEach((function(e,o){var n;if(null!==e&&void 0!==e&&null!==(n=e.block)&&void 0!==n&&n.uuid){var l,r=null===E||void 0===E?void 0:E[null===e||void 0===e||null===(l=e.block)||void 0===l?void 0:l.uuid];r&&(o>=1&&Z.push((0,t.createElement)(h.ZP,O(O({},k),{},{inline:!0,key:"".concat(null===r||void 0===r?void 0:r.uuid,"-").concat(o,"-comma"),muted:!0}),",\xa0")),Z.push((0,x.jsx)(a(),{as:"/pipelines/".concat(b,"/edit?block_uuid=").concat(null===r||void 0===r?void 0:r.uuid),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,x.jsx)(v.Z,O(O({},k),{},{inline:!0,openNewWindow:!0,sameColorAsText:!0,children:(0,x.jsx)(h.ZP,O(O({},k),{},{color:(0,g.qn)(null===r||void 0===r?void 0:r.type,{blockColor:null===r||void 0===r?void 0:r.color,theme:i}).accent,inline:!0,children:null===r||void 0===r?void 0:r.uuid}))}))},"".concat(null===r||void 0===r?void 0:r.uuid,"-").concat(o,"-link"))))}}))}return[(0,t.createElement)(h.ZP,O(O({},k),{},{key:"uuid"}),f),(0,t.createElement)(h.ZP,O(O({},k),{},{key:"resourceType",monospace:!1}),s?(0,P.j3)(s):"-"),(0,t.createElement)(h.ZP,O(O({},k),{},{key:"operationType",monospace:!1}),r?(0,P.vg)(r):"-"),w,(0,x.jsxs)("div",{children:[(null===Z||void 0===Z?void 0:Z.length)>=1&&Z,!(null!==Z&&void 0!==Z&&Z.length)&&(0,x.jsx)(h.ZP,O(O({},k),{},{muted:!0,children:"-"}))]},"outputs"),(0,x.jsx)(p.ZP,{justifyContent:"center",children:null!==l&&void 0!==l&&l.snapshot_valid?(0,x.jsx)(m.Jr,{size:j.Z,success:!0}):(0,x.jsx)(m.uy,{danger:!0,size:j.Z})},"valid"),(0,t.createElement)(h.ZP,O(O({},k),{},{key:"snapshottedAt",rightAligned:!0}),null!==l&&void 0!==l&&l.snapshotted_at?(0,_.XG)(null===l||void 0===l?void 0:l.snapshotted_at,n):"-")]})),selectedRowIndexInternal:u,uuid:"GlobalHooks/Table"})})},C=n(70515),N=n(69419);var T=function(e){var o=e.rootProject,n=(0,t.useState)(!1),u=n[0],c=n[1],a=(0,N.iV)();(0,t.useEffect)((function(){var e=a.new;c(!!e)}),[a]);var d=o?"Platform global hooks":"Global hooks";return(0,x.jsxs)(l.Z,{addProjectBreadcrumbToCustomBreadcrumbs:u,breadcrumbs:u?[{label:function(){return d},linkProps:{href:"/".concat(o?"platform/":"","global-hooks")}},{bold:!0,label:function(){return"New"}}]:null,subheaderChildren:!u&&(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(i.ZP,{beforeIcon:(0,x.jsx)(m.mm,{size:2.5*C.iI}),inline:!0,linkProps:{as:"/".concat(o?"platform/":"","global-hooks?new=1"),href:"/".concat(o?"platform/":"","global-hooks")},noHoverUnderline:!0,primary:!0,sameColorAsText:!0,children:"Add new global hook"})}),title:d,uuid:"GlobalHooks/index",children:[u&&(0,x.jsx)(r.Z,{isNew:u,rootProject:o}),!u&&(0,x.jsx)(E,{rootProject:o})]})}},46751:function(e,o,n){"use strict";n.r(o);var t=n(77837),i=n(38860),l=n.n(i),r=n(44374),u=n(93808),c=n(28598);function a(){return(0,c.jsx)(r.Z,{rootProject:!0})}a.getInitialProps=(0,t.Z)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),o.default=(0,u.Z)(a)},52248:function(e,o,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/platform/global-hooks",function(){return n(46751)}])}},function(e){e.O(0,[2678,1154,844,874,1557,8264,7858,5499,5283,3437,9774,2888,179],(function(){return o=52248,e(e.s=o);var o}));var o=e.O();_N_E=o}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6308],{65956:function(n,e,t){"use strict";var i=t(38626),o=t(55485),r=t(38276),c=t(30160),a=t(44897),l=t(42631),d=t(47041),u=t(70515),s=t(28598),h=(0,i.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*u.iI,1.5*u.iI,1.5*u.iI),f=i.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],l.n_,(function(n){return n.fullWidth&&"\n width: 100%;\n "}),(function(n){return!n.borderless&&"\n border: 1px solid ".concat((n.theme.interactive||a.Z.interactive).defaultBorder,";\n ")}),(function(n){return n.success&&"\n background-color: ".concat((n.theme.background||a.Z.background).successLight,";\n ")}),(function(n){return n.success&&!n.borderless&&"\n border: 1px solid ".concat((n.theme.background||a.Z.background).success,";\n ")}),(function(n){return!n.dark&&!n.success&&"\n background-color: ".concat((n.theme.background||a.Z.background).panel,";\n ")}),(function(n){return n.dark&&"\n background-color: ".concat((n.theme.background||a.Z.background).content,";\n ")}),(function(n){return!n.fullHeight&&"\n height: fit-content;\n "}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,";\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,"px;\n ")}),(function(n){return n.minWidth&&"\n min-width: ".concat(n.minWidth,"px;\n\n @media (max-width: ").concat(n.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(n){return n.borderless&&"\n border: none;\n "}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),p=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(n){return"\n background-color: ".concat((n.theme.background||a.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((n.theme.interactive||a.Z.interactive).defaultBorder,";\n ")}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),h,(function(n){return n.headerPaddingVertical&&"\n padding-bottom: ".concat(n.headerPaddingVertical,"px;\n padding-top: ").concat(n.headerPaddingVertical,"px;\n ")})),m=i.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*u.iI,d.w5,(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return n.maxHeight&&"\n max-height: calc(".concat(n.maxHeight," - ").concat(15*u.iI,"px);\n ")}),(function(n){return n.noPadding&&"\n padding: 0;\n "}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),g=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*u.iI);e.Z=function(n){var e=n.borderless,t=n.children,i=n.containerRef,a=n.contentContainerRef,l=n.dark,d=n.footer,u=n.fullHeight,h=void 0===u||u,x=n.fullWidth,b=void 0===x||x,y=n.header,w=n.headerHeight,v=n.headerIcon,_=n.headerPaddingVertical,j=n.headerTitle,I=n.maxHeight,Z=n.maxWidth,N=n.minWidth,H=n.noPadding,P=n.overflowVisible,k=n.subtitle,S=n.success;return(0,s.jsxs)(f,{borderless:e,dark:l,fullHeight:h,fullWidth:b,maxHeight:I,maxWidth:Z,minWidth:N,overflowVisible:P,ref:i,success:S,children:[(y||j)&&(0,s.jsxs)(p,{headerPaddingVertical:_,height:w,children:[y&&y,j&&(0,s.jsx)(o.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(o.ZP,{alignItems:"center",children:[v&&v,(0,s.jsx)(r.Z,{ml:v?1:0,children:(0,s.jsx)(c.ZP,{bold:!0,default:!0,children:j})})]})})]}),(0,s.jsxs)(m,{maxHeight:I,noPadding:H,overflowVisible:P,ref:a,children:[k&&"string"===typeof k&&(0,s.jsx)(r.Z,{mb:2,children:(0,s.jsx)(c.ZP,{default:!0,children:k})}),k&&"string"!==typeof k&&k,t]}),d&&(0,s.jsx)(g,{children:d})]})}},85854:function(n,e,t){"use strict";var i,o,r,c,a,l,d,u,s=t(82394),h=t(26304),f=t(26653),p=t(38626),m=t(33591),g=t(44897),x=t(95363),b=t(61896),y=t(30160),w=t(70515),v=t(38276),_=t(28598),j=["children","condensed","inline","level","marketing","spacingBelow"];function I(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function Z(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?I(Object(t),!0).forEach((function(e){(0,s.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var N=(0,p.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," "," ",""],y.IH,(function(n){return n.color&&"\n color: ".concat(n.color,"\n ")}),(function(n){return n.yellow&&"\n color: ".concat((n.theme.accent||g.Z.accent).yellow,";\n ")}),(function(n){return n.center&&"\n text-align: center;\n "}),(function(n){return!n.monospace&&0===Number(n.weightStyle)&&"\n font-family: ".concat(x.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(x.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(x.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(x.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(x.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "}),(function(n){return n.strikethrough&&"\n text-decoration: line-through;\n "})),H=p.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||g.Z.content).active,";\n ")})),P=p.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],N,m.media.md(i||(i=(0,f.Z)(["\n ","\n "])),b.aQ),m.media.lg(o||(o=(0,f.Z)(["\n ","\n "])),b.aQ),m.media.xl(r||(r=(0,f.Z)(["\n ","\n "])),b.aQ)),k=p.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],N,b.MJ),S=p.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],N,m.media.xs(c||(c=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.sm(a||(a=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.md(l||(l=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.lg(d||(d=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.xl(u||(u=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),C=p.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],N,b.BL),z=p.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],N),O=p.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],N),W=p.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],N),V=p.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],N,(function(n){return 1===n.level&&"\n ".concat(b.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(b.BL,"\n ")}),(function(n){return 3===n.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(n){return 4===n.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),B=function(n){var e,t=n.children,i=n.condensed,o=n.inline,r=n.level,c=n.marketing,a=n.spacingBelow,l=(0,h.Z)(n,j);o?e=V:0===Number(r)?e=P:1===Number(r)?e=c?S:k:2===Number(r)?e=C:3===Number(r)?e=z:4===Number(r)?e=O:5===Number(r)&&(e=W);var d=(0,_.jsxs)(e,Z(Z({},l),{},{level:r,children:[a&&(0,_.jsx)(v.Z,{mb:i?2:3,children:t}),!a&&t]}));return o?d:(0,_.jsx)(H,{children:d})};B.defaultProps={level:3,weightStyle:6},e.Z=B},86627:function(n,e,t){"use strict";t.r(e);var i=t(77837),o=t(38860),r=t.n(o),c=t(65956),a=t(93808),l=t(28274),d=t(38276),u=t(36043),s=t(35686),h=t(70515),f=t(24755),p=t(50178),m=t(28598);function g(){var n=((0,p.PR)()||{}).id,e=s.ZP.users.detail(n),t=e.data,i=e.mutate,o=null===t||void 0===t?void 0:t.user;return(0,m.jsx)(l.Z,{uuidItemSelected:f.DQ,uuidWorkspaceSelected:f.tC,children:(0,m.jsx)(d.Z,{p:h.cd,children:(0,m.jsx)(c.Z,{children:(0,m.jsx)(u.Z,{disabledFields:["roles"],onSaveSuccess:i,user:o})})})})}g.getInitialProps=(0,i.Z)(r().mark((function n(){return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{});case 1:case"end":return n.stop()}}),n)}))),e.default=(0,a.Z)(g)},10736:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/account/profile",function(){return t(86627)}])}},function(n){n.O(0,[2678,1154,844,874,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6308],{65956:function(n,e,t){"use strict";var i=t(38626),o=t(55485),r=t(38276),c=t(30160),a=t(44897),l=t(42631),d=t(47041),u=t(70515),s=t(28598),h=(0,i.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*u.iI,1.5*u.iI,1.5*u.iI),f=i.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],l.n_,(function(n){return n.fullWidth&&"\n width: 100%;\n "}),(function(n){return!n.borderless&&"\n border: 1px solid ".concat((n.theme.interactive||a.Z.interactive).defaultBorder,";\n ")}),(function(n){return n.success&&"\n background-color: ".concat((n.theme.background||a.Z.background).successLight,";\n ")}),(function(n){return n.success&&!n.borderless&&"\n border: 1px solid ".concat((n.theme.background||a.Z.background).success,";\n ")}),(function(n){return!n.dark&&!n.success&&"\n background-color: ".concat((n.theme.background||a.Z.background).panel,";\n ")}),(function(n){return n.dark&&"\n background-color: ".concat((n.theme.background||a.Z.background).content,";\n ")}),(function(n){return!n.fullHeight&&"\n height: fit-content;\n "}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,";\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,"px;\n ")}),(function(n){return n.minWidth&&"\n min-width: ".concat(n.minWidth,"px;\n\n @media (max-width: ").concat(n.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(n){return n.borderless&&"\n border: none;\n "}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),p=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(n){return"\n background-color: ".concat((n.theme.background||a.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((n.theme.interactive||a.Z.interactive).defaultBorder,";\n ")}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),h,(function(n){return n.headerPaddingVertical&&"\n padding-bottom: ".concat(n.headerPaddingVertical,"px;\n padding-top: ").concat(n.headerPaddingVertical,"px;\n ")})),m=i.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*u.iI,d.w5,(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return n.maxHeight&&"\n max-height: calc(".concat(n.maxHeight," - ").concat(15*u.iI,"px);\n ")}),(function(n){return n.noPadding&&"\n padding: 0;\n "}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),g=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*u.iI);e.Z=function(n){var e=n.borderless,t=n.children,i=n.containerRef,a=n.contentContainerRef,l=n.dark,d=n.footer,u=n.fullHeight,h=void 0===u||u,x=n.fullWidth,b=void 0===x||x,y=n.header,w=n.headerHeight,v=n.headerIcon,_=n.headerPaddingVertical,j=n.headerTitle,I=n.maxHeight,Z=n.maxWidth,N=n.minWidth,H=n.noPadding,P=n.overflowVisible,k=n.subtitle,S=n.success;return(0,s.jsxs)(f,{borderless:e,dark:l,fullHeight:h,fullWidth:b,maxHeight:I,maxWidth:Z,minWidth:N,overflowVisible:P,ref:i,success:S,children:[(y||j)&&(0,s.jsxs)(p,{headerPaddingVertical:_,height:w,children:[y&&y,j&&(0,s.jsx)(o.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(o.ZP,{alignItems:"center",children:[v&&v,(0,s.jsx)(r.Z,{ml:v?1:0,children:(0,s.jsx)(c.ZP,{bold:!0,default:!0,children:j})})]})})]}),(0,s.jsxs)(m,{maxHeight:I,noPadding:H,overflowVisible:P,ref:a,children:[k&&"string"===typeof k&&(0,s.jsx)(r.Z,{mb:2,children:(0,s.jsx)(c.ZP,{default:!0,children:k})}),k&&"string"!==typeof k&&k,t]}),d&&(0,s.jsx)(g,{children:d})]})}},85854:function(n,e,t){"use strict";var i,o,r,c,a,l,d,u,s=t(82394),h=t(26304),f=t(26653),p=t(38626),m=t(33591),g=t(44897),x=t(95363),b=t(61896),y=t(30160),w=t(70515),v=t(38276),_=t(28598),j=["children","condensed","inline","level","marketing","spacingBelow"];function I(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function Z(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?I(Object(t),!0).forEach((function(e){(0,s.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var N=(0,p.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," "," ",""],y.IH,(function(n){return n.color&&"\n color: ".concat(n.color,"\n ")}),(function(n){return n.yellow&&"\n color: ".concat((n.theme.accent||g.Z.accent).yellow,";\n ")}),(function(n){return n.center&&"\n text-align: center;\n "}),(function(n){return!n.monospace&&0===Number(n.weightStyle)&&"\n font-family: ".concat(x.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(x.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(x.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(x.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(x.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "}),(function(n){return n.strikethrough&&"\n text-decoration: line-through;\n "})),H=p.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||g.Z.content).active,";\n ")})),P=p.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],N,m.media.md(i||(i=(0,f.Z)(["\n ","\n "])),b.aQ),m.media.lg(o||(o=(0,f.Z)(["\n ","\n "])),b.aQ),m.media.xl(r||(r=(0,f.Z)(["\n ","\n "])),b.aQ)),k=p.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],N,b.MJ),S=p.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],N,m.media.xs(c||(c=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.sm(a||(a=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.md(l||(l=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.lg(d||(d=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.xl(u||(u=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),C=p.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],N,b.BL),z=p.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],N),O=p.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],N),W=p.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],N),V=p.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],N,(function(n){return 1===n.level&&"\n ".concat(b.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(b.BL,"\n ")}),(function(n){return 3===n.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(n){return 4===n.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),B=function(n){var e,t=n.children,i=n.condensed,o=n.inline,r=n.level,c=n.marketing,a=n.spacingBelow,l=(0,h.Z)(n,j);o?e=V:0===Number(r)?e=P:1===Number(r)?e=c?S:k:2===Number(r)?e=C:3===Number(r)?e=z:4===Number(r)?e=O:5===Number(r)&&(e=W);var d=(0,_.jsxs)(e,Z(Z({},l),{},{level:r,children:[a&&(0,_.jsx)(v.Z,{mb:i?2:3,children:t}),!a&&t]}));return o?d:(0,_.jsx)(H,{children:d})};B.defaultProps={level:3,weightStyle:6},e.Z=B},86627:function(n,e,t){"use strict";t.r(e);var i=t(77837),o=t(38860),r=t.n(o),c=t(65956),a=t(93808),l=t(28274),d=t(38276),u=t(36043),s=t(35686),h=t(70515),f=t(24755),p=t(50178),m=t(28598);function g(){var n=((0,p.PR)()||{}).id,e=s.ZP.users.detail(n),t=e.data,i=e.mutate,o=null===t||void 0===t?void 0:t.user;return(0,m.jsx)(l.Z,{uuidItemSelected:f.DQ,uuidWorkspaceSelected:f.tC,children:(0,m.jsx)(d.Z,{p:h.cd,children:(0,m.jsx)(c.Z,{children:(0,m.jsx)(u.Z,{disabledFields:["roles"],onSaveSuccess:i,user:o})})})})}g.getInitialProps=(0,i.Z)(r().mark((function n(){return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{});case 1:case"end":return n.stop()}}),n)}))),e.default=(0,a.Z)(g)},10736:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/account/profile",function(){return t(86627)}])}},function(n){n.O(0,[2678,1154,844,874,1557,8264,8432,6043,9774,2888,179],(function(){return e=10736,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3605],{46568:function(e,n,t){"use strict";var i=t(82394),r=t(26304),o=(t(82684),t(33591)),c=t(28598),a=["children","fullHeight","gutter","style"];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 u(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,i.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}n.Z=function(e){var n=e.children,t=e.fullHeight,i=e.gutter,l=e.style,d=void 0===l?{}:l,s=(0,r.Z)(e,a),f=u({},d);return i&&(f.paddingLeft=i,f.paddingRight=f.paddingLeft),t&&(f.height="100%"),(0,c.jsx)(o.Col,u(u({},s),{},{style:f,children:n}))}},82682:function(e,n,t){"use strict";var i=t(82394),r=t(26304),o=t(82684),c=t(33591),a=t(28598),l=["children","fullHeight","gutter","justifyContent","style"];function u(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?u(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.fullHeight,i=e.gutter,u=e.justifyContent,s=e.style,f=void 0===s?{}:s,h=(0,r.Z)(e,l),p=d({},f);return i&&(p.marginLeft=-1*i,p.marginRight=p.marginLeft),t&&(p.height="100%"),(0,a.jsx)(c.Row,d(d({},h),{},{justifyContent:u,style:p,children:o.Children.map(n,(function(e,n){return e&&o.cloneElement(e,{gutter:i,key:n})}))}))}},65956:function(e,n,t){"use strict";var i=t(38626),r=t(55485),o=t(38276),c=t(30160),a=t(44897),l=t(42631),u=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),h=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||a.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||a.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||a.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||a.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||a.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 "})),p=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||a.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||a.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 ")})),g=i.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*d.iI,u.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 "})),m=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,a=e.contentContainerRef,l=e.dark,u=e.footer,d=e.fullHeight,f=void 0===d||d,b=e.fullWidth,y=void 0===b||b,x=e.header,w=e.headerHeight,j=e.headerIcon,v=e.headerPaddingVertical,O=e.headerTitle,P=e.maxHeight,_=e.maxWidth,Z=e.minWidth,H=e.noPadding,I=e.overflowVisible,N=e.subtitle,k=e.success;return(0,s.jsxs)(h,{borderless:n,dark:l,fullHeight:f,fullWidth:y,maxHeight:P,maxWidth:_,minWidth:Z,overflowVisible:I,ref:i,success:k,children:[(x||O)&&(0,s.jsxs)(p,{headerPaddingVertical:v,height:w,children:[x&&x,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)(g,{maxHeight:P,noPadding:H,overflowVisible:I,ref:a,children:[N&&"string"===typeof N&&(0,s.jsx)(o.Z,{mb:2,children:(0,s.jsx)(c.ZP,{default:!0,children:N})}),N&&"string"!==typeof N&&N,t]}),u&&(0,s.jsx)(m,{children:u})]})}},85854:function(e,n,t){"use strict";var i,r,o,c,a,l,u,d,s=t(82394),f=t(26304),h=t(26653),p=t(38626),g=t(33591),m=t(44897),b=t(95363),y=t(61896),x=t(30160),w=t(70515),j=t(38276),v=t(28598),O=["children","condensed","inline","level","marketing","spacingBelow"];function P(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 _(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?P(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Z=(0,p.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," "," ",""],x.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||m.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(b.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "}),(function(e){return e.strikethrough&&"\n text-decoration: line-through;\n "})),H=p.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||m.Z.content).active,";\n ")})),I=p.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],Z,g.media.md(i||(i=(0,h.Z)(["\n ","\n "])),y.aQ),g.media.lg(r||(r=(0,h.Z)(["\n ","\n "])),y.aQ),g.media.xl(o||(o=(0,h.Z)(["\n ","\n "])),y.aQ)),N=p.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],Z,y.MJ),k=p.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],Z,g.media.xs(c||(c=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),g.media.sm(a||(a=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),g.media.md(l||(l=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),g.media.lg(u||(u=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),g.media.xl(d||(d=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),S=p.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],Z,y.BL),C=p.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],Z),z=p.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],Z),E=p.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],Z),W=p.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],Z,(function(e){return 1===e.level&&"\n ".concat(y.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(y.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),D=function(e){var n,t=e.children,i=e.condensed,r=e.inline,o=e.level,c=e.marketing,a=e.spacingBelow,l=(0,f.Z)(e,O);r?n=W:0===Number(o)?n=I:1===Number(o)?n=c?k:N:2===Number(o)?n=S:3===Number(o)?n=C:4===Number(o)?n=z:5===Number(o)&&(n=E);var u=(0,v.jsxs)(n,_(_({},l),{},{level:o,children:[a&&(0,v.jsx)(j.Z,{mb:i?2:3,children:t}),!a&&t]}));return r?u:(0,v.jsx)(H,{children:u})};D.defaultProps={level:3,weightStyle:6},n.Z=D},70791:function(e,n,t){"use strict";t.r(n);var i=t(77837),r=t(38860),o=t.n(r),c=t(46568),a=t(55729),l=t(93808),u=t(82682),d=t(28274),s=t(38276),f=t(70515),h=t(24755),p=t(28598);function g(){return(0,p.jsx)(d.Z,{uuidItemSelected:h.B2.PREFERENCES,uuidWorkspaceSelected:h.Pl.PROJECT_PLATFORM,children:(0,p.jsx)(s.Z,{p:f.cd,children:(0,p.jsx)(u.Z,{justifyContent:"center",children:(0,p.jsx)(c.Z,{xl:8,xxl:6,children:(0,p.jsx)(a.Z,{rootProject:!0})})})})})}g.getInitialProps=(0,i.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,l.Z)(g)},8071:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/platform/preferences",function(){return t(70791)}])}},function(e){e.O(0,[2678,1154,844,874,1557,8264,8432,5729,9774,2888,179],(function(){return n=8071,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3112],{88543:function(e,n,t){"use strict";t.d(n,{S:function(){return Z},Z:function(){return P}});var r=t(82684),i=t(15338),o=t(97618),c=t(55485),d=t(85854),l=t(65956),a=t(82394),s=t(44085),u=t(38276),f=t(30160),h=t(17488),p=t(69650),g=t(72473),j=t(8193),x=t(70515),m=t(28598);function v(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?v(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Z=function(e){var n,t=e.children,r=e.description,i=e.invalid,d=e.large,l=void 0===d||d,a=e.selectInput,v=e.textInput,Z=e.title,P=e.toggleSwitch,y=e.warning;return(0,m.jsx)(u.Z,{p:x.cd,children:(0,m.jsxs)(c.ZP,{alignItems:"center",children:[(0,m.jsxs)(c.ZP,{flexDirection:"column",children:[(0,m.jsxs)(f.ZP,{danger:i,default:!0,large:l,warning:y,children:[Z," ",i&&(0,m.jsx)(f.ZP,{danger:!0,inline:!0,large:l,children:"is required"})]}),r&&"string"===typeof r&&(0,m.jsx)(f.ZP,{muted:!0,small:!0,children:r}),r&&"string"!==typeof r&&r]}),(0,m.jsx)(u.Z,{mr:x.cd}),(0,m.jsxs)(o.Z,{flex:1,justifyContent:"flex-end",children:[t,v&&(0,m.jsx)(h.Z,b({afterIcon:(0,m.jsx)(g.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:j.Z,alignRight:!0,autoComplete:"off",large:l,noBackground:!0,noBorder:!0,fullWidth:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0},v)),a&&(0,m.jsx)(s.Z,b(b({},a),{},{afterIcon:(0,m.jsx)(g._M,{}),afterIconSize:j.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,m.jsx)("option",{value:t,children:n||t},t)}))})),P&&(0,m.jsx)(p.Z,{checked:!(null===P||void 0===P||!P.checked),compact:!0,onCheck:null===P||void 0===P?void 0:P.onCheck})]})]})})},P=function(e){var n=e.children,t=e.description,a=e.headerChildren,s=e.title;return(0,m.jsxs)(l.Z,{noPadding:!0,children:[(0,m.jsx)(u.Z,{p:x.cd,children:(0,m.jsxs)(c.ZP,{alignItems:"center",children:[(0,m.jsxs)(o.Z,{flex:1,flexDirection:"column",children:[(0,m.jsx)(d.Z,{level:4,children:s}),t&&"string"===typeof t&&(0,m.jsx)(u.Z,{mt:1,children:(0,m.jsx)(f.ZP,{muted:!0,children:t})}),t&&"string"!==typeof t&&t]}),a]})}),r.Children.map(n,(function(e,n){return(0,m.jsxs)("div",{children:[(0,m.jsx)(i.Z,{light:!0}),e]},"".concat(s,"-").concat(n))}))]})}},8193:function(e,n,t){"use strict";t.d(n,{N:function(){return l},Z:function(){return d}});var r=t(38626),i=t(44897),o=t(42631),c=t(70515),d=2*c.iI,l=r.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||i.Z.background).codeArea,";\n ")}))},65956:function(e,n,t){"use strict";var r=t(38626),i=t(55485),o=t(38276),c=t(30160),d=t(44897),l=t(42631),a=t(47041),s=t(70515),u=t(28598),f=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*s.iI,1.5*s.iI,1.5*s.iI),h=r.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||d.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||d.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||d.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||d.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||d.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 "})),p=r.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||d.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||d.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 ")})),g=r.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*s.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*s.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),j=r.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],l.M8,l.YF,1.75*s.iI);n.Z=function(e){var n=e.borderless,t=e.children,r=e.containerRef,d=e.contentContainerRef,l=e.dark,a=e.footer,s=e.fullHeight,f=void 0===s||s,x=e.fullWidth,m=void 0===x||x,v=e.header,b=e.headerHeight,Z=e.headerIcon,P=e.headerPaddingVertical,y=e.headerTitle,w=e.maxHeight,k=e.maxWidth,O=e.minWidth,I=e.noPadding,C=e.overflowVisible,S=e.subtitle,_=e.success;return(0,u.jsxs)(h,{borderless:n,dark:l,fullHeight:f,fullWidth:m,maxHeight:w,maxWidth:k,minWidth:O,overflowVisible:C,ref:r,success:_,children:[(v||y)&&(0,u.jsxs)(p,{headerPaddingVertical:P,height:b,children:[v&&v,y&&(0,u.jsx)(i.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,u.jsxs)(i.ZP,{alignItems:"center",children:[Z&&Z,(0,u.jsx)(o.Z,{ml:Z?1:0,children:(0,u.jsx)(c.ZP,{bold:!0,default:!0,children:y})})]})})]}),(0,u.jsxs)(g,{maxHeight:w,noPadding:I,overflowVisible:C,ref:d,children:[S&&"string"===typeof S&&(0,u.jsx)(o.Z,{mb:2,children:(0,u.jsx)(c.ZP,{default:!0,children:S})}),S&&"string"!==typeof S&&S,t]}),a&&(0,u.jsx)(j,{children:a})]})}},80754:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return D}});var r=t(77837),i=t(38860),o=t.n(i),c=t(93808),d=t(82394),l=t(75582),a=t(82684),s=t(69864),u=t(21764),f=t(32013),h=t(98777),p=t(71180),g=t(15338),j=t(55485),x=t(88543),m=t(38276),v=t(30160),b=t(35686),Z=t(77417),P=t(72473),y=t(70515),w=t(81728),k=t(42122),O=t(72619),I=t(23780),C=t(28598);function S(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function _(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?S(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var H=function(){var e,n=(0,I.VI)(null,{},[],{uuid:"Platform/Settings"}),t=((0,l.Z)(n,1)[0],(0,Z.Z)()),r=t.project,i=t.rootProject,o=(0,a.useState)(null),c=o[0],S=o[1],H=(0,a.useState)(!1),N=(H[0],H[1]),W=(0,a.useState)(null),B=W[0],D=W[1],V=(0,a.useCallback)((function(e){S(e),N(!0)}),[S,N]);(0,a.useEffect)((function(){i&&!c&&S(null===i||void 0===i?void 0:i.platform_settings),r&&!B&&D(null===r||void 0===r?void 0:r.name)}),[i]);var E=(0,a.useMemo)((function(){var e=(0,w.RA)((0,w.Y6)());return(0,C.jsx)(p.ZP,{beforeIcon:(0,C.jsx)(P.mm,{}),compact:!0,small:!0,onClick:function(){return V((function(n){return _(_({},n),{},{projects:_(_({},null===c||void 0===c?void 0:c.projects),{},(0,d.Z)({},e,{}))})}))},secondary:!0,children:"Register project"})}),[c]),R=(0,s.Db)(b.ZP.projects.useUpdate(null===i||void 0===i?void 0:i.name),{onSuccess:function(e){return(0,O.wD)(e,{callback:function(e){var n=e.project;V((function(e){return _(_({},e),n)})),u.Am.success("Platform settings successfully saved.",{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:"platform-settings-success-".concat(null===n||void 0===n?void 0:n.name)})}})}}),T=(0,l.Z)(R,2),M=T[0],F=T[1].isLoading;return(0,C.jsxs)(m.Z,{p:y.cd,children:[(0,C.jsx)(x.Z,{title:"Projects",headerChildren:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(m.Z,{ml:y.cd}),E]}),children:(0,C.jsx)(f.Z,{noBorder:!0,noBoxShadow:!0,visibleMappingForced:Object.keys((null===c||void 0===c?void 0:c.projects)||{}).reduce((function(e,n,t){return _(_({},e),{},(0,d.Z)({},String(t),!0))}),{}),children:Object.entries((null===c||void 0===c?void 0:c.projects)||{}).map((function(e){var n=(0,l.Z)(e,2),t=n[0],r=n[1],i=r.path,o=r.uuid;return(0,C.jsxs)(h.Z,{noBorderRadius:!0,noPaddingContent:!0,title:(0,C.jsx)(j.ZP,{alignItems:"center",children:(0,C.jsx)(v.ZP,{large:!0,monospace:!0,children:t})}),titleXPadding:y.cd*y.iI,titleYPadding:y.cd*y.iI,children:[(0,C.jsx)(x.S,{title:"Name",description:"Unique name of project.",textInput:{fullWidth:!1,monospace:!0,placeholder:t,onChange:function(e){return V((function(n){return _(_({},n),{},{projects:_(_({},null===c||void 0===c?void 0:c.projects),{},(0,d.Z)({},t,_(_({},r),{},{uuid:e.target.value})))})}))},value:o}}),(0,C.jsx)(x.S,{title:"Path",description:(0,C.jsxs)(v.ZP,{muted:!0,small:!0,children:["Relative path to the project directory starting from the root project directory.",(0,C.jsx)("br",{}),"If blank, the default path will be the project name."]}),textInput:{fullWidth:!1,monospace:!0,placeholder:t,onChange:function(e){return V((function(n){return _(_({},n),{},{projects:_(_({},null===c||void 0===c?void 0:c.projects),{},(0,d.Z)({},t,_(_({},r),{},{path:e.target.value})))})}))},value:i||""}}),(0,C.jsx)(x.S,{title:"Currently selected project",description:"The currently selected project.",toggleSwitch:{checked:t===B,onCheck:function(){return D(t===B?null:t)}}}),(0,C.jsx)(g.Z,{light:!0}),(0,C.jsx)(x.S,{children:(0,C.jsx)(p.ZP,{compact:!0,noBorder:!0,onClick:function(){V((function(e){return _(_({},e),{},{projects:(0,k.gR)(null===c||void 0===c?void 0:c.projects,[t])})}))},small:!0,children:"Deregister project"})})]},t)}))})}),(0,C.jsx)(m.Z,{mt:y.HN}),(0,C.jsx)(x.Z,{title:"Features",children:(0,C.jsx)(x.S,{title:"Override all project features",description:(0,C.jsxs)(v.ZP,{muted:!0,small:!0,children:["If this setting is toggled, the feature flags that are set from the root project",(0,C.jsx)("br",{}),"will override the feature flags of all sub-projects."]}),toggleSwitch:{checked:null===c||void 0===c||null===(e=c.features)||void 0===e?void 0:e.override,onCheck:function(){return V((function(e){var n;return _(_({},e),{},{features:_(_({},null===e||void 0===e?void 0:e.features),{},{override:!(null!==c&&void 0!==c&&null!==(n=c.features)&&void 0!==n&&n.override)})})}))}}})}),(0,C.jsx)(m.Z,{my:y.HN,children:(0,C.jsxs)(j.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,C.jsx)("div",{}),(0,C.jsx)(p.ZP,{beforeIcon:(0,C.jsx)(P.vc,{}),loading:F,onClick:function(){return M({project:{activate_project:B,platform_settings:c,root_project:!0}})},primary:!0,children:"Save settings"})]})})]})},N=t(28274),W=t(24755);function B(){return(0,C.jsx)(N.Z,{uuidItemSelected:W.B2.SETTINGS,uuidWorkspaceSelected:W.Pl.PROJECT_PLATFORM,children:(0,C.jsx)(H,{})})}B.getInitialProps=(0,r.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var D=(0,c.Z)(B)},39863:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/platform/settings",function(){return t(80754)}])}},function(e){e.O(0,[2678,1154,844,874,1557,8264,7858,8432,9774,2888,179],(function(){return n=39863,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([[609],{5149:function(n,r,u){"use strict";u.r(r);var t=u(77837),e=u(38860),s=u.n(e),i=u(58146),o=u(93808),a=u(28598);function c(n){var r=n.slug;return(0,a.jsx)(i.Z,{slug:r})}c.getInitialProps=function(){var n=(0,t.Z)(s().mark((function n(r){var u;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=r.query.slug,n.abrupt("return",{slug:null===u||void 0===u?void 0:u[0]});case 2:case"end":return n.stop()}}),n)})));return function(r){return n.apply(this,arguments)}}(),r.default=(0,o.Z)(c)},79877:function(n,r,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/permissions/[...slug]",function(){return u(5149)}])}},function(n){n.O(0,[2678,1154,844,874,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[609],{5149:function(n,r,u){"use strict";u.r(r);var t=u(77837),e=u(38860),s=u.n(e),i=u(58146),o=u(93808),a=u(28598);function c(n){var r=n.slug;return(0,a.jsx)(i.Z,{slug:r})}c.getInitialProps=function(){var n=(0,t.Z)(s().mark((function n(r){var u;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=r.query.slug,n.abrupt("return",{slug:null===u||void 0===u?void 0:u[0]});case 2:case"end":return n.stop()}}),n)})));return function(r){return n.apply(this,arguments)}}(),r.default=(0,o.Z)(c)},79877:function(n,r,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/permissions/[...slug]",function(){return u(5149)}])}},function(n){n.O(0,[2678,1154,844,874,1557,8264,7858,5499,8432,8146,9774,2888,179],(function(){return r=79877,n(n.s=r);var r}));var r=n.O();_N_E=r}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4085],{34331:function(e,n,i){"use strict";i.r(n);var t=i(77837),r=i(38860),s=i.n(r),u=i(82684),c=i(34376),o=i(71180),d=i(15338),l=i(55485),a=i(58146),p=i(93808),m=i(28274),f=i(38276),h=i(75499),v=i(30160),x=i(35686),j=i(72473),_=i(70515),P=i(24755),Z=i(3917),w=i(36717),b=i(28598);function k(){var e=(0,c.useRouter)(),n=(0,u.useState)(!1),i=n[0],t=n[1],r=x.ZP.permissions.list({_limit:1e3}).data,s=(0,u.useMemo)((function(){return(null===r||void 0===r?void 0:r.permissions)||[]}),[r]),p=[{bold:!i,label:function(){return"Permissions"}}];return i?(p[0].onClick=function(){return t(!1)},p.push({bold:!0,label:function(){return"New permission"}})):p[0].linkProps={href:"/settings/workspace/permissions"},(0,b.jsxs)(m.Z,{appendBreadcrumbs:!0,breadcrumbs:p,title:"Permissions",uuidItemSelected:P.B2.PERMISSIONS,uuidWorkspaceSelected:P.Pl.USER_MANAGEMENT,children:[i&&(0,b.jsx)(a.Z,{contained:!0,onCancel:function(){return t(!1)}}),!i&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.Z,{p:_.cd,children:(0,b.jsx)(o.ZP,{beforeIcon:(0,b.jsx)(j.QM,{}),onClick:function(){return t(!0)},primary:!0,children:"Add new permission"})}),(0,b.jsx)(d.Z,{light:!0}),(0,b.jsx)(h.Z,{columnFlex:[3,1,null,6,null,null],columns:[{uuid:"Entity"},{uuid:"Subtype"},{uuid:"Entity ID"},{uuid:"Access"},{uuid:"Last updated"},{rightAligned:!0,uuid:"Created at"}],onClickRow:function(n){var i,t=null===(i=s[n])||void 0===i?void 0:i.id;e.push("/settings/workspace/permissions/".concat(t))},rows:null===s||void 0===s?void 0:s.map((function(e){var n=e.access,i=e.created_at,t=e.entity,r=e.entity_id,s=e.entity_name,u=e.entity_type,c=(e.id,e.updated_at),o=(e.user,n?(0,w.q)(n):[]),d=(null===o||void 0===o?void 0:o.length)||0;return[(0,b.jsx)(v.ZP,{monospace:!0,children:s||t},"entityName"),(0,b.jsx)(v.ZP,{default:!0,monospace:!!u,children:u||"-"},"entityType"),(0,b.jsx)(v.ZP,{default:!0,monospace:!!r,children:r||"-"},"entityID"),(0,b.jsx)("div",{children:d>=1&&(0,b.jsx)(l.ZP,{alignItems:"center",flexWrap:"wrap",children:null===o||void 0===o?void 0:o.map((function(e,n){return(0,b.jsx)("div",{children:(0,b.jsxs)(v.ZP,{default:!0,monospace:!0,small:!0,children:[e,d>=2&&n<d-1&&(0,b.jsx)(v.ZP,{inline:!0,muted:!0,small:!0,children:",\xa0"})]})},e)}))})},"access"),(0,b.jsx)(v.ZP,{monospace:!0,default:!0,children:c&&(0,Z.d$)(c)},"updatedAt"),(0,b.jsx)(v.ZP,{monospace:!0,default:!0,rightAligned:!0,children:i&&(0,Z.d$)(i)},"createdAt")]})),uuid:"permissions"})]})]})}k.getInitialProps=(0,t.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,p.Z)(k)},36717:function(e,n,i){"use strict";i.d(n,{q:function(){return s}});var t=i(75582),r=i(36288);function s(e){return Object.entries(r.K4).reduce((function(n,i){var r=(0,t.Z)(i,2),s=r[0],u=r[1];return e&Number(s)?n.concat(u):n}),[])}},65960:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/permissions",function(){return i(34331)}])}},function(e){e.O(0,[2678,1154,844,874,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4085],{34331:function(e,n,i){"use strict";i.r(n);var t=i(77837),r=i(38860),s=i.n(r),u=i(82684),c=i(34376),o=i(71180),d=i(15338),l=i(55485),a=i(58146),p=i(93808),m=i(28274),f=i(38276),h=i(75499),v=i(30160),x=i(35686),j=i(72473),_=i(70515),P=i(24755),Z=i(3917),w=i(36717),b=i(28598);function k(){var e=(0,c.useRouter)(),n=(0,u.useState)(!1),i=n[0],t=n[1],r=x.ZP.permissions.list({_limit:1e3}).data,s=(0,u.useMemo)((function(){return(null===r||void 0===r?void 0:r.permissions)||[]}),[r]),p=[{bold:!i,label:function(){return"Permissions"}}];return i?(p[0].onClick=function(){return t(!1)},p.push({bold:!0,label:function(){return"New permission"}})):p[0].linkProps={href:"/settings/workspace/permissions"},(0,b.jsxs)(m.Z,{appendBreadcrumbs:!0,breadcrumbs:p,title:"Permissions",uuidItemSelected:P.B2.PERMISSIONS,uuidWorkspaceSelected:P.Pl.USER_MANAGEMENT,children:[i&&(0,b.jsx)(a.Z,{contained:!0,onCancel:function(){return t(!1)}}),!i&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.Z,{p:_.cd,children:(0,b.jsx)(o.ZP,{beforeIcon:(0,b.jsx)(j.QM,{}),onClick:function(){return t(!0)},primary:!0,children:"Add new permission"})}),(0,b.jsx)(d.Z,{light:!0}),(0,b.jsx)(h.Z,{columnFlex:[3,1,null,6,null,null],columns:[{uuid:"Entity"},{uuid:"Subtype"},{uuid:"Entity ID"},{uuid:"Access"},{uuid:"Last updated"},{rightAligned:!0,uuid:"Created at"}],onClickRow:function(n){var i,t=null===(i=s[n])||void 0===i?void 0:i.id;e.push("/settings/workspace/permissions/".concat(t))},rows:null===s||void 0===s?void 0:s.map((function(e){var n=e.access,i=e.created_at,t=e.entity,r=e.entity_id,s=e.entity_name,u=e.entity_type,c=(e.id,e.updated_at),o=(e.user,n?(0,w.q)(n):[]),d=(null===o||void 0===o?void 0:o.length)||0;return[(0,b.jsx)(v.ZP,{monospace:!0,children:s||t},"entityName"),(0,b.jsx)(v.ZP,{default:!0,monospace:!!u,children:u||"-"},"entityType"),(0,b.jsx)(v.ZP,{default:!0,monospace:!!r,children:r||"-"},"entityID"),(0,b.jsx)("div",{children:d>=1&&(0,b.jsx)(l.ZP,{alignItems:"center",flexWrap:"wrap",children:null===o||void 0===o?void 0:o.map((function(e,n){return(0,b.jsx)("div",{children:(0,b.jsxs)(v.ZP,{default:!0,monospace:!0,small:!0,children:[e,d>=2&&n<d-1&&(0,b.jsx)(v.ZP,{inline:!0,muted:!0,small:!0,children:",\xa0"})]})},e)}))})},"access"),(0,b.jsx)(v.ZP,{monospace:!0,default:!0,children:c&&(0,Z.d$)(c)},"updatedAt"),(0,b.jsx)(v.ZP,{monospace:!0,default:!0,rightAligned:!0,children:i&&(0,Z.d$)(i)},"createdAt")]})),uuid:"permissions"})]})]})}k.getInitialProps=(0,t.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,p.Z)(k)},36717:function(e,n,i){"use strict";i.d(n,{q:function(){return s}});var t=i(75582),r=i(36288);function s(e){return Object.entries(r.K4).reduce((function(n,i){var r=(0,t.Z)(i,2),s=r[0],u=r[1];return e&Number(s)?n.concat(u):n}),[])}},65960:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/permissions",function(){return i(34331)}])}},function(e){e.O(0,[2678,1154,844,874,1557,8264,7858,5499,8432,8146,9774,2888,179],(function(){return n=65960,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3853],{46568:function(e,n,t){"use strict";var i=t(82394),r=t(26304),o=(t(82684),t(33591)),c=t(28598),a=["children","fullHeight","gutter","style"];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 u(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,i.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}n.Z=function(e){var n=e.children,t=e.fullHeight,i=e.gutter,l=e.style,d=void 0===l?{}:l,s=(0,r.Z)(e,a),f=u({},d);return i&&(f.paddingLeft=i,f.paddingRight=f.paddingLeft),t&&(f.height="100%"),(0,c.jsx)(o.Col,u(u({},s),{},{style:f,children:n}))}},82682:function(e,n,t){"use strict";var i=t(82394),r=t(26304),o=t(82684),c=t(33591),a=t(28598),l=["children","fullHeight","gutter","justifyContent","style"];function u(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?u(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.fullHeight,i=e.gutter,u=e.justifyContent,s=e.style,f=void 0===s?{}:s,h=(0,r.Z)(e,l),p=d({},f);return i&&(p.marginLeft=-1*i,p.marginRight=p.marginLeft),t&&(p.height="100%"),(0,a.jsx)(c.Row,d(d({},h),{},{justifyContent:u,style:p,children:o.Children.map(n,(function(e,n){return e&&o.cloneElement(e,{gutter:i,key:n})}))}))}},65956:function(e,n,t){"use strict";var i=t(38626),r=t(55485),o=t(38276),c=t(30160),a=t(44897),l=t(42631),u=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),h=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||a.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||a.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||a.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||a.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||a.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 "})),p=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||a.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||a.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 ")})),g=i.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*d.iI,u.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 "})),m=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,a=e.contentContainerRef,l=e.dark,u=e.footer,d=e.fullHeight,f=void 0===d||d,b=e.fullWidth,y=void 0===b||b,x=e.header,w=e.headerHeight,j=e.headerIcon,v=e.headerPaddingVertical,O=e.headerTitle,P=e.maxHeight,Z=e.maxWidth,_=e.minWidth,H=e.noPadding,I=e.overflowVisible,k=e.subtitle,N=e.success;return(0,s.jsxs)(h,{borderless:n,dark:l,fullHeight:f,fullWidth:y,maxHeight:P,maxWidth:Z,minWidth:_,overflowVisible:I,ref:i,success:N,children:[(x||O)&&(0,s.jsxs)(p,{headerPaddingVertical:v,height:w,children:[x&&x,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)(g,{maxHeight:P,noPadding:H,overflowVisible:I,ref:a,children:[k&&"string"===typeof k&&(0,s.jsx)(o.Z,{mb:2,children:(0,s.jsx)(c.ZP,{default:!0,children:k})}),k&&"string"!==typeof k&&k,t]}),u&&(0,s.jsx)(m,{children:u})]})}},85854:function(e,n,t){"use strict";var i,r,o,c,a,l,u,d,s=t(82394),f=t(26304),h=t(26653),p=t(38626),g=t(33591),m=t(44897),b=t(95363),y=t(61896),x=t(30160),w=t(70515),j=t(38276),v=t(28598),O=["children","condensed","inline","level","marketing","spacingBelow"];function P(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?P(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _=(0,p.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," "," ",""],x.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||m.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(b.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "}),(function(e){return e.strikethrough&&"\n text-decoration: line-through;\n "})),H=p.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||m.Z.content).active,";\n ")})),I=p.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],_,g.media.md(i||(i=(0,h.Z)(["\n ","\n "])),y.aQ),g.media.lg(r||(r=(0,h.Z)(["\n ","\n "])),y.aQ),g.media.xl(o||(o=(0,h.Z)(["\n ","\n "])),y.aQ)),k=p.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],_,y.MJ),N=p.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],_,g.media.xs(c||(c=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),g.media.sm(a||(a=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),g.media.md(l||(l=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),g.media.lg(u||(u=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),g.media.xl(d||(d=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),S=p.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],_,y.BL),C=p.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],_),z=p.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],_),W=p.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],_),D=p.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],_,(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 "})),E=function(e){var n,t=e.children,i=e.condensed,r=e.inline,o=e.level,c=e.marketing,a=e.spacingBelow,l=(0,f.Z)(e,O);r?n=D:0===Number(o)?n=I:1===Number(o)?n=c?N:k:2===Number(o)?n=S:3===Number(o)?n=C:4===Number(o)?n=z:5===Number(o)&&(n=W);var u=(0,v.jsxs)(n,Z(Z({},l),{},{level:o,children:[a&&(0,v.jsx)(j.Z,{mb:i?2:3,children:t}),!a&&t]}));return r?u:(0,v.jsx)(H,{children:u})};E.defaultProps={level:3,weightStyle:6},n.Z=E},61316:function(e,n,t){"use strict";t.r(n);var i=t(77837),r=t(38860),o=t.n(r),c=t(46568),a=t(55729),l=t(93808),u=t(82682),d=t(28274),s=t(38276),f=t(70515),h=t(24755),p=t(28598);function g(){return(0,p.jsx)(d.Z,{uuidItemSelected:h.HY,uuidWorkspaceSelected:h.WH,children:(0,p.jsx)(s.Z,{p:f.cd,children:(0,p.jsx)(u.Z,{justifyContent:"center",children:(0,p.jsx)(c.Z,{xl:8,xxl:6,children:(0,p.jsx)(a.Z,{})})})})})}g.getInitialProps=(0,i.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,l.Z)(g)},33323:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/preferences",function(){return t(61316)}])}},function(e){e.O(0,[2678,1154,844,874,1557,8264,8432,5729,9774,2888,179],(function(){return n=33323,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([[6875],{2591:function(n,r,u){"use strict";u.r(r);var t=u(77837),e=u(38860),s=u.n(e),i=u(93808),o=u(17022),a=u(28598);function c(n){var r=n.slug;return(0,a.jsx)(o.Z,{slug:r})}c.getInitialProps=function(){var n=(0,t.Z)(s().mark((function n(r){var u;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=r.query.slug,n.abrupt("return",{slug:null===u||void 0===u?void 0:u[0]});case 2:case"end":return n.stop()}}),n)})));return function(r){return n.apply(this,arguments)}}(),r.default=(0,i.Z)(c)},44981:function(n,r,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/roles/[...slug]",function(){return u(2591)}])}},function(n){n.O(0,[2678,1154,844,874,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6875],{2591:function(n,r,u){"use strict";u.r(r);var t=u(77837),e=u(38860),s=u.n(e),i=u(93808),o=u(17022),a=u(28598);function c(n){var r=n.slug;return(0,a.jsx)(o.Z,{slug:r})}c.getInitialProps=function(){var n=(0,t.Z)(s().mark((function n(r){var u;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=r.query.slug,n.abrupt("return",{slug:null===u||void 0===u?void 0:u[0]});case 2:case"end":return n.stop()}}),n)})));return function(r){return n.apply(this,arguments)}}(),r.default=(0,i.Z)(c)},44981:function(n,r,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/roles/[...slug]",function(){return u(2591)}])}},function(n){n.O(0,[2678,1154,844,874,1557,8264,7858,5499,8432,7022,9774,2888,179],(function(){return r=44981,n(n.s=r);var r}));var r=n.O();_N_E=r}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2344],{53795:function(e,n,r){"use strict";r.r(n);var s=r(77837),t=r(75582),o=r(38860),i=r.n(o),u=r(21764),c=r(82684),l=r(69864),d=r(34376),a=r(71180),p=r(15338),f=r(55485),h=r(48670),m=r(63637),x=r(93808),j=r(17022),w=r(28274),Z=r(38276),v=r(75499),k=r(30160),b=r(12468),g=r(35686),_=r(70515),P=r(24755),C=r(3917),I=r(76417),T=r(72619),A=r(95924),O=r(28598);function E(){var e=(0,d.useRouter)(),n=(0,c.useState)(!1),r=n[0],s=n[1],o=g.ZP.roles.list().data,i=(0,c.useMemo)((function(){return(null===o||void 0===o?void 0:o.roles)||[]}),[o]),x=[{bold:!r,label:function(){return"Roles"}}];r?(x[0].onClick=function(){return s(!1)},x.push({bold:!0,label:function(){return"New role"}})):x[0].linkProps={href:"/settings/workspace/roles"};var E=(0,l.Db)(g.ZP.seeds.useCreate(),{onSuccess:function(e){return(0,T.wD)(e,{callback:function(){u.Am.success("Roles and permissions successfully created.",{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:"seed-create-success"})},onErrorCallback:function(e){var n=e.error,r=n.errors,s=n.exception,t=n.message,o=n.type;u.Am.error((null===r||void 0===r?void 0:r.error)||s||t,{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:o})}})}}),N=(0,t.Z)(E,2),R=N[0],S=N[1].isLoading;return(0,O.jsxs)(w.Z,{appendBreadcrumbs:!0,breadcrumbs:x,title:"Roles",uuidItemSelected:P.B2.ROLES,uuidWorkspaceSelected:P.Pl.USER_MANAGEMENT,children:[r&&(0,O.jsx)(j.Z,{contained:!0,onCancel:function(){return s(!1)}}),!r&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(Z.Z,{p:_.cd,children:(0,O.jsxs)(f.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,O.jsx)(a.ZP,{beforeIcon:(0,O.jsx)(m.Z,{}),onClick:function(){return s(!0)},primary:!0,children:"Add new role"}),(0,O.jsx)(Z.Z,{mr:_.cd}),(0,O.jsx)(b.Z,{appearBefore:!0,fullSize:!0,description:(0,O.jsxs)(k.ZP,{default:!0,children:["This will create 6 roles and 100s of permissions",(0,O.jsx)("br",{}),"that Mage normally uses when user defined",(0,O.jsx)("br",{}),"permissions isn\u2019t turned on."]}),lightBackground:!0,widthFitContent:!0,children:(0,O.jsx)(a.ZP,{compact:!0,loading:S,onClick:function(){return R({seed:{permissions:!0,roles:!0}})},secondary:!0,small:!0,children:"Create default roles and permissions"})})]})}),(0,O.jsx)(p.Z,{light:!0}),(0,O.jsx)(v.Z,{columnFlex:[1,1,1,null],columns:[{uuid:"Role"},{uuid:"Created by"},{uuid:"Last updated"},{rightAligned:!0,uuid:"Created at"}],onClickRow:function(n){var r,s=null===(r=i[n])||void 0===r?void 0:r.id;e.push("/settings/workspace/roles/".concat(s))},rows:null===i||void 0===i?void 0:i.map((function(n){var r=n.created_at,s=(n.id,n.name),t=n.updated_at,o=n.user;return[(0,O.jsx)(k.ZP,{children:s},"name"),o?(0,O.jsx)(h.Z,{default:!0,onClick:function(n){(0,A.j)(n),e.push("/settings/workspace/users/".concat(null===o||void 0===o?void 0:o.id))},children:(0,I.s)(o)}):(0,O.jsx)("div",{},"user"),(0,O.jsx)(k.ZP,{monospace:!0,default:!0,children:t&&(0,C.d$)(t)},"updatedAt"),(0,O.jsx)(k.ZP,{monospace:!0,default:!0,rightAligned:!0,children:r&&(0,C.d$)(r)},"createdAt")]})),uuid:"roles"})]})]})}E.getInitialProps=(0,s.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,x.Z)(E)},8619:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/roles",function(){return r(53795)}])}},function(e){e.O(0,[2678,1154,844,874,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2344],{53795:function(e,n,r){"use strict";r.r(n);var s=r(77837),t=r(75582),o=r(38860),i=r.n(o),u=r(21764),c=r(82684),l=r(69864),d=r(34376),a=r(71180),p=r(15338),f=r(55485),h=r(48670),m=r(63637),x=r(93808),j=r(17022),w=r(28274),Z=r(38276),v=r(75499),k=r(30160),b=r(12468),g=r(35686),_=r(70515),P=r(24755),C=r(3917),I=r(76417),T=r(72619),A=r(95924),O=r(28598);function E(){var e=(0,d.useRouter)(),n=(0,c.useState)(!1),r=n[0],s=n[1],o=g.ZP.roles.list().data,i=(0,c.useMemo)((function(){return(null===o||void 0===o?void 0:o.roles)||[]}),[o]),x=[{bold:!r,label:function(){return"Roles"}}];r?(x[0].onClick=function(){return s(!1)},x.push({bold:!0,label:function(){return"New role"}})):x[0].linkProps={href:"/settings/workspace/roles"};var E=(0,l.Db)(g.ZP.seeds.useCreate(),{onSuccess:function(e){return(0,T.wD)(e,{callback:function(){u.Am.success("Roles and permissions successfully created.",{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:"seed-create-success"})},onErrorCallback:function(e){var n=e.error,r=n.errors,s=n.exception,t=n.message,o=n.type;u.Am.error((null===r||void 0===r?void 0:r.error)||s||t,{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:o})}})}}),N=(0,t.Z)(E,2),R=N[0],S=N[1].isLoading;return(0,O.jsxs)(w.Z,{appendBreadcrumbs:!0,breadcrumbs:x,title:"Roles",uuidItemSelected:P.B2.ROLES,uuidWorkspaceSelected:P.Pl.USER_MANAGEMENT,children:[r&&(0,O.jsx)(j.Z,{contained:!0,onCancel:function(){return s(!1)}}),!r&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(Z.Z,{p:_.cd,children:(0,O.jsxs)(f.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,O.jsx)(a.ZP,{beforeIcon:(0,O.jsx)(m.Z,{}),onClick:function(){return s(!0)},primary:!0,children:"Add new role"}),(0,O.jsx)(Z.Z,{mr:_.cd}),(0,O.jsx)(b.Z,{appearBefore:!0,fullSize:!0,description:(0,O.jsxs)(k.ZP,{default:!0,children:["This will create 6 roles and 100s of permissions",(0,O.jsx)("br",{}),"that Mage normally uses when user defined",(0,O.jsx)("br",{}),"permissions isn\u2019t turned on."]}),lightBackground:!0,widthFitContent:!0,children:(0,O.jsx)(a.ZP,{compact:!0,loading:S,onClick:function(){return R({seed:{permissions:!0,roles:!0}})},secondary:!0,small:!0,children:"Create default roles and permissions"})})]})}),(0,O.jsx)(p.Z,{light:!0}),(0,O.jsx)(v.Z,{columnFlex:[1,1,1,null],columns:[{uuid:"Role"},{uuid:"Created by"},{uuid:"Last updated"},{rightAligned:!0,uuid:"Created at"}],onClickRow:function(n){var r,s=null===(r=i[n])||void 0===r?void 0:r.id;e.push("/settings/workspace/roles/".concat(s))},rows:null===i||void 0===i?void 0:i.map((function(n){var r=n.created_at,s=(n.id,n.name),t=n.updated_at,o=n.user;return[(0,O.jsx)(k.ZP,{children:s},"name"),o?(0,O.jsx)(h.Z,{default:!0,onClick:function(n){(0,A.j)(n),e.push("/settings/workspace/users/".concat(null===o||void 0===o?void 0:o.id))},children:(0,I.s)(o)}):(0,O.jsx)("div",{},"user"),(0,O.jsx)(k.ZP,{monospace:!0,default:!0,children:t&&(0,C.d$)(t)},"updatedAt"),(0,O.jsx)(k.ZP,{monospace:!0,default:!0,rightAligned:!0,children:r&&(0,C.d$)(r)},"createdAt")]})),uuid:"roles"})]})]})}E.getInitialProps=(0,s.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,x.Z)(E)},8619:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/roles",function(){return r(53795)}])}},function(e){e.O(0,[2678,1154,844,874,1557,8264,7858,5499,8432,7022,9774,2888,179],(function(){return n=8619,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|