mage-ai 0.9.56__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/policies/GlobalHookPolicy.py +3 -0
- mage_ai/api/policies/ProjectPolicy.py +2 -0
- mage_ai/api/presenters/ProjectPresenter.py +3 -0
- mage_ai/api/resources/GlobalHookResource.py +55 -10
- mage_ai/api/resources/ProjectResource.py +15 -2
- mage_ai/cache/dbt/cache.py +1 -1
- mage_ai/cache/dbt/utils.py +22 -2
- mage_ai/data_preparation/models/block/__init__.py +15 -5
- mage_ai/data_preparation/models/block/dbt/block_sql.py +12 -3
- 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 +28 -1
- 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/3437-ce26fc28e114b44e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3540-9bb48b08f439d0a0.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3745-51be3a2b7cd04895.js → frontend_dist/_next/static/chunks/3745-61b1c63bb56bb670.js} +1 -1
- 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/{9264-a5e8a0274efa2b14.js → 9264-5df6e4c7b1e85c02.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-cc7f5a0c2456bc03.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_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-b526282c8ac49986.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...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_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-fe4d1321da8291cb.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/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/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runtime-f2a052cb8a20fe47.js → block-runtime-d1f23308effebe03.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-579899cbaedcdefc.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-9a116d88f00916ff.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-7a2265b7e44bed0b.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-2d5abcd019d4bea1.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-9b53da919db959bd.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/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_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-68d779bc62185470.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/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/_next/static/chunks/pages/{sign-in-c734db1d5834dda2.js → 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 +5 -5
- 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/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/_next/static/chunks/3745-51be3a2b7cd04895.js → frontend_dist_base_path_template/_next/static/chunks/3745-61b1c63bb56bb670.js} +1 -1
- 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/{9264-a5e8a0274efa2b14.js → 9264-5df6e4c7b1e85c02.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{_app-cc7f5a0c2456bc03.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/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-b526282c8ac49986.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...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/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-fe4d1321da8291cb.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/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_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runtime-f2a052cb8a20fe47.js → block-runtime-d1f23308effebe03.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-579899cbaedcdefc.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-9a116d88f00916ff.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-7a2265b7e44bed0b.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-2d5abcd019d4bea1.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-9b53da919db959bd.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/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/_next/static/chunks/pages/pipelines/[pipeline]/syncs-68d779bc62185470.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/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_base_path_template/_next/static/chunks/pages/{sign-in-c734db1d5834dda2.js → 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 +4 -4
- mage_ai/server/frontend_dist_base_path_template/overview.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/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 +14 -14
- 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/settings/models/configuration_option.py +15 -1
- mage_ai/settings/platform/__init__.py +29 -7
- 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/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.56.dist-info → mage_ai-0.9.57.dist-info}/METADATA +1 -1
- {mage_ai-0.9.56.dist-info → mage_ai-0.9.57.dist-info}/RECORD +280 -258
- mage_ai/server/frontend_dist/_next/static/4hG0vHBR7gnry-ZWEsEF3/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1125-65883c05178efca1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1952-c4ba37bc172d7051.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3437-91f6098316edaf17.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5457-6e700aadac17ceec.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7936-e25b6058d3f9b215.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/9626-090ff01fd210431c.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-13a4f6d00e8a1c63.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-259dea0c7cb30d2a.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-1fe2dfaa456529a6.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-8fad54817f356e9f.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-ed8c521227dd326e.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-5b316b190ff4b226.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-b52d3a07a13452ff.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/MKDICBWwxQowqsGfMukac/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1125-65883c05178efca1.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/3437-91f6098316edaf17.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/7936-e25b6058d3f9b215.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/9626-090ff01fd210431c.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-13a4f6d00e8a1c63.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-259dea0c7cb30d2a.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-1fe2dfaa456529a6.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-8fad54817f356e9f.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-ed8c521227dd326e.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-5b316b190ff4b226.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-b52d3a07a13452ff.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{4hG0vHBR7gnry-ZWEsEF3 → A7VXVGKgLQCukXcjdysDz}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{MKDICBWwxQowqsGfMukac → wSRrM15xnvA8lOWcaque7}/_ssgManifest.js +0 -0
- {mage_ai-0.9.56.dist-info → mage_ai-0.9.57.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.56.dist-info → mage_ai-0.9.57.dist-info}/WHEEL +0 -0
- {mage_ai-0.9.56.dist-info → mage_ai-0.9.57.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.56.dist-info → mage_ai-0.9.57.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3437],{94629:function(e,n,t){t.d(n,{Z:function(){return O}});var o=t(82394),i=t(21831),r=t(82684),l=t(50724),c=t(82555),d=t(97618),a=t(70613),u=t(31557),s=t(68899),p=t(28598);function h(e,n){var t=e.children,o=e.noPadding;return(0,p.jsx)(s.HS,{noPadding:o,ref:n,children:t})}var f=r.forwardRef(h),v=t(62547),m=t(82571),g=t(98464),x=t(77417),j=t(46684),b=t(70515),y=t(53808),Z=t(19183);function _(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function k(e,n){e.addProjectBreadcrumbToCustomBreadcrumbs;var t=e.after,o=e.afterHeader,h=e.afterHidden,_=e.afterWidth,k=e.afterWidthOverride,O=e.appendBreadcrumbs,S=e.before,E=e.beforeWidth,I=e.breadcrumbs,w=e.children,C=e.contained,R=e.errors,A=e.headerMenuItems,T=e.headerOffset,N=e.hideAfterCompletely,D=e.mainContainerHeader,L=e.navigationItems,U=e.setAfterHidden,B=e.setErrors,H=e.subheaderChildren,M=e.subheaderNoPadding,F=e.title,W=e.uuid,G=(0,Z.i)().width,V="dashboard_after_width_".concat(W),Y="dashboard_before_width_".concat(W),Q=(0,r.useRef)(null),z=(0,r.useState)(k?_:(0,y.U2)(V,_)),K=z[0],q=z[1],X=(0,r.useState)(!1),J=X[0],$=X[1],ee=(0,r.useState)(S?Math.max((0,y.U2)(Y,E),13*b.iI):null),ne=ee[0],te=ee[1],oe=(0,r.useState)(!1),ie=oe[0],re=oe[1],le=(0,r.useState)(null)[1],ce=(0,x.Z)().project,de=[];I&&de.push.apply(de,(0,i.Z)(I)),null!==I&&void 0!==I&&I.length&&!O||!ce||null!==I&&void 0!==I&&I.length||de.unshift({bold:!O,label:function(){return F}}),(0,r.useEffect)((function(){null===Q||void 0===Q||!Q.current||J||ie||null===le||void 0===le||le(Q.current.getBoundingClientRect().width)}),[J,K,ie,ne,Q,le,G]),(0,r.useEffect)((function(){J||(0,y.t8)(V,K)}),[h,J,K,V]),(0,r.useEffect)((function(){ie||(0,y.t8)(Y,ne)}),[ie,ne,Y]);var ae=(0,g.Z)(_);return(0,r.useEffect)((function(){k&&ae!==_&&q(_)}),[k,_,ae]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.Z,{title:F}),(0,p.jsx)(u.Z,{breadcrumbs:de,menuItems:A}),(0,p.jsxs)(s.Nk,{ref:n,children:[0!==(null===L||void 0===L?void 0:L.length)&&(0,p.jsx)(s.lm,{showMore:!0,children:(0,p.jsx)(m.Z,{navigationItems:L,showMore:!0})}),(0,p.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(v.Z,{after:t,afterHeader:o,afterHeightOffset:j.Mz,afterHidden:h,afterMousedownActive:J,afterWidth:K,before:S,beforeHeightOffset:j.Mz,beforeMousedownActive:ie,beforeWidth:s.k1+(S?ne:0),contained:C,headerOffset:T,hideAfterCompletely:!U||N,leftOffset:S?s.k1:null,mainContainerHeader:D,mainContainerRef:Q,setAfterHidden:U,setAfterMousedownActive:$,setAfterWidth:q,setBeforeMousedownActive:re,setBeforeWidth:te,children:[H&&(0,p.jsx)(f,{noPadding:M,children:H}),w]})})]}),R&&(0,p.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===B||void 0===B?void 0:B(null)},children:(0,p.jsx)(c.Z,P(P({},R),{},{onClose:function(){return null===B||void 0===B?void 0:B(null)}}))})]})}var O=r.forwardRef(k)},8569:function(e,n,t){t.d(n,{Z:function(){return ve}});var o=t(61049);function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,n,t){return r=i()?Reflect.construct:function(e,n,t){var i=[null];i.push.apply(i,n);var r=new(Function.bind.apply(e,i));return t&&(0,o.Z)(r,t.prototype),r},r.apply(null,arguments)}var l=t(21831),c=t(82394),d=t(75582),a=t(12691),u=t.n(a),s=t(38626),p=t(21764),h=t(82684),f=t(69864),v=t(34376),m=t(32013),g=t(98777),x=t(71180),j=t(31882),b=t(97618),y=t(55485),Z=t(14466),_=t(48670),P=t(88543),k=t(38276),O=t(30160),S=t(35686),E=t(72473),I=t(8193),w=t(70515),C=t(81728),R=t(3917),A=t(55283),T=t(50178),N=t(86735),D=t(72619),L=t(44085),U=t(17488),B=t(28598);function H(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function M(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?H(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):H(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var F="CUSTOM_VALUE_TYPE",W={compact:!0,monospace:!0,small:!0};var G=function(e){var n=e.leftKey,t=e.leftObjectKeys,o=e.leftObjectType,i=e.leftObjectTypeState,r=e.leftValue,l=e.leftValueType,d=e.rightAligned,a=e.setLeftKey,u=e.setLeftObjectTypeState,s=e.updatePredicate,p=(0,h.useRef)(null),f=(0,h.useState)(),v=f[0],m=f[1];(0,h.useEffect)((function(){var e,n;m(null===p||void 0===p||null===(e=p.current)||void 0===e||null===(n=e.getBoundingClientRect())||void 0===n?void 0:n.width)}),[]),(0,h.useEffect)((function(){var e,n;m(null===p||void 0===p||null===(e=p.current)||void 0===e||null===(n=e.getBoundingClientRect())||void 0===n?void 0:n.width)}),[o,i]);var g=(0,h.useMemo)((function(){return{alignItems:"center",justifyContent:d?"flex-start":"flex-end"}}),[d]),j=(0,h.useMemo)((function(){var e=(0,B.jsx)(O.ZP,{default:!0,small:!0,children:"Value data type"}),n=(0,B.jsx)(L.Z,{compact:!0,onChange:function(e){return s((0,c.Z)({},d?"right_value_type":"left_value_type",M(M({},l),{},{value_data_type:e.target.value})))},placeholder:"required",small:!0,value:null===l||void 0===l?void 0:l.value_data_type,children:Object.values(Z.t4).map((function(e){return(0,B.jsx)("option",{value:e,children:e.toLowerCase()},e)}))});return(0,B.jsxs)(y.ZP,M(M({},g),{},{children:[d?n:e,(0,B.jsx)(k.Z,{mr:1}),d?e:n]}))}),[l,d,g,s]),b=(0,h.useMemo)((function(){var e=(0,B.jsx)(O.ZP,{default:!0,small:!0,children:"Get value from"}),n=F===String(i)||!o&&r,t=(0,B.jsxs)(L.Z,M(M({},W),{},{onChange:function(e){var n,t,o=e.target.value;(u(o),F===o)?s((n={},(0,c.Z)(n,d?"right_object_keys":"left_object_keys",null),(0,c.Z)(n,d?"right_object_type":"left_object_type",null),n)):s((t={},(0,c.Z)(t,d?"right_object_type":"left_object_type",o),(0,c.Z)(t,d?"right_value":"left_value",null),t))},placeholder:"required",value:n?F:o,children:[(0,B.jsx)("option",{value:F,children:"Custom value"}),Object.values(Z.XG).map((function(e){return(0,B.jsx)("option",{value:e,children:e.toLowerCase()},e)}))]})),l=n&&(0,B.jsxs)(B.Fragment,{children:[!d&&(0,B.jsx)(k.Z,{mr:1}),(0,B.jsx)(U.Z,M(M({},W),{},{onChange:function(e){return s((0,c.Z)({},d?"right_value":"left_value",e.target.value))},value:r||""})),d&&(0,B.jsx)(k.Z,{mr:1})]});return(0,B.jsxs)(y.ZP,M(M({},g),{},{children:[!d&&e,d&&l,d&&t,(0,B.jsx)(k.Z,{mr:1}),!d&&t,!d&&l,d&&e]}))}),[o,i,r,u,g,s]),_=(0,h.useMemo)((function(){return(0,B.jsxs)(B.Fragment,{children:[d&&(0,B.jsx)("div",{style:{paddingRight:4}}),(0,B.jsx)(x.ZP,{compact:!0,disabled:!n,onClick:function(){s((0,c.Z)({},d?"right_object_keys":"left_object_keys",(t||[]).concat(n))),a(null)},padding:"2px 6px",ref:p,small:!0,children:"Add key"}),!d&&(0,B.jsx)("div",{style:{paddingRight:4}})]})}),[n,t,d,a,s]),P=(0,h.useMemo)((function(){var e=(0,B.jsx)(O.ZP,{default:!0,small:!0,children:"Value extraction keys"}),i=(0,B.jsx)(U.Z,M(M({},W),{},{buttonAfter:!d&&_,buttonAfterWidth:d||"undefined"===typeof v?null:v+10,buttonBefore:d&&_,buttonBeforeWidth:d&&"undefined"!==typeof v?v+10:null,onChange:function(e){a(e.target.value)},placeholder:"Enter key...",value:n||""}));B.Fragment,B.Fragment;return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(y.ZP,M(M({},g),{},{children:[d?i:e,(0,B.jsx)(k.Z,{mr:1}),d?e:i]})),(null===t||void 0===t?void 0:t.length)>=1&&(0,B.jsx)(k.Z,{mt:1,children:(0,B.jsxs)(y.ZP,M(M({},g),{},{children:[(0,B.jsx)(O.ZP,{default:!0,monospace:!0,xsmall:!0,children:o}),!(null!==t&&void 0!==t&&t.length)&&(0,B.jsxs)(O.ZP,{monospace:!0,muted:!0,xsmall:!0,children:["['",(0,B.jsx)(O.ZP,{default:!0,inline:!0,monospace:!0,xsmall:!0,children:"..."}),"']"]}),null===t||void 0===t?void 0:t.map((function(e){return(0,B.jsxs)(O.ZP,{monospace:!0,muted:!0,xsmall:!0,children:["['",(0,B.jsx)(O.ZP,{default:!0,inline:!0,monospace:!0,xsmall:!0,children:e}),"']"]})})),(0,B.jsx)("div",{style:{marginRight:4}}),(0,B.jsx)(x.ZP,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){s((0,c.Z)({},d?"right_object_keys":"left_object_keys",(t||[]).slice(0,Math.max(0,(null===t||void 0===t?void 0:t.length)-1))))},children:(0,B.jsxs)(y.ZP,{alignItems:"center",children:[(0,B.jsx)(E.x8,{danger:!0,size:1.25*w.iI}),(0,B.jsx)("div",{style:{marginRight:2}}),(0,B.jsx)(O.ZP,{default:!0,xsmall:!0,children:"Delete key"})]})})]}))})]})}),[v,_,n,t,o,d,g]);return(0,B.jsxs)(B.Fragment,{children:[j,(0,B.jsx)(k.Z,{mt:1}),b,(0,B.jsx)(k.Z,{mt:1}),o&&F!==String(i)&&P]})},V=t(65956),Y=t(44897),Q=t(61896),z=1.25*w.iI,K=1.5*w.iI,q=w.iI/4,X=.75*w.iI,J=w.iI/2,$=(0,s.css)([""," ",""],(function(e){return!e.default&&"\n background-color: ".concat((e.theme.accent||Y.Z.accent).purple,";\n ")}),(function(e){return e.default&&"\n background-color: ".concat((e.theme.content||Y.Z.content).muted,";\n ")})),ee=s.default.div.withConfig({displayName:"indexstyle__LabelStyle",componentId:"sc-1v7t9a0-0"})(["border-radius:100px;padding:","px ","px;",""],q,K,(function(e){return"\n background-color: ".concat((e.theme.background||Y.Z.background).chartBlock,";\n border: ").concat(1,"px solid ").concat((e.theme.interactive||Y.Z.interactive).defaultBorder,";\n ")})),ne=s.default.div.withConfig({displayName:"indexstyle__CircleStyle",componentId:"sc-1v7t9a0-1"})(["",";border-radius:","px;height:","px;width:","px;",""],$,1.25*w.iI,z,z,(function(e){return"\n border: 1px solid ".concat((e.theme.interactive||Y.Z.interactive).hoverBorder,";\n ")})),te=s.default.div.withConfig({displayName:"indexstyle__OperatorStyle",componentId:"sc-1v7t9a0-2"})(["",";min-width:","px;padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;"],$,z+2*(1+K),w.iI/4,J,J,w.iI/4+1),oe=s.default.div.withConfig({displayName:"indexstyle__VerticalLineStyle",componentId:"sc-1v7t9a0-3"})(["",";width:","px;margin-right:","px;"," ",""],$,X,K+1+z/2-X/2,(function(e){return e.last&&"\n height: calc(50% - ".concat(q+1+Q.dN/2,"px);\n ")}),(function(e){return!e.last&&"\n height: 100%;\n "}));var ie=function(e){var n=e.andOrOperator,t=e.children,o=e.first,i=e.last,r=e.level,l=e.predicate,c=e.removePredicate,d=e.title,a=e.updatePredicate,u=(0,h.useRef)(null),s=(0,h.useState)(null),p=s[0],f=s[1],v=(0,h.useState)(null),m=v[0],g=v[1],j=(0,h.useState)(null),_=j[0],P=j[1],S=(0,h.useState)(null),I=S[0],C=S[1],R=(0,h.useState)(null),A=(R[0],R[1]),T=(l.and_or_operator,l.left_object_keys),N=l.left_object_type,D=l.left_value,U=l.left_value_type,H=l.operator,M=l.right_object_keys,F=l.right_object_type,W=l.right_value,Y=l.right_value_type;(0,h.useEffect)((function(){var e,n;A(null===u||void 0===u||null===(e=u.current)||void 0===e||null===(n=e.getBoundingClientRect())||void 0===n?void 0:n.height)}),[]),(0,h.useEffect)((function(){var e,n;A(null===u||void 0===u||null===(e=u.current)||void 0===e||null===(n=e.getBoundingClientRect())||void 0===n?void 0:n.height)}),[N,F]);var Q=(0,h.useMemo)((function(){if(!n)return null;var e=(0,B.jsx)(O.ZP,{bold:!0,center:!0,monospace:!0,uppercase:!0,children:n});return(0,B.jsx)(te,{default:Z.YB.OR===n,children:e})}),[n,r]);return(0,B.jsxs)(y.ZP,{children:[(0,B.jsxs)(y.ZP,{alignItems:"flex-end",flexDirection:"column",children:[!o&&i&&(0,B.jsx)(oe,{default:Z.YB.OR===n,last:!0}),(0,B.jsx)(ee,{children:(0,B.jsxs)(y.ZP,{alignItems:"center",children:[(0,B.jsx)(O.ZP,{monospace:!0,children:d}),(0,B.jsx)(k.Z,{mr:1}),(0,B.jsx)(ne,{default:Z.YB.OR===n})]})}),!i&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(oe,{default:Z.YB.OR===n}),Q,(0,B.jsx)(oe,{default:Z.YB.OR===n})]})]}),(0,B.jsx)(k.Z,{mr:w.cd}),(0,B.jsx)(b.Z,{flex:1,children:(0,B.jsxs)(y.ZP,{flexDirection:"column",fullWidth:!0,ref:u,children:[(0,B.jsxs)(V.Z,{dark:!!(r%2),children:[(0,B.jsxs)(y.ZP,{children:[(0,B.jsxs)(b.Z,{flex:1,flexDirection:"column",children:[(0,B.jsxs)(y.ZP,{justifyContent:"center",children:[(0,B.jsxs)(y.ZP,{alignItems:"center",justifyContent:"flex-end",children:[!N&&"undefined"===typeof D&&(0,B.jsx)(O.ZP,{monospace:!0,muted:!0,small:!0,children:"Left expression"}),!N&&D&&(0,B.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:Z.t4.STRING===(null===U||void 0===U?void 0:U.value_data_type)?"'".concat(D,"'"):D}),N&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:N}),!(null!==T&&void 0!==T&&T.length)&&(0,B.jsxs)(O.ZP,{monospace:!0,muted:!0,small:!0,children:["['",(0,B.jsx)(O.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:"..."}),"']"]}),null===T||void 0===T?void 0:T.map((function(e){return(0,B.jsxs)(O.ZP,{monospace:!0,muted:!0,small:!0,children:["['",(0,B.jsx)(O.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:e}),"']"]})}))]})]}),(0,B.jsx)(k.Z,{mr:1}),(0,B.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:H?Z.N_[H]:"operator"}),(!H||!Z.i9.includes(H))&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(k.Z,{mr:1}),(0,B.jsxs)(y.ZP,{alignItems:"center",justifyContent:"flex-start",children:[!F&&"undefined"===typeof W&&(0,B.jsx)(O.ZP,{monospace:!0,muted:!0,small:!0,children:"Right expression"}),!F&&W&&(0,B.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:Z.t4.STRING===(null===Y||void 0===Y?void 0:Y.value_data_type)?"'".concat(W,"'"):W}),F&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:F}),!(null!==M&&void 0!==M&&M.length)&&(0,B.jsxs)(O.ZP,{monospace:!0,muted:!0,small:!0,children:["['",(0,B.jsx)(O.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:"..."}),"']"]}),null===M||void 0===M?void 0:M.map((function(e){return(0,B.jsxs)(O.ZP,{monospace:!0,muted:!0,small:!0,children:["['",(0,B.jsx)(O.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:e}),"']"]})}))]})]})]})]}),(0,B.jsx)(k.Z,{mb:w.cd}),(0,B.jsxs)(y.ZP,{alignItems:"center",children:[(0,B.jsx)(b.Z,{flex:1,flexDirection:"column",children:(0,B.jsx)(G,{leftKey:m,leftObjectKeys:T,leftObjectType:N,leftObjectTypeState:p,leftValue:D,leftValueType:U,setLeftKey:g,setLeftObjectTypeState:f,updatePredicate:a})}),(0,B.jsx)(k.Z,{mr:w.cd}),(0,B.jsx)("div",{children:(0,B.jsx)(L.Z,{alignCenter:!0,compact:!0,onChange:function(e){return a({operator:e.target.value})},placeholder:"required",small:!0,value:H,children:Object.values(Z.W6).map((function(e){return(0,B.jsx)("option",{value:e,children:Z.N_[e]},e)}))})}),(0,B.jsx)(k.Z,{mr:w.cd}),(0,B.jsx)(b.Z,{flex:1,flexDirection:"column",children:(0,B.jsx)(G,{leftKey:I,leftObjectKeys:M,leftObjectType:F,leftObjectTypeState:_,leftValue:W,leftValueType:Y,rightAligned:!0,setLeftKey:C,setLeftObjectTypeState:P,updatePredicate:a})})]})]}),(0,B.jsx)("div",{children:(0,B.jsx)(x.ZP,{beforeIcon:(0,B.jsx)(E.rF,{muted:!0,size:1.25*w.iI}),compact:!0,onClick:function(){return c()},small:!0,children:(0,B.jsxs)(O.ZP,{default:!0,monospace:!0,small:!0,children:["Delete ",d]})})})]}),t]}),!i&&(0,B.jsx)(k.Z,{mb:w.cd})]})})]})};function re(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function le(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?re(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):re(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ce={and_or_operator:Z.YB.AND,left_value_type:{value_data_type:Z.t4.STRING},operator:Z.W6.EQUALS,right_value_type:{value_data_type:Z.t4.STRING}};var de=function(e){var n=e.index,t=e.level,o=e.predicate,i=e.renderPredicate,r=e.setPredicate,c=(0,h.useMemo)((function(){return(null===o||void 0===o?void 0:o.predicates)||[]}),[o]),d=((0,h.useCallback)((function(e){r({predicates:e})}),[r]),(0,h.useCallback)((function(){r({predicates:(c||[]).concat(ce)})}),[c,r])),a=(0,h.useCallback)((function(e,n){var t=(0,l.Z)(c);t[n]=e,r({predicates:t})}),[c,r]),u=(0,h.useMemo)((function(){return(null===c||void 0===c?void 0:c.length)||0}),[c]),s=(0,h.useCallback)((function(e,n){if(!(e<0)){var t=(0,C.bH)()[n];return 0===e||(t=t.toLowerCase(),e>=2&&(t="".concat(t).concat(e-1))),t}}),[]),p=(0,h.useMemo)((function(){return s(t,n)}),[s,n,t]);return(0,B.jsxs)(B.Fragment,{children:[null===c||void 0===c?void 0:c.map((function(e,n){var l,d=function(t){return a(le(le({},e),t),n)};return(0,B.jsx)(ie,{andOrOperator:null===o||void 0===o?void 0:o.and_or_operator,first:0===n,last:n===u-1,level:t+1,predicate:e,removePredicate:function(){r(le(le({},e),{},{predicates:(0,N.oM)(c,n)}))},title:s(t+1,n),updatePredicate:d,children:(0,B.jsx)(k.Z,{mt:(null===e||void 0===e||null===(l=e.predicates)||void 0===l?void 0:l.length)>=1?w.cd:0,children:i({index:n,level:t+1,predicate:e,renderPredicate:i,setPredicate:d})})},"predicate-".concat(n))})),(0,B.jsx)(k.Z,{mt:w.cd,children:(0,B.jsxs)(y.ZP,{alignItems:"center",children:[t>=0&&(null===c||void 0===c?void 0:c.length)>=2&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(L.Z,{compact:!0,monospace:!0,onChange:function(e){return r(le(le({},o),{},{and_or_operator:e.target.value}))},small:!0,paddingVertical:3,value:null===o||void 0===o?void 0:o.and_or_operator,children:Object.values(Z.YB).map((function(e){return(0,B.jsx)("option",{value:e,children:(Z.YB.OR===e?"".concat(e," "):e).toUpperCase()},e)}))}),(0,B.jsx)(k.Z,{mr:1})]}),(0,B.jsxs)(x.ZP,{compact:t>=0,beforeIcon:(0,B.jsx)(E.mm,{}),onClick:function(){return d()},secondary:!0,small:t>=0,children:["Add predicate",p&&" in ".concat(p)]})]})})]})};function ae(e){var n=e.index,t=e.level,o=e.predicate,i=e.renderPredicate,r=e.setPredicate;return(0,B.jsx)(de,{index:n,level:t,predicate:o,renderPredicate:i,setPredicate:r})}var ue=t(42122),se=t(70320),pe=t(23780);function he(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function fe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?he(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):he(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ve=function(e){var n,t,o,i,c,a,L,U,H,M,F,W,G,V,Y,Q,z,K,q,X,J,$,ee,ne,te,oe=e.isNew,ie=e.operationType,re=e.resourceType,le=e.rootProject,ce=e.uuid,de=(0,se.qB)(),he=(0,T.PR)(),ve=(0,v.useRouter)(),me="GlobalHookDetail/".concat(ce),ge=(0,h.useContext)(s.ThemeContext),xe=(0,h.useState)(null),je=xe[0],be=xe[1],ye=(0,h.useState)(!1),Ze=ye[0],_e=ye[1],Pe=(0,h.useState)(ie),ke=Pe[0],Oe=(Pe[1],(0,h.useState)(re)),Se=Oe[0],Ee=(Oe[1],(0,pe.VI)(null,{},[],{uuid:me})),Ie=(0,d.Z)(Ee,1)[0],we=(0,h.useMemo)((function(){return(0,ue.hB)(fe({include_operation_types:1,include_resource_types:1,include_snapshot_validation:1,operation_type:"undefined"===typeof ke?null:ke,resource_type:"undefined"===typeof Se?null:Se},le?{root_project:le}:{}))}),[ke,Se]),Ce=S.ZP.global_hooks.detail(oe?"__new__":ce,we).data,Re=(0,h.useMemo)((function(){return null===Ce||void 0===Ce?void 0:Ce.global_hook}),[Ce]),Ae=(0,h.useMemo)((function(){return{onErrorCallback:function(e){var n=e.error,t=n.errors,o=n.exception,i=n.message,r=n.type,l=e.response;return p.Am.error((null===t||void 0===t?void 0:t.error)||o||i,{position:p.Am.POSITION.BOTTOM_RIGHT,toastId:r}),Ie({errors:t,response:l})}}}),[]),Te=(0,f.Db)(S.ZP.global_hooks.useCreate(),{onSuccess:function(e){return(0,D.wD)(e,fe({callback:function(e){var n=e.global_hook;ve.replace("/".concat(le?"platform/":"","global-hooks/").concat(n.uuid,"?operation_type=").concat(n.operation_type,"&resource_type=").concat(n.resource_type))}},Ae))}}),Ne=(0,d.Z)(Te,2),De=Ne[0],Le=Ne[1].isLoading,Ue=(0,f.Db)(S.ZP.global_hooks.useUpdate(null===Re||void 0===Re?void 0:Re.uuid,we),{onSuccess:function(e){return(0,D.wD)(e,fe({callback:function(e){var n=e.global_hook;$e((function(e){return fe(fe({},e),n)})),p.Am.success("Global hook changes successfully saved.",{position:p.Am.POSITION.BOTTOM_RIGHT,toastId:"global-hooks-success-".concat(n.uuid)})}},Ae))}}),Be=(0,d.Z)(Ue,2),He=Be[0],Me=Be[1].isLoading,Fe=(0,f.Db)((function(e){var n=e.pipeline;return S.ZP.global_hooks.useUpdate(null===Re||void 0===Re?void 0:Re.uuid,we)({global_hook:{pipeline:n,snapshot:1}})}),{onSuccess:function(e){return(0,D.wD)(e,fe({callback:function(e){var n=e.global_hook;$e((function(e){return fe(fe({},e),{},{metadata:fe(fe({},null===e||void 0===e?void 0:e.metadata),null===n||void 0===n?void 0:n.metadata),pipeline:fe(fe({},null===e||void 0===e?void 0:e.pipeline),null===n||void 0===n?void 0:n.pipeline)})})),p.Am.success("Snapshot successfully created.",{position:p.Am.POSITION.BOTTOM_RIGHT,toastId:"global-hooks-snapshot-success-".concat(n.uuid)})}},Ae))}}),We=(0,d.Z)(Fe,2),Ge=We[0],Ve=We[1].isLoading,Ye=(0,f.Db)(S.ZP.global_hooks.useDelete(null===Re||void 0===Re?void 0:Re.uuid,we),{onSuccess:function(e){return(0,D.wD)(e,fe({callback:function(e){var n=e.global_hook;p.Am.success("Global hook changes successfully saved.",{position:p.Am.POSITION.BOTTOM_RIGHT,toastId:"global-hooks-success-".concat(n.uuid)}),ve.replace("/".concat(le?"platform/":"","global-hooks"))}},Ae))}}),Qe=(0,d.Z)(Ye,2),ze=Qe[0],Ke=Qe[1].isLoading,qe=S.ZP.pipelines.list().data,Xe=(0,h.useMemo)((function(){return(0,N.YC)((null===qe||void 0===qe?void 0:qe.pipelines)||[],(function(e){return e.name}))}),[qe]),Je=(0,h.useMemo)((function(){return(0,N.HK)(Xe||[],(function(e){return e.uuid}))}),[Xe]),$e=(0,h.useCallback)((function(e){be(e),_e(!0)}),[be,_e]);(0,h.useEffect)((function(){Re&&!je&&be(Re)}),[je,Re,be]);var en=(0,h.useMemo)((function(){return null!==je&&void 0!==je&&je.operation_type&&null!==je&&void 0!==je&&je.resource_type?"".concat((0,C.vg)(null===je||void 0===je?void 0:je.operation_type)," ").concat(null===je||void 0===je?void 0:je.resource_type," operation"):null!==je&&void 0!==je&&je.resource_type?"".concat(null===je||void 0===je?void 0:je.resource_type," operation"):null!==je&&void 0!==je&&je.operation_type?"".concat(null===je||void 0===je?void 0:je.operation_type," operation"):"operation"}),[je]),nn=(0,h.useMemo)((function(){var e;return null===Je||void 0===Je?void 0:Je[null===je||void 0===je||null===(e=je.pipeline)||void 0===e?void 0:e.uuid]}),[je,Je]),tn=(0,h.useMemo)((function(){return(null===nn||void 0===nn?void 0:nn.blocks)||[]}),[nn]),on=(0,h.useMemo)((function(){return(0,N.HK)(tn||[],(function(e){return e.uuid}))}),[tn]),rn=(0,h.useMemo)((function(){return(null===je||void 0===je?void 0:je.outputs)||[]}),[je]),ln=(0,h.useCallback)((function(e,n){var t=(0,l.Z)(rn||[]);t[n]=e,$e((function(e){return fe(fe({},e),{},{outputs:t})}))}),[rn,$e]),cn=(0,h.useMemo)((function(){return(0,B.jsx)(x.ZP,{beforeIcon:(0,B.jsx)(E.mm,{}),compact:(null===rn||void 0===rn?void 0:rn.length)>=1,small:(null===rn||void 0===rn?void 0:rn.length)>=1,onClick:function(){return $e((function(e){return fe(fe({},e),{},{outputs:((null===e||void 0===e?void 0:e.outputs)||[]).concat({block:{uuid:null},key:Z.TT.PAYLOAD})})}))},secondary:!0,children:"Add block output"})}),[rn,$e]),dn=(0,h.useMemo)((function(){return null===rn||void 0===rn?void 0:rn.map((function(e,n){var t,o,i=e.block,r=e.key,l=e.keyMore,c=e.keys,d=null===on||void 0===on?void 0:on[null===i||void 0===i?void 0:i.uuid];return o=d?(0,B.jsx)(u(),{as:"/pipelines/".concat(null===nn||void 0===nn?void 0:nn.uuid,"/edit?block_uuid=").concat(null===d||void 0===d?void 0:d.uuid),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,B.jsx)(_.Z,{block:!0,openNewWindow:!0,children:(0,B.jsx)(O.ZP,{color:(0,A.qn)(null===d||void 0===d?void 0:d.type,{blockColor:null===d||void 0===d?void 0:d.color,theme:ge}).accent,monospace:!0,children:(null===d||void 0===d?void 0:d.uuid)||"[select a block]"})})}):(0,B.jsx)(O.ZP,{default:!0,monospace:!0,children:(null===d||void 0===d?void 0:d.uuid)||(null===i||void 0===i?void 0:i.uuid)||"[select a block]"}),(0,B.jsxs)(g.Z,{noBorderRadius:!0,noPaddingContent:!0,title:(0,B.jsxs)(y.ZP,{alignItems:"center",children:[o,(0,B.jsx)(k.Z,{mr:1}),(0,B.jsx)(E.Kw,{muted:!0}),(0,B.jsx)(k.Z,{mr:1}),(0,B.jsxs)(O.ZP,{default:!0,monospace:!0,children:[r||"{object}",(null===c||void 0===c?void 0:c.length)>=1&&(null===c||void 0===c?void 0:c.map((function(e){return(0,B.jsxs)(O.ZP,{default:!0,inline:!0,monospace:!0,children:["['",e,"']"]})})))]})]}),titleXPadding:w.cd*w.iI,titleYPadding:w.cd*w.iI,children:[(0,B.jsx)(P.S,{title:"Block to extract data from",description:"The output data from this block will be merged into the ".concat(en,"\u2019s data."),selectInput:{monospace:!0,onChange:function(t){return ln(fe(fe({},e),{},{block:fe(fe({},d),{},{uuid:t.target.value})}),n)},options:null===tn||void 0===tn?void 0:tn.map((function(e){return{label:e.name,value:e.uuid}})),placeholder:"Select a block",value:null===d||void 0===d?void 0:d.uuid}},"block-uuid-".concat(n)),(0,B.jsx)(P.S,{title:"Object to merge block output data into",description:"Select the ".concat(en," object to merge the block output data into."),selectInput:{monospace:!0,onChange:function(t){return ln(fe(fe({},e),{},{key:t.target.value}),n)},options:null===(t=Object.values(Z.TT))||void 0===t?void 0:t.map((function(e){return{label:e,value:e}})),placeholder:"Select an object",value:r}},"key-".concat(n)),(0,B.jsxs)(P.S,{title:"Additional dictionary keys",description:(0,B.jsxs)(O.ZP,{muted:!0,small:!0,children:["If there is a nested object or value in the $",en," data that you want to merge the block output data into,",(0,B.jsx)("br",{}),"use these additional keys to instruct the hook on how nested you want to merge the block output data."]}),textInput:{fullWidth:!1,monospace:!0,placeholder:"optional",onChange:function(t){return ln(fe(fe({},e),{},{keyMore:t.target.value}),n)},value:l},children:[null===c||void 0===c?void 0:c.map((function(t){return(0,B.jsx)(k.Z,{ml:1,children:(0,B.jsx)(j.Z,{border:!0,label:t,monospace:!0,onClick:function(){ln(fe(fe({},e),{},{keys:(c||[]).filter((function(e){return e!==t}))}),n)}})},"keys-".concat(n,"-").concat(t))})),(null===c||void 0===c?void 0:c.length)>=1&&(0,B.jsx)(k.Z,{mr:w.cd}),l&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(x.ZP,{compact:!0,onClick:function(){ln(fe(fe({},e),{},{keyMore:"",keys:(c||[]).concat(l)}),n)},small:!0,children:["Add key ",l]}),(0,B.jsx)(k.Z,{mr:w.cd})]})]},"keys-".concat(n)),(0,B.jsx)(P.S,{title:"Remove block output",children:(0,B.jsx)(x.ZP,{compact:!0,onClick:function(){return $e((function(e){return fe(fe({},e),{},{outputs:(0,N.oM)((null===e||void 0===e?void 0:e.outputs)||[],n)})}))},small:!0,children:"Remove"})})]})}))}),[tn,on,rn,nn,ln]),an=(0,h.useMemo)((function(){return(0,ue.GL)(je||{},["conditions","operation_type","outputs","pipeline","predicate","resource_type","run_settings","stages","strategies"])}),[je]),un=(0,h.useMemo)((function(){return(null===je||void 0===je?void 0:je.metadata)||{created_at:null,snapshot_hash:null,snapshot_valid:!1,snapshotted_at:null,updated_at:null,user:{id:null}}}),[je]),sn=(0,h.useMemo)((function(){return null===je||void 0===je?void 0:je.predicate}),[je]),pn=(0,h.useMemo)((function(){return(0,B.jsx)(k.Z,{p:w.cd,children:ae({level:-1,predicate:sn,renderPredicate:ae,setPredicate:function(e){return $e((function(n){return fe(fe({},n),{},{predicate:fe(fe({},e),{},{and_or_operator:Z.YB.OR})})}))}})})}),[sn,$e]);return(0,B.jsxs)(k.Z,{mb:8,p:w.cd,children:[(0,B.jsxs)(P.Z,{title:"What to run hook for",children:[(0,B.jsx)(P.S,{description:"This hook\u2019s UUID must be unique across all hooks for the same resource type and operation type.",invalid:Ze&&!(null!==je&&void 0!==je&&je.uuid),textInput:oe?{monospace:!0,onChange:function(e){return $e((function(n){return fe(fe({},n),{},{uuid:e.target.value})}))},placeholder:"e.g. bootstrap pipeline blocks",value:null===je||void 0===je?void 0:je.uuid}:null,title:"Hook UUID",children:!oe&&(0,B.jsx)(k.Z,{px:w.cd,children:(0,B.jsx)(O.ZP,{large:!0,monospace:!0,children:ce})})}),(0,B.jsx)(P.S,{description:"Select the resource this hook should be attached to.",invalid:Ze&&!(null!==je&&void 0!==je&&je.resource_type),selectInput:{monospace:!0,onChange:function(e){return $e((function(n){return fe(fe({},n),{},{resource_type:e.target.value})}))},options:null===je||void 0===je||null===(n=je.resource_types)||void 0===n?void 0:n.map((function(e){return{label:(0,C.j3)(e),value:e}})),placeholder:"e.g. Pipeline",value:null===je||void 0===je?void 0:je.resource_type},title:"Resource type"}),(0,B.jsx)(P.S,{description:"When a specific operation occurs for a given resource, this hook will be invoked for that specific operation on the configured resource.",invalid:Ze&&!(null!==je&&void 0!==je&&je.operation_type),selectInput:{monospace:!0,onChange:function(e){return $e((function(n){return fe(fe({},n),{},{operation_type:e.target.value})}))},options:null===je||void 0===je||null===(t=je.operation_types)||void 0===t?void 0:t.map((function(e){return{label:(0,C.vg)(e),value:e}})),placeholder:"e.g. Update",value:null===je||void 0===je?void 0:je.operation_type},title:"Operation type"}),!oe&&(0,B.jsx)(m.Z,{noBorder:!0,noBoxShadow:!0,visibleMappingForced:{0:!0},children:(0,B.jsxs)(g.Z,{noBorderRadius:!0,noPaddingContent:!0,title:"Targeting",titleXPadding:w.cd*w.iI,titleYPadding:w.cd*w.iI,children:[(0,B.jsx)(k.Z,{p:w.cd,children:(0,B.jsxs)(O.ZP,{default:!0,children:["Add targeting conditions to determine what subset of ",null!==je&&void 0!==je&&je.resource_type?(0,C._6)((0,C.j3)(null===je||void 0===je?void 0:je.resource_type),2,null,!0):"resources"," this hook should run for."]})}),pn]})})]}),!oe&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(k.Z,{mb:w.cd}),(0,B.jsxs)(P.Z,{title:"When to run hook",children:[(0,B.jsx)(P.S,{title:"Before operation starts",description:"If enabled, this hook will be invoked before the ".concat(en," starts."),toggleSwitch:{checked:null===je||void 0===je||null===(o=je.stages)||void 0===o?void 0:o.includes(Z.SQ.BEFORE),onCheck:function(e){return $e((function(n){var t,o;return fe(fe({},n),{},{stages:e(null===n||void 0===n||null===(t=n.stages)||void 0===t?void 0:t.includes(Z.SQ.BEFORE))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.stages)||[]).concat(Z.SQ.BEFORE)])):(null===n||void 0===n||null===(o=n.stages)||void 0===o?void 0:o.filter((function(e){return e!==Z.SQ.BEFORE})))||[]})}))}}}),(0,B.jsx)(P.S,{title:"After operation completes",description:"If enabled, this hook will be invoked after the ".concat(en," ends."),toggleSwitch:{checked:null===je||void 0===je||null===(i=je.stages)||void 0===i?void 0:i.includes(Z.SQ.AFTER),onCheck:function(e){return $e((function(n){var t,o;return fe(fe({},n),{},{stages:e(null===n||void 0===n||null===(t=n.stages)||void 0===t?void 0:t.includes(Z.SQ.AFTER))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.stages)||[]).concat(Z.SQ.AFTER)])):(null===n||void 0===n||null===(o=n.stages)||void 0===o?void 0:o.filter((function(e){return e!==Z.SQ.AFTER})))||[]})}))}}}),(0,B.jsx)(P.S,{title:"Run if ".concat(en," succeeds"),description:"If enabled, this hook will be invoked if the ".concat(en," is successful and doesn\u2019t error."),toggleSwitch:{checked:null===je||void 0===je||null===(c=je.conditions)||void 0===c?void 0:c.includes(Z.sw.SUCCESS),onCheck:function(e){return $e((function(n){var t,o;return fe(fe({},n),{},{conditions:e(null===n||void 0===n||null===(t=n.conditions)||void 0===t?void 0:t.includes(Z.sw.SUCCESS))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.conditions)||[]).concat(Z.sw.SUCCESS)])):(null===n||void 0===n||null===(o=n.conditions)||void 0===o?void 0:o.filter((function(e){return e!==Z.sw.SUCCESS})))||[]})}))}}}),(0,B.jsx)(P.S,{title:"Run if ".concat(en," fails"),description:"If enabled, this hook will be invoked if the ".concat(en," fails with an error."),toggleSwitch:{checked:null===je||void 0===je||null===(a=je.conditions)||void 0===a?void 0:a.includes(Z.sw.FAILURE),onCheck:function(e){return $e((function(n){var t,o;return fe(fe({},n),{},{conditions:e(null===n||void 0===n||null===(t=n.conditions)||void 0===t?void 0:t.includes(Z.sw.FAILURE))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.conditions)||[]).concat(Z.sw.FAILURE)])):(null===n||void 0===n||null===(o=n.conditions)||void 0===o?void 0:o.filter((function(e){return e!==Z.sw.FAILURE})))||[]})}))}}})]}),(0,B.jsx)(k.Z,{mb:w.cd}),(0,B.jsxs)(P.Z,{title:"Code to run",description:"When the current hook gets triggered, it will execute the associated pipeline.",children:[(0,B.jsx)(P.S,{title:"Pipeline to execute",description:"Select a pipeline that will be executed every time this hook is triggered.",invalid:Ze&&!(null!==je&&void 0!==je&&null!==(L=je.pipeline)&&void 0!==L&&L.uuid),selectInput:{fullWidth:!1,monospace:!0,onChange:function(e){return $e((function(n){return fe(fe({},n),{},{pipeline:fe(fe({},null===n||void 0===n?void 0:n.pipeline),{},{uuid:e.target.value})})}))},options:null===Xe||void 0===Xe?void 0:Xe.map((function(e){var n=e.name,t=e.uuid;return{label:n||t,value:t}})),placeholder:"Select a pipeline",value:null===je||void 0===je||null===(U=je.pipeline)||void 0===U?void 0:U.uuid},children:(null===je||void 0===je||null===(H=je.pipeline)||void 0===H?void 0:H.uuid)&&(0,B.jsx)(k.Z,{mr:2,children:(0,B.jsx)(u(),{as:"/pipelines/".concat(null===je||void 0===je||null===(M=je.pipeline)||void 0===M?void 0:M.uuid,"/edit"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,B.jsx)(_.Z,{block:!0,openNewWindow:!0,children:"View pipeline"})})})}),(0,B.jsxs)(P.S,{title:null===je||void 0===je||null===(F=je.pipeline)||void 0===F||!F.uuid||null!==un&&void 0!==un&&un.snapshot_hash||null!==un&&void 0!==un&&un.snapshot_valid?"Valid code snapshot":"Code snapshot hasn\u2019t been created yet",description:(0,B.jsx)(B.Fragment,{children:(0,B.jsxs)(O.ZP,{muted:!0,small:!0,children:["Take a snapshot of ",null!==je&&void 0!==je&&null!==(W=je.pipeline)&&void 0!==W&&W.uuid?(0,B.jsx)(O.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:null===je||void 0===je||null===(G=je.pipeline)||void 0===G?void 0:G.uuid}):"the associated pipeline","\u2019s code. The snapshot is used to validate the hook before it runs.",(0,B.jsx)("br",{}),"A hook cannot run if ",null!==je&&void 0!==je&&null!==(V=je.pipeline)&&void 0!==V&&V.uuid?(0,B.jsx)(O.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:null===je||void 0===je||null===(Y=je.pipeline)||void 0===Y?void 0:Y.uuid}):"the associated pipeline","\u2019s code has changed after the most recent snapshot has been made.",(0,B.jsx)("br",{}),"If the code changes, a new snapshot must be created."]})}),invalid:(null===je||void 0===je||null===(Q=je.pipeline)||void 0===Q?void 0:Q.uuid)&&(null===un||void 0===un?void 0:un.snapshot_hash)&&!(null!==un&&void 0!==un&&un.snapshot_valid),warning:(null===je||void 0===je||null===(z=je.pipeline)||void 0===z?void 0:z.uuid)&&!(null!==un&&void 0!==un&&un.snapshot_hash)&&!(null!==un&&void 0!==un&&un.snapshot_valid),children:[!(null!==un&&void 0!==un&&un.snapshot_hash)&&(0,B.jsx)(O.ZP,{default:!0,large:!0,children:null!==je&&void 0!==je&&null!==(K=je.pipeline)&&void 0!==K&&K.uuid?"No snapshot has been created":"Select a pipeline before taking a snapshot"}),(null===un||void 0===un?void 0:un.snapshot_hash)&&(0,B.jsx)(y.ZP,{flexDirection:"column",children:(0,B.jsx)(O.ZP,{danger:!(null!==un&&void 0!==un&&un.snapshot_valid),large:!0,rightAligned:!0,success:null===un||void 0===un?void 0:un.snapshot_valid,children:null!==un&&void 0!==un&&un.snapshot_valid?"Snapshot valid":"Snapshot outdated"})})]}),(0,B.jsx)(k.Z,{p:w.cd,children:(0,B.jsx)(y.ZP,{alignItems:"center",justifyContent:"flex-end",children:(0,B.jsxs)(y.ZP,{alignItems:"center",children:[(null===un||void 0===un?void 0:un.snapshotted_at)&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(O.ZP,{muted:!0,rightAligned:!0,small:!0,children:["Last snapshot at ",(0,B.jsx)(O.ZP,{inline:!0,muted:!0,small:!0,monospace:!0,children:null===un||void 0===un?void 0:un.snapshotted_at})]}),(0,B.jsx)(k.Z,{mr:w.cd})]}),(0,B.jsx)(x.ZP,{disabled:!(null!==je&&void 0!==je&&null!==(q=je.pipeline)&&void 0!==q&&q.uuid),loading:Ve,onClick:function(){return Ge({pipeline:null===je||void 0===je?void 0:je.pipeline})},primary:!(null!==un&&void 0!==un&&un.snapshot_valid),secondary:null===un||void 0===un?void 0:un.snapshot_valid,children:null!==un&&void 0!==un&&un.snapshot_hash?null!==un&&void 0!==un&&un.snapshot_valid?"Update snapshot even though it\u2019s valid":"Update snapshot to make it valid":"Create snapshot of code"})]})})})]}),(0,B.jsx)(k.Z,{mb:w.cd}),(0,B.jsxs)(P.Z,{title:"How to run hook",children:[(0,B.jsx)(P.S,{title:"Stop operation if hook fails",description:"If enabled, the ".concat(en," will be cancelled and an error will be raised."),toggleSwitch:{checked:null===je||void 0===je||null===(X=je.strategies)||void 0===X?void 0:X.includes(Z.Ij.RAISE),onCheck:function(e){return $e((function(n){var t,o;return fe(fe({},n),{},{strategies:e(null===n||void 0===n||null===(t=n.strategies)||void 0===t?void 0:t.includes(Z.Ij.RAISE))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.strategies)||[]).concat(Z.Ij.RAISE)])):(null===n||void 0===n||null===(o=n.strategies)||void 0===o?void 0:o.filter((function(e){return e!==Z.Ij.RAISE})))||[]})}))}}}),(0,B.jsx)(P.S,{title:"Execute hook with history and logging",description:(0,B.jsxs)(O.ZP,{muted:!0,small:!0,children:["If enabled, anytime this hook is executed an associated pipeline run and block runs will be created.",(0,B.jsx)("br",{}),"This will provide a history of the hook execution as well as logging for observability.",(0,B.jsx)("br",{}),"However, this will have a significant impact on the ",en," resolution time.",(0,B.jsx)("br",{}),"This may cause very delayed API responsed and a degraded devloper experience."]}),toggleSwitch:{checked:!(null===je||void 0===je||null===(J=je.run_settings)||void 0===J||!J.with_trigger),onCheck:function(e){return $e((function(n){var t;return fe(fe({},n),{},{run_settings:fe(fe({},null===n||void 0===n?void 0:n.run_settings),{},{with_trigger:e(null===n||void 0===n||null===(t=n.run_settings)||void 0===t?void 0:t.with_trigger)})})}))}}}),(0,B.jsx)(P.S,{title:"Run hook asynchronously",description:(0,B.jsxs)(O.ZP,{muted:!0,small:!0,children:["Hooks will execute the associated pipeline synchronously and prevent the current resource operation (e.g. API request) from resolving until all associated hooks for that resource operation are completed.",(0,B.jsx)("br",{}),"Hooks running synchronously can mutate the input data and output data. However, it can slow down the user experience in the application.",(0,B.jsx)("br",{}),"Enable this setting to run hooks asynchronously and not block the current resource operation from resolving.",(0,B.jsx)("br",{}),"However, asynchronous hooks cannot mutate the input data or output data. Use this asynchronous setting when hooks don\u2019t need to mutate data."]}),toggleSwitch:{checked:!(null===je||void 0===je||null===($=je.run_settings)||void 0===$||!$.asynchronous),onCheck:function(e){return $e((function(n){var t;return fe(fe({},n),{},{run_settings:fe(fe({},null===n||void 0===n?void 0:n.run_settings),{},{asynchronous:e(null===n||void 0===n||null===(t=n.run_settings)||void 0===t?void 0:t.asynchronous)})})}))}}})]}),(0,B.jsx)(k.Z,{mb:w.cd}),(0,B.jsxs)(P.Z,{title:"Block outputs ".concat((null===rn||void 0===rn?void 0:rn.length)>=1?"(".concat((null===rn||void 0===rn?void 0:rn.length)||0,")"):""),description:(0,B.jsx)(k.Z,{mt:1,children:(0,B.jsxs)(O.ZP,{muted:!0,children:["When a hook runs and executes a pipeline, the output from the pipeline\u2019s blocks",(0,B.jsx)("br",{}),"can optionally be used to mutate the ",en," input and output data."]})}),headerChildren:(null===rn||void 0===rn?void 0:rn.length)>=1&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(k.Z,{ml:w.cd}),cn]}),children:[!(null!==rn&&void 0!==rn&&rn.length)&&(0,B.jsx)(k.Z,{p:w.cd,children:cn}),(null===rn||void 0===rn?void 0:rn.length)>=1&&(0,B.jsx)(m.Z,{noBorder:!0,noBoxShadow:!0,children:dn})]}),(0,B.jsx)(k.Z,{mb:w.cd}),(0,B.jsxs)(P.Z,{title:"Metadata",children:[(0,B.jsx)(P.S,{title:"Last updated",children:(0,B.jsxs)(b.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,B.jsx)(O.ZP,{large:!0,monospace:!0,muted:!0,children:null!==un&&void 0!==un&&un.updated_at?(0,R.XG)(null===un||void 0===un?void 0:un.updated_at,de):"-"}),(0,B.jsx)(k.Z,{mr:w.cd}),(0,B.jsx)(E.Pf,{muted:!0,size:I.Z}),(0,B.jsx)(k.Z,{mr:1})]})}),(0,B.jsx)(P.S,{title:"Created at",children:(0,B.jsxs)(b.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,B.jsx)(O.ZP,{large:!0,monospace:!0,muted:!0,children:null!==un&&void 0!==un&&un.created_at?(0,R.XG)(null===un||void 0===un?void 0:un.created_at,de):"-"}),(0,B.jsx)(k.Z,{mr:w.cd}),(0,B.jsx)(E.Pf,{muted:!0,size:I.Z}),(0,B.jsx)(k.Z,{mr:1})]})}),(0,B.jsx)(P.S,{title:"Snapshotted at",children:(0,B.jsxs)(b.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,B.jsx)(O.ZP,{large:!0,monospace:!0,muted:!0,children:null!==un&&void 0!==un&&un.snapshotted_at?(0,R.XG)(null===un||void 0===un?void 0:un.snapshotted_at,de):"-"}),(0,B.jsx)(k.Z,{mr:w.cd}),(0,B.jsx)(E.Pf,{muted:!0,size:I.Z}),(0,B.jsx)(k.Z,{mr:1})]})}),(0,B.jsx)(P.S,{title:"Snapshot valid",children:(0,B.jsxs)(b.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,B.jsx)(O.ZP,{large:!0,danger:!(null!==un&&void 0!==un&&un.snapshot_valid),muted:null===un||void 0===un?void 0:un.snapshot_valid,children:null!==un&&void 0!==un&&un.snapshot_valid?"Valid":"Hook won\u2019t run until snapshot is valid"}),(0,B.jsx)(k.Z,{mr:w.cd}),null!==un&&void 0!==un&&un.snapshot_valid?(0,B.jsx)(E.Jr,{size:I.Z,success:!0}):(0,B.jsx)(E.uy,{danger:!0,size:I.Z}),(0,B.jsx)(k.Z,{mr:1})]})}),(0,B.jsx)(P.S,{title:"Created by",children:(0,B.jsxs)(b.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,B.jsx)(O.ZP,{large:!0,monospace:!0,muted:!0,children:null!==un&&void 0!==un&&null!==(ee=un.user)&&void 0!==ee&&ee.id?String(null===un||void 0===un||null===(ne=un.user)||void 0===ne?void 0:ne.id)===String(null===he||void 0===he?void 0:he.id)?"You created this hook":"User ID ".concat(null===un||void 0===un||null===(te=un.user)||void 0===te?void 0:te.id):"-"}),(0,B.jsx)(k.Z,{mr:w.cd}),(0,B.jsx)(E.SC,{muted:!0,size:I.Z}),(0,B.jsx)(k.Z,{mr:1})]})})]})]}),(0,B.jsx)(k.Z,{mt:w.HN,children:(0,B.jsxs)(y.ZP,{alignItems:"center",justifyContent:"space-between",children:[!oe&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(x.ZP,{compact:!0,danger:!0,loading:Ke,onClick:function(){window.confirm("Are you sure you wantt to delete this hook?")&&ze()},small:!0,children:"Delete global hook"}),(0,B.jsx)(k.Z,{mr:w.cd})]}),(0,B.jsxs)(b.Z,{flex:1,justifyContent:"flex-end",children:[(0,B.jsx)(x.ZP,{beforeIcon:(0,B.jsx)(E.Hd,{}),disabled:Le||Me||Ke,onClick:function(){return ve.push("/".concat(le?"platform/":"","global-hooks"))},secondary:!0,children:Ze?"Cancel changes & go back":"Go back to all hooks"}),(0,B.jsx)(k.Z,{mr:w.cd}),(0,B.jsx)(x.ZP,{beforeIcon:(0,B.jsx)(E.vc,{}),disabled:Ke,loading:Le||Me,onClick:function(){return(oe?De:He)({global_hook:fe(fe(fe({},an),oe?{uuid:null===je||void 0===je?void 0:je.uuid}:{}),{},{root_project:le})})},primary:!0,children:oe?"Create new global hook":"Save changes"})]})]})})]})}},88543:function(e,n,t){t.d(n,{S:function(){return y},Z:function(){return Z}});var o=t(82684),i=t(15338),r=t(97618),l=t(55485),c=t(85854),d=t(65956),a=t(82394),u=t(44085),s=t(38276),p=t(30160),h=t(17488),f=t(69650),v=t(72473),m=t(8193),g=t(70515),x=t(28598);function j(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?j(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var y=function(e){var n,t=e.children,o=e.description,i=e.invalid,c=e.large,d=void 0===c||c,a=e.selectInput,j=e.textInput,y=e.title,Z=e.toggleSwitch,_=e.warning;return(0,x.jsx)(s.Z,{p:g.cd,children:(0,x.jsxs)(l.ZP,{alignItems:"center",children:[(0,x.jsxs)(l.ZP,{flexDirection:"column",children:[(0,x.jsxs)(p.ZP,{danger:i,default:!0,large:d,warning:_,children:[y," ",i&&(0,x.jsx)(p.ZP,{danger:!0,inline:!0,large:d,children:"is required"})]}),o&&"string"===typeof o&&(0,x.jsx)(p.ZP,{muted:!0,small:!0,children:o}),o&&"string"!==typeof o&&o]}),(0,x.jsx)(s.Z,{mr:g.cd}),(0,x.jsxs)(r.Z,{flex:1,justifyContent:"flex-end",children:[t,j&&(0,x.jsx)(h.Z,b({afterIcon:(0,x.jsx)(v.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:m.Z,alignRight:!0,autoComplete:"off",large:d,noBackground:!0,noBorder:!0,fullWidth:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0},j)),a&&(0,x.jsx)(u.Z,b(b({},a),{},{afterIcon:(0,x.jsx)(v._M,{}),afterIconSize:m.Z,alignRight:!0,autoComplete:"off",large:d,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,x.jsx)("option",{value:t,children:n||t},t)}))})),Z&&(0,x.jsx)(f.Z,{checked:!(null===Z||void 0===Z||!Z.checked),compact:!0,onCheck:null===Z||void 0===Z?void 0:Z.onCheck})]})]})})},Z=function(e){var n=e.children,t=e.description,a=e.headerChildren,u=e.title;return(0,x.jsxs)(d.Z,{noPadding:!0,children:[(0,x.jsx)(s.Z,{p:g.cd,children:(0,x.jsxs)(l.ZP,{alignItems:"center",children:[(0,x.jsxs)(r.Z,{flex:1,flexDirection:"column",children:[(0,x.jsx)(c.Z,{level:4,children:u}),t&&"string"===typeof t&&(0,x.jsx)(s.Z,{mt:1,children:(0,x.jsx)(p.ZP,{muted:!0,children:t})}),t&&"string"!==typeof t&&t]}),a]})}),o.Children.map(n,(function(e,n){return(0,x.jsxs)("div",{children:[(0,x.jsx)(i.Z,{light:!0}),e]},"".concat(u,"-").concat(n))}))]})}},8193:function(e,n,t){t.d(n,{N:function(){return d},Z:function(){return c}});var o=t(38626),i=t(44897),r=t(42631),l=t(70515),c=2*l.iI,d=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1ck7mzt-0"})(["border-radius:","px;padding:","px;",""],r.n_,l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeArea,";\n ")}))},14466:function(e,n,t){t.d(n,{Ij:function(){return r},N_:function(){return v},SQ:function(){return l},TT:function(){return c},W6:function(){return p},XG:function(){return u},YB:function(){return a},i9:function(){return f},sw:function(){return d},t4:function(){return s}});var o,i,r,l,c,d,a,u,s,p,h=t(82394);!function(e){e.CREATE="create",e.DELETE="delete",e.DETAIL="detail",e.EXECUTE="execute",e.LIST="list",e.UPDATE="update",e.UPDATE_ANYWHERE="update_anywhere"}(i||(i={})),function(e){e.BREAK="break",e.CONTINUE="continue",e.RAISE="raise"}(r||(r={})),function(e){e.AFTER="after",e.BEFORE="before"}(l||(l={})),function(e){e.ERROR="error",e.META="meta",e.METADATA="metadata",e.PAYLOAD="payload",e.QUERY="query",e.RESOURCE="resource",e.RESOURCES="resources"}(c||(c={})),function(e){e.FAILURE="failure",e.SUCCESS="success"}(d||(d={})),function(e){e.AND="and",e.OR="or"}(a||(a={})),function(e){e.ERROR="error",e.HOOK="hook",e.META="meta",e.METADATA="metadata",e.OPERATION_RESOURCE="operation_resource",e.PAYLOAD="payload",e.QUERY="query",e.RESOURCE="resource",e.RESOURCES="resources",e.RESOURCE_ID="resource_id",e.RESOURCE_PARENT="resource_parent",e.RESOURCE_PARENT_ID="resource_parent_id",e.RESOURCE_PARENT_TYPE="resource_parent_type",e.USER="user"}(u||(u={})),function(e){e.BOOLEAN="BOOLEAN",e.DICTIONARY="DICTIONARY",e.FLOAT="FLOAT",e.INTEGER="INTEGER",e.LIST="LIST",e.STRING="STRING"}(s||(s={})),function(e){e.EQUALS="EQUALS",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUALS="GREATER_THAN_OR_EQUALS",e.INCLUDES="INCLUDES",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUALS="LESS_THAN_OR_EQUALS",e.NOT_EQUALS="NOT_EQUALS",e.NOT_INCLUDES="NOT_INCLUDES",e.NOT_PRESENT="NOT_PRESENT",e.PRESENT="PRESENT"}(p||(p={}));var f=[p.NOT_PRESENT,p.PRESENT],v=(o={},(0,h.Z)(o,p.EQUALS,"=="),(0,h.Z)(o,p.GREATER_THAN,">"),(0,h.Z)(o,p.GREATER_THAN_OR_EQUALS,">="),(0,h.Z)(o,p.INCLUDES,"includes"),(0,h.Z)(o,p.LESS_THAN,"<"),(0,h.Z)(o,p.LESS_THAN_OR_EQUALS,"<="),(0,h.Z)(o,p.NOT_EQUALS,"!="),(0,h.Z)(o,p.NOT_INCLUDES,"not includes"),(0,h.Z)(o,p.NOT_PRESENT,"is not present"),(0,h.Z)(o,p.PRESENT,"is present"),o)},31882:function(e,n,t){var o=t(38626),i=t(71180),r=t(55485),l=t(30160),c=t(44897),d=t(72473),a=t(70515),u=t(61896),s=t(28598),p=o.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," "," ",""],(function(e){return!e.primary&&"\n background-color: ".concat((e.theme.background||c.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||c.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((a.iI+u.Al)/2,"px;\n height: ").concat(1.5*a.iI+u.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+u.Al)/2,"px;\n height: ").concat(u.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+u.Al)/1,"px;\n height: ").concat(20,"px;\n padding: 4px 6px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||c.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,t=e.children,o=e.disabled,c=e.label,u=e.monospace,h=e.onClick,f=e.primary,v=e.small,m=e.xsmall;return(0,s.jsx)(p,{border:n,primary:f,small:v,xsmall:m,children:(0,s.jsx)(i.ZP,{basic:!0,disabled:o,noBackground:!0,noPadding:!0,onClick:h,transparent:!0,children:(0,s.jsxs)(r.ZP,{alignItems:"center",children:[t,c&&(0,s.jsx)(l.ZP,{monospace:u,small:v,xsmall:m,children:c}),!o&&h&&(0,s.jsx)("div",{style:{marginLeft:2}}),!o&&h&&(0,s.jsx)(d.x8,{default:f,muted:!f,size:v?a.iI:1.25*a.iI})]})})})}},65956:function(e,n,t){var o=t(38626),i=t(55485),r=t(38276),l=t(30160),c=t(44897),d=t(42631),a=t(47041),u=t(70515),s=t(28598),p=(0,o.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*u.iI,1.5*u.iI,1.5*u.iI),h=o.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],d.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||c.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||c.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||c.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||c.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||c.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 "})),f=o.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],d.n_,d.n_,(function(e){return"\n background-color: ".concat((e.theme.background||c.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||c.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),p,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),v=o.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*u.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*u.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),m=o.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],d.M8,d.YF,1.75*u.iI);n.Z=function(e){var n=e.borderless,t=e.children,o=e.containerRef,c=e.contentContainerRef,d=e.dark,a=e.footer,u=e.fullHeight,p=void 0===u||u,g=e.fullWidth,x=void 0===g||g,j=e.header,b=e.headerHeight,y=e.headerIcon,Z=e.headerPaddingVertical,_=e.headerTitle,P=e.maxHeight,k=e.maxWidth,O=e.minWidth,S=e.noPadding,E=e.overflowVisible,I=e.subtitle,w=e.success;return(0,s.jsxs)(h,{borderless:n,dark:d,fullHeight:p,fullWidth:x,maxHeight:P,maxWidth:k,minWidth:O,overflowVisible:E,ref:o,success:w,children:[(j||_)&&(0,s.jsxs)(f,{headerPaddingVertical:Z,height:b,children:[j&&j,_&&(0,s.jsx)(i.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(i.ZP,{alignItems:"center",children:[y&&y,(0,s.jsx)(r.Z,{ml:y?1:0,children:(0,s.jsx)(l.ZP,{bold:!0,default:!0,children:_})})]})})]}),(0,s.jsxs)(v,{maxHeight:P,noPadding:S,overflowVisible:E,ref:c,children:[I&&"string"===typeof I&&(0,s.jsx)(r.Z,{mb:2,children:(0,s.jsx)(l.ZP,{default:!0,children:I})}),I&&"string"!==typeof I&&I,t]}),a&&(0,s.jsx)(m,{children:a})]})}},80022:function(e,n,t){function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return o}})},15544:function(e,n,t){function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}t.d(n,{Z:function(){return o}})},13692:function(e,n,t){t.d(n,{Z:function(){return i}});var o=t(61049);function i(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&(0,o.Z)(e,n)}},93189:function(e,n,t){t.d(n,{Z:function(){return r}});var o=t(12539),i=t(80022);function r(e,n){if(n&&("object"===o(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},61049:function(e,n,t){function o(e,n){return o=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},o(e,n)}t.d(n,{Z:function(){return o}})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3540,5729],{60523:function(e,n,t){var i=t(21831),r=t(82394),o=t(82684),c=t(38626),l=t(34376),d=t(54750),u=t(71180),a=t(90299),s=t(44898),p=t(55485),h=t(88328),f=t(38276),m=t(4190),v=t(48381),g=t(5755),x=t(30160),j=t(35686),b=t(72473),y=t(84649),Z=t(32929),w=t(15610),O=t(19183),P=t(28598);function _(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 k(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n,t=e.contained,r=e.defaultLinkUUID,_=e.defaultTab,C=e.objectType,I=e.onClickCustomTemplate,S=e.pipelineUUID,B=e.showAddingNewTemplates,D=e.showBreadcrumbs,N=e.tabs,E=(0,l.useRouter)(),M=(0,o.useContext)(c.ThemeContext),T=(0,O.i)(),H=T.height,A=T.width,R=(0,o.useMemo)((function(){return N||Z.dP}),[N]),U=(0,o.useState)(B||!1),F=U[0],L=U[1],z=(0,o.useState)(r?Z.qy.find((function(e){return e.uuid===r})):Z.qy[0]),q=z[0],Y=z[1],V=(0,o.useState)(_?R.find((function(e){return e.uuid===(null===_||void 0===_?void 0:_.uuid)})):R[0]),G=V[0],W=V[1],X=(0,o.useState)(null),$=X[0],J=X[1],K=j.ZP.custom_templates.list({object_type:s.Z},{},{pauseFetch:Z.n9.uuid!==(null===G||void 0===G?void 0:G.uuid)}),Q=K.data,ee=K.mutate,ne=(0,o.useMemo)((function(){var e=(null===Q||void 0===Q?void 0:Q.custom_templates)||[];return null!==q&&void 0!==q&&q.filterTemplates?null===q||void 0===q?void 0:q.filterTemplates(e):e}),[Q,q]),te=j.ZP.custom_templates.list({object_type:s.R},{},{pauseFetch:Z.A2.uuid!==(null===G||void 0===G?void 0:G.uuid)}),ie=te.data,re=te.mutate,oe=(0,o.useMemo)((function(){var e=(null===ie||void 0===ie?void 0:ie.custom_templates)||[];return null!==q&&void 0!==q&&q.filterTemplates?null===q||void 0===q?void 0:q.filterTemplates(e):e}),[ie,q]),ce=(0,o.useMemo)((function(){return Z.qy.map((function(e){var n=e.Icon,t=e.label,i=e.selectedBackgroundColor,r=e.selectedIconProps,o=e.uuid,c=(null===q||void 0===q?void 0:q.uuid)===o,l=k({size:y.ZG},c&&r?r:{});return(0,P.jsx)(y.wj,{onClick:function(){return Y(e)},selected:c,children:(0,P.jsxs)(p.ZP,{alignItems:"center",children:[(0,P.jsx)(y.ze,{backgroundColor:c&&i?i(M):null,children:n?(0,P.jsx)(n,k({},l)):(0,P.jsx)(b.pd,k({},l))}),(0,P.jsx)(x.ZP,{bold:!0,large:!0,children:t?t():o})]})},o)}))}),[q,M]),le=(0,o.useMemo)((function(){return Z.hS.map((function(e){var n=e.Icon,t=e.label,i=e.selectedBackgroundColor,r=e.selectedIconProps,o=e.uuid,c=(null===q||void 0===q?void 0:q.uuid)===o,l=k({size:y.ZG},c&&r?r:{});return(0,P.jsx)(y.wj,{onClick:function(){return Y(e)},selected:c,children:(0,P.jsxs)(p.ZP,{alignItems:"center",children:[(0,P.jsx)(y.ze,{backgroundColor:c&&i?i(M):null,children:n?(0,P.jsx)(n,k({},l)):(0,P.jsx)(b.pd,k({},l))}),(0,P.jsx)(x.ZP,{bold:!0,large:!0,children:t?t():o})]})},o)}))}),[q,M]),de=(0,o.useMemo)((function(){return null===ne||void 0===ne?void 0:ne.map((function(e){var n=e.description,t=e.name,r=e.tags,o=e.template_uuid,c=e.user,l=[];return null!==r&&void 0!==r&&r.length?l.push.apply(l,(0,i.Z)(r)):null!==c&&void 0!==c&&c.username&&l.push(null===c||void 0===c?void 0:c.username),(0,P.jsxs)(y.UE,{onClick:function(){I?I(e):E.push("/templates/[...slug]","/templates/".concat(encodeURIComponent(o)))},children:[(0,P.jsx)(y.Tj,{children:(0,P.jsx)(x.ZP,{bold:!0,monospace:!0,textOverflow:!0,children:t||o})}),(0,P.jsx)(y.SL,{children:(0,P.jsx)(x.ZP,{default:!!n,italic:!n,muted:!n,textOverflowLines:2,children:n||"No description"})}),(0,P.jsx)(y.EN,{children:(null===l||void 0===l?void 0:l.length)>=1&&(0,P.jsx)(v.Z,{tags:null===l||void 0===l?void 0:l.map((function(e){return{uuid:e}}))})})]},o)}))}),[ne,I,E]),ue=(0,o.useMemo)((function(){return null===oe||void 0===oe?void 0:oe.map((function(e){var n=e.description,t=e.name,r=e.tags,o=e.template_uuid,c=e.user,l=[];return null!==r&&void 0!==r&&r.length?l.push.apply(l,(0,i.Z)(r)):null!==c&&void 0!==c&&c.username&&l.push(null===c||void 0===c?void 0:c.username),(0,P.jsxs)(y.UE,{onClick:function(){I?I(e):E.push("/templates/[...slug]","/templates/".concat(encodeURIComponent(o),"?object_type=").concat(s.R))},children:[(0,P.jsx)(y.Tj,{children:(0,P.jsx)(x.ZP,{bold:!0,monospace:!0,textOverflow:!0,children:t||o})}),(0,P.jsx)(y.SL,{children:(0,P.jsx)(x.ZP,{default:!!n,italic:!n,muted:!n,textOverflowLines:2,children:n||"No description"})}),(0,P.jsx)(y.EN,{children:(null===l||void 0===l?void 0:l.length)>=1&&(0,P.jsx)(v.Z,{tags:null===l||void 0===l?void 0:l.map((function(e){return{uuid:e}}))})})]},o)}))}),[oe,I,E]),ae=(0,o.useMemo)((function(){if(!D)return null;var e=[];return F?e.push.apply(e,[{label:function(){return"Templates"},onClick:function(){L(!1)}},{bold:!0,label:function(){return"New custom template"}}]):e.push({label:function(){return"Templates"}}),(0,P.jsx)(y.FX,{children:(0,P.jsx)(d.Z,{breadcrumbs:e})})}),[F,D]),se=(0,o.useMemo)((function(){return D?36:0}),[D]),pe=(0,o.useMemo)((function(){return H-se}),[H,se]);if(F)return n=s.R===C&&S?(0,P.jsx)(h.Z,{onMutateSuccess:re,pipelineUUID:S,templateAttributes:q&&(null===q||void 0===q?void 0:q.uuid)!==(null===Z.qy||void 0===Z.qy?void 0:Z.qy[0].uuid)?{pipeline_type:null===q||void 0===q?void 0:q.uuid}:null,templateUUID:null===$||void 0===$?void 0:$.template_uuid}):(0,P.jsx)(g.Z,{contained:t,heightOffset:se,onCreateCustomTemplate:t?function(e){J(e)}:null,onMutateSuccess:ee,templateAttributes:q&&(null===q||void 0===q?void 0:q.uuid)!==(null===Z.qy||void 0===Z.qy?void 0:Z.qy[0].uuid)?{block_type:null===q||void 0===q?void 0:q.uuid}:null,templateUUID:null===$||void 0===$?void 0:$.template_uuid}),t?(0,P.jsxs)(P.Fragment,{children:[D&&ae,(0,P.jsx)(y.Rd,{height:pe,width:A,children:n})]}):n;var he=(0,P.jsxs)(y.Nk,{children:[(0,P.jsxs)(y.bC,{height:t?pe:null,children:[(0,P.jsx)(y.Yf,{children:(0,P.jsx)(a.Z,{noPadding:!0,onClickTab:function(e){t?W(e):(0,w.u)({object_type:Z.A2.uuid===e.uuid?s.R:s.Z})},selectedTabUUID:null===G||void 0===G?void 0:G.uuid,tabs:R})}),(0,P.jsxs)(y.wl,{contained:t,heightOffset:se,children:[Z.n9.uuid===(null===G||void 0===G?void 0:G.uuid)&&ce,Z.A2.uuid===(null===G||void 0===G?void 0:G.uuid)&&le]})]}),(0,P.jsxs)(y.w5,{children:[Z.n9.uuid===(null===G||void 0===G?void 0:G.uuid)&&(0,P.jsx)(y.HS,{children:(0,P.jsx)(u.ZP,{beforeIcon:(0,P.jsx)(b.mm,{size:y.ZG}),onClick:function(){L(!0)},primary:!0,children:"New block template"})}),Z.n9.uuid===(null===G||void 0===G?void 0:G.uuid)&&(0,P.jsxs)(P.Fragment,{children:[!Q&&(0,P.jsx)(f.Z,{p:2,children:(0,P.jsx)(m.Z,{inverted:!0})}),Q&&!(null!==de&&void 0!==de&&de.length)&&(0,P.jsxs)(f.Z,{p:2,children:[(0,P.jsx)(x.ZP,{children:"There are currently no templates matching your search."}),(0,P.jsx)("br",{}),(0,P.jsx)(x.ZP,{children:"Add a new template by clicking the button above."})]}),(null===de||void 0===de?void 0:de.length)>=1&&(0,P.jsx)(y.n8,{children:de})]}),Z.A2.uuid===(null===G||void 0===G?void 0:G.uuid)&&(0,P.jsxs)(P.Fragment,{children:[!ie&&(0,P.jsx)(f.Z,{p:2,children:(0,P.jsx)(m.Z,{inverted:!0})}),ie&&!(null!==ue&&void 0!==ue&&ue.length)&&(0,P.jsxs)(f.Z,{p:2,children:[(0,P.jsx)(x.ZP,{children:"There are currently no templates matching your search."}),(0,P.jsx)("br",{}),(0,P.jsx)(x.ZP,{children:'Add a new template by right-clicking a pipeline row from the Pipelines page and selecting "Create template".'})]}),(null===ue||void 0===ue?void 0:ue.length)>=1&&(0,P.jsx)(y.n8,{children:ue})]})]})]});return t?(0,P.jsxs)(P.Fragment,{children:[D&&ae,(0,P.jsx)(y.Rd,{height:pe,width:A,children:he})]}):he}},4015:function(e,n,t){t.d(n,{$b:function(){return a},I5:function(){return d},Nk:function(){return l},gI:function(){return u}});var i=t(38626),r=t(44897),o=t(42631),c=t(70515),l=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-h093u4-0"})([""," ",""],(function(e){return!e.width&&"\n width: ".concat(40*c.iI,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")})),d=i.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-h093u4-1"})(["padding:","px;",""],2.5*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).dashboard,";\n border-left: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-right: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-top-left-radius: ").concat(o.n_,"px;\n border-top-right-radius: ").concat(o.n_,"px;\n border-top: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n ")})),u=i.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||r.Z.background).dashboard,";\n border-left: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-right: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-top: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n display: ").concat((null===e||void 0===e?void 0:e.display)||"flex",";\n padding-bottom: ").concat(1*c.iI+((null===e||void 0===e?void 0:e.paddingVerticalAddition)||0),"px;\n padding-left: ").concat(c.cd*c.iI,"px;\n padding-top: ").concat(1*c.iI+((null===e||void 0===e?void 0:e.paddingVerticalAddition)||0),"px;\n ")})),a=i.default.div.withConfig({displayName:"indexstyle__FooterStyle",componentId:"sc-h093u4-3"})(["padding:","px ","px;",""],2.5*c.iI,2*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-bottom-left-radius: ").concat(o.n_,"px;\n border-bottom-right-radius: ").concat(o.n_,"px;\n border-bottom: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-left: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-right: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n ")}))},48381:function(e,n,t){var i=t(82684),r=t(31882),o=t(55485),c=t(30160),l=t(86735),d=t(28598);n.Z=function(e){var n=e.onClickTag,t=e.tags,u=void 0===t?[]:t,a=(0,i.useMemo)((function(){return(null===u||void 0===u?void 0:u.length)||0}),[u]),s=(0,i.useMemo)((function(){return(0,l.YC)(u||[],"uuid")}),[u]);return(0,d.jsx)(o.ZP,{alignItems:"center",flexWrap:"wrap",children:null===s||void 0===s?void 0:s.reduce((function(e,t){return e.push((0,d.jsx)("div",{style:{marginBottom:2,marginRight:a>=2?4:0,marginTop:2},children:(0,d.jsx)(r.Z,{onClick:n?function(){return n(t)}:null,small:!0,children:(0,d.jsx)(c.ZP,{children:t.uuid})})},"tag-".concat(t.uuid))),e}),[])})}},55729:function(e,n,t){t.d(n,{Z:function(){return A}});var i=t(82394),r=t(75582),o=t(82684),c=t(69864),l=t(71180),d=t(15338),u=t(97618),a=t(55485),s=t(85854),p=t(48670),h=t(65956),f=t(82359),m=t(88543),v=t(38276),g=t(30160),x=t(17488),j=t(69650),b=t(12468),y=t(35686),Z=t(77417),w=t(38626),O=t(44897),P=t(42631),_=t(70515),k=w.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1b0w59t-0"})(["border-radius:","px;padding:","px;",""],P.n_,_.cd*_.iI,(function(e){return"\n background-color: ".concat((e.theme.background||O.Z.background).codeArea,";\n ")})),C=t(72473),I=t(72191),S=t(70320),B=t(81728),D=t(42122),N=t(72619),E=t(23780),M=t(28598);function T(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 H(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?T(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):T(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var A=function(e){var n,t,w,O=e.cancelButtonText,P=e.contained,T=e.header,A=e.onCancel,R=e.onSaveSuccess,U=e.rootProject,F=(0,E.VI)(null,{},[],{uuid:"settings/workspace/preferences"}),L=(0,r.Z)(F,1)[0],z=(0,o.useState)(null),q=z[0],Y=z[1],V=(0,o.useState)(!1),G=V[0],W=V[1],X=(0,Z.Z)(),$=X.fetchProjects,J=X.project,K=X.projectPlatformActivated,Q=X.rootProject,ee=(0,o.useMemo)((function(){return U?Q:J}),[J,Q,U]),ne=ee||{},te=ne.name,ie=ne.openai_api_key,re=ne.project_uuid,oe=(0,o.useMemo)((function(){return"demo.mage.ai"===window.location.hostname}),[]);(0,o.useEffect)((function(){q||Y(ee)}),[ee,q]);var ce=(0,c.Db)(y.ZP.projects.useUpdate(te),{onSuccess:function(e){return(0,N.wD)(e,{callback:function(e){var n,t=e.project;$(),Y(t),W(!1),(0,S.hY)(null===t||void 0===t||null===(n=t.features)||void 0===n?void 0:n[f.d.LOCAL_TIMEZONE]),R&&(null===R||void 0===R||R(t))},onErrorCallback:function(e,n){return L({errors:n,response:e})}})}}),le=(0,r.Z)(ce,2),de=le[0],ue=le[1].isLoading,ae=(0,o.useCallback)((function(e){return de({project:H(H({},e),{},{root_project:U})})}),[U,de]),se=(0,M.jsxs)(M.Fragment,{children:[T,(0,M.jsxs)(h.Z,{noPadding:!0,children:[(0,M.jsxs)(v.Z,{p:_.cd,children:[(0,M.jsx)(v.Z,{mb:1,children:(0,M.jsx)(s.Z,{level:5,children:"Project name"})}),(0,M.jsx)(g.ZP,{default:!0,monospace:!0,children:te})]}),(0,M.jsx)(d.Z,{light:!0}),(0,M.jsxs)(v.Z,{p:_.cd,children:[(0,M.jsx)(v.Z,{mb:1,children:(0,M.jsx)(s.Z,{level:5,children:"Project UUID"})}),(0,M.jsx)(g.ZP,{default:!!re,monospace:!0,muted:!re,children:re||"Not required"})]}),(0,M.jsx)(d.Z,{light:!0}),(0,M.jsx)(v.Z,{p:_.cd,children:(0,M.jsxs)(a.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,M.jsxs)(u.Z,{flexDirection:"column",children:[(0,M.jsx)(v.Z,{mb:1,children:(0,M.jsx)(s.Z,{level:5,children:"Help improve Mage"})}),(0,M.jsxs)(g.ZP,{default:!0,children:["Please contribute usage statistics to help improve the developer experience for you and everyone in the community. Learn more ",(0,M.jsx)(p.Z,{href:"https://docs.mage.ai/contributing/statistics/overview",openNewWindow:!0,children:"here"}),"."]})]}),(0,M.jsx)(v.Z,{mr:_.cd}),(0,M.jsx)(j.Z,{compact:!0,checked:null===q||void 0===q?void 0:q.help_improve_mage,onCheck:function(){return Y((function(e){return H(H({},e),{},{help_improve_mage:!(null!==q&&void 0!==q&&q.help_improve_mage)})}))}})]})})]}),(0,M.jsx)(v.Z,{mt:_.HN}),(0,M.jsx)(m.Z,{description:"Global settings that are applied to all pipelines in this project.",title:"Pipeline settings",children:(0,M.jsx)(m.S,{description:"Every time a trigger is created or updated in this pipeline, automatically persist it in code.",title:"Save triggers in code automatically",toggleSwitch:{checked:!(null===q||void 0===q||null===(n=q.pipelines)||void 0===n||null===(t=n.settings)||void 0===t||null===(w=t.triggers)||void 0===w||!w.save_in_code_automatically),onCheck:function(e){return Y((function(n){var t,i,r,o,c,l;return H(H({},n),{},{pipelines:H(H({},null===n||void 0===n?void 0:n.pipelines),{},{settings:H(H({},null===n||void 0===n||null===(t=n.pipelines)||void 0===t?void 0:t.settings),{},{triggers:H(H({},null===n||void 0===n||null===(i=n.pipelines)||void 0===i||null===(r=i.settings)||void 0===r?void 0:r.triggers),{},{save_in_code_automatically:e(null===n||void 0===n||null===(o=n.pipelines)||void 0===o||null===(c=o.settings)||void 0===c||null===(l=c.triggers)||void 0===l?void 0:l.save_in_code_automatically)})})})})}))}}})}),(0,M.jsx)(v.Z,{mt:_.HN}),(0,M.jsx)(h.Z,{noPadding:!0,overflowVisible:!0,children:(0,M.jsxs)(v.Z,{p:_.cd,children:[(0,M.jsx)(v.Z,{mb:1,children:(0,M.jsx)(s.Z,{level:5,children:"Features"})}),Object.entries((0,D.gR)(null===q||void 0===q?void 0:q.features,[{}])||{}).map((function(e,n){var t=(0,r.Z)(e,2),o=t[0],c=t[1],l=K&&!U&&(null===ee||void 0===ee?void 0:ee.features_override)&&o in(null===ee||void 0===ee?void 0:ee.features_override);return(0,M.jsx)(v.Z,{mt:0===n?0:1,children:(0,M.jsxs)(a.ZP,{alignItems:"center",children:[(0,M.jsxs)(u.Z,{flex:1,children:[(0,M.jsx)(j.Z,{disabled:l,checked:!!c,compact:!0,onCheck:function(){return Y((function(e){return H(H({},e),{},{features:H(H({},null===q||void 0===q?void 0:q.features),{},(0,i.Z)({},o,!c))})}))}}),(0,M.jsx)(v.Z,{mr:_.cd}),(0,M.jsxs)(u.Z,{children:[(0,M.jsx)(g.ZP,{default:!c,monospace:!0,children:(0,B.vg)(o)}),o===f.d.LOCAL_TIMEZONE&&(0,M.jsx)(v.Z,{ml:1,children:(0,M.jsx)(b.Z,H({},S.EB))})]})]}),l&&(0,M.jsx)(g.ZP,{monospace:!0,muted:!0,small:!0,children:"overridden"})]})},o)}))]})}),(0,M.jsx)(v.Z,{mt:_.HN}),(0,M.jsx)(h.Z,{noPadding:!0,children:(0,M.jsxs)(v.Z,{p:_.cd,children:[(0,M.jsx)(v.Z,{mb:1,children:(0,M.jsx)(s.Z,{level:5,children:"OpenAI"})}),ie&&!G?(0,M.jsxs)(a.ZP,H(H({},a.A0),{},{children:[(0,M.jsx)(g.ZP,{default:!0,monospace:!0,children:"API key: ********"}),(0,M.jsx)(l.ZP,{iconOnly:!0,onClick:function(){return W(!0)},secondary:!0,title:"Edit",children:(0,M.jsx)(C.I8,{size:I.bL})})]})):(0,M.jsx)(x.Z,{disabled:oe,label:oe?"Entering API key is disabled on demo":"API key",monospace:!0,onChange:function(e){return Y((function(n){return H(H({},n),{},{openai_api_key:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===q||void 0===q?void 0:q.openai_api_key)||""})]})}),(0,M.jsx)(v.Z,{mt:_.HN}),(0,M.jsxs)(a.ZP,{alignItems:"center",children:[(0,M.jsx)(l.ZP,{loading:ue,onClick:function(){ae({features:null===q||void 0===q?void 0:q.features,help_improve_mage:null===q||void 0===q?void 0:q.help_improve_mage,openai_api_key:null===q||void 0===q?void 0:q.openai_api_key,pipelines:null===q||void 0===q?void 0:q.pipelines})},primary:!0,children:"Save project settings"}),A&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(v.Z,{mr:_.cd}),(0,M.jsx)(l.ZP,{onClick:A,secondary:!0,children:O||"Cancel"})]})]})]});return P?(0,M.jsx)(k,{children:se}):se}},46568:function(e,n,t){var i=t(82394),r=t(26304),o=(t(82684),t(33591)),c=t(28598),l=["children","fullHeight","gutter","style"];function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.fullHeight,i=e.gutter,d=e.style,a=void 0===d?{}:d,s=(0,r.Z)(e,l),p=u({},a);return i&&(p.paddingLeft=i,p.paddingRight=p.paddingLeft),t&&(p.height="100%"),(0,c.jsx)(o.Col,u(u({},s),{},{style:p,children:n}))}},82682:function(e,n,t){var i=t(82394),r=t(26304),o=t(82684),c=t(33591),l=t(28598),d=["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 a(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,p=void 0===s?{}:s,h=(0,r.Z)(e,d),f=a({},p);return i&&(f.marginLeft=-1*i,f.marginRight=f.marginLeft),t&&(f.height="100%"),(0,l.jsx)(c.Row,a(a({},h),{},{justifyContent:u,style:f,children:o.Children.map(n,(function(e,n){return e&&o.cloneElement(e,{gutter:i,key:n})}))}))}},88543:function(e,n,t){t.d(n,{S:function(){return y},Z:function(){return Z}});var i=t(82684),r=t(15338),o=t(97618),c=t(55485),l=t(85854),d=t(65956),u=t(82394),a=t(44085),s=t(38276),p=t(30160),h=t(17488),f=t(69650),m=t(72473),v=t(8193),g=t(70515),x=t(28598);function j(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?j(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var y=function(e){var n,t=e.children,i=e.description,r=e.invalid,l=e.large,d=void 0===l||l,u=e.selectInput,j=e.textInput,y=e.title,Z=e.toggleSwitch,w=e.warning;return(0,x.jsx)(s.Z,{p:g.cd,children:(0,x.jsxs)(c.ZP,{alignItems:"center",children:[(0,x.jsxs)(c.ZP,{flexDirection:"column",children:[(0,x.jsxs)(p.ZP,{danger:r,default:!0,large:d,warning:w,children:[y," ",r&&(0,x.jsx)(p.ZP,{danger:!0,inline:!0,large:d,children:"is required"})]}),i&&"string"===typeof i&&(0,x.jsx)(p.ZP,{muted:!0,small:!0,children:i}),i&&"string"!==typeof i&&i]}),(0,x.jsx)(s.Z,{mr:g.cd}),(0,x.jsxs)(o.Z,{flex:1,justifyContent:"flex-end",children:[t,j&&(0,x.jsx)(h.Z,b({afterIcon:(0,x.jsx)(m.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:v.Z,alignRight:!0,autoComplete:"off",large:d,noBackground:!0,noBorder:!0,fullWidth:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0},j)),u&&(0,x.jsx)(a.Z,b(b({},u),{},{afterIcon:(0,x.jsx)(m._M,{}),afterIconSize:v.Z,alignRight:!0,autoComplete:"off",large:d,noBackground:!0,noBorder:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0,children:null===u||void 0===u||null===(n=u.options)||void 0===n?void 0:n.map((function(e){var n=e.label,t=e.value;return(0,x.jsx)("option",{value:t,children:n||t},t)}))})),Z&&(0,x.jsx)(f.Z,{checked:!(null===Z||void 0===Z||!Z.checked),compact:!0,onCheck:null===Z||void 0===Z?void 0:Z.onCheck})]})]})})},Z=function(e){var n=e.children,t=e.description,u=e.headerChildren,a=e.title;return(0,x.jsxs)(d.Z,{noPadding:!0,children:[(0,x.jsx)(s.Z,{p:g.cd,children:(0,x.jsxs)(c.ZP,{alignItems:"center",children:[(0,x.jsxs)(o.Z,{flex:1,flexDirection:"column",children:[(0,x.jsx)(l.Z,{level:4,children:a}),t&&"string"===typeof t&&(0,x.jsx)(s.Z,{mt:1,children:(0,x.jsx)(p.ZP,{muted:!0,children:t})}),t&&"string"!==typeof t&&t]}),u]})}),i.Children.map(n,(function(e,n){return(0,x.jsxs)("div",{children:[(0,x.jsx)(r.Z,{light:!0}),e]},"".concat(a,"-").concat(n))}))]})}},8193:function(e,n,t){t.d(n,{N:function(){return d},Z:function(){return l}});var i=t(38626),r=t(44897),o=t(42631),c=t(70515),l=2*c.iI,d=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1ck7mzt-0"})(["border-radius:","px;padding:","px;",""],o.n_,c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).codeArea,";\n ")}))},96348:function(e,n,t){t.d(n,{g:function(){return g},Z:function(){return x}});var i=t(82684),r=t(38626),o=t(44897),c=t(42631),l=t(47041),d=t(70515),u=1.5*d.iI,a=1.5*d.iI,s=r.default.div.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-13p7y8j-0"})(["border-radius:","px;overflow:hidden;width:100%;"," "," "," ",""],c.n_,(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}),(function(e){return"\n background-color: ".concat((e.theme||o.Z).background.page,";\n border: ").concat(c.YF,"px ").concat(c.M8," ").concat((e.theme||o.Z).interactive.defaultBorder,";\n box-shadow: ").concat((e.theme||o.Z).shadow.frame,";\n ")}),(function(e){return e.noBackground&&"\n background-color: transparent;\n "}),(function(e){return e.noBoxShadow&&"\n box-shadow: none;\n "})),p=r.default.div.withConfig({displayName:"indexstyle__RowContainerStyle",componentId:"sc-13p7y8j-1"})(["overflow:auto;border-bottom-left-radius:","px;border-bottom-right-radius:","px;"," "," "," ",""],c.n_,c.n_,l.w5,(function(e){return e.maxHeight>0&&"\n max-height: ".concat(e.maxHeight,"px;\n ")}),(function(e){return e.minHeight>0&&"\n min-height: ".concat(e.minHeight,"px;\n ")}),(function(e){return e.scrollable&&"\n margin-bottom: ".concat(d.iI,"px;\n overflow-y: auto;\n padding-top: ").concat(3,"px;\n padding-left: ").concat(3,"px;\n padding-right: ").concat(3,"px;\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-13p7y8j-2"})(["border-top-left-radius:","px;border-top-right-radius:","px;padding:","px ","px;",""],c.n_,c.n_,u,2*d.iI,(function(e){return"\n border-bottom: ".concat(c.YF,"px ").concat(c.M8," ").concat((e.theme.interactive||o.Z.interactive).defaultBorder,";\n ")})),f=r.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-13p7y8j-3"})(["padding:","px ","px;"," "," "," "," "," ",""],a,2*d.iI,(function(e){return"\n border-bottom: ".concat(c.YF,"px ").concat(c.M8," ").concat((e.theme||o.Z).borders.medium2,";\n ")}),(function(e){return e.sameColorBorders&&"\n border-bottom-color: ".concat((e.theme||o.Z).interactive.defaultBorder,";\n ")}),(function(e){return e.noHorizontalPadding&&"\n padding-left: 0;\n padding-right: 0;\n "}),(function(e){return e.condensed&&"\n padding-top: ".concat(9,"px;\n padding-bottom: ").concat(9,"px;\n ")}),(function(e){return e.secondary&&"\n background-color: ".concat((e.theme.background||o.Z.background).row2,";\n ")}),(function(e){return e.last&&e.noBorder&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom: none;\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__FooterStyle",componentId:"sc-13p7y8j-4"})(["border-bottom-left-radius:","px;border-bottom-right-radius:","px;padding:","px ","px;",""],c.n_,c.n_,u,2*d.iI,(function(e){return"\n border-top: ".concat(c.YF,"px ").concat(c.M8," ").concat((e.theme||o.Z).borders.medium2,";\n ")})),v=t(28598),g=f;var x=function(e){var n=e.alternating,t=e.children,r=e.footer,o=e.header,c=e.maxHeight,l=e.minHeight,d=e.noBackground,u=e.noBoxShadow,a=e.sameColorBorders,f=e.scrollable,g=e.width,x=[].concat(t).filter((function(e){return null!==e}));return(0,v.jsxs)(s,{noBackground:d,noBoxShadow:u,width:g,children:[o&&(0,v.jsx)(h,{children:o}),(0,v.jsx)(p,{maxHeight:c,minHeight:l,scrollable:f,children:i.Children.map(x,(function(e,t){return e&&i.cloneElement(e,{last:t===x.length-1,sameColorBorders:a,secondary:n&&t%2===1})}))}),r&&(0,v.jsx)(m,{children:r})]})}}}]);
|