mage-ai 0.9.46__py3-none-any.whl → 0.9.47__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.
- mage_ai/api/operations/base.py +27 -5
- mage_ai/api/policies/GlobalHookPolicy.py +1 -1
- mage_ai/api/policies/IntegrationSourcePolicy.py +62 -0
- mage_ai/api/policies/OauthPolicy.py +6 -6
- mage_ai/api/presenters/GlobalHookPresenter.py +1 -1
- mage_ai/api/presenters/IntegrationSourcePresenter.py +9 -2
- mage_ai/api/presenters/PipelinePresenter.py +2 -0
- mage_ai/api/presenters/PipelineRunPresenter.py +8 -3
- mage_ai/api/presenters/PipelineSchedulePresenter.py +22 -1
- mage_ai/api/resources/BlockResource.py +5 -0
- mage_ai/api/resources/DataProviderResource.py +2 -0
- mage_ai/api/resources/IntegrationSourceResource.py +149 -2
- mage_ai/data_integrations/sources/constants.py +5 -0
- mage_ai/data_integrations/utils/scheduler.py +57 -2
- mage_ai/data_preparation/executors/block_executor.py +9 -1
- mage_ai/data_preparation/models/block/__init__.py +25 -12
- mage_ai/data_preparation/models/block/data_integration/constants.py +3 -0
- mage_ai/data_preparation/models/block/data_integration/utils.py +196 -37
- mage_ai/data_preparation/models/block/sql/utils/shared.py +18 -1
- mage_ai/data_preparation/models/block/utils.py +28 -13
- mage_ai/data_preparation/models/global_hooks/constants.py +50 -1
- mage_ai/data_preparation/models/global_hooks/models.py +148 -84
- mage_ai/data_preparation/models/global_hooks/predicates.py +316 -0
- mage_ai/data_preparation/models/pipeline.py +2 -0
- mage_ai/data_preparation/models/pipelines/integration_pipeline.py +0 -1
- mage_ai/data_preparation/preferences.py +29 -18
- mage_ai/data_preparation/repo_manager.py +12 -2
- mage_ai/data_preparation/sync/__init__.py +2 -0
- mage_ai/data_preparation/templates/constants.py +14 -0
- mage_ai/data_preparation/templates/data_exporters/chroma.py +24 -0
- mage_ai/data_preparation/templates/data_exporters/streaming/rabbitmq.yaml +7 -0
- mage_ai/data_preparation/templates/data_loaders/chroma.py +27 -0
- mage_ai/data_preparation/templates/repo/io_config.yaml +3 -0
- mage_ai/io/base.py +1 -0
- mage_ai/io/chroma.py +153 -0
- mage_ai/io/config.py +8 -0
- mage_ai/orchestration/db/models/schedules.py +98 -34
- mage_ai/orchestration/pipeline_scheduler.py +58 -19
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/_next/static/N3FS4bHv0jpYeeg672uYK/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{1749-9a6276b2918fdae1.js → 1749-bf512b4dabbab7fa.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{1952-ac7722e8b1ab88fe.js → 1952-57858e7445d24413.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/2714-1e79e9f2e998b544.js → frontend_dist/_next/static/chunks/2714-68fef54789d7eaeb.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2717-92cdffd87b6f6e05.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3419-f8d518d024e7b5c8.js → frontend_dist/_next/static/chunks/3419-715ca383fa15a5ef.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3437-b4d6a037cf5781f8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3943-c9fb980f03df6450.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/4267-cb102e060a43d9bd.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/4366-93e09e5a4a7e182c.js → frontend_dist/_next/static/chunks/4366-3e52497942acbafe.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{4783-1a21d9be47574bba.js → 4783-422429203610c318.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5810-e26a0768db1cfdba.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{5896-14e5a23b1c6a0769.js → 5896-7b8e36634d7d94eb.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{6285-e9b45335bfb9ccaf.js → 6285-648f9a732e100b2f.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6798-b904395b0c18647b.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/7022-070ec0144a4d029c.js → frontend_dist/_next/static/chunks/7022-e76cae3ba5ee5312.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/722-900f786d24f91b2e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{7361-694e1e4fb9c97d68.js → 7361-6c5c9063b9f91700.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/8146-92e7ccfed169ee9c.js → frontend_dist/_next/static/chunks/8146-27f0e31f309897a5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/845-9a73c65fe3fdc328.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8487-8e1c09546dff4dbf.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9264-cc44b07f248707b0.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9618-4eb49cdbd1ba11d7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{976-18c98af60b76f1a7.js → 976-0a8c2c4d7acd957b.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-78c4a077a2f279c2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-b37d221eb5ddc248.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-7adc543fc490367a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-51d366993f6dd449.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{files-449a022f2f0f2d94.js → files-fe6e73463a20d67c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{manage-f83deb790548693b.js → manage-d8a38b5d1f50e798.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-9adc2974aada27ba.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-51b1311dff2a974e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-2333e524d34b474a.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-e051057d9fe94f23.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-6d1afeb4a84f50f7.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-1ff9bb8e22ca1e75.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-11363aa58d51f4e1.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-779c3ef0676a12ac.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-bbea9a088657404a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-3737f2b0afc2ede3.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-3c8f062913c66f3e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-c1f4ed17d501ccca.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-8bdd858240d5dbf6.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-dd4fb405695f74bf.js +1 -0
- mage_ai/server/frontend_dist/block-layout.html +2 -2
- mage_ai/server/frontend_dist/compute.html +5 -5
- mage_ai/server/frontend_dist/files.html +5 -5
- mage_ai/server/frontend_dist/global-data-products/[...slug].html +5 -5
- mage_ai/server/frontend_dist/global-data-products.html +5 -5
- mage_ai/server/frontend_dist/global-hooks/[...slug].html +5 -5
- mage_ai/server/frontend_dist/global-hooks.html +5 -5
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage/files.html +5 -5
- mage_ai/server/frontend_dist/manage/settings.html +5 -5
- mage_ai/server/frontend_dist/manage/users/[user].html +5 -5
- mage_ai/server/frontend_dist/manage/users/new.html +5 -5
- mage_ai/server/frontend_dist/manage/users.html +5 -5
- mage_ai/server/frontend_dist/manage.html +5 -5
- mage_ai/server/frontend_dist/oauth.html +4 -4
- mage_ai/server/frontend_dist/overview.html +5 -5
- mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +5 -5
- mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/permissions.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/roles.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +20 -20
- mage_ai/server/frontend_dist/templates/[...slug].html +5 -5
- mage_ai/server/frontend_dist/templates.html +5 -5
- mage_ai/server/frontend_dist/terminal.html +5 -5
- mage_ai/server/frontend_dist/test.html +5 -5
- mage_ai/server/frontend_dist/triggers.html +5 -5
- mage_ai/server/frontend_dist/version-control.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/_next/static/aoO6jYZLVlUGCCdY-wmy8/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{1749-9a6276b2918fdae1.js → 1749-bf512b4dabbab7fa.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{1952-ac7722e8b1ab88fe.js → 1952-57858e7445d24413.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/2714-1e79e9f2e998b544.js → frontend_dist_base_path_template/_next/static/chunks/2714-68fef54789d7eaeb.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-92cdffd87b6f6e05.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/3419-f8d518d024e7b5c8.js → frontend_dist_base_path_template/_next/static/chunks/3419-715ca383fa15a5ef.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3437-b4d6a037cf5781f8.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-c9fb980f03df6450.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4267-cb102e060a43d9bd.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/4366-93e09e5a4a7e182c.js → frontend_dist_base_path_template/_next/static/chunks/4366-3e52497942acbafe.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{4783-1a21d9be47574bba.js → 4783-422429203610c318.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-e26a0768db1cfdba.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{5896-14e5a23b1c6a0769.js → 5896-7b8e36634d7d94eb.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{6285-e9b45335bfb9ccaf.js → 6285-648f9a732e100b2f.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6798-b904395b0c18647b.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/7022-070ec0144a4d029c.js → frontend_dist_base_path_template/_next/static/chunks/7022-e76cae3ba5ee5312.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/722-900f786d24f91b2e.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{7361-694e1e4fb9c97d68.js → 7361-6c5c9063b9f91700.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/8146-92e7ccfed169ee9c.js → frontend_dist_base_path_template/_next/static/chunks/8146-27f0e31f309897a5.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/845-9a73c65fe3fdc328.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8487-8e1c09546dff4dbf.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-cc44b07f248707b0.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9618-4eb49cdbd1ba11d7.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{976-18c98af60b76f1a7.js → 976-0a8c2c4d7acd957b.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-78c4a077a2f279c2.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-b37d221eb5ddc248.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-7adc543fc490367a.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-51d366993f6dd449.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{files-449a022f2f0f2d94.js → files-fe6e73463a20d67c.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{manage-f83deb790548693b.js → manage-d8a38b5d1f50e798.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-9adc2974aada27ba.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-51b1311dff2a974e.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-2333e524d34b474a.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-e051057d9fe94f23.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-6d1afeb4a84f50f7.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-1ff9bb8e22ca1e75.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-11363aa58d51f4e1.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-779c3ef0676a12ac.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-bbea9a088657404a.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-3737f2b0afc2ede3.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-3c8f062913c66f3e.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-c1f4ed17d501ccca.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-8bdd858240d5dbf6.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-dd4fb405695f74bf.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/settings/account/profile.html +5 -5
- 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 +23 -23
- 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 +5 -5
- mage_ai/server/frontend_dist_base_path_template/triggers.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/version-control.html +5 -5
- mage_ai/server/server.py +9 -3
- mage_ai/services/k8s/job_manager.py +1 -0
- mage_ai/settings/repo.py +3 -0
- mage_ai/shared/files.py +47 -0
- mage_ai/shared/models.py +1 -0
- mage_ai/streaming/constants.py +1 -0
- mage_ai/streaming/sinks/postgres.py +2 -0
- mage_ai/streaming/sinks/rabbitmq.py +76 -0
- mage_ai/streaming/sinks/sink_factory.py +4 -0
- mage_ai/tests/api/operations/test_operations_with_hooks.py +136 -91
- mage_ai/tests/api/policies/test_oauth_policy.py +38 -0
- mage_ai/tests/data_preparation/models/global_hooks/test_global_hooks.py +33 -8
- mage_ai/tests/data_preparation/models/global_hooks/test_hook.py +82 -38
- mage_ai/tests/data_preparation/models/global_hooks/test_predicates.py +803 -0
- mage_ai/tests/data_preparation/models/global_hooks/test_utils.py +6 -1
- mage_ai/tests/data_preparation/models/test_block.py +26 -0
- mage_ai/tests/data_preparation/models/test_pipeline.py +10 -0
- mage_ai/tests/factory.py +40 -2
- mage_ai/tests/orchestration/test_pipeline_scheduler.py +82 -1
- mage_ai/tests/services/k8s/test_job_manager.py +16 -0
- mage_ai/tests/shared/mixins.py +60 -23
- mage_ai/tests/streaming/sinks/test_rabbitmq.py +36 -0
- {mage_ai-0.9.46.dist-info → mage_ai-0.9.47.dist-info}/METADATA +7 -4
- {mage_ai-0.9.46.dist-info → mage_ai-0.9.47.dist-info}/RECORD +257 -243
- {mage_ai-0.9.46.dist-info → mage_ai-0.9.47.dist-info}/WHEEL +1 -1
- mage_ai/server/frontend_dist/_next/static/9jB4XPuz6BzxBcG9VNao5/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3943-9e1105393a3be0de.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4267-fd4d8049e83178de.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5810-12eadc488265d55b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/595-0d174b1f9fbfce4f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6333-bc1b433b428a9095.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/722-a1584445357a276c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8487-032ef9b17d20aad9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9264-1d4f0327d42fed91.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9618-2c5045255ac5a6e7.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-ebef928183f9a3bb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-0f2d4be6fdca86ca.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-77edfa32d000e88b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-e561ae38cf5592e8.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-10e9a2d19541caa2.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-c8d3a5289ab93f88.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-ff7e9108502f5716.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-0691711636fa95c7.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-2914e326a5f1ffe0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a7500e6e53084d3.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-c0e551d265a8d467.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-e47db5c3eaf683af.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-55ac955dfa9a5a8d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-29c92a9bc54ae5cd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-572d82d6eb7a5d43.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-2d26d80370a2e481.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-9e1105393a3be0de.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4267-fd4d8049e83178de.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-12eadc488265d55b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/595-0d174b1f9fbfce4f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6333-bc1b433b428a9095.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/722-a1584445357a276c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8487-032ef9b17d20aad9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-1d4f0327d42fed91.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9618-2c5045255ac5a6e7.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-ebef928183f9a3bb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-0f2d4be6fdca86ca.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-77edfa32d000e88b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-e561ae38cf5592e8.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-10e9a2d19541caa2.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-c8d3a5289ab93f88.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-ff7e9108502f5716.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-0691711636fa95c7.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-2914e326a5f1ffe0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a7500e6e53084d3.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-c0e551d265a8d467.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-e47db5c3eaf683af.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-55ac955dfa9a5a8d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-29c92a9bc54ae5cd.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-572d82d6eb7a5d43.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-2d26d80370a2e481.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/uPDjJYpJMst1q6psbRyte/_buildManifest.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{9jB4XPuz6BzxBcG9VNao5 → N3FS4bHv0jpYeeg672uYK}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{uPDjJYpJMst1q6psbRyte → aoO6jYZLVlUGCCdY-wmy8}/_ssgManifest.js +0 -0
- {mage_ai-0.9.46.dist-info → mage_ai-0.9.47.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.46.dist-info → mage_ai-0.9.47.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.46.dist-info → mage_ai-0.9.47.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
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 a}});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 a=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 a(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!i(e,t)}catch(r){return!0}}var s="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,s=r[1];return c((function(){i.value=t,i.getSnapshot=n,a(i)&&s({inst:i})}),[e,t,n]),u((function(){return a(i)&&s({inst:i}),e((function(){a(i)&&s({inst:i})}))}),[e]),l(t),t};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:s},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,a=r.useMemo,s=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=a((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,a=void 0===t?null:t;return[function(){return e(n())},null===a?void 0:function(){return e(a())}]}),[n,t,r,i]);var p=u(e,d[0],d[1]);return l((function(){f.hasValue=!0,f.value=p}),[p]),s(p),p}},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),a=t(70613),s=t(68487),d=t(68899),f=t(28598);function p(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(p),h=t(62547),b=t(82571),g=t(35686),O=t(98464),y=t(46684),m=t(70515),S=t(53808),P=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 x(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 w(e,n){var t,r=e.addProjectBreadcrumbToCustomBreadcrumbs,p=e.after,j=e.afterHeader,w=e.afterHidden,Z=e.afterWidth,E=e.afterWidthOverride,T=e.appendBreadcrumbs,C=e.before,_=e.beforeWidth,k=e.breadcrumbs,I=e.children,A=e.errors,R=e.headerMenuItems,N=e.headerOffset,M=e.hideAfterCompletely,D=e.mainContainerHeader,L=e.navigationItems,H=e.setAfterHidden,Y=e.setErrors,V=e.subheaderChildren,W=e.subheaderNoPadding,B=e.title,F=e.uuid,U=(0,P.i)().width,G="dashboard_after_width_".concat(F),K="dashboard_before_width_".concat(F),X=(0,o.useRef)(null),Q=(0,o.useState)(E?Z:(0,S.U2)(G,Z)),J=Q[0],z=Q[1],q=(0,o.useState)(!1),$=q[0],ee=q[1],ne=(0,o.useState)(C?Math.max((0,S.U2)(K,_),13*m.iI):null),te=ne[0],re=ne[1],ie=(0,o.useState)(!1),oe=ie[0],ue=ie[1],ce=(0,o.useState)(null)[1],le=g.ZP.projects.list({},{revalidateOnFocus:!1}).data,ae=null===le||void 0===le?void 0:le.projects,se={label:function(){var e;return null===ae||void 0===ae||null===(e=ae[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},de=[];k&&(r&&de.push(se),de.push.apply(de,(0,i.Z)(k))),(null===k||void 0===k||!k.length||T)&&(null===ae||void 0===ae?void 0:ae.length)>=1&&(null!==k&&void 0!==k&&k.length||de.unshift({bold:!T,label:function(){return B}}),de.unshift(se)),(0,o.useEffect)((function(){null===X||void 0===X||!X.current||$||oe||null===ce||void 0===ce||ce(X.current.getBoundingClientRect().width)}),[$,J,oe,te,X,ce,U]),(0,o.useEffect)((function(){$||(0,S.t8)(G,J)}),[w,$,J,G]),(0,o.useEffect)((function(){oe||(0,S.t8)(K,te)}),[oe,te,K]);var fe=(0,O.Z)(Z);return(0,o.useEffect)((function(){E&&fe!==Z&&z(Z)}),[E,Z,fe]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Z,{title:B}),(0,f.jsx)(s.Z,{breadcrumbs:de,menuItems:R,project:null===ae||void 0===ae?void 0:ae[0],version:null===ae||void 0===ae||null===(t=ae[0])||void 0===t?void 0:t.version}),(0,f.jsxs)(d.Nk,{ref:n,children:[0!==(null===L||void 0===L?void 0:L.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(b.Z,{navigationItems:L,showMore:!0})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:p,afterHeader:j,afterHeightOffset:y.Mz,afterHidden:w,afterMousedownActive:$,afterWidth:J,before:C,beforeHeightOffset:y.Mz,beforeMousedownActive:oe,beforeWidth:d.k1+(C?te:0),headerOffset:N,hideAfterCompletely:!H||M,leftOffset:C?d.k1:null,mainContainerHeader:D,mainContainerRef:X,setAfterHidden:H,setAfterMousedownActive:ee,setAfterWidth:z,setBeforeMousedownActive:ue,setBeforeWidth:re,children:[V&&(0,f.jsx)(v,{noPadding:W,children:V}),I]})})]}),A&&(0,f.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===Y||void 0===Y?void 0:Y(null)},children:(0,f.jsx)(c.Z,x(x({},A),{},{onClose:function(){return null===Y||void 0===Y?void 0:Y(null)}}))})]})}var Z=o.forwardRef(w)},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),a=t(71180),s=t(75810),d=t(89706),f=t(97618),p=t(55485),v=t(85854),h=t(38276),b=t(4190),g=t(75499),O=t(30160),y=t(35686),m=t(70515),S=t(68669),P=t(3917),j=t(81728),x=t(72619),w=t(3314),Z=t(86735),E=t(28598);function T(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 C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?T(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):T(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.onActionCallback,t=e.pipeline,T=e.selectedBlock,_=e.selectedFilePath,k=e.setErrors,I=e.width,A=(0,c.j)("apiReloads"),R=(0,i.Z)(A,2)[1],N=(0,u.useMemo)((function(){return _?encodeURIComponent(_):T?encodeURIComponent("".concat(null===T||void 0===T?void 0:T.type,"/").concat(null===T||void 0===T?void 0:T.uuid)):null}),[T,_]),M=y.ZP.file_versions.files.list(N,{block_uuid:null===T||void 0===T?void 0:T.uuid,pipeline_uuid:null===t||void 0===t?void 0:t.uuid}),D=M.data,L=M.mutate,H=(0,u.useMemo)((function(){return(null===D||void 0===D?void 0:D.file_versions)||[]}),[D]),Y=(0,u.useState)(null),V=Y[0],W=Y[1],B=(0,u.useMemo)((function(){return null===H||void 0===H?void 0:H[V]}),[V,H]),F=y.ZP.file_contents.detail(B?encodeURIComponent(B.path):null).data,U=(0,u.useMemo)((function(){return null===F||void 0===F?void 0:F.file_content}),[F]),G=(0,u.useMemo)((function(){return(0,S.lU)()}),[]),K=(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]),X=(0,l.Db)(y.ZP.file_contents.useUpdate(N),{onSuccess:function(e){return(0,x.wD)(e,{callback:function(e){var t;_&&L();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)}}R((function(e){return C(C({},e),{},(0,r.Z)({},u,Number(new Date)))})),W((function(e){return e+1})),null===n||void 0===n||n(null===e||void 0===e?void 0:e.file_content,{blockUUID:null===T||void 0===T?void 0:T.uuid})},onErrorCallback:function(e,n){return k({errors:n,response:e})}})}}),Q=(0,i.Z)(X,2),J=Q[0],z=Q[1].isLoading,q=(0,u.useCallback)((function(e){var n=C({},e);return _||(n.block_uuid=null===T||void 0===T?void 0:T.uuid,n.pipeline_uuid=null===t||void 0===t?void 0:t.uuid),J({file_content:n})}),[t,T,_,J]),$=(0,u.useMemo)((function(){var e=H.map((function(e){var n=e.name,t=e.path;return[(0,E.jsxs)(p.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,E.jsxs)(f.Z,{flex:1,children:[(0,E.jsx)(O.ZP,{default:!0,monospace:!0,children:(0,P.JX)(n,{withSeconds:!0})}),(0,E.jsx)(h.Z,{px:2*m.cd,children:(0,E.jsx)(O.ZP,{monospace:!0,children:n})})]}),B&&(null===B||void 0===B?void 0:B.path)===t&&(0,E.jsx)(a.ZP,{compact:!0,loading:z,onClick:function(e){(0,w.j)(e),q({version:n})},small:!0,children:"Replace with this version"})]},n)]}));if(B){var n=(0,E.jsx)(h.Z,{p:m.cd,children:(0,E.jsx)(b.Z,{},"spinner")});if(U&&(null===U||void 0===U?void 0:U.path)===(null===B||void 0===B?void 0:B.path)){var t=U.content,r=void 0===t?"":t;n=(0,E.jsx)(s.Z,{autoHeight:!0,language:d.nB[K],padding:2*m.iI,readOnly:!0,value:(0,j.Pb)(r)?JSON.stringify(JSON.parse(r),null,2):r,width:I})}e=(0,Z.Hk)([n],V+1,e)}return e}),[U,K,H,z,B,V,q,I]);return(0,E.jsxs)("div",{style:{width:I},children:[(0,E.jsxs)(h.Z,{p:m.cd,children:[(0,E.jsx)(v.Z,{level:5,children:"File versions"}),(0,E.jsx)(O.ZP,{inline:!0,monospace:!0,children:_?decodeURIComponent(_):null===T||void 0===T?void 0:T.uuid})]}),(0,E.jsx)(g.Z,{buildRowProps:function(e){if(B&&V+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=H[e])||void 0===n?void 0:n.name)===(null===B||void 0===B?void 0:B.name)},onClickRow:function(e){B?e===V?W(null):e<V?W(e):e>V+1&&W(e-1):W(e)},rows:$})]})}},85385:function(e,n,t){"use strict";t.d(n,{Qq:function(){return v},Z7:function(){return h},cH:function(){return i},du:function(){return f},fp:function(){return d},j5:function(){return p},uM:function(){return s}});var r,i,o=t(82394),u=t(57653),c=t(82359),l=t(72473),a=t(86735),s="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 p(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,a.HK)(p(e),(function(e){return e.key}))}var h=(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)},89706:function(e,n,t){"use strict";t.d(n,{JD:function(){return h},Lu:function(){return o},PF:function(){return f},dT:function(){return u},n6:function(){return a},nB:function(){return v},oy:function(){return p},xF:function(){return d}});var r,i,o,u,c=t(82394),l=t(44425);!function(e){e.CSV="csv",e.JSON="json",e.MD="md",e.PY="py",e.R="r",e.SH="sh",e.SQL="sql",e.TXT="txt",e.YAML="yaml",e.YML="yml"}(o||(o={})),function(e){e.INIT_PY="__init__.py",e.METADATA_YAML="metadata.yaml",e.REQS_TXT="requirements.txt"}(u||(u={}));var a=[o.PY,o.SQL],s=[o.JSON,o.MD,o.PY,o.R,o.SH,o.SQL,o.TXT,o.YAML,o.YML],d=new RegExp(s.map((function(e){return".".concat(e,"$")})).join("|")),f=(new RegExp(s.map((function(e){return".".concat(e,"$")})).join("|")),"charts"),p="pipelines",v=(r={},(0,c.Z)(r,o.MD,l.t6.MARKDOWN),(0,c.Z)(r,o.JSON,o.JSON),(0,c.Z)(r,o.PY,l.t6.PYTHON),(0,c.Z)(r,o.R,l.t6.R),(0,c.Z)(r,o.SQL,l.t6.SQL),(0,c.Z)(r,o.TXT,"text"),(0,c.Z)(r,o.YAML,l.t6.YAML),(0,c.Z)(r,o.YML,l.t6.YAML),r),h=(i={},(0,c.Z)(i,l.t6.MARKDOWN,o.MD),(0,c.Z)(i,l.t6.PYTHON,o.PY),(0,c.Z)(i,l.t6.R,o.R),(0,c.Z)(i,l.t6.SQL,o.SQL),(0,c.Z)(i,l.t6.YAML,o.YAML),(0,c.Z)(i,"text",o.TXT),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 h},G7:function(){return O},LM:function(){return y},Mj:function(){return m},QK:function(){return v},RH:function(){return g},a_:function(){return P},fj:function(){return j},kA:function(){return S},qL:function(){return c},r0:function(){return b}});var r,i,o,u,c,l=t(75582),a=t(82394),s=t(72473),d=t(72098);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,a.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}!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(c||(c={}));var v,h,b,g=(r={},(0,a.Z)(r,c.INTEGRATION,"Integration"),(0,a.Z)(r,c.PYTHON,"Python"),(0,a.Z)(r,c.PYSPARK,"PySpark"),(0,a.Z)(r,c.STREAMING,"Streaming"),r),O=(i={},(0,a.Z)(i,c.INTEGRATION,"Integration"),(0,a.Z)(i,c.PYTHON,"Standard"),(0,a.Z)(i,c.PYSPARK,"PySpark"),(0,a.Z)(i,c.STREAMING,"Streaming"),i),y="all",m=(c.PYTHON,c.INTEGRATION,c.STREAMING,o={},(0,a.Z)(o,y,s.ie),(0,a.Z)(o,c.INTEGRATION,s.YC),(0,a.Z)(o,c.PYTHON,s.El),(0,a.Z)(o,c.STREAMING,s.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"}(v||(v={})),function(e){e.GROUP="group_by",e.HISTORY_DAYS="from_history_days",e.NO_TAGS="no_tags",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(h||(h={})),function(e){e.STATUS="status",e.TAG="tag",e.TYPE="type"}(b||(b={}));var S=[v.ACTIVE,v.INACTIVE,v.NO_SCHEDULES],P=(u={},(0,a.Z)(u,c.PYTHON,d.U.PYTHON3),(0,a.Z)(u,c.PYSPARK,d.U.PYSPARK),u),j=Object.entries(P).reduce((function(e,n){var t=(0,l.Z)(n,2),r=t[0],i=t[1];return p(p({},e),{},(0,a.Z)({},i,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),a=t(47041),s=t(70515),d=t(28598),f=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*s.iI,1.5*s.iI,1.5*s.iI),p=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 ")})),h=r.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*s.iI,a.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*s.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),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*s.iI);n.Z=function(e){var n=e.borderless,t=e.children,r=e.containerRef,c=e.contentContainerRef,l=e.dark,a=e.footer,s=e.fullHeight,f=void 0===s||s,g=e.fullWidth,O=void 0===g||g,y=e.header,m=e.headerHeight,S=e.headerIcon,P=e.headerPaddingVertical,j=e.headerTitle,x=e.maxHeight,w=e.maxWidth,Z=e.minWidth,E=e.noPadding,T=e.overflowVisible,C=e.subtitle,_=e.success;return(0,d.jsxs)(p,{borderless:n,dark:l,fullHeight:f,fullWidth:O,maxHeight:x,maxWidth:w,minWidth:Z,overflowVisible:T,ref:r,success:_,children:[(y||j)&&(0,d.jsxs)(v,{headerPaddingVertical:P,height:m,children:[y&&y,j&&(0,d.jsx)(i.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(i.ZP,{alignItems:"center",children:[S&&S,(0,d.jsx)(o.Z,{ml:S?1:0,children:(0,d.jsx)(u.ZP,{bold:!0,default:!0,children:j})})]})})]}),(0,d.jsxs)(h,{maxHeight:x,noPadding:E,overflowVisible:T,ref:c,children:[C&&"string"===typeof C&&(0,d.jsx)(o.Z,{mb:2,children:(0,d.jsx)(u.ZP,{default:!0,children:C})}),C&&"string"!==typeof C&&C,t]}),a&&(0,d.jsx)(b,{children:a})]})}},35185:function(e,n,t){"use strict";var r=t(82394),i=t(91835),o=(t(82684),t(38626)),u=t(44897),c=t(42631),l=t(70515),a=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 d(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}var f=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*l.iI,(function(e){return"\n background-color: ".concat((e.theme.monotone||u.Z.monotone).grey200,";\n ")})),p=o.default.div.withConfig({displayName:"ProgressBar__ProgressBarStyle",componentId:"sc-10x9ojc-1"})(["height:inherit;position:absolute;"," "," "," ",""],(function(e){return!e.danger&&"\n background-color: ".concat((e.theme.progress||u.Z.progress).positive,";\n ")}),(function(e){return e.progress&&"\n width: ".concat(e.progress,"%;\n ")}),(function(e){return e.danger&&"\n background-color: ".concat((e.theme.progress||u.Z.progress).negative,";\n ")}),(function(e){return e.animateProgress&&"\n animation: animate-progress ".concat(e.animateProgress.duration,"ms linear forwards;\n\n @keyframes animate-progress {\n 0% {\n width: ").concat(e.animateProgress.start,"%;\n }\n\n 100% {\n width: ").concat(e.animateProgress.end,"%;\n }\n }\n ")}));n.Z=function(e){var n=(0,i.Z)({},e);return(0,a.jsx)(f,d(d({},n),{},{children:(0,a.jsx)(p,d({},n))}))}},43173:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return z}});var r=t(77837),i=t(38860),o=t.n(i),u=t(82394),c=t(75582),l=t(17717),a=t(82684),s=t(80329),d=t(69864),f=t(65557),p=t(94629),v=t(10553),h=t(29618),b=t(50724),g=t(55485),O=t(70374),y=t(30160),m=t(39643),S=t(87848),P=t(58325),j=t(44688),x=t(28598);var w=function(e){var n=e.children,t=e.fileVersionsVisible,r=e.onSave,i=e.setFilesVersionsVisible,o=(0,a.useState)(null),u=o[0],c=o[1],l=(0,a.useRef)(null),s=(0,a.useRef)(null),d=(0,a.useMemo)((function(){return[{disabled:!r,keyTextGroups:[[(0,P.V5)()?m.RJ:m.hE,m.SS]],label:function(){return"Save"},onClick:function(){return r?r():null},uuid:"save"}]}),[r]),f=(0,a.useMemo)((function(){return[{label:function(){return t?"Hide versions":"Show versions"},onClick:function(){return i(!t)},uuid:"versions"}]}),[t,i]),p="FileHeaderMenu/index",v=(0,j.y)(),h=v.registerOnKeyDown,w=v.unregisterOnKeyDown;return(0,a.useEffect)((function(){return function(){w(p)}}),[w,p]),h(p,(function(e,n){null!==u&&(n[m.QK]?c((function(e){return 0===e?2:e-1})):n[m.DY]&&c((function(e){return 2===e?0:e+1})))}),[u,c]),(0,x.jsx)(b.Z,{onClickOutside:function(){return c(null)},open:!0,style:{position:"relative"},children:(0,x.jsxs)(g.ZP,{children:[(0,x.jsxs)("div",{style:{position:"relative"},children:[(0,x.jsx)(S.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,x.jsx)(y.ZP,{children:"File"})}),(0,x.jsx)(O.Z,{items:d,onClickCallback:function(){return c(null)},open:0===u,parentRef:l,uuid:"FileHeaderMenu/file"})]}),(0,x.jsxs)("div",{style:{position:"relative"},children:[(0,x.jsx)(S.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:s,children:(0,x.jsx)(y.ZP,{children:"Edit"})}),(0,x.jsx)(O.Z,{items:f,onClickCallback:function(){return c(null)},open:1===u,parentRef:s,uuid:"FileHeaderMenu/edit"})]}),n]})})},Z=t(90758),E=t(28385),T=t(35686),C=t(38626),_=t(44897),k=t(2842),I=t(46684),A=t(47041),R=72-k.uX+I.Mz,N=C.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-11pty4f-0"})(["height:","px;top:","px;z-index:3;",""],72,I.Mz,(function(e){return"\n background-color: ".concat((e.theme.background||_.Z.background).codeArea,";\n ")})),M=C.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 ")})),D=C.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-11pty4f-2"})([""," height:","px;overflow-x:auto;position:sticky;width:100%;z-index:0;"],(0,A.y$)(),36),L=t(53808),H=t(86735),Y="open_files";function V(e){(0,L.t8)(Y,e)}var W=t(72619),B=t(42041),F=t(23780);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 G(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,u.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}function K(e){var n=e.split(l.sep);return n[n.length-1]}var X=function(){var e=(0,s.j)("apiReloads"),n=(0,c.Z)(e,2)[1],t=(0,a.useRef)(null),r=(0,a.useRef)(null),i=(0,a.useCallback)((function(e){r.current||(r.current={}),r.current=G(G({},r.current),e)}),[r]),o=(0,a.useState)([]),l=o[0],b=o[1],g=(0,a.useState)(null),O=g[0],y=g[1],S=(0,a.useState)({}),P=S[0],C=S[1],_=(0,a.useState)(!1),k=_[0],I=_[1],A=(0,a.useMemo)((function(){return l.reduce((function(e,n){var t=K(n);return e[t]||(e[t]=[]),e[t].push(n),e}),{})}),[l]),U=(0,a.useCallback)((function(e){V(e),b(e)}),[]),X=(0,a.useCallback)((function(e){U(function(e){var n=(0,L.U2)(Y,[]);return n.includes(e)||n.push(e),V(n),n}(e))}),[U]),Q=(0,a.useCallback)((function(e){i((0,u.Z)({},e,null)),C((function(n){return G(G({},n),{},(0,u.Z)({},e,!1))}));var n=function(e){var n=(0,L.U2)(Y,[]),t=(0,H.Od)(n,(function(n){return n===e}));return V(t),t}(e);U(n),O===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)}),[O,i,U]),J=(0,a.useCallback)((function(e,n){n||(X(e),y(e))}),[X]);(0,a.useEffect)((function(){var e=(0,L.U2)(Y,[]);U(e),y((function(n){return!n&&(null===e||void 0===e?void 0:e.length)>=1?e[0]:n}))}),[U]);var z=T.ZP.files.list(),q=z.data,$=z.mutate,ee=(0,a.useMemo)((function(){return(null===q||void 0===q?void 0:q.files)||[]}),[q]),ne=(0,F.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,a.useEffect)((function(){return function(){ue(re)}}),[ue,re]),oe(re,(function(e,n){var t=Object.entries(P).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)([m.zX,m.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()}}),[P]);var ce=(0,a.useMemo)((function(){return(0,x.jsx)(Z.Z,{filePaths:l,filesTouched:P,isSelectedFilePath:function(e,n){return e===n},onClickTab:function(e){return y(e)},onClickTabClose:function(e){return Q(e)},renderTabTitle:function(e){var n=K(e),t=A[n];return t&&(null===t||void 0===t?void 0:t.length)>=2?e:n},selectedFilePath:O})}),[P,l,A,Q,O]),le=(0,a.useMemo)((function(){return(0,x.jsx)(v.Z,{fetchFileTree:$,files:ee,onClickFile:function(e){return J(e)},onClickFolder:function(e){return J(e,!0)},onCreateFile:function(e){var n=e.path;return J(n)},ref:t,setErrors:te})}),[$,t,ee,J,te]),ae=(0,d.Db)((function(e){return T.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,W.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})}})}}),se=(0,c.Z)(ae,1)[0],de=(0,a.useCallback)((function(e,n){se(G(G({},n),{},{content:e})),C((function(e){return G(G({},e),{},(0,u.Z)({},null===n||void 0===n?void 0:n.path,!1))}))}),[C,se]),fe=(0,a.useMemo)((function(){return null===l||void 0===l?void 0:l.map((function(e){return(0,x.jsx)("div",{style:{display:O===e?null:"none"},children:(0,x.jsx)(f.Z,{uuid:"FileEditor/".concat(decodeURIComponent(e)),children:(0,x.jsx)(h.Z,{active:O===e,disableRefreshWarning:!0,filePath:e?encodeURIComponent(e):null,hideHeaderButtons:!0,onContentChange:function(n){return i((0,u.Z)({},e,n))},saveFile:de,selectedFilePath:O,setErrors:te,setFilesTouched:C})})},e)}))}),[l,de,O,i,te]),pe=(0,a.useMemo)((function(){return(0,x.jsx)(w,{fileVersionsVisible:k,onSave:function(){var e,n;(null===r||void 0===r||null===(e=r.current)||void 0===e||null===(n=e[O])||void 0===n?void 0:n.length)>=1&&de(r.current[O],{path:O})},setFilesVersionsVisible:I})}),[r,k,de,O,I]);return(0,x.jsx)(p.Z,{after:(0,x.jsx)(f.Z,{uuid:"FileVersions/".concat(O?decodeURIComponent(O):""),children:(0,x.jsx)(E.Z,{selectedFilePath:O,setErrors:te})}),afterHidden:!(k&&O),before:le,headerOffset:R,mainContainerHeader:(null===l||void 0===l?void 0:l.length)>=1&&(0,x.jsxs)(N,{children:[(0,x.jsx)(M,{children:pe}),(0,x.jsx)(D,{children:ce})]}),title:"Files",uuid:"Files/index",children:fe})},Q=t(93808);function J(){return(0,x.jsx)(X,{})}J.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 z=(0,Q.Z)(J)},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,a=null===(e=window)||void 0===e||null===(n=e.navigator)||void 0===n?void 0:n.userAgent,s=(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 s?["macOS","Macintosh","MacIntel","MacPPC","Mac68K"].includes(s)?l=i.MAC:["Win32","Win64","Windows","WinCE"].includes(s)?l=i.WINDOWS:["iPhone","iPad","iPod"].includes(s)&&(l=i.IOS):a&&(a.includes("Macintosh")?l=i.MAC:a.includes("Windows")?l=i.WINDOWS:a.includes("Linux")&&a.includes("X11")?l=i.LINUX:/(iPhone|iPad)/.test(a)?l=i.IOS:a.includes("Android")&&a.includes("Mobi")?l=i.ANDROID:a.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,4267,600,8487,8264,7858,5499,5810,553,9618,5638,9774,2888,179],(function(){return n=99017,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-7adc543fc490367a.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
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,4267,600,8487,8264,7858,3437,9774,2888,179],(function(){return e=98746,r(r.s=e);var e}));var e=r.O();_N_E=e}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[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.q)(),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,4267,600,8487,8264,7858,5499,3437,9774,2888,179],(function(){return n=95140,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9015],{59739:function(e,t,n){"use strict";var r=n(56669);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,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:i,resetWarningCache:o};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 o=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"===typeof e?e(t):e;if(o!==t){const e=t;t=r?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,o,i),i};var i=n(81550);const{useSyncExternalStoreWithSelector:u}=i;const c=e=>{const t="function"===typeof e?(e=>e?o(e):o)(e):e,n=(e,n)=>function(e,t=e.getState,n){const o=u(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,r.useDebugValue)(o),o}(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],o=n,"function"==typeof o?o(r):o)};var r,o}))});return{useGlobalState:e=>{const o=(0,r.useCallback)((t=>t[e]),[e]);return[t(o),(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 o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=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!o(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=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,l=r[1];return c((function(){o.value=n,o.getSnapshot=t,s(o)&&l({inst:o})}),[e,n,t]),u((function(){return s(o)&&l({inst:o}),e((function(){s(o)&&l({inst:o})}))}),[e]),a(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},73847:function(e,t,n){"use strict";var r=n(82684),o=n(48216);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},u=o.useSyncExternalStore,c=r.useRef,a=r.useEffect,s=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){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!==o&&f.hasValue){var t=f.value;if(o(t,e))return c=t}return c=e}if(t=c,i(u,e))return t;var n=r(e);return void 0!==o&&o(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,o]);var p=u(e,d[0],d[1]);return a((function(){f.hasValue=!0,f.value=p}),[p]),l(p),p}},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 A}});var r=n(82394),o=n(21831),i=n(82684),u=n(50724),c=n(82555),a=n(97618),s=n(70613),l=n(68487),d=n(68899),f=n(28598);function p(e,t){var n=e.children,r=e.noPadding;return(0,f.jsx)(d.HS,{noPadding:r,ref:t,children:n})}var h=i.forwardRef(p),b=n(62547),g=n(82571),v=n(35686),S=n(98464),m=n(46684),O=n(70515),y=n(53808),E=n(19183);function T(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 P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t){var n,r=e.addProjectBreadcrumbToCustomBreadcrumbs,p=e.after,T=e.afterHeader,j=e.afterHidden,A=e.afterWidth,x=e.afterWidthOverride,Z=e.appendBreadcrumbs,w=e.before,I=e.beforeWidth,_=e.breadcrumbs,R=e.children,N=e.errors,k=e.headerMenuItems,C=e.headerOffset,L=e.hideAfterCompletely,H=e.mainContainerHeader,M=e.navigationItems,Y=e.setAfterHidden,D=e.setErrors,B=e.subheaderChildren,W=e.subheaderNoPadding,G=e.title,V=e.uuid,K=(0,E.i)().width,F="dashboard_after_width_".concat(V),U="dashboard_before_width_".concat(V),Q=(0,i.useRef)(null),X=(0,i.useState)(x?A:(0,y.U2)(F,A)),J=X[0],q=X[1],$=(0,i.useState)(!1),z=$[0],ee=$[1],te=(0,i.useState)(w?Math.max((0,y.U2)(U,I),13*O.iI):null),ne=te[0],re=te[1],oe=(0,i.useState)(!1),ie=oe[0],ue=oe[1],ce=(0,i.useState)(null)[1],ae=v.ZP.projects.list({},{revalidateOnFocus:!1}).data,se=null===ae||void 0===ae?void 0:ae.projects,le={label:function(){var e;return null===se||void 0===se||null===(e=se[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},de=[];_&&(r&&de.push(le),de.push.apply(de,(0,o.Z)(_))),(null===_||void 0===_||!_.length||Z)&&(null===se||void 0===se?void 0:se.length)>=1&&(null!==_&&void 0!==_&&_.length||de.unshift({bold:!Z,label:function(){return G}}),de.unshift(le)),(0,i.useEffect)((function(){null===Q||void 0===Q||!Q.current||z||ie||null===ce||void 0===ce||ce(Q.current.getBoundingClientRect().width)}),[z,J,ie,ne,Q,ce,K]),(0,i.useEffect)((function(){z||(0,y.t8)(F,J)}),[j,z,J,F]),(0,i.useEffect)((function(){ie||(0,y.t8)(U,ne)}),[ie,ne,U]);var fe=(0,S.Z)(A);return(0,i.useEffect)((function(){x&&fe!==A&&q(A)}),[x,A,fe]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:G}),(0,f.jsx)(l.Z,{breadcrumbs:de,menuItems:k,project:null===se||void 0===se?void 0:se[0],version:null===se||void 0===se||null===(n=se[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{ref:t,children:[0!==(null===M||void 0===M?void 0:M.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(g.Z,{navigationItems:M,showMore:!0})}),(0,f.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(b.Z,{after:p,afterHeader:T,afterHeightOffset:m.Mz,afterHidden:j,afterMousedownActive:z,afterWidth:J,before:w,beforeHeightOffset:m.Mz,beforeMousedownActive:ie,beforeWidth:d.k1+(w?ne:0),headerOffset:C,hideAfterCompletely:!Y||L,leftOffset:w?d.k1:null,mainContainerHeader:H,mainContainerRef:Q,setAfterHidden:Y,setAfterMousedownActive:ee,setAfterWidth:q,setBeforeMousedownActive:ue,setBeforeWidth:re,children:[B&&(0,f.jsx)(h,{noPadding:W,children:B}),R]})})]}),N&&(0,f.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,f.jsx)(c.Z,P(P({},N),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}var A=i.forwardRef(j)},85385:function(e,t,n){"use strict";n.d(t,{Qq:function(){return h},Z7:function(){return b},cH:function(){return o},du:function(){return f},fp:function(){return d},j5:function(){return p},uM:function(){return l}});var r,o,i=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"}(o||(o={}));o.BLOCK_SETTINGS,o.CALLBACKS,o.CHARTS,o.DATA,o.EXTENSIONS,o.TREE;var f=[o.DATA];function p(e){var t,n,r,i=[{key:o.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:o.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:o.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:o.SECRETS}];return u.qL.PYSPARK!==(null===e||void 0===e||null===(t=e.pipeline)||void 0===t?void 0:t.type)&&i.push.apply(i,[{buildLabel:function(e){e.pipeline;return"Add-on blocks"},key:o.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:o.EXTENSIONS}]),i.push.apply(i,[{key:o.DATA,label:"Data"},{key:o.TERMINAL,label:"Terminal"},{key:o.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]&&i.push({key:o.INTERACTIONS,label:"Interactions"}),i}function h(e){return(0,s.HK)(p(e),(function(e){return e.key}))}var b=(r={},(0,i.Z)(r,o.ADDON_BLOCKS,a.EJ),(0,i.Z)(r,o.BLOCK_SETTINGS,a.JG),(0,i.Z)(r,o.CALLBACKS,a.AQ),(0,i.Z)(r,o.CHARTS,a.GQ),(0,i.Z)(r,o.DATA,a.iA),(0,i.Z)(r,o.EXTENSIONS,a.Bf),(0,i.Z)(r,o.INTERACTIONS,a.yd),(0,i.Z)(r,o.SECRETS,a.Yo),(0,i.Z)(r,o.SETTINGS,a.Zr),(0,i.Z)(r,o.TERMINAL,a.oI),(0,i.Z)(r,o.TREE,a.mp),(0,i.Z)(r,o.VARIABLES,a.LO),r)},75083:function(e,t,n){"use strict";n.d(t,{HF:function(){return i},L6:function(){return r}});var r,o=n(72473);function i(e,t,n){var i=e.owner,u=(e.roles,[{Icon:o.Vz,id:r.WORKSPACES,isSelected:function(){return r.WORKSPACES===n},label:function(){return"Workspaces"},linkProps:{href:"/manage"}}]);return i&&u.push({Icon:o.NO,id:r.USERS,isSelected:function(){return r.USERS===n},label:function(){return"Users"},linkProps:{href:"/manage/users"}}),u.push.apply(u,[{Icon:o.Zr,id:r.SETTINGS,isSelected:function(){return r.SETTINGS===n},label:function(){return"Settings"},linkProps:{href:"/manage/settings"}},{Icon:o.$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),o=n(94629),i=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,p=e.headerOffset,h=e.mainContainerHeader,b=e.pageName,g=e.setErrors,v=e.subheaderChildren,S=i.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]),O=(0,a.PR)()||{};return(0,s.jsx)(o.Z,{before:t,beforeWidth:t?50*u.iI:0,breadcrumbs:l,errors:f,headerOffset:p,mainContainerHeader:h,navigationItems:(0,c.HF)(O,m,b),setErrors:g,subheaderChildren:v,title:"Workspaces",uuid:"workspaces/index",children:d})}},89706:function(e,t,n){"use strict";n.d(t,{JD:function(){return b},Lu:function(){return i},PF:function(){return f},dT:function(){return u},n6:function(){return s},nB:function(){return h},oy:function(){return p},xF:function(){return d}});var r,o,i,u,c=n(82394),a=n(44425);!function(e){e.CSV="csv",e.JSON="json",e.MD="md",e.PY="py",e.R="r",e.SH="sh",e.SQL="sql",e.TXT="txt",e.YAML="yaml",e.YML="yml"}(i||(i={})),function(e){e.INIT_PY="__init__.py",e.METADATA_YAML="metadata.yaml",e.REQS_TXT="requirements.txt"}(u||(u={}));var s=[i.PY,i.SQL],l=[i.JSON,i.MD,i.PY,i.R,i.SH,i.SQL,i.TXT,i.YAML,i.YML],d=new RegExp(l.map((function(e){return".".concat(e,"$")})).join("|")),f=(new RegExp(l.map((function(e){return".".concat(e,"$")})).join("|")),"charts"),p="pipelines",h=(r={},(0,c.Z)(r,i.MD,a.t6.MARKDOWN),(0,c.Z)(r,i.JSON,i.JSON),(0,c.Z)(r,i.PY,a.t6.PYTHON),(0,c.Z)(r,i.R,a.t6.R),(0,c.Z)(r,i.SQL,a.t6.SQL),(0,c.Z)(r,i.TXT,"text"),(0,c.Z)(r,i.YAML,a.t6.YAML),(0,c.Z)(r,i.YML,a.t6.YAML),r),b=(o={},(0,c.Z)(o,a.t6.MARKDOWN,i.MD),(0,c.Z)(o,a.t6.PYTHON,i.PY),(0,c.Z)(o,a.t6.R,i.R),(0,c.Z)(o,a.t6.SQL,i.SQL),(0,c.Z)(o,a.t6.YAML,i.YAML),(0,c.Z)(o,"text",i.TXT),o)},72098:function(e,t,n){"use strict";var r;n.d(t,{U:function(){return r}}),function(e){e.PYSPARK="pysparkkernel",e.PYTHON3="python3"}(r||(r={}))},57653:function(e,t,n){"use strict";n.d(t,{$1:function(){return b},G7:function(){return S},LM:function(){return m},Mj:function(){return O},QK:function(){return h},RH:function(){return v},a_:function(){return E},fj:function(){return T},kA:function(){return y},qL:function(){return c},r0:function(){return g}});var r,o,i,u,c,a=n(75582),s=n(82394),l=n(72473),d=n(72098);function f(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 p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(c||(c={}));var h,b,g,v=(r={},(0,s.Z)(r,c.INTEGRATION,"Integration"),(0,s.Z)(r,c.PYTHON,"Python"),(0,s.Z)(r,c.PYSPARK,"PySpark"),(0,s.Z)(r,c.STREAMING,"Streaming"),r),S=(o={},(0,s.Z)(o,c.INTEGRATION,"Integration"),(0,s.Z)(o,c.PYTHON,"Standard"),(0,s.Z)(o,c.PYSPARK,"PySpark"),(0,s.Z)(o,c.STREAMING,"Streaming"),o),m="all",O=(c.PYTHON,c.INTEGRATION,c.STREAMING,i={},(0,s.Z)(i,m,l.ie),(0,s.Z)(i,c.INTEGRATION,l.YC),(0,s.Z)(i,c.PYTHON,l.El),(0,s.Z)(i,c.STREAMING,l.dB),i);!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"}(h||(h={})),function(e){e.GROUP="group_by",e.HISTORY_DAYS="from_history_days",e.NO_TAGS="no_tags",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(b||(b={})),function(e){e.STATUS="status",e.TAG="tag",e.TYPE="type"}(g||(g={}));var y=[h.ACTIVE,h.INACTIVE,h.NO_SCHEDULES],E=(u={},(0,s.Z)(u,c.PYTHON,d.U.PYTHON3),(0,s.Z)(u,c.PYSPARK,d.U.PYSPARK),u),T=Object.entries(E).reduce((function(e,t){var n=(0,a.Z)(t,2),r=n[0],o=n[1];return p(p({},e),{},(0,s.Z)({},o,r))}),{})},65956:function(e,t,n){"use strict";var r=n(38626),o=n(55485),i=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),p=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 "})),h=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 "})),g=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,v=e.fullWidth,S=void 0===v||v,m=e.header,O=e.headerHeight,y=e.headerIcon,E=e.headerPaddingVertical,T=e.headerTitle,P=e.maxHeight,j=e.maxWidth,A=e.minWidth,x=e.noPadding,Z=e.overflowVisible,w=e.subtitle,I=e.success;return(0,d.jsxs)(p,{borderless:t,dark:a,fullHeight:f,fullWidth:S,maxHeight:P,maxWidth:j,minWidth:A,overflowVisible:Z,ref:r,success:I,children:[(m||T)&&(0,d.jsxs)(h,{headerPaddingVertical:E,height:O,children:[m&&m,T&&(0,d.jsx)(o.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(o.ZP,{alignItems:"center",children:[y&&y,(0,d.jsx)(i.Z,{ml:y?1:0,children:(0,d.jsx)(u.ZP,{bold:!0,default:!0,children:T})})]})})]}),(0,d.jsxs)(b,{maxHeight:P,noPadding:x,overflowVisible:Z,ref:c,children:[w&&(0,d.jsx)(i.Z,{mb:2,children:(0,d.jsx)(u.ZP,{default:!0,children:w})}),n]}),s&&(0,d.jsx)(g,{children:s})]})}},35185:function(e,t,n){"use strict";var r=n(82394),o=n(91835),i=(n(82684),n(38626)),u=n(44897),c=n(42631),a=n(70515),s=n(28598);function l(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=i.default.div.withConfig({displayName:"ProgressBar__ProgressBarContainerStyle",componentId:"sc-10x9ojc-0"})(["border-radius:","px;height:","px;overflow:hidden;position:relative;width:100%;",""],c.BG,.75*a.iI,(function(e){return"\n background-color: ".concat((e.theme.monotone||u.Z.monotone).grey200,";\n ")})),p=i.default.div.withConfig({displayName:"ProgressBar__ProgressBarStyle",componentId:"sc-10x9ojc-1"})(["height:inherit;position:absolute;"," "," "," ",""],(function(e){return!e.danger&&"\n background-color: ".concat((e.theme.progress||u.Z.progress).positive,";\n ")}),(function(e){return e.progress&&"\n width: ".concat(e.progress,"%;\n ")}),(function(e){return e.danger&&"\n background-color: ".concat((e.theme.progress||u.Z.progress).negative,";\n ")}),(function(e){return e.animateProgress&&"\n animation: animate-progress ".concat(e.animateProgress.duration,"ms linear forwards;\n\n @keyframes animate-progress {\n 0% {\n width: ").concat(e.animateProgress.start,"%;\n }\n\n 100% {\n width: ").concat(e.animateProgress.end,"%;\n }\n }\n ")}));t.Z=function(e){var t=(0,o.Z)({},e);return(0,s.jsx)(f,d(d({},t),{},{children:(0,s.jsx)(p,d({},t))}))}},83087:function(e,t,n){"use strict";n.r(t);var r=n(77837),o=n(38860),i=n.n(o),u=n(82684),c=n(65557),a=n(10553),s=n(29618),l=n(90758),d=n(93808),f=n(38276),p=n(59533),h=n(35686),b=n(86735),g=n(15610),v=n(69419),S=n(97133),m=n(75083),O=n(28598);function y(){var e=(0,u.useState)(null),t=e[0],n=e[1],r=(0,v.iV)(),o=r.file_path,i=(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,v.iV)()["file_paths[]"]||[];Array.isArray(n)||(n=[n]),n.includes(t)||n.push(t),(0,g.u7)({file_path:t,"file_paths[]":n})}),[]),y=h.ZP.files.list(),E=y.data,T=y.mutate,P=(0,u.useMemo)((function(){return(null===E||void 0===E?void 0:E.files)||[]}),[E]),j=(0,u.useRef)(null),A=(0,u.useState)(null),x=A[0],Z=A[1],w=(0,u.useState)([]),I=w[0],_=w[1],R=(0,u.useState)({}),N=R[0],k=R[1],C=(0,u.useMemo)((function(){return(0,O.jsx)(f.Z,{ml:1,mt:1,children:(0,O.jsx)(a.Z,{fetchFileTree:T,files:P,openFile:d,ref:j,setErrors:n})})}),[T,P,d,n]);return(0,u.useEffect)((function(){Z(o)}),[o]),(0,u.useEffect)((function(){(0,b.fS)(i,I)||_(i)}),[i,I]),(0,O.jsx)(p.Z,{before:C,breadcrumbs:[{label:function(){return"Workspaces"},linkProps:{as:"/manage",href:"/manage"}},{bold:!0,label:function(){return"File browser"}}],errors:t,mainContainerHeader:(0,O.jsx)(S.rK,{secondary:!0,children:(0,O.jsx)(l.Z,{filePaths:I,filesTouched:N,selectedFilePath:x})}),pageName:m.L6.FILE_BROWSER,children:null===i||void 0===i?void 0:i.map((function(e){return(0,O.jsx)("div",{style:{display:x===e?null:"none"},children:(0,O.jsx)(c.Z,{uuid:"manage/FileEditor/".concat(decodeURIComponent(e)),children:(0,O.jsx)(s.Z,{active:x===e,filePath:e,selectedFilePath:x,setErrors:n,setFilesTouched:k})})},e)}))})}y.getInitialProps=(0,r.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),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 o}});var r=n(61049);function o(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 i}});var r=n(12539),o=n(80022);function i(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,o.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,4267,600,8487,8264,7858,5499,5810,553,9618,5638,9774,2888,179],(function(){return t=90205,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9015],{59739:function(e,t,n){"use strict";var r=n(56669);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,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:i,resetWarningCache:o};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 o=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"===typeof e?e(t):e;if(o!==t){const e=t;t=r?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,o,i),i};var i=n(81550);const{useSyncExternalStoreWithSelector:u}=i;const c=e=>{const t="function"===typeof e?(e=>e?o(e):o)(e):e,n=(e,n)=>function(e,t=e.getState,n){const o=u(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,r.useDebugValue)(o),o}(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],o=n,"function"==typeof o?o(r):o)};var r,o}))});return{useGlobalState:e=>{const o=(0,r.useCallback)((t=>t[e]),[e]);return[t(o),(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 o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=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!o(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=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,l=r[1];return c((function(){o.value=n,o.getSnapshot=t,s(o)&&l({inst:o})}),[e,n,t]),u((function(){return s(o)&&l({inst:o}),e((function(){s(o)&&l({inst:o})}))}),[e]),a(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},73847:function(e,t,n){"use strict";var r=n(82684),o=n(48216);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},u=o.useSyncExternalStore,c=r.useRef,a=r.useEffect,s=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){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!==o&&f.hasValue){var t=f.value;if(o(t,e))return c=t}return c=e}if(t=c,i(u,e))return t;var n=r(e);return void 0!==o&&o(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,o]);var p=u(e,d[0],d[1]);return a((function(){f.hasValue=!0,f.value=p}),[p]),l(p),p}},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 A}});var r=n(82394),o=n(21831),i=n(82684),u=n(50724),c=n(82555),a=n(97618),s=n(70613),l=n(68487),d=n(68899),f=n(28598);function p(e,t){var n=e.children,r=e.noPadding;return(0,f.jsx)(d.HS,{noPadding:r,ref:t,children:n})}var h=i.forwardRef(p),b=n(62547),g=n(82571),v=n(35686),S=n(98464),m=n(46684),O=n(70515),y=n(53808),E=n(19183);function T(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 P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t){var n,r=e.addProjectBreadcrumbToCustomBreadcrumbs,p=e.after,T=e.afterHeader,j=e.afterHidden,A=e.afterWidth,x=e.afterWidthOverride,Z=e.appendBreadcrumbs,w=e.before,I=e.beforeWidth,_=e.breadcrumbs,R=e.children,N=e.errors,k=e.headerMenuItems,C=e.headerOffset,L=e.hideAfterCompletely,H=e.mainContainerHeader,M=e.navigationItems,Y=e.setAfterHidden,D=e.setErrors,B=e.subheaderChildren,W=e.subheaderNoPadding,G=e.title,V=e.uuid,K=(0,E.i)().width,F="dashboard_after_width_".concat(V),U="dashboard_before_width_".concat(V),Q=(0,i.useRef)(null),X=(0,i.useState)(x?A:(0,y.U2)(F,A)),J=X[0],q=X[1],$=(0,i.useState)(!1),z=$[0],ee=$[1],te=(0,i.useState)(w?Math.max((0,y.U2)(U,I),13*O.iI):null),ne=te[0],re=te[1],oe=(0,i.useState)(!1),ie=oe[0],ue=oe[1],ce=(0,i.useState)(null)[1],ae=v.ZP.projects.list({},{revalidateOnFocus:!1}).data,se=null===ae||void 0===ae?void 0:ae.projects,le={label:function(){var e;return null===se||void 0===se||null===(e=se[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},de=[];_&&(r&&de.push(le),de.push.apply(de,(0,o.Z)(_))),(null===_||void 0===_||!_.length||Z)&&(null===se||void 0===se?void 0:se.length)>=1&&(null!==_&&void 0!==_&&_.length||de.unshift({bold:!Z,label:function(){return G}}),de.unshift(le)),(0,i.useEffect)((function(){null===Q||void 0===Q||!Q.current||z||ie||null===ce||void 0===ce||ce(Q.current.getBoundingClientRect().width)}),[z,J,ie,ne,Q,ce,K]),(0,i.useEffect)((function(){z||(0,y.t8)(F,J)}),[j,z,J,F]),(0,i.useEffect)((function(){ie||(0,y.t8)(U,ne)}),[ie,ne,U]);var fe=(0,S.Z)(A);return(0,i.useEffect)((function(){x&&fe!==A&&q(A)}),[x,A,fe]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:G}),(0,f.jsx)(l.Z,{breadcrumbs:de,menuItems:k,project:null===se||void 0===se?void 0:se[0],version:null===se||void 0===se||null===(n=se[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{ref:t,children:[0!==(null===M||void 0===M?void 0:M.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(g.Z,{navigationItems:M,showMore:!0})}),(0,f.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(b.Z,{after:p,afterHeader:T,afterHeightOffset:m.Mz,afterHidden:j,afterMousedownActive:z,afterWidth:J,before:w,beforeHeightOffset:m.Mz,beforeMousedownActive:ie,beforeWidth:d.k1+(w?ne:0),headerOffset:C,hideAfterCompletely:!Y||L,leftOffset:w?d.k1:null,mainContainerHeader:H,mainContainerRef:Q,setAfterHidden:Y,setAfterMousedownActive:ee,setAfterWidth:q,setBeforeMousedownActive:ue,setBeforeWidth:re,children:[B&&(0,f.jsx)(h,{noPadding:W,children:B}),R]})})]}),N&&(0,f.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,f.jsx)(c.Z,P(P({},N),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}var A=i.forwardRef(j)},85385:function(e,t,n){"use strict";n.d(t,{Qq:function(){return h},Z7:function(){return b},cH:function(){return o},du:function(){return f},fp:function(){return d},j5:function(){return p},uM:function(){return l}});var r,o,i=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"}(o||(o={}));o.BLOCK_SETTINGS,o.CALLBACKS,o.CHARTS,o.DATA,o.EXTENSIONS,o.TREE;var f=[o.DATA];function p(e){var t,n,r,i=[{key:o.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:o.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:o.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:o.SECRETS}];return u.qL.PYSPARK!==(null===e||void 0===e||null===(t=e.pipeline)||void 0===t?void 0:t.type)&&i.push.apply(i,[{buildLabel:function(e){e.pipeline;return"Add-on blocks"},key:o.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:o.EXTENSIONS}]),i.push.apply(i,[{key:o.DATA,label:"Data"},{key:o.TERMINAL,label:"Terminal"},{key:o.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]&&i.push({key:o.INTERACTIONS,label:"Interactions"}),i}function h(e){return(0,s.HK)(p(e),(function(e){return e.key}))}var b=(r={},(0,i.Z)(r,o.ADDON_BLOCKS,a.EJ),(0,i.Z)(r,o.BLOCK_SETTINGS,a.JG),(0,i.Z)(r,o.CALLBACKS,a.AQ),(0,i.Z)(r,o.CHARTS,a.GQ),(0,i.Z)(r,o.DATA,a.iA),(0,i.Z)(r,o.EXTENSIONS,a.Bf),(0,i.Z)(r,o.INTERACTIONS,a.yd),(0,i.Z)(r,o.SECRETS,a.Yo),(0,i.Z)(r,o.SETTINGS,a.Zr),(0,i.Z)(r,o.TERMINAL,a.oI),(0,i.Z)(r,o.TREE,a.mp),(0,i.Z)(r,o.VARIABLES,a.LO),r)},75083:function(e,t,n){"use strict";n.d(t,{HF:function(){return i},L6:function(){return r}});var r,o=n(72473);function i(e,t,n){var i=e.owner,u=(e.roles,[{Icon:o.Vz,id:r.WORKSPACES,isSelected:function(){return r.WORKSPACES===n},label:function(){return"Workspaces"},linkProps:{href:"/manage"}}]);return i&&u.push({Icon:o.NO,id:r.USERS,isSelected:function(){return r.USERS===n},label:function(){return"Users"},linkProps:{href:"/manage/users"}}),u.push.apply(u,[{Icon:o.Zr,id:r.SETTINGS,isSelected:function(){return r.SETTINGS===n},label:function(){return"Settings"},linkProps:{href:"/manage/settings"}},{Icon:o.$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),o=n(94629),i=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,p=e.headerOffset,h=e.mainContainerHeader,b=e.pageName,g=e.setErrors,v=e.subheaderChildren,S=i.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]),O=(0,a.PR)()||{};return(0,s.jsx)(o.Z,{before:t,beforeWidth:t?50*u.iI:0,breadcrumbs:l,errors:f,headerOffset:p,mainContainerHeader:h,navigationItems:(0,c.HF)(O,m,b),setErrors:g,subheaderChildren:v,title:"Workspaces",uuid:"workspaces/index",children:d})}},89706:function(e,t,n){"use strict";n.d(t,{JD:function(){return b},Lu:function(){return i},PF:function(){return f},dT:function(){return u},n6:function(){return s},nB:function(){return h},oy:function(){return p},xF:function(){return d}});var r,o,i,u,c=n(82394),a=n(44425);!function(e){e.CSV="csv",e.JSON="json",e.MD="md",e.PY="py",e.R="r",e.SH="sh",e.SQL="sql",e.TXT="txt",e.YAML="yaml",e.YML="yml"}(i||(i={})),function(e){e.INIT_PY="__init__.py",e.METADATA_YAML="metadata.yaml",e.REQS_TXT="requirements.txt"}(u||(u={}));var s=[i.PY,i.SQL],l=[i.JSON,i.MD,i.PY,i.R,i.SH,i.SQL,i.TXT,i.YAML,i.YML],d=new RegExp(l.map((function(e){return".".concat(e,"$")})).join("|")),f=(new RegExp(l.map((function(e){return".".concat(e,"$")})).join("|")),"charts"),p="pipelines",h=(r={},(0,c.Z)(r,i.MD,a.t6.MARKDOWN),(0,c.Z)(r,i.JSON,i.JSON),(0,c.Z)(r,i.PY,a.t6.PYTHON),(0,c.Z)(r,i.R,a.t6.R),(0,c.Z)(r,i.SQL,a.t6.SQL),(0,c.Z)(r,i.TXT,"text"),(0,c.Z)(r,i.YAML,a.t6.YAML),(0,c.Z)(r,i.YML,a.t6.YAML),r),b=(o={},(0,c.Z)(o,a.t6.MARKDOWN,i.MD),(0,c.Z)(o,a.t6.PYTHON,i.PY),(0,c.Z)(o,a.t6.R,i.R),(0,c.Z)(o,a.t6.SQL,i.SQL),(0,c.Z)(o,a.t6.YAML,i.YAML),(0,c.Z)(o,"text",i.TXT),o)},72098:function(e,t,n){"use strict";var r;n.d(t,{U:function(){return r}}),function(e){e.PYSPARK="pysparkkernel",e.PYTHON3="python3"}(r||(r={}))},57653:function(e,t,n){"use strict";n.d(t,{$1:function(){return b},G7:function(){return S},LM:function(){return m},Mj:function(){return O},QK:function(){return h},RH:function(){return v},a_:function(){return E},fj:function(){return T},kA:function(){return y},qL:function(){return c},r0:function(){return g}});var r,o,i,u,c,a=n(75582),s=n(82394),l=n(72473),d=n(72098);function f(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 p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(c||(c={}));var h,b,g,v=(r={},(0,s.Z)(r,c.INTEGRATION,"Integration"),(0,s.Z)(r,c.PYTHON,"Python"),(0,s.Z)(r,c.PYSPARK,"PySpark"),(0,s.Z)(r,c.STREAMING,"Streaming"),r),S=(o={},(0,s.Z)(o,c.INTEGRATION,"Integration"),(0,s.Z)(o,c.PYTHON,"Standard"),(0,s.Z)(o,c.PYSPARK,"PySpark"),(0,s.Z)(o,c.STREAMING,"Streaming"),o),m="all",O=(c.PYTHON,c.INTEGRATION,c.STREAMING,i={},(0,s.Z)(i,m,l.ie),(0,s.Z)(i,c.INTEGRATION,l.YC),(0,s.Z)(i,c.PYTHON,l.El),(0,s.Z)(i,c.STREAMING,l.dB),i);!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"}(h||(h={})),function(e){e.GROUP="group_by",e.HISTORY_DAYS="from_history_days",e.NO_TAGS="no_tags",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(b||(b={})),function(e){e.STATUS="status",e.TAG="tag",e.TYPE="type"}(g||(g={}));var y=[h.ACTIVE,h.INACTIVE,h.NO_SCHEDULES],E=(u={},(0,s.Z)(u,c.PYTHON,d.U.PYTHON3),(0,s.Z)(u,c.PYSPARK,d.U.PYSPARK),u),T=Object.entries(E).reduce((function(e,t){var n=(0,a.Z)(t,2),r=n[0],o=n[1];return p(p({},e),{},(0,s.Z)({},o,r))}),{})},65956:function(e,t,n){"use strict";var r=n(38626),o=n(55485),i=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),p=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 "})),h=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 "})),g=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,v=e.fullWidth,S=void 0===v||v,m=e.header,O=e.headerHeight,y=e.headerIcon,E=e.headerPaddingVertical,T=e.headerTitle,P=e.maxHeight,j=e.maxWidth,A=e.minWidth,x=e.noPadding,Z=e.overflowVisible,w=e.subtitle,I=e.success;return(0,d.jsxs)(p,{borderless:t,dark:a,fullHeight:f,fullWidth:S,maxHeight:P,maxWidth:j,minWidth:A,overflowVisible:Z,ref:r,success:I,children:[(m||T)&&(0,d.jsxs)(h,{headerPaddingVertical:E,height:O,children:[m&&m,T&&(0,d.jsx)(o.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(o.ZP,{alignItems:"center",children:[y&&y,(0,d.jsx)(i.Z,{ml:y?1:0,children:(0,d.jsx)(u.ZP,{bold:!0,default:!0,children:T})})]})})]}),(0,d.jsxs)(b,{maxHeight:P,noPadding:x,overflowVisible:Z,ref:c,children:[w&&"string"===typeof w&&(0,d.jsx)(i.Z,{mb:2,children:(0,d.jsx)(u.ZP,{default:!0,children:w})}),w&&"string"!==typeof w&&w,n]}),s&&(0,d.jsx)(g,{children:s})]})}},35185:function(e,t,n){"use strict";var r=n(82394),o=n(91835),i=(n(82684),n(38626)),u=n(44897),c=n(42631),a=n(70515),s=n(28598);function l(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=i.default.div.withConfig({displayName:"ProgressBar__ProgressBarContainerStyle",componentId:"sc-10x9ojc-0"})(["border-radius:","px;height:","px;overflow:hidden;position:relative;width:100%;",""],c.BG,.75*a.iI,(function(e){return"\n background-color: ".concat((e.theme.monotone||u.Z.monotone).grey200,";\n ")})),p=i.default.div.withConfig({displayName:"ProgressBar__ProgressBarStyle",componentId:"sc-10x9ojc-1"})(["height:inherit;position:absolute;"," "," "," ",""],(function(e){return!e.danger&&"\n background-color: ".concat((e.theme.progress||u.Z.progress).positive,";\n ")}),(function(e){return e.progress&&"\n width: ".concat(e.progress,"%;\n ")}),(function(e){return e.danger&&"\n background-color: ".concat((e.theme.progress||u.Z.progress).negative,";\n ")}),(function(e){return e.animateProgress&&"\n animation: animate-progress ".concat(e.animateProgress.duration,"ms linear forwards;\n\n @keyframes animate-progress {\n 0% {\n width: ").concat(e.animateProgress.start,"%;\n }\n\n 100% {\n width: ").concat(e.animateProgress.end,"%;\n }\n }\n ")}));t.Z=function(e){var t=(0,o.Z)({},e);return(0,s.jsx)(f,d(d({},t),{},{children:(0,s.jsx)(p,d({},t))}))}},83087:function(e,t,n){"use strict";n.r(t);var r=n(77837),o=n(38860),i=n.n(o),u=n(82684),c=n(65557),a=n(10553),s=n(29618),l=n(90758),d=n(93808),f=n(38276),p=n(59533),h=n(35686),b=n(86735),g=n(15610),v=n(69419),S=n(97133),m=n(75083),O=n(28598);function y(){var e=(0,u.useState)(null),t=e[0],n=e[1],r=(0,v.iV)(),o=r.file_path,i=(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,v.iV)()["file_paths[]"]||[];Array.isArray(n)||(n=[n]),n.includes(t)||n.push(t),(0,g.u7)({file_path:t,"file_paths[]":n})}),[]),y=h.ZP.files.list(),E=y.data,T=y.mutate,P=(0,u.useMemo)((function(){return(null===E||void 0===E?void 0:E.files)||[]}),[E]),j=(0,u.useRef)(null),A=(0,u.useState)(null),x=A[0],Z=A[1],w=(0,u.useState)([]),I=w[0],_=w[1],R=(0,u.useState)({}),N=R[0],k=R[1],C=(0,u.useMemo)((function(){return(0,O.jsx)(f.Z,{ml:1,mt:1,children:(0,O.jsx)(a.Z,{fetchFileTree:T,files:P,openFile:d,ref:j,setErrors:n})})}),[T,P,d,n]);return(0,u.useEffect)((function(){Z(o)}),[o]),(0,u.useEffect)((function(){(0,b.fS)(i,I)||_(i)}),[i,I]),(0,O.jsx)(p.Z,{before:C,breadcrumbs:[{label:function(){return"Workspaces"},linkProps:{as:"/manage",href:"/manage"}},{bold:!0,label:function(){return"File browser"}}],errors:t,mainContainerHeader:(0,O.jsx)(S.rK,{secondary:!0,children:(0,O.jsx)(l.Z,{filePaths:I,filesTouched:N,selectedFilePath:x})}),pageName:m.L6.FILE_BROWSER,children:null===i||void 0===i?void 0:i.map((function(e){return(0,O.jsx)("div",{style:{display:x===e?null:"none"},children:(0,O.jsx)(c.Z,{uuid:"manage/FileEditor/".concat(decodeURIComponent(e)),children:(0,O.jsx)(s.Z,{active:x===e,filePath:e,selectedFilePath:x,setErrors:n,setFilesTouched:k})})},e)}))})}y.getInitialProps=(0,r.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),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 o}});var r=n(61049);function o(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 i}});var r=n(12539),o=n(80022);function i(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,o.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,4267,600,8487,8264,7858,5499,5810,553,9618,5638,9774,2888,179],(function(){return t=90205,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8867],{59739:function(e,n,t){"use strict";var r=t(56669);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,n,t,o,i,c){if(c!==r){var a=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 a.name="Invariant Violation",a}}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:i,resetWarningCache:o};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"},55283:function(e,n,t){"use strict";t.d(n,{HC:function(){return T},HS:function(){return Z},IN:function(){return f},Kf:function(){return b},Nk:function(){return x},PB:function(){return v},PY:function(){return g},WC:function(){return p},fk:function(){return P},gE:function(){return _},j1:function(){return A},jv:function(){return O},nz:function(){return y},oh:function(){return l},qn:function(){return m},t1:function(){return j},u2:function(){return h},y9:function(){return S}});var r=t(38626),o=t(44897),i=t(44425),c=t(42631),a=t(8059),u=t(70515),s=t(47041),d=t(91437),l=68,f=1.5*u.iI,p=3*u.iI;function h(e){var n=a.eW;return i.tf.CALLBACK===e?n=a.J:i.tf.CHART===e||i.tf.CONDITIONAL===e?n=a.Hv:i.tf.CUSTOM===e?n=a.AK:i.tf.DATA_EXPORTER===e?n=a.Sr:i.tf.DATA_LOADER===e?n=a.R2:i.tf.DBT===e?n=a.J:i.tf.EXTENSION===e?n=a.FI:i.tf.GLOBAL_DATA_PRODUCT===e?n=a.yr:i.tf.SCRATCHPAD===e?n=a.Hv:i.tf.SENSOR===e?n=a.rK:i.tf.MARKDOWN===e?n=a.RK:i.tf.TRANSFORMER===e&&(n=a.eW),n}function m(e,n){var t,r,c=((null===n||void 0===n||null===(t=n.theme)||void 0===t?void 0:t.borders)||o.Z.borders).light,a=((null===n||void 0===n||null===(r=n.theme)||void 0===r?void 0:r.monotone)||o.Z.monotone).grey500,u=n||{},s=u.blockColor,d=u.isSelected,l=u.theme;return d?c=(l||o.Z).content.active:i.tf.TRANSFORMER===e||s===i.Lq.PURPLE?(c=(l||o.Z).accent.purple,a=(l||o.Z).accent.purpleLight):i.tf.DATA_EXPORTER===e||s===i.Lq.YELLOW?(c=(l||o.Z).accent.yellow,a=(l||o.Z).accent.yellowLight):i.tf.DATA_LOADER===e||s===i.Lq.BLUE?(c=(l||o.Z).accent.blue,a=(l||o.Z).accent.blueLight):i.tf.MARKDOWN===e?(c=(l||o.Z).accent.sky,a=(l||o.Z).accent.skyLight):i.tf.SENSOR===e||s===i.Lq.PINK?(c=(l||o.Z).accent.pink,a=(l||o.Z).accent.pinkLight):i.tf.DBT===e?(c=(l||o.Z).accent.dbt,a=(l||o.Z).accent.dbtLight):i.tf.EXTENSION===e||s===i.Lq.TEAL?(c=((null===l||void 0===l?void 0:l.accent)||o.Z.accent).teal,a=((null===l||void 0===l?void 0:l.accent)||o.Z.accent).tealLight):i.tf.CALLBACK===e?(c=((null===l||void 0===l?void 0:l.accent)||o.Z.accent).rose,a=((null===l||void 0===l?void 0:l.accent)||o.Z.accent).roseLight):i.tf.CONDITIONAL===e||i.tf.SCRATCHPAD===e||s===i.Lq.GREY||i.tf.CUSTOM===e&&!s?(c=(l||o.Z).content.default,a=(l||o.Z).accent.contentDefaultTransparent):i.tf.GLOBAL_DATA_PRODUCT!==e||s||(c=(l||o.Z).monotone.white,a=(l||o.Z).monotone.whiteTransparent),{accent:c,accentLight:a}}var b=(0,r.css)([""," "," "," "," "," "," ",""],(0,d.eR)(),(function(e){return!e.selected&&!e.hasError&&"\n border-color: ".concat(m(e.blockType,e).accentLight,";\n ")}),(function(e){return e.selected&&!e.hasError&&"\n border-color: ".concat(m(e.blockType,e).accent,";\n ")}),(function(e){return!e.selected&&e.hasError&&"\n border-color: ".concat((e.theme.accent||o.Z.accent).negativeTransparent,";\n ")}),(function(e){return e.selected&&e.hasError&&"\n border-color: ".concat((e.theme.borders||o.Z.borders).danger,";\n ")}),(function(e){return e.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(e){return e.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),x=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),g=r.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],b,c.n_,c.M8,c.mP,(function(e){return"\n background-color: ".concat((e.theme||o.Z).background.content,";\n\n &:hover {\n border-color: ").concat(m(e.blockType,e).accent,";\n }\n ")})),v=r.default.div.withConfig({displayName:"indexstyle__HeaderHorizontalBorder",componentId:"sc-s5rj34-2"})(["",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme||o.Z).borders.darkLight,";\n ")})),y=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-3"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;"," "," "," ",""],b,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,1*u.iI,1*u.iI,(function(e){return"\n background-color: ".concat((e.theme||o.Z).background.dashboard,";\n ")}),(function(e){return"undefined"!==typeof e.zIndex&&null!==e.zIndex&&"\n z-index: ".concat(6+(e.zIndex||0),";\n ")}),(function(e){return!e.noSticky&&"\n // This is to hide the horizontal scrollbar in the block header when sideBySide is enabled,\n // and the screen width is too small.\n position: sticky;\n top: -5px;\n "}),(function(e){return e.noSticky&&"\n ".concat((0,s.y$)(),"\n\n overflow-x: auto;\n overflow-y: visible;\n ")})),Z=r.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-s5rj34-4"})([""," "," ",""],(function(e){return!e.darkBorder&&"\n border-bottom: 1px solid ".concat((e.theme.borders||o.Z.borders).darkLight,";\n ")}),(function(e){return e.darkBorder&&"\n border-bottom: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n ")}),(function(e){return!e.noBackground&&"\n background-color: ".concat((e.theme||o.Z).background.dashboard,";\n ")})),O=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-5"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;position:relative;"," "," "," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],b,c.M8,c.mP,c.M8,c.mP,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(e){return!e.noPadding&&"\n padding-bottom: ".concat(u.iI,"px;\n padding-top: ").concat(u.iI,"px;\n ")}),(function(e){return e.lightBackground&&"\n background-color: ".concat((e.theme||o.Z).background.content,";\n ")}),(function(e){return!e.hideBorderBottom&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n overflow: hidden;\n ")})),_=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-6"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;&:hover{"," .block-divider-inner{","}}"," "," "," ",""],2*u.iI,(function(e){return e.additionalZIndex>0&&"\n z-index: ".concat(8+e.additionalZIndex,";\n ")}),(function(e){return"\n background-color: ".concat((e.theme.text||o.Z.text).fileBrowser,";\n ")}),(function(e){return!e.height&&"\n height: ".concat(2*u.iI,"px;\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return!e.bottom&&"\n bottom: ".concat(.5*u.iI,"px;\n ")}),(function(e){return"undefined"!==typeof e.bottom&&"\n bottom: ".concat(e.bottom,"px;\n ")})),j=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-7"})(["height 1px;width:100%;position:absolute;z-index:-1;"," ",""],(function(e){return!e.top&&"\n top: ".concat(1.5*u.iI,"px;\n ")}),(function(e){return"undefined"!==typeof e.top&&"\n top: ".concat(e.top,"px;\n ")})),S=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-8"})([""," ",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n padding-left: ").concat(e.normalPadding?u.iI:l,"px;\n ")}),(function(e){return!e.noMargin&&"\n margin-bottom: ".concat(1*u.iI,"px;\n padding-bottom: ").concat(1*u.iI,"px;\n ")})),T=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-9"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,l),P=r.default.div.withConfig({displayName:"indexstyle__ScrollColunnsContainerStyle",componentId:"sc-s5rj34-10"})(["position:relative;",""],(function(e){return"\n z-index: ".concat((null===e||void 0===e?void 0:e.zIndex)||1,";\n ")})),A=r.default.div.attrs((function(e){var n=e.height,t=e.left,r=e.right,o=e.top;return{style:{position:"fixed",height:n,width:e.width,left:t,right:r,top:o,zIndex:(e.zIndex||0)+2}}})).withConfig({displayName:"indexstyle__ScrollColunnStyle",componentId:"sc-s5rj34-11"})([""])},94629:function(e,n,t){"use strict";t.d(n,{Z:function(){return T}});var r=t(82394),o=t(21831),i=t(82684),c=t(50724),a=t(82555),u=t(97618),s=t(70613),d=t(68487),l=t(68899),f=t(28598);function p(e,n){var t=e.children,r=e.noPadding;return(0,f.jsx)(l.HS,{noPadding:r,ref:n,children:t})}var h=i.forwardRef(p),m=t(62547),b=t(82571),x=t(35686),g=t(98464),v=t(46684),y=t(70515),Z=t(53808),O=t(19183);function _(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 j(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function S(e,n){var t,r=e.addProjectBreadcrumbToCustomBreadcrumbs,p=e.after,_=e.afterHeader,S=e.afterHidden,T=e.afterWidth,P=e.afterWidthOverride,A=e.appendBreadcrumbs,C=e.before,E=e.beforeWidth,R=e.breadcrumbs,w=e.children,k=e.errors,I=e.headerMenuItems,N=e.headerOffset,D=e.hideAfterCompletely,L=e.mainContainerHeader,M=e.navigationItems,H=e.setAfterHidden,B=e.setErrors,W=e.subheaderChildren,Y=e.subheaderNoPadding,K=e.title,F=e.uuid,U=(0,O.i)().width,G="dashboard_after_width_".concat(F),X="dashboard_before_width_".concat(F),z=(0,i.useRef)(null),V=(0,i.useState)(P?T:(0,Z.U2)(G,T)),q=V[0],Q=V[1],$=(0,i.useState)(!1),J=$[0],ee=$[1],ne=(0,i.useState)(C?Math.max((0,Z.U2)(X,E),13*y.iI):null),te=ne[0],re=ne[1],oe=(0,i.useState)(!1),ie=oe[0],ce=oe[1],ae=(0,i.useState)(null)[1],ue=x.ZP.projects.list({},{revalidateOnFocus:!1}).data,se=null===ue||void 0===ue?void 0:ue.projects,de={label:function(){var e;return null===se||void 0===se||null===(e=se[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},le=[];R&&(r&&le.push(de),le.push.apply(le,(0,o.Z)(R))),(null===R||void 0===R||!R.length||A)&&(null===se||void 0===se?void 0:se.length)>=1&&(null!==R&&void 0!==R&&R.length||le.unshift({bold:!A,label:function(){return K}}),le.unshift(de)),(0,i.useEffect)((function(){null===z||void 0===z||!z.current||J||ie||null===ae||void 0===ae||ae(z.current.getBoundingClientRect().width)}),[J,q,ie,te,z,ae,U]),(0,i.useEffect)((function(){J||(0,Z.t8)(G,q)}),[S,J,q,G]),(0,i.useEffect)((function(){ie||(0,Z.t8)(X,te)}),[ie,te,X]);var fe=(0,g.Z)(T);return(0,i.useEffect)((function(){P&&fe!==T&&Q(T)}),[P,T,fe]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:K}),(0,f.jsx)(d.Z,{breadcrumbs:le,menuItems:I,project:null===se||void 0===se?void 0:se[0],version:null===se||void 0===se||null===(t=se[0])||void 0===t?void 0:t.version}),(0,f.jsxs)(l.Nk,{ref:n,children:[0!==(null===M||void 0===M?void 0:M.length)&&(0,f.jsx)(l.lm,{showMore:!0,children:(0,f.jsx)(b.Z,{navigationItems:M,showMore:!0})}),(0,f.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:p,afterHeader:_,afterHeightOffset:v.Mz,afterHidden:S,afterMousedownActive:J,afterWidth:q,before:C,beforeHeightOffset:v.Mz,beforeMousedownActive:ie,beforeWidth:l.k1+(C?te:0),headerOffset:N,hideAfterCompletely:!H||D,leftOffset:C?l.k1:null,mainContainerHeader:L,mainContainerRef:z,setAfterHidden:H,setAfterMousedownActive:ee,setAfterWidth:Q,setBeforeMousedownActive:ce,setBeforeWidth:re,children:[W&&(0,f.jsx)(h,{noPadding:Y,children:W}),w]})})]}),k&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===B||void 0===B?void 0:B(null)},children:(0,f.jsx)(a.Z,j(j({},k),{},{onClose:function(){return null===B||void 0===B?void 0:B(null)}}))})]})}var T=i.forwardRef(S)},53779:function(e,n,t){"use strict";t.d(n,{C:function(){return h},X$:function(){return p},eD:function(){return l},iW:function(){return m},nF:function(){return b}});var r=t(38626),o=t(44897),i=t(42631),c=t(70515),a=t(47041),u=t(91437),s=6.25*c.iI,d=(c.iI,100*c.iI),l=r.default.div.withConfig({displayName:"indexstyle__WindowContainerStyle",componentId:"sc-g0cszf-0"})(["border-radius:","px;width:100%;max-width:","px;z-index:101;position:absolute;overflow:hidden;top:50%;left:50%;transform:translate(-50%,-50%);",""],i.n_,d,(function(e){return"\n box-shadow: ".concat((e.theme||o.Z).shadow.window,";\n background-color: ").concat((e.theme||o.Z).background.panel,";\n ")})),f=(0,r.css)(["display:flex;align-items:center;justify-content:space-between;height:","px;padding:","px ","px;",""],s,c.iI,c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme||o.Z).background.output,";\n ")})),p=r.default.div.withConfig({displayName:"indexstyle__WindowHeaderStyle",componentId:"sc-g0cszf-1"})([""," border-top-left-radius:","px;border-top-right-radius:","px;",""],f,i.n_,i.n_,(function(e){return"\n border-bottom: ".concat(i.YF,"px ").concat(i.M8," ").concat((e.theme||o.Z).borders.medium,";\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__WindowContentStyle",componentId:"sc-g0cszf-2"})(["overflow:auto;padding:","px 0;"," "," "," ",""],c.iI,a.w5,(0,u.eR)(),(function(e){return e.minMaxHeight&&"\n max-height: ".concat(7*c.iI,"px;\n ")}),(function(e){return!e.minMaxHeight&&"\n max-height: calc(100vh - ".concat(6.5*s,"px);\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__WindowFooterStyle",componentId:"sc-g0cszf-3"})([""," justify-content:flex-end;border-bottom-left-radius:","px;border-bottom-right-radius:","px;",""],f,i.n_,i.n_,(function(e){return"\n border-top: ".concat(i.YF,"px ").concat(i.M8," ").concat((e.theme||o.Z).borders.medium,";\n ")})),b=r.default.div.withConfig({displayName:"indexstyle__InputRowStyle",componentId:"sc-g0cszf-4"})(["padding:","px ","px;",""],.75*c.iI,2*c.iI,(function(e){return"\n border-bottom: ".concat(i.YF,"px ").concat(i.M8," ").concat((e.theme||o.Z).borders.medium,";\n ")}))},29480:function(e,n,t){"use strict";t.d(n,{$W:function(){return d},cl:function(){return l},cv:function(){return f},dE:function(){return u},zG:function(){return s}});var r=t(38626),o=t(44897),i=t(42631),c=t(70515),a=t(47041),u=r.default.div.withConfig({displayName:"indexstyle__SectionStyle",componentId:"sc-7a1uhf-0"})(["border-radius:","px;padding:","px;",""],i.n_,c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).popup,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__DocsStyle",componentId:"sc-7a1uhf-1"})(["> div{overflow:initial;}> div img{max-width:80%;background:white;padding:1rem;max-height:20vh;}"]),d=r.default.div.withConfig({displayName:"indexstyle__CodeEditorStyle",componentId:"sc-7a1uhf-2"})(["padding-top:","px;",""],c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).codeTextarea,";\n ")})),l=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-7a1uhf-3"})(["overflow:auto;max-height:90vh;width:100%;"," "," "," "," ",""],a.w5,(function(e){return e.hideHorizontalScrollbar&&"\n overflow-x: hidden;\n "}),(function(e){return e.width&&"\n width: ".concat(e.width,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,";\n ")}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")})),f=r.default.div.withConfig({displayName:"indexstyle__HeaderRowStyle",componentId:"sc-7a1uhf-4"})(["padding:","px;"," "," ",""],2*c.iI,(function(e){return"\n background-color: ".concat((e.theme||o.Z).interactive.defaultBackground,";\n border-bottom: ").concat(i.YF,"px ").concat(i.M8," ").concat((e.theme||o.Z).borders.medium,";\n ")}),(function(e){return e.padding&&"\n padding: ".concat(e.padding,"px;\n ")}),(function(e){return e.rounded&&"\n border-top-left-radius: ".concat(i.n_,"px;\n border-top-right-radius: ").concat(i.n_,"px;\n ")}))},4611:function(e,n,t){"use strict";t.d(n,{f:function(){return a}});var r=t(38626),o=t(44897),i=t(70515),c=t(42631),a=r.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*i.iI,c.TR,2*i.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||o.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||o.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},85385:function(e,n,t){"use strict";t.d(n,{Qq:function(){return h},Z7:function(){return m},cH:function(){return o},du:function(){return f},fp:function(){return l},j5:function(){return p},uM:function(){return d}});var r,o,i=t(82394),c=t(57653),a=t(82359),u=t(72473),s=t(86735),d="sideview",l=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"}(o||(o={}));o.BLOCK_SETTINGS,o.CALLBACKS,o.CHARTS,o.DATA,o.EXTENSIONS,o.TREE;var f=[o.DATA];function p(e){var n,t,r,i=[{key:o.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:o.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:o.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:o.SECRETS}];return c.qL.PYSPARK!==(null===e||void 0===e||null===(n=e.pipeline)||void 0===n?void 0:n.type)&&i.push.apply(i,[{buildLabel:function(e){e.pipeline;return"Add-on blocks"},key:o.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:o.EXTENSIONS}]),i.push.apply(i,[{key:o.DATA,label:"Data"},{key:o.TERMINAL,label:"Terminal"},{key:o.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[a.d.INTERACTIONS]&&i.push({key:o.INTERACTIONS,label:"Interactions"}),i}function h(e){return(0,s.HK)(p(e),(function(e){return e.key}))}var m=(r={},(0,i.Z)(r,o.ADDON_BLOCKS,u.EJ),(0,i.Z)(r,o.BLOCK_SETTINGS,u.JG),(0,i.Z)(r,o.CALLBACKS,u.AQ),(0,i.Z)(r,o.CHARTS,u.GQ),(0,i.Z)(r,o.DATA,u.iA),(0,i.Z)(r,o.EXTENSIONS,u.Bf),(0,i.Z)(r,o.INTERACTIONS,u.yd),(0,i.Z)(r,o.SECRETS,u.Yo),(0,i.Z)(r,o.SETTINGS,u.Zr),(0,i.Z)(r,o.TERMINAL,u.oI),(0,i.Z)(r,o.TREE,u.mp),(0,i.Z)(r,o.VARIABLES,u.LO),r)},75083:function(e,n,t){"use strict";t.d(n,{HF:function(){return i},L6:function(){return r}});var r,o=t(72473);function i(e,n,t){var i=e.owner,c=(e.roles,[{Icon:o.Vz,id:r.WORKSPACES,isSelected:function(){return r.WORKSPACES===t},label:function(){return"Workspaces"},linkProps:{href:"/manage"}}]);return i&&c.push({Icon:o.NO,id:r.USERS,isSelected:function(){return r.USERS===t},label:function(){return"Users"},linkProps:{href:"/manage/users"}}),c.push.apply(c,[{Icon:o.Zr,id:r.SETTINGS,isSelected:function(){return r.SETTINGS===t},label:function(){return"Settings"},linkProps:{href:"/manage/settings"}},{Icon:o.$B,id:r.FILE_BROWSER,isSelected:function(){return r.FILE_BROWSER===t},label:function(){return"File browser"},linkProps:{href:"/manage/files"}}]),c}!function(e){e.WORKSPACES="workspaces",e.USERS="users",e.SETTINGS="settings",e.FILE_BROWSER="file_browser"}(r||(r={}))},59533:function(e,n,t){"use strict";var r=t(82684),o=t(94629),i=t(35686),c=t(70515),a=t(75083),u=t(50178),s=t(28598);n.Z=function(e){var n=e.before,t=e.breadcrumbs,d=void 0===t?[]:t,l=e.children,f=e.errors,p=e.headerOffset,h=e.mainContainerHeader,m=e.pageName,b=e.setErrors,x=e.subheaderChildren,g=i.ZP.statuses.list().data,v=(0,r.useMemo)((function(){var e,n;return null===g||void 0===g||null===(e=g.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.project_type}),[g]),y=(0,u.PR)()||{};return(0,s.jsx)(o.Z,{before:n,beforeWidth:n?50*c.iI:0,breadcrumbs:d,errors:f,headerOffset:p,mainContainerHeader:h,navigationItems:(0,a.HF)(y,v,m),setErrors:b,subheaderChildren:x,title:"Workspaces",uuid:"workspaces/index",children:l})}},44425:function(e,n,t){"use strict";t.d(n,{$W:function(){return x},DA:function(){return m},HX:function(){return Z},J8:function(){return y},L8:function(){return a},LE:function(){return f},Lk:function(){return j},Lq:function(){return p},M5:function(){return h},Q3:function(){return g},Qj:function(){return O},Ut:function(){return P},V4:function(){return T},VZ:function(){return v},dO:function(){return l},f2:function(){return S},iZ:function(){return _},t6:function(){return u},tf:function(){return d}});var r,o,i,c,a,u,s=t(82394);!function(e){e.CONDITION="condition",e.DBT_SNAPSHOT="snapshot",e.DYNAMIC="dynamic",e.DYNAMIC_CHILD="dynamic_child",e.REDUCE_OUTPUT="reduce_output",e.REPLICA="replica"}(a||(a={})),function(e){e.MARKDOWN="markdown",e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(u||(u={}));var d,l=(r={},(0,s.Z)(r,u.MARKDOWN,"MD"),(0,s.Z)(r,u.PYTHON,"PY"),(0,s.Z)(r,u.R,"R"),(0,s.Z)(r,u.SQL,"SQL"),(0,s.Z)(r,u.YAML,"YAML"),r),f=(o={},(0,s.Z)(o,u.MARKDOWN,"Markdown"),(0,s.Z)(o,u.PYTHON,"Python"),(0,s.Z)(o,u.R,"R"),(0,s.Z)(o,u.SQL,"SQL"),(0,s.Z)(o,u.YAML,"YAML"),o);!function(e){e.CALLBACK="callback",e.CHART="chart",e.CONDITIONAL="conditional",e.CUSTOM="custom",e.DATA_EXPORTER="data_exporter",e.DATA_LOADER="data_loader",e.DBT="dbt",e.EXTENSION="extension",e.GLOBAL_DATA_PRODUCT="global_data_product",e.SCRATCHPAD="scratchpad",e.SENSOR="sensor",e.MARKDOWN="markdown",e.TRANSFORMER="transformer"}(d||(d={}));var p,h=[d.CALLBACK,d.CONDITIONAL,d.EXTENSION];!function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(p||(p={}));var m,b,x=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN,d.TRANSFORMER],g=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN,d.TRANSFORMER],v=[d.DATA_EXPORTER,d.DATA_LOADER],y=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],Z=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],O=[d.CHART,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN],_=[d.CALLBACK,d.CHART,d.EXTENSION,d.SCRATCHPAD,d.MARKDOWN],j=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SENSOR,d.TRANSFORMER];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(m||(m={})),function(e){e.BLOCK_FILE="block_file",e.CUSTOM_BLOCK_TEMPLATE="custom_block_template",e.MAGE_TEMPLATE="mage_template"}(b||(b={}));var S=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],T=(i={},(0,s.Z)(i,d.CALLBACK,"Callback"),(0,s.Z)(i,d.CHART,"Chart"),(0,s.Z)(i,d.CONDITIONAL,"Conditional"),(0,s.Z)(i,d.CUSTOM,"Custom"),(0,s.Z)(i,d.DATA_EXPORTER,"Data exporter"),(0,s.Z)(i,d.DATA_LOADER,"Data loader"),(0,s.Z)(i,d.DBT,"DBT"),(0,s.Z)(i,d.EXTENSION,"Extension"),(0,s.Z)(i,d.GLOBAL_DATA_PRODUCT,"Global data product"),(0,s.Z)(i,d.MARKDOWN,"Markdown"),(0,s.Z)(i,d.SCRATCHPAD,"Scratchpad"),(0,s.Z)(i,d.SENSOR,"Sensor"),(0,s.Z)(i,d.TRANSFORMER,"Transformer"),i),P=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER,d.SENSOR];c={},(0,s.Z)(c,d.DATA_EXPORTER,"DE"),(0,s.Z)(c,d.DATA_LOADER,"DL"),(0,s.Z)(c,d.SCRATCHPAD,"SP"),(0,s.Z)(c,d.SENSOR,"SR"),(0,s.Z)(c,d.MARKDOWN,"MD"),(0,s.Z)(c,d.TRANSFORMER,"TF")},89706:function(e,n,t){"use strict";t.d(n,{JD:function(){return m},Lu:function(){return i},PF:function(){return f},dT:function(){return c},n6:function(){return s},nB:function(){return h},oy:function(){return p},xF:function(){return l}});var r,o,i,c,a=t(82394),u=t(44425);!function(e){e.CSV="csv",e.JSON="json",e.MD="md",e.PY="py",e.R="r",e.SH="sh",e.SQL="sql",e.TXT="txt",e.YAML="yaml",e.YML="yml"}(i||(i={})),function(e){e.INIT_PY="__init__.py",e.METADATA_YAML="metadata.yaml",e.REQS_TXT="requirements.txt"}(c||(c={}));var s=[i.PY,i.SQL],d=[i.JSON,i.MD,i.PY,i.R,i.SH,i.SQL,i.TXT,i.YAML,i.YML],l=new RegExp(d.map((function(e){return".".concat(e,"$")})).join("|")),f=(new RegExp(d.map((function(e){return".".concat(e,"$")})).join("|")),"charts"),p="pipelines",h=(r={},(0,a.Z)(r,i.MD,u.t6.MARKDOWN),(0,a.Z)(r,i.JSON,i.JSON),(0,a.Z)(r,i.PY,u.t6.PYTHON),(0,a.Z)(r,i.R,u.t6.R),(0,a.Z)(r,i.SQL,u.t6.SQL),(0,a.Z)(r,i.TXT,"text"),(0,a.Z)(r,i.YAML,u.t6.YAML),(0,a.Z)(r,i.YML,u.t6.YAML),r),m=(o={},(0,a.Z)(o,u.t6.MARKDOWN,i.MD),(0,a.Z)(o,u.t6.PYTHON,i.PY),(0,a.Z)(o,u.t6.R,i.R),(0,a.Z)(o,u.t6.SQL,i.SQL),(0,a.Z)(o,u.t6.YAML,i.YAML),(0,a.Z)(o,"text",i.TXT),o)},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 m},G7:function(){return g},LM:function(){return v},Mj:function(){return y},QK:function(){return h},RH:function(){return x},a_:function(){return O},fj:function(){return _},kA:function(){return Z},qL:function(){return a},r0:function(){return b}});var r,o,i,c,a,u=t(75582),s=t(82394),d=t(72473),l=t(72098);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,s.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}!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(a||(a={}));var h,m,b,x=(r={},(0,s.Z)(r,a.INTEGRATION,"Integration"),(0,s.Z)(r,a.PYTHON,"Python"),(0,s.Z)(r,a.PYSPARK,"PySpark"),(0,s.Z)(r,a.STREAMING,"Streaming"),r),g=(o={},(0,s.Z)(o,a.INTEGRATION,"Integration"),(0,s.Z)(o,a.PYTHON,"Standard"),(0,s.Z)(o,a.PYSPARK,"PySpark"),(0,s.Z)(o,a.STREAMING,"Streaming"),o),v="all",y=(a.PYTHON,a.INTEGRATION,a.STREAMING,i={},(0,s.Z)(i,v,d.ie),(0,s.Z)(i,a.INTEGRATION,d.YC),(0,s.Z)(i,a.PYTHON,d.El),(0,s.Z)(i,a.STREAMING,d.dB),i);!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"}(h||(h={})),function(e){e.GROUP="group_by",e.HISTORY_DAYS="from_history_days",e.NO_TAGS="no_tags",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(m||(m={})),function(e){e.STATUS="status",e.TAG="tag",e.TYPE="type"}(b||(b={}));var Z=[h.ACTIVE,h.INACTIVE,h.NO_SCHEDULES],O=(c={},(0,s.Z)(c,a.PYTHON,l.U.PYTHON3),(0,s.Z)(c,a.PYSPARK,l.U.PYSPARK),c),_=Object.entries(O).reduce((function(e,n){var t=(0,u.Z)(n,2),r=t[0],o=t[1];return p(p({},e),{},(0,s.Z)({},o,r))}),{})},65956:function(e,n,t){"use strict";var r=t(38626),o=t(55485),i=t(38276),c=t(30160),a=t(44897),u=t(42631),s=t(47041),d=t(70515),l=t(28598),f=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*d.iI,1.5*d.iI,1.5*d.iI),p=r.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],u.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||a.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||a.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||a.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||a.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||a.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),h=r.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],u.n_,u.n_,(function(e){return"\n background-color: ".concat((e.theme.background||a.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||a.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),f,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),m=r.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*d.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*d.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;"],u.M8,u.YF,1.75*d.iI);n.Z=function(e){var n=e.borderless,t=e.children,r=e.containerRef,a=e.contentContainerRef,u=e.dark,s=e.footer,d=e.fullHeight,f=void 0===d||d,x=e.fullWidth,g=void 0===x||x,v=e.header,y=e.headerHeight,Z=e.headerIcon,O=e.headerPaddingVertical,_=e.headerTitle,j=e.maxHeight,S=e.maxWidth,T=e.minWidth,P=e.noPadding,A=e.overflowVisible,C=e.subtitle,E=e.success;return(0,l.jsxs)(p,{borderless:n,dark:u,fullHeight:f,fullWidth:g,maxHeight:j,maxWidth:S,minWidth:T,overflowVisible:A,ref:r,success:E,children:[(v||_)&&(0,l.jsxs)(h,{headerPaddingVertical:O,height:y,children:[v&&v,_&&(0,l.jsx)(o.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,l.jsxs)(o.ZP,{alignItems:"center",children:[Z&&Z,(0,l.jsx)(i.Z,{ml:Z?1:0,children:(0,l.jsx)(c.ZP,{bold:!0,default:!0,children:_})})]})})]}),(0,l.jsxs)(m,{maxHeight:j,noPadding:P,overflowVisible:A,ref:a,children:[C&&(0,l.jsx)(i.Z,{mb:2,children:(0,l.jsx)(c.ZP,{default:!0,children:C})}),t]}),s&&(0,l.jsx)(b,{children:s})]})}},11074:function(e,n,t){"use strict";t.d(n,{Z:function(){return u}});var r=t(38626),o=t(44897),i=t(42631),c=r.default.div.withConfig({displayName:"indexstyle__PanelStyle",componentId:"sc-1rfr5wd-0"})(["border-radius:","px;"," ",""],i.n_,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).panel,";\n ")}),(function(e){return e.fullWidth&&"\n width: 100%;\n "})),a=t(28598);var u=function(e){var n=e.children,t=e.fullWidth,r=void 0===t||t;return(0,a.jsx)(c,{fullWidth:r,children:n})}},35185:function(e,n,t){"use strict";var r=t(82394),o=t(91835),i=(t(82684),t(38626)),c=t(44897),a=t(42631),u=t(70515),s=t(28598);function d(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 l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var f=i.default.div.withConfig({displayName:"ProgressBar__ProgressBarContainerStyle",componentId:"sc-10x9ojc-0"})(["border-radius:","px;height:","px;overflow:hidden;position:relative;width:100%;",""],a.BG,.75*u.iI,(function(e){return"\n background-color: ".concat((e.theme.monotone||c.Z.monotone).grey200,";\n ")})),p=i.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||c.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||c.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,o.Z)({},e);return(0,s.jsx)(f,l(l({},n),{},{children:(0,s.jsx)(p,l({},n))}))}},2182:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return te}});var r,o=t(77837),i=t(75582),c=t(38860),a=t.n(c),u=t(82684),s=t(69864),d=t(71180),l=t(50724),f=t(82394),p=t(32013),h=t(98777),m=t(75810),b=t(15338),x=t(10553),g=t(97618),v=t(55485),y=t(85854),Z=t(93369),O=t(11074),_=t(44085),j=t(38276),S=t(30160),T=t(17488),P=t(69650),A=t(35686),C=["ReadWriteOnce","ReadWriteMany","ReadOnlyMany"],E=[{label:"Workspace name",required:!0,uuid:"name"}],R=[{label:"Service account name",placeholder:"default",uuid:"service_account_name"},{label:"Ingress name",labelDescription:"If you want to add the workspace to an existing ingress, enter the name of the ingress here. Otherwise, the workspace can be accessed through the service.",placeholder:"my-ingress",uuid:"ingress_name"}],w=[{label:"Storage class name",placeholder:"default",uuid:"storage_class_name"},{label:"Storage request size (in GB)",type:"number",uuid:"storage_request_size"}],k=t(44425),I=t(72473);!function(e){e.K8S="k8s",e.ECS="ecs",e.CLOUD_RUN="cloud_run",e.EMR="emr"}(r||(r={}));var N=t(29480),D=t(79633),L=t(53779),M=t(72619),H=t(81728),B=t(89538),W=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 K(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,f.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 F=function(e){var n=e.clusterType,t=e.onCancel,o=e.onCreate,c=(0,u.useState)(),a=c[0],l=c[1],Y=(0,u.useState)(),F=Y[0],U=Y[1],G=(0,u.useState)(null),X=G[0],z=G[1],V=(0,u.useState)(null),q=V[0],Q=V[1],$=(0,s.Db)(A.ZP.workspaces.useCreate(),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(e){e.error_message?l(e.error_message):o()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;l(r),console.log(t,r)}})}}),J=(0,i.Z)($,2),ee=J[0],ne=J[1].isLoading,te=A.ZP.files.list(),re=te.data,oe=te.mutate,ie=(0,u.useMemo)((function(){return(null===re||void 0===re?void 0:re.files)||[]}),[re]),ce=(0,B.dd)((function(e){return(0,W.jsxs)(L.eD,{children:[(0,W.jsxs)(L.X$,{children:[(0,W.jsx)(g.Z,{alignItems:"center",children:(0,W.jsx)(S.ZP,{disableWordBreak:!0,monospace:!0,children:"Select file"})}),(0,W.jsx)(d.ZP,{iconOnly:!0,onClick:se,children:(0,W.jsx)(I.x8,{muted:!0})})]}),(0,W.jsx)(L.C,{children:(0,W.jsx)(x.Z,{disableContextMenu:!0,fetchFileTree:oe,files:ie,isFileDisabled:null===e||void 0===e?void 0:e.isFileDisabled,openFile:e.onFileOpen})})]})}),{},[ie,oe],{background:!0,uuid:"file_selector"}),ae=(0,i.Z)(ce,2),ue=ae[0],se=ae[1],de=(0,u.useCallback)((function(e){var n=e.autoComplete,t=e.disabled,r=e.label,o=e.labelDescription,i=e.placeholder,c=e.required,a=e.type,u=e.uuid;return(0,W.jsxs)("div",{children:[(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsxs)(g.Z,{flex:2,flexDirection:"column",children:[(0,W.jsx)(S.ZP,{children:r}),o&&(0,W.jsx)(S.ZP,{muted:!0,children:o})]}),(0,W.jsx)(g.Z,{flex:1}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(T.Z,{autoComplete:n,disabled:t,onChange:function(e){z((function(n){return K(K({},n),{},(0,f.Z)({},u,e.target.value))}))},placeholder:i,required:c,setContentOnMount:!0,type:a,value:(null===X||void 0===X?void 0:X[u])||""})})]})})]},u)}),[X,z]),le=(0,u.useMemo)((function(){return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(v.ZP,{children:(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"General"})})}),R.map((function(e){return de(e)})),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(v.ZP,{children:(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"Volume claim params"})})}),w.map((function(e){return de(e)})),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsx)(g.Z,{flex:3,children:(0,W.jsx)(S.ZP,{children:"Access mode"})}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(_.Z,{fullWidth:!0,label:"Access mode",onChange:function(e){e.preventDefault(),z((function(n){return K(K({},n),{},{storage_access_mode:e.target.value})}))},placeholder:"Access mode",value:null===X||void 0===X?void 0:X.storage_access_mode,children:C.map((function(e){return(0,W.jsx)("option",{value:e,children:e},e)}))})})]})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsxs)(v.ZP,{alignItems:"center",children:[(0,W.jsx)(P.Z,{checked:F,compact:!0,onCheck:function(){return U((function(e){return!e}))}}),(0,W.jsx)(j.Z,{ml:1,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"Configure container"})})]})}),(0,W.jsx)(b.Z,{muted:!0}),F&&(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsx)(N.$W,{children:(0,W.jsx)(m.Z,{autoHeight:!0,fontSize:12,language:k.t6.YAML,onChange:function(e){z((function(n){return K(K({},n),{},{container_config:e})}))},tabSize:2,value:null===X||void 0===X?void 0:X.container_config,width:"100%"})})})]})}),[de,F,X]),fe=(0,u.useMemo)((function(){var e,n,t,r;return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(v.ZP,{children:(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"Termination policy"})})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsx)(g.Z,{flex:3,children:(0,W.jsx)(S.ZP,{children:"Enable auto termination"})}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsxs)(_.Z,{fullWidth:!0,onChange:function(e){e.preventDefault(),Q((function(n){return K(K({},n),{},{termination_policy:K(K({},null===n||void 0===n?void 0:n.termination_policy),{},{enable_auto_termination:"true"===e.target.value})})}))},value:(null===q||void 0===q||null===(e=q.termination_policy)||void 0===e?void 0:e.enable_auto_termination)||"false",children:[(0,W.jsx)("option",{value:"true",children:"True"},"true"),(0,W.jsx)("option",{value:"false",children:"False"},"false")]})})]})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsx)(g.Z,{flex:3,children:(0,W.jsx)(S.ZP,{children:"Max idle time (in seconds)"})}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(T.Z,{onChange:function(e){Q((function(n){return K(K({},n),{},{termination_policy:K(K({},null===n||void 0===n?void 0:n.termination_policy),{},{max_idle_seconds:e.target.value})})}))},setContentOnMount:!0,type:"number",value:(null===q||void 0===q||null===(n=q.termination_policy)||void 0===n?void 0:n.max_idle_seconds)||""})})]})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(v.ZP,{children:(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"Pre start"})})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsxs)(g.Z,{flex:3,justifyContent:"space-between",children:[(0,W.jsx)(S.ZP,{children:"Path to pre start script"}),(0,W.jsx)(j.Z,{mr:1,children:(0,W.jsx)(d.ZP,{iconOnly:!0,noBackground:!0,noBorder:!0,onClick:function(){return ue({isFileDisabled:function(e,n){return!n&&!e.endsWith(".py")},onFileOpen:function(e){Q((function(n){return K(K({},n),{},{pre_start_script_path:e})})),se()}})},children:(0,W.jsx)(I.gt,{})})})]}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(T.Z,{onChange:function(e){Q((function(n){return K(K({},n),{},{pre_start_script_path:e.target.value})}))},placeholder:"/",setContentOnMount:!0,value:(null===q||void 0===q?void 0:q.pre_start_script_path)||""})})]})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(v.ZP,{children:(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"Post start"})})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsx)(g.Z,{flex:3,children:(0,W.jsx)(S.ZP,{children:"Command"})}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(T.Z,{monospace:!0,onChange:function(e){Q((function(n){return K(K({},n),{},{post_start:K(K({},null===n||void 0===n?void 0:n.post_start),{},{command:e.target.value})})}))},setContentOnMount:!0,value:(null===q||void 0===q||null===(t=q.post_start)||void 0===t?void 0:t.command)||""})})]})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsxs)(g.Z,{flex:3,justifyContent:"space-between",children:[(0,W.jsx)(S.ZP,{children:"Path to hook (optional)"}),(0,W.jsx)(j.Z,{mr:1,children:(0,W.jsx)(d.ZP,{iconOnly:!0,noBackground:!0,noBorder:!0,onClick:function(){return ue({onFileOpen:function(e){Q((function(n){return K(K({},n),{},{post_start:K(K({},null===n||void 0===n?void 0:n.post_start),{},{hook_path:e})})})),se()}})},children:(0,W.jsx)(I.gt,{})})})]}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(T.Z,{onChange:function(e){Q((function(n){return K(K({},n),{},{post_start:K(K({},null===n||void 0===n?void 0:n.post_start),{},{hook_path:e.target.value})})}))},placeholder:"/",setContentOnMount:!0,value:(null===q||void 0===q||null===(r=q.post_start)||void 0===r?void 0:r.hook_path)||""})})]})}),(0,W.jsx)(b.Z,{muted:!0})]})}),[se,q,Q,ue]);return(0,W.jsx)(O.Z,{children:(0,W.jsx)("div",{style:{width:"750px"},children:(0,W.jsxs)(j.Z,{p:2,children:[(0,W.jsx)(y.Z,{level:4,children:"Create workspace"}),(0,W.jsxs)("form",{children:[E.map((function(e){var n=e.autoComplete,t=e.disabled,r=e.label,o=e.required,i=e.type,c=e.uuid;return(0,W.jsx)(j.Z,{mt:2,children:(0,W.jsx)(T.Z,{autoComplete:n,disabled:t,label:r,onChange:function(e){z((function(n){return K(K({},n),{},(0,f.Z)({},c,e.target.value))}))},required:o,setContentOnMount:!0,type:i,value:(null===X||void 0===X?void 0:X[c])||""})},c)})),(0,W.jsx)(j.Z,{mt:2,children:(0,W.jsxs)(p.Z,{noPaddingContent:!0,children:[n===r.K8S&&(0,W.jsx)(h.Z,{title:"Kubernetes",children:le}),(0,W.jsx)(h.Z,{title:"Lifecycle (optional)",children:fe})]})})]}),ne&&(0,W.jsx)(j.Z,{mt:1,children:(0,W.jsx)(S.ZP,{small:!0,warning:!0,children:"This may take up to a few minutes... Once the service is created, it may take another 5-10 minutes for the service to be accessible."})}),!ne&&a&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(j.Z,{mt:1,children:(0,W.jsx)(S.ZP,{danger:!0,small:!0,children:"Failed to create instance, see error below."})}),(0,W.jsx)(j.Z,{mt:1,children:(0,W.jsx)(S.ZP,{danger:!0,small:!0,children:a})})]}),(0,W.jsx)(j.Z,{my:2,children:(0,W.jsxs)(v.ZP,{flexDirection:"row-reverse",children:[(0,W.jsx)(Z.ZP,{background:D.a$,bold:!0,inline:!0,loading:ne,onClick:function(){var e=X||{},t=e.name,r=e.container_config;if(t){var o=K({},X);o.name=function(e){return"ecs"===n?(0,H.We)(e,"_"):(0,H.We)(e,"-")}(t),o.container_config=F&&r,ee({workspace:K(K({},o),{},{cluster_type:n,lifecycle_config:q})})}else l("Please enter a valid name!")},uuid:"workspaces/create",children:"Create"}),(0,W.jsx)(j.Z,{ml:1}),(0,W.jsx)(Z.ZP,{bold:!0,inline:!0,onClick:t,uuid:"workspaces/cancel",children:"Cancel"})]})})]})})})},U=t(70374),G=t(93808),X=t(75499),z=t(59533),V=t(42631),q=t(8059),Q=t(4611),$=t(70515),J=t(75083);function ee(e){var n=e.clusterType,t=e.fetchWorkspaces,r=e.instance,o=e.setErrors,c=(0,u.useRef)(null),a=(0,u.useState)(),f=a[0],p=a[1],h=(0,u.useState)(),m=h[0],b=h[1],x=r.name,g=(r.task_arn,{cluster_type:n}),y=(0,s.Db)(A.ZP.workspaces.useUpdate(x,g),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){t(),p(!1)},onErrorCallback:function(e,n){return o({errors:n,response:e})}})}}),Z=(0,i.Z)(y,1)[0],O=(0,s.Db)(A.ZP.workspaces.useDelete(x,g),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){t(),p(!1)},onErrorCallback:function(e,n){return o({errors:n,response:e})}})}}),_=(0,i.Z)(O,1)[0],T=(0,u.useMemo)((function(){var e=r.status,t=[{label:function(){return(0,W.jsx)(S.ZP,{children:"Delete workspace"})},onClick:function(){return b(!0)},uuid:"delete_workspace"}];return"ecs"===n&&("STOPPED"===e?t.unshift({label:function(){return(0,W.jsx)(S.ZP,{children:"Resume instance"})},onClick:function(){return Z({workspace:{action:"resume",cluster_type:n,name:r.name,task_arn:r.task_arn}})},uuid:"resume_instance"}):"RUNNING"===e&&t.unshift({label:function(){return(0,W.jsx)(S.ZP,{children:"Stop instance"})},onClick:function(){return Z({workspace:{action:"stop",cluster_type:n,name:r.name,task_arn:r.task_arn}})},uuid:"stop_instance"})),"k8s"===n&&("STOPPED"===e?t.unshift({label:function(){return(0,W.jsx)(S.ZP,{children:"Resume instance"})},onClick:function(){return Z({workspace:{action:"resume",cluster_type:n,name:r.name}})},uuid:"resume_instance"}):"RUNNING"===e&&t.unshift({label:function(){return(0,W.jsx)(S.ZP,{children:"Stop instance"})},onClick:function(){return Z({workspace:{action:"stop",cluster_type:n,name:r.name}})},uuid:"stop_instance"})),t}),[n,r,Z]);return(0,W.jsx)(W.Fragment,{children:["ecs","k8s"].includes(n)&&(0,W.jsxs)("div",{ref:c,style:{position:"relative",zIndex:"1"},children:[(0,W.jsx)(d.ZP,{iconOnly:!0,onClick:function(){return p(!f)},children:(0,W.jsx)(I.mH,{size:2*$.iI})}),(0,W.jsx)(l.Z,{disableEscape:!0,onClickOutside:function(){p(!1),b(!1)},open:f,children:m?(0,W.jsxs)(Q.f,{leftOffset:30*-$.iI,topOffset:3*-$.iI,width:30*$.iI,children:[(0,W.jsx)(S.ZP,{children:"Are you sure you want to delete"}),(0,W.jsx)(S.ZP,{children:"this instance? You may not be"}),(0,W.jsx)(S.ZP,{children:"able to recover your data."}),(0,W.jsx)(j.Z,{mt:1}),(0,W.jsxs)(v.ZP,{children:[(0,W.jsx)(d.ZP,{danger:!0,onClick:_,children:"Confirm"}),(0,W.jsx)(j.Z,{ml:1}),(0,W.jsx)(d.ZP,{default:!0,onClick:function(){return b(!1)},children:"Cancel"})]})]}):(0,W.jsx)(U.Z,{items:T,left:25*-$.iI,open:f,parentRef:c,topOffset:3*-$.iI,uuid:"workspaces/more_actions",width:25*$.iI})})]})})}function ne(){var e=A.ZP.statuses.list().data,n=(0,u.useState)(null),t=n[0],r=n[1],o=(0,u.useMemo)((function(){var n,t;return(null===e||void 0===e||null===(n=e.statuses)||void 0===n||null===(t=n[0])||void 0===t?void 0:t.instance_type)||"ecs"}),[e]),c=A.ZP.workspaces.list({cluster_type:o},{refreshInterval:1e4,revalidateOnFocus:!0}),a=c.data,s=c.mutate,l=(0,u.useMemo)((function(){var e;return null===a||void 0===a||null===(e=a.workspaces)||void 0===e?void 0:e.filter((function(e){return e.name}))}),[a]),f=(0,B.dd)((function(){return(0,W.jsx)(F,{clusterType:o,onCancel:m,onCreate:function(){s(),m()}})}),{},[o,s],{background:!0,disableClickOutside:!0,disableEscape:!0,uuid:"configure_workspace"}),p=(0,i.Z)(f,2),h=p[0],m=p[1];return(0,W.jsx)(z.Z,{breadcrumbs:[{bold:!0,label:function(){return"Workspaces"}}],errors:t,pageName:J.L6.WORKSPACES,setErrors:r,subheaderChildren:(0,W.jsx)(Z.ZP,{background:q.eW,beforeElement:(0,W.jsx)(I.mm,{size:2.5*$.iI}),bold:!0,inline:!0,onClick:function(){return h()},uuid:"workspaces/new",children:"Create new workspace"}),children:(0,W.jsx)(X.Z,{columnFlex:[2,4,2,3,1,null],columns:[{uuid:"Status"},{uuid:"Instance Name"},{uuid:"Type"},{uuid:"Public IP address"},{uuid:"Open"},{label:function(){return""},uuid:"Actions"}],rows:null===l||void 0===l?void 0:l.map((function(e){var n=e.instance,t=n.ip,i=n.name,c=n.status,a=n.type,u="http://".concat(t);return"ecs"===o&&(u="http://".concat(t,":6789")),[(0,W.jsx)(d.ZP,{borderRadius:"".concat(V.D7,"px"),danger:"STOPPED"===c,default:"PROVISIONING"===c,notClickable:!0,padding:"6px",primary:"RUNNING"===c,warning:"PENDING"===c,children:(0,H.vg)(c)},"status"),(0,W.jsx)(S.ZP,{children:i},"name"),(0,W.jsx)(S.ZP,{children:(0,H.vg)(a)},"type"),(0,W.jsx)(S.ZP,{children:t},"ip"),(0,W.jsx)(d.ZP,{disabled:!t,iconOnly:!0,onClick:function(){return window.open(u)},children:(0,W.jsx)(I.M0,{size:2*$.iI})},"open_button"),(0,W.jsx)(ee,{clusterType:o,fetchWorkspaces:s,instance:n,setErrors:r},"more_actions")]}))})})}ne.getInitialProps=(0,o.Z)(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var te=(0,G.Z)(ne)},13157:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage",function(){return t(2182)}])},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 o}});var r=t(61049);function o(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 i}});var r=t(12539),o=t(80022);function i(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,o.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,4267,600,8487,8264,7858,5499,5810,553,9774,2888,179],(function(){return n=13157,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8867],{59739:function(e,n,t){"use strict";var r=t(56669);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,n,t,o,i,c){if(c!==r){var a=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 a.name="Invariant Violation",a}}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:i,resetWarningCache:o};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"},55283:function(e,n,t){"use strict";t.d(n,{HC:function(){return T},HS:function(){return Z},IN:function(){return f},Kf:function(){return b},Nk:function(){return x},PB:function(){return v},PY:function(){return g},WC:function(){return p},fk:function(){return P},gE:function(){return _},j1:function(){return A},jv:function(){return O},nz:function(){return y},oh:function(){return l},qn:function(){return m},t1:function(){return j},u2:function(){return h},y9:function(){return S}});var r=t(38626),o=t(44897),i=t(44425),c=t(42631),a=t(8059),u=t(70515),s=t(47041),d=t(91437),l=68,f=1.5*u.iI,p=3*u.iI;function h(e){var n=a.eW;return i.tf.CALLBACK===e?n=a.J:i.tf.CHART===e||i.tf.CONDITIONAL===e?n=a.Hv:i.tf.CUSTOM===e?n=a.AK:i.tf.DATA_EXPORTER===e?n=a.Sr:i.tf.DATA_LOADER===e?n=a.R2:i.tf.DBT===e?n=a.J:i.tf.EXTENSION===e?n=a.FI:i.tf.GLOBAL_DATA_PRODUCT===e?n=a.yr:i.tf.SCRATCHPAD===e?n=a.Hv:i.tf.SENSOR===e?n=a.rK:i.tf.MARKDOWN===e?n=a.RK:i.tf.TRANSFORMER===e&&(n=a.eW),n}function m(e,n){var t,r,c=((null===n||void 0===n||null===(t=n.theme)||void 0===t?void 0:t.borders)||o.Z.borders).light,a=((null===n||void 0===n||null===(r=n.theme)||void 0===r?void 0:r.monotone)||o.Z.monotone).grey500,u=n||{},s=u.blockColor,d=u.isSelected,l=u.theme;return d?c=(l||o.Z).content.active:i.tf.TRANSFORMER===e||s===i.Lq.PURPLE?(c=(l||o.Z).accent.purple,a=(l||o.Z).accent.purpleLight):i.tf.DATA_EXPORTER===e||s===i.Lq.YELLOW?(c=(l||o.Z).accent.yellow,a=(l||o.Z).accent.yellowLight):i.tf.DATA_LOADER===e||s===i.Lq.BLUE?(c=(l||o.Z).accent.blue,a=(l||o.Z).accent.blueLight):i.tf.MARKDOWN===e?(c=(l||o.Z).accent.sky,a=(l||o.Z).accent.skyLight):i.tf.SENSOR===e||s===i.Lq.PINK?(c=(l||o.Z).accent.pink,a=(l||o.Z).accent.pinkLight):i.tf.DBT===e?(c=(l||o.Z).accent.dbt,a=(l||o.Z).accent.dbtLight):i.tf.EXTENSION===e||s===i.Lq.TEAL?(c=((null===l||void 0===l?void 0:l.accent)||o.Z.accent).teal,a=((null===l||void 0===l?void 0:l.accent)||o.Z.accent).tealLight):i.tf.CALLBACK===e?(c=((null===l||void 0===l?void 0:l.accent)||o.Z.accent).rose,a=((null===l||void 0===l?void 0:l.accent)||o.Z.accent).roseLight):i.tf.CONDITIONAL===e||i.tf.SCRATCHPAD===e||s===i.Lq.GREY||i.tf.CUSTOM===e&&!s?(c=(l||o.Z).content.default,a=(l||o.Z).accent.contentDefaultTransparent):i.tf.GLOBAL_DATA_PRODUCT!==e||s||(c=(l||o.Z).monotone.white,a=(l||o.Z).monotone.whiteTransparent),{accent:c,accentLight:a}}var b=(0,r.css)([""," "," "," "," "," "," ",""],(0,d.eR)(),(function(e){return!e.selected&&!e.hasError&&"\n border-color: ".concat(m(e.blockType,e).accentLight,";\n ")}),(function(e){return e.selected&&!e.hasError&&"\n border-color: ".concat(m(e.blockType,e).accent,";\n ")}),(function(e){return!e.selected&&e.hasError&&"\n border-color: ".concat((e.theme.accent||o.Z.accent).negativeTransparent,";\n ")}),(function(e){return e.selected&&e.hasError&&"\n border-color: ".concat((e.theme.borders||o.Z.borders).danger,";\n ")}),(function(e){return e.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(e){return e.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),x=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),g=r.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],b,c.n_,c.M8,c.mP,(function(e){return"\n background-color: ".concat((e.theme||o.Z).background.content,";\n\n &:hover {\n border-color: ").concat(m(e.blockType,e).accent,";\n }\n ")})),v=r.default.div.withConfig({displayName:"indexstyle__HeaderHorizontalBorder",componentId:"sc-s5rj34-2"})(["",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme||o.Z).borders.darkLight,";\n ")})),y=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-3"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;"," "," "," ",""],b,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,1*u.iI,1*u.iI,(function(e){return"\n background-color: ".concat((e.theme||o.Z).background.dashboard,";\n ")}),(function(e){return"undefined"!==typeof e.zIndex&&null!==e.zIndex&&"\n z-index: ".concat(6+(e.zIndex||0),";\n ")}),(function(e){return!e.noSticky&&"\n // This is to hide the horizontal scrollbar in the block header when sideBySide is enabled,\n // and the screen width is too small.\n position: sticky;\n top: -5px;\n "}),(function(e){return e.noSticky&&"\n ".concat((0,s.y$)(),"\n\n overflow-x: auto;\n overflow-y: visible;\n ")})),Z=r.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-s5rj34-4"})([""," "," ",""],(function(e){return!e.darkBorder&&"\n border-bottom: 1px solid ".concat((e.theme.borders||o.Z.borders).darkLight,";\n ")}),(function(e){return e.darkBorder&&"\n border-bottom: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n ")}),(function(e){return!e.noBackground&&"\n background-color: ".concat((e.theme||o.Z).background.dashboard,";\n ")})),O=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-5"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;position:relative;"," "," "," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],b,c.M8,c.mP,c.M8,c.mP,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(e){return!e.noPadding&&"\n padding-bottom: ".concat(u.iI,"px;\n padding-top: ").concat(u.iI,"px;\n ")}),(function(e){return e.lightBackground&&"\n background-color: ".concat((e.theme||o.Z).background.content,";\n ")}),(function(e){return!e.hideBorderBottom&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n overflow: hidden;\n ")})),_=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-6"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;&:hover{"," .block-divider-inner{","}}"," "," "," ",""],2*u.iI,(function(e){return e.additionalZIndex>0&&"\n z-index: ".concat(8+e.additionalZIndex,";\n ")}),(function(e){return"\n background-color: ".concat((e.theme.text||o.Z.text).fileBrowser,";\n ")}),(function(e){return!e.height&&"\n height: ".concat(2*u.iI,"px;\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return!e.bottom&&"\n bottom: ".concat(.5*u.iI,"px;\n ")}),(function(e){return"undefined"!==typeof e.bottom&&"\n bottom: ".concat(e.bottom,"px;\n ")})),j=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-7"})(["height 1px;width:100%;position:absolute;z-index:-1;"," ",""],(function(e){return!e.top&&"\n top: ".concat(1.5*u.iI,"px;\n ")}),(function(e){return"undefined"!==typeof e.top&&"\n top: ".concat(e.top,"px;\n ")})),S=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-8"})([""," ",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n padding-left: ").concat(e.normalPadding?u.iI:l,"px;\n ")}),(function(e){return!e.noMargin&&"\n margin-bottom: ".concat(1*u.iI,"px;\n padding-bottom: ").concat(1*u.iI,"px;\n ")})),T=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-9"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,l),P=r.default.div.withConfig({displayName:"indexstyle__ScrollColunnsContainerStyle",componentId:"sc-s5rj34-10"})(["position:relative;",""],(function(e){return"\n z-index: ".concat((null===e||void 0===e?void 0:e.zIndex)||1,";\n ")})),A=r.default.div.attrs((function(e){var n=e.height,t=e.left,r=e.right,o=e.top;return{style:{position:"fixed",height:n,width:e.width,left:t,right:r,top:o,zIndex:(e.zIndex||0)+2}}})).withConfig({displayName:"indexstyle__ScrollColunnStyle",componentId:"sc-s5rj34-11"})([""])},94629:function(e,n,t){"use strict";t.d(n,{Z:function(){return T}});var r=t(82394),o=t(21831),i=t(82684),c=t(50724),a=t(82555),u=t(97618),s=t(70613),d=t(68487),l=t(68899),f=t(28598);function p(e,n){var t=e.children,r=e.noPadding;return(0,f.jsx)(l.HS,{noPadding:r,ref:n,children:t})}var h=i.forwardRef(p),m=t(62547),b=t(82571),x=t(35686),g=t(98464),v=t(46684),y=t(70515),Z=t(53808),O=t(19183);function _(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 j(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function S(e,n){var t,r=e.addProjectBreadcrumbToCustomBreadcrumbs,p=e.after,_=e.afterHeader,S=e.afterHidden,T=e.afterWidth,P=e.afterWidthOverride,A=e.appendBreadcrumbs,C=e.before,E=e.beforeWidth,R=e.breadcrumbs,w=e.children,k=e.errors,I=e.headerMenuItems,N=e.headerOffset,D=e.hideAfterCompletely,L=e.mainContainerHeader,M=e.navigationItems,H=e.setAfterHidden,B=e.setErrors,W=e.subheaderChildren,Y=e.subheaderNoPadding,K=e.title,F=e.uuid,U=(0,O.i)().width,G="dashboard_after_width_".concat(F),X="dashboard_before_width_".concat(F),z=(0,i.useRef)(null),V=(0,i.useState)(P?T:(0,Z.U2)(G,T)),q=V[0],Q=V[1],$=(0,i.useState)(!1),J=$[0],ee=$[1],ne=(0,i.useState)(C?Math.max((0,Z.U2)(X,E),13*y.iI):null),te=ne[0],re=ne[1],oe=(0,i.useState)(!1),ie=oe[0],ce=oe[1],ae=(0,i.useState)(null)[1],ue=x.ZP.projects.list({},{revalidateOnFocus:!1}).data,se=null===ue||void 0===ue?void 0:ue.projects,de={label:function(){var e;return null===se||void 0===se||null===(e=se[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},le=[];R&&(r&&le.push(de),le.push.apply(le,(0,o.Z)(R))),(null===R||void 0===R||!R.length||A)&&(null===se||void 0===se?void 0:se.length)>=1&&(null!==R&&void 0!==R&&R.length||le.unshift({bold:!A,label:function(){return K}}),le.unshift(de)),(0,i.useEffect)((function(){null===z||void 0===z||!z.current||J||ie||null===ae||void 0===ae||ae(z.current.getBoundingClientRect().width)}),[J,q,ie,te,z,ae,U]),(0,i.useEffect)((function(){J||(0,Z.t8)(G,q)}),[S,J,q,G]),(0,i.useEffect)((function(){ie||(0,Z.t8)(X,te)}),[ie,te,X]);var fe=(0,g.Z)(T);return(0,i.useEffect)((function(){P&&fe!==T&&Q(T)}),[P,T,fe]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:K}),(0,f.jsx)(d.Z,{breadcrumbs:le,menuItems:I,project:null===se||void 0===se?void 0:se[0],version:null===se||void 0===se||null===(t=se[0])||void 0===t?void 0:t.version}),(0,f.jsxs)(l.Nk,{ref:n,children:[0!==(null===M||void 0===M?void 0:M.length)&&(0,f.jsx)(l.lm,{showMore:!0,children:(0,f.jsx)(b.Z,{navigationItems:M,showMore:!0})}),(0,f.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:p,afterHeader:_,afterHeightOffset:v.Mz,afterHidden:S,afterMousedownActive:J,afterWidth:q,before:C,beforeHeightOffset:v.Mz,beforeMousedownActive:ie,beforeWidth:l.k1+(C?te:0),headerOffset:N,hideAfterCompletely:!H||D,leftOffset:C?l.k1:null,mainContainerHeader:L,mainContainerRef:z,setAfterHidden:H,setAfterMousedownActive:ee,setAfterWidth:Q,setBeforeMousedownActive:ce,setBeforeWidth:re,children:[W&&(0,f.jsx)(h,{noPadding:Y,children:W}),w]})})]}),k&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===B||void 0===B?void 0:B(null)},children:(0,f.jsx)(a.Z,j(j({},k),{},{onClose:function(){return null===B||void 0===B?void 0:B(null)}}))})]})}var T=i.forwardRef(S)},53779:function(e,n,t){"use strict";t.d(n,{C:function(){return h},X$:function(){return p},eD:function(){return l},iW:function(){return m},nF:function(){return b}});var r=t(38626),o=t(44897),i=t(42631),c=t(70515),a=t(47041),u=t(91437),s=6.25*c.iI,d=(c.iI,100*c.iI),l=r.default.div.withConfig({displayName:"indexstyle__WindowContainerStyle",componentId:"sc-g0cszf-0"})(["border-radius:","px;width:100%;max-width:","px;z-index:101;position:absolute;overflow:hidden;top:50%;left:50%;transform:translate(-50%,-50%);",""],i.n_,d,(function(e){return"\n box-shadow: ".concat((e.theme||o.Z).shadow.window,";\n background-color: ").concat((e.theme||o.Z).background.panel,";\n ")})),f=(0,r.css)(["display:flex;align-items:center;justify-content:space-between;height:","px;padding:","px ","px;",""],s,c.iI,c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme||o.Z).background.output,";\n ")})),p=r.default.div.withConfig({displayName:"indexstyle__WindowHeaderStyle",componentId:"sc-g0cszf-1"})([""," border-top-left-radius:","px;border-top-right-radius:","px;",""],f,i.n_,i.n_,(function(e){return"\n border-bottom: ".concat(i.YF,"px ").concat(i.M8," ").concat((e.theme||o.Z).borders.medium,";\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__WindowContentStyle",componentId:"sc-g0cszf-2"})(["overflow:auto;padding:","px 0;"," "," "," ",""],c.iI,a.w5,(0,u.eR)(),(function(e){return e.minMaxHeight&&"\n max-height: ".concat(7*c.iI,"px;\n ")}),(function(e){return!e.minMaxHeight&&"\n max-height: calc(100vh - ".concat(6.5*s,"px);\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__WindowFooterStyle",componentId:"sc-g0cszf-3"})([""," justify-content:flex-end;border-bottom-left-radius:","px;border-bottom-right-radius:","px;",""],f,i.n_,i.n_,(function(e){return"\n border-top: ".concat(i.YF,"px ").concat(i.M8," ").concat((e.theme||o.Z).borders.medium,";\n ")})),b=r.default.div.withConfig({displayName:"indexstyle__InputRowStyle",componentId:"sc-g0cszf-4"})(["padding:","px ","px;",""],.75*c.iI,2*c.iI,(function(e){return"\n border-bottom: ".concat(i.YF,"px ").concat(i.M8," ").concat((e.theme||o.Z).borders.medium,";\n ")}))},29480:function(e,n,t){"use strict";t.d(n,{$W:function(){return d},cl:function(){return l},cv:function(){return f},dE:function(){return u},zG:function(){return s}});var r=t(38626),o=t(44897),i=t(42631),c=t(70515),a=t(47041),u=r.default.div.withConfig({displayName:"indexstyle__SectionStyle",componentId:"sc-7a1uhf-0"})(["border-radius:","px;padding:","px;",""],i.n_,c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).popup,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__DocsStyle",componentId:"sc-7a1uhf-1"})(["> div{overflow:initial;}> div img{max-width:80%;background:white;padding:1rem;max-height:20vh;}"]),d=r.default.div.withConfig({displayName:"indexstyle__CodeEditorStyle",componentId:"sc-7a1uhf-2"})(["padding-top:","px;",""],c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).codeTextarea,";\n ")})),l=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-7a1uhf-3"})(["overflow:auto;max-height:90vh;width:100%;"," "," "," "," ",""],a.w5,(function(e){return e.hideHorizontalScrollbar&&"\n overflow-x: hidden;\n "}),(function(e){return e.width&&"\n width: ".concat(e.width,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,";\n ")}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")})),f=r.default.div.withConfig({displayName:"indexstyle__HeaderRowStyle",componentId:"sc-7a1uhf-4"})(["padding:","px;"," "," ",""],2*c.iI,(function(e){return"\n background-color: ".concat((e.theme||o.Z).interactive.defaultBackground,";\n border-bottom: ").concat(i.YF,"px ").concat(i.M8," ").concat((e.theme||o.Z).borders.medium,";\n ")}),(function(e){return e.padding&&"\n padding: ".concat(e.padding,"px;\n ")}),(function(e){return e.rounded&&"\n border-top-left-radius: ".concat(i.n_,"px;\n border-top-right-radius: ").concat(i.n_,"px;\n ")}))},4611:function(e,n,t){"use strict";t.d(n,{f:function(){return a}});var r=t(38626),o=t(44897),i=t(70515),c=t(42631),a=r.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*i.iI,c.TR,2*i.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||o.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||o.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},85385:function(e,n,t){"use strict";t.d(n,{Qq:function(){return h},Z7:function(){return m},cH:function(){return o},du:function(){return f},fp:function(){return l},j5:function(){return p},uM:function(){return d}});var r,o,i=t(82394),c=t(57653),a=t(82359),u=t(72473),s=t(86735),d="sideview",l=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"}(o||(o={}));o.BLOCK_SETTINGS,o.CALLBACKS,o.CHARTS,o.DATA,o.EXTENSIONS,o.TREE;var f=[o.DATA];function p(e){var n,t,r,i=[{key:o.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:o.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:o.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:o.SECRETS}];return c.qL.PYSPARK!==(null===e||void 0===e||null===(n=e.pipeline)||void 0===n?void 0:n.type)&&i.push.apply(i,[{buildLabel:function(e){e.pipeline;return"Add-on blocks"},key:o.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:o.EXTENSIONS}]),i.push.apply(i,[{key:o.DATA,label:"Data"},{key:o.TERMINAL,label:"Terminal"},{key:o.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[a.d.INTERACTIONS]&&i.push({key:o.INTERACTIONS,label:"Interactions"}),i}function h(e){return(0,s.HK)(p(e),(function(e){return e.key}))}var m=(r={},(0,i.Z)(r,o.ADDON_BLOCKS,u.EJ),(0,i.Z)(r,o.BLOCK_SETTINGS,u.JG),(0,i.Z)(r,o.CALLBACKS,u.AQ),(0,i.Z)(r,o.CHARTS,u.GQ),(0,i.Z)(r,o.DATA,u.iA),(0,i.Z)(r,o.EXTENSIONS,u.Bf),(0,i.Z)(r,o.INTERACTIONS,u.yd),(0,i.Z)(r,o.SECRETS,u.Yo),(0,i.Z)(r,o.SETTINGS,u.Zr),(0,i.Z)(r,o.TERMINAL,u.oI),(0,i.Z)(r,o.TREE,u.mp),(0,i.Z)(r,o.VARIABLES,u.LO),r)},75083:function(e,n,t){"use strict";t.d(n,{HF:function(){return i},L6:function(){return r}});var r,o=t(72473);function i(e,n,t){var i=e.owner,c=(e.roles,[{Icon:o.Vz,id:r.WORKSPACES,isSelected:function(){return r.WORKSPACES===t},label:function(){return"Workspaces"},linkProps:{href:"/manage"}}]);return i&&c.push({Icon:o.NO,id:r.USERS,isSelected:function(){return r.USERS===t},label:function(){return"Users"},linkProps:{href:"/manage/users"}}),c.push.apply(c,[{Icon:o.Zr,id:r.SETTINGS,isSelected:function(){return r.SETTINGS===t},label:function(){return"Settings"},linkProps:{href:"/manage/settings"}},{Icon:o.$B,id:r.FILE_BROWSER,isSelected:function(){return r.FILE_BROWSER===t},label:function(){return"File browser"},linkProps:{href:"/manage/files"}}]),c}!function(e){e.WORKSPACES="workspaces",e.USERS="users",e.SETTINGS="settings",e.FILE_BROWSER="file_browser"}(r||(r={}))},59533:function(e,n,t){"use strict";var r=t(82684),o=t(94629),i=t(35686),c=t(70515),a=t(75083),u=t(50178),s=t(28598);n.Z=function(e){var n=e.before,t=e.breadcrumbs,d=void 0===t?[]:t,l=e.children,f=e.errors,p=e.headerOffset,h=e.mainContainerHeader,m=e.pageName,b=e.setErrors,x=e.subheaderChildren,g=i.ZP.statuses.list().data,v=(0,r.useMemo)((function(){var e,n;return null===g||void 0===g||null===(e=g.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.project_type}),[g]),y=(0,u.PR)()||{};return(0,s.jsx)(o.Z,{before:n,beforeWidth:n?50*c.iI:0,breadcrumbs:d,errors:f,headerOffset:p,mainContainerHeader:h,navigationItems:(0,a.HF)(y,v,m),setErrors:b,subheaderChildren:x,title:"Workspaces",uuid:"workspaces/index",children:l})}},44425:function(e,n,t){"use strict";t.d(n,{$W:function(){return x},DA:function(){return m},HX:function(){return Z},J8:function(){return y},L8:function(){return a},LE:function(){return f},Lk:function(){return j},Lq:function(){return p},M5:function(){return h},Q3:function(){return g},Qj:function(){return O},Ut:function(){return P},V4:function(){return T},VZ:function(){return v},dO:function(){return l},f2:function(){return S},iZ:function(){return _},t6:function(){return u},tf:function(){return d}});var r,o,i,c,a,u,s=t(82394);!function(e){e.CONDITION="condition",e.DBT_SNAPSHOT="snapshot",e.DYNAMIC="dynamic",e.DYNAMIC_CHILD="dynamic_child",e.REDUCE_OUTPUT="reduce_output",e.REPLICA="replica"}(a||(a={})),function(e){e.MARKDOWN="markdown",e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(u||(u={}));var d,l=(r={},(0,s.Z)(r,u.MARKDOWN,"MD"),(0,s.Z)(r,u.PYTHON,"PY"),(0,s.Z)(r,u.R,"R"),(0,s.Z)(r,u.SQL,"SQL"),(0,s.Z)(r,u.YAML,"YAML"),r),f=(o={},(0,s.Z)(o,u.MARKDOWN,"Markdown"),(0,s.Z)(o,u.PYTHON,"Python"),(0,s.Z)(o,u.R,"R"),(0,s.Z)(o,u.SQL,"SQL"),(0,s.Z)(o,u.YAML,"YAML"),o);!function(e){e.CALLBACK="callback",e.CHART="chart",e.CONDITIONAL="conditional",e.CUSTOM="custom",e.DATA_EXPORTER="data_exporter",e.DATA_LOADER="data_loader",e.DBT="dbt",e.EXTENSION="extension",e.GLOBAL_DATA_PRODUCT="global_data_product",e.SCRATCHPAD="scratchpad",e.SENSOR="sensor",e.MARKDOWN="markdown",e.TRANSFORMER="transformer"}(d||(d={}));var p,h=[d.CALLBACK,d.CONDITIONAL,d.EXTENSION];!function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(p||(p={}));var m,b,x=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN,d.TRANSFORMER],g=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN,d.TRANSFORMER],v=[d.DATA_EXPORTER,d.DATA_LOADER],y=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],Z=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],O=[d.CHART,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN],_=[d.CALLBACK,d.CHART,d.EXTENSION,d.SCRATCHPAD,d.MARKDOWN],j=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SENSOR,d.TRANSFORMER];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(m||(m={})),function(e){e.BLOCK_FILE="block_file",e.CUSTOM_BLOCK_TEMPLATE="custom_block_template",e.MAGE_TEMPLATE="mage_template"}(b||(b={}));var S=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],T=(i={},(0,s.Z)(i,d.CALLBACK,"Callback"),(0,s.Z)(i,d.CHART,"Chart"),(0,s.Z)(i,d.CONDITIONAL,"Conditional"),(0,s.Z)(i,d.CUSTOM,"Custom"),(0,s.Z)(i,d.DATA_EXPORTER,"Data exporter"),(0,s.Z)(i,d.DATA_LOADER,"Data loader"),(0,s.Z)(i,d.DBT,"DBT"),(0,s.Z)(i,d.EXTENSION,"Extension"),(0,s.Z)(i,d.GLOBAL_DATA_PRODUCT,"Global data product"),(0,s.Z)(i,d.MARKDOWN,"Markdown"),(0,s.Z)(i,d.SCRATCHPAD,"Scratchpad"),(0,s.Z)(i,d.SENSOR,"Sensor"),(0,s.Z)(i,d.TRANSFORMER,"Transformer"),i),P=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER,d.SENSOR];c={},(0,s.Z)(c,d.DATA_EXPORTER,"DE"),(0,s.Z)(c,d.DATA_LOADER,"DL"),(0,s.Z)(c,d.SCRATCHPAD,"SP"),(0,s.Z)(c,d.SENSOR,"SR"),(0,s.Z)(c,d.MARKDOWN,"MD"),(0,s.Z)(c,d.TRANSFORMER,"TF")},89706:function(e,n,t){"use strict";t.d(n,{JD:function(){return m},Lu:function(){return i},PF:function(){return f},dT:function(){return c},n6:function(){return s},nB:function(){return h},oy:function(){return p},xF:function(){return l}});var r,o,i,c,a=t(82394),u=t(44425);!function(e){e.CSV="csv",e.JSON="json",e.MD="md",e.PY="py",e.R="r",e.SH="sh",e.SQL="sql",e.TXT="txt",e.YAML="yaml",e.YML="yml"}(i||(i={})),function(e){e.INIT_PY="__init__.py",e.METADATA_YAML="metadata.yaml",e.REQS_TXT="requirements.txt"}(c||(c={}));var s=[i.PY,i.SQL],d=[i.JSON,i.MD,i.PY,i.R,i.SH,i.SQL,i.TXT,i.YAML,i.YML],l=new RegExp(d.map((function(e){return".".concat(e,"$")})).join("|")),f=(new RegExp(d.map((function(e){return".".concat(e,"$")})).join("|")),"charts"),p="pipelines",h=(r={},(0,a.Z)(r,i.MD,u.t6.MARKDOWN),(0,a.Z)(r,i.JSON,i.JSON),(0,a.Z)(r,i.PY,u.t6.PYTHON),(0,a.Z)(r,i.R,u.t6.R),(0,a.Z)(r,i.SQL,u.t6.SQL),(0,a.Z)(r,i.TXT,"text"),(0,a.Z)(r,i.YAML,u.t6.YAML),(0,a.Z)(r,i.YML,u.t6.YAML),r),m=(o={},(0,a.Z)(o,u.t6.MARKDOWN,i.MD),(0,a.Z)(o,u.t6.PYTHON,i.PY),(0,a.Z)(o,u.t6.R,i.R),(0,a.Z)(o,u.t6.SQL,i.SQL),(0,a.Z)(o,u.t6.YAML,i.YAML),(0,a.Z)(o,"text",i.TXT),o)},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 m},G7:function(){return g},LM:function(){return v},Mj:function(){return y},QK:function(){return h},RH:function(){return x},a_:function(){return O},fj:function(){return _},kA:function(){return Z},qL:function(){return a},r0:function(){return b}});var r,o,i,c,a,u=t(75582),s=t(82394),d=t(72473),l=t(72098);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,s.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}!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(a||(a={}));var h,m,b,x=(r={},(0,s.Z)(r,a.INTEGRATION,"Integration"),(0,s.Z)(r,a.PYTHON,"Python"),(0,s.Z)(r,a.PYSPARK,"PySpark"),(0,s.Z)(r,a.STREAMING,"Streaming"),r),g=(o={},(0,s.Z)(o,a.INTEGRATION,"Integration"),(0,s.Z)(o,a.PYTHON,"Standard"),(0,s.Z)(o,a.PYSPARK,"PySpark"),(0,s.Z)(o,a.STREAMING,"Streaming"),o),v="all",y=(a.PYTHON,a.INTEGRATION,a.STREAMING,i={},(0,s.Z)(i,v,d.ie),(0,s.Z)(i,a.INTEGRATION,d.YC),(0,s.Z)(i,a.PYTHON,d.El),(0,s.Z)(i,a.STREAMING,d.dB),i);!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"}(h||(h={})),function(e){e.GROUP="group_by",e.HISTORY_DAYS="from_history_days",e.NO_TAGS="no_tags",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(m||(m={})),function(e){e.STATUS="status",e.TAG="tag",e.TYPE="type"}(b||(b={}));var Z=[h.ACTIVE,h.INACTIVE,h.NO_SCHEDULES],O=(c={},(0,s.Z)(c,a.PYTHON,l.U.PYTHON3),(0,s.Z)(c,a.PYSPARK,l.U.PYSPARK),c),_=Object.entries(O).reduce((function(e,n){var t=(0,u.Z)(n,2),r=t[0],o=t[1];return p(p({},e),{},(0,s.Z)({},o,r))}),{})},65956:function(e,n,t){"use strict";var r=t(38626),o=t(55485),i=t(38276),c=t(30160),a=t(44897),u=t(42631),s=t(47041),d=t(70515),l=t(28598),f=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*d.iI,1.5*d.iI,1.5*d.iI),p=r.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],u.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||a.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||a.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||a.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||a.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||a.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),h=r.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],u.n_,u.n_,(function(e){return"\n background-color: ".concat((e.theme.background||a.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||a.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),f,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),m=r.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*d.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*d.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;"],u.M8,u.YF,1.75*d.iI);n.Z=function(e){var n=e.borderless,t=e.children,r=e.containerRef,a=e.contentContainerRef,u=e.dark,s=e.footer,d=e.fullHeight,f=void 0===d||d,x=e.fullWidth,g=void 0===x||x,v=e.header,y=e.headerHeight,Z=e.headerIcon,O=e.headerPaddingVertical,_=e.headerTitle,j=e.maxHeight,S=e.maxWidth,T=e.minWidth,P=e.noPadding,A=e.overflowVisible,C=e.subtitle,E=e.success;return(0,l.jsxs)(p,{borderless:n,dark:u,fullHeight:f,fullWidth:g,maxHeight:j,maxWidth:S,minWidth:T,overflowVisible:A,ref:r,success:E,children:[(v||_)&&(0,l.jsxs)(h,{headerPaddingVertical:O,height:y,children:[v&&v,_&&(0,l.jsx)(o.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,l.jsxs)(o.ZP,{alignItems:"center",children:[Z&&Z,(0,l.jsx)(i.Z,{ml:Z?1:0,children:(0,l.jsx)(c.ZP,{bold:!0,default:!0,children:_})})]})})]}),(0,l.jsxs)(m,{maxHeight:j,noPadding:P,overflowVisible:A,ref:a,children:[C&&"string"===typeof C&&(0,l.jsx)(i.Z,{mb:2,children:(0,l.jsx)(c.ZP,{default:!0,children:C})}),C&&"string"!==typeof C&&C,t]}),s&&(0,l.jsx)(b,{children:s})]})}},11074:function(e,n,t){"use strict";t.d(n,{Z:function(){return u}});var r=t(38626),o=t(44897),i=t(42631),c=r.default.div.withConfig({displayName:"indexstyle__PanelStyle",componentId:"sc-1rfr5wd-0"})(["border-radius:","px;"," ",""],i.n_,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).panel,";\n ")}),(function(e){return e.fullWidth&&"\n width: 100%;\n "})),a=t(28598);var u=function(e){var n=e.children,t=e.fullWidth,r=void 0===t||t;return(0,a.jsx)(c,{fullWidth:r,children:n})}},35185:function(e,n,t){"use strict";var r=t(82394),o=t(91835),i=(t(82684),t(38626)),c=t(44897),a=t(42631),u=t(70515),s=t(28598);function d(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 l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var f=i.default.div.withConfig({displayName:"ProgressBar__ProgressBarContainerStyle",componentId:"sc-10x9ojc-0"})(["border-radius:","px;height:","px;overflow:hidden;position:relative;width:100%;",""],a.BG,.75*u.iI,(function(e){return"\n background-color: ".concat((e.theme.monotone||c.Z.monotone).grey200,";\n ")})),p=i.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||c.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||c.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,o.Z)({},e);return(0,s.jsx)(f,l(l({},n),{},{children:(0,s.jsx)(p,l({},n))}))}},2182:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return te}});var r,o=t(77837),i=t(75582),c=t(38860),a=t.n(c),u=t(82684),s=t(69864),d=t(71180),l=t(50724),f=t(82394),p=t(32013),h=t(98777),m=t(75810),b=t(15338),x=t(10553),g=t(97618),v=t(55485),y=t(85854),Z=t(93369),O=t(11074),_=t(44085),j=t(38276),S=t(30160),T=t(17488),P=t(69650),A=t(35686),C=["ReadWriteOnce","ReadWriteMany","ReadOnlyMany"],E=[{label:"Workspace name",required:!0,uuid:"name"}],R=[{label:"Service account name",placeholder:"default",uuid:"service_account_name"},{label:"Ingress name",labelDescription:"If you want to add the workspace to an existing ingress, enter the name of the ingress here. Otherwise, the workspace can be accessed through the service.",placeholder:"my-ingress",uuid:"ingress_name"}],w=[{label:"Storage class name",placeholder:"default",uuid:"storage_class_name"},{label:"Storage request size (in GB)",type:"number",uuid:"storage_request_size"}],k=t(44425),I=t(72473);!function(e){e.K8S="k8s",e.ECS="ecs",e.CLOUD_RUN="cloud_run",e.EMR="emr"}(r||(r={}));var N=t(29480),D=t(79633),L=t(53779),M=t(72619),H=t(81728),B=t(89538),W=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 K(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,f.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 F=function(e){var n=e.clusterType,t=e.onCancel,o=e.onCreate,c=(0,u.useState)(),a=c[0],l=c[1],Y=(0,u.useState)(),F=Y[0],U=Y[1],G=(0,u.useState)(null),X=G[0],z=G[1],V=(0,u.useState)(null),q=V[0],Q=V[1],$=(0,s.Db)(A.ZP.workspaces.useCreate(),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(e){e.error_message?l(e.error_message):o()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;l(r),console.log(t,r)}})}}),J=(0,i.Z)($,2),ee=J[0],ne=J[1].isLoading,te=A.ZP.files.list(),re=te.data,oe=te.mutate,ie=(0,u.useMemo)((function(){return(null===re||void 0===re?void 0:re.files)||[]}),[re]),ce=(0,B.dd)((function(e){return(0,W.jsxs)(L.eD,{children:[(0,W.jsxs)(L.X$,{children:[(0,W.jsx)(g.Z,{alignItems:"center",children:(0,W.jsx)(S.ZP,{disableWordBreak:!0,monospace:!0,children:"Select file"})}),(0,W.jsx)(d.ZP,{iconOnly:!0,onClick:se,children:(0,W.jsx)(I.x8,{muted:!0})})]}),(0,W.jsx)(L.C,{children:(0,W.jsx)(x.Z,{disableContextMenu:!0,fetchFileTree:oe,files:ie,isFileDisabled:null===e||void 0===e?void 0:e.isFileDisabled,openFile:e.onFileOpen})})]})}),{},[ie,oe],{background:!0,uuid:"file_selector"}),ae=(0,i.Z)(ce,2),ue=ae[0],se=ae[1],de=(0,u.useCallback)((function(e){var n=e.autoComplete,t=e.disabled,r=e.label,o=e.labelDescription,i=e.placeholder,c=e.required,a=e.type,u=e.uuid;return(0,W.jsxs)("div",{children:[(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsxs)(g.Z,{flex:2,flexDirection:"column",children:[(0,W.jsx)(S.ZP,{children:r}),o&&(0,W.jsx)(S.ZP,{muted:!0,children:o})]}),(0,W.jsx)(g.Z,{flex:1}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(T.Z,{autoComplete:n,disabled:t,onChange:function(e){z((function(n){return K(K({},n),{},(0,f.Z)({},u,e.target.value))}))},placeholder:i,required:c,setContentOnMount:!0,type:a,value:(null===X||void 0===X?void 0:X[u])||""})})]})})]},u)}),[X,z]),le=(0,u.useMemo)((function(){return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(v.ZP,{children:(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"General"})})}),R.map((function(e){return de(e)})),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(v.ZP,{children:(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"Volume claim params"})})}),w.map((function(e){return de(e)})),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsx)(g.Z,{flex:3,children:(0,W.jsx)(S.ZP,{children:"Access mode"})}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(_.Z,{fullWidth:!0,label:"Access mode",onChange:function(e){e.preventDefault(),z((function(n){return K(K({},n),{},{storage_access_mode:e.target.value})}))},placeholder:"Access mode",value:null===X||void 0===X?void 0:X.storage_access_mode,children:C.map((function(e){return(0,W.jsx)("option",{value:e,children:e},e)}))})})]})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsxs)(v.ZP,{alignItems:"center",children:[(0,W.jsx)(P.Z,{checked:F,compact:!0,onCheck:function(){return U((function(e){return!e}))}}),(0,W.jsx)(j.Z,{ml:1,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"Configure container"})})]})}),(0,W.jsx)(b.Z,{muted:!0}),F&&(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsx)(N.$W,{children:(0,W.jsx)(m.Z,{autoHeight:!0,fontSize:12,language:k.t6.YAML,onChange:function(e){z((function(n){return K(K({},n),{},{container_config:e})}))},tabSize:2,value:null===X||void 0===X?void 0:X.container_config,width:"100%"})})})]})}),[de,F,X]),fe=(0,u.useMemo)((function(){var e,n,t,r;return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(v.ZP,{children:(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"Termination policy"})})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsx)(g.Z,{flex:3,children:(0,W.jsx)(S.ZP,{children:"Enable auto termination"})}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsxs)(_.Z,{fullWidth:!0,onChange:function(e){e.preventDefault(),Q((function(n){return K(K({},n),{},{termination_policy:K(K({},null===n||void 0===n?void 0:n.termination_policy),{},{enable_auto_termination:"true"===e.target.value})})}))},value:(null===q||void 0===q||null===(e=q.termination_policy)||void 0===e?void 0:e.enable_auto_termination)||"false",children:[(0,W.jsx)("option",{value:"true",children:"True"},"true"),(0,W.jsx)("option",{value:"false",children:"False"},"false")]})})]})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsx)(g.Z,{flex:3,children:(0,W.jsx)(S.ZP,{children:"Max idle time (in seconds)"})}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(T.Z,{onChange:function(e){Q((function(n){return K(K({},n),{},{termination_policy:K(K({},null===n||void 0===n?void 0:n.termination_policy),{},{max_idle_seconds:e.target.value})})}))},setContentOnMount:!0,type:"number",value:(null===q||void 0===q||null===(n=q.termination_policy)||void 0===n?void 0:n.max_idle_seconds)||""})})]})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(v.ZP,{children:(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"Pre start"})})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsxs)(g.Z,{flex:3,justifyContent:"space-between",children:[(0,W.jsx)(S.ZP,{children:"Path to pre start script"}),(0,W.jsx)(j.Z,{mr:1,children:(0,W.jsx)(d.ZP,{iconOnly:!0,noBackground:!0,noBorder:!0,onClick:function(){return ue({isFileDisabled:function(e,n){return!n&&!e.endsWith(".py")},onFileOpen:function(e){Q((function(n){return K(K({},n),{},{pre_start_script_path:e})})),se()}})},children:(0,W.jsx)(I.gt,{})})})]}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(T.Z,{onChange:function(e){Q((function(n){return K(K({},n),{},{pre_start_script_path:e.target.value})}))},placeholder:"/",setContentOnMount:!0,value:(null===q||void 0===q?void 0:q.pre_start_script_path)||""})})]})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(v.ZP,{children:(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"Post start"})})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsx)(g.Z,{flex:3,children:(0,W.jsx)(S.ZP,{children:"Command"})}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(T.Z,{monospace:!0,onChange:function(e){Q((function(n){return K(K({},n),{},{post_start:K(K({},null===n||void 0===n?void 0:n.post_start),{},{command:e.target.value})})}))},setContentOnMount:!0,value:(null===q||void 0===q||null===(t=q.post_start)||void 0===t?void 0:t.command)||""})})]})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsxs)(g.Z,{flex:3,justifyContent:"space-between",children:[(0,W.jsx)(S.ZP,{children:"Path to hook (optional)"}),(0,W.jsx)(j.Z,{mr:1,children:(0,W.jsx)(d.ZP,{iconOnly:!0,noBackground:!0,noBorder:!0,onClick:function(){return ue({onFileOpen:function(e){Q((function(n){return K(K({},n),{},{post_start:K(K({},null===n||void 0===n?void 0:n.post_start),{},{hook_path:e})})})),se()}})},children:(0,W.jsx)(I.gt,{})})})]}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(T.Z,{onChange:function(e){Q((function(n){return K(K({},n),{},{post_start:K(K({},null===n||void 0===n?void 0:n.post_start),{},{hook_path:e.target.value})})}))},placeholder:"/",setContentOnMount:!0,value:(null===q||void 0===q||null===(r=q.post_start)||void 0===r?void 0:r.hook_path)||""})})]})}),(0,W.jsx)(b.Z,{muted:!0})]})}),[se,q,Q,ue]);return(0,W.jsx)(O.Z,{children:(0,W.jsx)("div",{style:{width:"750px"},children:(0,W.jsxs)(j.Z,{p:2,children:[(0,W.jsx)(y.Z,{level:4,children:"Create workspace"}),(0,W.jsxs)("form",{children:[E.map((function(e){var n=e.autoComplete,t=e.disabled,r=e.label,o=e.required,i=e.type,c=e.uuid;return(0,W.jsx)(j.Z,{mt:2,children:(0,W.jsx)(T.Z,{autoComplete:n,disabled:t,label:r,onChange:function(e){z((function(n){return K(K({},n),{},(0,f.Z)({},c,e.target.value))}))},required:o,setContentOnMount:!0,type:i,value:(null===X||void 0===X?void 0:X[c])||""})},c)})),(0,W.jsx)(j.Z,{mt:2,children:(0,W.jsxs)(p.Z,{noPaddingContent:!0,children:[n===r.K8S&&(0,W.jsx)(h.Z,{title:"Kubernetes",children:le}),(0,W.jsx)(h.Z,{title:"Lifecycle (optional)",children:fe})]})})]}),ne&&(0,W.jsx)(j.Z,{mt:1,children:(0,W.jsx)(S.ZP,{small:!0,warning:!0,children:"This may take up to a few minutes... Once the service is created, it may take another 5-10 minutes for the service to be accessible."})}),!ne&&a&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(j.Z,{mt:1,children:(0,W.jsx)(S.ZP,{danger:!0,small:!0,children:"Failed to create instance, see error below."})}),(0,W.jsx)(j.Z,{mt:1,children:(0,W.jsx)(S.ZP,{danger:!0,small:!0,children:a})})]}),(0,W.jsx)(j.Z,{my:2,children:(0,W.jsxs)(v.ZP,{flexDirection:"row-reverse",children:[(0,W.jsx)(Z.ZP,{background:D.a$,bold:!0,inline:!0,loading:ne,onClick:function(){var e=X||{},t=e.name,r=e.container_config;if(t){var o=K({},X);o.name=function(e){return"ecs"===n?(0,H.We)(e,"_"):(0,H.We)(e,"-")}(t),o.container_config=F&&r,ee({workspace:K(K({},o),{},{cluster_type:n,lifecycle_config:q})})}else l("Please enter a valid name!")},uuid:"workspaces/create",children:"Create"}),(0,W.jsx)(j.Z,{ml:1}),(0,W.jsx)(Z.ZP,{bold:!0,inline:!0,onClick:t,uuid:"workspaces/cancel",children:"Cancel"})]})})]})})})},U=t(70374),G=t(93808),X=t(75499),z=t(59533),V=t(42631),q=t(8059),Q=t(4611),$=t(70515),J=t(75083);function ee(e){var n=e.clusterType,t=e.fetchWorkspaces,r=e.instance,o=e.setErrors,c=(0,u.useRef)(null),a=(0,u.useState)(),f=a[0],p=a[1],h=(0,u.useState)(),m=h[0],b=h[1],x=r.name,g=(r.task_arn,{cluster_type:n}),y=(0,s.Db)(A.ZP.workspaces.useUpdate(x,g),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){t(),p(!1)},onErrorCallback:function(e,n){return o({errors:n,response:e})}})}}),Z=(0,i.Z)(y,1)[0],O=(0,s.Db)(A.ZP.workspaces.useDelete(x,g),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){t(),p(!1)},onErrorCallback:function(e,n){return o({errors:n,response:e})}})}}),_=(0,i.Z)(O,1)[0],T=(0,u.useMemo)((function(){var e=r.status,t=[{label:function(){return(0,W.jsx)(S.ZP,{children:"Delete workspace"})},onClick:function(){return b(!0)},uuid:"delete_workspace"}];return"ecs"===n&&("STOPPED"===e?t.unshift({label:function(){return(0,W.jsx)(S.ZP,{children:"Resume instance"})},onClick:function(){return Z({workspace:{action:"resume",cluster_type:n,name:r.name,task_arn:r.task_arn}})},uuid:"resume_instance"}):"RUNNING"===e&&t.unshift({label:function(){return(0,W.jsx)(S.ZP,{children:"Stop instance"})},onClick:function(){return Z({workspace:{action:"stop",cluster_type:n,name:r.name,task_arn:r.task_arn}})},uuid:"stop_instance"})),"k8s"===n&&("STOPPED"===e?t.unshift({label:function(){return(0,W.jsx)(S.ZP,{children:"Resume instance"})},onClick:function(){return Z({workspace:{action:"resume",cluster_type:n,name:r.name}})},uuid:"resume_instance"}):"RUNNING"===e&&t.unshift({label:function(){return(0,W.jsx)(S.ZP,{children:"Stop instance"})},onClick:function(){return Z({workspace:{action:"stop",cluster_type:n,name:r.name}})},uuid:"stop_instance"})),t}),[n,r,Z]);return(0,W.jsx)(W.Fragment,{children:["ecs","k8s"].includes(n)&&(0,W.jsxs)("div",{ref:c,style:{position:"relative",zIndex:"1"},children:[(0,W.jsx)(d.ZP,{iconOnly:!0,onClick:function(){return p(!f)},children:(0,W.jsx)(I.mH,{size:2*$.iI})}),(0,W.jsx)(l.Z,{disableEscape:!0,onClickOutside:function(){p(!1),b(!1)},open:f,children:m?(0,W.jsxs)(Q.f,{leftOffset:30*-$.iI,topOffset:3*-$.iI,width:30*$.iI,children:[(0,W.jsx)(S.ZP,{children:"Are you sure you want to delete"}),(0,W.jsx)(S.ZP,{children:"this instance? You may not be"}),(0,W.jsx)(S.ZP,{children:"able to recover your data."}),(0,W.jsx)(j.Z,{mt:1}),(0,W.jsxs)(v.ZP,{children:[(0,W.jsx)(d.ZP,{danger:!0,onClick:_,children:"Confirm"}),(0,W.jsx)(j.Z,{ml:1}),(0,W.jsx)(d.ZP,{default:!0,onClick:function(){return b(!1)},children:"Cancel"})]})]}):(0,W.jsx)(U.Z,{items:T,left:25*-$.iI,open:f,parentRef:c,topOffset:3*-$.iI,uuid:"workspaces/more_actions",width:25*$.iI})})]})})}function ne(){var e=A.ZP.statuses.list().data,n=(0,u.useState)(null),t=n[0],r=n[1],o=(0,u.useMemo)((function(){var n,t;return(null===e||void 0===e||null===(n=e.statuses)||void 0===n||null===(t=n[0])||void 0===t?void 0:t.instance_type)||"ecs"}),[e]),c=A.ZP.workspaces.list({cluster_type:o},{refreshInterval:1e4,revalidateOnFocus:!0}),a=c.data,s=c.mutate,l=(0,u.useMemo)((function(){var e;return null===a||void 0===a||null===(e=a.workspaces)||void 0===e?void 0:e.filter((function(e){return e.name}))}),[a]),f=(0,B.dd)((function(){return(0,W.jsx)(F,{clusterType:o,onCancel:m,onCreate:function(){s(),m()}})}),{},[o,s],{background:!0,disableClickOutside:!0,disableEscape:!0,uuid:"configure_workspace"}),p=(0,i.Z)(f,2),h=p[0],m=p[1];return(0,W.jsx)(z.Z,{breadcrumbs:[{bold:!0,label:function(){return"Workspaces"}}],errors:t,pageName:J.L6.WORKSPACES,setErrors:r,subheaderChildren:(0,W.jsx)(Z.ZP,{background:q.eW,beforeElement:(0,W.jsx)(I.mm,{size:2.5*$.iI}),bold:!0,inline:!0,onClick:function(){return h()},uuid:"workspaces/new",children:"Create new workspace"}),children:(0,W.jsx)(X.Z,{columnFlex:[2,4,2,3,1,null],columns:[{uuid:"Status"},{uuid:"Instance Name"},{uuid:"Type"},{uuid:"Public IP address"},{uuid:"Open"},{label:function(){return""},uuid:"Actions"}],rows:null===l||void 0===l?void 0:l.map((function(e){var n=e.instance,t=n.ip,i=n.name,c=n.status,a=n.type,u="http://".concat(t);return"ecs"===o&&(u="http://".concat(t,":6789")),[(0,W.jsx)(d.ZP,{borderRadius:"".concat(V.D7,"px"),danger:"STOPPED"===c,default:"PROVISIONING"===c,notClickable:!0,padding:"6px",primary:"RUNNING"===c,warning:"PENDING"===c,children:(0,H.vg)(c)},"status"),(0,W.jsx)(S.ZP,{children:i},"name"),(0,W.jsx)(S.ZP,{children:(0,H.vg)(a)},"type"),(0,W.jsx)(S.ZP,{children:t},"ip"),(0,W.jsx)(d.ZP,{disabled:!t,iconOnly:!0,onClick:function(){return window.open(u)},children:(0,W.jsx)(I.M0,{size:2*$.iI})},"open_button"),(0,W.jsx)(ee,{clusterType:o,fetchWorkspaces:s,instance:n,setErrors:r},"more_actions")]}))})})}ne.getInitialProps=(0,o.Z)(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var te=(0,G.Z)(ne)},13157:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage",function(){return t(2182)}])},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 o}});var r=t(61049);function o(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 i}});var r=t(12539),o=t(80022);function i(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,o.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,4267,600,8487,8264,7858,5499,5810,553,9774,2888,179],(function(){return n=13157,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6780],{74395:function(e,n,t){"use strict";t.d(n,{M:function(){return s},W:function(){return r}});var i=t(38626),l=t(46684),r=34*t(70515).iI,s=i.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],l.Mz)},8955:function(e,n,t){"use strict";t.d(n,{G7:function(){return P},ZP:function(){return _},u$:function(){return x}});var i=t(75582),l=t(82394),r=t(26304),s=t(90299),a=t(9134),c=t(24138),u=t(38276),o=t(30160),d=t(75499),p=t(70515),f=t(16488),v=t(42122),b=t(28598),h=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function m(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function j(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,l.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=44,Z={uuid:"Run details"},g={uuid:"Dependency tree"},P=[g,Z];function _(e){var n=e.height,t=e.heightOffset,l=e.pipeline,m=e.selectedRun,_=e.selectedTab,k=e.setSelectedTab,y=j({},(0,r.Z)(e,h));m?y.blockStatus=(0,f.IJ)(null===m||void 0===m?void 0:m.block_runs):y.noStatus=!0;var O=(0,v.Kn)(null===m||void 0===m?void 0:m.variables)?j({},null===m||void 0===m?void 0:m.variables):(null===m||void 0===m?void 0:m.variables)||{},I=null===m||void 0===m?void 0:m.event_variables;if(I&&(0,v.Kn)(I)&&!(0,v.Qr)(I))if((0,v.Kn)(O)&&O.hasOwnProperty("event")){var w=(0,v.Kn)(O.event)?O.event:{};O.event=j(j({},w),I)}else O.event=j({},I);var E=[];O&&JSON.stringify(O,null,2).split("\n").forEach((function(e){E.push(" ".concat(e))}));var D=m&&[["Run ID",null===m||void 0===m?void 0:m.id],["Variables",(0,b.jsx)(a.Z,{language:"json",small:!0,source:E.join("\n")},"variable_value")]],S=m&&(0,b.jsx)(u.Z,{pb:p.cd,px:p.cd,children:(0,b.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:D.map((function(e,n){var t=(0,i.Z)(e,2),l=t[0],r=t[1];return[(0,b.jsx)(o.ZP,{monospace:!0,muted:!0,children:l},"key_".concat(n)),(0,b.jsx)(o.ZP,{monospace:!0,textOverflow:!0,children:r},"val_".concat(n))]})),uuid:"LogDetail"})}),C=_&&k;return(0,b.jsxs)(b.Fragment,{children:[C&&(0,b.jsx)(u.Z,{py:p.cd,children:(0,b.jsx)(s.Z,{onClickTab:k,selectedTabUUID:null===_||void 0===_?void 0:_.uuid,tabs:P,underlineStyle:!0})}),(!C||g.uuid===(null===_||void 0===_?void 0:_.uuid))&&(0,b.jsx)(c.ZP,j(j({},y),{},{height:n,heightOffset:(t||0)+(C?x:0),pipeline:l})),Z.uuid===(null===_||void 0===_?void 0:_.uuid)&&S]})}},83641:function(e,n,t){"use strict";t.d(n,{I7:function(){return i},IB:function(){return c},VV:function(){return r},_7:function(){return s},rn:function(){return a}});var i,l=t(41143),r="datetime",s="code",a=l.V;!function(e){e.SECOND="second",e.MINUTE="minute",e.HOUR="hour",e.DAY="day",e.WEEK="week",e.MONTH="month",e.YEAR="year",e.CUSTOM="custom"}(i||(i={}));var c=[i.MINUTE,i.HOUR,i.DAY,i.WEEK,i.MONTH,i.YEAR,i.CUSTOM]},51532:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return ue}});var i=t(75582),l=t(77837),r=t(82394),s=t(38860),a=t.n(s),c=t(82684),u=t(69864),o=t(34376),d=t(83641),p=t(71180),f=t(15338),v=t(55485),b=t(85854),h=t(55072),m=t(75457),j=t(53943),x=t(44265),Z=t(83784),g=t(44085),P=t(38276),_=t(4190),k=t(75499),y=t(30160),O=t(35686),I=t(8955),w=t(72473),E=t(74395),D=t(70515),S=t(28795),C=t(81728),M=t(3917),T=t(8916),N=t(81655),L=t(16488),F=t(15610),A=t(42122),R=t(50178),U=t(72619),V=t(3314),B=t(69419),H=t(70320),z=t(28598);function Y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function K(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?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}var X=function(e){var n=e.backfill,t=e.errors,l=e.fetchBackfill,r=e.pipeline,s=e.setErrors,a=e.variables,Y=(0,R.Ct)(),X=(0,H.q)(),G=(0,o.useRouter)(),W=n||{},q=W.block_uuid,Q=W.end_datetime,J=W.id,$=W.interval_type,ee=W.interval_units,ne=W.name,te=W.pipeline_run_dates,ie=W.start_datetime,le=W.status,re=W.total_run_count,se=W.variables,ae=void 0===se?{}:se,ce=r.uuid,ue=(0,B.iV)(),oe={_limit:40,_offset:40*(null!==ue&&void 0!==ue&&ue.page?ue.page:0)};null!==ue&&void 0!==ue&&ue.status&&(oe.status=ue.status);var de=O.ZP.pipeline_runs.list(K(K({},oe),{},{backfill_id:J}),{refreshInterval:3e3,revalidateOnFocus:!0},{pauseFetch:!J}),pe=de.data,fe=de.mutate,ve=!(ie&&Q&&$&&ee),be=!le,he=(0,c.useMemo)((function(){return(be?te:null===pe||void 0===pe?void 0:pe.pipeline_runs)||[]}),[pe,te,be]),me=(0,c.useMemo)((function(){var e;return(null===pe||void 0===pe||null===(e=pe.metadata)||void 0===e?void 0:e.count)||[]}),[pe]),je=(0,c.useState)(null),xe=je[0],Ze=je[1],ge=(0,c.useMemo)((function(){var e=null!==ue&&void 0!==ue&&ue.page?ue.page:0;return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(j.Z,{disableRowSelect:be,emptyMessage:null!==ue&&void 0!==ue&&ue.status?"No runs available":'No runs available. Please complete backfill configuration by clicking "Edit backfill" above.',fetchPipelineRuns:fe,onClickRow:function(e){return Ze((function(n){var t=he[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:he,selectedRun:xe,setErrors:s,setSelectedRun:Ze}),(0,z.jsx)(P.Z,{p:2,children:(0,z.jsx)(h.ZP,{maxPages:9,onUpdate:function(e){var n=Number(e),t=K(K({},ue),{},{page:n>=0?n:0});G.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(ce,"/backfills/").concat(J,"?").concat((0,B.uM)(t)))},page:Number(e),totalPages:Math.ceil(me/40)})})]})}),[fe,J,he,ce,ue,G,xe,s,be,me]),Pe=(0,c.useState)(I.G7[0]),_e=Pe[0],ke=Pe[1],ye=(0,u.Db)(O.ZP.backfills.useUpdate(J),{onSuccess:function(e){return(0,U.wD)(e,{callback:function(){l(),fe()},onErrorCallback:function(e,n){return s({errors:n,response:e})}})}}),Oe=(0,i.Z)(ye,2),Ie=Oe[0],we=Oe[1].isLoading,Ee=(0,c.useMemo)((function(){return!!le&&(d.rn.CANCELLED!==le&&d.rn.FAILED!==le)}),[le]),De=(0,c.useMemo)((function(){return le&&d.rn.CANCELLED!==le&&d.rn.FAILED!==le&&d.rn.INITIAL!==le&&d.rn.RUNNING!==le}),[le]),Se=(0,c.useMemo)((function(){var e={default:!0,size:1.5*D.iI},n=[[(0,z.jsxs)(v.ZP,{alignItems:"center",children:[(0,z.jsx)(w.VW,K({},e)),(0,z.jsx)(P.Z,{mr:1}),(0,z.jsx)(y.ZP,{default:!0,children:"Backfill type"})]},"backfill_type_label"),(0,z.jsx)(y.ZP,{monospace:!0,children:q?d._7:d.VV},"backfill_type")],[(0,z.jsxs)(v.ZP,{alignItems:"center",children:[(0,z.jsx)(w.rs,K({},e)),(0,z.jsx)(P.Z,{mr:1}),(0,z.jsx)(y.ZP,{default:!0,children:"Status"})]},"backfill_status_label"),(0,c.createElement)(y.ZP,K(K({},(0,N.NC)(le)),{},{key:"backfill_status"}),le||"inactive")]];return q||n.push.apply(n,[[(0,z.jsxs)(v.ZP,{alignItems:"center",children:[(0,z.jsx)(w.aw,K({},e)),(0,z.jsx)(P.Z,{mr:1}),(0,z.jsx)(y.ZP,{default:!0,children:"Start date and time"})]},"backfill_start_date_label"),(0,z.jsx)(y.ZP,{monospace:!0,small:!0,children:X?(0,M.XG)(ie,X):(0,L.Vx)(ie)},"backfill_start_date")],[(0,z.jsxs)(v.ZP,{alignItems:"center",children:[(0,z.jsx)(w.aw,K({},e)),(0,z.jsx)(P.Z,{mr:1}),(0,z.jsx)(y.ZP,{default:!0,children:"End date and time"})]},"backfill_end_date_label"),(0,z.jsx)(y.ZP,{monospace:!0,small:!0,children:X?(0,M.XG)(Q,X):(0,L.Vx)(Q)},"backfill_end_date")],[(0,z.jsxs)(v.ZP,{alignItems:"center",children:[(0,z.jsx)(w.Pf,K({},e)),(0,z.jsx)(P.Z,{mr:1}),(0,z.jsx)(y.ZP,{default:!0,children:"Interval type"})]},"interval_type_label"),(0,z.jsx)(y.ZP,{monospace:!0,children:$&&(0,C.kC)($)},"interval_type")],[(0,z.jsxs)(v.ZP,{alignItems:"center",children:[(0,z.jsx)(w.Pf,K({},e)),(0,z.jsx)(P.Z,{mr:1}),(0,z.jsx)(y.ZP,{default:!0,children:"Interval units"})]},"interval_units_label"),(0,z.jsx)(y.ZP,{monospace:!0,children:ee},"interval_units")],[(0,z.jsxs)(v.ZP,{alignItems:"center",children:[(0,z.jsx)(w.qZ,K({},e)),(0,z.jsx)(P.Z,{mr:1}),(0,z.jsx)(y.ZP,{default:!0,children:"Total runs"})]},"total_runs_label"),(0,z.jsx)(y.ZP,{monospace:!0,children:re},"total_runs")]]),(0,z.jsx)(k.Z,{columnFlex:[null,1],rows:n})}),[q,X,Q,$,ee,ie,le,re]),Ce=(0,c.useMemo)((function(){return ae||{}}),[ae]),Me=(0,c.useMemo)((function(){var e=(0,T.wx)(a,(function(e){return e.uuid===Z.C}))||[];return(0,A.Qr)(Ce)||Object.entries(Ce).forEach((function(n){var t=(0,i.Z)(n,2),l=t[0],r=t[1],s=e.findIndex((function(e){return(null===e||void 0===e?void 0:e.uuid)===l}));-1!==s?e.splice(s,1,{uuid:l,value:(0,T.FS)(r)}):e.push({uuid:l,value:(0,T.FS)(r)})})),"undefined"!==typeof e&&null!==e&&void 0!==e&&e.length?(0,z.jsx)(k.Z,{columnFlex:[null,1],rows:e.map((function(e){var n=e.uuid,t=e.value;return[(0,z.jsx)(y.ZP,{default:!0,monospace:!0,small:!0,children:n},"settings_variable_label_".concat(n)),(0,z.jsx)(y.ZP,{monospace:!0,small:!0,children:t},"settings_variable_".concat(n))]}))}):null}),[Ce,a]);return(0,z.jsx)(z.Fragment,{children:(0,z.jsxs)(m.Z,{afterHidden:!xe,before:(0,z.jsxs)(E.M,{children:[(0,z.jsxs)(P.Z,{mb:D.HN,pt:D.cd,px:D.cd,children:[(0,z.jsx)(P.Z,{mb:D.cd,children:(0,z.jsx)(w.yg,{size:5*D.iI})}),(0,z.jsx)(b.Z,{children:ne})]}),(0,z.jsx)(P.Z,{px:D.cd,children:(0,z.jsx)(b.Z,{level:5,children:"Settings"})}),(0,z.jsx)(f.Z,{light:!0,mt:1,short:!0}),Se,Me&&(0,z.jsxs)(P.Z,{my:D.HN,children:[(0,z.jsx)(P.Z,{px:D.cd,children:(0,z.jsx)(b.Z,{level:5,children:"Runtime variables"})}),(0,z.jsx)(f.Z,{light:!0,mt:1,short:!0}),Me]})]}),beforeWidth:34*D.iI,breadcrumbs:[{label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(ce,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{label:function(){return ne},linkProps:{as:"/pipelines/".concat(ce,"/backfills/").concat(J),href:"/pipelines/[pipeline]/backfills/[...slug]"}}],buildSidekick:function(e){return(0,I.ZP)(K(K({},e),{},{selectedRun:xe,selectedTab:_e,setSelectedTab:ke}))},errors:t,pageName:S.M.BACKFILLS,pipeline:r,setErrors:s,subheader:(0,z.jsxs)(v.ZP,{alignItems:"center",children:[!De&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(p.ZP,{beforeIcon:Ee?(0,z.jsx)(w.dz,{size:2*D.iI}):(0,z.jsx)(w.Py,{inverted:!(d.rn.CANCELLED===le||d.rn.FAILED===le),size:2*D.iI}),danger:Ee,disabled:ve,loading:we,onClick:function(e){(0,V.j)(e),Ie({backfill:{status:Ee?d.rn.CANCELLED:d.rn.INITIAL}})},outline:!0,success:!Ee&&!(d.rn.CANCELLED===le||d.rn.FAILED===le)&&!ve,children:Ee?"Cancel backfill":d.rn.CANCELLED===le||d.rn.FAILED===le?"Retry backfill":"Start backfill"}),(0,z.jsx)(P.Z,{mr:D.cd})]}),!Y&&(0,z.jsxs)(z.Fragment,{children:[le===x.VO.COMPLETED?(0,z.jsx)(y.ZP,{bold:!0,default:!0,large:!0,children:"Filter runs by status:"}):(0,z.jsx)(p.ZP,{linkProps:{as:"/pipelines/".concat(ce,"/backfills/").concat(J,"/edit"),href:"/pipelines/[pipeline]/backfills/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Edit backfill"}),(0,z.jsx)(P.Z,{mr:D.cd})]}),!be&&(0,z.jsxs)(g.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?G.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(ce,"/backfills/").concat(J)):(0,F.u7)({page:0,status:e.target.value})},paddingRight:4*D.iI,placeholder:"Select run status",value:(null===ue||void 0===ue?void 0:ue.status)||"all",children:[(0,z.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),x.IK.map((function(e){return(0,z.jsx)("option",{value:e,children:x.Do[e]},e)}))]})]}),title:function(){return ne},uuid:"backfill/detail",children:[(0,z.jsx)(P.Z,{mt:D.cd,px:D.cd,children:(0,z.jsx)(b.Z,{level:5,children:"Runs for this backfill"})}),(0,z.jsx)(f.Z,{light:!0,mt:D.cd,short:!0}),pe?ge:(0,z.jsx)(P.Z,{m:2,children:(0,z.jsx)(_.Z,{inverted:!0})})]})})},G=t(14805),W=t(50724),q=t(97618),Q=t(37899),J=t(17488),$=[{label:function(){return"Date and time window"},description:function(){return"Backfill between a date and time range."},uuid:d.VV}],ee=t(88785),ne=t(79500);function te(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function ie(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?te(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):te(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var le=function(e){var n=e.backfill,t=e.errors,l=e.fetchBackfill,r=e.pipeline,s=e.setErrors,a=e.variables,h=(0,o.useRouter)(),j=(0,H.q)(),x=(0,c.useState)(),Z=x[0],_=x[1],I=Z||{},E=I.block_uuid,M=I.id,N=I.interval_type,F=I.interval_units,R=I.name,V=r.uuid,B=(0,c.useMemo)((function(){return(0,A.Qr)((null===n||void 0===n?void 0:n.variables)||{})?(0,T.Tt)(a)||{}:(0,A.Xc)(n.variables,(function(e){return(0,T.FS)(e)}))}),[null===n||void 0===n?void 0:n.variables,a]),Y=(0,c.useState)(!1),K=Y[0],X=Y[1],te=(0,c.useState)(B),le=te[0],re=te[1],se=(0,c.useState)(E?d._7:d.VV),ae=se[0],ce=se[1],ue=(0,c.useState)(!1),oe=ue[0],de=ue[1],pe=(0,c.useState)(!1),fe=pe[0],ve=pe[1],be=(0,c.useState)(null),he=be[0],me=be[1],je=(0,c.useState)(null),xe=je[0],Ze=je[1],ge=(0,c.useState)({hour:"00",minute:"00"}),Pe=ge[0],_e=ge[1],ke=(0,c.useState)({hour:"00",minute:"00"}),ye=ke[0],Oe=ke[1];(0,c.useEffect)((function(){if(n){_(n);var e=n.start_datetime;if(e){var t=(0,ne.a)(e,{localTimezone:j});Ze(null===t||void 0===t?void 0:t.date),Oe(t.time)}var i=n.end_datetime;if(i){var l=(0,ne.a)(i,{localTimezone:j});me(null===l||void 0===l?void 0:l.date),_e(null===l||void 0===l?void 0:l.time)}}}),[j,n]);var Ie=(0,c.useMemo)((function(){var e=[[(0,z.jsxs)(v.ZP,{alignItems:"center",children:[(0,z.jsx)(w.KJ,{default:!0}),(0,z.jsx)(P.Z,{mr:1}),(0,z.jsx)(y.ZP,{default:!0,children:"Backfill name"})]},"model_name_detail"),(0,z.jsx)(J.Z,{monospace:!0,onChange:function(e){e.preventDefault(),_((function(n){return ie(ie({},n),{},{name:e.target.value})}))},placeholder:"Name this backfill",value:R},"model_name_input_detail")]];return d.VV===ae&&e.push.apply(e,[[(0,z.jsxs)(v.ZP,{alignItems:"center",children:[(0,z.jsx)(w.aw,{default:!0}),(0,z.jsx)(P.Z,{mr:1}),(0,z.jsx)(y.ZP,{default:!0,children:"Start date and time"})]},"start_time"),(0,z.jsxs)("div",{style:{minHeight:"".concat(5.75*D.iI,"px")},children:[!oe&&(0,z.jsx)(J.Z,{monospace:!0,onClick:function(){return de((function(e){return!e}))},onFocus:function(){return de(!0)},placeholder:"YYYY-MM-DD HH:MM",value:xe?(0,L.XM)(xe,ye,{localTimezone:j}):""}),(0,z.jsx)("div",{style:{width:"400px"},children:(0,z.jsx)(W.Z,{disableEscape:!0,onClickOutside:function(){return de(!1)},open:oe,style:{position:"relative"},children:(0,z.jsx)(G.Z,{localTime:j,selectedDate:xe,selectedTime:ye,setSelectedDate:Ze,setSelectedTime:Oe,topPosition:!0})})})]},"start_time_input")],[(0,z.jsxs)(v.ZP,{alignItems:"center",children:[(0,z.jsx)(w.aw,{default:!0}),(0,z.jsx)(P.Z,{mr:1}),(0,z.jsx)(y.ZP,{default:!0,children:"End date and time"})]},"end_time"),(0,z.jsxs)("div",{style:{minHeight:"".concat(5.75*D.iI,"px")},children:[!fe&&(0,z.jsx)(J.Z,{monospace:!0,onClick:function(){return ve((function(e){return!e}))},onFocus:function(){return ve(!0)},placeholder:"YYYY-MM-DD HH:MM",value:he?(0,L.XM)(he,Pe,{localTimezone:j}):""}),(0,z.jsx)("div",{style:{width:"400px"},children:(0,z.jsx)(W.Z,{disableEscape:!0,onClickOutside:function(){return ve(!1)},open:fe,style:{position:"relative"},children:(0,z.jsx)(G.Z,{localTime:j,selectedDate:he,selectedTime:Pe,setSelectedDate:me,setSelectedTime:_e,topPosition:!0})})})]},"end_time_input")],[(0,z.jsxs)(v.ZP,{alignItems:"center",children:[(0,z.jsx)(w.Pf,{default:!0}),(0,z.jsx)(P.Z,{mr:1}),(0,z.jsx)(y.ZP,{default:!0,children:"Interval type"})]},"interval_type"),(0,z.jsx)(g.Z,{monospace:!0,onChange:function(e){e.preventDefault(),_((function(n){return ie(ie({},n),{},{interval_type:e.target.value})}))},placeholder:"Time spacing between each backfill",value:N,children:d.IB.map((function(e){return(0,z.jsx)("option",{value:e,children:(0,C.kC)(e)},e)}))},"interval_type_input")],[(0,z.jsxs)(v.ZP,{alignItems:"center",children:[(0,z.jsx)(w.Pf,{default:!0}),(0,z.jsx)(P.Z,{mr:1}),(0,z.jsx)(y.ZP,{default:!0,children:"Interval units"})]},"interval_units"),(0,z.jsx)(J.Z,{disabled:!N,monospace:!0,onChange:function(e){e.preventDefault(),_((function(n){return ie(ie({},n),{},{interval_units:e.target.value})}))},placeholder:N?"Number of ".concat(N).concat(N!==d.I7.CUSTOM?"s":""," between each backfill"):"Interval type is required",type:"number",value:F},"interval_unit_input")]]),(0,A.Qr)(B)||e.push([(0,z.jsxs)(v.ZP,{alignItems:"center",children:[(0,z.jsx)(w.LO,{default:!0}),(0,z.jsx)(P.Z,{mr:1}),(0,z.jsx)(y.ZP,{default:!0,children:"Runtime variables"})]},"overwrite_runtime_variables"),(0,z.jsx)(Q.Z,{borderless:!0,compact:!0,enableVariablesOverwrite:K,runtimeVariables:le,setEnableVariablesOverwrite:X,setRuntimeVariables:re},"overwrite_runtime_variables_table")]),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(P.Z,{mb:2,px:D.cd,children:(0,z.jsx)(b.Z,{children:"Settings"})}),(0,z.jsx)(f.Z,{light:!0,short:!0}),(0,z.jsx)(k.Z,{columnFlex:[null,1],rows:e})]})}),[he,xe,j,K,N,F,R,le,B,ae,oe,fe,Pe,ye]),we=(0,u.Db)(O.ZP.backfills.useUpdate(M),{onSuccess:function(e){return(0,U.wD)(e,{callback:function(){l(),h.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(V,"/backfills/").concat(M))},onErrorCallback:function(e,n){return s({errors:n,response:e})}})}}),Ee=(0,i.Z)(we,2),De=Ee[0],Se=Ee[1].isLoading,Ce=(0,c.useCallback)((function(){var e=ie(ie({},(0,A.GL)(Z,["name"])),{},{end_datetime:null,interval_type:null,interval_units:null,start_datetime:null,variables:K?(0,T.e7)(le):{}});return d._7===ae||(e.interval_type=N,e.interval_units=F,e.end_datetime=he&&null!==Pe&&void 0!==Pe&&Pe.hour&&null!==Pe&&void 0!==Pe&&Pe.minute?(0,L.XM)(he,Pe,{convertToUtc:j,includeSeconds:!0,localTimezone:j}):null,e.start_datetime=xe&&null!==ye&&void 0!==ye&&ye.hour&&null!==ye&&void 0!==ye&&ye.minute?(0,L.XM)(xe,ye,{convertToUtc:j,includeSeconds:!0,localTimezone:j}):null),De({backfill:e})}),[he,xe,j,K,N,F,Z,le,ae,Pe,ye,De]),Me=(0,c.useMemo)((function(){return d._7===ae?!E:!(he&&xe&&N&&F)}),[E,he,xe,N,F,ae]);return(0,z.jsxs)(m.Z,{breadcrumbs:[{label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(V,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{label:function(){return null===Z||void 0===Z?void 0:Z.name},linkProps:{as:"/pipelines/".concat(V,"/backfills/").concat(M),href:"/pipelines/[pipeline]/backfills/[...slug]"}}],errors:t,pageName:S.M.BACKFILLS,pipeline:r,setErrors:s,subheader:(0,z.jsxs)(v.ZP,{alignItems:"center",children:[(0,z.jsx)(p.ZP,{disabled:Me,loading:Se,onClick:Ce,outline:!0,primary:!0,children:"Save changes"}),(0,z.jsx)(P.Z,{mr:1}),(0,z.jsx)(p.ZP,{linkProps:{href:"/pipelines/[pipeline]/backfills/[...slug]",as:"/pipelines/".concat(V,"/backfills/").concat(M)},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel"})]}),title:function(){return"Edit ".concat(null===Z||void 0===Z?void 0:Z.name)},uuid:"backfill/edit",children:[(0,z.jsxs)(P.Z,{p:D.cd,children:[(0,z.jsxs)(P.Z,{mb:2,children:[(0,z.jsx)(b.Z,{children:"Backfill type"}),(0,z.jsx)(y.ZP,{muted:!0,children:"How would you like this pipeline to be backfilled?"})]}),(0,z.jsx)(v.ZP,{children:$.map((function(e){var n=e.label,t=e.description,i=e.uuid,l=ae===i,r=ae&&!l;return(0,z.jsx)(p.ZP,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){ce(i)},children:(0,z.jsx)(ee.U,{selected:l,children:(0,z.jsxs)(v.ZP,{alignItems:"center",children:[(0,z.jsx)(q.Z,{children:(0,z.jsx)("input",{checked:l,type:"radio"})}),(0,z.jsx)(P.Z,{mr:D.cd}),(0,z.jsxs)(q.Z,{alignItems:"flex-start",flexDirection:"column",children:[(0,z.jsx)(b.Z,{bold:!0,default:!l&&!r,level:5,muted:!l&&r,children:n()}),(0,z.jsx)(y.ZP,{default:!l&&!r,leftAligned:!0,muted:r,children:t()})]})]})})},i)}))})]}),(0,z.jsx)(P.Z,{mt:5,children:Ie})]})},re=t(93808);function se(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function ae(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?se(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):se(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ce(e){var n=e.backfillId,t=e.pipelineUUID,i=e.subpath,l=(0,c.useState)(null),r=l[0],s=l[1],a=O.ZP.variables.pipelines.list(t,{},{revalidateOnFocus:!1}).data,u=(0,c.useMemo)((function(){return null===a||void 0===a?void 0:a.variables}),[a]),o=O.ZP.pipelines.detail(t,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,d=(0,c.useMemo)((function(){return ae(ae({},null===o||void 0===o?void 0:o.pipeline),{},{uuid:t})}),[o,t]),p=O.ZP.backfills.detail(n,{include_preview_runs:!0}),f=p.data,v=p.mutate,b=(0,c.useMemo)((function(){return null===f||void 0===f?void 0:f.backfill}),[f]);return"edit"===i?(0,z.jsx)(le,{backfill:b,errors:r,fetchBackfill:v,pipeline:d,setErrors:s,variables:u}):(0,z.jsx)(X,{backfill:b,errors:r,fetchBackfill:v,pipeline:d,setErrors:s,variables:u})}ce.getInitialProps=function(){var e=(0,l.Z)(a().mark((function e(n){var t,l,r,s,c,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.query,l=t.pipeline,r=t.slug,!Array.isArray(r)){e.next=4;break}return s=(0,i.Z)(r,2),c=s[0],u=s[1],e.abrupt("return",{backfillId:c,pipelineUUID:l,subpath:u});case 4:return e.abrupt("return",{pipelineUUID:l});case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var ue=(0,re.Z)(ce)},53664:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/backfills/[...slug]",function(){return t(51532)}])}},function(e){e.O(0,[2678,1154,844,5820,1124,9161,4495,4267,600,8487,8264,7858,5499,5457,4366,722,3943,845,9774,2888,179],(function(){return n=53664,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|