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 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7519],{84649:function(e,t,n){n.d(t,{EN:function(){return P},FX:function(){return k},HS:function(){return j},Nk:function(){return h},Rd:function(){return f},SL:function(){return Z},Tj:function(){return _},UE:function(){return O},Yf:function(){return v},ZG:function(){return c},bC:function(){return b},n5:function(){return p},n8:function(){return w},w5:function(){return y},wj:function(){return m},wl:function(){return g},ze:function(){return x}});var i=n(38626),r=n(44897),o=n(42631),u=n(46684),d=n(70515),l=n(91437),a=n(47041),c=2.5*d.iI,s=40*d.iI,p=10*d.iI,f=i.default.div.withConfig({displayName:"indexstyle__ContainedStyle",componentId:"sc-8sk2qr-0"})([""," overflow:auto;"," "," ",""],a.w5,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).page,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-p,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width-p,"px;\n ")})),h=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-8sk2qr-1"})(["height:100%;position:relative;"]),b=i.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-8sk2qr-2"})(["position:fixed;width:","px;z-index:1;"," "," ",""],s,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-p,"px;\n ")}),(function(e){return!e.height&&"\n height: 100%;\n "})),v=i.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-8sk2qr-3"})(["padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;",""],1*d.iI,d.cd*d.iI,d.cd*d.iI,1*d.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n ")})),g=i.default.div.withConfig({displayName:"indexstyle__LinksContainerStyle",componentId:"sc-8sk2qr-4"})([""," overflow:auto;position:fixed;width:","px;",""],a.w5,s,(function(e){return"\n height: calc(100% - ".concat(55+(null!==e&&void 0!==e&&e.contained?p:u.Mz)+((null===e||void 0===e?void 0:e.heightOffset)||0),"px);\n ")})),m=i.default.div.withConfig({displayName:"indexstyle__NavLinkStyle",componentId:"sc-8sk2qr-5"})([""," padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;&:hover{cursor:pointer;}",""],(0,l.eR)(),1*d.iI,d.cd*d.iI,d.cd*d.iI,1*d.iI,(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||r.Z.background).codeTextarea,";\n ")})),x=i.default.div.withConfig({displayName:"indexstyle__IconStyle",componentId:"sc-8sk2qr-6"})([""," border-radius:","px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],(0,l.eR)(),o.n_,5*d.iI,1.25*d.iI,1.25*d.iI,5*d.iI,(function(e){return!e.backgroundColor&&"\n background-color: ".concat((e.theme.background||r.Z.background).chartBlock,";\n ")}),(function(e){return e.backgroundColor&&"\n background-color: ".concat(e.backgroundColor,";\n ")})),y=i.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-8sk2qr-7"})(["margin-left:","px;"],s),j=i.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-8sk2qr-8"})(["padding:","px;",""],d.cd*d.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||r.Z.borders).light,";\n ")})),w=i.default.div.withConfig({displayName:"indexstyle__CardsStyle",componentId:"sc-8sk2qr-9"})(["display:flex;flex-wrap:wrap;padding:","px;"],.75*d.iI),O=i.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-8sk2qr-10"})(["border-radius:","px;margin:","px;padding:","px;width:","px;&:hover{cursor:pointer;}",""],o.n_,.75*d.iI,2.5*d.iI,50*d.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border: 1px solid ").concat((e.theme.background||r.Z.background).chartBlock,";\n box-shadow: ").concat((e.theme.shadow||r.Z.shadow).frame,";\n ")})),_=i.default.div.withConfig({displayName:"indexstyle__CardTitleStyle",componentId:"sc-8sk2qr-11"})(["height:","px;"],2.5*d.iI),Z=i.default.div.withConfig({displayName:"indexstyle__CardDescriptionStyle",componentId:"sc-8sk2qr-12"})(["height:","px;margin-top:","px;"],2.5*d.iI*2,1*d.iI),P=i.default.div.withConfig({displayName:"indexstyle__TagsStyle",componentId:"sc-8sk2qr-13"})(["height:","px;margin-top:","px;overflow:hidden;"],3.5*d.iI,.5*d.iI),k=i.default.div.withConfig({displayName:"indexstyle__BreadcrumbsStyle",componentId:"sc-8sk2qr-14"})(["padding-bottom:","px;padding-top:","px;",""],1*d.iI,1*d.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||r.Z.borders).light,";\n ")}))},11302:function(e,t,n){n.d(t,{Nk:function(){return l},Yf:function(){return c},bC:function(){return a},ig:function(){return s},w5:function(){return p}});var i=n(38626),r=n(44897),o=n(70515),u=n(84649),d=(o.iI,40*o.iI),l=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-axgvn9-0"})(["height:100%;position:relative;"]),a=i.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-axgvn9-1"})(["overflow:auto;position:fixed;width:","px;z-index:1;"," "," ",""],d,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-u.n5,"px;\n ")}),(function(e){return!e.height&&"\n height: 100%;\n "})),c=i.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-axgvn9-2"})(["padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;width:100%;",""],1*o.iI,o.cd*o.iI,o.cd*o.iI,1*o.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n ")})),s=i.default.div.withConfig({displayName:"indexstyle__ButtonsStyle",componentId:"sc-axgvn9-3"})(["margin-top:","px;width:100%;",""],o.cd*o.iI,(function(e){return"\n border-top: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n ")})),p=i.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-axgvn9-4"})(["margin-left:","px;"],d)},94629:function(e,t,n){n.d(t,{Z:function(){return P}});var i=n(82394),r=n(21831),o=n(82684),u=n(50724),d=n(82555),l=n(97618),a=n(70613),c=n(68487),s=n(68899),p=n(28598);function f(e,t){var n=e.children,i=e.noPadding;return(0,p.jsx)(s.HS,{noPadding:i,ref:t,children:n})}var h=o.forwardRef(f),b=n(62547),v=n(82571),g=n(35686),m=n(98464),x=n(46684),y=n(70515),j=n(53808),w=n(19183);function O(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?O(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Z(e,t){var n,i=e.addProjectBreadcrumbToCustomBreadcrumbs,f=e.after,O=e.afterHeader,Z=e.afterHidden,P=e.afterWidth,k=e.afterWidthOverride,I=e.appendBreadcrumbs,C=e.before,S=e.beforeWidth,N=e.breadcrumbs,D=e.children,E=e.errors,A=e.headerMenuItems,M=e.headerOffset,q=e.hideAfterCompletely,T=e.mainContainerHeader,H=e.navigationItems,U=e.setAfterHidden,F=e.setErrors,B=e.subheaderChildren,W=e.subheaderNoPadding,R=e.title,L=e.uuid,z=(0,w.i)().width,G="dashboard_after_width_".concat(L),V="dashboard_before_width_".concat(L),Y=(0,o.useRef)(null),J=(0,o.useState)(k?P:(0,j.U2)(G,P)),K=J[0],X=J[1],Q=(0,o.useState)(!1),$=Q[0],ee=Q[1],te=(0,o.useState)(C?Math.max((0,j.U2)(V,S),13*y.iI):null),ne=te[0],ie=te[1],re=(0,o.useState)(!1),oe=re[0],ue=re[1],de=(0,o.useState)(null)[1],le=g.ZP.projects.list({},{revalidateOnFocus:!1}).data,ae=null===le||void 0===le?void 0:le.projects,ce={label:function(){var e;return null===ae||void 0===ae||null===(e=ae[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},se=[];N&&(i&&se.push(ce),se.push.apply(se,(0,r.Z)(N))),(null===N||void 0===N||!N.length||I)&&(null===ae||void 0===ae?void 0:ae.length)>=1&&(null!==N&&void 0!==N&&N.length||se.unshift({bold:!I,label:function(){return R}}),se.unshift(ce)),(0,o.useEffect)((function(){null===Y||void 0===Y||!Y.current||$||oe||null===de||void 0===de||de(Y.current.getBoundingClientRect().width)}),[$,K,oe,ne,Y,de,z]),(0,o.useEffect)((function(){$||(0,j.t8)(G,K)}),[Z,$,K,G]),(0,o.useEffect)((function(){oe||(0,j.t8)(V,ne)}),[oe,ne,V]);var pe=(0,m.Z)(P);return(0,o.useEffect)((function(){k&&pe!==P&&X(P)}),[k,P,pe]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.Z,{title:R}),(0,p.jsx)(c.Z,{breadcrumbs:se,menuItems:A,project:null===ae||void 0===ae?void 0:ae[0],version:null===ae||void 0===ae||null===(n=ae[0])||void 0===n?void 0:n.version}),(0,p.jsxs)(s.Nk,{ref:t,children:[0!==(null===H||void 0===H?void 0:H.length)&&(0,p.jsx)(s.lm,{showMore:!0,children:(0,p.jsx)(v.Z,{navigationItems:H,showMore:!0})}),(0,p.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(b.Z,{after:f,afterHeader:O,afterHeightOffset:x.Mz,afterHidden:Z,afterMousedownActive:$,afterWidth:K,before:C,beforeHeightOffset:x.Mz,beforeMousedownActive:oe,beforeWidth:s.k1+(C?ne:0),headerOffset:M,hideAfterCompletely:!U||q,leftOffset:C?s.k1:null,mainContainerHeader:T,mainContainerRef:Y,setAfterHidden:U,setAfterMousedownActive:ee,setAfterWidth:X,setBeforeMousedownActive:ue,setBeforeWidth:ie,children:[B&&(0,p.jsx)(h,{noPadding:W,children:B}),D]})})]}),E&&(0,p.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===F||void 0===F?void 0:F(null)},children:(0,p.jsx)(d.Z,_(_({},E),{},{onClose:function(){return null===F||void 0===F?void 0:F(null)}}))})]})}var P=o.forwardRef(Z)},72226:function(e,t,n){var i=n(82394),r=n(38276),o=n(75499),u=n(30160),d=n(17488),l=n(70515),a=n(28598);function c(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.objectAttributes,n=e.originalAttributes,c=e.setObjectAttributes;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r.Z,{mb:1,px:l.cd,children:[(0,a.jsx)(u.ZP,{bold:!0,children:"Outdated after"}),(0,a.jsx)(u.ZP,{muted:!0,small:!0,children:"After the global data product successfully completes running, how long after that will the global data product be outdated?"})]}),(0,a.jsx)(o.Z,{columnFlex:[null,1],columns:[{uuid:"Unit"},{uuid:"Value"}],rows:[{uuid:"seconds"},{uuid:"weeks"},{uuid:"months"},{uuid:"years"}].map((function(e){var r,o,l=e.uuid,p=null===t||void 0===t||null===(r=t.outdated_after)||void 0===r?void 0:r[l],f=null===n||void 0===n||null===(o=n.outdated_after)||void 0===o?void 0:o[l];return[(0,a.jsxs)(u.ZP,{default:!0,monospace:!0,children:[l," ",f&&(0,a.jsxs)(u.ZP,{inline:!0,monospace:!0,muted:!0,children:["(default: ",f,")"]})]},"label-".concat(l)),(0,a.jsx)(d.Z,{compact:!0,monospace:!0,onChange:function(e){return c((function(t){var n;return s(s({},t),{},{outdated_after:s(s({},null===t||void 0===t?void 0:t.outdated_after),{},(0,i.Z)({},l,0===(null===(n=e.target.value)||void 0===n?void 0:n.length)?null:Number(e.target.value)))})}))},placeholder:"Enter a number",primary:!0,setContentOnMount:!0,small:!0,type:"number",value:"undefined"===typeof p||null===p?"":p},"input-".concat(l))]}))})]})}},29644:function(e,t,n){var i=n(82394),r=n(44085),o=n(38276),u=n(75499),d=n(30160),l=n(17488),a=n(70515),c=n(81728),s=n(86735),p=n(28598);function f(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 h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.objectAttributes,n=e.originalAttributes,f=e.setObjectAttributes;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(o.Z,{mb:1,px:a.cd,children:[(0,p.jsxs)(d.ZP,{bold:!0,children:["Outdated starting at ",(0,p.jsx)(d.ZP,{inline:!0,muted:!0,children:"(optional)"})]}),(0,p.jsx)(d.ZP,{muted:!0,small:!0,children:"If enough time has passed since the last global data product has ran successfully and the global data product is determined to be outdated, then you can configure it to be outdated at a specific date or time."}),(0,p.jsx)("div",{style:{marginTop:4},children:(0,p.jsxs)(d.ZP,{muted:!0,small:!0,children:["For example, let\u2019s say the global data product is outdated after 12 hours. The last successful run was yesterday at 18:00. The global data product will be outdated today at 06:00. However, if the ",(0,p.jsx)(d.ZP,{bold:!0,inline:!0,muted:!0,small:!0,children:"Outdated starting at"})," has a value of 17 for ",(0,p.jsx)(d.ZP,{bold:!0,inline:!0,muted:!0,small:!0,children:"Hour of day"}),", then the global data product won\u2019t run again until today at 17:00."]})})]}),(0,p.jsx)(u.Z,{columnFlex:[null,1],columns:[{uuid:"Unit"},{uuid:"Value"}],rows:[{uuid:"second_of_minute",values:(0,s.w6)(60).map((function(e,t){return{uuid:t,value:t}}))},{uuid:"minute_of_hour",values:(0,s.w6)(60).map((function(e,t){return{uuid:t,value:t}}))},{uuid:"hour_of_day",values:(0,s.w6)(24).map((function(e,t){return{uuid:t,value:t}}))},{uuid:"day_of_week",values:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((function(e,t){return{uuid:e,value:t}}))},{uuid:"day_of_month",values:(0,s.w6)(31).map((function(e,t){return{uuid:t+1,value:t+1}}))},{uuid:"day_of_year",values:(0,s.w6)(365).map((function(e,t){return{uuid:t+1,value:t+1}}))},{uuid:"week_of_month",values:(0,s.w6)(5).map((function(e,t){return{uuid:t+1,value:t+1}}))},{uuid:"week_of_year",values:(0,s.w6)(52).map((function(e,t){return{uuid:t+1,value:t+1}}))},{uuid:"month_of_year",values:["January","February","March","April","May","June","July","August","September","October","November","December"].map((function(e,t){return{uuid:e,value:t+1}}))}].map((function(e){var o,u,a,s=e.uuid,b=e.values,v=null===t||void 0===t||null===(o=t.outdated_starting_at)||void 0===o?void 0:o[s],g=null===n||void 0===n||null===(u=n.outdated_starting_at)||void 0===u?void 0:u[s],m={compact:!0,key:"outdated-starting-at-input-".concat(s),monospace:!0,onChange:function(e){return f((function(t){var n;return h(h({},t),{},{outdated_starting_at:h(h({},null===t||void 0===t?void 0:t.outdated_starting_at),{},(0,i.Z)({},s,0===(null===(n=e.target.value)||void 0===n?void 0:n.length)?null:Number(e.target.value)))})}))},primary:!0,small:!0,value:"undefined"===typeof v||null===v?"":v};return a=b?(0,p.jsx)(r.Z,h(h({},m),{},{placeholder:"Select a value",children:b.map((function(e){var t=e.uuid,n=e.value;return(0,p.jsx)("option",{value:n,children:t},n)}))})):(0,p.jsx)(l.Z,h(h({},m),{},{placeholder:"Enter a number",setContentOnMount:!0,type:"number"})),[(0,p.jsxs)(d.ZP,{default:!0,monospace:!0,children:[(0,c.vg)(s)," ",g&&(0,p.jsxs)(d.ZP,{inline:!0,monospace:!0,muted:!0,children:["(default: ",g,")"]})]},"outdated-starting-at-label-".concat(s)),a]}))})]})}},46209:function(e,t,n){var i=n(82394),r=n(12691),o=n.n(r),u=n(70652),d=n(48670),l=n(38276),a=n(75499),c=n(30160),s=n(17488),p=n(70515),f=n(28598);function h(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 b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.blocks,n=e.objectAttributes,r=e.originalAttributes,h=e.setObjectAttributes;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(l.Z,{mb:1,px:p.cd,children:[(0,f.jsx)(c.ZP,{bold:!0,children:"Block data to output"}),(0,f.jsx)(c.ZP,{muted:!0,small:!0,children:"The data output from the block(s) you select below will be the data product that is returned when a downstream entity is requesting data from this global data product."}),(0,f.jsx)("div",{style:{marginTop:4},children:(0,f.jsx)(c.ZP,{muted:!0,small:!0,children:"When requesting data from this global data product, the selected block(s) will return data from its most recent partition. You can override this by adding a value in the partitions setting. For example, if you set the partitions value to 5, then the selected block will return data from its 5 most recent partitions. If you set the partitions value to 0, then all the partitions will be returned."})})]}),(0,f.jsx)(a.Z,{columnFlex:[null,1,null],columns:[{label:function(){return""},uuid:"selected"},{uuid:"Block UUID"},{uuid:"Partitions"}],rows:null===t||void 0===t?void 0:t.map((function(e){var t,l=e.uuid,a=null===n||void 0===n?void 0:n.settings,p=null===a||void 0===a?void 0:a[l],v=null===p||void 0===p?void 0:p.partitions,g=null===r||void 0===r||null===(t=r.settings)||void 0===t?void 0:t[l],m=null===g||void 0===g?void 0:g.partitions,x=!!p||!!g;return[(0,f.jsx)(u.Z,{checked:x,onClick:function(){return function(e){h((function(t){var n=(null===t||void 0===t?void 0:t.settings)||{};return e?n[l]={}:null===n||void 0===n||delete n[l],b(b({},t),{},{settings:n})}))}(!x)}},"selected--".concat(l)),(0,f.jsxs)("div",{children:[(0,f.jsx)(o(),{as:"/pipelines/".concat(null===n||void 0===n?void 0:n.object_uuid,"/edit?block_uuid=").concat(l),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,f.jsx)(d.Z,{monospace:!0,openNewWindow:!0,sameColorAsText:!0,children:l})})," ",m&&(0,f.jsxs)(c.ZP,{inline:!0,monospace:!0,muted:!0,children:["(default: ",m,")"]})]},"block-uuid-".concat(l)),(0,f.jsx)(s.Z,{compact:!0,monospace:!0,onChange:function(e){return h((function(t){var n,r;return b(b({},t),{},{settings:b(b({},null===t||void 0===t?void 0:t.settings),{},(0,i.Z)({},l,b(b({},null===t||void 0===t||null===(n=t.settings)||void 0===n?void 0:n[l]),{},{partitions:0===(null===(r=e.target.value)||void 0===r?void 0:r.length)?null:Number(e.target.value)})))})}))},placeholder:"1",primary:!0,setContentOnMount:!0,small:!0,type:"number",value:"undefined"===typeof v||null===v?"":v},"input-".concat(l))]}))})]})}},19396:function(e,t,n){var i=n(82394),r=n(75582),o=n(12691),u=n.n(o),d=n(21764),l=n(82684),a=n(69864),c=n(34376),s=n(71180),p=n(15338),f=n(97618),h=n(55485),b=n(8666),v=n(85854),g=n(48670),m=n(72226),x=n(29644),y=n(53943),j=n(44085),w=n(46209),O=n(38276),_=n(30160),Z=n(17488),P=n(29624),k=n(62547),I=n(35686),C=n(98464),S=n(11302),N=n(70515),D=n(68899),E=n(81728),A=n(72619),M=n(86735),q=n(23780),T=n(28598);function H(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 U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.globalDataProduct,n=e.isNew,i=(0,c.useRouter)(),o=(0,q.VI)(null,{},[],{uuid:"GlobalDataProductDetail"}),H=(0,r.Z)(o,1)[0],F=(0,l.useState)(!1),B=F[0],W=F[1],R=(0,l.useState)(600),L=R[0],z=R[1],G=(0,l.useState)(!1),V=(G[0],G[1]),Y=(0,l.useState)(null),J=Y[0],K=Y[1],X=(0,l.useCallback)((function(e){V(!0),K(e)}),[]),Q=(0,C.Z)(t);(0,l.useEffect)((function(){null!==t&&void 0!==t&&t.uuid&&(null===Q||void 0===Q?void 0:Q.uuid)===(null===t||void 0===t?void 0:t.uuid)||K(t)}),[t,Q]);var $=(0,l.useMemo)((function(){return!(null!==J&&void 0!==J&&J.uuid)}),[J]),ee=(0,a.Db)(I.ZP.global_data_products.useUpdate(n?null===J||void 0===J?void 0:J.uuid:null===t||void 0===t?void 0:t.uuid),{onSuccess:function(e){return(0,A.wD)(e,{callback:function(e){var r=e.global_data_product;n||null!==t&&void 0!==t&&t.uuid&&(null===r||void 0===r?void 0:r.uuid)!==(null===t||void 0===t?void 0:t.uuid)?i.replace("/global-data-products/[...slug]","/global-data-products/".concat(null===r||void 0===r?void 0:r.uuid)):(K(r),V(!1),d.Am.success("Global data product successfully saved.",{position:d.Am.POSITION.BOTTOM_RIGHT,toastId:"custom_pipeline_template"}))},onErrorCallback:function(e,t){return H({errors:t,response:e})}})}}),te=(0,r.Z)(ee,2),ne=te[0],ie=te[1].isLoading,re=I.ZP.pipelines.detail(b.b.PIPELINE===(null===t||void 0===t?void 0:t.object_type)?null===t||void 0===t?void 0:t.object_uuid:null).data,oe=(0,l.useMemo)((function(){return null===re||void 0===re?void 0:re.pipeline}),[re]),ue=(0,l.useMemo)((function(){return(null===oe||void 0===oe?void 0:oe.blocks)||[]}),[oe]),de=I.ZP.pipelines.list().data,le=(0,l.useMemo)((function(){return(0,M.YC)((null===de||void 0===de?void 0:de.pipelines)||[],"uuid")}),[de]),ae=(0,l.useMemo)((function(){return(0,T.jsxs)(h.ZP,{flexDirection:"column",fullHeight:!0,children:[(0,T.jsxs)(f.Z,{flexDirection:"column",children:[(0,T.jsxs)(O.Z,{mt:N.Mq,px:N.cd,children:[(0,T.jsxs)(O.Z,{mb:1,children:[(0,T.jsx)(_.ZP,{bold:!0,children:"UUID"}),(0,T.jsx)(_.ZP,{muted:!0,small:!0,children:"Unique identifier for this global data product. This value must be unique across all global data products."})]}),(0,T.jsx)(Z.Z,{monospace:!0,onChange:function(e){return X((function(t){return U(U({},t),{},{uuid:e.target.value})}))},placeholder:"e.g. a unique identifier",primary:!0,setContentOnMount:!0,value:(null===J||void 0===J?void 0:J.uuid)||""})]}),(0,T.jsxs)(O.Z,{mt:N.Mq,px:N.cd,children:[(0,T.jsxs)(O.Z,{mb:1,children:[(0,T.jsx)(_.ZP,{bold:!0,children:"Object type"}),(0,T.jsx)(_.ZP,{muted:!0,small:!0,children:"Pipeline, block, etc. Currently, only pipeline is supported."})]}),(0,T.jsx)(j.Z,{onChange:function(e){return X((function(t){return U(U({},t),{},{object_type:e.target.value})}))},placeholder:"Only pipeline is currently supported",primary:!0,value:(null===J||void 0===J?void 0:J.object_type)||"",children:[b.b.PIPELINE].map((function(e){return(0,T.jsx)("option",{value:e,children:(0,E.kC)(e)},e)}))})]}),(0,T.jsxs)(O.Z,{mt:N.Mq,px:N.cd,children:[(0,T.jsxs)(O.Z,{mb:1,children:[(0,T.jsx)(_.ZP,{bold:!0,children:"Object UUID"}),(0,T.jsxs)(_.ZP,{muted:!0,small:!0,children:["The UUID of the ",(null===J||void 0===J?void 0:J.object_type)||"object type"," that this global data product represents."]})]}),(0,T.jsx)(j.Z,{monospace:!0,onChange:function(e){return X((function(t){return U(U({},t),{},{object_uuid:e.target.value})}))},placeholder:"Select object UUID",primary:!0,value:(null===J||void 0===J?void 0:J.object_uuid)||"",children:null===le||void 0===le?void 0:le.map((function(e){var t=e.uuid;return(0,T.jsx)("option",{value:t,children:t},t)}))}),b.b.PIPELINE===(null===J||void 0===J?void 0:J.object_type)&&(null===J||void 0===J?void 0:J.object_uuid)&&(0,T.jsx)(O.Z,{mt:1,children:(0,T.jsxs)(_.ZP,{muted:!0,small:!0,children:["View pipeline ",(0,T.jsx)(u(),{as:"/pipelines/".concat(null===J||void 0===J?void 0:J.object_uuid,"/edit"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,T.jsx)(g.Z,{bold:!0,inline:!0,monospace:!0,openNewWindow:!0,small:!0,children:null===J||void 0===J?void 0:J.object_uuid})}),"."]})})]}),!n&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(O.Z,{mt:N.Mq,children:(0,T.jsx)(m.Z,{objectAttributes:J,setObjectAttributes:X})}),(0,T.jsx)(O.Z,{mt:N.Mq,children:(0,T.jsx)(x.Z,{objectAttributes:J,setObjectAttributes:X})}),(null===ue||void 0===ue?void 0:ue.length)>=1&&(0,T.jsx)(O.Z,{mt:N.Mq,children:(0,T.jsx)(w.Z,{blocks:ue,objectAttributes:J,setObjectAttributes:X})})]})]}),(0,T.jsx)(S.ig,{children:(0,T.jsx)(O.Z,{p:N.cd,children:(0,T.jsx)(h.ZP,{children:(0,T.jsxs)(s.ZP,{disabled:$,fullWidth:!0,loading:ie,onClick:function(){return ne({global_data_product:J})},primary:!0,children:[n&&"Create global data product",!n&&"Save global data product"]})})})})]})}),[ue,$,ie,n,J,le,X,ne]),ce=I.ZP.pipeline_schedules.list({global_data_product_uuid:null===t||void 0===t?void 0:t.uuid},{},{pauseFetch:!(null!==t&&void 0!==t&&t.uuid)}).data,se=(0,l.useMemo)((function(){return(null===ce||void 0===ce?void 0:ce.pipeline_schedules)||[]}),[ce]),pe=I.ZP.pipeline_runs.list({global_data_product_uuid:null===t||void 0===t?void 0:t.uuid},{},{pauseFetch:!(null!==t&&void 0!==t&&t.uuid)}).data,fe=(0,l.useMemo)((function(){return(null===pe||void 0===pe?void 0:pe.pipeline_runs)||[]}),[pe]);return(0,T.jsx)(k.Z,{before:ae,beforeHeader:(0,T.jsx)(O.Z,{px:N.cd,children:(0,T.jsx)(_.ZP,{children:"Global data product attributes"})}),beforeHidden:B,beforeWidth:L,leftOffset:D.k1,setBeforeHidden:W,setBeforeWidth:z,children:!n&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(O.Z,{p:N.cd,children:(0,T.jsx)(v.Z,{children:"Triggers"})}),(0,T.jsx)(p.Z,{light:!0}),(0,T.jsx)(P.Z,{disableActions:!0,pipeline:oe,pipelineSchedules:se}),(0,T.jsx)(O.Z,{p:N.cd,children:(0,T.jsx)(v.Z,{children:"Runs"})}),(0,T.jsx)(p.Z,{light:!0}),(0,T.jsx)(y.Z,{hideTriggerColumn:!0,pipelineRuns:fe})]})})}},70320:function(e,t,n){n.d(t,{h:function(){return u},q:function(){return o}});var i=n(78419),r=n(53808);function o(){return(0,r.U2)(i.am,null)||!1}function u(e){return"undefined"!==typeof e&&(0,r.t8)(i.am,e),e}},8666:function(e,t,n){var i;n.d(t,{b:function(){return i}}),function(e){e.BLOCK="block",e.PIPELINE="pipeline"}(i||(i={}))},72191:function(e,t,n){n.d(t,{_k:function(){return o},bL:function(){return r},l2:function(){return u},nz:function(){return d}});var i=n(70515),r=(i.iI,2*i.iI),o=2.5*i.iI,u=3*i.iI,d=3.5*i.iI},80022:function(e,t,n){function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return i}})},15544:function(e,t,n){function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}n.d(t,{Z:function(){return i}})},99177:function(e,t,n){function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}n.d(t,{Z:function(){return r}})},93189:function(e,t,n){n.d(t,{Z:function(){return o}});var i=n(12539),r=n(80022);function o(e,t){if(t&&("object"===i(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.Z)(e)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1845],{84649:function(e,t,n){n.d(t,{EN:function(){return P},FX:function(){return k},HS:function(){return j},Nk:function(){return h},Rd:function(){return f},SL:function(){return _},Tj:function(){return Z},UE:function(){return O},Yf:function(){return v},ZG:function(){return c},bC:function(){return b},n5:function(){return p},n8:function(){return w},w5:function(){return y},wj:function(){return m},wl:function(){return g},ze:function(){return x}});var i=n(38626),r=n(44897),o=n(42631),u=n(46684),d=n(70515),l=n(91437),a=n(47041),c=2.5*d.iI,s=40*d.iI,p=10*d.iI,f=i.default.div.withConfig({displayName:"indexstyle__ContainedStyle",componentId:"sc-8sk2qr-0"})([""," overflow:auto;"," "," ",""],a.w5,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).page,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-p,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width-p,"px;\n ")})),h=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-8sk2qr-1"})(["height:100%;position:relative;"]),b=i.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-8sk2qr-2"})(["position:fixed;width:","px;z-index:1;"," "," ",""],s,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-p,"px;\n ")}),(function(e){return!e.height&&"\n height: 100%;\n "})),v=i.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-8sk2qr-3"})(["padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;",""],1*d.iI,d.cd*d.iI,d.cd*d.iI,1*d.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n ")})),g=i.default.div.withConfig({displayName:"indexstyle__LinksContainerStyle",componentId:"sc-8sk2qr-4"})([""," overflow:auto;position:fixed;width:","px;",""],a.w5,s,(function(e){return"\n height: calc(100% - ".concat(55+(null!==e&&void 0!==e&&e.contained?p:u.Mz)+((null===e||void 0===e?void 0:e.heightOffset)||0),"px);\n ")})),m=i.default.div.withConfig({displayName:"indexstyle__NavLinkStyle",componentId:"sc-8sk2qr-5"})([""," padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;&:hover{cursor:pointer;}",""],(0,l.eR)(),1*d.iI,d.cd*d.iI,d.cd*d.iI,1*d.iI,(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||r.Z.background).codeTextarea,";\n ")})),x=i.default.div.withConfig({displayName:"indexstyle__IconStyle",componentId:"sc-8sk2qr-6"})([""," border-radius:","px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],(0,l.eR)(),o.n_,5*d.iI,1.25*d.iI,1.25*d.iI,5*d.iI,(function(e){return!e.backgroundColor&&"\n background-color: ".concat((e.theme.background||r.Z.background).chartBlock,";\n ")}),(function(e){return e.backgroundColor&&"\n background-color: ".concat(e.backgroundColor,";\n ")})),y=i.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-8sk2qr-7"})(["margin-left:","px;"],s),j=i.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-8sk2qr-8"})(["padding:","px;",""],d.cd*d.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||r.Z.borders).light,";\n ")})),w=i.default.div.withConfig({displayName:"indexstyle__CardsStyle",componentId:"sc-8sk2qr-9"})(["display:flex;flex-wrap:wrap;padding:","px;"],.75*d.iI),O=i.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-8sk2qr-10"})(["border-radius:","px;margin:","px;padding:","px;width:","px;&:hover{cursor:pointer;}",""],o.n_,.75*d.iI,2.5*d.iI,50*d.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border: 1px solid ").concat((e.theme.background||r.Z.background).chartBlock,";\n box-shadow: ").concat((e.theme.shadow||r.Z.shadow).frame,";\n ")})),Z=i.default.div.withConfig({displayName:"indexstyle__CardTitleStyle",componentId:"sc-8sk2qr-11"})(["height:","px;"],2.5*d.iI),_=i.default.div.withConfig({displayName:"indexstyle__CardDescriptionStyle",componentId:"sc-8sk2qr-12"})(["height:","px;margin-top:","px;"],2.5*d.iI*2,1*d.iI),P=i.default.div.withConfig({displayName:"indexstyle__TagsStyle",componentId:"sc-8sk2qr-13"})(["height:","px;margin-top:","px;overflow:hidden;"],3.5*d.iI,.5*d.iI),k=i.default.div.withConfig({displayName:"indexstyle__BreadcrumbsStyle",componentId:"sc-8sk2qr-14"})(["padding-bottom:","px;padding-top:","px;",""],1*d.iI,1*d.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||r.Z.borders).light,";\n ")}))},11302:function(e,t,n){n.d(t,{Nk:function(){return l},Yf:function(){return c},bC:function(){return a},ig:function(){return s},w5:function(){return p}});var i=n(38626),r=n(44897),o=n(70515),u=n(84649),d=(o.iI,40*o.iI),l=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-axgvn9-0"})(["height:100%;position:relative;"]),a=i.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-axgvn9-1"})(["overflow:auto;position:fixed;width:","px;z-index:1;"," "," ",""],d,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-u.n5,"px;\n ")}),(function(e){return!e.height&&"\n height: 100%;\n "})),c=i.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-axgvn9-2"})(["padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;width:100%;",""],1*o.iI,o.cd*o.iI,o.cd*o.iI,1*o.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n ")})),s=i.default.div.withConfig({displayName:"indexstyle__ButtonsStyle",componentId:"sc-axgvn9-3"})(["margin-top:","px;width:100%;",""],o.cd*o.iI,(function(e){return"\n border-top: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n ")})),p=i.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-axgvn9-4"})(["margin-left:","px;"],d)},94629:function(e,t,n){n.d(t,{Z:function(){return P}});var i=n(82394),r=n(21831),o=n(82684),u=n(50724),d=n(82555),l=n(97618),a=n(70613),c=n(68487),s=n(68899),p=n(28598);function f(e,t){var n=e.children,i=e.noPadding;return(0,p.jsx)(s.HS,{noPadding:i,ref:t,children:n})}var h=o.forwardRef(f),b=n(62547),v=n(82571),g=n(35686),m=n(98464),x=n(46684),y=n(70515),j=n(53808),w=n(19183);function O(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 Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t){var n,i=e.addProjectBreadcrumbToCustomBreadcrumbs,f=e.after,O=e.afterHeader,_=e.afterHidden,P=e.afterWidth,k=e.afterWidthOverride,I=e.appendBreadcrumbs,C=e.before,S=e.beforeWidth,N=e.breadcrumbs,D=e.children,E=e.errors,A=e.headerMenuItems,M=e.headerOffset,q=e.hideAfterCompletely,T=e.mainContainerHeader,H=e.navigationItems,U=e.setAfterHidden,F=e.setErrors,B=e.subheaderChildren,W=e.subheaderNoPadding,R=e.title,L=e.uuid,z=(0,w.i)().width,G="dashboard_after_width_".concat(L),V="dashboard_before_width_".concat(L),Y=(0,o.useRef)(null),J=(0,o.useState)(k?P:(0,j.U2)(G,P)),K=J[0],X=J[1],Q=(0,o.useState)(!1),$=Q[0],ee=Q[1],te=(0,o.useState)(C?Math.max((0,j.U2)(V,S),13*y.iI):null),ne=te[0],ie=te[1],re=(0,o.useState)(!1),oe=re[0],ue=re[1],de=(0,o.useState)(null)[1],le=g.ZP.projects.list({},{revalidateOnFocus:!1}).data,ae=null===le||void 0===le?void 0:le.projects,ce={label:function(){var e;return null===ae||void 0===ae||null===(e=ae[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},se=[];N&&(i&&se.push(ce),se.push.apply(se,(0,r.Z)(N))),(null===N||void 0===N||!N.length||I)&&(null===ae||void 0===ae?void 0:ae.length)>=1&&(null!==N&&void 0!==N&&N.length||se.unshift({bold:!I,label:function(){return R}}),se.unshift(ce)),(0,o.useEffect)((function(){null===Y||void 0===Y||!Y.current||$||oe||null===de||void 0===de||de(Y.current.getBoundingClientRect().width)}),[$,K,oe,ne,Y,de,z]),(0,o.useEffect)((function(){$||(0,j.t8)(G,K)}),[_,$,K,G]),(0,o.useEffect)((function(){oe||(0,j.t8)(V,ne)}),[oe,ne,V]);var pe=(0,m.Z)(P);return(0,o.useEffect)((function(){k&&pe!==P&&X(P)}),[k,P,pe]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.Z,{title:R}),(0,p.jsx)(c.Z,{breadcrumbs:se,menuItems:A,project:null===ae||void 0===ae?void 0:ae[0],version:null===ae||void 0===ae||null===(n=ae[0])||void 0===n?void 0:n.version}),(0,p.jsxs)(s.Nk,{ref:t,children:[0!==(null===H||void 0===H?void 0:H.length)&&(0,p.jsx)(s.lm,{showMore:!0,children:(0,p.jsx)(v.Z,{navigationItems:H,showMore:!0})}),(0,p.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(b.Z,{after:f,afterHeader:O,afterHeightOffset:x.Mz,afterHidden:_,afterMousedownActive:$,afterWidth:K,before:C,beforeHeightOffset:x.Mz,beforeMousedownActive:oe,beforeWidth:s.k1+(C?ne:0),headerOffset:M,hideAfterCompletely:!U||q,leftOffset:C?s.k1:null,mainContainerHeader:T,mainContainerRef:Y,setAfterHidden:U,setAfterMousedownActive:ee,setAfterWidth:X,setBeforeMousedownActive:ue,setBeforeWidth:ie,children:[B&&(0,p.jsx)(h,{noPadding:W,children:B}),D]})})]}),E&&(0,p.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===F||void 0===F?void 0:F(null)},children:(0,p.jsx)(d.Z,Z(Z({},E),{},{onClose:function(){return null===F||void 0===F?void 0:F(null)}}))})]})}var P=o.forwardRef(_)},72226:function(e,t,n){var i=n(82394),r=n(38276),o=n(75499),u=n(30160),d=n(17488),l=n(70515),a=n(28598);function c(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.objectAttributes,n=e.originalAttributes,c=e.setObjectAttributes;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r.Z,{mb:1,px:l.cd,children:[(0,a.jsx)(u.ZP,{bold:!0,children:"Outdated after"}),(0,a.jsx)(u.ZP,{muted:!0,small:!0,children:"After the global data product successfully completes running, how long after that will the global data product be outdated?"})]}),(0,a.jsx)(o.Z,{columnFlex:[null,1],columns:[{uuid:"Unit"},{uuid:"Value"}],rows:[{uuid:"seconds"},{uuid:"weeks"},{uuid:"months"},{uuid:"years"}].map((function(e){var r,o,l=e.uuid,p=null===t||void 0===t||null===(r=t.outdated_after)||void 0===r?void 0:r[l],f=null===n||void 0===n||null===(o=n.outdated_after)||void 0===o?void 0:o[l];return[(0,a.jsxs)(u.ZP,{default:!0,monospace:!0,children:[l," ",f&&(0,a.jsxs)(u.ZP,{inline:!0,monospace:!0,muted:!0,children:["(default: ",f,")"]})]},"label-".concat(l)),(0,a.jsx)(d.Z,{compact:!0,monospace:!0,onChange:function(e){return c((function(t){var n;return s(s({},t),{},{outdated_after:s(s({},null===t||void 0===t?void 0:t.outdated_after),{},(0,i.Z)({},l,0===(null===(n=e.target.value)||void 0===n?void 0:n.length)?null:Number(e.target.value)))})}))},placeholder:"Enter a number",primary:!0,setContentOnMount:!0,small:!0,type:"number",value:"undefined"===typeof p||null===p?"":p},"input-".concat(l))]}))})]})}},29644:function(e,t,n){var i=n(82394),r=n(44085),o=n(38276),u=n(75499),d=n(30160),l=n(17488),a=n(70515),c=n(81728),s=n(86735),p=n(28598);function f(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 h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.objectAttributes,n=e.originalAttributes,f=e.setObjectAttributes;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(o.Z,{mb:1,px:a.cd,children:[(0,p.jsxs)(d.ZP,{bold:!0,children:["Outdated starting at ",(0,p.jsx)(d.ZP,{inline:!0,muted:!0,children:"(optional)"})]}),(0,p.jsx)(d.ZP,{muted:!0,small:!0,children:"If enough time has passed since the last global data product has ran successfully and the global data product is determined to be outdated, then you can configure it to be outdated at a specific date or time."}),(0,p.jsx)("div",{style:{marginTop:4},children:(0,p.jsxs)(d.ZP,{muted:!0,small:!0,children:["For example, let\u2019s say the global data product is outdated after 12 hours. The last successful run was yesterday at 18:00. The global data product will be outdated today at 06:00. However, if the ",(0,p.jsx)(d.ZP,{bold:!0,inline:!0,muted:!0,small:!0,children:"Outdated starting at"})," has a value of 17 for ",(0,p.jsx)(d.ZP,{bold:!0,inline:!0,muted:!0,small:!0,children:"Hour of day"}),", then the global data product won\u2019t run again until today at 17:00."]})})]}),(0,p.jsx)(u.Z,{columnFlex:[null,1],columns:[{uuid:"Unit"},{uuid:"Value"}],rows:[{uuid:"second_of_minute",values:(0,s.w6)(60).map((function(e,t){return{uuid:t,value:t}}))},{uuid:"minute_of_hour",values:(0,s.w6)(60).map((function(e,t){return{uuid:t,value:t}}))},{uuid:"hour_of_day",values:(0,s.w6)(24).map((function(e,t){return{uuid:t,value:t}}))},{uuid:"day_of_week",values:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((function(e,t){return{uuid:e,value:t}}))},{uuid:"day_of_month",values:(0,s.w6)(31).map((function(e,t){return{uuid:t+1,value:t+1}}))},{uuid:"day_of_year",values:(0,s.w6)(365).map((function(e,t){return{uuid:t+1,value:t+1}}))},{uuid:"week_of_month",values:(0,s.w6)(5).map((function(e,t){return{uuid:t+1,value:t+1}}))},{uuid:"week_of_year",values:(0,s.w6)(52).map((function(e,t){return{uuid:t+1,value:t+1}}))},{uuid:"month_of_year",values:["January","February","March","April","May","June","July","August","September","October","November","December"].map((function(e,t){return{uuid:e,value:t+1}}))}].map((function(e){var o,u,a,s=e.uuid,b=e.values,v=null===t||void 0===t||null===(o=t.outdated_starting_at)||void 0===o?void 0:o[s],g=null===n||void 0===n||null===(u=n.outdated_starting_at)||void 0===u?void 0:u[s],m={compact:!0,key:"outdated-starting-at-input-".concat(s),monospace:!0,onChange:function(e){return f((function(t){var n;return h(h({},t),{},{outdated_starting_at:h(h({},null===t||void 0===t?void 0:t.outdated_starting_at),{},(0,i.Z)({},s,0===(null===(n=e.target.value)||void 0===n?void 0:n.length)?null:Number(e.target.value)))})}))},primary:!0,small:!0,value:"undefined"===typeof v||null===v?"":v};return a=b?(0,p.jsx)(r.Z,h(h({},m),{},{placeholder:"Select a value",children:b.map((function(e){var t=e.uuid,n=e.value;return(0,p.jsx)("option",{value:n,children:t},n)}))})):(0,p.jsx)(l.Z,h(h({},m),{},{placeholder:"Enter a number",setContentOnMount:!0,type:"number"})),[(0,p.jsxs)(d.ZP,{default:!0,monospace:!0,children:[(0,c.vg)(s)," ",g&&(0,p.jsxs)(d.ZP,{inline:!0,monospace:!0,muted:!0,children:["(default: ",g,")"]})]},"outdated-starting-at-label-".concat(s)),a]}))})]})}},46209:function(e,t,n){var i=n(82394),r=n(12691),o=n.n(r),u=n(70652),d=n(48670),l=n(38276),a=n(75499),c=n(30160),s=n(17488),p=n(70515),f=n(28598);function h(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 b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.blocks,n=e.objectAttributes,r=e.originalAttributes,h=e.setObjectAttributes;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(l.Z,{mb:1,px:p.cd,children:[(0,f.jsx)(c.ZP,{bold:!0,children:"Block data to output"}),(0,f.jsx)(c.ZP,{muted:!0,small:!0,children:"The data output from the block(s) you select below will be the data product that is returned when a downstream entity is requesting data from this global data product."}),(0,f.jsx)("div",{style:{marginTop:4},children:(0,f.jsx)(c.ZP,{muted:!0,small:!0,children:"When requesting data from this global data product, the selected block(s) will return data from its most recent partition. You can override this by adding a value in the partitions setting. For example, if you set the partitions value to 5, then the selected block will return data from its 5 most recent partitions. If you set the partitions value to 0, then all the partitions will be returned."})})]}),(0,f.jsx)(a.Z,{columnFlex:[null,1,null],columns:[{label:function(){return""},uuid:"selected"},{uuid:"Block UUID"},{uuid:"Partitions"}],rows:null===t||void 0===t?void 0:t.map((function(e){var t,l=e.uuid,a=null===n||void 0===n?void 0:n.settings,p=null===a||void 0===a?void 0:a[l],v=null===p||void 0===p?void 0:p.partitions,g=null===r||void 0===r||null===(t=r.settings)||void 0===t?void 0:t[l],m=null===g||void 0===g?void 0:g.partitions,x=!!p||!!g;return[(0,f.jsx)(u.Z,{checked:x,onClick:function(){return function(e){h((function(t){var n=(null===t||void 0===t?void 0:t.settings)||{};return e?n[l]={}:null===n||void 0===n||delete n[l],b(b({},t),{},{settings:n})}))}(!x)}},"selected--".concat(l)),(0,f.jsxs)("div",{children:[(0,f.jsx)(o(),{as:"/pipelines/".concat(null===n||void 0===n?void 0:n.object_uuid,"/edit?block_uuid=").concat(l),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,f.jsx)(d.Z,{monospace:!0,openNewWindow:!0,sameColorAsText:!0,children:l})})," ",m&&(0,f.jsxs)(c.ZP,{inline:!0,monospace:!0,muted:!0,children:["(default: ",m,")"]})]},"block-uuid-".concat(l)),(0,f.jsx)(s.Z,{compact:!0,monospace:!0,onChange:function(e){return h((function(t){var n,r;return b(b({},t),{},{settings:b(b({},null===t||void 0===t?void 0:t.settings),{},(0,i.Z)({},l,b(b({},null===t||void 0===t||null===(n=t.settings)||void 0===n?void 0:n[l]),{},{partitions:0===(null===(r=e.target.value)||void 0===r?void 0:r.length)?null:Number(e.target.value)})))})}))},placeholder:"1",primary:!0,setContentOnMount:!0,small:!0,type:"number",value:"undefined"===typeof v||null===v?"":v},"input-".concat(l))]}))})]})}},19396:function(e,t,n){var i=n(82394),r=n(75582),o=n(12691),u=n.n(o),d=n(21764),l=n(82684),a=n(69864),c=n(34376),s=n(71180),p=n(15338),f=n(97618),h=n(55485),b=n(8666),v=n(85854),g=n(48670),m=n(72226),x=n(29644),y=n(53943),j=n(44085),w=n(46209),O=n(38276),Z=n(30160),_=n(17488),P=n(29624),k=n(62547),I=n(35686),C=n(98464),S=n(11302),N=n(70515),D=n(68899),E=n(81728),A=n(72619),M=n(86735),q=n(23780),T=n(28598);function H(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 U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.globalDataProduct,n=e.isNew,i=(0,c.useRouter)(),o=(0,q.VI)(null,{},[],{uuid:"GlobalDataProductDetail"}),H=(0,r.Z)(o,1)[0],F=(0,l.useState)(!1),B=F[0],W=F[1],R=(0,l.useState)(600),L=R[0],z=R[1],G=(0,l.useState)(!1),V=(G[0],G[1]),Y=(0,l.useState)(null),J=Y[0],K=Y[1],X=(0,l.useCallback)((function(e){V(!0),K(e)}),[]),Q=(0,C.Z)(t);(0,l.useEffect)((function(){null!==t&&void 0!==t&&t.uuid&&(null===Q||void 0===Q?void 0:Q.uuid)===(null===t||void 0===t?void 0:t.uuid)||K(t)}),[t,Q]);var $=(0,l.useMemo)((function(){return!(null!==J&&void 0!==J&&J.uuid)}),[J]),ee=(0,a.Db)(I.ZP.global_data_products.useUpdate(n?null===J||void 0===J?void 0:J.uuid:null===t||void 0===t?void 0:t.uuid),{onSuccess:function(e){return(0,A.wD)(e,{callback:function(e){var r=e.global_data_product;n||null!==t&&void 0!==t&&t.uuid&&(null===r||void 0===r?void 0:r.uuid)!==(null===t||void 0===t?void 0:t.uuid)?i.replace("/global-data-products/[...slug]","/global-data-products/".concat(null===r||void 0===r?void 0:r.uuid)):(K(r),V(!1),d.Am.success("Global data product successfully saved.",{position:d.Am.POSITION.BOTTOM_RIGHT,toastId:"custom_pipeline_template"}))},onErrorCallback:function(e,t){return H({errors:t,response:e})}})}}),te=(0,r.Z)(ee,2),ne=te[0],ie=te[1].isLoading,re=I.ZP.pipelines.detail(b.b.PIPELINE===(null===t||void 0===t?void 0:t.object_type)?null===t||void 0===t?void 0:t.object_uuid:null).data,oe=(0,l.useMemo)((function(){return null===re||void 0===re?void 0:re.pipeline}),[re]),ue=(0,l.useMemo)((function(){return(null===oe||void 0===oe?void 0:oe.blocks)||[]}),[oe]),de=I.ZP.pipelines.list().data,le=(0,l.useMemo)((function(){return(0,M.YC)((null===de||void 0===de?void 0:de.pipelines)||[],"uuid")}),[de]),ae=(0,l.useMemo)((function(){return(0,T.jsxs)(h.ZP,{flexDirection:"column",fullHeight:!0,children:[(0,T.jsxs)(f.Z,{flexDirection:"column",children:[(0,T.jsxs)(O.Z,{mt:N.Mq,px:N.cd,children:[(0,T.jsxs)(O.Z,{mb:1,children:[(0,T.jsx)(Z.ZP,{bold:!0,children:"UUID"}),(0,T.jsx)(Z.ZP,{muted:!0,small:!0,children:"Unique identifier for this global data product. This value must be unique across all global data products."})]}),(0,T.jsx)(_.Z,{monospace:!0,onChange:function(e){return X((function(t){return U(U({},t),{},{uuid:e.target.value})}))},placeholder:"e.g. a unique identifier",primary:!0,setContentOnMount:!0,value:(null===J||void 0===J?void 0:J.uuid)||""})]}),(0,T.jsxs)(O.Z,{mt:N.Mq,px:N.cd,children:[(0,T.jsxs)(O.Z,{mb:1,children:[(0,T.jsx)(Z.ZP,{bold:!0,children:"Object type"}),(0,T.jsx)(Z.ZP,{muted:!0,small:!0,children:"Pipeline, block, etc. Currently, only pipeline is supported."})]}),(0,T.jsx)(j.Z,{onChange:function(e){return X((function(t){return U(U({},t),{},{object_type:e.target.value})}))},placeholder:"Only pipeline is currently supported",primary:!0,value:(null===J||void 0===J?void 0:J.object_type)||"",children:[b.b.PIPELINE].map((function(e){return(0,T.jsx)("option",{value:e,children:(0,E.kC)(e)},e)}))})]}),(0,T.jsxs)(O.Z,{mt:N.Mq,px:N.cd,children:[(0,T.jsxs)(O.Z,{mb:1,children:[(0,T.jsx)(Z.ZP,{bold:!0,children:"Object UUID"}),(0,T.jsxs)(Z.ZP,{muted:!0,small:!0,children:["The UUID of the ",(null===J||void 0===J?void 0:J.object_type)||"object type"," that this global data product represents."]})]}),(0,T.jsx)(j.Z,{monospace:!0,onChange:function(e){return X((function(t){return U(U({},t),{},{object_uuid:e.target.value})}))},placeholder:"Select object UUID",primary:!0,value:(null===J||void 0===J?void 0:J.object_uuid)||"",children:null===le||void 0===le?void 0:le.map((function(e){var t=e.uuid;return(0,T.jsx)("option",{value:t,children:t},t)}))}),b.b.PIPELINE===(null===J||void 0===J?void 0:J.object_type)&&(null===J||void 0===J?void 0:J.object_uuid)&&(0,T.jsx)(O.Z,{mt:1,children:(0,T.jsxs)(Z.ZP,{muted:!0,small:!0,children:["View pipeline ",(0,T.jsx)(u(),{as:"/pipelines/".concat(null===J||void 0===J?void 0:J.object_uuid,"/edit"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,T.jsx)(g.Z,{bold:!0,inline:!0,monospace:!0,openNewWindow:!0,small:!0,children:null===J||void 0===J?void 0:J.object_uuid})}),"."]})})]}),!n&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(O.Z,{mt:N.Mq,children:(0,T.jsx)(m.Z,{objectAttributes:J,setObjectAttributes:X})}),(0,T.jsx)(O.Z,{mt:N.Mq,children:(0,T.jsx)(x.Z,{objectAttributes:J,setObjectAttributes:X})}),(null===ue||void 0===ue?void 0:ue.length)>=1&&(0,T.jsx)(O.Z,{mt:N.Mq,children:(0,T.jsx)(w.Z,{blocks:ue,objectAttributes:J,setObjectAttributes:X})})]})]}),(0,T.jsx)(S.ig,{children:(0,T.jsx)(O.Z,{p:N.cd,children:(0,T.jsx)(h.ZP,{children:(0,T.jsxs)(s.ZP,{disabled:$,fullWidth:!0,loading:ie,onClick:function(){return ne({global_data_product:J})},primary:!0,children:[n&&"Create global data product",!n&&"Save global data product"]})})})})]})}),[ue,$,ie,n,J,le,X,ne]),ce=I.ZP.pipeline_schedules.list({global_data_product_uuid:null===t||void 0===t?void 0:t.uuid},{},{pauseFetch:!(null!==t&&void 0!==t&&t.uuid)}).data,se=(0,l.useMemo)((function(){return(null===ce||void 0===ce?void 0:ce.pipeline_schedules)||[]}),[ce]),pe=I.ZP.pipeline_runs.list({global_data_product_uuid:null===t||void 0===t?void 0:t.uuid},{},{pauseFetch:!(null!==t&&void 0!==t&&t.uuid)}).data,fe=(0,l.useMemo)((function(){return(null===pe||void 0===pe?void 0:pe.pipeline_runs)||[]}),[pe]);return(0,T.jsx)(k.Z,{before:ae,beforeHeader:(0,T.jsx)(O.Z,{px:N.cd,children:(0,T.jsx)(Z.ZP,{children:"Global data product attributes"})}),beforeHidden:B,beforeWidth:L,leftOffset:D.k1,setBeforeHidden:W,setBeforeWidth:z,children:!n&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(O.Z,{p:N.cd,children:(0,T.jsx)(v.Z,{children:"Triggers"})}),(0,T.jsx)(p.Z,{light:!0}),(0,T.jsx)(P.Z,{disableActions:!0,pipeline:oe,pipelineSchedules:se}),(0,T.jsx)(O.Z,{p:N.cd,children:(0,T.jsx)(v.Z,{children:"Runs"})}),(0,T.jsx)(p.Z,{light:!0}),(0,T.jsx)(y.Z,{hideTriggerColumn:!0,pipelineRuns:fe})]})})}},70320:function(e,t,n){n.d(t,{h:function(){return u},q:function(){return o}});var i=n(78419),r=n(53808);function o(){return(0,r.U2)(i.am,null)||!1}function u(e){return"undefined"!==typeof e&&(0,r.t8)(i.am,e),e}},8666:function(e,t,n){var i;n.d(t,{b:function(){return i}}),function(e){e.BLOCK="block",e.PIPELINE="pipeline"}(i||(i={}))},72191:function(e,t,n){n.d(t,{_k:function(){return o},bL:function(){return r},l2:function(){return u},nz:function(){return d}});var i=n(70515),r=(i.iI,2*i.iI),o=2.5*i.iI,u=3*i.iI,d=3.5*i.iI},80022:function(e,t,n){function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return i}})},15544:function(e,t,n){function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}n.d(t,{Z:function(){return i}})},13692:function(e,t,n){n.d(t,{Z:function(){return r}});var i=n(61049);function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,i.Z)(e,t)}},93189:function(e,t,n){n.d(t,{Z:function(){return o}});var i=n(12539),r=n(80022);function o(e,t){if(t&&("object"===i(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.Z)(e)}},61049:function(e,t,n){function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}n.d(t,{Z:function(){return i}})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
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),c=t(7267),u=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 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 x(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}n.Z=function(e){var n,t,i,g,b=e.createPipeline,Z=e.isLoading,y=e.onClose,P=(0,r.useRef)(null),O=(0,r.useState)(!1),w=O[0],k=O[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)(u.Z,{py:1,children:[(0,j.jsx)(u.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 x(x({},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)(u.Z,{mb:2,pt:1,children:(0,j.jsx)(s.ZP,{default:!0,children:"Describe what the pipeline should do"})}),(0,j.jsxs)(u.Z,{pb:1,pr:v.cd,children:[(0,j.jsx)(a.Z,{fullWidth:!0,onChange:function(e){return _((function(n){return x(x({},n),{},{llm:{request:{pipeline_description:e.target.value},use_case:c.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||w)&&(0,j.jsx)(u.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!==(g=i.request)&&void 0!==g&&g.pipeline_description),loading:Z||w,onClick:function(){k(!0),b({pipeline:C}).then((function(){return k(!1)}))},primary:!0,tabIndex:0,uuid:"AIControlPanel/CreatePipeline",children:"Create pipeline"}),y&&(0,j.jsx)(u.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),c=t(54750),u=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),g=t(30160),x=t(35686),b=t(72473),Z=t(84649),y=t(32929),P=t(15610),O=t(19183),w=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,M=e.showAddingNewTemplates,N=e.showBreadcrumbs,A=e.tabs,E=(0,d.useRouter)(),D=(0,o.useContext)(l.ThemeContext),T=(0,O.i)(),B=T.height,R=T.width,U=(0,o.useMemo)((function(){return A||y.dP}),[A]),H=(0,o.useState)(M||!1),z=H[0],q=H[1],L=(0,o.useState)(r?y.qy.find((function(e){return e.uuid===r})):y.qy[0]),F=L[0],W=L[1],G=(0,o.useState)(k?U.find((function(e){return e.uuid===(null===k||void 0===k?void 0:k.uuid)})):U[0]),V=G[0],Y=G[1],X=(0,o.useState)(null),$=X[0],Q=X[1],J=x.ZP.custom_templates.list({object_type:a.Z},{},{pauseFetch:y.n9.uuid!==(null===V||void 0===V?void 0:V.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=x.ZP.custom_templates.list({object_type:a.R},{},{pauseFetch:y.A2.uuid!==(null===V||void 0===V?void 0:V.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,w.jsx)(Z.wj,{onClick:function(){return W(e)},selected:l,children:(0,w.jsxs)(p.ZP,{alignItems:"center",children:[(0,w.jsx)(Z.ze,{backgroundColor:l&&i?i(D):null,children:n?(0,w.jsx)(n,I({},d)):(0,w.jsx)(b.pd,I({},d))}),(0,w.jsx)(g.ZP,{bold:!0,large:!0,children:t?t():o})]})},o)}))}),[F,D]),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,w.jsx)(Z.wj,{onClick:function(){return W(e)},selected:l,children:(0,w.jsxs)(p.ZP,{alignItems:"center",children:[(0,w.jsx)(Z.ze,{backgroundColor:l&&i?i(D):null,children:n?(0,w.jsx)(n,I({},d)):(0,w.jsx)(b.pd,I({},d))}),(0,w.jsx)(g.ZP,{bold:!0,large:!0,children:t?t():o})]})},o)}))}),[F,D]),ce=(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,w.jsxs)(Z.UE,{onClick:function(){_?_(e):E.push("/templates/[...slug]","/templates/".concat(encodeURIComponent(o)))},children:[(0,w.jsx)(Z.Tj,{children:(0,w.jsx)(g.ZP,{bold:!0,monospace:!0,textOverflow:!0,children:t||o})}),(0,w.jsx)(Z.SL,{children:(0,w.jsx)(g.ZP,{default:!!n,italic:!n,muted:!n,textOverflowLines:2,children:n||"No description"})}),(0,w.jsx)(Z.EN,{children:(null===d||void 0===d?void 0:d.length)>=1&&(0,w.jsx)(m.Z,{tags:null===d||void 0===d?void 0:d.map((function(e){return{uuid:e}}))})})]},o)}))}),[ne,_,E]),ue=(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,w.jsxs)(Z.UE,{onClick:function(){_?_(e):E.push("/templates/[...slug]","/templates/".concat(encodeURIComponent(o),"?object_type=").concat(a.R))},children:[(0,w.jsx)(Z.Tj,{children:(0,w.jsx)(g.ZP,{bold:!0,monospace:!0,textOverflow:!0,children:t||o})}),(0,w.jsx)(Z.SL,{children:(0,w.jsx)(g.ZP,{default:!!n,italic:!n,muted:!n,textOverflowLines:2,children:n||"No description"})}),(0,w.jsx)(Z.EN,{children:(null===d||void 0===d?void 0:d.length)>=1&&(0,w.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(!N)return null;var e=[];return z?e.push.apply(e,[{label:function(){return"Templates"},onClick:function(){q(!1)}},{bold:!0,label:function(){return"New custom template"}}]):e.push({label:function(){return"Templates"}}),(0,w.jsx)(Z.FX,{children:(0,w.jsx)(c.Z,{breadcrumbs:e})})}),[z,N]),ae=(0,o.useMemo)((function(){return N?36:0}),[N]),pe=(0,o.useMemo)((function(){return B-ae}),[B,ae]);if(z)return n=a.R===C&&S?(0,w.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,w.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,w.jsxs)(w.Fragment,{children:[N&&se,(0,w.jsx)(Z.Rd,{height:pe,width:R,children:n})]}):n;var fe=(0,w.jsxs)(Z.Nk,{children:[(0,w.jsxs)(Z.bC,{height:t?pe:null,children:[(0,w.jsx)(Z.Yf,{children:(0,w.jsx)(s.Z,{noPadding:!0,onClickTab:function(e){t?Y(e):(0,P.u7)({object_type:y.A2.uuid===e.uuid?a.R:a.Z})},selectedTabUUID:null===V||void 0===V?void 0:V.uuid,tabs:U})}),(0,w.jsxs)(Z.wl,{contained:t,heightOffset:ae,children:[y.n9.uuid===(null===V||void 0===V?void 0:V.uuid)&&le,y.A2.uuid===(null===V||void 0===V?void 0:V.uuid)&&de]})]}),(0,w.jsxs)(Z.w5,{children:[y.n9.uuid===(null===V||void 0===V?void 0:V.uuid)&&(0,w.jsx)(Z.HS,{children:(0,w.jsx)(u.ZP,{beforeIcon:(0,w.jsx)(b.mm,{size:Z.ZG}),onClick:function(){q(!0)},primary:!0,children:"New block template"})}),y.n9.uuid===(null===V||void 0===V?void 0:V.uuid)&&(0,w.jsxs)(w.Fragment,{children:[!K&&(0,w.jsx)(h.Z,{p:2,children:(0,w.jsx)(v.Z,{inverted:!0})}),K&&!(null!==ce&&void 0!==ce&&ce.length)&&(0,w.jsxs)(h.Z,{p:2,children:[(0,w.jsx)(g.ZP,{children:"There are currently no templates matching your search."}),(0,w.jsx)("br",{}),(0,w.jsx)(g.ZP,{children:"Add a new template by clicking the button above."})]}),(null===ce||void 0===ce?void 0:ce.length)>=1&&(0,w.jsx)(Z.n8,{children:ce})]}),y.A2.uuid===(null===V||void 0===V?void 0:V.uuid)&&(0,w.jsxs)(w.Fragment,{children:[!ie&&(0,w.jsx)(h.Z,{p:2,children:(0,w.jsx)(v.Z,{inverted:!0})}),ie&&!(null!==ue&&void 0!==ue&&ue.length)&&(0,w.jsxs)(h.Z,{p:2,children:[(0,w.jsx)(g.ZP,{children:"There are currently no templates matching your search."}),(0,w.jsx)("br",{}),(0,w.jsx)(g.ZP,{children:'Add a new template by right-clicking a pipeline row from the Pipelines page and selecting "Create template".'})]}),(null===ue||void 0===ue?void 0:ue.length)>=1&&(0,w.jsx)(Z.n8,{children:ue})]})]})]});return t?(0,w.jsxs)(w.Fragment,{children:[N&&se,(0,w.jsx)(Z.Rd,{height:pe,width:R,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),c=t(97618),u=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),g=t(98464),x=t(46684),b=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 O(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 w(e,n){var t,i=e.addProjectBreadcrumbToCustomBreadcrumbs,f=e.after,P=e.afterHeader,w=e.afterHidden,k=e.afterWidth,I=e.afterWidthOverride,C=e.appendBreadcrumbs,_=e.before,S=e.beforeWidth,M=e.breadcrumbs,N=e.children,A=e.errors,E=e.headerMenuItems,D=e.headerOffset,T=e.hideAfterCompletely,B=e.mainContainerHeader,R=e.navigationItems,U=e.setAfterHidden,H=e.setErrors,z=e.subheaderChildren,q=e.subheaderNoPadding,L=e.title,F=e.uuid,W=(0,y.i)().width,G="dashboard_after_width_".concat(F),V="dashboard_before_width_".concat(F),Y=(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)(V,S),13*b.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],ce=j.ZP.projects.list({},{revalidateOnFocus:!1}).data,ue=null===ce||void 0===ce?void 0:ce.projects,se={label:function(){var e;return null===ue||void 0===ue||null===(e=ue[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},ae=[];M&&(i&&ae.push(se),ae.push.apply(ae,(0,r.Z)(M))),(null===M||void 0===M||!M.length||C)&&(null===ue||void 0===ue?void 0:ue.length)>=1&&(null!==M&&void 0!==M&&M.length||ae.unshift({bold:!C,label:function(){return L}}),ae.unshift(se)),(0,o.useEffect)((function(){null===Y||void 0===Y||!Y.current||K||oe||null===de||void 0===de||de(Y.current.getBoundingClientRect().width)}),[K,$,oe,te,Y,de,W]),(0,o.useEffect)((function(){K||(0,Z.t8)(G,$)}),[w,K,$,G]),(0,o.useEffect)((function(){oe||(0,Z.t8)(V,te)}),[oe,te,V]);var pe=(0,g.Z)(k);return(0,o.useEffect)((function(){I&&pe!==k&&Q(k)}),[I,k,pe]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(u.Z,{title:L}),(0,p.jsx)(s.Z,{breadcrumbs:ae,menuItems:E,project:null===ue||void 0===ue?void 0:ue[0],version:null===ue||void 0===ue||null===(t=ue[0])||void 0===t?void 0:t.version}),(0,p.jsxs)(a.Nk,{ref:n,children:[0!==(null===R||void 0===R?void 0:R.length)&&(0,p.jsx)(a.lm,{showMore:!0,children:(0,p.jsx)(m.Z,{navigationItems:R,showMore:!0})}),(0,p.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(v.Z,{after:f,afterHeader:P,afterHeightOffset:x.Mz,afterHidden:w,afterMousedownActive:K,afterWidth:$,before:_,beforeHeightOffset:x.Mz,beforeMousedownActive:oe,beforeWidth:a.k1+(_?te:0),headerOffset:D,hideAfterCompletely:!U||T,leftOffset:_?a.k1:null,mainContainerHeader:B,mainContainerRef:Y,setAfterHidden:U,setAfterMousedownActive:ee,setAfterWidth:Q,setBeforeMousedownActive:le,setBeforeWidth:ie,children:[z&&(0,p.jsx)(h,{noPadding:q,children:z}),N]})})]}),A&&(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,O(O({},A),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}var k=o.forwardRef(w)},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),c=t(28598),u=1.5*l.iI,s=function(e,n){var t=[{beforeIcon:(0,c.jsx)(r.X5,{}),label:function(){return"Standard (batch)"},onClick:function(){return e({pipeline:{name:(0,d.Y6)()}})},uuid:"Pipelines/NewPipelineMenu/standard"},{beforeIcon:(0,c.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,c.jsx)(i.Z,{size:u}),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,c.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,c.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 c},Nk:function(){return d},gI:function(){return u}});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 ")})),c=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 ")})),u=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),c=t(28598);n.Z=function(e){var n=e.onClickTag,t=e.tags,u=void 0===t?[]:t,s=(0,i.useMemo)((function(){return(null===u||void 0===u?void 0:u.length)||0}),[u]),a=(0,i.useMemo)((function(){return(0,d.YC)(u||[],"uuid")}),[u]);return(0,c.jsx)(o.ZP,{alignItems:"center",flexWrap:"wrap",children:null===a||void 0===a?void 0:a.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}),[])})}},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),c=t(15338),u=t(97618),s=t(55485),a=t(85854),p=t(48670),f=t(65956),h=t(82359),v=t(88543),m=t(38276),j=t(30160),g=t(17488),x=t(69650),b=t(12468),Z=t(35686),y=t(38626),P=t(44897),O=t(42631),w=t(70515),k=y.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1b0w59t-0"})(["border-radius:","px;padding:","px;",""],O.n_,w.cd*w.iI,(function(e){return"\n background-color: ".concat((e.theme.background||P.Z.background).codeArea,";\n ")})),I=t(72473),C=t(72191),_=t(81728),S=t(72619),M=t(70320),N=t(23780),A=t(28598);function E(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?E(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var T=function(e){var n,t,y,P=e.cancelButtonText,O=e.contained,E=e.header,T=e.onCancel,B=e.onSaveSuccess,R=(0,N.VI)(null,{},[],{uuid:"settings/workspace/preferences"}),U=(0,r.Z)(R,1)[0],H=(0,o.useState)(null),z=H[0],q=H[1],L=(0,o.useState)(!1),F=L[0],W=L[1],G=Z.ZP.projects.list(),V=G.data,Y=G.mutate,X=(0,o.useMemo)((function(){var e;return null===V||void 0===V||null===(e=V.projects)||void 0===e?void 0:e[0]}),[V]),$=X||{},Q=$.name,J=$.openai_api_key,K=$.project_uuid,ee=(0,o.useMemo)((function(){return"demo.mage.ai"===window.location.hostname}),[]);(0,o.useEffect)((function(){z||q(X)}),[X,z]);var ne=(0,l.Db)(Z.ZP.projects.useUpdate(Q),{onSuccess:function(e){return(0,S.wD)(e,{callback:function(e){var n,t=e.project;Y(),q(t),W(!1),(0,M.h)(null===t||void 0===t||null===(n=t.features)||void 0===n?void 0:n[h.d.LOCAL_TIMEZONE]),B&&(null===B||void 0===B||B(t))},onErrorCallback:function(e,n){return U({errors:n,response:e})}})}}),te=(0,r.Z)(ne,2),ie=te[0],re=te[1].isLoading,oe=(0,o.useCallback)((function(e){return ie({project:e})}),[ie]),le=(0,A.jsxs)(A.Fragment,{children:[E,(0,A.jsxs)(f.Z,{noPadding:!0,children:[(0,A.jsxs)(m.Z,{p:w.cd,children:[(0,A.jsx)(m.Z,{mb:1,children:(0,A.jsx)(a.Z,{level:5,children:"Project name"})}),(0,A.jsx)(j.ZP,{default:!0,monospace:!0,children:Q})]}),(0,A.jsx)(c.Z,{light:!0}),(0,A.jsxs)(m.Z,{p:w.cd,children:[(0,A.jsx)(m.Z,{mb:1,children:(0,A.jsx)(a.Z,{level:5,children:"Project UUID"})}),(0,A.jsx)(j.ZP,{default:!!K,monospace:!0,muted:!K,children:K||"Not required"})]}),(0,A.jsx)(c.Z,{light:!0}),(0,A.jsx)(m.Z,{p:w.cd,children:(0,A.jsxs)(s.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,A.jsxs)(u.Z,{flexDirection:"column",children:[(0,A.jsx)(m.Z,{mb:1,children:(0,A.jsx)(a.Z,{level:5,children:"Help improve Mage"})}),(0,A.jsxs)(j.ZP,{default:!0,children:["Please contribute usage statistics to help improve the developer experience for you and everyone in the community. Learn more ",(0,A.jsx)(p.Z,{href:"https://docs.mage.ai/contributing/statistics/overview",openNewWindow:!0,children:"here"}),"."]})]}),(0,A.jsx)(m.Z,{mr:w.cd}),(0,A.jsx)(x.Z,{compact:!0,checked:null===z||void 0===z?void 0:z.help_improve_mage,onCheck:function(){return q((function(e){return D(D({},e),{},{help_improve_mage:!(null!==z&&void 0!==z&&z.help_improve_mage)})}))}})]})})]}),(0,A.jsx)(m.Z,{mt:w.HN}),(0,A.jsx)(v.Z,{description:"Global settings that are applied to all pipelines in this project.",title:"Pipeline settings",children:(0,A.jsx)(v.S,{description:"Every time a trigger is created or updated in this pipeline, automatically persist it in code.",title:"Save triggers in code automatically",toggleSwitch:{checked:!(null===z||void 0===z||null===(n=z.pipelines)||void 0===n||null===(t=n.settings)||void 0===t||null===(y=t.triggers)||void 0===y||!y.save_in_code_automatically),onCheck:function(e){return q((function(n){var t,i,r,o,l,d;return D(D({},n),{},{pipelines:D(D({},null===n||void 0===n?void 0:n.pipelines),{},{settings:D(D({},null===n||void 0===n||null===(t=n.pipelines)||void 0===t?void 0:t.settings),{},{triggers:D(D({},null===n||void 0===n||null===(i=n.pipelines)||void 0===i||null===(r=i.settings)||void 0===r?void 0:r.triggers),{},{save_in_code_automatically:e(null===n||void 0===n||null===(o=n.pipelines)||void 0===o||null===(l=o.settings)||void 0===l||null===(d=l.triggers)||void 0===d?void 0:d.save_in_code_automatically)})})})})}))}}})}),(0,A.jsx)(m.Z,{mt:w.HN}),(0,A.jsx)(f.Z,{noPadding:!0,overflowVisible:!0,children:(0,A.jsxs)(m.Z,{p:w.cd,children:[(0,A.jsx)(m.Z,{mb:1,children:(0,A.jsx)(a.Z,{level:5,children:"Features"})}),Object.entries((null===z||void 0===z?void 0:z.features)||{}).map((function(e,n){var t=(0,r.Z)(e,2),o=t[0],l=t[1];return(0,A.jsx)(m.Z,{mt:0===n?0:1,children:(0,A.jsxs)(s.ZP,{alignItems:"center",children:[(0,A.jsx)(x.Z,{checked:!!l,compact:!0,onCheck:function(){return q((function(e){return D(D({},e),{},{features:D(D({},null===z||void 0===z?void 0:z.features),{},(0,i.Z)({},o,!l))})}))}}),(0,A.jsx)(m.Z,{mr:w.cd}),(0,A.jsxs)(u.Z,{children:[(0,A.jsx)(j.ZP,{default:!l,monospace:!0,children:(0,_.vg)(o)}),o===h.d.LOCAL_TIMEZONE&&(0,A.jsx)(m.Z,{ml:1,children:(0,A.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:C._k})})]})]})},o)}))]})}),(0,A.jsx)(m.Z,{mt:w.HN}),(0,A.jsx)(f.Z,{noPadding:!0,children:(0,A.jsxs)(m.Z,{p:w.cd,children:[(0,A.jsx)(m.Z,{mb:1,children:(0,A.jsx)(a.Z,{level:5,children:"OpenAI"})}),J&&!F?(0,A.jsxs)(s.ZP,D(D({},s.A0),{},{children:[(0,A.jsx)(j.ZP,{default:!0,monospace:!0,children:"API key: ********"}),(0,A.jsx)(d.ZP,{iconOnly:!0,onClick:function(){return W(!0)},secondary:!0,title:"Edit",children:(0,A.jsx)(I.I8,{size:C.bL})})]})):(0,A.jsx)(g.Z,{disabled:ee,label:ee?"Entering API key is disabled on demo":"API key",monospace:!0,onChange:function(e){return q((function(n){return D(D({},n),{},{openai_api_key:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===z||void 0===z?void 0:z.openai_api_key)||""})]})}),(0,A.jsx)(m.Z,{mt:w.HN}),(0,A.jsxs)(s.ZP,{alignItems:"center",children:[(0,A.jsx)(d.ZP,{loading:re,onClick:function(){oe({features:null===z||void 0===z?void 0:z.features,help_improve_mage:null===z||void 0===z?void 0:z.help_improve_mage,openai_api_key:null===z||void 0===z?void 0:z.openai_api_key,pipelines:null===z||void 0===z?void 0:z.pipelines})},primary:!0,children:"Save project settings"}),T&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(m.Z,{mr:w.cd}),(0,A.jsx)(d.ZP,{onClick:T,secondary:!0,children:P||"Cancel"})]})]})]});return O?(0,A.jsx)(k,{children:le}):le}},88543:function(e,n,t){t.d(n,{S:function(){return Z},Z:function(){return y}});var i=t(82684),r=t(15338),o=t(97618),l=t(55485),d=t(85854),c=t(65956),u=t(82394),s=t(44085),a=t(38276),p=t(30160),f=t(17488),h=t(69650),v=t(72473),m=t(8193),j=t(70515),g=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,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Z=function(e){var n,t=e.children,i=e.description,r=e.invalid,d=e.large,c=void 0===d||d,u=e.selectInput,x=e.textInput,Z=e.title,y=e.toggleSwitch,P=e.warning;return(0,g.jsx)(a.Z,{p:j.cd,children:(0,g.jsxs)(l.ZP,{alignItems:"center",children:[(0,g.jsxs)(l.ZP,{flexDirection:"column",children:[(0,g.jsxs)(p.ZP,{danger:r,default:!0,large:c,warning:P,children:[Z," ",r&&(0,g.jsx)(p.ZP,{danger:!0,inline:!0,large:c,children:"is required"})]}),i&&"string"===typeof i&&(0,g.jsx)(p.ZP,{muted:!0,small:!0,children:i}),i&&"string"!==typeof i&&i]}),(0,g.jsx)(a.Z,{mr:j.cd}),(0,g.jsxs)(o.Z,{flex:1,justifyContent:"flex-end",children:[t,x&&(0,g.jsx)(f.Z,b({afterIcon:(0,g.jsx)(v.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:m.Z,alignRight:!0,autoComplete:"off",large:c,noBackground:!0,noBorder:!0,fullWidth:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0},x)),u&&(0,g.jsx)(s.Z,b(b({},u),{},{afterIcon:(0,g.jsx)(v._M,{}),afterIconSize:m.Z,alignRight:!0,autoComplete:"off",large:c,noBackground:!0,noBorder:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0,children:null===u||void 0===u||null===(n=u.options)||void 0===n?void 0:n.map((function(e){var n=e.label,t=e.value;return(0,g.jsx)("option",{value:t,children:n||t},t)}))})),y&&(0,g.jsx)(h.Z,{checked:!(null===y||void 0===y||!y.checked),compact:!0,onCheck:null===y||void 0===y?void 0:y.onCheck})]})]})})},y=function(e){var n=e.children,t=e.description,u=e.headerChildren,s=e.title;return(0,g.jsxs)(c.Z,{noPadding:!0,children:[(0,g.jsx)(a.Z,{p:j.cd,children:(0,g.jsxs)(l.ZP,{alignItems:"center",children:[(0,g.jsxs)(o.Z,{flex:1,flexDirection:"column",children:[(0,g.jsx)(d.Z,{level:4,children:s}),t&&"string"===typeof t&&(0,g.jsx)(a.Z,{mt:1,children:(0,g.jsx)(p.ZP,{muted:!0,children:t})}),t&&"string"!==typeof t&&t]}),u]})}),i.Children.map(n,(function(e,n){return(0,g.jsxs)("div",{children:[(0,g.jsx)(r.Z,{light:!0}),e]},"".concat(s,"-").concat(n))}))]})}},8193:function(e,n,t){t.d(n,{N:function(){return c},Z:function(){return d}});var i=t(38626),r=t(44897),o=t(42631),l=t(70515),d=2*l.iI,c=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1ck7mzt-0"})(["border-radius:","px;padding:","px;",""],o.n_,l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).codeArea,";\n ")}))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2714],{67778:function(e,n,t){t.d(n,{Z:function(){return g}});var r=t(47329),i=t.n(r),l=t(82684),a=t(63588),o=t.n(a),s=t(5237),f=t(29989),u=t(81352),c=t(46119),d=t(
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2714],{67778:function(e,n,t){t.d(n,{Z:function(){return g}});var r=t(47329),i=t.n(r),l=t(82684),a=t(63588),o=t.n(a),s=t(5237),f=t(29989),u=t(81352),c=t(46119),d=t(38469),p=t(12765),h=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function m(){return m=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},m.apply(this,arguments)}function g(e){var n=e.top,t=void 0===n?0:n,r=e.left,i=void 0===r?0:r,a=e.scale,g=e.width,y=e.stroke,v=void 0===y?"#eaf0f6":y,b=e.strokeWidth,x=void 0===b?1:b,O=e.strokeDasharray,w=e.className,k=e.children,T=e.numTicks,E=void 0===T?10:T,j=e.lineStyle,Z=e.offset,N=e.tickValues,M=function(e,n){if(null==e)return{};var t,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,h),D=null!=N?N:(0,c.Z)(a,E),I=(null!=Z?Z:0)+(0,p.Z)(a)/2,P=D.map((function(e,n){var t,r=(null!=(t=(0,d.Z)(a(e)))?t:0)+I;return{index:n,from:new u.Z({x:0,y:r}),to:new u.Z({x:g,y:r})}}));return l.createElement(f.Z,{className:o()("visx-rows",w),top:t,left:i},k?k({lines:P}):P.map((function(e){var n=e.from,t=e.to,r=e.index;return l.createElement(s.Z,m({key:"row-line-"+r,from:n,to:t,stroke:v,strokeWidth:x,strokeDasharray:O,style:j},M))})))}g.propTypes={tickValues:i().array,width:i().number.isRequired}},12765:function(e,n,t){function r(e){return"bandwidth"in e?e.bandwidth():0}t.d(n,{Z:function(){return r}})},84482:function(e,n,t){t.d(n,{Z:function(){return s}});var r=t(47329),i=t.n(r),l=t(82684),a=["flexDirection","alignItems","margin","display","children"];function o(){return o=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},o.apply(this,arguments)}function s(e){var n=e.flexDirection,t=void 0===n?"row":n,r=e.alignItems,i=void 0===r?"center":r,s=e.margin,f=void 0===s?"0":s,u=e.display,c=void 0===u?"flex":u,d=e.children,p=function(e,n){if(null==e)return{};var t,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,a);return l.createElement("div",o({className:"visx-legend-item",style:{display:c,alignItems:i,flexDirection:t,margin:f}},p),d)}s.propTypes={alignItems:i().string,margin:i().oneOfType([i().string,i().number]),children:i().node,display:i().string}},76771:function(e,n,t){t.d(n,{Z:function(){return s}});var r=t(47329),i=t.n(r),l=t(82684),a=["flex","label","margin","align","children"];function o(){return o=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},o.apply(this,arguments)}function s(e){var n=e.flex,t=void 0===n?"1":n,r=e.label,i=e.margin,s=void 0===i?"5px 0":i,f=e.align,u=void 0===f?"left":f,c=e.children,d=function(e,n){if(null==e)return{};var t,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,a);return l.createElement("div",o({className:"visx-legend-label",style:{justifyContent:u,display:"flex",flex:t,margin:s}},d),c||r)}s.propTypes={align:i().string,label:i().node,flex:i().oneOfType([i().string,i().number]),margin:i().oneOfType([i().string,i().number]),children:i().node}},17066:function(e,n,t){t.d(n,{Z:function(){return j}});var r=t(82684),i=t(47329),l=t.n(i),a=t(63588),o=t.n(a),s=t(84482),f=t(76771);function u(){return u=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},u.apply(this,arguments)}function c(e){var n=e.fill,t=e.width,i=e.height,l=e.style;return r.createElement("div",{style:u({width:t,height:i,background:n},l)})}c.propTypes={fill:l().string,width:l().oneOfType([l().string,l().number]),height:l().oneOfType([l().string,l().number])};var d=t(29989);function p(e){var n=e.fill,t=e.width,i=e.height,l=e.style,a="string"===typeof t||"undefined"===typeof t?0:t,o="string"===typeof i||"undefined"===typeof i?0:i,s=Math.max(a,o),f=s/2;return r.createElement("svg",{width:s,height:s},r.createElement(d.Z,{top:f,left:f},r.createElement("circle",{r:f,fill:n,style:l})))}function h(e){var n=e.fill,t=e.width,i=e.height,l=e.style,a="string"===typeof i||"undefined"===typeof i?0:i,o="number"===typeof(null==l?void 0:l.strokeWidth)?null==l?void 0:l.strokeWidth:2;return r.createElement("svg",{width:t,height:i},r.createElement(d.Z,{top:a/2-o/2},r.createElement("line",{x1:0,x2:t,y1:0,y2:0,stroke:n,strokeWidth:o,style:l})))}function m(){return m=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},m.apply(this,arguments)}p.propTypes={fill:l().string,width:l().oneOfType([l().string,l().number]),height:l().oneOfType([l().string,l().number])},h.propTypes={fill:l().string,width:l().oneOfType([l().string,l().number]),height:l().oneOfType([l().string,l().number])};var g=function(){};function y(){return y=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},y.apply(this,arguments)}function v(e){var n=e.shape,t=void 0===n?c:n,i=e.width,l=e.height,a=e.margin,o=e.label,s=e.item,f=e.itemIndex,u=e.fill,d=e.size,v=e.shapeStyle;return r.createElement("div",{className:"visx-legend-shape",style:{display:"flex",width:d?d(y({},o)):i,height:d?d(y({},o)):l,margin:a}},function(e){var n=e.shape,t=void 0===n?"rect":n,i=e.fill,l=void 0===i?g:i,a=e.size,o=void 0===a?g:a,s=e.width,f=e.height,u=e.label,d=e.item,y=e.itemIndex,v=e.shapeStyle,b=void 0===v?g:v,x={width:s,height:f,item:d,itemIndex:y,label:u,fill:l(m({},u)),size:o(m({},u)),style:b(m({},u))};return"string"===typeof t?"circle"===t?r.createElement(p,x):"line"===t?r.createElement(h,x):r.createElement(c,x):r.isValidElement(t)?r.cloneElement(t,x):t?r.createElement(t,x):null}({shape:t,item:s,itemIndex:f,label:o,width:i,height:l,fill:u,shapeStyle:v}))}function b(e){return e&&"object"===typeof e&&"value"in e&&"undefined"!==typeof e.value?e.value:e}function x(e){return String(b(e))}function O(e){var n=e.scale,t=e.labelFormat;return function(e,r){return{datum:e,index:r,text:""+t(e,r),value:n(e)}}}v.propTypes={itemIndex:l().number.isRequired,margin:l().oneOfType([l().string,l().number]),width:l().oneOfType([l().string,l().number]),height:l().oneOfType([l().string,l().number])};var w=["className","style","scale","shape","domain","fill","size","labelFormat","labelTransform","shapeWidth","shapeHeight","shapeMargin","shapeStyle","labelAlign","labelFlex","labelMargin","itemMargin","direction","itemDirection","legendLabelProps","children"];function k(){return k=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},k.apply(this,arguments)}var T={display:"flex"};function E(e){var n=e.className,t=e.style,i=void 0===t?T:t,l=e.scale,a=e.shape,u=e.domain,c=e.fill,d=void 0===c?x:c,p=e.size,h=void 0===p?x:p,m=e.labelFormat,g=void 0===m?b:m,y=e.labelTransform,E=void 0===y?O:y,j=e.shapeWidth,Z=void 0===j?15:j,N=e.shapeHeight,M=void 0===N?15:N,D=e.shapeMargin,I=void 0===D?"2px 4px 2px 0":D,P=e.shapeStyle,S=e.labelAlign,W=void 0===S?"left":S,F=e.labelFlex,z=void 0===F?"1":F,_=e.labelMargin,R=void 0===_?"0 4px":_,V=e.itemMargin,A=void 0===V?"0":V,C=e.direction,H=void 0===C?"column":C,q=e.itemDirection,L=void 0===q?"row":q,B=e.legendLabelProps,G=e.children,J=function(e,n){if(null==e)return{};var t,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,w),K=u||("domain"in l?l.domain():[]),Q=E({scale:l,labelFormat:g}),U=K.map(Q);return G?r.createElement(r.Fragment,null,G(U)):r.createElement("div",{className:o()("visx-legend",n),style:k({},i,{flexDirection:H})},U.map((function(e,n){return r.createElement(s.Z,k({key:"legend-"+e.text+"-"+n,margin:A,flexDirection:L},J),r.createElement(v,{shape:a,height:M,width:Z,margin:I,item:K[n],itemIndex:n,label:e,fill:d,size:h,shapeStyle:P}),r.createElement(f.Z,k({label:e.text,flex:z,margin:R,align:W},B)))})))}function j(e){return r.createElement(E,e)}E.propTypes={children:l().func,className:l().string,domain:l().array,shapeWidth:l().oneOfType([l().string,l().number]),shapeHeight:l().oneOfType([l().string,l().number]),shapeMargin:l().oneOfType([l().string,l().number]),labelAlign:l().string,labelFlex:l().oneOfType([l().string,l().number]),labelMargin:l().oneOfType([l().string,l().number]),itemMargin:l().oneOfType([l().string,l().number]),fill:l().func,size:l().func,shapeStyle:l().func}},5237:function(e,n,t){n.Z=function(e){var n=e.from,t=void 0===n?{x:0,y:0}:n,a=e.to,s=void 0===a?{x:1,y:1}:a,f=e.fill,u=void 0===f?"transparent":f,c=e.className,d=e.innerRef,p=function(e,n){if(null==e)return{};var t,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,l),h=t.x===s.x||t.y===s.y;return r.default.createElement("line",o({ref:d,className:(0,i.default)("visx-line",c),x1:t.x,y1:t.y,x2:s.x,y2:s.y,fill:u,shapeRendering:h?"crispEdges":"auto"},p))};var r=a(t(82684)),i=a(t(63588)),l=["from","to","fill","className","innerRef"];function a(e){return e&&e.__esModule?e:{default:e}}function o(){return o=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},o.apply(this,arguments)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2717],{71610:function(e,n,i){var t=i(82394),r=i(75582),l=i(12691),o=i.n(l),s=i(38626),u=i(82684),c=i(32013),a=i(98777),d=i(15338),v=i(48670),h=i(88543),p=i(38276),m=i(4190),f=i(75499),j=i(30160),x=i(35686),g=i(70515),Z=i(30229),b=i(32080),y=i(81728),P=i(3917),O=i(55283),_=i(70320),E=i(28598);function k(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function S(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?k(Object(i),!0).forEach((function(n){(0,t.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):k(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var T={large:!1};n.Z=function(e){var n=e.bookmarkValues,i=e.originalBookmarkValues,l=e.setBookmarkValues,k=e.pipeline,I=(0,u.useContext)(s.ThemeContext),C=(0,_.q)(),w=(0,u.useState)(null),M=w[0],A=w[1],N=(0,u.useMemo)((function(){return null!==k&&void 0!==k&&k.blocks?(0,b.n)(k):null}),[k]),L=(0,u.useMemo)((function(){return Object.keys(N||{})||[]}),[N]),D=x.ZP.integration_sources.pipelines.list(null===k||void 0===k?void 0:k.uuid,{block_uuid:L},{},{pauseFetch:!(null!==L&&void 0!==L&&L.length)}).data,R=(0,u.useMemo)((function(){return null===D||void 0===D?void 0:D.integration_sources}),[D]);return(0,u.useEffect)((function(){if((null===R||void 0===R?void 0:R.length)>=1&&(!n||!M)){var e={};null===R||void 0===R||R.map((function(n){var i,t=n.block,l=n.streams,o=null===t||void 0===t?void 0:t.uuid;e[o]={},null===(i=Object.entries(l||{}))||void 0===i||i.forEach((function(n){var i,t,l=(0,r.Z)(n,2),s=l[0],u=l[1];e[o][s]=null===u||void 0===u||null===(i=u.state)||void 0===i||null===(t=i.bookmarks)||void 0===t?void 0:t[s]}))})),n||l(e),M||A(e)}}),[n,M,l,A,R]),(0,E.jsxs)(p.Z,{p:g.cd,children:[!D&&(0,E.jsx)(m.Z,{inverted:!0,small:!0}),null===R||void 0===R?void 0:R.map((function(e){var s=e.block,m=e.pipeline_run,x=e.pipeline_schedule,b=e.streams,_=null===s||void 0===s?void 0:s.uuid;return(0,E.jsx)(h.Z,{title:(0,E.jsx)(j.ZP,{color:(0,O.qn)(null===s||void 0===s?void 0:s.type,{blockColor:null===s||void 0===s?void 0:s.color,theme:I}).accent,monospace:!0,children:_}),children:(0,E.jsx)(c.Z,{noBorder:!0,noBoxShadow:!0,children:Object.entries(b||{}).map((function(e){var s,c,b,O,I=(0,r.Z)(e,2),w=I[0],A=I[1],N=A.record,L=A.state,D=(null===L||void 0===L||null===(s=L.bookmarks)||void 0===s?void 0:s[w])||{};return(0,E.jsxs)(a.Z,{noBorderRadius:!0,noPaddingContent:!0,title:(0,E.jsx)(j.ZP,{default:!0,monospace:!0,children:w}),titleXPadding:g.cd*g.iI,titleYPadding:g.cd*g.iI,children:[(0,E.jsx)(h.S,S(S({},T),{},{title:"Last pipeline run started at",children:(0,E.jsx)(j.ZP,{default:!0,monospace:!0,children:(null===m||void 0===m?void 0:m.started_at)&&(0,P.XG)(null===m||void 0===m?void 0:m.started_at,C)})})),(0,E.jsx)(d.Z,{light:!0}),(0,E.jsx)(h.S,S(S({},T),{},{title:"Last pipeline run completed at",children:(0,E.jsx)(j.ZP,{default:!0,monospace:!0,children:(null===m||void 0===m?void 0:m.completed_at)&&(0,P.XG)(null===m||void 0===m?void 0:m.completed_at,C)})})),(0,E.jsx)(d.Z,{light:!0}),(0,E.jsx)(d.Z,{light:!0}),(0,E.jsx)(h.S,S(S({},T),{},{title:"Trigger",children:(0,E.jsx)(o(),{as:"/pipelines/".concat(null===k||void 0===k?void 0:k.uuid,"/triggers/").concat(null===x||void 0===x?void 0:x.id),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,E.jsx)(v.Z,{block:!0,default:!0,openNewWindow:!0,children:(0,E.jsx)(j.ZP,{default:!0,monospace:!0,children:null===x||void 0===x?void 0:x.name})})})})),(0,E.jsx)(d.Z,{light:!0}),(0,E.jsx)(h.S,S(S({},T),{},{title:"Type",children:(0,E.jsx)(j.ZP,{default:!0,monospace:!0,children:(0,y.kC)((null===(c=Z.Z4[null===x||void 0===x?void 0:x.schedule_type])||void 0===c?void 0:c.call(Z.Z4))||"")})})),(0,E.jsx)(d.Z,{light:!0}),(0,E.jsx)(h.S,S(S({},T),{},{title:"Frequency",children:(0,E.jsx)(j.ZP,{default:!0,monospace:!0,children:null===x||void 0===x?void 0:x.schedule_interval})})),(0,E.jsx)(d.Z,{light:!0}),(0,E.jsxs)(p.Z,{p:g.cd,children:[(0,E.jsx)(j.ZP,{bold:!0,large:!0,children:"Bookmark values"}),(0,E.jsx)(p.Z,{mt:1,children:(0,E.jsxs)(j.ZP,{muted:!0,small:!0,children:["Overriding the bookmark values will be applied to all pipeline runs",(0,E.jsx)("br",{}),"for this trigger until there is at least 1 successful pipeline run in this trigger."]})})]}),(0,E.jsx)(d.Z,{light:!0,short:!0}),!(null!==(b=Object.values(D||{}))&&void 0!==b&&b.length)&&(0,E.jsx)(p.Z,{p:g.cd,children:(0,E.jsx)(j.ZP,{muted:!0,children:"There are currently no bookmark values for this stream."})}),Object.entries(D||{}).map((function(e){var o,s,c,a,d,v,p=(0,r.Z)(e,2),m=p[0],f=(p[1],null===n||void 0===n||null===(o=n[_])||void 0===o||null===(s=o[w])||void 0===s?void 0:s[m]),x=(null===i||void 0===i||null===(c=i[_])||void 0===c||null===(a=c[w])||void 0===a||a[m],null===M||void 0===M||null===(d=M[_])||void 0===d||null===(v=d[w])||void 0===v?void 0:v[m]);return(0,u.createElement)(h.S,S(S({},T),{},{title:(0,E.jsx)(j.ZP,{default:!0,monospace:!0,children:m}),description:x&&x!==f&&(0,E.jsxs)(j.ZP,{muted:!0,small:!0,children:["Original bookmark value from the last pipeline run: ",(0,E.jsx)(j.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:x})]}),key:"".concat(_,"-bookmark-values-").concat(m),textInput:{monospace:!0,onChange:function(e){return l((function(i){var r;return S(S({},i),{},(0,t.Z)({},_,S(S({},null===n||void 0===n?void 0:n[_]),{},(0,t.Z)({},w,S(S({},null===n||void 0===n||null===(r=n[_])||void 0===r?void 0:r[w]),{},(0,t.Z)({},m,e.target.value))))))}))},value:String(f||"")}}))})),(0,E.jsx)(d.Z,{light:!0}),(0,u.createElement)(h.S,S(S({},T),{},{title:"Record",description:"The most recently synced record.",key:"block-uuid-".concat(_,"-").concat(w)}),(0,E.jsx)(f.Z,{columnFlex:[1,null],columns:[{uuid:"Column"},{uuid:"Value"}],rows:null===(O=Object.entries(N||{}))||void 0===O?void 0:O.map((function(e){var n=(0,r.Z)(e,2),i=n[0],t=n[1];return[(0,E.jsx)(j.ZP,{default:!0,monospace:!0,children:i},i),(0,E.jsx)(j.ZP,{default:!0,monospace:!0,children:String(t)},"".concat(i,"-").concat(t))]}))}))]})}))})})}))]})}},12717:function(e,n,i){i.d(n,{Z:function(){return Ue}});var t=i(21831),r=i(82394),l=i(75582),o=i(12691),s=i.n(o),u=i(82684),c=i(20026),a=i.n(c),d=i(92083),v=i.n(d),h=i(21764),p=i(69864),m=i(34376),f=i(71610),j=i(71180),x=i(90299),g=i(14805),Z=i(70652),b=i(50724),y=i(9134),P=i(39457),O=i(38626),_=i(39867),E=i(55485),k=i(85854),S=i(38276),T=i(75499),I=i(30160),C=i(17488),w=i(12468),M=i(44375),A=i(70515),N=i(55283),L=i(86735),D=i(28598);function R(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function U(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?R(Object(i),!0).forEach((function(n){(0,r.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):R(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var H=function(e){var n=e.blocks,i=e.updateVariables,t=e.variables,l=(0,u.useContext)(O.ThemeContext),o=(0,u.useCallback)((function(e,n){return i((function(){var i=(null===t||void 0===t?void 0:t.__mage_variables)||{},l=(null===i||void 0===i?void 0:i.blocks)||{},o=l[e]||{},s=(null===o||void 0===o?void 0:o.configuration)||{};return U(U({},t),{},{__mage_variables:U(U({},i),{},{blocks:U(U({},l),{},(0,r.Z)({},e,U(U({},o),{},{configuration:U(U({},s),n)})))})})}))}),[i,t]);return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(k.Z,{children:"dbt runtime settings"}),(0,D.jsx)(S.Z,{mt:A.Mq,children:(0,D.jsx)(T.Z,{columnFlex:[1,null,null,null],columns:[{uuid:"Block"},{uuid:"Flags"},{uuid:"Prefix"},{uuid:"Suffix"}],compact:!0,rows:null===n||void 0===n?void 0:n.map((function(e){var n,i,r,s=e.type,u=e.uuid,c=(0,M.IU)(e).name,a=(0,N.qn)(s,{blockColor:e.color,theme:l}).accent,d=null===t||void 0===t||null===(n=t.__mage_variables)||void 0===n||null===(i=n.blocks)||void 0===i||null===(r=i[u])||void 0===r?void 0:r.configuration,v=d||{},h=v.prefix,p=v.suffix,m=(null===d||void 0===d?void 0:d.flags)||[],f=!(null===m||void 0===m||!m.includes(M.Dy));return[(0,D.jsx)(w.Z,{block:!0,label:(0,D.jsx)(I.ZP,{monospace:!0,small:!0,children:u}),size:null,widthFitContent:!0,children:(0,D.jsxs)(E.ZP,{alignItems:"center",children:[(0,D.jsx)(_.Z,{color:a,size:1.5*A.iI,square:!0}),(0,D.jsx)(S.Z,{mr:1}),(0,D.jsxs)(I.ZP,{monospace:!0,small:!0,children:[h&&(0,D.jsx)(I.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:h}),c,p&&(0,D.jsx)(I.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:p})]})]})},"uuid-".concat(u)),(0,D.jsx)(E.ZP,{alignItems:"center",children:(0,D.jsx)(Z.Z,{checked:f,label:M.Dy,monospace:!0,onClick:function(){return o(u,{flags:f?(0,L.Od)(m,(function(e){return M.Dy===e})):m.concat(M.Dy)})},small:!0})},"flags-".concat(u)),(0,D.jsx)(C.Z,{compact:!0,monospace:!0,onChange:function(e){return o(u,{prefix:e.target.value})},placeholder:"N+, +",small:!0,value:h,width:10*A.iI},"prefix-".concat(u)),(0,D.jsx)(C.Z,{compact:!0,monospace:!0,onChange:function(e){return o(u,{suffix:e.target.value})},placeholder:"+, +N",small:!0,value:p,width:10*A.iI},"suffix-".concat(u))]}))})})]})},q=i(97196),F=i(15338),z=i(97618),B=i(48670),G=i(26304),W=i(44897),Y=i(95363),K=i(61896),V=["children","large","lineHeight","ordered"];function J(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function X(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?J(Object(i),!0).forEach((function(n){(0,r.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):J(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var Q=(0,O.css)([""," "," "," "," "," "," "," "," "," ",""],(function(e){return!e.muted&&"\n color: ".concat((e.theme.content||W.Z.content).default,";\n ")}),(function(e){return e.muted&&"\n color: ".concat((e.theme.content||W.Z.content).muted,";\n ")}),(function(e){return e.inverted&&"\n color: ".concat((e.theme.content||W.Z.content).inverted,";\n ")}),(function(e){return e.color&&"\n color: ".concat(e.color,";\n ")}),(function(e){return!e.monospace&&"\n font-family: ".concat(Y.ry,";\n ")}),(function(e){return e.monospace&&"\n font-family: ".concat(Y.Vp,";\n ")}),(function(e){return e.large&&"\n ".concat(K.x_,"\n ")}),(function(e){return!e.large&&!e.small&&"\n ".concat(K.i3,"\n ")}),(function(e){return e.small&&"\n ".concat(K.J5,"\n ")}),(function(e){return e.lineHeight&&"\n line-height: ".concat(e.lineHeight,"px !important;\n ")})),$=O.default.ul.withConfig({displayName:"List__UnorderedListStyle",componentId:"sc-1f6yhbi-0"})(["",""],Q),ee=O.default.ol.withConfig({displayName:"List__OrderedListStyle",componentId:"sc-1f6yhbi-1"})(["",""],Q),ne=O.default.li.withConfig({displayName:"List__ListItemStyle",componentId:"sc-1f6yhbi-2"})(["",""],(function(e){return e.large&&e.marginTop&&"\n margin-top: ".concat(1*A.iI,"px;\n ")}));var ie,te=function(e){var n=e.children,i=e.large,t=e.lineHeight,r=e.ordered,l=(0,G.Z)(e,V),o=r?ee:$;return(0,D.jsx)(o,X(X({large:i,lineHeight:t},l),{},{children:u.Children.map(n,(function(e,n){var t;return(0,D.jsx)(ne,X(X({large:i,marginTop:n>=1},l),{},{children:u.cloneElement(e)}),(null===(t=e.props)||void 0===t?void 0:t.key)||n)}))}))},re=i(37899),le=i(75457),oe=i(30229),se=i(57653),ue=i(83784),ce=i(82359),ae=i(44085),de=i(81334),ve=i(69650),he=i(81769),pe=i(54193),me=i(72473),fe=i(81728),je=i(16488),xe=i(70320),ge=(ie={},(0,r.Z)(ie,pe.zj.DATE,me.aw),(0,r.Z)(ie,pe.zj.DATETIME,me.Pf),(0,r.Z)(ie,pe.zj.DICTIONARY,me.$l),(0,r.Z)(ie,pe.zj.FLOAT,me.As),(0,r.Z)(ie,pe.zj.INTEGER,me.qZ),(0,r.Z)(ie,pe.zj.LIST,me.B4),(0,r.Z)(ie,pe.zj.STRING,me.KJ),ie);var Ze=function(e){var n,i,t,r=e.containerRef,o=e.date,s=e.interactions,c=e.pipeline,a=e.pipelineInteraction,d=e.pipelineSchedule,v=e.setVariables,h=e.showSummary,p=e.time,m=e.triggerTypes,f=e.variables,j=(0,u.useMemo)((function(){return(0,L.HK)(s||[],(function(e){return e.uuid}))}),[s]),x=(0,u.useMemo)((function(){return(null===c||void 0===c?void 0:c.blocks)||[]}),[c]),g=(0,u.useMemo)((function(){return(null===a||void 0===a?void 0:a.blocks)||{}}),[a]),Z=(0,u.useMemo)((function(){var e=[];null===x||void 0===x||x.length;return null===x||void 0===x||x.map((function(n,i){var t=(n||{uuid:null}).uuid,l=(null===g||void 0===g?void 0:g[t])||[];null===l||void 0===l||l.length;e.push((0,D.jsx)(S.Z,{p:A.cd,children:null===l||void 0===l?void 0:l.map((function(e,n){return(0,D.jsx)(S.Z,{mt:n>=1?2*A.cd:0,children:(0,D.jsx)(he.Z,{blockInteraction:e,containerRef:r,interaction:null===j||void 0===j?void 0:j[null===e||void 0===e?void 0:e.uuid],setVariables:v,variables:f})},"".concat(null===e||void 0===e?void 0:e.uuid,"-").concat(n))}))}))})),e}),[x,r,j,v,f]),b=(0,xe.q)(),y=(0,u.useMemo)((function(){return o&&null!==p&&void 0!==p&&p.hour&&null!==p&&void 0!==p&&p.minute?(0,je.XM)(o,p,{convertToUtc:b,includeSeconds:!0,localTimezone:b}):null}),[o,b,p]),P=(0,u.useMemo)((function(){var e=[];null===x||void 0===x||x.length;return null===x||void 0===x||x.map((function(n,i){var t=(n||{uuid:null}).uuid,r=(null===g||void 0===g?void 0:g[t])||[];null===r||void 0===r||r.forEach((function(n,r){var o=null===j||void 0===j?void 0:j[null===n||void 0===n?void 0:n.uuid];Object.entries((null===o||void 0===o?void 0:o.variables)||{}).forEach((function(n,o){var s,u=(0,l.Z)(n,2),c=u[0],a=u[1],d=a.name,v=a.required,h=a.types,p=null===f||void 0===f?void 0:f[c],m="undefined"===typeof p,j=v&&m,x=(null===ge||void 0===ge?void 0:ge[h[0]])||me.KJ,g=[];"undefined"!==typeof p?p&&Array.isArray(p||[])?null===p||void 0===p||p.forEach((function(e){g.push(e&&"object"===typeof e?g.push(JSON.stringify(e)):g.push(String(e)))})):p&&"object"===typeof p?Object.entries(p||{}).forEach((function(e){var n=(0,l.Z)(e,2),i=n[0];n[1]&&g.push(String(i))})):g.push(String(p)):g.push(p||""),e.push([(0,D.jsxs)(E.ZP,{alignItems:"center",children:[(0,D.jsx)(x,{default:!0,size:1.5*A.iI}),(0,D.jsx)(S.Z,{mr:1}),(0,D.jsx)(I.ZP,{default:!0,monospace:!0,children:c})]},"".concat(t,"-").concat(c,"-label-").concat(d,"-").concat(i,"-").concat(r,"-").concat(o)),(0,D.jsx)(S.Z,{py:A.cd,children:(0,D.jsxs)(I.ZP,{danger:j,monospace:!j,muted:m,children:[m&&!j&&"-",j&&"This is required",!m&&!j&&(null===g||void 0===g||null===(s=g.map((function(e){return String(e)})))||void 0===s?void 0:s.join(", "))]})},"".concat(t,"-").concat(c,"-value-").concat(d,"-").concat(p,"-").concat(i,"-").concat(r,"-").concat(o))])}))}))})),(0,D.jsx)(T.Z,{columnFlex:[null,1],rows:e})}),[x,j,f]);return(0,D.jsxs)(D.Fragment,{children:[!h&&Z,h&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(S.Z,{p:A.cd,children:(0,D.jsx)(k.Z,{children:"Settings"})}),(0,D.jsx)(F.Z,{light:!0,short:!0}),(0,D.jsx)(T.Z,{columnFlex:[null,1],rows:[[(0,D.jsxs)(E.ZP,{alignItems:"center",children:[(0,D.jsx)(me.Bf,{default:!0}),(0,D.jsx)(S.Z,{mr:1}),(0,D.jsx)(I.ZP,{default:!0,children:"Trigger type"})]},"trigger_type"),(0,D.jsx)(S.Z,{py:A.cd,children:(0,D.jsx)(I.ZP,{danger:!(null!==d&&void 0!==d&&d.schedule_type),monospace:!0,children:null!==d&&void 0!==d&&d.schedule_type?null===m||void 0===m||null===(n=m.find((function(e){return e.uuid===(null===d||void 0===d?void 0:d.schedule_type)})))||void 0===n||null===(i=n.label)||void 0===i?void 0:i.call(n):"This is required"})},"trigger_type_input")],[(0,D.jsxs)(E.ZP,{alignItems:"center",children:[(0,D.jsx)(me.KJ,{default:!0}),(0,D.jsx)(S.Z,{mr:1}),(0,D.jsx)(I.ZP,{default:!0,children:"Trigger name"})]},"trigger_name"),(0,D.jsx)(S.Z,{py:A.cd,children:(0,D.jsx)(I.ZP,{danger:!(null!==d&&void 0!==d&&d.name),monospace:!0,children:(null===d||void 0===d?void 0:d.name)||"This is required"})},"trigger_name_input")],[(0,D.jsxs)(E.ZP,{alignItems:"center",children:[(0,D.jsx)(me.KJ,{default:!0}),(0,D.jsx)(S.Z,{mr:1}),(0,D.jsx)(I.ZP,{default:!0,children:"Trigger description"})]},"trigger_description"),(0,D.jsx)(S.Z,{py:A.cd,children:(0,D.jsx)(I.ZP,{monospace:!0,muted:!(null!==d&&void 0!==d&&d.description),children:(null===d||void 0===d?void 0:d.description)||"-"})},"trigger_description_input")],[(0,D.jsxs)(E.ZP,{alignItems:"center",children:[(0,D.jsx)(me.Pf,{default:!0,size:1.5*A.iI}),(0,D.jsx)(S.Z,{mr:1}),(0,D.jsx)(I.ZP,{default:!0,children:"Frequency"})]},"frequency"),(0,D.jsx)(S.Z,{py:A.cd,children:(0,D.jsxs)(I.ZP,{danger:!(null!==d&&void 0!==d&&d.schedule_interval),monospace:!0,muted:!(null!==d&&void 0!==d&&d.schedule_interval),children:[(null===d||void 0===d?void 0:d.schedule_interval)&&(0,fe.vg)((null===d||void 0===d||null===(t=d.schedule_interval)||void 0===t?void 0:t.substring(1))||""),!(null!==d&&void 0!==d&&d.schedule_interval)&&"This is required"]})},"frequency_input")],[(0,D.jsxs)(E.ZP,{alignItems:"center",children:[(0,D.jsx)(me.aw,{default:!0,size:1.5*A.iI}),(0,D.jsx)(S.Z,{mr:1}),(0,D.jsx)(I.ZP,{default:!0,children:"Start date and time"})]},"start_time"),(0,D.jsx)(S.Z,{py:A.cd,children:(0,D.jsx)(I.ZP,{danger:!y,monospace:!!y,muted:!y,children:y||"This is required"})},"start_time_input")]]}),(0,D.jsx)(S.Z,{p:A.cd,children:(0,D.jsx)(k.Z,{children:"Customize"})}),(0,D.jsx)(F.Z,{light:!0,short:!0}),P]})]})},be=i(35686),ye=i(77417),Pe=i(44425),Oe=i(88785),_e=i(28795),Ee={label:function(){return"CUSTOMIZE"},uuid:"customize"},ke={label:function(){return"SETTINGS"},uuid:"settings"},Se={label:function(){return"REVIEW"},uuid:"review"},Te=[ke,Ee,Se],Ie=i(32080),Ce=i(22286),we=i(79500),Me=i(8916),Ae=i(42122),Ne=i(72619),Le=i(3917);function De(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function Re(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?De(Object(i),!0).forEach((function(n){(0,r.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):De(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var Ue=function(e){var n=e.creatingWithLimitation,i=e.errors,o=e.fetchPipelineSchedule,c=e.onCancel,d=e.pipeline,O=e.pipelineSchedule,_=e.setErrors,w=e.variables,M=e.useCreateScheduleMutation,R=(0,ye.Z)().project,U=(0,u.useRef)(null),G=(0,m.useRouter)(),W=(0,xe.q)(),Y=null===d||void 0===d?void 0:d.uuid,K=(0,u.useMemo)((function(){return null===O||void 0===O?void 0:O.id}),[O]),V=(null===d||void 0===d?void 0:d.type)===se.qL.STREAMING,J=(0,u.useMemo)((function(){var e;return null===O||void 0===O||null===(e=O.variables)||void 0===e?void 0:e[oe.PN]}),[O]),X=(0,u.useState)(J?"string"===typeof J&&(0,fe.Pb)(J)?JSON.stringify(J):J:null),Q=X[0],$=X[1],ee=(0,u.useState)([]),ne=ee[0],ie=ee[1],he=(0,u.useState)(!0),pe=he[0],ge=he[1],De=(0,u.useState)(!1),Ue=De[0],He=De[1],qe=(0,u.useState)(!1),Fe=qe[0],ze=qe[1],Be=(0,u.useState)(null),Ge=Be[0],We=Be[1],Ye=(0,u.useState)({}),Ke=Ye[0],Ve=Ye[1],Je=(0,u.useState)(null),Xe=Je[0],Qe=Je[1],$e=(0,u.useState)(null),en=$e[0],nn=$e[1],tn=(0,u.useState)(!1),rn=tn[0],ln=tn[1],on=(0,u.useState)(null),sn=on[0],un=on[1],cn=be.ZP.client_pages.detail("pipeline_schedule:create",{"pipeline_schedules[]":[K],"pipelines[]":[Y]},{},{key:"Triggers/Edit/".concat(Y,"/").concat(K),pauseFetch:!Y||!K}).data,an=((0,u.useMemo)((function(){return null===cn||void 0===cn?void 0:cn.client_page}),[cn]),(0,u.useState)(Te[0].uuid)),dn=an[0],vn=an[1],hn=(0,u.useMemo)((function(){var e;return!(null===R||void 0===R||null===(e=R.features)||void 0===e||!e[ce.d.INTERACTIONS])}),[null===R||void 0===R?void 0:R.features]),pn=(0,u.useMemo)((function(){return!K&&n}),[n,K]),mn=be.ZP.pipeline_interactions.detail(hn&&Y,{filter_for_permissions:1}).data,fn=be.ZP.interactions.pipeline_interactions.list(hn&&Y).data,jn=(0,u.useMemo)((function(){return(null===mn||void 0===mn?void 0:mn.pipeline_interaction)||{}}),[mn]),xn=(0,u.useMemo)((function(){return(null===fn||void 0===fn?void 0:fn.interactions)||[]}),[fn]),gn=(0,u.useMemo)((function(){var e;return hn&&(null===(e=Object.keys((null===jn||void 0===jn?void 0:jn.blocks)||{}))||void 0===e?void 0:e.length)>=1}),[hn,jn]),Zn=(0,u.useMemo)((function(){return!!K&&gn}),[gn,K]),bn=(0,u.useMemo)((function(){var e,n={};return null===jn||void 0===jn||null===(e=jn.permissions)||void 0===e||e.forEach((function(e){var i=e.triggers;null===i||void 0===i||i.forEach((function(e){var i=e.schedule_interval,t=e.schedule_type;null!==n&&void 0!==n&&n[t]||(n[t]={}),i&&(n[t][i]=!0)}))})),n}),[jn]),yn=(0,u.useMemo)((function(){return(0,Me.wx)(w,(function(e){return e.uuid===ue.C}))}),[w]),Pn=(0,u.useMemo)((function(){return Xe||{}}),[Xe]),On=Pn.description,_n=Pn.name,En=Pn.schedule_interval,kn=Pn.schedule_type,Sn=Pn.settings,Tn=void 0===Sn?{}:Sn,In=Pn.start_time,Cn=Pn.tags,wn=Pn.variables,Mn=void 0===wn?{}:wn;(0,u.useEffect)((function(){!Ge&&Tn&&We(Tn)}),[Ge,Tn]);var An=(0,u.useState)(null),Nn=An[0],Ln=An[1],Dn=(0,u.useState)({hour:"00",minute:"00"}),Rn=Dn[0],Un=Dn[1],Hn=(0,u.useState)({dayOfMonth:null,dayOfWeek:null,hour:null,minute:null,second:null}),qn=Hn[0],Fn=Hn[1],zn=be.ZP.event_rules.detail(oe.Xm.EVENT===kn?"aws":null).data,Bn=(0,u.useMemo)((function(){var e;return(null===zn||void 0===zn||null===(e=zn.event_rule)||void 0===e?void 0:e.rules)||[]}),[zn]),Gn=(0,u.useMemo)((function(){return(0,L.HK)(Bn,(function(e){return e.name}))}),[Bn]),Wn=(0,p.Db)(be.ZP.pipeline_schedules.useUpdate(K),{onSuccess:function(e){return(0,Ne.wD)(e,{callback:function(){null===o||void 0===o||o(),G.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(Y,"/triggers/").concat(K))},onErrorCallback:function(e,n){return _({errors:n,response:e})}})}}),Yn=(0,l.Z)(Wn,2),Kn=Yn[0],Vn=Yn[1].isLoading,Jn=(0,u.useMemo)((function(){return Mn||{}}),[Mn]);(0,u.useEffect)((function(){if(In){var e=(0,we.a)(In,{localTimezone:W});Ln(null===e||void 0===e?void 0:e.date),Un(null===e||void 0===e?void 0:e.time);var n=v()(In).utc();Fn({dayOfMonth:n.date(),dayOfWeek:n.day(),hour:n.hours(),minute:n.minutes(),second:n.seconds()})}else{var i=new Date;Ln(i),Un(W?{hour:(0,Le.lJ)(String(i.getHours())),minute:(0,Le.lJ)(String(i.getMinutes()))}:{hour:(0,Le.lJ)(String(i.getUTCHours())),minute:(0,Le.lJ)(String(i.getUTCMinutes()))})}}),[W,In]),(0,u.useEffect)((function(){Jn&&Object.keys(Jn).length>0&&ge(!0)}),[Jn]),(0,u.useEffect)((function(){Ve(pe?null===yn||void 0===yn?void 0:yn.reduce((function(e,n){var i=n.uuid,t=n.value;return Re(Re({},e),{},(0,r.Z)({},i,Jn[i]||t))}),{}):null)}),[yn,pe,Jn]);var Xn=(0,u.useMemo)((function(){return(0,je._U)(En)}),[En]),Qn=(0,u.useMemo)((function(){return Xn&&sn?a().toString(sn,{throwExceptionOnParseError:!1}):""}),[sn,Xn]),$n=(0,u.useMemo)((function(){return null===Qn||void 0===Qn?void 0:Qn.toLowerCase().includes("error")}),[Qn]);(0,u.useEffect)((function(){if(O&&!Xe){if(ie(O.event_matchers),(0,je._U)(null===O||void 0===O?void 0:O.schedule_interval)){var e=W?(0,je.lO)(null===O||void 0===O?void 0:O.schedule_interval):null===O||void 0===O?void 0:O.schedule_interval;un(e),Qe(Re(Re({},O),{},{schedule_interval:"custom"}))}else Qe(V?Re(Re({},O),{},{schedule_interval:oe.U5.ONCE}):O);var n=O.sla;if(n){He(!0);var i=(0,je.gU)(n),t=i.time,r=i.unit;Qe((function(e){return Re(Re({},e),{},{slaAmount:t,slaUnit:r})}))}}}),[W,V,O,Xe,En]);var ei=(0,u.useMemo)((function(){return!(null===Ge||void 0===Ge||!Ge.landing_time_enabled)}),[Ge]),ni=(0,u.useMemo)((function(){return oe.Xm.TIME!==kn||![oe.U5.DAILY,oe.U5.HOURLY,oe.U5.MONTHLY,oe.U5.WEEKLY].includes(En)}),[En,kn]),ii=(0,u.useMemo)((function(){return ei&&!ni}),[ni,ei]),ti=(0,u.useCallback)((function(){var e=Re(Re({},(0,Ae.GL)(Xe,["name","description","schedule_type","tags"])),{},{event_matchers:[],schedule_interval:null,start_time:null,variables:(0,Me.e7)(Re(Re({},Ke),Q?(0,r.Z)({},oe.PN,Q):{}))});if(ii){var n=qn.dayOfMonth,i=qn.dayOfWeek,t=qn.hour,l=qn.minute,o=qn.second,s=v()("2023-07-01").utc();(0,fe.HW)(n)&&(s=s.date(n)),(0,fe.HW)(i)&&(s=s.day(i)),(0,fe.HW)(t)&&(s=s.hours(t)),(0,fe.HW)(l)&&(s=s.minutes(l)),(0,fe.HW)(o)&&(s=s.seconds(o)),e.schedule_interval=Xn?sn:Xe.schedule_interval,e.start_time=s.toISOString()}else oe.Xm.EVENT===Xe.schedule_type?e.event_matchers=ne:(e.schedule_interval=Xn?W&&!$n&&sn?(0,je.lO)(sn,!0):sn:Xe.schedule_interval,e.start_time=Nn&&null!==Rn&&void 0!==Rn&&Rn.hour&&null!==Rn&&void 0!==Rn&&Rn.minute?(0,je.XM)(Nn,Rn,{convertToUtc:W,includeSeconds:!0,localTimezone:W}):null);if(Ue){var u=null===Xe||void 0===Xe?void 0:Xe.slaAmount,c=null===Xe||void 0===Xe?void 0:Xe.slaUnit;if(!u||isNaN(u)||!c)return void h.Am.error("Please enter a valid SLA",{position:h.Am.POSITION.BOTTOM_RIGHT,toastId:"sla_error"});e.sla=(0,je.vJ)(u,c)}else null!==O&&void 0!==O&&O.sla&&(e.sla=0);e.settings=Ge,Kn({pipeline_schedule:Re(Re({},e),{},{variables:en||(null===e||void 0===e?void 0:e.variables)})})}),[Q,$n,sn,Nn,W,Ue,ne,Xn,qn,O,Ke,Xe,Ge,ii,Rn,Kn,en]),ri=(0,u.useMemo)((function(){if(null===O||void 0===O||!O.runtime_average)return"Trigger doesn\u2019t have enough history to estimate runtime.";var e=Number(null===O||void 0===O?void 0:O.runtime_average),n=Math.max(Math.floor(e/3600),0),i=Math.max(Math.floor((e-60*n*60)/60),0),t=Math.max(Math.floor(e-(60*n*60+60*i)),0),r=[];return n>=1&&r.push((0,fe._6)("hour",n,!0)),i>=1&&r.push((0,fe._6)("minute",i,!0)),t>=1&&r.push((0,fe._6)("second",t,!0)),r.join(" ")}),[O]),li=(0,u.useMemo)((function(){if(!ii)return null;var e=[(0,D.jsxs)(S.Z,{mr:1,children:[(0,D.jsx)(S.Z,{mb:1,children:(0,D.jsx)(I.ZP,{bold:!0,default:!0,small:!0,children:"Minute"})}),(0,D.jsxs)(ae.Z,{compact:!0,monospace:!0,onChange:function(e){Fn((function(n){return Re(Re({},n),{},{minute:e.target.value})}))},value:(null===qn||void 0===qn?void 0:qn.minute)||"",children:[(0,D.jsx)("option",{value:""}),(0,L.w6)(60).map((function(e,n){return(0,D.jsx)("option",{value:n,children:n>=10?String(n):"0".concat(n)},n)}))]})]},"Minute"),(0,D.jsxs)(S.Z,{mr:1,children:[(0,D.jsx)(S.Z,{mb:1,children:(0,D.jsx)(I.ZP,{bold:!0,default:!0,small:!0,children:"Second"})}),(0,D.jsxs)(ae.Z,{compact:!0,monospace:!0,onChange:function(e){Fn((function(n){return Re(Re({},n),{},{second:e.target.value})}))},value:(null===qn||void 0===qn?void 0:qn.second)||"",children:[(0,D.jsx)("option",{value:""}),(0,L.w6)(60).map((function(e,n){return(0,D.jsx)("option",{value:n,children:n>=10?String(n):"0".concat(n)},n)}))]})]},"Second")];return[oe.U5.DAILY,oe.U5.MONTHLY,oe.U5.WEEKLY].includes(En)&&e.unshift((0,D.jsxs)(S.Z,{mr:1,children:[(0,D.jsx)(S.Z,{mb:1,children:(0,D.jsx)(I.ZP,{bold:!0,default:!0,small:!0,children:"Hour"})}),(0,D.jsxs)(ae.Z,{compact:!0,monospace:!0,onChange:function(e){Fn((function(n){return Re(Re({},n),{},{hour:e.target.value})}))},value:(null===qn||void 0===qn?void 0:qn.hour)||"",children:[(0,D.jsx)("option",{value:""}),(0,L.w6)(24).map((function(e,n){return(0,D.jsx)("option",{value:n,children:n>=10?String(n):"0".concat(n)},n)}))]})]},"Hour")),oe.U5.WEEKLY===En?e.unshift((0,D.jsxs)(S.Z,{mr:1,children:[(0,D.jsx)(S.Z,{mb:1,children:(0,D.jsx)(I.ZP,{bold:!0,default:!0,small:!0,children:"Day of the week"})}),(0,D.jsxs)(ae.Z,{compact:!0,monospace:!0,onChange:function(e){Fn((function(n){return Re(Re({},n),{},{dayOfWeek:e.target.value})}))},value:(null===qn||void 0===qn?void 0:qn.dayOfWeek)||"",children:[(0,D.jsx)("option",{value:""}),(0,D.jsx)("option",{value:6,children:"Sunday"}),(0,D.jsx)("option",{value:0,children:"Monday"}),(0,D.jsx)("option",{value:1,children:"Tuesday"}),(0,D.jsx)("option",{value:2,children:"Wednesday"}),(0,D.jsx)("option",{value:3,children:"Thursday"}),(0,D.jsx)("option",{value:4,children:"Friday"}),(0,D.jsx)("option",{value:5,children:"Saturday"})]})]},"Day of the week")):oe.U5.MONTHLY===En&&e.unshift((0,D.jsxs)(S.Z,{mr:1,children:[(0,D.jsx)(S.Z,{mb:1,children:(0,D.jsx)(I.ZP,{bold:!0,default:!0,small:!0,children:"Day of the month"})}),(0,D.jsxs)(ae.Z,{compact:!0,monospace:!0,onChange:function(e){Fn((function(n){return Re(Re({},n),{},{dayOfMonth:e.target.value})}))},value:(null===qn||void 0===qn?void 0:qn.dayOfMonth)||"",children:[(0,D.jsx)("option",{value:""}),(0,L.w6)(31).map((function(e,n){return(0,D.jsx)("option",{value:n+1,children:n+1>=10?String(n+1):"0".concat(n+1)},n+1)}))]})]},"Day of the month")),(0,D.jsx)(E.ZP,{children:e})}),[qn,En,ii]),oi=(0,u.useMemo)((function(){return[(0,D.jsxs)(E.ZP,{alignItems:"center",children:[(0,D.jsx)(me.KJ,{default:!0}),(0,D.jsx)(S.Z,{mr:1}),(0,D.jsx)(I.ZP,{default:!0,children:"Trigger name"})]},"trigger_name"),(0,D.jsx)(C.Z,{monospace:!0,onChange:function(e){e.preventDefault(),Qe((function(n){return Re(Re({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:_n},"trigger_name_input")]}),[_n]),si=(0,u.useMemo)((function(){return[(0,D.jsxs)(E.ZP,{alignItems:"center",children:[(0,D.jsx)(me.KJ,{default:!0}),(0,D.jsx)(S.Z,{mr:1}),(0,D.jsx)(I.ZP,{default:!0,children:"Trigger description"})]},"trigger_description"),(0,D.jsx)(C.Z,{monospace:!0,onChange:function(e){e.preventDefault(),Qe((function(n){return Re(Re({},n),{},{description:e.target.value})}))},placeholder:"Description",value:On},"trigger_description_input")]}),[On]),ui=(0,u.useMemo)((function(){var e=[oi,si,[(0,D.jsxs)(E.ZP,{alignItems:"center",children:[(0,D.jsx)(me.Pf,{default:!0,size:1.5*A.iI}),(0,D.jsx)(S.Z,{mr:1}),(0,D.jsx)(I.ZP,{default:!0,children:"Frequency"})]},"frequency"),(0,D.jsxs)("div",{children:[(0,D.jsxs)(ae.Z,{monospace:!0,onChange:function(e){e.preventDefault();var n=e.target.value;Qe((function(e){return Re(Re({},e),{},{schedule_interval:n})}))},placeholder:"Choose the frequency to run",value:En,children:[Object.values(oe.U5).reduce((function(e,n){var i;return!pn||null!==bn&&void 0!==bn&&null!==(i=bn[oe.Xm.TIME])&&void 0!==i&&i[n]?e.concat((0,D.jsx)("option",{value:n,children:n.substring(1)},n)):e}),[]),!pn&&(0,D.jsx)("option",{value:"custom",children:"custom"},"custom")]}),!pn&&(0,D.jsx)(S.Z,{mt:1,p:1,children:(0,D.jsxs)(I.ZP,{muted:!0,small:!0,children:["If you don't see the frequency option you need, select ",(0,D.jsx)(I.ZP,{inline:!0,monospace:!0,small:!0,children:"custom"})," and enter CRON syntax."]})})]},"frequency_input")]];return pn||e.push([(0,D.jsxs)(E.ZP,{alignItems:"center",children:[(0,D.jsx)(me.rs,{default:!0,size:1.5*A.iI}),(0,D.jsx)(S.Z,{mr:1}),(0,D.jsx)(I.ZP,{default:!0,children:"Enable landing time"})]},"frequency"),(0,D.jsxs)("div",{children:[(0,D.jsx)(ve.Z,{checked:ei,disabled:ni,onCheck:function(){We((function(e){return Re(Re({},e),{},{landing_time_enabled:!ei})}))}}),(0,D.jsxs)(S.Z,{mt:1,p:1,children:[ni&&(0,D.jsxs)(I.ZP,{muted:!0,small:!0,children:["In order to enable landing time, the trigger\u2019s frequency must be ",(0,D.jsx)(I.ZP,{inline:!0,monospace:!0,small:!0,children:oe.U5.HOURLY}),", ",(0,D.jsx)(I.ZP,{inline:!0,monospace:!0,small:!0,children:oe.U5.DAILY}),", ",(0,D.jsx)(I.ZP,{inline:!0,monospace:!0,small:!0,children:oe.U5.WEEKLY}),", or ",(0,D.jsx)(I.ZP,{inline:!0,monospace:!0,small:!0,children:oe.U5.MONTHLY}),"."]}),!ni&&(0,D.jsx)(I.ZP,{muted:!0,small:!0,children:"Instead of starting at a specific time, this trigger will schedule pipeline runs at a time where it will finish by the specified time below."})]})]},"frequency_input")]),ii&&e.push([(0,D.jsxs)(E.ZP,{alignItems:"center",children:[(0,D.jsx)(me.Pf,{default:!0,size:1.5*A.iI}),(0,D.jsx)(S.Z,{mr:1}),(0,D.jsx)(I.ZP,{default:!0,children:"Average runtime"})]},"runtime_average"),(0,D.jsx)(E.ZP,{alignItems:"center",style:{minHeight:"".concat(5.75*A.iI,"px")},children:(0,D.jsx)(I.ZP,{monospace:!0,children:ri})},"runtime_average_value")]),e.push([(0,D.jsxs)(E.ZP,{alignItems:"center",children:[(0,D.jsx)(me.aw,{default:!0,size:1.5*A.iI}),(0,D.jsx)(S.Z,{mr:1}),(0,D.jsxs)(I.ZP,{default:!0,children:[ii&&"Pipeline complete by",!ii&&"Start date and time"]})]},"start_time"),ii?li:(0,D.jsxs)("div",{style:{minHeight:"".concat(5.75*A.iI,"px")},children:[!rn&&(0,D.jsx)(C.Z,{monospace:!0,onClick:function(){return ln((function(e){return!e}))},placeholder:"YYYY-MM-DD HH:MM",value:Nn?(0,je.XM)(Nn,Rn,{localTimezone:W}):""}),(0,D.jsx)("div",{style:{width:"400px"},children:(0,D.jsx)(b.Z,{disableEscape:!0,onClickOutside:function(){return ln(!1)},open:rn,style:{position:"relative"},children:(0,D.jsx)(g.Z,{localTime:W,selectedDate:Nn,selectedTime:Rn,setSelectedDate:Ln,setSelectedTime:Un,topPosition:!0})})})]},"start_time_input")]),V&&e.splice(2,2),Xn&&e.splice(2,0,[(0,D.jsxs)(E.ZP,{alignItems:"center",children:[(0,D.jsx)(me.EK,{default:!0,size:1.5*A.iI}),(0,D.jsx)(S.Z,{mr:1}),(0,D.jsx)(I.ZP,{default:!0,children:"Cron expression"})]},"cron_expression"),(0,D.jsxs)("div",{children:[(0,D.jsx)(C.Z,{monospace:!0,onChange:function(e){e.preventDefault(),un(e.target.value)},placeholder:"* * * * *",value:sn}),(0,D.jsxs)(S.Z,{mt:1,p:1,children:[(0,D.jsx)(I.ZP,{monospace:!0,xsmall:!0,children:"[minute] [hour] [day(month)] [month] [day(week)]"}),(0,D.jsx)(S.Z,{mb:"2px"}),sn?(0,D.jsx)(I.ZP,{danger:$n,muted:!0,small:!0,children:$n?"Invalid cron expression. Please check the cron syntax.":(0,D.jsxs)(D.Fragment,{children:['"',Qn,'"']})}):null,W&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(I.ZP,{bold:!0,inline:!0,small:!0,warning:!0,children:"Note:\xa0"}),(0,D.jsxs)(I.ZP,{inline:!0,small:!0,children:["If you have the display_local_timezone setting enabled, the local cron expression above will match your local timezone only",(0,D.jsx)("br",{}),"if the minute and hour values are single values without any special characters, such as the comma, hyphen, or slash.",(0,D.jsx)("br",{}),"You can still use cron expressions with special characters for the minute/hour values, but it will be based in UTC time."]})]})]})]},"cron_expression_input")]),(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(S.Z,{mb:2,px:A.cd,children:(0,D.jsx)(k.Z,{children:"Settings"})}),(0,D.jsx)(F.Z,{light:!0,short:!0}),(0,D.jsx)(T.Z,{columnFlex:[null,1],rows:e})]})}),[$n,sn,Nn,W,pn,Xn,V,ni,ei,li,bn,Qn,ri,En,rn,ii,Rn,oi,si]),ci=(0,u.useCallback)((function(e,n){ie((function(i){return Object.entries(n).forEach((function(n){var t=(0,l.Z)(n,2),r=t[0],o=t[1];i[e][r]=o})),(0,t.Z)(i)}))}),[ie]),ai=(0,u.useMemo)((function(){return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(S.Z,{mb:A.cd,px:A.cd,children:(0,D.jsx)(k.Z,{children:"Settings"})}),(0,D.jsx)(F.Z,{light:!0,short:!0}),(0,D.jsx)(T.Z,{columnFlex:[null,1],rows:[oi,si]}),(0,D.jsxs)(S.Z,{mb:2,mt:5,px:A.cd,children:[(0,D.jsx)(k.Z,{children:"Events"}),(0,D.jsxs)(I.ZP,{muted:!0,children:["Add 1 or more event that will trigger this pipeline to run.",(0,D.jsx)("br",{}),"If you add more than 1 event, this pipeline will trigger if any of the events are received."]}),(0,D.jsxs)(S.Z,{mt:A.Mq,children:[(0,D.jsx)(I.ZP,{bold:!0,large:!0,children:"AWS events"}),(0,D.jsxs)(I.ZP,{muted:!0,children:["In order to retrieve all the possible AWS events you can trigger your pipeline from,",(0,D.jsx)("br",{}),"you\u2019ll need to set 3 environment variables (",(0,D.jsx)(B.Z,{href:"https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html",openNewWindow:!0,underline:!0,children:"more info here"}),"):"]}),(0,D.jsx)(S.Z,{mt:1,children:(0,D.jsxs)(te,{monospace:!0,ordered:!0,children:[(0,D.jsx)(I.ZP,{monospace:!0,children:"AWS_REGION_NAME"}),(0,D.jsx)(I.ZP,{monospace:!0,children:"AWS_ACCESS_KEY_ID"}),(0,D.jsx)(I.ZP,{monospace:!0,children:"AWS_SECRET_ACCESS_KEY"})]})})]})]}),(0,D.jsx)(F.Z,{light:!0,short:!0}),(null===ne||void 0===ne?void 0:ne.length)>=1&&(0,D.jsx)(T.Z,{alignTop:!0,columnFlex:[1,1,2,null],columns:[{uuid:"Provider"},{uuid:"Event"},{uuid:"Pattern"},{label:function(){return""},uuid:"delete"}],rows:null===ne||void 0===ne?void 0:ne.map((function(e,n){var i=e.event_type,t=e.name,r=e.pattern,l=e.id||"".concat(i,"-").concat(t,"-").concat(n,"-").concat(JSON.stringify(r)),o=[];return r&&JSON.stringify(r,null,2).split("\n").forEach((function(e){o.push(" ".concat(e))})),[(0,D.jsx)(ae.Z,{monospace:!0,onChange:function(e){return ci(n,{event_type:e.target.value})},placeholder:"Event provider",value:i||"",children:q.S5.map((function(e){var n=e.label,i=e.uuid;return(0,D.jsx)("option",{value:i,children:n()},i)}))},"event-provider-".concat(l)),(0,D.jsx)(ae.Z,{monospace:!0,onChange:function(e){var i,t=e.target.value,r=null===(i=Gn[t])||void 0===i?void 0:i.event_pattern;ci(n,{name:t,pattern:r?JSON.parse(r):null})},placeholder:"Event name",value:t,children:Bn.map((function(e){var n=e.name;return(0,D.jsx)("option",{value:n,children:n},n)}))},"event-name-".concat(l)),r&&(0,D.jsx)(y.Z,{language:"json",small:!0,source:o.join("\n")}),(0,D.jsx)(j.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return ie((function(e){return(0,L.oM)(e,n)}))},children:(0,D.jsx)(me.rF,{default:!0,size:2*A.iI})},"remove_event")]}))}),(0,D.jsx)(S.Z,{p:A.cd,children:(0,D.jsx)(j.ZP,{beforeIcon:(0,D.jsx)(me.mm,{size:2*A.iI}),onClick:function(){return ie((function(e){return e.concat({})}))},outline:!0,children:"Add event matcher"})})]})}),[ne,Bn,Gn,oi,si,ci]),di=(0,u.useMemo)((function(){var e=(0,je.M8)(O,Fe);return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(S.Z,{mb:A.cd,px:A.cd,children:(0,D.jsx)(k.Z,{children:"Settings"})}),(0,D.jsx)(F.Z,{light:!0,short:!0}),(0,D.jsx)(T.Z,{columnFlex:[null,1],rows:[oi,si]}),(0,D.jsxs)(S.Z,{mb:2,mt:5,px:A.cd,children:[(0,D.jsx)(k.Z,{children:"Endpoint"}),(0,D.jsxs)(I.ZP,{muted:!0,children:["Make a ",(0,D.jsx)(I.ZP,{bold:!0,inline:!0,monospace:!0,children:"POST"})," request to the following endpoint:"]}),(0,D.jsx)(S.Z,{mt:A.Mq,children:(0,D.jsx)(P.Z,{copiedText:e,linkText:e,monospace:!0,withCopyIcon:!0})}),(0,D.jsx)(S.Z,{mt:A.Mq,children:(0,D.jsxs)(E.ZP,{alignItems:"center",children:[(0,D.jsx)(S.Z,{mr:1,children:(0,D.jsx)(ve.Z,{checked:Fe,onCheck:function(){return ze(!Fe)}})}),(0,D.jsx)(I.ZP,{muted:!0,children:"Show alternative endpoint to pass token in headers"})]})})]}),Fe&&(0,D.jsxs)(S.Z,{mb:2,mt:5,px:A.cd,children:[(0,D.jsx)(k.Z,{children:"Headers"}),(0,D.jsx)(I.ZP,{muted:!0,children:"You will need to include the following headers in your request to authenticate with the server."}),(0,D.jsx)(S.Z,{mt:A.Mq,children:(0,D.jsx)(P.Z,{copiedText:"Content-Type: application/json\n Authorization: Bearer ".concat(null===O||void 0===O?void 0:O.token,"\n "),withCopyIcon:!0,children:(0,D.jsx)(y.Z,{language:"json",small:!0,source:"\n Content-Type: application/json\n Authorization: Bearer ".concat(null===O||void 0===O?void 0:O.token,"\n ")})})})]}),(0,D.jsxs)(S.Z,{mb:2,mt:5,px:A.cd,children:[(0,D.jsx)(k.Z,{children:"Payload"}),(0,D.jsx)(I.ZP,{muted:!0,children:"You can optionally include runtime variables in your request payload. These runtime variables are accessible from within each pipeline block."}),(0,D.jsx)(S.Z,{mt:A.Mq,children:(0,D.jsx)(P.Z,{copiedText:'{\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n}\n',withCopyIcon:!0,children:(0,D.jsx)(y.Z,{language:"json",small:!0,source:'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\n'})})})]}),(0,D.jsxs)(S.Z,{mb:2,mt:5,px:A.cd,children:[(0,D.jsx)(k.Z,{children:"Sample cURL command"}),(0,D.jsx)(S.Z,{mt:A.Mq,children:(0,D.jsx)(y.Z,{language:"bash",small:!0,source:Fe?"\n curl -X POST ".concat(e," \\\n --header 'Content-Type: application/json' \\\n --header 'Authorization: Bearer ").concat(null===O||void 0===O?void 0:O.token,'\' \\\n --data \'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\'\n '):"\n curl -X POST ".concat(e,' \\\n --header \'Content-Type: application/json\' \\\n --data \'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\'\n')})})]})]})}),[O,ze,si,oi,Fe]),vi=!kn||oe.Xm.TIME===kn&&!(V&&Nn||!V&&Nn&&En)||oe.Xm.EVENT===kn&&(!(null!==ne&&void 0!==ne&&ne.length)||!ne.every((function(e){var n=e.event_type,i=e.name;return n&&i}))),hi=(0,u.useMemo)((function(){var e;return(null===d||void 0===d||null===(e=d.blocks)||void 0===e?void 0:e.filter((function(e){var n=e.type;return Pe.tf.DBT===n})))||[]}),[d]),pi=(0,u.useMemo)((function(){return null!==d&&void 0!==d&&d.blocks?(0,Ie.n)(d):null}),[d]),mi=(0,u.useMemo)((function(){var e,n;return(0,D.jsxs)(S.Z,{py:A.cd,children:[(0,D.jsxs)(S.Z,{mb:A.HN,px:A.cd,children:[(0,D.jsx)(k.Z,{children:"Run settings"}),(0,D.jsxs)(S.Z,{mt:A.Mq,children:[!V&&(0,D.jsxs)(S.Z,{mb:A.Mq,children:[(0,D.jsx)(I.ZP,{children:"Set a timeout for each run of this trigger (optional)"}),(0,D.jsx)(S.Z,{mb:1}),(0,D.jsx)(C.Z,{label:"Timeout (in seconds)",onChange:function(e){return We((function(n){return Re(Re({},n),{},{timeout:e.target.value})}))},primary:!0,setContentOnMount:!0,type:"number",value:null===Ge||void 0===Ge?void 0:Ge.timeout})]}),(0,D.jsxs)(E.ZP,{alignItems:"center",children:[(0,D.jsx)(S.Z,{mr:2,children:(0,D.jsx)(ve.Z,{checked:Ue,onCheck:function(e){He(e),e||Qe((function(e){return Re(Re({},e),{},{slaAmount:0})}))}})}),(0,D.jsx)(I.ZP,{default:!0,monospace:!0,children:"Configure trigger SLA"})]}),Ue&&(0,D.jsx)(T.Z,{columnFlex:[null,1],rows:[[(0,D.jsxs)(E.ZP,{alignItems:"center",children:[(0,D.jsx)(me.aw,{default:!0,size:1.5*A.iI}),(0,D.jsx)(S.Z,{mr:1}),(0,D.jsx)(I.ZP,{default:!0,children:"SLA"})]},"sla_detail"),(0,D.jsxs)(E.ZP,{children:[(0,D.jsx)(z.Z,{flex:1,children:(0,D.jsx)(C.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),Qe((function(n){return Re(Re({},n),{},{slaAmount:e.target.value})}))},placeholder:"Time",value:null===Xe||void 0===Xe?void 0:Xe.slaAmount})}),(0,D.jsx)(z.Z,{flex:1,children:(0,D.jsx)(ae.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),Qe((function(n){return Re(Re({},n),{},{slaUnit:e.target.value})}))},placeholder:"Select time unit",small:!0,value:null===Xe||void 0===Xe?void 0:Xe.slaUnit,children:Object.keys(je.tL).map((function(e){return(0,D.jsx)("option",{value:e,children:"".concat(e,"(s)")},e)}))})})]},"sla_input_detail")]]})]}),(0,D.jsx)(S.Z,{mt:A.Mq,children:(0,D.jsx)(E.ZP,{alignItems:"center",children:(0,D.jsx)(Z.Z,{checked:null===Ge||void 0===Ge?void 0:Ge.allow_blocks_to_fail,label:"Keep running pipeline even if blocks fail",onClick:function(){return We((function(e){return Re(Re({},e),{},{allow_blocks_to_fail:!(null!==Ge&&void 0!==Ge&&Ge.allow_blocks_to_fail)})}))}})})}),oe.Xm.TIME===kn&&(0,D.jsx)(S.Z,{mt:A.Mq,children:(0,D.jsx)(E.ZP,{alignItems:"center",children:(0,D.jsx)(Z.Z,{checked:null===Ge||void 0===Ge?void 0:Ge.skip_if_previous_running,label:"Skip run if previous run still in progress",onClick:function(){return We((function(e){return Re(Re({},e),{},{skip_if_previous_running:!(null!==Ge&&void 0!==Ge&&Ge.skip_if_previous_running)})}))}})})})]}),(0,D.jsxs)(S.Z,{mb:A.HN,children:[(0,D.jsxs)(S.Z,{px:A.cd,children:[(0,D.jsx)(k.Z,{children:"Runtime variables"}),(0,Ae.Qr)(yn)&&(0,D.jsxs)(S.Z,{mt:1,children:[(0,D.jsx)(I.ZP,{default:!0,children:"This pipeline has no runtime variables."}),(0,D.jsx)(s(),{as:"/pipelines/".concat(Y,"/edit?sideview=variables"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,D.jsx)(B.Z,{primary:!0,children:"Click here"})})," ",(0,D.jsx)(I.ZP,{default:!0,inline:!0,children:"to add variables to this pipeline."})]})]}),(0,D.jsx)(S.Z,{mt:A.Mq,children:(0,D.jsx)(re.Z,{enableVariablesOverwrite:!0,originalVariables:null===O||void 0===O?void 0:O.variables,runtimeVariables:Ke,setRuntimeVariables:Ve})})]}),pi&&(null===(e=Object.keys(pi||{}))||void 0===e?void 0:e.length)>=1&&(0,D.jsxs)(S.Z,{mb:A.HN,children:[(0,D.jsx)(S.Z,{px:A.cd,children:(0,D.jsx)(k.Z,{children:"Override bookmark values"})}),(0,D.jsx)(f.Z,{bookmarkValues:Q,originalBookmarkValues:null===O||void 0===O||null===(n=O.variables)||void 0===n?void 0:n[oe.PN],pipeline:d,setBookmarkValues:$})]}),(null===hi||void 0===hi?void 0:hi.length)>=1&&(0,D.jsx)(S.Z,{mb:A.HN,children:(0,D.jsx)(H,{blocks:hi,updateVariables:Ve,variables:Re(Re({},Jn),Ke)})})]})}),[pi,Q,hi,Ue,yn,V,pe,d,Y,Ke,Xe,kn,Jn,$,He,ge,Ve,Ge]),fi=be.ZP.tags.list().data,ji=(0,u.useMemo)((function(){return((null===fi||void 0===fi?void 0:fi.tags)||[]).filter((function(e){var n=e.uuid;return!(null!==Cn&&void 0!==Cn&&Cn.includes(n))}))}),[fi,Cn]),xi=(0,u.useMemo)((function(){return(0,je.ri)(V)}),[V]),gi=(0,u.useMemo)((function(){return(0,D.jsx)(Ze,{containerRef:U,date:Nn,interactions:xn,pipeline:d,pipelineInteraction:jn,pipelineSchedule:Xe,setVariables:function(e){Qe((function(n){var i=Re({},e((null===n||void 0===n?void 0:n.variables)||{})),t=Re({},i);return null===xn||void 0===xn||xn.forEach((function(e){Object.entries((null===e||void 0===e?void 0:e.variables)||{}).forEach((function(e){var n=(0,l.Z)(e,2),i=n[0],r=n[1].types;t&&i in t&&(t[i]=(0,Ce.M)(t[i],r))}))})),nn(t),Re(Re({},n),{},{variables:i})}))},showSummary:Se.uuid===dn,time:Rn,triggerTypes:xi,variables:null===Xe||void 0===Xe?void 0:Xe.variables})}),[U,Nn,xn,d,jn,Xe,dn,Qe,nn,Rn,xi]),Zi=(0,u.useMemo)((function(){return oe.fq.ACTIVE===(null===Xe||void 0===Xe?void 0:Xe.status)}),[Xe]),bi=M?null===M||void 0===M?void 0:M((function(e){return G.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(null===d||void 0===d?void 0:d.uuid,"/triggers/").concat(e))})):[null,{isLoading:!1}],yi=(0,l.Z)(bi,2),Pi=yi[0],Oi=yi[1].isLoading,_i=(0,u.useCallback)((function(){null===Pi||void 0===Pi||Pi({pipeline_schedule:Re(Re({},Xe),{},{variables:en||(null===Xe||void 0===Xe?void 0:Xe.variables)})})}),[Pi,en,Xe]),Ei=(0,u.useMemo)((function(){var e,n;return K?(e=(0,D.jsx)(j.ZP,{linkProps:{as:"/pipelines/".concat(Y,"/triggers/").concat(K),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel and go back"}),n=(0,D.jsx)(j.ZP,{onClick:ti,primary:!0,children:"Save trigger"})):ke.uuid===dn?(e=(0,D.jsx)(j.ZP,{onClick:function(){return null===c||void 0===c?void 0:c()},secondary:!0,children:"Cancel and go back"}),n=(0,D.jsx)(j.ZP,{afterIcon:(0,D.jsx)(me.Kw,{}),onClick:function(){return vn(Ee.uuid)},primary:!0,children:"Next: Customize"})):Ee.uuid===dn?(e=(0,D.jsx)(j.ZP,{beforeIcon:(0,D.jsx)(me.Hd,{}),onClick:function(){return vn(ke.uuid)},secondary:!0,children:"Back: Settings"}),n=(0,D.jsx)(j.ZP,{afterIcon:(0,D.jsx)(me.Kw,{}),onClick:function(){return vn(Se.uuid)},primary:!0,children:"Next: Review"})):Se.uuid===dn&&(e=(0,D.jsx)(j.ZP,{beforeIcon:(0,D.jsx)(me.Hd,{}),onClick:function(){return vn(Ee.uuid)},secondary:!0,children:"Back: Customize"}),n=(0,D.jsxs)(E.ZP,{alignItems:"center",children:[(0,D.jsx)(j.ZP,{beforeIcon:(0,D.jsx)(me.Bf,{}),loading:Oi,onClick:function(){return _i()},primary:!0,children:K?"Save trigger":"Create trigger"}),!K&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(S.Z,{mr:A.cd}),(0,D.jsx)(ve.Z,{checked:Zi,compact:!0,onCheck:function(e){return Qe((function(n){return Re(Re({},n),{},{status:e(Zi)?oe.fq.ACTIVE:oe.fq.INACTIVE})}))}}),(0,D.jsx)(S.Z,{mr:1}),(0,D.jsx)(I.ZP,{default:Zi,muted:!Zi,small:!0,children:"Set trigger to be active immediately after creating"})]})]})),(0,D.jsx)(S.Z,{p:A.cd,children:(0,D.jsxs)(E.ZP,{alignItems:"center",children:[e,e&&n&&(0,D.jsx)(S.Z,{mr:A.cd}),n]})})}),[_i,Oi,Zi,c,ti,K,Y,dn,vn]),ki=(0,u.useMemo)((function(){var e,n,i,t,r,l,o;return"undefined"===typeof(null===d||void 0===d||null===(e=d.settings)||void 0===e||null===(n=e.triggers)||void 0===n?void 0:n.save_in_code_automatically)?null===R||void 0===R||null===(i=R.pipelines)||void 0===i||null===(t=i.settings)||void 0===t||null===(r=t.triggers)||void 0===r?void 0:r.save_in_code_automatically:null===d||void 0===d||null===(l=d.settings)||void 0===l||null===(o=l.triggers)||void 0===o?void 0:o.save_in_code_automatically}),[d,R]);return(0,D.jsx)(D.Fragment,{children:(0,D.jsx)(le.Z,{after:!pn&&mi,afterHidden:pn,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(Y,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return null===O||void 0===O?void 0:O.name},linkProps:{as:"/pipelines/".concat(Y,"/triggers/").concat(K),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],errors:i,pageName:_e.M.TRIGGERS,pipeline:d,setErrors:_,subheader:pn||Zn?(0,D.jsx)(S.Z,{px:A.cd,children:(0,D.jsx)(x.Z,{noPadding:!0,onClickTab:function(e){var n=e.uuid;return vn(n)},regularSizeText:!0,selectedTabUUID:dn,tabs:Te,underlineColor:(0,N.qn)(Pe.tf.DATA_LOADER).accent,underlineStyle:!0})}):(0,D.jsxs)(E.ZP,{alignItems:"center",children:[(0,D.jsx)(j.ZP,{disabled:vi,loading:Vn,onClick:ti,outline:!0,primary:!0,children:"Save changes"}),(0,D.jsx)(S.Z,{mr:A.cd}),(0,D.jsx)(j.ZP,{linkProps:{as:"/pipelines/".concat(Y,"/triggers/").concat(K),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel"}),ki&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(S.Z,{mr:A.cd}),(0,D.jsxs)(I.ZP,{default:!0,xsmall:!0,children:["This trigger will automatically be persisted in code.",(0,D.jsx)("br",{}),"To change this behavior, update the ",(0,D.jsx)(s(),{as:"/pipelines/".concat(Y,"/settings"),href:"/pipelines/[pipeline]/settings",passHref:!0,children:(0,D.jsx)(B.Z,{openNewWindow:!0,xsmall:!0,children:"pipeline\u2019s settings"})})," or ",(0,D.jsx)(s(),{as:"/settings/workspace/preferences",href:"/settings/workspace/preferences",passHref:!0,children:(0,D.jsx)(B.Z,{openNewWindow:!0,xsmall:!0,children:"project settings"})}),"."]})]})]}),subheaderNoPadding:pn||Zn,title:function(){return null!==O&&void 0!==O&&O.name?"Edit ".concat(null===O||void 0===O?void 0:O.name):"New trigger"},uuid:"triggers/edit",children:(0,D.jsxs)("div",{ref:U,children:[(pn||Zn)&&(0,D.jsx)(F.Z,{light:!0}),(pn||Zn)&&(Ee.uuid===dn||Se.uuid===dn)&&gi,(!pn||ke.uuid===dn)&&(!Zn||ke.uuid===dn)&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(S.Z,{p:A.cd,children:[(0,D.jsxs)(S.Z,{mb:2,children:[(0,D.jsx)(k.Z,{children:"Trigger type"}),(0,D.jsx)(I.ZP,{muted:!0,children:"How would you like this pipeline to be triggered?"})]}),(0,D.jsx)(E.ZP,{children:xi.reduce((function(e,n){var i=n.label,t=n.description,r=n.uuid,l=kn===r,o=kn&&!l;return!pn||null!==bn&&void 0!==bn&&bn[r]?e.concat((0,D.jsx)(j.ZP,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){oe.Xm.EVENT!==r||null!==ne&&void 0!==ne&&ne.length||ie([{}]),Qe((function(e){return Re(Re({},e),{},{schedule_type:r})}))},children:(0,D.jsx)(Oe.U,{selected:l,children:(0,D.jsxs)(E.ZP,{alignItems:"center",children:[(0,D.jsx)(z.Z,{children:(0,D.jsx)("input",{checked:l,type:"radio"})}),(0,D.jsx)(S.Z,{mr:A.cd}),(0,D.jsxs)(z.Z,{alignItems:"flex-start",flexDirection:"column",children:[(0,D.jsx)(k.Z,{bold:!0,default:!l&&!o,level:5,muted:!l&&o,children:i()}),(0,D.jsx)(I.ZP,{default:!l&&!o,leftAligned:!0,muted:o,children:t()})]})]})})},r)):e}),[])})]}),(0,D.jsxs)(S.Z,{mt:A.HN,children:[oe.Xm.TIME===kn&&ui,oe.Xm.EVENT===kn&&ai,oe.Xm.API===kn&&di]}),!pn&&(0,D.jsxs)(S.Z,{mt:A.HN,px:A.cd,children:[(0,D.jsxs)(S.Z,{mb:2,children:[(0,D.jsx)(k.Z,{children:"Tags"}),(0,D.jsx)(I.ZP,{muted:!0,children:"Add or remove tags from this trigger."})]}),(0,D.jsx)(de.Z,{removeTag:function(e){Qe((function(n){return Re(Re({},n),{},{tags:null===Cn||void 0===Cn?void 0:Cn.filter((function(n){return n!==e.uuid}))})}))},selectTag:function(e){Qe((function(n){return Re(Re({},n),{},{tags:(0,L.$C)(e.uuid,Cn,(function(n){return n===e.uuid}))})}))},selectedTags:null===Cn||void 0===Cn?void 0:Cn.map((function(e){return{uuid:e}})),tags:ji,uuid:"TagsAutocompleteInputField-trigger-".concat(K)})]})]}),(pn||Zn)&&Ei]})})})}},97196:function(e,n,i){i.d(n,{S5:function(){return l},_P:function(){return o}});var t,r=i(86735);!function(e){e.AWS="aws_event"}(t||(t={}));var l=[{label:function(){return"AWS"},uuid:t.AWS}],o=(0,r.HK)(l,(function(e){return e.uuid}))},61599:function(e,n,i){i.d(n,{D5:function(){return j},MU:function(){return o},RL:function(){return c},Xv:function(){return a},Zj:function(){return f},_B:function(){return r},eL:function(){return d},fe:function(){return p},jL:function(){return u},kB:function(){return x},ks:function(){return h},th:function(){return m},u7:function(){return v},zS:function(){return s}});var t,r,l=i(82394);!function(e){e.FULL_TABLE="FULL_TABLE",e.INCREMENTAL="INCREMENTAL",e.LOG_BASED="LOG_BASED"}(r||(r={}));var o,s,u=[r.FULL_TABLE,r.INCREMENTAL];!function(e){e.IGNORE="IGNORE",e.UPDATE="UPDATE"}(o||(o={})),function(e){e.DATE_TIME="date-time",e.UUID="uuid"}(s||(s={}));var c,a="datetime",d=(t={},(0,l.Z)(t,s.DATE_TIME,a),(0,l.Z)(t,s.UUID,s.UUID),t);!function(e){e.ARRAY="array",e.BOOLEAN="boolean",e.INTEGER="integer",e.NULL="null",e.NUMBER="number",e.OBJECT="object",e.STRING="string"}(c||(c={}));var v,h,p,m,f,j=[c.ARRAY,c.BOOLEAN,a,c.INTEGER,c.NULL,c.NUMBER,c.OBJECT,c.STRING,s.UUID];!function(e){e.PROPERTIES="properties"}(v||(v={})),function(e){e.AUTOMATIC="automatic",e.AVAILABLE="available",e.UNSUPPORTED="unsupported"}(h||(h={})),function(e){e.FORCED_REPLICATION_METHOD="forced-replication-method",e.KEY_PROPERTIES="table-key-properties",e.REPLICATION_KEYS="valid-replication-keys",e.SCHEMA_NAME="schema-name"}(p||(p={})),function(e){e.AMPLITUDE="amplitude",e.BIGQUERY="bigquery",e.CHARGEBEE="chargebee",e.GOOGLE_ADS="google_ads",e.GOOGLE_SEARCH_CONSOLE="google_search_console",e.GOOGLE_SHEETS="google_sheets",e.INTERCOM="intercom",e.MYSQL="mysql",e.PIPEDRIVE="pipedrive",e.POSTGRESQL="postgresql",e.REDSHIFT="redshift",e.SALESFORCE="salesforce",e.STRIPE="stripe"}(m||(m={})),function(e){e.AMAZON_S3="amazon_s3",e.BIGQUERY="bigquery",e.DELTA_LAKE_S3="delta_lake_s3",e.GOOGLE_CLOUD_STORAGE="google_cloud_storage",e.KAFKA="kafka",e.MYSQL="mysql",e.POSTGRESQL="postgresql",e.SNOWFLAKE="snowflake"}(f||(f={}));var x=[f.AMAZON_S3,f.GOOGLE_CLOUD_STORAGE,f.KAFKA]},39457:function(e,n,i){var t,r=i(82394),l=(i(82684),i(64866)),o=i(21764),s=i(55485),u=i(48670),c=i(38276),a=i(30160),d=i(12468),v=i(72473),h=i(70515),p=i(28598);function m(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function f(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?m(Object(i),!0).forEach((function(n){(0,r.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):m(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}!function(e){e.LEFT="left",e.RIGHT="right"}(t||(t={})),n.Z=function(e){var n,i=e.children,r=e.copiedText,m=e.iconPosition,j=void 0===m?t.LEFT:m,x=e.inverted,g=e.linkProps,Z=e.linkText,b=e.monospace,y=e.muted,P=e.small,O=e.toastMessage,_=e.withCopyIcon;return i?n=(0,p.jsx)("span",{children:i}):_&&(n=(0,p.jsx)(u.Z,f(f({href:"#",inline:!0,muted:y,preventDefault:!0,sameColorAsText:!0,small:P},g),{},{children:(0,p.jsxs)(s.ZP,{alignItems:"center",children:[j===t.LEFT&&(0,p.jsx)(c.Z,{mr:Z?1:0,children:(0,p.jsx)(s.ZP,{alignItems:"center",children:(0,p.jsx)(v.CK,{inverted:x,muted:y,size:2*h.iI})})}),Z&&(0,p.jsx)(a.ZP,{inverted:x,monospace:b,muted:y,small:P,children:Z}),j===t.RIGHT&&(0,p.jsx)(c.Z,{ml:Z?1:0,children:(0,p.jsx)(s.ZP,{alignItems:"center",children:(0,p.jsx)(v.CK,{inverted:x,muted:y})})})]})}))),(0,p.jsx)(d.Z,{block:!0,label:"Copy",size:null,widthFitContent:!0,children:(0,p.jsx)(l.CopyToClipboard,{onCopy:function(){return o.Am.success(O||"Successfully copied to clipboard.",{position:o.Am.POSITION.BOTTOM_RIGHT,toastId:r})},text:r,children:n})})}},22286:function(e,n,i){i.d(n,{M:function(){return a}});var t=i(82394),r=i(75582),l=i(54193),o=i(81728),s=i(42122);function u(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function c(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?u(Object(i),!0).forEach((function(n){(0,t.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}function a(e,n){var i,u;if(!n||null===n||void 0===n||!n.length)return e;if(null!==n&&void 0!==n&&n.includes(l.zj.LIST))return((0,s.Kn)(e)?Object.keys(e||{}):[e]).map((function(e){return a(e,null===n||void 0===n?void 0:n.filter((function(e){return l.zj.LIST!==e})))}));if(null!==n&&void 0!==n&&n.includes(l.zj.DICTIONARY)){var d=(0,s.Kn)(e)?e:(0,o.Pb)(e)?JSON.parse(e):e;if((0,s.Kn)(d))return Object.entries(d).reduce((function(e,i){var o=(0,r.Z)(i,2),s=o[0],u=o[1];return c(c({},e),{},(0,t.Z)({},s,a(u,null===n||void 0===n?void 0:n.filter((function(e){return l.zj.DICTIONARY!==e})))))}),{})}if(null!==n&&void 0!==n&&n.includes(l.zj.BOOLEAN)){var v,h;if("boolean"===typeof e)return e;if("true"===(null===(v=String(e))||void 0===v?void 0:v.toLowerCase()))return!0;if("false"===(null===(h=String(e))||void 0===h?void 0:h.toLowerCase()))return!1}return null!==n&&void 0!==n&&null!==(i=n.includes)&&void 0!==i&&i.call(n,l.zj.FLOAT)&&(0,o.HW)(e)?parseFloat(e):null!==n&&void 0!==n&&null!==(u=n.includes)&&void 0!==u&&u.call(n,l.zj.INTEGER)&&(0,o.HW)(e)?parseInt(e):e}},32080:function(e,n,i){i.d(n,{n:function(){return l}});var t=i(44425),r=i(61599);function l(e){var n,i={};return null===e||void 0===e||null===(n=e.blocks)||void 0===n||n.forEach((function(e){var n=e.catalog,l=e.type,o=e.uuid;if(t.tf.DATA_LOADER===l&&null!==n&&void 0!==n&&n.streams){var s,u=null===n||void 0===n||null===(s=n.streams)||void 0===s?void 0:s.filter((function(e){var n=e.replication_method;return r._B.INCREMENTAL===n}));(null===u||void 0===u?void 0:u.length)>=1&&(o in i||(i[o]={block:e,streams:[]}),i[o].streams.push(u))}})),i}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
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 j},OF:function(){return g},Q9:function(){return x},Rt:function(){return b},Rz:function(){return P},h8:function(){return O},k1:function(){return h},uS:function(){return y},zv:function(){return Z}});var o=t(21831),r=t(82394),i=t(92083),u=t.n(i),c=t(48339),l=t(53808),a=t(3917),d=t(86735),s=t(81728),p=t(70320);function f(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 v(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?f(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function b(n){var e={},t={};return null===n||void 0===n||n.forEach((function(n){var o=n.content,r=n.outputs,i=n.type,u=n.uuid;(null===r||void 0===r?void 0:r.length)>=1&&(e[u]=r.map((function(n){if("object"===typeof n){var e=n||{},t=e.sample_data,o=e.shape,r=e.text_data,i=e.type;return t?{data:v({shape:o},t),type:i}:r&&(0,s.Pb)(r)?JSON.parse(r):r}return{data:String(n),type:c.Gi.TEXT}}))),t[i]||(t[i]={}),t[i][u]=o})),{content:t,messages:e}}function h(n,e,t){n.forEach((function(n){(0,l.t8)("".concat(t,"/").concat(n.uuid,"/codeCollapsed"),(0,l.Od)("".concat(e,"/").concat(n.uuid,"/codeCollapsed"))),(0,l.t8)("".concat(t,"/").concat(n.uuid,"/outputCollapsed"),(0,l.Od)("".concat(e,"/").concat(n.uuid,"/outputCollapsed")))}))}function m(n){return"".concat(n,"/").concat(l.kP)}function j(n){return(0,l.U2)(m(n),[])}function g(n,e){var t=j(n);t.includes(e)||(0,l.t8)(m(n),[].concat((0,o.Z)(t),[e]))}function O(n,e){var t=j(n).filter((function(n){return n!==e}));(0,l.t8)(m(n),t)}function x(n,e){var t=(0,d.HK)(e,(function(n){return n.uuid}));return n.map((function(n){return t[n]})).filter((function(n){return!!n}))}var y=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 P(n,e){var t,o=(0,p.q)(),r=null===e||void 0===e?void 0:e.isPipelineUpdating,i=null===e||void 0===e?void 0:e.pipelineContentTouched,c=null===e||void 0===e?void 0:e.pipelineLastSaved;if(i)t="Unsaved changes";else if(r)t="Saving changes...";else if(c){var l=u()().utc().unix();if(null!==e&&void 0!==e&&e.displayRelative&&l-c<3600){var d=u().unix(l-(l-c)).utc().fromNow();t="Saved ".concat(d)}else{var s=(0,a.JX)(c/1e3);null!==n&&void 0!==n&&n.updated_at&&(s=(0,a.XG)(null===n||void 0===n?void 0:n.updated_at,o)),t="Last saved ".concat(s)}}else t="All changes saved";return t}function Z(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=44,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,underlineStyle:!0})}),(!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})}}}]);
|