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
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8146],{58146:function(e,n,t){var i=t(21831),r=t(75582),s=t(82394),l=t(21764),c=t(82684),o=t(69864),d=t(34376),a=t(71180),u=t(70652),h=t(15338),f=t(97618),m=t(55485),x=t(85854),E=t(65956),Z=t(36288),p=t(44085),j=t(28274),_=t(38276),I=t(75499),g=t(30160),v=t(35576),A=t(17488),L=t(69650),S=t(35686),b=t(8193),D=t(72473),P=t(70515),T=t(24755),R=t(48277),O=t(81728),C=t(3917),N=t(76417),y=t(86735),B=t(42122),k=t(72619),w=t(3314),W=t(28598);function H(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function M(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?H(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):H(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var U,Y=2*P.iI;!function(e){e.ROLES="Roles",e.USERS="Users"}(U||(U={})),n.Z=function(e){var n,t=e.contained,s=e.onCancel,H=e.slug,V=(0,d.useRouter)(),Q=(0,c.useState)(!0),F=Q[0],K=Q[1],G=(0,c.useState)(null),z=G[0],q=G[1],$=(0,c.useState)({}),J=$[0],X=$[1],ee=(0,c.useState)(null),ne=ee[0],te=ee[1],ie=(0,c.useCallback)((function(e,n,t){te(M(M({},e),{},{rolesMapping:(0,y.HK)(n||[],(function(e){return e.id})),usersMapping:(0,y.HK)(t||[],(function(e){return e.id}))}))}),[te]),re=(0,c.useCallback)((function(e){X((function(n){return M(M({},n),e)})),te((function(n){return M(M({},n),e)}))}),[X,te]),se=S.ZP.permissions.detail(H,{},{revalidateOnFocus:!1}).data,le=(0,c.useMemo)((function(){return null===se||void 0===se?void 0:se.permission}),[se]);(0,c.useEffect)((function(){le&&ie(le,null===le||void 0===le?void 0:le.roles,null===le||void 0===le?void 0:le.users)}),[ie,le]);var ce=S.ZP.permissions.list({_format:"with_only_entity_options",only_entity_options:!0},{},{pauseFetch:!!le}).data,oe=(0,c.useMemo)((function(){var e;return null===ce||void 0===ce||null===(e=ce.permissions)||void 0===e?void 0:e[0]}),[ce]),de=(0,c.useMemo)((function(){var e;return(null===(e=le||oe)||void 0===e?void 0:e.entity_names)||[]}),[le,oe]),ae=(0,c.useMemo)((function(){var e;return(null===(e=le||oe)||void 0===e?void 0:e.entity_types)||[]}),[le,oe]),ue=(0,o.Db)(le?S.ZP.permissions.useUpdate(null===le||void 0===le?void 0:le.id):S.ZP.permissions.useCreate(),{onSuccess:function(e){return(0,k.wD)(e,{callback:function(e){var n=e.permission;X({}),ie(n,null===n||void 0===n?void 0:n.roles,null===n||void 0===n?void 0:n.users),le||V.push("/settings/workspace/permissions/".concat(null===n||void 0===n?void 0:n.id)),l.Am.success(le?"Permission successfully updated.":"New permission created successfully.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:"permission-mutate-success-".concat(n.id)})},onErrorCallback:function(e){var n=e.error,t=n.errors,i=n.exception,r=n.message,s=n.type;l.Am.error((null===t||void 0===t?void 0:t.error)||i||r,{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:s})}})}}),he=(0,r.Z)(ue,2),fe=he[0],me=he[1].isLoading,xe=(0,o.Db)(S.ZP.permissions.useDelete(null===le||void 0===le?void 0:le.id),{onSuccess:function(e){return(0,k.wD)(e,{callback:function(){V.push("/settings/workspace/permissions"),l.Am.success("Permission successfully delete.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:"permission-delete-success-".concat(null===le||void 0===le?void 0:le.id)})},onErrorCallback:function(e){var n=e.error,t=n.errors,i=n.exception,r=n.message,s=n.type;l.Am.error((null===t||void 0===t?void 0:t.error)||i||r,{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:s})}})}}),Ee=(0,r.Z)(xe,2),Ze=Ee[0],pe=Ee[1].isLoading,je=(0,c.useMemo)((function(){return(null===ne||void 0===ne?void 0:ne.access)||0}),[ne]),_e=(0,c.useCallback)((function(e){return e.map((function(e,n){var t=Z.K4[e],i=Boolean(je&Number(e)),r=(0,R.fD)(je),s=(0,R.fD)(e);return(0,W.jsx)(_.Z,{mt:n>=1?1:0,children:(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsx)(L.Z,{checked:i,compact:!0,onCheck:function(e){return re({access:(0,R.$P)(e(i)?(0,R.vN)(r,s):(0,R.VJ)(r,s))})}}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(g.ZP,{default:!i,children:t})]})},t)}))}),[je,re]),Ie=(0,c.useMemo)((function(){return(null===ne||void 0===ne?void 0:ne.conditions)||[]}),[ne]),ge=(0,c.useMemo)((function(){var e=Z.WG.DISABLE_UNLESS_CONDITIONS,n=(0,R.fD)(je),t=(0,R.fD)(e),r=Boolean(je&Number(e)),s=new Set((0,i.Z)(Ie)),l=s.has(Z.m_.HAS_NOTEBOOK_EDIT_ACCESS),c=s.has(Z.m_.HAS_PIPELINE_EDIT_ACCESS),o=s.has(Z.m_.USER_OWNS_ENTITY),d=r&&l,a=r&&c,u=r&&o;return(0,W.jsxs)(m.ZP,{flexDirection:"column",children:[(0,W.jsx)(_.Z,{mt:1,children:(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsx)(L.Z,{checked:d,compact:!0,onCheck:function(e){var l=n;e(d)?(r||(l=(0,R.vN)(n,t)),s.add(Z.m_.HAS_NOTEBOOK_EDIT_ACCESS)):(c||o||(l=(0,R.VJ)(n,t)),s.delete(Z.m_.HAS_NOTEBOOK_EDIT_ACCESS)),re({access:(0,R.$P)(l),conditions:(0,i.Z)(s)})}}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(g.ZP,{default:!d,children:Z.ND[Z.m_.HAS_NOTEBOOK_EDIT_ACCESS]})]})}),(0,W.jsx)(_.Z,{mt:1,children:(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsx)(L.Z,{checked:a,compact:!0,onCheck:function(e){var c=n;e(a)?(r||(c=(0,R.vN)(n,t)),s.add(Z.m_.HAS_PIPELINE_EDIT_ACCESS)):(l||o||(c=(0,R.VJ)(n,t)),s.delete(Z.m_.HAS_PIPELINE_EDIT_ACCESS)),re({access:(0,R.$P)(c),conditions:(0,i.Z)(s)})}}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(g.ZP,{default:!a,children:Z.ND[Z.m_.HAS_PIPELINE_EDIT_ACCESS]})]})}),(0,W.jsx)(_.Z,{mt:1,children:(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsx)(L.Z,{checked:u,compact:!0,onCheck:function(e){var c=n;e(u)?(r||(c=(0,R.vN)(n,t)),s.add(Z.m_.USER_OWNS_ENTITY)):(l||l||(c=(0,R.VJ)(n,t)),s.delete(Z.m_.USER_OWNS_ENTITY)),re({access:(0,R.$P)(c),conditions:(0,i.Z)(s)})}}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(g.ZP,{default:!u,children:Z.ND[Z.m_.USER_OWNS_ENTITY]})]})})]})}),[je,Ie,re]),ve=S.ZP.roles.list({},{},{pauseFetch:!le}).data,Ae=(0,c.useMemo)((function(){return(0,y.YC)((null===ve||void 0===ve?void 0:ve.roles)||[],"name")}),[ve]),Le=(0,c.useMemo)((function(){return(null===ne||void 0===ne?void 0:ne.rolesMapping)||{}}),[ne]),Se=(0,c.useMemo)((function(){return(0,y.YC)(Object.values(Le),"name")}),[Le]),be=S.ZP.users.list({},{},{pauseFetch:!le}).data,De=((0,c.useMemo)((function(){return(0,y.YC)((null===be||void 0===be?void 0:be.users)||[],(function(e){return(0,N.s)(e)}))}),[be]),(0,c.useMemo)((function(){return(null===ne||void 0===ne?void 0:ne.usersMapping)||{}}),[ne])),Pe=(0,c.useMemo)((function(){return(0,y.YC)(Object.values(De),(function(e){return(0,N.s)(e)}))}),[De]),Te=(0,c.useMemo)((function(){return(null===Se||void 0===Se?void 0:Se.length)>=1}),[Se]),Re=(0,c.useMemo)((function(){return(0,W.jsx)(a.ZP,{beforeIcon:(0,W.jsx)(D.mm,{}),compact:!0,onClick:function(){q(U.ROLES),K(!1)},primary:!Te,secondary:Te,small:!0,children:"Add roles"})}),[Te,q,K]),Oe=(0,c.useMemo)((function(){return(null===Pe||void 0===Pe?void 0:Pe.length)>=1}),[Pe]),Ce=(0,c.useCallback)((function(e,n){return(0,W.jsx)(I.Z,{columnFlex:[null,1],columns:[{label:function(){var n=null===e||void 0===e?void 0:e.every((function(e){var n=e.id;return null===Le||void 0===Le?void 0:Le[n]}));return(0,W.jsx)(u.Z,{checked:n,onClick:function(t){(0,w.j)(t),re(n?{rolesMapping:{}}:{rolesMapping:(0,y.HK)(e,(function(e){return e.id}))})}},"checkbox")},uuid:"actions"},{uuid:"Role"}],onClickRow:n?function(n){var t=e[n];t&&window.open("/settings/workspace/roles/".concat(null===t||void 0===t?void 0:t.id),"_blank").focus()}:null,rows:null===e||void 0===e?void 0:e.map((function(e){var n=e.name,t=e.id,i=!(null===Le||void 0===Le||!Le[t]);return[(0,W.jsx)(u.Z,{checked:i,onClick:function(n){(0,w.j)(n);var r=M({},Le);i?null===r||void 0===r||delete r[t]:r[t]=e,re({rolesMapping:r})}},"checkbox"),(0,W.jsx)(g.ZP,{monospace:!0,children:n},"name")]})),uuid:"roles"})}),[Le,re]),Ne=(0,c.useCallback)((function(e,n){return(0,W.jsx)(I.Z,{columnFlex:[1,1,1],columns:[{uuid:"Username"},{uuid:"First name"},{uuid:"Last name"}],onClickRow:n?function(n){var t=e[n];t&&window.open("/settings/workspace/users/".concat(null===t||void 0===t?void 0:t.id),"_blank").focus()}:null,rows:null===e||void 0===e?void 0:e.map((function(e){var n=e.first_name,t=e.last_name,i=e.username;return[(0,W.jsx)(g.ZP,{children:i},"username"),(0,W.jsx)(g.ZP,{default:!0,children:n},"firstName"),(0,W.jsx)(g.ZP,{default:!0,children:t},"lastName")]})),uuid:"users"})}),[De,re]),ye=(0,c.useMemo)((function(){return Ce(Ae)}),[Ce,Ae]),Be=(0,c.useMemo)((function(){return Ce(Se,!0)}),[Ce,Se]),ke=(0,c.useMemo)((function(){return Ne(Pe,!0)}),[Ne,Pe]),we=(0,W.jsxs)(b.N,{children:[(0,W.jsxs)(E.Z,{noPadding:!0,children:[(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsx)(x.Z,{level:4,children:le?"Permission ".concat(null===le||void 0===le?void 0:le.id):"New permission"})}),(0,W.jsx)(h.Z,{light:!0}),(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsxs)(g.ZP,{danger:"entity_name"in J&&!(null!==ne&&void 0!==ne&&ne.entity_name),default:!0,large:!0,children:["Entity ","entity_name"in J&&!(null!==ne&&void 0!==ne&&ne.entity_name)&&(0,W.jsx)(g.ZP,{danger:!0,inline:!0,large:!0,children:"is required"})]}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(f.Z,{flex:1,justifyContent:"flex-end",children:(0,W.jsx)(p.Z,{afterIconSize:Y,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,onChange:function(e){return re({entity_name:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"Select an entity",value:(null===ne||void 0===ne?void 0:ne.entity_name)||"",children:de.map((function(e){return(0,W.jsx)("option",{value:e,children:(0,O.j3)(e)},e)}))})})]})}),(0,W.jsx)(h.Z,{light:!0}),(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Entity subtype"}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(f.Z,{flex:1,justifyContent:"flex-end",children:(0,W.jsxs)(p.Z,{afterIconSize:Y,alignRight:!0,autoComplete:"off",large:!0,monospace:!0,noBackground:!0,noBorder:!0,onChange:function(e){return re({entity_type:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"Select an entity subtype",value:(null===ne||void 0===ne?void 0:ne.entity_type)||"",children:[(0,W.jsx)("option",{value:""}),ae.map((function(e){return(0,W.jsx)("option",{value:e,children:e},e)}))]})})]})}),(0,W.jsx)(h.Z,{light:!0}),(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Enity UUID"}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsx)(A.Z,{afterIcon:(0,W.jsx)(D.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:Y,alignRight:!0,autoComplete:"off",large:!0,monospace:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return re({entity_id:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. pipeline_uuid",value:(null===ne||void 0===ne?void 0:ne.entity_id)||""})})]})})]}),(0,W.jsx)(_.Z,{mb:P.HN}),(0,W.jsxs)(E.Z,{noPadding:!0,children:[(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsx)(x.Z,{level:4,children:"Access"})}),(0,W.jsx)(h.Z,{light:!0}),(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(_.Z,{p:P.cd,children:[(0,W.jsx)(_.Z,{mb:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Groups"})}),_e(Z.G9)]})}),(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(_.Z,{p:P.cd,children:[(0,W.jsx)(_.Z,{mb:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Special conditions"})}),ge]})})]}),(0,W.jsx)(h.Z,{light:!0}),(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(_.Z,{p:P.cd,children:[(0,W.jsx)(_.Z,{mb:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Operations"})}),_e(Z.Pt)]})}),(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(_.Z,{p:P.cd,children:[(0,W.jsx)(_.Z,{mb:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Disable operations"})}),_e(Z.oO)]})})]}),(0,W.jsx)(h.Z,{light:!0}),(0,W.jsxs)(m.ZP,{alignItems:"flex-start",children:[(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(_.Z,{p:P.cd,children:[(0,W.jsx)(_.Z,{mb:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Read attributes"})}),_e(Z.Fy)]})}),(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(_.Z,{fullWidth:!0,p:P.cd,children:[(0,W.jsx)(_.Z,{mb:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Readable attributes (comma separated)"})}),(0,W.jsx)(v.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return re({read_attributes:e.target.value})},placeholder:"e.g. email",value:(null===ne||void 0===ne?void 0:ne.read_attributes)||""})]})})]}),(0,W.jsx)(h.Z,{light:!0}),(0,W.jsxs)(m.ZP,{alignItems:"flex-start",children:[(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(_.Z,{p:P.cd,children:[(0,W.jsx)(_.Z,{mb:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Write attributes"})}),_e(Z.H1)]})}),(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(_.Z,{fullWidth:!0,p:P.cd,children:[(0,W.jsx)(_.Z,{mb:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Writable attributes (comma separated)"})}),(0,W.jsx)(v.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return re({write_attributes:e.target.value})},placeholder:"e.g. password",value:(null===ne||void 0===ne?void 0:ne.write_attributes)||""})]})})]}),(0,W.jsx)(h.Z,{light:!0}),(0,W.jsxs)(m.ZP,{alignItems:"flex-start",children:[(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(_.Z,{p:P.cd,children:[(0,W.jsx)(_.Z,{mb:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Query parameters"})}),_e(Z.hl)]})}),(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(_.Z,{fullWidth:!0,p:P.cd,children:[(0,W.jsx)(_.Z,{mb:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Parameters that can be queried (comma separated)"})}),(0,W.jsx)(v.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return re({query_attributes:e.target.value})},placeholder:"e.g. include_outputs",value:(null===ne||void 0===ne?void 0:ne.query_attributes)||""})]})})]})]}),(0,W.jsx)(_.Z,{mb:P.HN}),le&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(E.Z,{noPadding:!0,children:[(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsxs)(m.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsx)(x.Z,{level:4,children:"Roles"}),(0,W.jsx)(_.Z,{mr:P.cd}),Te&&(0,W.jsx)(m.ZP,{alignItems:"center",children:Re})]})}),(0,W.jsx)(h.Z,{light:!0}),!Te&&(0,W.jsxs)(_.Z,{p:P.cd,children:[(0,W.jsx)(_.Z,{mb:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,children:"This permission is currently not attached to any role."})}),(0,W.jsx)(m.ZP,{alignItems:"center",children:Re})]}),Te&&(0,W.jsx)(_.Z,{pb:P.Mq,children:Be})]}),(0,W.jsx)(_.Z,{mb:P.HN}),(0,W.jsxs)(E.Z,{noPadding:!0,children:[(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsx)(m.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,W.jsx)(x.Z,{level:4,children:"Users"})})}),(0,W.jsx)(h.Z,{light:!0}),!Oe&&(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,children:"There are currently no users with this permission."})}),Oe&&(0,W.jsx)(_.Z,{pb:P.Mq,children:ke})]}),(0,W.jsx)(_.Z,{mb:P.HN}),(0,W.jsxs)(E.Z,{noPadding:!0,children:[(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsx)(x.Z,{level:4,children:"Metadata"})}),(0,W.jsx)(h.Z,{light:!0}),(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Last updated"}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsxs)(f.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,W.jsx)(g.ZP,{large:!0,monospace:!0,muted:!0,children:(null===ne||void 0===ne?void 0:ne.updated_at)&&(0,C.d$)(null===ne||void 0===ne?void 0:ne.updated_at,{includeSeconds:!0})}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(D.Pf,{muted:!0,size:Y}),(0,W.jsx)(_.Z,{mr:1})]})]})}),(0,W.jsx)(h.Z,{light:!0}),(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Created at"}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsxs)(f.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,W.jsx)(g.ZP,{large:!0,monospace:!0,muted:!0,children:(null===ne||void 0===ne?void 0:ne.created_at)&&(0,C.d$)(null===ne||void 0===ne?void 0:ne.created_at,{includeSeconds:!0})}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(D.Pf,{muted:!0,size:Y}),(0,W.jsx)(_.Z,{mr:1})]})]})}),(0,W.jsx)(h.Z,{light:!0}),(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Created by"}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsxs)(f.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,W.jsx)(g.ZP,{large:!0,monospace:!0,muted:!0,children:(0,N.s)(null===le||void 0===le?void 0:le.user)}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(D.Pf,{muted:!0,size:Y}),(0,W.jsx)(_.Z,{mr:1})]})]})})]}),(0,W.jsx)(_.Z,{mb:P.HN})]}),(0,W.jsxs)(m.ZP,{children:[(0,W.jsx)(a.ZP,{beforeIcon:(0,W.jsx)(D.vc,{}),disabled:!J||!(null!==(n=Object.keys(J))&&void 0!==n&&n.length),loading:me,onClick:function(){return fe({permission:M(M({},(0,B.GL)(ne,["access","conditions","entity_id","entity_name","entity_type","query_attributes","read_attributes","write_attributes"],{include_blanks:!0})),le?{role_ids:Object.keys((null===ne||void 0===ne?void 0:ne.rolesMapping)||{}).map((function(e){return Number(e)}))}:{})})},primary:!0,children:le?"Save changes":"Create new permission"}),s&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(a.ZP,{onClick:function(){return null===s||void 0===s?void 0:s()},secondary:!0,children:"Cancel and go back"})]}),le&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(a.ZP,{beforeIcon:(0,W.jsx)(D.rF,{}),danger:!0,loading:pe,onClick:function(){return Ze()},children:"Delete permission"})]})]})]});return t?we:(0,W.jsx)(j.Z,{after:U.ROLES===z?ye:null,afterHeader:(0,W.jsx)(_.Z,{px:P.cd,children:(0,W.jsx)(g.ZP,{bold:!0,children:z})}),afterHidden:F,afterWidth:60*P.iI,appendBreadcrumbs:!0,breadcrumbs:[{label:function(){return"Permissions"},linkProps:{href:"/settings/workspace/permissions"}},{bold:!0,label:function(){return"Permission ".concat(null===le||void 0===le?void 0:le.id)}}],hideAfterCompletely:!0,setAfterHidden:K,title:null!==le&&void 0!==le&&le.id?"Permission ".concat(null===le||void 0===le?void 0:le.id):"New permission",uuidItemSelected:T.B2.PERMISSIONS,uuidWorkspaceSelected:T.Pl.USER_MANAGEMENT,children:le&&we})}},8193:function(e,n,t){t.d(n,{N:function(){return o},Z:function(){return c}});var i=t(38626),r=t(44897),s=t(42631),l=t(70515),c=2*l.iI,o=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1ck7mzt-0"})(["border-radius:","px;padding:","px;",""],s.n_,l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).codeArea,";\n ")}))},36288:function(e,n,t){t.d(n,{Fy:function(){return m},G9:function(){return a},H1:function(){return x},K4:function(){return o},ND:function(){return d},Pt:function(){return u},WG:function(){return s},hl:function(){return f},m_:function(){return l},oO:function(){return h}});var i,r,s,l,c=t(82394);!function(e){e[e.OWNER=1]="OWNER",e[e.ADMIN=2]="ADMIN",e[e.EDITOR=4]="EDITOR",e[e.VIEWER=8]="VIEWER",e[e.LIST=16]="LIST",e[e.DETAIL=32]="DETAIL",e[e.CREATE=64]="CREATE",e[e.UPDATE=128]="UPDATE",e[e.DELETE=512]="DELETE",e[e.OPERATION_ALL=1024]="OPERATION_ALL",e[e.QUERY=2048]="QUERY",e[e.QUERY_ALL=4096]="QUERY_ALL",e[e.READ=8192]="READ",e[e.READ_ALL=16384]="READ_ALL",e[e.WRITE=32768]="WRITE",e[e.WRITE_ALL=65536]="WRITE_ALL",e[e.ALL=131072]="ALL",e[e.DISABLE_LIST=262144]="DISABLE_LIST",e[e.DISABLE_DETAIL=524288]="DISABLE_DETAIL",e[e.DISABLE_CREATE=1048576]="DISABLE_CREATE",e[e.DISABLE_UPDATE=2097152]="DISABLE_UPDATE",e[e.DISABLE_DELETE=4194304]="DISABLE_DELETE",e[e.DISABLE_OPERATION_ALL=8388608]="DISABLE_OPERATION_ALL",e[e.DISABLE_QUERY=16777216]="DISABLE_QUERY",e[e.DISABLE_QUERY_ALL=33554432]="DISABLE_QUERY_ALL",e[e.DISABLE_READ=67108864]="DISABLE_READ",e[e.DISABLE_READ_ALL=134217728]="DISABLE_READ_ALL",e[e.DISABLE_WRITE=268435456]="DISABLE_WRITE",e[e.DISABLE_WRITE_ALL=536870912]="DISABLE_WRITE_ALL",e[e.DISABLE_UNLESS_CONDITIONS=1073741824]="DISABLE_UNLESS_CONDITIONS"}(s||(s={})),function(e){e.HAS_NOTEBOOK_EDIT_ACCESS="HAS_NOTEBOOK_EDIT_ACCESS",e.HAS_PIPELINE_EDIT_ACCESS="HAS_PIPELINE_EDIT_ACCESS",e.USER_OWNS_ENTITY="USER_OWNS_ENTITY"}(l||(l={}));var o=(i={},(0,c.Z)(i,s.OWNER,"Owner"),(0,c.Z)(i,s.ADMIN,"Admin"),(0,c.Z)(i,s.EDITOR,"Editor"),(0,c.Z)(i,s.VIEWER,"Viewer"),(0,c.Z)(i,s.LIST,"List"),(0,c.Z)(i,s.DETAIL,"Detail"),(0,c.Z)(i,s.CREATE,"Create"),(0,c.Z)(i,s.UPDATE,"Update"),(0,c.Z)(i,s.DELETE,"Delete"),(0,c.Z)(i,s.OPERATION_ALL,"All operations"),(0,c.Z)(i,s.QUERY,"Query"),(0,c.Z)(i,s.QUERY_ALL,"Query all attributes"),(0,c.Z)(i,s.READ,"Read"),(0,c.Z)(i,s.READ_ALL,"Read all attributes"),(0,c.Z)(i,s.WRITE,"Write"),(0,c.Z)(i,s.WRITE_ALL,"Write all attributes"),(0,c.Z)(i,s.ALL,"All"),(0,c.Z)(i,s.DISABLE_LIST,"Disable list"),(0,c.Z)(i,s.DISABLE_DETAIL,"Disable detail"),(0,c.Z)(i,s.DISABLE_CREATE,"Disable create"),(0,c.Z)(i,s.DISABLE_UPDATE,"Disable update"),(0,c.Z)(i,s.DISABLE_DELETE,"Disable delete"),(0,c.Z)(i,s.DISABLE_OPERATION_ALL,"Disable all operations"),(0,c.Z)(i,s.DISABLE_QUERY,"Disable query"),(0,c.Z)(i,s.DISABLE_QUERY_ALL,"Disable all query parameters"),(0,c.Z)(i,s.DISABLE_READ,"Disable read"),(0,c.Z)(i,s.DISABLE_READ_ALL,"Disable all read attributes"),(0,c.Z)(i,s.DISABLE_WRITE,"Disable write"),(0,c.Z)(i,s.DISABLE_WRITE_ALL,"Disable all write attributes"),i),d=(r={},(0,c.Z)(r,l.HAS_NOTEBOOK_EDIT_ACCESS,"Disable unless user has notebook edit access"),(0,c.Z)(r,l.HAS_PIPELINE_EDIT_ACCESS,"Disable unless user has pipeline edit access"),(0,c.Z)(r,l.USER_OWNS_ENTITY,"Disable unless user owns the current entity"),r),a=[s.OWNER,s.ADMIN,s.EDITOR,s.VIEWER,s.ALL],u=[s.LIST,s.DETAIL,s.CREATE,s.UPDATE,s.DELETE,s.OPERATION_ALL],h=[s.DISABLE_LIST,s.DISABLE_DETAIL,s.DISABLE_CREATE,s.DISABLE_UPDATE,s.DISABLE_DELETE,s.DISABLE_OPERATION_ALL],f=[s.QUERY,s.QUERY_ALL,s.DISABLE_QUERY,s.DISABLE_QUERY_ALL],m=[s.READ,s.READ_ALL,s.DISABLE_READ,s.DISABLE_READ_ALL],x=[s.WRITE,s.WRITE_ALL,s.DISABLE_WRITE,s.DISABLE_WRITE_ALL]},65956:function(e,n,t){var i=t(38626),r=t(55485),s=t(38276),l=t(30160),c=t(44897),o=t(42631),d=t(47041),a=t(70515),u=t(28598),h=(0,i.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*a.iI,1.5*a.iI,1.5*a.iI),f=i.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],o.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 "})),m=i.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],o.n_,o.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 ")}),h,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),x=i.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*a.iI,d.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*a.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),E=i.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],o.M8,o.YF,1.75*a.iI);n.Z=function(e){var n=e.borderless,t=e.children,i=e.containerRef,c=e.contentContainerRef,o=e.dark,d=e.footer,a=e.fullHeight,h=void 0===a||a,Z=e.fullWidth,p=void 0===Z||Z,j=e.header,_=e.headerHeight,I=e.headerIcon,g=e.headerPaddingVertical,v=e.headerTitle,A=e.maxHeight,L=e.maxWidth,S=e.minWidth,b=e.noPadding,D=e.overflowVisible,P=e.subtitle,T=e.success;return(0,u.jsxs)(f,{borderless:n,dark:o,fullHeight:h,fullWidth:p,maxHeight:A,maxWidth:L,minWidth:S,overflowVisible:D,ref:i,success:T,children:[(j||v)&&(0,u.jsxs)(m,{headerPaddingVertical:g,height:_,children:[j&&j,v&&(0,u.jsx)(r.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,u.jsxs)(r.ZP,{alignItems:"center",children:[I&&I,(0,u.jsx)(s.Z,{ml:I?1:0,children:(0,u.jsx)(l.ZP,{bold:!0,default:!0,children:v})})]})})]}),(0,u.jsxs)(x,{maxHeight:A,noPadding:b,overflowVisible:D,ref:c,children:[P&&(0,u.jsx)(s.Z,{mb:2,children:(0,u.jsx)(l.ZP,{default:!0,children:P})}),t]}),d&&(0,u.jsx)(E,{children:d})]})}},76417:function(e,n,t){function i(e){return null!==e&&void 0!==e&&e.first_name?[null===e||void 0===e?void 0:e.first_name,null===e||void 0===e?void 0:e.last_name].filter((function(e){return e})).join(" "):null===e||void 0===e?void 0:e.username}t.d(n,{s:function(){return i}})},48277:function(e,n,t){t.d(n,{$P:function(){return d},JI:function(){return s},VJ:function(){return o},fD:function(){return l},uf:function(){return r},vN:function(){return c}});var i=t(75582),r=function(e){var n=String(e).split("."),t=(0,i.Z)(n,2),r=t[0],s=t[1];return"".concat(r.replace(/\B(?=(\d{3})+(?!\d))/g,",")).concat(s?".".concat(s):"")};function s(e){var n=Math.floor(Date.now()/1e3);return e>0?n-e:n}function l(e){return(e>>>0).toString(2)}function c(e,n){return String(BigInt(e)+BigInt(n))}function o(e,n){return String(BigInt(e)-BigInt(n))}function d(e){return parseInt(e,2)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8146],{58146:function(e,n,t){var i=t(21831),r=t(75582),s=t(82394),l=t(21764),c=t(82684),o=t(69864),d=t(34376),a=t(71180),u=t(70652),h=t(15338),f=t(97618),m=t(55485),x=t(85854),E=t(65956),Z=t(36288),p=t(44085),j=t(28274),_=t(38276),I=t(75499),g=t(30160),v=t(35576),A=t(17488),L=t(69650),S=t(35686),b=t(8193),D=t(72473),P=t(70515),T=t(24755),R=t(48277),O=t(81728),C=t(3917),y=t(76417),N=t(86735),B=t(42122),k=t(72619),w=t(3314),W=t(28598);function H(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function M(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?H(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):H(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var U,Y=2*P.iI;!function(e){e.ROLES="Roles",e.USERS="Users"}(U||(U={})),n.Z=function(e){var n,t=e.contained,s=e.onCancel,H=e.slug,V=(0,d.useRouter)(),Q=(0,c.useState)(!0),F=Q[0],K=Q[1],G=(0,c.useState)(null),z=G[0],q=G[1],$=(0,c.useState)({}),J=$[0],X=$[1],ee=(0,c.useState)(null),ne=ee[0],te=ee[1],ie=(0,c.useCallback)((function(e,n,t){te(M(M({},e),{},{rolesMapping:(0,N.HK)(n||[],(function(e){return e.id})),usersMapping:(0,N.HK)(t||[],(function(e){return e.id}))}))}),[te]),re=(0,c.useCallback)((function(e){X((function(n){return M(M({},n),e)})),te((function(n){return M(M({},n),e)}))}),[X,te]),se=S.ZP.permissions.detail(H,{},{revalidateOnFocus:!1}).data,le=(0,c.useMemo)((function(){return null===se||void 0===se?void 0:se.permission}),[se]);(0,c.useEffect)((function(){le&&ie(le,null===le||void 0===le?void 0:le.roles,null===le||void 0===le?void 0:le.users)}),[ie,le]);var ce=S.ZP.permissions.list({_format:"with_only_entity_options",only_entity_options:!0},{},{pauseFetch:!!le}).data,oe=(0,c.useMemo)((function(){var e;return null===ce||void 0===ce||null===(e=ce.permissions)||void 0===e?void 0:e[0]}),[ce]),de=(0,c.useMemo)((function(){var e;return(null===(e=le||oe)||void 0===e?void 0:e.entity_names)||[]}),[le,oe]),ae=(0,c.useMemo)((function(){var e;return(null===(e=le||oe)||void 0===e?void 0:e.entity_types)||[]}),[le,oe]),ue=(0,o.Db)(le?S.ZP.permissions.useUpdate(null===le||void 0===le?void 0:le.id):S.ZP.permissions.useCreate(),{onSuccess:function(e){return(0,k.wD)(e,{callback:function(e){var n=e.permission;X({}),ie(n,null===n||void 0===n?void 0:n.roles,null===n||void 0===n?void 0:n.users),le||V.push("/settings/workspace/permissions/".concat(null===n||void 0===n?void 0:n.id)),l.Am.success(le?"Permission successfully updated.":"New permission created successfully.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:"permission-mutate-success-".concat(n.id)})},onErrorCallback:function(e){var n=e.error,t=n.errors,i=n.exception,r=n.message,s=n.type;l.Am.error((null===t||void 0===t?void 0:t.error)||i||r,{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:s})}})}}),he=(0,r.Z)(ue,2),fe=he[0],me=he[1].isLoading,xe=(0,o.Db)(S.ZP.permissions.useDelete(null===le||void 0===le?void 0:le.id),{onSuccess:function(e){return(0,k.wD)(e,{callback:function(){V.push("/settings/workspace/permissions"),l.Am.success("Permission successfully delete.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:"permission-delete-success-".concat(null===le||void 0===le?void 0:le.id)})},onErrorCallback:function(e){var n=e.error,t=n.errors,i=n.exception,r=n.message,s=n.type;l.Am.error((null===t||void 0===t?void 0:t.error)||i||r,{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:s})}})}}),Ee=(0,r.Z)(xe,2),Ze=Ee[0],pe=Ee[1].isLoading,je=(0,c.useMemo)((function(){return(null===ne||void 0===ne?void 0:ne.access)||0}),[ne]),_e=(0,c.useCallback)((function(e){return e.map((function(e,n){var t=Z.K4[e],i=Boolean(je&Number(e)),r=(0,R.fD)(je),s=(0,R.fD)(e);return(0,W.jsx)(_.Z,{mt:n>=1?1:0,children:(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsx)(L.Z,{checked:i,compact:!0,onCheck:function(e){return re({access:(0,R.$P)(e(i)?(0,R.vN)(r,s):(0,R.VJ)(r,s))})}}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(g.ZP,{default:!i,children:t})]})},t)}))}),[je,re]),Ie=(0,c.useMemo)((function(){return(null===ne||void 0===ne?void 0:ne.conditions)||[]}),[ne]),ge=(0,c.useMemo)((function(){var e=Z.WG.DISABLE_UNLESS_CONDITIONS,n=(0,R.fD)(je),t=(0,R.fD)(e),r=Boolean(je&Number(e)),s=new Set((0,i.Z)(Ie)),l=s.has(Z.m_.HAS_NOTEBOOK_EDIT_ACCESS),c=s.has(Z.m_.HAS_PIPELINE_EDIT_ACCESS),o=s.has(Z.m_.USER_OWNS_ENTITY),d=r&&l,a=r&&c,u=r&&o;return(0,W.jsxs)(m.ZP,{flexDirection:"column",children:[(0,W.jsx)(_.Z,{mt:1,children:(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsx)(L.Z,{checked:d,compact:!0,onCheck:function(e){var l=n;e(d)?(r||(l=(0,R.vN)(n,t)),s.add(Z.m_.HAS_NOTEBOOK_EDIT_ACCESS)):(c||o||(l=(0,R.VJ)(n,t)),s.delete(Z.m_.HAS_NOTEBOOK_EDIT_ACCESS)),re({access:(0,R.$P)(l),conditions:(0,i.Z)(s)})}}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(g.ZP,{default:!d,children:Z.ND[Z.m_.HAS_NOTEBOOK_EDIT_ACCESS]})]})}),(0,W.jsx)(_.Z,{mt:1,children:(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsx)(L.Z,{checked:a,compact:!0,onCheck:function(e){var c=n;e(a)?(r||(c=(0,R.vN)(n,t)),s.add(Z.m_.HAS_PIPELINE_EDIT_ACCESS)):(l||o||(c=(0,R.VJ)(n,t)),s.delete(Z.m_.HAS_PIPELINE_EDIT_ACCESS)),re({access:(0,R.$P)(c),conditions:(0,i.Z)(s)})}}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(g.ZP,{default:!a,children:Z.ND[Z.m_.HAS_PIPELINE_EDIT_ACCESS]})]})}),(0,W.jsx)(_.Z,{mt:1,children:(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsx)(L.Z,{checked:u,compact:!0,onCheck:function(e){var c=n;e(u)?(r||(c=(0,R.vN)(n,t)),s.add(Z.m_.USER_OWNS_ENTITY)):(l||l||(c=(0,R.VJ)(n,t)),s.delete(Z.m_.USER_OWNS_ENTITY)),re({access:(0,R.$P)(c),conditions:(0,i.Z)(s)})}}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(g.ZP,{default:!u,children:Z.ND[Z.m_.USER_OWNS_ENTITY]})]})})]})}),[je,Ie,re]),ve=S.ZP.roles.list({},{},{pauseFetch:!le}).data,Ae=(0,c.useMemo)((function(){return(0,N.YC)((null===ve||void 0===ve?void 0:ve.roles)||[],"name")}),[ve]),Le=(0,c.useMemo)((function(){return(null===ne||void 0===ne?void 0:ne.rolesMapping)||{}}),[ne]),Se=(0,c.useMemo)((function(){return(0,N.YC)(Object.values(Le),"name")}),[Le]),be=S.ZP.users.list({},{},{pauseFetch:!le}).data,De=((0,c.useMemo)((function(){return(0,N.YC)((null===be||void 0===be?void 0:be.users)||[],(function(e){return(0,y.s)(e)}))}),[be]),(0,c.useMemo)((function(){return(null===ne||void 0===ne?void 0:ne.usersMapping)||{}}),[ne])),Pe=(0,c.useMemo)((function(){return(0,N.YC)(Object.values(De),(function(e){return(0,y.s)(e)}))}),[De]),Te=(0,c.useMemo)((function(){return(null===Se||void 0===Se?void 0:Se.length)>=1}),[Se]),Re=(0,c.useMemo)((function(){return(0,W.jsx)(a.ZP,{beforeIcon:(0,W.jsx)(D.mm,{}),compact:!0,onClick:function(){q(U.ROLES),K(!1)},primary:!Te,secondary:Te,small:!0,children:"Add roles"})}),[Te,q,K]),Oe=(0,c.useMemo)((function(){return(null===Pe||void 0===Pe?void 0:Pe.length)>=1}),[Pe]),Ce=(0,c.useCallback)((function(e,n){return(0,W.jsx)(I.Z,{columnFlex:[null,1],columns:[{label:function(){var n=null===e||void 0===e?void 0:e.every((function(e){var n=e.id;return null===Le||void 0===Le?void 0:Le[n]}));return(0,W.jsx)(u.Z,{checked:n,onClick:function(t){(0,w.j)(t),re(n?{rolesMapping:{}}:{rolesMapping:(0,N.HK)(e,(function(e){return e.id}))})}},"checkbox")},uuid:"actions"},{uuid:"Role"}],onClickRow:n?function(n){var t=e[n];t&&window.open("/settings/workspace/roles/".concat(null===t||void 0===t?void 0:t.id),"_blank").focus()}:null,rows:null===e||void 0===e?void 0:e.map((function(e){var n=e.name,t=e.id,i=!(null===Le||void 0===Le||!Le[t]);return[(0,W.jsx)(u.Z,{checked:i,onClick:function(n){(0,w.j)(n);var r=M({},Le);i?null===r||void 0===r||delete r[t]:r[t]=e,re({rolesMapping:r})}},"checkbox"),(0,W.jsx)(g.ZP,{monospace:!0,children:n},"name")]})),uuid:"roles"})}),[Le,re]),ye=(0,c.useCallback)((function(e,n){return(0,W.jsx)(I.Z,{columnFlex:[1,1,1],columns:[{uuid:"Username"},{uuid:"First name"},{uuid:"Last name"}],onClickRow:n?function(n){var t=e[n];t&&window.open("/settings/workspace/users/".concat(null===t||void 0===t?void 0:t.id),"_blank").focus()}:null,rows:null===e||void 0===e?void 0:e.map((function(e){var n=e.first_name,t=e.last_name,i=e.username;return[(0,W.jsx)(g.ZP,{children:i},"username"),(0,W.jsx)(g.ZP,{default:!0,children:n},"firstName"),(0,W.jsx)(g.ZP,{default:!0,children:t},"lastName")]})),uuid:"users"})}),[De,re]),Ne=(0,c.useMemo)((function(){return Ce(Ae)}),[Ce,Ae]),Be=(0,c.useMemo)((function(){return Ce(Se,!0)}),[Ce,Se]),ke=(0,c.useMemo)((function(){return ye(Pe,!0)}),[ye,Pe]),we=(0,W.jsxs)(b.N,{children:[(0,W.jsxs)(E.Z,{noPadding:!0,children:[(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsx)(x.Z,{level:4,children:le?"Permission ".concat(null===le||void 0===le?void 0:le.id):"New permission"})}),(0,W.jsx)(h.Z,{light:!0}),(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsxs)(g.ZP,{danger:"entity_name"in J&&!(null!==ne&&void 0!==ne&&ne.entity_name),default:!0,large:!0,children:["Entity ","entity_name"in J&&!(null!==ne&&void 0!==ne&&ne.entity_name)&&(0,W.jsx)(g.ZP,{danger:!0,inline:!0,large:!0,children:"is required"})]}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(f.Z,{flex:1,justifyContent:"flex-end",children:(0,W.jsx)(p.Z,{afterIconSize:Y,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,onChange:function(e){return re({entity_name:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"Select an entity",value:(null===ne||void 0===ne?void 0:ne.entity_name)||"",children:de.map((function(e){return(0,W.jsx)("option",{value:e,children:(0,O.j3)(e)},e)}))})})]})}),(0,W.jsx)(h.Z,{light:!0}),(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Entity subtype"}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(f.Z,{flex:1,justifyContent:"flex-end",children:(0,W.jsxs)(p.Z,{afterIconSize:Y,alignRight:!0,autoComplete:"off",large:!0,monospace:!0,noBackground:!0,noBorder:!0,onChange:function(e){return re({entity_type:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"Select an entity subtype",value:(null===ne||void 0===ne?void 0:ne.entity_type)||"",children:[(0,W.jsx)("option",{value:""}),ae.map((function(e){return(0,W.jsx)("option",{value:e,children:e},e)}))]})})]})}),(0,W.jsx)(h.Z,{light:!0}),(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Enity UUID"}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsx)(A.Z,{afterIcon:(0,W.jsx)(D.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:Y,alignRight:!0,autoComplete:"off",large:!0,monospace:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return re({entity_id:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. pipeline_uuid",value:(null===ne||void 0===ne?void 0:ne.entity_id)||""})})]})})]}),(0,W.jsx)(_.Z,{mb:P.HN}),(0,W.jsxs)(E.Z,{noPadding:!0,children:[(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsx)(x.Z,{level:4,children:"Access"})}),(0,W.jsx)(h.Z,{light:!0}),(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(_.Z,{p:P.cd,children:[(0,W.jsx)(_.Z,{mb:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Groups"})}),_e(Z.G9)]})}),(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(_.Z,{p:P.cd,children:[(0,W.jsx)(_.Z,{mb:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Special conditions"})}),ge]})})]}),(0,W.jsx)(h.Z,{light:!0}),(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(_.Z,{p:P.cd,children:[(0,W.jsx)(_.Z,{mb:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Operations"})}),_e(Z.Pt)]})}),(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(_.Z,{p:P.cd,children:[(0,W.jsx)(_.Z,{mb:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Disable operations"})}),_e(Z.oO)]})})]}),(0,W.jsx)(h.Z,{light:!0}),(0,W.jsxs)(m.ZP,{alignItems:"flex-start",children:[(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(_.Z,{p:P.cd,children:[(0,W.jsx)(_.Z,{mb:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Read attributes"})}),_e(Z.Fy)]})}),(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(_.Z,{fullWidth:!0,p:P.cd,children:[(0,W.jsx)(_.Z,{mb:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Readable attributes (comma separated)"})}),(0,W.jsx)(v.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return re({read_attributes:e.target.value})},placeholder:"e.g. email",value:(null===ne||void 0===ne?void 0:ne.read_attributes)||""})]})})]}),(0,W.jsx)(h.Z,{light:!0}),(0,W.jsxs)(m.ZP,{alignItems:"flex-start",children:[(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(_.Z,{p:P.cd,children:[(0,W.jsx)(_.Z,{mb:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Write attributes"})}),_e(Z.H1)]})}),(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(_.Z,{fullWidth:!0,p:P.cd,children:[(0,W.jsx)(_.Z,{mb:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Writable attributes (comma separated)"})}),(0,W.jsx)(v.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return re({write_attributes:e.target.value})},placeholder:"e.g. password",value:(null===ne||void 0===ne?void 0:ne.write_attributes)||""})]})})]}),(0,W.jsx)(h.Z,{light:!0}),(0,W.jsxs)(m.ZP,{alignItems:"flex-start",children:[(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(_.Z,{p:P.cd,children:[(0,W.jsx)(_.Z,{mb:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Query parameters"})}),_e(Z.hl)]})}),(0,W.jsx)(f.Z,{flex:1,children:(0,W.jsxs)(_.Z,{fullWidth:!0,p:P.cd,children:[(0,W.jsx)(_.Z,{mb:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Parameters that can be queried (comma separated)"})}),(0,W.jsx)(v.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return re({query_attributes:e.target.value})},placeholder:"e.g. include_outputs",value:(null===ne||void 0===ne?void 0:ne.query_attributes)||""})]})})]})]}),(0,W.jsx)(_.Z,{mb:P.HN}),le&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(E.Z,{noPadding:!0,children:[(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsxs)(m.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsx)(x.Z,{level:4,children:"Roles"}),(0,W.jsx)(_.Z,{mr:P.cd}),Te&&(0,W.jsx)(m.ZP,{alignItems:"center",children:Re})]})}),(0,W.jsx)(h.Z,{light:!0}),!Te&&(0,W.jsxs)(_.Z,{p:P.cd,children:[(0,W.jsx)(_.Z,{mb:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,children:"This permission is currently not attached to any role."})}),(0,W.jsx)(m.ZP,{alignItems:"center",children:Re})]}),Te&&(0,W.jsx)(_.Z,{pb:P.Mq,children:Be})]}),(0,W.jsx)(_.Z,{mb:P.HN}),(0,W.jsxs)(E.Z,{noPadding:!0,children:[(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsx)(m.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,W.jsx)(x.Z,{level:4,children:"Users"})})}),(0,W.jsx)(h.Z,{light:!0}),!Oe&&(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsx)(g.ZP,{default:!0,children:"There are currently no users with this permission."})}),Oe&&(0,W.jsx)(_.Z,{pb:P.Mq,children:ke})]}),(0,W.jsx)(_.Z,{mb:P.HN}),(0,W.jsxs)(E.Z,{noPadding:!0,children:[(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsx)(x.Z,{level:4,children:"Metadata"})}),(0,W.jsx)(h.Z,{light:!0}),(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Last updated"}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsxs)(f.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,W.jsx)(g.ZP,{large:!0,monospace:!0,muted:!0,children:(null===ne||void 0===ne?void 0:ne.updated_at)&&(0,C.d$)(null===ne||void 0===ne?void 0:ne.updated_at,{includeSeconds:!0})}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(D.Pf,{muted:!0,size:Y}),(0,W.jsx)(_.Z,{mr:1})]})]})}),(0,W.jsx)(h.Z,{light:!0}),(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Created at"}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsxs)(f.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,W.jsx)(g.ZP,{large:!0,monospace:!0,muted:!0,children:(null===ne||void 0===ne?void 0:ne.created_at)&&(0,C.d$)(null===ne||void 0===ne?void 0:ne.created_at,{includeSeconds:!0})}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(D.Pf,{muted:!0,size:Y}),(0,W.jsx)(_.Z,{mr:1})]})]})}),(0,W.jsx)(h.Z,{light:!0}),(0,W.jsx)(_.Z,{p:P.cd,children:(0,W.jsxs)(m.ZP,{alignItems:"center",children:[(0,W.jsx)(g.ZP,{default:!0,large:!0,children:"Created by"}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsxs)(f.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,W.jsx)(g.ZP,{large:!0,monospace:!0,muted:!0,children:(0,y.s)(null===le||void 0===le?void 0:le.user)}),(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(D.Pf,{muted:!0,size:Y}),(0,W.jsx)(_.Z,{mr:1})]})]})})]}),(0,W.jsx)(_.Z,{mb:P.HN})]}),(0,W.jsxs)(m.ZP,{children:[(0,W.jsx)(a.ZP,{beforeIcon:(0,W.jsx)(D.vc,{}),disabled:!J||!(null!==(n=Object.keys(J))&&void 0!==n&&n.length),loading:me,onClick:function(){return fe({permission:M(M({},(0,B.GL)(ne,["access","conditions","entity_id","entity_name","entity_type","query_attributes","read_attributes","write_attributes"],{include_blanks:!0})),le?{role_ids:Object.keys((null===ne||void 0===ne?void 0:ne.rolesMapping)||{}).map((function(e){return Number(e)}))}:{})})},primary:!0,children:le?"Save changes":"Create new permission"}),s&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(a.ZP,{onClick:function(){return null===s||void 0===s?void 0:s()},secondary:!0,children:"Cancel and go back"})]}),le&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(_.Z,{mr:P.cd}),(0,W.jsx)(a.ZP,{beforeIcon:(0,W.jsx)(D.rF,{}),danger:!0,loading:pe,onClick:function(){return Ze()},children:"Delete permission"})]})]})]});return t?we:(0,W.jsx)(j.Z,{after:U.ROLES===z?Ne:null,afterHeader:(0,W.jsx)(_.Z,{px:P.cd,children:(0,W.jsx)(g.ZP,{bold:!0,children:z})}),afterHidden:F,afterWidth:60*P.iI,appendBreadcrumbs:!0,breadcrumbs:[{label:function(){return"Permissions"},linkProps:{href:"/settings/workspace/permissions"}},{bold:!0,label:function(){return"Permission ".concat(null===le||void 0===le?void 0:le.id)}}],hideAfterCompletely:!0,setAfterHidden:K,title:null!==le&&void 0!==le&&le.id?"Permission ".concat(null===le||void 0===le?void 0:le.id):"New permission",uuidItemSelected:T.B2.PERMISSIONS,uuidWorkspaceSelected:T.Pl.USER_MANAGEMENT,children:le&&we})}},8193:function(e,n,t){t.d(n,{N:function(){return o},Z:function(){return c}});var i=t(38626),r=t(44897),s=t(42631),l=t(70515),c=2*l.iI,o=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1ck7mzt-0"})(["border-radius:","px;padding:","px;",""],s.n_,l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).codeArea,";\n ")}))},36288:function(e,n,t){t.d(n,{Fy:function(){return m},G9:function(){return a},H1:function(){return x},K4:function(){return o},ND:function(){return d},Pt:function(){return u},WG:function(){return s},hl:function(){return f},m_:function(){return l},oO:function(){return h}});var i,r,s,l,c=t(82394);!function(e){e[e.OWNER=1]="OWNER",e[e.ADMIN=2]="ADMIN",e[e.EDITOR=4]="EDITOR",e[e.VIEWER=8]="VIEWER",e[e.LIST=16]="LIST",e[e.DETAIL=32]="DETAIL",e[e.CREATE=64]="CREATE",e[e.UPDATE=128]="UPDATE",e[e.DELETE=512]="DELETE",e[e.OPERATION_ALL=1024]="OPERATION_ALL",e[e.QUERY=2048]="QUERY",e[e.QUERY_ALL=4096]="QUERY_ALL",e[e.READ=8192]="READ",e[e.READ_ALL=16384]="READ_ALL",e[e.WRITE=32768]="WRITE",e[e.WRITE_ALL=65536]="WRITE_ALL",e[e.ALL=131072]="ALL",e[e.DISABLE_LIST=262144]="DISABLE_LIST",e[e.DISABLE_DETAIL=524288]="DISABLE_DETAIL",e[e.DISABLE_CREATE=1048576]="DISABLE_CREATE",e[e.DISABLE_UPDATE=2097152]="DISABLE_UPDATE",e[e.DISABLE_DELETE=4194304]="DISABLE_DELETE",e[e.DISABLE_OPERATION_ALL=8388608]="DISABLE_OPERATION_ALL",e[e.DISABLE_QUERY=16777216]="DISABLE_QUERY",e[e.DISABLE_QUERY_ALL=33554432]="DISABLE_QUERY_ALL",e[e.DISABLE_READ=67108864]="DISABLE_READ",e[e.DISABLE_READ_ALL=134217728]="DISABLE_READ_ALL",e[e.DISABLE_WRITE=268435456]="DISABLE_WRITE",e[e.DISABLE_WRITE_ALL=536870912]="DISABLE_WRITE_ALL",e[e.DISABLE_UNLESS_CONDITIONS=1073741824]="DISABLE_UNLESS_CONDITIONS"}(s||(s={})),function(e){e.HAS_NOTEBOOK_EDIT_ACCESS="HAS_NOTEBOOK_EDIT_ACCESS",e.HAS_PIPELINE_EDIT_ACCESS="HAS_PIPELINE_EDIT_ACCESS",e.USER_OWNS_ENTITY="USER_OWNS_ENTITY"}(l||(l={}));var o=(i={},(0,c.Z)(i,s.OWNER,"Owner"),(0,c.Z)(i,s.ADMIN,"Admin"),(0,c.Z)(i,s.EDITOR,"Editor"),(0,c.Z)(i,s.VIEWER,"Viewer"),(0,c.Z)(i,s.LIST,"List"),(0,c.Z)(i,s.DETAIL,"Detail"),(0,c.Z)(i,s.CREATE,"Create"),(0,c.Z)(i,s.UPDATE,"Update"),(0,c.Z)(i,s.DELETE,"Delete"),(0,c.Z)(i,s.OPERATION_ALL,"All operations"),(0,c.Z)(i,s.QUERY,"Query"),(0,c.Z)(i,s.QUERY_ALL,"Query all attributes"),(0,c.Z)(i,s.READ,"Read"),(0,c.Z)(i,s.READ_ALL,"Read all attributes"),(0,c.Z)(i,s.WRITE,"Write"),(0,c.Z)(i,s.WRITE_ALL,"Write all attributes"),(0,c.Z)(i,s.ALL,"All"),(0,c.Z)(i,s.DISABLE_LIST,"Disable list"),(0,c.Z)(i,s.DISABLE_DETAIL,"Disable detail"),(0,c.Z)(i,s.DISABLE_CREATE,"Disable create"),(0,c.Z)(i,s.DISABLE_UPDATE,"Disable update"),(0,c.Z)(i,s.DISABLE_DELETE,"Disable delete"),(0,c.Z)(i,s.DISABLE_OPERATION_ALL,"Disable all operations"),(0,c.Z)(i,s.DISABLE_QUERY,"Disable query"),(0,c.Z)(i,s.DISABLE_QUERY_ALL,"Disable all query parameters"),(0,c.Z)(i,s.DISABLE_READ,"Disable read"),(0,c.Z)(i,s.DISABLE_READ_ALL,"Disable all read attributes"),(0,c.Z)(i,s.DISABLE_WRITE,"Disable write"),(0,c.Z)(i,s.DISABLE_WRITE_ALL,"Disable all write attributes"),i),d=(r={},(0,c.Z)(r,l.HAS_NOTEBOOK_EDIT_ACCESS,"Disable unless user has notebook edit access"),(0,c.Z)(r,l.HAS_PIPELINE_EDIT_ACCESS,"Disable unless user has pipeline edit access"),(0,c.Z)(r,l.USER_OWNS_ENTITY,"Disable unless user owns the current entity"),r),a=[s.OWNER,s.ADMIN,s.EDITOR,s.VIEWER,s.ALL],u=[s.LIST,s.DETAIL,s.CREATE,s.UPDATE,s.DELETE,s.OPERATION_ALL],h=[s.DISABLE_LIST,s.DISABLE_DETAIL,s.DISABLE_CREATE,s.DISABLE_UPDATE,s.DISABLE_DELETE,s.DISABLE_OPERATION_ALL],f=[s.QUERY,s.QUERY_ALL,s.DISABLE_QUERY,s.DISABLE_QUERY_ALL],m=[s.READ,s.READ_ALL,s.DISABLE_READ,s.DISABLE_READ_ALL],x=[s.WRITE,s.WRITE_ALL,s.DISABLE_WRITE,s.DISABLE_WRITE_ALL]},65956:function(e,n,t){var i=t(38626),r=t(55485),s=t(38276),l=t(30160),c=t(44897),o=t(42631),d=t(47041),a=t(70515),u=t(28598),h=(0,i.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*a.iI,1.5*a.iI,1.5*a.iI),f=i.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],o.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 "})),m=i.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],o.n_,o.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 ")}),h,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),x=i.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*a.iI,d.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*a.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),E=i.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],o.M8,o.YF,1.75*a.iI);n.Z=function(e){var n=e.borderless,t=e.children,i=e.containerRef,c=e.contentContainerRef,o=e.dark,d=e.footer,a=e.fullHeight,h=void 0===a||a,Z=e.fullWidth,p=void 0===Z||Z,j=e.header,_=e.headerHeight,I=e.headerIcon,g=e.headerPaddingVertical,v=e.headerTitle,A=e.maxHeight,L=e.maxWidth,S=e.minWidth,b=e.noPadding,D=e.overflowVisible,P=e.subtitle,T=e.success;return(0,u.jsxs)(f,{borderless:n,dark:o,fullHeight:h,fullWidth:p,maxHeight:A,maxWidth:L,minWidth:S,overflowVisible:D,ref:i,success:T,children:[(j||v)&&(0,u.jsxs)(m,{headerPaddingVertical:g,height:_,children:[j&&j,v&&(0,u.jsx)(r.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,u.jsxs)(r.ZP,{alignItems:"center",children:[I&&I,(0,u.jsx)(s.Z,{ml:I?1:0,children:(0,u.jsx)(l.ZP,{bold:!0,default:!0,children:v})})]})})]}),(0,u.jsxs)(x,{maxHeight:A,noPadding:b,overflowVisible:D,ref:c,children:[P&&"string"===typeof P&&(0,u.jsx)(s.Z,{mb:2,children:(0,u.jsx)(l.ZP,{default:!0,children:P})}),P&&"string"!==typeof P&&P,t]}),d&&(0,u.jsx)(E,{children:d})]})}},76417:function(e,n,t){function i(e){return null!==e&&void 0!==e&&e.first_name?[null===e||void 0===e?void 0:e.first_name,null===e||void 0===e?void 0:e.last_name].filter((function(e){return e})).join(" "):null===e||void 0===e?void 0:e.username}t.d(n,{s:function(){return i}})},48277:function(e,n,t){t.d(n,{$P:function(){return d},JI:function(){return s},VJ:function(){return o},fD:function(){return l},uf:function(){return r},vN:function(){return c}});var i=t(75582),r=function(e){var n=String(e).split("."),t=(0,i.Z)(n,2),r=t[0],s=t[1];return"".concat(r.replace(/\B(?=(\d{3})+(?!\d))/g,",")).concat(s?".".concat(s):"")};function s(e){var n=Math.floor(Date.now()/1e3);return e>0?n-e:n}function l(e){return(e>>>0).toString(2)}function c(e,n){return String(BigInt(e)+BigInt(n))}function o(e,n){return String(BigInt(e)-BigInt(n))}function d(e){return parseInt(e,2)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[845],{8916:function(e,n,r){r.d(n,{FS:function(){return l},JZ:function(){return f},Tt:function(){return d},e7:function(){return p},wx:function(){return s}});var t=r(75582),i=r(82394),o=r(83784),u=r(30229);function c(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function a(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?c(Object(r),!0).forEach((function(n){(0,i.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function l(e){return"string"===typeof e?e:JSON.stringify(e)}function s(e,n){var r,t;return null===e||void 0===e||null===(r=e.find((function(e){var r=e.block;return n(r)})))||void 0===r||null===(t=r.variables)||void 0===t?void 0:t.map((function(e){var n=e.value;return a(a({},e),{},{value:l(n)})}))}function d(e){var n;return null===(n=s(e,(function(e){return e.uuid===o.C})))||void 0===n?void 0:n.reduce((function(e,n){var r=n.uuid,t=n.value;return a(a({},e),{},(0,i.Z)({},r,t))}),{})}function f(e,n){return n===u.Xm.TIME?e.push({uuid:"execution_date",value:"<run datetime>"}):n===u.Xm.EVENT&&e.push({uuid:"event",value:"<trigger event>"}),e}function p(e){return e?Object.entries(e).reduce((function(e,n){var r=(0,t.Z)(n,2),o=r[0],u=r[1],c=u;try{c=JSON.parse(u)}catch(l){}return a(a({},e),{},(0,i.Z)({},o,c))}),{}):e}},88785:function(e,n,r){r.d(n,{J:function(){return a},U:function(){return c}});var t=r(38626),i=r(44897),o=r(42631),u=r(70515),c=t.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-m7tlau-0"})(["border-radius:","px;border-style:solid;border-width:2px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],o.TR,14*u.iI,u.cd*u.iI,u.cd*u.iI,40*u.iI,(function(e){return!e.selected&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.selected&&"\n border-color: ".concat((e.theme.interactive||i.Z.interactive).linkPrimary,";\n ")})),a=t.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],o.n_,u.tr,(function(e){return"\n background-color: ".concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.absolute&&"\n position: absolute;\n z-index: 2;\n right: 0;\n top: ".concat(2.5*u.iI,"px;\n ")}),(function(e){return e.topPosition&&"\n top: -".concat(42*u.iI,"px;\n ")}))},37899:function(e,n,r){var t=r(82394),i=r(75582),o=r(82684),u=r(71180),c=r(15338),a=r(97618),l=r(55485),s=r(38276),d=r(75499),f=r(30160),p=r(35576),b=r(17488),g=r(72473),h=r(70515),v=r(42122),m=r(81728),j=r(28598);function x(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function O(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?x(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}n.Z=function(e){e.borderless,e.compact;var n=e.enableVariablesOverwrite,r=e.originalVariables,x=e.runtimeVariables,Z=(e.setEnableVariablesOverwrite,e.setRuntimeVariables),y=(0,o.useState)({}),P=y[0],w=y[1],k=(0,o.useState)(null),S=k[0],C=k[1],I=(0,o.useState)(null),D=I[0],_=I[1];(0,o.useEffect)((function(){var e=Object.entries(x||{}).reduce((function(e,n){var r=(0,i.Z)(n,2),o=r[0],u=r[1],c=(0,m.Pb)(u)&&"object"===typeof JSON.parse(u)&&!Array.isArray(JSON.parse(u))&&null!==JSON.parse(u);return O(O({},e),{},(0,t.Z)({},o,c))}),{});w(e)}),[]);var E=function(e,n){var r={borderless:!0,key:"variable_uuid_input_".concat(e),monospace:!0,onChange:function(n){n.preventDefault(),Z((function(r){return O(O({},r),{},(0,t.Z)({},e,n.target.value))}))},paddingHorizontal:0,placeholder:"Variable value",value:n};return P[e]?(0,j.jsx)(p.Z,O(O({},r),{},{rows:1,value:n})):(0,j.jsx)(b.Z,O({},r))};return(0,j.jsxs)(j.Fragment,{children:[n&&x&&Object.entries(x).length>0&&(0,j.jsx)(d.Z,{columnFlex:[null,1,null],columns:[{uuid:"Variable"},{uuid:"Value"},{label:function(){return""},uuid:"Action"}],rows:Object.entries(x).map((function(e){var n=(0,i.Z)(e,2),t=n[0],o=n[1];return[(0,j.jsx)(f.ZP,{default:!0,monospace:!0,children:t},"variable_".concat(t)),E(t,o),!(null!==r&&void 0!==r&&r[t])&&(0,j.jsx)(u.ZP,{iconOnly:!0,onClick:function(){Z((function(e){return(0,v.gR)(e,[t])}))},children:(0,j.jsx)(g.rF,{default:!0})})]}))}),(0,j.jsx)(s.Z,{p:h.cd,children:(0,j.jsxs)(l.ZP,{alignItems:"center",children:[(0,j.jsx)(a.Z,{flex:1,children:(0,j.jsx)(b.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return C(e.target.value)},placeholder:"New variable UUID",value:S||""})}),(0,j.jsx)(s.Z,{mr:1}),(0,j.jsx)(a.Z,{flex:1,children:(0,j.jsx)(b.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return _(e.target.value)},placeholder:"Variable value",value:D||""})}),(0,j.jsx)(s.Z,{mr:1}),(0,j.jsx)(u.ZP,{beforeIcon:(0,j.jsx)(g.mm,{}),disabled:!S||!D,onClick:function(){Z((function(e){return O(O({},e),{},(0,t.Z)({},S,D))})),C(null),_(null)},children:"Add runtime variable"})]})}),(0,j.jsx)(c.Z,{light:!0})]})}},55072:function(e,n,r){r.d(n,{Et:function(){return f},Q:function(){return d}});r(82684);var t=r(71180),i=r(55485),o=r(38276),u=r(31748),c=r(72473),a=r(79633),l=r(70515),s=r(28598),d=30,f=9;n.ZP=function(e){var n=e.page,r=e.maxPages,d=e.onUpdate,f=e.totalPages,p=[],b=r;if(b>f)p=Array.from({length:f},(function(e,n){return n}));else{var g=Math.floor(b/2),h=n-g;n+g>=f?(h=f-b+2,b-=2):n-g<=0?(h=0,b-=2):(b-=4,h=n-Math.floor(b/2)),p=Array.from({length:b},(function(e,n){return n+h}))}return(0,s.jsx)(s.Fragment,{children:f>0&&(0,s.jsxs)(i.ZP,{alignItems:"center",children:[(0,s.jsx)(t.ZP,{disabled:0===n,onClick:function(){return d(n-1)},children:(0,s.jsx)(c.Hd,{size:1.5*l.iI,stroke:u.Av})}),!p.includes(0)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.ZP,{borderLess:!0,noBackground:!0,onClick:function(){return d(0)},children:1})},0),!p.includes(1)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.ZP,{noBackground:!0,noPadding:!0,notClickable:!0,children:"..."})},0)]}),p.map((function(e){return(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.ZP,{backgroundColor:e===n&&a.a$,borderLess:!0,noBackground:!0,notClickable:e===n,onClick:function(){e!==n&&d(e)},children:e+1})},e)})),!p.includes(f-1)&&(0,s.jsxs)(s.Fragment,{children:[!p.includes(f-2)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.ZP,{noBackground:!0,noPadding:!0,notClickable:!0,children:"..."})},0),(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.ZP,{borderLess:!0,noBackground:!0,onClick:function(){return d(f-1)},children:f})},f-1)]}),(0,s.jsx)(o.Z,{ml:1}),(0,s.jsx)(t.ZP,{disabled:n===f-1,onClick:function(){return d(n+1)},children:(0,s.jsx)(c.Kw,{size:1.5*l.iI,stroke:u.Av})})]})})}},83784:function(e,n,r){r.d(n,{C:function(){return t}});var t="global"},14805:function(e,n,r){var t=r(82394),i=r(44495),o=r(55485),u=r(44085),c=r(38276),a=r(30160),l=r(88785),s=r(70515),d=r(86735),f=r(28598);function p(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function b(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?p(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}n.Z=function(e){var n=e.localTime,r=e.selectedDate,t=e.selectedTime,p=e.setSelectedDate,g=e.setSelectedTime,h=e.topPosition;return(0,f.jsxs)(l.J,{absolute:!0,topPosition:h,children:[(0,f.jsx)(i.ZP,{onChange:p,value:r}),(0,f.jsx)(c.Z,{mb:2}),(0,f.jsxs)(o.ZP,{alignItems:"center",children:[(0,f.jsxs)(a.ZP,{default:!0,large:!0,children:["Time (",n?"Local":"UTC","):"]}),(0,f.jsx)(c.Z,{pr:2}),(0,f.jsx)(u.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),g((function(n){return b(b({},n),{},{hour:e.target.value})}))},paddingRight:5*s.iI,placeholder:"HH",value:null===t||void 0===t?void 0:t.hour,children:(0,d.m5)(24,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,f.jsx)("option",{value:e,children:e},"hour_".concat(e))}))}),(0,f.jsx)(c.Z,{px:1,children:(0,f.jsx)(a.ZP,{bold:!0,large:!0,children:":"})}),(0,f.jsx)(u.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),g((function(n){return b(b({},n),{},{minute:e.target.value})}))},paddingRight:5*s.iI,placeholder:"MM",value:null===t||void 0===t?void 0:t.minute,children:(0,d.m5)(60,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,f.jsx)("option",{value:e,children:e},"minute_".concat(e))}))})]})]})}},79500:function(e,n,r){r.d(n,{a:function(){return o}});var t=r(16488),i=r(3917);function o(e,n){var r,o;if(null!==n&&void 0!==n&&n.localTimezone)r=(0,i.n$)(e),o={hour:(0,i.lJ)(String(r.getHours())),minute:(0,i.lJ)(String(r.getMinutes()))};else{var u=e.split(" ")[1];r=(0,t.eI)(e),o={hour:u.substring(0,2),minute:u.substring(3,5)}}return{date:r,time:o}}},9134:function(e,n,r){var t=r(82684),i=r(21124),o=r(68432),u=r(38626),c=r(65292),a=r(44897),l=r(95363),s=r(70515),d=r(28598);n.Z=function(e){var n=e.language,r=e.maxWidth,f=e.showLineNumbers,p=e.small,b=e.source,g=e.wrapLines,h=(0,t.useContext)(u.ThemeContext);function v(e){var t=e.value;return(0,d.jsx)(o.Z,{customStyle:{backgroundColor:(h.background||a.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:l.Vp,fontSize:p?12:14,marginBottom:0,marginTop:0,maxWidth:r,paddingBottom:2*s.iI,paddingTop:2*s.iI},language:n,lineNumberStyle:{color:(h.content||a.Z.content).muted},showLineNumbers:f,style:c._4,useInlineStyles:!0,wrapLines:g,children:t})}return(0,d.jsx)(i.D,{components:{code:function(e){var n=e.children;return(0,d.jsx)(v,{value:n})}},children:b})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8487],{87848:function(e,n,t){t.d(n,{u:function(){return c}});var r=t(38626),i=t(44897),o=t(70515),c=r.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-y3uzxv-0"})(["padding:","px;&:hover{cursor:pointer;","}",""],o.iI,(function(e){return"\n background-color: ".concat((e.theme.interactive||i.Z.interactive).hoverBackground,";\n ")}),(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||i.Z.interactive).hoverBackground,";\n ")}))},28026:function(e,n,t){t.d(n,{Z:function(){return S}});var r=t(82394),i=t(89565),o=t.n(i),c=t(82684),l=t(40761),a=t(50724),s=t(30160),u=t(38626),d=t(44897),h=t(70515),f=t(47041),p=(0,u.css)([""," ",""],(function(e){return!e.width&&"\n width: 100%;\n "}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")})),v=u.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-11d4rgl-0"})([""," "," height:100%;overflow:auto;position:absolute;",""],p,f.w5,(function(e){return"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),x=u.default.div.withConfig({displayName:"indexstyle__InnerStyle",componentId:"sc-11d4rgl-1"})([""," padding:","px;"],p,h.cd*h.iI),g=(u.default.div.withConfig({displayName:"indexstyle__LineStyle",componentId:"sc-11d4rgl-2"})(["height:","px;"],20),(0,u.css)(["@keyframes cursor-blink{0%{opacity:0;}}::before{","}::after{","}"],(function(e){return e.focusBeginning&&"\n position: absolute;\n background-color: ".concat((e.theme.accent||d.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(h.iI,"px;\n opacity: 0.3;\n ")}),(function(e){return e.focused&&"\n background-color: ".concat((e.theme.accent||d.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(h.iI,"px;\n opacity: 0.3;\n ")}))),m=u.default.div.withConfig({displayName:"indexstyle__InputStyle",componentId:"sc-11d4rgl-3"})(["align-items:center;display:flex;gap:2px;",""],g),b=u.default.span.withConfig({displayName:"indexstyle__CharacterStyle",componentId:"sc-11d4rgl-4"})([""," ::after{","}"],g,(function(e){return e.focused&&"\n position: absolute;\n "})),j=t(48339),y=t(39643),w=t(11498),Z=t(42041),k=t(3314),C=t(44688),O=t(28598);function P(e,n){var t="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"===typeof e)return M(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return M(e,n)}(e))||n&&e&&"number"===typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==t.return||t.return()}finally{if(l)throw o}}}}function M(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function 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 _(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?F(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):F(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var S=function(e){var n=e.lastMessage,t=e.onFocus,r=e.sendMessage,i=e.uuid,u=void 0===i?"terminal":i,d=e.width,h=(0,c.useRef)(null),f=(0,c.useRef)(null),p=(0,c.useState)(""),g=p[0],M=p[1],F=(0,c.useState)(0),S=F[0],z=F[1],H=(0,c.useState)(0),D=H[0],I=H[1],E=(0,c.useState)([]),T=E[0],L=E[1],A=(0,c.useState)(!1),N=A[0],B=A[1],R=(0,c.useState)(),U=R[0],G=R[1],q=(0,c.useMemo)((function(){return new l.Z}),[]),X=(0,c.useMemo)((function(){return{api_key:w.l,token:q.decodedToken.token}}),[q]);(0,c.useEffect)((function(){if(n){var e=JSON.parse(n.data);G((function(n){var t=n||"";return"stdout"===e[0]?t+e[1]:t}))}}),[n]);var W=(0,c.useMemo)((function(){return U?U.split("\n").filter((function(e){return!e.includes("# Mage terminal settings command")})).map((function(e){return{data:e,type:j.Gi.TEXT}})):[]}),[U]);(0,c.useEffect)((function(){if(h.current&&f.current){var e=f.current.getBoundingClientRect().height;h.current.scrollTo(0,e)}}),[g,W,h,f]);var Y=(0,C.y)(),V=Y.registerOnKeyDown,J=Y.setDisableGlobalKeyboardShortcuts,Q=Y.unregisterOnKeyDown;(0,c.useEffect)((function(){return function(){Q(u)}}),[Q,u]);var K=(0,c.useCallback)((function(){I((function(e){return e>0?e-1:e}))}),[]),$=(0,c.useCallback)((function(){I((function(e){return e<g.length?e+1:e}))}),[g]),ee=(0,c.useCallback)((function(e){r(JSON.stringify(_(_({},X),{},{command:["stdin",e]}))),r(JSON.stringify(_(_({},X),{},{command:["stdin","\r"]}))),(null===e||void 0===e?void 0:e.length)>=2&&(z(T.length+1),L((function(n){return n.concat(e)})),I(0)),M("")}),[T,r,M,L,z,I]),ne=(0,c.useCallback)((function(e){var n=(null===e||void 0===e?void 0:e.split(/\n/))||[];if(n.length>1){var t=n.slice(0,-1);ee(g+t.join("\n"));var r=(n.slice(-1)[0]||"").trim();M(r),I(r.length)}else M((function(n){return n+e})),I(g.length+e.length)}),[g,ee,M,I]);V(u,(function(e,n,t){var i=e.code,o=e.key;if(N)if((0,k.j)(e),(0,Z.y)([y.PQ,y.VS],n))(null===g||void 0===g?void 0:g.length)>=0&&(r(JSON.stringify(_(_({},X),{},{command:["stdin",g]}))),r(JSON.stringify(_(_({},X),{},{command:["stdin","\x03"]}))),I(0)),M("");else if(y.Qj!==i||n[y.zX])if((0,Z.y)([y.QK],n))K();else if((0,Z.y)([y.DY],n))$();else if((0,Z.y)([y.Bu],n)){if(T.length>=1){var c,l=Math.max(0,S-1);M(T[l]),z(l),I((null===(c=T[l])||void 0===c?void 0:c.length)||0)}}else if((0,Z.y)([y.kD],n)){if(T.length>=1){var a=Math.min(T.length,S+1),s=T[a]||"";M(s),z(a),I(s.length)}}else if((0,Z.y)([y.Uq],n))ee(g);else if((0,Z.y)([y.zX,y.VS],n))navigator.clipboard.writeText(window.getSelection().toString());else if((0,Z.y)([y.zX,y.Pd],n)||(0,Z.y)([y.PQ,y.Pd],n)){var u,d,h,f,p;"undefined"===typeof(null===(u=navigator)||void 0===u?void 0:u.clipboard)?alert('Clipboard pasting is not allowed in insecure contexts. If your Mage deployment is not secure but you still want to use clipboard paste, you can override this setting (which should only be done temporarily) on Chrome browsers by going to "chrome://flags/#unsafely-treat-insecure-origin-as-secure", adding your origin to "Insecure origins treated as secure", and enabling that setting.'):null!==(d=navigator)&&void 0!==d&&null!==(h=d.clipboard)&&void 0!==h&&h.readText?navigator.clipboard.readText().then(ne).catch((function(e){return alert("".concat(e,'\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.'))})):null!==(f=navigator)&&void 0!==f&&null!==(p=f.clipboard)&&void 0!==p&&p.read?navigator.clipboard.read().then((function(e){var n,t=P(e);try{for(t.s();!(n=t.n()).done;){var r,i=n.value,o=P(i.types);try{for(o.s();!(r=o.n()).done;){var c=r.value;if("text/plain"===c)return i.getType(c)}}catch(l){o.e(l)}finally{o.f()}}}catch(l){t.e(l)}finally{t.f()}})).then((function(e){return e.text()})).then(ne).catch((function(e){return alert("".concat(e,'\n For Firefox, users need to allow clipboard paste by setting the "dom.events.asyncClipboard.read" preference in "about:config" to "true" and clicking "Paste" in the context menu that appears.'))})):alert('If pasting is not working properly, you may need to adjust some settings in your browser.\n\n For Firefox, users need to allow clipboard paste by setting both the "dom.events.asyncClipboard.clipboardItem" and "dom.events.asyncClipboard.read" preferences in "about:config" to "true" and clicking "Paste" in the context menu that appears.\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.\n')}else n[y.zX]||n[y.PQ]||1!==o.length||(M((function(e){return e.slice(0,D)+o+e.slice(D)})),I((function(e){return e+1})));else{var v=Math.max(0,D-1);M((function(e){return e.slice(0,v)+e.slice(D)})),I((function(e){return Math.max(0,e-1)}))}}),[g,T,S,N,M,L,z,u]);var te=(0,c.useMemo)((function(){var e;return null===(e=W[W.length-1])||void 0===e?void 0:e.data}),[W]);return(0,O.jsx)(v,{ref:h,width:d,children:(0,O.jsx)(a.Z,{isOpen:!0,onClick:function(){null===t||void 0===t||t(),B(!0),J(!0)},onClickOutside:function(){B(!1),J(!1)},style:{minHeight:"100%"},children:(0,O.jsxs)(x,{ref:f,width:d,children:[null===W||void 0===W?void 0:W.reduce((function(e,n,t){if(t==W.length-1)return e;var r=n||{},i=r.command,c=r.data,l=r.type,a=[];a=(a=Array.isArray(c)?c:[c]).filter((function(e){return e}));var u=[];return a.forEach((function(e,n){var r;if(j.jU.includes(l)&&(r=(0,O.jsx)(s.ZP,{monospace:!0,preWrap:!0,children:e&&(0,O.jsx)(o(),{children:e})})),r){var c="command-".concat(t,"-").concat(n,"-").concat(e);i||u.push((0,O.jsx)("div",{children:r},c))}})),e.concat(u)}),[]),(0,O.jsx)(m,{focused:N&&0===(null===g||void 0===g?void 0:g.length),children:(0,O.jsxs)(s.ZP,{monospace:!0,children:[(0,O.jsx)(s.ZP,{inline:!0,monospace:!0,children:te&&(0,O.jsx)(o(),{children:te})}),null===g||void 0===g?void 0:g.split("").map((function(e,n,t){return(0,O.jsxs)(b,{focusBeginning:N&&0===D&&0===n,focused:N&&(D===n+1||D>=t.length&&n===t.length-1),children:[" "===e&&(0,O.jsx)(O.Fragment,{children:"\xa0"}),"\n"===e&&(0,O.jsx)("br",{})," "!==e&&e]},"command-".concat(n,"-").concat(e))}))]})})]})})})}},31353:function(e,n,t){t.d(n,{Mz:function(){return a},T5:function(){return u},bf:function(){return s}});var r,i=t(82394),o=t(72473),c=t(89370),l=t(70515),a=7*l.iI,s=22,u=(l.iI,l.iI,r={},(0,i.Z)(r,c.RL.CATEGORY,o.WD),(0,i.Z)(r,c.RL.CATEGORY_HIGH_CARDINALITY,o.Rj),(0,i.Z)(r,c.RL.DATETIME,o.aw),(0,i.Z)(r,c.RL.EMAIL,o.GT),(0,i.Z)(r,c.RL.LIST,o.aV),(0,i.Z)(r,c.RL.NUMBER,o.qZ),(0,i.Z)(r,c.RL.NUMBER_WITH_DECIMALS,o.As),(0,i.Z)(r,c.RL.PHONE_NUMBER,o.LP),(0,i.Z)(r,c.RL.TEXT,o.KJ),(0,i.Z)(r,c.RL.TRUE_OR_FALSE,o.Kb),(0,i.Z)(r,c.RL.UUID,o.SS),(0,i.Z)(r,c.RL.ZIP_CODE,o.$t),r)},68487:function(e,n,t){t.d(n,{Z:function(){return Se}});var r=t(75582),i=t(12691),o=t.n(i),c=t(38626),l=t(82684),a=t(34376),s=t(40761),u=t(54750),d=t(71180),h=t(39867),f=t(50724),p=t(58036),v=t(97618),x=t(55485),g=t(70374),m=t(82394),b=t(56085),j=t(69864),y=t(70652),w=t(44085),Z=t(38276),k=t(4190),C=t(28026),O=t(30160),P=t(35576),M=t(17488),F=t(69650),_=t(35686),S=t(72473),z=t(44897),H=t(42631),D=t(31353),I=t(47041),E=t(70515),T=c.default.div.withConfig({displayName:"GitActionsstyle__HeaderStyle",componentId:"sc-ynrhio-0"})(["border-bottom:1px solid #1B1C20;height:","px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;"],D.Mz),L=c.default.div.withConfig({displayName:"GitActionsstyle__TerminalStyle",componentId:"sc-ynrhio-1"})(["height:calc(75vh - ","px);position:relative;"],D.Mz),A=c.default.div.withConfig({displayName:"GitActionsstyle__PanelStyle",componentId:"sc-ynrhio-2"})(["height:75vh;min-height:300px;width:75vw;backgroundColor:#232429;border-radius:","px;",""],H.n_,(function(e){return"\n background-color: ".concat((e.theme.background||z.Z.background).panel,";\n ")})),N=c.default.div.withConfig({displayName:"GitActionsstyle__OutputStyle",componentId:"sc-ynrhio-3"})([""," padding:","px;height:calc(75vh - ","px);overflow-y:auto;"],I.w5,2*E.iI,D.Mz),B=t(4383),R=t(72619),U=t(86735),G=t(50178),q=t(28598);function X(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function W(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?X(Object(t),!0).forEach((function(n){(0,m.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):X(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Y={clone:"Clone repository",new_branch:"Create new branch",commit:"Commit & push",pull:"Pull",reset_hard:"Hard reset"};var V=function(e){var n,t=e.branch,i=(e.fetchBranch,(0,l.useState)()),o=i[0],c=i[1],a=(0,l.useState)(),s=a[0],u=a[1],h=(0,l.useState)(),f=h[0],p=h[1],v=(0,l.useState)(),g=v[0],m=v[1],z=(0,l.useState)(),H=z[0],D=z[1],I=(0,l.useState)(),E=I[0],X=I[1],V=_.ZP.git_custom_branches.list(),J=V.data,Q=V.mutate,K=(0,l.useMemo)((function(){return null===J||void 0===J?void 0:J.git_custom_branches}),[J]),$=_.ZP.syncs.list().data,ee=(0,l.useMemo)((function(){var e;if($)return null===(e=$.syncs)||void 0===e?void 0:e[0]}),[$]),ne=(0,j.Db)(_.ZP.git_branches.useCreate(),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){Q(),window.location.reload()},onErrorCallback:function(e){var n=e.error.exception;D(n)}})}}),te=(0,r.Z)(ne,2),re=te[0],ie=te[1].isLoading,oe=(0,j.Db)((function(){return _.ZP.git_branches.useUpdate(t)({git_branch:{action_type:"status"}})}),{onSuccess:function(e){return(0,R.wD)(e,{onErrorCallback:function(e){var n=e.error.exception;D(n)}})}}),ce=(0,r.Z)(oe,1)[0],le=(0,j.Db)(_.ZP.git_branches.useUpdate(t),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){D(null),m("DONE")},onErrorCallback:function(e){var n=e.error.exception;D(n)}})}}),ae=(0,r.Z)(le,2),se=ae[0],ue=ae[1].isLoading,de=(0,j.Db)(_.ZP.git_branches.useUpdate(t),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){D(null),window.location.reload()},onErrorCallback:function(e){var n=e.error.exception;D(n)}})}}),he=(0,r.Z)(de,2),fe=he[0],pe=he[1].isLoading,ve=(0,l.useState)(),xe=ve[0],ge=ve[1],me=(0,l.useState)([]),be=me[0],je=me[1],ye=(0,l.useState)([]),we=ye[0],Ze=ye[1],ke=(0,l.useCallback)((function(){ce().then((function(e){var n=e.data,t=null===n||void 0===n?void 0:n.git_branch,r=null===t||void 0===t?void 0:t.status,i=null===t||void 0===t?void 0:t.modified_files,o=null===t||void 0===t?void 0:t.untracked_files;ge(r),je(o),Ze(i)}))}),[ce]),Ce=(0,l.useMemo)((function(){return ie||ue||pe}),[ie,ue,pe]);(0,l.useEffect)((function(){return ke()}),[f,ke]);var Oe=(0,l.useMemo)((function(){return(0,G.PR)()||{}}),[]),Pe=(0,l.useMemo)((function(){var e={term_name:null!==Oe&&void 0!==Oe&&Oe.id?"git_".concat(null===Oe||void 0===Oe?void 0:Oe.id):"git"};return null!==ee&&void 0!==ee&&ee.repo_path&&(e.cwd=null===ee||void 0===ee?void 0:ee.repo_path),e}),[null===ee||void 0===ee?void 0:ee.repo_path,Oe]),Me=(0,b.ZP)((0,B.Ib)("terminal"),{shouldReconnect:function(){return!0}},"cwd"in Pe),Fe=Me.lastMessage,_e=Me.sendMessage,Se=(0,l.useCallback)((function(e){return(0,q.jsx)(y.Z,{checked:((null===o||void 0===o?void 0:o.files)||[]).includes(e),label:(0,q.jsx)(O.ZP,{small:!0,children:e}),onClick:function(){c((function(n){var t=(null===n||void 0===n?void 0:n.files)||[];return t=t.includes(e)?(0,U.Od)(t,(function(n){return n===e})):[e].concat(t),W(W({},n),{},{files:t})}))},small:!0},e)}),[o]),ze=(0,l.useMemo)((function(){return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(d.ZP,{onClick:function(){return c((function(e){return W(W({},e),{},{files:we.concat(be)})}))},children:"Include all changes"}),we&&we.length>0&&(0,q.jsxs)(Z.Z,{mb:1,children:[(0,q.jsx)(Z.Z,{my:1,children:(0,q.jsx)(O.ZP,{children:"Modified files"})}),we.map(Se)]}),be&&be.length>0&&(0,q.jsxs)(Z.Z,{mb:1,children:[(0,q.jsx)(Z.Z,{my:1,children:(0,q.jsx)(O.ZP,{children:"Untracked files"})}),be.map(Se)]})]})}),[Se,we,be]),He=(0,l.useMemo)((function(){return(0,q.jsx)(Z.Z,{p:2,children:Ce?(0,q.jsx)(k.Z,{color:"white"}):(0,q.jsxs)(q.Fragment,{children:["commit"===f&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(P.Z,{compact:!0,fullWidth:!0,label:"Commit message",monospace:!0,onChange:function(e){return c((function(n){return W(W({},n),{},{message:e.target.value})}))},required:!0,value:null===o||void 0===o?void 0:o.message}),(0,q.jsx)(Z.Z,{mt:1}),(0,q.jsxs)(x.ZP,{children:[(0,q.jsx)(d.ZP,{borderLess:!0,onClick:function(){se({git_branch:W({action_type:"commit"},o)}).then((function(){ke(),c(null)}))},success:!0,children:"Commit"}),(0,q.jsx)(Z.Z,{mr:1}),(0,q.jsx)(d.ZP,{borderLess:!0,onClick:function(){se({git_branch:{action_type:"push"}})},primary:!0,children:"Push"})]})]}),"new_branch"===f&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(M.Z,{compact:!0,fullWidth:!0,label:"Branch name",monospace:!0,onChange:function(e){return c({name:e.target.value})},value:null===o||void 0===o?void 0:o.name}),(0,q.jsx)(Z.Z,{mt:1}),(0,q.jsx)(d.ZP,{borderLess:!0,onClick:function(){re({git_branch:o})},primary:!0,children:"Create"})]}),"clone"===f&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(O.ZP,{children:["Clone from ",(0,q.jsx)(O.ZP,{default:!0,inline:!0,children:null===ee||void 0===ee?void 0:ee.remote_repo_link})," to ",(0,q.jsx)(O.ZP,{default:!0,inline:!0,children:null===ee||void 0===ee?void 0:ee.repo_path}),". This ",(0,q.jsx)(O.ZP,{danger:!0,inline:!0,children:"will overwrite"})," any existing data in the local repository."]}),(0,q.jsx)(Z.Z,{mt:1}),(0,q.jsx)(d.ZP,{borderLess:!0,onClick:function(){fe({git_branch:{action_type:"clone"}})},primary:!0,children:"Clone"})]}),"pull"===f&&(0,q.jsx)(d.ZP,{borderLess:!0,onClick:function(){fe({git_branch:{action_type:"pull"}})},primary:!0,children:"Pull"}),"reset_hard"===f&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Z.Z,{mb:1,children:(0,q.jsx)(O.ZP,{children:s||"This will reset your local branch to match the remote branch."})}),s?(0,q.jsx)(d.ZP,{borderLess:!0,onClick:function(){u(null),fe({git_branch:{action_type:"reset"}})},warning:!0,children:"Confirm"}):(0,q.jsx)(d.ZP,{borderLess:!0,onClick:function(){return u("Are you sure you want to reset your branch? Your local changes may be erased.")},primary:!0,children:"Reset branch"})]}),(0,q.jsx)(Z.Z,{mt:1,children:!Ce&&(0,q.jsxs)(q.Fragment,{children:[!H&&g&&(0,q.jsx)(O.ZP,{children:g}),H&&(0,q.jsx)(O.ZP,{preWrap:!0,danger:!0,children:H})]})})]})})}),[Ce,f,H,ee,g,o,s,xe]),De=(0,l.useMemo)((function(){return(0,q.jsx)(C.Z,{lastMessage:Fe,sendMessage:_e})}),[Fe,_e]);return(0,q.jsxs)(A,{children:[(0,q.jsxs)(T,{children:[(0,q.jsx)(Z.Z,{m:2,children:(0,q.jsxs)(x.ZP,{children:[(0,q.jsx)(w.Z,{beforeIcon:(0,q.jsx)(S.I0,{}),compact:!0,onChange:function(e){e.preventDefault(),re({git_branch:{name:e.target.value}})},placeholder:"Select a branch",value:t,children:null===K||void 0===K?void 0:K.map((function(e){var n=e.name;return(0,q.jsx)("option",{value:n,children:n},n)}))},"select_branch"),(0,q.jsx)(Z.Z,{ml:2}),(0,q.jsxs)(w.Z,{compact:!0,onChange:function(e){e.preventDefault(),p(e.target.value),X(!1),m(null),c(null)},value:f,children:[(0,q.jsx)("option",{value:"",children:"Select an action"}),Object.entries(Y).map((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];return(0,q.jsx)("option",{value:t,children:i},t)}))]},"select_git_action")]})}),(0,q.jsx)(Z.Z,{m:2,children:(0,q.jsxs)(x.ZP,{alignItems:"center",children:[(0,q.jsx)(O.ZP,{children:"UI"}),(0,q.jsx)(Z.Z,{ml:1}),(0,q.jsx)(F.Z,{checked:!!E,monotone:!0,onCheck:function(){return X((function(e){return!e}))}}),(0,q.jsx)(Z.Z,{ml:1}),(0,q.jsx)(O.ZP,{children:"Terminal"})]})})]}),(0,q.jsxs)(x.ZP,{children:[(0,q.jsx)("div",{style:{width:"50%"},children:(0,q.jsx)(N,{children:"commit"===f?ze:(0,q.jsx)(q.Fragment,{children:null===xe||void 0===xe||null===(n=xe.split("\\n"))||void 0===n?void 0:n.map((function(e){return(0,q.jsx)(O.ZP,{monospace:!0,preWrap:!0,small:!0,children:e},e)}))})})}),(0,q.jsx)("div",{style:{width:"50%"},children:E?(0,q.jsx)(L,{children:De}):He})]})]})},J=18.53/14;var Q=function(e){var n=e.height,t=e.width,r=n||(t?t*(1/J):14),i=t||(n?n*J:18.53);return(0,q.jsxs)("svg",{width:i,height:r,viewBox:"0 0 20 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,q.jsx)("path",{opacity:"0.4",d:"M15.3266 0L19.2641 1.82961e-06L11.9687 14L8.03125 14L15.3266 0Z",fill:"url(#paint0_linear_1303_5)"}),(0,q.jsx)("path",{d:"M11.9692 1.82961e-06L8.03164 0L0.736328 14L4.67383 14L8.03164 7.55626V14H11.9691V8.38194e-05L11.9692 1.82961e-06Z",fill:"url(#paint1_linear_1303_5)"}),(0,q.jsx)("path",{d:"M15.3269 2.57679e-06H19.2644V14H15.3269V2.57679e-06Z",fill:"url(#paint2_linear_1303_5)"}),(0,q.jsxs)("defs",{children:[(0,q.jsxs)("linearGradient",{id:"paint0_linear_1303_5",x1:"8.03125",y1:"7",x2:"19.2641",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,q.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,q.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,q.jsxs)("linearGradient",{id:"paint1_linear_1303_5",x1:"0.736328",y1:"7",x2:"19.2644",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,q.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,q.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,q.jsxs)("linearGradient",{id:"paint2_linear_1303_5",x1:"0.736328",y1:"7",x2:"19.2644",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,q.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,q.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})]})]})},K=t(93369),$=t(48670),ee=t(63637),ne=t(89515),te=t(26304),re="12px 20px",ie="1px",oe=(0,c.default)(d.ZP).withConfig({displayName:"indexstyle__ButtonStyle",componentId:"sc-hssntx-0"})(["",";"],(function(e){return e.active&&"\n background-color: ".concat((e.theme.background||z.Z.background).dashboard,";\n ")})),ce=c.default.div.withConfig({displayName:"indexstyle__DropdownContainerStyle",componentId:"sc-hssntx-1"})(["position:absolute;top:",";right:0;width:","px;display:flex;flex-direction:column;gap:",";overflow:hidden;background-color:",";border-radius:","px;border:1px solid ",";"],(function(e){return e.top||0}),45*E.iI,ie,(function(e){return(e.theme.borders||z.Z.borders).darkLight}),H.n_,(function(e){return(e.theme.borders||z.Z.borders).darkLight})),le=c.default.div.withConfig({displayName:"indexstyle__DropdownHeaderStyle",componentId:"sc-hssntx-2"})(["padding:",";background-color:",";"],re,(function(e){return(e.theme.background||z.Z.background).panel})),ae=c.default.div.withConfig({displayName:"indexstyle__TimeListContainerStyle",componentId:"sc-hssntx-3"})(["height:","px;display:flex;gap:",";"],20*E.iI,ie),se=c.default.div.withConfig({displayName:"indexstyle__TimeColumnStyle",componentId:"sc-hssntx-4"})(["display:flex;flex-direction:column;align-items:center;flex:1;gap:",";"],ie),ue=c.default.div.withConfig({displayName:"indexstyle__DropdownCellStyle",componentId:"sc-hssntx-5"})(["width:100%;padding:",";display:flex;flex-direction:",";flex-grow:",";justify-content:center;align-items:center;background-color:",";"],re,(function(e){return e.flexDirection||"unset"}),(function(e){return e.flexGrow||"unset"}),(function(e){return(e.theme.background||z.Z.background).dashboard})),de=c.default.div.withConfig({displayName:"indexstyle__ToggleGroupStyle",componentId:"sc-hssntx-6"})(["display:flex;flex-direction:column;"]),he=(0,c.default)(ue).withConfig({displayName:"indexstyle__ToggleDropdownCellStyle",componentId:"sc-hssntx-7"})(["justify-content:flex-start;gap:12px;"]),fe=["active","mountedCallback","time","timeZone"];function pe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ve(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pe(Object(t),!0).forEach((function(n){(0,m.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function xe(e){var n=e.active,t=e.mountedCallback,r=e.time,i=e.timeZone,o=(0,te.Z)(e,fe),c=(0,l.useRef)(null);return(0,l.useEffect)((function(){null!==c&&void 0!==c&&c.current&&t(c.current.offsetHeight)}),[t]),(0,q.jsx)(oe,ve(ve({},o),{},{active:n,borderLess:!0,borderRadius:"".concat(H.BG,"px"),compact:!0,highlightOnHoverAlt:!0,ref:c,transparent:!0,children:(0,q.jsx)(O.ZP,{inline:!0,monospace:!0,small:!0,children:"".concat(r," ").concat(i)})}))}var ge=(0,l.memo)(xe),me=t(63055),be=t(79633),je=t(3917),ye=t(78419),we=t(53808);var Ze=[je.Oh.UTC,je.Oh.LOCAL];var ke=function(){var e=(0,l.useState)((0,we.U2)(ye.Uo,!1)),n=e[0],t=e[1],r=(0,l.useState)((0,we.U2)(ye.kL,!1)),i=r[0],o=r[1],c=(0,l.useState)(!1),a=c[0],s=c[1],u=(0,l.useState)((0,je.e)({includeSeconds:!0,timeZones:Ze})),d=u[0],h=u[1],p=(0,l.useState)(0),v=p[0],x=p[1],g=n?je.Oh.LOCAL:je.Oh.UTC,m=window.innerWidth<me.nc,b=(0,l.useCallback)((function(){s((function(e){return!e}))}),[]),j=(0,l.useCallback)((function(e){x(e)}),[]),y=(0,l.useCallback)((function(){var e=(0,je.e)({includeSeconds:i,timeZones:Ze});h((function(n){return n.size===e.size&&n.get(je.Oh.UTC)===e.get(je.Oh.UTC)?n:e}))}),[i]),w=[{checked:n,label:"Show as local time",onCheck:function(){var e;t((e=!n,(0,we.uN)(ye.Uo,e)))}},{checked:i,label:"Include seconds",onCheck:function(){var e;o((e=!i,(0,we.uN)(ye.kL,e)))}}];return(0,l.useEffect)((function(){var e=setInterval((function(){y()}),1e3);return function(){return clearInterval(e)}}),[y]),(0,l.useEffect)((function(){y()}),[i,y]),d?(0,q.jsx)(f.Z,{onClickOutside:function(){return s(!1)},open:!0,children:(0,q.jsxs)("div",{style:{position:"relative"},children:[(0,q.jsx)(ge,{active:a,disabled:m,mountedCallback:j,onClick:b,time:d.get(g),timeZone:(0,je.WT)(g)}),!m&&a&&(0,q.jsxs)(ce,{top:v,children:[(0,q.jsx)(le,{children:(0,q.jsx)(O.ZP,{bold:!0,muted:!0,uppercase:!0,children:"Current Time"})}),(0,q.jsx)(ae,{children:Ze.map((function(e){return(0,q.jsxs)(se,{children:[(0,q.jsx)(ue,{children:(0,q.jsx)(O.ZP,{bold:!0,center:!0,muted:!0,uppercase:!0,children:"".concat(e).concat(e===je.Oh.LOCAL?" - ".concat((0,je.WT)(e)):"")})}),(0,q.jsxs)(ue,{flexDirection:"column",flexGrow:3,children:[(0,q.jsx)(O.ZP,{bold:!0,center:!0,color:be.J$,largeLg:!0,children:d.get(e)}),(0,q.jsx)(O.ZP,{center:!0,muted:!0,small:!0,children:e===je.Oh.UTC?"Universal Time":je.mi[e]})]})]},e)}))}),(0,q.jsx)(de,{children:w.map((function(e){return(0,q.jsxs)(he,{children:[(0,q.jsx)(F.Z,{checked:e.checked,compact:!0,onCheck:e.onCheck,purpleBackground:!0}),(0,q.jsx)(O.ZP,{children:e.label})]},e.label)}))})]})]})}):null},Ce=t(12468),Oe=t(46684),Pe=t(87848),Me=t(95363),Fe=t(69419),_e=t(89538);var Se=function(e){var n,t=e.breadcrumbs,i=e.menuItems,m=e.project,b=e.version,j=(0,l.useContext)(c.ThemeContext),y=(0,G.PR)(),w=(0,l.useState)(!1),k=w[0],C=w[1],P=(0,l.useState)(null),M=P[0],F=P[1],z=(0,l.useState)(!1),H=z[0],D=z[1],I=(0,l.useState)(null),T=I[0],L=I[1],A=(0,l.useRef)(null),N=(0,l.useRef)(null),B=(0,a.useRouter)(),R=_.ZP.git_branches.detail("test",{_format:"with_basic_details"},{revalidateOnFocus:!1}),U=R.data,X=R.mutate,W=(0,l.useMemo)((function(){return(null===U||void 0===U?void 0:U.git_branch)||{}}),[U]),Y=W.is_git_integration_enabled,J=W.name,te=_.ZP.projects.list({},{revalidateOnFocus:!1},{pauseFetch:!!m}).data,re=(0,l.useMemo)((function(){var e;return m||(null===te||void 0===te||null===(e=te.projects)||void 0===e?void 0:e[0])}),[te,m]),ie=(0,l.useMemo)((function(){return b||(null===re||void 0===re?void 0:re.version)}),[re,b]),oe=s.Z.isLoggedIn(),ce=(0,l.useMemo)((function(){return t||[{bold:!0,label:function(){return null===re||void 0===re?void 0:re.name},linkProps:{href:"/",sameColorText:!0}}]}),[t,re]),le=B.query.pipeline,ae=(re||{}).latest_version,se=(0,l.useMemo)((function(){return(0,q.jsx)(o(),{as:"/",href:"/",passHref:!0,children:(0,q.jsx)($.Z,{block:!0,height:Oe.y7,noHoverUnderline:!0,noOutline:!0,children:(0,q.jsx)(Q,{height:Oe.y7})})})}),[]),ue=[{label:function(){return"Settings"},linkProps:{href:"/settings/workspace/preferences"},uuid:"user_settings"}];(0,G.YB)()&&ue.push({label:function(){return"Sign out"},onClick:function(){s.Z.logout((function(){_.ZP.sessions.updateAsync(null,1).then((function(){(0,Fe.nL)("/sign-in")})).catch((function(){(0,Fe.nL)("/")}))}))},uuid:"sign_out"});var de=(0,_e.dd)((function(){return(0,q.jsx)(V,{branch:J,fetchBranch:X})}),{},[J,X],{background:!0,uuid:"git_actions"}),he=(0,r.Z)(de,2),fe=he[0],pe=(he[1],(0,l.useMemo)((function(){return(null===J||void 0===J?void 0:J.length)>=21?"".concat(J.slice(0,21),"..."):J}),[J])),ve=(0,l.useMemo)((function(){return!(!y||null===y||void 0===y||!y.avatar)&&!/[A-Za-z0-9]+/.exec((null===y||void 0===y?void 0:y.avatar)||"")}),[y]),xe=(0,l.useMemo)((function(){return!(!y||null===y||void 0===y||!y.avatar)&&!!/[A-Za-z0-9]+/.exec((null===y||void 0===y?void 0:y.avatar)||"")}),[y]),ge=(0,l.useMemo)((function(){var e;if(!y||null===y||void 0===y||!y.avatar)return(0,q.jsx)(ee.Z,{});var n={color:null===j||void 0===j||null===(e=j.content)||void 0===e?void 0:e.active,fontFamily:Me.v$};return xe?(n.fontSize=2*E.iI,n.lineHeight="".concat(2*E.iI,"px"),n.position="relative",n.top=1):n.fontSize=3*E.iI,(0,q.jsx)("div",{style:n,children:null===y||void 0===y?void 0:y.avatar})}),[xe,y]);return(0,q.jsx)(Oe.I5,{children:(0,q.jsx)(p.Z,{children:(0,q.jsxs)(x.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"space-between",children:[(0,q.jsxs)(v.Z,{alignItems:"center",children:[ie&&(0,q.jsx)(Ce.Z,{height:Oe.y7,label:"Version ".concat(ie),size:null,visibleDelay:300,widthFitContent:!0,children:se}),!ie&&se,(0,q.jsx)(u.Z,{breadcrumbs:ce})]}),(0,q.jsxs)(v.Z,{alignItems:"center",children:[Y&&J&&(0,q.jsx)(Z.Z,{ml:1,children:(0,q.jsx)(K.ZP,{compact:!0,highlightOnHoverAlt:!0,noBackground:!0,noHoverUnderline:!0,onClick:fe,sameColorAsText:!0,title:J,uuid:"Header/GitActions",children:(0,q.jsxs)(x.ZP,{alignItems:"center",children:[(0,q.jsx)(S.I0,{size:1.5*E.iI}),(0,q.jsx)(Z.Z,{ml:1}),(0,q.jsx)(O.ZP,{monospace:!0,small:!0,children:pe})]})})}),(0,q.jsx)(Z.Z,{ml:1,children:(0,q.jsx)(ke,{})}),ie&&"undefined"!==typeof ie&&(0,q.jsx)(Z.Z,{ml:2,children:(0,q.jsx)($.Z,{href:"https://www.mage.ai/changelog",monospace:!0,openNewWindow:!0,sameColorAsText:!0,small:!0,children:"v".concat(ie)})}),ae&&ie&&ae!==ie&&(0,q.jsx)(Z.Z,{ml:1,children:(0,q.jsx)(d.ZP,{backgroundColor:be.$R,borderLess:!0,compact:!0,linkProps:{href:"https://docs.mage.ai/about/releases"},noHoverUnderline:!0,pill:!0,sameColorAsText:!0,target:"_blank",title:"Update to version ".concat(ae),children:(0,q.jsx)(O.ZP,{black:!0,bold:!0,children:"Update"})})}),(0,q.jsx)(Z.Z,{ml:3,children:(0,q.jsx)(K.ZP,{beforeElement:(0,q.jsx)(S.jR,{}),compact:!0,highlightOnHoverAlt:!0,inline:!0,linkProps:{as:"https://www.mage.ai/chat",href:"https://www.mage.ai/chat"},noBackground:!0,noHoverUnderline:!0,openNewTab:!0,sameColorAsText:!0,uuid:"Header/live_chat",children:"Live help"})}),i&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Z.Z,{ml:2}),(0,q.jsx)(f.Z,{onClickOutside:function(){return F(null)},open:!0,style:{position:"relative"},children:(0,q.jsxs)(x.ZP,{children:[(0,q.jsx)(Pe.u,{highlighted:0===M,onClick:function(){return F((function(e){return 0===e?null:0}))},onMouseEnter:function(){return F((function(e){return null!==e?0:null}))},ref:A,children:(0,q.jsx)(O.ZP,{children:"Menu"})}),(0,q.jsx)(g.Z,{alternateBackground:!0,items:i,onClickCallback:function(){return F(null)},open:0===M,parentRef:A,rightOffset:0,setConfirmationAction:L,setConfirmationDialogueOpen:D,uuid:"PipelineDetail/Header/menu"})]})}),(0,q.jsx)(f.Z,{onClickOutside:function(){return D(!1)},open:H,children:(0,q.jsx)(ne.Z,{danger:!0,onCancel:function(){return D(!1)},onClick:T,right:16*E.iI,subtitle:"This is irreversible and will immediately delete everything associated with the pipeline, including its blocks, triggers, runs, logs, and history.",title:"Are you sure you want to delete the pipeline ".concat(le,"?"),width:40*E.iI})})]}),(oe||!(0,G.YB)())&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Z.Z,{ml:2}),(0,q.jsx)(f.Z,{onClickOutside:function(){return C(!1)},open:!0,style:{position:"relative"},children:(0,q.jsxs)(x.ZP,{alignItems:"center",flexDirection:"row",children:[(0,q.jsx)(Pe.u,{onClick:function(){return C(!0)},ref:N,children:ve&&(null===y||void 0===y||null===(n=y.avatar)||void 0===n?void 0:n.length)>=2?ge:(0,q.jsx)(h.Z,{color:be.Jm,size:4*E.iI,children:ge})}),(0,q.jsx)(g.Z,{alternateBackground:!0,items:ue,onClickCallback:function(){return C(!1)},open:k,parentRef:N,rightOffset:0,uuid:"shared/Header/user_menu"})]})})]})]})]})})})}},48339:function(e,n,t){var r,i;t.d(n,{Gi:function(){return i},jU:function(){return c},uF:function(){return r}}),function(e){e.BUSY="busy",e.IDLE="idle",e.QUEUED="queued"}(r||(r={})),function(e){e.IMAGE_PNG="image/png",e.PROGRESS="progress",e.TABLE="table",e.TEXT="text",e.TEXT_HTML="text/html",e.TEXT_PLAIN="text/plain"}(i||(i={}));var o,c=[i.TEXT,i.TEXT_PLAIN];!function(e){e.DISPLAY_DATA="display_data",e.STATUS="status",e.STREAM="stream",e.STREAM_PIPELINE="stream_pipeline"}(o||(o={}))},89515:function(e,n,t){t.d(n,{Z:function(){return x}});var r=t(71180),i=t(55485),o=t(38626),c=t(44897),l=t(42631),a=t(31353),s=t(70515),u=t(28598),d=o.default.div.withConfig({displayName:"PopupMenuContainer__ContainerStyle",componentId:"sc-lq9od4-0"})(["border-radius:","px;padding:","px;position:absolute;z-index:",";cursor:default;"," "," "," "," "," "," "," "," ",""],l.TR,2*s.iI,a.bf+100,(function(e){return"\n background-color: ".concat((e.theme.interactive||c.Z.interactive).defaultBackground,";\n box-shadow: ").concat((e.theme.shadow||c.Z.shadow).window,";\n ")}),(function(e){return"undefined"!==typeof e.left&&"\n left: ".concat(e.left,"px;\n ")}),(function(e){return"undefined"!==typeof e.right&&"\n right: ".concat(e.right,"px;\n ")}),(function(e){return"undefined"!==typeof e.top&&"\n top: ".concat(e.top,"px;\n ")}),(function(e){return"undefined"!==typeof e.bottom&&"\n bottom: ".concat(e.bottom,"px;\n ")}),(function(e){return"undefined"===typeof e.top&&"undefined"===typeof e.bottom&&"\n top: ".concat(a.Mz-1*s.iI,"px;\n ")}),(function(e){return e.centerOnScreen&&"\n top: 40%;\n left: 50%;\n transform: translate(-50%,-50%);\n "}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}),(function(e){return!e.width&&"\n min-width: ".concat(33*s.iI,"px;\n ")}));var h=function(e){var n=e.bottom,t=e.centerOnScreen,r=e.children,i=e.left,o=e.right,c=e.top,l=e.width;return(0,u.jsx)(d,{bottom:n,centerOnScreen:t,left:i,right:o,top:c,width:l,children:r})},f=t(38276),p=t(30160),v=32*s.iI;var x=function(e){var n=e.bottom,t=e.cancelText,o=e.centerOnScreen,c=e.confirmText,l=e.danger,a=e.left,s=e.isLoading,d=e.neutral,x=e.onCancel,g=e.onClick,m=e.right,b=e.subtitle,j=e.title,y=e.top,w=e.width;return(0,u.jsxs)(h,{bottom:n,centerOnScreen:o,left:a,right:m,top:y,width:w||v,children:[(0,u.jsxs)(i.ZP,{alignItems:"center",flexDirection:"column",children:[(0,u.jsx)(f.Z,{pb:1,children:(0,u.jsx)(p.ZP,{bold:!0,danger:l,large:!0,warning:!l,whiteSpaceNormal:!0,children:j})}),(0,u.jsx)(p.ZP,{small:!0,children:b})]}),(0,u.jsx)(f.Z,{mt:2,children:(0,u.jsxs)(i.ZP,{alignItems:"center",justifyContent:"center",children:[x&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(r.ZP,{onClick:x,children:t||"Cancel"}),(0,u.jsx)(f.Z,{mr:1})]}),(0,u.jsx)(r.ZP,{loading:s,onClick:g,children:(0,u.jsx)(p.ZP,{bold:!0,danger:l,success:!l&&!d,children:c||"Confirm"})})]})})]})}},70652:function(e,n,t){var r=t(21831),i=t(82394),o=t(26304),c=(t(82684),t(38626)),l=t(55485),a=t(38276),s=t(30160),u=t(44897),d=t(72473),h=t(42631),f=t(70515),p=t(28598),v=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];function x(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?x(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var m=c.default.div.withConfig({displayName:"Checkbox__CheckboxContainer",componentId:"sc-ujqx42-0"})(["display:inline-block;vertical-align:middle;cursor:pointer;"]),b=c.default.div.withConfig({displayName:"Checkbox__ErrorContainer",componentId:"sc-ujqx42-1"})(["margin-top:4px;"]),j=c.default.input.withConfig({displayName:"Checkbox__HiddenCheckbox",componentId:"sc-ujqx42-2"})(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;",""],(function(e){return e.notClickable&&"\n background-color: ".concat((e.theme.content||u.Z.content).disabled,"\n border-color: ").concat((e.theme.content||u.Z.content).disabled,"\n\n &:hover {\n cursor: not-allowed;\n }\n ")})),y=c.default.div.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-ujqx42-3"})(["border-radius:","px;height:","px;transition:all 150ms;width:","px;svg{position:relative;visibility:",";}"," "," "," "," input[disabled]{cursor:default;}"," ",""],.5*f.iI,2*f.iI,2*f.iI,(function(e){return e.checked||e.required?"visible":"hidden"}),(function(e){return e.large&&"\n svg {\n left: -4px;\n top: -8px;\n }\n "}),(function(e){return!e.checked&&"\n background-color: ".concat((e.theme.background||u.Z.background).popup,";\n border: ").concat(h.PV,"px ").concat(h.M8," ").concat((e.theme.content||u.Z.content).muted,";\n ")}),(function(e){return e.checked&&"\n background-color: ".concat((e.theme.interactive||u.Z.interactive).checked,";\n border: ").concat(h.YF,"px ").concat(h.M8," transparent;\n ")}),(function(e){return e.required&&"\n background-color: ".concat((e.theme.content||u.Z.content).disabled,";\n border: ").concat(h.YF,"px ").concat(h.M8," transparent;\n ")}),(function(e){return e.disabled&&"\n background-color: ".concat((e.theme.content||u.Z.content).disabled,";\n border-color: ").concat((e.theme.content||u.Z.content).disabled,";\n\n &:hover {\n cursor: not-allowed;\n }\n ")}),(function(e){return e.warning&&"\n background-color: ".concat((e.theme.accent||u.Z.accent).warning,";\n border-color: ").concat((e.theme.interactive||u.Z.interactive).defaultBorder,"\n ")})),w=c.default.label.withConfig({displayName:"Checkbox__LabelStyle",componentId:"sc-ujqx42-4"})(["-ms-flex-direction:column;align-items:center;display:flex;flex-direction:column;flex-direction:row;&:hover{cursor:pointer;}"]);n.Z=function(e){var n=e.beforeIcon,t=e.checked,i=e.disabled,c=e.errorMessage,u=e.label,h=e.labelDescription,x=e.large,Z=e.meta,k=e.monospace,C=void 0!==k&&k,O=e.onClick,P=e.required,M=e.small,F=void 0!==M&&M,_=e.warning,S=e.xsmall,z=void 0!==S&&S,H=(0,o.Z)(e,v),D=_||!!(c||Z&&Z.touched&&Z.error);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(w,{onClick:function(e){e.preventDefault(),O&&!i&&O(e)},children:[(0,p.jsxs)(m,{children:[(0,p.jsx)(j,g(g({},H),{},{disabled:i?"disabled":void 0,notClickable:i})),(0,p.jsx)(y,{checked:t,disabled:i,large:x,required:P,warning:D,children:(0,p.jsx)(d.Jr,{size:f.iI*(x?3:2)})})]}),n&&(0,p.jsx)(a.Z,{ml:1,children:(0,p.jsx)(l.ZP,{children:n})}),u&&(0,p.jsxs)(a.Z,{pl:1,children:["string"===typeof u&&(0,p.jsx)(s.ZP,{disabled:i,lineThrough:i,monospace:C,small:F,xsmall:z,children:u}),"string"!==typeof u&&u,h&&(0,p.jsx)(s.ZP,{muted:!0,small:!0,children:h})]})]}),(c||Z&&Z.touched&&Z.error)&&(0,p.jsx)(b,{children:(0,p.jsx)(s.ZP,{small:!0,warning:!0,children:c?(0,r.Z)(c):Z.error})})]})}},39867:function(e,n,t){var r=t(82394),i=t(26304),o=t(38626),c=t(97618),l=t(55485),a=t(44897),s=t(42631),u=t(70515),d=t(28598),h=["children"];function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var v=o.default.div.withConfig({displayName:"Circle__CircleStyle",componentId:"sc-1o70504-0"})([""," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ",""],(function(e){return!e.square&&"\n border-radius: 50%;\n "}),(function(e){return e.square&&"\n border-radius: ".concat(e.size>=2*u.iI?s.BG:2,"px;\n ")}),(function(e){return!e.color&&!(e.borderSize||e.borderColor)&&"\n background-color: ".concat((e.theme.content||a.Z.content).muted,";\n ")}),(function(e){return!e.color&&e.primary&&"\n background-color: ".concat((e.theme.interactive||a.Z.interactive).linkPrimary,";\n ")}),(function(e){return!e.color&&e.primaryLight&&"\n background-color: ".concat((e.theme.interactive||a.Z.interactive).linkPrimaryLight,";\n ")}),(function(e){return e.success&&!e.borderSize&&"\n background-color: ".concat((e.theme.status||a.Z.status).positive,";\n ")}),(function(e){return e.warning&&!e.borderSize&&"\n background-color: ".concat((e.theme.accent||a.Z.accent).warning,";\n ")}),(function(e){return e.success&&e.borderSize&&"\n border-color: ".concat((e.theme.status||a.Z.status).positive," !important;\n ")}),(function(e){return e.warning&&e.borderSize&&"\n border-color: ".concat((e.theme.accent||a.Z.accent).warning," !important;\n ")}),(function(e){return e.borderSize&&"\n border-style: solid;\n border-width: ".concat(e.borderSize,"px;\n ")}),(function(e){return(e.borderSize||e.borderColor)&&"\n border: ".concat(e.borderSize||1,"px solid ").concat(e.borderColor||(e.theme.content||a.Z.content).active,";\n ")}),(function(e){return e.color&&"\n background-color: ".concat(e.color,";\n ")}),(function(e){return e.size&&"\n height: ".concat(e.size,"px;\n width: ").concat(e.size,"px;\n ")}),(function(e){return e.danger&&"\n background-color: ".concat((e.theme.borders||a.Z.borders).danger,";\n ")}),(function(e){return e.muted&&"\n border-color: ".concat((e.theme.content||a.Z.content).muted,";\n ")}),(function(e){return e.default&&"\n border-color: ".concat((e.theme.monotone||a.Z.monotone).gray,";\n ")}));n.Z=function(e){var n=e.children,t=(0,i.Z)(e,h);return(0,d.jsx)(v,p(p({},t),{},{children:(0,d.jsx)(l.ZP,{alignItems:"center",fullHeight:!0,fullWidth:!0,justifyContent:"center",children:n&&(0,d.jsx)(c.Z,{children:n})})}))}},35576:function(e,n,t){var r=t(82394),i=t(26304),o=t(82684),c=t(38626),l=t(28968),a=t(28598),s=["rows"];function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var h=c.default.textarea.withConfig({displayName:"TextArea__TextInputStyle",componentId:"sc-112wx63-0"})(["",""],l.p),f=function(e,n){var t=e.rows,r=void 0===t?3:t,o=(0,i.Z)(e,s);return(0,a.jsx)(l.Z,d(d({},o),{},{input:(0,a.jsx)(h,d({rows:r},o)),ref:n}))};n.Z=o.forwardRef(f)},69650:function(e,n,t){var r=t(82394),i=t(26304),o=t(82684),c=t(38626),l=t(28968),a=t(44897),s=t(3314),u=t(28598),d=["checked","disabled","onCheck","pauseEvent"];function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var p=c.default.label.withConfig({displayName:"ToggleSwitch__ToggleSwitchStyle",componentId:"sc-179r5zs-0"})([""," position:relative;display:inline-block;width:","px;min-width:","px;height:","px;",' & input[type="checkbox"]{display:none;}& span{position:absolute;cursor:',";background-color:",";border-radius:13px;",';top:0;right:0;bottom:0;left:0;transition:background-color 0.2s ease;}& span::before{position:absolute;content:"";left:',"px;top:","px;width:","px;height:",'px;background-color:#787A85;border-radius:50%;transition:transform 0.3s ease;}& input[type="checkbox"]:checked + span::before{transform:',";}"," ",""],l.p,46,46,26,(function(e){return e.compact&&"\n width: ".concat(35,"px;\n min-width: ").concat(35,"px;\n height: ").concat(20,"px;\n ")}),(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.disabled?a.Z.monotone.white:a.Z.monotone.black}),(function(e){return e.disabled&&"border: 1px solid ".concat(a.Z.monotone.grey200)}),(function(e){return e.compact?"1":"2"}),(function(e){return e.compact?"1":"2"}),(function(e){return e.compact?"18":"22"}),(function(e){return e.compact?"18":"22"}),(function(e){return e.compact?"translateX(15px)":"translateX(20px)"}),(function(e){return!e.disabled&&!e.monotone&&'\n & input[type="checkbox"]:checked + span {\n background-color: '.concat(a.Z.accent.sky,';\n }\n\n & input[type="checkbox"]:checked + span::before {\n background-color: ').concat(a.Z.monotone.white,";\n }\n ")}),(function(e){return e.purpleBackground&&'\n & input[type="checkbox"]:checked + span {\n background-color: '.concat(a.Z.interactive.purple,";\n }\n ")})),v=function(e,n){var t=e.checked,r=e.disabled,o=e.onCheck,c=e.pauseEvent,a=void 0===c||c,h=(0,i.Z)(e,d);return(0,u.jsx)(l.Z,f(f({},h),{},{disabled:r,input:(0,u.jsxs)(p,f(f({},h),{},{disabled:r,noBackground:!0,noBorder:!0,children:[(0,u.jsx)("input",{checked:t,readOnly:!0,type:"checkbox"}),(0,u.jsx)("span",{onClick:r?null:function(e){a&&(0,s.j)(e),null===o||void 0===o||o((function(e){return!e}))}})]})),noBackground:!0,ref:n}))};n.Z=o.forwardRef(v)},63637:function(e,n,t){var r=t(38626),i=t(28598),o=r.default.svg.withConfig({displayName:"Mage8Bit__SVGStyle",componentId:"sc-cj6ltf-0"})([""]);n.Z=function(e){var n=e.size,t=void 0===n?20:n,r=e.viewBox,c=void 0===r?"0 0 20 20":r;return(0,i.jsxs)(o,{height:t,viewBox:c,width:t,children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_297_42814)",children:[(0,i.jsx)("path",{d:"M13.334 0h1.66667v1.66667H13.334zM11.666 1.6665h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 1.6665h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M8.33398 1.6665h1.66667v1.66667H8.33398z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M8.33398 3.3335h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 3.3335h1.66667v1.66667H6.66602z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M3.33398 5h1.66667v1.66667H3.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M5 5h1.66667v1.66667H5z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 5h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 5h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 8.3335h1.66667v1.66667H6.66602z",fill:"#000"}),(0,i.jsx)("path",{d:"M6.66602 6.6665h1.66667v1.66667H6.66602z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M6.66602 10h1.66667v1.66667H6.66602z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M8.33398 6.6665h1.66667v1.66667H8.33398z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M1.66602 13.3335h1.66667v1.66667H1.66602z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M1.66602 11.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 10h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 8.3335h1.66667v1.66667H1.66602zM1.66602 6.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 6.6665h1.66667v1.66667H1.66602zM0 0h1.66667v1.66667H0zM3.33398 1.6665h1.66667v1.66667H3.33398zM0 3.3335h1.66667v1.66667H0z",fill:"#2ECDF7"}),(0,i.jsx)("path",{d:"M1.66602 16.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 16.6665h1.66667v1.66667H1.66602zM1.66602 18.3335h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 15h1.66667v1.66667H1.66602zM3.33398 15h1.66667v1.66667H3.33398z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M3.33398 16.6665h1.66667v1.66667H3.33398z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M3.33398 13.3335h1.66667v1.66667H3.33398z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M8.33398 8.3335h1.66667v1.66667H8.33398z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M10 6.6665h1.66667v1.66667H10z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M10 10h1.66667v1.66667H10z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M11.666 6.6665h1.66667v1.66667H11.666z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M11.666 8.3335h1.66667v1.66667H11.666z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M8.33398 10h1.66667v1.66667H8.33398z",fill:"#FF8DA9"}),(0,i.jsx)("path",{d:"M8.33398 11.6665h1.66667v1.66667H8.33398z",fill:"#FF8DA9"}),(0,i.jsx)("path",{d:"M6.66602 11.6665h1.66667v1.66667H6.66602z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M6.66602 11.6665h1.66667v1.66667H6.66602z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M5 10h1.66667v1.66667H5z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M5 8.3335h1.66667v1.66667H5z",fill:"#232429"}),(0,i.jsx)("path",{d:"M8.33398 11.6665h1.66667v1.66667H8.33398zM8.33398 13.3335h1.66667v1.66667H8.33398z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M10 11.6665h1.66667v1.66667H10z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M11.666 10h1.66667v1.66667H11.666zM13.334 6.6665h1.66667v1.66667H13.334zM13.334 8.3335h1.66667v1.66667H13.334z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M15 8.3335h1.66667v1.66667H15z",fill:"#757575"}),(0,i.jsx)("path",{d:"M15 10h1.66667v1.66667H15z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M10 8.3335h1.66667v1.66667H10z",fill:"#000"}),(0,i.jsx)("path",{d:"M8.33398 5h1.66667v1.66667H8.33398zM11.666 5h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M13.334 10h1.66667v1.66667H13.334zM11.666 11.6665h1.66667v1.66667H11.666zM10 13.3335h1.66667v1.66667H10z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M8.33398 15h1.66667v1.66667H8.33398zM6.66602 13.3335h1.66667v1.66667H6.66602zM15 11.6665h1.66667v1.66667H15z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M16.666 11.6665h1.66667v1.66667H16.666zM16.666 13.3335h1.66667v1.66667H16.666z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M15 13.3335h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M13.334 13.3335h1.66667v1.66667H13.334zM13.334 11.6665h1.66667v1.66667H13.334zM11.666 13.3335h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 15h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 15h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M8.33398 16.6665h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 15h1.66667v1.66667H6.66602z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M6.66602 16.6665h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M5 16.6665h1.66667v1.66667H5z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M5 18.3335h1.66667v1.66667H5z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 18.3335h1.66667v1.66667H6.66602zM8.33398 18.3335h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 18.3335h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 18.3335h1.66667v1.66667H11.666zM13.334 18.3335h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 18.3335h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M16.666 18.3335h1.66667v1.66667H16.666z",fill:"#652EFF"}),(0,i.jsx)("path",{d:"M3.33398 18.3335h1.66667v1.66667H3.33398zM10 16.6665h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 16.6665h1.66667v1.66667H11.666zM13.334 15h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M13.334 16.6665h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 16.6665h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 15h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M16.666 15h1.66667v1.66667H16.666zM18.334 16.6665h1.66667v1.66667H18.334zM18.334 18.3335h1.66667v1.66667H18.334z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M16.666 16.6665h1.66667v1.66667H16.666z",fill:"#652EFF"}),(0,i.jsx)("path",{d:"M13.334 5h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 5h1.66667v1.66667H15zM10 5h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 3.3335h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 3.3335h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 0h1.66667v1.66667H11.666z",fill:"#AF93FF"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_297_42814",children:(0,i.jsx)("path",{d:"M0 0h20v20H0z",fill:"#fff"})})})]})}},42041:function(e,n,t){t.d(n,{y:function(){return o}});var r=t(75582),i=t(39643);function o(e,n){var t=e.map((function(e){return String(e)})),o=e.includes(i.PQ),c=e.includes(i.zX),l=e.includes(i.XR),a=i.xU.map((function(e){return String(e)})),s=i.vk.map((function(e){return String(e)})),u=i.Tr.map((function(e){return String(e)})),d=Object.entries(n).find((function(e){var n=(0,r.Z)(e,2),i=n[0];return n[1]&&!t.includes(String(i))&&(!c||!s.includes(String(i)))&&(!o||!a.includes(String(i)))&&(!l||!u.includes(String(i)))}));return e.every((function(e){return n[e]}))&&!d}}}]);
|