mage-ai 0.9.45__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/constants.py +2 -0
- mage_ai/api/operations/base.py +230 -12
- mage_ai/api/policies/BasePolicy.py +3 -3
- mage_ai/api/policies/ComputeClusterPolicy.py +96 -0
- mage_ai/api/policies/ComputeConnectionPolicy.py +74 -0
- mage_ai/api/policies/ComputeServicePolicy.py +50 -0
- mage_ai/api/policies/DownloadPolicy.py +29 -0
- mage_ai/api/policies/GlobalHookPolicy.py +126 -0
- mage_ai/api/policies/IntegrationSourcePolicy.py +62 -0
- mage_ai/api/policies/OauthPolicy.py +56 -4
- mage_ai/api/policies/ProjectPolicy.py +1 -0
- mage_ai/api/presenters/ComputeClusterPresenter.py +19 -0
- mage_ai/api/presenters/ComputeConnectionPresenter.py +26 -0
- mage_ai/api/presenters/ComputeServicePresenter.py +15 -0
- mage_ai/api/presenters/DownloadPresenter.py +13 -0
- mage_ai/api/presenters/GlobalHookPresenter.py +74 -0
- mage_ai/api/presenters/IntegrationSourcePresenter.py +9 -2
- mage_ai/api/presenters/PipelinePresenter.py +3 -0
- mage_ai/api/presenters/PipelineRunPresenter.py +8 -3
- mage_ai/api/presenters/PipelineSchedulePresenter.py +22 -1
- mage_ai/api/presenters/ProjectPresenter.py +1 -0
- mage_ai/api/presenters/SparkApplicationPresenter.py +2 -0
- mage_ai/api/presenters/WorkspacePresenter.py +22 -22
- mage_ai/api/resources/AsyncBaseResource.py +39 -0
- mage_ai/api/resources/BlockResource.py +5 -0
- mage_ai/api/resources/ClusterResource.py +1 -1
- mage_ai/api/resources/ComputeClusterResource.py +109 -0
- mage_ai/api/resources/ComputeConnectionResource.py +103 -0
- mage_ai/api/resources/ComputeServiceResource.py +35 -0
- mage_ai/api/resources/DataProviderResource.py +2 -0
- mage_ai/api/resources/DownloadResource.py +56 -0
- mage_ai/api/resources/ExecutionStateResource.py +1 -1
- mage_ai/api/resources/GlobalHookResource.py +192 -0
- mage_ai/api/resources/IntegrationSourceResource.py +149 -2
- mage_ai/api/resources/KernelResource.py +10 -0
- mage_ai/api/resources/OauthResource.py +28 -33
- mage_ai/api/resources/PipelineResource.py +4 -4
- mage_ai/api/resources/PipelineScheduleResource.py +37 -16
- mage_ai/api/resources/ProjectResource.py +5 -3
- mage_ai/api/resources/SessionResource.py +0 -9
- mage_ai/api/resources/SparkApplicationResource.py +5 -5
- mage_ai/api/resources/SparkEnvironmentResource.py +1 -2
- mage_ai/api/resources/SparkExecutorResource.py +1 -2
- mage_ai/api/resources/SparkJobResource.py +3 -6
- mage_ai/api/resources/SparkSqlResource.py +6 -11
- mage_ai/api/resources/SparkStageAttemptResource.py +2 -3
- mage_ai/api/resources/SparkStageAttemptTaskResource.py +1 -2
- mage_ai/api/resources/SparkStageAttemptTaskSummaryResource.py +1 -2
- mage_ai/api/resources/SparkStageResource.py +3 -6
- mage_ai/api/resources/SparkThreadResource.py +1 -2
- mage_ai/api/resources/mixins/spark.py +25 -4
- mage_ai/authentication/oauth2.py +1 -3
- mage_ai/authentication/permissions/constants.py +4 -0
- mage_ai/authentication/providers/active_directory.py +136 -0
- mage_ai/authentication/providers/constants.py +3 -0
- mage_ai/authentication/providers/ghe.py +24 -25
- mage_ai/authentication/providers/google.py +25 -26
- mage_ai/authentication/providers/oauth.py +2 -2
- mage_ai/authentication/providers/okta.py +28 -29
- mage_ai/authentication/providers/sso.py +2 -2
- mage_ai/cluster_manager/aws/emr_cluster_manager.py +2 -1
- mage_ai/cluster_manager/workspace/base.py +7 -3
- mage_ai/data_integrations/destinations/constants.py +1 -0
- 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/executors/pipeline_executor.py +9 -0
- mage_ai/data_preparation/models/block/__init__.py +82 -17
- mage_ai/data_preparation/models/block/data_integration/constants.py +3 -0
- mage_ai/data_preparation/models/block/data_integration/data.py +1 -1
- mage_ai/data_preparation/models/block/data_integration/utils.py +196 -37
- mage_ai/data_preparation/models/block/spark/mixins.py +82 -34
- 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/download/__init__.py +8 -0
- mage_ai/data_preparation/models/global_hooks/__init__.py +0 -0
- mage_ai/data_preparation/models/global_hooks/constants.py +93 -0
- mage_ai/data_preparation/models/global_hooks/models.py +992 -0
- mage_ai/data_preparation/models/global_hooks/predicates.py +316 -0
- mage_ai/data_preparation/models/global_hooks/utils.py +21 -0
- mage_ai/data_preparation/models/pipeline.py +84 -6
- mage_ai/data_preparation/models/pipelines/integration_pipeline.py +0 -1
- mage_ai/data_preparation/models/pipelines/models.py +16 -0
- mage_ai/data_preparation/models/project/__init__.py +6 -0
- mage_ai/data_preparation/models/project/constants.py +1 -0
- mage_ai/data_preparation/models/project/models.py +12 -0
- mage_ai/data_preparation/preferences.py +29 -18
- mage_ai/data_preparation/repo_manager.py +35 -3
- 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/data_loaders/streaming/activemq.yaml +6 -0
- mage_ai/data_preparation/templates/data_loaders/streaming/nats.yaml +20 -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 +100 -36
- mage_ai/orchestration/pipeline_scheduler.py +58 -19
- mage_ai/orchestration/queue/process_queue.py +9 -1
- mage_ai/orchestration/triggers/api.py +11 -3
- mage_ai/orchestration/triggers/constants.py +1 -0
- mage_ai/server/active_kernel.py +37 -4
- mage_ai/server/api/downloads.py +76 -1
- 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-bf512b4dabbab7fa.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{7519-8c29bbb92e03cc77.js → 1845-5ce774d5ab81ed57.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1952-57858e7445d24413.js +1 -0
- 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/_next/static/chunks/3419-715ca383fa15a5ef.js +1 -0
- 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/3932-0ceca9599d6e6d00.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/5457-949640f4037bf12f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5499-76cf8f023c6b0985.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/553-7f7919e14392ca67.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5638-a65610405a70961c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5810-e26a0768db1cfdba.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5820-28adeabb5cda2b96.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/600-705fe234320ec5de.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3122-f27de34d0b5426af.js → frontend_dist/_next/static/chunks/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/5397-b5f2e477acc6bd6b.js → frontend_dist/_next/static/chunks/6965-c613d1834c8ed92d.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/7022-18fde36eb46e1d65.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_base_path_template/_next/static/chunks/7361-694e1e4fb9c97d68.js → frontend_dist/_next/static/chunks/7361-6c5c9063b9f91700.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/7858-c83d25349d0e980f.js → frontend_dist/_next/static/chunks/7858-d9df72e95e438284.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{8146-92e7ccfed169ee9c.js → 8146-27f0e31f309897a5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8264-0d582a6ca33c3dfa.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3684-cbda680fd8927d07.js → frontend_dist/_next/static/chunks/8432-f191e39f9b5893f2.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/90-a7308bae028d7001.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/framework-22b71764bf44ede4.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-78c4a077a2f279c2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-a24cb24b6f08bbc9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-419775ca1293b354.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-data-products/{[...slug]-3f6fc312f67ff72e.js → [...slug]-cfd68e760ae00958.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-data-products-f4cd03036c3e8723.js → global-data-products-c3b79ef31007f95b.js} +1 -1
- 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-fe6e73463a20d67c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-60845f0b59142f32.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-1d9b298fdceabbf1.js → frontend_dist/_next/static/chunks/pages/manage/users/[user]-9384c5f1efa2ac18.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-abd8571907664fdf.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{users-a7c970122a10afdc.js → users-28a930b148d99766.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-d8a38b5d1f50e798.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/overview-a4647a274cf4dffa.js → frontend_dist/_next/static/chunks/pages/overview-f0c40645f385f23f.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipeline-runs-c79819d6826e5416.js → pipeline-runs-b35d37bfba8fbccc.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]/dashboard-571c0962333b92f0.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-2333e524d34b474a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{logs-a52d2d3e0c2978f4.js → logs-ef680455ae54ccbe.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-ddddcddd2f74b4f6.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-4a238307feddb522.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-6d1afeb4a84f50f7.js +1 -0
- mage_ai/server/frontend_dist/_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]/runs-ce717786f31e8f04.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d20b2cd08907afd.js} +1 -1
- 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]/syncs-b75bf17498e87354.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/{[pipeline]-35fe7762cb83a733.js → [pipeline]-02c843b9c8418bb5.js} +1 -1
- 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/permissions/{[...slug]-d6a62284c7c99cb3.js → [...slug]-b78b1be5b9ed84b9.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{permissions-b1389695f758c32b.js → permissions-37b78a436eeab258.js} +1 -1
- 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/settings/workspace/roles/{[...slug]-0bdb66265286ab22.js → [...slug]-db05a80d18c168e5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{roles-e04e18fc295ca76a.js → roles-f55c77e4f46c8d33.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-2a1f8737561fdd94.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/{[...slug]-0267358c91122109.js → [...slug]-e3bf6e5d8bb250c4.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-50fed18bb9b8d142.js → users-20f0a050a42a015d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{settings-56f83205752b1323.js → settings-0f0121db7f5ff93d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-99e2748e3c1d57a3.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-9370551ffa462144.js → frontend_dist/_next/static/chunks/pages/templates/[...slug]-f44ccd1499ffd23a.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{templates-3cff90df13a1a755.js → templates-1bfaa1c50e844813.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-ed121e305169cf1c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/test-9ae68758102cc843.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/_next/static/chunks/{webpack-8af2b89c5a3779fc.js → webpack-fea697dd168c6d0c.js} +1 -1
- 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 +24 -0
- mage_ai/server/frontend_dist/global-hooks.html +24 -0
- 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 +24 -25
- 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 +15 -15
- 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-bf512b4dabbab7fa.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{7519-8c29bbb92e03cc77.js → 1845-5ce774d5ab81ed57.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-57858e7445d24413.js +1 -0
- 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_base_path_template/_next/static/chunks/3419-715ca383fa15a5ef.js +1 -0
- 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/3932-0ceca9599d6e6d00.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/5457-949640f4037bf12f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5499-76cf8f023c6b0985.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/553-7f7919e14392ca67.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5638-a65610405a70961c.js +1 -0
- 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/5820-28adeabb5cda2b96.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/600-705fe234320ec5de.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/3122-f27de34d0b5426af.js → frontend_dist_base_path_template/_next/static/chunks/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/5397-b5f2e477acc6bd6b.js → frontend_dist_base_path_template/_next/static/chunks/6965-c613d1834c8ed92d.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/7022-18fde36eb46e1d65.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/_next/static/chunks/7361-694e1e4fb9c97d68.js → frontend_dist_base_path_template/_next/static/chunks/7361-6c5c9063b9f91700.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/7858-c83d25349d0e980f.js → frontend_dist_base_path_template/_next/static/chunks/7858-d9df72e95e438284.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{8146-92e7ccfed169ee9c.js → 8146-27f0e31f309897a5.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-0d582a6ca33c3dfa.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/3684-cbda680fd8927d07.js → frontend_dist_base_path_template/_next/static/chunks/8432-f191e39f9b5893f2.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/90-a7308bae028d7001.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/framework-22b71764bf44ede4.js +1 -0
- 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/block-layout-a24cb24b6f08bbc9.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-419775ca1293b354.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-data-products/{[...slug]-3f6fc312f67ff72e.js → [...slug]-cfd68e760ae00958.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-data-products-f4cd03036c3e8723.js → global-data-products-c3b79ef31007f95b.js} +1 -1
- 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-fe6e73463a20d67c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-60845f0b59142f32.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage/users/[user]-1d9b298fdceabbf1.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-9384c5f1efa2ac18.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-abd8571907664fdf.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{users-a7c970122a10afdc.js → users-28a930b148d99766.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-d8a38b5d1f50e798.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/overview-a4647a274cf4dffa.js → frontend_dist_base_path_template/_next/static/chunks/pages/overview-f0c40645f385f23f.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{pipeline-runs-c79819d6826e5416.js → pipeline-runs-b35d37bfba8fbccc.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]/dashboard-571c0962333b92f0.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_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{logs-a52d2d3e0c2978f4.js → logs-ef680455ae54ccbe.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-ddddcddd2f74b4f6.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-4a238307feddb522.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-6d1afeb4a84f50f7.js +1 -0
- 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/_next/static/chunks/pages/pipelines/[pipeline]/runs-ce717786f31e8f04.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d20b2cd08907afd.js} +1 -1
- 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]/syncs-b75bf17498e87354.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/{[pipeline]-35fe7762cb83a733.js → [pipeline]-02c843b9c8418bb5.js} +1 -1
- 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/permissions/{[...slug]-d6a62284c7c99cb3.js → [...slug]-b78b1be5b9ed84b9.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{permissions-b1389695f758c32b.js → permissions-37b78a436eeab258.js} +1 -1
- 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/settings/workspace/roles/{[...slug]-0bdb66265286ab22.js → [...slug]-db05a80d18c168e5.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{roles-e04e18fc295ca76a.js → roles-f55c77e4f46c8d33.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-2a1f8737561fdd94.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/{[...slug]-0267358c91122109.js → [...slug]-e3bf6e5d8bb250c4.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{users-50fed18bb9b8d142.js → users-20f0a050a42a015d.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{settings-56f83205752b1323.js → settings-0f0121db7f5ff93d.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-99e2748e3c1d57a3.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/templates/[...slug]-9370551ffa462144.js → frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-f44ccd1499ffd23a.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{templates-3cff90df13a1a755.js → templates-1bfaa1c50e844813.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-ed121e305169cf1c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-9ae68758102cc843.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/_next/static/chunks/{webpack-074f3eb2281fba79.js → webpack-d30cb09c85b4c4f0.js} +1 -1
- 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 +24 -0
- mage_ai/server/frontend_dist_base_path_template/global-hooks.html +24 -0
- 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 +28 -29
- 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 +15 -15
- 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 +44 -12
- mage_ai/server/utils/output_display.py +6 -0
- mage_ai/server/websocket_server.py +14 -0
- mage_ai/services/aws/emr/config.py +1 -0
- mage_ai/services/aws/emr/constants.py +1 -0
- mage_ai/services/aws/emr/emr.py +20 -7
- mage_ai/services/compute/__init__.py +0 -0
- mage_ai/services/compute/aws/__init__.py +0 -0
- mage_ai/services/compute/aws/constants.py +21 -0
- mage_ai/services/compute/aws/models.py +459 -0
- mage_ai/services/compute/aws/steps.py +482 -0
- mage_ai/services/compute/constants.py +27 -0
- mage_ai/services/compute/models.py +212 -0
- mage_ai/services/k8s/job_manager.py +4 -0
- mage_ai/services/spark/api/aws_emr.py +38 -0
- mage_ai/services/spark/api/base.py +7 -4
- mage_ai/services/spark/api/constants.py +4 -0
- mage_ai/services/spark/api/local.py +25 -24
- mage_ai/services/spark/api/service.py +15 -5
- mage_ai/services/spark/constants.py +1 -1
- mage_ai/services/spark/models/applications.py +45 -3
- mage_ai/services/spark/models/base.py +3 -19
- mage_ai/services/spark/models/environments.py +16 -11
- mage_ai/services/spark/models/executors.py +2 -2
- mage_ai/services/spark/models/sqls.py +46 -15
- mage_ai/services/spark/models/stages.py +55 -32
- mage_ai/services/spark/models/threads.py +2 -2
- mage_ai/services/spark/utils.py +22 -6
- mage_ai/services/ssh/__init__.py +0 -0
- mage_ai/services/ssh/aws/__init__.py +0 -0
- mage_ai/services/ssh/aws/emr/__init__.py +0 -0
- mage_ai/services/ssh/aws/emr/constants.py +10 -0
- mage_ai/services/ssh/aws/emr/models.py +326 -0
- mage_ai/services/ssh/aws/emr/utils.py +151 -0
- mage_ai/settings/__init__.py +8 -1
- mage_ai/settings/repo.py +3 -0
- mage_ai/settings/secret_generation.py +7 -0
- mage_ai/settings/sso.py +8 -0
- mage_ai/shared/files.py +47 -0
- mage_ai/shared/hash.py +16 -0
- mage_ai/shared/models.py +254 -0
- mage_ai/streaming/constants.py +3 -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/streaming/sources/activemq.py +89 -0
- mage_ai/streaming/sources/nats_js.py +182 -0
- mage_ai/streaming/sources/source_factory.py +8 -0
- mage_ai/tests/ai/test_ai_functions.py +53 -8
- mage_ai/tests/api/endpoints/test_oauths.py +33 -0
- mage_ai/tests/api/endpoints/test_projects.py +1 -0
- mage_ai/tests/api/endpoints/test_workspaces.py +55 -0
- mage_ai/tests/api/operations/test_base.py +7 -5
- mage_ai/tests/api/operations/test_operations.py +0 -1
- mage_ai/tests/api/operations/test_operations_with_hooks.py +622 -0
- mage_ai/tests/api/operations/test_syncs.py +0 -1
- mage_ai/tests/api/operations/test_users.py +13 -2
- mage_ai/tests/api/policies/test_oauth_policy.py +38 -0
- mage_ai/tests/data_preparation/models/global_hooks/__init__.py +0 -0
- mage_ai/tests/data_preparation/models/global_hooks/test_global_hooks.py +600 -0
- mage_ai/tests/data_preparation/models/global_hooks/test_hook.py +804 -0
- mage_ai/tests/data_preparation/models/global_hooks/test_predicates.py +803 -0
- mage_ai/tests/data_preparation/models/global_hooks/test_utils.py +38 -0
- mage_ai/tests/data_preparation/models/test_block.py +26 -0
- mage_ai/tests/data_preparation/models/test_pipeline.py +15 -0
- mage_ai/tests/data_preparation/test_repo_manager.py +11 -0
- mage_ai/tests/factory.py +105 -5
- mage_ai/tests/orchestration/queue/test_process_queue.py +15 -2
- mage_ai/tests/orchestration/test_pipeline_scheduler.py +82 -1
- mage_ai/tests/services/k8s/test_job_manager.py +38 -1
- mage_ai/tests/shared/mixins.py +328 -0
- mage_ai/tests/shared/test_hash.py +17 -1
- mage_ai/tests/streaming/sinks/test_rabbitmq.py +36 -0
- mage_ai/tests/streaming/sources/test_activemq.py +32 -0
- mage_ai/tests/streaming/sources/test_nats_js.py +32 -0
- mage_ai/tests/streaming/sources/test_source_factory.py +26 -1
- {mage_ai-0.9.45.dist-info → mage_ai-0.9.47.dist-info}/METADATA +14 -4
- {mage_ai-0.9.45.dist-info → mage_ai-0.9.47.dist-info}/RECORD +467 -386
- {mage_ai-0.9.45.dist-info → mage_ai-0.9.47.dist-info}/WHEEL +1 -1
- mage_ai/authentication/oauth/active_directory.py +0 -17
- mage_ai/server/frontend_dist/_next/static/chunks/1125-91d3ce33140ef041.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1749-607014ecf28268bf.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1952-573c7fc7ad84da6e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3004-231cad9039ae5dcb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3419-0873e170ef7d6303.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-335766a915ee2fa9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5457-8be2e0a3fe0ba64b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5499-bca977f466e259e1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/553-edf533e634e85192.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5810-37c6091b29a1fe53.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/600-0733eb84f0a0a9e0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6333-95ad799d13326dce.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/722-2a171fe616310f60.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8224-39a93ee1058b6069.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8264-6ef8fdb195694807.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-1b5c4b071ed544c3.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/framework-7c365855dab1bf41.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-1203afde83fa2d6e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-c465c14d48392b11.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-b1f8d5a7a9a30f2d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-93c094bad0f299fb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-891e5bd5935f7473.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-d2e4ee4e68d36807.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-4a49126fcfe8ced0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-5f8c5d0bc6ad1113.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-b4c0a36c69c346a4.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-a9266d353f288e8c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-b5c29c852262312e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-9f233917aa72ad82.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-5af599da035252a7.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-8597f8e13d80ee48.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-5e0d047a6c9cb1fc.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-b0a508aa52914dad.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-074c32397d341de9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-50f5d8706ed0bc73.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-e151c1552fcb67bd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-95394769a783c6c7.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-8336c4326f1e7d96.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-01dd679e4a21e0d9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-4d9051c073a9b2ff.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-5a306deca6717862.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-0dbc5b11019e78a0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-578d862f3e56e6e6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/test-1c0588d685b909b9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-ffaab4c013e62ba1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-114000e84313994f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/icIDjCezcfhiKL87kgeSY/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/_O1kJQLGtZmoBMyWpQrea/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1125-91d3ce33140ef041.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1749-607014ecf28268bf.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-573c7fc7ad84da6e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3004-231cad9039ae5dcb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-0873e170ef7d6303.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-335766a915ee2fa9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-8be2e0a3fe0ba64b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5499-bca977f466e259e1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/553-edf533e634e85192.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-37c6091b29a1fe53.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/600-0733eb84f0a0a9e0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6333-95ad799d13326dce.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/722-2a171fe616310f60.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8224-39a93ee1058b6069.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-6ef8fdb195694807.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-1b5c4b071ed544c3.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/framework-7c365855dab1bf41.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-1203afde83fa2d6e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-c465c14d48392b11.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-b1f8d5a7a9a30f2d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-93c094bad0f299fb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-891e5bd5935f7473.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-d2e4ee4e68d36807.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-4a49126fcfe8ced0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-5f8c5d0bc6ad1113.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-b4c0a36c69c346a4.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-a9266d353f288e8c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-b5c29c852262312e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-9f233917aa72ad82.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-5af599da035252a7.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-8597f8e13d80ee48.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-5e0d047a6c9cb1fc.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-b0a508aa52914dad.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-074c32397d341de9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-50f5d8706ed0bc73.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-e151c1552fcb67bd.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-95394769a783c6c7.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-8336c4326f1e7d96.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-01dd679e4a21e0d9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-4d9051c073a9b2ff.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-5a306deca6717862.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-0dbc5b11019e78a0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-578d862f3e56e6e6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-1c0588d685b909b9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-ffaab4c013e62ba1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-114000e84313994f.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{icIDjCezcfhiKL87kgeSY → N3FS4bHv0jpYeeg672uYK}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{_O1kJQLGtZmoBMyWpQrea → aoO6jYZLVlUGCCdY-wmy8}/_ssgManifest.js +0 -0
- {mage_ai-0.9.45.dist-info → mage_ai-0.9.47.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.45.dist-info → mage_ai-0.9.47.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.45.dist-info → mage_ai-0.9.47.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1221],{8666:function(e,n,i){"use strict";var t;i.d(n,{b:function(){return t}}),function(e){e.BLOCK="block",e.PIPELINE="pipeline"}(t||(t={}))},30229:function(e,n,i){"use strict";i.d(n,{PN:function(){return l},TR:function(){return v},U5:function(){return s},Wb:function(){return f},Xm:function(){return u},Z4:function(){return d},fq:function(){return c},gm:function(){return a},kJ:function(){return p}});var t,o,u,r=i(82394),l="__bookmark_values__";!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(u||(u={}));var c,s,d=(t={},(0,r.Z)(t,u.API,(function(){return"API"})),(0,r.Z)(t,u.EVENT,(function(){return"event"})),(0,r.Z)(t,u.TIME,(function(){return"schedule"})),t);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(c||(c={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly",e.ALWAYS_ON="@always_on"}(s||(s={}));var a,p,f=[s.ONCE,s.HOURLY,s.DAILY,s.WEEKLY,s.MONTHLY];!function(e){e.INTERVAL="frequency[]",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(a||(a={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(p||(p={}));var v=(o={},(0,r.Z)(o,p.CREATED_AT,"Created at"),(0,r.Z)(o,p.NAME,"Name"),(0,r.Z)(o,p.PIPELINE,"Pipeline"),(0,r.Z)(o,p.STATUS,"Active"),(0,r.Z)(o,p.TYPE,"Type"),o)},31882:function(e,n,i){"use strict";var t=i(38626),o=i(71180),u=i(55485),r=i(30160),l=i(44897),c=i(72473),s=i(70515),d=i(61896),a=i(28598),p=t.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," "," ",""],(function(e){return!e.primary&&"\n background-color: ".concat((e.theme.background||l.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||l.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((s.iI+d.Al)/2,"px;\n height: ").concat(1.5*s.iI+d.Al,"px;\n padding: ").concat(s.iI/1.5,"px ").concat(1.25*s.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((s.iI/2+d.Al)/2,"px;\n height: ").concat(d.Al+s.iI/2+2,"px;\n padding: ").concat(s.iI/4,"px ").concat(s.iI,"px;\n ")}),(function(e){return e.xsmall&&"\n border-radius: ".concat((s.iI/1+d.Al)/1,"px;\n height: ").concat(20,"px;\n padding: 4px 6px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||l.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,i=e.children,t=e.disabled,l=e.label,d=e.monospace,f=e.onClick,v=e.primary,h=e.small,m=e.xsmall;return(0,a.jsx)(p,{border:n,primary:v,small:h,xsmall:m,children:(0,a.jsx)(o.ZP,{basic:!0,disabled:t,noBackground:!0,noPadding:!0,onClick:f,transparent:!0,children:(0,a.jsxs)(u.ZP,{alignItems:"center",children:[i,l&&(0,a.jsx)(r.ZP,{monospace:d,small:h,xsmall:m,children:l}),!t&&f&&(0,a.jsx)("div",{style:{marginLeft:2}}),!t&&f&&(0,a.jsx)(c.x8,{default:v,muted:!v,size:h?s.iI:1.25*s.iI})]})})})}},55620:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return Te}});var t=i(77837),o=i(21831),u=i(75582),r=i(82394),l=i(38860),c=i.n(l),s=i(12691),d=i.n(s),a=i(82684),p=i(69864),f=i(34376),v=i(52749),h=i(60523),m=i(71180),g=i(90299),b=i(31882),x=i(94629),Z=i(97618),j=i(55485),_=i(85854),C=i(93369),w=i(65956),I=i(38276),k=i(30160),y=i(35576),P=i(17488),T=i(28598);var A=function(e){var n=e.description,i=e.isLoading,t=e.maxWidth,o=e.minWidth,u=e.noEmptyValue,r=e.onClose,l=e.onSave,c=e.textArea,s=e.title,d=e.value,p=(0,a.useRef)(null),f=(0,a.useState)(d),v=f[0],h=f[1],g=c?y.Z:P.Z;return(0,a.useEffect)((function(){var e;null===p||void 0===p||null===(e=p.current)||void 0===e||e.focus()}),[]),(0,T.jsxs)(w.Z,{maxWidth:t,minWidth:o,children:[(0,T.jsx)(k.ZP,{bold:!0,children:s}),(0,T.jsx)(I.Z,{mt:1,children:(0,T.jsx)(g,{monospace:!0,onChange:function(e){return h(e.target.value)},ref:p,rows:c?7:null,value:v})}),n&&(0,T.jsx)(I.Z,{mt:2,children:(0,T.jsx)(k.ZP,{muted:!0,small:!0,children:n})}),(0,T.jsx)(I.Z,{mt:3,children:(0,T.jsxs)(j.ZP,{children:[(0,T.jsx)(C.ZP,{bold:!0,inline:!0,loading:i,onClick:function(){v===d||u&&!v?r():l(v)},outline:!0,primary:!0,uuid:"Inputs/InputModal/SaveInput",children:"Save"}),(0,T.jsx)(I.Z,{ml:1}),(0,T.jsx)(m.ZP,{onClick:r,children:"Cancel"})]})})]})},E=i(48670),S=i(57653),O=i(55729),M=i(93808),D=i(82359),N=i(4190),R=i(75499),L=i(48381),U=i(69650),G=i(85544),Y=i(35686),B=i(44897),H=i(42631),V=i(44425),W=i(72473),$=i(23780),z=i(8666),q=i(46684),K=i(53808),Q="pipeline_list_filters",X="pipeline_list_group_bys",F="pipeline_list_sort_column_index",J="pipeline_list_sort_direction",ee="pipeline_list_selected_tab_uuid";function ne(e){return(0,K.t8)(Q,e),e}function ie(e){return(0,K.t8)(X,e),e}var te=i(32929),oe=i(44898),ue=i(70515),re=i(30229),le=i(81655),ce=i(31608),se=i(81728),de=i(3917),ae=i(72619),pe=i(69419),fe=i(65458),ve=i(15610),he=i(86735),me=i(42122),ge=i(3314),be=i(70320),xe=i(89538),Ze=i(44952);function je(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function _e(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?je(Object(i),!0).forEach((function(n){(0,r.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):je(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var Ce={Icon:W.Pf,label:function(){return"Recently viewed"},uuid:"recent"},we={Icon:W.vd,label:function(){return"All pipelines"},uuid:"all"},Ie=[we,Ce],ke="tab",ye={borderRadius:"".concat(H.BG,"px"),iconOnly:!0,noBackground:!0,noBorder:!0,outline:!0,padding:"4px"};function Pe(){var e,n=(0,f.useRouter)(),i=(0,a.useRef)(null),t=(0,a.useRef)(null),l=(0,a.useState)(null),c=l[0],s=l[1],C=(0,a.useState)(null),y=C[0],P=C[1],M=(0,a.useState)(null),H=M[0],je=M[1],Pe=(0,a.useState)(null),Te=Pe[0],Ae=Pe[1],Ee=(0,a.useState)(null),Se=Ee[0],Oe=Ee[1],Me=(0,a.useState)({}),De=Me[0],Ne=Me[1],Re=(0,a.useState)(null),Le=Re[0],Ue=Re[1],Ge=(0,pe.iV)(),Ye=(0,pe.DQ)(Ge,[S.$1.STATUS,S.$1.TAG,S.$1.TYPE]);(0,a.useEffect)((function(){var e;s(null===i||void 0===i||null===(e=i.current)||void 0===e?void 0:e.getBoundingClientRect().height)}),[Ge,i]);var Be=Y.ZP.projects.list(),He=Be.data,Ve=Be.mutate,We=(0,a.useMemo)((function(){var e;return null===He||void 0===He||null===(e=He.projects)||void 0===e?void 0:e[0]}),[He]),$e=(0,a.useMemo)((function(){var e;return(0,be.h)(null===We||void 0===We||null===(e=We.features)||void 0===e?void 0:e[D.d.LOCAL_TIMEZONE])}),[null===We||void 0===We?void 0:We.features]),ze=(0,a.useMemo)((function(){var e;return null===We||void 0===We||null===(e=We.features)||void 0===e?void 0:e[D.d.OPERATION_HISTORY]}),[We]),qe=(0,a.useMemo)((function(){return $e?le.O$:{}}),[$e]),Ke=Y.ZP.pipelines.list(_e(_e({},Ye),{},{include_schedules:1})),Qe=Ke.data,Xe=Ke.mutate,Fe=(0,a.useMemo)((function(){return(null===Ge||void 0===Ge?void 0:Ge[S.$1.HISTORY_DAYS])||7}),[Ge]),Je=Y.ZP.pipelines.list(_e(_e({},Ye),{},(e={},(0,r.Z)(e,S.$1.HISTORY_DAYS,(0,se.HW)(Fe)?Number(Fe):Fe),(0,r.Z)(e,"include_schedules",1),e)),{},{pauseFetch:!ze}),en=Je.data,nn=Je.mutate,tn=(0,a.useCallback)((function(e){var n=e||[];if(Se){var i=Se.toLowerCase();n=n.filter((function(e){var n=e.name,t=e.description,o=e.uuid;return(null===n||void 0===n?void 0:n.toLowerCase().includes(i))||(null===o||void 0===o?void 0:o.toLowerCase().includes(i))||(null===t||void 0===t?void 0:t.toLowerCase().includes(i))}))}return n}),[Se]),on=(0,a.useMemo)((function(){var e=tn((null===Qe||void 0===Qe?void 0:Qe.pipelines)||[]);if(null!==Ge&&void 0!==Ge&&Ge[S.$1.TAG]){var n=Ge[S.$1.TAG];e=e.filter((function(e){var i=e.tags;return i.some((function(e){return n.includes(e)}))||0===i.length&&n.includes(S.$1.NO_TAGS)}))}return e}),[Qe,tn,Ge]),un=(0,a.useMemo)((function(){return tn((null===en||void 0===en?void 0:en.pipelines)||[])}),[en,tn]),rn=(0,a.useMemo)((function(){return(0,he.HK)(on,(function(e){return e.uuid}))}),[on]),ln=(0,a.useMemo)((function(){return(0,he.HK)(un,(function(e){return e.uuid}))}),[un]),cn=(0,a.useCallback)((function(e){var n,i,t,o;return null===e||void 0===e||null===(n=e[2])||void 0===n||null===(i=n.props)||void 0===i||null===(t=i.children)||void 0===t||null===(o=t.props)||void 0===o?void 0:o.children}),[]),sn=(0,a.useMemo)((function(){return(null===H||void 0===H?void 0:H.length)>0?null===H||void 0===H?void 0:H.map((function(e){var n=cn(e);return null===rn||void 0===rn?void 0:rn[n]})):on}),[cn,H,on,rn]),dn=(0,a.useMemo)((function(){return(null===Te||void 0===Te?void 0:Te.length)>0?null===Te||void 0===Te?void 0:Te.map((function(e){var n=cn(e);return null===ln||void 0===ln?void 0:ln[n]})):un}),[cn,Te,un,ln]),an=(0,a.useMemo)((function(){return[1,2,3,4,5,6,8,9]}),[]),pn=null===Ge||void 0===Ge?void 0:Ge[le.lG.SORT_COL_IDX],fn=null===Ge||void 0===Ge?void 0:Ge[le.lG.SORT_DIRECTION],vn=(0,a.useMemo)((function(){return pn?{columnIndex:+pn,sortDirection:fn||le.sh.ASC}:void 0}),[pn,fn]),hn=null===Ge||void 0===Ge?void 0:Ge[S.$1.GROUP],mn=(0,a.useMemo)((function(){return null===Ge||void 0===Ge?void 0:Ge.tab}),[Ge]),gn=(0,p.Db)((function(e){var n=e.pipelineUUID,i=e.filesOnly,t=void 0!==i&&i;return Y.ZP.downloads.pipelines.useCreate(n)({download:{ignore_folder_structure:t}})}),{onSuccess:function(e){return(0,ae.wD)(e,{callback:function(){var n=e.data.download.token;(0,Ze.K)(n)},onErrorCallback:function(e,n){return Ue({errors:n,response:e})}})}}),bn=(0,u.Z)(gn,1)[0];(0,a.useEffect)((function(){var e,n={};if(pn&&an.includes(+pn))(0,K.t8)(F,pn),fn&&(0,K.t8)(J,fn);else{var i=(0,K.U2)(F,null),t=(0,K.U2)(J,le.sh.ASC);null!==i&&(n[le.lG.SORT_COL_IDX]=i,n[le.lG.SORT_DIRECTION]=t)}ze&&(mn?(0,K.t8)(ee,mn):n.tab=(0,K.U2)(ee,null===Ie||void 0===Ie||null===(e=Ie[0])||void 0===e?void 0:e.uuid));if(hn)ie((0,r.Z)({},hn,!0));else{var o,l=(0,K.U2)(X,{});l&&Object.entries(l).forEach((function(e){var n=(0,u.Z)(e,2),i=n[0],t=n[1];!o&&t&&(o=i)})),o&&(n[S.$1.GROUP]=o)}if((0,me.Qr)(Ye)){var c={},s=(0,K.U2)(Q,{});s&&Object.entries(s).forEach((function(e){var n=(0,u.Z)(e,2),i=n[0],t=n[1];c[i]=[],Object.entries(t).forEach((function(e){var n=(0,u.Z)(e,2),t=n[0];n[1]&&c[i].push(t)}))})),(0,me.Qr)(c)||(n=_e(_e({},n),c))}else{var d={};Object.entries(Ye).forEach((function(e){var n=(0,u.Z)(e,2),i=n[0],t=n[1];d[i]={};var o,r=t;(Array.isArray(r)||(r=[r]),r&&Array.isArray(r))&&(null===(o=r)||void 0===o||o.forEach((function(e){d[i][e]=!0})))})),ne(d)}(0,me.Qr)(n)||(0,ve.u7)(n,{pushHistory:!1})}),[hn,ze,Ye,mn,an,pn,fn]),(0,a.useEffect)((function(){(0,ae.bB)(Qe,Ue)}),[Qe]);var xn=function(e){return(0,p.Db)(Y.ZP.pipelines.useCreate(),{onSuccess:function(n){return(0,ae.wD)(n,{callback:function(n){var i=n.pipeline.uuid;null===e||void 0===e||e(i)},onErrorCallback:function(e,n){return Ue({errors:n,response:e})}})}})},Zn=xn((function(e){return n.push("/pipelines/[pipeline]/edit","/pipelines/".concat(e,"/edit"))})),jn=(0,u.Z)(Zn,2),_n=jn[0],Cn=jn[1].isLoading,wn=xn((function(){null===Xe||void 0===Xe||Xe(),null===nn||void 0===nn||nn()})),In=(0,u.Z)(wn,2),kn=In[0],yn=In[1].isLoading,Pn=(0,p.Db)((function(e){return Y.ZP.pipelines.useUpdate(e.uuid)({pipeline:e})}),{onSuccess:function(e){return(0,ae.wD)(e,{callback:function(e){var n=e.pipeline.uuid;Ne((function(e){return _e(_e({},e),{},(0,r.Z)({},n,!1))})),Xe(),null===nn||void 0===nn||nn(),null===Un||void 0===Un||Un(),P(null)},onErrorCallback:function(e,n){var i,t=null===e||void 0===e||null===(i=e.url_parameters)||void 0===i?void 0:i.pk;Ne((function(e){return _e(_e({},e),{},(0,r.Z)({},t,!1))})),Ue({errors:n,response:e})}})}}),Tn=(0,u.Z)(Pn,2),An=Tn[0],En=Tn[1].isLoading,Sn=(0,p.Db)((function(e){return Y.ZP.pipelines.useDelete(e)()}),{onSuccess:function(e){return(0,ae.wD)(e,{callback:function(){null===Xe||void 0===Xe||Xe(),null===nn||void 0===nn||nn()},onErrorCallback:function(e,n){return Ue({errors:n,response:e})}})}}),On=(0,u.Z)(Sn,2),Mn=On[0],Dn=On[1].isLoading,Nn=(0,xe.dd)((function(e){var n=e.pipeline,i=e.pipelineDescription,t=e.pipelineName;return(0,T.jsx)(A,{isLoading:En,minWidth:55*ue.iI,noEmptyValue:!!t,onClose:Un,onSave:function(e){var i=n||y;if(i){var o=i.uuid,u={uuid:o};t?u.name=e:u.description=e,Ne((function(e){return _e(_e({},e),{},(0,r.Z)({},o,!0))})),An(u)}},textArea:!t,title:t?"Rename pipeline":"Edit description for ".concat(null===n||void 0===n?void 0:n.uuid),value:t||i})}),{},[En,y],{background:!0,uuid:"rename_pipeline_and_save"}),Rn=(0,u.Z)(Nn,2),Ln=Rn[0],Un=Rn[1],Gn=(0,xe.dd)((function(){return(0,T.jsx)($.BC,{children:(0,T.jsx)(h.Z,{contained:!0,onClickCustomTemplate:function(e){_n({pipeline:{custom_template_uuid:null===e||void 0===e?void 0:e.template_uuid,name:(0,se.Y6)()}}).then((function(){Hn()}))},showBreadcrumbs:!0,tabs:[te.A2]})})}),{},[_n],{background:!0,uuid:"browse_templates"}),Yn=(0,u.Z)(Gn,2),Bn=Yn[0],Hn=Yn[1],Vn=(0,xe.dd)((function(e){var n=e.cancelButtonText,i=(e.header,e.onCancel),t=e.onSaveSuccess;return(0,T.jsx)($.BC,{children:(0,T.jsx)(O.Z,{cancelButtonText:n,contained:!0,header:(0,T.jsx)(I.Z,{mb:ue.HN,children:(0,T.jsxs)(w.Z,{children:[(0,T.jsx)(k.ZP,{warning:!0,children:"You need to add an OpenAI API key to your project before you can generate pipelines using AI."}),(0,T.jsx)(I.Z,{mt:1,children:(0,T.jsxs)(k.ZP,{warning:!0,children:["Read ",(0,T.jsx)(E.Z,{href:"https://help.openai.com/en/articles/4936850-where-do-i-find-my-secret-api-key",openNewWindow:!0,children:"OpenAI\u2019s documentation"})," to get your API key."]})})]})}),onCancel:function(){null===i||void 0===i||i(),zn()},onSaveSuccess:function(e){Ve(),zn(),null===t||void 0===t||t(e)}})})}),{},[Ve],{background:!0,uuid:"configure_project"}),Wn=(0,u.Z)(Vn,2),$n=Wn[0],zn=Wn[1],qn=(0,xe.dd)((function(){return(0,T.jsx)($.BC,{children:(0,T.jsx)(v.Z,{createPipeline:_n,isLoading:Cn,onClose:Xn})})}),{},[_n,Cn],{background:!0,disableClickOutside:!0,disableCloseButton:!0,uuid:"AI_modal"}),Kn=(0,u.Z)(qn,2),Qn=Kn[0],Xn=Kn[1],Fn=(0,a.useMemo)((function(){return(0,fe.d)(_n,{showAIModal:function(){null!==We&&void 0!==We&&We.openai_api_key?Qn():$n({onSaveSuccess:function(){Qn()}})},showBrowseTemplates:Bn})}),[_n,We,Qn,Bn,$n]),Jn=Y.ZP.tags.list().data,ei=(0,a.useMemo)((function(){return(0,he.YC)((null===Jn||void 0===Jn?void 0:Jn.tags)||[],(function(e){return e.uuid}))}),[Jn]),ni=(0,a.useMemo)((function(){return(0,T.jsx)(G.Z,{addButtonProps:{isLoading:Cn,label:"New",menuItems:Fn},deleteRowProps:{confirmationMessage:"This is irreversible and will immediately delete everything associated with the pipeline, including its blocks, triggers, runs, logs, and history.",isLoading:Dn,item:"pipeline",onDelete:function(){window.confirm("Are you sure you want to delete pipeline ".concat(null===y||void 0===y?void 0:y.uuid,"?"))&&Mn(null===y||void 0===y?void 0:y.uuid)}},extraActionButtonProps:{Icon:W.oX,confirmationDescription:"Cloning the selected pipeline will create a new pipeline with the same configuration and code blocks. The blocks use the same block files as the original pipeline. Pipeline triggers, runs, backfills, and logs are not copied over to the new pipeline.",confirmationMessage:"Do you want to clone the pipeline ".concat(null===y||void 0===y?void 0:y.uuid,"?"),isLoading:yn,onClick:function(){return kn({pipeline:{clone_pipeline_uuid:null===y||void 0===y?void 0:y.uuid}})},openConfirmationDialogue:!0,tooltip:"Clone pipeline"},filterOptions:{status:S.kA,tag:[S.$1.NO_TAGS].concat((0,o.Z)(ei.map((function(e){return e.uuid})))),type:Object.values(S.qL)},filterValueLabelMapping:{status:S.kA.reduce((function(e,n){return _e(_e({},e),{},(0,r.Z)({},n,(0,se.J3)((0,se.kC)(n))))}),{}),tag:_e((0,r.Z)({},S.$1.NO_TAGS,"No tags"),ei.reduce((function(e,n){var i=n.uuid;return _e(_e({},e),{},(0,r.Z)({},i,i))}),{})),type:S.G7},groupButtonProps:{groupByLabel:hn,menuItems:[{beforeIcon:hn===S.r0.STATUS?(0,T.jsx)(W.Jr,{fill:B.Z.content.default,size:1.5*ue.iI}):(0,T.jsx)(W.Cd,{muted:!0,size:1.5*ue.iI}),label:function(){return(0,se.kC)(S.r0.STATUS)},onClick:function(){var e=hn===S.r0.STATUS?null:S.r0.STATUS;e||ie({}),(0,ve.u7)((0,r.Z)({},S.$1.GROUP,e),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Status"},{beforeIcon:hn===S.r0.TAG?(0,T.jsx)(W.Jr,{fill:B.Z.content.default,size:1.5*ue.iI}):(0,T.jsx)(W.Cd,{muted:!0,size:1.5*ue.iI}),label:function(){return(0,se.kC)(S.r0.TAG)},onClick:function(){var e=hn===S.r0.TAG?null:S.r0.TAG;e||ie({}),(0,ve.u7)((0,r.Z)({},S.$1.GROUP,e),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Tag"},{beforeIcon:hn===S.r0.TYPE?(0,T.jsx)(W.Jr,{fill:B.Z.content.default,size:1.5*ue.iI}):(0,T.jsx)(W.Cd,{muted:!0,size:1.5*ue.iI}),label:function(){return(0,se.kC)(S.r0.TYPE)},onClick:function(){var e=hn===S.r0.TYPE?null:S.r0.TYPE;e||ie({}),(0,ve.u7)((0,r.Z)({},S.$1.GROUP,e),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Type"}]},moreActionsMenuItems:[{label:function(){return"Rename pipeline"},onClick:function(){return Ln({pipelineName:null===y||void 0===y?void 0:y.name})},uuid:"Pipelines/MoreActionsMenu/Rename"},{label:function(){return"Edit description"},onClick:function(){return Ln({pipeline:y,pipelineDescription:null===y||void 0===y?void 0:y.description})},uuid:"Pipelines/MoreActionsMenu/EditDescription"}],onClickFilterDefaults:function(){ne({}),n.push("/pipelines")},onFilterApply:function(e,n){Object.values(n).every((function(e){return!(null!==e&&void 0!==e&&e.length)}))&&ne({})},query:Ye,searchProps:{onChange:Oe,value:Se},selectedRowId:null===y||void 0===y?void 0:y.uuid,setSelectedRow:P})}),[kn,Mn,hn,yn,Cn,Dn,Fn,Ye,n,Se,y,Ln,ei]),ii=(0,$.VI)(null,{},[],{uuid:"pipelines/list"}),ti=(0,u.Z)(ii,1)[0],oi=(0,p.Db)(Y.ZP.projects.useUpdate(null===We||void 0===We?void 0:We.name),{onSuccess:function(e){return(0,ae.wD)(e,{callback:function(){Ve()},onErrorCallback:function(e,n){return ti({errors:n,response:e})}})}}),ui=(0,u.Z)(oi,2),ri=ui[0],li=ui[1].isLoading,ci=(0,a.useCallback)((function(e){return ri({project:e})}),[ri]),si=(0,xe.dd)((function(){return(0,T.jsxs)(w.Z,{maxWidth:60*ue.iI,children:[(0,T.jsx)(I.Z,{mb:1,children:(0,T.jsx)(_.Z,{children:"Help improve Mage"})}),(0,T.jsx)(I.Z,{mb:ue.cd,children:(0,T.jsx)(k.ZP,{default:!0,children:"Please contribute usage statistics to help improve the developer experience for you and everyone in the community \ud83e\udd1d."})}),(0,T.jsx)(I.Z,{mb:ue.cd,children:(0,T.jsx)(w.Z,{success:!0,children:(0,T.jsxs)(j.ZP,{alignItems:"center",children:[(0,T.jsx)(W.Yo,{size:5*ue.iI,success:!0}),(0,T.jsx)(I.Z,{mr:1}),(0,T.jsx)(Z.Z,{children:(0,T.jsx)(k.ZP,{children:"All usage statistics are completely anonymous. It\u2019s impossible for Mage to know which statistics belongs to whom."})})]})})}),(0,T.jsx)(I.Z,{mb:ue.cd,children:(0,T.jsxs)(k.ZP,{default:!0,children:["By opting into sending usage statistics to ",(0,T.jsx)(E.Z,{href:"https://www.mage.ai",openNewWindow:!0,children:"Mage"}),", it\u2019ll help the team and community of contributors (",(0,T.jsx)(E.Z,{href:"https://www.mage.ai/chat",openNewWindow:!0,children:"Magers"}),") learn what\u2019s going wrong with the tool and what improvements can be made."]})}),(0,T.jsx)(I.Z,{mb:ue.cd,children:(0,T.jsx)(k.ZP,{default:!0,children:"In addition to helping reduce potential errors, you\u2019ll help inform which features are useful and which need work."})}),(0,T.jsx)(I.Z,{mb:ue.cd,children:(0,T.jsxs)(j.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,T.jsx)(k.ZP,{bold:!0,children:"I want to help make Mage more powerful for everyone"}),(0,T.jsx)(I.Z,{mr:ue.cd}),(0,T.jsx)(U.Z,{checked:!0,onCheck:function(){window.confirm("Are you sure you don\u2019t want to help everyone in the community?")&&ci({help_improve_mage:!1}).then((function(){return pi()}))}})]})}),li&&(0,T.jsx)(I.Z,{mb:ue.cd,children:(0,T.jsx)(N.Z,{inverted:!0})}),(0,T.jsx)(I.Z,{mb:ue.cd,children:(0,T.jsxs)(k.ZP,{muted:!0,small:!0,children:["To learn more about how this works, please check out the ",(0,T.jsx)(E.Z,{href:"https://docs.mage.ai/contributing/statistics/overview",openNewWindow:!0,small:!0,children:"documentation"}),"."]})}),(0,T.jsx)(m.ZP,{onClick:function(){return ci({help_improve_mage:!0}).then((function(){return pi()}))},secondary:!0,children:"Close"})]})}),{},[We],{background:!0,hideCallback:function(){ci({help_improve_mage:!0})},uuid:"help_mage"}),di=(0,u.Z)(si,2),ai=di[0],pi=di[1];(0,a.useEffect)((function(){We&&null===(null===We||void 0===We?void 0:We.help_improve_mage)&&ai()}),[We,ai]);var fi=(0,a.useCallback)((function(e){var n={};null===e||void 0===e||e.forEach((function(e,i){var t=null===e||void 0===e?void 0:e[hn];if(S.r0.STATUS===hn){var o=(e||{}).schedules,u=void 0===o?[]:o,r=u.length;t=u.find((function(e){var n=e.status;return re.fq.ACTIVE===n}))?S.QK.ACTIVE:r>=1?S.QK.INACTIVE:S.QK.NO_SCHEDULES}else if(S.r0.TAG===hn){t=(null===e||void 0===e?void 0:e.tags)?(0,he.YC)(e.tags,(function(e){return e})).join(", "):""}n[t]||(n[t]=[]),n[t].push(i)}));var i=[],t=[];S.r0.STATUS===hn?Object.values(S.QK).forEach((function(e){i.push(n[e]),t.push((0,se.vg)(e))})):S.r0.TAG===hn?(0,he.YC)(Object.keys(n),(function(e){return e})).forEach((function(e){i.push(n[e]),e?t.push(e.split(", ").map((function(e,n){return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("div",{style:{marginLeft:n>=1?4:0}},"".concat(e,"-").concat(n,"-spacing")),(0,T.jsx)(b.Z,{small:!0,children:(0,T.jsx)(k.ZP,{children:e})},"".concat(e,"-").concat(n))]})}))):t.push("No tags")})):S.r0.TYPE===hn&&Object.values(S.qL).forEach((function(e){i.push(n[e]),t.push(S.G7[e])}));var o=[],u=[];return null===i||void 0===i||i.forEach((function(e,n){"undefined"!==typeof e&&null!==e&&(null===e||void 0===e?void 0:e.length)>=1&&(u.push(e),o.push(null===t||void 0===t?void 0:t[n]))})),{rowGroupHeaders:o,rowsGroupedByIndex:u}}),[hn]),vi=(0,a.useMemo)((function(){return fi(sn)}),[fi,sn]),hi=vi.rowGroupHeaders,mi=vi.rowsGroupedByIndex,gi=(0,a.useMemo)((function(){return fi(dn)}),[fi,dn]),bi=gi.rowGroupHeaders,xi=gi.rowsGroupedByIndex,Zi=(0,a.useCallback)((function(e,i,o,u,l){return(0,T.jsx)(R.Z,{columnFlex:[null,null,null,2,null,null,null,1,null,null,null],columns:[{label:function(){return""},uuid:"action"},{uuid:(0,se.kC)(S.r0.STATUS)},{uuid:"Name"},{uuid:"Description"},{uuid:(0,se.kC)(S.r0.TYPE)},_e(_e({},qe),{},{uuid:"Updated at"}),_e(_e({},qe),{},{uuid:"Created at"}),{uuid:"Tags"},{uuid:"Blocks"},{uuid:"Triggers"},{center:!0,label:function(){return""},uuid:"Actions"}],defaultSortColumnIndex:2,getUniqueRowIdentifier:cn,isSelectedRow:function(e){var n;return(null===(n=i[e])||void 0===n?void 0:n.uuid)===(null===y||void 0===y?void 0:y.uuid)},localStorageKeySortColIdx:F,localStorageKeySortDirection:J,onClickRow:function(e){return P((function(n){var t=i[e];return(null===n||void 0===n?void 0:n.uuid)!==(null===t||void 0===t?void 0:t.uuid)?t:null}))},onDoubleClickRow:function(e){n.push("/pipelines/[pipeline]/edit","/pipelines/".concat(i[e].uuid,"/edit"))},ref:t,renderRightClickMenuItems:function(e){var t=i[e];return[{label:function(){return"Edit description"},onClick:function(){return Ln({pipeline:t,pipelineDescription:null===t||void 0===t?void 0:t.description})},uuid:"edit_description"},{label:function(){return"Rename"},onClick:function(){return Ln({pipeline:t,pipelineName:null===t||void 0===t?void 0:t.name})},uuid:"rename"},{label:function(){return"Clone"},onClick:function(){return kn({pipeline:{clone_pipeline_uuid:null===t||void 0===t?void 0:t.uuid}})},uuid:"clone"},{label:function(){return"Download (keep folder structure)"},onClick:function(){bn({pipelineUUID:null===t||void 0===t?void 0:t.uuid,filesOnly:!1})},uuid:"download_keep_folder_structure"},{label:function(){return"Download (without folder structure)"},onClick:function(){bn({pipelineUUID:null===t||void 0===t?void 0:t.uuid,filesOnly:!0})},uuid:"download_without_folder_structure"},{label:function(){return"Add/Remove tags"},onClick:function(){n.push("/pipelines/[pipeline]/settings","/pipelines/".concat(null===t||void 0===t?void 0:t.uuid,"/settings"))},uuid:"add_tags"},{label:function(){return"Create template"},onClick:function(){n.push("/templates?object_type=".concat(oe.R,"&new=1&pipeline_uuid=").concat(null===t||void 0===t?void 0:t.uuid))},uuid:"create_custom_template"},{label:function(){return"Create global data product"},onClick:function(){n.push("/global-data-products?object_type=".concat(z.b.PIPELINE,"&new=1&object_uuid=").concat(null===t||void 0===t?void 0:t.uuid))},uuid:"create_global_data_product"},{label:function(){return"Delete"},onClick:function(){window.confirm("Are you sure you want to delete pipeline ".concat(null===t||void 0===t?void 0:t.uuid,"?"))&&Mn(null===t||void 0===t?void 0:t.uuid)},uuid:"delete"}]},rightClickMenuHeight:252,rightClickMenuWidth:30*ue.iI,rowGroupHeaders:o,rows:null===e||void 0===e?void 0:e.map((function(e,i){var t=e.blocks,o=e.created_at,u=e.description,l=e.schedules,c=e.tags,s=e.type,a=e.updated_at,p=e.uuid,f=t.filter((function(e){var n=e.type;return V.tf.SCRATCHPAD!==n})).length,v=l.length,h=l.find((function(e){var n=e.status;return re.fq.ACTIVE===n})),g=(0,T.jsx)("div",{children:(0,T.jsx)(L.Z,{tags:null===c||void 0===c?void 0:c.map((function(e){return{uuid:e}}))})},"pipeline_tags_".concat(i));return[v>=1||De[p]?(0,T.jsx)(m.ZP,{iconOnly:!0,loading:!!De[p],noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(n){(0,ge.j)(n),Ne((function(e){return _e(_e({},e),{},(0,r.Z)({},p,!0))})),An(_e(_e({},e),{},{status:h?re.fq.INACTIVE:re.fq.ACTIVE}))},children:h?(0,T.jsx)(W.dz,{muted:!0,size:2*ue.iI}):(0,T.jsx)(W.Py,{default:!0,size:2*ue.iI})}):null,(0,T.jsx)(k.ZP,{default:!h,monospace:!0,success:!!h,children:h?re.fq.ACTIVE:v>=1?re.fq.INACTIVE:"no schedules"},"pipeline_status_".concat(i)),(0,T.jsx)(d(),{as:"/pipelines/".concat(p),href:"/pipelines/[pipeline]",passHref:!0,children:(0,T.jsx)(E.Z,{sameColorAsText:!0,children:p})},"pipeline_name_".concat(i)),(0,T.jsx)(k.ZP,{default:!0,preWrap:!0,title:u,children:u},"pipeline_description_".concat(i)),(0,T.jsx)(k.ZP,{children:S.G7[s]},"pipeline_type_".concat(i)),(0,T.jsx)(k.ZP,{monospace:!0,small:!0,title:a?(0,de._6)(a):null,children:a?(0,de.XG)(a,$e):(0,T.jsx)(T.Fragment,{children:"\u2014"})},"pipeline_updated_at_".concat(i)),(0,T.jsx)(k.ZP,{monospace:!0,small:!0,title:o?(0,de._6)(o):null,children:o?(0,de.XG)(o.slice(0,19),$e):(0,T.jsx)(T.Fragment,{children:"\u2014"})},"pipeline_created_at_".concat(i)),g,(0,T.jsx)(k.ZP,{default:0===f,monospace:!0,children:f},"pipeline_block_count_".concat(i)),(0,T.jsx)(k.ZP,{default:0===v,monospace:!0,children:v},"pipeline_trigger_count_".concat(i)),(0,T.jsxs)(Z.Z,{flex:1,justifyContent:"flex-end",children:[(0,T.jsx)(m.ZP,_e(_e({},ye),{},{onClick:function(){bn({pipelineUUID:p})},title:"Download (keep folder structure)",children:(0,T.jsx)(W.vc,{default:!0,size:2*ue.iI})})),(0,T.jsx)(I.Z,{mr:1}),(0,T.jsx)(m.ZP,_e(_e({},ye),{},{onClick:function(){n.push("/pipelines/[pipeline]","/pipelines/".concat(p))},title:"Detail",children:(0,T.jsx)(W.UY,{default:!0,size:2*ue.iI})})),(0,T.jsx)(I.Z,{mr:1}),(0,T.jsx)(m.ZP,_e(_e({},ye),{},{onClick:function(){n.push("/pipelines/[pipeline]/logs","/pipelines/".concat(p,"/logs"))},title:"Logs",children:(0,T.jsx)(W.$B,{default:!0,size:2*ue.iI})}))]},"chevron_icon_".concat(i))]})),rowsGroupedByIndex:u,setRowsSorted:l,sortableColumnIndexes:an,sortedColumn:vn,stickyHeader:!0})}),[kn,Mn,bn,$e,cn,De,n,y,Ne,P,Ln,an,vn,qe,An]),ji=(0,a.useMemo)((function(){return Zi(on,sn,hi,mi,je)}),[on,sn,Zi,hi,mi,je]),_i=(0,a.useMemo)((function(){return Zi(un,dn,bi,xi,Ae)}),[un,dn,Zi,bi,xi,Ae]),Ci=(0,a.useMemo)((function(){return(null===on||void 0===on?void 0:on.length)||0}),[on]),wi=(0,a.useMemo)((function(){return(null===un||void 0===un?void 0:un.length)||0}),[un]),Ii=(0,a.useMemo)((function(){return(!ze||we.uuid===mn)&&!Ci||ze&&Ce.uuid===mn&&!wi}),[ze,Ci,wi,mn]);return(0,T.jsxs)(x.Z,{errors:Le,setErrors:Ue,subheaderChildren:ni,title:"Pipelines",uuid:"pipelines/index",children:[ze&&(0,T.jsx)(I.Z,{pb:hn?0:ue.cd,pt:ue.cd,px:ue.cd,ref:i,children:(0,T.jsx)(g.Z,{noPadding:!0,onClickTab:function(e){var n=e.uuid;return(0,ve.u7)((0,r.Z)({},ke,n),{pushHistory:!0})},regularSizeText:!0,selectedTabUUID:mn,tabs:Ie})}),Ii?(0,T.jsx)(I.Z,{p:ue.Mq,children:Qe?(0,T.jsx)(k.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No pipelines available"}):(0,T.jsx)(N.Z,{inverted:!0,large:!0})}):null,(0,T.jsxs)(ce.cl,{hide:Ii,includePadding:!!hn,maxHeight:"calc(100vh - ".concat(q.Mz+74+(c||0),"px)"),children:[(!ze||we.uuid===mn)&&ji,ze&&Ce.uuid===mn&&_i]})]})}Pe.getInitialProps=(0,t.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var Te=(0,M.Z)(Pe)},44952:function(e,n,i){"use strict";i.d(n,{K:function(){return o}});var t=i(4383);function o(e){var n=(0,t.ZP)("downloads",e),i=document.createElement("a");i.href=n,document.body.appendChild(i),i.click(),window.URL.revokeObjectURL(n),document.body.removeChild(i)}},79274:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines",function(){return i(55620)}])}},function(e){e.O(0,[2678,1154,844,5820,6639,1124,341,1751,1821,4267,600,8487,8264,7858,5499,4366,722,5810,1769,1550,90,9264,5544,1952,9774,2888,179],(function(){return n=79274,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-3c8f062913c66f3e.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6308],{65956:function(n,e,t){"use strict";var i=t(38626),o=t(55485),r=t(38276),c=t(30160),a=t(44897),l=t(42631),d=t(47041),u=t(70515),s=t(28598),h=(0,i.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*u.iI,1.5*u.iI,1.5*u.iI),f=i.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],l.n_,(function(n){return n.fullWidth&&"\n width: 100%;\n "}),(function(n){return!n.borderless&&"\n border: 1px solid ".concat((n.theme.interactive||a.Z.interactive).defaultBorder,";\n ")}),(function(n){return n.success&&"\n background-color: ".concat((n.theme.background||a.Z.background).successLight,";\n ")}),(function(n){return n.success&&!n.borderless&&"\n border: 1px solid ".concat((n.theme.background||a.Z.background).success,";\n ")}),(function(n){return!n.dark&&!n.success&&"\n background-color: ".concat((n.theme.background||a.Z.background).panel,";\n ")}),(function(n){return n.dark&&"\n background-color: ".concat((n.theme.background||a.Z.background).content,";\n ")}),(function(n){return!n.fullHeight&&"\n height: fit-content;\n "}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,";\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,"px;\n ")}),(function(n){return n.minWidth&&"\n min-width: ".concat(n.minWidth,"px;\n\n @media (max-width: ").concat(n.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(n){return n.borderless&&"\n border: none;\n "}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),p=i.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],l.n_,l.n_,(function(n){return"\n background-color: ".concat((n.theme.background||a.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((n.theme.interactive||a.Z.interactive).defaultBorder,";\n ")}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),h,(function(n){return n.headerPaddingVertical&&"\n padding-bottom: ".concat(n.headerPaddingVertical,"px;\n padding-top: ").concat(n.headerPaddingVertical,"px;\n ")})),m=i.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*u.iI,d.w5,(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return n.maxHeight&&"\n max-height: calc(".concat(n.maxHeight," - ").concat(15*u.iI,"px);\n ")}),(function(n){return n.noPadding&&"\n padding: 0;\n "}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),g=i.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],l.M8,l.YF,1.75*u.iI);e.Z=function(n){var e=n.borderless,t=n.children,i=n.containerRef,a=n.contentContainerRef,l=n.dark,d=n.footer,u=n.fullHeight,h=void 0===u||u,x=n.fullWidth,b=void 0===x||x,y=n.header,w=n.headerHeight,v=n.headerIcon,_=n.headerPaddingVertical,j=n.headerTitle,I=n.maxHeight,Z=n.maxWidth,N=n.minWidth,H=n.noPadding,P=n.overflowVisible,k=n.subtitle,S=n.success;return(0,s.jsxs)(f,{borderless:e,dark:l,fullHeight:h,fullWidth:b,maxHeight:I,maxWidth:Z,minWidth:N,overflowVisible:P,ref:i,success:S,children:[(y||j)&&(0,s.jsxs)(p,{headerPaddingVertical:_,height:w,children:[y&&y,j&&(0,s.jsx)(o.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(o.ZP,{alignItems:"center",children:[v&&v,(0,s.jsx)(r.Z,{ml:v?1:0,children:(0,s.jsx)(c.ZP,{bold:!0,default:!0,children:j})})]})})]}),(0,s.jsxs)(m,{maxHeight:I,noPadding:H,overflowVisible:P,ref:a,children:[k&&"string"===typeof k&&(0,s.jsx)(r.Z,{mb:2,children:(0,s.jsx)(c.ZP,{default:!0,children:k})}),k&&"string"!==typeof k&&k,t]}),d&&(0,s.jsx)(g,{children:d})]})}},85854:function(n,e,t){"use strict";var i,o,r,c,a,l,d,u,s=t(82394),h=t(26304),f=t(26653),p=t(38626),m=t(33591),g=t(44897),x=t(95363),b=t(61896),y=t(30160),w=t(70515),v=t(38276),_=t(28598),j=["children","condensed","inline","level","marketing","spacingBelow"];function I(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function Z(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?I(Object(t),!0).forEach((function(e){(0,s.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var N=(0,p.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," "," ",""],y.IH,(function(n){return n.color&&"\n color: ".concat(n.color,"\n ")}),(function(n){return n.yellow&&"\n color: ".concat((n.theme.accent||g.Z.accent).yellow,";\n ")}),(function(n){return n.center&&"\n text-align: center;\n "}),(function(n){return!n.monospace&&0===Number(n.weightStyle)&&"\n font-family: ".concat(x.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(x.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(x.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(x.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(x.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "}),(function(n){return n.strikethrough&&"\n text-decoration: line-through;\n "})),H=p.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||g.Z.content).active,";\n ")})),P=p.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],N,m.media.md(i||(i=(0,f.Z)(["\n ","\n "])),b.aQ),m.media.lg(o||(o=(0,f.Z)(["\n ","\n "])),b.aQ),m.media.xl(r||(r=(0,f.Z)(["\n ","\n "])),b.aQ)),k=p.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],N,b.MJ),S=p.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],N,m.media.xs(c||(c=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.sm(a||(a=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.md(l||(l=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.lg(d||(d=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.xl(u||(u=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),C=p.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],N,b.BL),z=p.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],N),O=p.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],N),W=p.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],N),V=p.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],N,(function(n){return 1===n.level&&"\n ".concat(b.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(b.BL,"\n ")}),(function(n){return 3===n.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(n){return 4===n.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),B=function(n){var e,t=n.children,i=n.condensed,o=n.inline,r=n.level,c=n.marketing,a=n.spacingBelow,l=(0,h.Z)(n,j);o?e=V:0===Number(r)?e=P:1===Number(r)?e=c?S:k:2===Number(r)?e=C:3===Number(r)?e=z:4===Number(r)?e=O:5===Number(r)&&(e=W);var d=(0,_.jsxs)(e,Z(Z({},l),{},{level:r,children:[a&&(0,_.jsx)(v.Z,{mb:i?2:3,children:t}),!a&&t]}));return o?d:(0,_.jsx)(H,{children:d})};B.defaultProps={level:3,weightStyle:6},e.Z=B},86627:function(n,e,t){"use strict";t.r(e);var i=t(77837),o=t(38860),r=t.n(o),c=t(65956),a=t(93808),l=t(28274),d=t(38276),u=t(36043),s=t(35686),h=t(70515),f=t(24755),p=t(50178),m=t(28598);function g(){var n=((0,p.PR)()||{}).id,e=s.ZP.users.detail(n),t=e.data,i=e.mutate,o=null===t||void 0===t?void 0:t.user;return(0,m.jsx)(l.Z,{uuidItemSelected:f.DQ,uuidWorkspaceSelected:f.tC,children:(0,m.jsx)(d.Z,{p:h.cd,children:(0,m.jsx)(c.Z,{children:(0,m.jsx)(u.Z,{disabledFields:["roles"],onSaveSuccess:i,user:o})})})})}g.getInitialProps=(0,i.Z)(r().mark((function n(){return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{});case 1:case"end":return n.stop()}}),n)}))),e.default=(0,a.Z)(g)},10736:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/account/profile",function(){return t(86627)}])}},function(n){n.O(0,[2678,1154,844,4267,600,8487,8264,8432,6043,9774,2888,179],(function(){return e=10736,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[609],{5149:function(n,r,u){"use strict";u.r(r);var t=u(77837),e=u(38860),s=u.n(e),i=u(58146),o=u(93808),a=u(28598);function c(n){var r=n.slug;return(0,a.jsx)(i.Z,{slug:r})}c.getInitialProps=function(){var n=(0,t.Z)(s().mark((function n(r){var u;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=r.query.slug,n.abrupt("return",{slug:null===u||void 0===u?void 0:u[0]});case 2:case"end":return n.stop()}}),n)})));return function(r){return n.apply(this,arguments)}}(),r.default=(0,o.Z)(c)},79877:function(n,r,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/permissions/[...slug]",function(){return u(5149)}])}},function(n){n.O(0,[2678,1154,844,4267,600,8487,8264,7858,5499,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[609],{5149:function(n,r,u){"use strict";u.r(r);var t=u(77837),e=u(38860),s=u.n(e),i=u(58146),o=u(93808),a=u(28598);function c(n){var r=n.slug;return(0,a.jsx)(i.Z,{slug:r})}c.getInitialProps=function(){var n=(0,t.Z)(s().mark((function n(r){var u;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=r.query.slug,n.abrupt("return",{slug:null===u||void 0===u?void 0:u[0]});case 2:case"end":return n.stop()}}),n)})));return function(r){return n.apply(this,arguments)}}(),r.default=(0,o.Z)(c)},79877:function(n,r,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/permissions/[...slug]",function(){return u(5149)}])}},function(n){n.O(0,[2678,1154,844,4267,600,8487,8264,7858,5499,8432,8146,9774,2888,179],(function(){return r=79877,n(n.s=r);var r}));var r=n.O();_N_E=r}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4085],{34331:function(e,n,i){"use strict";i.r(n);var t=i(77837),r=i(38860),s=i.n(r),u=i(82684),c=i(34376),o=i(71180),d=i(15338),l=i(55485),a=i(58146),p=i(93808),m=i(28274),f=i(38276),h=i(75499),v=i(30160),x=i(35686),j=i(72473),_=i(70515),P=i(24755),Z=i(3917),w=i(36717),b=i(28598);function k(){var e=(0,c.useRouter)(),n=(0,u.useState)(!1),i=n[0],t=n[1],r=x.ZP.permissions.list({_limit:1e3}).data,s=(0,u.useMemo)((function(){return(null===r||void 0===r?void 0:r.permissions)||[]}),[r]),p=[{bold:!i,label:function(){return"Permissions"}}];return i?(p[0].onClick=function(){return t(!1)},p.push({bold:!0,label:function(){return"New permission"}})):p[0].linkProps={href:"/settings/workspace/permissions"},(0,b.jsxs)(m.Z,{appendBreadcrumbs:!0,breadcrumbs:p,title:"Permissions",uuidItemSelected:P.B2.PERMISSIONS,uuidWorkspaceSelected:P.Pl.USER_MANAGEMENT,children:[i&&(0,b.jsx)(a.Z,{contained:!0,onCancel:function(){return t(!1)}}),!i&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.Z,{p:_.cd,children:(0,b.jsx)(o.ZP,{beforeIcon:(0,b.jsx)(j.QM,{}),onClick:function(){return t(!0)},primary:!0,children:"Add new permission"})}),(0,b.jsx)(d.Z,{light:!0}),(0,b.jsx)(h.Z,{columnFlex:[3,1,null,6,null,null],columns:[{uuid:"Entity"},{uuid:"Subtype"},{uuid:"Entity ID"},{uuid:"Access"},{uuid:"Last updated"},{rightAligned:!0,uuid:"Created at"}],onClickRow:function(n){var i,t=null===(i=s[n])||void 0===i?void 0:i.id;e.push("/settings/workspace/permissions/".concat(t))},rows:null===s||void 0===s?void 0:s.map((function(e){var n=e.access,i=e.created_at,t=e.entity,r=e.entity_id,s=e.entity_name,u=e.entity_type,c=(e.id,e.updated_at),o=(e.user,n?(0,w.q)(n):[]),d=(null===o||void 0===o?void 0:o.length)||0;return[(0,b.jsx)(v.ZP,{monospace:!0,children:s||t},"entityName"),(0,b.jsx)(v.ZP,{default:!0,monospace:!!u,children:u||"-"},"entityType"),(0,b.jsx)(v.ZP,{default:!0,monospace:!!r,children:r||"-"},"entityID"),(0,b.jsx)("div",{children:d>=1&&(0,b.jsx)(l.ZP,{alignItems:"center",flexWrap:"wrap",children:null===o||void 0===o?void 0:o.map((function(e,n){return(0,b.jsx)("div",{children:(0,b.jsxs)(v.ZP,{default:!0,monospace:!0,small:!0,children:[e,d>=2&&n<d-1&&(0,b.jsx)(v.ZP,{inline:!0,muted:!0,small:!0,children:",\xa0"})]})},e)}))})},"access"),(0,b.jsx)(v.ZP,{monospace:!0,default:!0,children:c&&(0,Z.d$)(c)},"updatedAt"),(0,b.jsx)(v.ZP,{monospace:!0,default:!0,rightAligned:!0,children:i&&(0,Z.d$)(i)},"createdAt")]})),uuid:"permissions"})]})]})}k.getInitialProps=(0,t.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,p.Z)(k)},36717:function(e,n,i){"use strict";i.d(n,{q:function(){return s}});var t=i(75582),r=i(36288);function s(e){return Object.entries(r.K4).reduce((function(n,i){var r=(0,t.Z)(i,2),s=r[0],u=r[1];return e&Number(s)?n.concat(u):n}),[])}},65960:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/permissions",function(){return i(34331)}])}},function(e){e.O(0,[2678,1154,844,4267,600,8487,8264,7858,5499,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4085],{34331:function(e,n,i){"use strict";i.r(n);var t=i(77837),r=i(38860),s=i.n(r),u=i(82684),c=i(34376),o=i(71180),d=i(15338),l=i(55485),a=i(58146),p=i(93808),m=i(28274),f=i(38276),h=i(75499),v=i(30160),x=i(35686),j=i(72473),_=i(70515),P=i(24755),Z=i(3917),w=i(36717),b=i(28598);function k(){var e=(0,c.useRouter)(),n=(0,u.useState)(!1),i=n[0],t=n[1],r=x.ZP.permissions.list({_limit:1e3}).data,s=(0,u.useMemo)((function(){return(null===r||void 0===r?void 0:r.permissions)||[]}),[r]),p=[{bold:!i,label:function(){return"Permissions"}}];return i?(p[0].onClick=function(){return t(!1)},p.push({bold:!0,label:function(){return"New permission"}})):p[0].linkProps={href:"/settings/workspace/permissions"},(0,b.jsxs)(m.Z,{appendBreadcrumbs:!0,breadcrumbs:p,title:"Permissions",uuidItemSelected:P.B2.PERMISSIONS,uuidWorkspaceSelected:P.Pl.USER_MANAGEMENT,children:[i&&(0,b.jsx)(a.Z,{contained:!0,onCancel:function(){return t(!1)}}),!i&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.Z,{p:_.cd,children:(0,b.jsx)(o.ZP,{beforeIcon:(0,b.jsx)(j.QM,{}),onClick:function(){return t(!0)},primary:!0,children:"Add new permission"})}),(0,b.jsx)(d.Z,{light:!0}),(0,b.jsx)(h.Z,{columnFlex:[3,1,null,6,null,null],columns:[{uuid:"Entity"},{uuid:"Subtype"},{uuid:"Entity ID"},{uuid:"Access"},{uuid:"Last updated"},{rightAligned:!0,uuid:"Created at"}],onClickRow:function(n){var i,t=null===(i=s[n])||void 0===i?void 0:i.id;e.push("/settings/workspace/permissions/".concat(t))},rows:null===s||void 0===s?void 0:s.map((function(e){var n=e.access,i=e.created_at,t=e.entity,r=e.entity_id,s=e.entity_name,u=e.entity_type,c=(e.id,e.updated_at),o=(e.user,n?(0,w.q)(n):[]),d=(null===o||void 0===o?void 0:o.length)||0;return[(0,b.jsx)(v.ZP,{monospace:!0,children:s||t},"entityName"),(0,b.jsx)(v.ZP,{default:!0,monospace:!!u,children:u||"-"},"entityType"),(0,b.jsx)(v.ZP,{default:!0,monospace:!!r,children:r||"-"},"entityID"),(0,b.jsx)("div",{children:d>=1&&(0,b.jsx)(l.ZP,{alignItems:"center",flexWrap:"wrap",children:null===o||void 0===o?void 0:o.map((function(e,n){return(0,b.jsx)("div",{children:(0,b.jsxs)(v.ZP,{default:!0,monospace:!0,small:!0,children:[e,d>=2&&n<d-1&&(0,b.jsx)(v.ZP,{inline:!0,muted:!0,small:!0,children:",\xa0"})]})},e)}))})},"access"),(0,b.jsx)(v.ZP,{monospace:!0,default:!0,children:c&&(0,Z.d$)(c)},"updatedAt"),(0,b.jsx)(v.ZP,{monospace:!0,default:!0,rightAligned:!0,children:i&&(0,Z.d$)(i)},"createdAt")]})),uuid:"permissions"})]})]})}k.getInitialProps=(0,t.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,p.Z)(k)},36717:function(e,n,i){"use strict";i.d(n,{q:function(){return s}});var t=i(75582),r=i(36288);function s(e){return Object.entries(r.K4).reduce((function(n,i){var r=(0,t.Z)(i,2),s=r[0],u=r[1];return e&Number(s)?n.concat(u):n}),[])}},65960:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/permissions",function(){return i(34331)}])}},function(e){e.O(0,[2678,1154,844,4267,600,8487,8264,7858,5499,8432,8146,9774,2888,179],(function(){return n=65960,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3853],{55729:function(e,n,t){"use strict";t.d(n,{Z:function(){return L}});var i=t(82394),r=t(75582),o=t(82684),c=t(69864),l=t(71180),a=t(15338),d=t(97618),s=t(55485),u=t(85854),p=t(48670),f=t(65956),h=t(82359),g=t(88543),m=t(38276),j=t(30160),x=t(17488),v=t(69650),b=t(12468),y=t(35686),Z=t(38626),w=t(44897),O=t(42631),P=t(70515),_=Z.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1b0w59t-0"})(["border-radius:","px;padding:","px;",""],O.n_,P.cd*P.iI,(function(e){return"\n background-color: ".concat((e.theme.background||w.Z.background).codeArea,";\n ")})),k=t(72473),I=t(72191),C=t(81728),S=t(72619),H=t(70320),N=t(23780),z=t(28598);function D(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function E(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?D(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var L=function(e){var n,t,Z,w=e.cancelButtonText,O=e.contained,D=e.header,L=e.onCancel,W=e.onSaveSuccess,M=(0,N.VI)(null,{},[],{uuid:"settings/workspace/preferences"}),V=(0,r.Z)(M,1)[0],B=(0,o.useState)(null),A=B[0],F=B[1],R=(0,o.useState)(!1),T=R[0],U=R[1],X=y.ZP.projects.list(),q=X.data,Q=X.mutate,Y=(0,o.useMemo)((function(){var e;return null===q||void 0===q||null===(e=q.projects)||void 0===e?void 0:e[0]}),[q]),J=Y||{},G=J.name,K=J.openai_api_key,$=J.project_uuid,ee=(0,o.useMemo)((function(){return"demo.mage.ai"===window.location.hostname}),[]);(0,o.useEffect)((function(){A||F(Y)}),[Y,A]);var ne=(0,c.Db)(y.ZP.projects.useUpdate(G),{onSuccess:function(e){return(0,S.wD)(e,{callback:function(e){var n,t=e.project;Q(),F(t),U(!1),(0,H.h)(null===t||void 0===t||null===(n=t.features)||void 0===n?void 0:n[h.d.LOCAL_TIMEZONE]),W&&(null===W||void 0===W||W(t))},onErrorCallback:function(e,n){return V({errors:n,response:e})}})}}),te=(0,r.Z)(ne,2),ie=te[0],re=te[1].isLoading,oe=(0,o.useCallback)((function(e){return ie({project:e})}),[ie]),ce=(0,z.jsxs)(z.Fragment,{children:[D,(0,z.jsxs)(f.Z,{noPadding:!0,children:[(0,z.jsxs)(m.Z,{p:P.cd,children:[(0,z.jsx)(m.Z,{mb:1,children:(0,z.jsx)(u.Z,{level:5,children:"Project name"})}),(0,z.jsx)(j.ZP,{default:!0,monospace:!0,children:G})]}),(0,z.jsx)(a.Z,{light:!0}),(0,z.jsxs)(m.Z,{p:P.cd,children:[(0,z.jsx)(m.Z,{mb:1,children:(0,z.jsx)(u.Z,{level:5,children:"Project UUID"})}),(0,z.jsx)(j.ZP,{default:!!$,monospace:!0,muted:!$,children:$||"Not required"})]}),(0,z.jsx)(a.Z,{light:!0}),(0,z.jsx)(m.Z,{p:P.cd,children:(0,z.jsxs)(s.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,z.jsxs)(d.Z,{flexDirection:"column",children:[(0,z.jsx)(m.Z,{mb:1,children:(0,z.jsx)(u.Z,{level:5,children:"Help improve Mage"})}),(0,z.jsxs)(j.ZP,{default:!0,children:["Please contribute usage statistics to help improve the developer experience for you and everyone in the community. Learn more ",(0,z.jsx)(p.Z,{href:"https://docs.mage.ai/contributing/statistics/overview",openNewWindow:!0,children:"here"}),"."]})]}),(0,z.jsx)(m.Z,{mr:P.cd}),(0,z.jsx)(v.Z,{compact:!0,checked:null===A||void 0===A?void 0:A.help_improve_mage,onCheck:function(){return F((function(e){return E(E({},e),{},{help_improve_mage:!(null!==A&&void 0!==A&&A.help_improve_mage)})}))}})]})})]}),(0,z.jsx)(m.Z,{mt:P.HN}),(0,z.jsx)(g.Z,{description:"Global settings that are applied to all pipelines in this project.",title:"Pipeline settings",children:(0,z.jsx)(g.S,{description:"Every time a trigger is created or updated in this pipeline, automatically persist it in code.",title:"Save triggers in code automatically",toggleSwitch:{checked:!(null===A||void 0===A||null===(n=A.pipelines)||void 0===n||null===(t=n.settings)||void 0===t||null===(Z=t.triggers)||void 0===Z||!Z.save_in_code_automatically),onCheck:function(e){return F((function(n){var t,i,r,o,c,l;return E(E({},n),{},{pipelines:E(E({},null===n||void 0===n?void 0:n.pipelines),{},{settings:E(E({},null===n||void 0===n||null===(t=n.pipelines)||void 0===t?void 0:t.settings),{},{triggers:E(E({},null===n||void 0===n||null===(i=n.pipelines)||void 0===i||null===(r=i.settings)||void 0===r?void 0:r.triggers),{},{save_in_code_automatically:e(null===n||void 0===n||null===(o=n.pipelines)||void 0===o||null===(c=o.settings)||void 0===c||null===(l=c.triggers)||void 0===l?void 0:l.save_in_code_automatically)})})})})}))}}})}),(0,z.jsx)(m.Z,{mt:P.HN}),(0,z.jsx)(f.Z,{noPadding:!0,overflowVisible:!0,children:(0,z.jsxs)(m.Z,{p:P.cd,children:[(0,z.jsx)(m.Z,{mb:1,children:(0,z.jsx)(u.Z,{level:5,children:"Features"})}),Object.entries((null===A||void 0===A?void 0:A.features)||{}).map((function(e,n){var t=(0,r.Z)(e,2),o=t[0],c=t[1];return(0,z.jsx)(m.Z,{mt:0===n?0:1,children:(0,z.jsxs)(s.ZP,{alignItems:"center",children:[(0,z.jsx)(v.Z,{checked:!!c,compact:!0,onCheck:function(){return F((function(e){return E(E({},e),{},{features:E(E({},null===A||void 0===A?void 0:A.features),{},(0,i.Z)({},o,!c))})}))}}),(0,z.jsx)(m.Z,{mr:P.cd}),(0,z.jsxs)(d.Z,{children:[(0,z.jsx)(j.ZP,{default:!c,monospace:!0,children:(0,C.vg)(o)}),o===h.d.LOCAL_TIMEZONE&&(0,z.jsx)(m.Z,{ml:1,children:(0,z.jsx)(b.Z,{block:!0,description:"Display dates in local timezone. Please note that certain pages (e.g. Monitor page) or components (e.g. Pipeline run bar charts) may still be in UTC time. Dates in local time will have a timezone offset in the timestamp (e.g. -07:00).",lightBackground:!0,muted:!0,size:I._k})})]})]})},o)}))]})}),(0,z.jsx)(m.Z,{mt:P.HN}),(0,z.jsx)(f.Z,{noPadding:!0,children:(0,z.jsxs)(m.Z,{p:P.cd,children:[(0,z.jsx)(m.Z,{mb:1,children:(0,z.jsx)(u.Z,{level:5,children:"OpenAI"})}),K&&!T?(0,z.jsxs)(s.ZP,E(E({},s.A0),{},{children:[(0,z.jsx)(j.ZP,{default:!0,monospace:!0,children:"API key: ********"}),(0,z.jsx)(l.ZP,{iconOnly:!0,onClick:function(){return U(!0)},secondary:!0,title:"Edit",children:(0,z.jsx)(k.I8,{size:I.bL})})]})):(0,z.jsx)(x.Z,{disabled:ee,label:ee?"Entering API key is disabled on demo":"API key",monospace:!0,onChange:function(e){return F((function(n){return E(E({},n),{},{openai_api_key:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===A||void 0===A?void 0:A.openai_api_key)||""})]})}),(0,z.jsx)(m.Z,{mt:P.HN}),(0,z.jsxs)(s.ZP,{alignItems:"center",children:[(0,z.jsx)(l.ZP,{loading:re,onClick:function(){oe({features:null===A||void 0===A?void 0:A.features,help_improve_mage:null===A||void 0===A?void 0:A.help_improve_mage,openai_api_key:null===A||void 0===A?void 0:A.openai_api_key,pipelines:null===A||void 0===A?void 0:A.pipelines})},primary:!0,children:"Save project settings"}),L&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(m.Z,{mr:P.cd}),(0,z.jsx)(l.ZP,{onClick:L,secondary:!0,children:w||"Cancel"})]})]})]});return O?(0,z.jsx)(_,{children:ce}):ce}},70320:function(e,n,t){"use strict";t.d(n,{h:function(){return c},q:function(){return o}});var i=t(78419),r=t(53808);function o(){return(0,r.U2)(i.am,null)||!1}function c(e){return"undefined"!==typeof e&&(0,r.t8)(i.am,e),e}},46568:function(e,n,t){"use strict";var i=t(82394),r=t(26304),o=(t(82684),t(33591)),c=t(28598),l=["children","fullHeight","gutter","style"];function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.fullHeight,i=e.gutter,a=e.style,s=void 0===a?{}:a,u=(0,r.Z)(e,l),p=d({},s);return i&&(p.paddingLeft=i,p.paddingRight=p.paddingLeft),t&&(p.height="100%"),(0,c.jsx)(o.Col,d(d({},u),{},{style:p,children:n}))}},82682:function(e,n,t){"use strict";var i=t(82394),r=t(26304),o=t(82684),c=t(33591),l=t(28598),a=["children","fullHeight","gutter","justifyContent","style"];function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.fullHeight,i=e.gutter,d=e.justifyContent,u=e.style,p=void 0===u?{}:u,f=(0,r.Z)(e,a),h=s({},p);return i&&(h.marginLeft=-1*i,h.marginRight=h.marginLeft),t&&(h.height="100%"),(0,l.jsx)(c.Row,s(s({},f),{},{justifyContent:d,style:h,children:o.Children.map(n,(function(e,n){return e&&o.cloneElement(e,{gutter:i,key:n})}))}))}},88543:function(e,n,t){"use strict";t.d(n,{S:function(){return y},Z:function(){return Z}});var i=t(82684),r=t(15338),o=t(97618),c=t(55485),l=t(85854),a=t(65956),d=t(82394),s=t(44085),u=t(38276),p=t(30160),f=t(17488),h=t(69650),g=t(72473),m=t(8193),j=t(70515),x=t(28598);function v(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?v(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var y=function(e){var n,t=e.children,i=e.description,r=e.invalid,l=e.large,a=void 0===l||l,d=e.selectInput,v=e.textInput,y=e.title,Z=e.toggleSwitch,w=e.warning;return(0,x.jsx)(u.Z,{p:j.cd,children:(0,x.jsxs)(c.ZP,{alignItems:"center",children:[(0,x.jsxs)(c.ZP,{flexDirection:"column",children:[(0,x.jsxs)(p.ZP,{danger:r,default:!0,large:a,warning:w,children:[y," ",r&&(0,x.jsx)(p.ZP,{danger:!0,inline:!0,large:a,children:"is required"})]}),i&&"string"===typeof i&&(0,x.jsx)(p.ZP,{muted:!0,small:!0,children:i}),i&&"string"!==typeof i&&i]}),(0,x.jsx)(u.Z,{mr:j.cd}),(0,x.jsxs)(o.Z,{flex:1,justifyContent:"flex-end",children:[t,v&&(0,x.jsx)(f.Z,b({afterIcon:(0,x.jsx)(g.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:m.Z,alignRight:!0,autoComplete:"off",large:a,noBackground:!0,noBorder:!0,fullWidth:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0},v)),d&&(0,x.jsx)(s.Z,b(b({},d),{},{afterIcon:(0,x.jsx)(g._M,{}),afterIconSize:m.Z,alignRight:!0,autoComplete:"off",large:a,noBackground:!0,noBorder:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0,children:null===d||void 0===d||null===(n=d.options)||void 0===n?void 0:n.map((function(e){var n=e.label,t=e.value;return(0,x.jsx)("option",{value:t,children:n||t},t)}))})),Z&&(0,x.jsx)(h.Z,{checked:!(null===Z||void 0===Z||!Z.checked),compact:!0,onCheck:null===Z||void 0===Z?void 0:Z.onCheck})]})]})})},Z=function(e){var n=e.children,t=e.description,d=e.headerChildren,s=e.title;return(0,x.jsxs)(a.Z,{noPadding:!0,children:[(0,x.jsx)(u.Z,{p:j.cd,children:(0,x.jsxs)(c.ZP,{alignItems:"center",children:[(0,x.jsxs)(o.Z,{flex:1,flexDirection:"column",children:[(0,x.jsx)(l.Z,{level:4,children:s}),t&&"string"===typeof t&&(0,x.jsx)(u.Z,{mt:1,children:(0,x.jsx)(p.ZP,{muted:!0,children:t})}),t&&"string"!==typeof t&&t]}),d]})}),i.Children.map(n,(function(e,n){return(0,x.jsxs)("div",{children:[(0,x.jsx)(r.Z,{light:!0}),e]},"".concat(s,"-").concat(n))}))]})}},8193:function(e,n,t){"use strict";t.d(n,{N:function(){return a},Z:function(){return l}});var i=t(38626),r=t(44897),o=t(42631),c=t(70515),l=2*c.iI,a=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1ck7mzt-0"})(["border-radius:","px;padding:","px;",""],o.n_,c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).codeArea,";\n ")}))},65956:function(e,n,t){"use strict";var i=t(38626),r=t(55485),o=t(38276),c=t(30160),l=t(44897),a=t(42631),d=t(47041),s=t(70515),u=t(28598),p=(0,i.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*s.iI,1.5*s.iI,1.5*s.iI),f=i.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],a.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||l.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||l.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||l.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||l.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||l.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),h=i.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],a.n_,a.n_,(function(e){return"\n background-color: ".concat((e.theme.background||l.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||l.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),p,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),g=i.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*s.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*s.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),m=i.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],a.M8,a.YF,1.75*s.iI);n.Z=function(e){var n=e.borderless,t=e.children,i=e.containerRef,l=e.contentContainerRef,a=e.dark,d=e.footer,s=e.fullHeight,p=void 0===s||s,j=e.fullWidth,x=void 0===j||j,v=e.header,b=e.headerHeight,y=e.headerIcon,Z=e.headerPaddingVertical,w=e.headerTitle,O=e.maxHeight,P=e.maxWidth,_=e.minWidth,k=e.noPadding,I=e.overflowVisible,C=e.subtitle,S=e.success;return(0,u.jsxs)(f,{borderless:n,dark:a,fullHeight:p,fullWidth:x,maxHeight:O,maxWidth:P,minWidth:_,overflowVisible:I,ref:i,success:S,children:[(v||w)&&(0,u.jsxs)(h,{headerPaddingVertical:Z,height:b,children:[v&&v,w&&(0,u.jsx)(r.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,u.jsxs)(r.ZP,{alignItems:"center",children:[y&&y,(0,u.jsx)(o.Z,{ml:y?1:0,children:(0,u.jsx)(c.ZP,{bold:!0,default:!0,children:w})})]})})]}),(0,u.jsxs)(g,{maxHeight:O,noPadding:k,overflowVisible:I,ref:l,children:[C&&"string"===typeof C&&(0,u.jsx)(o.Z,{mb:2,children:(0,u.jsx)(c.ZP,{default:!0,children:C})}),C&&"string"!==typeof C&&C,t]}),d&&(0,u.jsx)(m,{children:d})]})}},85854:function(e,n,t){"use strict";var i,r,o,c,l,a,d,s,u=t(82394),p=t(26304),f=t(26653),h=t(38626),g=t(33591),m=t(44897),j=t(95363),x=t(61896),v=t(30160),b=t(70515),y=t(38276),Z=t(28598),w=["children","condensed","inline","level","marketing","spacingBelow"];function O(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 P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," "," ",""],v.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||m.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(j.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(j.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(j.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(j.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(j.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(j.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(j.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(j.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(j.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "}),(function(e){return e.strikethrough&&"\n text-decoration: line-through;\n "})),k=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||m.Z.content).active,";\n ")})),I=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],_,g.media.md(i||(i=(0,f.Z)(["\n ","\n "])),x.aQ),g.media.lg(r||(r=(0,f.Z)(["\n ","\n "])),x.aQ),g.media.xl(o||(o=(0,f.Z)(["\n ","\n "])),x.aQ)),C=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],_,x.MJ),S=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],_,g.media.xs(c||(c=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*b.iI,7*b.iI),g.media.sm(l||(l=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*b.iI,7*b.iI),g.media.md(a||(a=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*b.iI,7*b.iI),g.media.lg(d||(d=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*b.iI,7*b.iI),g.media.xl(s||(s=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*b.iI,7*b.iI)),H=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],_,x.BL),N=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],_),z=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],_),D=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],_),E=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],_,(function(e){return 1===e.level&&"\n ".concat(x.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(x.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),L=function(e){var n,t=e.children,i=e.condensed,r=e.inline,o=e.level,c=e.marketing,l=e.spacingBelow,a=(0,p.Z)(e,w);r?n=E:0===Number(o)?n=I:1===Number(o)?n=c?S:C:2===Number(o)?n=H:3===Number(o)?n=N:4===Number(o)?n=z:5===Number(o)&&(n=D);var d=(0,Z.jsxs)(n,P(P({},a),{},{level:o,children:[l&&(0,Z.jsx)(y.Z,{mb:i?2:3,children:t}),!l&&t]}));return r?d:(0,Z.jsx)(k,{children:d})};L.defaultProps={level:3,weightStyle:6},n.Z=L},72191:function(e,n,t){"use strict";t.d(n,{_k:function(){return o},bL:function(){return r},l2:function(){return c},nz:function(){return l}});var i=t(70515),r=(i.iI,2*i.iI),o=2.5*i.iI,c=3*i.iI,l=3.5*i.iI},61316:function(e,n,t){"use strict";t.r(n);var i=t(77837),r=t(38860),o=t.n(r),c=t(46568),l=t(55729),a=t(93808),d=t(82682),s=t(28274),u=t(38276),p=t(70515),f=t(24755),h=t(28598);function g(){return(0,h.jsx)(s.Z,{uuidItemSelected:f.HY,uuidWorkspaceSelected:f.WH,children:(0,h.jsx)(u.Z,{p:p.cd,children:(0,h.jsx)(d.Z,{justifyContent:"center",children:(0,h.jsx)(c.Z,{xl:8,xxl:6,children:(0,h.jsx)(l.Z,{})})})})})}g.getInitialProps=(0,i.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,a.Z)(g)},33323:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/preferences",function(){return t(61316)}])}},function(e){e.O(0,[2678,1154,844,4267,600,8487,8264,8432,9774,2888,179],(function(){return n=33323,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6875],{2591:function(n,r,u){"use strict";u.r(r);var t=u(77837),e=u(38860),s=u.n(e),i=u(93808),o=u(17022),a=u(28598);function c(n){var r=n.slug;return(0,a.jsx)(o.Z,{slug:r})}c.getInitialProps=function(){var n=(0,t.Z)(s().mark((function n(r){var u;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=r.query.slug,n.abrupt("return",{slug:null===u||void 0===u?void 0:u[0]});case 2:case"end":return n.stop()}}),n)})));return function(r){return n.apply(this,arguments)}}(),r.default=(0,i.Z)(c)},44981:function(n,r,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/roles/[...slug]",function(){return u(2591)}])}},function(n){n.O(0,[2678,1154,844,4267,600,8487,8264,7858,5499,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6875],{2591:function(n,r,u){"use strict";u.r(r);var t=u(77837),e=u(38860),s=u.n(e),i=u(93808),o=u(17022),a=u(28598);function c(n){var r=n.slug;return(0,a.jsx)(o.Z,{slug:r})}c.getInitialProps=function(){var n=(0,t.Z)(s().mark((function n(r){var u;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=r.query.slug,n.abrupt("return",{slug:null===u||void 0===u?void 0:u[0]});case 2:case"end":return n.stop()}}),n)})));return function(r){return n.apply(this,arguments)}}(),r.default=(0,i.Z)(c)},44981:function(n,r,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/roles/[...slug]",function(){return u(2591)}])}},function(n){n.O(0,[2678,1154,844,4267,600,8487,8264,7858,5499,8432,7022,9774,2888,179],(function(){return r=44981,n(n.s=r);var r}));var r=n.O();_N_E=r}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2344],{53795:function(e,n,r){"use strict";r.r(n);var s=r(77837),t=r(75582),o=r(38860),i=r.n(o),u=r(21764),c=r(82684),l=r(69864),d=r(34376),a=r(71180),p=r(15338),f=r(55485),h=r(48670),m=r(63637),x=r(93808),j=r(17022),w=r(28274),Z=r(38276),v=r(75499),k=r(30160),b=r(12468),g=r(35686),_=r(70515),P=r(24755),C=r(3917),I=r(76417),T=r(72619),A=r(3314),O=r(28598);function E(){var e=(0,d.useRouter)(),n=(0,c.useState)(!1),r=n[0],s=n[1],o=g.ZP.roles.list().data,i=(0,c.useMemo)((function(){return(null===o||void 0===o?void 0:o.roles)||[]}),[o]),x=[{bold:!r,label:function(){return"Roles"}}];r?(x[0].onClick=function(){return s(!1)},x.push({bold:!0,label:function(){return"New role"}})):x[0].linkProps={href:"/settings/workspace/roles"};var E=(0,l.Db)(g.ZP.seeds.useCreate(),{onSuccess:function(e){return(0,T.wD)(e,{callback:function(){u.Am.success("Roles and permissions successfully created.",{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:"seed-create-success"})},onErrorCallback:function(e){var n=e.error,r=n.errors,s=n.exception,t=n.message,o=n.type;u.Am.error((null===r||void 0===r?void 0:r.error)||s||t,{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:o})}})}}),N=(0,t.Z)(E,2),R=N[0],S=N[1].isLoading;return(0,O.jsxs)(w.Z,{appendBreadcrumbs:!0,breadcrumbs:x,title:"Roles",uuidItemSelected:P.B2.ROLES,uuidWorkspaceSelected:P.Pl.USER_MANAGEMENT,children:[r&&(0,O.jsx)(j.Z,{contained:!0,onCancel:function(){return s(!1)}}),!r&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(Z.Z,{p:_.cd,children:(0,O.jsxs)(f.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,O.jsx)(a.ZP,{beforeIcon:(0,O.jsx)(m.Z,{}),onClick:function(){return s(!0)},primary:!0,children:"Add new role"}),(0,O.jsx)(Z.Z,{mr:_.cd}),(0,O.jsx)(b.Z,{appearBefore:!0,fullSize:!0,description:(0,O.jsxs)(k.ZP,{default:!0,children:["This will create 6 roles and 100s of permissions",(0,O.jsx)("br",{}),"that Mage normally uses when user defined",(0,O.jsx)("br",{}),"permissions isn\u2019t turned on."]}),lightBackground:!0,widthFitContent:!0,children:(0,O.jsx)(a.ZP,{compact:!0,loading:S,onClick:function(){return R({seed:{permissions:!0,roles:!0}})},secondary:!0,small:!0,children:"Create default roles and permissions"})})]})}),(0,O.jsx)(p.Z,{light:!0}),(0,O.jsx)(v.Z,{columnFlex:[1,1,1,null],columns:[{uuid:"Role"},{uuid:"Created by"},{uuid:"Last updated"},{rightAligned:!0,uuid:"Created at"}],onClickRow:function(n){var r,s=null===(r=i[n])||void 0===r?void 0:r.id;e.push("/settings/workspace/roles/".concat(s))},rows:null===i||void 0===i?void 0:i.map((function(n){var r=n.created_at,s=(n.id,n.name),t=n.updated_at,o=n.user;return[(0,O.jsx)(k.ZP,{children:s},"name"),o?(0,O.jsx)(h.Z,{default:!0,onClick:function(n){(0,A.j)(n),e.push("/settings/workspace/users/".concat(null===o||void 0===o?void 0:o.id))},children:(0,I.s)(o)}):(0,O.jsx)("div",{},"user"),(0,O.jsx)(k.ZP,{monospace:!0,default:!0,children:t&&(0,C.d$)(t)},"updatedAt"),(0,O.jsx)(k.ZP,{monospace:!0,default:!0,rightAligned:!0,children:r&&(0,C.d$)(r)},"createdAt")]})),uuid:"roles"})]})]})}E.getInitialProps=(0,s.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,x.Z)(E)},8619:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/roles",function(){return r(53795)}])}},function(e){e.O(0,[2678,1154,844,4267,600,8487,8264,7858,5499,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2344],{53795:function(e,n,r){"use strict";r.r(n);var s=r(77837),t=r(75582),o=r(38860),i=r.n(o),u=r(21764),c=r(82684),l=r(69864),d=r(34376),a=r(71180),p=r(15338),f=r(55485),h=r(48670),m=r(63637),x=r(93808),j=r(17022),w=r(28274),Z=r(38276),v=r(75499),k=r(30160),b=r(12468),g=r(35686),_=r(70515),P=r(24755),C=r(3917),I=r(76417),T=r(72619),A=r(3314),O=r(28598);function E(){var e=(0,d.useRouter)(),n=(0,c.useState)(!1),r=n[0],s=n[1],o=g.ZP.roles.list().data,i=(0,c.useMemo)((function(){return(null===o||void 0===o?void 0:o.roles)||[]}),[o]),x=[{bold:!r,label:function(){return"Roles"}}];r?(x[0].onClick=function(){return s(!1)},x.push({bold:!0,label:function(){return"New role"}})):x[0].linkProps={href:"/settings/workspace/roles"};var E=(0,l.Db)(g.ZP.seeds.useCreate(),{onSuccess:function(e){return(0,T.wD)(e,{callback:function(){u.Am.success("Roles and permissions successfully created.",{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:"seed-create-success"})},onErrorCallback:function(e){var n=e.error,r=n.errors,s=n.exception,t=n.message,o=n.type;u.Am.error((null===r||void 0===r?void 0:r.error)||s||t,{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:o})}})}}),N=(0,t.Z)(E,2),R=N[0],S=N[1].isLoading;return(0,O.jsxs)(w.Z,{appendBreadcrumbs:!0,breadcrumbs:x,title:"Roles",uuidItemSelected:P.B2.ROLES,uuidWorkspaceSelected:P.Pl.USER_MANAGEMENT,children:[r&&(0,O.jsx)(j.Z,{contained:!0,onCancel:function(){return s(!1)}}),!r&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(Z.Z,{p:_.cd,children:(0,O.jsxs)(f.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,O.jsx)(a.ZP,{beforeIcon:(0,O.jsx)(m.Z,{}),onClick:function(){return s(!0)},primary:!0,children:"Add new role"}),(0,O.jsx)(Z.Z,{mr:_.cd}),(0,O.jsx)(b.Z,{appearBefore:!0,fullSize:!0,description:(0,O.jsxs)(k.ZP,{default:!0,children:["This will create 6 roles and 100s of permissions",(0,O.jsx)("br",{}),"that Mage normally uses when user defined",(0,O.jsx)("br",{}),"permissions isn\u2019t turned on."]}),lightBackground:!0,widthFitContent:!0,children:(0,O.jsx)(a.ZP,{compact:!0,loading:S,onClick:function(){return R({seed:{permissions:!0,roles:!0}})},secondary:!0,small:!0,children:"Create default roles and permissions"})})]})}),(0,O.jsx)(p.Z,{light:!0}),(0,O.jsx)(v.Z,{columnFlex:[1,1,1,null],columns:[{uuid:"Role"},{uuid:"Created by"},{uuid:"Last updated"},{rightAligned:!0,uuid:"Created at"}],onClickRow:function(n){var r,s=null===(r=i[n])||void 0===r?void 0:r.id;e.push("/settings/workspace/roles/".concat(s))},rows:null===i||void 0===i?void 0:i.map((function(n){var r=n.created_at,s=(n.id,n.name),t=n.updated_at,o=n.user;return[(0,O.jsx)(k.ZP,{children:s},"name"),o?(0,O.jsx)(h.Z,{default:!0,onClick:function(n){(0,A.j)(n),e.push("/settings/workspace/users/".concat(null===o||void 0===o?void 0:o.id))},children:(0,I.s)(o)}):(0,O.jsx)("div",{},"user"),(0,O.jsx)(k.ZP,{monospace:!0,default:!0,children:t&&(0,C.d$)(t)},"updatedAt"),(0,O.jsx)(k.ZP,{monospace:!0,default:!0,rightAligned:!0,children:r&&(0,C.d$)(r)},"createdAt")]})),uuid:"roles"})]})]})}E.getInitialProps=(0,s.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,x.Z)(E)},8619:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/roles",function(){return r(53795)}])}},function(e){e.O(0,[2678,1154,844,4267,600,8487,8264,7858,5499,8432,7022,9774,2888,179],(function(){return n=8619,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2403],{85854:function(e,n,t){"use strict";var i,r,o,l,s,c,a,u,d=t(82394),h=t(26304),p=t(26653),m=t(38626),f=t(33591),y=t(44897),b=t(95363),g=t(61896),j=t(30160),x=t(70515),v=t(38276),_=t(28598),Z=["children","condensed","inline","level","marketing","spacingBelow"];function w(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 O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var S=(0,m.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," "," ",""],j.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||y.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(b.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "}),(function(e){return e.strikethrough&&"\n text-decoration: line-through;\n "})),k=m.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||y.Z.content).active,";\n ")})),P=m.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],S,f.media.md(i||(i=(0,p.Z)(["\n ","\n "])),g.aQ),f.media.lg(r||(r=(0,p.Z)(["\n ","\n "])),g.aQ),f.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),g.aQ)),C=m.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],S,g.MJ),I=m.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],S,f.media.xs(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),f.media.sm(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),f.media.md(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),f.media.lg(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),f.media.xl(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI)),N=m.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],S,g.BL),H=m.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],S),T=m.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],S),M=m.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],S),z=m.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],S,(function(e){return 1===e.level&&"\n ".concat(g.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(g.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),q=function(e){var n,t=e.children,i=e.condensed,r=e.inline,o=e.level,l=e.marketing,s=e.spacingBelow,c=(0,h.Z)(e,Z);r?n=z:0===Number(o)?n=P:1===Number(o)?n=l?I:C:2===Number(o)?n=N:3===Number(o)?n=H:4===Number(o)?n=T:5===Number(o)&&(n=M);var a=(0,_.jsxs)(n,O(O({},c),{},{level:o,children:[s&&(0,_.jsx)(v.Z,{mb:i?2:3,children:t}),!s&&t]}));return r?a:(0,_.jsx)(k,{children:a})};q.defaultProps={level:3,weightStyle:6},n.Z=q},60480:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return E}});var i,r=t(77837),o=t(82394),l=t(75582),s=t(38860),c=t.n(s),a=t(82684),u=t(12691),d=t.n(u),h=t(21764),p=t(69864),m=t(71180),f=t(70652),y=t(50724),b=t(82555),g=t(55485),j=t(85854),x=t(48670),v=t(93808),_=t(44085),Z=t(28274),w=t(38276);!function(e){e.SSH="ssh",e.HTTPS="https"}(i||(i={}));var O=[{autoComplete:"remote_repo_link",label:"Remote repo url",required:!0,uuid:"remote_repo_link"},{autoComplete:"repo_path",label:"Local directory path",labelDescription:"Defaults to Python's os.getcwd() if omitted. Mage will create this local directory if it doesn't already exist.",uuid:"repo_path"}],S=[{autoComplete:"username",label:"Username",uuid:"username"},{autoComplete:"email",label:"Email",uuid:"email"},{autoComplete:"ssh_public_key",label:"SSH public key in base64",type:"password",uuid:"ssh_public_key"},{autoComplete:"ssh_private_key",label:"SSH private key in base64",type:"password",uuid:"ssh_private_key"}],k=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",label:"Email",required:!0,uuid:"email"},{autoComplete:"access_token",label:"Access token",labelDescription:"Add your Git access token to authenticate with your provided username. The access token will be stored as a Mage secret.",required:!0,type:"password",uuid:"access_token"}],P=[{autoComplete:"branch",label:"Branch name",required:!0,uuid:"branch"}],C=t(30160),I=t(17488),N=t(35686),H=t(70515),T=t(24755),M=t(72619),z=t(28598);function q(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?q(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):q(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function A(){var e=N.ZP.syncs.list().data,n=(0,a.useState)(null),t=n[0],r=n[1],s=(0,a.useState)(null),c=s[0],u=s[1],v=(0,a.useState)(null),q=v[0],A=v[1],E=(0,a.useState)(null),G=E[0],B=E[1];(0,a.useEffect)((function(){if(e){var n,t=null===e||void 0===e||null===(n=e.syncs)||void 0===n?void 0:n[0];u(null===t||void 0===t?void 0:t.user_git_settings),r(t),B(!(null===t||void 0===t||!t.branch))}}),[e]);var R=(0,a.useMemo)((function(){if(e){var n,t=null===e||void 0===e||null===(n=e.syncs)||void 0===n?void 0:n[0];return!(null===t||void 0===t||!t.branch)}return!1}),[e]),F=(0,p.Db)(N.ZP.syncs.useCreate(),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(e){var n=e.sync;n&&(r(n),window.location.reload(),h.Am.success("Sync saved",{position:h.Am.POSITION.BOTTOM_RIGHT,toastId:"data_sync_success"}))},onErrorCallback:function(e,n){return A({errors:n,response:e})}})}}),L=(0,l.Z)(F,2),U=L[0],W=L[1].isLoading,X=(0,p.Db)(N.ZP.syncs.useUpdate("git"),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(e){e.sync&&h.Am.success("Success!",{position:h.Am.POSITION.BOTTOM_RIGHT,toastId:"data_sync_success"})},onErrorCallback:function(e,n){return A({errors:n,response:e})}})}}),Q=(0,l.Z)(X,2),J=Q[0],Y=Q[1].isLoading,K=(0,a.useMemo)((function(){return(null===t||void 0===t?void 0:t.auth_type)||i.SSH}),[null===t||void 0===t?void 0:t.auth_type]),V=(0,a.useMemo)((function(){return K===i.HTTPS?k:S}),[K]),$=N.ZP.statuses.list().data,ee=(0,a.useMemo)((function(){var e,n;return null===$||void 0===$||null===(e=$.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.require_user_authentication}),[$]),ne=(0,a.useMemo)((function(){var e=r,n=t;return!G&&ee&&(e=u,n=c),(0,z.jsx)("form",{children:V.map((function(t){var i,r,l=t.autoComplete,s=t.disabled,c=t.label,a=t.labelDescription,u=t.required,d=t.type,p=t.uuid;return r="ssh_public_key"===p?(0,z.jsx)(w.Z,{mb:1,children:(0,z.jsxs)(C.ZP,{small:!0,children:["Run ",(0,z.jsx)(x.Z,{onClick:function(){navigator.clipboard.writeText("cat ~/.ssh/id_ed25519.pub | base64 | tr -d \\\\n | echo"),h.Am.success("Successfully copied to clipboard.",{position:h.Am.POSITION.BOTTOM_RIGHT,toastId:p})},small:!0,children:"cat ~/.ssh/id_ed25519.pub | base64 | tr -d \\\\n | echo"})," in terminal to get base64 encoded public key and paste the result here. The key will be stored as a Mage secret."]})}):"ssh_private_key"===p?(0,z.jsx)(w.Z,{mb:1,children:(0,z.jsxs)(C.ZP,{small:!0,children:["Follow same steps as the public key, but run ",(0,z.jsx)(x.Z,{onClick:function(){navigator.clipboard.writeText("cat ~/.ssh/id_ed25519 | base64 | tr -d \\\\n && echo"),h.Am.success("Successfully copied to clipboard.",{position:h.Am.POSITION.BOTTOM_RIGHT,toastId:p})},small:!0,children:"cat ~/.ssh/id_ed25519 | base64 | tr -d \\\\n && echo"})," instead. The key will be stored as a Mage secret."]})}):a&&(0,z.jsx)(w.Z,{mb:1,children:(0,z.jsx)(C.ZP,{small:!0,children:a})}),(0,z.jsxs)(w.Z,{mt:2,children:[r,(0,z.jsx)(I.Z,{autoComplete:l,disabled:s,label:c,onChange:function(n){e((function(e){return D(D({},e),{},(0,o.Z)({},p,n.target.value))}))},primary:!0,required:u,setContentOnMount:!0,type:d,value:(null===(i=n)||void 0===i?void 0:i[p])||""})]},p)}))})}),[V,ee,u,r,G,t,c]);return(0,z.jsx)(Z.Z,{uuidItemSelected:T.fF,uuidWorkspaceSelected:T.WH,children:(0,z.jsxs)(w.Z,{p:H.cd,style:{width:"600px"},children:[(0,z.jsx)(j.Z,{children:"Git repository settings"}),(0,z.jsxs)(C.ZP,{children:["If you are using Github and want to use a more feature rich integration, you can check out the ",(0,z.jsx)(d(),{as:"/version-control",href:"/version-control",children:(0,z.jsx)(x.Z,{inline:!0,children:"version control app"})}),"."]}),(0,z.jsx)(x.Z,{}),(0,z.jsx)(w.Z,{mt:1,children:(0,z.jsx)(C.ZP,{bold:!0,children:"Authentication type"})}),(0,z.jsx)(w.Z,{mt:1,children:(0,z.jsx)(_.Z,{compact:!0,label:"Authentication type",onChange:function(e){var n=e.target.value;r((function(e){return D(D({},e),{},{auth_type:n})}))},value:K,children:Object.entries(i).map((function(e){var n=(0,l.Z)(e,2),t=n[0],i=n[1];return(0,z.jsx)("option",{value:i,children:t},i)}))})}),(0,z.jsx)(w.Z,{mt:H.Mq,children:K===i.SSH&&(0,z.jsxs)(C.ZP,{bold:!0,children:["You will need to ",(0,z.jsx)(x.Z,{href:"https://docs.mage.ai/development/git/configure#generate-ssh-token",openNewWindow:!0,children:"set up your SSH key"})," if you have not done so already."]})}),(0,z.jsx)("form",{children:O.map((function(e){var n=e.autoComplete,i=e.disabled,l=e.label,s=e.labelDescription,c=e.required,a=e.type,u=e.uuid;return(0,z.jsxs)(w.Z,{mt:2,children:[s&&(0,z.jsx)(w.Z,{mb:1,children:(0,z.jsx)(C.ZP,{small:!0,children:s})}),(0,z.jsx)(I.Z,{autoComplete:n,disabled:i,label:l,onChange:function(e){r((function(n){return D(D({},n),{},(0,o.Z)({},u,e.target.value))}))},primary:!0,required:c,setContentOnMount:!0,type:a,value:(null===t||void 0===t?void 0:t[u])||""})]},u)}))}),(0,z.jsx)(w.Z,{mt:H.Mq,children:(0,z.jsxs)(g.ZP,{alignItems:"center",children:[(0,z.jsx)(w.Z,{mr:1,children:(0,z.jsx)(f.Z,{checked:!!G,onClick:function(){return B((function(e){var n=!e;return n||r((function(e){return D(D({},e),{},{branch:null,sync_on_pipeline_run:!1,sync_on_start:!1})})),n}))}})}),(0,z.jsxs)(C.ZP,{bold:!0,children:["Use ",(0,z.jsx)(x.Z,{bold:!0,href:"https://docs.mage.ai/production/data-sync/git-sync",openNewWindow:!0,children:"One-way git sync"})," (Click link for more info)"]})]})}),G?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(w.Z,{mt:H.Mq,children:(0,z.jsx)(C.ZP,{bold:!0,children:"Sync with a specified branch. These settings will be saved at the project level."})}),(0,z.jsx)("form",{children:P.map((function(e){var n=e.autoComplete,i=e.disabled,l=e.label,s=e.required,c=e.type,a=e.uuid;return(0,z.jsx)(w.Z,{mt:2,children:(0,z.jsx)(I.Z,{autoComplete:n,disabled:i,label:l,onChange:function(e){r((function(n){return D(D({},n),{},(0,o.Z)({},a,e.target.value))}))},primary:!0,required:s,setContentOnMount:!0,type:c,value:(null===t||void 0===t?void 0:t[a])||""})},a)}))}),(0,z.jsx)(g.ZP,{alignItems:"center",children:(0,z.jsx)(w.Z,{mt:2,children:(0,z.jsx)(f.Z,{checked:null===t||void 0===t?void 0:t.sync_submodules,label:"Include submodules",onClick:function(){r((function(e){return D(D({},e),{},{sync_submodules:!(null!==t&&void 0!==t&&t.sync_submodules)})}))}})})}),(0,z.jsx)(w.Z,{mt:2,children:(0,z.jsx)(j.Z,{level:5,children:"Additional sync settings"})}),(0,z.jsx)(g.ZP,{alignItems:"center",children:(0,z.jsx)(w.Z,{mt:2,children:(0,z.jsx)(f.Z,{checked:null===t||void 0===t?void 0:t.sync_on_pipeline_run,label:"Sync before each trigger run",onClick:function(){r((function(e){return D(D({},e),{},{sync_on_pipeline_run:!(null!==t&&void 0!==t&&t.sync_on_pipeline_run)})}))}})})}),(0,z.jsx)(g.ZP,{alignItems:"center",children:(0,z.jsx)(w.Z,{mt:2,children:(0,z.jsx)(f.Z,{checked:null===t||void 0===t?void 0:t.sync_on_start,label:"Sync on server start up",onClick:function(){r((function(e){return D(D({},e),{},{sync_on_start:!(null!==t&&void 0!==t&&t.sync_on_start)})}))}})})}),(0,z.jsx)(w.Z,{mt:H.Mq,children:(0,z.jsx)(C.ZP,{bold:!0,children:"Configure the Git authentication credentials that will be used to sync with the specified Git repository."})}),ne]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(w.Z,{mt:H.Mq,children:(0,z.jsx)(C.ZP,{bold:!0,children:"These fields are required to help Mage configure your Git settings. These settings will be specific to your user."})}),ne]}),(0,z.jsx)(w.Z,{mt:2,children:(0,z.jsx)(m.ZP,{loading:W,onClick:function(){return U({sync:D(D({},t),{},{user_git_settings:c})})},primary:!0,children:"Save repository settings"})}),q&&(0,z.jsx)(y.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===A||void 0===A?void 0:A(null)},children:(0,z.jsx)(b.Z,D(D({},q),{},{onClose:function(){return null===A||void 0===A?void 0:A(null)}}))}),R&&(0,z.jsxs)(w.Z,{mt:H.HN,children:[(0,z.jsx)(j.Z,{children:"Synchronize code from remote repository"}),(0,z.jsxs)(w.Z,{mt:1,children:[(0,z.jsxs)(C.ZP,{children:["Running the sync from this page will run a one time sync with the remote repository.",(0,z.jsx)("br",{}),"This may ",(0,z.jsx)(C.ZP,{bold:!0,danger:!0,inline:!0,children:"overwrite"})," your existing data, so make sure you\u2019ve committed or backed up your current changes."]}),(0,z.jsx)(w.Z,{mt:2}),(0,z.jsxs)(C.ZP,{children:["Reset will tell Mage to try to clone your repository from remote. This will also ",(0,z.jsx)(C.ZP,{bold:!0,danger:!0,inline:!0,children:"overwrite"})," all your local changes and reset any settings you may have configured for your local Git repo. This may be helpful if you are having issues syncing your repository."]})]}),(0,z.jsx)(w.Z,{mt:2,children:(0,z.jsxs)(g.ZP,{children:[(0,z.jsx)(m.ZP,{loading:Y,onClick:function(){return J({sync:{action_type:"sync_data"}})},warning:!0,children:"Synchronize code"}),(0,z.jsx)(w.Z,{ml:2}),(0,z.jsx)(m.ZP,{danger:!0,loading:Y,onClick:function(){return J({sync:{action_type:"reset"}})},children:"Reset repository"})]})})]})]})})}A.getInitialProps=(0,r.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var E=(0,v.Z)(A)},37056:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/sync-data",function(){return t(60480)}])}},function(e){e.O(0,[2678,1154,844,4267,600,8487,8264,8432,9774,2888,179],(function(){return n=37056,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8011],{49597:function(n,r,u){"use strict";u.r(r);var t=u(77837),e=u(38860),s=u.n(e),i=u(93808),a=u(37361),c=u(28598);function o(n){var r=n.slug;return(0,c.jsx)(a.Z,{slug:r})}o.getInitialProps=function(){var n=(0,t.Z)(s().mark((function n(r){var u;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=r.query.slug,n.abrupt("return",{slug:null===u||void 0===u?void 0:u[0]});case 2:case"end":return n.stop()}}),n)})));return function(r){return n.apply(this,arguments)}}(),r.default=(0,i.Z)(o)},23292:function(n,r,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/users/[...slug]",function(){return u(49597)}])}},function(n){n.O(0,[2678,1154,844,4267,600,8487,8264,7858,5499,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8011],{49597:function(n,r,u){"use strict";u.r(r);var t=u(77837),e=u(38860),s=u.n(e),i=u(93808),a=u(37361),c=u(28598);function o(n){var r=n.slug;return(0,c.jsx)(a.Z,{slug:r})}o.getInitialProps=function(){var n=(0,t.Z)(s().mark((function n(r){var u;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=r.query.slug,n.abrupt("return",{slug:null===u||void 0===u?void 0:u[0]});case 2:case"end":return n.stop()}}),n)})));return function(r){return n.apply(this,arguments)}}(),r.default=(0,i.Z)(o)},23292:function(n,r,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/users/[...slug]",function(){return u(49597)}])}},function(n){n.O(0,[2678,1154,844,4267,600,8487,8264,7858,5499,8432,7361,9774,2888,179],(function(){return r=23292,n(n.s=r);var r}));var r=n.O();_N_E=r}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2287],{87992:function(e,n,r){"use strict";r.r(n);var u=r(77837),s=r(38860),t=r.n(s),i=r(82684),a=r(34376),l=r(71180),d=r(15338),c=r(93808),o=r(28274),f=r(38276),p=r(75499),m=r(30160),h=r(37361),_=r(35686),v=r(72473),w=r(70515),x=r(24755),Z=r(3917),j=r(50178),P=r(28598);function k(){var e=(0,a.useRouter)(),n=(0,i.useState)(!1),r=n[0],u=n[1],s=(0,j.PR)()||{},t=(s.id,s.owner),c=_.ZP.users.list({},{revalidateOnFocus:!1}).data,k=(0,i.useMemo)((function(){return(null===c||void 0===c?void 0:c.users)||[]}),[null===c||void 0===c?void 0:c.users]),b=[{bold:!r,label:function(){return"Users"}}];return r?(b[0].onClick=function(){return u(!1)},b.push({bold:!0,label:function(){return"New user"}})):b[0].linkProps={href:"/settings/workspace/users"},(0,P.jsxs)(o.Z,{appendBreadcrumbs:!0,breadcrumbs:b,title:"Users",uuidItemSelected:x.B2.USERS,uuidWorkspaceSelected:x.Pl.USER_MANAGEMENT,children:[r&&(0,P.jsx)(h.Z,{contained:!0,onCancel:function(){return u(!1)}}),!r&&(0,P.jsxs)(P.Fragment,{children:[t&&(0,P.jsx)(f.Z,{p:w.cd,children:(0,P.jsx)(l.ZP,{beforeIcon:(0,P.jsx)(v.DN,{}),onClick:function(){return u(!0)},primary:!0,children:"Add new user"})}),(0,P.jsx)(d.Z,{light:!0}),(0,P.jsx)(p.Z,{columnFlex:[null,1,1,1,1,null,null],columns:[{label:function(){return""},uuid:"avatar"},{uuid:"Username"},{uuid:"First name"},{uuid:"Last name"},{uuid:"Email"},{uuid:"Role"},{rightAligned:!0,uuid:"Created"}],onClickRow:function(n){var r,u=null===(r=k[n])||void 0===r?void 0:r.id;e.push("/settings/workspace/users/".concat(u))},rows:k.map((function(e){var n=e.avatar,r=e.created_at,u=e.email,s=e.first_name,t=(e.id,e.last_name),i=e.roles_display,a=e.roles_new,l=e.username,d=a||[];return d.sort((function(e,n){return e.id-n.id})),[(0,P.jsx)(m.ZP,{large:!0,rightAligned:!0,children:n},"avatar"),(0,P.jsx)(m.ZP,{children:l||"-"},"username"),(0,P.jsx)(m.ZP,{default:!0,children:s||"-"},"firstName"),(0,P.jsx)(m.ZP,{default:!0,children:t||"-"},"lastName"),(0,P.jsx)(m.ZP,{default:!0,children:u},"email"),(0,P.jsx)(m.ZP,{default:!0,children:d.length>0?d[0].name:i},"roles"),(0,P.jsx)(m.ZP,{monospace:!0,default:!0,children:r&&(0,Z.d$)(r)},"created")]})),uuid:"pipeline-runs"})]})]})}k.getInitialProps=(0,u.Z)(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,c.Z)(k)},48673:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/users",function(){return r(87992)}])}},function(e){e.O(0,[2678,1154,844,4267,600,8487,8264,7858,5499,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2287],{87992:function(e,n,r){"use strict";r.r(n);var u=r(77837),s=r(38860),t=r.n(s),i=r(82684),a=r(34376),l=r(71180),d=r(15338),c=r(93808),o=r(28274),f=r(38276),p=r(75499),m=r(30160),h=r(37361),_=r(35686),v=r(72473),w=r(70515),x=r(24755),Z=r(3917),j=r(50178),P=r(28598);function k(){var e=(0,a.useRouter)(),n=(0,i.useState)(!1),r=n[0],u=n[1],s=(0,j.PR)()||{},t=(s.id,s.owner),c=_.ZP.users.list({},{revalidateOnFocus:!1}).data,k=(0,i.useMemo)((function(){return(null===c||void 0===c?void 0:c.users)||[]}),[null===c||void 0===c?void 0:c.users]),b=[{bold:!r,label:function(){return"Users"}}];return r?(b[0].onClick=function(){return u(!1)},b.push({bold:!0,label:function(){return"New user"}})):b[0].linkProps={href:"/settings/workspace/users"},(0,P.jsxs)(o.Z,{appendBreadcrumbs:!0,breadcrumbs:b,title:"Users",uuidItemSelected:x.B2.USERS,uuidWorkspaceSelected:x.Pl.USER_MANAGEMENT,children:[r&&(0,P.jsx)(h.Z,{contained:!0,onCancel:function(){return u(!1)}}),!r&&(0,P.jsxs)(P.Fragment,{children:[t&&(0,P.jsx)(f.Z,{p:w.cd,children:(0,P.jsx)(l.ZP,{beforeIcon:(0,P.jsx)(v.DN,{}),onClick:function(){return u(!0)},primary:!0,children:"Add new user"})}),(0,P.jsx)(d.Z,{light:!0}),(0,P.jsx)(p.Z,{columnFlex:[null,1,1,1,1,null,null],columns:[{label:function(){return""},uuid:"avatar"},{uuid:"Username"},{uuid:"First name"},{uuid:"Last name"},{uuid:"Email"},{uuid:"Role"},{rightAligned:!0,uuid:"Created"}],onClickRow:function(n){var r,u=null===(r=k[n])||void 0===r?void 0:r.id;e.push("/settings/workspace/users/".concat(u))},rows:k.map((function(e){var n=e.avatar,r=e.created_at,u=e.email,s=e.first_name,t=(e.id,e.last_name),i=e.roles_display,a=e.roles_new,l=e.username,d=a||[];return d.sort((function(e,n){return e.id-n.id})),[(0,P.jsx)(m.ZP,{large:!0,rightAligned:!0,children:n},"avatar"),(0,P.jsx)(m.ZP,{children:l||"-"},"username"),(0,P.jsx)(m.ZP,{default:!0,children:s||"-"},"firstName"),(0,P.jsx)(m.ZP,{default:!0,children:t||"-"},"lastName"),(0,P.jsx)(m.ZP,{default:!0,children:u},"email"),(0,P.jsx)(m.ZP,{default:!0,children:d.length>0?d[0].name:i},"roles"),(0,P.jsx)(m.ZP,{monospace:!0,default:!0,children:r&&(0,Z.d$)(r)},"created")]})),uuid:"pipeline-runs"})]})]})}k.getInitialProps=(0,u.Z)(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,c.Z)(k)},48673:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/users",function(){return r(87992)}])}},function(e){e.O(0,[2678,1154,844,4267,600,8487,8264,7858,5499,8432,7361,9774,2888,179],(function(){return n=48673,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[662],{93808:function(t,e,r){"use strict";r.d(e,{Z:function(){return E}});var n=r(77837),
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[662],{93808:function(t,e,r){"use strict";r.d(e,{Z:function(){return E}});var n=r(77837),u=r(26304),o=r(62243),c=r(29385),i=r(80022),s=r(13692),f=r(93189),a=r(15544),p=r(82394),l=r(38860),h=r.n(l),y=r(82684),b=r(56663),v=r.n(b),d=r(40761),O=r(34661),w=r(36105),Z=r(50178),_=r(69419),P=r(28598),g=["auth"];function j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function k(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?j(Object(r),!0).forEach((function(e){(0,p.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function m(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,a.Z)(t);if(e){var u=(0,a.Z)(this).constructor;r=Reflect.construct(n,arguments,u)}else r=n.apply(this,arguments);return(0,f.Z)(this,r)}}function E(t){return function(e){(0,s.Z)(f,e);var r=m(f);function f(){var t;(0,o.Z)(this,f);for(var e=arguments.length,n=new Array(e),u=0;u<e;u++)n[u]=arguments[u];return t=r.call.apply(r,[this].concat(n)),(0,p.Z)((0,i.Z)(t),"state",{auth:new d.Z(t.props.token)}),t}return(0,c.Z)(f,[{key:"componentDidMount",value:function(){this.setState({auth:new d.Z(this.props.token)})}},{key:"render",value:function(){var e=this.props,r=(e.auth,(0,u.Z)(e,g));return(0,P.jsx)(t,k({auth:this.state.auth},r))}}],[{key:"getInitialProps",value:function(){var e=(0,n.Z)(h().mark((function e(r){var n,u,o,c,i,s,f,a,p;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=v()(r),u=(0,Z.ex)(r),o=u.id,c=n[O.Mv],i=n[w.qt],s=new d.Z(c),f=k(k({},r),{},{auth:s,currentGroupId:o,theme:i}),(0,Z.YB)(r)&&s.isExpired&&(console.log("OAuth token has expired."),a=k(k({},r.query),{},{redirect_url:r.asPath}),(0,_.nL)("/sign-in?".concat((0,_.uM)(a)),r.res)),!t.getInitialProps){e.next=12;break}return e.next=10,t.getInitialProps(f);case 10:return p=e.sent,e.abrupt("return",k(k({},p),{},{auth:s,currentGroupId:o,theme:i}));case 12:return e.abrupt("return",f);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}]),f}(y.Component)}},52846:function(t,e,r){"use strict";r.r(e);var n=r(77837),u=r(38860),o=r.n(u),c=r(82684),i=r(34376),s=r(93808),f=function(){var t=(0,i.useRouter)();(0,c.useEffect)((function(){t.replace("/settings/workspace/preferences")}),[t])};f.getInitialProps=(0,n.Z)(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{});case 1:case"end":return t.stop()}}),t)}))),e.default=(0,s.Z)(f)},73406:function(t,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings",function(){return r(52846)}])},80022:function(t,e,r){"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}r.d(e,{Z:function(){return n}})},15544:function(t,e,r){"use strict";function n(t){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(t)}r.d(e,{Z:function(){return n}})},13692:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}});var n=r(61049);function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&(0,n.Z)(t,e)}},93189:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(12539),u=r(80022);function o(t,e){if(e&&("object"===n(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,u.Z)(t)}},61049:function(t,e,r){"use strict";function n(t,e){return n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(t,e)}r.d(e,{Z:function(){return n}})}},function(t){t.O(0,[9774,2888,179],(function(){return e=73406,t(t.s=e);var e}));var e=t.O();_N_E=e}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1312],{66316:function(e,n,t){"use strict";t.d(n,{Z:function(){return m}});var r=t(82394),i=t(70613),o=t(68487),c=t(33591),u=t(38276),l=t(70515),a=t(28598);var s=function(e){var n=e.children,t=e.width,r=void 0===t?12:t;return(0,a.jsx)(u.Z,{px:l.zC,children:(0,a.jsx)(c.Row,{children:(0,a.jsx)(c.Col,{lg:r,md:Math.min(12,Math.round(1.5*(12-r))),sm:Math.min(12,Math.round(1.75*(12-r))),xs:12,children:n})})})},d=t(38626),f=t(46684),p=d.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-jcgu5l-0"})(["padding-top:","px;",""],f.Mz,(function(e){return e.fullHeight&&"\n height: calc(100vh);\n "}));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 g(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 m=function(e){var n=e.children,t=e.headerProps,r=e.title;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Z,{title:r}),(0,a.jsx)(o.Z,g({},t)),(0,a.jsx)(s,{children:(0,a.jsx)(p,{fullHeight:!0,children:n})})]})}},46568:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=(t(82684),t(33591)),c=t(28598),u=["children","fullHeight","gutter","style"];function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.fullHeight,r=e.gutter,l=e.style,s=void 0===l?{}:l,d=(0,i.Z)(e,u),f=a({},s);return r&&(f.paddingLeft=r,f.paddingRight=f.paddingLeft),t&&(f.height="100%"),(0,c.jsx)(o.Col,a(a({},d),{},{style:f,children:n}))}},82682:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(33591),u=t(28598),l=["children","fullHeight","gutter","justifyContent","style"];function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.fullHeight,r=e.gutter,a=e.justifyContent,d=e.style,f=void 0===d?{}:d,p=(0,i.Z)(e,l),h=s({},f);return r&&(h.marginLeft=-1*r,h.marginRight=h.marginLeft),t&&(h.height="100%"),(0,u.jsx)(c.Row,s(s({},p),{},{justifyContent:a,style:h,children:o.Children.map(n,(function(e,n){return e&&o.cloneElement(e,{gutter:r,key:n})}))}))}},94542:function(e,n,t){"use strict";t.d(n,{J:function(){return o},X:function(){return c}});var r=t(46568),i=t(82682),o=r.Z,c=i.Z},40109:function(e,n,t){"use strict";t.d(n,{f:function(){return y},h:function(){return g}});var r=t(82394),i=t(82684),o=t(34376),c=t(93369),u=t(72473),l=t(70515),a=t(69419),s=t(53808),d=t(28598);var f=function(e){var n=e.oauthResponse,t=(0,o.useRouter)(),r=(0,i.useMemo)((function(){return n||{}}),[n]),f=r.url,p=r.redirect_query_params,h=void 0===p?{}:p;return(0,d.jsx)(d.Fragment,{children:f&&(0,d.jsx)(c.ZP,{beforeElement:(0,d.jsx)(u._8,{size:2*l.iI}),bold:!0,inline:!0,onClick:function(){var e=(0,a.iV)(f).state;(0,s.t8)(e,h),t.push(f)},uuid:"SignForm/google",children:"Sign in with Google"})})};var p=function(e){var n=e.oauthResponse,t=(0,o.useRouter)(),r=(0,i.useMemo)((function(){return n||{}}),[n]),f=r.url,p=r.redirect_query_params,h=void 0===p?{}:p;return(0,d.jsx)(d.Fragment,{children:f&&(0,d.jsx)(c.ZP,{beforeElement:(0,d.jsx)(u.Dg,{size:2*l.iI}),bold:!0,inline:!0,onClick:function(){var e=(0,a.iV)(f).state;h&&(0,s.t8)(e,h),t.push(f)},uuid:"SignForm/active_directory",children:"Sign in with Microsoft"})})};var h,g,m=function(e){var n=e.oauthResponse,t=(0,o.useRouter)(),r=(0,i.useMemo)((function(){return n||{}}),[n]),u=r.url,l=r.redirect_query_params,f=void 0===l?{}:l;return(0,d.jsx)(d.Fragment,{children:u&&(0,d.jsx)(c.ZP,{bold:!0,inline:!0,onClick:function(){var e=(0,a.iV)(u).state;(0,s.t8)(e,f),t.push(u)},uuid:"SignForm/okta",children:"Sign in with Okta"})})};!function(e){e.ACTIVE_DIRECTORY="active_directory",e.GITHUB="github",e.GOOGLE="google",e.OKTA="okta"}(g||(g={}));var y=(h={},(0,r.Z)(h,g.ACTIVE_DIRECTORY,p),(0,r.Z)(h,g.GOOGLE,f),(0,r.Z)(h,g.OKTA,m),h)},85854:function(e,n,t){"use strict";var r,i,o,c,u,l,a,s,d=t(82394),f=t(26304),p=t(26653),h=t(38626),g=t(33591),m=t(44897),y=t(95363),b=t(61896),j=t(30160),v=t(70515),O=t(38276),x=t(28598),w=["children","condensed","inline","level","marketing","spacingBelow"];function Z(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?Z(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," "," ",""],j.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||m.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(y.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(y.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(y.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(y.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(y.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "}),(function(e){return e.strikethrough&&"\n text-decoration: line-through;\n "})),S=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||m.Z.content).active,";\n ")})),C=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],_,g.media.md(r||(r=(0,p.Z)(["\n ","\n "])),b.aQ),g.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),b.aQ),g.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),b.aQ)),k=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],_,b.MJ),I=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],_,g.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*v.iI,7*v.iI),g.media.sm(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*v.iI,7*v.iI),g.media.md(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*v.iI,7*v.iI),g.media.lg(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*v.iI,7*v.iI),g.media.xl(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*v.iI,7*v.iI)),z=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],_,b.BL),N=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],_),H=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],_),D=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],_),E=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],_,(function(e){return 1===e.level&&"\n ".concat(b.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(b.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),R=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,c=e.marketing,u=e.spacingBelow,l=(0,f.Z)(e,w);i?n=E:0===Number(o)?n=C:1===Number(o)?n=c?I:k:2===Number(o)?n=z:3===Number(o)?n=N:4===Number(o)?n=H:5===Number(o)&&(n=D);var a=(0,x.jsxs)(n,P(P({},l),{},{level:o,children:[u&&(0,x.jsx)(O.Z,{mb:r?2:3,children:t}),!u&&t]}));return i?a:(0,x.jsx)(S,{children:a})};R.defaultProps={level:3,weightStyle:6},n.Z=R},13180:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return V}});var r=t(77837),i=t(38860),o=t.n(i),c=t(66316),u=t(82394),l=t(75582),a=t(82684),s=t(69864),d=t(34376),f=t(40761),p=t(55485),h=t(85854),g=t(93369),m=t(38276),y=t(30160),b=t(17488),j=t(35686),v=t(38626),O=t(44897),x=t(42631),w=t(70515),Z=v.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-641xul-0"})(["border-radius:","px;padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;width:100%;",""],x.TR,21*w.iI,w.Vj,w.Vj,w.Vj,(function(e){return"\n background-color: ".concat((e.theme.background||O.Z.background).panel,";\n ")})),P=v.default.div.withConfig({displayName:"indexstyle__BackgroundImageStyle",componentId:"sc-641xul-1"})(["border-radius:","px;font-size:0;overflow:hidden;",""],x.D7,(function(e){return e.src&&"\n background-image: url(".concat(e.src,");\n background-size: cover;\n background-repeat: no-repeat;\n height: 100%;\n width: 100%;\n ")})),_=t(94542),S=t(39643),C=t(40109),k=t(42122),I=t(72619),z=t(42041),N=t(69419),H=t(50178),D=t(28598);function E(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function R(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?E(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var M="email",F="password";var L=function(e){var n=e.title,t=(0,d.useRouter)(),r=(0,a.useState)(null),i=r[0],o=r[1],c=(0,a.useState)({}),v=c[0],O=c[1],x=(0,s.Db)(j.ZP.sessions.useCreate(),{onSuccess:function(e){return(0,I.wD)(e,{callback:function(e){var n=e.session,r=n.token,i=n.user;(0,H.av)(i),f.Z.storeToken(r,(function(){var e="/",n=(0,N.iV)(window.location.href);if(n.redirect_url){var r=(0,N.uM)((0,k.gR)(n,["redirect_url","access_token","provider"]));e="".concat(n.redirect_url,"?").concat(r),window.location.href=e}else t.push(e)}))},onErrorCallback:function(e){var n=e.error;o(n)}})}}),E=(0,l.Z)(x,2),L=E[0],T=E[1].isLoading,V=(0,a.useCallback)((function(e){return f.Z.logout((function(){return L(e)}))}),[L]),G=j.ZP.oauths.list({redirect_uri:encodeURIComponent(window.location.href)}).data,B=(0,a.useMemo)((function(){var e;return null===G||void 0===G||null===(e=G.oauths)||void 0===e?void 0:e.reduce((function(e,n){return e[n.provider]=n,e}),{})}),[G]),X=(0,N.iV)()||{},A=X.access_token,J=X.provider;return(0,a.useEffect)((function(){var e;A&&J&&L({session:(e={},(0,u.Z)(e,"provider",J),(0,u.Z)(e,"token",A),e)})}),[A,L,J]),(0,D.jsxs)(_.X,{fullHeight:!0,children:[(0,D.jsx)(_.J,{lg:6,md:12,children:(0,D.jsx)(p.ZP,{flexDirection:"column",fullHeight:!0,fullWidth:!0,justifyContent:"center",children:(0,D.jsx)(m.Z,{px:{xl:5*w.zC,xs:w.zC},py:w.zC,children:(0,D.jsxs)(Z,{children:[(0,D.jsx)(h.Z,{yellow:!0,children:n}),(0,D.jsxs)("form",{children:[(0,D.jsxs)(m.Z,{mt:3,children:[(0,D.jsx)(b.Z,{autoComplete:"username",label:"Email",large:!0,meta:{error:" ",touched:!!i},onChange:function(e){return O((function(n){return R(R({},n),{},(0,u.Z)({},M,e.target.value))}))},primary:!i,value:v.email}),(0,D.jsx)(m.Z,{mt:2,children:(0,D.jsx)(b.Z,{autoComplete:"current-password",label:"Password",large:!0,meta:{error:" ",touched:!!i},onChange:function(e){return O((function(n){return R(R({},n),{},(0,u.Z)({},F,e.target.value))}))},primary:!i,type:"password",value:v.password})})]}),i&&(0,D.jsx)(m.Z,{mt:2,children:(0,D.jsx)(y.ZP,{danger:!0,children:i.message})}),(0,D.jsx)(m.Z,{mt:3,children:(0,D.jsx)(g.ZP,{bold:!0,inline:!0,keyTextGroups:[[S.Lz]],keyboardShortcutValidation:function(e){var n=e.keyMapping;return(0,z.y)([S.Uq],n)},large:!0,loading:T,noHoverUnderline:!0,onClick:function(){return V({session:v})},selected:!0,uuid:"SignForm/action",wind:!0,children:"Sign into Mage"})}),Object.entries(C.f).map((function(e){var n=(0,l.Z)(e,2),t=n[0],r=n[1];return(0,D.jsx)(D.Fragment,{children:(null===B||void 0===B?void 0:B[t])&&(0,D.jsx)(m.Z,{mt:4,children:(0,D.jsx)(r,{oauthResponse:null===B||void 0===B?void 0:B[t]})})})}))]})]})})})}),(0,D.jsx)(_.J,{hiddenLgDown:!0,lg:6,style:{flex:1},children:(0,D.jsx)(m.Z,{fullHeight:!0,fullWidth:!0,px:w.zC,py:w.zC+8,children:(0,D.jsx)(P,{src:"".concat(t.basePath,"/images/sessions/abstract.png"),children:"Sign in abstract image"})})})]})};function T(){return(0,D.jsx)(c.Z,{title:"Sign in",children:(0,D.jsx)(L,{title:"\ud83d\udc4b Sign in"})})}T.getInitialProps=(0,r.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var V=T},6821:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/sign-in",function(){return t(13180)}])}},function(e){e.O(0,[2678,1154,844,4267,600,8487,9774,2888,179],(function(){return n=6821,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6568],{94629:function(e,t,r){"use strict";r.d(t,{Z:function(){return P}});var n=r(82394),i=r(21831),o=r(82684),u=r(50724),s=r(82555),l=r(97618),d=r(70613),a=r(68487),c=r(68899),f=r(28598);function h(e,t){var r=e.children,n=e.noPadding;return(0,f.jsx)(c.HS,{noPadding:n,ref:t,children:r})}var p=o.forwardRef(h),v=r(62547),b=r(82571),m=r(35686),j=r(98464),O=r(46684),g=r(70515),w=r(53808),_=r(19183);function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Z(e,t){var r,n=e.addProjectBreadcrumbToCustomBreadcrumbs,h=e.after,x=e.afterHeader,Z=e.afterHidden,P=e.afterWidth,C=e.afterWidthOverride,k=e.appendBreadcrumbs,E=e.before,H=e.beforeWidth,A=e.breadcrumbs,M=e.children,S=e.errors,B=e.headerMenuItems,R=e.headerOffset,T=e.hideAfterCompletely,I=e.mainContainerHeader,N=e.navigationItems,W=e.setAfterHidden,D=e.setErrors,F=e.subheaderChildren,U=e.subheaderNoPadding,z=e.title,X=e.uuid,q=(0,_.i)().width,V="dashboard_after_width_".concat(X),G="dashboard_before_width_".concat(X),J=(0,o.useRef)(null),K=(0,o.useState)(C?P:(0,w.U2)(V,P)),L=K[0],Q=K[1],Y=(0,o.useState)(!1),$=Y[0],ee=Y[1],te=(0,o.useState)(E?Math.max((0,w.U2)(G,H),13*g.iI):null),re=te[0],ne=te[1],ie=(0,o.useState)(!1),oe=ie[0],ue=ie[1],se=(0,o.useState)(null)[1],le=m.ZP.projects.list({},{revalidateOnFocus:!1}).data,de=null===le||void 0===le?void 0:le.projects,ae={label:function(){var e;return null===de||void 0===de||null===(e=de[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},ce=[];A&&(n&&ce.push(ae),ce.push.apply(ce,(0,i.Z)(A))),(null===A||void 0===A||!A.length||k)&&(null===de||void 0===de?void 0:de.length)>=1&&(null!==A&&void 0!==A&&A.length||ce.unshift({bold:!k,label:function(){return z}}),ce.unshift(ae)),(0,o.useEffect)((function(){null===J||void 0===J||!J.current||$||oe||null===se||void 0===se||se(J.current.getBoundingClientRect().width)}),[$,L,oe,re,J,se,q]),(0,o.useEffect)((function(){$||(0,w.t8)(V,L)}),[Z,$,L,V]),(0,o.useEffect)((function(){oe||(0,w.t8)(G,re)}),[oe,re,G]);var fe=(0,j.Z)(P);return(0,o.useEffect)((function(){C&&fe!==P&&Q(P)}),[C,P,fe]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(d.Z,{title:z}),(0,f.jsx)(a.Z,{breadcrumbs:ce,menuItems:B,project:null===de||void 0===de?void 0:de[0],version:null===de||void 0===de||null===(r=de[0])||void 0===r?void 0:r.version}),(0,f.jsxs)(c.Nk,{ref:t,children:[0!==(null===N||void 0===N?void 0:N.length)&&(0,f.jsx)(c.lm,{showMore:!0,children:(0,f.jsx)(b.Z,{navigationItems:N,showMore:!0})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(v.Z,{after:h,afterHeader:x,afterHeightOffset:O.Mz,afterHidden:Z,afterMousedownActive:$,afterWidth:L,before:E,beforeHeightOffset:O.Mz,beforeMousedownActive:oe,beforeWidth:c.k1+(E?re:0),headerOffset:R,hideAfterCompletely:!W||T,leftOffset:E?c.k1:null,mainContainerHeader:I,mainContainerRef:J,setAfterHidden:W,setAfterMousedownActive:ee,setAfterWidth:Q,setBeforeMousedownActive:ue,setBeforeWidth:ne,children:[F&&(0,f.jsx)(p,{noPadding:U,children:F}),M]})})]}),S&&(0,f.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,f.jsx)(s.Z,y(y({},S),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}var P=o.forwardRef(Z)},14759:function(e,t,r){"use strict";r.r(t);var n=r(77837),i=r(38860),o=r.n(i),u=r(82684),s=r(44898),l=r(94629),d=r(88328),a=r(93808),c=r(38276),f=r(4190),h=r(5755),p=r(35686),v=r(70515),b=r(69419),m=r(28598);function j(e){var t,r=e.objectType,n=e.slug,i=(0,b.iV)().object_type,o=(0,u.useState)(null),a=o[0],j=o[1],O=i||r||s.Z,g=s.R===O,w=p.ZP.custom_templates.detail(n&&encodeURIComponent(n),{object_type:O}).data;return(0,u.useEffect)((function(){w&&j(null===w||void 0===w?void 0:w.custom_template)}),[w]),(0,m.jsxs)(l.Z,{addProjectBreadcrumbToCustomBreadcrumbs:!0,breadcrumbs:[{label:function(){return"Templates"},linkProps:{href:g?"/templates?object_type=".concat(s.R):"/templates"}},{bold:!0,label:function(){return n}}],title:n,uuid:"TemplatesDetail/index",children:[!w&&(0,m.jsx)(c.Z,{p:v.cd,children:(0,m.jsx)(f.Z,{inverted:!0})}),a&&(0,m.jsxs)(m.Fragment,{children:[(!O||s.Z===O)&&(0,m.jsx)(h.Z,{template:a},null===a||void 0===a||null===(t=a.content)||void 0===t?void 0:t.slice(0,40)),g&&(0,m.jsx)(d.Z,{template:a})]})]})}j.getInitialProps=function(){var e=(0,n.Z)(o().mark((function e(t){var r,n,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.query,n=r.object_type,i=r.slug,e.abrupt("return",{objectType:n,slug:i});case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t.default=(0,a.Z)(j)},45082:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/templates/[...slug]",function(){return r(14759)}])}},function(e){e.O(0,[2678,1154,844,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6568],{94629:function(e,t,r){"use strict";r.d(t,{Z:function(){return P}});var n=r(82394),i=r(21831),o=r(82684),u=r(50724),s=r(82555),l=r(97618),d=r(70613),a=r(68487),c=r(68899),f=r(28598);function h(e,t){var r=e.children,n=e.noPadding;return(0,f.jsx)(c.HS,{noPadding:n,ref:t,children:r})}var p=o.forwardRef(h),v=r(62547),b=r(82571),m=r(35686),j=r(98464),O=r(46684),g=r(70515),w=r(53808),_=r(19183);function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Z(e,t){var r,n=e.addProjectBreadcrumbToCustomBreadcrumbs,h=e.after,x=e.afterHeader,Z=e.afterHidden,P=e.afterWidth,C=e.afterWidthOverride,k=e.appendBreadcrumbs,E=e.before,H=e.beforeWidth,A=e.breadcrumbs,M=e.children,S=e.errors,B=e.headerMenuItems,R=e.headerOffset,T=e.hideAfterCompletely,I=e.mainContainerHeader,N=e.navigationItems,W=e.setAfterHidden,D=e.setErrors,F=e.subheaderChildren,U=e.subheaderNoPadding,z=e.title,X=e.uuid,q=(0,_.i)().width,V="dashboard_after_width_".concat(X),G="dashboard_before_width_".concat(X),J=(0,o.useRef)(null),K=(0,o.useState)(C?P:(0,w.U2)(V,P)),L=K[0],Q=K[1],Y=(0,o.useState)(!1),$=Y[0],ee=Y[1],te=(0,o.useState)(E?Math.max((0,w.U2)(G,H),13*g.iI):null),re=te[0],ne=te[1],ie=(0,o.useState)(!1),oe=ie[0],ue=ie[1],se=(0,o.useState)(null)[1],le=m.ZP.projects.list({},{revalidateOnFocus:!1}).data,de=null===le||void 0===le?void 0:le.projects,ae={label:function(){var e;return null===de||void 0===de||null===(e=de[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},ce=[];A&&(n&&ce.push(ae),ce.push.apply(ce,(0,i.Z)(A))),(null===A||void 0===A||!A.length||k)&&(null===de||void 0===de?void 0:de.length)>=1&&(null!==A&&void 0!==A&&A.length||ce.unshift({bold:!k,label:function(){return z}}),ce.unshift(ae)),(0,o.useEffect)((function(){null===J||void 0===J||!J.current||$||oe||null===se||void 0===se||se(J.current.getBoundingClientRect().width)}),[$,L,oe,re,J,se,q]),(0,o.useEffect)((function(){$||(0,w.t8)(V,L)}),[Z,$,L,V]),(0,o.useEffect)((function(){oe||(0,w.t8)(G,re)}),[oe,re,G]);var fe=(0,j.Z)(P);return(0,o.useEffect)((function(){C&&fe!==P&&Q(P)}),[C,P,fe]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(d.Z,{title:z}),(0,f.jsx)(a.Z,{breadcrumbs:ce,menuItems:B,project:null===de||void 0===de?void 0:de[0],version:null===de||void 0===de||null===(r=de[0])||void 0===r?void 0:r.version}),(0,f.jsxs)(c.Nk,{ref:t,children:[0!==(null===N||void 0===N?void 0:N.length)&&(0,f.jsx)(c.lm,{showMore:!0,children:(0,f.jsx)(b.Z,{navigationItems:N,showMore:!0})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(v.Z,{after:h,afterHeader:x,afterHeightOffset:O.Mz,afterHidden:Z,afterMousedownActive:$,afterWidth:L,before:E,beforeHeightOffset:O.Mz,beforeMousedownActive:oe,beforeWidth:c.k1+(E?re:0),headerOffset:R,hideAfterCompletely:!W||T,leftOffset:E?c.k1:null,mainContainerHeader:I,mainContainerRef:J,setAfterHidden:W,setAfterMousedownActive:ee,setAfterWidth:Q,setBeforeMousedownActive:ue,setBeforeWidth:ne,children:[F&&(0,f.jsx)(p,{noPadding:U,children:F}),M]})})]}),S&&(0,f.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,f.jsx)(s.Z,y(y({},S),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}var P=o.forwardRef(Z)},14759:function(e,t,r){"use strict";r.r(t);var n=r(77837),i=r(38860),o=r.n(i),u=r(82684),s=r(44898),l=r(94629),d=r(88328),a=r(93808),c=r(38276),f=r(4190),h=r(5755),p=r(35686),v=r(70515),b=r(69419),m=r(28598);function j(e){var t,r=e.objectType,n=e.slug,i=(0,b.iV)().object_type,o=(0,u.useState)(null),a=o[0],j=o[1],O=i||r||s.Z,g=s.R===O,w=p.ZP.custom_templates.detail(n&&encodeURIComponent(n),{object_type:O}).data;return(0,u.useEffect)((function(){w&&j(null===w||void 0===w?void 0:w.custom_template)}),[w]),(0,m.jsxs)(l.Z,{addProjectBreadcrumbToCustomBreadcrumbs:!0,breadcrumbs:[{label:function(){return"Templates"},linkProps:{href:g?"/templates?object_type=".concat(s.R):"/templates"}},{bold:!0,label:function(){return n}}],title:n,uuid:"TemplatesDetail/index",children:[!w&&(0,m.jsx)(c.Z,{p:v.cd,children:(0,m.jsx)(f.Z,{inverted:!0})}),a&&(0,m.jsxs)(m.Fragment,{children:[(!O||s.Z===O)&&(0,m.jsx)(h.Z,{template:a},null===a||void 0===a||null===(t=a.content)||void 0===t?void 0:t.slice(0,40)),g&&(0,m.jsx)(d.Z,{template:a})]})]})}j.getInitialProps=function(){var e=(0,n.Z)(o().mark((function e(t){var r,n,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.query,n=r.object_type,i=r.slug,e.abrupt("return",{objectType:n,slug:i});case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t.default=(0,a.Z)(j)},45082:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/templates/[...slug]",function(){return r(14759)}])}},function(e){e.O(0,[2678,1154,844,5820,6639,1124,341,1751,1821,4267,600,8487,8264,7858,5499,4366,722,5810,1769,1550,90,9264,9774,2888,179],(function(){return t=45082,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5240],{60523:function(e,n,t){"use strict";var i=t(21831),r=t(82394),u=t(82684),l=t(38626),o=t(34376),d=t(54750),s=t(71180),c=t(90299),a=t(44898),p=t(55485),f=t(88328),h=t(38276),m=t(4190),v=t(48381),j=t(5755),b=t(30160),x=t(35686),g=t(72473),y=t(84649),Z=t(32929),w=t(15610),P=t(19183),O=t(28598);function k(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 C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?k(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n,t=e.contained,r=e.defaultLinkUUID,k=e.defaultTab,_=e.objectType,I=e.onClickCustomTemplate,T=e.pipelineUUID,A=e.showAddingNewTemplates,M=e.showBreadcrumbs,S=e.tabs,U=(0,o.useRouter)(),E=(0,u.useContext)(l.ThemeContext),N=(0,P.i)(),R=N.height,D=N.width,B=(0,u.useMemo)((function(){return S||Z.dP}),[S]),H=(0,u.useState)(A||!1),q=H[0],F=H[1],z=(0,u.useState)(r?Z.qy.find((function(e){return e.uuid===r})):Z.qy[0]),W=z[0],L=z[1],G=(0,u.useState)(k?B.find((function(e){return e.uuid===(null===k||void 0===k?void 0:k.uuid)})):B[0]),X=G[0],Y=G[1],V=(0,u.useState)(null),J=V[0],K=V[1],Q=x.ZP.custom_templates.list({object_type:a.Z},{},{pauseFetch:Z.n9.uuid!==(null===X||void 0===X?void 0:X.uuid)}),$=Q.data,ee=Q.mutate,ne=(0,u.useMemo)((function(){var e=(null===$||void 0===$?void 0:$.custom_templates)||[];return null!==W&&void 0!==W&&W.filterTemplates?null===W||void 0===W?void 0:W.filterTemplates(e):e}),[$,W]),te=x.ZP.custom_templates.list({object_type:a.R},{},{pauseFetch:Z.A2.uuid!==(null===X||void 0===X?void 0:X.uuid)}),ie=te.data,re=te.mutate,ue=(0,u.useMemo)((function(){var e=(null===ie||void 0===ie?void 0:ie.custom_templates)||[];return null!==W&&void 0!==W&&W.filterTemplates?null===W||void 0===W?void 0:W.filterTemplates(e):e}),[ie,W]),le=(0,u.useMemo)((function(){return Z.qy.map((function(e){var n=e.Icon,t=e.label,i=e.selectedBackgroundColor,r=e.selectedIconProps,u=e.uuid,l=(null===W||void 0===W?void 0:W.uuid)===u,o=C({size:y.ZG},l&&r?r:{});return(0,O.jsx)(y.wj,{onClick:function(){return L(e)},selected:l,children:(0,O.jsxs)(p.ZP,{alignItems:"center",children:[(0,O.jsx)(y.ze,{backgroundColor:l&&i?i(E):null,children:n?(0,O.jsx)(n,C({},o)):(0,O.jsx)(g.pd,C({},o))}),(0,O.jsx)(b.ZP,{bold:!0,large:!0,children:t?t():u})]})},u)}))}),[W,E]),oe=(0,u.useMemo)((function(){return Z.hS.map((function(e){var n=e.Icon,t=e.label,i=e.selectedBackgroundColor,r=e.selectedIconProps,u=e.uuid,l=(null===W||void 0===W?void 0:W.uuid)===u,o=C({size:y.ZG},l&&r?r:{});return(0,O.jsx)(y.wj,{onClick:function(){return L(e)},selected:l,children:(0,O.jsxs)(p.ZP,{alignItems:"center",children:[(0,O.jsx)(y.ze,{backgroundColor:l&&i?i(E):null,children:n?(0,O.jsx)(n,C({},o)):(0,O.jsx)(g.pd,C({},o))}),(0,O.jsx)(b.ZP,{bold:!0,large:!0,children:t?t():u})]})},u)}))}),[W,E]),de=(0,u.useMemo)((function(){return null===ne||void 0===ne?void 0:ne.map((function(e){var n=e.description,t=e.name,r=e.tags,u=e.template_uuid,l=e.user,o=[];return null!==r&&void 0!==r&&r.length?o.push.apply(o,(0,i.Z)(r)):null!==l&&void 0!==l&&l.username&&o.push(null===l||void 0===l?void 0:l.username),(0,O.jsxs)(y.UE,{onClick:function(){I?I(e):U.push("/templates/[...slug]","/templates/".concat(encodeURIComponent(u)))},children:[(0,O.jsx)(y.Tj,{children:(0,O.jsx)(b.ZP,{bold:!0,monospace:!0,textOverflow:!0,children:t||u})}),(0,O.jsx)(y.SL,{children:(0,O.jsx)(b.ZP,{default:!!n,italic:!n,muted:!n,textOverflowLines:2,children:n||"No description"})}),(0,O.jsx)(y.EN,{children:(null===o||void 0===o?void 0:o.length)>=1&&(0,O.jsx)(v.Z,{tags:null===o||void 0===o?void 0:o.map((function(e){return{uuid:e}}))})})]},u)}))}),[ne,I,U]),se=(0,u.useMemo)((function(){return null===ue||void 0===ue?void 0:ue.map((function(e){var n=e.description,t=e.name,r=e.tags,u=e.template_uuid,l=e.user,o=[];return null!==r&&void 0!==r&&r.length?o.push.apply(o,(0,i.Z)(r)):null!==l&&void 0!==l&&l.username&&o.push(null===l||void 0===l?void 0:l.username),(0,O.jsxs)(y.UE,{onClick:function(){I?I(e):U.push("/templates/[...slug]","/templates/".concat(encodeURIComponent(u),"?object_type=").concat(a.R))},children:[(0,O.jsx)(y.Tj,{children:(0,O.jsx)(b.ZP,{bold:!0,monospace:!0,textOverflow:!0,children:t||u})}),(0,O.jsx)(y.SL,{children:(0,O.jsx)(b.ZP,{default:!!n,italic:!n,muted:!n,textOverflowLines:2,children:n||"No description"})}),(0,O.jsx)(y.EN,{children:(null===o||void 0===o?void 0:o.length)>=1&&(0,O.jsx)(v.Z,{tags:null===o||void 0===o?void 0:o.map((function(e){return{uuid:e}}))})})]},u)}))}),[ue,I,U]),ce=(0,u.useMemo)((function(){if(!M)return null;var e=[];return q?e.push.apply(e,[{label:function(){return"Templates"},onClick:function(){F(!1)}},{bold:!0,label:function(){return"New custom template"}}]):e.push({label:function(){return"Templates"}}),(0,O.jsx)(y.FX,{children:(0,O.jsx)(d.Z,{breadcrumbs:e})})}),[q,M]),ae=(0,u.useMemo)((function(){return M?36:0}),[M]),pe=(0,u.useMemo)((function(){return R-ae}),[R,ae]);if(q)return n=a.R===_&&T?(0,O.jsx)(f.Z,{onMutateSuccess:re,pipelineUUID:T,templateAttributes:W&&(null===W||void 0===W?void 0:W.uuid)!==(null===Z.qy||void 0===Z.qy?void 0:Z.qy[0].uuid)?{pipeline_type:null===W||void 0===W?void 0:W.uuid}:null,templateUUID:null===J||void 0===J?void 0:J.template_uuid}):(0,O.jsx)(j.Z,{contained:t,heightOffset:ae,onCreateCustomTemplate:t?function(e){K(e)}:null,onMutateSuccess:ee,templateAttributes:W&&(null===W||void 0===W?void 0:W.uuid)!==(null===Z.qy||void 0===Z.qy?void 0:Z.qy[0].uuid)?{block_type:null===W||void 0===W?void 0:W.uuid}:null,templateUUID:null===J||void 0===J?void 0:J.template_uuid}),t?(0,O.jsxs)(O.Fragment,{children:[M&&ce,(0,O.jsx)(y.Rd,{height:pe,width:D,children:n})]}):n;var fe=(0,O.jsxs)(y.Nk,{children:[(0,O.jsxs)(y.bC,{height:t?pe:null,children:[(0,O.jsx)(y.Yf,{children:(0,O.jsx)(c.Z,{noPadding:!0,onClickTab:function(e){t?Y(e):(0,w.u7)({object_type:Z.A2.uuid===e.uuid?a.R:a.Z})},selectedTabUUID:null===X||void 0===X?void 0:X.uuid,tabs:B})}),(0,O.jsxs)(y.wl,{contained:t,heightOffset:ae,children:[Z.n9.uuid===(null===X||void 0===X?void 0:X.uuid)&&le,Z.A2.uuid===(null===X||void 0===X?void 0:X.uuid)&&oe]})]}),(0,O.jsxs)(y.w5,{children:[Z.n9.uuid===(null===X||void 0===X?void 0:X.uuid)&&(0,O.jsx)(y.HS,{children:(0,O.jsx)(s.ZP,{beforeIcon:(0,O.jsx)(g.mm,{size:y.ZG}),onClick:function(){F(!0)},primary:!0,children:"New block template"})}),Z.n9.uuid===(null===X||void 0===X?void 0:X.uuid)&&(0,O.jsxs)(O.Fragment,{children:[!$&&(0,O.jsx)(h.Z,{p:2,children:(0,O.jsx)(m.Z,{inverted:!0})}),$&&!(null!==de&&void 0!==de&&de.length)&&(0,O.jsxs)(h.Z,{p:2,children:[(0,O.jsx)(b.ZP,{children:"There are currently no templates matching your search."}),(0,O.jsx)("br",{}),(0,O.jsx)(b.ZP,{children:"Add a new template by clicking the button above."})]}),(null===de||void 0===de?void 0:de.length)>=1&&(0,O.jsx)(y.n8,{children:de})]}),Z.A2.uuid===(null===X||void 0===X?void 0:X.uuid)&&(0,O.jsxs)(O.Fragment,{children:[!ie&&(0,O.jsx)(h.Z,{p:2,children:(0,O.jsx)(m.Z,{inverted:!0})}),ie&&!(null!==se&&void 0!==se&&se.length)&&(0,O.jsxs)(h.Z,{p:2,children:[(0,O.jsx)(b.ZP,{children:"There are currently no templates matching your search."}),(0,O.jsx)("br",{}),(0,O.jsx)(b.ZP,{children:'Add a new template by right-clicking a pipeline row from the Pipelines page and selecting "Create template".'})]}),(null===se||void 0===se?void 0:se.length)>=1&&(0,O.jsx)(y.n8,{children:se})]})]})]});return t?(0,O.jsxs)(O.Fragment,{children:[M&&ce,(0,O.jsx)(y.Rd,{height:pe,width:D,children:fe})]}):fe}},94629:function(e,n,t){"use strict";t.d(n,{Z:function(){return k}});var i=t(82394),r=t(21831),u=t(82684),l=t(50724),o=t(82555),d=t(97618),s=t(70613),c=t(68487),a=t(68899),p=t(28598);function f(e,n){var t=e.children,i=e.noPadding;return(0,p.jsx)(a.HS,{noPadding:i,ref:n,children:t})}var h=u.forwardRef(f),m=t(62547),v=t(82571),j=t(35686),b=t(98464),x=t(46684),g=t(70515),y=t(53808),Z=t(19183);function w(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 P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function O(e,n){var t,i=e.addProjectBreadcrumbToCustomBreadcrumbs,f=e.after,w=e.afterHeader,O=e.afterHidden,k=e.afterWidth,C=e.afterWidthOverride,_=e.appendBreadcrumbs,I=e.before,T=e.beforeWidth,A=e.breadcrumbs,M=e.children,S=e.errors,U=e.headerMenuItems,E=e.headerOffset,N=e.hideAfterCompletely,R=e.mainContainerHeader,D=e.navigationItems,B=e.setAfterHidden,H=e.setErrors,q=e.subheaderChildren,F=e.subheaderNoPadding,z=e.title,W=e.uuid,L=(0,Z.i)().width,G="dashboard_after_width_".concat(W),X="dashboard_before_width_".concat(W),Y=(0,u.useRef)(null),V=(0,u.useState)(C?k:(0,y.U2)(G,k)),J=V[0],K=V[1],Q=(0,u.useState)(!1),$=Q[0],ee=Q[1],ne=(0,u.useState)(I?Math.max((0,y.U2)(X,T),13*g.iI):null),te=ne[0],ie=ne[1],re=(0,u.useState)(!1),ue=re[0],le=re[1],oe=(0,u.useState)(null)[1],de=j.ZP.projects.list({},{revalidateOnFocus:!1}).data,se=null===de||void 0===de?void 0:de.projects,ce={label:function(){var e;return null===se||void 0===se||null===(e=se[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},ae=[];A&&(i&&ae.push(ce),ae.push.apply(ae,(0,r.Z)(A))),(null===A||void 0===A||!A.length||_)&&(null===se||void 0===se?void 0:se.length)>=1&&(null!==A&&void 0!==A&&A.length||ae.unshift({bold:!_,label:function(){return z}}),ae.unshift(ce)),(0,u.useEffect)((function(){null===Y||void 0===Y||!Y.current||$||ue||null===oe||void 0===oe||oe(Y.current.getBoundingClientRect().width)}),[$,J,ue,te,Y,oe,L]),(0,u.useEffect)((function(){$||(0,y.t8)(G,J)}),[O,$,J,G]),(0,u.useEffect)((function(){ue||(0,y.t8)(X,te)}),[ue,te,X]);var pe=(0,b.Z)(k);return(0,u.useEffect)((function(){C&&pe!==k&&K(k)}),[C,k,pe]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(s.Z,{title:z}),(0,p.jsx)(c.Z,{breadcrumbs:ae,menuItems:U,project:null===se||void 0===se?void 0:se[0],version:null===se||void 0===se||null===(t=se[0])||void 0===t?void 0:t.version}),(0,p.jsxs)(a.Nk,{ref:n,children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,p.jsx)(a.lm,{showMore:!0,children:(0,p.jsx)(v.Z,{navigationItems:D,showMore:!0})}),(0,p.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(m.Z,{after:f,afterHeader:w,afterHeightOffset:x.Mz,afterHidden:O,afterMousedownActive:$,afterWidth:J,before:I,beforeHeightOffset:x.Mz,beforeMousedownActive:ue,beforeWidth:a.k1+(I?te:0),headerOffset:E,hideAfterCompletely:!B||N,leftOffset:I?a.k1:null,mainContainerHeader:R,mainContainerRef:Y,setAfterHidden:B,setAfterMousedownActive:ee,setAfterWidth:K,setBeforeMousedownActive:le,setBeforeWidth:ie,children:[q&&(0,p.jsx)(h,{noPadding:F,children:q}),M]})})]}),S&&(0,p.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===H||void 0===H?void 0:H(null)},children:(0,p.jsx)(o.Z,P(P({},S),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}var k=u.forwardRef(O)},48381:function(e,n,t){"use strict";var i=t(82684),r=t(31882),u=t(55485),l=t(30160),o=t(86735),d=t(28598);n.Z=function(e){var n=e.onClickTag,t=e.tags,s=void 0===t?[]:t,c=(0,i.useMemo)((function(){return(null===s||void 0===s?void 0:s.length)||0}),[s]),a=(0,i.useMemo)((function(){return(0,o.YC)(s||[],"uuid")}),[s]);return(0,d.jsx)(u.ZP,{alignItems:"center",flexWrap:"wrap",children:null===a||void 0===a?void 0:a.reduce((function(e,t){return e.push((0,d.jsx)("div",{style:{marginBottom:2,marginRight:c>=2?4:0,marginTop:2},children:(0,d.jsx)(r.Z,{onClick:n?function(){return n(t)}:null,small:!0,children:(0,d.jsx)(l.ZP,{children:t.uuid})})},"tag-".concat(t.uuid))),e}),[])})}},31882:function(e,n,t){"use strict";var i=t(38626),r=t(71180),u=t(55485),l=t(30160),o=t(44897),d=t(72473),s=t(70515),c=t(61896),a=t(28598),p=i.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," "," ",""],(function(e){return!e.primary&&"\n background-color: ".concat((e.theme.background||o.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||o.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((s.iI+c.Al)/2,"px;\n height: ").concat(1.5*s.iI+c.Al,"px;\n padding: ").concat(s.iI/1.5,"px ").concat(1.25*s.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((s.iI/2+c.Al)/2,"px;\n height: ").concat(c.Al+s.iI/2+2,"px;\n padding: ").concat(s.iI/4,"px ").concat(s.iI,"px;\n ")}),(function(e){return e.xsmall&&"\n border-radius: ".concat((s.iI/1+c.Al)/1,"px;\n height: ").concat(20,"px;\n padding: 4px 6px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||o.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,t=e.children,i=e.disabled,o=e.label,c=e.monospace,f=e.onClick,h=e.primary,m=e.small,v=e.xsmall;return(0,a.jsx)(p,{border:n,primary:h,small:m,xsmall:v,children:(0,a.jsx)(r.ZP,{basic:!0,disabled:i,noBackground:!0,noPadding:!0,onClick:f,transparent:!0,children:(0,a.jsxs)(u.ZP,{alignItems:"center",children:[t,o&&(0,a.jsx)(l.ZP,{monospace:c,small:m,xsmall:v,children:o}),!i&&f&&(0,a.jsx)("div",{style:{marginLeft:2}}),!i&&f&&(0,a.jsx)(d.x8,{default:h,muted:!h,size:m?s.iI:1.25*s.iI})]})})})}},60820:function(e,n,t){"use strict";t.r(n);var i=t(77837),r=t(38860),u=t.n(r),l=t(82684),o=t(60523),d=t(94629),s=t(93808),c=t(32929),a=t(44898),p=t(69419),f=t(28598);function h(){var e=(0,l.useState)(!1),n=e[0],t=e[1],i=(0,l.useState)(null),r=i[0],u=i[1],s=(0,l.useState)(null),h=s[0],m=s[1],v=(0,p.iV)();(0,l.useEffect)((function(){var e=v.new,n=v.object_type,i=v.pipeline_uuid;n&&u(n),i&&m(i),t(!!e)}),[v]);var j=(0,l.useMemo)((function(){var e=[n?"New":"Browse"];return r&&e.push(r),h&&e.push(h),e}),[n,r,h]),b=(0,l.useMemo)((function(){return a.R===r}),[r]);return(0,f.jsx)(d.Z,{addProjectBreadcrumbToCustomBreadcrumbs:n,breadcrumbs:n?[{label:function(){return"Templates"},linkProps:{href:b?"/templates?object_type=".concat(a.R):"/templates"}},{bold:!0,label:function(){return"New"}}]:null,title:"Templates",uuid:"Templates/index",children:(0,f.jsx)(o.Z,{defaultTab:b?c.A2:null,objectType:r,pipelineUUID:h,showAddingNewTemplates:n},j.join("_"))})}h.getInitialProps=(0,i.Z)(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,s.Z)(h)},87710:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/templates",function(){return t(60820)}])}},function(e){e.O(0,[2678,1154,844,8224,6639,1124,341,1751,1821,4267,600,8487,8264,7858,5499,3932,722,5810,1769,1550,3004,9264,9774,2888,179],(function(){return n=87710,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5240],{60523:function(e,n,t){"use strict";var i=t(21831),r=t(82394),u=t(82684),l=t(38626),o=t(34376),d=t(54750),s=t(71180),c=t(90299),a=t(44898),p=t(55485),f=t(88328),h=t(38276),m=t(4190),v=t(48381),j=t(5755),b=t(30160),x=t(35686),g=t(72473),y=t(84649),Z=t(32929),w=t(15610),P=t(19183),O=t(28598);function k(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 C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?k(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n,t=e.contained,r=e.defaultLinkUUID,k=e.defaultTab,_=e.objectType,I=e.onClickCustomTemplate,T=e.pipelineUUID,A=e.showAddingNewTemplates,M=e.showBreadcrumbs,S=e.tabs,U=(0,o.useRouter)(),E=(0,u.useContext)(l.ThemeContext),N=(0,P.i)(),R=N.height,D=N.width,B=(0,u.useMemo)((function(){return S||Z.dP}),[S]),H=(0,u.useState)(A||!1),q=H[0],F=H[1],z=(0,u.useState)(r?Z.qy.find((function(e){return e.uuid===r})):Z.qy[0]),W=z[0],L=z[1],G=(0,u.useState)(k?B.find((function(e){return e.uuid===(null===k||void 0===k?void 0:k.uuid)})):B[0]),X=G[0],Y=G[1],V=(0,u.useState)(null),J=V[0],K=V[1],Q=x.ZP.custom_templates.list({object_type:a.Z},{},{pauseFetch:Z.n9.uuid!==(null===X||void 0===X?void 0:X.uuid)}),$=Q.data,ee=Q.mutate,ne=(0,u.useMemo)((function(){var e=(null===$||void 0===$?void 0:$.custom_templates)||[];return null!==W&&void 0!==W&&W.filterTemplates?null===W||void 0===W?void 0:W.filterTemplates(e):e}),[$,W]),te=x.ZP.custom_templates.list({object_type:a.R},{},{pauseFetch:Z.A2.uuid!==(null===X||void 0===X?void 0:X.uuid)}),ie=te.data,re=te.mutate,ue=(0,u.useMemo)((function(){var e=(null===ie||void 0===ie?void 0:ie.custom_templates)||[];return null!==W&&void 0!==W&&W.filterTemplates?null===W||void 0===W?void 0:W.filterTemplates(e):e}),[ie,W]),le=(0,u.useMemo)((function(){return Z.qy.map((function(e){var n=e.Icon,t=e.label,i=e.selectedBackgroundColor,r=e.selectedIconProps,u=e.uuid,l=(null===W||void 0===W?void 0:W.uuid)===u,o=C({size:y.ZG},l&&r?r:{});return(0,O.jsx)(y.wj,{onClick:function(){return L(e)},selected:l,children:(0,O.jsxs)(p.ZP,{alignItems:"center",children:[(0,O.jsx)(y.ze,{backgroundColor:l&&i?i(E):null,children:n?(0,O.jsx)(n,C({},o)):(0,O.jsx)(g.pd,C({},o))}),(0,O.jsx)(b.ZP,{bold:!0,large:!0,children:t?t():u})]})},u)}))}),[W,E]),oe=(0,u.useMemo)((function(){return Z.hS.map((function(e){var n=e.Icon,t=e.label,i=e.selectedBackgroundColor,r=e.selectedIconProps,u=e.uuid,l=(null===W||void 0===W?void 0:W.uuid)===u,o=C({size:y.ZG},l&&r?r:{});return(0,O.jsx)(y.wj,{onClick:function(){return L(e)},selected:l,children:(0,O.jsxs)(p.ZP,{alignItems:"center",children:[(0,O.jsx)(y.ze,{backgroundColor:l&&i?i(E):null,children:n?(0,O.jsx)(n,C({},o)):(0,O.jsx)(g.pd,C({},o))}),(0,O.jsx)(b.ZP,{bold:!0,large:!0,children:t?t():u})]})},u)}))}),[W,E]),de=(0,u.useMemo)((function(){return null===ne||void 0===ne?void 0:ne.map((function(e){var n=e.description,t=e.name,r=e.tags,u=e.template_uuid,l=e.user,o=[];return null!==r&&void 0!==r&&r.length?o.push.apply(o,(0,i.Z)(r)):null!==l&&void 0!==l&&l.username&&o.push(null===l||void 0===l?void 0:l.username),(0,O.jsxs)(y.UE,{onClick:function(){I?I(e):U.push("/templates/[...slug]","/templates/".concat(encodeURIComponent(u)))},children:[(0,O.jsx)(y.Tj,{children:(0,O.jsx)(b.ZP,{bold:!0,monospace:!0,textOverflow:!0,children:t||u})}),(0,O.jsx)(y.SL,{children:(0,O.jsx)(b.ZP,{default:!!n,italic:!n,muted:!n,textOverflowLines:2,children:n||"No description"})}),(0,O.jsx)(y.EN,{children:(null===o||void 0===o?void 0:o.length)>=1&&(0,O.jsx)(v.Z,{tags:null===o||void 0===o?void 0:o.map((function(e){return{uuid:e}}))})})]},u)}))}),[ne,I,U]),se=(0,u.useMemo)((function(){return null===ue||void 0===ue?void 0:ue.map((function(e){var n=e.description,t=e.name,r=e.tags,u=e.template_uuid,l=e.user,o=[];return null!==r&&void 0!==r&&r.length?o.push.apply(o,(0,i.Z)(r)):null!==l&&void 0!==l&&l.username&&o.push(null===l||void 0===l?void 0:l.username),(0,O.jsxs)(y.UE,{onClick:function(){I?I(e):U.push("/templates/[...slug]","/templates/".concat(encodeURIComponent(u),"?object_type=").concat(a.R))},children:[(0,O.jsx)(y.Tj,{children:(0,O.jsx)(b.ZP,{bold:!0,monospace:!0,textOverflow:!0,children:t||u})}),(0,O.jsx)(y.SL,{children:(0,O.jsx)(b.ZP,{default:!!n,italic:!n,muted:!n,textOverflowLines:2,children:n||"No description"})}),(0,O.jsx)(y.EN,{children:(null===o||void 0===o?void 0:o.length)>=1&&(0,O.jsx)(v.Z,{tags:null===o||void 0===o?void 0:o.map((function(e){return{uuid:e}}))})})]},u)}))}),[ue,I,U]),ce=(0,u.useMemo)((function(){if(!M)return null;var e=[];return q?e.push.apply(e,[{label:function(){return"Templates"},onClick:function(){F(!1)}},{bold:!0,label:function(){return"New custom template"}}]):e.push({label:function(){return"Templates"}}),(0,O.jsx)(y.FX,{children:(0,O.jsx)(d.Z,{breadcrumbs:e})})}),[q,M]),ae=(0,u.useMemo)((function(){return M?36:0}),[M]),pe=(0,u.useMemo)((function(){return R-ae}),[R,ae]);if(q)return n=a.R===_&&T?(0,O.jsx)(f.Z,{onMutateSuccess:re,pipelineUUID:T,templateAttributes:W&&(null===W||void 0===W?void 0:W.uuid)!==(null===Z.qy||void 0===Z.qy?void 0:Z.qy[0].uuid)?{pipeline_type:null===W||void 0===W?void 0:W.uuid}:null,templateUUID:null===J||void 0===J?void 0:J.template_uuid}):(0,O.jsx)(j.Z,{contained:t,heightOffset:ae,onCreateCustomTemplate:t?function(e){K(e)}:null,onMutateSuccess:ee,templateAttributes:W&&(null===W||void 0===W?void 0:W.uuid)!==(null===Z.qy||void 0===Z.qy?void 0:Z.qy[0].uuid)?{block_type:null===W||void 0===W?void 0:W.uuid}:null,templateUUID:null===J||void 0===J?void 0:J.template_uuid}),t?(0,O.jsxs)(O.Fragment,{children:[M&&ce,(0,O.jsx)(y.Rd,{height:pe,width:D,children:n})]}):n;var fe=(0,O.jsxs)(y.Nk,{children:[(0,O.jsxs)(y.bC,{height:t?pe:null,children:[(0,O.jsx)(y.Yf,{children:(0,O.jsx)(c.Z,{noPadding:!0,onClickTab:function(e){t?Y(e):(0,w.u7)({object_type:Z.A2.uuid===e.uuid?a.R:a.Z})},selectedTabUUID:null===X||void 0===X?void 0:X.uuid,tabs:B})}),(0,O.jsxs)(y.wl,{contained:t,heightOffset:ae,children:[Z.n9.uuid===(null===X||void 0===X?void 0:X.uuid)&&le,Z.A2.uuid===(null===X||void 0===X?void 0:X.uuid)&&oe]})]}),(0,O.jsxs)(y.w5,{children:[Z.n9.uuid===(null===X||void 0===X?void 0:X.uuid)&&(0,O.jsx)(y.HS,{children:(0,O.jsx)(s.ZP,{beforeIcon:(0,O.jsx)(g.mm,{size:y.ZG}),onClick:function(){F(!0)},primary:!0,children:"New block template"})}),Z.n9.uuid===(null===X||void 0===X?void 0:X.uuid)&&(0,O.jsxs)(O.Fragment,{children:[!$&&(0,O.jsx)(h.Z,{p:2,children:(0,O.jsx)(m.Z,{inverted:!0})}),$&&!(null!==de&&void 0!==de&&de.length)&&(0,O.jsxs)(h.Z,{p:2,children:[(0,O.jsx)(b.ZP,{children:"There are currently no templates matching your search."}),(0,O.jsx)("br",{}),(0,O.jsx)(b.ZP,{children:"Add a new template by clicking the button above."})]}),(null===de||void 0===de?void 0:de.length)>=1&&(0,O.jsx)(y.n8,{children:de})]}),Z.A2.uuid===(null===X||void 0===X?void 0:X.uuid)&&(0,O.jsxs)(O.Fragment,{children:[!ie&&(0,O.jsx)(h.Z,{p:2,children:(0,O.jsx)(m.Z,{inverted:!0})}),ie&&!(null!==se&&void 0!==se&&se.length)&&(0,O.jsxs)(h.Z,{p:2,children:[(0,O.jsx)(b.ZP,{children:"There are currently no templates matching your search."}),(0,O.jsx)("br",{}),(0,O.jsx)(b.ZP,{children:'Add a new template by right-clicking a pipeline row from the Pipelines page and selecting "Create template".'})]}),(null===se||void 0===se?void 0:se.length)>=1&&(0,O.jsx)(y.n8,{children:se})]})]})]});return t?(0,O.jsxs)(O.Fragment,{children:[M&&ce,(0,O.jsx)(y.Rd,{height:pe,width:D,children:fe})]}):fe}},94629:function(e,n,t){"use strict";t.d(n,{Z:function(){return k}});var i=t(82394),r=t(21831),u=t(82684),l=t(50724),o=t(82555),d=t(97618),s=t(70613),c=t(68487),a=t(68899),p=t(28598);function f(e,n){var t=e.children,i=e.noPadding;return(0,p.jsx)(a.HS,{noPadding:i,ref:n,children:t})}var h=u.forwardRef(f),m=t(62547),v=t(82571),j=t(35686),b=t(98464),x=t(46684),g=t(70515),y=t(53808),Z=t(19183);function w(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 P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function O(e,n){var t,i=e.addProjectBreadcrumbToCustomBreadcrumbs,f=e.after,w=e.afterHeader,O=e.afterHidden,k=e.afterWidth,C=e.afterWidthOverride,_=e.appendBreadcrumbs,I=e.before,T=e.beforeWidth,A=e.breadcrumbs,M=e.children,S=e.errors,U=e.headerMenuItems,E=e.headerOffset,N=e.hideAfterCompletely,R=e.mainContainerHeader,D=e.navigationItems,B=e.setAfterHidden,H=e.setErrors,q=e.subheaderChildren,F=e.subheaderNoPadding,z=e.title,W=e.uuid,L=(0,Z.i)().width,G="dashboard_after_width_".concat(W),X="dashboard_before_width_".concat(W),Y=(0,u.useRef)(null),V=(0,u.useState)(C?k:(0,y.U2)(G,k)),J=V[0],K=V[1],Q=(0,u.useState)(!1),$=Q[0],ee=Q[1],ne=(0,u.useState)(I?Math.max((0,y.U2)(X,T),13*g.iI):null),te=ne[0],ie=ne[1],re=(0,u.useState)(!1),ue=re[0],le=re[1],oe=(0,u.useState)(null)[1],de=j.ZP.projects.list({},{revalidateOnFocus:!1}).data,se=null===de||void 0===de?void 0:de.projects,ce={label:function(){var e;return null===se||void 0===se||null===(e=se[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},ae=[];A&&(i&&ae.push(ce),ae.push.apply(ae,(0,r.Z)(A))),(null===A||void 0===A||!A.length||_)&&(null===se||void 0===se?void 0:se.length)>=1&&(null!==A&&void 0!==A&&A.length||ae.unshift({bold:!_,label:function(){return z}}),ae.unshift(ce)),(0,u.useEffect)((function(){null===Y||void 0===Y||!Y.current||$||ue||null===oe||void 0===oe||oe(Y.current.getBoundingClientRect().width)}),[$,J,ue,te,Y,oe,L]),(0,u.useEffect)((function(){$||(0,y.t8)(G,J)}),[O,$,J,G]),(0,u.useEffect)((function(){ue||(0,y.t8)(X,te)}),[ue,te,X]);var pe=(0,b.Z)(k);return(0,u.useEffect)((function(){C&&pe!==k&&K(k)}),[C,k,pe]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(s.Z,{title:z}),(0,p.jsx)(c.Z,{breadcrumbs:ae,menuItems:U,project:null===se||void 0===se?void 0:se[0],version:null===se||void 0===se||null===(t=se[0])||void 0===t?void 0:t.version}),(0,p.jsxs)(a.Nk,{ref:n,children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,p.jsx)(a.lm,{showMore:!0,children:(0,p.jsx)(v.Z,{navigationItems:D,showMore:!0})}),(0,p.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(m.Z,{after:f,afterHeader:w,afterHeightOffset:x.Mz,afterHidden:O,afterMousedownActive:$,afterWidth:J,before:I,beforeHeightOffset:x.Mz,beforeMousedownActive:ue,beforeWidth:a.k1+(I?te:0),headerOffset:E,hideAfterCompletely:!B||N,leftOffset:I?a.k1:null,mainContainerHeader:R,mainContainerRef:Y,setAfterHidden:B,setAfterMousedownActive:ee,setAfterWidth:K,setBeforeMousedownActive:le,setBeforeWidth:ie,children:[q&&(0,p.jsx)(h,{noPadding:F,children:q}),M]})})]}),S&&(0,p.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===H||void 0===H?void 0:H(null)},children:(0,p.jsx)(o.Z,P(P({},S),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}var k=u.forwardRef(O)},48381:function(e,n,t){"use strict";var i=t(82684),r=t(31882),u=t(55485),l=t(30160),o=t(86735),d=t(28598);n.Z=function(e){var n=e.onClickTag,t=e.tags,s=void 0===t?[]:t,c=(0,i.useMemo)((function(){return(null===s||void 0===s?void 0:s.length)||0}),[s]),a=(0,i.useMemo)((function(){return(0,o.YC)(s||[],"uuid")}),[s]);return(0,d.jsx)(u.ZP,{alignItems:"center",flexWrap:"wrap",children:null===a||void 0===a?void 0:a.reduce((function(e,t){return e.push((0,d.jsx)("div",{style:{marginBottom:2,marginRight:c>=2?4:0,marginTop:2},children:(0,d.jsx)(r.Z,{onClick:n?function(){return n(t)}:null,small:!0,children:(0,d.jsx)(l.ZP,{children:t.uuid})})},"tag-".concat(t.uuid))),e}),[])})}},31882:function(e,n,t){"use strict";var i=t(38626),r=t(71180),u=t(55485),l=t(30160),o=t(44897),d=t(72473),s=t(70515),c=t(61896),a=t(28598),p=i.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," "," ",""],(function(e){return!e.primary&&"\n background-color: ".concat((e.theme.background||o.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||o.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((s.iI+c.Al)/2,"px;\n height: ").concat(1.5*s.iI+c.Al,"px;\n padding: ").concat(s.iI/1.5,"px ").concat(1.25*s.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((s.iI/2+c.Al)/2,"px;\n height: ").concat(c.Al+s.iI/2+2,"px;\n padding: ").concat(s.iI/4,"px ").concat(s.iI,"px;\n ")}),(function(e){return e.xsmall&&"\n border-radius: ".concat((s.iI/1+c.Al)/1,"px;\n height: ").concat(20,"px;\n padding: 4px 6px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||o.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,t=e.children,i=e.disabled,o=e.label,c=e.monospace,f=e.onClick,h=e.primary,m=e.small,v=e.xsmall;return(0,a.jsx)(p,{border:n,primary:h,small:m,xsmall:v,children:(0,a.jsx)(r.ZP,{basic:!0,disabled:i,noBackground:!0,noPadding:!0,onClick:f,transparent:!0,children:(0,a.jsxs)(u.ZP,{alignItems:"center",children:[t,o&&(0,a.jsx)(l.ZP,{monospace:c,small:m,xsmall:v,children:o}),!i&&f&&(0,a.jsx)("div",{style:{marginLeft:2}}),!i&&f&&(0,a.jsx)(d.x8,{default:h,muted:!h,size:m?s.iI:1.25*s.iI})]})})})}},60820:function(e,n,t){"use strict";t.r(n);var i=t(77837),r=t(38860),u=t.n(r),l=t(82684),o=t(60523),d=t(94629),s=t(93808),c=t(32929),a=t(44898),p=t(69419),f=t(28598);function h(){var e=(0,l.useState)(!1),n=e[0],t=e[1],i=(0,l.useState)(null),r=i[0],u=i[1],s=(0,l.useState)(null),h=s[0],m=s[1],v=(0,p.iV)();(0,l.useEffect)((function(){var e=v.new,n=v.object_type,i=v.pipeline_uuid;n&&u(n),i&&m(i),t(!!e)}),[v]);var j=(0,l.useMemo)((function(){var e=[n?"New":"Browse"];return r&&e.push(r),h&&e.push(h),e}),[n,r,h]),b=(0,l.useMemo)((function(){return a.R===r}),[r]);return(0,f.jsx)(d.Z,{addProjectBreadcrumbToCustomBreadcrumbs:n,breadcrumbs:n?[{label:function(){return"Templates"},linkProps:{href:b?"/templates?object_type=".concat(a.R):"/templates"}},{bold:!0,label:function(){return"New"}}]:null,title:"Templates",uuid:"Templates/index",children:(0,f.jsx)(o.Z,{defaultTab:b?c.A2:null,objectType:r,pipelineUUID:h,showAddingNewTemplates:n},j.join("_"))})}h.getInitialProps=(0,i.Z)(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,s.Z)(h)},87710:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/templates",function(){return t(60820)}])}},function(e){e.O(0,[2678,1154,844,5820,6639,1124,341,1751,1821,4267,600,8487,8264,7858,5499,4366,722,5810,1769,1550,90,9264,9774,2888,179],(function(){return n=87710,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4841],{94629:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(82394),i=n(21831),o=n(82684),u=n(50724),s=n(82555),c=n(97618),f=n(70613),d=n(68487),a=n(68899),l=n(28598);function h(e,t){var n=e.children,r=e.noPadding;return(0,l.jsx)(a.HS,{noPadding:r,ref:t,children:n})}var v=o.forwardRef(h),p=n(62547),b=n(82571),O=n(35686),j=n(98464),m=n(46684),w=n(70515),g=n(53808),y=n(19183);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Z(e,t){var n,r=e.addProjectBreadcrumbToCustomBreadcrumbs,h=e.after,_=e.afterHeader,Z=e.afterHidden,x=e.afterWidth,E=e.afterWidthOverride,M=e.appendBreadcrumbs,C=e.before,k=e.beforeWidth,H=e.breadcrumbs,A=e.children,S=e.errors,R=e.headerMenuItems,I=e.headerOffset,N=e.hideAfterCompletely,W=e.mainContainerHeader,B=e.navigationItems,D=e.setAfterHidden,T=e.setErrors,z=e.subheaderChildren,F=e.subheaderNoPadding,U=e.title,X=e.uuid,q=(0,y.i)().width,G="dashboard_after_width_".concat(X),J="dashboard_before_width_".concat(X),K=(0,o.useRef)(null),L=(0,o.useState)(E?x:(0,g.U2)(G,x)),Q=L[0],V=L[1],Y=(0,o.useState)(!1),$=Y[0],ee=Y[1],te=(0,o.useState)(C?Math.max((0,g.U2)(J,k),13*w.iI):null),ne=te[0],re=te[1],ie=(0,o.useState)(!1),oe=ie[0],ue=ie[1],se=(0,o.useState)(null)[1],ce=O.ZP.projects.list({},{revalidateOnFocus:!1}).data,fe=null===ce||void 0===ce?void 0:ce.projects,de={label:function(){var e;return null===fe||void 0===fe||null===(e=fe[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},ae=[];H&&(r&&ae.push(de),ae.push.apply(ae,(0,i.Z)(H))),(null===H||void 0===H||!H.length||M)&&(null===fe||void 0===fe?void 0:fe.length)>=1&&(null!==H&&void 0!==H&&H.length||ae.unshift({bold:!M,label:function(){return U}}),ae.unshift(de)),(0,o.useEffect)((function(){null===K||void 0===K||!K.current||$||oe||null===se||void 0===se||se(K.current.getBoundingClientRect().width)}),[$,Q,oe,ne,K,se,q]),(0,o.useEffect)((function(){$||(0,g.t8)(G,Q)}),[Z,$,Q,G]),(0,o.useEffect)((function(){oe||(0,g.t8)(J,ne)}),[oe,ne,J]);var le=(0,j.Z)(x);return(0,o.useEffect)((function(){E&&le!==x&&V(x)}),[E,x,le]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(f.Z,{title:U}),(0,l.jsx)(d.Z,{breadcrumbs:ae,menuItems:R,project:null===fe||void 0===fe?void 0:fe[0],version:null===fe||void 0===fe||null===(n=fe[0])||void 0===n?void 0:n.version}),(0,l.jsxs)(a.Nk,{ref:t,children:[0!==(null===B||void 0===B?void 0:B.length)&&(0,l.jsx)(a.lm,{showMore:!0,children:(0,l.jsx)(b.Z,{navigationItems:B,showMore:!0})}),(0,l.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,l.jsxs)(p.Z,{after:h,afterHeader:_,afterHeightOffset:m.Mz,afterHidden:Z,afterMousedownActive:$,afterWidth:Q,before:C,beforeHeightOffset:m.Mz,beforeMousedownActive:oe,beforeWidth:a.k1+(C?ne:0),headerOffset:I,hideAfterCompletely:!D||N,leftOffset:C?a.k1:null,mainContainerHeader:W,mainContainerRef:K,setAfterHidden:D,setAfterMousedownActive:ee,setAfterWidth:V,setBeforeMousedownActive:ue,setBeforeWidth:re,children:[z&&(0,l.jsx)(v,{noPadding:F,children:z}),A]})})]}),S&&(0,l.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===T||void 0===T?void 0:T(null)},children:(0,l.jsx)(s.Z,P(P({},S),{},{onClose:function(){return null===T||void 0===T?void 0:T(null)}}))})]})}var x=o.forwardRef(Z)},74805:function(e,t,n){"use strict";n.r(t);var r=n(77837),i=n(38860),o=n.n(i),u=(n(82684),n(56085)),s=n(94629),c=n(93808),f=n(28026),d=n(4383),a=n(50178),l=n(28598);function h(){var e=(0,a.PR)()||{},t=(0,u.ZP)((0,d.Ib)("terminal"),{queryParams:{term_name:null===e||void 0===e?void 0:e.id},shouldReconnect:function(){return!0}}),n=t.lastMessage,r=t.sendMessage;return(0,l.jsx)(s.Z,{title:"Terminal",uuid:"terminal/index",children:(0,l.jsx)(f.Z,{lastMessage:n,sendMessage:r})})}h.getInitialProps=(0,r.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),t.default=(0,c.Z)(h)},27271:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/terminal",function(){return n(74805)}])},80022:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},15544:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},13692:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(61049);function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,r.Z)(e,t)}},93189:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(12539),i=n(80022);function o(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},61049:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})}},function(e){e.O(0,[2678,1154,844,4267,600,8487,8264,9774,2888,179],(function(){return t=27271,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5378],{70652:function(n,e,t){"use strict";var r=t(21831),o=t(82394),c=t(26304),i=(t(82684),t(38626)),a=t(55485),u=t(38276),d=t(30160),l=t(44897),s=t(72473),p=t(42631),f=t(70515),b=t(28598),h=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];function g(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function m(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?g(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var x=i.default.div.withConfig({displayName:"Checkbox__CheckboxContainer",componentId:"sc-ujqx42-0"})(["display:inline-block;vertical-align:middle;cursor:pointer;"]),y=i.default.div.withConfig({displayName:"Checkbox__ErrorContainer",componentId:"sc-ujqx42-1"})(["margin-top:4px;"]),v=i.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(n){return n.notClickable&&"\n background-color: ".concat((n.theme.content||l.Z.content).disabled,"\n border-color: ").concat((n.theme.content||l.Z.content).disabled,"\n\n &:hover {\n cursor: not-allowed;\n }\n ")})),k=i.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(n){return n.checked||n.required?"visible":"hidden"}),(function(n){return n.large&&"\n svg {\n left: -4px;\n top: -8px;\n }\n "}),(function(n){return!n.checked&&"\n background-color: ".concat((n.theme.background||l.Z.background).popup,";\n border: ").concat(p.PV,"px ").concat(p.M8," ").concat((n.theme.content||l.Z.content).muted,";\n ")}),(function(n){return n.checked&&"\n background-color: ".concat((n.theme.interactive||l.Z.interactive).checked,";\n border: ").concat(p.YF,"px ").concat(p.M8," transparent;\n ")}),(function(n){return n.required&&"\n background-color: ".concat((n.theme.content||l.Z.content).disabled,";\n border: ").concat(p.YF,"px ").concat(p.M8," transparent;\n ")}),(function(n){return n.disabled&&"\n background-color: ".concat((n.theme.content||l.Z.content).disabled,";\n border-color: ").concat((n.theme.content||l.Z.content).disabled,";\n\n &:hover {\n cursor: not-allowed;\n }\n ")}),(function(n){return n.warning&&"\n background-color: ".concat((n.theme.accent||l.Z.accent).warning,";\n border-color: ").concat((n.theme.interactive||l.Z.interactive).defaultBorder,"\n ")})),w=i.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;}"]);e.Z=function(n){var e=n.beforeIcon,t=n.checked,o=n.disabled,i=n.errorMessage,l=n.label,p=n.labelDescription,g=n.large,j=n.meta,O=n.monospace,Z=void 0!==O&&O,P=n.onClick,_=n.required,C=n.small,D=void 0!==C&&C,I=n.warning,E=n.xsmall,F=void 0!==E&&E,S=(0,c.Z)(n,h),q=I||!!(i||j&&j.touched&&j.error);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(w,{onClick:function(n){n.preventDefault(),P&&!o&&P(n)},children:[(0,b.jsxs)(x,{children:[(0,b.jsx)(v,m(m({},S),{},{disabled:o?"disabled":void 0,notClickable:o})),(0,b.jsx)(k,{checked:t,disabled:o,large:g,required:_,warning:q,children:(0,b.jsx)(s.Jr,{size:f.iI*(g?3:2)})})]}),e&&(0,b.jsx)(u.Z,{ml:1,children:(0,b.jsx)(a.ZP,{children:e})}),l&&(0,b.jsxs)(u.Z,{pl:1,children:["string"===typeof l&&(0,b.jsx)(d.ZP,{disabled:o,lineThrough:o,monospace:Z,small:D,xsmall:F,children:l}),"string"!==typeof l&&l,p&&(0,b.jsx)(d.ZP,{muted:!0,small:!0,children:p})]})]}),(i||j&&j.touched&&j.error)&&(0,b.jsx)(y,{children:(0,b.jsx)(d.ZP,{small:!0,warning:!0,children:i?(0,r.Z)(i):j.error})})]})}},24944:function(n,e,t){"use strict";t.d(e,{HL:function(){return u},lZ:function(){return d},qZ:function(){return a}});var r=t(38626),o=t(44897),c=t(42631),i=t(70515),a=r.default.div.withConfig({displayName:"indexstyle__DividerContainerStyle",componentId:"sc-uiq3r3-0"})([""," ",""],(function(n){return n.short&&"\n width: ".concat(21*i.iI,"px;\n ")}),(function(n){return!n.short&&"\n width: 100%;\n "})),u=r.default.div.withConfig({displayName:"indexstyle__DividerStyle",componentId:"sc-uiq3r3-1"})(["height:1px;"," "," "," "," "," ",""],(function(n){return!(n.light||n.medium)&&"\n background-color: ".concat((n.theme.monotone||o.Z.monotone).grey200,";\n ")}),(function(n){return n.muted&&"\n background-color: ".concat((n.theme.monotone||o.Z.monotone).grey500,";\n ")}),(function(n){return n.light&&"\n background-color: ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.medium&&"\n background-color: ".concat((n.theme.borders||o.Z.borders).medium,";\n ")}),(function(n){return n.prominent&&"\n background-color: ".concat((n.theme.monotone||o.Z.monotone).grey300,";\n ")}),(function(n){return n.black&&"\n background-color: ".concat((n.theme.monotone||o.Z.monotone).black,";\n ")})),d=r.default.div.withConfig({displayName:"indexstyle__VerticalDividerStyle",componentId:"sc-uiq3r3-2"})(["width:1px;align-self:stretch;"," ",""],(function(n){return"\n border-left: ".concat(c.YF,"px ").concat(c.M8," ").concat((n.theme||o.Z).interactive.defaultBorder,";\n ")}),(function(n){var e=n.right;return"number"===typeof e&&"\n position: relative;\n right: ".concat(e,"px;\n ")}))},15338:function(n,e,t){"use strict";var r=t(82394),o=t(26304),c=(t(82684),t(38276)),i=t(24944),a=t(28598),u=["short"];function d(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function l(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?d(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}e.Z=function(n){var e=n.short,t=void 0!==e&&e,r=(0,o.Z)(n,u);return(0,a.jsx)(i.qZ,{short:t,children:(0,a.jsx)(c.Z,l(l({},r),{},{children:(0,a.jsx)(i.HL,l({},r))}))})}},35576:function(n,e,t){"use strict";var r=t(82394),o=t(26304),c=t(82684),i=t(38626),a=t(28968),u=t(28598),d=["rows"];function l(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function s(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?l(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var p=i.default.textarea.withConfig({displayName:"TextArea__TextInputStyle",componentId:"sc-112wx63-0"})(["",""],a.p),f=function(n,e){var t=n.rows,r=void 0===t?3:t,c=(0,o.Z)(n,d);return(0,u.jsx)(a.Z,s(s({},c),{},{input:(0,u.jsx)(p,s({rows:r},c)),ref:e}))};e.Z=c.forwardRef(f)},69650:function(n,e,t){"use strict";var r=t(82394),o=t(26304),c=t(82684),i=t(38626),a=t(28968),u=t(44897),d=t(3314),l=t(28598),s=["checked","disabled","onCheck","pauseEvent"];function p(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function f(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?p(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var b=i.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:',";}"," ",""],a.p,46,46,26,(function(n){return n.compact&&"\n width: ".concat(35,"px;\n min-width: ").concat(35,"px;\n height: ").concat(20,"px;\n ")}),(function(n){return n.disabled?"not-allowed":"pointer"}),(function(n){return n.disabled?u.Z.monotone.white:u.Z.monotone.black}),(function(n){return n.disabled&&"border: 1px solid ".concat(u.Z.monotone.grey200)}),(function(n){return n.compact?"1":"2"}),(function(n){return n.compact?"1":"2"}),(function(n){return n.compact?"18":"22"}),(function(n){return n.compact?"18":"22"}),(function(n){return n.compact?"translateX(15px)":"translateX(20px)"}),(function(n){return!n.disabled&&!n.monotone&&'\n & input[type="checkbox"]:checked + span {\n background-color: '.concat(u.Z.accent.sky,';\n }\n\n & input[type="checkbox"]:checked + span::before {\n background-color: ').concat(u.Z.monotone.white,";\n }\n ")}),(function(n){return n.purpleBackground&&'\n & input[type="checkbox"]:checked + span {\n background-color: '.concat(u.Z.interactive.purple,";\n }\n ")})),h=function(n,e){var t=n.checked,r=n.disabled,c=n.onCheck,i=n.pauseEvent,u=void 0===i||i,p=(0,o.Z)(n,s);return(0,l.jsx)(a.Z,f(f({},p),{},{disabled:r,input:(0,l.jsxs)(b,f(f({},p),{},{disabled:r,noBackground:!0,noBorder:!0,children:[(0,l.jsx)("input",{checked:t,readOnly:!0,type:"checkbox"}),(0,l.jsx)("span",{onClick:r?null:function(n){u&&(0,d.j)(n),null===c||void 0===c||c((function(n){return!n}))}})]})),noBackground:!0,ref:e}))};e.Z=c.forwardRef(h)},8059:function(n,e,t){"use strict";t.d(e,{eW:function(){return m},Hv:function(){return a},FI:function(){return b},Sr:function(){return u},rK:function(){return f},TD:function(){return d},R2:function(){return l},AK:function(){return s},yr:function(){return g},J:function(){return p},RK:function(){return h}});var r=t(79633),o="#FF144D",c="#DEBB92",i="#2A60FE",a="linear-gradient(90deg, #4F49F1, #A260F5)",u="linear-gradient(90deg, ".concat(c,", ").concat("#CBFE00",")"),d="linear-gradient(90deg, ".concat(o,", #C86DD7)"),l="linear-gradient(90deg, ".concat("#95ECE2",", ").concat(i,")"),s="linear-gradient(90deg, ".concat("#9B6CA7",", ").concat(c,")"),p="linear-gradient(90deg, ".concat("#C72400",", ").concat(c,")"),f="linear-gradient(100.38deg, ".concat(o," 41.11%, #FF9559 86.99%)"),b="linear-gradient(100.38deg, #37A46F 41.11%, #67B2F8 86.99%)",h=("linear-gradient(100.38deg, ".concat("#6B50D7"," 41.11%, #677FFF 86.99%)"),"linear-gradient(100.38deg, ".concat(i," 41.11%, #B880FF 86.99%)")),g="linear-gradient(90deg, ".concat(r.t4," 20.13%, #2AB2FE)"),m="linear-gradient(90deg, ".concat(r.Ck," 0%, ").concat(r.t4," 53.13%, ").concat(r.X_," 100%)")},8025:function(n,e,t){"use strict";t.r(e);var r=t(75582),o=t(69864),c=t(91749),i=t(35686),a=t(72619),u=t(28598);e.default=function(){var n="interactions_testing",e=i.ZP.pipelines.detail(n,{include_block_pipelines:!0,includes_outputs:!0}),t=e.data,d=(e.mutate,i.ZP.pipeline_interactions.detail(n)),l=d.data,s=d.mutate,p=i.ZP.interactions.pipeline_interactions.list(n),f=p.data,b=p.mutate,h=null===t||void 0===t?void 0:t.pipeline,g=null===l||void 0===l?void 0:l.pipeline_interaction,m=null===f||void 0===f?void 0:f.interactions,x=(0,o.Db)(i.ZP.pipeline_interactions.useUpdate(n),{onSuccess:function(n){return(0,a.wD)(n,{callback:function(n){s()}})}}),y=(0,r.Z)(x,2),v=y[0],k=y[1].isLoading,w=(0,o.Db)(i.ZP.interactions.pipeline_interactions.useCreate(n),{onSuccess:function(n){return(0,a.wD)(n,{callback:function(n){b(),s()}})}}),j=(0,r.Z)(w,2),O=j[0],Z=j[1].isLoading;return(0,u.jsx)("div",{children:(0,u.jsx)(c.Z,{createInteraction:function(n){return O({interaction:n})},interactions:m,isLoadingCreateInteraction:Z,isLoadingUpdatePipelineInteraction:k,pipeline:h,pipelineInteraction:g,updatePipelineInteraction:function(n){return v({pipeline_interaction:n})}})})}},91185:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/test",function(){return t(8025)}])}},function(n){n.O(0,[2678,1154,341,4267,7858,1769,1749,9774,2888,179],(function(){return e=91185,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|