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
mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9626-090ff01fd210431c.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9626],{87848:function(e,n,t){t.d(n,{u:function(){return c}});var r=t(38626),i=t(44897),o=t(70515),c=r.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-y3uzxv-0"})(["padding:","px;&:hover{cursor:pointer;","}",""],o.iI,(function(e){return"\n background-color: ".concat((e.theme.interactive||i.Z.interactive).hoverBackground,";\n ")}),(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||i.Z.interactive).hoverBackground,";\n ")}))},28026:function(e,n,t){t.d(n,{Z:function(){return S}});var r=t(82394),i=t(89565),o=t.n(i),c=t(82684),l=t(40761),a=t(50724),s=t(30160),u=t(38626),d=t(44897),h=t(70515),f=t(47041),p=(0,u.css)([""," ",""],(function(e){return!e.width&&"\n width: 100%;\n "}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")})),v=u.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-11d4rgl-0"})([""," "," height:100%;overflow:auto;position:absolute;",""],p,f.w5,(function(e){return"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),m=u.default.div.withConfig({displayName:"indexstyle__InnerStyle",componentId:"sc-11d4rgl-1"})([""," padding:","px;"],p,h.cd*h.iI),g=(u.default.div.withConfig({displayName:"indexstyle__LineStyle",componentId:"sc-11d4rgl-2"})(["height:","px;"],20),(0,u.css)(["@keyframes cursor-blink{0%{opacity:0;}}::before{","}::after{","}"],(function(e){return e.focusBeginning&&"\n position: absolute;\n background-color: ".concat((e.theme.accent||d.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(h.iI,"px;\n opacity: 0.3;\n ")}),(function(e){return e.focused&&"\n background-color: ".concat((e.theme.accent||d.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(h.iI,"px;\n opacity: 0.3;\n ")}))),x=u.default.div.withConfig({displayName:"indexstyle__InputStyle",componentId:"sc-11d4rgl-3"})(["align-items:center;display:flex;gap:2px;",""],g),b=u.default.span.withConfig({displayName:"indexstyle__CharacterStyle",componentId:"sc-11d4rgl-4"})([""," ::after{","}"],g,(function(e){return e.focused&&"\n position: absolute;\n "})),j=t(48339),y=t(39643),w=t(11498),Z=t(42041),k=t(95924),C=t(44688),O=t(28598);function P(e,n){var t="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"===typeof e)return _(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _(e,n)}(e))||n&&e&&"number"===typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==t.return||t.return()}finally{if(l)throw o}}}}function _(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function M(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function F(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?M(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):M(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var S=function(e){var n=e.lastMessage,t=e.onFocus,r=e.sendMessage,i=e.uuid,u=void 0===i?"terminal":i,d=e.width,h=(0,c.useRef)(null),f=(0,c.useRef)(null),p=(0,c.useState)(""),g=p[0],_=p[1],M=(0,c.useState)(0),S=M[0],z=M[1],D=(0,c.useState)(0),H=D[0],I=D[1],E=(0,c.useState)([]),T=E[0],L=E[1],A=(0,c.useState)(!1),N=A[0],B=A[1],U=(0,c.useState)(),R=U[0],G=U[1],q=(0,c.useMemo)((function(){return new l.Z}),[]),X=(0,c.useMemo)((function(){return{api_key:w.lG,token:q.decodedToken.token}}),[q]);(0,c.useEffect)((function(){if(n){var e=JSON.parse(n.data);G((function(n){var t=n||"";return"stdout"===e[0]?t+e[1]:t}))}}),[n]);var Y=(0,c.useMemo)((function(){return R?R.split("\n").filter((function(e){return!e.includes("# Mage terminal settings command")})).map((function(e){return{data:e,type:j.Gi.TEXT}})):[]}),[R]);(0,c.useEffect)((function(){if(h.current&&f.current){var e=f.current.getBoundingClientRect().height;h.current.scrollTo(0,e)}}),[g,Y,h,f]);var W=(0,C.y)(),V=W.registerOnKeyDown,J=W.setDisableGlobalKeyboardShortcuts,Q=W.unregisterOnKeyDown;(0,c.useEffect)((function(){return function(){Q(u)}}),[Q,u]);var K=(0,c.useCallback)((function(){I((function(e){return e>0?e-1:e}))}),[]),$=(0,c.useCallback)((function(){I((function(e){return e<g.length?e+1:e}))}),[g]),ee=(0,c.useCallback)((function(e){r(JSON.stringify(F(F({},X),{},{command:["stdin",e]}))),r(JSON.stringify(F(F({},X),{},{command:["stdin","\r"]}))),(null===e||void 0===e?void 0:e.length)>=2&&(z(T.length+1),L((function(n){return n.concat(e)})),I(0)),_("")}),[T,r,_,L,z,I]),ne=(0,c.useCallback)((function(e){var n=(null===e||void 0===e?void 0:e.split(/\n/))||[];if(n.length>1){var t=n.slice(0,-1);ee(g+t.join("\n"));var r=(n.slice(-1)[0]||"").trim();_(r),I(r.length)}else _((function(n){return n+e})),I(g.length+e.length)}),[g,ee,_,I]);V(u,(function(e,n,t){var i=e.code,o=e.key;if(N)if((0,k.j)(e),(0,Z.y)([y.PQ,y.VS],n))(null===g||void 0===g?void 0:g.length)>=0&&(r(JSON.stringify(F(F({},X),{},{command:["stdin",g]}))),r(JSON.stringify(F(F({},X),{},{command:["stdin","\x03"]}))),I(0)),_("");else if(y.Qj!==i||n[y.zX])if((0,Z.y)([y.QK],n))K();else if((0,Z.y)([y.DY],n))$();else if((0,Z.y)([y.Bu],n)){if(T.length>=1){var c,l=Math.max(0,S-1);_(T[l]),z(l),I((null===(c=T[l])||void 0===c?void 0:c.length)||0)}}else if((0,Z.y)([y.kD],n)){if(T.length>=1){var a=Math.min(T.length,S+1),s=T[a]||"";_(s),z(a),I(s.length)}}else if((0,Z.y)([y.Uq],n))ee(g);else if((0,Z.y)([y.zX,y.VS],n))navigator.clipboard.writeText(window.getSelection().toString());else if((0,Z.y)([y.zX,y.Pd],n)||(0,Z.y)([y.PQ,y.Pd],n)){var u,d,h,f,p;"undefined"===typeof(null===(u=navigator)||void 0===u?void 0:u.clipboard)?alert('Clipboard pasting is not allowed in insecure contexts. If your Mage deployment is not secure but you still want to use clipboard paste, you can override this setting (which should only be done temporarily) on Chrome browsers by going to "chrome://flags/#unsafely-treat-insecure-origin-as-secure", adding your origin to "Insecure origins treated as secure", and enabling that setting.'):null!==(d=navigator)&&void 0!==d&&null!==(h=d.clipboard)&&void 0!==h&&h.readText?navigator.clipboard.readText().then(ne).catch((function(e){return alert("".concat(e,'\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.'))})):null!==(f=navigator)&&void 0!==f&&null!==(p=f.clipboard)&&void 0!==p&&p.read?navigator.clipboard.read().then((function(e){var n,t=P(e);try{for(t.s();!(n=t.n()).done;){var r,i=n.value,o=P(i.types);try{for(o.s();!(r=o.n()).done;){var c=r.value;if("text/plain"===c)return i.getType(c)}}catch(l){o.e(l)}finally{o.f()}}}catch(l){t.e(l)}finally{t.f()}})).then((function(e){return e.text()})).then(ne).catch((function(e){return alert("".concat(e,'\n For Firefox, users need to allow clipboard paste by setting the "dom.events.asyncClipboard.read" preference in "about:config" to "true" and clicking "Paste" in the context menu that appears.'))})):alert('If pasting is not working properly, you may need to adjust some settings in your browser.\n\n For Firefox, users need to allow clipboard paste by setting both the "dom.events.asyncClipboard.clipboardItem" and "dom.events.asyncClipboard.read" preferences in "about:config" to "true" and clicking "Paste" in the context menu that appears.\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.\n')}else n[y.zX]||n[y.PQ]||1!==o.length||(_((function(e){return e.slice(0,H)+o+e.slice(H)})),I((function(e){return e+1})));else{var v=Math.max(0,H-1);_((function(e){return e.slice(0,v)+e.slice(H)})),I((function(e){return Math.max(0,e-1)}))}}),[g,T,S,N,_,L,z,u]);var te=(0,c.useMemo)((function(){var e;return null===(e=Y[Y.length-1])||void 0===e?void 0:e.data}),[Y]);return(0,O.jsx)(v,{ref:h,width:d,children:(0,O.jsx)(a.Z,{isOpen:!0,onClick:function(){null===t||void 0===t||t(),B(!0),J(!0)},onClickOutside:function(){B(!1),J(!1)},style:{minHeight:"100%"},children:(0,O.jsxs)(m,{ref:f,width:d,children:[null===Y||void 0===Y?void 0:Y.reduce((function(e,n,t){if(t==Y.length-1)return e;var r=n||{},i=r.command,c=r.data,l=r.type,a=[];a=(a=Array.isArray(c)?c:[c]).filter((function(e){return e}));var u=[];return a.forEach((function(e,n){var r;if(j.jU.includes(l)&&(r=(0,O.jsx)(s.ZP,{monospace:!0,preWrap:!0,children:e&&(0,O.jsx)(o(),{children:e})})),r){var c="command-".concat(t,"-").concat(n,"-").concat(e);i||u.push((0,O.jsx)("div",{children:r},c))}})),e.concat(u)}),[]),(0,O.jsx)(x,{focused:N&&0===(null===g||void 0===g?void 0:g.length),children:(0,O.jsxs)(s.ZP,{monospace:!0,children:[(0,O.jsx)(s.ZP,{inline:!0,monospace:!0,children:te&&(0,O.jsx)(o(),{children:te})}),null===g||void 0===g?void 0:g.split("").map((function(e,n,t){return(0,O.jsxs)(b,{focusBeginning:N&&0===H&&0===n,focused:N&&(H===n+1||H>=t.length&&n===t.length-1),children:[" "===e&&(0,O.jsx)(O.Fragment,{children:"\xa0"}),"\n"===e&&(0,O.jsx)("br",{})," "!==e&&e]},"command-".concat(n,"-").concat(e))}))]})})]})})})}},31353:function(e,n,t){t.d(n,{Mz:function(){return a},T5:function(){return u},bf:function(){return s}});var r,i=t(82394),o=t(72473),c=t(89370),l=t(70515),a=7*l.iI,s=22,u=(l.iI,l.iI,r={},(0,i.Z)(r,c.RL.CATEGORY,o.WD),(0,i.Z)(r,c.RL.CATEGORY_HIGH_CARDINALITY,o.Rj),(0,i.Z)(r,c.RL.DATETIME,o.aw),(0,i.Z)(r,c.RL.EMAIL,o.GT),(0,i.Z)(r,c.RL.LIST,o.aV),(0,i.Z)(r,c.RL.NUMBER,o.qZ),(0,i.Z)(r,c.RL.NUMBER_WITH_DECIMALS,o.As),(0,i.Z)(r,c.RL.PHONE_NUMBER,o.LP),(0,i.Z)(r,c.RL.TEXT,o.KJ),(0,i.Z)(r,c.RL.TRUE_OR_FALSE,o.Kb),(0,i.Z)(r,c.RL.UUID,o.SS),(0,i.Z)(r,c.RL.ZIP_CODE,o.$t),r)},70320:function(e,n,t){t.d(n,{EB:function(){return c},hY:function(){return a},qB:function(){return l}});var r=t(72191),i=t(78419),o=t(53808),c={block:!0,description:"Display dates in local timezone. Please note that certain pages (e.g. Monitor page) or components (e.g. Pipeline run bar charts) may still be in UTC time. Dates in local time will have a timezone offset in the timestamp (e.g. -07:00).",lightBackground:!0,muted:!0,size:r._k};function l(){return(0,o.U2)(i.am,null)||!1}function a(e){return"undefined"!==typeof e&&(0,o.t8)(i.am,e),e}},79626:function(e,n,t){t.d(n,{Z:function(){return Ae}});var r=t(21831),i=t(75582),o=t(12691),c=t.n(o),l=t(38626),a=t(82684),s=t(69864),u=t(34376),d=t(40761),h=t(54750),f=t(71180),p=t(39867),v=t(50724),m=t(58036),g=t(97618),x=t(55485),b=t(70374),j=t(82394),y=t(56085),w=t(70652),Z=t(44085),k=t(38276),C=t(4190),O=t(28026),P=t(30160),_=t(35576),M=t(17488),F=t(69650),S=t(35686),z=t(72473),D=t(44897),H=t(42631),I=t(31353),E=t(47041),T=t(70515),L=l.default.div.withConfig({displayName:"GitActionsstyle__HeaderStyle",componentId:"sc-ynrhio-0"})(["border-bottom:1px solid #1B1C20;height:","px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;"],I.Mz),A=l.default.div.withConfig({displayName:"GitActionsstyle__TerminalStyle",componentId:"sc-ynrhio-1"})(["height:calc(75vh - ","px);position:relative;"],I.Mz),N=l.default.div.withConfig({displayName:"GitActionsstyle__PanelStyle",componentId:"sc-ynrhio-2"})(["height:75vh;min-height:300px;width:75vw;backgroundColor:#232429;border-radius:","px;",""],H.n_,(function(e){return"\n background-color: ".concat((e.theme.background||D.Z.background).panel,";\n ")})),B=l.default.div.withConfig({displayName:"GitActionsstyle__OutputStyle",componentId:"sc-ynrhio-3"})([""," padding:","px;height:calc(75vh - ","px);overflow-y:auto;"],E.w5,2*T.iI,I.Mz),U=t(4383),R=t(72619),G=t(86735),q=t(50178),X=t(28598);function Y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function W(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Y(Object(t),!0).forEach((function(n){(0,j.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var V={clone:"Clone repository",new_branch:"Create new branch",commit:"Commit & push",pull:"Pull",reset_hard:"Hard reset"};var J=function(e){var n,t=e.branch,r=(e.fetchBranch,(0,a.useState)()),o=r[0],c=r[1],l=(0,a.useState)(),u=l[0],d=l[1],h=(0,a.useState)(),p=h[0],v=h[1],m=(0,a.useState)(),g=m[0],b=m[1],j=(0,a.useState)(),D=j[0],H=j[1],I=(0,a.useState)(),E=I[0],T=I[1],Y=S.ZP.git_custom_branches.list(),J=Y.data,Q=Y.mutate,K=(0,a.useMemo)((function(){return null===J||void 0===J?void 0:J.git_custom_branches}),[J]),$=S.ZP.syncs.list().data,ee=(0,a.useMemo)((function(){var e;if($)return null===(e=$.syncs)||void 0===e?void 0:e[0]}),[$]),ne=(0,s.Db)(S.ZP.git_branches.useCreate(),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){Q(),window.location.reload()},onErrorCallback:function(e){var n=e.error.exception;H(n)}})}}),te=(0,i.Z)(ne,2),re=te[0],ie=te[1].isLoading,oe=(0,s.Db)((function(){return S.ZP.git_branches.useUpdate(t)({git_branch:{action_type:"status"}})}),{onSuccess:function(e){return(0,R.wD)(e,{onErrorCallback:function(e){var n=e.error.exception;H(n)}})}}),ce=(0,i.Z)(oe,1)[0],le=(0,s.Db)(S.ZP.git_branches.useUpdate(t),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){H(null),b("DONE")},onErrorCallback:function(e){var n=e.error.exception;H(n)}})}}),ae=(0,i.Z)(le,2),se=ae[0],ue=ae[1].isLoading,de=(0,s.Db)(S.ZP.git_branches.useUpdate(t),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){H(null),window.location.reload()},onErrorCallback:function(e){var n=e.error.exception;H(n)}})}}),he=(0,i.Z)(de,2),fe=he[0],pe=he[1].isLoading,ve=(0,a.useState)(),me=ve[0],ge=ve[1],xe=(0,a.useState)([]),be=xe[0],je=xe[1],ye=(0,a.useState)([]),we=ye[0],Ze=ye[1],ke=(0,a.useCallback)((function(){ce().then((function(e){var n=e.data,t=null===n||void 0===n?void 0:n.git_branch,r=null===t||void 0===t?void 0:t.status,i=null===t||void 0===t?void 0:t.modified_files,o=null===t||void 0===t?void 0:t.untracked_files;ge(r),je(o),Ze(i)}))}),[ce]),Ce=(0,a.useMemo)((function(){return ie||ue||pe}),[ie,ue,pe]);(0,a.useEffect)((function(){return ke()}),[p,ke]);var Oe=(0,a.useMemo)((function(){return(0,q.PR)()||{}}),[]),Pe=(0,a.useMemo)((function(){var e={term_name:null!==Oe&&void 0!==Oe&&Oe.id?"git_".concat(null===Oe||void 0===Oe?void 0:Oe.id):"git"};return null!==ee&&void 0!==ee&&ee.repo_path&&(e.cwd=null===ee||void 0===ee?void 0:ee.repo_path),e}),[null===ee||void 0===ee?void 0:ee.repo_path,Oe]),_e=(0,y.ZP)((0,U.Ib)("terminal"),{shouldReconnect:function(){return!0}},"cwd"in Pe),Me=_e.lastMessage,Fe=_e.sendMessage,Se=(0,a.useCallback)((function(e){return(0,X.jsx)(w.Z,{checked:((null===o||void 0===o?void 0:o.files)||[]).includes(e),label:(0,X.jsx)(P.ZP,{small:!0,children:e}),onClick:function(){c((function(n){var t=(null===n||void 0===n?void 0:n.files)||[];return t=t.includes(e)?(0,G.Od)(t,(function(n){return n===e})):[e].concat(t),W(W({},n),{},{files:t})}))},small:!0},e)}),[o]),ze=(0,a.useMemo)((function(){return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(f.ZP,{onClick:function(){return c((function(e){return W(W({},e),{},{files:we.concat(be)})}))},children:"Include all changes"}),we&&we.length>0&&(0,X.jsxs)(k.Z,{mb:1,children:[(0,X.jsx)(k.Z,{my:1,children:(0,X.jsx)(P.ZP,{children:"Modified files"})}),we.map(Se)]}),be&&be.length>0&&(0,X.jsxs)(k.Z,{mb:1,children:[(0,X.jsx)(k.Z,{my:1,children:(0,X.jsx)(P.ZP,{children:"Untracked files"})}),be.map(Se)]})]})}),[Se,we,be]),De=(0,a.useMemo)((function(){return(0,X.jsx)(k.Z,{p:2,children:Ce?(0,X.jsx)(C.Z,{color:"white"}):(0,X.jsxs)(X.Fragment,{children:["commit"===p&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(_.Z,{compact:!0,fullWidth:!0,label:"Commit message",monospace:!0,onChange:function(e){return c((function(n){return W(W({},n),{},{message:e.target.value})}))},required:!0,value:null===o||void 0===o?void 0:o.message}),(0,X.jsx)(k.Z,{mt:1}),(0,X.jsxs)(x.ZP,{children:[(0,X.jsx)(f.ZP,{borderLess:!0,onClick:function(){se({git_branch:W({action_type:"commit"},o)}).then((function(){ke(),c(null)}))},success:!0,children:"Commit"}),(0,X.jsx)(k.Z,{mr:1}),(0,X.jsx)(f.ZP,{borderLess:!0,onClick:function(){se({git_branch:{action_type:"push"}})},primary:!0,children:"Push"})]})]}),"new_branch"===p&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(M.Z,{compact:!0,fullWidth:!0,label:"Branch name",monospace:!0,onChange:function(e){return c({name:e.target.value})},value:null===o||void 0===o?void 0:o.name}),(0,X.jsx)(k.Z,{mt:1}),(0,X.jsx)(f.ZP,{borderLess:!0,onClick:function(){re({git_branch:o})},primary:!0,children:"Create"})]}),"clone"===p&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(P.ZP,{children:["Clone from ",(0,X.jsx)(P.ZP,{default:!0,inline:!0,children:null===ee||void 0===ee?void 0:ee.remote_repo_link})," to ",(0,X.jsx)(P.ZP,{default:!0,inline:!0,children:null===ee||void 0===ee?void 0:ee.repo_path}),". This ",(0,X.jsx)(P.ZP,{danger:!0,inline:!0,children:"will overwrite"})," any existing data in the local repository."]}),(0,X.jsx)(k.Z,{mt:1}),(0,X.jsx)(f.ZP,{borderLess:!0,onClick:function(){fe({git_branch:{action_type:"clone"}})},primary:!0,children:"Clone"})]}),"pull"===p&&(0,X.jsx)(f.ZP,{borderLess:!0,onClick:function(){fe({git_branch:{action_type:"pull"}})},primary:!0,children:"Pull"}),"reset_hard"===p&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(k.Z,{mb:1,children:(0,X.jsx)(P.ZP,{children:u||"This will reset your local branch to match the remote branch."})}),u?(0,X.jsx)(f.ZP,{borderLess:!0,onClick:function(){d(null),fe({git_branch:{action_type:"reset"}})},warning:!0,children:"Confirm"}):(0,X.jsx)(f.ZP,{borderLess:!0,onClick:function(){return d("Are you sure you want to reset your branch? Your local changes may be erased.")},primary:!0,children:"Reset branch"})]}),(0,X.jsx)(k.Z,{mt:1,children:!Ce&&(0,X.jsxs)(X.Fragment,{children:[!D&&g&&(0,X.jsx)(P.ZP,{children:g}),D&&(0,X.jsx)(P.ZP,{preWrap:!0,danger:!0,children:D})]})})]})})}),[Ce,p,D,ee,g,o,u,me]),He=(0,a.useMemo)((function(){return(0,X.jsx)(O.Z,{lastMessage:Me,sendMessage:Fe})}),[Me,Fe]);return(0,X.jsxs)(N,{children:[(0,X.jsxs)(L,{children:[(0,X.jsx)(k.Z,{m:2,children:(0,X.jsxs)(x.ZP,{children:[(0,X.jsx)(Z.Z,{beforeIcon:(0,X.jsx)(z.I0,{}),compact:!0,onChange:function(e){e.preventDefault(),re({git_branch:{name:e.target.value}})},placeholder:"Select a branch",value:t,children:null===K||void 0===K?void 0:K.map((function(e){var n=e.name;return(0,X.jsx)("option",{value:n,children:n},n)}))},"select_branch"),(0,X.jsx)(k.Z,{ml:2}),(0,X.jsxs)(Z.Z,{compact:!0,onChange:function(e){e.preventDefault(),v(e.target.value),T(!1),b(null),c(null)},value:p,children:[(0,X.jsx)("option",{value:"",children:"Select an action"}),Object.entries(V).map((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];return(0,X.jsx)("option",{value:t,children:r},t)}))]},"select_git_action")]})}),(0,X.jsx)(k.Z,{m:2,children:(0,X.jsxs)(x.ZP,{alignItems:"center",children:[(0,X.jsx)(P.ZP,{children:"UI"}),(0,X.jsx)(k.Z,{ml:1}),(0,X.jsx)(F.Z,{checked:!!E,monotone:!0,onCheck:function(){return T((function(e){return!e}))}}),(0,X.jsx)(k.Z,{ml:1}),(0,X.jsx)(P.ZP,{children:"Terminal"})]})})]}),(0,X.jsxs)(x.ZP,{children:[(0,X.jsx)("div",{style:{width:"50%"},children:(0,X.jsx)(B,{children:"commit"===p?ze:(0,X.jsx)(X.Fragment,{children:null===me||void 0===me||null===(n=me.split("\\n"))||void 0===n?void 0:n.map((function(e){return(0,X.jsx)(P.ZP,{monospace:!0,preWrap:!0,small:!0,children:e},e)}))})})}),(0,X.jsx)("div",{style:{width:"50%"},children:E?(0,X.jsx)(A,{children:He}):De})]})]})},Q=t(65186),K=t(93369),$=t(48670),ee=t(63637),ne=t(89515),te=t(26304),re="12px 20px",ie="1px",oe=(0,l.default)(f.ZP).withConfig({displayName:"indexstyle__ButtonStyle",componentId:"sc-hssntx-0"})(["",";"],(function(e){return e.active&&"\n background-color: ".concat((e.theme.background||D.Z.background).dashboard,";\n ")})),ce=l.default.div.withConfig({displayName:"indexstyle__DropdownContainerStyle",componentId:"sc-hssntx-1"})(["position:absolute;top:",";right:0;width:","px;display:flex;flex-direction:column;gap:",";overflow:hidden;background-color:",";border-radius:","px;border:1px solid ",";"],(function(e){return e.top||0}),45*T.iI,ie,(function(e){return(e.theme.borders||D.Z.borders).darkLight}),H.n_,(function(e){return(e.theme.borders||D.Z.borders).darkLight})),le=l.default.div.withConfig({displayName:"indexstyle__DropdownHeaderStyle",componentId:"sc-hssntx-2"})(["padding:",";background-color:",";"],re,(function(e){return(e.theme.background||D.Z.background).panel})),ae=l.default.div.withConfig({displayName:"indexstyle__TimeListContainerStyle",componentId:"sc-hssntx-3"})(["height:","px;display:flex;gap:",";"],20*T.iI,ie),se=l.default.div.withConfig({displayName:"indexstyle__TimeColumnStyle",componentId:"sc-hssntx-4"})(["display:flex;flex-direction:column;align-items:center;flex:1;gap:",";"],ie),ue=l.default.div.withConfig({displayName:"indexstyle__DropdownCellStyle",componentId:"sc-hssntx-5"})(["width:100%;padding:",";display:flex;flex-direction:",";flex-grow:",";justify-content:center;align-items:center;background-color:",";"],re,(function(e){return e.flexDirection||"unset"}),(function(e){return e.flexGrow||"unset"}),(function(e){return(e.theme.background||D.Z.background).dashboard})),de=l.default.div.withConfig({displayName:"indexstyle__ToggleGroupStyle",componentId:"sc-hssntx-6"})(["display:flex;flex-direction:column;"]),he=(0,l.default)(ue).withConfig({displayName:"indexstyle__ToggleDropdownCellStyle",componentId:"sc-hssntx-7"})(["justify-content:flex-start;gap:12px;padding-right:","px;"],1.25*T.iI),fe=["active","mountedCallback","time","timeZone"];function pe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ve(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pe(Object(t),!0).forEach((function(n){(0,j.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function me(e){var n=e.active,t=e.mountedCallback,r=e.time,i=e.timeZone,o=(0,te.Z)(e,fe),c=(0,a.useRef)(null);return(0,a.useEffect)((function(){null!==c&&void 0!==c&&c.current&&t(c.current.offsetHeight)}),[t]),(0,X.jsx)(oe,ve(ve({},o),{},{active:n,borderLess:!0,borderRadius:"".concat(H.BG,"px"),compact:!0,highlightOnHoverAlt:!0,ref:c,transparent:!0,children:(0,X.jsx)(P.ZP,{inline:!0,monospace:!0,small:!0,children:"".concat(r," ").concat(i)})}))}var ge=(0,a.memo)(me),xe=t(12468),be=t(63055),je=t(82359),ye=t(72191),we=t(70320),Ze=t(79633),ke=t(3917),Ce=t(78419),Oe=t(53808);var Pe=t(23780);function _e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Me(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_e(Object(t),!0).forEach((function(n){(0,j.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_e(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Fe=[ke.Oh.UTC,ke.Oh.LOCAL];var Se=function(e){var n=e.projectName,t=(0,a.useState)((0,we.qB)()),r=t[0],o=t[1],c=(0,a.useState)((0,Oe.U2)(Ce.kL,!1)),l=c[0],u=c[1],d=(0,a.useState)(!1),h=d[0],f=d[1],p=(0,a.useState)((0,ke.e)({includeSeconds:!0,timeZones:Fe})),m=p[0],g=p[1],x=(0,a.useState)(0),b=x[0],y=x[1],w=r?ke.Oh.LOCAL:ke.Oh.UTC,Z=window.innerWidth<be.nc,k=(0,Pe.VI)(null,{},[],{uuid:"components/ServerTimeDropdown"}),C=(0,i.Z)(k,1)[0],O=(0,s.Db)(S.ZP.projects.useUpdate(n),{onSuccess:function(e){return(0,R.wD)(e,{onErrorCallback:function(e,n){return C({errors:n,response:e})}})}}),_=(0,i.Z)(O,1)[0],M=(0,a.useCallback)((function(){f((function(e){return!e}))}),[]),z=(0,a.useCallback)((function(e){y(e)}),[]),D=(0,a.useCallback)((function(){var e=(0,ke.e)({includeSeconds:l,timeZones:Fe});g((function(n){return n.size===e.size&&n.get(ke.Oh.UTC)===e.get(ke.Oh.UTC)?n:e}))}),[l]),H=[{checked:r,label:"Display local timezone (requires refresh)",onCheck:function(){var e=!r;o((0,we.hY)(e)),_({project:{features:(0,j.Z)({},je.d.LOCAL_TIMEZONE,e)}})},uuid:je.d.LOCAL_TIMEZONE},{checked:l,label:"Include seconds in current time",onCheck:function(){var e;u((e=!l,(0,Oe.uN)(Ce.kL,e)))},uuid:"current_time_seconds"}];return(0,a.useEffect)((function(){var e=setInterval((function(){D()}),1e3);return function(){return clearInterval(e)}}),[D]),(0,a.useEffect)((function(){D()}),[l,D]),m?(0,X.jsx)(v.Z,{onClickOutside:function(){return f(!1)},open:!0,children:(0,X.jsxs)("div",{style:{position:"relative"},children:[(0,X.jsx)(ge,{active:h,disabled:Z,mountedCallback:z,onClick:M,time:m.get(w),timeZone:(0,ke.WT)(w)}),!Z&&h&&(0,X.jsxs)(ce,{top:b,children:[(0,X.jsx)(le,{children:(0,X.jsx)(P.ZP,{bold:!0,muted:!0,uppercase:!0,children:"Current Time"})}),(0,X.jsx)(ae,{children:Fe.map((function(e){return(0,X.jsxs)(se,{children:[(0,X.jsx)(ue,{children:(0,X.jsx)(P.ZP,{bold:!0,center:!0,muted:!0,uppercase:!0,children:"".concat(e).concat(e===ke.Oh.LOCAL?" - ".concat((0,ke.WT)(e)):"")})}),(0,X.jsxs)(ue,{flexDirection:"column",flexGrow:3,children:[(0,X.jsx)(P.ZP,{bold:!0,center:!0,color:Ze.J$,largeLg:!0,children:m.get(e)}),(0,X.jsx)(P.ZP,{center:!0,muted:!0,small:!0,children:e===ke.Oh.UTC?"Universal Time":ke.mi[e]})]})]},e)}))}),(0,X.jsx)(de,{children:H.map((function(e){return(0,X.jsxs)(he,{children:[(0,X.jsx)(F.Z,{checked:e.checked,compact:!0,onCheck:e.onCheck,purpleBackground:!0}),(0,X.jsx)(P.ZP,{children:e.label}),e.uuid===je.d.LOCAL_TIMEZONE&&(0,X.jsx)(xe.Z,Me(Me({},we.EB),{},{appearAbove:!0,appearBefore:!0,size:ye.bL}))]},e.label)}))})]})]})}):null},ze=t(58401),De=t(77417),He=t(46684),Ie=t(87848),Ee=t(95363),Te=t(69419),Le=t(89538);var Ae=function(e){var n,t=e.breadcrumbs,o=e.menuItems,j=e.project,y=e.version,w=(0,Pe.VI)(null,{},[],{uuid:"shared/Header"}),Z=(0,i.Z)(w,1)[0],C=(0,a.useContext)(l.ThemeContext),O=(0,q.PR)(),_=(0,a.useState)(!1),M=_[0],F=_[1],D=(0,a.useState)(null),H=D[0],I=D[1],E=(0,a.useState)(!1),L=E[0],A=E[1],N=(0,a.useState)(null),B=N[0],U=N[1],G=(0,a.useRef)(null),Y=(0,a.useRef)(null),W=(0,u.useRouter)(),V=d.Z.isLoggedIn(),te=S.ZP.git_branches.detail("test",{_format:"with_basic_details"},{revalidateOnFocus:!1},{pauseFetch:(0,q.YB)()&&!V}),re=te.data,ie=te.mutate,oe=(0,a.useMemo)((function(){return(null===re||void 0===re?void 0:re.git_branch)||{}}),[re]),ce=oe.is_git_integration_enabled,le=oe.name,ae=(0,ze.Z)().design,se=(0,De.Z)(),ue=se.project,de=se.rootProject,he=(0,a.useMemo)((function(){return j||ue}),[ue,j]),fe=(0,a.useMemo)((function(){return y||(null===he||void 0===he?void 0:he.version)}),[he,y]),pe=(0,s.Db)(S.ZP.projects.useUpdate(null===he||void 0===he?void 0:he.name),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){window.location.reload()},onErrorCallback:function(e,n){return Z({errors:n,response:e})}})}}),ve=(0,i.Z)(pe,2),me=ve[0],ge=ve[1].isLoading,xe=[];if(de&&xe.push({label:function(){return null===de||void 0===de?void 0:de.name},linkProps:{href:"/"}}),he){var be={label:function(){return null===he||void 0===he?void 0:he.name}};de?(be.loading=ge,be.options=Object.keys((null===de||void 0===de?void 0:de.projects)||{}).map((function(e){return{onClick:function(){me({project:{activate_project:e}})},selected:e===(null===he||void 0===he?void 0:he.name),uuid:e}}))):be.linkProps={href:"/"},xe.push(be)}var je=(0,a.useMemo)((function(){return[].concat(xe,(0,r.Z)(t||[]))}),[xe,t,he]),ye=W.query.pipeline,we=(he||{}).latest_version,ke=(0,a.useState)(null),Ce=ke[0],Oe=ke[1],_e=((0,a.useMemo)((function(){var e,n,t=null===ae||void 0===ae||null===(e=ae.components)||void 0===e||null===(n=e.header)||void 0===n?void 0:n.media,r=new Image;return r.src=(null===t||void 0===t?void 0:t.url)||(null===t||void 0===t?void 0:t.file_path),r.onload=function(){Oe(r)},r}),[ae,Oe]),(0,a.useMemo)((function(){var e,n,t=He.y7,r=(0,X.jsx)(Q.Z,{height:He.y7});if(null!==ae&&void 0!==ae&&null!==(e=ae.components)&&void 0!==e&&null!==(n=e.header)&&void 0!==n&&n.media){var i,o,l=null===ae||void 0===ae||null===(i=ae.components)||void 0===i||null===(o=i.header)||void 0===o?void 0:o.media;if(null!==Ce){var a=((null===Ce||void 0===Ce?void 0:Ce.width)||1)/((null===Ce||void 0===Ce?void 0:Ce.height)||1);t=He.sQ,r=(0,X.jsx)(He.XD,{height:He.sQ,width:He.sQ*a,url:(null===l||void 0===l?void 0:l.url)||(null===l||void 0===l?void 0:l.file_path)})}}return(0,X.jsx)(c(),{as:"/",href:"/",passHref:!0,children:(0,X.jsx)($.Z,{block:!0,height:t,noHoverUnderline:!0,noOutline:!0,children:r})})}),[Ce,ae])),Me=[{label:function(){return"Settings"},linkProps:{href:"/settings/workspace/preferences"},uuid:"user_settings"}];(0,q.YB)()&&Me.push({label:function(){return"Sign out"},onClick:function(){d.Z.logout((function(){S.ZP.sessions.updateAsync(null,1).then((function(){(0,Te.nL)("/sign-in")})).catch((function(){(0,Te.nL)("/")}))}))},uuid:"sign_out"});var Fe=(0,Le.dd)((function(){return(0,X.jsx)(J,{branch:le,fetchBranch:ie})}),{},[le,ie],{background:!0,uuid:"git_actions"}),Ae=(0,i.Z)(Fe,2),Ne=Ae[0],Be=(Ae[1],(0,a.useMemo)((function(){return(null===le||void 0===le?void 0:le.length)>=21?"".concat(le.slice(0,21),"..."):le}),[le])),Ue=(0,a.useMemo)((function(){return!(!O||null===O||void 0===O||!O.avatar)&&!/[A-Za-z0-9]+/.exec((null===O||void 0===O?void 0:O.avatar)||"")}),[O]),Re=(0,a.useMemo)((function(){return!(!O||null===O||void 0===O||!O.avatar)&&!!/[A-Za-z0-9]+/.exec((null===O||void 0===O?void 0:O.avatar)||"")}),[O]),Ge=(0,a.useMemo)((function(){var e;if(!O||null===O||void 0===O||!O.avatar)return(0,X.jsx)(ee.Z,{});var n={color:null===C||void 0===C||null===(e=C.content)||void 0===e?void 0:e.active,fontFamily:Ee.v$};return Re?(n.fontSize=2*T.iI,n.lineHeight="".concat(2*T.iI,"px"),n.position="relative",n.top=1):n.fontSize=3*T.iI,(0,X.jsx)("div",{style:n,children:null===O||void 0===O?void 0:O.avatar})}),[Re,O]);return(0,X.jsx)(He.I5,{children:(0,X.jsx)(m.Z,{children:(0,X.jsxs)(x.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"space-between",children:[(0,X.jsxs)(g.Z,{alignItems:"center",children:[_e,(0,X.jsx)(h.Z,{breadcrumbs:je})]}),(0,X.jsxs)(g.Z,{alignItems:"center",children:[ce&&le&&(0,X.jsx)(k.Z,{ml:1,children:(0,X.jsx)(K.ZP,{compact:!0,highlightOnHoverAlt:!0,noBackground:!0,noHoverUnderline:!0,onClick:Ne,sameColorAsText:!0,title:le,uuid:"Header/GitActions",children:(0,X.jsxs)(x.ZP,{alignItems:"center",children:[(0,X.jsx)(z.I0,{size:1.5*T.iI}),(0,X.jsx)(k.Z,{ml:1}),(0,X.jsx)(P.ZP,{monospace:!0,small:!0,children:Be})]})})}),(0,X.jsx)(k.Z,{ml:1,children:(0,X.jsx)(Se,{projectName:null===he||void 0===he?void 0:he.name})}),fe&&"undefined"!==typeof fe&&(0,X.jsx)(k.Z,{ml:2,children:(0,X.jsx)($.Z,{href:"https://www.mage.ai/changelog",monospace:!0,openNewWindow:!0,sameColorAsText:!0,small:!0,children:"v".concat(fe)})}),we&&fe&&we!==fe&&(0,X.jsx)(k.Z,{ml:1,children:(0,X.jsx)(f.ZP,{backgroundColor:Ze.$R,borderLess:!0,compact:!0,linkProps:{href:"https://docs.mage.ai/about/releases"},noHoverUnderline:!0,pill:!0,sameColorAsText:!0,target:"_blank",title:"Update to version ".concat(we),children:(0,X.jsx)(P.ZP,{black:!0,bold:!0,children:"Update"})})}),(0,X.jsx)(k.Z,{ml:3,children:(0,X.jsx)(K.ZP,{beforeElement:(0,X.jsx)(z.jR,{}),compact:!0,highlightOnHoverAlt:!0,inline:!0,linkProps:{as:"https://www.mage.ai/chat",href:"https://www.mage.ai/chat"},noBackground:!0,noHoverUnderline:!0,openNewTab:!0,sameColorAsText:!0,uuid:"Header/live_chat",children:"Live help"})}),o&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(k.Z,{ml:2}),(0,X.jsx)(v.Z,{onClickOutside:function(){return I(null)},open:!0,style:{position:"relative"},children:(0,X.jsxs)(x.ZP,{children:[(0,X.jsx)(Ie.u,{highlighted:0===H,onClick:function(){return I((function(e){return 0===e?null:0}))},onMouseEnter:function(){return I((function(e){return null!==e?0:null}))},ref:G,children:(0,X.jsx)(P.ZP,{children:"Menu"})}),(0,X.jsx)(b.Z,{alternateBackground:!0,items:o,onClickCallback:function(){return I(null)},open:0===H,parentRef:G,rightOffset:0,setConfirmationAction:U,setConfirmationDialogueOpen:A,uuid:"PipelineDetail/Header/menu"})]})}),(0,X.jsx)(v.Z,{onClickOutside:function(){return A(!1)},open:L,children:(0,X.jsx)(ne.Z,{danger:!0,onCancel:function(){return A(!1)},onClick:B,right:16*T.iI,subtitle:"This is irreversible and will immediately delete everything associated with the pipeline, including its blocks, triggers, runs, logs, and history.",title:"Are you sure you want to delete the pipeline ".concat(ye,"?"),width:40*T.iI})})]}),(V||!(0,q.YB)())&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(k.Z,{ml:2}),(0,X.jsx)(v.Z,{onClickOutside:function(){return F(!1)},open:!0,style:{position:"relative"},children:(0,X.jsxs)(x.ZP,{alignItems:"center",flexDirection:"row",children:[(0,X.jsx)(Ie.u,{onClick:function(){return F(!0)},ref:Y,children:Ue&&(null===O||void 0===O||null===(n=O.avatar)||void 0===n?void 0:n.length)>=2?Ge:(0,X.jsx)(p.Z,{color:Ze.Jm,size:4*T.iI,children:Ge})}),(0,X.jsx)(b.Z,{alternateBackground:!0,items:Me,onClickCallback:function(){return F(!1)},open:M,parentRef:Y,rightOffset:0,uuid:"shared/Header/user_menu"})]})})]})]})]})})})}},48339:function(e,n,t){var r,i;t.d(n,{Gi:function(){return i},jU:function(){return c},uF:function(){return r}}),function(e){e.BUSY="busy",e.IDLE="idle",e.QUEUED="queued"}(r||(r={})),function(e){e.IMAGE_PNG="image/png",e.PROGRESS="progress",e.TABLE="table",e.TEXT="text",e.TEXT_HTML="text/html",e.TEXT_PLAIN="text/plain"}(i||(i={}));var o,c=[i.TEXT,i.TEXT_PLAIN];!function(e){e.DISPLAY_DATA="display_data",e.STATUS="status",e.STREAM="stream",e.STREAM_PIPELINE="stream_pipeline"}(o||(o={}))},89515:function(e,n,t){t.d(n,{Z:function(){return m}});var r=t(71180),i=t(55485),o=t(38626),c=t(44897),l=t(42631),a=t(31353),s=t(70515),u=t(28598),d=o.default.div.withConfig({displayName:"PopupMenuContainer__ContainerStyle",componentId:"sc-lq9od4-0"})(["border-radius:","px;padding:","px;position:absolute;z-index:",";cursor:default;"," "," "," "," "," "," "," "," ",""],l.TR,2*s.iI,a.bf+100,(function(e){return"\n background-color: ".concat((e.theme.interactive||c.Z.interactive).defaultBackground,";\n box-shadow: ").concat((e.theme.shadow||c.Z.shadow).window,";\n ")}),(function(e){return"undefined"!==typeof e.left&&"\n left: ".concat(e.left,"px;\n ")}),(function(e){return"undefined"!==typeof e.right&&"\n right: ".concat(e.right,"px;\n ")}),(function(e){return"undefined"!==typeof e.top&&"\n top: ".concat(e.top,"px;\n ")}),(function(e){return"undefined"!==typeof e.bottom&&"\n bottom: ".concat(e.bottom,"px;\n ")}),(function(e){return"undefined"===typeof e.top&&"undefined"===typeof e.bottom&&"\n top: ".concat(a.Mz-1*s.iI,"px;\n ")}),(function(e){return e.centerOnScreen&&"\n top: 40%;\n left: 50%;\n transform: translate(-50%,-50%);\n "}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}),(function(e){return!e.width&&"\n min-width: ".concat(33*s.iI,"px;\n ")}));var h=function(e){var n=e.bottom,t=e.centerOnScreen,r=e.children,i=e.left,o=e.right,c=e.top,l=e.width;return(0,u.jsx)(d,{bottom:n,centerOnScreen:t,left:i,right:o,top:c,width:l,children:r})},f=t(38276),p=t(30160),v=32*s.iI;var m=function(e){var n=e.bottom,t=e.cancelText,o=e.centerOnScreen,c=e.confirmText,l=e.danger,a=e.left,s=e.isLoading,d=e.neutral,m=e.onCancel,g=e.onClick,x=e.right,b=e.subtitle,j=e.title,y=e.top,w=e.width;return(0,u.jsxs)(h,{bottom:n,centerOnScreen:o,left:a,right:x,top:y,width:w||v,children:[(0,u.jsxs)(i.ZP,{alignItems:"center",flexDirection:"column",children:[(0,u.jsx)(f.Z,{pb:1,children:(0,u.jsx)(p.ZP,{bold:!0,danger:l,large:!0,warning:!l,whiteSpaceNormal:!0,children:j})}),(0,u.jsx)(p.ZP,{small:!0,children:b})]}),(0,u.jsx)(f.Z,{mt:2,children:(0,u.jsxs)(i.ZP,{alignItems:"center",justifyContent:"center",children:[m&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(r.ZP,{onClick:m,children:t||"Cancel"}),(0,u.jsx)(f.Z,{mr:1})]}),(0,u.jsx)(r.ZP,{loading:s,onClick:g,children:(0,u.jsx)(p.ZP,{bold:!0,danger:l,success:!l&&!d,children:c||"Confirm"})})]})})]})}},70652:function(e,n,t){var r=t(21831),i=t(82394),o=t(26304),c=(t(82684),t(38626)),l=t(55485),a=t(38276),s=t(30160),u=t(44897),d=t(72473),h=t(42631),f=t(70515),p=t(28598),v=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];function m(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?m(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var x=c.default.div.withConfig({displayName:"Checkbox__CheckboxContainer",componentId:"sc-ujqx42-0"})(["display:inline-block;vertical-align:middle;cursor:pointer;"]),b=c.default.div.withConfig({displayName:"Checkbox__ErrorContainer",componentId:"sc-ujqx42-1"})(["margin-top:4px;"]),j=c.default.input.withConfig({displayName:"Checkbox__HiddenCheckbox",componentId:"sc-ujqx42-2"})(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;",""],(function(e){return e.notClickable&&"\n background-color: ".concat((e.theme.content||u.Z.content).disabled,"\n border-color: ").concat((e.theme.content||u.Z.content).disabled,"\n\n &:hover {\n cursor: not-allowed;\n }\n ")})),y=c.default.div.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-ujqx42-3"})(["border-radius:","px;height:","px;transition:all 150ms;width:","px;svg{position:relative;visibility:",";}"," "," "," "," input[disabled]{cursor:default;}"," ",""],.5*f.iI,2*f.iI,2*f.iI,(function(e){return e.checked||e.required?"visible":"hidden"}),(function(e){return e.large&&"\n svg {\n left: -4px;\n top: -8px;\n }\n "}),(function(e){return!e.checked&&"\n background-color: ".concat((e.theme.background||u.Z.background).popup,";\n border: ").concat(h.PV,"px ").concat(h.M8," ").concat((e.theme.content||u.Z.content).muted,";\n ")}),(function(e){return e.checked&&"\n background-color: ".concat((e.theme.interactive||u.Z.interactive).checked,";\n border: ").concat(h.YF,"px ").concat(h.M8," transparent;\n ")}),(function(e){return e.required&&"\n background-color: ".concat((e.theme.content||u.Z.content).disabled,";\n border: ").concat(h.YF,"px ").concat(h.M8," transparent;\n ")}),(function(e){return e.disabled&&"\n background-color: ".concat((e.theme.content||u.Z.content).disabled,";\n border-color: ").concat((e.theme.content||u.Z.content).disabled,";\n\n &:hover {\n cursor: not-allowed;\n }\n ")}),(function(e){return e.warning&&"\n background-color: ".concat((e.theme.accent||u.Z.accent).warning,";\n border-color: ").concat((e.theme.interactive||u.Z.interactive).defaultBorder,"\n ")})),w=c.default.label.withConfig({displayName:"Checkbox__LabelStyle",componentId:"sc-ujqx42-4"})(["-ms-flex-direction:column;align-items:center;display:flex;flex-direction:column;flex-direction:row;&:hover{cursor:pointer;}"]);n.Z=function(e){var n=e.beforeIcon,t=e.checked,i=e.disabled,c=e.errorMessage,u=e.label,h=e.labelDescription,m=e.large,Z=e.meta,k=e.monospace,C=void 0!==k&&k,O=e.onClick,P=e.required,_=e.small,M=void 0!==_&&_,F=e.warning,S=e.xsmall,z=void 0!==S&&S,D=(0,o.Z)(e,v),H=F||!!(c||Z&&Z.touched&&Z.error);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(w,{onClick:function(e){e.preventDefault(),O&&!i&&O(e)},children:[(0,p.jsxs)(x,{children:[(0,p.jsx)(j,g(g({},D),{},{disabled:i?"disabled":void 0,notClickable:i})),(0,p.jsx)(y,{checked:t,disabled:i,large:m,required:P,warning:H,children:(0,p.jsx)(d.Jr,{size:f.iI*(m?3:2)})})]}),n&&(0,p.jsx)(a.Z,{ml:1,children:(0,p.jsx)(l.ZP,{children:n})}),u&&(0,p.jsxs)(a.Z,{pl:1,children:["string"===typeof u&&(0,p.jsx)(s.ZP,{disabled:i,lineThrough:i,monospace:C,small:M,xsmall:z,children:u}),"string"!==typeof u&&u,h&&(0,p.jsx)(s.ZP,{muted:!0,small:!0,children:h})]})]}),(c||Z&&Z.touched&&Z.error)&&(0,p.jsx)(b,{children:(0,p.jsx)(s.ZP,{small:!0,warning:!0,children:c?(0,r.Z)(c):Z.error})})]})}},39867:function(e,n,t){var r=t(82394),i=t(26304),o=t(38626),c=t(97618),l=t(55485),a=t(44897),s=t(42631),u=t(70515),d=t(28598),h=["children"];function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var v=o.default.div.withConfig({displayName:"Circle__CircleStyle",componentId:"sc-1o70504-0"})([""," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ",""],(function(e){return!e.square&&"\n border-radius: 50%;\n "}),(function(e){return e.square&&"\n border-radius: ".concat(e.size>=2*u.iI?s.BG:2,"px;\n ")}),(function(e){return!e.color&&!(e.borderSize||e.borderColor)&&"\n background-color: ".concat((e.theme.content||a.Z.content).muted,";\n ")}),(function(e){return!e.color&&e.primary&&"\n background-color: ".concat((e.theme.interactive||a.Z.interactive).linkPrimary,";\n ")}),(function(e){return!e.color&&e.primaryLight&&"\n background-color: ".concat((e.theme.interactive||a.Z.interactive).linkPrimaryLight,";\n ")}),(function(e){return e.success&&!e.borderSize&&"\n background-color: ".concat((e.theme.status||a.Z.status).positive,";\n ")}),(function(e){return e.warning&&!e.borderSize&&"\n background-color: ".concat((e.theme.accent||a.Z.accent).warning,";\n ")}),(function(e){return e.success&&e.borderSize&&"\n border-color: ".concat((e.theme.status||a.Z.status).positive," !important;\n ")}),(function(e){return e.warning&&e.borderSize&&"\n border-color: ".concat((e.theme.accent||a.Z.accent).warning," !important;\n ")}),(function(e){return e.borderSize&&"\n border-style: solid;\n border-width: ".concat(e.borderSize,"px;\n ")}),(function(e){return(e.borderSize||e.borderColor)&&"\n border: ".concat(e.borderSize||1,"px solid ").concat(e.borderColor||(e.theme.content||a.Z.content).active,";\n ")}),(function(e){return e.color&&"\n background-color: ".concat(e.color,";\n ")}),(function(e){return e.size&&"\n height: ".concat(e.size,"px;\n width: ").concat(e.size,"px;\n ")}),(function(e){return e.danger&&"\n background-color: ".concat((e.theme.borders||a.Z.borders).danger,";\n ")}),(function(e){return e.muted&&"\n border-color: ".concat((e.theme.content||a.Z.content).muted,";\n ")}),(function(e){return e.default&&"\n border-color: ".concat((e.theme.monotone||a.Z.monotone).gray,";\n ")}));n.Z=function(e){var n=e.children,t=(0,i.Z)(e,h);return(0,d.jsx)(v,p(p({},t),{},{children:(0,d.jsx)(l.ZP,{alignItems:"center",fullHeight:!0,fullWidth:!0,justifyContent:"center",children:n&&(0,d.jsx)(c.Z,{children:n})})}))}},35576:function(e,n,t){var r=t(82394),i=t(26304),o=t(82684),c=t(38626),l=t(28968),a=t(28598),s=["rows"];function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,r.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}var h=c.default.textarea.withConfig({displayName:"TextArea__TextInputStyle",componentId:"sc-112wx63-0"})(["",""],l.p),f=function(e,n){var t=e.rows,r=void 0===t?3:t,o=(0,i.Z)(e,s);return(0,a.jsx)(l.Z,d(d({},o),{},{input:(0,a.jsx)(h,d({rows:r},o)),ref:n}))};n.Z=o.forwardRef(f)},69650:function(e,n,t){var r=t(82394),i=t(26304),o=t(82684),c=t(38626),l=t(28968),a=t(44897),s=t(95924),u=t(28598),d=["checked","disabled","onCheck","pauseEvent"];function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function f(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,r.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 p=c.default.label.withConfig({displayName:"ToggleSwitch__ToggleSwitchStyle",componentId:"sc-179r5zs-0"})([""," position:relative;display:inline-block;width:","px;min-width:","px;height:","px;",' & input[type="checkbox"]{display:none;}& span{position:absolute;cursor:',";background-color:",";border-radius:13px;",';top:0;right:0;bottom:0;left:0;transition:background-color 0.2s ease;}& span::before{position:absolute;content:"";left:',"px;top:","px;width:","px;height:",'px;background-color:#787A85;border-radius:50%;transition:transform 0.3s ease;}& input[type="checkbox"]:checked + span::before{transform:',";}"," ",""],l.p,46,46,26,(function(e){return e.compact&&"\n width: ".concat(35,"px;\n min-width: ").concat(35,"px;\n height: ").concat(20,"px;\n ")}),(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.disabled?a.Z.monotone.white:a.Z.monotone.black}),(function(e){return e.disabled&&"border: 1px solid ".concat(a.Z.monotone.grey200)}),(function(e){return e.compact?"1":"2"}),(function(e){return e.compact?"1":"2"}),(function(e){return e.compact?"18":"22"}),(function(e){return e.compact?"18":"22"}),(function(e){return e.compact?"translateX(15px)":"translateX(20px)"}),(function(e){return!e.disabled&&!e.monotone&&'\n & input[type="checkbox"]:checked + span {\n background-color: '.concat(a.Z.accent.sky,';\n }\n\n & input[type="checkbox"]:checked + span::before {\n background-color: ').concat(a.Z.monotone.white,";\n }\n ")}),(function(e){return e.purpleBackground&&'\n & input[type="checkbox"]:checked + span {\n background-color: '.concat(a.Z.interactive.purple,";\n }\n ")})),v=function(e,n){var t=e.checked,r=e.disabled,o=e.onCheck,c=e.pauseEvent,a=void 0===c||c,h=(0,i.Z)(e,d);return(0,u.jsx)(l.Z,f(f({},h),{},{disabled:r,input:(0,u.jsxs)(p,f(f({},h),{},{disabled:r,noBackground:!0,noBorder:!0,children:[(0,u.jsx)("input",{checked:t,readOnly:!0,type:"checkbox"}),(0,u.jsx)("span",{onClick:r?null:function(e){a&&(0,s.j)(e),null===o||void 0===o||o((function(e){return!e}))}})]})),noBackground:!0,ref:n}))};n.Z=o.forwardRef(v)},65186:function(e,n,t){var r=t(28598),i=18.53/14;n.Z=function(e){var n=e.height,t=e.width,o=n||(t?t*(1/i):14),c=t||(n?n*i:18.53);return(0,r.jsxs)("svg",{width:c,height:o,viewBox:"0 0 20 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{opacity:"0.4",d:"M15.3266 0L19.2641 1.82961e-06L11.9687 14L8.03125 14L15.3266 0Z",fill:"url(#paint0_linear_1303_5)"}),(0,r.jsx)("path",{d:"M11.9692 1.82961e-06L8.03164 0L0.736328 14L4.67383 14L8.03164 7.55626V14H11.9691V8.38194e-05L11.9692 1.82961e-06Z",fill:"url(#paint1_linear_1303_5)"}),(0,r.jsx)("path",{d:"M15.3269 2.57679e-06H19.2644V14H15.3269V2.57679e-06Z",fill:"url(#paint2_linear_1303_5)"}),(0,r.jsxs)("defs",{children:[(0,r.jsxs)("linearGradient",{id:"paint0_linear_1303_5",x1:"8.03125",y1:"7",x2:"19.2641",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,r.jsxs)("linearGradient",{id:"paint1_linear_1303_5",x1:"0.736328",y1:"7",x2:"19.2644",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,r.jsxs)("linearGradient",{id:"paint2_linear_1303_5",x1:"0.736328",y1:"7",x2:"19.2644",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})]})]})}},63637:function(e,n,t){var r=t(38626),i=t(28598),o=r.default.svg.withConfig({displayName:"Mage8Bit__SVGStyle",componentId:"sc-cj6ltf-0"})([""]);n.Z=function(e){var n=e.size,t=void 0===n?20:n,r=e.viewBox,c=void 0===r?"0 0 20 20":r;return(0,i.jsxs)(o,{height:t,viewBox:c,width:t,children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_297_42814)",children:[(0,i.jsx)("path",{d:"M13.334 0h1.66667v1.66667H13.334zM11.666 1.6665h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 1.6665h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M8.33398 1.6665h1.66667v1.66667H8.33398z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M8.33398 3.3335h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 3.3335h1.66667v1.66667H6.66602z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M3.33398 5h1.66667v1.66667H3.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M5 5h1.66667v1.66667H5z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 5h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 5h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 8.3335h1.66667v1.66667H6.66602z",fill:"#000"}),(0,i.jsx)("path",{d:"M6.66602 6.6665h1.66667v1.66667H6.66602z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M6.66602 10h1.66667v1.66667H6.66602z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M8.33398 6.6665h1.66667v1.66667H8.33398z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M1.66602 13.3335h1.66667v1.66667H1.66602z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M1.66602 11.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 10h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 8.3335h1.66667v1.66667H1.66602zM1.66602 6.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 6.6665h1.66667v1.66667H1.66602zM0 0h1.66667v1.66667H0zM3.33398 1.6665h1.66667v1.66667H3.33398zM0 3.3335h1.66667v1.66667H0z",fill:"#2ECDF7"}),(0,i.jsx)("path",{d:"M1.66602 16.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 16.6665h1.66667v1.66667H1.66602zM1.66602 18.3335h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 15h1.66667v1.66667H1.66602zM3.33398 15h1.66667v1.66667H3.33398z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M3.33398 16.6665h1.66667v1.66667H3.33398z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M3.33398 13.3335h1.66667v1.66667H3.33398z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M8.33398 8.3335h1.66667v1.66667H8.33398z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M10 6.6665h1.66667v1.66667H10z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M10 10h1.66667v1.66667H10z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M11.666 6.6665h1.66667v1.66667H11.666z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M11.666 8.3335h1.66667v1.66667H11.666z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M8.33398 10h1.66667v1.66667H8.33398z",fill:"#FF8DA9"}),(0,i.jsx)("path",{d:"M8.33398 11.6665h1.66667v1.66667H8.33398z",fill:"#FF8DA9"}),(0,i.jsx)("path",{d:"M6.66602 11.6665h1.66667v1.66667H6.66602z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M6.66602 11.6665h1.66667v1.66667H6.66602z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M5 10h1.66667v1.66667H5z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M5 8.3335h1.66667v1.66667H5z",fill:"#232429"}),(0,i.jsx)("path",{d:"M8.33398 11.6665h1.66667v1.66667H8.33398zM8.33398 13.3335h1.66667v1.66667H8.33398z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M10 11.6665h1.66667v1.66667H10z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M11.666 10h1.66667v1.66667H11.666zM13.334 6.6665h1.66667v1.66667H13.334zM13.334 8.3335h1.66667v1.66667H13.334z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M15 8.3335h1.66667v1.66667H15z",fill:"#757575"}),(0,i.jsx)("path",{d:"M15 10h1.66667v1.66667H15z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M10 8.3335h1.66667v1.66667H10z",fill:"#000"}),(0,i.jsx)("path",{d:"M8.33398 5h1.66667v1.66667H8.33398zM11.666 5h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M13.334 10h1.66667v1.66667H13.334zM11.666 11.6665h1.66667v1.66667H11.666zM10 13.3335h1.66667v1.66667H10z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M8.33398 15h1.66667v1.66667H8.33398zM6.66602 13.3335h1.66667v1.66667H6.66602zM15 11.6665h1.66667v1.66667H15z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M16.666 11.6665h1.66667v1.66667H16.666zM16.666 13.3335h1.66667v1.66667H16.666z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M15 13.3335h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M13.334 13.3335h1.66667v1.66667H13.334zM13.334 11.6665h1.66667v1.66667H13.334zM11.666 13.3335h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 15h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 15h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M8.33398 16.6665h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 15h1.66667v1.66667H6.66602z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M6.66602 16.6665h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M5 16.6665h1.66667v1.66667H5z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M5 18.3335h1.66667v1.66667H5z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 18.3335h1.66667v1.66667H6.66602zM8.33398 18.3335h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 18.3335h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 18.3335h1.66667v1.66667H11.666zM13.334 18.3335h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 18.3335h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M16.666 18.3335h1.66667v1.66667H16.666z",fill:"#652EFF"}),(0,i.jsx)("path",{d:"M3.33398 18.3335h1.66667v1.66667H3.33398zM10 16.6665h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 16.6665h1.66667v1.66667H11.666zM13.334 15h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M13.334 16.6665h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 16.6665h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 15h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M16.666 15h1.66667v1.66667H16.666zM18.334 16.6665h1.66667v1.66667H18.334zM18.334 18.3335h1.66667v1.66667H18.334z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M16.666 16.6665h1.66667v1.66667H16.666z",fill:"#652EFF"}),(0,i.jsx)("path",{d:"M13.334 5h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 5h1.66667v1.66667H15zM10 5h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 3.3335h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 3.3335h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 0h1.66667v1.66667H11.666z",fill:"#AF93FF"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_297_42814",children:(0,i.jsx)("path",{d:"M0 0h20v20H0z",fill:"#fff"})})})]})}},72191:function(e,n,t){t.d(n,{_k:function(){return o},bL:function(){return i},l2:function(){return c},nz:function(){return l}});var r=t(70515),i=(r.iI,2*r.iI),o=2.5*r.iI,c=3*r.iI,l=3.5*r.iI},42041:function(e,n,t){t.d(n,{y:function(){return o}});var r=t(75582),i=t(39643);function o(e,n){var t=e.map((function(e){return String(e)})),o=e.includes(i.PQ),c=e.includes(i.zX),l=e.includes(i.XR),a=i.xU.map((function(e){return String(e)})),s=i.vk.map((function(e){return String(e)})),u=i.Tr.map((function(e){return String(e)})),d=Object.entries(n).find((function(e){var n=(0,r.Z)(e,2),i=n[0];return n[1]&&!t.includes(String(i))&&(!c||!s.includes(String(i)))&&(!o||!a.includes(String(i)))&&(!l||!u.includes(String(i)))}));return e.every((function(e){return n[e]}))&&!d}},58401:function(e,n,t){var r=t(82684),i=t(34376),o=t(35686),c=t(77417),l=t(42122);n.Z=function(e){var n,t=e||{operation:null,pageType:null,pageUUID:null,resource:null,resourceID:null,resourceParent:null,resourceParentID:null,useProjectData:null},a=t.operation,s=t.pageType,u=t.pageUUID,d=t.resource,h=t.resourceID,f=t.resourceParent,p=t.resourceParentID,v=t.useProjectData,m=(0,c.Z)({pauseFetch:!!v}),g=(0,r.useMemo)((function(){return"undefined"!==typeof v&&null!==v?v:m}),[v,m])||{featureEnabled:null,featureUUIDs:null,project:null},x=g.featureEnabled,b=g.featureUUIDs,j=g.project,y=(0,r.useMemo)((function(){return x&&b&&j&&(null===x||void 0===x?void 0:x(null===b||void 0===b?void 0:b.CUSTOM_DESIGN))}),[x,b,j]),w=(0,i.useRouter)(),Z=null===w||void 0===w?void 0:w.asPath,k=null===w||void 0===w||null===(n=w.pathname)||void 0===n?void 0:n.replace(/^\/{1}/i,""),C=null===w||void 0===w?void 0:w.query,O=o.ZP.custom_designs.detail(encodeURIComponent(k),(0,l.hB)({operation:a,page_path:Z,page_query:C?JSON.stringify(C||""):null,page_type:s,page_uuid:u,resource:d,resource_id:h,resource_parent:f,resource_parent_id:p}),{},{pauseFetch:!y}),P=O.data,_=O.mutate;return{design:(0,r.useMemo)((function(){return(null===P||void 0===P?void 0:P.custom_design)||[]}),[P]),fetchDesign:_,router:w,routerDetails:{asPath:Z,pathname:k,query:C}}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4913],{78688:function(e,n,t){"use strict";var r=t(82394),i=t(82684),o=t(15338),l=t(77456),c=t(97618),s=t(55485),u=t(85854),a=t(65956),d=t(38276),p=t(30160),f=t(72473),m=t(70515),v=t(74778),h=t(74260),j=t(81728),x=t(28598);function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?g(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.contained,t=void 0===n||n,r=e.onClickStep,g=e.setupSteps,b=e.small,P=(0,i.useCallback)((function(e,n,i,g){var y=e.name,O=e.description,_=e.group,k=e.error,S=e.required,I=e.status_calculated,C=e.steps,E=e.tab,w=e.uuid,T=(null===C||void 0===C?void 0:C.length)||0,A=g||{completedGroup:!1,level:0,numberEl:null},D=A.completedGroup,R=A.level,M=A.numberEl,N=0===R?2*m.iI:1.5*m.iI;if(_){var B=(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(d.Z,{p:m.cd,children:(0,x.jsx)(s.ZP,{children:(0,x.jsxs)(c.Z,{flex:1,flexDirection:"column",children:[(0,x.jsxs)(s.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,x.jsx)(u.Z,{level:b?5:4,children:y}),(0,x.jsx)(d.Z,{mr:m.cd}),h.br.COMPLETED===I&&(0,x.jsx)(f.Jr,{size:N,success:!0})]}),O&&(0,x.jsx)(d.Z,{mt:1,children:(0,x.jsx)(p.ZP,{default:!0,small:b,children:O})})]})})}),(0,x.jsx)(o.Z,{light:!0}),null===C||void 0===C?void 0:C.map((function(e,n){return P(e,n,T,{completedGroup:h.br.COMPLETED===I,level:0})}))]});return(0,x.jsxs)(d.Z,{mb:b?0:m.cd,children:[t&&(0,x.jsx)(a.Z,{noPadding:!0,children:B}),!t&&B]},w)}var H=h.br.COMPLETED===I,z=0===R?String(n+1):(0,j.bH)()[n].toLowerCase();var F=!!E&&r,L=(0,x.jsx)(d.Z,{pl:0===R?m.cd:0,children:(0,x.jsxs)(p.ZP,{large:!b,monospace:!0,muted:!0,children:[z,"."]})}),G={muted:H||D,strikethrough:H||D};return(0,x.jsx)(v.aw,{clickable:!!F,onClick:F?function(){return null===r||void 0===r?void 0:r(E)}:null,children:(0,x.jsxs)(d.Z,{py:0!==R||b?1:m.cd,children:[(0,x.jsxs)(s.ZP,{children:[M&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{style:{opacity:0},children:M}),(0,x.jsx)(d.Z,{mr:1})]}),L,(0,x.jsx)(d.Z,{mr:1}),(0,x.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,x.jsxs)(s.ZP,{flexDirection:"column",children:[(0,x.jsxs)(s.ZP,{alignItems:"center",children:[(0,x.jsxs)(c.Z,{flex:1,children:[0===R&&!b&&(0,x.jsx)(u.Z,Z(Z({level:5},G),{},{children:y})),0===R&&b&&(0,x.jsx)(p.ZP,Z(Z({bold:!0,large:!0},G),{},{children:y})),R>=1&&(0,x.jsx)(p.ZP,Z(Z({bold:!0,large:!b},G),{},{children:y})),!S&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(d.Z,{mr:1}),(0,x.jsx)(p.ZP,{muted:!0,uppercase:!0,xsmall:!0,children:"optional"})]})]}),(0,x.jsx)(d.Z,{mr:m.cd}),H&&(0,x.jsx)(f.Jr,{size:N,success:!0}),h.br.INCOMPLETE===I&&(0,x.jsx)(f.uy,{muted:!0,size:N}),h.br.ERROR===I&&(0,x.jsx)(f.uy,{danger:!0,size:N}),(0,x.jsx)(d.Z,{pr:m.cd*(I?1:2)})]}),O&&(0,x.jsx)(d.Z,{mt:1,pr:3*m.cd,children:(0,x.jsx)(p.ZP,Z(Z({default:!0},G),{},{small:b,children:O}))}),k&&(0,x.jsx)(l.Z,{error:k,small:!0,warning:!0})]})})]}),T>=1&&(0,x.jsx)(d.Z,{mt:1,children:null===C||void 0===C?void 0:C.map((function(e,n){return P(e,n,T,{completedGroup:D,level:1,numberEl:L})}))})]})},w)}),[t,r,b]),y=[],O=(null===g||void 0===g?void 0:g.length)||0;return null===g||void 0===g||g.forEach((function(e,n){e.status;y.push(P(e,n,O))})),t?(0,x.jsx)(d.Z,{p:m.cd,children:y}):(0,x.jsx)(x.Fragment,{children:y})}},89308:function(e,n,t){"use strict";var r=t(82394),i=t(75582),o=t(82684),l=t(69864),c=t(71180),s=t(26032),u=t(74260),a=t(15338),d=t(97618),p=t(55485),f=t(85854),m=t(65956),v=t(78688),h=t(38276),j=t(30160),x=t(35686),g=t(70515),Z=t(72473),b=t(81728),P=t(10332),y=t(72619),O=t(23780),_=t(28598);function k(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?k(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.actionsOnly,t=e.computeService,r=e.computeConnections,k=e.contained,I=void 0===k||k,C=e.fetchAll,E=e.hideDetails,w=e.onClickStep,T=e.small,A=(0,O.VI)(null,{},[],{uuid:"ConnectionSettings"}),D=(0,i.Z)(A,1)[0],R=(0,o.useState)(null),M=R[0],N=R[1],B=(0,o.useState)(null),H=B[0],z=B[1],F=(0,l.Db)((function(e){var n=e.action,r=e.uuid;return x.ZP.compute_connections.compute_services.useUpdate(null===t||void 0===t?void 0:t.uuid,r)({compute_connection:{action:n}})}),{onSuccess:function(e){return(0,y.wD)(e,{callback:function(e){var n=e.compute_connection;null===C||void 0===C||C(),z(S(S({},M),{},{computeConnection:n}))},onErrorCallback:function(e,n){return D({errors:n,response:e})}})}}),L=(0,i.Z)(F,2),G=L[0],W=L[1].isLoading;return(0,o.useEffect)((function(){if(H){var e,n=null===r||void 0===r?void 0:r.find((function(e){var n,t=e.uuid;return(null===H||void 0===H||null===(n=H.computeConnection)||void 0===n?void 0:n.uuid)===t}));(null===n||void 0===n?void 0:n.state)!==(null===H||void 0===H||null===(e=H.computeConnection)||void 0===e?void 0:e.state)&&z(null)}}),[r,H,z]),(0,_.jsx)(h.Z,{py:I?g.cd:0,children:null===r||void 0===r?void 0:r.map((function(e,t){var r,o,l,x,y=e.actions,O=e.attributes,k=e.connection,S=e.description,C=e.name,A=e.required,D=e.status_calculated,R=e.steps,B=e.uuid;!E&&!n&&O&&(null===(r=Object.keys(O||{}))||void 0===r?void 0:r.length)>=1&&(l=(0,P.s)(Object.entries(O||{}).map((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];return[(0,b.vg)(t),r]})))),!E&&!n&&k&&(null===(o=Object.keys(k||{}))||void 0===o?void 0:o.length)>=1&&(x=(0,P.s)(Object.entries(k||{}).map((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];return[(0,b.vg)(t),r]}))));var F=(0,_.jsxs)(_.Fragment,{children:[!n&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(h.Z,{p:g.cd,children:(0,_.jsx)(p.ZP,{children:(0,_.jsxs)(d.Z,{flex:1,flexDirection:"column",children:[(0,_.jsxs)(p.ZP,{alignItems:"center",children:[(0,_.jsx)(d.Z,{flex:1,children:(0,_.jsx)(f.Z,{level:T?5:4,children:C})}),(0,_.jsx)(h.Z,{mr:g.cd}),(0,_.jsx)(Z.Fs,{danger:u.br.ERROR===D,muted:A&&u.br.INCOMPLETE===D,size:2*g.iI,success:!A||u.br.COMPLETED===D})]}),S&&(0,_.jsx)(h.Z,{mt:1,children:(0,_.jsx)(j.ZP,{default:!0,small:T,children:S})})]})})}),(null===R||void 0===R?void 0:R.length)>=1&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(a.Z,{light:!0}),(0,_.jsx)(v.Z,{contained:!1,onClickStep:w,setupSteps:R,small:T})]})]}),(l||x)&&(0,_.jsx)(h.Z,{p:g.cd,children:(0,_.jsxs)(p.ZP,{children:[l&&(0,_.jsx)(m.Z,{noPadding:!0,children:(0,_.jsxs)(p.ZP,{flexDirection:"column",children:[(0,_.jsx)(h.Z,{p:g.cd,children:(0,_.jsx)(j.ZP,{bold:!0,large:!0,children:"Attributes"})}),(0,_.jsx)(a.Z,{light:!0}),l,(0,_.jsx)(h.Z,{mb:g.cd})]})}),l&&x&&(0,_.jsx)(h.Z,{pr:g.cd}),x&&(0,_.jsx)(m.Z,{noPadding:!0,children:(0,_.jsxs)(p.ZP,{flexDirection:"column",children:[(0,_.jsx)(h.Z,{p:g.cd,children:(0,_.jsx)(j.ZP,{bold:!0,large:!0,children:"Connection"})}),(0,_.jsx)(a.Z,{light:!0}),x,(0,_.jsx)(h.Z,{mb:g.cd})]})})]})}),(null===y||void 0===y?void 0:y.length)>=1&&(0,_.jsxs)(_.Fragment,{children:[!n&&(0,_.jsx)(h.Z,{p:g.cd,children:(0,_.jsx)(p.ZP,{children:(0,_.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,_.jsx)(p.ZP,{alignItems:"center",children:(0,_.jsx)(d.Z,{flex:1,children:(0,_.jsx)(f.Z,{level:T?5:4,children:"Actions"})})})})})}),null===y||void 0===y?void 0:y.map((function(e,t){var r,i=e.description,o=e.name,l=e.uuid,u=W&&(null===M||void 0===M?void 0:M.uuid)===B&&(null===M||void 0===M?void 0:M.actionUUID)===l||s.i.PENDING===(null===H||void 0===H||null===(r=H.computeConnection)||void 0===r?void 0:r.state);return(0,_.jsxs)("div",{children:[(!n||t>=1)&&(0,_.jsx)(a.Z,{light:!0}),(0,_.jsx)(h.Z,{p:g.cd,children:(0,_.jsx)(p.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,_.jsxs)(d.Z,{flex:1,flexDirection:"column",children:[(0,_.jsx)(j.ZP,{default:!0,large:!T,children:i}),(0,_.jsx)(h.Z,{mt:g.cd,children:(0,_.jsx)(c.ZP,{compact:T,danger:[s._.DELETE].includes(l),loading:u,onClick:function(){N({actionUUID:l,uuid:B}),z(null),G({action:l,uuid:B})},primary:[s._.CREATE,s._.UPDATE].includes(l),secondary:[s._.DESELECT].includes(l),small:T,children:o})})]})})})]},l)}))]})]});return(0,_.jsxs)(h.Z,{mt:t>=1?g.cd:0,px:I?g.cd:0,children:[I&&(0,_.jsx)(m.Z,{noPadding:!0,children:F}),!I&&F]},B)}))})}},77456:function(e,n,t){"use strict";var r=t(82394),i=t(75582),o=t(43695),l=t(30160),c=t(28598);function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.danger,t=e.error,r=e.large,s=e.small,a=e.warning,d=t.message,p=t.variables,f=d;return p&&Object.entries(p||{}).forEach((function(e){var t=(0,i.Z)(e,2),d=t[0],p=t[1];f=f.replace("{{".concat(d,"}}"),(0,o.Dq)((0,c.jsx)(l.ZP,u(u({danger:n,inline:!0,large:r,muted:!n&&!a,small:s,warning:a},p||{}),{},{children:d}))))})),(0,c.jsx)(l.ZP,{danger:n,dangerouslySetInnerHTML:{__html:f},muted:!n&&!a,large:r,small:s,warning:a})}},74778:function(e,n,t){"use strict";t.d(n,{UE:function(){return s},aw:function(){return u},bC:function(){return a}});var r=t(38626),i=t(44897),o=t(42631),l=t(70515),c=t(91437),s=r.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-1b5e7g-0"})([""," border-radius:","px;padding:","px;"," ",""],(0,c.eR)(),o.D7,2.5*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border: 1px solid ").concat((e.theme.borders||i.Z.borders).darkLight,";\n box-shadow: ").concat((e.theme.shadow||i.Z.shadow).frame,";\n ")}),(function(e){return!e.inline&&"\n height: ".concat(28*l.iI,"px;\n width: ").concat(40*l.iI,"px;\n margin: ").concat(l.cd/2*l.iI,"px;\n ")})),u=r.default.div.withConfig({displayName:"indexstyle__SetupStepRowStyle",componentId:"sc-1b5e7g-1"})([""," ",""],(0,c.eR)(),(function(e){return e.clickable&&"\n &:hover {\n background-color: ".concat((e.theme.interactive||i.Z.interactive).hoverOverlay,";\n cursor: pointer;\n }\n ")})),a=r.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-1b5e7g-2"})([""," height:","px;padding-left:","px;padding-right:","px;"," ",""],(0,c.eR)(),7*l.iI,l.cd*l.iI,l.cd*l.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.interactive||i.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||i.Z.background).codeTextarea,";\n ")}))},94629:function(e,n,t){"use strict";t.d(n,{Z:function(){return k}});var r=t(82394),i=t(21831),o=t(82684),l=t(50724),c=t(82555),s=t(97618),u=t(70613),a=t(79626),d=t(68899),p=t(28598);function f(e,n){var t=e.children,r=e.noPadding;return(0,p.jsx)(d.HS,{noPadding:r,ref:n,children:t})}var m=o.forwardRef(f),v=t(62547),h=t(82571),j=t(98464),x=t(77417),g=t(46684),Z=t(70515),b=t(53808),P=t(19183);function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function _(e,n){e.addProjectBreadcrumbToCustomBreadcrumbs;var t=e.after,r=e.afterHeader,f=e.afterHidden,y=e.afterWidth,_=e.afterWidthOverride,k=e.appendBreadcrumbs,S=e.before,I=e.beforeWidth,C=e.breadcrumbs,E=e.children,w=e.errors,T=e.headerMenuItems,A=e.headerOffset,D=e.hideAfterCompletely,R=e.mainContainerHeader,M=e.navigationItems,N=e.setAfterHidden,B=e.setErrors,H=e.subheaderChildren,z=e.subheaderNoPadding,F=e.title,L=e.uuid,G=(0,P.i)().width,W="dashboard_after_width_".concat(L),U="dashboard_before_width_".concat(L),V=(0,o.useRef)(null),Y=(0,o.useState)(_?y:(0,b.U2)(W,y)),X=Y[0],q=Y[1],J=(0,o.useState)(!1),K=J[0],Q=J[1],$=(0,o.useState)(S?Math.max((0,b.U2)(U,I),13*Z.iI):null),ee=$[0],ne=$[1],te=(0,o.useState)(!1),re=te[0],ie=te[1],oe=(0,o.useState)(null)[1],le=(0,x.Z)().project,ce=[];C&&ce.push.apply(ce,(0,i.Z)(C)),null!==C&&void 0!==C&&C.length&&!k||!le||null!==C&&void 0!==C&&C.length||ce.unshift({bold:!k,label:function(){return F}}),(0,o.useEffect)((function(){null===V||void 0===V||!V.current||K||re||null===oe||void 0===oe||oe(V.current.getBoundingClientRect().width)}),[K,X,re,ee,V,oe,G]),(0,o.useEffect)((function(){K||(0,b.t8)(W,X)}),[f,K,X,W]),(0,o.useEffect)((function(){re||(0,b.t8)(U,ee)}),[re,ee,U]);var se=(0,j.Z)(y);return(0,o.useEffect)((function(){_&&se!==y&&q(y)}),[_,y,se]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(u.Z,{title:F}),(0,p.jsx)(a.Z,{breadcrumbs:ce,menuItems:T}),(0,p.jsxs)(d.Nk,{ref:n,children:[0!==(null===M||void 0===M?void 0:M.length)&&(0,p.jsx)(d.lm,{showMore:!0,children:(0,p.jsx)(h.Z,{navigationItems:M,showMore:!0})}),(0,p.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(v.Z,{after:t,afterHeader:r,afterHeightOffset:g.Mz,afterHidden:f,afterMousedownActive:K,afterWidth:X,before:S,beforeHeightOffset:g.Mz,beforeMousedownActive:re,beforeWidth:d.k1+(S?ee:0),headerOffset:A,hideAfterCompletely:!N||D,leftOffset:S?d.k1:null,mainContainerHeader:R,mainContainerRef:V,setAfterHidden:N,setAfterMousedownActive:Q,setAfterWidth:q,setBeforeMousedownActive:ie,setBeforeWidth:ne,children:[H&&(0,p.jsx)(m,{noPadding:z,children:H}),E]})})]}),w&&(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,O(O({},w),{},{onClose:function(){return null===B||void 0===B?void 0:B(null)}}))})]})}var k=o.forwardRef(_)},8193:function(e,n,t){"use strict";t.d(n,{N:function(){return s},Z:function(){return c}});var r=t(38626),i=t(44897),o=t(42631),l=t(70515),c=2*l.iI,s=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1ck7mzt-0"})(["border-radius:","px;padding:","px;",""],o.n_,l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeArea,";\n ")}))},28071:function(e,n,t){"use strict";var r;t.d(n,{X:function(){return r}}),function(e){e.BOOTSTRAPPING="BOOTSTRAPPING",e.RUNNING="RUNNING",e.STARTING="STARTING",e.TERMINATED="TERMINATED",e.TERMINATED_WITH_ERRORS="TERMINATED_WITH_ERRORS",e.TERMINATING="TERMINATING",e.WAITING="WAITING"}(r||(r={}))},26032:function(e,n,t){"use strict";var r,i;t.d(n,{_:function(){return r},i:function(){return i}}),function(e){e.CREATE="CREATE",e.DELETE="DELETE",e.DESELECT="DESELECT",e.UPDATE="UPDATE"}(r||(r={})),function(e){e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE",e.PENDING="PENDING"}(i||(i={}))},72098:function(e,n,t){"use strict";var r;t.d(n,{U:function(){return r}}),function(e){e.PYSPARK="pysparkkernel",e.PYTHON3="python3"}(r||(r={}))},57653:function(e,n,t){"use strict";t.d(n,{$1:function(){return v},G7:function(){return x},LM:function(){return g},Mj:function(){return Z},QK:function(){return m},RH:function(){return j},a_:function(){return P},fj:function(){return y},kA:function(){return b},qL:function(){return c},r0:function(){return h}});var r,i,o,l,c,s=t(75582),u=t(82394),a=t(72473),d=t(72098);function p(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(c||(c={}));var m,v,h,j=(r={},(0,u.Z)(r,c.INTEGRATION,"Integration"),(0,u.Z)(r,c.PYTHON,"Python"),(0,u.Z)(r,c.PYSPARK,"PySpark"),(0,u.Z)(r,c.STREAMING,"Streaming"),r),x=(i={},(0,u.Z)(i,c.INTEGRATION,"Integration"),(0,u.Z)(i,c.PYTHON,"Standard"),(0,u.Z)(i,c.PYSPARK,"PySpark"),(0,u.Z)(i,c.STREAMING,"Streaming"),i),g="all",Z=(c.PYTHON,c.INTEGRATION,c.STREAMING,o={},(0,u.Z)(o,g,a.ie),(0,u.Z)(o,c.INTEGRATION,a.YC),(0,u.Z)(o,c.PYTHON,a.El),(0,u.Z)(o,c.STREAMING,a.dB),o);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules",e.RETRY="retry",e.RETRY_INCOMPLETE_BLOCK_RUNS="retry_incomplete_block_runs"}(m||(m={})),function(e){e.GROUP="group_by",e.HISTORY_DAYS="from_history_days",e.NO_TAGS="no_tags",e.SEARCH="search",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(v||(v={})),function(e){e.STATUS="status",e.TAG="tag",e.TYPE="type"}(h||(h={}));var b=[m.ACTIVE,m.INACTIVE,m.NO_SCHEDULES],P=(l={},(0,u.Z)(l,c.PYTHON,d.U.PYTHON3),(0,u.Z)(l,c.PYSPARK,d.U.PYSPARK),l),y=Object.entries(P).reduce((function(e,n){var t=(0,s.Z)(n,2),r=t[0],i=t[1];return f(f({},e),{},(0,u.Z)({},i,r))}),{})},35185:function(e,n,t){"use strict";var r=t(82394),i=t(91835),o=(t(82684),t(38626)),l=t(44897),c=t(42631),s=t(70515),u=t(28598);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var p=o.default.div.withConfig({displayName:"ProgressBar__ProgressBarContainerStyle",componentId:"sc-10x9ojc-0"})(["border-radius:","px;height:","px;overflow:hidden;position:relative;width:100%;",""],c.BG,.75*s.iI,(function(e){return"\n background-color: ".concat((e.theme.monotone||l.Z.monotone).grey200,";\n ")})),f=o.default.div.withConfig({displayName:"ProgressBar__ProgressBarStyle",componentId:"sc-10x9ojc-1"})(["height:inherit;position:absolute;"," "," "," ",""],(function(e){return!e.danger&&"\n background-color: ".concat((e.theme.progress||l.Z.progress).positive,";\n ")}),(function(e){return e.progress&&"\n width: ".concat(e.progress,"%;\n ")}),(function(e){return e.danger&&"\n background-color: ".concat((e.theme.progress||l.Z.progress).negative,";\n ")}),(function(e){return e.animateProgress&&"\n animation: animate-progress ".concat(e.animateProgress.duration,"ms linear forwards;\n\n @keyframes animate-progress {\n 0% {\n width: ").concat(e.animateProgress.start,"%;\n }\n\n 100% {\n width: ").concat(e.animateProgress.end,"%;\n }\n }\n ")}));n.Z=function(e){var n=(0,i.Z)({},e);return(0,u.jsx)(p,d(d({},n),{},{children:(0,u.jsx)(f,d({},n))}))}},4910:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Xe}});var r=t(77837),i=t(38860),o=t.n(i),l=t(82684),c=t(82394),s=t(75582),u=t(69864),a=t(71180),d=t(92083),p=t.n(d),f=t(21764),m=t(28071),v=t(15338),h=t(55485),j=t(85854),x=t(97618),g=t(38276),Z=t(30160),b=t(70515),P=t(28598);function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _=function(e){var n=e.rows;return(0,P.jsx)(P.Fragment,{children:null===n||void 0===n?void 0:n.map((function(e){var n=e.key,t=e.textProps,r=e.value;return(0,P.jsxs)("div",{children:[(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(h.ZP,{flexDirection:"column",children:(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:n})}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,justifyContent:"flex-end",children:(0,P.jsx)(Z.ZP,O(O({default:!0,large:!0},t),{},{children:r}))})]})})]},n)}))})},k=t(65956),S=t(4190),I=t(75499),C=t(69650),E=t(35686),w=t(72473),T=t(3917),A=t(38626),D=t(44897),R=A.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-169asq7-0"})(["position:sticky;top:0;z-index:1;",""],(function(e){return"\n background-color: ".concat((e.theme.background||D.Z.background).codeArea,";\n ")})),M=t(81728);function N(e){var n;if(null===e||void 0===e||!e.length)return null;var t=null===e||void 0===e?void 0:e[0],r=null===(n=Object.keys(t||{}))||void 0===n?void 0:n.map((function(e){return{uuid:(0,M.vg)(e)}}));return(0,P.jsx)(I.Z,{columnFlex:null===r||void 0===r?void 0:r.map((function(e,n){return 0===n?null:1})),columns:r,rows:null===e||void 0===e?void 0:e.map((function(e){return Object.entries(e||{}).map((function(e){var n=(0,s.Z)(e,2),t=n[0],r=n[1];return[(0,P.jsx)(Z.ZP,{default:!0,monospace:!0,children:r},t)]}))}))})}var B=t(72619),H=t(95924),z=t(42122),F=t(70320),L=t(23780);function G(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function W(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?G(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):G(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var U=2*b.iI,V={default:!0,monospace:!0};var Y=function(e){var n=e.clusters,t=e.computeService,r=e.fetchAll,i=e.includeAllStates,o=e.loading,c=e.setIncludeAllStates,d=(0,l.useMemo)((function(){return"".concat(null===t||void 0===t?void 0:t.uuid,"/clusters")}),[t]),x=(0,F.qB)(),y=(0,l.useState)(null),O=y[0],A=y[1],D=(0,L.VI)(null,{},[],{uuid:d}),G=(0,s.Z)(D,1)[0],Y=(0,u.Db)(E.ZP.compute_clusters.compute_services.useCreate(null===t||void 0===t?void 0:t.uuid),{onSuccess:function(e){return(0,B.wD)(e,{callback:function(){r().then((function(){return A(0)}))},onErrorCallback:function(e,n){return G({errors:n,response:e})}})}}),X=(0,s.Z)(Y,2),q=X[0],J=X[1].isLoading,K=(0,u.Db)((function(e){return E.ZP.compute_clusters.compute_services.useDelete(null===t||void 0===t?void 0:t.uuid,null===e||void 0===e?void 0:e.id)()}),{onSuccess:function(e){return(0,B.wD)(e,{callback:function(){r().then((function(){return A(null)}))},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.exception,i=n.message,o=n.type;f.Am.error((null===t||void 0===t?void 0:t.error)||r||i,{position:f.Am.POSITION.BOTTOM_RIGHT,toastId:o})}})}}),Q=(0,s.Z)(K,2),$=Q[0],ee=Q[1].isLoading,ne=(0,u.Db)((function(e){return E.ZP.compute_clusters.compute_services.useUpdate(null===t||void 0===t?void 0:t.uuid,null===e||void 0===e?void 0:e.id)({compute_cluster:(0,z.GL)(e,["active"])})}),{onSuccess:function(e){return(0,B.wD)(e,{callback:function(){r()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.exception,i=n.message,o=n.type;f.Am.error((null===t||void 0===t?void 0:t.error)||r||i,{position:f.Am.POSITION.BOTTOM_RIGHT,toastId:o})}})}}),te=(0,s.Z)(ne,2),re=te[0],ie=te[1].isLoading,oe=(0,l.useMemo)((function(){return(null===n||void 0===n?void 0:n.length)||0}),[n]),le=(0,l.useMemo)((function(){return(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(w.NO,{size:U}),compact:oe>=1,loading:J,onClick:function(){return q()},primary:!0,small:oe>=1,children:"Launch new cluster"})}),[oe,q,J]);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(R,{children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,P.jsxs)(h.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,P.jsx)(j.Z,{level:4,children:(0,M._6)("cluster",oe,!0)}),c&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(C.Z,{checked:i,compact:!0,onCheck:function(e){return c(e(i))}}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsx)(Z.ZP,{default:i,muted:!i,small:!0,children:"Include terminated clusters"})]})]}),(0,P.jsx)(g.Z,{mr:b.cd}),oe>=1&&le]})}),(0,P.jsx)(v.Z,{light:!0})]}),(0,P.jsx)(I.Z,{apiForFetchingAfterAction:E.ZP.compute_clusters.compute_services.detail,buildApiOptionsFromObject:function(e){return[null===t||void 0===t?void 0:t.uuid,null===e||void 0===e?void 0:e.id,{},{refreshInterval:3e3,revalidateOnFocus:!0}]},columnFlex:[null,null,null,null,null],columns:[{uuid:"Cluster ID"},{uuid:"Cluster Name"},{uuid:"Status"},{uuid:"Created"},{center:!0,uuid:"Hours"},{label:function(){return""},rightAligned:!0,uuid:"Active"}],onClickRow:function(e,n){A((function(n){return n===e?null:e}))},renderExpandedRowWithObject:function(e,n){var t,r,i,o,l=null===n||void 0===n||null===(t=n.compute_cluster)||void 0===t?void 0:t.cluster;if(!l)return(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(S.Z,{inverted:!0})});var c=l.active,s=l.applications,u=l.ec2_instance_attributes,d=l.name,f=l.status,y=l.tags,O=null===f||void 0===f?void 0:f.state,I=[m.X.TERMINATED,m.X.TERMINATED_WITH_ERRORS,m.X.TERMINATING].includes(O),C=[m.X.RUNNING,m.X.WAITING].includes(O),E=null===f||void 0===f||null===(r=f.timeline)||void 0===r?void 0:r.creation_date_time;return(0,P.jsxs)(g.Z,{p:b.cd,children:[!I&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(k.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(j.Z,{level:4,children:"Actions"})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{children:[C&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(w.Fs,{size:U,success:c}),loading:ie,notClickable:c,onClick:c?null:function(){return re(W(W({},l),{},{active:!0}))},primary:!c,children:c?"Activated":"Activate cluster for compute"}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(a.ZP,{loading:ee,onClick:function(){window.confirm("Are you sure you want to terminate this cluster?")&&$(l)},secondary:!0,children:"Terminate cluster"})]}),!C&&(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(S.Z,{inverted:!0,small:!0}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:(null===f||void 0===f||null===(i=f.state_change_reason)||void 0===i?void 0:i.message)||"Cluster is still launching."})]})]})})]}),(0,P.jsx)(g.Z,{mb:b.cd})]}),(0,P.jsxs)(k.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(j.Z,{level:4,children:"Details"})}),(0,P.jsx)(_,{rows:[{key:"ID",textProps:{monospace:!0},value:null===l||void 0===l?void 0:l.id},{key:"Name",value:d},{key:"Master public DNS name",value:(null===l||void 0===l?void 0:l.master_public_dns_name)||"Available after cluster starts."},{key:"Created at",textProps:{monospace:!0},value:E?(0,T.XG)(p()(E).format(T.BL),x):"-"},{key:"Status message",value:(null===f||void 0===f||null===(o=f.state_change_reason)||void 0===o?void 0:o.message)||"None"},{key:"Release label",textProps:{monospace:!0},value:null===l||void 0===l?void 0:l.release_label},{key:"Service role",textProps:{monospace:!0},value:null===l||void 0===l?void 0:l.service_role},{key:"Scale down behavior",value:null!==l&&void 0!==l&&l.scale_down_behavior?(0,M.vg)(null===l||void 0===l?void 0:l.scale_down_behavior):null===l||void 0===l?void 0:l.scale_down_behavior},{key:"Auto terminate",value:null!==l&&void 0!==l&&l.auto_terminate?(0,P.jsx)(w.Jr,{size:U,success:!0}):(0,P.jsx)(w.x8,{danger:!0,size:U})},{key:"Termination protected",value:null!==l&&void 0!==l&&l.termination_protected?(0,P.jsx)(w.Jr,{size:U,success:!0}):(0,P.jsx)(w.x8,{danger:!0,size:U})},{key:"Visible to all users",value:null!==l&&void 0!==l&&l.visible_to_all_users?(0,P.jsx)(w.Jr,{size:U,success:!0}):(0,P.jsx)(w.x8,{danger:!0,size:U})},{key:"EBS root volume size",textProps:{monospace:!0},value:null===l||void 0===l?void 0:l.ebs_root_volume_size},{key:"Normalized instance hours",textProps:{monospace:!0},value:null===l||void 0===l?void 0:l.normalized_instance_hours},{key:"Step concurrency level",textProps:{monospace:!0},value:null===l||void 0===l?void 0:l.step_concurrency_level}]})]}),(0,P.jsx)(g.Z,{mb:b.cd}),(0,P.jsxs)(k.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(j.Z,{level:4,children:"EC2 instance attributes"})}),(0,P.jsx)(_,{rows:[{key:"Availability zone",textProps:{monospace:!0},value:null===u||void 0===u?void 0:u.ec2_availability_zone},{key:"Master security group",textProps:{monospace:!0},value:null===u||void 0===u?void 0:u.emr_managed_master_security_group},{key:"Slave security group",textProps:{monospace:!0},value:null===u||void 0===u?void 0:u.emr_managed_slave_security_group},{key:"IAM profile",textProps:{monospace:!0},value:null===u||void 0===u?void 0:u.iam_instance_profile}]})]}),(0,P.jsx)(g.Z,{mb:b.cd}),(0,P.jsxs)(h.ZP,{children:[(0,P.jsxs)(k.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{px:b.cd,py:b.cd,children:(0,P.jsx)(j.Z,{level:4,children:"Applications"})}),(0,P.jsx)(v.Z,{light:!0,short:!0}),N(s||[])]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsxs)(k.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{px:b.cd,py:b.cd,children:(0,P.jsx)(j.Z,{level:4,children:"Tags"})}),(0,P.jsx)(v.Z,{light:!0,short:!0}),N(y||[])]})]})]})},getObjectAtRowIndex:function(e){return null===n||void 0===n?void 0:n[e]},rows:null===n||void 0===n?void 0:n.map((function(e){var n,t,r=e.active,i=e.id,o=e.name,c=e.normalized_instance_hours,s=e.status,u=null===s||void 0===s||null===(n=s.timeline)||void 0===n?void 0:n.creation_date_time,d=null===s||void 0===s?void 0:s.state,f=null===s||void 0===s||null===(t=s.state_change_reason)||void 0===t?void 0:t.message,v=[m.X.BOOTSTRAPPING,m.X.STARTING].includes(d),j=[m.X.TERMINATING].includes(d);return[(0,l.createElement)(Z.ZP,W(W({},V),{},{key:"id",success:r}),i),(0,l.createElement)(Z.ZP,W(W({},V),{},{key:"name",monospace:!1,preWrap:!0}),o),(0,P.jsxs)("div",{children:[(0,P.jsx)(Z.ZP,W(W({},V),{},{danger:[m.X.TERMINATED_WITH_ERRORS].includes(d),default:[m.X.STARTING].includes(d),muted:[m.X.TERMINATED].includes(d),success:[m.X.RUNNING,m.X.WAITING].includes(d),warning:[m.X.TERMINATING].includes(d),children:null!==s&&void 0!==s&&s.state?(0,M.vg)(null===s||void 0===s?void 0:s.state):null===s||void 0===s?void 0:s.state})),f&&(0,P.jsx)(Z.ZP,{muted:!0,preWrap:!0,small:!0,children:f})]},"state"),(0,l.createElement)(Z.ZP,W(W({},V),{},{key:"created",preWrap:!0}),u?(0,T.XG)(p()(u).format(T.BL),x):"-"),(0,l.createElement)(Z.ZP,W(W({},V),{},{center:!0,key:"normalizedInstanceHours"}),c||0),(0,P.jsx)(h.ZP,{justifyContent:"flex-end",children:v||j?(0,P.jsx)(S.Z,{inverted:v,small:!0}):(0,P.jsx)(a.ZP,{iconOnly:!0,loading:ie,noBackground:!0,noBorder:!0,noPadding:!0,notClickable:r,onClick:r?null:function(n){(0,H.j)(n),re(W(W({},e),{},{active:!0}))},children:(0,P.jsx)(w.Fs,{muted:!r,size:U,success:r})})},"active")]})),selectedRowIndexInternal:O,uuid:d}),o&&(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(S.Z,{inverted:!0})}),!o&&!oe&&(0,P.jsx)(g.Z,{p:b.cd,children:le})]})},X=t(48670),q=t(90299),J=t(89308),K=t(74521),Q=t(93004),$=t(8970);function ee(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ne(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ee(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ee(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var te="Applications",re="Connections",ie="Jobs",oe="SQLs";var le=function(e){var n,t=e.applications,r=e.computeConnections,i=e.computeService,o=e.connectionsLoading,c=e.fetchAll,s=e.jobs,u=e.loadingApplications,a=e.loadingJobs,d=(e.objectAttributes,e.refButtonTabs),p=(e.selectedComputeService,e.setSelectedSql),f=e.setSelectedTab,m=(0,l.useContext)(A.ThemeContext),h=(0,l.useState)(),j=h[0],x=h[1],y=(0,l.useCallback)((function(e){p((function(){return null})),x(e)}),[p,x]),O=(0,F.qB)(),_=E.ZP.spark_stages.list({details:!0,_format:"with_details"}).data,k=(0,l.useMemo)((function(){return((null===_||void 0===_?void 0:_.spark_stages)||[]).reduce((function(e,n){var t=null===n||void 0===n?void 0:n.application;return(null===t||void 0===t?void 0:t.calculated_id)in e||(e[null===t||void 0===t?void 0:t.calculated_id]={}),e[null===t||void 0===t?void 0:t.calculated_id][null===n||void 0===n?void 0:n.stage_id]=n,e}),{})}),[_]),S=(0,l.useMemo)((function(){return(0,P.jsx)(J.Z,{computeService:i,computeConnections:r,fetchAll:c,onClickStep:function(e){return f((function(){return{main:e}}))}})}),[r,i,c,f]),C=(0,l.useMemo)((function(){return(0,P.jsx)(I.Z,{columnFlex:[null,null,null,null,null,null,null],columns:[{uuid:"ID"},{uuid:"URL"},{uuid:"Name"},{uuid:"Version"},{uuid:"Spark user"},{uuid:"Started at"},{rightAligned:!0,uuid:"Last updated"}],rows:null===t||void 0===t?void 0:t.map((function(e){var n=e.attempts,t=e.id,r=e.name,i=e.spark_ui_url,o=(null===n||void 0===n?void 0:n[0])||{},c=o.app_spark_version,s=o.last_updated_epoch,u=o.start_time_epoch,a=o.spark_user,d=u&&(0,T.JX)(u/1e3,{withSeconds:!0}),p=d&&(0,T.XG)(d,O);return[(0,l.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"id"}),t),(0,l.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"sparkUIURL"}),i),(0,l.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"name"}),r),(0,l.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"version"}),c),(0,l.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"sparkUser"}),a),(0,l.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"startTime"}),p||"-"),(0,l.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"lastUpdated",rightAligned:!0}),s?(0,T.XG)((0,T.JX)(s/1e3,{withSeconds:!0}),O):"-")]})),uuid:"applications"})}),[t,O]),w=(0,l.useMemo)((function(){var e={};return null===s||void 0===s||s.forEach((function(n){var t,r,i=null===n||void 0===n?void 0:n.application;(null===i||void 0===i?void 0:i.calculated_id)in e||(e[null===i||void 0===i?void 0:i.calculated_id]={application:i,jobs:[]}),null===(t=e[null===i||void 0===i?void 0:i.calculated_id])||void 0===t||null===(r=t.jobs)||void 0===r||r.push(n)})),Object.values(e).map((function(e){var n=e.application,t=e.jobs;return(0,P.jsxs)("div",{children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(Z.ZP,{default:!0,bold:!0,children:["Application ",null===n||void 0===n?void 0:n.calculated_id]})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(K.Z,{jobs:t,stagesMapping:k})]},null===n||void 0===n?void 0:n.calculated_id)}))}),[s,k]),D=(0,l.useMemo)((function(){return(0,P.jsx)(Q.Z,{setSelectedSql:p,stagesMapping:k})}),[p,k]),R=(0,l.useMemo)((function(){var e=[{label:function(){return(0,P.jsxs)(P.Fragment,{children:[te,"\xa0\xa0\xa0",u?"":(null===t||void 0===t?void 0:t.length)||0]})},uuid:te},{label:function(){return(0,P.jsxs)(P.Fragment,{children:[ie,"\xa0\xa0\xa0",a?"":(null===s||void 0===s?void 0:s.length)||0]})},uuid:ie},{label:function(){return oe},uuid:oe}];return(null===r||void 0===r?void 0:r.length)>=1&&e.unshift({label:function(){return re},uuid:re}),e}),[r,c]);return(0,l.useEffect)((function(){j||o||((null===r||void 0===r?void 0:r.length)>=1?y(re):y(te))}),[r,o,j,y]),(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(g.Z,{px:b.cd,children:(0,P.jsx)(q.Z,{noPadding:!0,onClickTab:function(e){var n=e.uuid;return y(n)},ref:d,regularSizeText:!0,selectedTabUUID:j,tabs:R,underlineColor:null===m||void 0===m||null===(n=m.accent)||void 0===n?void 0:n.blue,underlineStyle:!0})}),(0,P.jsx)(v.Z,{light:!0}),re===j&&S,te===j&&C,ie===j&&w,oe===j&&D]})},ce=t(17488),se=t(8193);function ue(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ae(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ue(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ue(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var de=function(e){var n=e.addButtonText,t=e.addTextInputPlaceholder,r=e.alreadyExistsMessage,i=e.configurationValuePlaceholder,o=e.configurations,u=e.createButtonText,d=e.description,p=e.emptyState,f=e.setConfigurations,m=e.title,y=(0,l.useRef)(null),O=(0,l.useState)(!1),_=O[0],S=O[1],I=(0,l.useState)(null),C=I[0],E=I[1],T=(0,l.useMemo)((function(){var e;return(null===(e=Object.keys(o||{}))||void 0===e?void 0:e.length)>=1}),[o]),A=(0,l.useMemo)((function(){return C in(o||{})}),[o,C]),D=(0,l.useMemo)((function(){return(0,P.jsxs)(h.ZP,{alignItems:"center",children:[!_&&(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(w.mm,{}),compact:!0,onClick:function(e){(0,H.j)(e),S(!0),setTimeout((function(){var e;return null===y||void 0===y||null===(e=y.current)||void 0===e?void 0:e.focus()}),1)},secondary:!T,small:!0,children:n||"Add configuration"}),_&&(0,P.jsxs)(P.Fragment,{children:[A&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Z.ZP,{danger:!0,small:!0,children:r||"Already exists"}),(0,P.jsx)(g.Z,{mr:1})]}),(0,P.jsx)(ce.Z,{autoComplete:"off",compact:!0,meta:{touched:!!A,error:""},monospace:!0,onClick:function(e){return(0,H.j)(e)},paddingVertical:b.iI/2-2,placeholder:t,onChange:function(e){(0,H.j)(e),E(e.target.value)},ref:y,small:!0,value:C||""}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsx)(a.ZP,{disabled:A,compact:!0,onClick:function(e){(0,H.j)(e),A||(f(ae(ae({},o),{},(0,c.Z)({},C,""))),S(!1),E(null))},primary:!0,small:!0,children:u||"Create configuration"}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsx)(a.ZP,{compact:!0,onClick:function(e){(0,H.j)(e),S(!1),E(null)},secondary:!0,small:!0,children:"Cancel"})]})]})}),[n,A,o,T,_,C,y,S,E]),R=(0,l.useMemo)((function(){return Object.entries(o||{}).map((function(e){var n=(0,s.Z)(e,2),t=n[0],r=n[1];return(0,P.jsxs)("div",{children:[(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(a.ZP,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){var e=ae({},o);null===e||void 0===e||delete e[t],f(e)},children:(0,P.jsx)(w.rF,{default:!0,size:se.Z})}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(Z.ZP,{default:!0,large:!0,monospace:!0,children:t}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,fullWidth:!0,large:!0,monospace:!0,noBackground:!0,noBorder:!0,onChange:function(e){return f(ae(ae({},o),{},(0,c.Z)({},t,e.target.value)))},paddingHorizontal:0,paddingVertical:0,placeholder:i,value:r||""})})]})})]},t)}))}),[o,f]);return(0,P.jsxs)(k.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(j.Z,{level:4,children:m}),d&&(0,P.jsx)(g.Z,{mt:1,children:d})]}),(0,P.jsx)(g.Z,{mr:b.cd}),T&&(0,P.jsx)(h.ZP,{alignItems:"center",children:D})]})}),!T&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(v.Z,{light:!0}),(0,P.jsxs)(g.Z,{p:b.cd,children:[p&&(0,P.jsx)(g.Z,{mb:b.cd,children:(0,P.jsx)(Z.ZP,{default:!0,children:p})}),(0,P.jsx)(h.ZP,{alignItems:"center",children:D})]})]}),T&&R]})},pe=t(74260);function fe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function me(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?fe(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):fe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ve=function(e){var n,t=e.attributesTouched,r=e.isLoading,i=e.mutateObject,o=e.objectAttributes,c=e.onCancel,s=e.selectedComputeService,u=e.setObjectAttributes,d=(0,l.useCallback)((function(e){return u({emr_config:me(me({},null===o||void 0===o?void 0:o.emr_config),e)})}),[o,u]),p=(0,l.useCallback)((function(e){return u({spark_config:me(me({},null===o||void 0===o?void 0:o.spark_config),e)})}),[o,u]),f=(0,l.useMemo)((function(){return(null===o||void 0===o?void 0:o.emr_config)||{}}),[o]),m=(0,l.useMemo)((function(){return(null===o||void 0===o?void 0:o.spark_config)||{}}),[o]);return(0,P.jsxs)(se.N,{children:[(0,P.jsx)(de,{addButtonText:"Add Spark configuration",addTextInputPlaceholder:"e.g. spark.driver.cores",alreadyExistsMessage:"Spark configuration exists",configurationValuePlaceholder:"e.g. 4g",configurations:null===m||void 0===m?void 0:m.others,createButtonText:"Create Spark configuration",description:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(Z.ZP,{muted:!0,children:["List of key-value pairs to be set in ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,children:"SparkConf"}),", e.g. ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,children:"spark.executor.memory=4g"}),"."]}),(0,P.jsxs)(Z.ZP,{muted:!0,children:["For a list of all configurations, see the ",(0,P.jsx)(X.Z,{href:"https://spark.apache.org/docs/latest/configuration.html",inline:!0,openNewWindow:!0,children:"Spark configuration documentation"}),"."]})]}),emptyState:"There are currently no executor Spark configurations.",setConfigurations:function(e){return p({others:e})},title:"Spark configurations"}),(0,P.jsx)(g.Z,{mb:b.HN}),pe.GO.AWS_EMR===s&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(k.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(h.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(j.Z,{level:4,warning:!(null!==f&&void 0!==f&&f.ec2_key_name)||!(null!==f&&void 0!==f&&f.ec2_key_path),children:"Spark observability"}),(!(null!==f&&void 0!==f&&f.ec2_key_name)||!(null!==f&&void 0!==f&&f.ec2_key_path))&&"ec2_key_name"in((null===t||void 0===t?void 0:t.emr_config)||{})&&"ec2_key_path"in((null===t||void 0===t?void 0:t.emr_config)||{})&&(0,P.jsx)(P.Fragment,{children:(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsxs)(Z.ZP,{warning:!0,children:["Without all the fields in this section present and valid, Mage won\u2019t automatically create the SSH tunnel.",(0,P.jsx)("br",{}),"You must manually create the SSH tunnel in order for Mage to retrieve and display the Spark jobs, statuses, metrics, and system information."]})})}),(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsxs)(Z.ZP,{muted:!0,children:["In order to see the Spark jobs, statuses, metrics, and system information, an SSH tunnel to the AWS EMR Master Node must be created.",(0,P.jsx)("br",{}),"Mage can automatically create the SSH tunnel for you if every field in this section is present and valid."]})}),(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsx)(Z.ZP,{muted:!0})})]})})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"EC2 key name"}),(0,P.jsxs)(Z.ZP,{muted:!0,small:!0,children:["SSH tunnel into the EMR cluster using a key pair created from the ",(0,P.jsx)(X.Z,{href:"https://console.aws.amazon.com/ec2/home#KeyPairs",inline:!0,openNewWindow:!0,small:!0,children:"AWS guide"}),"."]})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return d({ec2_key_name:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. ec2_key_pair_name",value:(null===f||void 0===f?void 0:f.ec2_key_name)||""})})]})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"EC2 key path"}),(0,P.jsx)(Z.ZP,{muted:!0,small:!0,children:"The absolute file path to the EC2 public key that was used when creating a cluster."})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,monospace:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return d({ec2_key_path:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. ec2_key_pair_name",value:(null===f||void 0===f?void 0:f.ec2_key_path)||""})})]})})]}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsxs)(k.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(h.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(j.Z,{level:4,children:"EMR instance types"}),(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsxs)(Z.ZP,{muted:!0,children:["Refer to the ",(0,P.jsx)(X.Z,{href:"https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-supported-instance-types.html",openNewWindow:!0,children:"AWS EMR"})," documentation for all supported EMR instance types."]})})]})})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(h.ZP,{flexDirection:"column",children:(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Master instance type"})}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return d({master_instance_type:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. r5.4xlarge",value:(null===f||void 0===f?void 0:f.master_instance_type)||""})})]})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(h.ZP,{flexDirection:"column",children:(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Slave instance type"})}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return d({slave_instance_type:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. r5.2xlarge",value:(null===f||void 0===f?void 0:f.slave_instance_type)||""})})]})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(h.ZP,{flexDirection:"column",children:(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Number of slave instances"})}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){var n=e.target.value||"";(""===n||/^\d+$/.exec(n))&&d({slave_instance_count:n})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. 2",value:(null===f||void 0===f?void 0:f.slave_instance_count)||""})})]})})]}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsx)(de,{addButtonText:"Add Spark configuration",addTextInputPlaceholder:"e.g. spark.driver.cores",alreadyExistsMessage:"Spark configuration exists",configurationValuePlaceholder:"e.g. 4g",configurations:null===f||void 0===f?void 0:f.master_spark_properties,createButtonText:"Create Spark configuration",description:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(Z.ZP,{muted:!0,children:["List of key-value pairs to be set in ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,children:"SparkConf"})," for the master instance."]}),(0,P.jsxs)(Z.ZP,{muted:!0,children:["For a list of all configurations, see the ",(0,P.jsx)(X.Z,{href:"https://spark.apache.org/docs/latest/configuration.html",inline:!0,openNewWindow:!0,children:"Spark configuration documentation"}),"."]})]}),emptyState:"There are currently no Spark configurations for the master instance.",setConfigurations:function(e){return d({master_spark_properties:e})},title:"Master Spark configurations"}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsx)(de,{addButtonText:"Add Spark configuration",addTextInputPlaceholder:"e.g. spark.driver.cores",alreadyExistsMessage:"Spark configuration exists",configurationValuePlaceholder:"e.g. 4g",configurations:null===f||void 0===f?void 0:f.slave_spark_properties,createButtonText:"Create Spark configuration",description:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(Z.ZP,{muted:!0,children:["List of key-value pairs to be set in ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,children:"SparkConf"})," for the slave instance."]}),(0,P.jsxs)(Z.ZP,{muted:!0,children:["For a list of all configurations, see the ",(0,P.jsx)(X.Z,{href:"https://spark.apache.org/docs/latest/configuration.html",inline:!0,openNewWindow:!0,children:"Spark configuration documentation"}),"."]})]}),emptyState:"There are currently no Spark configurations for the slave instance.",setConfigurations:function(e){return d({slave_spark_properties:e})},title:"Slave Spark configurations"}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsxs)(k.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(h.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(j.Z,{level:4,children:"Security"}),(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsx)(Z.ZP,{muted:!0,children:"Configure security groups for EMR cluster instances."})})]})})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Master security group"}),(0,P.jsxs)(Z.ZP,{muted:!0,small:!0,children:["The default managed security group is ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"ElasticMapReduce-master"}),"."]})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return d({master_security_group:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. sg-xxxxxxxxxxxx",value:(null===f||void 0===f?void 0:f.master_security_group)||""})})]})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Slave security group"}),(0,P.jsxs)(Z.ZP,{muted:!0,small:!0,children:["The default managed security group is ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"ElasticMapReduce-slave"}),"."]})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return d({slave_security_group:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. sg-yyyyyyyyyyyy",value:(null===f||void 0===f?void 0:f.slave_security_group)||""})})]})})]}),(0,P.jsx)(g.Z,{mb:b.HN})]}),(0,P.jsxs)(h.ZP,{children:[(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(w.vc,{}),disabled:!t||!(null!==(n=Object.keys(t))&&void 0!==n&&n.length),loading:r,onClick:function(){return i()},primary:!0,children:"Save changes"}),c&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(a.ZP,{onClick:function(){return null===c||void 0===c?void 0:c()},secondary:!0,children:"Cancel and go back"})]})]})]})},he=t(21831),je=t(77456),xe=t(86735);function ge(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ze(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ge(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ge(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var be=function(e){var n,t,r=e.attributesTouched,i=e.computeService,o=e.isLoading,c=e.mutateObject,s=e.objectAttributes,u=e.onCancel,d=e.selectedComputeService,p=e.setObjectAttributes,f=(0,l.useCallback)((function(e){return p({emr_config:Ze(Ze({},null===s||void 0===s?void 0:s.emr_config),e)})}),[s,p]),m=(0,l.useCallback)((function(e){return p({spark_config:Ze(Ze({},null===s||void 0===s?void 0:s.spark_config),e)})}),[s,p]),y=(0,l.useMemo)((function(){return(null===s||void 0===s?void 0:s.emr_config)||{}}),[s]),O=(0,l.useMemo)((function(){return(null===s||void 0===s?void 0:s.spark_config)||{}}),[s]),_=(0,l.useRef)(null),S=((0,l.useRef)(null),(0,l.useState)(!1)),I=S[0],E=S[1],T=(0,l.useState)(null),A=T[0],D=T[1],R=(0,l.useMemo)((function(){return(null===O||void 0===O?void 0:O.spark_jars)||[]}),[O]),M=(0,l.useMemo)((function(){return(null===R||void 0===R?void 0:R.length)>=1}),[R]),N=(0,l.useMemo)((function(){return(R||[]).includes(A)}),[R,A]),B=(0,l.useMemo)((function(){return(0,P.jsxs)(h.ZP,{alignItems:"center",children:[!I&&(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(w.mm,{}),compact:!0,onClick:function(e){(0,H.j)(e),E(!0),setTimeout((function(){var e;return null===_||void 0===_||null===(e=_.current)||void 0===e?void 0:e.focus()}),1)},secondary:!M,small:!0,children:"Add JAR file"}),I&&(0,P.jsxs)(P.Fragment,{children:[N&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Z.ZP,{danger:!0,small:!0,children:"JAR file exists"}),(0,P.jsx)(g.Z,{mr:1})]}),(0,P.jsx)(ce.Z,{autoComplete:"off",compact:!0,meta:{touched:!!N,error:""},monospace:!0,onClick:function(e){return(0,H.j)(e)},paddingVertical:b.iI/2-2,onChange:function(e){(0,H.j)(e),D(e.target.value)},ref:_,small:!0,value:A||""}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsx)(a.ZP,{disabled:N,compact:!0,onClick:function(e){(0,H.j)(e),N||(m({spark_jars:R.concat(A)}),E(!1),D(null))},primary:!0,small:!0,children:"Add JAR file"}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsx)(a.ZP,{compact:!0,onClick:function(e){(0,H.j)(e),E(!1),D(null)},secondary:!0,small:!0,children:"Cancel"})]})]})}),[N,R,M,I,A,_,E,D]),z=(0,l.useMemo)((function(){return null===R||void 0===R?void 0:R.map((function(e,n){return(0,P.jsxs)("div",{children:[(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(a.ZP,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){var e=(0,he.Z)(R);m({spark_jars:(0,xe.oM)(e,n)})},children:(0,P.jsx)(w.rF,{default:!0,size:se.Z})}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsxs)(Z.ZP,{default:!0,large:!0,monospace:!0,children:["File ",n+1]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,fullWidth:!0,large:!0,monospace:!0,noBackground:!0,noBorder:!0,onChange:function(e){var t=(0,he.Z)(R);t[n]=e.target.value,m({spark_jars:t})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. /home/path/example1.jar",value:e||""})})]})})]},e)}))}),[R,m]),F=(0,l.useMemo)((function(){var e="remote_variables_dir",n=null===i||void 0===i?void 0:i.setup_steps,t=null===n||void 0===n?void 0:n.find((function(n){return n.uuid===e}));return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsxs)(Z.ZP,{danger:!(null!==s&&void 0!==s&&s.remote_variables_dir)||!(null===t||void 0===t||!t.error),default:!0,large:!0,children:["Remote variables directory ",!(null!==s&&void 0!==s&&s.remote_variables_dir)&&(0,P.jsx)(Z.ZP,{danger:!0,inline:!0,large:!0,children:"is required"})]}),(0,P.jsx)(Z.ZP,{muted:!0,small:!0,children:"This S3 bucket will be used by Spark."})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,large:!0,monospace:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return p({remote_variables_dir:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. s3://magically-powerful-bucket",value:(null===s||void 0===s?void 0:s.remote_variables_dir)||""}),(null===t||void 0===t?void 0:t.error)&&(0,P.jsx)(h.ZP,{justifyContent:"flex-end",children:(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsx)(je.Z,{error:null===t||void 0===t?void 0:t.error})})})]})]})})]})}),[i,s,p]);return(0,P.jsxs)(se.N,{children:[(0,P.jsxs)(k.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(j.Z,{level:4,children:"Setup"})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsxs)(Z.ZP,{danger:"app_name"in r&&!(null!==O&&void 0!==O&&O.app_name),default:!0,large:!0,children:["Application name ","app_name"in r&&!(null!==O&&void 0!==O&&O.app_name)&&(0,P.jsx)(Z.ZP,{danger:!0,inline:!0,large:!0,children:"is required"})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return m({app_name:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. Sparkmage",value:(null===O||void 0===O?void 0:O.app_name)||""})})]})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsxs)(Z.ZP,{danger:"spark_master"in r&&!(null!==O&&void 0!==O&&O.spark_master),default:!0,large:!0,children:["Master URL ","spark_master"in r&&!(null!==O&&void 0!==O&&O.spark_master)&&(0,P.jsx)(Z.ZP,{danger:!0,inline:!0,large:!0,children:"is required"})]}),(0,P.jsx)(Z.ZP,{muted:!0,small:!0,children:"The URL for connecting to the master."})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return m({spark_master:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. local, yarn, spark://host:port",value:(null===O||void 0===O?void 0:O.spark_master)||""})})]})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Spark home directory"}),(0,P.jsx)(Z.ZP,{muted:!0,small:!0,children:"Path where Spark is installed on worker nodes."})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,large:!0,monospace:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return m({spark_home:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. /usr/lib/spark",value:(null===O||void 0===O?void 0:O.spark_home)||""})})]})}),pe.GO.AWS_EMR===d&&F]}),(0,P.jsx)(g.Z,{mb:b.HN}),(null===i||void 0===i?void 0:i.connection_credentials)&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(k.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(j.Z,{level:4,children:"Credentials"})}),null===i||void 0===i||null===(n=i.connection_credentials)||void 0===n?void 0:n.map((function(e){var n=e.description,t=e.error,r=e.name,i=e.required,o=e.uuid,l=e.valid,c=e.value;return(0,P.jsxs)("div",{children:[(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsxs)(Z.ZP,{danger:!l,default:!0,large:!0,monospace:!r,children:[r||o," ",!l&&(0,P.jsx)(Z.ZP,{danger:!0,inline:!0,large:!0,children:"is invalid"})]}),n&&(0,P.jsx)(Z.ZP,{muted:!0,small:!0,children:n})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsxs)(x.Z,{flex:1,justifyContent:"flex-end",children:[!l&&(0,P.jsxs)(P.Fragment,{children:[!t&&i&&(0,P.jsx)(Z.ZP,{muted:!0,large:!0,children:"Required but missing"}),!t&&!i&&(0,P.jsx)(Z.ZP,{muted:!0,large:!0,children:"Invalid"}),t&&(0,P.jsx)(je.Z,{error:t,large:!0})]}),l&&c&&(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:c})]})]})})]},o)}))]}),(0,P.jsx)(g.Z,{mb:b.HN})]}),(0,P.jsxs)(k.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(j.Z,{level:4,children:"Customizations"})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Use custom session"}),(0,P.jsxs)(Z.ZP,{muted:!0,small:!0,children:["Whether to create custom SparkSession via",(0,P.jsx)("br",{}),"code and set it in ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"kwargs['context']"}),"."]})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,justifyContent:"flex-end",children:(0,P.jsx)(C.Z,{checked:null===O||void 0===O?void 0:O.use_custom_session,compact:!0,onCheck:function(e){return m({use_custom_session:e(null===O||void 0===O?void 0:O.use_custom_session)})}})})]})}),(null===O||void 0===O?void 0:O.use_custom_session)&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Custom session variable"}),(0,P.jsxs)(Z.ZP,{muted:!0,small:!0,children:["The variable name to set in ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"kwargs['context']"}),",",(0,P.jsx)("br",{}),"e.g. If variable name is ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"spark"})," then the Spark session",(0,P.jsx)("br",{}),"is accessed using ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"kwargs['context']['spark']"}),"."]})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,large:!0,monospace:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return m({custom_session_var_name:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. spark",value:(null===O||void 0===O?void 0:O.custom_session_var_name)||""})})]})})]}),pe.GO.AWS_EMR===d&&(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Bootstrap script path"}),(0,P.jsx)(Z.ZP,{muted:!0,small:!0,children:"Use a custom script to bootstrap the EMR cluster."})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return f({bootstrap_script_path:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. /path/to/emr_bootstrap.sh",value:(null===y||void 0===y?void 0:y.bootstrap_script_path)||""})})]})})]}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsx)(de,{addButtonText:"Add environment variable",addTextInputPlaceholder:"e.g. PYTHONPATH",alreadyExistsMessage:"Environment variable exists",configurationValuePlaceholder:"e.g. /home/path",configurations:null===O||void 0===O?void 0:O.executor_env,createButtonText:"Create environment variable",description:(0,P.jsx)(Z.ZP,{muted:!0,children:"Environment variables for the executor."}),emptyState:"There are currently no executor environment variables.",setConfigurations:function(e){return m({executor_env:e})},title:"Environment variables"}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsxs)(k.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"flex-start",justifyContent:"space-between",children:[(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(j.Z,{level:4,children:"JAR files"}),(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsxs)(Z.ZP,{muted:!0,children:["These files will be to be uploaded to the cluster and added to the ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,children:"classpath"}),"."]})})]}),(0,P.jsx)(g.Z,{mr:b.cd}),M&&(0,P.jsx)(h.ZP,{alignItems:"center",children:B})]})}),!M&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(v.Z,{light:!0}),(0,P.jsxs)(g.Z,{p:b.cd,children:[(0,P.jsx)(g.Z,{mb:b.cd,children:(0,P.jsx)(Z.ZP,{default:!0,children:"There are currently no JAR files."})}),(0,P.jsx)(h.ZP,{alignItems:"center",children:B})]})]}),M&&z]}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsxs)(h.ZP,{children:[(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(w.vc,{}),disabled:!r||!(null!==(t=Object.keys(r))&&void 0!==t&&t.length),loading:o,onClick:function(){return c()},primary:!0,children:"Save changes"}),u&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(a.ZP,{onClick:function(){return null===u||void 0===u?void 0:u()},secondary:!0,children:"Cancel and go back"})]})]})]})},Pe=t(35185);var ye=function(e){var n=e.computeService,t=e.onClick,r=(0,l.useMemo)((function(){var e,t=[],r=0;return null===n||void 0===n||null===(e=n.setup_steps)||void 0===e||e.forEach((function(e){var n=e.group,i=e.required,o=e.status_calculated,l=e.steps;n?null===l||void 0===l||l.forEach((function(e){t.push(e);var n=e.required,i=e.status_calculated;n&&pe.br.COMPLETED!==i||(r+=1)})):(t.push(e),i&&pe.br.COMPLETED!==o||(r+=1))})),{steps:t,stepsCompleted:r}}),[n]),i=r.steps,o=r.stepsCompleted,c=(0,l.useMemo)((function(){return(null===i||void 0===i?void 0:i.length)||1}),[i]),s=(0,l.useMemo)((function(){return o/c}),[o,c]);return(0,P.jsxs)(X.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:t?function(){return null===t||void 0===t?void 0:t()}:null,preventDefault:!0,children:[(0,P.jsx)(v.Z,{light:!0}),(0,P.jsxs)(g.Z,{p:b.cd,children:[(0,P.jsx)(g.Z,{mb:1,children:(0,P.jsxs)(Z.ZP,{monospace:!0,muted:!0,children:[(0,P.jsx)(Z.ZP,{default:!0,inline:!0,children:o})," / ",(0,P.jsx)(Z.ZP,{default:!0,inline:!0,children:c})," ",(0,M._6)("step",c,!1,!0)," completed"]})}),(0,P.jsx)(Pe.Z,{progress:100*s})]}),(0,P.jsx)(v.Z,{light:!0})]})},Oe=t(78688),_e=t(72748),ke=t(32013),Se=t(98777);function Ie(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ce(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ie(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ie(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ee="Environment",we="Executors";var Te=function(e){e.objectAttributes;var n,t=(0,l.useContext)(A.ThemeContext),r=(0,l.useState)(Ee),i=r[0],o=r[1],c=E.ZP.spark_executors.list().data,u=(0,l.useMemo)((function(){return null===c||void 0===c?void 0:c.spark_executors}),[c]),a=E.ZP.spark_environments.detail("0").data,d=(0,l.useMemo)((function(){return null===a||void 0===a?void 0:a.spark_environment}),[a]),p=(0,l.useMemo)((function(){var e,n,t,r,i,o,c;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(g.Z,{px:b.cd,children:(0,P.jsxs)(ke.Z,{noBoxShadow:!0,children:[(0,P.jsxs)(Se.Z,{noPaddingContent:!0,title:"Runtime",children:[(0,P.jsx)(I.Z,{columnFlex:[null,null],columns:[{uuid:"Property"},{uuid:"Value"}],rows:null===(e=Object.entries((null===d||void 0===d?void 0:d.runtime)||{}))||void 0===e?void 0:e.map((function(e){return[(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"property"}),e[0]),(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"value"}),e[1])]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(Se.Z,{noPaddingContent:!0,title:"Hadoop properties",children:[(0,P.jsx)(I.Z,{columnFlex:[null,null],columns:[{uuid:"Property"},{uuid:"Value"}],rows:null===d||void 0===d||null===(n=d.hadoop_properties)||void 0===n?void 0:n.map((function(e){return[(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"property"}),e[0]),(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"value"}),e[1])]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(Se.Z,{noPaddingContent:!0,title:"Metrics properties",children:[(0,P.jsx)(I.Z,{columnFlex:[null,null],columns:[{uuid:"Property"},{uuid:"Value"}],rows:null===d||void 0===d||null===(t=d.metrics_properties)||void 0===t?void 0:t.map((function(e){return[(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"property"}),e[0]),(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"value"}),e[1])]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(Se.Z,{noPaddingContent:!0,title:"Spark properties",children:[(0,P.jsx)(I.Z,{columnFlex:[1,4],columns:[{uuid:"Property"},{uuid:"Value"}],rows:null===d||void 0===d||null===(r=d.spark_properties)||void 0===r?void 0:r.map((function(e){return[(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"property"}),e[0]),(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"value"}),e[1])]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(Se.Z,{noPaddingContent:!0,title:"System properties",children:[(0,P.jsx)(I.Z,{columnFlex:[null,null],columns:[{uuid:"Property"},{uuid:"Value"}],rows:null===d||void 0===d||null===(i=d.system_properties)||void 0===i?void 0:i.map((function(e){return[(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"property"}),e[0]),(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"value"}),e[1])]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(Se.Z,{noPaddingContent:!0,title:"Classpath entries",children:[(0,P.jsx)(I.Z,{columnFlex:[null,null],columns:[{uuid:"Type"},{uuid:"Value"}],rows:null===d||void 0===d||null===(o=d.classpath_entries)||void 0===o?void 0:o.map((function(e){return[(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"type"}),e[1]),(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"value"}),e[0])]}))}),(0,P.jsx)(g.Z,{p:1})]})]})}),null===d||void 0===d||null===(c=d.resource_profiles)||void 0===c?void 0:c.map((function(e){var n=e.executor_resources,t=e.id,r=e.task_resources;return(0,P.jsxs)("div",{children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(j.Z,{level:4,children:["Executor resources ID ",t]})}),(0,P.jsx)(g.Z,{px:b.cd,children:(0,P.jsx)(ke.Z,{noBoxShadow:!0,children:Object.entries(n||{}).map((function(e){var n,t=(0,s.Z)(e,2),r=t[0],i=t[1];return(0,P.jsxs)(Se.Z,{noPaddingContent:!0,title:(0,M.vg)(r),children:[(0,P.jsx)(I.Z,{columnFlex:[1,2],columns:[{uuid:"Property"},{uuid:"Value"}],rows:null===(n=Object.entries(i))||void 0===n?void 0:n.map((function(e){return[(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"property"}),(0,M.vg)(e[0])),(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"value"}),e[1]||"-")]}))}),(0,P.jsx)(g.Z,{p:1})]},r)}))})}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(j.Z,{level:4,children:["Task resources ID ",t]})}),(0,P.jsx)(g.Z,{px:b.cd,children:(0,P.jsx)(ke.Z,{noBoxShadow:!0,children:Object.entries(r||{}).map((function(e){var n,t=(0,s.Z)(e,2),r=t[0],i=t[1];return(0,P.jsxs)(Se.Z,{noPaddingContent:!0,title:(0,M.vg)(r),children:[(0,P.jsx)(I.Z,{columnFlex:[1,2],columns:[{uuid:"Property"},{uuid:"Value"}],rows:null===(n=Object.entries(i))||void 0===n?void 0:n.map((function(e){return[(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"property"}),(0,M.vg)(e[0])),(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"value"}),e[1]||"-")]}))}),(0,P.jsx)(g.Z,{p:1})]},r)}))})})]},t)}))]})}),[d]),f=(0,l.useMemo)((function(){return null===u||void 0===u?void 0:u.map((function(e){return(0,P.jsxs)("div",{children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(j.Z,{level:4,children:["Executor ",null===e||void 0===e?void 0:e.id]})}),(0,P.jsx)(g.Z,{px:b.cd,children:(0,P.jsxs)(ke.Z,{noBoxShadow:!0,children:[(0,P.jsxs)(Se.Z,{noPaddingContent:!0,title:"Metrics",children:[(0,P.jsx)(I.Z,{columnFlex:[1,2],columns:[{uuid:"Metric"},{uuid:"Value"}],rows:["active_tasks","add_time","completed_tasks","disk_used","failed_tasks","host_port","is_active","is_blacklisted","is_excluded","max_memory","max_tasks","memory_used","rdd_blocks","resource_profile_id","total_cores","total_duration","total_gc_time","total_input_bytes","total_shuffle_read","total_shuffle_write","total_tasks"].map((function(n){var t=null===e||void 0===e?void 0:e[n];return[(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"property"}),(0,M.vg)(n)),(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"value"}),"undefined"===typeof t?"-":"boolean"===typeof t?String(t):t)]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(Se.Z,{noPaddingContent:!0,title:"Memory metrics",children:[(0,P.jsx)(I.Z,{columnFlex:[1,2],columns:[{uuid:"Metric"},{uuid:"Value"}],rows:Object.entries((null===e||void 0===e?void 0:e.memory_metrics)||{}).map((function(e){var n=(0,s.Z)(e,2),t=n[0],r=n[1];return[(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"property"}),(0,M.vg)(t)),(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"value"}),"undefined"===typeof r?"-":"boolean"===typeof r?String(r):r)]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(Se.Z,{noPaddingContent:!0,title:"Peak memory metrics",children:[(0,P.jsx)(I.Z,{columnFlex:[1,2],columns:[{uuid:"Metric"},{uuid:"Value"}],rows:Object.entries((null===e||void 0===e?void 0:e.peak_memory_metrics)||{}).map((function(e){var n=(0,s.Z)(e,2),t=n[0],r=n[1];return[(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"property"}),(0,M.vg)(t)),(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"value"}),"undefined"===typeof r?"-":"boolean"===typeof r?String(r):r)]}))}),(0,P.jsx)(g.Z,{p:1})]})]})})]},null===e||void 0===e?void 0:e.id)}))}),[u]);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(g.Z,{px:b.cd,children:(0,P.jsx)(q.Z,{noPadding:!0,onClickTab:function(e){var n=e.uuid;return o(n)},regularSizeText:!0,selectedTabUUID:i,tabs:[{label:function(){return Ee},uuid:Ee},{label:function(){return we},uuid:we}],underlineColor:null===t||void 0===t||null===(n=t.accent)||void 0===n?void 0:n.blue,underlineStyle:!0})}),(0,P.jsx)(g.Z,{mb:b.cd,children:(0,P.jsx)(v.Z,{light:!0})}),Ee===i&&p,we===i&&f]})},Ae=t(62547),De=t(23657),Re=t(74778),Me=t(46684),Ne=t(53808),Be=t(10332),He=t(15610),ze=t(69419),Fe=t(19183);function Le(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ge(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Le(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Le(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var We=function(e){var n,t=e.contained,r=e.heightOffset,i=e.mainContainerRef,o=(0,Fe.i)(),d=o.height,p=(o.width,(0,l.useMemo)((function(){return"ComputeManagement/".concat(t?"contained":"open")}),[t])),f=(0,L.VI)(null,{},[],{uuid:p}),m=(0,s.Z)(f,1)[0],v=((0,l.useRef)(null),(0,l.useRef)(null),(0,l.useRef)(null),(0,l.useRef)(null)),y=(0,l.useMemo)((function(){return d-(r||0)}),[r,d]),O=(0,l.useState)(!1),_=O[0],k=O[1],S=(0,l.useState)(null),I=S[0],C=S[1],T=(0,De.Z)({clustersRefreshInterval:1e4,includeAllStates:_}),A=T.activeCluster,D=T.clusters,R=T.clustersLoading,M=T.computeService,N=T.connections,H=T.connectionsLoading,F=T.fetchAll,G=T.setupComplete,W=(0,l.useState)(null),U=W[0],V=W[1];(0,l.useEffect)((function(){var e;V(null===v||void 0===v||null===(e=v.current)||void 0===e?void 0:e.getBoundingClientRect())}),[d,v]);var q=(0,l.useMemo)((function(){return"compute_management_after_width_".concat(p)}),[p]),J=(0,l.useMemo)((function(){return"compute_management_before_width_".concat(p)}),[p]),K=(0,l.useState)((0,Ne.U2)(q,60*b.iI)),Q=K[0],ee=K[1],ne=(0,l.useCallback)((function(e){ee(e),(0,Ne.t8)(q,Math.max(e,60*b.iI))}),[q,ee]),te=(0,l.useState)(!1),re=te[0],ie=te[1],oe=(0,l.useState)(Math.max((0,Ne.U2)(J),20*b.iI)),ce=oe[0],se=oe[1],ue=(0,l.useCallback)((function(e){se(e||20*b.iI),(0,Ne.t8)(J,e||20*b.iI)}),[J,se]),ae=(0,l.useState)(!1),de=ae[0],pe=ae[1],fe=(0,l.useState)(!0),me=fe[0],he=fe[1],je=(0,l.useState)(null),xe=je[0],ge=je[1],Ze=(0,l.useCallback)((function(e){ge((function(n){var t=e(n);return t&&me?he(!1):t||me||!G||he(!0),t}))}),[me,he,ge,G]),Pe=(0,l.useState)(null),ke=Pe[0],Se=Pe[1],Ie=(0,l.useCallback)((function(e){var n;(0,He.u)((0,c.Z)({},"tab",null===(n="function"===typeof e?null===e||void 0===e?void 0:e():e)||void 0===n?void 0:n.main)),Ze((function(){return null}))}),[Ze]),Ce=(0,ze.iV)();(0,l.useEffect)((function(){var e=null===Ce||void 0===Ce?void 0:Ce.tab;(null===ke||void 0===ke?void 0:ke.main)!==e&&Se(e?{main:e}:null)}),[ke,Ce]);var Ee=(0,l.useState)(null),we=Ee[0],Le=Ee[1],We=(0,l.useState)({}),Ue=We[0],Ve=We[1],Ye=(0,l.useCallback)((function(e){Ve((function(n){return Ge(Ge({},n),e)})),Le((function(n){return Ge(Ge({},n),e)}))}),[Ve,Le]),Xe=((0,l.useCallback)((function(e){return Ye({spark_config:Ge(Ge({},null===we||void 0===we?void 0:we.spark_config),e)})}),[we,Ye]),E.ZP.projects.list({},{revalidateOnFocus:!1}).data),qe=(0,l.useMemo)((function(){var e;return null===Xe||void 0===Xe||null===(e=Xe.projects)||void 0===e?void 0:e[0]}),[Xe]),Je=(0,l.useMemo)((function(){return null===qe||void 0===qe?void 0:qe.name}),[qe]),Ke=E.ZP.spark_applications.list().data,Qe=(0,l.useMemo)((function(){return null===Ke||void 0===Ke?void 0:Ke.spark_applications}),[Ke]),$e=E.ZP.spark_jobs.list().data,en=(0,l.useMemo)((function(){return null===$e||void 0===$e?void 0:$e.spark_jobs}),[$e]);(0,l.useEffect)((function(){he(G)}),[G]),(0,l.useEffect)((function(){qe&&(Le(qe),C((0,Be.d)(qe)))}),[qe,Le,C,Ie]),(0,l.useEffect)((function(){!ke&&I&&Ie({main:$.uK.SETUP})}),[I,ke,Ie]);var nn=(0,u.Db)(E.ZP.projects.useUpdate(Je),{onSuccess:function(e){return(0,B.wD)(e,{callback:function(e){var n=e.project;Ve({}),Le(n),F()},onErrorCallback:function(e,n){return m({errors:n,response:e})}})}}),tn=(0,s.Z)(nn,2),rn=tn[0],on=tn[1].isLoading,ln=(0,l.useCallback)((function(e){return rn({project:(0,z.GL)(Ge(Ge({},we),e),["emr_config","remote_variables_dir","spark_config"])})}),[we,rn]),cn=(0,l.useMemo)((function(){var e=(0,$.kI)(M).map((function(e){var n,t=e.Icon,r=e.renderStatus,i=e.uuid;return r&&(n=null===r||void 0===r?void 0:r({applications:Qe,applicationsLoading:!Ke,clusters:D,clustersLoading:R,computeConnections:N,computeService:M,jobs:en,jobsLoading:!$e})),(0,P.jsx)(X.Z,{block:!0,disabled:!I,noHoverUnderline:!0,noOutline:!0,onClick:function(){return Ie((function(){return{main:i}}))},preventDefault:!0,children:(0,P.jsx)(Re.bC,{selected:(null===ke||void 0===ke?void 0:ke.main)===i,children:(0,P.jsxs)(h.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"space-between",children:[(0,P.jsxs)(x.Z,{alignItems:"center",flex:1,children:[(0,P.jsx)(t,{size:2*b.iI}),(0,P.jsx)(g.Z,{mr:2}),(0,P.jsx)(Z.ZP,{bold:!0,large:!0,children:$.TD[i]})]}),n&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(g.Z,{mr:b.cd}),n]})]})})},i)}));if(I){var n=String(I),t=$.l[n],r=$.Eb[n],i=$.LF[n];if(t&&r&&i){var o,l;null!==M&&void 0!==M&&M.setup_steps&&(l=G?A?null!==A&&void 0!==A&&A.ready?"Cluster is ready, commence coding.":"Cluster activated and initializing.":"Setup complete but no clusters activated.":"All setup steps have not been completed yet.");var c=[];null!==M&&void 0!==M&&M.setup_steps&&c.push((0,P.jsx)(g.Z,{py:1,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[G&&(0,P.jsx)(w.Fs,{muted:!(null!==A&&void 0!==A&&A.ready),size:1.5*b.iI,success:null===A||void 0===A?void 0:A.ready}),!G&&(0,P.jsx)(w.uy,{danger:!0,size:1.5*b.iI}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!G||!A,small:!0,children:G&&A?"Compute service connected":"Compute service unconnected"}),l&&(0,P.jsx)(Z.ZP,{muted:!0,xsmall:!0,children:l})]})]})},"compute-service-setup-steps")),(null===M||void 0===M||null===(o=M.setup_steps)||void 0===o?void 0:o.length)>=1&&!G&&e.unshift((0,P.jsx)(ye,{computeService:M,onClick:function(){return he(!1)}},"setupProgress")),e.unshift((0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(Re.UE,{inline:!0,children:[(0,P.jsxs)(h.ZP,{alignItems:"flex-start",children:[(0,P.jsx)(x.Z,{flex:1,children:i()}),(0,P.jsx)(a.ZP,{compact:!0,onClick:function(){C(null),Ie(null)},secondary:!0,small:!0,children:"Change"})]}),(0,P.jsx)(g.Z,{mt:b.cd,children:(0,P.jsx)(h.ZP,{alignItems:"flex-end",children:(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,monospace:!0,children:r}),(0,P.jsx)(j.Z,{level:5,children:t})]})})}),(null===c||void 0===c?void 0:c.length)>=1&&(0,P.jsx)(g.Z,{mt:b.cd,children:c})]})},"".concat(t,"-").concat(r)))}}return e}),[A,Qe,D,R,M,N,Ke,$e,en,I,ke,he,Ie,G]),sn=(0,l.useMemo)((function(){var e;return xe?(0,P.jsx)(_e.Z,{height:y-(((null===U||void 0===U?void 0:U.height)||0)+Me.Mz+1),model:xe}):(null===M||void 0===M||null===(e=M.setup_steps)||void 0===e?void 0:e.length)>=1?(0,P.jsx)(Oe.Z,{onClickStep:function(e){return Ie((function(){return{main:e}}))},setupSteps:null===M||void 0===M?void 0:M.setup_steps}):void 0}),[M,y,xe,G]),un=(0,l.useMemo)((function(){return(0,P.jsx)(be,{attributesTouched:Ue||{},computeService:M,isLoading:on,mutateObject:ln,objectAttributes:we,selectedComputeService:I,setObjectAttributes:Ye})}),[Ue,M,on,we,I,Ye,ln]),an=(0,l.useMemo)((function(){return(0,P.jsx)(ve,{attributesTouched:Ue||{},isLoading:on,mutateObject:ln,objectAttributes:we,selectedComputeService:I,setObjectAttributes:Ye})}),[Ue,on,we,I,Ye,ln]),dn=(0,l.useMemo)((function(){if([$.B2.AWS_EMR,$.B2.STANDALONE_CLUSTER].includes(I))return(0,P.jsx)(le,{applications:Qe,computeConnections:N,computeService:M,connectionsLoading:H,fetchAll:F,jobs:en,loadingApplications:!Ke,loadingJobs:!$e,objectAttributes:we,refButtonTabs:v,selectedComputeService:I,setSelectedSql:Ze,setSelectedTab:Ie})}),[Qe,M,N,H,F,Ke,$e,en,we,v,I,Ze,Ie]),pn=(0,l.useMemo)((function(){if([$.B2.AWS_EMR,$.B2.STANDALONE_CLUSTER].includes(I))return(0,P.jsx)(Te,{objectAttributes:we})}),[we,I]),fn=(0,l.useMemo)((function(){return(0,P.jsxs)(g.Z,{mx:1,py:b.cd,children:[(0,P.jsx)(g.Z,{mb:b.cd,px:b.cd,children:(0,P.jsx)(j.Z,{children:"Select a compute service"})}),(0,P.jsx)(h.ZP,{alignItems:"center",flexWrap:"wrap",children:$.sY.map((function(e){var n=e.buildPayload,t=e.displayName,r=e.documentationHref,i=e.kicker,o=e.renderIcon,l=e.uuid;return(0,P.jsxs)(Re.UE,{children:[o(),(0,P.jsxs)(g.Z,{mt:b.cd,children:[(0,P.jsx)(Z.ZP,{default:!0,monospace:!0,children:i}),(0,P.jsx)(j.Z,{level:4,children:t})]}),(0,P.jsx)(g.Z,{mt:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(a.ZP,{loading:on&&l===I,onClick:function(){C(l),ln(n(we))},primary:!0,children:"Enable"}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(X.Z,{href:r,default:!0,openNewWindow:!0,children:"View setup documentation"})]})})]},l)}))})]})}),[on,we,I,C,ln]),mn=(0,l.useMemo)((function(){return(0,P.jsx)(Y,{clusters:D,computeService:M,fetchAll:F,includeAllStates:_,loading:R,setIncludeAllStates:k})}),[D,R,M,F,_,k]),vn=(0,l.useMemo)((function(){if(!I&&we)return fn;if(I&&qe&&null!==ke&&void 0!==ke&&ke.main){var e=null===ke||void 0===ke?void 0:ke.main;if($.uK.SETUP===e)return un;if($.uK.RESOURCES===e)return an;if($.uK.MONITORING===e)return dn;if($.uK.SYSTEM===e)return pn;if($.uK.CLUSTERS===e)return mn}}),[mn,fn,dn,we,qe,an,I,ke,un,pn]);return(0,P.jsx)(Ae.Z,{after:sn,afterDividerContrast:!0,afterHeightOffset:Me.Mz,afterHidden:me&&!xe,afterMousedownActive:re,afterWidth:Q,before:cn,beforeDividerContrast:!0,beforeHeightOffset:0,beforeHidden:!I,beforeMousedownActive:de,beforeWidth:ce,contained:!0,height:y,hideAfterCompletely:!(null!==M&&void 0!==M&&null!==(n=M.setup_steps)&&void 0!==n&&n.length),hideBeforeCompletely:!I,inline:!0,mainContainerRef:i,setAfterHidden:he,setAfterMousedownActive:ie,setAfterWidth:ne,setBeforeMousedownActive:pe,setBeforeWidth:ue,uuid:p,children:vn})},Ue=t(94629),Ve=t(93808);function Ye(){var e=(0,l.useRef)(null);return(0,P.jsx)(Ue.Z,{title:"Compute management",uuid:"Compute management/index",children:(0,P.jsx)("div",{ref:e,children:(0,P.jsx)(We,{heightOffset:Me.Mz,mainContainerRef:e})})})}Ye.getInitialProps=(0,r.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var Xe=(0,Ve.Z)(Ye)},23657:function(e,n,t){"use strict";var r=t(82394),i=t(75582),o=t(82684),l=t(74260),c=t(35686),s=t(77417);function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function 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,r.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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.clustersRefreshInterval,t=e.computeServiceRefreshInterval,u=e.connectionsRefreshInterval,d=e.includeAllStates,p=(0,s.Z)(),f=p.sparkEnabled,m=c.ZP.compute_services.detail("compute-service",{},{refreshInterval:t},{pauseFetch:!f}),v=m.data,h=m.mutate,j=(0,o.useMemo)((function(){return null===v||void 0===v?void 0:v.compute_service}),[v]),x={};d&&(x.include_all_states=!0);var g=c.ZP.compute_clusters.compute_services.list(null===j||void 0===j?void 0:j.uuid,x,{refreshInterval:n},{pauseFetch:!f}),Z=g.data,b=g.mutate,P=(0,o.useMemo)((function(){return(null===Z||void 0===Z?void 0:Z.compute_clusters)||[]}),[Z]),y=(0,o.useMemo)((function(){return null===P||void 0===P?void 0:P.map((function(e){return e.cluster}))}),[P]),O=(0,o.useMemo)((function(){var e,n;return null!==j&&void 0!==j&&null!==(e=j.setup_steps)&&void 0!==e&&e.length?null===j||void 0===j||null===(n=j.setup_steps)||void 0===n?void 0:n.every((function(e){var n=e.required,t=e.status_calculated;return!n||!t||l.br.COMPLETED===t})):null}),[j]),_=((0,o.useMemo)((function(){return null===y||void 0===y?void 0:y.find((function(e){return e.active}))}),[y]),c.ZP.compute_connections.compute_services.list(null===j||void 0===j?void 0:j.uuid,{},{refreshInterval:u},{pauseFetch:!f})),k=_.data,S=_.mutate,I=(0,o.useMemo)((function(){return(null===k||void 0===k?void 0:k.compute_connections)||[]}),[k]),C=(0,o.useCallback)((function(){return new Promise((function(){null===b||void 0===b||b(),null===S||void 0===S||S(),null===h||void 0===h||h()}))}),[b,S,h]);return{activeCluster:null===y||void 0===y?void 0:y.find((function(e){return e.active})),clusters:y,clustersLoading:!Z,computeService:j,computeServiceUUIDs:Object.entries(l.GO).reduce((function(e,n){var t=(0,i.Z)(n,2),o=t[0],l=t[1];return a(a({},e),{},(0,r.Z)({},o,l))}),{}),connections:I,connectionsLoading:!k,fetchAll:C,fetchComputeClusters:b,fetchComputeConnections:S,fetchComputeService:h,setupComplete:O}}},42278:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/compute",function(){return t(4910)}])}},function(e){e.O(0,[9774,2678,1154,844,5820,874,9626,8264,7858,5499,5283,3745,3004,2888,179],(function(){return n=42278,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-13a4f6d00e8a1c63.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7869],{59739:function(e,n,t){"use strict";var r=t(56669);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,u){if(u!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},44152:function(e,n,t){"use strict";t.d(n,{r:function(){return s}});var r=t(82684);const i=e=>{let n;const t=new Set,r=(e,r)=>{const i="function"===typeof e?e(n):e;if(i!==n){const e=n;n=r?i:Object.assign({},n,i),t.forEach((t=>t(n,e)))}},i=()=>n,o={setState:r,getState:i,subscribe:e=>(t.add(e),()=>t.delete(e)),destroy:()=>t.clear()};return n=e(r,i,o),o};var o=t(81550);const{useSyncExternalStoreWithSelector:u}=o;const c=e=>{const n="function"===typeof e?(e=>e?i(e):i)(e):e,t=(e,t)=>function(e,n=e.getState,t){const i=u(e.subscribe,e.getState,e.getServerState||e.getState,n,t);return(0,r.useDebugValue)(i),i}(n,e,t);return Object.assign(t,n),t};var l=e=>e?c(e):c;const s=e=>{const n=l((()=>e)),t=(Object.keys(e),(e,t)=>{n.setState((n=>{return{[e]:(r=n[e],i=t,"function"==typeof i?i(r):i)};var r,i}))});return{useGlobalState:e=>{const i=(0,r.useCallback)((n=>n[e]),[e]);return[n(i),(0,r.useCallback)((n=>t(e,n)),[e])]},getGlobalState:e=>n.getState()[e],setGlobalState:t,subscribe:(e,t)=>{n.subscribe(((n,r)=>{n[e]!==r[e]&&t(n[e])}))}}}},1589:function(e,n,t){"use strict";var r=t(82684);var i="function"===typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e===1/n)||e!==e&&n!==n},o=r.useState,u=r.useEffect,c=r.useLayoutEffect,l=r.useDebugValue;function s(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!i(e,t)}catch(r){return!0}}var a="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,n){return n()}:function(e,n){var t=n(),r=o({inst:{value:t,getSnapshot:n}}),i=r[0].inst,a=r[1];return c((function(){i.value=t,i.getSnapshot=n,s(i)&&a({inst:i})}),[e,t,n]),u((function(){return s(i)&&a({inst:i}),e((function(){s(i)&&a({inst:i})}))}),[e]),l(t),t};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:a},73847:function(e,n,t){"use strict";var r=t(82684),i=t(48216);var o="function"===typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e===1/n)||e!==e&&n!==n},u=i.useSyncExternalStore,c=r.useRef,l=r.useEffect,s=r.useMemo,a=r.useDebugValue;n.useSyncExternalStoreWithSelector=function(e,n,t,r,i){var d=c(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s((function(){function e(e){if(!l){if(l=!0,u=e,e=r(e),void 0!==i&&f.hasValue){var n=f.value;if(i(n,e))return c=n}return c=e}if(n=c,o(u,e))return n;var t=r(e);return void 0!==i&&i(n,t)?n:(u=e,c=t)}var u,c,l=!1,s=void 0===t?null:t;return[function(){return e(n())},null===s?void 0:function(){return e(s())}]}),[n,t,r,i]);var h=u(e,d[0],d[1]);return l((function(){f.hasValue=!0,f.value=h}),[h]),a(h),h}},48216:function(e,n,t){"use strict";e.exports=t(1589)},81550:function(e,n,t){"use strict";e.exports=t(73847)},94629:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var r=t(82394),i=t(21831),o=t(82684),u=t(50724),c=t(82555),l=t(97618),s=t(70613),a=t(79626),d=t(68899),f=t(28598);function h(e,n){var t=e.children,r=e.noPadding;return(0,f.jsx)(d.HS,{noPadding:r,ref:n,children:t})}var v=o.forwardRef(h),p=t(62547),b=t(82571),g=t(98464),m=t(77417),y=t(46684),S=t(70515),O=t(53808),x=t(19183);function j(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function w(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,r.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}function C(e,n){e.addProjectBreadcrumbToCustomBreadcrumbs;var t=e.after,r=e.afterHeader,h=e.afterHidden,j=e.afterWidth,C=e.afterWidthOverride,Z=e.appendBreadcrumbs,E=e.before,P=e.beforeWidth,k=e.breadcrumbs,_=e.children,I=e.errors,T=e.headerMenuItems,R=e.headerOffset,A=e.hideAfterCompletely,N=e.mainContainerHeader,D=e.navigationItems,M=e.setAfterHidden,H=e.setErrors,V=e.subheaderChildren,W=e.subheaderNoPadding,L=e.title,F=e.uuid,B=(0,x.i)().width,U="dashboard_after_width_".concat(F),K="dashboard_before_width_".concat(F),G=(0,o.useRef)(null),X=(0,o.useState)(C?j:(0,O.U2)(U,j)),z=X[0],J=X[1],Y=(0,o.useState)(!1),Q=Y[0],q=Y[1],$=(0,o.useState)(E?Math.max((0,O.U2)(K,P),13*S.iI):null),ee=$[0],ne=$[1],te=(0,o.useState)(!1),re=te[0],ie=te[1],oe=(0,o.useState)(null)[1],ue=(0,m.Z)().project,ce=[];k&&ce.push.apply(ce,(0,i.Z)(k)),null!==k&&void 0!==k&&k.length&&!Z||!ue||null!==k&&void 0!==k&&k.length||ce.unshift({bold:!Z,label:function(){return L}}),(0,o.useEffect)((function(){null===G||void 0===G||!G.current||Q||re||null===oe||void 0===oe||oe(G.current.getBoundingClientRect().width)}),[Q,z,re,ee,G,oe,B]),(0,o.useEffect)((function(){Q||(0,O.t8)(U,z)}),[h,Q,z,U]),(0,o.useEffect)((function(){re||(0,O.t8)(K,ee)}),[re,ee,K]);var le=(0,g.Z)(j);return(0,o.useEffect)((function(){C&&le!==j&&J(j)}),[C,j,le]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:L}),(0,f.jsx)(a.Z,{breadcrumbs:ce,menuItems:T}),(0,f.jsxs)(d.Nk,{ref:n,children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(b.Z,{navigationItems:D,showMore:!0})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(p.Z,{after:t,afterHeader:r,afterHeightOffset:y.Mz,afterHidden:h,afterMousedownActive:Q,afterWidth:z,before:E,beforeHeightOffset:y.Mz,beforeMousedownActive:re,beforeWidth:d.k1+(E?ee:0),headerOffset:R,hideAfterCompletely:!M||A,leftOffset:E?d.k1:null,mainContainerHeader:N,mainContainerRef:G,setAfterHidden:M,setAfterMousedownActive:q,setAfterWidth:J,setBeforeMousedownActive:ie,setBeforeWidth:ne,children:[V&&(0,f.jsx)(v,{noPadding:W,children:V}),_]})})]}),I&&(0,f.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===H||void 0===H?void 0:H(null)},children:(0,f.jsx)(c.Z,w(w({},I),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}var Z=o.forwardRef(C)},28385:function(e,n,t){"use strict";var r=t(82394),i=t(75582),o=t(17717),u=t(82684),c=t(80329),l=t(69864),s=t(71180),a=t(75810),d=t(89706),f=t(97618),h=t(55485),v=t(85854),p=t(38276),b=t(4190),g=t(75499),m=t(30160),y=t(35686),S=t(70515),O=t(80330),x=t(3917),j=t(81728),w=t(72619),C=t(95924),Z=t(86735),E=t(28598);function P(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function k(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?P(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.onActionCallback,t=e.pipeline,P=e.selectedBlock,_=e.selectedFilePath,I=e.setErrors,T=e.width,R=(0,c.j)("apiReloads"),A=(0,i.Z)(R,2)[1],N=(0,u.useMemo)((function(){return _?encodeURIComponent(_):P?encodeURIComponent("".concat(null===P||void 0===P?void 0:P.type,"/").concat(null===P||void 0===P?void 0:P.uuid)):null}),[P,_]),D=y.ZP.file_versions.files.list(N,{block_uuid:null===P||void 0===P?void 0:P.uuid,pipeline_uuid:null===t||void 0===t?void 0:t.uuid}),M=D.data,H=D.mutate,V=(0,u.useMemo)((function(){return(null===M||void 0===M?void 0:M.file_versions)||[]}),[M]),W=(0,u.useState)(null),L=W[0],F=W[1],B=(0,u.useMemo)((function(){return null===V||void 0===V?void 0:V[L]}),[L,V]),U=y.ZP.file_contents.detail(B?encodeURIComponent(B.path):null).data,K=(0,u.useMemo)((function(){return null===U||void 0===U?void 0:U.file_content}),[U]),G=(0,u.useMemo)((function(){return(0,O.lU)()}),[]),X=(0,u.useMemo)((function(){var e,n,t;return null===_||void 0===_||null===(e=_.match(G))||void 0===e||null===(n=e[0])||void 0===n||null===(t=n.split("."))||void 0===t?void 0:t[1]}),[_,G]),z=(0,l.Db)(y.ZP.file_contents.useUpdate(N),{onSuccess:function(e){return(0,w.wD)(e,{callback:function(e){var t;_&&H();var i=null===e||void 0===e||null===(t=e.file_content)||void 0===t?void 0:t.path,u="FileEditor/".concat(i);if(i){var c=i.split(o.sep);if("pipelines"===c[0]){var l=c.slice(1,c.length-1).join(o.sep);u="PipelineDetail/".concat(l)}}A((function(e){return k(k({},e),{},(0,r.Z)({},u,Number(new Date)))})),F((function(e){return e+1})),null===n||void 0===n||n(null===e||void 0===e?void 0:e.file_content,{blockUUID:null===P||void 0===P?void 0:P.uuid})},onErrorCallback:function(e,n){return I({errors:n,response:e})}})}}),J=(0,i.Z)(z,2),Y=J[0],Q=J[1].isLoading,q=(0,u.useCallback)((function(e){var n=k({},e);return _||(n.block_uuid=null===P||void 0===P?void 0:P.uuid,n.pipeline_uuid=null===t||void 0===t?void 0:t.uuid),Y({file_content:n})}),[t,P,_,Y]),$=(0,u.useMemo)((function(){var e=V.map((function(e){var n=e.name,t=e.path;return[(0,E.jsxs)(h.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,E.jsxs)(f.Z,{flex:1,children:[(0,E.jsx)(m.ZP,{default:!0,monospace:!0,children:(0,x.JX)(n,{withSeconds:!0})}),(0,E.jsx)(p.Z,{px:2*S.cd,children:(0,E.jsx)(m.ZP,{monospace:!0,children:n})})]}),B&&(null===B||void 0===B?void 0:B.path)===t&&(0,E.jsx)(s.ZP,{compact:!0,loading:Q,onClick:function(e){(0,C.j)(e),q({version:n})},small:!0,children:"Replace with this version"})]},n)]}));if(B){var n=(0,E.jsx)(p.Z,{p:S.cd,children:(0,E.jsx)(b.Z,{},"spinner")});if(K&&(null===K||void 0===K?void 0:K.path)===(null===B||void 0===B?void 0:B.path)){var t=K.content,r=void 0===t?"":t;n=(0,E.jsx)(a.Z,{autoHeight:!0,language:d.nB[X],padding:2*S.iI,readOnly:!0,value:(0,j.Pb)(r)?JSON.stringify(JSON.parse(r),null,2):r,width:T})}e=(0,Z.Hk)([n],L+1,e)}return e}),[K,X,V,Q,B,L,q,T]);return(0,E.jsxs)("div",{style:{width:T},children:[(0,E.jsxs)(p.Z,{p:S.cd,children:[(0,E.jsx)(v.Z,{level:5,children:"File versions"}),(0,E.jsx)(m.ZP,{inline:!0,monospace:!0,children:_?decodeURIComponent(_):null===P||void 0===P?void 0:P.uuid})]}),(0,E.jsx)(g.Z,{buildRowProps:function(e){if(B&&L+1===e)return{renderCell:function(e){return e},renderRow:function(e){return e}}},columnFlex:[1],columns:[{uuid:"Version"}],isSelectedRow:function(e){var n;return(null===(n=V[e])||void 0===n?void 0:n.name)===(null===B||void 0===B?void 0:B.name)},onClickRow:function(e){B?e===L?F(null):e<L?F(e):e>L+1&&F(e-1):F(e)},rows:$})]})}},85385:function(e,n,t){"use strict";t.d(n,{Qq:function(){return v},Z7:function(){return p},cH:function(){return i},du:function(){return f},fp:function(){return d},j5:function(){return h},uM:function(){return a}});var r,i,o=t(82394),u=t(57653),c=t(82359),l=t(72473),s=t(86735),a="sideview",d=90;!function(e){e.ADDON_BLOCKS="addon_blocks",e.BLOCK_SETTINGS="block_settings",e.CALLBACKS="callbacks",e.CHARTS="charts",e.DATA="data",e.EXTENSIONS="power_ups",e.FILE_VERSIONS="file_versions",e.GRAPHS="graphs",e.INTERACTIONS="interactions",e.REPORTS="reports",e.SECRETS="secrets",e.SETTINGS="settings",e.TERMINAL="terminal",e.TREE="tree",e.VARIABLES="variables"}(i||(i={}));i.BLOCK_SETTINGS,i.CALLBACKS,i.CHARTS,i.DATA,i.EXTENSIONS,i.TREE;var f=[i.DATA];function h(e){var n,t,r,o=[{key:i.TREE,label:"Tree"},{buildLabel:function(e){var n=(e.pipeline||{}).widgets,t=void 0===n?[]:n;return(null===t||void 0===t?void 0:t.length)>=1?"Charts (".concat(t.length,")"):"Charts"},key:i.CHARTS},{buildLabel:function(e){var n=e.variables;return(null===n||void 0===n?void 0:n.length)>=1?"Variables (".concat(n.length,")"):"Variables"},key:i.VARIABLES},{buildLabel:function(e){var n=e.secrets;return(null===n||void 0===n?void 0:n.length)>=1?"Secrets (".concat(n.length,")"):"Secrets"},key:i.SECRETS}];return u.qL.PYSPARK!==(null===e||void 0===e||null===(n=e.pipeline)||void 0===n?void 0:n.type)&&o.push.apply(o,[{buildLabel:function(e){e.pipeline;return"Add-on blocks"},key:i.ADDON_BLOCKS},{buildLabel:function(e){var n=(e.pipeline||{}).extensions,t=void 0===n?{}:n,r=0;return Object.values(t).forEach((function(e){var n=e.blocks;r+=(null===n||void 0===n?void 0:n.length)||0})),r>=1?"Power ups (".concat(r,")"):"Power ups"},key:i.EXTENSIONS}]),o.push.apply(o,[{key:i.DATA,label:"Data"},{key:i.TERMINAL,label:"Terminal"},{key:i.BLOCK_SETTINGS,label:"Block settings"}]),null!==e&&void 0!==e&&null!==(t=e.project)&&void 0!==t&&null!==(r=t.features)&&void 0!==r&&r[c.d.INTERACTIONS]&&o.push({key:i.INTERACTIONS,label:"Interactions"}),o}function v(e){return(0,s.HK)(h(e),(function(e){return e.key}))}var p=(r={},(0,o.Z)(r,i.ADDON_BLOCKS,l.EJ),(0,o.Z)(r,i.BLOCK_SETTINGS,l.JG),(0,o.Z)(r,i.CALLBACKS,l.AQ),(0,o.Z)(r,i.CHARTS,l.GQ),(0,o.Z)(r,i.DATA,l.iA),(0,o.Z)(r,i.EXTENSIONS,l.Bf),(0,o.Z)(r,i.INTERACTIONS,l.yd),(0,o.Z)(r,i.SECRETS,l.Yo),(0,o.Z)(r,i.SETTINGS,l.Zr),(0,o.Z)(r,i.TERMINAL,l.oI),(0,o.Z)(r,i.TREE,l.mp),(0,o.Z)(r,i.VARIABLES,l.LO),r)},65956:function(e,n,t){"use strict";var r=t(38626),i=t(55485),o=t(38276),u=t(30160),c=t(44897),l=t(42631),s=t(47041),a=t(70515),d=t(28598),f=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*a.iI,1.5*a.iI,1.5*a.iI),h=r.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],l.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||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 "})),v=r.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],l.n_,l.n_,(function(e){return"\n background-color: ".concat((e.theme.background||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 ")}),f,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),p=r.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*a.iI,s.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*a.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),b=r.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],l.M8,l.YF,1.75*a.iI);n.Z=function(e){var n=e.borderless,t=e.children,r=e.containerRef,c=e.contentContainerRef,l=e.dark,s=e.footer,a=e.fullHeight,f=void 0===a||a,g=e.fullWidth,m=void 0===g||g,y=e.header,S=e.headerHeight,O=e.headerIcon,x=e.headerPaddingVertical,j=e.headerTitle,w=e.maxHeight,C=e.maxWidth,Z=e.minWidth,E=e.noPadding,P=e.overflowVisible,k=e.subtitle,_=e.success;return(0,d.jsxs)(h,{borderless:n,dark:l,fullHeight:f,fullWidth:m,maxHeight:w,maxWidth:C,minWidth:Z,overflowVisible:P,ref:r,success:_,children:[(y||j)&&(0,d.jsxs)(v,{headerPaddingVertical:x,height:S,children:[y&&y,j&&(0,d.jsx)(i.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(i.ZP,{alignItems:"center",children:[O&&O,(0,d.jsx)(o.Z,{ml:O?1:0,children:(0,d.jsx)(u.ZP,{bold:!0,default:!0,children:j})})]})})]}),(0,d.jsxs)(p,{maxHeight:w,noPadding:E,overflowVisible:P,ref:c,children:[k&&"string"===typeof k&&(0,d.jsx)(o.Z,{mb:2,children:(0,d.jsx)(u.ZP,{default:!0,children:k})}),k&&"string"!==typeof k&&k,t]}),s&&(0,d.jsx)(b,{children:s})]})}},43173:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Q}});var r=t(77837),i=t(38860),o=t.n(i),u=t(82394),c=t(75582),l=t(17717),s=t(82684),a=t(80329),d=t(69864),f=t(65557),h=t(94629),v=t(97936),p=t(29618),b=t(50724),g=t(55485),m=t(70374),y=t(30160),S=t(39643),O=t(87848),x=t(58325),j=t(44688),w=t(28598);var C=function(e){var n=e.children,t=e.fileVersionsVisible,r=e.onSave,i=e.setFilesVersionsVisible,o=(0,s.useState)(null),u=o[0],c=o[1],l=(0,s.useRef)(null),a=(0,s.useRef)(null),d=(0,s.useMemo)((function(){return[{disabled:!r,keyTextGroups:[[(0,x.V5)()?S.RJ:S.hE,S.SS]],label:function(){return"Save"},onClick:function(){return r?r():null},uuid:"save"}]}),[r]),f=(0,s.useMemo)((function(){return[{label:function(){return t?"Hide versions":"Show versions"},onClick:function(){return i(!t)},uuid:"versions"}]}),[t,i]),h="FileHeaderMenu/index",v=(0,j.y)(),p=v.registerOnKeyDown,C=v.unregisterOnKeyDown;return(0,s.useEffect)((function(){return function(){C(h)}}),[C,h]),p(h,(function(e,n){null!==u&&(n[S.QK]?c((function(e){return 0===e?2:e-1})):n[S.DY]&&c((function(e){return 2===e?0:e+1})))}),[u,c]),(0,w.jsx)(b.Z,{onClickOutside:function(){return c(null)},open:!0,style:{position:"relative"},children:(0,w.jsxs)(g.ZP,{children:[(0,w.jsxs)("div",{style:{position:"relative"},children:[(0,w.jsx)(O.u,{highlighted:0===u,onClick:function(){return c((function(e){return 0===e?null:0}))},onMouseEnter:function(){return c((function(e){return null!==e?0:null}))},ref:l,children:(0,w.jsx)(y.ZP,{children:"File"})}),(0,w.jsx)(m.Z,{items:d,onClickCallback:function(){return c(null)},open:0===u,parentRef:l,uuid:"FileHeaderMenu/file"})]}),(0,w.jsxs)("div",{style:{position:"relative"},children:[(0,w.jsx)(O.u,{highlighted:1===u,onClick:function(){return c((function(e){return 1===e?null:1}))},onMouseEnter:function(){return c((function(e){return null!==e?1:null}))},ref:a,children:(0,w.jsx)(y.ZP,{children:"Edit"})}),(0,w.jsx)(m.Z,{items:f,onClickCallback:function(){return c(null)},open:1===u,parentRef:a,uuid:"FileHeaderMenu/edit"})]}),n]})})},Z=t(90758),E=t(28385),P=t(35686),k=t(38626),_=t(44897),I=t(2842),T=t(46684),R=t(47041),A=72-I.uX+T.Mz,N=k.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-11pty4f-0"})(["height:","px;top:","px;z-index:3;",""],72,T.Mz,(function(e){return"\n background-color: ".concat((e.theme.background||_.Z.background).codeArea,";\n ")})),D=k.default.div.withConfig({displayName:"indexstyle__MenuStyle",componentId:"sc-11pty4f-1"})(["height:","px;position:relative;z-index:1;",""],36,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||_.Z.borders).medium,";\n ")})),M=k.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-11pty4f-2"})([""," height:","px;overflow-x:auto;position:sticky;width:100%;z-index:0;"],(0,R.y$)(),36),H=t(53808),V=t(86735),W="open_files";function L(e){(0,H.t8)(W,e)}var F=t(72619),B=t(42041),U=t(23780);function K(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function G(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?K(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):K(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function X(e){var n=e.split(l.sep);return n[n.length-1]}var z=function(){var e=(0,a.j)("apiReloads"),n=(0,c.Z)(e,2)[1],t=(0,s.useRef)(null),r=(0,s.useRef)(null),i=(0,s.useCallback)((function(e){r.current||(r.current={}),r.current=G(G({},r.current),e)}),[r]),o=(0,s.useState)([]),l=o[0],b=o[1],g=(0,s.useState)(null),m=g[0],y=g[1],O=(0,s.useState)({}),x=O[0],k=O[1],_=(0,s.useState)(!1),I=_[0],T=_[1],R=(0,s.useMemo)((function(){return l.reduce((function(e,n){var t=X(n);return e[t]||(e[t]=[]),e[t].push(n),e}),{})}),[l]),K=(0,s.useCallback)((function(e){L(e),b(e)}),[]),z=(0,s.useCallback)((function(e){K(function(e){var n=(0,H.U2)(W,[]);return n.includes(e)||n.push(e),L(n),n}(e))}),[K]),J=(0,s.useCallback)((function(e){i((0,u.Z)({},e,null)),k((function(n){return G(G({},n),{},(0,u.Z)({},e,!1))}));var n=function(e){var n=(0,H.U2)(W,[]),t=(0,V.Od)(n,(function(n){return n===e}));return L(t),t}(e);K(n),m===e&&(null===n||void 0===n?void 0:n.length)>=1&&y(n[n.length-1]),0===(null===n||void 0===n?void 0:n.length)&&y(null)}),[m,i,K]),Y=(0,s.useCallback)((function(e,n){n||(z(e),y(e))}),[z]);(0,s.useEffect)((function(){var e=(0,H.U2)(W,[]);K(e),y((function(n){return!n&&(null===e||void 0===e?void 0:e.length)>=1?e[0]:n}))}),[K]);var Q=P.ZP.files.list(),q=Q.data,$=Q.mutate,ee=(0,s.useMemo)((function(){return(null===q||void 0===q?void 0:q.files)||[]}),[q]),ne=(0,U.VI)(null,{},[],{uuid:"FilesPage"}),te=(0,c.Z)(ne,1)[0],re="Files/index",ie=(0,j.y)(),oe=(ie.disableGlobalKeyboardShortcuts,ie.registerOnKeyDown),ue=ie.unregisterOnKeyDown;(0,s.useEffect)((function(){return function(){ue(re)}}),[ue,re]),oe(re,(function(e,n){var t=Object.entries(x).reduce((function(e,n){var t=(0,c.Z)(n,2),r=t[0];return t[1]?e.concat(r):e}),[]);if((0,B.y)([S.zX,S.hS],n)&&(null===t||void 0===t?void 0:t.length)>=1){e.preventDefault();var r="You have changes that are unsaved: ".concat(t.join(", "),". ")+"Click cancel and save your changes before reloading page.";"undefined"!==typeof location&&window.confirm(r)&&location.reload()}}),[x]);var ce=(0,s.useMemo)((function(){return(0,w.jsx)(Z.Z,{filePaths:l,filesTouched:x,isSelectedFilePath:function(e,n){return e===n},onClickTab:function(e){return y(e)},onClickTabClose:function(e){return J(e)},renderTabTitle:function(e){var n=X(e),t=R[n];return t&&(null===t||void 0===t?void 0:t.length)>=2?e:n},selectedFilePath:m})}),[x,l,R,J,m]),le=(0,s.useMemo)((function(){return(0,w.jsx)(v.Z,{fetchFileTree:$,files:ee,onClickFile:function(e){return Y(e)},onClickFolder:function(e){return Y(e,!0)},ref:t,setErrors:te})}),[$,t,ee,Y,te]),se=(0,d.Db)((function(e){return P.ZP.file_contents.useUpdate((null===e||void 0===e?void 0:e.path)&&encodeURIComponent(null===e||void 0===e?void 0:e.path))({file_content:e})}),{onSuccess:function(e){return(0,F.wD)(e,{callback:function(e){var t=e.file_content;n((function(e){return G(G({},e),{},(0,u.Z)({},"FileVersions/".concat(null===t||void 0===t?void 0:t.path),Number(new Date)))})),i((0,u.Z)({},null===t||void 0===t?void 0:t.path,null))},onErrorCallback:function(e,n){return te({errors:n,response:e})}})}}),ae=(0,c.Z)(se,1)[0],de=(0,s.useCallback)((function(e,n){ae(G(G({},n),{},{content:e})),k((function(e){return G(G({},e),{},(0,u.Z)({},null===n||void 0===n?void 0:n.path,!1))}))}),[k,ae]),fe=(0,s.useMemo)((function(){return null===l||void 0===l?void 0:l.map((function(e){return(0,w.jsx)("div",{style:{display:m===e?null:"none"},children:(0,w.jsx)(f.Z,{uuid:"FileEditor/".concat(decodeURIComponent(e)),children:(0,w.jsx)(p.Z,{active:m===e,disableRefreshWarning:!0,filePath:e?encodeURIComponent(e):null,hideHeaderButtons:!0,onContentChange:function(n){return i((0,u.Z)({},e,n))},saveFile:de,selectedFilePath:m,setErrors:te,setFilesTouched:k})})},e)}))}),[l,de,m,i,te]),he=(0,s.useMemo)((function(){return(0,w.jsx)(C,{fileVersionsVisible:I,onSave:function(){var e,n;(null===r||void 0===r||null===(e=r.current)||void 0===e||null===(n=e[m])||void 0===n?void 0:n.length)>=1&&de(r.current[m],{path:m})},setFilesVersionsVisible:T})}),[r,I,de,m,T]);return(0,w.jsx)(h.Z,{after:(0,w.jsx)(f.Z,{uuid:"FileVersions/".concat(m?decodeURIComponent(m):""),children:(0,w.jsx)(E.Z,{selectedFilePath:m,setErrors:te})}),afterHidden:!(I&&m),before:le,headerOffset:A,mainContainerHeader:(null===l||void 0===l?void 0:l.length)>=1&&(0,w.jsxs)(N,{children:[(0,w.jsx)(D,{children:he}),(0,w.jsx)(M,{children:ce})]}),title:"Files",uuid:"Files/index",children:fe})},J=t(93808);function Y(){return(0,w.jsx)(z,{})}Y.getInitialProps=(0,r.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var Q=(0,J.Z)(Y)},58325:function(e,n,t){"use strict";var r;t.d(n,{V5:function(){return o}}),function(e){e.ANDROID="Android",e.CHROME_OS="ChromeOS",e.IOS="iOS",e.LINUX="Linux",e.MAC="macOS",e.WINDOWS="Windows"}(r||(r={}));var i=r;function o(){return function(){var e,n,t,r,o,u,c,l=i.MAC,s=null===(e=window)||void 0===e||null===(n=e.navigator)||void 0===n?void 0:n.userAgent,a=(null===(t=window)||void 0===t||null===(r=t.navigator)||void 0===r||null===(o=r.userAgentData)||void 0===o?void 0:o.platform)||(null===(u=window)||void 0===u||null===(c=u.navigator)||void 0===c?void 0:c.platform);return a?["macOS","Macintosh","MacIntel","MacPPC","Mac68K"].includes(a)?l=i.MAC:["Win32","Win64","Windows","WinCE"].includes(a)?l=i.WINDOWS:["iPhone","iPad","iPod"].includes(a)&&(l=i.IOS):s&&(s.includes("Macintosh")?l=i.MAC:s.includes("Windows")?l=i.WINDOWS:s.includes("Linux")&&s.includes("X11")?l=i.LINUX:/(iPhone|iPad)/.test(s)?l=i.IOS:s.includes("Android")&&s.includes("Mobi")?l=i.ANDROID:s.includes("CrOS")&&(l=i.CHROME_OS)),l}()===i.MAC}},99017:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/files",function(){return t(43173)}])},80022:function(e,n,t){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return r}})},15544:function(e,n,t){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}t.d(n,{Z:function(){return r}})},13692:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var r=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,r.Z)(e,n)}},93189:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var r=t(12539),i=t(80022);function o(e,n){if(n&&("object"===r(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},61049:function(e,n,t){"use strict";function r(e,n){return r=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},r(e,n)}t.d(n,{Z:function(){return r}})}},function(e){e.O(0,[2678,1154,844,6639,7011,874,9626,8264,7858,5499,5283,5810,2646,7936,1125,9774,2888,179],(function(){return n=99017,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5618],{1368:function(r,e,n){"use strict";n.r(e);var o=n(77837),u=n(38860),t=n.n(u),i=n(82684),l=n(94629),a=n(8569),c=n(93808),s=n(81728),p=n(28598);function d(r){var e=r.operationType,n=r.resourceType,o=r.slug,u=(0,i.useMemo)((function(){var r=[o,n?(0,s.j3)(n):n,e?(0,s.vg)(e):e].filter((function(r){return(null===r||void 0===r?void 0:r.length)>=1})).join(" ");return(null===r||void 0===r?void 0:r.length)>=40?"".concat(null===r||void 0===r?void 0:r.slice(0,40),"..."):r}),[e,n,o]);return(0,p.jsx)(l.Z,{addProjectBreadcrumbToCustomBreadcrumbs:!0,breadcrumbs:[{label:function(){return"Global hooks"},linkProps:{href:"/global-hooks"}},{bold:!0,label:function(){return u}}],title:o,uuid:"GlobalHookDetail/index",children:(0,p.jsx)(a.Z,{operationType:e,resourceType:n,uuid:o})})}d.getInitialProps=function(){var r=(0,o.Z)(t().mark((function r(e){var n,o,u,i;return t().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.query,o=n.operation_type,u=n.resource_type,i=n.slug,r.abrupt("return",{operationType:o,resourceType:u,slug:null===i||void 0===i?void 0:i[0]});case 2:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),e.default=(0,c.Z)(d)},98746:function(r,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/global-hooks/[...slug]",function(){return n(1368)}])}},function(r){r.O(0,[2678,1154,844,874,9626,8264,7858,5283,3437,9774,2888,179],(function(){return e=98746,r(r.s=e);var e}));var e=r.O();_N_E=e}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3009],{92656:function(e,n,o){"use strict";o.r(n),o.d(n,{default:function(){return G}});var i=o(77837),t=o(38860),l=o.n(t),u=o(82684),r=o(71180),d=o(94629),s=o(8569),c=o(82394),a=o(12691),p=o.n(a),v=o(38626),h=o(34376),f=o(55485),b=o(48670),m=o(75499),k=o(30160),j=o(35686),_=o(72473),g=o(8193),y={default:!0,monospace:!0},w=o(81728),x=o(3917),P=o(55283),O=o(86735),Z=o(70320),E=o(28598);function C(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),o.push.apply(o,i)}return o}function N(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?C(Object(o),!0).forEach((function(n){(0,c.Z)(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):C(Object(o)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))}))}return e}var T=function(){var e=(0,Z.qB)(),n=(0,u.useContext)(v.ThemeContext),o=(0,h.useRouter)(),i=(0,u.useState)(null),t=i[0],l=(i[1],j.ZP.global_hooks.list({_format:"with_pipeline_details",include_snapshot_validation:1}).data),r=(0,u.useMemo)((function(){return(null===l||void 0===l?void 0:l.global_hooks)||[]}),[l]);return(0,E.jsx)(E.Fragment,{children:(0,E.jsx)(m.Z,{columnFlex:[null,null,null,null,1,null,null],columns:[{uuid:"UUID"},{uuid:"Resource"},{uuid:"Operation"},{uuid:"Pipeline"},{uuid:"Outputs"},{center:!0,uuid:"Valid"},{rightAligned:!0,uuid:"Snapshotted at"}],onClickRow:function(e,n){var i=null===r||void 0===r?void 0:r[e],t=i.operation_type,l=i.resource_type,u=i.uuid;o.push("/global-hooks/".concat(u,"?operation_type=").concat(t,"&resource_type=").concat(l))},getObjectAtRowIndex:function(e){return null===r||void 0===r?void 0:r[e]},rows:null===r||void 0===r?void 0:r.map((function(o){var i,t=o.metadata,l=o.operation_type,r=o.outputs,d=o.pipeline,s=o.pipeline_details,c=o.resource_type,a=o.uuid,v=null===d||void 0===d?void 0:d.uuid,h=v?(0,E.jsx)(p(),{as:"/pipelines/".concat(v,"/edit"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,E.jsx)(b.Z,N(N({},y),{},{openNewWindow:!0,children:v}))},"pipeline"):(0,u.createElement)(k.ZP,N(N({},y),{},{key:"pipeline",muted:!0}),"-"),m=[];if((null===r||void 0===r?void 0:r.length)>=1&&(null===s||void 0===s||null===(i=s.blocks)||void 0===i?void 0:i.length)>=1){var j=(0,O.HK)((null===s||void 0===s?void 0:s.blocks)||[],(function(e){return e.uuid}));null===r||void 0===r||r.forEach((function(e,o){var i;if(null!==e&&void 0!==e&&null!==(i=e.block)&&void 0!==i&&i.uuid){var t,l=null===j||void 0===j?void 0:j[null===e||void 0===e||null===(t=e.block)||void 0===t?void 0:t.uuid];l&&(o>=1&&m.push((0,u.createElement)(k.ZP,N(N({},y),{},{inline:!0,key:"".concat(null===l||void 0===l?void 0:l.uuid,"-").concat(o,"-comma"),muted:!0}),",\xa0")),m.push((0,E.jsx)(p(),{as:"/pipelines/".concat(v,"/edit?block_uuid=").concat(null===l||void 0===l?void 0:l.uuid),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,E.jsx)(b.Z,N(N({},y),{},{inline:!0,openNewWindow:!0,sameColorAsText:!0,children:(0,E.jsx)(k.ZP,N(N({},y),{},{color:(0,P.qn)(null===l||void 0===l?void 0:l.type,{blockColor:null===l||void 0===l?void 0:l.color,theme:n}).accent,inline:!0,children:null===l||void 0===l?void 0:l.uuid}))}))},"".concat(null===l||void 0===l?void 0:l.uuid,"-").concat(o,"-link"))))}}))}return[(0,u.createElement)(k.ZP,N(N({},y),{},{key:"uuid"}),a),(0,u.createElement)(k.ZP,N(N({},y),{},{key:"resourceType",monospace:!1}),c?(0,w.j3)(c):"-"),(0,u.createElement)(k.ZP,N(N({},y),{},{key:"operationType",monospace:!1}),l?(0,w.vg)(l):"-"),h,(0,E.jsxs)("div",{children:[(null===m||void 0===m?void 0:m.length)>=1&&m,!(null!==m&&void 0!==m&&m.length)&&(0,E.jsx)(k.ZP,N(N({},y),{},{muted:!0,children:"-"}))]},"outputs"),(0,E.jsx)(f.ZP,{justifyContent:"center",children:null!==t&&void 0!==t&&t.snapshot_valid?(0,E.jsx)(_.Jr,{size:g.Z,success:!0}):(0,E.jsx)(_.uy,{danger:!0,size:g.Z})},"valid"),(0,u.createElement)(k.ZP,N(N({},y),{},{key:"snapshottedAt",rightAligned:!0}),null!==t&&void 0!==t&&t.snapshotted_at?(0,x.XG)(null===t||void 0===t?void 0:t.snapshotted_at,e):"-")]})),selectedRowIndexInternal:t,uuid:"GlobalHooks/Table"})})},A=o(93808),I=o(70515),H=o(69419);function D(){var e=(0,u.useState)(!1),n=e[0],o=e[1],i=(0,H.iV)();return(0,u.useEffect)((function(){var e=i.new;o(!!e)}),[i]),(0,E.jsxs)(d.Z,{addProjectBreadcrumbToCustomBreadcrumbs:n,breadcrumbs:n?[{label:function(){return"Global hooks"},linkProps:{href:"/global-hooks"}},{bold:!0,label:function(){return"New"}}]:null,subheaderChildren:!n&&(0,E.jsx)(E.Fragment,{children:(0,E.jsx)(r.ZP,{beforeIcon:(0,E.jsx)(_.mm,{size:2.5*I.iI}),inline:!0,linkProps:{as:"/global-hooks?new=1",href:"/global-hooks"},noHoverUnderline:!0,primary:!0,sameColorAsText:!0,children:"Add new global hook"})}),title:"Global hooks",uuid:"GlobalHooks/index",children:[n&&(0,E.jsx)(s.Z,{isNew:n}),!n&&(0,E.jsx)(T,{})]})}D.getInitialProps=(0,i.Z)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var G=(0,A.Z)(D)},95140:function(e,n,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/global-hooks",function(){return o(92656)}])}},function(e){e.O(0,[2678,1154,844,874,9626,8264,7858,5499,5283,3437,9774,2888,179],(function(){return n=95140,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9015],{59739:function(e,t,n){"use strict";var r=n(56669);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,u){if(u!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},47329:function(e,t,n){e.exports=n(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},44152:function(e,t,n){"use strict";n.d(t,{r:function(){return s}});var r=n(82684);const i=e=>{let t;const n=new Set,r=(e,r)=>{const i="function"===typeof e?e(t):e;if(i!==t){const e=t;t=r?i:Object.assign({},t,i),n.forEach((n=>n(t,e)))}},i=()=>t,o={setState:r,getState:i,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,i,o),o};var o=n(81550);const{useSyncExternalStoreWithSelector:u}=o;const c=e=>{const t="function"===typeof e?(e=>e?i(e):i)(e):e,n=(e,n)=>function(e,t=e.getState,n){const i=u(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,r.useDebugValue)(i),i}(t,e,n);return Object.assign(n,t),n};var a=e=>e?c(e):c;const s=e=>{const t=a((()=>e)),n=(Object.keys(e),(e,n)=>{t.setState((t=>{return{[e]:(r=t[e],i=n,"function"==typeof i?i(r):i)};var r,i}))});return{useGlobalState:e=>{const i=(0,r.useCallback)((t=>t[e]),[e]);return[t(i),(0,r.useCallback)((t=>n(e,t)),[e])]},getGlobalState:e=>t.getState()[e],setGlobalState:n,subscribe:(e,n)=>{t.subscribe(((t,r)=>{t[e]!==r[e]&&n(t[e])}))}}}},1589:function(e,t,n){"use strict";var r=n(82684);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useState,u=r.useEffect,c=r.useLayoutEffect,a=r.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(r){return!0}}var l="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return c((function(){i.value=n,i.getSnapshot=t,s(i)&&l({inst:i})}),[e,n,t]),u((function(){return s(i)&&l({inst:i}),e((function(){s(i)&&l({inst:i})}))}),[e]),a(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},73847:function(e,t,n){"use strict";var r=n(82684),i=n(48216);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},u=i.useSyncExternalStore,c=r.useRef,a=r.useEffect,s=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=c(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s((function(){function e(e){if(!a){if(a=!0,u=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,o(u,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(u=e,c=n)}var u,c,a=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,r,i]);var h=u(e,d[0],d[1]);return a((function(){f.hasValue=!0,f.value=h}),[h]),l(h),h}},48216:function(e,t,n){"use strict";e.exports=n(1589)},81550:function(e,t,n){"use strict";e.exports=n(73847)},94629:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(82394),i=n(21831),o=n(82684),u=n(50724),c=n(82555),a=n(97618),s=n(70613),l=n(79626),d=n(68899),f=n(28598);function h(e,t){var n=e.children,r=e.noPadding;return(0,f.jsx)(d.HS,{noPadding:r,ref:t,children:n})}var p=o.forwardRef(h),b=n(62547),v=n(82571),g=n(98464),S=n(77417),m=n(46684),E=n(70515),y=n(53808),x=n(19183);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e,t){e.addProjectBreadcrumbToCustomBreadcrumbs;var n=e.after,r=e.afterHeader,h=e.afterHidden,O=e.afterWidth,T=e.afterWidthOverride,_=e.appendBreadcrumbs,I=e.before,j=e.beforeWidth,k=e.breadcrumbs,P=e.children,C=e.errors,Z=e.headerMenuItems,A=e.headerOffset,R=e.hideAfterCompletely,N=e.mainContainerHeader,L=e.navigationItems,H=e.setAfterHidden,W=e.setErrors,B=e.subheaderChildren,V=e.subheaderNoPadding,D=e.title,M=e.uuid,F=(0,x.i)().width,K="dashboard_after_width_".concat(M),G="dashboard_before_width_".concat(M),U=(0,o.useRef)(null),X=(0,o.useState)(T?O:(0,y.U2)(K,O)),Y=X[0],q=X[1],z=(0,o.useState)(!1),Q=z[0],J=z[1],$=(0,o.useState)(I?Math.max((0,y.U2)(G,j),13*E.iI):null),ee=$[0],te=$[1],ne=(0,o.useState)(!1),re=ne[0],ie=ne[1],oe=(0,o.useState)(null)[1],ue=(0,S.Z)().project,ce=[];k&&ce.push.apply(ce,(0,i.Z)(k)),null!==k&&void 0!==k&&k.length&&!_||!ue||null!==k&&void 0!==k&&k.length||ce.unshift({bold:!_,label:function(){return D}}),(0,o.useEffect)((function(){null===U||void 0===U||!U.current||Q||re||null===oe||void 0===oe||oe(U.current.getBoundingClientRect().width)}),[Q,Y,re,ee,U,oe,F]),(0,o.useEffect)((function(){Q||(0,y.t8)(K,Y)}),[h,Q,Y,K]),(0,o.useEffect)((function(){re||(0,y.t8)(G,ee)}),[re,ee,G]);var ae=(0,g.Z)(O);return(0,o.useEffect)((function(){T&&ae!==O&&q(O)}),[T,O,ae]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:D}),(0,f.jsx)(l.Z,{breadcrumbs:ce,menuItems:Z}),(0,f.jsxs)(d.Nk,{ref:t,children:[0!==(null===L||void 0===L?void 0:L.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(v.Z,{navigationItems:L,showMore:!0})}),(0,f.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(b.Z,{after:n,afterHeader:r,afterHeightOffset:m.Mz,afterHidden:h,afterMousedownActive:Q,afterWidth:Y,before:I,beforeHeightOffset:m.Mz,beforeMousedownActive:re,beforeWidth:d.k1+(I?ee:0),headerOffset:A,hideAfterCompletely:!H||R,leftOffset:I?d.k1:null,mainContainerHeader:N,mainContainerRef:U,setAfterHidden:H,setAfterMousedownActive:J,setAfterWidth:q,setBeforeMousedownActive:ie,setBeforeWidth:te,children:[B&&(0,f.jsx)(p,{noPadding:V,children:B}),P]})})]}),C&&(0,f.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===W||void 0===W?void 0:W(null)},children:(0,f.jsx)(c.Z,w(w({},C),{},{onClose:function(){return null===W||void 0===W?void 0:W(null)}}))})]})}var _=o.forwardRef(T)},85385:function(e,t,n){"use strict";n.d(t,{Qq:function(){return p},Z7:function(){return b},cH:function(){return i},du:function(){return f},fp:function(){return d},j5:function(){return h},uM:function(){return l}});var r,i,o=n(82394),u=n(57653),c=n(82359),a=n(72473),s=n(86735),l="sideview",d=90;!function(e){e.ADDON_BLOCKS="addon_blocks",e.BLOCK_SETTINGS="block_settings",e.CALLBACKS="callbacks",e.CHARTS="charts",e.DATA="data",e.EXTENSIONS="power_ups",e.FILE_VERSIONS="file_versions",e.GRAPHS="graphs",e.INTERACTIONS="interactions",e.REPORTS="reports",e.SECRETS="secrets",e.SETTINGS="settings",e.TERMINAL="terminal",e.TREE="tree",e.VARIABLES="variables"}(i||(i={}));i.BLOCK_SETTINGS,i.CALLBACKS,i.CHARTS,i.DATA,i.EXTENSIONS,i.TREE;var f=[i.DATA];function h(e){var t,n,r,o=[{key:i.TREE,label:"Tree"},{buildLabel:function(e){var t=(e.pipeline||{}).widgets,n=void 0===t?[]:t;return(null===n||void 0===n?void 0:n.length)>=1?"Charts (".concat(n.length,")"):"Charts"},key:i.CHARTS},{buildLabel:function(e){var t=e.variables;return(null===t||void 0===t?void 0:t.length)>=1?"Variables (".concat(t.length,")"):"Variables"},key:i.VARIABLES},{buildLabel:function(e){var t=e.secrets;return(null===t||void 0===t?void 0:t.length)>=1?"Secrets (".concat(t.length,")"):"Secrets"},key:i.SECRETS}];return u.qL.PYSPARK!==(null===e||void 0===e||null===(t=e.pipeline)||void 0===t?void 0:t.type)&&o.push.apply(o,[{buildLabel:function(e){e.pipeline;return"Add-on blocks"},key:i.ADDON_BLOCKS},{buildLabel:function(e){var t=(e.pipeline||{}).extensions,n=void 0===t?{}:t,r=0;return Object.values(n).forEach((function(e){var t=e.blocks;r+=(null===t||void 0===t?void 0:t.length)||0})),r>=1?"Power ups (".concat(r,")"):"Power ups"},key:i.EXTENSIONS}]),o.push.apply(o,[{key:i.DATA,label:"Data"},{key:i.TERMINAL,label:"Terminal"},{key:i.BLOCK_SETTINGS,label:"Block settings"}]),null!==e&&void 0!==e&&null!==(n=e.project)&&void 0!==n&&null!==(r=n.features)&&void 0!==r&&r[c.d.INTERACTIONS]&&o.push({key:i.INTERACTIONS,label:"Interactions"}),o}function p(e){return(0,s.HK)(h(e),(function(e){return e.key}))}var b=(r={},(0,o.Z)(r,i.ADDON_BLOCKS,a.EJ),(0,o.Z)(r,i.BLOCK_SETTINGS,a.JG),(0,o.Z)(r,i.CALLBACKS,a.AQ),(0,o.Z)(r,i.CHARTS,a.GQ),(0,o.Z)(r,i.DATA,a.iA),(0,o.Z)(r,i.EXTENSIONS,a.Bf),(0,o.Z)(r,i.INTERACTIONS,a.yd),(0,o.Z)(r,i.SECRETS,a.Yo),(0,o.Z)(r,i.SETTINGS,a.Zr),(0,o.Z)(r,i.TERMINAL,a.oI),(0,o.Z)(r,i.TREE,a.mp),(0,o.Z)(r,i.VARIABLES,a.LO),r)},75083:function(e,t,n){"use strict";n.d(t,{HF:function(){return o},L6:function(){return r}});var r,i=n(72473);function o(e,t,n){var o=e.owner,u=(e.roles,[{Icon:i.Vz,id:r.WORKSPACES,isSelected:function(){return r.WORKSPACES===n},label:function(){return"Workspaces"},linkProps:{href:"/manage"}}]);return o&&u.push({Icon:i.NO,id:r.USERS,isSelected:function(){return r.USERS===n},label:function(){return"Users"},linkProps:{href:"/manage/users"}}),u.push.apply(u,[{Icon:i.Zr,id:r.SETTINGS,isSelected:function(){return r.SETTINGS===n},label:function(){return"Settings"},linkProps:{href:"/manage/settings"}},{Icon:i.$B,id:r.FILE_BROWSER,isSelected:function(){return r.FILE_BROWSER===n},label:function(){return"File browser"},linkProps:{href:"/manage/files"}}]),u}!function(e){e.WORKSPACES="workspaces",e.USERS="users",e.SETTINGS="settings",e.FILE_BROWSER="file_browser"}(r||(r={}))},59533:function(e,t,n){"use strict";var r=n(82684),i=n(94629),o=n(35686),u=n(70515),c=n(75083),a=n(50178),s=n(28598);t.Z=function(e){var t=e.before,n=e.breadcrumbs,l=void 0===n?[]:n,d=e.children,f=e.errors,h=e.headerOffset,p=e.mainContainerHeader,b=e.pageName,v=e.setErrors,g=e.subheaderChildren,S=o.ZP.statuses.list().data,m=(0,r.useMemo)((function(){var e,t;return null===S||void 0===S||null===(e=S.statuses)||void 0===e||null===(t=e[0])||void 0===t?void 0:t.project_type}),[S]),E=(0,a.PR)()||{};return(0,s.jsx)(i.Z,{before:t,beforeWidth:t?50*u.iI:0,breadcrumbs:l,errors:f,headerOffset:h,mainContainerHeader:p,navigationItems:(0,c.HF)(E,m,b),setErrors:v,subheaderChildren:g,title:"Workspaces",uuid:"workspaces/index",children:d})}},65956:function(e,t,n){"use strict";var r=n(38626),i=n(55485),o=n(38276),u=n(30160),c=n(44897),a=n(42631),s=n(47041),l=n(70515),d=n(28598),f=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*l.iI,1.5*l.iI,1.5*l.iI),h=r.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],a.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 "})),p=r.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],a.n_,a.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 ")}),f,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),b=r.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*l.iI,s.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*l.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),v=r.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],a.M8,a.YF,1.75*l.iI);t.Z=function(e){var t=e.borderless,n=e.children,r=e.containerRef,c=e.contentContainerRef,a=e.dark,s=e.footer,l=e.fullHeight,f=void 0===l||l,g=e.fullWidth,S=void 0===g||g,m=e.header,E=e.headerHeight,y=e.headerIcon,x=e.headerPaddingVertical,O=e.headerTitle,w=e.maxHeight,T=e.maxWidth,_=e.minWidth,I=e.noPadding,j=e.overflowVisible,k=e.subtitle,P=e.success;return(0,d.jsxs)(h,{borderless:t,dark:a,fullHeight:f,fullWidth:S,maxHeight:w,maxWidth:T,minWidth:_,overflowVisible:j,ref:r,success:P,children:[(m||O)&&(0,d.jsxs)(p,{headerPaddingVertical:x,height:E,children:[m&&m,O&&(0,d.jsx)(i.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(i.ZP,{alignItems:"center",children:[y&&y,(0,d.jsx)(o.Z,{ml:y?1:0,children:(0,d.jsx)(u.ZP,{bold:!0,default:!0,children:O})})]})})]}),(0,d.jsxs)(b,{maxHeight:w,noPadding:I,overflowVisible:j,ref:c,children:[k&&"string"===typeof k&&(0,d.jsx)(o.Z,{mb:2,children:(0,d.jsx)(u.ZP,{default:!0,children:k})}),k&&"string"!==typeof k&&k,n]}),s&&(0,d.jsx)(v,{children:s})]})}},83087:function(e,t,n){"use strict";n.r(t);var r=n(77837),i=n(38860),o=n.n(i),u=n(82684),c=n(65557),a=n(97936),s=n(29618),l=n(90758),d=n(93808),f=n(38276),h=n(59533),p=n(35686),b=n(86735),v=n(15610),g=n(69419),S=n(97133),m=n(75083),E=n(28598);function y(){var e=(0,u.useState)(null),t=e[0],n=e[1],r=(0,g.iV)(),i=r.file_path,o=(0,u.useMemo)((function(){var e=r["file_paths[]"]||[];return Array.isArray(e)||(e=[e]),e}),[r]),d=(0,u.useCallback)((function(e){var t=encodeURIComponent(e),n=(0,g.iV)()["file_paths[]"]||[];Array.isArray(n)||(n=[n]),n.includes(t)||n.push(t),(0,v.u)({file_path:t,"file_paths[]":n})}),[]),y=p.ZP.files.list(),x=y.data,O=y.mutate,w=(0,u.useMemo)((function(){return(null===x||void 0===x?void 0:x.files)||[]}),[x]),T=(0,u.useRef)(null),_=(0,u.useState)(null),I=_[0],j=_[1],k=(0,u.useState)([]),P=k[0],C=k[1],Z=(0,u.useState)({}),A=Z[0],R=Z[1],N=(0,u.useMemo)((function(){return(0,E.jsx)(f.Z,{ml:1,mt:1,children:(0,E.jsx)(a.Z,{fetchFileTree:O,files:w,openFile:d,ref:T,setErrors:n})})}),[O,w,d,n]);return(0,u.useEffect)((function(){j(i)}),[i]),(0,u.useEffect)((function(){(0,b.fS)(o,P)||C(o)}),[o,P]),(0,E.jsx)(h.Z,{before:N,breadcrumbs:[{label:function(){return"Workspaces"},linkProps:{as:"/manage",href:"/manage"}},{bold:!0,label:function(){return"File browser"}}],errors:t,mainContainerHeader:(0,E.jsx)(S.rK,{secondary:!0,children:(0,E.jsx)(l.Z,{filePaths:P,filesTouched:A,selectedFilePath:I})}),pageName:m.L6.FILE_BROWSER,children:null===o||void 0===o?void 0:o.map((function(e){return(0,E.jsx)("div",{style:{display:I===e?null:"none"},children:(0,E.jsx)(c.Z,{uuid:"manage/FileEditor/".concat(decodeURIComponent(e)),children:(0,E.jsx)(s.Z,{active:I===e,filePath:e,selectedFilePath:I,setErrors:n,setFilesTouched:R})})},e)}))})}y.getInitialProps=(0,r.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),t.default=(0,d.Z)(y)},90205:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage/files",function(){return n(83087)}])},80022:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},15544:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},13692:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(61049);function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,r.Z)(e,t)}},93189:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(12539),i=n(80022);function o(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},61049:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})}},function(e){e.O(0,[2678,1154,844,6639,7011,874,9626,8264,7858,5499,5283,5810,2646,7936,1125,9774,2888,179],(function(){return t=90205,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
|