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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2858],{94629:function(e,n,r){"use strict";r.d(n,{Z:function(){return C}});var t=r(82394),o=r(21831),i=r(82684),l=r(50724),c=r(82555),s=r(97618),u=r(70613),a=r(68487),d=r(68899),h=r(28598);function f(e,n){var r=e.children,t=e.noPadding;return(0,h.jsx)(d.HS,{noPadding:t,ref:n,children:r})}var m=i.forwardRef(f),v=r(62547),b=r(82571),x=r(35686),g=r(98464),j=r(46684),p=r(70515),Z=r(53808),P=r(19183);function w(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function y(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?w(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function _(e,n){var r,t=e.addProjectBreadcrumbToCustomBreadcrumbs,f=e.after,w=e.afterHeader,_=e.afterHidden,C=e.afterWidth,k=e.afterWidthOverride,S=e.appendBreadcrumbs,O=e.before,I=e.beforeWidth,E=e.breadcrumbs,A=e.children,T=e.errors,N=e.headerMenuItems,M=e.headerOffset,B=e.hideAfterCompletely,D=e.mainContainerHeader,R=e.navigationItems,H=e.setAfterHidden,L=e.setErrors,F=e.subheaderChildren,G=e.subheaderNoPadding,V=e.title,U=e.uuid,W=(0,P.i)().width,q="dashboard_after_width_".concat(U),z="dashboard_before_width_".concat(U),Y=(0,i.useRef)(null),K=(0,i.useState)(k?C:(0,Z.U2)(q,C)),Q=K[0],X=K[1],J=(0,i.useState)(!1),$=J[0],ee=J[1],ne=(0,i.useState)(O?Math.max((0,Z.U2)(z,I),13*p.iI):null),re=ne[0],te=ne[1],oe=(0,i.useState)(!1),ie=oe[0],le=oe[1],ce=(0,i.useState)(null)[1],se=x.ZP.projects.list({},{revalidateOnFocus:!1}).data,ue=null===se||void 0===se?void 0:se.projects,ae={label:function(){var e;return null===ue||void 0===ue||null===(e=ue[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},de=[];E&&(t&&de.push(ae),de.push.apply(de,(0,o.Z)(E))),(null===E||void 0===E||!E.length||S)&&(null===ue||void 0===ue?void 0:ue.length)>=1&&(null!==E&&void 0!==E&&E.length||de.unshift({bold:!S,label:function(){return V}}),de.unshift(ae)),(0,i.useEffect)((function(){null===Y||void 0===Y||!Y.current||$||ie||null===ce||void 0===ce||ce(Y.current.getBoundingClientRect().width)}),[$,Q,ie,re,Y,ce,W]),(0,i.useEffect)((function(){$||(0,Z.t8)(q,Q)}),[_,$,Q,q]),(0,i.useEffect)((function(){ie||(0,Z.t8)(z,re)}),[ie,re,z]);var he=(0,g.Z)(C);return(0,i.useEffect)((function(){k&&he!==C&&X(C)}),[k,C,he]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(u.Z,{title:V}),(0,h.jsx)(a.Z,{breadcrumbs:de,menuItems:N,project:null===ue||void 0===ue?void 0:ue[0],version:null===ue||void 0===ue||null===(r=ue[0])||void 0===r?void 0:r.version}),(0,h.jsxs)(d.Nk,{ref:n,children:[0!==(null===R||void 0===R?void 0:R.length)&&(0,h.jsx)(d.lm,{showMore:!0,children:(0,h.jsx)(b.Z,{navigationItems:R,showMore:!0})}),(0,h.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,h.jsxs)(v.Z,{after:f,afterHeader:w,afterHeightOffset:j.Mz,afterHidden:_,afterMousedownActive:$,afterWidth:Q,before:O,beforeHeightOffset:j.Mz,beforeMousedownActive:ie,beforeWidth:d.k1+(O?re:0),headerOffset:M,hideAfterCompletely:!H||B,leftOffset:O?d.k1:null,mainContainerHeader:D,mainContainerRef:Y,setAfterHidden:H,setAfterMousedownActive:ee,setAfterWidth:X,setBeforeMousedownActive:le,setBeforeWidth:te,children:[F&&(0,h.jsx)(m,{noPadding:G,children:F}),A]})})]}),T&&(0,h.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===L||void 0===L?void 0:L(null)},children:(0,h.jsx)(c.Z,y(y({},T),{},{onClose:function(){return null===L||void 0===L?void 0:L(null)}}))})]})}var C=i.forwardRef(_)},85385:function(e,n,r){"use strict";r.d(n,{Qq:function(){return f},Z7:function(){return m},cH:function(){return o},du:function(){return d},fp:function(){return a},j5:function(){return h},uM:function(){return u}});var t,o,i=r(82394),l=r(82359),c=r(72473),s=r(86735),u="sideview",a=90;!function(e){e.ADDON_BLOCKS="addon_blocks",e.BLOCK_SETTINGS="block_settings",e.CALLBACKS="callbacks",e.CHARTS="charts",e.DATA="data",e.EXTENSIONS="power_ups",e.FILE_VERSIONS="file_versions",e.GRAPHS="graphs",e.INTERACTIONS="interactions",e.REPORTS="reports",e.SECRETS="secrets",e.SETTINGS="settings",e.TERMINAL="terminal",e.TREE="tree",e.VARIABLES="variables"}(o||(o={}));o.BLOCK_SETTINGS,o.CALLBACKS,o.CHARTS,o.DATA,o.EXTENSIONS,o.TREE;var d=[o.DATA];function h(e){var n,r,t=[{key:o.TREE,label:"Tree"},{buildLabel:function(e){var n=(e.pipeline||{}).widgets,r=void 0===n?[]:n;return(null===r||void 0===r?void 0:r.length)>=1?"Charts (".concat(r.length,")"):"Charts"},key:o.CHARTS},{buildLabel:function(e){var n=e.variables;return(null===n||void 0===n?void 0:n.length)>=1?"Variables (".concat(n.length,")"):"Variables"},key:o.VARIABLES},{buildLabel:function(e){var n=e.secrets;return(null===n||void 0===n?void 0:n.length)>=1?"Secrets (".concat(n.length,")"):"Secrets"},key:o.SECRETS},{buildLabel:function(e){e.pipeline;return"Add-on blocks"},key:o.ADDON_BLOCKS},{buildLabel:function(e){var n=(e.pipeline||{}).extensions,r=void 0===n?{}:n,t=0;return Object.values(r).forEach((function(e){var n=e.blocks;t+=(null===n||void 0===n?void 0:n.length)||0})),t>=1?"Power ups (".concat(t,")"):"Power ups"},key:o.EXTENSIONS},{key:o.DATA,label:"Data"},{key:o.TERMINAL,label:"Terminal"},{key:o.BLOCK_SETTINGS,label:"Block settings"}];return null!==e&&void 0!==e&&null!==(n=e.project)&&void 0!==n&&null!==(r=n.features)&&void 0!==r&&r[l.d.INTERACTIONS]&&t.push({key:o.INTERACTIONS,label:"Interactions"}),t}function f(e){return(0,s.HK)(h(e),(function(e){return e.key}))}var m=(t={},(0,i.Z)(t,o.ADDON_BLOCKS,c.EJ),(0,i.Z)(t,o.BLOCK_SETTINGS,c.JG),(0,i.Z)(t,o.CALLBACKS,c.AQ),(0,i.Z)(t,o.CHARTS,c.GQ),(0,i.Z)(t,o.DATA,c.iA),(0,i.Z)(t,o.EXTENSIONS,c.Bf),(0,i.Z)(t,o.INTERACTIONS,c.yd),(0,i.Z)(t,o.SECRETS,c.Yo),(0,i.Z)(t,o.SETTINGS,c.Zr),(0,i.Z)(t,o.TERMINAL,c.oI),(0,i.Z)(t,o.TREE,c.mp),(0,i.Z)(t,o.VARIABLES,c.LO),t)},89706:function(e,n,r){"use strict";r.d(n,{JD:function(){return v},Lu:function(){return i},PF:function(){return h},dT:function(){return l},n6:function(){return u},nB:function(){return m},oy:function(){return f},xF:function(){return d}});var t,o,i,l,c=r(82394),s=r(44425);!function(e){e.CSV="csv",e.JSON="json",e.MD="md",e.PY="py",e.R="r",e.SH="sh",e.SQL="sql",e.TXT="txt",e.YAML="yaml",e.YML="yml"}(i||(i={})),function(e){e.INIT_PY="__init__.py",e.METADATA_YAML="metadata.yaml",e.REQS_TXT="requirements.txt"}(l||(l={}));var u=[i.PY,i.SQL],a=[i.JSON,i.MD,i.PY,i.R,i.SH,i.SQL,i.TXT,i.YAML,i.YML],d=new RegExp(a.map((function(e){return".".concat(e,"$")})).join("|")),h=(new RegExp(a.map((function(e){return".".concat(e,"$")})).join("|")),"charts"),f="pipelines",m=(t={},(0,c.Z)(t,i.MD,s.t6.MARKDOWN),(0,c.Z)(t,i.JSON,i.JSON),(0,c.Z)(t,i.PY,s.t6.PYTHON),(0,c.Z)(t,i.R,s.t6.R),(0,c.Z)(t,i.SQL,s.t6.SQL),(0,c.Z)(t,i.TXT,"text"),(0,c.Z)(t,i.YAML,s.t6.YAML),(0,c.Z)(t,i.YML,s.t6.YAML),t),v=(o={},(0,c.Z)(o,s.t6.MARKDOWN,i.MD),(0,c.Z)(o,s.t6.PYTHON,i.PY),(0,c.Z)(o,s.t6.R,i.R),(0,c.Z)(o,s.t6.SQL,i.SQL),(0,c.Z)(o,s.t6.YAML,i.YAML),(0,c.Z)(o,"text",i.TXT),o)},26314:function(e,n,r){"use strict";var t;r.d(n,{h:function(){return t}}),function(e){e.ACTIVE_DIRECTORY="active_directory",e.GITHUB="github",e.GOOGLE="google",e.OKTA="okta"}(t||(t={}))},65956:function(e,n,r){"use strict";var t=r(38626),o=r(55485),i=r(38276),l=r(30160),c=r(44897),s=r(42631),u=r(47041),a=r(70515),d=r(28598),h=(0,t.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*a.iI,1.5*a.iI,1.5*a.iI),f=t.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],s.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||c.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||c.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||c.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||c.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||c.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),m=t.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],s.n_,s.n_,(function(e){return"\n background-color: ".concat((e.theme.background||c.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||c.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),h,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),v=t.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*a.iI,u.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*a.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),b=t.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],s.M8,s.YF,1.75*a.iI);n.Z=function(e){var n=e.borderless,r=e.children,t=e.containerRef,c=e.contentContainerRef,s=e.dark,u=e.footer,a=e.fullHeight,h=void 0===a||a,x=e.fullWidth,g=void 0===x||x,j=e.header,p=e.headerHeight,Z=e.headerIcon,P=e.headerPaddingVertical,w=e.headerTitle,y=e.maxHeight,_=e.maxWidth,C=e.minWidth,k=e.noPadding,S=e.overflowVisible,O=e.subtitle,I=e.success;return(0,d.jsxs)(f,{borderless:n,dark:s,fullHeight:h,fullWidth:g,maxHeight:y,maxWidth:_,minWidth:C,overflowVisible:S,ref:t,success:I,children:[(j||w)&&(0,d.jsxs)(m,{headerPaddingVertical:P,height:p,children:[j&&j,w&&(0,d.jsx)(o.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(o.ZP,{alignItems:"center",children:[Z&&Z,(0,d.jsx)(i.Z,{ml:Z?1:0,children:(0,d.jsx)(l.ZP,{bold:!0,default:!0,children:w})})]})})]}),(0,d.jsxs)(v,{maxHeight:y,noPadding:k,overflowVisible:S,ref:c,children:[O&&(0,d.jsx)(i.Z,{mb:2,children:(0,d.jsx)(l.ZP,{default:!0,children:O})}),r]}),u&&(0,d.jsx)(b,{children:u})]})}},35185:function(e,n,r){"use strict";var t=r(82394),o=r(91835),i=(r(82684),r(38626)),l=r(44897),c=r(42631),s=r(70515),u=r(28598);function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function d(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?a(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var h=i.default.div.withConfig({displayName:"ProgressBar__ProgressBarContainerStyle",componentId:"sc-10x9ojc-0"})(["border-radius:","px;height:","px;overflow:hidden;position:relative;width:100%;",""],c.BG,.75*s.iI,(function(e){return"\n background-color: ".concat((e.theme.monotone||l.Z.monotone).grey200,";\n ")})),f=i.default.div.withConfig({displayName:"ProgressBar__ProgressBarStyle",componentId:"sc-10x9ojc-1"})(["height:inherit;position:absolute;"," "," "," ",""],(function(e){return!e.danger&&"\n background-color: ".concat((e.theme.progress||l.Z.progress).positive,";\n ")}),(function(e){return e.progress&&"\n width: ".concat(e.progress,"%;\n ")}),(function(e){return e.danger&&"\n background-color: ".concat((e.theme.progress||l.Z.progress).negative,";\n ")}),(function(e){return e.animateProgress&&"\n animation: animate-progress ".concat(e.animateProgress.duration,"ms linear forwards;\n\n @keyframes animate-progress {\n 0% {\n width: ").concat(e.animateProgress.start,"%;\n }\n\n 100% {\n width: ").concat(e.animateProgress.end,"%;\n }\n }\n ")}));n.Z=function(e){var n=(0,o.Z)({},e);return(0,u.jsx)(h,d(d({},n),{},{children:(0,u.jsx)(f,d({},n))}))}},58024:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return Se}});var t=r(77837),o=r(38860),i=r.n(o),l=r(93808),c=r(82394),s=r(75582),u=r(54407),a=r.n(u),d=r(82684),h=r(69864),f=r(71180),m=r(15338),v=r(55485),b=r(85854),x=r(44085),g=r(38276),j=r(4190),p=r(30160),Z=r(35576),P=r(17488),w=r(12468),y=r(35686),_=r(72473),C="clone",k="delete",S="fetch",O="merge",I="pull",E="push",A="rebase",T="git_remote_name",N="git_repository_name",M={uuid:"Branches"},B={uuid:"Files"},D={uuid:"Push"},R={uuid:"Setup"},H=[R,M,B,D],L=r(70515),F=r(81728),G=r(72619),V=r(28598);var U=function(e){var n=e.actionRemoteName,r=e.branch,t=e.branches,o=e.fetchBranch,i=e.fetchBranches,l=e.remotes,u=e.setActionRemoteName,a=e.showError,C=(0,d.useState)(""),S=C[0],I=C[1],E=(0,d.useState)(null),T=E[0],N=E[1],M=(0,d.useState)(null),D=M[0],H=M[1],U=(0,d.useState)(null),W=U[0],q=U[1],z=(0,d.useState)(""),Y=z[0],K=z[1],Q=(0,d.useMemo)((function(){return null===l||void 0===l?void 0:l.find((function(e){return e.name===n}))}),[n,l]),X=(0,d.useMemo)((function(){return(null===t||void 0===t?void 0:t.concat((null===Q||void 0===Q?void 0:Q.refs)||[]))||[]}),[t,Q]),J=(0,h.Db)(y.ZP.git_custom_branches.useCreate(),{onSuccess:function(e){return(0,G.wD)(e,{callback:function(){o(),i(),K("")},onErrorCallback:function(e,n){return a({errors:n,response:e})}})}}),$=(0,s.Z)(J,2),ee=$[0],ne=$[1].isLoading,re=(0,h.Db)(y.ZP.git_custom_branches.useCreate(),{onSuccess:function(e){return(0,G.wD)(e,{callback:function(){o()},onErrorCallback:function(e,n){return a({errors:n,response:e})}})}}),te=(0,s.Z)(re,2),oe=te[0],ie=te[1].isLoading,le=(0,h.Db)(y.ZP.git_custom_branches.useUpdate(null===r||void 0===r?void 0:r.name),{onSuccess:function(e){return(0,G.wD)(e,{callback:function(e){var n=e.git_custom_branch.progress;o(),I(""),N(""),H(n),q("")},onErrorCallback:function(e,n){return a({errors:n,response:e})}})}}),ce=(0,s.Z)(le,2),se=ce[0],ue=ce[1].isLoading;return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(g.Z,{mb:L.HN,children:[(0,V.jsxs)(b.Z,{children:["Branches",t?" (".concat(null===t||void 0===t?void 0:t.length,")"):""]}),(0,V.jsx)(g.Z,{mt:L.Mq,children:(0,V.jsxs)(v.ZP,{children:[(0,V.jsxs)("div",{children:[(0,V.jsx)(g.Z,{mb:1,children:(0,V.jsx)(p.ZP,{bold:!0,muted:!0,children:"Remote"})}),(0,V.jsx)(x.Z,{beforeIcon:(0,V.jsx)(_.VW,{}),beforeIconSize:1.5*L.iI,monospace:!0,onChange:function(e){return u(e.target.value)},placeholder:"Choose a remote",value:n||"",children:null===l||void 0===l?void 0:l.map((function(e){var n=e.name;return(0,V.jsx)("option",{value:n,children:n},n)}))})]}),(0,V.jsx)(g.Z,{mr:1}),(0,V.jsxs)("div",{children:[(0,V.jsx)(g.Z,{mb:1,children:(0,V.jsx)(p.ZP,{bold:!0,muted:!0,children:"Current branch"})}),(0,V.jsxs)(v.ZP,{alignItems:"center",children:[(0,V.jsx)(w.Z,{fullSize:!0,label:"Choose a different branch to switch branches",widthFitContent:!0,children:(0,V.jsx)(x.Z,{beforeIcon:(0,V.jsx)(_.I0,{muted:!1}),beforeIconSize:2*L.iI,monospace:!0,onChange:function(e){return oe({git_custom_branch:{name:e.target.value}})},value:null===r||void 0===r?void 0:r.name,children:(null===r||void 0===r?void 0:r.name)&&(null===t||void 0===t?void 0:t.map((function(e){var n=e.name;return(0,V.jsx)("option",{value:n,children:n},n)})))})}),(0,V.jsx)(g.Z,{mr:L.cd}),ie&&(0,V.jsx)(j.Z,{inverted:!0})]})]})]})}),(0,V.jsx)(g.Z,{mt:L.Mq,children:(0,V.jsxs)(v.ZP,{alignItems:"center",children:[(0,V.jsx)(P.Z,{label:"New branch name",monospace:!0,onChange:function(e){var n;return K(null===e||void 0===e||null===(n=e.target)||void 0===n?void 0:n.value)},value:Y||""}),(0,V.jsx)(g.Z,{mr:1}),(0,V.jsx)(f.ZP,{beforeIcon:(0,V.jsx)(_.mm,{size:2*L.iI}),disabled:!Y,loading:ne,onClick:function(){ee({git_custom_branch:{name:Y}})},primary:!0,children:"Create new branch"})]})})]}),(0,V.jsxs)(g.Z,{mb:L.HN,children:[(0,V.jsx)(b.Z,{children:"Actions"}),(0,V.jsxs)(g.Z,{mt:L.Mq,children:[(0,V.jsxs)(g.Z,{mb:L.Mq,children:[(0,V.jsx)(g.Z,{mb:1,children:(0,V.jsx)(p.ZP,{bold:!0,muted:!0,children:"Compare branch"})}),(null===r||void 0===r?void 0:r.name)&&(0,V.jsx)(p.ZP,{monospace:!0,children:null===r||void 0===r?void 0:r.name})]}),(0,V.jsxs)(v.ZP,{alignItems:"center",children:[(0,V.jsxs)("div",{children:[(0,V.jsx)(g.Z,{mb:1,children:(0,V.jsx)(p.ZP,{bold:!0,muted:!0,children:"Base branch"})}),(0,V.jsx)(x.Z,{beforeIcon:(0,V.jsx)(_.I0,{}),beforeIconSize:1.5*L.iI,monospace:!0,onChange:function(e){return q(e.target.value)},placeholder:"Choose a branch",value:W,children:null===X||void 0===X?void 0:X.map((function(e){var n=e.name;return(0,V.jsx)("option",{value:n,children:n},n)}))})]}),(0,V.jsx)(g.Z,{mr:1}),(0,V.jsxs)("div",{children:[(0,V.jsx)(g.Z,{mb:1,children:(0,V.jsx)(p.ZP,{bold:!0,muted:!0,children:"Action"})}),(0,V.jsxs)(x.Z,{onChange:function(e){return N(e.target.value)},placeholder:"Choose action",value:T||"",children:[(0,V.jsx)("option",{value:O,children:(0,F.vg)(O)}),(0,V.jsx)("option",{value:A,children:(0,F.vg)(A)}),(0,V.jsx)("option",{value:k,children:(0,F.vg)(k)})]})]})]}),T&&[O,A].includes(T)&&(0,V.jsxs)(g.Z,{mt:L.cd,children:[(0,V.jsx)(g.Z,{mb:1,children:(0,V.jsxs)(p.ZP,{bold:!0,muted:!0,children:["Message for ",T]})}),(0,V.jsx)(Z.Z,{monospace:!0,onChange:function(e){return I(e.target.value)},value:S||""})]}),(0,V.jsxs)(g.Z,{mt:L.cd,children:[(0,V.jsx)(f.ZP,{beforeIcon:(0,V.jsx)(_.Bf,{size:2*L.iI}),disabled:!T||!W,loading:ue,onClick:function(){(k!==T||"undefined"!==typeof location&&window.confirm("Are you sure you want to delete branch ".concat(W,"?")))&&se({git_custom_branch:(0,c.Z)({action_type:T,message:S},T,{base_branch:W})})},primary:!0,children:T?(0,F.vg)(T):"Execute action"}),D&&(0,V.jsx)(g.Z,{mt:L.cd,children:(0,V.jsx)(p.ZP,{default:!0,monospace:!0,preWrap:!0,children:D})})]})]})]}),(0,V.jsxs)(g.Z,{mb:L.HN,children:[(0,V.jsx)(g.Z,{mb:L.HN,children:(0,V.jsx)(m.Z,{light:!0})}),(0,V.jsxs)(v.ZP,{children:[(0,V.jsx)(f.ZP,{beforeIcon:(0,V.jsx)(_.Hd,{}),linkProps:{href:"/version-control?tab=".concat(R.uuid)},noBackground:!0,noHoverUnderline:!0,sameColorAsText:!0,children:R.uuid}),(0,V.jsx)(g.Z,{mr:1}),(0,V.jsxs)(f.ZP,{afterIcon:(0,V.jsx)(_.Kw,{}),linkProps:{href:"/version-control?tab=".concat(B.uuid)},noHoverUnderline:!0,sameColorAsText:!0,secondary:!0,children:["Next: ",B.uuid]})]})]})]})},W=r(90299),q=r(32013),z=r(98777),Y=r(48670),K=r(75499);function Q(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function X(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Q(Object(r),!0).forEach((function(n){(0,c.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var J={base_branch:null,body:null,compare_branch:null,repository:null,title:null};var $=function(e){var n=e.actionRemoteName,r=e.branch,t=e.branches,o=e.fetchBranch,i=e.loading,l=e.remotes,u=e.repositories,a=e.repositoryName,w=e.setActionRemoteName,C=e.setRepositoryName,k=e.showError,S=(0,d.useState)((null===r||void 0===r?void 0:r.name)||""),O=S[0],I=S[1],A=(0,d.useState)(null),T=A[0],N=A[1],M=(0,d.useState)(null),D=M[0],R=M[1],H=(0,d.useState)(J),U=H[0],W=H[1],Q=(0,h.Db)(y.ZP.git_custom_branches.useUpdate(null===r||void 0===r?void 0:r.name),{onSuccess:function(e){return(0,G.wD)(e,{callback:function(e){var n=e.git_custom_branch,r=n.error,t=n.progress;r?(N(r),R(null)):(o(),N(null),R(t))},onErrorCallback:function(e,n){return k({errors:n,response:e})}})}}),$=(0,s.Z)(Q,2),ee=$[0],ne=$[1].isLoading,re=y.ZP.pull_requests.list({repository:a},{},{pauseFetch:!a}),te=re.data,oe=re.mutate,ie=(0,d.useMemo)((function(){return(null===te||void 0===te?void 0:te.pull_requests)||[]}),[te]),le=(0,d.useMemo)((function(){return(0,V.jsx)(K.Z,{columnFlex:[null,null,null,null],columns:[{uuid:"Title"},{uuid:"Author"},{uuid:"Created"},{uuid:"Last modified"}],onClickRow:function(e){var n,r=null===ie||void 0===ie||null===(n=ie[e])||void 0===n?void 0:n.url;r&&window.open(r,"_blank")},rows:null===ie||void 0===ie?void 0:ie.map((function(e){var n=e.created_at,r=e.last_modified,t=e.title,o=e.url,i=e.user;return[(0,V.jsx)(Y.Z,{default:!0,href:o,monospace:!0,openNewWindow:!0,small:!0,children:t},"title"),(0,V.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:i},"user"),(0,V.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:n},"createdAt"),(0,V.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:r||"-"},"lastModified")]})),uuid:"pull-requests"})}),[ie]),ce=y.ZP.git_custom_branches.list({repository:a},{},{pauseFetch:!a}).data,se=(0,d.useMemo)((function(){return(null===ce||void 0===ce?void 0:ce.git_custom_branches)||[]}),[ce]);(0,d.useEffect)((function(){null!==U&&void 0!==U&&U.compare_branch||null===se||void 0===se||!se.find((function(e){return e.name===(null===r||void 0===r?void 0:r.name)}))||W((function(e){return X(X({},e),{},{compare_branch:null===r||void 0===r?void 0:r.name})}))}),[r,se,U]);var ue=(0,h.Db)(y.ZP.pull_requests.useCreate(),{onSuccess:function(e){return(0,G.wD)(e,{callback:function(){oe(),W(J)},onErrorCallback:function(e,n){return k({errors:n,response:e})}})}}),ae=(0,s.Z)(ue,2),de=ae[0],he=ae[1].isLoading;return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(g.Z,{mb:L.HN,children:[(0,V.jsx)(g.Z,{mb:1,children:(0,V.jsx)(b.Z,{children:(0,F.vg)(E)})}),(0,V.jsxs)(g.Z,{mt:L.Mq,children:[(0,V.jsxs)(v.ZP,{children:[(0,V.jsxs)("div",{children:[(0,V.jsx)(g.Z,{mb:1,children:(0,V.jsx)(p.ZP,{bold:!0,muted:!0,children:"Remote"})}),i&&(0,V.jsx)(j.Z,{inverted:!0}),!i&&(0,V.jsx)(x.Z,{beforeIcon:(0,V.jsx)(_.VW,{}),beforeIconSize:1.5*L.iI,monospace:!0,onChange:function(e){return w(e.target.value)},placeholder:"Choose remote",value:n||"",children:null===l||void 0===l?void 0:l.map((function(e){var n=e.name;return(0,V.jsx)("option",{value:n,children:n},n)}))})]}),(0,V.jsx)(g.Z,{mr:1}),(0,V.jsxs)("div",{children:[(0,V.jsx)(g.Z,{mb:1,children:(0,V.jsx)(p.ZP,{bold:!0,muted:!0,children:"Branch"})}),(0,V.jsxs)(x.Z,{beforeIcon:(0,V.jsx)(_.I0,{}),beforeIconSize:1.5*L.iI,monospace:!0,onChange:function(e){return I(e.target.value)},placeholder:"Choose branch",value:O||"",children:[(0,V.jsx)("option",{value:""}),null===t||void 0===t?void 0:t.map((function(e){var n=e.name;return(0,V.jsx)("option",{value:n,children:n},n)}))]})]})]}),(0,V.jsx)(g.Z,{mt:L.cd,children:(0,V.jsxs)(f.ZP,{beforeIcon:(0,V.jsx)(_.Bf,{size:2*L.iI}),disabled:!n||!O,loading:ne,onClick:function(){R(null),ee({git_custom_branch:(0,c.Z)({action_type:E},E,{branch:O,remote:n})})},primary:!0,children:[(0,F.vg)(E)," ",n," ",n&&O]})}),(D||T)&&(0,V.jsx)(g.Z,{mt:L.cd,children:(0,V.jsx)(p.ZP,{danger:!!T,default:!!D,monospace:!0,preWrap:!0,children:D||T})})]})]}),(0,V.jsxs)(g.Z,{mb:L.HN,children:[(0,V.jsx)(g.Z,{mb:1,children:(0,V.jsx)(b.Z,{children:"Create pull request"})}),(0,V.jsxs)(g.Z,{mt:L.Mq,children:[i&&(0,V.jsx)(j.Z,{inverted:!0}),!i&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(v.ZP,{children:[(0,V.jsxs)("div",{children:[(0,V.jsx)(g.Z,{mb:1,children:(0,V.jsx)(p.ZP,{bold:!0,muted:!0,children:"Repository"})}),(0,V.jsx)(x.Z,{beforeIcon:(0,V.jsx)(_.fy,{}),beforeIconSize:1.5*L.iI,monospace:!0,onChange:function(e){return C(e.target.value)},placeholder:"Choose repository",value:a||"",children:null===u||void 0===u?void 0:u.map((function(e){var n=e.name;return(0,V.jsx)("option",{value:n,children:n},n)}))})]}),(0,V.jsx)(g.Z,{mr:1}),(0,V.jsxs)("div",{children:[(0,V.jsx)(g.Z,{mb:1,children:(0,V.jsx)(p.ZP,{bold:!0,muted:!0,children:"Base branch"})}),a&&!ce&&(0,V.jsx)(j.Z,{inverted:!0}),(!a||ce)&&(0,V.jsx)(x.Z,{beforeIcon:(0,V.jsx)(_.I0,{}),beforeIconSize:1.5*L.iI,disabled:!a,monospace:!0,onChange:function(e){return W((function(n){return X(X({},n),{},{base_branch:e.target.value})}))},placeholder:"Choose branch",value:(null===U||void 0===U?void 0:U.base_branch)||"",children:null===se||void 0===se?void 0:se.map((function(e){var n=e.name;return(0,V.jsx)("option",{value:n,children:n},n)}))})]}),(0,V.jsx)(g.Z,{mr:1}),(0,V.jsxs)("div",{children:[(0,V.jsx)(g.Z,{mb:1,children:(0,V.jsx)(p.ZP,{bold:!0,muted:!0,children:"Compare branch"})}),a&&!ce&&(0,V.jsx)(j.Z,{inverted:!0}),(!a||ce||(null===U||void 0===U?void 0:U.compare_branch))&&(0,V.jsxs)(x.Z,{beforeIcon:(0,V.jsx)(_.I0,{}),beforeIconSize:1.5*L.iI,disabled:!a,monospace:!0,onChange:function(e){return W((function(n){return X(X({},n),{},{compare_branch:e.target.value})}))},placeholder:"Choose branch",value:(null===U||void 0===U?void 0:U.compare_branch)||"",children:[!(null!==se&&void 0!==se&&se.length)&&(null===U||void 0===U?void 0:U.compare_branch)&&(0,V.jsx)("option",{value:null===U||void 0===U?void 0:U.compare_branch,children:null===U||void 0===U?void 0:U.compare_branch}),null===se||void 0===se?void 0:se.map((function(e){var n=e.name;return(0,V.jsx)("option",{value:n,children:n},n)}))]})]})]}),(0,V.jsx)(g.Z,{mt:1,children:(0,V.jsx)(P.Z,{label:"Title",monospace:!0,onChange:function(e){return W((function(n){return X(X({},n),{},{title:e.target.value})}))},value:(null===U||void 0===U?void 0:U.title)||""})}),(0,V.jsx)(g.Z,{mt:1,children:(0,V.jsx)(Z.Z,{label:"Description",monospace:!0,onChange:function(e){return W((function(n){return X(X({},n),{},{body:e.target.value})}))},value:(null===U||void 0===U?void 0:U.body)||""})}),(0,V.jsx)(g.Z,{mt:L.cd,children:(0,V.jsx)(f.ZP,{beforeIcon:(0,V.jsx)(_.Bf,{size:2*L.iI}),disabled:!a||!(null!==U&&void 0!==U&&U.title)||!(null!==U&&void 0!==U&&U.base_branch)||!(null!==U&&void 0!==U&&U.compare_branch),loading:he,onClick:function(){de({pull_request:X(X({},U),{},{repository:a})})},primary:!0,children:"Create new pull request"})})]})]}),(0,V.jsx)(g.Z,{mt:L.Mq,children:(0,V.jsx)(q.Z,{visibleMapping:{0:!a},children:(0,V.jsxs)(z.Z,{noPaddingContent:!0,title:te?"Pull requests (".concat(null===ie||void 0===ie?void 0:ie.length,")"):"Pull requests",children:[!a&&(0,V.jsx)(g.Z,{p:L.cd,children:(0,V.jsx)(p.ZP,{muted:!0,children:"Please select a repository to view open pull requests."})}),a&&(0,V.jsxs)(V.Fragment,{children:[!te&&(0,V.jsx)(g.Z,{p:L.cd,children:(0,V.jsx)(j.Z,{inverted:!0})}),te&&le]})]})})})]}),(0,V.jsxs)(g.Z,{mb:L.HN,children:[(0,V.jsx)(g.Z,{mb:L.HN,children:(0,V.jsx)(m.Z,{light:!0})}),(0,V.jsx)(v.ZP,{children:(0,V.jsx)(f.ZP,{beforeIcon:(0,V.jsx)(_.Hd,{}),linkProps:{href:"/version-control?tab=".concat(B.uuid)},noBackground:!0,noHoverUnderline:!0,sameColorAsText:!0,children:B.uuid})})]})]})},ee=r(94629),ne=r(10553),re=r(70652),te=r(97618),oe=r(38626),ie=oe.default.div.withConfig({displayName:"indexstyle__SpacingStyle",componentId:"sc-el09vr-0"})(["margin-top:","px;"],.5*L.iI),le=r(42122);function ce(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function se(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ce(Object(r),!0).forEach((function(n){(0,c.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ce(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var ue=function(e){var n=e.branch,r=e.fetchBranch,t=e.modifiedFiles,o=e.setSelectedFilePath,i=e.showError,l=e.stagedFiles,c=e.untrackedFiles,u=(0,d.useRef)(null),a=(0,d.useState)(""),x=a[0],P=a[1],w=(0,d.useState)({}),C=w[0],k=w[1],S=(0,d.useState)({}),O=S[0],I=S[1],E=(0,d.useMemo)((function(){return Object.keys(t).concat(Object.keys(c)).sort()}),[t,c]),A=(0,d.useMemo)((function(){return Object.keys(l||{})}),[l]),T=(0,d.useMemo)((function(){return A.length}),[A]),N=(0,d.useMemo)((function(){return Object.keys(C).length===(null===E||void 0===E?void 0:E.length)}),[C,E]),B=(0,d.useMemo)((function(){return Object.keys(O).length===(null===A||void 0===A?void 0:A.length)}),[O,A]),R=(0,d.useMemo)((function(){return{onErrorCallback:function(e,n){return i({errors:n,response:e})}}}),[i]),H=(0,d.useMemo)((function(){return{onSuccess:function(e){return(0,G.wD)(e,se({callback:function(){r(),k({})}},R))}}}),[r,R]),U=(0,d.useMemo)((function(){return y.ZP.git_custom_branches.useUpdate(null===n||void 0===n?void 0:n.name)}),[n]),W=(0,h.Db)(U,H),Q=(0,s.Z)(W,2),X=Q[0],J=Q[1].isLoading,$=(0,h.Db)(U,H),ee=(0,s.Z)($,2),ne=ee[0],oe=ee[1].isLoading,ce=(0,h.Db)(U,{onSuccess:function(e){return(0,G.wD)(e,se({callback:function(){r(),I({})}},R))}}),ue=(0,s.Z)(ce,2),ae=ue[0],de=ue[1].isLoading,he=(0,d.useCallback)((function(e,n,r,t,o){var i=(null===e||void 0===e?void 0:e.length)>=1;return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Y.Z,{block:!0,noHoverUnderline:!0,onClick:function(){r(o?{}:t)},preventDefault:!0,children:(0,V.jsxs)(v.ZP,{alignItems:"center",flexDirection:"row",children:[(0,V.jsx)(re.Z,{checked:i&&o,disabled:!i}),(0,V.jsx)(g.Z,{mr:1}),(0,V.jsx)(p.ZP,{bold:!0,children:i&&o?"Unselect all":"Select all"})]})}),e.map((function(e){return(0,V.jsx)(ie,{children:(0,V.jsx)(Y.Z,{block:!0,noHoverUnderline:!0,onClick:function(){return r((function(n){var r=se({},n);return!(null!==r&&void 0!==r&&r[e])?r[e]=!0:delete r[e],r}))},preventDefault:!0,children:(0,V.jsxs)(v.ZP,{alignItems:"center",flexDirection:"row",children:[(0,V.jsx)(re.Z,{checked:!(null===n||void 0===n||!n[e])}),(0,V.jsx)(g.Z,{mr:1}),(0,V.jsx)(p.ZP,{default:!0,monospace:!0,children:e})]})})},e)}))]})}),[]),fe=(0,d.useMemo)((function(){return(0,le.Qr)(C)}),[C]),me=y.ZP.git_custom_branches.detail("with_logs",{_format:"with_logs"}),ve=me.data,be=me.mutate,xe=(0,d.useMemo)((function(){var e;return(null===ve||void 0===ve||null===(e=ve.git_custom_branch)||void 0===e?void 0:e.logs)||[]}),[ve]),ge=(0,h.Db)(y.ZP.git_custom_branches.useUpdate(null===n||void 0===n?void 0:n.name),{onSuccess:function(e){return(0,G.wD)(e,{callback:function(){be(),r(),P("")},onErrorCallback:function(e,n){return i({errors:n,response:e})}})}}),je=(0,s.Z)(ge,2),pe=je[0],Ze=je[1].isLoading,Pe=(0,d.useMemo)((function(){return(0,V.jsx)(K.Z,{columnFlex:[1,1,1],columns:[{uuid:"Author"},{uuid:"Date"},{uuid:"Message"}],rows:xe.map((function(e){var n=e.author,r=e.date,t=e.message;return[(0,V.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:null===n||void 0===n?void 0:n.name},"author"),(0,V.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:r},"date"),(0,V.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:t},"message")]})),uuid:"git-branch-logs"})}),[xe]);return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(g.Z,{mb:L.HN,children:(0,V.jsxs)(v.ZP,{children:[(0,V.jsxs)(te.Z,{flex:1,flexDirection:"column",children:[(0,V.jsxs)(b.Z,{children:["Not staged ",(null===E||void 0===E?void 0:E.length)>=1&&"(".concat(null===E||void 0===E?void 0:E.length,")")]}),(0,V.jsx)(g.Z,{my:L.cd,children:(0,V.jsx)(m.Z,{light:!0})}),(0,V.jsx)(g.Z,{mb:L.cd,children:(0,V.jsxs)(v.ZP,{flexDirection:"row",children:[(0,V.jsx)(f.ZP,{compact:!0,disabled:fe||de||oe,loading:J,onClick:function(){X({git_custom_branch:{action_type:"add",files:Object.keys(C)}}).then((function(e){var n,r=e.data;null!==r&&void 0!==r&&r.git_custom_branch&&(null===u||void 0===u||null===(n=u.current)||void 0===n||n.focus())}))},primary:!0,children:"Add files"}),(0,V.jsx)(g.Z,{mr:1}),(0,V.jsx)(f.ZP,{compact:!0,disabled:fe||J||de,loading:oe,noBackground:!0,onClick:function(){"undefined"!==typeof location&&window.confirm("Are you sure you want to undo all changes in the selected files?")&&ne({git_custom_branch:{action_type:"checkout",files:Object.keys(C)}})},children:"Checkout files"})]})}),he(E,C,k,se(se({},t),c),N)]}),(0,V.jsx)(g.Z,{mr:L.cd}),(0,V.jsxs)(te.Z,{flex:1,flexDirection:"column",children:[(0,V.jsxs)(b.Z,{children:["Staged files ",(null===A||void 0===A?void 0:A.length)>=1&&"(".concat(null===A||void 0===A?void 0:A.length,")")]}),(0,V.jsx)(g.Z,{my:L.cd,children:(0,V.jsx)(m.Z,{light:!0})}),(0,V.jsx)(g.Z,{mb:L.cd,children:(0,V.jsx)(v.ZP,{flexDirection:"row",children:(0,V.jsx)(f.ZP,{compact:!0,disabled:(0,le.Qr)(O)||J||oe,loading:de,onClick:function(){ae({git_custom_branch:{action_type:"reset",files:Object.keys(O)}})},secondary:!0,children:"Reset files"})})}),he(A,O,I,l,B)]})]})}),(0,V.jsxs)(g.Z,{mb:L.HN,children:[(0,V.jsx)(g.Z,{mb:1,children:(0,V.jsx)(b.Z,{children:"Commit"})}),(0,V.jsx)(g.Z,{mb:L.cd,children:(0,V.jsx)(q.Z,{children:(0,V.jsx)(z.Z,{noPaddingContent:!0,title:T>=1?"Staged files (".concat(T,")"):"No staged files",children:null===A||void 0===A?void 0:A.map((function(e){return(0,V.jsx)(g.Z,{my:1,px:L.cd,children:(0,V.jsxs)(v.ZP,{justifyContent:"space-between",children:[(0,V.jsx)(Y.Z,{default:!0,monospace:!0,onClick:function(){return o((function(n){return n===e?null:e}))},warning:null===t||void 0===t?void 0:t[e],children:e}),(0,V.jsx)(g.Z,{mr:1}),(null===t||void 0===t?void 0:t[e])&&(0,V.jsx)(p.ZP,{warning:!0,children:"Modified after staging"})]})},e)}))})})}),(0,V.jsx)(Z.Z,{label:"Commit message",monospace:!0,onChange:function(e){return P(e.target.value)},ref:u,value:x||""}),(0,V.jsx)(g.Z,{mt:L.cd,children:(0,V.jsxs)(v.ZP,{alignItems:"center",children:[(0,V.jsxs)(f.ZP,{disabled:0===T||!((null===x||void 0===x?void 0:x.length)>=1),loading:Ze,onClick:function(){pe({git_custom_branch:{action_type:"commit",message:x}})},primary:!0,children:["Commit ",(0,F._6)("file",T,!0)," with message"]}),0===T&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(g.Z,{mr:1}),(0,V.jsx)(p.ZP,{danger:!0,small:!0,children:"Please stage at least 1 file before committing."})]})]})})]}),(0,V.jsx)(g.Z,{mb:L.HN,children:(0,V.jsx)(q.Z,{children:(0,V.jsxs)(z.Z,{noPaddingContent:!0,title:"Logs",children:[!ve&&(0,V.jsx)(g.Z,{p:L.cd,children:(0,V.jsx)(j.Z,{inverted:!0})}),ve&&Pe]})})}),(0,V.jsxs)(g.Z,{mb:L.HN,children:[(0,V.jsx)(g.Z,{mb:L.HN,children:(0,V.jsx)(m.Z,{light:!0})}),(0,V.jsxs)(v.ZP,{children:[(0,V.jsx)(f.ZP,{beforeIcon:(0,V.jsx)(_.Hd,{}),linkProps:{href:"/version-control?tab=".concat(M.uuid)},noBackground:!0,noHoverUnderline:!0,sameColorAsText:!0,children:M.uuid}),(0,V.jsx)(g.Z,{mr:1}),(0,V.jsxs)(f.ZP,{afterIcon:(0,V.jsx)(_.Kw,{}),linkProps:fe?{href:"/version-control?tab=".concat(D.uuid)}:null,noHoverUnderline:!0,primary:fe,sameColorAsText:!0,secondary:!fe,children:["Next: ",D.uuid]})]})]})]})},ae=r(12691),de=r.n(ae),he=r(34376),fe=r(26314),me=r(69419),ve=r(53808);var be=function(e){var n=e.actionRemoteName,r=e.branch,t=e.fetchBranch,o=e.loading,i=e.remotes,l=e.setActionRemoteName,u=e.showError,a=(0,he.useRouter)(),Z=(0,d.useRef)(null),w=(0,d.useState)(null),k=w[0],O=w[1],E=(0,d.useState)(null),A=E[0],T=E[1],N=(0,d.useState)(null),B=N[0],D=N[1],R=(0,d.useState)(null),H=R[0],U=R[1],W=(0,d.useState)(!1),Q=W[0],X=W[1],J=(0,d.useState)(null),$=J[0],ee=J[1],ne=(0,d.useState)(""),re=ne[0],oe=ne[1],ie=(0,d.useState)(""),le=ie[0],ce=ie[1],se=(0,d.useState)(null),ue=se[0],ae=se[1],be=(0,d.useMemo)((function(){return!(null===r||void 0===r||!r.name)}),[r]),xe=(0,d.useMemo)((function(){return null===r||void 0===r?void 0:r.access_token_exists}),[r]);(0,d.useEffect)((function(){var e,n;null!==r&&void 0!==r&&null!==(e=r.sync_config)&&void 0!==e&&e.repo_path&&null===ue&&ae(null===r||void 0===r||null===(n=r.sync_config)||void 0===n?void 0:n.repo_path)}),[r,ue]);var ge=(0,d.useMemo)((function(){var e,r;return null===i||void 0===i||null===(e=i.find((function(e){return e.name===n})))||void 0===e||null===(r=e.refs)||void 0===r?void 0:r.map((function(e){var n=e.name.split("/");return{name:n[n.length-1]}}))}),[n,i]),je=(0,h.Db)(y.ZP.syncs.useCreate(),{onSuccess:function(e){return(0,G.wD)(e,{callback:function(){t(),X(!1)},onErrorCallback:function(e,n){return u({errors:n,response:e})}})}}),pe=(0,s.Z)(je,2),Ze=pe[0],Pe=pe[1].isLoading,we=(0,h.Db)(y.ZP.oauths.useUpdate("github"),{onSuccess:function(e){return(0,G.wD)(e,{callback:function(){return window.location.href=window.location.href.split("?")[0]},onErrorCallback:function(e,n){return u({errors:n,response:e})}})}}),ye=(0,s.Z)(we,2),_e=ye[0],Ce=ye[1].isLoading,ke=(0,h.Db)(y.ZP.git_custom_branches.useUpdate(null===r||void 0===r?void 0:r.name),{onSuccess:function(e){return(0,G.wD)(e,{callback:function(e){var n=e.git_custom_branch,r=n.error,o=n.progress;r?(T(r),U(null)):(t(),O(null),T(null),D(null),U(o))},onErrorCallback:function(e,n){return u({errors:n,response:e})}})}}),Se=(0,s.Z)(ke,2),Oe=Se[0],Ie=Se[1].isLoading,Ee=(0,h.Db)(y.ZP.git_custom_branches.useUpdate(null===r||void 0===r?void 0:r.name),{onSuccess:function(e){return(0,G.wD)(e,{callback:function(){t(),oe(""),ce("")},onErrorCallback:function(e,n){return u({errors:n,response:e})}})}}),Ae=(0,s.Z)(Ee,2),Te=Ae[0],Ne=Ae[1].isLoading,Me=(0,h.Db)(y.ZP.git_custom_branches.useUpdate(null===r||void 0===r?void 0:r.name),{onSuccess:function(e){return(0,G.wD)(e,{callback:function(){t(),ee(null)},onErrorCallback:function(e,n){ee(null),u({errors:n,response:e})}})}}),Be=(0,s.Z)(Me,2),De=Be[0],Re=Be[1].isLoading,He=y.ZP.oauths.detail(fe.h.GITHUB,{redirect_uri:encodeURIComponent(window.location.href)}),Le=He.data,Fe=He.mutate,Ge=(0,d.useMemo)((function(){return(null===Le||void 0===Le?void 0:Le.oauth)||{}}),[Le]),Ve=(0,h.Db)(y.ZP.oauths.useCreate(),{onSuccess:function(e){return(0,G.wD)(e,{callback:function(){Fe()},onErrorCallback:function(e,n){u({errors:n,response:e})}})}}),Ue=(0,s.Z)(Ve,2),We=Ue[0],qe=Ue[1].isLoading,ze=(0,me.iV)()||{},Ye=ze.access_token,Ke=ze.provider;(0,d.useEffect)((function(){!Ge||null!==Ge&&void 0!==Ge&&Ge.authenticated||!Ye||We({oauth:{provider:Ke||fe.h.GITHUB,token:Ye}})}),[Ye,We,Ge,Ke]);var Qe=(0,d.useMemo)((function(){return null===i||void 0===i?void 0:i.map((function(e){var r=e.name,t=e.refs,o=e.urls;return(0,V.jsxs)(g.Z,{mt:L.Mq,children:[(0,V.jsx)(g.Z,{mb:1,children:(0,V.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,V.jsxs)(te.Z,{alignItems:"center",children:[(0,V.jsx)(p.ZP,{bold:!0,children:r}),(0,V.jsx)(g.Z,{mx:1,children:(0,V.jsx)(_._Q,{muted:!0})}),null===o||void 0===o?void 0:o.map((function(e){return(0,V.jsx)(g.Z,{mr:1,children:(0,V.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:e})},e)}))]}),(0,V.jsx)(g.Z,{mr:1}),(0,V.jsx)(f.ZP,{compact:!0,disabled:Re&&$!==r,iconOnly:!0,loading:Re&&$===r,noBackground:!0,onClick:function(){"undefined"!==typeof location&&window.confirm("Are you sure you want to remove remote ".concat(r,"?"))&&(ee(r),De({git_custom_branch:{action_type:"remove_remote",remote:{name:r}}}).then((function(){n===r&&l(null)})))},small:!0,title:"Remote remote ".concat(r),children:(0,V.jsx)(_.rF,{})})]})}),(0,V.jsx)(q.Z,{children:(0,V.jsxs)(z.Z,{noPaddingContent:!0,smallTitle:!0,title:"Refs (".concat(null===t||void 0===t?void 0:t.length,")"),children:[0===(null===t||void 0===t?void 0:t.length)&&(0,V.jsx)(g.Z,{p:L.cd,children:(0,V.jsx)(p.ZP,{muted:!0,children:"This remote has no refs."})}),(null===t||void 0===t?void 0:t.length)>=1&&(0,V.jsx)(K.Z,{columnFlex:[1,1,1],columns:[{uuid:"Ref"},{uuid:"Author"},{uuid:"Date"},{uuid:"Message"}],rows:t.map((function(e){var n,r=e.commit,t=e.name;return[(0,V.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:t},"ref-name"),(0,V.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:null===r||void 0===r||null===(n=r.author)||void 0===n?void 0:n.name},"author"),(0,V.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:null===r||void 0===r?void 0:r.date},"date"),(0,V.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:null===r||void 0===r?void 0:r.message},"message")]})),uuid:"git-branch-remotes-refs"})]})}),(0,V.jsx)(g.Z,{mt:L.Mq,children:(0,V.jsx)(m.Z,{light:!0})})]},r)}))}),[Re,$,i,De]);return(0,V.jsxs)(V.Fragment,{children:[Le&&(0,V.jsxs)(g.Z,{mb:L.HN,children:[(null===Ge||void 0===Ge?void 0:Ge.authenticated)&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(f.ZP,{beforeIcon:(0,V.jsx)(_.fy,{size:2*L.iI}),disabled:!0,children:"Successfully authenticated with GitHub"}),(0,V.jsx)(g.Z,{my:1,children:(0,V.jsx)(p.ZP,{muted:!0,children:"You can pull, push, and create pull requests on GitHub."})}),(0,V.jsx)(f.ZP,{loading:Ce,onClick:function(){return _e({oauth:{action_type:"reset"}})},warning:!0,children:"Reset GitHub authentication"})]}),!(null!==Ge&&void 0!==Ge&&Ge.authenticated)&&(null===Ge||void 0===Ge?void 0:Ge.url)&&(0,V.jsxs)(V.Fragment,{children:[xe&&(0,V.jsxs)(g.Z,{mb:2,children:[(0,V.jsx)(f.ZP,{disabled:!0,children:"Using access token from Git Settings"}),(0,V.jsx)(g.Z,{mt:1,children:(0,V.jsx)(p.ZP,{muted:!0,children:"Some features may not work unless you authenticate with GitHub."})})]}),(0,V.jsx)(f.ZP,{beforeIcon:(0,V.jsx)(_.fy,{size:2*L.iI}),loading:qe,onClick:function(){var e=null===Ge||void 0===Ge?void 0:Ge.url,n=(0,me.iV)(e).state;(0,ve.t8)(n,(null===Ge||void 0===Ge?void 0:Ge.redirect_query_params)||{}),a.push(e)},primary:!0,children:"Authenticate with GitHub"}),(0,V.jsx)(g.Z,{mt:1,children:(0,V.jsx)(p.ZP,{muted:!0,children:"Authenticating with GitHub will allow you to pull, push, and create pull requests on GitHub."})})]})]}),(0,V.jsxs)(g.Z,{mb:L.HN,children:[(0,V.jsx)(b.Z,{children:"Setup"}),(0,V.jsxs)(g.Z,{mt:L.Mq,children:[(0,V.jsxs)(g.Z,{mb:1,children:[(0,V.jsx)(p.ZP,{bold:!0,large:!0,children:be?"Git init directory":"Initialize Git directory"}),!be&&(0,V.jsxs)(p.ZP,{muted:!0,children:["Enter the directory you want to initialize git in. For example, ",(0,V.jsx)(p.ZP,{bold:!0,inline:!0,monospace:!0,muted:!0,children:"/home/src/default_repo"}),"."]}),be&&(0,V.jsxs)(p.ZP,{muted:!0,children:["If the directory below is blank, then the current working directory will be used to initialize git.",(0,V.jsx)("br",{}),"If git hasn\u2019t been initialized in the directory below, Mage will automatically run git init for you."]})]}),(0,V.jsxs)(v.ZP,{alignItems:"center",children:[(0,V.jsx)(P.Z,{disabled:be&&!Q,label:"Git directory",monospace:!0,onChange:function(e){return ae(e.target.value)},ref:Z,value:ue||""}),(0,V.jsx)(g.Z,{mr:1}),(!be||Q)&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(f.ZP,{compact:!0,disabled:!be&&!ue,loading:Pe,onClick:function(){Ze({sync:{repo_path:ue}})},primary:!0,small:!0,children:"Save"}),be&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(g.Z,{mr:1}),(0,V.jsx)(Y.Z,{onClick:function(){return X(!1)},preventDefault:!0,sameColorAsText:!0,small:!0,children:"Cancel"})]})]}),be&&!Q&&(0,V.jsx)(Y.Z,{onClick:function(){X(!0),setTimeout((function(){var e;return null===Z||void 0===Z||null===(e=Z.current)||void 0===e?void 0:e.focus()}),1)},preventDefault:!0,sameColorAsText:!0,small:!0,children:"Edit"})]})]})]}),be&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(g.Z,{mb:L.HN,children:[(0,V.jsxs)(b.Z,{children:["Remotes",!o&&i?" (".concat(null===i||void 0===i?void 0:i.length,")"):""]}),o&&(0,V.jsx)(g.Z,{mt:L.Mq,children:(0,V.jsx)(j.Z,{inverted:!0})}),!o&&Qe,(0,V.jsx)(g.Z,{mt:L.Mq,children:(0,V.jsxs)(v.ZP,{alignItems:"flex-start",children:[(0,V.jsx)(P.Z,{label:"New remote name",monospace:!0,onChange:function(e){var n;return oe(null===e||void 0===e||null===(n=e.target)||void 0===n?void 0:n.value)},value:re||""}),(0,V.jsx)(g.Z,{mr:1}),(0,V.jsxs)(v.ZP,{flexDirection:"column",children:[(0,V.jsx)(P.Z,{label:"Remote URL",monospace:!0,onChange:function(e){var n;return ce(null===e||void 0===e||null===(n=e.target)||void 0===n?void 0:n.value)},value:le||""}),(0,V.jsx)(g.Z,{mt:1,children:(0,V.jsxs)(p.ZP,{muted:!0,small:!0,children:["Use the https URL if you",(0,V.jsx)("br",{}),"authenticated with GitHub above."]})})]}),(0,V.jsx)(g.Z,{mr:1}),(0,V.jsx)(f.ZP,{beforeIcon:(0,V.jsx)(_.mm,{size:2*L.iI}),disabled:!re||!le,loading:Ne,onClick:function(){Te({git_custom_branch:{action_type:"add_remote",remote:{name:re,url:le}}})},primary:!0,children:"Create new remote"})]})})]}),(0,V.jsxs)(g.Z,{mb:L.HN,children:[(0,V.jsx)(b.Z,{children:"Actions"}),(0,V.jsxs)(g.Z,{mt:L.Mq,children:[(0,V.jsxs)(g.Z,{mb:L.Mq,children:[(0,V.jsx)(g.Z,{mb:1,children:(0,V.jsx)(p.ZP,{bold:!0,muted:!0,children:"Current branch"})}),(null===r||void 0===r?void 0:r.name)&&(0,V.jsxs)(v.ZP,{alignItems:"center",children:[(0,V.jsx)(p.ZP,{monospace:!0,children:null===r||void 0===r?void 0:r.name}),(0,V.jsx)(g.Z,{mr:L.cd}),(0,V.jsx)(de(),{href:"/version-control?tab=".concat(M.uuid),passHref:!0,children:(0,V.jsx)(Y.Z,{small:!0,children:"Switch branch"})})]})]}),(0,V.jsxs)(v.ZP,{children:[(0,V.jsxs)(x.Z,{onChange:function(e){return D(e.target.value)},placeholder:"Action",value:B||"",children:[(0,V.jsx)("option",{value:S,children:(0,F.vg)(S)}),(0,V.jsx)("option",{value:I,children:(0,F.vg)(I)}),(0,V.jsx)("option",{value:"reset",children:(0,F.vg)("reset --hard")}),(0,V.jsx)("option",{value:C,children:(0,F.vg)(C)})]}),(0,V.jsx)(g.Z,{mr:1}),(0,V.jsx)(x.Z,{beforeIcon:(0,V.jsx)(_.VW,{}),beforeIconSize:1.5*L.iI,monospace:!0,onChange:function(e){return l(e.target.value)},placeholder:"Remote",value:n||"",children:null===i||void 0===i?void 0:i.map((function(e){var n=e.name;return(0,V.jsx)("option",{value:n,children:n},n)}))}),![S,C].includes(B)&&(0,V.jsx)(g.Z,{ml:1,children:(0,V.jsxs)(x.Z,{beforeIcon:(0,V.jsx)(_.I0,{}),beforeIconSize:1.5*L.iI,monospace:!0,onChange:function(e){return O(e.target.value)},value:k||"",children:[(0,V.jsx)("option",{value:"",children:"All branches"}),null===ge||void 0===ge?void 0:ge.map((function(e){var n=e.name;return(0,V.jsx)("option",{value:n,children:n},n)}))]})})]}),(0,V.jsxs)(g.Z,{mt:L.cd,children:[(0,V.jsx)(f.ZP,{beforeIcon:(0,V.jsx)(_.Bf,{size:2*L.iI}),disabled:!B||!n,loading:Ie,onClick:function(){U(null),(B!==C||"undefined"!==typeof location&&window.confirm("Are you sure you want to clone remote ".concat(n,"? This will ")+"overwrite all your local changes and may reset any settings you may have configured for your local Git repo. This action cannot be undone."))&&Oe({git_custom_branch:(0,c.Z)({action_type:B},B,{branch:k,remote:n})})},primary:!0,children:B?(0,F.vg)(B):"Execute action"}),(H||A)&&(0,V.jsx)(g.Z,{mt:L.cd,children:(0,V.jsx)(p.ZP,{danger:!!A,default:!!H,monospace:!0,preWrap:!0,children:H||A})})]})]})]}),(0,V.jsxs)(g.Z,{mb:L.HN,children:[(0,V.jsx)(g.Z,{mb:L.HN,children:(0,V.jsx)(m.Z,{light:!0})}),(0,V.jsx)(v.ZP,{children:(0,V.jsxs)(f.ZP,{afterIcon:(0,V.jsx)(_.Kw,{}),linkProps:{href:"/version-control?tab=".concat(M.uuid)},noHoverUnderline:!0,sameColorAsText:!0,secondary:!0,children:["Next: ",M.uuid]})})]})]})]})},xe=r(95363),ge=oe.default.div.withConfig({displayName:"indexstyle__DiffContainerStyle",componentId:"sc-1fo4nus-0"})(["pre{font-family:",";}"],xe.Vp),je={codeFoldGutter:{},content:{},contentText:{},diffAdded:{},diffContainer:{},diffRemoved:{},emptyGutter:{},emptyLine:{},gutter:{},highlightedGutter:{},highlightedLine:{},line:{},lineNumber:{},marker:{},splitView:{},titleBlock:{},variables:{dark:{addedBackground:"#044B53",addedColor:"white",addedGutterBackground:"#034148",addedGutterColor:"#8c8c8c",codeFoldBackground:"#262831",codeFoldContentColor:"#555a7b",codeFoldGutterBackground:"#21232b",diffViewerBackground:"#2e303c",diffViewerColor:"#FFF",diffViewerTitleBackground:"#2f323e",diffViewerTitleBorderColor:"#353846",diffViewerTitleColor:"#555a7b",emptyLineBackground:"#363946",gutterBackground:"#2c2f3a",gutterBackgroundDark:"#262933",gutterColor:"#464c67",highlightBackground:"#2a3967",highlightGutterBackground:"#2d4077",removedBackground:"#632F34",removedColor:"white",removedGutterBackground:"#632b30",removedGutterColor:"#8c8c8c",wordAddedBackground:"#055d67",wordRemovedBackground:"#7d383f"},light:{addedBackground:"#e6ffed",addedColor:"#24292e",addedGutterBackground:"#cdffd8",addedGutterColor:"#212529",codeFoldBackground:"#f1f8ff",codeFoldContentColor:"#212529",codeFoldGutterBackground:"#dbedff",diffViewerBackground:"#fff",diffViewerColor:"212529",diffViewerTitleBackground:"#fafbfc",diffViewerTitleBorderColor:"#eee",diffViewerTitleColor:"#212529",emptyLineBackground:"#fafbfc",gutterBackground:"#f7f7f7",gutterBackgroundDark:"#f3f1f1",gutterColor:"#212529",highlightBackground:"#fffbdd",highlightGutterBackground:"#fff5b1",removedBackground:"#ffeef0",removedColor:"#24292e",removedGutterBackground:"#ffdce0",removedGutterColor:"#212529",wordAddedBackground:"#acf2bd",wordRemovedBackground:"#fdb8c0"}},wordAdded:{},wordDiff:{},wordRemoved:{}},pe=r(53005),Ze=r(15610),Pe=r(86735),we=r(23780);function ye(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function _e(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ye(Object(r),!0).forEach((function(n){(0,c.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ye(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var Ce=function(){var e=(0,d.useRef)(null),n=(0,d.useRef)(null),r=(0,we.VI)(null,{},[],{uuid:"VersionControlPage"}),t=(0,s.Z)(r,1)[0],o=(0,d.useState)(null),i=o[0],l=o[1],h=(0,d.useState)(null),f=h[0],v=h[1],b=(0,d.useState)(H[0]),Z=b[0],P=b[1],_=(0,me.iV)();(0,d.useEffect)((function(){null!==_&&void 0!==_&&_.tab&&P(H.find((function(e){return e.uuid===(null===_||void 0===_?void 0:_.tab)})))}),[_]);var C=y.ZP.git_custom_branches.list({include_remote_branches:1}),k=C.data,S=C.mutate,O=(0,d.useMemo)((function(){return null===k||void 0===k?void 0:k.git_custom_branches}),[k]),I=y.ZP.git_custom_branches.detail("current",{_format:"with_files"}),E=I.data,A=I.mutate,F=(0,d.useMemo)((function(){return(null===E||void 0===E?void 0:E.git_custom_branch)||{}}),[E]),G=(0,d.useMemo)((function(){return(null===F||void 0===F?void 0:F.files)||[]}),[F]),q=y.ZP.git_custom_branches.detail("with_remotes",{_format:"with_remotes"}),z=q.data,Y=q.mutate,K=(0,d.useMemo)((function(){return null===z||void 0===z?void 0:z.git_custom_branch}),[z]),Q=(0,d.useMemo)((function(){return(null===K||void 0===K?void 0:K.remotes)||[]}),[K]),X=(0,d.useState)(null),J=X[0],re=X[1],te=(0,d.useCallback)((function(e){(0,ve.t8)(T,e),re(e)}),[]);(0,d.useEffect)((function(){var e=(0,ve.U2)(T,null);if(z&&e){var n=null===Q||void 0===Q?void 0:Q.find((function(n){return n.name===e}));te(n?null===n||void 0===n?void 0:n.name:null)}}),[z,Q,te]);var oe=(0,d.useState)((0,ve.U2)(N,"")),ie=oe[0],ce=oe[1],se=(0,d.useCallback)((function(e){(0,ve.t8)(N,e),ce(e)}),[]),ae=(0,d.useMemo)((function(){return(0,Pe.Tw)(Q.reduce((function(e,n){var r;return e.concat((null===n||void 0===n||null===(r=n.repository_names)||void 0===r?void 0:r.map((function(e){var r;return{name:e,url:null===n||void 0===n||null===(r=n.urls)||void 0===r?void 0:r[0]}})))||[])}),[]),(function(e){return e.name}))}),[Q]);(0,d.useEffect)((function(){var e=(0,ve.U2)(N,null);if(z&&e){var n=null===ae||void 0===ae?void 0:ae.find((function(n){return n.name===e}));se(n?null===n||void 0===n?void 0:n.name:null)}}),[z,ae,se]);var de=y.ZP.git_files.detail(f?encodeURIComponent(f):null,{base_branch:i}),he=de.data,fe=de.mutate,xe=(0,d.useMemo)((function(){return null===he||void 0===he?void 0:he.git_file}),[he]);(0,d.useEffect)((function(){i&&fe()}),[i,fe]),(0,d.useEffect)((function(){null!==he&&void 0!==he&&he.error&&t({errors:null===he||void 0===he?void 0:he.error,response:he})}),[he,t]);var ye=(0,d.useMemo)((function(){var e,n,r;return{modifiedFiles:null===F||void 0===F||null===(e=F.modified_files)||void 0===e?void 0:e.reduce((function(e,n){return _e(_e({},e),{},(0,c.Z)({},n,!0))}),{}),stagedFiles:null===F||void 0===F||null===(n=F.staged_files)||void 0===n?void 0:n.reduce((function(e,n){return _e(_e({},e),{},(0,c.Z)({},n,!0))}),{}),untrackedFiles:null===F||void 0===F||null===(r=F.untracked_files)||void 0===r?void 0:r.reduce((function(e,n){return _e(_e({},e),{},(0,c.Z)({},n,!0))}),{})}}),[F]),Ce=ye.modifiedFiles,ke=void 0===Ce?{}:Ce,Se=ye.stagedFiles,Oe=void 0===Se?{}:Se,Ie=ye.untrackedFiles,Ee=void 0===Ie?{}:Ie;(0,d.useEffect)((function(){f&&(0,le.Qr)(ke)&&(0,le.Qr)(Oe)&&(0,le.Qr)(Ee)&&v(null)}),[ke,f,Oe,Ee]);var Ae=(0,d.useMemo)((function(){return(null===G||void 0===G?void 0:G.length)>=1?(0,V.jsx)(ne.Z,{allowEmptyFolders:!0,disableContextMenu:!0,fetchFileTree:A,files:G,isFileDisabled:function(){return!1},onClickFile:function(e){v((function(r){if(!r||r!==e){var t;if(!i)null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus();return e}return null}))},ref:e,renderAfterContent:function(e){var n,r,t=e.children,o=(null===t||void 0===t?void 0:t.length)>=1,i=(0,pe.a9)(e);o&&(i="".concat(i,"/"));var l={};return null!==ke&&void 0!==ke&&ke[i]?(n="M",r="Modified",l.warning=!0):null!==Ee&&void 0!==Ee&&Ee[i]?(n="U",r="Untracked",l.danger=!0):null!==Oe&&void 0!==Oe&&Oe[i]&&(n="S",r="Staged",l.success=!0),o&&!n?null:(0,V.jsx)(g.Z,{mx:1,children:(0,V.jsx)(w.Z,{appearBefore:!0,label:r,widthFitContent:!0,children:(0,V.jsx)(p.ZP,_e(_e({},l),{},{monospace:!0,rightAligned:!0,small:!0,children:n}))})})},useRootFolder:!0}):(0,V.jsx)(g.Z,{p:L.cd,children:(0,V.jsx)(p.ZP,{monospace:!0,muted:!0,children:"No files modified"})})}),[i,A,e,G,ke,n,v,Oe,Ee]),Te=(0,d.useMemo)((function(){return!he||!xe||f&&(null===xe||void 0===xe?void 0:xe.filename)!==f}),[he,xe,f]),Ne=(0,d.useMemo)((function(){if(!f)return null;var e=xe||{},n=e.content,r=e.content_from_base;return(0,V.jsxs)(ge,{children:[!i&&(0,V.jsx)(g.Z,{p:L.cd,children:(0,V.jsx)(p.ZP,{muted:!0,children:"Please select a base branch to see the file diffs."})}),(null===xe||void 0===xe?void 0:xe.error)&&(0,V.jsx)(g.Z,{p:L.cd,children:(0,V.jsx)(p.ZP,{danger:!0,monospace:!0,preWrap:!0,children:null===xe||void 0===xe?void 0:xe.error})}),i&&!(null!==xe&&void 0!==xe&&xe.error)&&(0,V.jsxs)(V.Fragment,{children:[Te&&(0,V.jsx)(g.Z,{p:L.cd,children:(0,V.jsx)(j.Z,{inverted:!0})}),!Te&&(0,V.jsx)(a(),{compareMethod:u.DiffMethod.WORDS,newValue:n||"",oldValue:r||"",renderContent:function(e){return(0,V.jsx)(p.ZP,{monospace:!0,children:e})},splitView:!0,styles:je,useDarkTheme:!0})]})]})}),[i,xe,Te,f]),Me=(0,d.useMemo)((function(){return E&&null!==F&&void 0!==F&&F.name?H:H.slice(0,1)}),[F,E]),Be=(0,d.useMemo)((function(){return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)("div",{style:{marginBottom:.5*L.iI,marginTop:.5*L.iI},children:(0,V.jsx)(W.Z,{compact:!0,onClickTab:function(e){var n=e.uuid;(0,Ze.u7)({tab:n})},selectedTabUUID:null===Z||void 0===Z?void 0:Z.uuid,tabs:Me})}),(0,V.jsx)(m.Z,{light:!0})]})}),[Z,Me]),De=(0,d.useMemo)((function(){return(0,V.jsx)(be,{actionRemoteName:J,branch:F,fetchBranch:function(){A(),Y()},loading:!z,remotes:Q,setActionRemoteName:te,showError:t})}),[J,F,z,A,Y,Q,te,t]),Re=(0,d.useMemo)((function(){return(0,V.jsx)(U,{actionRemoteName:J,branch:F,branches:O,fetchBranch:A,fetchBranches:S,remotes:Q,setActionRemoteName:te,showError:t})}),[J,F,O,A,S,Q,te,t]),He=(0,d.useMemo)((function(){return(0,V.jsx)(ue,{branch:F,fetchBranch:A,modifiedFiles:ke,setSelectedFilePath:v,showError:t,stagedFiles:Oe,untrackedFiles:Ee})}),[F,A,ke,v,t,Oe,Ee]),Le=(0,d.useMemo)((function(){return(0,V.jsx)($,{actionRemoteName:J,branch:F,branches:O,fetchBranch:A,loading:!z,modifiedFiles:ke,remotes:Q,repositories:ae,repositoryName:ie,setActionRemoteName:te,setRepositoryName:se,showError:t,stagedFiles:Oe})}),[J,F,O,z,A,ke,Q,ae,ie,te,se,t,Oe]);return(0,V.jsx)(ee.Z,{after:Ne,afterHidden:!f,afterWidth:40*L.iI,before:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(g.Z,{p:1,children:(0,V.jsx)(x.Z,{compact:!0,label:"Base branch",onChange:function(e){return l(e.target.value)},ref:n,small:!0,value:i||"",children:null===O||void 0===O?void 0:O.map((function(e){var n=e.name;return(0,V.jsx)("option",{value:n,children:n},n)}))})}),Ae]}),mainContainerHeader:Be,title:"Version control",uuid:"Version control/index",children:(0,V.jsxs)(g.Z,{p:L.cd,children:[!E&&(0,V.jsx)(j.Z,{inverted:!0}),E&&(0,V.jsxs)(V.Fragment,{children:[R.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&De,M.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&Re,B.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&He,D.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&Le]})]})})};function ke(){return(0,V.jsx)(Ce,{})}ke.getInitialProps=(0,t.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)})));var Se=(0,l.Z)(ke)},75302:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/version-control",function(){return r(58024)}])}},function(e){e.O(0,[2678,1154,844,7011,5397,4267,600,8487,8264,7858,5499,3932,553,9774,2888,179],(function(){return n=75302,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
self.__BUILD_MANIFEST=function(s,e,i,a,c,t,n,p,l,u,g,r,k,f,d,b,o,h,j,m,w,_,v,y,I,B,F,A,D,E,L,M,N,S,T,U,C,x,P,q,z,G,H,J,K,O,Q,R,V){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/pages/index-a22f976b85beef2d.js"],"/_error":["static/chunks/pages/_error-e989623bffcbf724.js"],"/block-layout":[s,F,e,k,d,h,m,_,A,N,i,a,n,b,v,S,C,"static/chunks/pages/block-layout-c465c14d48392b11.js"],"/compute":[s,e,c,r,i,a,t,n,p,l,u,f,y,"static/chunks/pages/compute-b1f8d5a7a9a30f2d.js"],"/files":[s,e,c,k,D,i,a,t,n,p,l,b,E,q,"static/chunks/pages/files-93c094bad0f299fb.js"],"/global-data-products":[s,e,c,i,a,t,n,p,l,I,T,z,"static/chunks/pages/global-data-products-f4cd03036c3e8723.js"],"/global-data-products/[...slug]":[s,e,c,i,a,t,n,p,l,I,T,z,"static/chunks/pages/global-data-products/[...slug]-3f6fc312f67ff72e.js"],"/manage":[s,e,c,k,D,i,a,t,n,p,l,b,E,"static/chunks/pages/manage-5f8c5d0bc6ad1113.js"],"/manage/files":[s,e,c,k,D,i,a,t,n,p,l,b,E,q,"static/chunks/pages/manage/files-891e5bd5935f7473.js"],"/manage/settings":[s,e,c,k,i,a,t,n,b,"static/chunks/pages/manage/settings-d2e4ee4e68d36807.js"],"/manage/users":[s,e,c,i,a,t,n,p,l,"static/chunks/pages/manage/users-a7c970122a10afdc.js"],"/manage/users/new":[s,e,c,i,a,t,n,x,"static/chunks/pages/manage/users/new-4a49126fcfe8ced0.js"],"/manage/users/[user]":[s,e,c,i,a,t,n,p,l,x,"static/chunks/pages/manage/users/[user]-1d9b298fdceabbf1.js"],"/oauth":[s,e,c,i,a,t,"static/chunks/pages/oauth-8bb62c4f6a511c43.js"],"/overview":[s,F,e,c,r,k,o,d,h,m,_,L,A,N,i,a,t,n,p,l,u,f,b,w,v,y,M,S,C,G,"static/chunks/pages/overview-a4647a274cf4dffa.js"],"/pipeline-runs":[s,e,c,i,a,t,n,p,l,I,P,"static/chunks/pages/pipeline-runs-c79819d6826e5416.js"],"/pipelines":[s,e,c,r,k,o,d,h,L,i,a,t,n,p,l,u,f,b,w,v,y,M,P,G,"static/chunks/pages/pipelines-8336c4326f1e7d96.js"],"/pipelines/[pipeline]":["static/chunks/pages/pipelines/[pipeline]-35fe7762cb83a733.js"],"/pipelines/[pipeline]/backfills":[s,e,c,i,a,t,n,p,l,g,"static/chunks/pages/pipelines/[pipeline]/backfills-a9266d353f288e8c.js"],"/pipelines/[pipeline]/backfills/[...slug]":[s,e,c,r,o,B,U,i,a,t,n,p,l,u,g,f,I,"static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-b4c0a36c69c346a4.js"],"/pipelines/[pipeline]/dashboard":[s,F,e,c,k,d,h,m,_,A,N,i,a,t,n,g,b,v,S,C,"static/chunks/pages/pipelines/[pipeline]/dashboard-b5c29c852262312e.js"],"/pipelines/[pipeline]/edit":[s,F,e,c,r,k,o,d,h,m,_,B,L,A,D,N,"static/chunks/6563-5b3b97c9088baf69.js",i,a,t,n,p,l,u,f,w,v,y,M,E,S,H,"static/chunks/pages/pipelines/[pipeline]/edit-9f233917aa72ad82.js"],"/pipelines/[pipeline]/logs":[s,e,c,r,h,U,i,a,t,n,p,l,u,g,"static/chunks/pages/pipelines/[pipeline]/logs-a52d2d3e0c2978f4.js"],"/pipelines/[pipeline]/monitors":[s,e,c,m,_,i,a,t,n,g,"static/chunks/pages/pipelines/[pipeline]/monitors-5e0d047a6c9cb1fc.js"],"/pipelines/[pipeline]/monitors/block-runs":[s,e,c,m,_,i,a,t,n,g,"static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-5af599da035252a7.js"],"/pipelines/[pipeline]/monitors/block-runtime":[s,F,e,c,m,_,"static/chunks/3122-f27de34d0b5426af.js",i,a,t,n,g,"static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-8597f8e13d80ee48.js"],"/pipelines/[pipeline]/runs":[s,e,c,r,o,B,i,a,t,n,p,l,u,g,f,I,J,"static/chunks/pages/pipelines/[pipeline]/runs-ce717786f31e8f04.js"],"/pipelines/[pipeline]/runs/[run]":[s,e,c,r,o,h,m,B,A,i,a,t,n,p,l,u,g,f,J,"static/chunks/pages/pipelines/[pipeline]/runs/[run]-b0a508aa52914dad.js"],"/pipelines/[pipeline]/settings":[s,e,c,i,a,t,n,g,"static/chunks/pages/pipelines/[pipeline]/settings-074c32397d341de9.js"],"/pipelines/[pipeline]/syncs":[s,e,c,i,a,t,n,p,l,g,"static/chunks/pages/pipelines/[pipeline]/syncs-50f5d8706ed0bc73.js"],"/pipelines/[pipeline]/triggers":[s,e,c,r,o,d,B,U,K,i,a,t,n,p,l,u,g,f,w,T,P,O,"static/chunks/pages/pipelines/[pipeline]/triggers-95394769a783c6c7.js"],"/pipelines/[pipeline]/triggers/[...slug]":[s,e,c,r,o,d,B,U,K,i,a,t,n,p,l,u,g,f,w,I,O,"static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-e151c1552fcb67bd.js"],"/settings":["static/chunks/pages/settings-56f83205752b1323.js"],"/settings/account/profile":[s,e,c,i,a,t,n,j,x,"static/chunks/pages/settings/account/profile-01dd679e4a21e0d9.js"],"/settings/workspace/permissions":[s,e,c,i,a,t,n,p,l,j,Q,"static/chunks/pages/settings/workspace/permissions-b1389695f758c32b.js"],"/settings/workspace/permissions/[...slug]":[s,e,c,i,a,t,n,p,l,j,Q,"static/chunks/pages/settings/workspace/permissions/[...slug]-d6a62284c7c99cb3.js"],"/settings/workspace/preferences":[s,e,c,i,a,t,n,j,"static/chunks/pages/settings/workspace/preferences-4d9051c073a9b2ff.js"],"/settings/workspace/roles":[s,e,c,i,a,t,n,p,l,j,R,"static/chunks/pages/settings/workspace/roles-e04e18fc295ca76a.js"],"/settings/workspace/roles/[...slug]":[s,e,c,i,a,t,n,p,l,j,R,"static/chunks/pages/settings/workspace/roles/[...slug]-0bdb66265286ab22.js"],"/settings/workspace/sync-data":[s,e,c,i,a,t,n,j,"static/chunks/pages/settings/workspace/sync-data-5a306deca6717862.js"],"/settings/workspace/users":[s,e,c,i,a,t,n,p,l,j,V,"static/chunks/pages/settings/workspace/users-50fed18bb9b8d142.js"],"/settings/workspace/users/[...slug]":[s,e,c,i,a,t,n,p,l,j,V,"static/chunks/pages/settings/workspace/users/[...slug]-0267358c91122109.js"],"/sign-in":[s,e,c,i,a,t,"static/chunks/pages/sign-in-0dbc5b11019e78a0.js"],"/templates":[s,e,c,r,k,o,d,h,L,i,a,t,n,p,l,u,f,b,w,v,y,M,"static/chunks/pages/templates-3cff90df13a1a755.js"],"/templates/[...slug]":[s,e,c,r,k,o,d,h,L,i,a,t,n,p,l,u,f,b,w,v,y,M,"static/chunks/pages/templates/[...slug]-9370551ffa462144.js"],"/terminal":[s,e,c,i,a,t,n,"static/chunks/pages/terminal-578d862f3e56e6e6.js"],"/test":[s,e,d,i,p,w,H,"static/chunks/pages/test-1c0588d685b909b9.js"],"/triggers":[s,e,c,i,a,t,n,p,l,T,"static/chunks/pages/triggers-ffaab4c013e62ba1.js"],"/version-control":[s,e,c,D,"static/chunks/5397-b5f2e477acc6bd6b.js",i,a,t,n,p,l,u,E,"static/chunks/pages/version-control-114000e84313994f.js"],sortedPages:["/","/_app","/_error","/block-layout","/compute","/files","/global-data-products","/global-data-products/[...slug]","/manage","/manage/files","/manage/settings","/manage/users","/manage/users/new","/manage/users/[user]","/oauth","/overview","/pipeline-runs","/pipelines","/pipelines/[pipeline]","/pipelines/[pipeline]/backfills","/pipelines/[pipeline]/backfills/[...slug]","/pipelines/[pipeline]/dashboard","/pipelines/[pipeline]/edit","/pipelines/[pipeline]/logs","/pipelines/[pipeline]/monitors","/pipelines/[pipeline]/monitors/block-runs","/pipelines/[pipeline]/monitors/block-runtime","/pipelines/[pipeline]/runs","/pipelines/[pipeline]/runs/[run]","/pipelines/[pipeline]/settings","/pipelines/[pipeline]/syncs","/pipelines/[pipeline]/triggers","/pipelines/[pipeline]/triggers/[...slug]","/settings","/settings/account/profile","/settings/workspace/permissions","/settings/workspace/permissions/[...slug]","/settings/workspace/preferences","/settings/workspace/roles","/settings/workspace/roles/[...slug]","/settings/workspace/sync-data","/settings/workspace/users","/settings/workspace/users/[...slug]","/sign-in","/templates","/templates/[...slug]","/terminal","/test","/triggers","/version-control"]}}("static/chunks/2852872c-15b31a7081e6a868.js","static/chunks/1154-2f262f7eb38ebaa1.js","static/chunks/4267-335766a915ee2fa9.js","static/chunks/600-0733eb84f0a0a9e0.js","static/chunks/844-1e171f361e63b36d.js","static/chunks/8487-032ef9b17d20aad9.js","static/chunks/8264-6ef8fdb195694807.js","static/chunks/7858-c83d25349d0e980f.js","static/chunks/5499-bca977f466e259e1.js","static/chunks/3932-0ceca9599d6e6d00.js","static/chunks/5457-8be2e0a3fe0ba64b.js","static/chunks/8224-39a93ee1058b6069.js","static/chunks/6639-74eefed142e14ea6.js","static/chunks/722-2a171fe616310f60.js","static/chunks/341-ef0f7b98b7f69802.js","static/chunks/5810-37c6091b29a1fe53.js","static/chunks/1124-09b283a2f26cc576.js","static/chunks/1751-5adf859690505d7b.js","static/chunks/3684-cbda680fd8927d07.js","static/chunks/5896-14e5a23b1c6a0769.js","static/chunks/1769-4f94e148a0753037.js","static/chunks/2714-1e79e9f2e998b544.js","static/chunks/1550-410bc576795e0148.js","static/chunks/3004-231cad9039ae5dcb.js","static/chunks/3943-9e1105393a3be0de.js","static/chunks/9161-837b653aa849a76f.js","static/chunks/29107295-989a0767a635d9d5.js","static/chunks/2631-b9f9bea3f1cf906d.js","static/chunks/7011-81dd8269c4806d26.js","static/chunks/553-edf533e634e85192.js","static/chunks/1821-953efd0da290d25f.js","static/chunks/9264-1b5c4b071ed544c3.js","static/chunks/4783-1a21d9be47574bba.js","static/chunks/976-18c98af60b76f1a7.js","static/chunks/9624-334e7db5c84cb4ea.js","static/chunks/4495-4f0340aa82e0c623.js","static/chunks/9440-c51bf1e8f271cb25.js","static/chunks/6043-728790621ca9014c.js","static/chunks/5544-f43ece1ec93b6e0c.js","static/chunks/1125-91d3ce33140ef041.js","static/chunks/7519-8c29bbb92e03cc77.js","static/chunks/1952-573c7fc7ad84da6e.js","static/chunks/1749-607014ecf28268bf.js","static/chunks/3419-0873e170ef7d6303.js","static/chunks/9302-913007e2f801ad65.js","static/chunks/6333-95ad799d13326dce.js","static/chunks/8146-92e7ccfed169ee9c.js","static/chunks/7022-18fde36eb46e1d65.js","static/chunks/7361-694e1e4fb9c97d68.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
mage_ai/server/frontend_dist_base_path_template/_next/static/_O1kJQLGtZmoBMyWpQrea/_buildManifest.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
self.__BUILD_MANIFEST=function(s,e,i,a,c,t,n,p,l,u,g,r,k,f,d,b,o,h,j,m,w,_,v,y,I,B,F,A,D,E,L,M,N,S,T,U,C,x,P,q,z,G,H,J,K,O,Q,R,V){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/pages/index-a22f976b85beef2d.js"],"/_error":["static/chunks/pages/_error-e989623bffcbf724.js"],"/block-layout":[s,F,e,k,d,h,m,_,A,N,i,a,n,b,v,S,C,"static/chunks/pages/block-layout-c465c14d48392b11.js"],"/compute":[s,e,c,r,i,a,t,n,p,l,u,f,y,"static/chunks/pages/compute-b1f8d5a7a9a30f2d.js"],"/files":[s,e,c,k,D,i,a,t,n,p,l,b,E,q,"static/chunks/pages/files-93c094bad0f299fb.js"],"/global-data-products":[s,e,c,i,a,t,n,p,l,I,T,z,"static/chunks/pages/global-data-products-f4cd03036c3e8723.js"],"/global-data-products/[...slug]":[s,e,c,i,a,t,n,p,l,I,T,z,"static/chunks/pages/global-data-products/[...slug]-3f6fc312f67ff72e.js"],"/manage":[s,e,c,k,D,i,a,t,n,p,l,b,E,"static/chunks/pages/manage-5f8c5d0bc6ad1113.js"],"/manage/files":[s,e,c,k,D,i,a,t,n,p,l,b,E,q,"static/chunks/pages/manage/files-891e5bd5935f7473.js"],"/manage/settings":[s,e,c,k,i,a,t,n,b,"static/chunks/pages/manage/settings-d2e4ee4e68d36807.js"],"/manage/users":[s,e,c,i,a,t,n,p,l,"static/chunks/pages/manage/users-a7c970122a10afdc.js"],"/manage/users/new":[s,e,c,i,a,t,n,x,"static/chunks/pages/manage/users/new-4a49126fcfe8ced0.js"],"/manage/users/[user]":[s,e,c,i,a,t,n,p,l,x,"static/chunks/pages/manage/users/[user]-1d9b298fdceabbf1.js"],"/oauth":[s,e,c,i,a,t,"static/chunks/pages/oauth-8bb62c4f6a511c43.js"],"/overview":[s,F,e,c,r,k,o,d,h,m,_,L,A,N,i,a,t,n,p,l,u,f,b,w,v,y,M,S,C,G,"static/chunks/pages/overview-a4647a274cf4dffa.js"],"/pipeline-runs":[s,e,c,i,a,t,n,p,l,I,P,"static/chunks/pages/pipeline-runs-c79819d6826e5416.js"],"/pipelines":[s,e,c,r,k,o,d,h,L,i,a,t,n,p,l,u,f,b,w,v,y,M,P,G,"static/chunks/pages/pipelines-8336c4326f1e7d96.js"],"/pipelines/[pipeline]":["static/chunks/pages/pipelines/[pipeline]-35fe7762cb83a733.js"],"/pipelines/[pipeline]/backfills":[s,e,c,i,a,t,n,p,l,g,"static/chunks/pages/pipelines/[pipeline]/backfills-a9266d353f288e8c.js"],"/pipelines/[pipeline]/backfills/[...slug]":[s,e,c,r,o,B,U,i,a,t,n,p,l,u,g,f,I,"static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-b4c0a36c69c346a4.js"],"/pipelines/[pipeline]/dashboard":[s,F,e,c,k,d,h,m,_,A,N,i,a,t,n,g,b,v,S,C,"static/chunks/pages/pipelines/[pipeline]/dashboard-b5c29c852262312e.js"],"/pipelines/[pipeline]/edit":[s,F,e,c,r,k,o,d,h,m,_,B,L,A,D,N,"static/chunks/6563-5b3b97c9088baf69.js",i,a,t,n,p,l,u,f,w,v,y,M,E,S,H,"static/chunks/pages/pipelines/[pipeline]/edit-9f233917aa72ad82.js"],"/pipelines/[pipeline]/logs":[s,e,c,r,h,U,i,a,t,n,p,l,u,g,"static/chunks/pages/pipelines/[pipeline]/logs-a52d2d3e0c2978f4.js"],"/pipelines/[pipeline]/monitors":[s,e,c,m,_,i,a,t,n,g,"static/chunks/pages/pipelines/[pipeline]/monitors-5e0d047a6c9cb1fc.js"],"/pipelines/[pipeline]/monitors/block-runs":[s,e,c,m,_,i,a,t,n,g,"static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-5af599da035252a7.js"],"/pipelines/[pipeline]/monitors/block-runtime":[s,F,e,c,m,_,"static/chunks/3122-f27de34d0b5426af.js",i,a,t,n,g,"static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-8597f8e13d80ee48.js"],"/pipelines/[pipeline]/runs":[s,e,c,r,o,B,i,a,t,n,p,l,u,g,f,I,J,"static/chunks/pages/pipelines/[pipeline]/runs-ce717786f31e8f04.js"],"/pipelines/[pipeline]/runs/[run]":[s,e,c,r,o,h,m,B,A,i,a,t,n,p,l,u,g,f,J,"static/chunks/pages/pipelines/[pipeline]/runs/[run]-b0a508aa52914dad.js"],"/pipelines/[pipeline]/settings":[s,e,c,i,a,t,n,g,"static/chunks/pages/pipelines/[pipeline]/settings-074c32397d341de9.js"],"/pipelines/[pipeline]/syncs":[s,e,c,i,a,t,n,p,l,g,"static/chunks/pages/pipelines/[pipeline]/syncs-50f5d8706ed0bc73.js"],"/pipelines/[pipeline]/triggers":[s,e,c,r,o,d,B,U,K,i,a,t,n,p,l,u,g,f,w,T,P,O,"static/chunks/pages/pipelines/[pipeline]/triggers-95394769a783c6c7.js"],"/pipelines/[pipeline]/triggers/[...slug]":[s,e,c,r,o,d,B,U,K,i,a,t,n,p,l,u,g,f,w,I,O,"static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-e151c1552fcb67bd.js"],"/settings":["static/chunks/pages/settings-56f83205752b1323.js"],"/settings/account/profile":[s,e,c,i,a,t,n,j,x,"static/chunks/pages/settings/account/profile-01dd679e4a21e0d9.js"],"/settings/workspace/permissions":[s,e,c,i,a,t,n,p,l,j,Q,"static/chunks/pages/settings/workspace/permissions-b1389695f758c32b.js"],"/settings/workspace/permissions/[...slug]":[s,e,c,i,a,t,n,p,l,j,Q,"static/chunks/pages/settings/workspace/permissions/[...slug]-d6a62284c7c99cb3.js"],"/settings/workspace/preferences":[s,e,c,i,a,t,n,j,"static/chunks/pages/settings/workspace/preferences-4d9051c073a9b2ff.js"],"/settings/workspace/roles":[s,e,c,i,a,t,n,p,l,j,R,"static/chunks/pages/settings/workspace/roles-e04e18fc295ca76a.js"],"/settings/workspace/roles/[...slug]":[s,e,c,i,a,t,n,p,l,j,R,"static/chunks/pages/settings/workspace/roles/[...slug]-0bdb66265286ab22.js"],"/settings/workspace/sync-data":[s,e,c,i,a,t,n,j,"static/chunks/pages/settings/workspace/sync-data-5a306deca6717862.js"],"/settings/workspace/users":[s,e,c,i,a,t,n,p,l,j,V,"static/chunks/pages/settings/workspace/users-50fed18bb9b8d142.js"],"/settings/workspace/users/[...slug]":[s,e,c,i,a,t,n,p,l,j,V,"static/chunks/pages/settings/workspace/users/[...slug]-0267358c91122109.js"],"/sign-in":[s,e,c,i,a,t,"static/chunks/pages/sign-in-0dbc5b11019e78a0.js"],"/templates":[s,e,c,r,k,o,d,h,L,i,a,t,n,p,l,u,f,b,w,v,y,M,"static/chunks/pages/templates-3cff90df13a1a755.js"],"/templates/[...slug]":[s,e,c,r,k,o,d,h,L,i,a,t,n,p,l,u,f,b,w,v,y,M,"static/chunks/pages/templates/[...slug]-9370551ffa462144.js"],"/terminal":[s,e,c,i,a,t,n,"static/chunks/pages/terminal-578d862f3e56e6e6.js"],"/test":[s,e,d,i,p,w,H,"static/chunks/pages/test-1c0588d685b909b9.js"],"/triggers":[s,e,c,i,a,t,n,p,l,T,"static/chunks/pages/triggers-ffaab4c013e62ba1.js"],"/version-control":[s,e,c,D,"static/chunks/5397-b5f2e477acc6bd6b.js",i,a,t,n,p,l,u,E,"static/chunks/pages/version-control-114000e84313994f.js"],sortedPages:["/","/_app","/_error","/block-layout","/compute","/files","/global-data-products","/global-data-products/[...slug]","/manage","/manage/files","/manage/settings","/manage/users","/manage/users/new","/manage/users/[user]","/oauth","/overview","/pipeline-runs","/pipelines","/pipelines/[pipeline]","/pipelines/[pipeline]/backfills","/pipelines/[pipeline]/backfills/[...slug]","/pipelines/[pipeline]/dashboard","/pipelines/[pipeline]/edit","/pipelines/[pipeline]/logs","/pipelines/[pipeline]/monitors","/pipelines/[pipeline]/monitors/block-runs","/pipelines/[pipeline]/monitors/block-runtime","/pipelines/[pipeline]/runs","/pipelines/[pipeline]/runs/[run]","/pipelines/[pipeline]/settings","/pipelines/[pipeline]/syncs","/pipelines/[pipeline]/triggers","/pipelines/[pipeline]/triggers/[...slug]","/settings","/settings/account/profile","/settings/workspace/permissions","/settings/workspace/permissions/[...slug]","/settings/workspace/preferences","/settings/workspace/roles","/settings/workspace/roles/[...slug]","/settings/workspace/sync-data","/settings/workspace/users","/settings/workspace/users/[...slug]","/sign-in","/templates","/templates/[...slug]","/terminal","/test","/triggers","/version-control"]}}("static/chunks/2852872c-15b31a7081e6a868.js","static/chunks/1154-2f262f7eb38ebaa1.js","static/chunks/4267-335766a915ee2fa9.js","static/chunks/600-0733eb84f0a0a9e0.js","static/chunks/844-1e171f361e63b36d.js","static/chunks/8487-032ef9b17d20aad9.js","static/chunks/8264-6ef8fdb195694807.js","static/chunks/7858-c83d25349d0e980f.js","static/chunks/5499-bca977f466e259e1.js","static/chunks/3932-0ceca9599d6e6d00.js","static/chunks/5457-8be2e0a3fe0ba64b.js","static/chunks/8224-39a93ee1058b6069.js","static/chunks/6639-74eefed142e14ea6.js","static/chunks/722-2a171fe616310f60.js","static/chunks/341-ef0f7b98b7f69802.js","static/chunks/5810-37c6091b29a1fe53.js","static/chunks/1124-09b283a2f26cc576.js","static/chunks/1751-5adf859690505d7b.js","static/chunks/3684-cbda680fd8927d07.js","static/chunks/5896-14e5a23b1c6a0769.js","static/chunks/1769-4f94e148a0753037.js","static/chunks/2714-1e79e9f2e998b544.js","static/chunks/1550-410bc576795e0148.js","static/chunks/3004-231cad9039ae5dcb.js","static/chunks/3943-9e1105393a3be0de.js","static/chunks/9161-837b653aa849a76f.js","static/chunks/29107295-989a0767a635d9d5.js","static/chunks/2631-b9f9bea3f1cf906d.js","static/chunks/7011-81dd8269c4806d26.js","static/chunks/553-edf533e634e85192.js","static/chunks/1821-953efd0da290d25f.js","static/chunks/9264-1b5c4b071ed544c3.js","static/chunks/4783-1a21d9be47574bba.js","static/chunks/976-18c98af60b76f1a7.js","static/chunks/9624-334e7db5c84cb4ea.js","static/chunks/4495-4f0340aa82e0c623.js","static/chunks/9440-c51bf1e8f271cb25.js","static/chunks/6043-728790621ca9014c.js","static/chunks/5544-f43ece1ec93b6e0c.js","static/chunks/1125-91d3ce33140ef041.js","static/chunks/7519-8c29bbb92e03cc77.js","static/chunks/1952-573c7fc7ad84da6e.js","static/chunks/1749-607014ecf28268bf.js","static/chunks/3419-0873e170ef7d6303.js","static/chunks/9302-913007e2f801ad65.js","static/chunks/6333-95ad799d13326dce.js","static/chunks/8146-92e7ccfed169ee9c.js","static/chunks/7022-18fde36eb46e1d65.js","static/chunks/7361-694e1e4fb9c97d68.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1125-91d3ce33140ef041.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1125],{65557:function(e,n,t){var i=t(21831),o=t(75582),r=t(82684),l=t(80329);n.Z=function(e){var n=e.children,t=e.uuid,c=e.uuids,u=void 0===c?[]:c,a=(0,l.j)("apiReloads"),s=(0,o.Z)(a,1)[0],d=(0,i.Z)(u);t&&d.push(t);var f=d.map((function(e){return String(s[e])||"-"})).join("_");return r.cloneElement(n,{key:f})}},29618:function(e,n,t){t.d(n,{Z:function(){return L}});var i=t(82394),o=t(75582),r=t(17717),l=t(82684),c=t(80329),u=t(69864),a=t(40761),s=t(44425),d=t(71180),f=t(38626),p=t(97618),v=t(55485),h=t(28598),b=f.default.div.withConfig({displayName:"ButtonGroup__ButtonGroupStyle",componentId:"sc-15vbmc8-0"})([""]),m=f.default.div.withConfig({displayName:"ButtonGroup__VerticalDivider",componentId:"sc-15vbmc8-1"})(["width:1px;"]),g=function(e){var n=e.children,t=e.divider,i=l.Children.toArray(n).length;return(0,h.jsx)(b,{children:(0,h.jsx)(v.ZP,{children:l.Children.map(n,(function(e,n){return e&&(0,h.jsxs)(p.Z,{children:[n>=1&&t&&(0,h.jsx)(m,{}),l.cloneElement(e,{borderRadiusLeft:i>=2&&0===n,borderRadiusRight:i>=2&&n===i-1,halfPaddingLeft:i>=2&&0!==n,halfPaddingRight:i>=2&&n!==i-1,noBorder:i>=2&&n>0&&n<i-1,noBorderRight:i>=2&&n!==i-1})]},"button-group-child-".concat(n))}))})})},y=t(75810),j=t(89706),x=t(93369),P=t(57653),C=t(38276),k=t(35686),Z=t(39643),O=t(11498),w=t(85385),S=t(68669),_=t(86735),I=t(53005),T=t(81728),E=t(72619),D=t(42041),R=t(44688);function N(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 F(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?N(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):N(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var L=function(e){var n=e.active,t=e.addNewBlock,f=e.disableRefreshWarning,p=e.fetchPipeline,b=e.fetchVariables,m=e.filePath,N=e.hideHeaderButtons,L=e.onContentChange,U=e.onUpdateFileSuccess,A=e.openSidekickView,M=e.pipeline,H=e.saveFile,z=e.selectedFilePath,B=e.sendTerminalMessage,V=e.setDisableShortcuts,G=e.setErrors,X=e.setFilesTouched,W=e.setSelectedBlock,q=(0,c.j)("apiReloads"),J=(0,o.Z)(q,2)[1],K=(0,l.useState)(null),Q=K[0],Y=K[1],$=(0,l.useState)(!1),ee=$[0],ne=($[1],(0,l.useRef)(null)),te=(0,l.useMemo)((function(){return new a.Z}),[]),ie=(0,l.useMemo)((function(){return{api_key:O.l,token:te.decodedToken.token}}),[te]),oe=k.ZP.statuses.list().data,re=(0,l.useMemo)((function(){var e,n;return null===oe||void 0===oe||null===(e=oe.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.repo_path}),[oe]),le=k.ZP.file_contents.detail(m).data;(0,l.useEffect)((function(){null!==le&&void 0!==le&&le.file_content?Y(le.file_content):null!==le&&void 0!==le&&le.error&&(0,E.h$)(le,{onErrorCallback:function(e,n){return G({errors:n,response:e})}})}),[le,G]);var ce=(0,l.useState)(null===Q||void 0===Q?void 0:Q.content),ue=ce[0],ae=ce[1],se=(0,l.useCallback)((function(e){ae(e),L&&(null===L||void 0===L||L(e))}),[L]),de=(0,l.useState)(!1),fe=de[0],pe=de[1];(0,l.useEffect)((function(){n&&V&&(null===V||void 0===V||V(!0))}),[n,V]),(0,l.useEffect)((function(){var e;z&&(null===ne||void 0===ne||null===(e=ne.current)||void 0===e||e.scrollIntoView())}),[z]);var ve=(0,u.Db)(k.ZP.file_contents.useUpdate((null===Q||void 0===Q?void 0:Q.path)&&encodeURIComponent(null===Q||void 0===Q?void 0:Q.path)),{onSuccess:function(e){return(0,E.wD)(e,{callback:function(e){var n=e.file_content;J((function(e){return F(F({},e),{},(0,i.Z)({},"FileVersions/".concat(null===Q||void 0===Q?void 0:Q.path),Number(new Date)))})),U&&(null===U||void 0===U||U(n))},onErrorCallback:function(e,n){return null===G||void 0===G?void 0:G({errors:n,response:e})}})}}),he=(0,o.Z)(ve,1)[0],be=(0,l.useCallback)((function(e,n){if(H)return H(e,n);he({file_content:F(F({},n),{},{content:e})}).then((function(){decodeURIComponent(m).split(r.sep).pop()===j.dT.METADATA_YAML&&b&&(null===b||void 0===b||b())})),X((function(e){return F(F({},e),{},(0,i.Z)({},null===n||void 0===n?void 0:n.path,!1))})),pe(!1)}),[b,m,H,X,he]),me=(0,l.useMemo)((function(){return(0,S.lU)()}),[]),ge=(0,l.useMemo)((function(){var e,n,t,i;return null===(null===Q||void 0===Q||null===(e=Q.path)||void 0===e?void 0:e.match(me))?j.Lu.TXT:null===Q||void 0===Q||null===(n=Q.path)||void 0===n||null===(t=n.match(me))||void 0===t||null===(i=t[0])||void 0===i?void 0:i.split(".")[1]}),[me,Q]),ye=(0,l.useMemo)((function(){if(null!==Q&&void 0!==Q&&Q.path)return(0,h.jsx)(y.Z,{autoHeight:!0,language:j.nB[ge],onChange:function(e){se(e),X((function(e){return F(F({},e),{},(0,i.Z)({},null===Q||void 0===Q?void 0:Q.path,!0))})),pe(!0)},onSave:function(e){be(e,Q)},selected:!0,textareaFocused:!0,value:(0,T.Pb)(null===Q||void 0===Q?void 0:Q.content)?JSON.stringify(JSON.parse(null===Q||void 0===Q?void 0:Q.content),null,2):null===Q||void 0===Q?void 0:Q.content,width:"100%"})}),[Q,ge,be,se,X]),je=null!==M&&void 0!==M&&M.blocks?(0,_.sE)(null===M||void 0===M?void 0:M.blocks,(function(e){var n=e.type;return s.tf.DATA_EXPORTER===n})):null,xe=(0,u.Db)(k.ZP.blocks.pipelines.useUpdate(null===M||void 0===M?void 0:M.uuid,null===je||void 0===je?void 0:je.uuid),{onSuccess:function(e){return(0,E.wD)(e,{callback:function(){null===p||void 0===p||p()}})}}),Pe=(0,o.Z)(xe,1)[0],Ce=t&&M&&(ge===j.Lu.PY||ge===j.Lu.SQL||(ge===j.Lu.YAML||ge===j.Lu.R)&&(0,I.V3)(Q,null===Q||void 0===Q?void 0:Q.path))&&(0,S.ck)(Q.path.split(r.sep))!==s.tf.SCRATCHPAD&&(0,I.lr)(Q)&&(0,h.jsx)(d.ZP,{onClick:function(){var e=(null===M||void 0===M?void 0:M.type)===P.qL.INTEGRATION,n=(0,S.TU)(Q,re,M);t(n,(function(n){e&&je&&Pe({block:F(F({},je),{},{upstream_blocks:[n.uuid]})}),null===W||void 0===W||W(n)}))},primary:!0,children:"Add to current pipeline"}),ke=B&&(0,h.jsx)(C.Z,{m:2,children:(0,h.jsx)(x.ZP,{disabled:!re,inline:!0,loading:ee,onClick:function(){null===A||void 0===A||A(w.cH.TERMINAL),null===B||void 0===B||B(JSON.stringify(F(F({},ie),{},{command:["stdin","pip install -r ".concat(re,"/requirements.txt\r")]})))},title:re?"Pip install packages from your saved requirements.txt file (\u2318+S to save).":"Please use right panel terminal to install packages.",uuid:"FileEditor/InstallPackages",children:"Install packages"})}),Ze="FileEditor/".concat(null===Q||void 0===Q?void 0:Q.path),Oe=(0,R.y)(),we=Oe.registerOnKeyDown,Se=Oe.unregisterOnKeyDown;return(0,l.useEffect)((function(){return function(){Se(Ze)}}),[Se,Ze]),we(Ze,(function(e,t){if(n&&!f)if((0,D.y)([Z.zX,Z.Um],t)||(0,D.y)([Z.PQ,Z.Um],t))e.preventDefault(),be(ue,Q);else if(fe&&(0,D.y)([Z.zX,Z.hS],t)){e.preventDefault();var i="".concat(Q.path," has changes that are unsaved. ")+"Click cancel and save your changes before reloading page.";"undefined"!==typeof location&&window.confirm(i)&&location.reload()}}),[n,ue,f,Q,be,fe]),(0,h.jsxs)("div",{ref:ne,children:[!N&&(0,h.jsx)(C.Z,{p:2,children:(0,h.jsxs)(v.ZP,{justifyContent:"space-between",children:[(0,h.jsxs)(g,{children:[Ce,(0,h.jsx)(d.ZP,{disabled:!ue,onClick:function(e){e.preventDefault(),be(ue,Q)},title:ue?null:"No changes have been made to this file.",children:"Save file content"})]}),A&&(0,h.jsx)(g,{children:(0,h.jsx)(d.ZP,{compact:!0,onClick:function(){A(w.cH.FILE_VERSIONS)},small:!0,title:"View previous changes to this file.",children:"Show versions"})})]})}),ye,m===j.dT.REQS_TXT&&ke]})}},90758:function(e,n,t){t.d(n,{Z:function(){return Z}});var i=t(82394),o=t(26304),r=t(82684),l=t(38626),c=t(39867),u=t(55485),a=t(48670),s=t(38276),d=t(30160),f=t(12468),p=t(44897),v=t(72473),h=t(97133),b=t(70515),m=t(15610),g=t(3314),y=t(28598);var j=function(e){var n=e.filePath,t=e.filesTouched,i=void 0===t?{}:t,o=e.isLast,l=e.onClickTab,j=e.onClickTabClose,x=e.renderTabTitle,P=e.savePipelineContent,C=e.selected,k=e.themeContext,Z=(0,r.useState)(!1),O=Z[0],w=Z[1];return(0,y.jsx)(u.ZP,{flexDirection:"column",fullHeight:!0,onClick:function(e){e.preventDefault(),C||(l?l(n):(null===P||void 0===P||P(),(0,m.u7)({file_path:encodeURIComponent(n)})))},onMouseEnter:function(){return w(!0)},onMouseLeave:function(){return w(!1)},children:(0,y.jsx)(h.Gb,{last:o,selected:C,children:(0,y.jsxs)(u.ZP,{alignItems:"center",fullHeight:!0,children:[(0,y.jsx)(f.Z,{appearAbove:!0,appearBefore:!0,label:n,size:null,widthFitContent:!0,children:(0,y.jsxs)(u.ZP,{alignItems:"center",fullHeight:!0,children:[!i[n]&&(0,y.jsx)(v.iU,{muted:!C,size:1.5*b.iI}),i[n]&&(0,y.jsx)(f.Z,{label:"Unsaved changes",size:null,widthFitContent:!0,children:(0,y.jsx)("div",{style:{padding:1},children:(0,y.jsx)(c.Z,{borderColor:(k||p.Z).borders.danger,size:1.25*b.iI})})}),(0,y.jsx)(s.Z,{mr:1}),(0,y.jsx)(d.ZP,{muted:!C,children:x?x(n):n})]})}),(0,y.jsx)(s.Z,{mr:2}),(0,y.jsx)(f.Z,{label:"Close",size:null,widthFitContent:!0,children:(0,y.jsxs)(a.Z,{autoHeight:!0,block:!0,noHoverUnderline:!0,noOutline:!0,onClick:function(e){(0,g.j)(e),null===j||void 0===j||j(n)},preventDefault:!0,children:[(O||C)&&(0,y.jsx)(v.x8,{muted:!C,size:1.25*b.iI}),!O&&!C&&(0,y.jsx)("div",{style:{width:1.25*b.iI}})]})})]})})})},x=t(86735),P=["filePaths","isSelectedFilePath","onClickTabClose","selectedFilePath"];function C(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function k(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?C(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):C(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Z=function(e){var n=e.filePaths,t=e.isSelectedFilePath,i=e.onClickTabClose,c=e.selectedFilePath,a=(0,o.Z)(e,P),s=(0,r.useContext)(l.ThemeContext),d=(0,r.useMemo)((function(){return n.map((function(e){return decodeURIComponent(e)}))}),[n]),f=(0,r.useMemo)((function(){return null===d||void 0===d?void 0:d.length}),[d]);return(0,y.jsx)(u.ZP,{alignItems:"center",justifyContent:"flex-start",children:null===d||void 0===d?void 0:d.map((function(e,n){var o=t?t(e,c):c===encodeURIComponent(e);return(0,r.createElement)(j,k(k({},a),{},{filePath:e,isLast:n===f-1,key:e,onClickTabClose:function(e){if(i)i(e);else{var n=(0,x.Od)(d,(function(n){return n===e})).map((function(e){return encodeURIComponent(e)}));(0,m.u7)({file_path:n[n.length-1]||null,"file_paths[]":n},{pushHistory:!0})}},selected:o,themeContext:s}))}))})}},97133:function(e,n,t){t.d(n,{Gb:function(){return f},TZ:function(){return p},fm:function(){return s},lO:function(){return a},rK:function(){return d},zn:function(){return u}});var i=t(38626),o=t(44897),r=t(2842),l=t(70515),c=t(47041),u=300,a=i.default.div.withConfig({displayName:"indexstyle__PipelineContainerStyle",componentId:"sc-1sv9513-0"})([".pipeline-detail-enter-active{opacity:1;transition:opacity ","ms linear;}.pipeline-detail-enter-done{opacity:0;transition:opacity ","ms linear;}"],u,u),s=i.default.div.withConfig({displayName:"indexstyle__OverlayStyle",componentId:"sc-1sv9513-1"})(["height:100vh;opacity:1;position:fixed;width:100vw;z-index:9999;",""],(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).codeArea,";\n ")})),d=i.default.div.withConfig({displayName:"indexstyle__PipelineHeaderStyle",componentId:"sc-1sv9513-2"})(["height:","px;position:sticky;top:","px;width:100%;z-index:5;"," "," "," ",""],r.Wi,r.Wi,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||o.Z.borders).medium,";\n ")}),(function(e){return e.relativePosition&&"\n position: relative;\n "}),(function(e){return e.secondary&&"\n height: ".concat(37,"px;\n top: ").concat(r.Wi,"px;\n overflow-x: auto;\n z-index: 3;\n ")}),(0,c.y$)()),f=i.default.div.withConfig({displayName:"indexstyle__FileTabStyle",componentId:"sc-1sv9513-3"})(["border-right:1px solid transparent;height:100%;padding:","px ","px;"," "," ",""],l.iI,l.cd*l.iI,(function(e){return"\n &:hover {\n cursor: default;\n\n p {\n color: ".concat((e.theme.content||o.Z.content).active," !important;\n cursor: default;\n }\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}),(function(e){return!e.selected&&!e.last&&"\n border-color: ".concat((e.theme.borders||o.Z.borders).light," !important;\n ")})),p=i.default.div.withConfig({displayName:"indexstyle__HeaderViewOptionsStyle",componentId:"sc-1sv9513-4"})(["left:50%;position:absolute;transform:translateX(-50%);"])},80329:function(e,n,t){t.d(n,{j:function(){return i}});var i=(0,t(44152).r)({apiReloads:{}}).useGlobalState}}]);
|
mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1749-607014ecf28268bf.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1749],{91749:function(n,e,i){i.d(e,{Z:function(){return W}});var t=i(82394),o=i(21831),r=i(82684),l=i(32013),c=i(98777),d=i(81769),s=i(44425),u=i(71180),a=i(15338),v=i(97618),f=i(55485),p=i(85854),m=i(75582),h=i(44085),g=i(38276),x=i(72473),j=i(38626),b=i(44897),Z=i(42631),y=i(55283),P=i(70515),I=i(47041),k=i(91437),w=(P.iI,j.default.div.withConfig({displayName:"indexstyle__AfterFooterStyle",componentId:"sc-1qjqori-0"})(["",""],(function(n){return"\n background-color: ".concat((n.theme.background||b.Z.background).panel,";\n ")})),j.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1qjqori-1"})([""," border-style:solid;border-width:1px;position:relative;"," "," "," "," "," "," ",""],y.Kf,(function(n){return!n.noBorderRadiusTop&&"\n border-top-left-radius: ".concat(Z.n_,"px;\n border-top-right-radius: ").concat(Z.n_,"px;\n ")}),(function(n){return n.noBorderRadiusTop&&"\n border-top: none !important;\n "}),(function(n){return!n.noBorderRadiusBottom&&"\n border-bottom-left-radius: ".concat(Z.n_,"px;\n border-bottom-right-radius: ").concat(Z.n_,"px;\n ")}),(function(n){return n.noBorderRadiusBottom&&"\n border-bottom: none !important;\n "}),(function(n){return!n.noBackground&&"\n background-color: ".concat((n.theme.background||b.Z.background).panel,";\n ")}),(function(n){return!n.borderColor&&"\n border-color: ".concat((n.theme.borders||b.Z.borders).light,";\n ")}),(function(n){return n.borderColor&&"\n border-color: ".concat(n.borderColor,";\n ")}))),C=(j.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-1qjqori-2"})(["padding:","px;",""],P.cd*P.iI,(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||b.Z.borders).light,";\n ")})),j.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-1qjqori-3"})([""," "," ",""],(0,k.eR)(),(function(n){return!n.selected&&"\n &:hover {\n background-color: ".concat((n.theme.interactive||b.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.background||b.Z.background).codeTextarea,";\n ")})),j.default.div.withConfig({displayName:"indexstyle__StreamGridGroupStyle",componentId:"sc-1qjqori-4"})(["position:absolute;"]),j.default.div.withConfig({displayName:"indexstyle__StreamGridGroupInnerStyle",componentId:"sc-1qjqori-5"})([""," overflow:auto;position:fixed;",""],I.w5,(function(n){return n.borderRight&&"\n border-right: 1px solid ".concat((n.theme.borders||b.Z.borders).light,";\n ")})),j.default.div.withConfig({displayName:"indexstyle__StreamGridStyle",componentId:"sc-1qjqori-6"})(["border-radius:","px;padding:","px;margin:","px;"," "," "," "," ",""],Z.n_,P.cd*P.iI,1*P.iI,(function(n){return!n.warning&&"\n &:hover {\n cursor: pointer;\n }\n "}),(function(n){return!n.selected&&!n.warning&&"\n border: 1px solid ".concat((n.theme.borders||b.Z.borders).light,";\n ")}),(function(n){return n.warning&&!n.selected&&"\n border: 1px solid ".concat((n.theme.accent||b.Z.accent).warningTransparent,";\n ")}),(function(n){return n.warning&&n.selected&&"\n border: 1px solid ".concat((n.theme.accent||b.Z.accent).warning,";\n ")}),(function(n){return n.selected&&!n.warning&&"\n background-color: ".concat((n.theme.background||b.Z.background).panel,";\n border: 1px solid ").concat((n.theme.borders||b.Z.borders).contrast,";\n ")})),j.default.div.withConfig({displayName:"indexstyle__BackgroundStyle",componentId:"sc-1qjqori-7"})(["",""],(function(n){return"\n background-color: ".concat((n.theme.background||b.Z.background).panel,";\n ")})),j.default.div.withConfig({displayName:"indexstyle__ButtonContainerStyle",componentId:"sc-1qjqori-8"})(["bottom:0;position:fixed;z-index:1;"," ",""],(function(n){return"\n background-color: ".concat((n.theme.background||b.Z.background).panel,";\n border-left: 1px solid ").concat((n.theme.borders||b.Z.borders).light,";\n border-right: 1px solid ").concat((n.theme.borders||b.Z.borders).light,";\n border-top: 1px solid ").concat((n.theme.borders||b.Z.borders).light,";\n ")}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")}))),O=i(19452),_=i(30229),E=i(81728),S=i(3314),B=i(86735),T=i(28598);function M(n,e){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.push.apply(i,t)}return i}function N(n){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?M(Object(i),!0).forEach((function(e){(0,t.Z)(n,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):M(Object(i)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))}))}return n}var A=function(n){var e,i,t,o,r=n.index,l=n.permission,c=n.setPermissions,d=n.updatePermission;return(0,T.jsx)(w,{children:(0,T.jsx)(g.Z,{p:P.cd,children:(0,T.jsxs)(f.ZP,{alignItems:"flex-start",flexDirection:"row",children:[(0,T.jsx)(u.ZP,{iconOnly:!0,onClick:function(){return c((function(n){return(0,B.oM)(n,r)}))},children:(0,T.jsx)(x.x8,{})}),(0,T.jsx)(g.Z,{mr:P.cd}),(0,T.jsxs)(f.ZP,{flexDirection:"column",children:[(0,T.jsxs)(f.ZP,{alignItems:"center",flexDirection:"row",children:[(0,T.jsx)(p.Z,{level:5,children:"Triggers"}),(0,T.jsx)(g.Z,{mr:P.cd}),(0,T.jsx)(f.ZP,{alignItems:"center",children:(0,T.jsx)(u.ZP,{beforeIcon:(0,T.jsx)(x.mm,{}),compact:!0,onClick:function(n){(0,S.j)(n),d(N(N({},l),{},{triggers:((null===l||void 0===l?void 0:l.triggers)||[]).concat({schedule_interval:"",schedule_type:"",uuid:""})}))},secondary:!0,small:!0,children:"Add trigger"})})]}),(null===l||void 0===l||null===(e=l.triggers)||void 0===e?void 0:e.length)>=1&&(0,T.jsx)(g.Z,{mt:P.cd,children:null===l||void 0===l||null===(i=l.triggers)||void 0===i?void 0:i.map((function(n,e){var i=n.schedule_interval,t=n.schedule_type,o=n.uuid;return(0,T.jsx)(g.Z,{mt:e>=1?1:0,children:(0,T.jsxs)(f.ZP,{alignItems:"center",children:[(0,T.jsx)(u.ZP,{iconOnly:!0,noBackground:!0,noBorder:!0,onClick:function(n){(0,S.j)(n);var i=(0,B.oM)((null===l||void 0===l?void 0:l.triggers)||[],e);d(N(N({},l),{},{triggers:i}))},children:(0,T.jsx)(x.x8,{})}),(0,T.jsx)(g.Z,{mr:1}),(0,T.jsx)(h.Z,{compact:!0,onChange:function(n){var i,t=n.target.value,o=N({},l),r=N({},null===o||void 0===o||null===(i=o.triggers)||void 0===i?void 0:i[e]);r.schedule_type=t,o.triggers[e]=r,d(o)},placeholder:"Type",small:!0,value:t,children:Object.entries(_.Z4).map((function(n){var e=(0,m.Z)(n,2),i=e[0],t=e[1];return(0,T.jsx)("option",{value:i,children:(0,E.kC)(t())},i)}))}),(_.Xm.TIME===t||!t)&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(g.Z,{mr:1}),(0,T.jsx)(h.Z,{compact:!0,monospace:!0,onChange:function(n){var i,t=n.target.value,o=N({},l),r=N({},null===o||void 0===o||null===(i=o.triggers)||void 0===i?void 0:i[e]);r.schedule_interval=t,o.triggers[e]=r,d(o)},placeholder:"Interval",small:!0,value:i,children:_.Wb.map((function(n){return(0,T.jsx)("option",{value:n,children:n},n)}))})]})]})},"permission-trigger-".concat(r,"-").concat(e,"-").concat(o))}))})]}),(0,T.jsx)(g.Z,{mr:P.Mq}),(0,T.jsxs)(f.ZP,{flexDirection:"column",children:[(0,T.jsxs)(f.ZP,{alignItems:"center",flexDirection:"row",children:[(0,T.jsx)(p.Z,{level:5,children:"Roles"}),(0,T.jsx)(g.Z,{mr:P.cd}),(0,T.jsx)(f.ZP,{alignItems:"center",children:(0,T.jsx)(u.ZP,{beforeIcon:(0,T.jsx)(x.mm,{}),compact:!0,onClick:function(n){(0,S.j)(n),d(N(N({},l),{},{roles:((null===l||void 0===l?void 0:l.roles)||[]).concat({role:"",uuid:""})}))},secondary:!0,small:!0,children:"Add role"})})]}),(null===l||void 0===l||null===(t=l.roles)||void 0===t?void 0:t.length)>=1&&(0,T.jsx)(g.Z,{mt:P.cd,children:null===l||void 0===l||null===(o=l.roles)||void 0===o?void 0:o.map((function(n,e){var i=n.role,t=n.uuid;return(0,T.jsx)(g.Z,{mt:e>=1?1:0,children:(0,T.jsxs)(f.ZP,{alignItems:"center",children:[(0,T.jsx)(u.ZP,{iconOnly:!0,noBackground:!0,noBorder:!0,onClick:function(n){(0,S.j)(n);var i=(0,B.oM)((null===l||void 0===l?void 0:l.roles)||[],e);d(N(N({},l),{},{roles:i}))},children:(0,T.jsx)(x.x8,{})}),(0,T.jsx)(g.Z,{mr:1}),(0,T.jsx)(h.Z,{compact:!0,monospace:!0,onChange:function(n){var i,t=n.target.value,o=N({},l),r=N({},null===o||void 0===o||null===(i=o.roles)||void 0===i?void 0:i[e]);r.role=t,o.roles[e]=r,d(o)},placeholder:"Role",small:!0,value:i,children:O.Z3.map((function(n){return(0,T.jsx)("option",{value:n,children:n},n)}))})]})},"permission-role-".concat(r,"-").concat(e,"-").concat(t))}))})]})]})})})},q=i(30160),R=i(35576),D=i(17488),L=i(3917);function Y(n,e){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.push.apply(i,t)}return i}function H(n){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(i),!0).forEach((function(e){(0,t.Z)(n,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):Y(Object(i)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))}))}return n}var W=function(n){var e,i,m=n.blockInteractionsMapping,h=n.containerWidth,j=n.createInteraction,b=n.interactions,Z=n.interactionsMapping,y=n.isLoadingCreateInteraction,I=n.isLoadingUpdatePipelineInteraction,k=n.permissions,O=n.pipeline,_=n.pipelineInteraction,E=n.refAfterFooter,M=n.savePipelineInteraction,N=n.selectedBlock,Y=n.setBlockInteractionsMapping,W=n.setInteractionsMapping,U=n.setPermissions,V=n.setSelectedBlock,F=n.updatePipelineInteraction,G=(0,r.useRef)(null),K=(0,r.useRef)(null),X=(0,r.useRef)(null),J=(0,r.useState)(null),z=J[0],Q=J[1],$=(0,r.useState)(null),nn=$[0],en=$[1],tn=(0,r.useState)(!1),on=tn[0],rn=tn[1],ln=(0,r.useState)(null),cn=ln[0],dn=ln[1],sn=(0,r.useState)(!1),un=sn[0],an=sn[1],vn=(0,r.useState)(null),fn=(vn[0],vn[1]),pn=(0,r.useState)(null),mn=pn[0],hn=pn[1],gn=(0,r.useState)(null),xn=gn[0],jn=gn[1],bn=(0,r.useMemo)((function(){return"undefined"!==typeof m?m:xn}),[m,xn]),Zn=(0,r.useMemo)((function(){return"undefined"!==typeof Z?Z:mn}),[Z,mn]),yn=(0,r.useCallback)((function(n,e){return null!==e&&void 0!==e&&e.initialBootstrap||rn(!0),"undefined"!==typeof Y?Y(n):jn(n)}),[Y,jn,rn]),Pn=(0,r.useCallback)((function(n,e){return null!==e&&void 0!==e&&e.initialBootstrap||rn(!0),"undefined"!==typeof W?W(n):hn(n)}),[W,hn,rn]),In=(0,r.useState)(null),kn=In[0],wn=In[1],Cn=(0,r.useCallback)((function(n,e,i,r){return yn((function(l){var c=(0,o.Z)((null===l||void 0===l?void 0:l[n])||[]);return null!==r&&void 0!==r&&r.remove?c=(0,B.oM)(c,e):c[e]=H(H({},c[e]),i),H(H({},l),{},(0,t.Z)({},n,c))}))}),[yn]),On=(0,r.useCallback)((function(n,e){en(Number(new Date)),null!==e&&void 0!==e&&e.initialBootstrap||rn(!0),"undefined"!==typeof U?U(n):wn(n)}),[en,U,wn,rn]),_n=(0,r.useMemo)((function(){var n;return null===(n="undefined"!==typeof k?k:kn)||void 0===n?void 0:n.map((function(n,e){var i=n.roles,t=n.triggers;return{roles:null===i||void 0===i?void 0:i.map((function(n,i){return{role:"string"===typeof n?n:null===n||void 0===n?void 0:n.role,uuid:"".concat(e,"-").concat(nn,"-").concat(i)}})),triggers:null===t||void 0===t?void 0:t.map((function(n,i){return H(H({},n),{},{uuid:"".concat(e,"-").concat(nn,"-").concat(i)})})),uuid:"".concat(e,"-").concat(nn)}}))}),[nn,k,kn]),En=(0,r.useCallback)((function(){Q(Number(new Date)),rn(!1)}),[Q,rn]),Sn=(0,r.useCallback)((function(){M?null===M||void 0===M||M().then((function(){return En()})):null===F||void 0===F||F(H(H({},_),{},{blocks:bn,interactions:Zn,permissions:null===_n||void 0===_n?void 0:_n.map((function(n){var e=n.roles,i=n.triggers;return{roles:null===e||void 0===e?void 0:e.map((function(n){return"string"===typeof n?n:null===n||void 0===n?void 0:n.role})),triggers:null===i||void 0===i?void 0:i.map((function(n){return{schedule_interval:n.schedule_interval,schedule_type:n.schedule_type}}))}}))})).then((function(){return En()}))}),[bn,Zn,_n,_,En,M,F]),Bn=(0,r.useMemo)((function(){return(null===O||void 0===O?void 0:O.blocks)||[]}),[O]),Tn=(0,r.useMemo)((function(){return null===Bn||void 0===Bn?void 0:Bn.reduce((function(n,e,i){return H(H({},n),{},(0,t.Z)({},String(i),!0))}),{})}),[Bn]);(0,r.useEffect)((function(){"undefined"===typeof Z&&!Zn&&(null===b||void 0===b?void 0:b.length)>=1&&Pn((0,B.HK)(b||[],(function(n){return n.uuid})),{initialBootstrap:!0})}),[b,Zn,Z,Pn]),(0,r.useEffect)((function(){"undefined"===typeof m&&!bn&&null!==_&&void 0!==_&&_.blocks&&yn(null===_||void 0===_?void 0:_.blocks,{initialBootstrap:!0})}),[bn,m,_,yn]),(0,r.useEffect)((function(){!_n&&null!==_&&void 0!==_&&_.permissions&&On(null===_||void 0===_?void 0:_.permissions,{initialBootstrap:!0})}),[_n,_,On]);var Mn=(0,r.useMemo)((function(){var n=[],e=(null===Bn||void 0===Bn?void 0:Bn.length)||0;return null===Bn||void 0===Bn||Bn.map((function(i,t){var o=(i||{uuid:null}).uuid,r=(null===bn||void 0===bn?void 0:bn[o])||[],l=(null===r||void 0===r?void 0:r.length)>=1,s=(0,T.jsxs)(u.ZP,{beforeIcon:l?(0,T.jsx)(x.I8,{}):(0,T.jsx)(x.mm,{}),compact:!0,onClick:function(n){(0,S.j)(n),V(i)},primary:!l,secondary:l,small:!0,children:[l&&"Edit interactions",!l&&"Add interactions"]});n.push((0,T.jsx)(c.Z,{first:0==t,noBorderRadius:t>=1,noPaddingContent:!0,titleXPadding:P.cd*P.iI,titleYPadding:1.5*P.iI,title:(0,T.jsxs)(f.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,T.jsx)(g.Z,{mr:P.cd,py:1,children:(0,T.jsx)(q.ZP,{large:!0,monospace:!0,children:o})}),l&&(0,T.jsx)(f.ZP,{alignItems:"center",children:s})]}),children:(0,T.jsx)(w,{noBackground:!0,noBorderRadiusBottom:t<e-1,noBorderRadiusTop:!0,children:(0,T.jsxs)(g.Z,{p:P.cd,children:[!l&&s,null===r||void 0===r?void 0:r.map((function(n,e){return(0,T.jsx)(g.Z,{mt:e>=1?P.HN:0,children:(0,T.jsx)(d.Z,{blockInteraction:n,containerWidth:h,containerRef:G,interaction:null===Zn||void 0===Zn?void 0:Zn[null===n||void 0===n?void 0:n.uuid],setInteractionsMapping:Pn,showVariableUUID:!0})},"".concat(null===n||void 0===n?void 0:n.uuid,"-").concat(e))}))]})})},o))})),n}),[Bn,G,h,Zn,yn,Pn,V]),Nn=(0,r.useMemo)((function(){return(null===Bn||void 0===Bn?void 0:Bn.length)>=1&&(0,T.jsx)(l.Z,{noBackground:!0,noBorder:!0,noBoxShadow:!0,visibleMapping:Tn,children:Mn})}),[Bn,Mn,Tn]),An=(0,r.useMemo)((function(){return(null===bn||void 0===bn?void 0:bn[null===N||void 0===N?void 0:N.uuid])||[]}),[bn,N]),qn=(0,r.useMemo)((function(){var n=[],e={};return null===An||void 0===An||An.forEach((function(i){var t=i.uuid,o=null===Zn||void 0===Zn?void 0:Zn[t],r=null===o||void 0===o?void 0:o.variables;Object.keys(r||{}).forEach((function(i){null!==e&&void 0!==e&&e[i]||(n.push(i),e[i]=!0)}))})),n}),[Zn,An]),Rn=(0,r.useMemo)((function(){var n=(null===An||void 0===An?void 0:An.length)>=1;return(0,T.jsxs)(f.ZP,{alignItems:"center",children:[!un&&(0,T.jsx)(T.Fragment,{children:(0,T.jsx)(u.ZP,{beforeIcon:(0,T.jsx)(x.mm,{}),compact:n,onClick:function(n){(0,S.j)(n),an(!0),setTimeout((function(){var n;return null===K||void 0===K||null===(n=K.current)||void 0===n?void 0:n.focus()}),1)},primary:!0,small:n,children:"Create new set of interactions"})}),un&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(D.Z,{compact:!0,monospace:!0,onChange:function(n){(0,S.j)(n),dn(n.target.value)},onClick:function(n){return(0,S.j)(n)},ref:K,small:!0,value:cn||""}),(0,T.jsx)(g.Z,{mr:1}),(0,T.jsx)(u.ZP,{compact:n,loading:y,onClick:function(n){(0,S.j)(n),j({block_uuid:null===N||void 0===N?void 0:N.uuid,inputs:{},layout:[],uuid:"".concat(cn,".").concat(s.t6.YAML),variables:{}}).then((function(n){var e=n.data.interaction,i=null===e||void 0===e?void 0:e.uuid;Cn(null===N||void 0===N?void 0:N.uuid,(null===An||void 0===An?void 0:An.length)||0,{uuid:i}),Pn((function(n){return H(H({},n),{},(0,t.Z)({},i,e))})),setTimeout((function(){var n;null===X||void 0===X||null===(n=X.current)||void 0===n||n.scrollIntoView()}),c.e+100)})),an(!1),fn(cn),dn(null)},primary:!0,small:n,children:"Save interaction"}),(0,T.jsx)(g.Z,{mr:1}),(0,T.jsx)(u.ZP,{compact:n,onClick:function(n){(0,S.j)(n),an(!1),dn(null)},secondary:!0,small:n,children:"Cancel"})]})]})}),[N,An,un,y,cn,Pn,an,fn,dn,Cn]);return(0,T.jsxs)(g.Z,{p:P.cd,style:{position:"relative"},children:[(0,T.jsxs)(g.Z,{pb:P.cd,ref:G,children:[!N&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(g.Z,{mb:P.cd,children:(0,T.jsx)(p.Z,{children:"Blocks with interactions"})}),Nn,(0,T.jsxs)(g.Z,{mb:P.cd,mt:P.HN,children:[(0,T.jsxs)(f.ZP,{alignItems:"center",children:[(0,T.jsx)(p.Z,{children:"Permissions"}),(0,T.jsx)(g.Z,{mr:P.cd}),(0,T.jsx)(f.ZP,{alignItems:"center",children:(0,T.jsx)(u.ZP,{beforeIcon:(0,T.jsx)(x.mm,{}),compact:!0,onClick:function(){return On((function(n){return n.concat([{roles:[],triggers:[]}])}))},secondary:!0,small:!0,children:"Add permission"})})]}),(0,T.jsx)(g.Z,{mt:1,children:(0,T.jsx)(q.ZP,{default:!0,children:"Add permissions to allow specific user roles the ability to trigger this pipeline using the interactions for this pipeline."})})]}),null===_n||void 0===_n?void 0:_n.map((function(n,e){return(0,T.jsx)(g.Z,{mt:e>=1?P.cd:0,children:(0,T.jsx)(A,{index:e,permission:n,setPermissions:On,updatePermission:function(n){var i=(0,o.Z)(_n);i[e]=n,On(i)}})},"permission-".concat(e))}))]}),N&&(0,T.jsxs)(g.Z,{mb:P.Mq,children:[(0,T.jsxs)(g.Z,{mb:P.Mq,children:[(0,T.jsxs)(f.ZP,{alignItems:"center",children:[(0,T.jsx)(g.Z,{mr:P.cd,py:1,children:(0,T.jsx)(p.Z,{children:"Block interactions"})}),(null===An||void 0===An?void 0:An.length)>=1&&Rn]}),(0,T.jsx)(q.ZP,{default:!0,children:"A block can have multiple sets of interactions associated with it."})]}),!(null!==An&&void 0!==An&&An.length)&&Rn,(null===qn||void 0===qn?void 0:qn.length)>=1&&(0,T.jsxs)(f.ZP,{alignItems:"center",children:[(0,T.jsx)(q.ZP,{bold:!0,large:!0,children:"Variables"}),(0,T.jsx)(g.Z,{mr:P.cd}),(0,T.jsx)(v.Z,{alignItems:"center",flex:1,children:null===qn||void 0===qn?void 0:qn.map((function(n,e){return(0,T.jsx)(g.Z,{mr:1,children:(0,T.jsxs)(q.ZP,{default:!0,monospace:!0,children:[n,(null===qn||void 0===qn?void 0:qn.length)>=2&&e<(null===qn||void 0===qn?void 0:qn.length)-1&&(0,T.jsx)(q.ZP,{inline:!0,monospace:!0,muted:!0,children:","})]})},n)}))})]})]}),null===An||void 0===An?void 0:An.map((function(n,e){var i,t=n||{description:null,name:null},o=t.description,r=t.name,l=null===N||void 0===N?void 0:N.uuid,c=null===n||void 0===n?void 0:n.uuid,s=null===Zn||void 0===Zn?void 0:Zn[c];return(0,T.jsxs)("div",{children:[e>=1&&(0,T.jsx)(g.Z,{my:P.HN,children:(0,T.jsx)(a.Z,{light:!0})}),(0,T.jsx)(d.Z,{blockInteraction:n,containerRef:G,containerWidth:h,interaction:s,isEditing:!0,removeBlockInteraction:function(){return Cn(l,e,n,{remove:!0})},setInteractionsMapping:Pn,children:(0,T.jsxs)(g.Z,{p:P.cd,children:[(0,T.jsxs)(f.ZP,{alignItems:"flex-start",children:[(0,T.jsxs)(g.Z,{mb:1,style:{width:20*P.iI},children:[(0,T.jsx)(q.ZP,{bold:!0,large:!0,children:"Label"}),(0,T.jsxs)(q.ZP,{muted:!0,children:["Add a label for this",(0,T.jsx)("br",{}),"set of interactions."]})]}),(0,T.jsx)(g.Z,{mr:P.cd}),(0,T.jsx)(v.Z,{flex:1,children:(0,T.jsx)(D.Z,{fullWidth:!0,onChange:function(n){return Cn(l,e,{name:n.target.value})},value:r||""})})]}),(0,T.jsx)(g.Z,{mb:P.cd}),(0,T.jsxs)(f.ZP,{alignItems:"flex-start",children:[(0,T.jsxs)(g.Z,{mb:1,style:{width:20*P.iI},children:[(0,T.jsx)(q.ZP,{bold:!0,large:!0,children:"Description"}),(0,T.jsxs)(q.ZP,{muted:!0,children:["Describe how these",(0,T.jsx)("br",{}),"interactions are used."]})]}),(0,T.jsx)(g.Z,{mr:P.cd}),(0,T.jsx)(v.Z,{flex:1,children:(0,T.jsx)(R.Z,{fullWidth:!0,onChange:function(n){return Cn(l,e,{description:n.target.value})},rows:Math.max(3,Math.min(12,null===o||void 0===o||null===(i=o.split("\n"))||void 0===i?void 0:i.length)),value:o||""})})]})]})}),(0,T.jsx)("div",{ref:e===(null===An||void 0===An?void 0:An.length)-1?X:null})]},"".concat(null===n||void 0===n?void 0:n.uuid,"-").concat(e))}))]}),(0,T.jsx)(C,{ref:E,width:(null===G||void 0===G||null===(e=G.current)||void 0===e||null===(i=e.getBoundingClientRect())||void 0===i?void 0:i.width)||null,children:(0,T.jsx)(g.Z,{p:P.cd,children:(0,T.jsxs)(f.ZP,{alignItems:"center",children:[(0,T.jsx)(u.ZP,{beforeIcon:(0,T.jsx)(x.vc,{}),loading:I,onClick:function(){return Sn()},primary:on,secondary:!on,children:"Save changes for all interactions"}),(0,T.jsx)(g.Z,{mr:P.cd}),on&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(x.uy,{warning:!0}),(0,T.jsx)(g.Z,{mr:1}),(0,T.jsx)(q.ZP,{warning:!0,children:"You have unsaved interaction changes"})]}),!on&&z&&(0,T.jsxs)(q.ZP,{muted:!0,children:["Interactions last saved at ",(0,L.JX)(Number(z)/1e3)]})]})})})]})}},30229:function(n,e,i){i.d(e,{TR:function(){return f},U5:function(){return d},Wb:function(){return v},Xm:function(){return r},Z4:function(){return s},fq:function(){return c},gm:function(){return u},kJ:function(){return a}});var t,o,r,l=i(82394);!function(n){n.API="api",n.EVENT="event",n.TIME="time"}(r||(r={}));var c,d,s=(t={},(0,l.Z)(t,r.API,(function(){return"API"})),(0,l.Z)(t,r.EVENT,(function(){return"event"})),(0,l.Z)(t,r.TIME,(function(){return"schedule"})),t);!function(n){n.ACTIVE="active",n.INACTIVE="inactive"}(c||(c={})),function(n){n.ONCE="@once",n.HOURLY="@hourly",n.DAILY="@daily",n.WEEKLY="@weekly",n.MONTHLY="@monthly",n.ALWAYS_ON="@always_on"}(d||(d={}));var u,a,v=[d.ONCE,d.HOURLY,d.DAILY,d.WEEKLY,d.MONTHLY];!function(n){n.INTERVAL="frequency[]",n.STATUS="status[]",n.TAG="tag[]",n.TYPE="type[]"}(u||(u={})),function(n){n.CREATED_AT="created_at",n.NAME="name",n.PIPELINE="pipeline_uuid",n.STATUS="status",n.TYPE="schedule_type"}(a||(a={}));var f=(o={},(0,l.Z)(o,a.CREATED_AT,"Created at"),(0,l.Z)(o,a.NAME,"Name"),(0,l.Z)(o,a.PIPELINE,"Pipeline"),(0,l.Z)(o,a.STATUS,"Active"),(0,l.Z)(o,a.TYPE,"Type"),o)}}]);
|
mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-573c7fc7ad84da6e.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1952],{52749:function(e,n,t){var i=t(82394),r=t(82684),o=t(71180),l=t(55485),d=t(93369),u=t(7267),c=t(38276),s=t(30160),a=t(35576),p=t(17488),f=t(72473),h=t(4015),v=t(70515),m=t(81728),j=t(28598);function x(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?x(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n,t,i,x,g=e.createPipeline,Z=e.isLoading,y=e.onClose,P=(0,r.useRef)(null),w=(0,r.useState)(!1),O=w[0],k=w[1],I=(0,r.useState)({name:(0,m.Y6)()}),C=I[0],_=I[1];return(0,r.useEffect)((function(){var e;null===P||void 0===P||null===(e=P.current)||void 0===e||e.focus()}),[]),(0,j.jsxs)(h.Nk,{children:[(0,j.jsx)(h.I5,{children:(0,j.jsx)(l.ZP,{alignItems:"center",justifyContent:"center",children:(0,j.jsx)(f.xq,{size:5*v.iI,warning:!0})})}),(0,j.jsx)(h.gI,{children:(0,j.jsxs)(c.Z,{py:1,children:[(0,j.jsx)(c.Z,{mb:1,children:(0,j.jsx)(s.ZP,{default:!0,children:"New pipeline"})}),(0,j.jsx)(s.ZP,{textOverflow:!0,children:"Using AI"})]})}),(0,j.jsxs)(h.gI,{children:[(0,j.jsx)(s.ZP,{default:!0,children:"Name"}),(0,j.jsx)(p.Z,{alignRight:!0,noBackground:!0,noBorder:!0,onChange:function(e){return _((function(n){return b(b({},n),{},{name:e.target.value})}))},paddingVertical:v.iI,placeholder:"Enter pipeline name...",value:(null===C||void 0===C?void 0:C.name)||""})]}),(0,j.jsx)(h.gI,{children:(0,j.jsxs)(l.ZP,{flexDirection:"column",fullWidth:!0,children:[(0,j.jsx)(c.Z,{mb:2,pt:1,children:(0,j.jsx)(s.ZP,{default:!0,children:"Describe what the pipeline should do"})}),(0,j.jsxs)(c.Z,{pb:1,pr:v.cd,children:[(0,j.jsx)(a.Z,{fullWidth:!0,onChange:function(e){return _((function(n){return b(b({},n),{},{llm:{request:{pipeline_description:e.target.value},use_case:u.z.GENERATE_PIPELINE_WITH_DESCRIPTION}})}))},placeholder:"Type the pipeline purpose...",ref:P,rows:8,value:(null===C||void 0===C||null===(n=C.llm)||void 0===n||null===(t=n.request)||void 0===t?void 0:t.pipeline_description)||""}),(Z||O)&&(0,j.jsx)(c.Z,{mt:1,children:(0,j.jsx)(s.ZP,{warning:!0,children:"Pipeline is being generated using AI based on your description above..."})})]})]})}),(0,j.jsx)(h.$b,{children:(0,j.jsxs)(l.ZP,{fullWidth:!0,children:[(0,j.jsx)(d.ZP,{bold:!0,centerText:!0,disabled:!(null!==C&&void 0!==C&&C.name)||!(null!==C&&void 0!==C&&null!==(i=C.llm)&&void 0!==i&&null!==(x=i.request)&&void 0!==x&&x.pipeline_description),loading:Z||O,onClick:function(){k(!0),g({pipeline:C}).then((function(){return k(!1)}))},primary:!0,tabIndex:0,uuid:"AIControlPanel/CreatePipeline",children:"Create pipeline"}),y&&(0,j.jsx)(c.Z,{ml:1,children:(0,j.jsx)(o.ZP,{onClick:y,tabIndex:0,children:"Cancel"})})]})})]})}},60523:function(e,n,t){var i=t(21831),r=t(82394),o=t(82684),l=t(38626),d=t(34376),u=t(54750),c=t(71180),s=t(90299),a=t(44898),p=t(55485),f=t(88328),h=t(38276),v=t(4190),m=t(48381),j=t(5755),x=t(30160),b=t(35686),g=t(72473),Z=t(84649),y=t(32929),P=t(15610),w=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 I(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,C=e.objectType,_=e.onClickCustomTemplate,S=e.pipelineUUID,A=e.showAddingNewTemplates,M=e.showBreadcrumbs,N=e.tabs,E=(0,d.useRouter)(),T=(0,o.useContext)(l.ThemeContext),D=(0,w.i)(),B=D.height,U=D.width,R=(0,o.useMemo)((function(){return N||y.dP}),[N]),H=(0,o.useState)(A||!1),q=H[0],L=H[1],z=(0,o.useState)(r?y.qy.find((function(e){return e.uuid===r})):y.qy[0]),F=z[0],W=z[1],G=(0,o.useState)(k?R.find((function(e){return e.uuid===(null===k||void 0===k?void 0:k.uuid)})):R[0]),Y=G[0],V=G[1],X=(0,o.useState)(null),$=X[0],Q=X[1],J=b.ZP.custom_templates.list({object_type:a.Z},{},{pauseFetch:y.n9.uuid!==(null===Y||void 0===Y?void 0:Y.uuid)}),K=J.data,ee=J.mutate,ne=(0,o.useMemo)((function(){var e=(null===K||void 0===K?void 0:K.custom_templates)||[];return null!==F&&void 0!==F&&F.filterTemplates?null===F||void 0===F?void 0:F.filterTemplates(e):e}),[K,F]),te=b.ZP.custom_templates.list({object_type:a.R},{},{pauseFetch:y.A2.uuid!==(null===Y||void 0===Y?void 0:Y.uuid)}),ie=te.data,re=te.mutate,oe=(0,o.useMemo)((function(){var e=(null===ie||void 0===ie?void 0:ie.custom_templates)||[];return null!==F&&void 0!==F&&F.filterTemplates?null===F||void 0===F?void 0:F.filterTemplates(e):e}),[ie,F]),le=(0,o.useMemo)((function(){return y.qy.map((function(e){var n=e.Icon,t=e.label,i=e.selectedBackgroundColor,r=e.selectedIconProps,o=e.uuid,l=(null===F||void 0===F?void 0:F.uuid)===o,d=I({size:Z.ZG},l&&r?r:{});return(0,O.jsx)(Z.wj,{onClick:function(){return W(e)},selected:l,children:(0,O.jsxs)(p.ZP,{alignItems:"center",children:[(0,O.jsx)(Z.ze,{backgroundColor:l&&i?i(T):null,children:n?(0,O.jsx)(n,I({},d)):(0,O.jsx)(g.pd,I({},d))}),(0,O.jsx)(x.ZP,{bold:!0,large:!0,children:t?t():o})]})},o)}))}),[F,T]),de=(0,o.useMemo)((function(){return y.hS.map((function(e){var n=e.Icon,t=e.label,i=e.selectedBackgroundColor,r=e.selectedIconProps,o=e.uuid,l=(null===F||void 0===F?void 0:F.uuid)===o,d=I({size:Z.ZG},l&&r?r:{});return(0,O.jsx)(Z.wj,{onClick:function(){return W(e)},selected:l,children:(0,O.jsxs)(p.ZP,{alignItems:"center",children:[(0,O.jsx)(Z.ze,{backgroundColor:l&&i?i(T):null,children:n?(0,O.jsx)(n,I({},d)):(0,O.jsx)(g.pd,I({},d))}),(0,O.jsx)(x.ZP,{bold:!0,large:!0,children:t?t():o})]})},o)}))}),[F,T]),ue=(0,o.useMemo)((function(){return null===ne||void 0===ne?void 0:ne.map((function(e){var n=e.description,t=e.name,r=e.tags,o=e.template_uuid,l=e.user,d=[];return null!==r&&void 0!==r&&r.length?d.push.apply(d,(0,i.Z)(r)):null!==l&&void 0!==l&&l.username&&d.push(null===l||void 0===l?void 0:l.username),(0,O.jsxs)(Z.UE,{onClick:function(){_?_(e):E.push("/templates/[...slug]","/templates/".concat(encodeURIComponent(o)))},children:[(0,O.jsx)(Z.Tj,{children:(0,O.jsx)(x.ZP,{bold:!0,monospace:!0,textOverflow:!0,children:t||o})}),(0,O.jsx)(Z.SL,{children:(0,O.jsx)(x.ZP,{default:!!n,italic:!n,muted:!n,textOverflowLines:2,children:n||"No description"})}),(0,O.jsx)(Z.EN,{children:(null===d||void 0===d?void 0:d.length)>=1&&(0,O.jsx)(m.Z,{tags:null===d||void 0===d?void 0:d.map((function(e){return{uuid:e}}))})})]},o)}))}),[ne,_,E]),ce=(0,o.useMemo)((function(){return null===oe||void 0===oe?void 0:oe.map((function(e){var n=e.description,t=e.name,r=e.tags,o=e.template_uuid,l=e.user,d=[];return null!==r&&void 0!==r&&r.length?d.push.apply(d,(0,i.Z)(r)):null!==l&&void 0!==l&&l.username&&d.push(null===l||void 0===l?void 0:l.username),(0,O.jsxs)(Z.UE,{onClick:function(){_?_(e):E.push("/templates/[...slug]","/templates/".concat(encodeURIComponent(o),"?object_type=").concat(a.R))},children:[(0,O.jsx)(Z.Tj,{children:(0,O.jsx)(x.ZP,{bold:!0,monospace:!0,textOverflow:!0,children:t||o})}),(0,O.jsx)(Z.SL,{children:(0,O.jsx)(x.ZP,{default:!!n,italic:!n,muted:!n,textOverflowLines:2,children:n||"No description"})}),(0,O.jsx)(Z.EN,{children:(null===d||void 0===d?void 0:d.length)>=1&&(0,O.jsx)(m.Z,{tags:null===d||void 0===d?void 0:d.map((function(e){return{uuid:e}}))})})]},o)}))}),[oe,_,E]),se=(0,o.useMemo)((function(){if(!M)return null;var e=[];return q?e.push.apply(e,[{label:function(){return"Templates"},onClick:function(){L(!1)}},{bold:!0,label:function(){return"New custom template"}}]):e.push({label:function(){return"Templates"}}),(0,O.jsx)(Z.FX,{children:(0,O.jsx)(u.Z,{breadcrumbs:e})})}),[q,M]),ae=(0,o.useMemo)((function(){return M?36:0}),[M]),pe=(0,o.useMemo)((function(){return B-ae}),[B,ae]);if(q)return n=a.R===C&&S?(0,O.jsx)(f.Z,{onMutateSuccess:re,pipelineUUID:S,templateAttributes:F&&(null===F||void 0===F?void 0:F.uuid)!==(null===y.qy||void 0===y.qy?void 0:y.qy[0].uuid)?{pipeline_type:null===F||void 0===F?void 0:F.uuid}:null,templateUUID:null===$||void 0===$?void 0:$.template_uuid}):(0,O.jsx)(j.Z,{contained:t,heightOffset:ae,onCreateCustomTemplate:t?function(e){Q(e)}:null,onMutateSuccess:ee,templateAttributes:F&&(null===F||void 0===F?void 0:F.uuid)!==(null===y.qy||void 0===y.qy?void 0:y.qy[0].uuid)?{block_type:null===F||void 0===F?void 0:F.uuid}:null,templateUUID:null===$||void 0===$?void 0:$.template_uuid}),t?(0,O.jsxs)(O.Fragment,{children:[M&&se,(0,O.jsx)(Z.Rd,{height:pe,width:U,children:n})]}):n;var fe=(0,O.jsxs)(Z.Nk,{children:[(0,O.jsxs)(Z.bC,{height:t?pe:null,children:[(0,O.jsx)(Z.Yf,{children:(0,O.jsx)(s.Z,{noPadding:!0,onClickTab:function(e){t?V(e):(0,P.u7)({object_type:y.A2.uuid===e.uuid?a.R:a.Z})},selectedTabUUID:null===Y||void 0===Y?void 0:Y.uuid,tabs:R})}),(0,O.jsxs)(Z.wl,{contained:t,heightOffset:ae,children:[y.n9.uuid===(null===Y||void 0===Y?void 0:Y.uuid)&&le,y.A2.uuid===(null===Y||void 0===Y?void 0:Y.uuid)&&de]})]}),(0,O.jsxs)(Z.w5,{children:[y.n9.uuid===(null===Y||void 0===Y?void 0:Y.uuid)&&(0,O.jsx)(Z.HS,{children:(0,O.jsx)(c.ZP,{beforeIcon:(0,O.jsx)(g.mm,{size:Z.ZG}),onClick:function(){L(!0)},primary:!0,children:"New block template"})}),y.n9.uuid===(null===Y||void 0===Y?void 0:Y.uuid)&&(0,O.jsxs)(O.Fragment,{children:[!K&&(0,O.jsx)(h.Z,{p:2,children:(0,O.jsx)(v.Z,{inverted:!0})}),K&&!(null!==ue&&void 0!==ue&&ue.length)&&(0,O.jsxs)(h.Z,{p:2,children:[(0,O.jsx)(x.ZP,{children:"There are currently no templates matching your search."}),(0,O.jsx)("br",{}),(0,O.jsx)(x.ZP,{children:"Add a new template by clicking the button above."})]}),(null===ue||void 0===ue?void 0:ue.length)>=1&&(0,O.jsx)(Z.n8,{children:ue})]}),y.A2.uuid===(null===Y||void 0===Y?void 0:Y.uuid)&&(0,O.jsxs)(O.Fragment,{children:[!ie&&(0,O.jsx)(h.Z,{p:2,children:(0,O.jsx)(v.Z,{inverted:!0})}),ie&&!(null!==ce&&void 0!==ce&&ce.length)&&(0,O.jsxs)(h.Z,{p:2,children:[(0,O.jsx)(x.ZP,{children:"There are currently no templates matching your search."}),(0,O.jsx)("br",{}),(0,O.jsx)(x.ZP,{children:'Add a new template by right-clicking a pipeline row from the Pipelines page and selecting "Create template".'})]}),(null===ce||void 0===ce?void 0:ce.length)>=1&&(0,O.jsx)(Z.n8,{children:ce})]})]})]});return t?(0,O.jsxs)(O.Fragment,{children:[M&&se,(0,O.jsx)(Z.Rd,{height:pe,width:U,children:fe})]}):fe}},94629:function(e,n,t){t.d(n,{Z:function(){return k}});var i=t(82394),r=t(21831),o=t(82684),l=t(50724),d=t(82555),u=t(97618),c=t(70613),s=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=o.forwardRef(f),v=t(62547),m=t(82571),j=t(35686),x=t(98464),b=t(46684),g=t(70515),Z=t(53808),y=t(19183);function P(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 w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?P(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function O(e,n){var t,i=e.addProjectBreadcrumbToCustomBreadcrumbs,f=e.after,P=e.afterHeader,O=e.afterHidden,k=e.afterWidth,I=e.afterWidthOverride,C=e.appendBreadcrumbs,_=e.before,S=e.beforeWidth,A=e.breadcrumbs,M=e.children,N=e.errors,E=e.headerMenuItems,T=e.headerOffset,D=e.hideAfterCompletely,B=e.mainContainerHeader,U=e.navigationItems,R=e.setAfterHidden,H=e.setErrors,q=e.subheaderChildren,L=e.subheaderNoPadding,z=e.title,F=e.uuid,W=(0,y.i)().width,G="dashboard_after_width_".concat(F),Y="dashboard_before_width_".concat(F),V=(0,o.useRef)(null),X=(0,o.useState)(I?k:(0,Z.U2)(G,k)),$=X[0],Q=X[1],J=(0,o.useState)(!1),K=J[0],ee=J[1],ne=(0,o.useState)(_?Math.max((0,Z.U2)(Y,S),13*g.iI):null),te=ne[0],ie=ne[1],re=(0,o.useState)(!1),oe=re[0],le=re[1],de=(0,o.useState)(null)[1],ue=j.ZP.projects.list({},{revalidateOnFocus:!1}).data,ce=null===ue||void 0===ue?void 0:ue.projects,se={label:function(){var e;return null===ce||void 0===ce||null===(e=ce[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},ae=[];A&&(i&&ae.push(se),ae.push.apply(ae,(0,r.Z)(A))),(null===A||void 0===A||!A.length||C)&&(null===ce||void 0===ce?void 0:ce.length)>=1&&(null!==A&&void 0!==A&&A.length||ae.unshift({bold:!C,label:function(){return z}}),ae.unshift(se)),(0,o.useEffect)((function(){null===V||void 0===V||!V.current||K||oe||null===de||void 0===de||de(V.current.getBoundingClientRect().width)}),[K,$,oe,te,V,de,W]),(0,o.useEffect)((function(){K||(0,Z.t8)(G,$)}),[O,K,$,G]),(0,o.useEffect)((function(){oe||(0,Z.t8)(Y,te)}),[oe,te,Y]);var pe=(0,x.Z)(k);return(0,o.useEffect)((function(){I&&pe!==k&&Q(k)}),[I,k,pe]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(c.Z,{title:z}),(0,p.jsx)(s.Z,{breadcrumbs:ae,menuItems:E,project:null===ce||void 0===ce?void 0:ce[0],version:null===ce||void 0===ce||null===(t=ce[0])||void 0===t?void 0:t.version}),(0,p.jsxs)(a.Nk,{ref:n,children:[0!==(null===U||void 0===U?void 0:U.length)&&(0,p.jsx)(a.lm,{showMore:!0,children:(0,p.jsx)(m.Z,{navigationItems:U,showMore:!0})}),(0,p.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(v.Z,{after:f,afterHeader:P,afterHeightOffset:b.Mz,afterHidden:O,afterMousedownActive:K,afterWidth:$,before:_,beforeHeightOffset:b.Mz,beforeMousedownActive:oe,beforeWidth:a.k1+(_?te:0),headerOffset:T,hideAfterCompletely:!R||D,leftOffset:_?a.k1:null,mainContainerHeader:B,mainContainerRef:V,setAfterHidden:R,setAfterMousedownActive:ee,setAfterWidth:Q,setBeforeMousedownActive:le,setBeforeWidth:ie,children:[q&&(0,p.jsx)(h,{noPadding:L,children:q}),M]})})]}),N&&(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)(d.Z,w(w({},N),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}var k=o.forwardRef(O)},65458:function(e,n,t){t.d(n,{d:function(){return s}});var i=t(13507),r=t(72473),o=t(57653),l=t(70515),d=t(81728),u=t(28598),c=1.5*l.iI,s=function(e,n){var t=[{beforeIcon:(0,u.jsx)(r.X5,{}),label:function(){return"Standard (batch)"},onClick:function(){return e({pipeline:{name:(0,d.Y6)()}})},uuid:"Pipelines/NewPipelineMenu/standard"},{beforeIcon:(0,u.jsx)(r.ZG,{}),label:function(){return"Data integration"},onClick:function(){return e({pipeline:{name:(0,d.Y6)(),type:o.qL.INTEGRATION}})},uuid:"Pipelines/NewPipelineMenu/integration"},{beforeIcon:(0,u.jsx)(i.Z,{size:c}),label:function(){return"Streaming"},onClick:function(){return e({pipeline:{name:(0,d.Y6)(),type:o.qL.STREAMING}})},uuid:"Pipelines/NewPipelineMenu/streaming"}];return null!==n&&void 0!==n&&n.showBrowseTemplates&&t.push({beforeIcon:(0,u.jsx)(r.zQ,{}),label:function(){return"From a template"},onClick:function(){var e;return null===n||void 0===n||null===(e=n.showBrowseTemplates)||void 0===e?void 0:e.call(n)},uuid:"Pipelines/NewPipelineMenu/custom_template"}),null!==n&&void 0!==n&&n.showAIModal&&t.push({beforeIcon:(0,u.jsx)(r.xq,{}),label:function(){return"Using AI (beta)"},onClick:function(){var e;return null===n||void 0===n||null===(e=n.showAIModal)||void 0===e?void 0:e.call(n)},uuid:"Pipelines/NewPipelineMenu/AI_modal"}),t}},4015:function(e,n,t){t.d(n,{$b:function(){return s},I5:function(){return u},Nk:function(){return d},gI:function(){return c}});var i=t(38626),r=t(44897),o=t(42631),l=t(70515),d=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-h093u4-0"})([""," ",""],(function(e){return!e.width&&"\n width: ".concat(40*l.iI,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")})),u=i.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-h093u4-1"})(["padding:","px;",""],2.5*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).dashboard,";\n border-left: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-right: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-top-left-radius: ").concat(o.n_,"px;\n border-top-right-radius: ").concat(o.n_,"px;\n border-top: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n ")})),c=i.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-h093u4-2"})(["align-items:center;justify-content:space-between;",""],(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).dashboard,";\n border-left: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-right: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-top: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n display: ").concat((null===e||void 0===e?void 0:e.display)||"flex",";\n padding-bottom: ").concat(1*l.iI+((null===e||void 0===e?void 0:e.paddingVerticalAddition)||0),"px;\n padding-left: ").concat(l.cd*l.iI,"px;\n padding-top: ").concat(1*l.iI+((null===e||void 0===e?void 0:e.paddingVerticalAddition)||0),"px;\n ")})),s=i.default.div.withConfig({displayName:"indexstyle__FooterStyle",componentId:"sc-h093u4-3"})(["padding:","px ","px;",""],2.5*l.iI,2*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-bottom-left-radius: ").concat(o.n_,"px;\n border-bottom-right-radius: ").concat(o.n_,"px;\n border-bottom: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-left: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-right: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n ")}))},48381:function(e,n,t){var i=t(82684),r=t(31882),o=t(55485),l=t(30160),d=t(86735),u=t(28598);n.Z=function(e){var n=e.onClickTag,t=e.tags,c=void 0===t?[]:t,s=(0,i.useMemo)((function(){return(null===c||void 0===c?void 0:c.length)||0}),[c]),a=(0,i.useMemo)((function(){return(0,d.YC)(c||[],"uuid")}),[c]);return(0,u.jsx)(o.ZP,{alignItems:"center",flexWrap:"wrap",children:null===a||void 0===a?void 0:a.reduce((function(e,t){return e.push((0,u.jsx)("div",{style:{marginBottom:2,marginRight:s>=2?4:0,marginTop:2},children:(0,u.jsx)(r.Z,{onClick:n?function(){return n(t)}:null,small:!0,children:(0,u.jsx)(l.ZP,{children:t.uuid})})},"tag-".concat(t.uuid))),e}),[])})}},55729:function(e,n,t){t.d(n,{Z:function(){return T}});var i=t(82394),r=t(75582),o=t(82684),l=t(69864),d=t(71180),u=t(15338),c=t(97618),s=t(55485),a=t(85854),p=t(48670),f=t(65956),h=t(82359),v=t(38276),m=t(30160),j=t(17488),x=t(69650),b=t(12468),g=t(35686),Z=t(38626),y=t(44897),P=t(42631),w=t(70515),O=Z.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1b0w59t-0"})(["border-radius:","px;padding:","px;",""],P.n_,w.cd*w.iI,(function(e){return"\n background-color: ".concat((e.theme.background||y.Z.background).codeArea,";\n ")})),k=t(72473),I=t(72191),C=t(81728),_=t(72619),S=t(70320),A=t(23780),M=t(28598);function N(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?N(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):N(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var T=function(e){var n=e.cancelButtonText,t=e.contained,Z=e.header,y=e.onCancel,P=e.onSaveSuccess,N=(0,A.VI)(null,{},[],{uuid:"settings/workspace/preferences"}),T=(0,r.Z)(N,1)[0],D=(0,o.useState)(null),B=D[0],U=D[1],R=(0,o.useState)(!1),H=R[0],q=R[1],L=g.ZP.projects.list(),z=L.data,F=L.mutate,W=(0,o.useMemo)((function(){var e;return null===z||void 0===z||null===(e=z.projects)||void 0===e?void 0:e[0]}),[z]),G=W||{},Y=G.name,V=G.openai_api_key,X=G.project_uuid,$=(0,o.useMemo)((function(){return"demo.mage.ai"===window.location.hostname}),[]);(0,o.useEffect)((function(){B||U(W)}),[W,B]);var Q=(0,l.Db)(g.ZP.projects.useUpdate(Y),{onSuccess:function(e){return(0,_.wD)(e,{callback:function(e){var n,t=e.project;F(),U(t),q(!1),(0,S.h)(null===t||void 0===t||null===(n=t.features)||void 0===n?void 0:n[h.d.LOCAL_TIMEZONE]),P&&(null===P||void 0===P||P(t))},onErrorCallback:function(e,n){return T({errors:n,response:e})}})}}),J=(0,r.Z)(Q,2),K=J[0],ee=J[1].isLoading,ne=(0,o.useCallback)((function(e){return K({project:e})}),[K]),te=(0,M.jsxs)(M.Fragment,{children:[Z,(0,M.jsxs)(f.Z,{noPadding:!0,children:[(0,M.jsxs)(v.Z,{p:w.cd,children:[(0,M.jsx)(v.Z,{mb:1,children:(0,M.jsx)(a.Z,{level:5,children:"Project name"})}),(0,M.jsx)(m.ZP,{default:!0,monospace:!0,children:Y})]}),(0,M.jsx)(u.Z,{light:!0}),(0,M.jsxs)(v.Z,{p:w.cd,children:[(0,M.jsx)(v.Z,{mb:1,children:(0,M.jsx)(a.Z,{level:5,children:"Project UUID"})}),(0,M.jsx)(m.ZP,{default:!!X,monospace:!0,muted:!X,children:X||"Not required"})]}),(0,M.jsx)(u.Z,{light:!0}),(0,M.jsx)(v.Z,{p:w.cd,children:(0,M.jsxs)(s.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,M.jsxs)(c.Z,{flexDirection:"column",children:[(0,M.jsx)(v.Z,{mb:1,children:(0,M.jsx)(a.Z,{level:5,children:"Help improve Mage"})}),(0,M.jsxs)(m.ZP,{default:!0,children:["Please contribute usage statistics to help improve the developer experience for you and everyone in the community. Learn more ",(0,M.jsx)(p.Z,{href:"https://docs.mage.ai/contributing/statistics/overview",openNewWindow:!0,children:"here"}),"."]})]}),(0,M.jsx)(v.Z,{mr:w.cd}),(0,M.jsx)(x.Z,{compact:!0,checked:null===B||void 0===B?void 0:B.help_improve_mage,onCheck:function(){return U((function(e){return E(E({},e),{},{help_improve_mage:!(null!==B&&void 0!==B&&B.help_improve_mage)})}))}})]})})]}),(0,M.jsx)(v.Z,{mt:w.HN}),(0,M.jsx)(f.Z,{noPadding:!0,overflowVisible:!0,children:(0,M.jsxs)(v.Z,{p:w.cd,children:[(0,M.jsx)(v.Z,{mb:1,children:(0,M.jsx)(a.Z,{level:5,children:"Features"})}),Object.entries((null===B||void 0===B?void 0:B.features)||{}).map((function(e,n){var t=(0,r.Z)(e,2),o=t[0],l=t[1];return(0,M.jsx)(v.Z,{mt:0===n?0:1,children:(0,M.jsxs)(s.ZP,{alignItems:"center",children:[(0,M.jsx)(x.Z,{checked:!!l,compact:!0,onCheck:function(){return U((function(e){return E(E({},e),{},{features:E(E({},null===B||void 0===B?void 0:B.features),{},(0,i.Z)({},o,!l))})}))}}),(0,M.jsx)(v.Z,{mr:w.cd}),(0,M.jsxs)(c.Z,{children:[(0,M.jsx)(m.ZP,{default:!l,monospace:!0,children:(0,C.vg)(o)}),o===h.d.LOCAL_TIMEZONE&&(0,M.jsx)(v.Z,{ml:1,children:(0,M.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,M.jsx)(v.Z,{mt:w.HN}),(0,M.jsx)(f.Z,{noPadding:!0,children:(0,M.jsxs)(v.Z,{p:w.cd,children:[(0,M.jsx)(v.Z,{mb:1,children:(0,M.jsx)(a.Z,{level:5,children:"OpenAI"})}),V&&!H?(0,M.jsxs)(s.ZP,E(E({},s.A0),{},{children:[(0,M.jsx)(m.ZP,{default:!0,monospace:!0,children:"API key: ********"}),(0,M.jsx)(d.ZP,{iconOnly:!0,onClick:function(){return q(!0)},secondary:!0,title:"Edit",children:(0,M.jsx)(k.I8,{size:I.bL})})]})):(0,M.jsx)(j.Z,{disabled:$,label:$?"Entering API key is disabled on demo":"API key",monospace:!0,onChange:function(e){return U((function(n){return E(E({},n),{},{openai_api_key:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===B||void 0===B?void 0:B.openai_api_key)||""})]})}),(0,M.jsx)(v.Z,{mt:w.HN}),(0,M.jsxs)(s.ZP,{alignItems:"center",children:[(0,M.jsx)(d.ZP,{loading:ee,onClick:function(){ne({features:null===B||void 0===B?void 0:B.features,help_improve_mage:null===B||void 0===B?void 0:B.help_improve_mage,openai_api_key:null===B||void 0===B?void 0:B.openai_api_key})},primary:!0,children:"Save project settings"}),y&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(v.Z,{mr:w.cd}),(0,M.jsx)(d.ZP,{onClick:y,secondary:!0,children:n||"Cancel"})]})]})]});return t?(0,M.jsx)(O,{children:te}):te}}}]);
|
mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3004-231cad9039ae5dcb.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3004],{74521:function(e,t,n){var i=n(82394),l=n(92083),r=n.n(l),o=n(15338),d=n(97618),u=n(55485),s=n(65956),a=n(38276),c=n(71417),v=n(75499),p=n(30160),m=n(35686),h=n(3917),f=n(70515),g=n(8970),j=n(88422),x=n(10332),b=n(86735),_=n(70320),y=n(28598),k=n(82684);function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.disableJobExpansion,n=e.disableStageExpansion,i=e.jobs,l=e.stagesMapping,Z=(0,_.q)();return(0,y.jsx)(v.Z,{apiForFetchingAfterAction:t?null:m.ZP.spark_jobs.detail,buildApiOptionsFromObject:t?null:function(e){var t,n;return[null===e||void 0===e?void 0:e.job_id,{application_id:null===e||void 0===e||null===(t=e.application)||void 0===t?void 0:t.id,application_spark_ui_url:encodeURIComponent(null===e||void 0===e||null===(n=e.application)||void 0===n?void 0:n.spark_ui_url)}]},columnFlex:[null,null,null,null,null,null],columns:[{uuid:"ID"},{uuid:"Name"},{uuid:"Submitted"},{uuid:"Status"},{center:!0,uuid:"Stages"},{center:!0,uuid:"Tasks"}],getObjectAtRowIndex:function(e){return null===i||void 0===i?void 0:i[e]},renderExpandedRowWithObject:t?null:function(e,t){var i=null===t||void 0===t?void 0:t.spark_job;if(i){var r=i.num_active_stages,v=i.num_active_tasks,m=i.num_completed_stages,h=i.num_completed_tasks,g=i.num_failed_stages,j=i.num_failed_tasks,_=i.num_killed_tasks,k=i.num_skipped_stages,Z=i.num_skipped_tasks,P=i.num_tasks,O=i.stage_ids,E=(0,b.YC)(O,(function(e){return e}),{ascending:!1}).reduce((function(e,t){var n,r,o=null===l||void 0===l||null===(n=l[null===i||void 0===i||null===(r=i.application)||void 0===r?void 0:r.id])||void 0===n?void 0:n[t];return o?e.concat(o):o}),[]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(a.Z,{p:f.cd,children:(0,y.jsxs)(u.ZP,{children:[(0,y.jsx)(d.Z,{flex:1,alignItems:"stretch",children:(0,y.jsxs)(s.Z,{noPadding:!0,children:[(0,y.jsx)(a.Z,{px:f.cd,py:f.cd,children:(0,y.jsx)(p.ZP,{bold:!0,large:!0,children:"Stage summary"})}),(0,y.jsx)(o.Z,{light:!0,short:!0}),(0,x.s)([["IDs",null===O||void 0===O?void 0:O.join(", ")],["Completed",m],["Active",r],["Skipped",k],["Failed",g]])]})}),(0,y.jsx)(a.Z,{mr:f.cd}),(0,y.jsx)(d.Z,{flex:1,alignItems:"stretch",children:(0,y.jsxs)(s.Z,{noPadding:!0,children:[(0,y.jsx)(a.Z,{px:f.cd,py:f.cd,children:(0,y.jsx)(p.ZP,{bold:!0,large:!0,children:"Task summary"})}),(0,y.jsx)(o.Z,{light:!0,short:!0}),(0,x.s)([["Total",P],["Completed",h],["Active",v],["Skipped",Z],["Failed",j],["Killed",_]])]})})]})}),(0,y.jsx)(o.Z,{light:!0}),(0,y.jsx)(a.Z,{p:f.cd,children:(0,y.jsxs)(s.Z,{noPadding:!0,children:[(0,y.jsx)(a.Z,{p:f.cd,children:(0,y.jsxs)(p.ZP,{bold:!0,large:!0,children:["Stages\xa0\xa0\xa0",(0,y.jsx)(p.ZP,{default:!0,inline:!0,large:!0,monospace:!0,children:null===E||void 0===E?void 0:E.length})]})}),(0,y.jsx)(o.Z,{light:!0}),(0,y.jsx)(c.Z,{disableStageExpansion:n,stages:E}),(0,y.jsx)(a.Z,{p:f.cd})]})})]})}return(0,y.jsx)(a.Z,{p:f.cd})},rows:null===i||void 0===i?void 0:i.map((function(e){var t=e.job_id,n=e.name,i=e.num_tasks,l=e.stage_ids,o=e.status,d=e.submission_time,u=(null===n||void 0===n?void 0:n.length)>=100?"".concat(null===n||void 0===n?void 0:n.slice(0,97),"..."):n;return[(0,k.createElement)(p.ZP,P(P({},g.eB),{},{key:"id"}),t),(0,k.createElement)(p.ZP,P(P({},g.eB),{},{key:"name",preWrap:!0,title:n}),u),(0,k.createElement)(p.ZP,P(P({},g.eB),{},{key:"submittedAt"}),d?(0,h.XG)(r()(d,h.kE).format(h.BL),Z):"-"),(0,k.createElement)(p.ZP,P(P({},g.eB),{},{danger:j.CN.FAILED===o,key:"status",success:j.CN.SUCCEEDED===o}),o),(0,k.createElement)(p.ZP,P(P({},g.eB),{},{center:!0,key:"stageIds"}),(null===l||void 0===l?void 0:l.length)||"-"),(0,k.createElement)(p.ZP,P(P({},g.eB),{},{center:!0,key:"tasks"}),i)]})),uuid:"jobs"})}},72748:function(e,t,n){n.d(t,{Z:function(){return N}});var i=n(21831),l=n(82394),r=n(38626),o=n(82684),d=n(75499),u=n(30160),s=n(44897),a=n(42631),c=n(31608),v=n(70515),p=c.DI,m=2*v.iI,h=5*v.iI+2*m,f=r.default.div.withConfig({displayName:"indexstyle__NodeStyle",componentId:"sc-9bk2jw-0"})(["border-radius:","px;"," ",""],a.n_,(function(e){return"\n background-color: ".concat((e.theme||s.Z).background.dashboard,";\n border: 1px solid ").concat((e.theme||s.Z).borders.light,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")})),g=r.default.div.withConfig({displayName:"indexstyle__NodeHeaderStyle",componentId:"sc-9bk2jw-1"})(["padding-left:","px;padding-right:","px;padding-top:","px;padding-bottom:","px;",""],p,p,m,m,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme||s.Z).borders.light,";\n ")})),j=n(8970),x=n(28598);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){(0,l.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y=function(e){var t=e.height,n=e.node,i=(0,o.useMemo)((function(){return(null===n||void 0===n?void 0:n.metrics)||[]}),n),l=(0,o.useMemo)((function(){return(0,x.jsx)(d.Z,{columnFlex:[null,null],columns:[{uuid:"Metric"},{rightAligned:!0,uuid:"Value"}],rows:null===i||void 0===i?void 0:i.map((function(e){var t=e.name,n=e.value;return[(0,o.createElement)(u.ZP,_(_({},j.eB),{},{key:"name"}),t),(0,o.createElement)(u.ZP,_(_({},j.eB),{},{key:"value",rightAligned:!0}),n)]}))})}),[i]);return(0,x.jsxs)(f,{height:t,children:[(0,x.jsx)(g,{children:(0,x.jsx)(u.ZP,{monospace:!0,children:null===n||void 0===n?void 0:n.node_name})}),(null===i||void 0===i?void 0:i.length)>=1&&l]})},k=n(35686),Z=n(24138),P=n(21978),O=n(55187),E=n(99543);function w(e){var t=(null===e||void 0===e?void 0:e.metrics)||[],n=h,i=new RegExp("\n","g"),l=0;null===t||void 0===t||t.forEach((function(e){var t=e.name,n=e.value;l+=1;var r=[];[t,n].forEach((function(e){var t=e.matchAll(i);if(t){for(var n=0;"undefined"!==typeof t.next().value;)n+=1;r.push(n)}})),l+=Math.max.apply(Math,r)}));var r=(null===t||void 0===t?void 0:t.length)||0;return r>=1&&(n+=37,n+=18*(l||0),n+=17*(r||0)),n}function S(e){var t=(null===e||void 0===e?void 0:e.node_name)||"",n=(null===e||void 0===e?void 0:e.metrics)||[],l=Math.max.apply(Math,[(null===t||void 0===t?void 0:t.length)||0].concat((0,i.Z)(null===n||void 0===n?void 0:n.map((function(e){var t=e.name,n=e.value;return((null===t||void 0===t?void 0:t.length)||0)+((null===n||void 0===n?void 0:n.length)||0)}))))),r=2*p+l*(E.YE+.3);return null!==n&&void 0!==n&&n.length&&(r+=4*p),r}var C=n(86735);function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){(0,l.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var N=function(e){var t,n,l=e.disableGraph,d=e.height,u=e.heightOffset,s=e.model,a=e.overrideScroll,c=e.treeRef,v=(0,o.useRef)(null),p=c||v,m=(0,o.useContext)(r.ThemeContext),h=k.ZP.spark_sqls.detail(null===s||void 0===s?void 0:s.id,{application_id:null===s||void 0===s||null===(t=s.application)||void 0===t?void 0:t.id,application_spark_ui_url:encodeURIComponent(null===s||void 0===s||null===(n=s.application)||void 0===n?void 0:n.spark_ui_url),include_jobs_and_stages:1,_format:"with_jobs_and_stages"}).data,f=(0,o.useMemo)((function(){return null===h||void 0===h?void 0:h.spark_sql}),[h]),g=(0,o.useMemo)((function(){return(0,C.HK)((null===f||void 0===f?void 0:f.jobs)||[],(function(e){return e.job_id}))}),[f]),j=(0,o.useMemo)((function(){return(0,C.HK)((null===f||void 0===f?void 0:f.stages)||[],(function(e){return e.stage_id}))}),[f]),b=(0,o.useMemo)((function(){var e,t=[],n=[],l=(null===f||void 0===f?void 0:f.edges)||[],r=((0,C.vM)(l,(function(e){return e.from_id})),(0,C.vM)(l,(function(e){return e.to_id})),{});return null===l||void 0===l||l.forEach((function(e){var t=e.from_id,i=e.to_id;n.push({from:t,fromPort:"".concat(t,"-").concat(i,"-from"),id:"".concat(t,"-").concat(i),to:i,toPort:"".concat(t,"-").concat(i,"-to")}),t in r||(r[t]=[]),r[t].push(R(R({},P.bJ),{},{disabled:!0,id:"".concat(t,"-").concat(i,"-from"),side:P.rl.SOUTH})),i in r||(r[i]=[]),r[i].push(R(R({},P.bJ),{},{disabled:!0,id:"".concat(t,"-").concat(i,"-to"),side:P.rl.NORTH}))})),null===f||void 0===f||null===(e=f.nodes)||void 0===e||e.forEach((function(e){var n=null===e||void 0===e?void 0:e.node_id,l=(0,i.Z)((null===r||void 0===r?void 0:r[n])||[]);t.push({data:{sqlNode:e},height:w(e),id:n,ports:l,width:S(e)})})),{edges:n,nodes:t}}),[g,f,j]),_=b.edges,E=b.nodes;(0,o.useEffect)((function(){l||setTimeout((function(){var e,t,n,i,l;0===(null===p||void 0===p||null===(e=p.current)||void 0===e||null===(t=e.containerRef)||void 0===t||null===(n=t.current)||void 0===n?void 0:n.scrollTop)&&(null===p||void 0===p||null===(i=p.current)||void 0===i||null===(l=i.fitCanvas)||void 0===l||l.call(i))}),1e3)}),[p,l]);var M=(0,o.useMemo)((function(){var e=0;return d&&(e+=d),u&&(e-=u),Math.max(0,e)}),[d,u]),N=(0,o.useCallback)((function(e){e.preventDefault()}),[]);(0,o.useEffect)((function(){var e,t,n,i,r,o;l?null===p||void 0===p||null===(e=p.current)||void 0===e||null===(t=e.containerRef)||void 0===t||null===(n=t.current)||void 0===n||n.addEventListener("wheel",N):null===p||void 0===p||null===(i=p.current)||void 0===i||null===(r=i.containerRef)||void 0===r||null===(o=r.current)||void 0===o||o.removeEventListener("wheel",N)}),[l,N]);var D=(0,o.useCallback)((function(e){e.stopPropagation()}),[]);return(0,o.useEffect)((function(){var e,t,n,i,l,r;a?null===p||void 0===p||null===(e=p.current)||void 0===e||null===(t=e.containerRef)||void 0===t||null===(n=t.current)||void 0===n||n.addEventListener("wheel",D):null===p||void 0===p||null===(i=p.current)||void 0===i||null===(l=i.containerRef)||void 0===l||null===(r=l.current)||void 0===r||r.removeEventListener("wheel",D)}),[a,D]),(0,x.jsx)(O.$4,{height:M,onDoubleClick:function(){var e,t;return null===p||void 0===p||null===(e=p.current)||void 0===e||null===(t=e.fitCanvas)||void 0===t?void 0:t.call(e)},children:(0,x.jsx)(Z.Xz,{arrow:null,disabled:l,edge:function(e){var t;return(0,x.jsx)(Z.kS,R(R({},e),{},{style:{stroke:null===m||void 0===m||null===(t=m.accent)||void 0===t?void 0:t.purple}}))},edges:_,fit:!0,forwardedRef:p,maxHeight:P.Jo,maxWidth:P.Jo,maxZoom:1,minZoom:-.7,node:function(e){var t,n;return(0,x.jsx)(Z.NB,R(R({},e),{},{dragType:"port",linkable:!0,port:(0,x.jsx)(Z.GR,{style:{fill:null===m||void 0===m||null===(t=m.borders)||void 0===t?void 0:t.light,stroke:null===m||void 0===m||null===(n=m.accent)||void 0===n?void 0:n.purple,strokeWidth:"1px"}}),style:{fill:"transparent",stroke:"transparent",strokeWidth:0},children:function(e){var t=e.height,n=e.node.data.sqlNode;return(0,x.jsx)("foreignObject",{height:t,width:e.width,x:0,y:0,children:(0,x.jsx)(y,{height:t,node:n})})}}))},nodes:E})})}},93004:function(e,t,n){var i=n(82394),l=n(92083),r=n.n(l),o=n(82684),d=n(32013),u=n(98777),s=n(15338),a=n(97618),c=n(55485),v=n(74521),p=n(85854),m=n(65956),h=n(38276),f=n(72748),g=n(75499),j=n(30160),x=n(35686),b=n(3917),_=n(70515),y=n(8970),k=n(88422),Z=n(81728),P=n(70320),O=n(28598);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.disableGraph,n=e.disableJobExpansion,i=e.overrideScrollForGraph,l=e.setSelectedSql,E=e.showSparkGraph,S=e.sqls,C=e.stagesMapping,M=(0,P.q)(),R=x.ZP.spark_sqls.list({length:9999},{},{pauseFetch:"undefined"!==typeof S&&null!==S}).data,N=(0,o.useMemo)((function(){return S||((null===R||void 0===R?void 0:R.spark_sqls)||[])}),[R,S]),D=(0,o.useMemo)((function(){var e,P={};null===N||void 0===N||N.forEach((function(e){var t,n,i=null===e||void 0===e?void 0:e.application;(null===i||void 0===i?void 0:i.id)in P||(P[null===i||void 0===i?void 0:i.id]={application:i,sqls:[]}),null===(t=P[null===i||void 0===i?void 0:i.id])||void 0===t||null===(n=t.sqls)||void 0===n||n.push(e)}));var S=null===(e=Object.values(P))||void 0===e?void 0:e.length;return Object.values(P).map((function(e){var P=e.application,R=e.sqls;return(0,O.jsxs)("div",{children:[S>=2&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(h.Z,{p:_.cd,children:(0,O.jsxs)(j.ZP,{default:!0,bold:!0,children:["Application ",null===P||void 0===P?void 0:P.id]})}),(0,O.jsx)(s.Z,{light:!0})]}),(0,O.jsx)(g.Z,{apiForFetchingAfterAction:x.ZP.spark_sqls.detail,buildApiOptionsFromObject:function(e){var t,n;return[null===e||void 0===e?void 0:e.id,{application_id:null===e||void 0===e||null===(t=e.application)||void 0===t?void 0:t.id,application_spark_ui_url:encodeURIComponent(null===e||void 0===e||null===(n=e.application)||void 0===n?void 0:n.spark_ui_url),include_jobs_and_stages:1,_format:"with_jobs_and_stages"}]},columnFlex:[null,null,null,null,null,null,null],columns:[{uuid:"ID"},{uuid:"Submitted"},{center:!0,uuid:"Duration"},{uuid:"Status"},{center:!0,uuid:"Successful jobs"},{center:!0,uuid:"Running jobs"},{center:!0,uuid:"Failed jobs"}],getObjectAtRowIndex:function(e){return null===R||void 0===R?void 0:R[e]},onClickRow:function(e){var t=null===R||void 0===R?void 0:R[e];null===l||void 0===l||l((function(e){return e&&(null===e||void 0===e?void 0:e.id)===(null===t||void 0===t?void 0:t.id)?null:t}))},renderExpandedRowWithObject:function(e,l){var r,o=null===l||void 0===l||null===(r=l.spark_sql)||void 0===r?void 0:r.jobs,s=null===R||void 0===R?void 0:R[e];return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(h.Z,{p:_.cd,children:(0,O.jsxs)(m.Z,{noPadding:!0,children:[(0,O.jsx)(h.Z,{p:_.cd,children:(0,O.jsx)(c.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,O.jsxs)(a.Z,{flex:1,flexDirection:"column",children:[(0,O.jsx)(p.Z,{level:5,children:"Description"}),(0,O.jsx)(h.Z,{mt:1,children:(0,O.jsx)(j.ZP,{default:!0,monospace:!0,children:null===s||void 0===s?void 0:s.description})})]})})}),(0,O.jsx)(h.Z,{p:_.cd,children:(0,O.jsxs)(d.Z,{noBoxShadow:!0,children:[(0,O.jsx)(u.Z,{noPaddingContent:!0,title:"Plan",titleXPadding:_.cd*_.iI,titleYPadding:1.5*_.iI,children:(0,O.jsx)(h.Z,{p:_.cd,children:(0,O.jsx)(j.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:null===s||void 0===s?void 0:s.plan_description})})}),E&&(0,O.jsx)(u.Z,{noPaddingContent:!0,title:"Graph",titleXPadding:_.cd*_.iI,titleYPadding:1.5*_.iI,children:(0,O.jsx)(f.Z,{disableGraph:t,height:100*_.iI,model:s,overrideScroll:i})})]})})]})}),(0,O.jsxs)(h.Z,{mb:_.cd,px:_.cd,children:[(0,O.jsx)(h.Z,{mb:_.cd,children:(0,O.jsx)(c.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,O.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,O.jsx)(p.Z,{level:5,children:"Jobs"})})})}),(0,O.jsxs)(m.Z,{overflowVisible:!0,noPadding:!0,children:[(0,O.jsx)(v.Z,{disableJobExpansion:n,jobs:o,stagesMapping:C}),(0,O.jsx)(h.Z,{pb:_.cd})]})]})]})},rows:null===R||void 0===R?void 0:R.map((function(e){var t=e.duration,n=e.failed_job_ids,i=e.id,l=e.running_job_ids,d=e.status,u=e.submission_time,s=e.success_job_ids;return[(0,o.createElement)(j.ZP,w(w({},y.eB),{},{key:"id"}),i),(0,o.createElement)(j.ZP,w(w({},y.eB),{},{key:"submissionTime"}),u?(0,b.XG)(r()(u,b.kE).format(b.OC),M):"-"),(0,o.createElement)(j.ZP,w(w({},y.eB),{},{center:!0,key:"duration"}),t?(0,Z.NR)(t):0),(0,o.createElement)(j.ZP,w(w({},y.eB),{},{key:"status",success:k.oD.COMPLETED===d}),d),(0,o.createElement)(j.ZP,w(w({},y.eB),{},{center:!0,key:"successJobIds"}),null===s||void 0===s?void 0:s.length),(0,o.createElement)(j.ZP,w(w({},y.eB),{},{center:!0,key:"runningJobIds"}),null===l||void 0===l?void 0:l.length),(0,o.createElement)(j.ZP,w(w({},y.eB),{},{center:!0,key:"failedJobIds"}),null===n||void 0===n?void 0:n.length)]}))})]},null===P||void 0===P?void 0:P.id)}))}),[t,i,N,C]);return(0,O.jsx)(O.Fragment,{children:D})}},71417:function(e,t,n){n.d(t,{Z:function(){return I}});var i=n(82394),l=n(92083),r=n.n(l),o=n(15338),d=n(97618),u=n(55485),s=n(65956),a=n(38276),c=n(75499),v=n(38626),p=n(82684),m=n(39867),h=n(30160),f=n(12468),g=n(44897),j=n(70515),x=3*j.iI,b=v.default.div.withConfig({displayName:"indexstyle__BarsContainerStyle",componentId:"sc-15hlddf-0"})(["width:100%;"]),_=v.default.div.withConfig({displayName:"indexstyle__BarContainerStyle",componentId:"sc-15hlddf-1"})(["align-items:center;display:flex;height:","px;width:100%;"],x),y=v.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-15hlddf-2"})(["height:100%;"," "," "," "," "," "," "," "," ",""],(function(e){return e.widthPercentage&&"\n width: ".concat(100*e.widthPercentage,"%;\n ")}),(function(e){return e.blue&&"\n background-color: ".concat((e.theme||g.Z).accent.blue,";\n ")}),(function(e){return e.green&&"\n background-color: ".concat((e.theme||g.Z).accent.positive,";\n ")}),(function(e){return e.orange&&"\n background-color: ".concat((e.theme||g.Z).accent.dbt,";\n ")}),(function(e){return e.purple&&"\n background-color: ".concat((e.theme||g.Z).accent.purple,";\n ")}),(function(e){return e.red&&"\n background-color: ".concat((e.theme||g.Z).accent.negative,";\n ")}),(function(e){return e.teal&&"\n background-color: ".concat((e.theme||g.Z).accent.teal,";\n ")}),(function(e){return e.yellow&&"\n background-color: ".concat((e.theme||g.Z).accent.yellow,";\n ")}),(function(e){return e.empty&&"\n background-color: ".concat((e.theme||g.Z).background.chartBlock,";\n ")})),k=v.default.div.withConfig({displayName:"indexstyle__FillerStyle",componentId:"sc-15hlddf-3"})(["height:","px;width:100%;"],x),Z=v.default.div.withConfig({displayName:"indexstyle__TextStyle",componentId:"sc-15hlddf-4"})(["align-items:center;display:flex;height:","px;justify-content:flex-end;"],x),P=n(3917),O=n(70320),E=n(86735),w=n(28598);var S=function(e){var t,n=e.stageAttempt,i=(0,p.useContext)(v.ThemeContext),l=(0,O.q)(),o=(n.submission_time,(0,p.useMemo)((function(){return(0,E.YC)(Object.values((null===n||void 0===n?void 0:n.tasks)||{}),(function(e){return e.launch_time}),{ascending:!0})}),[n])),s=(0,p.useMemo)((function(){var e,t;return null===o||void 0===o||o.forEach((function(n){var i=n.duration,l=n.launch_time,o=r()(l,P.kE).unix();(!t||o<t)&&(t=o);var d=o+i;(!e||d>e)&&(e=d)})),{maxEndTimestamp:e,minLaunchTimestamp:t}}),[o]),c=s.maxEndTimestamp,g=s.minLaunchTimestamp,x=(0,p.useCallback)((function(e){return(0,w.jsx)(f.Z,{appearAbove:!0,block:!0,fullSize:!0,label:(0,w.jsx)(h.ZP,{leftAligned:!0,children:e}),lightBackground:!0,muted:!0,widthFitContent:!0,children:(0,w.jsx)(k,{})})}),[]),S=(0,p.useMemo)((function(){var e=c-g,t=[];return null===o||void 0===o||o.forEach((function(n,i){var l=n.duration,o=n.task_id,d=n.launch_time,u=n.scheduler_delay,s=n.task_metrics,v=s.executor_deserialize_time,p=s.shuffle_read_metrics.fetch_wait_time,m=s.executor_run_time,h=s.shuffle_write_metrics.write_time,f=s.result_serialization_time,j=n.getting_result_time,b=r()(d,P.kE).unix(),k=b+l,Z=[(0,w.jsx)(y,{empty:!0,widthPercentage:(b-g)/e,children:x("Waiting to start")},"launchTimestamp"),(0,w.jsx)(y,{blue:!0,widthPercentage:u/e,children:x("Scheduler delay")},"schedulerDelay"),(0,w.jsx)(y,{red:!0,widthPercentage:v/e,children:x("Task deserialization time")},"executorDeserializeTime"),(0,w.jsx)(y,{orange:!0,widthPercentage:p/e,children:x("Shuffle read time")},"fetchWaitTime"),(0,w.jsx)(y,{green:!0,widthPercentage:m/e,children:x("Executor computing time")},"executorRunTime"),(0,w.jsx)(y,{widthPercentage:h/e,yellow:!0,children:x("Shuffle write time")},"writeTime"),(0,w.jsx)(y,{purple:!0,widthPercentage:f/e,children:x("Result serialization time")},"resultSerializationTime"),(0,w.jsx)(y,{teal:!0,widthPercentage:j/e,children:x("Getting result time")},"gettingResultTime"),(0,w.jsx)(y,{empty:!0,widthPercentage:(c-k)/e,children:x("Already finished")},"endTime")];t.push((0,w.jsx)(a.Z,{mt:1},"divider-".concat(o))),t.push((0,w.jsx)(_,{children:Z},o))})),(0,w.jsxs)(b,{children:[(0,w.jsx)(_,{children:(0,w.jsxs)(u.ZP,{fullWidth:!0,justifyContent:"space-between",children:[(0,w.jsx)(d.Z,{flex:1,children:(0,w.jsx)(h.ZP,{monospace:!0,muted:!0,children:(0,P.XG)((0,P.Mg)(g).format(P.OC),l)})}),(0,w.jsx)(d.Z,{flex:1,justifyContent:"flex-end",children:(0,w.jsx)(h.ZP,{monospace:!0,muted:!0,children:(0,P.XG)((0,P.Mg)(c).format(P.OC),l)})})]})}),t]})}),[c,g,x,o]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(a.Z,{mb:j.cd,children:(0,w.jsx)(h.ZP,{bold:!0,large:!0,children:"Task timeline"})}),(0,w.jsx)(a.Z,{mb:j.cd,children:[{color:null===i||void 0===i||null===(t=i.accent)||void 0===t?void 0:t.blue,uuid:"Scheduler delay"},{color:null===i||void 0===i?void 0:i.accent.negative,uuid:"Task deserialization time"},{color:null===i||void 0===i?void 0:i.accent.dbt,uuid:"Shuffle read time"},{color:null===i||void 0===i?void 0:i.accent.positive,uuid:"Executor computing time"},{color:null===i||void 0===i?void 0:i.accent.yellow,uuid:"Shuffle write time"},{color:null===i||void 0===i?void 0:i.accent.purple,uuid:"Result serialization time"},{color:null===i||void 0===i?void 0:i.accent.teal,uuid:"Getting result time"}].map((function(e,t){var n=e.color,i=e.uuid;return(0,w.jsx)(a.Z,{mt:t>=1?1:0,children:(0,w.jsxs)(u.ZP,{alignItems:"center",children:[(0,w.jsx)(m.Z,{color:n,size:1*j.iI}),(0,w.jsx)(a.Z,{mr:1}),(0,w.jsx)(h.ZP,{default:!0,children:i})]})},i)}))}),(0,w.jsxs)(u.ZP,{children:[(0,w.jsxs)("div",{children:[(0,w.jsx)(Z,{children:(0,w.jsx)(h.ZP,{bold:!0,monospace:!0,muted:!0,noWrapping:!0,children:"ID"})}),null===o||void 0===o?void 0:o.map((function(e,t){var n=e.task_id;return(0,w.jsx)(a.Z,{mt:1,children:(0,w.jsx)(Z,{children:(0,w.jsx)(h.ZP,{default:!0,monospace:!0,noWrapping:!0,children:n})})},n)}))]}),(0,w.jsx)(a.Z,{mr:2}),S]})]})},C=n(35686),M=n(88422),R=n(8970),N=n(10332),D=n(81728);function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I=function(e){var t=e.disableStageExpansion,n=e.stages,i=e.tasksContained,l=(0,O.q)();return(0,w.jsx)(c.Z,{columnFlex:[null,null,null,null,null,null,null,null,null,null,null,null,null],columns:[{uuid:"ID"},{center:!0,uuid:"Attempt"},{uuid:"Name"},{uuid:"Submitted"},{center:!0,uuid:"Duration"},{uuid:"Status"},{center:!0,uuid:"Tasks"},{center:!0,tooltipMessage:"Bytes read from storage in this stage",uuid:"In"},{center:!0,uuid:"In recs"},{center:!0,tooltipMessage:"Bytes written in storage in this stage",uuid:"Out"},{center:!0,uuid:"Out recs"},{center:!0,tooltipMessage:"Total shuffle bytes and records read, includes both data read locally and data read from remote executors.",uuid:"Sh read"},{rightAligned:!0,tooltipMessage:"Bytes and records written to disk in order to be read by a shuffle in a future stage.",uuid:"Sh write"}],getObjectAtRowIndex:function(e){return null===n||void 0===n?void 0:n[e]},buildApiOptionsFromObject:t?null:function(e){var t,n;return[null===e||void 0===e?void 0:e.stage_id,{application_id:null===e||void 0===e||null===(t=e.application)||void 0===t?void 0:t.id,application_spark_ui_url:encodeURIComponent(null===e||void 0===e||null===(n=e.application)||void 0===n?void 0:n.spark_ui_url),quantiles:"0.01,0.25,0.5,0.75,0.99",withSummaries:!0}]},apiForFetchingAfterAction:t?null:C.ZP.spark_stages.detail,renderExpandedRowWithObject:t?null:function(e,t){var v,m,g=null===n||void 0===n?void 0:n[e];if(!g)return(0,w.jsx)("div",{});var x=g.details,b=g.num_active_tasks,_=g.num_complete_tasks,y=g.num_failed_tasks,k=g.num_killed_tasks,Z=g.num_tasks,O=null===t||void 0===t||null===(v=t.spark_stage)||void 0===v?void 0:v.stage_attempts;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(a.Z,{p:j.cd,children:(0,w.jsxs)(u.ZP,{children:[(0,w.jsx)(d.Z,{flex:1,alignItems:"stretch",children:(0,w.jsxs)(s.Z,{noPadding:!0,children:[(0,w.jsx)(a.Z,{px:j.cd,py:j.cd,children:(0,w.jsx)(h.ZP,{bold:!0,large:!0,children:"Task summary"})}),(0,w.jsx)(o.Z,{light:!0,short:!0}),(0,N.s)([["Total",Z],["Completed",_],["Active",b],["Failed",y],["Killed",k]])]})}),(0,w.jsx)(a.Z,{mr:j.cd}),(0,w.jsx)(d.Z,{flex:2,alignItems:"stretch",children:(0,w.jsxs)(s.Z,{noPadding:!0,children:[(0,w.jsx)(a.Z,{px:j.cd,py:j.cd,children:(0,w.jsx)(h.ZP,{bold:!0,large:!0,children:"Details"})}),(0,w.jsx)(o.Z,{light:!0,short:!0}),(0,w.jsx)(a.Z,{p:j.cd,children:null===x||void 0===x||null===(m=x.split("\n"))||void 0===m?void 0:m.map((function(e){return(0,w.jsx)(h.ZP,{muted:!0,monospace:!0,small:!0,children:e},e)}))})]})})]})}),null===O||void 0===O?void 0:O.map((function(e){e.attempt_id;var t,n=e.task_metrics_distributions,v=e.tasks,m=n||{},g=m.input_metrics,x=m.output_metrics,b=m.quantiles,_=m.shuffle_read_metrics,y=m.shuffle_write_metrics,k=(0,w.jsx)(c.Z,{columnFlex:[null,null,null,null,null,null,null,null,null],columns:[{uuid:"ID"},{center:!0,uuid:"Attempt"},{uuid:"Status"},{uuid:"Locality"},{uuid:"Launch"},{center:!0,uuid:"Duration"},{center:!0,tooltipMessage:"GC time is the total JVM garbage collection time.",uuid:"GC time"},{center:!0,tooltipMessage:"Scheduler delay is the time the task waits to be scheduled for execution.",uuid:"Delayed"},{center:!0,tooltipMessage:"Result serialization time is the time spent serializing the task result on an executor before sending it back to the driver.",uuid:"Result time"}],rows:(0,E.YC)(Object.values(v||{}),(function(e){return e.task_id}),{ascending:!1}).map((function(e){var t=e.attempt,n=e.duration,i=e.launch_time,o=e.scheduler_delay,d=e.status,u=e.task_id,s=e.task_locality,a=e.task_metrics;return[(0,p.createElement)(h.ZP,A(A({},R.eB),{},{key:"taskId"}),u),(0,p.createElement)(h.ZP,A(A({},R.eB),{},{center:!0,key:"attempt"}),t),(0,p.createElement)(h.ZP,A(A({},R.eB),{},{key:"status",success:M.q.SUCCESS===d}),d),(0,p.createElement)(h.ZP,A(A({},R.eB),{},{key:"taskLocality"}),s),(0,p.createElement)(h.ZP,A(A({},R.eB),{},{key:"launchTime"}),i?(0,P.XG)(r()(i,P.kE).format(P.BL),l):"-"),(0,p.createElement)(h.ZP,A(A({},R.eB),{},{center:!0,key:"duration"}),n?(0,D.NR)(n):0),(0,p.createElement)(h.ZP,A(A({},R.eB),{},{center:!0,key:"jvmGcTime"}),null!==a&&void 0!==a&&a.jvm_gc_time?(0,D.NR)(null===a||void 0===a?void 0:a.jvm_gc_time):0),(0,p.createElement)(h.ZP,A(A({},R.eB),{},{center:!0,key:"schedulerDelay"}),o?(0,D.NR)(o):0),(0,p.createElement)(h.ZP,A(A({},R.eB),{},{center:!0,key:"resultSerializationTime"}),null!==a&&void 0!==a&&a.result_serialization_time?(0,D.NR)(null===a||void 0===a?void 0:a.result_serialization_time):0)]}))});return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(o.Z,{light:!0}),(0,w.jsx)(a.Z,{p:j.cd,children:(0,w.jsx)(S,{stageAttempt:e})}),(0,w.jsx)(o.Z,{light:!0}),(0,w.jsx)(a.Z,{px:j.cd,mt:j.cd,children:(0,w.jsx)(u.ZP,{children:(0,w.jsx)(d.Z,{flex:1,alignItems:"stretch",children:(0,w.jsxs)(s.Z,{noPadding:!0,children:[(0,w.jsx)(a.Z,{px:j.cd,py:j.cd,children:(0,w.jsxs)(h.ZP,{bold:!0,large:!0,children:["Summary metrics for ",(0,D._6)("completed task",null===e||void 0===e?void 0:e.num_complete_tasks)]})}),(0,w.jsx)(o.Z,{light:!0,short:!0}),(0,w.jsx)(c.Z,{columnFlex:[null].concat(null===b||void 0===b?void 0:b.map((function(){return null}))),columns:[{uuid:"Metric"}].concat((null===b||void 0===b?void 0:b.map((function(e,t){return{center:!0,label:function(){return 0===t?"Min":t===(null===b||void 0===b?void 0:b.length)-1?"Max":t===Math.floor((null===b||void 0===b?void 0:b.length)/2)?"Median":"".concat(Number(100*e),"th")},uuid:e}})))||[]),rows:[{uuid:"Duration",values:((null===n||void 0===n?void 0:n.duration)||[]).map((function(e){return(0,D.NR)(e)}))},{tooltipMessage:"GC time is the total JVM garbage collection time.",uuid:"GC time",values:((null===n||void 0===n?void 0:n.jvm_gc_time)||[]).map((function(e){return(0,D.NR)(e)}))},{tooltipMessage:"Bytes read from storage in this stage.",uuid:"Input read (bytes)",values:(null===g||void 0===g?void 0:g.bytes_read)||[]},{tooltipMessage:"Records read from storage in this stage.",uuid:"Input records read",values:(null===g||void 0===g?void 0:g.records_read)||[]},{tooltipMessage:"Total shuffle bytes read, includes both data read locally and data read from remote executors.",uuid:"Shuffle read (bytes)",values:(null===_||void 0===_?void 0:_.read_bytes)||[]},{tooltipMessage:"Total shuffle records read, includes both data read locally and data read from remote executors.",uuid:"Shuffle read records",values:(null===_||void 0===_?void 0:_.read_records)||[]},{uuid:"Shuffle read fetch time",values:((null===_||void 0===_?void 0:_.fetch_wait_time)||[]).map((function(e){return(0,D.NR)(e)}))},{tooltipMessage:"Bytes written to storage in this stage.",uuid:"Input write (bytes)",values:(null===x||void 0===x?void 0:x.bytes_written)||[]},{tooltipMessage:"Records written to storage in this stage.",uuid:"Input records write",values:(null===x||void 0===x?void 0:x.records_written)||[]},{tooltipMessage:"Bytes written to disk in order to be read by a shuffle in a future stage.",uuid:"Shuffle write (bytes)",values:(null===y||void 0===y?void 0:y.write_bytes)||[]},{tooltipMessage:"Records written to disk in order to be read by a shuffle in a future stage.",uuid:"Shuffle write records",values:(null===y||void 0===y?void 0:y.write_records)||[]},{uuid:"Shuffle write time",values:((null===y||void 0===y?void 0:y.write_time)||[]).map((function(e){return(0,D.NR)(e)}))},{tooltipMessage:"Scheduler delay is the time the task waits to be scheduled for execution.",uuid:"Scheduler delay",values:(null===n||void 0===n?void 0:n.scheduler_delay)||[]},{uuid:"Task deserialization time",values:((null===n||void 0===n?void 0:n.executor_deserialize_time)||[]).map((function(e){return(0,D.NR)(e)}))},{uuid:"Task deserialization CPU time",values:((null===n||void 0===n?void 0:n.executor_deserialize_cpu_time)||[]).map((function(e){return(0,D.NR)(e)}))},{uuid:"Result size",values:(null===n||void 0===n?void 0:n.result_size)||[]},{tooltipMessage:"Result serialization time is the time spent serializing the task result on an executor before sending it back to the driver.",uuid:"Result serialization time",values:((null===n||void 0===n?void 0:n.result_serialization_time)||[]).map((function(e){return(0,D.NR)(e)}))},{tooltipMessage:"Getting result time is the time that the driver spends fetching task results from workers.",uuid:"Getting result time",values:((null===n||void 0===n?void 0:n.getting_result_time)||[]).map((function(e){return(0,D.NR)(e)}))},{tooltipMessage:"Scheduler delay is the time the task waits to be scheduled for execution.",uuid:"Scheduler delay",values:((null===n||void 0===n?void 0:n.scheduler_delay)||[]).map((function(e){return(0,D.NR)(e)}))},{tooltipMessage:"Peak execution memory is the maximum memory used by the internal data structures created during shuffles, aggregations and joins.",uuid:"Peak execution memory",values:(null===n||void 0===n?void 0:n.peak_execution_memory)||[]},{tooltipMessage:"Shuffle spill (memory) is the size of the deserialized form of the shuffled data in memory.",uuid:"Memory spilled (bytes)",values:(null===n||void 0===n?void 0:n.memory_bytes_spilled)||[]},{tooltipMessage:"Shuffle spill (disk) is the size of the serialized form of the data on disk.",uuid:"Disk spilled (bytes)",values:(null===n||void 0===n?void 0:n.disk_bytes_spilled)||[]}].map((function(e){var t=e.tooltipMessage,n=e.uuid,i=e.values;return[(0,w.jsxs)(u.ZP,{alignItems:"center",children:[(0,w.jsx)(h.ZP,A(A({},R.eB),{},{children:n})),t&&(0,w.jsx)("div",{style:{marginLeft:4},children:(0,w.jsx)(f.Z,{appearAbove:!0,label:(0,w.jsx)(h.ZP,{leftAligned:!0,children:t}),lightBackground:!0,maxWidth:200,muted:!0})})]},n)].concat(null===i||void 0===i?void 0:i.map((function(e,t){return(0,p.createElement)(h.ZP,A(A({},R.eB),{},{center:!0,key:"quantile-".concat(b[t],"-").concat(n)}),e)})))}))}),(0,w.jsx)(a.Z,{p:1})]})})})}),(0,w.jsx)(a.Z,{p:j.cd,children:(0,w.jsxs)(h.ZP,{bold:!0,large:!0,children:["Tasks\xa0\xa0\xa0",(0,w.jsx)(h.ZP,{default:!0,inline:!0,large:!0,monospace:!0,children:v?null===(t=Object.keys(v||{}))||void 0===t?void 0:t.length:""})]})}),!i&&k,i&&(0,w.jsx)(a.Z,{px:j.cd,children:(0,w.jsxs)(s.Z,{noPadding:!0,children:[k,(0,w.jsx)(a.Z,{pb:j.cd})]})}),(0,w.jsx)(a.Z,{p:1})]})}))]})},rows:null===n||void 0===n?void 0:n.map((function(e){var t=e.attempt_id,n=e.completion_time,i=e.first_task_launched_time,o=e.input_bytes,d=e.input_records,u=e.name,s=e.output_bytes,a=e.output_records,c=e.shuffle_read_bytes,v=e.shuffle_write_bytes,m=e.stage_id,f=e.status,g=e.submission_time,j=e.tasks,x=i&&r()(i,P.kE),b=n&&r()(n,P.kE),_=b&&b.diff(x),y=(null===u||void 0===u?void 0:u.length)>=12?"".concat(null===u||void 0===u?void 0:u.slice(0,9),"..."):u;return[(0,p.createElement)(h.ZP,A(A({},R.eB),{},{key:"stageID"}),m),(0,p.createElement)(h.ZP,A(A({},R.eB),{},{center:!0,key:"attemptID"}),t),(0,p.createElement)(h.ZP,A(A({},R.eB),{},{key:"displayName",title:u}),y),(0,p.createElement)(h.ZP,A(A({},R.eB),{},{key:"submissionTime"}),g?(0,P.XG)(r()(g,P.kE).format(P.BL),l):"-"),(0,p.createElement)(h.ZP,A(A({},R.eB),{},{key:"diffDisplayText",center:!0}),_?(0,D.NR)(_):0),(0,p.createElement)(h.ZP,A(A({},R.eB),{},{key:"status",success:M.Dd.COMPLETE===f}),f),(0,p.createElement)(h.ZP,A(A({},R.eB),{},{key:"tasks",center:!0}),Object.keys(j||{}).length||0),(0,p.createElement)(h.ZP,A(A({},R.eB),{},{center:!0,key:"inputBytes"}),o),(0,p.createElement)(h.ZP,A(A({},R.eB),{},{center:!0,key:"inputRecords"}),d),(0,p.createElement)(h.ZP,A(A({},R.eB),{},{center:!0,key:"outputBytes"}),s),(0,p.createElement)(h.ZP,A(A({},R.eB),{},{center:!0,key:"outputRecords"}),a),(0,p.createElement)(h.ZP,A(A({},R.eB),{},{center:!0,key:"shuffleReadBytes"}),c),(0,p.createElement)(h.ZP,A(A({},R.eB),{},{key:"shuffleWriteBytes",rightAligned:!0}),v)]}))})}},8970:function(e,t,n){n.d(t,{sY:function(){return y},l:function(){return x},Eb:function(){return b},LF:function(){return _},B2:function(){return h},TD:function(){return j},uK:function(){return f},eB:function(){return k}});var i=n(82394),l=n(28598),r=69.063,o=r/85;var d,u,s,a,c=function(e){var t,n,i=e.height,d=e.size,u=e.width;return d?(t=d/o,n=d):i?(t=i,n=i*o):u&&(t=u/o,n=u),(0,l.jsxs)("svg",{fill:"#fff",fillRule:"evenodd",height:t,stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 ".concat(r," ").concat(85),width:n,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,l.jsx)("use",{xlinkHref:"#A",x:"2.031",y:"2.5"}),(0,l.jsx)("symbol",{id:"A",overflow:"visible",children:(0,l.jsxs)("g",{stroke:"none",children:[(0,l.jsx)("path",{d:"M16.829 39.981L13.086 62.83l-9.812 2.283-3.255-1.659V39.981h16.81z",fill:"#9d5025"}),(0,l.jsx)("path",{d:"M65 31.932l-32.5 2.351L0 31.932 32.5 0 65 31.932z",fill:"#6b3b19"}),(0,l.jsx)("path",{d:"M38.971 39.981H3.274v25.132l35.697-8.322v-16.81z",fill:"#f58534"}),(0,l.jsx)("path",{d:"M21.127 39.981l1.168 25.698-11.43 3.298-3.992-2.029V39.981h14.254z",fill:"#9d5025"}),(0,l.jsx)("path",{d:"M49.664 39.981H10.865v28.995l38.799-11.22V39.981z",fill:"#f58534"}),(0,l.jsx)("path",{d:"M29.255 39.981v30.507l-8.912 3.317-5.016-2.556V39.981h13.929z",fill:"#9d5025"}),(0,l.jsx)("path",{d:"M58.117 39.981H20.342v33.824l37.775-14.078V39.981z",fill:"#f58534"}),(0,l.jsx)("path",{d:"M26.019 76.703V39.981h24.602l11.803 24.771L32.49 80.001l-6.471-3.297z",fill:"#9d5025"}),(0,l.jsx)("path",{d:"M32.49 80.001v-40.02h32.5v23.464l-32.5 16.556zM65 31.932l-32.5-5.697V0L65 16.556v15.376z",fill:"#f58534"}),(0,l.jsx)("path",{d:"M0 31.932l32.5-5.697V0L0 16.556v15.376z",fill:"#9d5025"})]})})]})},v=n(72473);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h,f,g=8*n(70515).iI;!function(e){e.AWS_EMR="AWS_EMR",e.STANDALONE_CLUSTER="STANDALONE_CLUSTER"}(h||(h={})),function(e){e.CONNECTION="CONNECTION",e.RESOURCES="RESOURCES",e.MONITORING="MONITORING",e.SYSTEM="SYSTEM"}(f||(f={}));var j=(d={},(0,i.Z)(d,f.CONNECTION,"Connection"),(0,i.Z)(d,f.RESOURCES,"Resources"),(0,i.Z)(d,f.MONITORING,"Monitoring"),(0,i.Z)(d,f.SYSTEM,"System"),d),x=(u={},(0,i.Z)(u,h.AWS_EMR,"AWS EMR"),(0,i.Z)(u,h.STANDALONE_CLUSTER,"Standalone cluster"),u),b=(s={},(0,i.Z)(s,h.AWS_EMR,"Spark"),(0,i.Z)(s,h.STANDALONE_CLUSTER,"Spark"),s),_=(a={},(0,i.Z)(a,h.AWS_EMR,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;return(0,l.jsx)(c,{height:e})})),(0,i.Z)(a,h.STANDALONE_CLUSTER,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;return(0,l.jsx)(v.Hm,{size:e,warning:!0})})),a),y=[{buildPayload:function(e){return{emr_config:null,spark_config:m({app_name:"",spark_master:"local"},null===e||void 0===e?void 0:e.spark_config)}},displayName:x[h.STANDALONE_CLUSTER],documentationHref:"https://docs.mage.ai/integrations/spark-pyspark#standalone-spark-cluster",kicker:b[h.STANDALONE_CLUSTER],renderIcon:_[h.STANDALONE_CLUSTER],uuid:h.STANDALONE_CLUSTER},{buildPayload:function(e){return{emr_config:m({master_instance_type:""},null===e||void 0===e?void 0:e.emr_config),spark_config:m({app_name:""},null===e||void 0===e?void 0:e.spark_config)}},displayName:x[h.AWS_EMR],documentationHref:"https://docs.mage.ai/integrations/spark-pyspark#aws",kicker:b[h.AWS_EMR],renderIcon:_[h.AWS_EMR],uuid:h.AWS_EMR}],k={default:!0,monospace:!0,preWrap:!0,small:!0}},10332:function(e,t,n){n.d(t,{d:function(){return u},s:function(){return s}});var i=n(75499),l=n(30160),r=n(8970),o=n(42122),d=n(28598);function u(e){if(!(0,o.Qr)((null===e||void 0===e?void 0:e.spark_config)||{}))return(0,o.Qr)((null===e||void 0===e?void 0:e.emr_config)||{})?r.B2.STANDALONE_CLUSTER:r.B2.AWS_EMR}function s(e){return(0,d.jsx)(i.Z,{columnFlex:[null,1],columns:[{uuid:"Attribute"},{uuid:"Value"}],rows:e.map((function(e){return[(0,d.jsx)(l.ZP,{monospace:!0,muted:!0,small:!0,children:e[0]},"attribute"),(0,d.jsx)(l.ZP,{monospace:!0,muted:!0,small:!0,children:e[1]},"value")]}))})}},88422:function(e,t,n){var i,l,r,o,d;n.d(t,{CN:function(){return i},Dd:function(){return l},oD:function(){return d},q:function(){return o}}),function(e){e.FAILED="FAILED",e.RUNNING="RUNNING",e.SUCCEEDED="SUCCEEDED"}(i||(i={})),function(e){e.COMPLETE="COMPLETE",e.SKIPPED="SKIPPED"}(l||(l={})),function(e){e.NODE_LOCAL="NODE_LOCAL",e.PROCESS_LOCAL="PROCESS_LOCAL"}(r||(r={})),function(e){e.SUCCESS="SUCCESS"}(o||(o={})),function(e){e.COMPLETED="COMPLETED"}(d||(d={}))}}]);
|
mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-0873e170ef7d6303.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3419],{23192:function(n,e,t){t.d(e,{fi:function(){return B},lG:function(){return Y}});var o=t(82394),r=t(75582),i=t(82684),u=t(12691),c=t.n(u),l=t(34376),a=t.n(l),d=t(38626),s=t(69864),p=t(40761),f=t(41143),v=t(71180),b=t(39867),h=t(55485),m=t(48670),j=t(57653),g=t(38276),O=t(75499),x=t(30160),y=t(12468),P=t(35686),Z=t(89706),k=t(11498),_=t(72473),S=t(81655),C=t(70515),w=t(3917),L=t(55283),T=t(86735),D=t(72619),R=t(74052),M=t(69419),I=t(70320),E=t(28598);function N(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function A(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?N(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):N(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var Y=[0,1,3,4,5],B={0:"status",1:"block_uuid",3:"created_at",4:"started_at",5:"completed_at"};e.ZP=function(n){var e=n.blockRuns,t=n.onClickRow,o=n.pipeline,u=n.selectedRun,l=n.setErrors,N=n.sortableColumnIndexes,Y=(0,I.q)(),B=(0,i.useContext)(d.ThemeContext),F=(0,i.useState)(null),U=F[0],X=F[1],H=(0,i.useState)(null),Q=H[0],G=H[1],z=o||{},J=z.uuid,K=z.type,q=(0,i.useMemo)((function(){return o.blocks||[]}),[o]),V=(0,i.useMemo)((function(){return(0,T.HK)(q,(function(n){return n.uuid}))}),[q]),$=(0,i.useMemo)((function(){return j.qL.INTEGRATION===K}),[K]),W=(0,i.useMemo)((function(){return j.qL.PYTHON===K}),[K]),nn=(0,M.iV)(),en=null===nn||void 0===nn?void 0:nn[S.lG.SORT_COL_IDX],tn=(0,i.useMemo)((function(){return en?{columnIndex:+en,sortDirection:(null===nn||void 0===nn?void 0:nn[S.lG.SORT_DIRECTION])||S.sh.ASC}:void 0}),[nn,en]),on=(0,i.useMemo)((function(){var n,e;return null===(n=new p.Z)||void 0===n||null===(e=n.decodedToken)||void 0===e?void 0:e.token}),[]),rn=(0,s.Db)((function(n){var e=n.blockUUID,t=n.pipelineRunId;return P.ZP.block_outputs.pipelines.downloads.detailAsync(null===o||void 0===o?void 0:o.uuid,e,{pipeline_run_id:t,token:on},{onDownloadProgress:function(n){return X((Number((null===n||void 0===n?void 0:n.loaded)||0)/1e6).toFixed(3))},responseType:k.E.BLOB})}),{onSuccess:function(n){return(0,D.wD)(n,{callback:function(n){G(null),(0,R.uS)(n,"block_output.".concat(Z.Lu.CSV))},onErrorCallback:function(n,e){return null===l||void 0===l?void 0:l({errors:e,response:n})}})}}),un=(0,r.Z)(rn,2),cn=un[0],ln=un[1].isLoading,an=Y?S.O$:{},dn=[{uuid:"Status"},{uuid:"Block"},{uuid:"Trigger"},A(A({},an),{},{uuid:"Created at"}),A(A({},an),{},{uuid:"Started at"}),A(A({},an),{},{uuid:"Completed at"}),{uuid:"Logs"}];return W&&dn.push({uuid:"Output"}),(0,E.jsx)(O.Z,{columnFlex:[1,2,2,1,1,1,null,null],columns:dn,isSelectedRow:function(n){return e[n].id===(null===u||void 0===u?void 0:u.id)},onClickRow:t,rows:null===e||void 0===e?void 0:e.map((function(n){var e,t,o,r,u=n||{},l=u.block_uuid,d=u.completed_at,s=u.created_at,p=u.id,j=u.pipeline_run_id,O=u.pipeline_schedule_id,P=u.pipeline_schedule_name,Z=u.started_at,k=u.status,T=l,D=T.split(":"),R=Q===p&&ln;$&&(T=D[0],o=D[1],r=D[2]);var M=V[T];M||(M=V[D[0]]);var I=[(0,i.createElement)(x.ZP,A(A({},(0,S.NC)(k)),{},{key:"".concat(p,"_status")}),k),(0,E.jsx)(c(),{as:"/pipelines/".concat(J,"/edit?block_uuid=").concat(T),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,E.jsxs)(m.Z,{bold:!0,fitContentWidth:!0,verticalAlignContent:!0,children:[(0,E.jsx)(b.Z,{color:(0,L.qn)(null===(e=M)||void 0===e?void 0:e.type,{blockColor:null===(t=M)||void 0===t?void 0:t.color,theme:B}).accent,size:1.5*C.iI,square:!0}),(0,E.jsx)(g.Z,{mr:1}),(0,E.jsxs)(x.ZP,{monospace:!0,sky:!0,children:[T,o&&":",o&&(0,E.jsx)(x.ZP,{default:!0,inline:!0,monospace:!0,children:o}),r>=0&&":",r>=0&&(0,E.jsx)(x.ZP,{default:!0,inline:!0,monospace:!0,children:r})]})]})},"".concat(p,"_block_uuid")),(0,E.jsx)(c(),{as:"/pipelines/".concat(J,"/triggers/").concat(O),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,E.jsx)(m.Z,{bold:!0,sky:!0,children:P})},"".concat(p,"_trigger")),(0,E.jsx)(x.ZP,{default:!0,monospace:!0,small:!0,title:s?(0,w._6)(s):null,children:Y?(0,w.XG)(s,Y):(0,w.d$)(s,{includeSeconds:!0})},"".concat(p,"_created_at")),(0,E.jsx)(x.ZP,{default:!0,monospace:!0,small:!0,title:Z?(0,w._6)(Z):null,children:Z?Y?(0,w.XG)(Z,Y):(0,w.d$)(Z,{includeSeconds:!0}):(0,E.jsx)(E.Fragment,{children:"\u2014"})},"".concat(p,"_started_at")),(0,E.jsx)(x.ZP,{default:!0,monospace:!0,small:!0,title:d?(0,w._6)(d):null,children:d?Y?(0,w.XG)(d,Y):(0,w.d$)(d,{includeSeconds:!0}):(0,E.jsx)(E.Fragment,{children:"\u2014"})},"".concat(p,"_completed_at")),(0,E.jsx)(v.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return a().push("/pipelines/".concat(J,"/logs?block_run_id[]=").concat(p))},children:(0,E.jsx)(_.UL,{default:!0,size:2*C.iI})},"".concat(p,"_logs"))];return W&&I.push((0,E.jsx)(h.ZP,{alignItems:"center",justifyContent:"center",children:(0,E.jsx)(y.Z,{appearBefore:!0,autoHide:!R,block:!0,forceVisible:R,label:R?"".concat(U||0,"mb downloaded..."):"Save block run output as CSV file (not supported for dynamic blocks)",size:null,children:(0,E.jsx)(v.ZP,{default:!0,disabled:!W||!(f.V.COMPLETED===k)||ln,iconOnly:!0,loading:R,noBackground:!0,onClick:function(){X(null),G(p),cn({blockUUID:T,pipelineRunId:j})},children:(0,E.jsx)(_.vc,{default:!0,size:2*C.iI})})})},"".concat(p,"_save_output"))),I})),sortableColumnIndexes:N,sortedColumn:tn,uuid:"block-runs"})}},74052:function(n,e,t){t.d(e,{Dp:function(){return h},OF:function(){return m},Q9:function(){return g},Rt:function(){return f},Rz:function(){return x},h8:function(){return j},k1:function(){return v},uS:function(){return O},zv:function(){return y}});var o=t(21831),r=t(82394),i=t(48339),u=t(53808),c=t(3917),l=t(86735),a=t(81728),d=t(70320);function s(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function p(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?s(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function f(n){var e={},t={};return null===n||void 0===n||n.forEach((function(n){var o=n.content,r=n.outputs,u=n.type,c=n.uuid;(null===r||void 0===r?void 0:r.length)>=1&&(e[c]=r.map((function(n){if("object"===typeof n){var e=n||{},t=e.sample_data,o=e.shape,r=e.text_data,u=e.type;return t?{data:p({shape:o},t),type:u}:r&&(0,a.Pb)(r)?JSON.parse(r):r}return{data:String(n),type:i.Gi.TEXT}}))),t[u]||(t[u]={}),t[u][c]=o})),{content:t,messages:e}}function v(n,e,t){n.forEach((function(n){(0,u.t8)("".concat(t,"/").concat(n.uuid,"/codeCollapsed"),(0,u.Od)("".concat(e,"/").concat(n.uuid,"/codeCollapsed"))),(0,u.t8)("".concat(t,"/").concat(n.uuid,"/outputCollapsed"),(0,u.Od)("".concat(e,"/").concat(n.uuid,"/outputCollapsed")))}))}function b(n){return"".concat(n,"/").concat(u.kP)}function h(n){return(0,u.U2)(b(n),[])}function m(n,e){var t=h(n);t.includes(e)||(0,u.t8)(b(n),[].concat((0,o.Z)(t),[e]))}function j(n,e){var t=h(n).filter((function(n){return n!==e}));(0,u.t8)(b(n),t)}function g(n,e){var t=(0,l.HK)(e,(function(n){return n.uuid}));return n.map((function(n){return t[n]})).filter((function(n){return!!n}))}var O=function(n,e){var t=window.URL.createObjectURL(n),o=document.createElement("a");o.href=t,o.download=e,document.body.appendChild(o),o.click(),o.remove()};function x(n,e){var t,o=(0,d.q)(),r=null===e||void 0===e?void 0:e.isPipelineUpdating,i=null===e||void 0===e?void 0:e.pipelineContentTouched,u=null===e||void 0===e?void 0:e.pipelineLastSaved;if(i)t="Unsaved changes";else if(r)t="Saving changes...";else if(u){var l=(0,c.JX)(Number(u)/1e3);null!==n&&void 0!==n&&n.updated_at&&(l=(0,c.XG)(null===n||void 0===n?void 0:n.updated_at,o)),t="Last saved ".concat(l)}else t="All changes saved";return t}function y(n){var e=n.type,t=n.uuid;return"".concat(e,"s/").concat(t,".py")}},8955:function(n,e,t){t.d(e,{G7:function(){return y},ZP:function(){return P},u$:function(){return g}});var o=t(75582),r=t(82394),i=t(26304),u=t(90299),c=t(9134),l=t(24138),a=t(38276),d=t(30160),s=t(75499),p=t(70515),f=t(16488),v=t(42122),b=t(28598),h=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function m(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function j(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?m(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var g=76,O={uuid:"Run details"},x={uuid:"Dependency tree"},y=[x,O];function P(n){var e=n.height,t=n.heightOffset,r=n.pipeline,m=n.selectedRun,P=n.selectedTab,Z=n.setSelectedTab,k=j({},(0,i.Z)(n,h));m?k.blockStatus=(0,f.IJ)(null===m||void 0===m?void 0:m.block_runs):k.noStatus=!0;var _=(0,v.Kn)(null===m||void 0===m?void 0:m.variables)?j({},null===m||void 0===m?void 0:m.variables):(null===m||void 0===m?void 0:m.variables)||{},S=null===m||void 0===m?void 0:m.event_variables;if(S&&(0,v.Kn)(S)&&!(0,v.Qr)(S))if((0,v.Kn)(_)&&_.hasOwnProperty("event")){var C=(0,v.Kn)(_.event)?_.event:{};_.event=j(j({},C),S)}else _.event=j({},S);var w=[];_&&JSON.stringify(_,null,2).split("\n").forEach((function(n){w.push(" ".concat(n))}));var L=m&&[["Run ID",null===m||void 0===m?void 0:m.id],["Variables",(0,b.jsx)(c.Z,{language:"json",small:!0,source:w.join("\n")},"variable_value")]],T=m&&(0,b.jsx)(a.Z,{pb:p.cd,px:p.cd,children:(0,b.jsx)(s.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(n){return 1===n?"100px":null},rows:L.map((function(n,e){var t=(0,o.Z)(n,2),r=t[0],i=t[1];return[(0,b.jsx)(d.ZP,{monospace:!0,muted:!0,children:r},"key_".concat(e)),(0,b.jsx)(d.ZP,{monospace:!0,textOverflow:!0,children:i},"val_".concat(e))]})),uuid:"LogDetail"})}),D=P&&Z;return(0,b.jsxs)(b.Fragment,{children:[D&&(0,b.jsx)(a.Z,{py:p.cd,children:(0,b.jsx)(u.Z,{onClickTab:Z,selectedTabUUID:null===P||void 0===P?void 0:P.uuid,tabs:y})}),(!D||x.uuid===(null===P||void 0===P?void 0:P.uuid))&&(0,b.jsx)(l.ZP,j(j({},k),{},{height:e,heightOffset:(t||0)+(D?g:0),pipeline:r})),O.uuid===(null===P||void 0===P?void 0:P.uuid)&&T]})}},55072:function(n,e,t){t.d(e,{Et:function(){return p},Q:function(){return s}});t(82684);var o=t(71180),r=t(55485),i=t(38276),u=t(31748),c=t(72473),l=t(79633),a=t(70515),d=t(28598),s=30,p=9;e.ZP=function(n){var e=n.page,t=n.maxPages,s=n.onUpdate,p=n.totalPages,f=[],v=t;if(v>p)f=Array.from({length:p},(function(n,e){return e}));else{var b=Math.floor(v/2),h=e-b;e+b>=p?(h=p-v+2,v-=2):e-b<=0?(h=0,v-=2):(v-=4,h=e-Math.floor(v/2)),f=Array.from({length:v},(function(n,e){return e+h}))}return(0,d.jsx)(d.Fragment,{children:p>0&&(0,d.jsxs)(r.ZP,{alignItems:"center",children:[(0,d.jsx)(o.ZP,{disabled:0===e,onClick:function(){return s(e-1)},children:(0,d.jsx)(c.Hd,{size:1.5*a.iI,stroke:u.Av})}),!f.includes(0)&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(i.Z,{ml:1,children:(0,d.jsx)(o.ZP,{borderLess:!0,noBackground:!0,onClick:function(){return s(0)},children:1})},0),!f.includes(1)&&(0,d.jsx)(i.Z,{ml:1,children:(0,d.jsx)(o.ZP,{noBackground:!0,noPadding:!0,notClickable:!0,children:"..."})},0)]}),f.map((function(n){return(0,d.jsx)(i.Z,{ml:1,children:(0,d.jsx)(o.ZP,{backgroundColor:n===e&&l.a$,borderLess:!0,noBackground:!0,notClickable:n===e,onClick:function(){n!==e&&s(n)},children:n+1})},n)})),!f.includes(p-1)&&(0,d.jsxs)(d.Fragment,{children:[!f.includes(p-2)&&(0,d.jsx)(i.Z,{ml:1,children:(0,d.jsx)(o.ZP,{noBackground:!0,noPadding:!0,notClickable:!0,children:"..."})},0),(0,d.jsx)(i.Z,{ml:1,children:(0,d.jsx)(o.ZP,{borderLess:!0,noBackground:!0,onClick:function(){return s(p-1)},children:p})},p-1)]}),(0,d.jsx)(i.Z,{ml:1}),(0,d.jsx)(o.ZP,{disabled:e===p-1,onClick:function(){return s(e+1)},children:(0,d.jsx)(c.Kw,{size:1.5*a.iI,stroke:u.Av})})]})})}},89706:function(n,e,t){t.d(e,{JD:function(){return b},Lu:function(){return i},PF:function(){return p},dT:function(){return u},n6:function(){return a},nB:function(){return v},oy:function(){return f},xF:function(){return s}});var o,r,i,u,c=t(82394),l=t(44425);!function(n){n.CSV="csv",n.JSON="json",n.MD="md",n.PY="py",n.R="r",n.SH="sh",n.SQL="sql",n.TXT="txt",n.YAML="yaml",n.YML="yml"}(i||(i={})),function(n){n.INIT_PY="__init__.py",n.METADATA_YAML="metadata.yaml",n.REQS_TXT="requirements.txt"}(u||(u={}));var a=[i.PY,i.SQL],d=[i.JSON,i.MD,i.PY,i.R,i.SH,i.SQL,i.TXT,i.YAML,i.YML],s=new RegExp(d.map((function(n){return".".concat(n,"$")})).join("|")),p=(new RegExp(d.map((function(n){return".".concat(n,"$")})).join("|")),"charts"),f="pipelines",v=(o={},(0,c.Z)(o,i.MD,l.t6.MARKDOWN),(0,c.Z)(o,i.JSON,i.JSON),(0,c.Z)(o,i.PY,l.t6.PYTHON),(0,c.Z)(o,i.R,l.t6.R),(0,c.Z)(o,i.SQL,l.t6.SQL),(0,c.Z)(o,i.TXT,"text"),(0,c.Z)(o,i.YAML,l.t6.YAML),(0,c.Z)(o,i.YML,l.t6.YAML),o),b=(r={},(0,c.Z)(r,l.t6.MARKDOWN,i.MD),(0,c.Z)(r,l.t6.PYTHON,i.PY),(0,c.Z)(r,l.t6.R,i.R),(0,c.Z)(r,l.t6.SQL,i.SQL),(0,c.Z)(r,l.t6.YAML,i.YAML),(0,c.Z)(r,"text",i.TXT),r)},9134:function(n,e,t){var o=t(82684),r=t(21124),i=t(68432),u=t(38626),c=t(65292),l=t(44897),a=t(95363),d=t(70515),s=t(28598);e.Z=function(n){var e=n.language,t=n.maxWidth,p=n.showLineNumbers,f=n.small,v=n.source,b=n.wrapLines,h=(0,o.useContext)(u.ThemeContext);function m(n){var o=n.value;return(0,s.jsx)(i.Z,{customStyle:{backgroundColor:(h.background||l.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:a.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,maxWidth:t,paddingBottom:2*d.iI,paddingTop:2*d.iI},language:e,lineNumberStyle:{color:(h.content||l.Z.content).muted},showLineNumbers:p,style:c._4,useInlineStyles:!0,wrapLines:b,children:o})}return(0,s.jsx)(r.D,{components:{code:function(n){var e=n.children;return(0,s.jsx)(m,{value:e})}},children:v})}}}]);
|
mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-9e1105393a3be0de.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3943],{4611:function(e,n,t){t.d(n,{f:function(){return o}});var i=t(38626),r=t(44897),u=t(70515),l=t(42631),o=i.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*u.iI,l.TR,2*u.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||r.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||r.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},53943:function(e,n,t){var i=t(82394),r=t(75582),u=t(12691),l=t.n(u),o=t(69864),c=t(82684),a=t(34376),s=t(71180),d=t(70652),p=t(50724),f=t(97618),h=t(55485),v=t(48670),m=t(44265),g=t(89515),x=t(38276),b=t(4190),_=t(75499),j=t(48381),E=t(30160),I=t(35686),O=t(44897),y=t(42631),P=t(72473),Z=t(81655),C=t(72191),w=t(39643),k=t(4611),N=t(30229),D=t(31608),T=t(70515),L=t(3917),A=t(16488),R=t(86735),S=t(50178),V=t(72619),F=t(3314),U=t(69419),M=t(70320),Y=t(44688),H=t(28598);function G(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?G(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):G(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var z={monospace:!0,small:!0};function X(e){var n=e.cancelingRunId,t=e.disabled,i=e.isLoadingCancelPipeline,u=e.onCancel,l=e.onSuccess,a=e.pipelineRun,d=e.setCancelingRunId,f=e.setErrors,v=e.setShowConfirmationId,g=e.showConfirmationId,_=(0,S.Ct)(),j=a||{},Z=j.id,w=j.pipeline_schedule_id,D=j.pipeline_schedule_token,T=j.pipeline_schedule_type,L=j.status,A=i&&Z===n&&m.VO.RUNNING===L,R=(0,U.iV)(),F=(0,c.useMemo)((function(){return(null!==R&&void 0!==R&&R.page?+R.page:0)>0}),[null===R||void 0===R?void 0:R.page]),M=(0,o.Db)(N.Xm.API===T&&D?I.ZP.pipeline_runs.pipeline_schedules.useCreateWithParent(w,D):I.ZP.pipeline_runs.pipeline_schedules.useCreate(w),{onSuccess:function(e){return(0,V.wD)(e,{callback:function(){l()},onErrorCallback:function(e,n){return null===f||void 0===f?void 0:f({errors:n,response:e})}})}}),Y=(0,r.Z)(M,1)[0],G=(0,c.useCallback)((function(){v(null),Y({pipeline_run:{backfill_id:null===a||void 0===a?void 0:a.backfill_id,event_variables:(null===a||void 0===a?void 0:a.event_variables)||{},execution_date:null===a||void 0===a?void 0:a.execution_date,pipeline_schedule_id:null===a||void 0===a?void 0:a.pipeline_schedule_id,pipeline_uuid:null===a||void 0===a?void 0:a.pipeline_uuid,variables:(null===a||void 0===a?void 0:a.variables)||{}}})}),[Y,a,v]),B=(0,c.useCallback)((function(){v(null),d(Z),u({id:Z,status:m.VO.CANCELLED})}),[u,Z,d,v]);return(0,H.jsxs)("div",{style:{position:"relative"},children:[(0,H.jsx)(s.ZP,{backgroundColor:A&&O.Z.accent.yellow,beforeIcon:m.VO.INITIAL!==L&&!t&&(0,H.jsxs)(H.Fragment,{children:[m.VO.COMPLETED===L&&(0,H.jsx)(P.Jr,{size:C.bL}),[m.VO.FAILED,m.VO.CANCELLED].includes(L)&&(0,H.jsx)(P.Py,{inverted:m.VO.CANCELLED===L&&!_,size:C.bL}),[m.VO.RUNNING].includes(L)&&(0,H.jsx)(b.Z,{color:A?O.Z.status.negative:O.Z.monotone.white,small:!0})]}),borderRadius:"".concat(y.D7,"px"),danger:m.VO.FAILED===L&&!_,default:m.VO.INITIAL===L,disabled:t||_,loading:!a,onClick:function(e){e.stopPropagation(),v(Z)},padding:"6px",primary:m.VO.RUNNING===L&&!A&&!_,warning:m.VO.CANCELLED===L&&!_,children:t?"Ready":A?"Canceling":m.Do[L]}),(0,H.jsx)(p.Z,{onClickOutside:function(){return v(null)},open:g===Z,children:(0,H.jsxs)(k.f,{children:[[m.VO.RUNNING,m.VO.INITIAL].includes(L)&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(E.ZP,{bold:!0,color:"#9ECBFF",children:"Run is in progress"}),(0,H.jsx)(x.Z,{mb:1}),(0,H.jsxs)(E.ZP,{children:["This pipeline run is currently ongoing. Retrying will cancel",(0,H.jsx)("br",{}),"the current pipeline run."]}),(0,H.jsx)(E.ZP,{}),(0,H.jsx)(x.Z,{mt:1,children:(0,H.jsxs)(h.ZP,{children:[(0,H.jsx)(s.ZP,{onClick:function(){B(),G()},children:"Retry run"}),(0,H.jsx)(x.Z,{ml:1}),(0,H.jsx)(s.ZP,{onClick:B,children:"Cancel run"})]})})]}),[m.VO.CANCELLED,m.VO.FAILED,m.VO.COMPLETED].includes(L)&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(E.ZP,{bold:!0,color:"#9ECBFF",children:["Run ",L]}),(0,H.jsx)(x.Z,{mb:1}),(0,H.jsxs)(E.ZP,{children:["Retry the run with changes you have made to the pipeline.",F?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)("br",{}),"Note that the retried run may appear on a previous page."]}):null]}),(0,H.jsx)(x.Z,{mb:1}),(0,H.jsx)(s.ZP,{onClick:G,children:"Retry run"})]})]})})]})}n.Z=function(e){var n=e.allowBulkSelect,t=e.allowDelete,u=e.deletePipelineRun,b=e.disableKeyboardNav,O=e.disableRowSelect,k=e.emptyMessage,N=void 0===k?"No runs available":k,U=e.fetchPipelineRuns,G=e.hideTriggerColumn,K=e.includePipelineTags,Q=e.onClickRow,W=e.pipelineRuns,q=e.selectedRun,J=e.selectedRuns,$=e.setSelectedRun,ee=e.setSelectedRuns,ne=e.setErrors,te=(0,a.useRouter)(),ie=(0,S.Ct)(),re=(0,M.q)(),ue=(0,c.useRef)({}),le=(0,c.useState)(null),oe=le[0],ce=le[1],ae=(0,c.useState)(null),se=ae[0],de=ae[1],pe=(0,c.useState)(null),fe=pe[0],he=pe[1],ve=(0,c.useState)(0),me=ve[0],ge=ve[1],xe=(0,c.useState)(0),be=xe[0],_e=xe[1],je=(0,o.Db)((function(e){var n=e.id,t=e.status;return I.ZP.pipeline_runs.useUpdate(n)({pipeline_run:{status:t}})}),{onSuccess:function(e){return(0,V.wD)(e,{callback:function(){ce(null),null===U||void 0===U||U()},onErrorCallback:function(e,n){ce(null),null===ne||void 0===ne||ne({errors:n,response:e})}})}}),Ee=(0,r.Z)(je,2),Ie=Ee[0],Oe=Ee[1].isLoading,ye="PipelineDetail/Runs/Table",Pe="pipeline-runs",Ze=(0,c.useCallback)((function(e){if(!e)return null;var n=W.findIndex((function(n){return n.id===e.id}));return n>=0?n:null}),[W]),Ce=(0,Y.y)(),we=Ce.registerOnKeyDown,ke=Ce.unregisterOnKeyDown;(0,c.useEffect)((function(){return function(){ke(ye)}}),[ke,ye]),we(ye,(function(e,n){var t=n[w.Bu],i=n[w.kD];$&&!b&&(t||i)&&$((function(n){var r=Ze(n);if(null!==r){if(e.repeat)return e.preventDefault(),n;if(t){var u=r-1;return u<0&&(u=W.length-1),W[u]}if(i){var l=r+1;return l>=W.length&&(l=0),W[l]}}return n}))}),[W,$]),(0,c.useEffect)((function(){var e=Ze(q);if(null!==e){var n=(0,Z.w4)({rowIndex:e,uuid:Pe}),t=document.getElementById(n);t&&t.scrollIntoView({behavior:"smooth",block:"center"})}}),[Ze,q]);var Ne=re?Z.O$:{},De=[null,1],Te=[{uuid:"Status"},{uuid:"Pipeline"}];G||(De.push(1),Te.push({uuid:"Trigger"})),K&&(De.push(null),Te.push({uuid:"Pipeline tags"})),De.push.apply(De,[1,1,1,null,null]),Te.push.apply(Te,[B(B({},Ne),{},{uuid:"Execution date"}),B(B({},Ne),{},{uuid:"Started at"}),B(B({},Ne),{},{uuid:"Completed at"}),{uuid:"Execution time"},{uuid:"Block runs"},{uuid:"Logs"}]),t&&!ie&&(De.push.apply(De,[null]),Te.push({label:function(){return""},uuid:"Delete"}));var Le=(0,c.useMemo)((function(){return W.every((function(e){var n=e.id;return!(null===J||void 0===J||!J[n])}))}),[W,J]);n&&(De.unshift(null),Te.unshift({label:function(){return(0,H.jsx)(d.Z,{checked:Le,onClick:function(){var e=(0,R.HK)(W||[],(function(e){return e.id}));ee(Le?{}:e)}})},uuid:"Selected"})),!O&&Q&&(De.push(null),Te.push({label:function(){return""},uuid:"action"}));var Ae=(0,c.useCallback)((function(e,n){if(Q&&ee&&n&&n.metaKey){var t=W[e];ee((function(e){var n=!(null===e||void 0===e||!e[t.id]);return B(B({},e),{},(0,i.Z)({},t.id,n?null:t))}))}else Q&&Q(e)}),[Q,W,ee]);return(0,H.jsx)(D.cl,{minHeight:30*T.iI,overflowVisible:!!se,children:0===(null===W||void 0===W?void 0:W.length)?(0,H.jsx)(x.Z,{px:3,py:1,children:(0,H.jsx)(E.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:N})}):(0,H.jsx)(_.Z,{columnFlex:De,columns:Te,isSelectedRow:function(e){return!O&&W[e].id===(null===q||void 0===q?void 0:q.id)},onClickRow:O?null:Ae,rowVerticalPadding:6,rows:null===W||void 0===W?void 0:W.map((function(e,r){var o=e.block_runs_count,a=e.completed_block_runs_count,b=e.completed_at,_=e.execution_date,I=e.id,w=e.pipeline_schedule_id,k=e.pipeline_schedule_name,N=e.pipeline_tags,D=e.pipeline_uuid,T=e.started_at,R=e.status;ue.current[I]=(0,c.createRef)();var S,V,M=!I&&!R,Y="".concat(a," out of ").concat(o," block runs completed"),q=(0,H.jsx)(j.Z,{tags:null===N||void 0===N?void 0:N.map((function(e){return{uuid:e}}))},"row_pipeline_tags_".concat(r)),$=[];r>0&&W[r-1].execution_date===e.execution_date&&W[r-1].pipeline_schedule_id===e.pipeline_schedule_id?($=[(0,H.jsx)(x.Z,{ml:1,children:(0,H.jsxs)(h.ZP,{alignItems:"center",children:[(0,H.jsx)(P.TT,{size:C.bL,useStroke:!0}),(0,H.jsx)(s.ZP,{borderRadius:"".concat(y.D7,"px"),notClickable:!0,padding:"6px",children:(0,H.jsx)(E.ZP,{muted:!0,children:m.Do[R]})})]})},"row_status"),(0,H.jsx)(E.ZP,{default:!0,monospace:!0,muted:!0,children:D},"row_pipeline_uuid")],G||$.push((0,H.jsx)(E.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_trigger_retry")),K&&$.push(q),(S=$).push.apply(S,[(0,H.jsx)(E.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_date_retry"),(0,c.createElement)(E.ZP,B(B({},z),{},{key:"row_started_at",muted:!0,title:T?(0,L._6)(T):null}),T?re?(0,L.XG)(T,re):(0,A.Vx)(T):(0,H.jsx)(H.Fragment,{children:"\u2014"})),(0,c.createElement)(E.ZP,B(B({},z),{},{key:"row_completed_at",muted:!0,title:b?(0,L._6)(b):null}),b?re?(0,L.XG)(b,re):(0,A.Vx)(b):(0,H.jsx)(H.Fragment,{children:"\u2014"})),(0,c.createElement)(E.ZP,B(B({},z),{},{default:!0,key:"row_execution_time",title:T&&b?(0,L.Qf)({endDatetime:b,showFullFormat:!0,startDatetime:T}):null}),T&&b?(0,L.Qf)({endDatetime:b,startDatetime:T}):(0,H.jsx)(H.Fragment,{children:"\u2014"})),(0,H.jsx)(l(),{as:"/pipelines/".concat(D,"/runs/").concat(I),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,H.jsx)(v.Z,{bold:!0,muted:!0,title:Y,children:"".concat(a," / ").concat(o)})},"row_block_runs"),(0,H.jsx)(s.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(e){e.stopPropagation(),te.push("/pipelines/".concat(D,"/logs?pipeline_run_id[]=").concat(I))},children:(0,H.jsx)(P.UL,{default:!0,size:C.bL})},"row_logs")])):($=[(0,H.jsx)(X,{cancelingRunId:oe,disabled:M,isLoadingCancelPipeline:Oe,onCancel:Ie,onSuccess:U,pipelineRun:e,setCancelingRunId:ce,setErrors:ne,setShowConfirmationId:de,showConfirmationId:se},"row_retry_button"),(0,H.jsx)(E.ZP,{default:!0,monospace:!0,children:D},"row_pipeline_uuid")],G||$.push((0,H.jsx)(l(),{as:"/pipelines/".concat(D,"/triggers/").concat(w),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,H.jsx)(v.Z,{bold:!0,sky:!0,children:k})},"row_trigger")),K&&$.push(q),(V=$).push.apply(V,[(0,c.createElement)(E.ZP,B(B({},z),{},{default:!0,key:"row_date",title:_?(0,L._6)(_):null}),_?re?(0,L.XG)(_,re):(0,A.Vx)(_):(0,H.jsx)(H.Fragment,{children:"\u2014"})),(0,c.createElement)(E.ZP,B(B({},z),{},{default:!0,key:"row_started_at",title:T?(0,L._6)(T):null}),T?re?(0,L.XG)(T,re):(0,A.Vx)(T):(0,H.jsx)(H.Fragment,{children:"\u2014"})),(0,c.createElement)(E.ZP,B(B({},z),{},{default:!0,key:"row_completed_at",title:b?(0,L._6)(b):null}),b?re?(0,L.XG)(b,re):(0,A.Vx)(b):(0,H.jsx)(H.Fragment,{children:"\u2014"})),(0,c.createElement)(E.ZP,B(B({},z),{},{default:!0,key:"row_execution_time",title:T&&b?(0,L.Qf)({endDatetime:b,showFullFormat:!0,startDatetime:T}):null}),T&&b?(0,L.Qf)({endDatetime:b,startDatetime:T}):(0,H.jsx)(H.Fragment,{children:"\u2014"})),(0,H.jsx)(l(),{as:"/pipelines/".concat(D,"/runs/").concat(I),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,H.jsx)(v.Z,{bold:!0,disabled:M,sky:!0,title:Y,children:M?"":"".concat(a," / ").concat(o)})},"row_block_runs"),(0,H.jsx)(s.ZP,{default:!0,disabled:M,iconOnly:!0,noBackground:!0,onClick:function(e){e.stopPropagation(),te.push("/pipelines/".concat(D,"/logs?pipeline_run_id[]=").concat(I))},children:(0,H.jsx)(P.UL,{default:!0,size:C.bL})},"row_logs")]));if(t&&!ie&&$.push((0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(s.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(e){var n,t,i,r;(0,F.j)(e),he(I),ge((null===(n=ue.current[I])||void 0===n||null===(t=n.current)||void 0===t?void 0:t.offsetTop)||0),_e((null===(i=ue.current[I])||void 0===i||null===(r=i.current)||void 0===r?void 0:r.offsetLeft)||0)},ref:ue.current[I],title:"Delete",children:(0,H.jsx)(P.rF,{default:!0,size:C.bL})}),(0,H.jsx)(p.Z,{onClickOutside:function(){return he(null)},open:fe===I,children:(0,H.jsx)(g.Z,{danger:!0,left:(be||0)-Z.nH,onCancel:function(){return he(null)},onClick:function(){he(null),u(I)},title:"Are you sure you want to delete this run (id ".concat(I,' for trigger "').concat(k,'")?'),top:(me||0)-(r<=1?Z.oz:Z.OK),width:Z.Xx})})]})),n){var le=!(null===J||void 0===J||!J[I]);$.unshift((0,H.jsx)(d.Z,{checked:le,onClick:function(n){n.stopPropagation(),ee((function(n){return B(B({},n),{},(0,i.Z)({},I,le?null:e))}))}},"selected-pipeline-run-".concat(I)))}return!O&&Q&&$.push((0,H.jsx)(f.Z,{flex:1,justifyContent:"flex-end",children:(0,H.jsx)(P._Q,{default:!0,size:C.bL})})),$})),uuid:Pe})})}},48381:function(e,n,t){var i=t(82684),r=t(31882),u=t(55485),l=t(30160),o=t(86735),c=t(28598);n.Z=function(e){var n=e.onClickTag,t=e.tags,a=void 0===t?[]:t,s=(0,i.useMemo)((function(){return(null===a||void 0===a?void 0:a.length)||0}),[a]),d=(0,i.useMemo)((function(){return(0,o.YC)(a||[],"uuid")}),[a]);return(0,c.jsx)(u.ZP,{alignItems:"center",flexWrap:"wrap",children:null===d||void 0===d?void 0:d.reduce((function(e,t){return e.push((0,c.jsx)("div",{style:{marginBottom:2,marginRight:s>=2?4:0,marginTop:2},children:(0,c.jsx)(r.Z,{onClick:n?function(){return n(t)}:null,small:!0,children:(0,c.jsx)(l.ZP,{children:t.uuid})})},"tag-".concat(t.uuid))),e}),[])})}},16488:function(e,n,t){t.d(n,{IJ:function(){return v},M8:function(){return y},Vx:function(){return _},XM:function(){return O},_U:function(){return h},eI:function(){return b},gU:function(){return E},lO:function(){return k},ri:function(){return g},tL:function(){return j},vJ:function(){return I},xH:function(){return x}});var i,r=t(82394),u=t(92083),l=t.n(u),o=t(3917),c=t(4383),a=t(30229),s=t(42122),d=t(86735);function p(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 f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var h=function(e){return!!e&&!Object.values(a.U5).includes(e)};function v(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,i=n.completed_at,u=n.started_at,o=n.status,c=null;u&&i&&(c=l()(i).valueOf()-l()(u).valueOf());return f(f({},e),{},(0,r.Z)({},t,{runtime:c,status:o}))}),{})}var m,g=function(e){var n=[{description:function(){return"This pipeline will run continuously on an interval or just once."},label:function(){return"Schedule"},uuid:a.Xm.TIME},{description:function(){return"This pipeline will run when a specific event occurs."},label:function(){return"Event"},uuid:a.Xm.EVENT},{description:function(){return"Run this pipeline when you make an API call."},label:function(){return"API"},uuid:a.Xm.API}];return e?n.slice(0,1):n};function x(e){var n=(0,s.gR)(e,[a.gm.INTERVAL,a.gm.TYPE]),t=e[a.gm.INTERVAL];t&&(n["schedule_interval[]"]=encodeURIComponent(t));var i=e[a.gm.TYPE];return i&&(n["schedule_type[]"]=i),n}function b(e){if(!e)return null;var n=new Date(l()(e).valueOf()),t=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());return new Date(t)}function _(e){return"string"!==typeof e?e:b(e.split("+")[0]).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(m||(m={}));var j=(i={},(0,r.Z)(i,m.DAY,86400),(0,r.Z)(i,m.HOUR,3600),(0,r.Z)(i,m.MINUTE,60),(0,r.Z)(i,m.SECOND,1),i);function E(e){var n=m.SECOND,t=e;return e%86400===0?(t/=86400,n=m.DAY):e%3600===0?(t/=3600,n=m.HOUR):e%60===0&&(t/=60,n=m.MINUTE),{time:t,unit:n}}function I(e,n){return e*j[n]}function O(e,n,t){var i="".concat(e.toISOString().split("T")[0]," ").concat(null===n||void 0===n?void 0:n.hour,":").concat(null===n||void 0===n?void 0:n.minute);if(null!==t&&void 0!==t&&t.includeSeconds&&(i=i.concat(":00")),null!==t&&void 0!==t&&t.localTimezone){var r=l()(e);r.set("hour",+(null===n||void 0===n?void 0:n.hour)||0),r.set("minute",+(null===n||void 0===n?void 0:n.minute)||0),r.set("second",0),i=r.format(o.lE),null!==t&&void 0!==t&&t.convertToUtc&&(i=(0,o.d$)(i,{includeSeconds:null===t||void 0===t?void 0:t.includeSeconds,utcFormat:!0}))}return i}function y(e){var n,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i="",r=!0;return r&&(t?i="".concat(window.origin,"/api/pipeline_schedules/").concat(null===e||void 0===e?void 0:e.id,"/api_trigger"):(i="".concat(window.origin,"/api/pipeline_schedules/").concat(null===e||void 0===e?void 0:e.id,"/pipeline_runs"),null!==e&&void 0!==e&&e.token&&(i="".concat(i,"/").concat(e.token)))),r&&(n=window.location.port)&&(i=i.replace(n,c.QT)),i}function P(e,n,t){return e.match(/[*,-/]/)?{additionalOffset:0,cronValue:e}:function(e,n,t){var i=t.indexOf(e),r=0;if(n<0)for(var u=0;u>n;u--)0===i?(i=t.length-1,r-=1):i-=1;else if(n>0)for(var l=0;l<n;l++)i===t.length-1?(i=0,r+=1):i+=1;return{additionalOffset:r,cronValue:String(t[i]||e)}}(+e,n,t)}var Z=(0,d.m5)(60),C=(0,d.m5)(24),w=(0,o.Cs)();function k(e,n){if(!e)return e;var t=l()().local().format("Z"),i=t.split(":"),r="-"===t[0],u=3===i[0].length?Number(i[0].slice(1)):Number(i[0]),o=Number(i[1]);(r&&!n||!r&&n)&&(u=-u,o=-o);var c=e.split(" "),a=c[0],s=c[1],d=c[2],p=P(a,o,Z),f=P(s,u+p.additionalOffset,C);if(c[0]=p.cronValue,c[1]=f.cronValue,0!==(null===f||void 0===f?void 0:f.additionalOffset)){var h=P(d,f.additionalOffset,w);c[2]=h.cronValue}return c.join(" ")}},44265:function(e,n,t){t.d(n,{Az:function(){return a},BF:function(){return c},Do:function(){return d},IK:function(){return o},P0:function(){return r},VO:function(){return l},sZ:function(){return s}});var i,r,u=t(82394),l=t(41143).V,o=[l.FAILED,l.COMPLETED,l.RUNNING,l.CANCELLED,l.INITIAL],c=[l.INITIAL,l.RUNNING],a=[l.CANCELLED,l.COMPLETED,l.FAILED],s="__mage_variables",d=(i={},(0,u.Z)(i,l.CANCELLED,"Cancelled"),(0,u.Z)(i,l.COMPLETED,"Done"),(0,u.Z)(i,l.FAILED,"Failed"),(0,u.Z)(i,l.INITIAL,"Ready"),(0,u.Z)(i,l.RUNNING,"Running"),i);!function(e){e.PIPELINE_UUID="pipeline_uuid[]",e.STATUS="status[]",e.TAG="pipeline_tag[]"}(r||(r={}))},30229:function(e,n,t){t.d(n,{TR:function(){return f},U5:function(){return c},Wb:function(){return p},Xm:function(){return u},Z4:function(){return a},fq:function(){return o},gm:function(){return s},kJ:function(){return d}});var i,r,u,l=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(u||(u={}));var o,c,a=(i={},(0,l.Z)(i,u.API,(function(){return"API"})),(0,l.Z)(i,u.EVENT,(function(){return"event"})),(0,l.Z)(i,u.TIME,(function(){return"schedule"})),i);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(o||(o={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly",e.ALWAYS_ON="@always_on"}(c||(c={}));var s,d,p=[c.ONCE,c.HOURLY,c.DAILY,c.WEEKLY,c.MONTHLY];!function(e){e.INTERVAL="frequency[]",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(s||(s={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(d||(d={}));var f=(r={},(0,l.Z)(r,d.CREATED_AT,"Created at"),(0,l.Z)(r,d.NAME,"Name"),(0,l.Z)(r,d.PIPELINE,"Pipeline"),(0,l.Z)(r,d.STATUS,"Active"),(0,l.Z)(r,d.TYPE,"Type"),r)},31882:function(e,n,t){var i=t(38626),r=t(71180),u=t(55485),l=t(30160),o=t(44897),c=t(72473),a=t(70515),s=t(61896),d=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((a.iI+s.Al)/2,"px;\n height: ").concat(1.5*a.iI+s.Al,"px;\n padding: ").concat(a.iI/1.5,"px ").concat(1.25*a.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((a.iI/2+s.Al)/2,"px;\n height: ").concat(s.Al+a.iI/2+2,"px;\n padding: ").concat(a.iI/4,"px ").concat(a.iI,"px;\n ")}),(function(e){return e.xsmall&&"\n border-radius: ".concat((a.iI/1+s.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,s=e.monospace,f=e.onClick,h=e.primary,v=e.small,m=e.xsmall;return(0,d.jsx)(p,{border:n,primary:h,small:v,xsmall:m,children:(0,d.jsx)(r.ZP,{basic:!0,disabled:i,noBackground:!0,noPadding:!0,onClick:f,transparent:!0,children:(0,d.jsxs)(u.ZP,{alignItems:"center",children:[t,o&&(0,d.jsx)(l.ZP,{monospace:s,small:v,xsmall:m,children:o}),!i&&f&&(0,d.jsx)("div",{style:{marginLeft:2}}),!i&&f&&(0,d.jsx)(c.x8,{default:h,muted:!h,size:v?a.iI:1.25*a.iI})]})})})}}}]);
|