mage-ai 0.9.74__py3-none-any.whl → 0.9.79__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/ai/llm_pipeline_wizard.py +6 -4
- mage_ai/ai/openai_client.py +7 -5
- mage_ai/api/policies/PipelineSchedulePolicy.py +1 -0
- mage_ai/api/presenters/PipelineSchedulePresenter.py +11 -2
- mage_ai/api/resources/GitFileResource.py +8 -0
- mage_ai/api/resources/PipelineScheduleResource.py +20 -14
- mage_ai/api/resources/PipelineTriggerResource.py +3 -1
- mage_ai/api/resources/SessionResource.py +2 -2
- mage_ai/api/resources/SyncResource.py +1 -1
- mage_ai/api/resources/UserResource.py +1 -1
- mage_ai/cli/main.py +8 -1
- mage_ai/data_cleaner/analysis/charts.py +1 -1
- mage_ai/data_cleaner/cleaning_rules/reformat_values.py +1 -1
- mage_ai/data_integrations/destinations/constants.py +3 -0
- mage_ai/data_integrations/sources/constants.py +2 -0
- mage_ai/data_preparation/executors/block_executor.py +8 -3
- mage_ai/data_preparation/executors/pipeline_executor.py +35 -19
- mage_ai/data_preparation/git/utils.py +2 -2
- mage_ai/data_preparation/logging/logger_manager.py +31 -2
- mage_ai/data_preparation/models/block/__init__.py +33 -27
- mage_ai/data_preparation/models/block/dbt/dbt_adapter.py +20 -8
- mage_ai/data_preparation/models/block/dynamic/constants.py +0 -1
- mage_ai/data_preparation/models/block/dynamic/counter.py +1 -3
- mage_ai/data_preparation/models/block/outputs.py +7 -1
- mage_ai/data_preparation/models/block/r/__init__.py +16 -5
- mage_ai/data_preparation/models/block/sql/__init__.py +2 -0
- mage_ai/data_preparation/models/block/sql/mssql.py +8 -0
- mage_ai/data_preparation/models/block/sql/utils/shared.py +6 -2
- mage_ai/data_preparation/models/constants.py +4 -1
- mage_ai/data_preparation/models/pipeline.py +11 -2
- mage_ai/data_preparation/models/project/__init__.py +3 -1
- mage_ai/data_preparation/models/triggers/__init__.py +1 -1
- mage_ai/data_preparation/storage/local_storage.py +4 -1
- mage_ai/data_preparation/templates/constants.py +7 -0
- mage_ai/data_preparation/templates/data_exporters/streaming/elasticsearch.yaml +3 -0
- mage_ai/data_preparation/templates/data_loaders/airtable.py +28 -0
- mage_ai/data_preparation/templates/data_loaders/streaming/nats.yaml +6 -3
- mage_ai/data_preparation/templates/repo/io_config.yaml +2 -0
- mage_ai/io/airtable.py +104 -0
- mage_ai/io/base.py +30 -1
- mage_ai/io/bigquery.py +36 -0
- mage_ai/io/config.py +6 -0
- mage_ai/io/mssql.py +21 -9
- mage_ai/io/mysql.py +6 -1
- mage_ai/io/oracledb.py +2 -4
- mage_ai/io/postgres.py +41 -19
- mage_ai/io/qdrant.py +1 -1
- mage_ai/io/redshift.py +13 -0
- mage_ai/io/sql.py +1 -0
- mage_ai/io/utils.py +18 -0
- mage_ai/orchestration/db/__init__.py +23 -3
- mage_ai/orchestration/db/migrations/versions/39d36f1dab73_create_genericjob.py +47 -0
- mage_ai/orchestration/db/models/oauth.py +2 -1
- mage_ai/orchestration/db/models/schedules.py +108 -6
- mage_ai/orchestration/db/models/schedules_project_platform.py +1 -1
- mage_ai/orchestration/db/models/secrets.py +11 -1
- mage_ai/orchestration/job_manager.py +19 -0
- mage_ai/orchestration/metrics/pipeline_run.py +1 -1
- mage_ai/orchestration/notification/sender.py +2 -2
- mage_ai/orchestration/pipeline_scheduler_original.py +150 -6
- mage_ai/orchestration/pipeline_scheduler_project_platform.py +4 -5
- mage_ai/orchestration/queue/config.py +11 -1
- mage_ai/orchestration/queue/process_queue.py +4 -0
- mage_ai/orchestration/utils/distributed_lock.py +8 -1
- mage_ai/orchestration/utils/resources.py +56 -2
- mage_ai/sample_datasets/salary_survey.csv +52 -52
- mage_ai/server/api/base.py +41 -0
- mage_ai/server/api/constants.py +1 -0
- mage_ai/server/api/triggers.py +9 -0
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +3 -3
- mage_ai/server/frontend_dist/_next/static/TUo4RceCdMufBTBTq8CAq/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{1187-839336d276186105.js → 1187-4560c3895e1d7099.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{1598-0adca9dce3ba4c60.js → 1598-cbf3f5a6078fc3f5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2717-638a944d24d5abde.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3548-36f746b1824004f2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{3763-39a5174f6a3924db.js → 3763-aabe2703076636b0.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3782-3e2acb5ed45b582b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/449-5e2253c6aba42557.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/5627-d5e559859dd0e1e0.js → frontend_dist/_next/static/chunks/5627-10e76bafa5a26f5f.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{5699-e49718dfc9eb2854.js → 5699-e99379e332bd0b41.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{7966-163da2621b8c987c.js → 7966-a5a7db345ce81263.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-b697b35dfc4e6e26.js +2 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/compute-ed67fa8e81662e8b.js → frontend_dist/_next/static/chunks/pages/compute-9e2dea78024e3bb4.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/files-e0ecd7ced09a63b2.js → frontend_dist/_next/static/chunks/pages/files-e08c7fe76f968f9c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/{[...slug]-c7a729477ecda50e.js → [...slug]-30c3807057a4e65b.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-data-products-fd6ae6a358a60a0c.js → global-data-products-8dcb3b31af9e0e39.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-8e50243797a7fe59.js → frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-85a64b64d27214b6.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-hooks-d0c003446332dc0d.js → global-hooks-4ff959d51b8a9502.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{files-a69ed8e9f814490c.js → files-d08a460641d0efaa.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{overview-1aad7093c6d39257.js → overview-aae747f487e08d51.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{pipeline-runs-528d30e0d13b0cc7.js → pipeline-runs-09a842d64a6ada62.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{settings-fb9201d9cf63031d.js → settings-2e98e57d9376a458.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/{[user]-000f5a980a07da39.js → [user]-7be6e41ad66089bb.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-e4e613f6e817a733.js → frontend_dist/_next/static/chunks/pages/manage/users/new-4c088833063bfa07.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-5db54821a3059c69.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage-34d718b8a4066c23.js → frontend_dist/_next/static/chunks/pages/manage-868fcd8cbeb265f0.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{oauth-3bfd1b8d7f036726.js → oauth-6ceceb62191dfe8a.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-f65416f6dbe30ad3.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipeline-runs-5f8c100e648efa8a.js → pipeline-runs-2d0136b51b57de93.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-688c652f3296bb9c.js → [...slug]-1ad5238742e25b4c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-bd11e87d026bfbf9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{dashboard-1236e36d39b1637d.js → dashboard-0f4f47f721b0723f.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-5ae8efe9e0530212.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-fe91dfb0091f6bc6.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-0d68d4bf6290fefb.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-cf794b2d22a80f31.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-9254358d58f07714.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-a964caef91bed9e1.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-821001e690caebe2.js → monitors-80bebb4401eefe25.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-2eae7cb017027682.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d4b2a0800a66b33.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-776b2e5b0b6ceba8.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-03d9bca3bc5e6088.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-707ed8ca942ca802.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-259143ed3cf59e31.js → [...slug]-8429f17d4146e1ec.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-193045d9836d8d80.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-d25d07db166cbb04.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks/{[...slug]-5eeec927e4202b63.js → [...slug]-6834ae87bd668cb2.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks-fbe9ad995d46d837.js → frontend_dist/_next/static/chunks/pages/platform/global-hooks-b3f7309a23e592b2.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/{profile-fc659962d4015cb3.js → profile-f8b7374385e1f1bf.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/preferences-8de68502a9afa299.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/settings-a4f88c334414402b.js → frontend_dist/_next/static/chunks/pages/settings/platform/settings-50fb6a34f3913f1f.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-4deb9579ef99a3c6.js → [...slug]-2e5c098c21ea32b7.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{permissions-e0cda2f2bfce8d61.js → permissions-54e4b15b9585bfc4.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-040f83d75d0f6537.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-910257d16c604ebd.js → [...slug]-95088f43034e3c95.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{roles-4f7a0756806cee34.js → roles-e9149e1fcf218f42.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{sync-data-208d6f955204d704.js → sync-data-75b67ae4a00818ef.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/{[...slug]-c89dc67e5a1706a8.js → [...slug]-557dda05ca6c6124.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-fa61dc6c1370e6a5.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{sign-in-054b33312d3193c3.js → sign-in-593c40985d63fcf7.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/{[...slug]-b6ed6a5d818bfd20.js → [...slug]-252c4b6b818345d5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{templates-852357bc983af2ea.js → templates-ca528bc607753ab8.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/terminal-1f9c56d671bbc67d.js → frontend_dist/_next/static/chunks/pages/terminal-287362c1defcc96b.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/test-2f83af8c9f1378fe.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-d9de73fb799efed8.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/version-control-ae3469b992a341d6.js → frontend_dist/_next/static/chunks/pages/version-control-573f0225d7a703ed.js} +1 -1
- mage_ai/server/frontend_dist/block-layout.html +3 -3
- mage_ai/server/frontend_dist/compute.html +6 -6
- mage_ai/server/frontend_dist/files.html +6 -6
- mage_ai/server/frontend_dist/global-data-products/[...slug].html +6 -6
- mage_ai/server/frontend_dist/global-data-products.html +6 -6
- mage_ai/server/frontend_dist/global-hooks/[...slug].html +6 -6
- mage_ai/server/frontend_dist/global-hooks.html +6 -6
- mage_ai/server/frontend_dist/index.html +3 -3
- mage_ai/server/frontend_dist/manage/files.html +6 -6
- mage_ai/server/frontend_dist/manage/overview.html +6 -6
- mage_ai/server/frontend_dist/manage/pipeline-runs.html +6 -6
- mage_ai/server/frontend_dist/manage/settings.html +6 -6
- mage_ai/server/frontend_dist/manage/users/[user].html +6 -6
- mage_ai/server/frontend_dist/manage/users/new.html +6 -6
- mage_ai/server/frontend_dist/manage/users.html +6 -6
- mage_ai/server/frontend_dist/manage.html +6 -6
- mage_ai/server/frontend_dist/oauth.html +5 -5
- mage_ai/server/frontend_dist/overview.html +6 -6
- mage_ai/server/frontend_dist/pipeline-runs.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +3 -3
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +3 -3
- mage_ai/server/frontend_dist/pipelines.html +6 -6
- mage_ai/server/frontend_dist/platform/global-hooks/[...slug].html +6 -6
- mage_ai/server/frontend_dist/platform/global-hooks.html +6 -6
- mage_ai/server/frontend_dist/settings/account/profile.html +6 -6
- mage_ai/server/frontend_dist/settings/platform/preferences.html +6 -6
- mage_ai/server/frontend_dist/settings/platform/settings.html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/permissions.html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/roles.html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/users.html +6 -6
- mage_ai/server/frontend_dist/settings.html +3 -3
- mage_ai/server/frontend_dist/sign-in.html +7 -7
- mage_ai/server/frontend_dist/templates/[...slug].html +6 -6
- mage_ai/server/frontend_dist/templates.html +6 -6
- mage_ai/server/frontend_dist/terminal.html +6 -6
- mage_ai/server/frontend_dist/test.html +3 -3
- mage_ai/server/frontend_dist/triggers.html +6 -6
- mage_ai/server/frontend_dist/v2/canvas.html +2 -2
- mage_ai/server/frontend_dist/v2.html +2 -2
- mage_ai/server/frontend_dist/version-control.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/404.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/_next/static/2QL-FT4lFR0a9bDZ7lNd9/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{1187-839336d276186105.js → 1187-4560c3895e1d7099.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{1598-0adca9dce3ba4c60.js → 1598-cbf3f5a6078fc3f5.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-638a944d24d5abde.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3548-36f746b1824004f2.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{3763-39a5174f6a3924db.js → 3763-aabe2703076636b0.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3782-3e2acb5ed45b582b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/449-5e2253c6aba42557.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/5627-d5e559859dd0e1e0.js → frontend_dist_base_path_template/_next/static/chunks/5627-10e76bafa5a26f5f.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{5699-e49718dfc9eb2854.js → 5699-e99379e332bd0b41.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{7966-163da2621b8c987c.js → 7966-a5a7db345ce81263.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-f205accb03b9ff43.js +2 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/compute-ed67fa8e81662e8b.js → frontend_dist_base_path_template/_next/static/chunks/pages/compute-9e2dea78024e3bb4.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/files-e0ecd7ced09a63b2.js → frontend_dist_base_path_template/_next/static/chunks/pages/files-e08c7fe76f968f9c.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/{[...slug]-c7a729477ecda50e.js → [...slug]-30c3807057a4e65b.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-data-products-fd6ae6a358a60a0c.js → global-data-products-8dcb3b31af9e0e39.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-8e50243797a7fe59.js → frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-85a64b64d27214b6.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-hooks-d0c003446332dc0d.js → global-hooks-4ff959d51b8a9502.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{files-a69ed8e9f814490c.js → files-d08a460641d0efaa.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{overview-1aad7093c6d39257.js → overview-aae747f487e08d51.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{pipeline-runs-528d30e0d13b0cc7.js → pipeline-runs-09a842d64a6ada62.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{settings-fb9201d9cf63031d.js → settings-2e98e57d9376a458.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/{[user]-000f5a980a07da39.js → [user]-7be6e41ad66089bb.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage/users/new-e4e613f6e817a733.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-4c088833063bfa07.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users-5db54821a3059c69.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage-34d718b8a4066c23.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage-868fcd8cbeb265f0.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{oauth-3bfd1b8d7f036726.js → oauth-6ceceb62191dfe8a.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-f65416f6dbe30ad3.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{pipeline-runs-5f8c100e648efa8a.js → pipeline-runs-2d0136b51b57de93.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-688c652f3296bb9c.js → [...slug]-1ad5238742e25b4c.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-bd11e87d026bfbf9.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{dashboard-1236e36d39b1637d.js → dashboard-0f4f47f721b0723f.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-5ae8efe9e0530212.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-fe91dfb0091f6bc6.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-0d68d4bf6290fefb.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-cf794b2d22a80f31.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-9254358d58f07714.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-a964caef91bed9e1.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-821001e690caebe2.js → monitors-80bebb4401eefe25.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-2eae7cb017027682.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d4b2a0800a66b33.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-776b2e5b0b6ceba8.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-03d9bca3bc5e6088.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-707ed8ca942ca802.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-259143ed3cf59e31.js → [...slug]-8429f17d4146e1ec.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-193045d9836d8d80.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-d25d07db166cbb04.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks/{[...slug]-5eeec927e4202b63.js → [...slug]-6834ae87bd668cb2.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/platform/global-hooks-fbe9ad995d46d837.js → frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks-b3f7309a23e592b2.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/{profile-fc659962d4015cb3.js → profile-f8b7374385e1f1bf.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-8de68502a9afa299.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/settings/platform/settings-a4f88c334414402b.js → frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/settings-50fb6a34f3913f1f.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-4deb9579ef99a3c6.js → [...slug]-2e5c098c21ea32b7.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{permissions-e0cda2f2bfce8d61.js → permissions-54e4b15b9585bfc4.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-040f83d75d0f6537.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-910257d16c604ebd.js → [...slug]-95088f43034e3c95.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{roles-4f7a0756806cee34.js → roles-e9149e1fcf218f42.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{sync-data-208d6f955204d704.js → sync-data-75b67ae4a00818ef.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/{[...slug]-c89dc67e5a1706a8.js → [...slug]-557dda05ca6c6124.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-fa61dc6c1370e6a5.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{sign-in-054b33312d3193c3.js → sign-in-593c40985d63fcf7.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates/{[...slug]-b6ed6a5d818bfd20.js → [...slug]-252c4b6b818345d5.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{templates-852357bc983af2ea.js → templates-ca528bc607753ab8.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/terminal-1f9c56d671bbc67d.js → frontend_dist_base_path_template/_next/static/chunks/pages/terminal-287362c1defcc96b.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-2f83af8c9f1378fe.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-d9de73fb799efed8.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/version-control-ae3469b992a341d6.js → frontend_dist_base_path_template/_next/static/chunks/pages/version-control-573f0225d7a703ed.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{webpack-12ad70eb5c31aa92.js → webpack-5f4be622608d9267.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/block-layout.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/compute.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/files.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/global-data-products.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/global-hooks.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/index.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/manage/files.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/manage/overview.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/manage/pipeline-runs.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/manage/settings.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/manage/users.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/manage.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/oauth.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/overview.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +3 -3
- mage_ai/server/frontend_dist_base_path_template/pipelines.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/platform/global-hooks/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/platform/global-hooks.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/platform/preferences.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/platform/settings.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/sign-in.html +7 -7
- mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/templates.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/terminal.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/test.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/triggers.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/v2/canvas.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/v2.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/version-control.html +6 -6
- mage_ai/server/scheduler_manager.py +2 -0
- mage_ai/server/server.py +13 -0
- mage_ai/server/terminal_server.py +3 -0
- mage_ai/server/utils/output_display.py +5 -3
- mage_ai/services/aws/events/events.py +2 -2
- mage_ai/services/gcp/cloud_run/cloud_run.py +1 -1
- mage_ai/services/teams/config.py +13 -2
- mage_ai/services/teams/teams.py +13 -11
- mage_ai/settings/server.py +12 -1
- mage_ai/shared/constants.py +3 -1
- mage_ai/shared/croniter.py +1398 -0
- mage_ai/shared/enum.py +2 -5
- mage_ai/shared/environments.py +27 -3
- mage_ai/streaming/sinks/elasticsearch.py +15 -5
- mage_ai/streaming/sinks/kafka.py +21 -3
- mage_ai/streaming/sources/kafka.py +64 -7
- mage_ai/streaming/sources/kafka_oauth.py +182 -0
- mage_ai/tests/api/endpoints/test_blocks.py +1 -101
- mage_ai/tests/api/endpoints/test_configuration_options.py +1 -48
- mage_ai/tests/api/endpoints/test_configuration_options_project_platform.py +68 -0
- mage_ai/tests/api/endpoints/test_custom_designs.py +1 -106
- mage_ai/tests/api/endpoints/test_custom_designs_project_platform.py +132 -0
- mage_ai/tests/api/endpoints/test_dbt_blocks.py +111 -0
- mage_ai/tests/api/endpoints/test_file_contents.py +0 -48
- mage_ai/tests/api/endpoints/test_file_contents_with_project_platform.py +66 -0
- mage_ai/tests/api/endpoints/test_pipelines.py +0 -134
- mage_ai/tests/api/endpoints/test_pipelines_with_project_platform.py +143 -0
- mage_ai/tests/data_preparation/executors/test_block_executor.py +3 -3
- mage_ai/tests/data_preparation/logging/test_logger_manager.py +24 -5
- mage_ai/tests/data_preparation/models/block/dynamic/test_counter.py +1 -3
- mage_ai/tests/data_preparation/models/block/hook/test_hook_block.py +3 -3
- mage_ai/tests/data_preparation/models/test_block.py +7 -0
- mage_ai/tests/data_preparation/models/test_pipeline.py +55 -0
- mage_ai/tests/data_preparation/models/test_variable.py +2 -0
- mage_ai/tests/data_preparation/test_repo_manager.py +0 -63
- mage_ai/tests/data_preparation/test_repo_manager_project_platform.py +67 -0
- mage_ai/tests/data_preparation/test_variable_manager.py +0 -51
- mage_ai/tests/data_preparation/test_variable_manager_project_platform.py +41 -0
- mage_ai/tests/io/create_table/test_postgresql.py +28 -0
- mage_ai/tests/orchestration/db/models/test_schedules.py +1 -1
- mage_ai/tests/orchestration/notification/test_config.py +3 -3
- mage_ai/tests/orchestration/notification/test_sender.py +5 -1
- mage_ai/tests/orchestration/utils/__init__.py +0 -0
- mage_ai/tests/orchestration/utils/test_resources.py +235 -0
- mage_ai/tests/shared/test_croniter.py +2541 -0
- mage_ai/tests/streaming/sinks/test_kafka.py +130 -0
- mage_ai/tests/streaming/sources/test_kafka.py +125 -3
- mage_ai/tests/streaming/sources/test_kafka_oauth.py +208 -0
- mage_ai/tests/streaming/sources/test_kafka_raw_value.py +105 -0
- mage_ai/usage_statistics/logger.py +99 -15
- mage_ai-0.9.79.dist-info/METADATA +358 -0
- {mage_ai-0.9.74.dist-info → mage_ai-0.9.79.dist-info}/RECORD +377 -359
- {mage_ai-0.9.74.dist-info → mage_ai-0.9.79.dist-info}/WHEEL +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1557-1ad0c64c2d08e569.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2717-d65056b6b5e124eb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3548-b2c5edfb710886a6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3782-4b3091e550f809a2.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-5bdff745074fb350.js +0 -2
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-a5e9d77ed5b50205.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-69af3253ad0d0d89.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-fe112809feb25b05.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-e9ca358209cdf93d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-a29f1615d2e7d330.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-6d382ae5bad9745c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-cd49372ae1702963.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-135be8974f7f5f2b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-3af13e89adff4d6c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-b578b075a8d857e3.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/preferences-058d283ee178c038.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-7b02bb70462144cb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-5212c01a9dc558da.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/test-86b12cc12d4a625f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-2481c40b18d5b6d4.js +0 -1
- mage_ai/server/frontend_dist/_next/static/pLWT6Sqd09xYpufCVIqnz/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/JQewSAObpbhO0wrdAM6Ng/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1557-1ad0c64c2d08e569.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-d65056b6b5e124eb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3548-b2c5edfb710886a6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3782-4b3091e550f809a2.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-90de19bc03f1484b.js +0 -2
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users-a5e9d77ed5b50205.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-69af3253ad0d0d89.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-fe112809feb25b05.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-e9ca358209cdf93d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-a29f1615d2e7d330.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-6d382ae5bad9745c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-cd49372ae1702963.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-135be8974f7f5f2b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-3af13e89adff4d6c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-b578b075a8d857e3.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-058d283ee178c038.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-7b02bb70462144cb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-5212c01a9dc558da.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-86b12cc12d4a625f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-2481c40b18d5b6d4.js +0 -1
- mage_ai-0.9.74.dist-info/METADATA +0 -544
- /mage_ai/server/frontend_dist/_next/static/{pLWT6Sqd09xYpufCVIqnz → TUo4RceCdMufBTBTq8CAq}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-5bdff745074fb350.js.LICENSE.txt → _app-b697b35dfc4e6e26.js.LICENSE.txt} +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{JQewSAObpbhO0wrdAM6Ng → 2QL-FT4lFR0a9bDZ7lNd9}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{_app-90de19bc03f1484b.js.LICENSE.txt → _app-f205accb03b9ff43.js.LICENSE.txt} +0 -0
- {mage_ai-0.9.74.dist-info → mage_ai-0.9.79.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.74.dist-info → mage_ai-0.9.79.dist-info/licenses}/LICENSE +0 -0
- {mage_ai-0.9.74.dist-info → mage_ai-0.9.79.dist-info}/top_level.txt +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1557],{54750:function(e,n,t){var i=t(82394),r=t(12691),l=t.n(r),o=t(55485),a=t(48670),c=t(44085),s=t(38276),u=t(4190),d=t(30160),h=t(72473),f=t(70515),p=t(28598),v=t(82684);function m(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?m(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.breadcrumbs,t=e.noMarginLeft,i=n.length,r=[];return n.forEach((function(e,n){var m=e.bold,j=e.danger,g=e.label,b=e.linkProps,Z=e.loading,y=e.monospace,C=void 0===y||y,M=e.onClick,F=e.options,O=g();i>=2&&n>=1&&r.push((0,p.jsx)(s.Z,{mx:1,children:(0,p.jsx)(h.ChevronRight,{muted:!0})},"divider-".concat(O)));var P=(0,p.jsx)(d.ZP,{bold:m,danger:j,default:!m,monospace:C,noWrapping:!0,children:O});if((null==F?void 0:F.length)>=1){var H,w,k=null==F?void 0:F.find((function(e){return!!e.selected}));if(k)(H=((null==k||null===(w=k.uuid)||void 0===w?void 0:w.length)||0)*f.ro)&&(H+=3*f.iI,Z&&(H+=2*f.iI));P=(0,p.jsx)(o.ZP,{alignItems:"center",children:(0,p.jsx)(c.Z,{afterIcon:Z?(0,p.jsx)(u.Z,{inverted:!0,small:!0}):null,danger:j,defaultTextColor:!m,maxWidth:H||null,monospace:C,noBackground:!0,noBorder:!0,onChange:function(e){var n,t=e.target.value,i=null==F?void 0:F.find((function(e){return e.uuid===t}));i&&null!=i&&i.onClick&&(null==i||null===(n=i.onClick)||void 0===n||n.call(i,t))},paddingHorizontal:0,paddingVertical:0,value:(null==k?void 0:k.uuid)||"",children:null==F?void 0:F.map((function(e){var n=e.label,t=e.selected,i=e.uuid,r=n?null==n?void 0:n():i;return(0,p.jsx)("option",{value:i,children:t?i:r},i)}))})})}var z=(0,p.jsx)(s.Z,{ml:t||0!==n?0:2,children:P},"breadcrumb-".concat(O));b?z=(0,v.createElement)(l(),x(x({},b),{},{key:"breadcrumb-link-".concat(O),passHref:!0}),(0,p.jsx)(a.Z,{block:!0,default:!m,noOutline:!0,sameColorAsText:m,children:z})):M&&(z=(0,p.jsx)(a.Z,{block:!0,default:!m,noOutline:!0,onClick:M,preventDefault:!0,sameColorAsText:m,children:z})),r.push(z)})),(0,p.jsx)(o.ZP,{alignItems:"center",children:r})}},31557:function(e,n,t){t.d(n,{Z:function(){return Qe}});var i=t(21831),r=t(82394),l=t(75582),o=t(12691),a=t.n(o),c=t(9518),s=t(82684),u=t(34376),d=t(40761),h=t(54750),f=t(71180),p=t(39867),v=t(50724),m=t(58036),x=t(97618),j=t(55485),g=t(70374),b=t(56085),Z=t(83455),y=t(70652),C=t(44085),M=t(38276),F=t(4190),O=t(28026),P=t(30160),H=t(35576),w=t(17488),k=t(69650),z=t(35686),_=t(72473),D=t(44897),S=t(42631),I=t(31353),E=t(47041),A=t(70515),L=c.default.div.withConfig({displayName:"GitActionsstyle__HeaderStyle",componentId:"sc-ynrhio-0"})(["border-bottom:1px solid #1B1C20;height:","px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;"],I.Mz),N=c.default.div.withConfig({displayName:"GitActionsstyle__TerminalStyle",componentId:"sc-ynrhio-1"})(["height:calc(75vh - ","px);position:relative;"],I.Mz),T=c.default.div.withConfig({displayName:"GitActionsstyle__PanelStyle",componentId:"sc-ynrhio-2"})(["height:75vh;min-height:300px;width:75vw;backgroundColor:#232429;border-radius:","px;",""],S.n_,(function(e){return"\n background-color: ".concat((e.theme.background||D.Z.background).panel,";\n ")})),B=c.default.div.withConfig({displayName:"GitActionsstyle__OutputStyle",componentId:"sc-ynrhio-3"})([""," padding:","px;height:calc(75vh - ","px);overflow-y:auto;"],E.w5,2*A.iI,I.Mz),U=t(4383),R=t(72619),W=t(86735),G=t(50178),Y=t(28598);function V(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function q(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?V(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):V(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var J={clone:"Clone repository",new_branch:"Create new branch",commit:"Commit & push",pull:"Pull",reset_hard:"Hard reset"};var Q=function(e){var n,t=e.branch,i=(e.fetchBranch,(0,u.useRouter)()),r=(0,s.useState)(),o=r[0],a=r[1],c=(0,s.useState)(),d=c[0],h=c[1],p=(0,s.useState)(),v=p[0],m=p[1],x=(0,s.useState)(),g=x[0],D=x[1],S=(0,s.useState)(),I=S[0],E=S[1],A=(0,s.useState)(),V=A[0],Q=A[1],$=z.ZP.git_branches.list({include_remote_branches:1}),K=$.data,X=$.isValidating,ee=$.mutate,ne=(0,s.useMemo)((function(){return null==K?void 0:K.git_branches}),[K]),te=z.ZP.syncs.list().data,ie=(0,s.useMemo)((function(){var e;if(te)return null===(e=te.syncs)||void 0===e?void 0:e[0]}),[te]),re=(0,Z.Db)(z.ZP.git_branches.useCreate(),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){ee(),window.location.reload()},onErrorCallback:function(e){var n=e.error.exception;E(n)}})}}),le=(0,l.Z)(re,2),oe=le[0],ae=le[1].isLoading,ce=(0,Z.Db)((function(){return z.ZP.git_branches.useUpdate(encodeURIComponent(t))({git_branch:{action_type:"status"}})}),{onSuccess:function(e){return(0,R.wD)(e,{onErrorCallback:function(e){var n=e.error.exception;E(n)}})}}),se=(0,l.Z)(ce,1)[0],ue=(0,Z.Db)(z.ZP.git_branches.useUpdate(encodeURIComponent(t)),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){E(null),D("DONE")},onErrorCallback:function(e){var n=e.error.exception;E(n)}})}}),de=(0,l.Z)(ue,2),he=de[0],fe=de[1].isLoading,pe=(0,Z.Db)(z.ZP.git_branches.useUpdate(encodeURIComponent(t)),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){E(null),window.location.reload()},onErrorCallback:function(e){var n=e.error.exception;E(n)}})}}),ve=(0,l.Z)(pe,2),me=ve[0],xe=ve[1].isLoading,je=(0,s.useState)(),ge=je[0],be=je[1],Ze=(0,s.useState)([]),ye=Ze[0],Ce=Ze[1],Me=(0,s.useState)([]),Fe=Me[0],Oe=Me[1],Pe=(0,s.useCallback)((function(){se().then((function(e){var n=e.data,t=null==n?void 0:n.git_branch,i=null==t?void 0:t.status,r=null==t?void 0:t.modified_files,l=null==t?void 0:t.untracked_files;be(i),Ce(l),Oe(r)}))}),[se]),He=(0,s.useMemo)((function(){return ae||fe||xe}),[ae,fe,xe]);(0,s.useEffect)((function(){X||Pe()}),[v,X,Pe]);var we=(0,s.useMemo)((function(){return(0,G.PR)(null==i?void 0:i.basePath)||{}}),[null==i?void 0:i.basePath]),ke=(0,s.useMemo)((function(){var e={term_name:null!=we&&we.id?"git_".concat(null==we?void 0:we.id):"git"};return null!=ie&&ie.repo_path&&(e.cwd=null==ie?void 0:ie.repo_path),e}),[null==ie?void 0:ie.repo_path,we]),ze=(0,b.ZP)((0,U.Ib)("terminal"),{shouldReconnect:function(){return!0}},"cwd"in ke),_e=ze.lastMessage,De=ze.sendMessage,Se=(0,s.useCallback)((function(e){return(0,Y.jsx)(y.Z,{checked:((null==o?void 0:o.files)||[]).includes(e),label:(0,Y.jsx)(P.ZP,{small:!0,children:e}),onClick:function(){a((function(n){var t=(null==n?void 0:n.files)||[];return t=t.includes(e)?(0,W.Od)(t,(function(n){return n===e})):[e].concat(t),q(q({},n),{},{files:t})}))},small:!0},e)}),[o]),Ie=(0,s.useMemo)((function(){return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(f.ZP,{onClick:function(){return a((function(e){return q(q({},e),{},{files:Fe.concat(ye)})}))},children:"Include all changes"}),Fe&&Fe.length>0&&(0,Y.jsxs)(M.Z,{mb:1,children:[(0,Y.jsx)(M.Z,{my:1,children:(0,Y.jsx)(P.ZP,{children:"Modified files"})}),Fe.map(Se)]}),ye&&ye.length>0&&(0,Y.jsxs)(M.Z,{mb:1,children:[(0,Y.jsx)(M.Z,{my:1,children:(0,Y.jsx)(P.ZP,{children:"Untracked files"})}),ye.map(Se)]})]})}),[Se,Fe,ye]),Ee=(0,s.useMemo)((function(){return(0,Y.jsx)(M.Z,{p:2,children:He?(0,Y.jsx)(F.Z,{color:"white"}):(0,Y.jsxs)(Y.Fragment,{children:["commit"===v&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(H.Z,{compact:!0,fullWidth:!0,label:"Commit message",monospace:!0,onChange:function(e){return a((function(n){return q(q({},n),{},{message:e.target.value})}))},required:!0,value:null==o?void 0:o.message}),(0,Y.jsx)(M.Z,{mt:1}),(0,Y.jsxs)(j.ZP,{children:[(0,Y.jsx)(f.ZP,{borderLess:!0,onClick:function(){he({git_branch:q({action_type:"commit"},o)}).then((function(){Pe(),a(null)}))},success:!0,children:"Commit"}),(0,Y.jsx)(M.Z,{mr:1}),(0,Y.jsx)(f.ZP,{borderLess:!0,onClick:function(){he({git_branch:{action_type:"push"}})},primary:!0,children:"Push"})]})]}),"new_branch"===v&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(w.Z,{compact:!0,fullWidth:!0,label:"Branch name",monospace:!0,onChange:function(e){return a({name:e.target.value})},value:null==o?void 0:o.name}),(0,Y.jsx)(M.Z,{mt:1}),(0,Y.jsx)(f.ZP,{borderLess:!0,onClick:function(){oe({git_branch:o})},primary:!0,children:"Create"})]}),"clone"===v&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(P.ZP,{children:["Clone from ",(0,Y.jsx)(P.ZP,{default:!0,inline:!0,children:null==ie?void 0:ie.remote_repo_link})," to ",(0,Y.jsx)(P.ZP,{default:!0,inline:!0,children:null==ie?void 0:ie.repo_path}),". This ",(0,Y.jsx)(P.ZP,{danger:!0,inline:!0,children:"will overwrite"})," any existing data in the local repository."]}),(0,Y.jsx)(M.Z,{mt:1}),(0,Y.jsx)(f.ZP,{borderLess:!0,onClick:function(){me({git_branch:{action_type:"clone"}})},primary:!0,children:"Clone"})]}),"pull"===v&&(0,Y.jsx)(f.ZP,{borderLess:!0,onClick:function(){me({git_branch:{action_type:"pull"}})},primary:!0,children:"Pull"}),"reset_hard"===v&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(M.Z,{mb:1,children:(0,Y.jsx)(P.ZP,{children:d||"This will reset your local branch to match the remote branch."})}),d?(0,Y.jsx)(f.ZP,{borderLess:!0,onClick:function(){h(null),me({git_branch:{action_type:"reset"}})},warning:!0,children:"Confirm"}):(0,Y.jsx)(f.ZP,{borderLess:!0,onClick:function(){return h("Are you sure you want to reset your branch? Your local changes may be erased.")},primary:!0,children:"Reset branch"})]}),(0,Y.jsx)(M.Z,{mt:1,children:!He&&(0,Y.jsxs)(Y.Fragment,{children:[!I&&g&&(0,Y.jsx)(P.ZP,{children:g}),I&&(0,Y.jsx)(P.ZP,{preWrap:!0,danger:!0,children:I})]})})]})})}),[He,v,I,ie,g,o,d,ge]),Ae=(0,s.useMemo)((function(){return(0,Y.jsx)(O.Z,{lastMessage:_e,sendMessage:De})}),[_e,De]);return(0,Y.jsxs)(T,{children:[(0,Y.jsxs)(L,{children:[(0,Y.jsx)(M.Z,{m:2,children:(0,Y.jsxs)(j.ZP,{children:[(0,Y.jsx)(C.Z,{beforeIcon:(0,Y.jsx)(_.Branch,{}),compact:!0,onChange:function(e){e.preventDefault(),oe({git_branch:{name:e.target.value,remote:"mage-repo"}})},placeholder:"Select a branch",value:t,children:null==ne?void 0:ne.map((function(e){var n=e.name;return(0,Y.jsx)("option",{value:n,children:n},n)}))},"select_branch"),(0,Y.jsx)(M.Z,{ml:2}),(0,Y.jsxs)(C.Z,{compact:!0,onChange:function(e){e.preventDefault(),m(e.target.value),Q(!1),D(null),a(null)},value:v,children:[(0,Y.jsx)("option",{value:"",children:"Select an action"}),Object.entries(J).map((function(e){var n=(0,l.Z)(e,2),t=n[0],i=n[1];return(0,Y.jsx)("option",{value:t,children:i},t)}))]},"select_git_action")]})}),(0,Y.jsx)(M.Z,{m:2,children:(0,Y.jsxs)(j.ZP,{alignItems:"center",children:[(0,Y.jsx)(P.ZP,{children:"UI"}),(0,Y.jsx)(M.Z,{ml:1}),(0,Y.jsx)(k.Z,{checked:!!V,monotone:!0,onCheck:function(){return Q((function(e){return!e}))}}),(0,Y.jsx)(M.Z,{ml:1}),(0,Y.jsx)(P.ZP,{children:"Terminal"})]})})]}),(0,Y.jsxs)(j.ZP,{children:[(0,Y.jsx)("div",{style:{width:"50%"},children:(0,Y.jsx)(B,{children:"commit"===v?Ie:(0,Y.jsx)(Y.Fragment,{children:null==ge||null===(n=ge.split("\\n"))||void 0===n?void 0:n.map((function(e){return(0,Y.jsx)(P.ZP,{monospace:!0,preWrap:!0,small:!0,children:e},e)}))})})}),(0,Y.jsx)("div",{style:{width:"50%"},children:V?(0,Y.jsx)(N,{children:Ae}):Ee})]})]})},$=t(65186),K=t(68562),X=t(81106),ee=t(65927),ne=t(48670),te=t(63637),ie=t(89515),re=t(82359),le=t(26304),oe="12px 20px",ae="1px",ce=(0,c.default)(f.ZP).withConfig({displayName:"indexstyle__ButtonStyle",componentId:"sc-hssntx-0"})(["",";"],(function(e){return e.active&&"\n background-color: ".concat((e.theme.background||D.Z.background).dashboard,";\n ")})),se=c.default.div.withConfig({displayName:"indexstyle__DropdownContainerStyle",componentId:"sc-hssntx-1"})(["position:absolute;top:",";right:0;width:","px;display:flex;flex-direction:column;gap:",";overflow:hidden;background-color:",";border-radius:","px;border:1px solid ",";"],(function(e){return e.top||0}),45*A.iI,ae,(function(e){return(e.theme.borders||D.Z.borders).darkLight}),S.n_,(function(e){return(e.theme.borders||D.Z.borders).darkLight})),ue=c.default.div.withConfig({displayName:"indexstyle__DropdownHeaderStyle",componentId:"sc-hssntx-2"})(["padding:",";background-color:",";"],oe,(function(e){return(e.theme.background||D.Z.background).panel})),de=c.default.div.withConfig({displayName:"indexstyle__TimeListContainerStyle",componentId:"sc-hssntx-3"})(["height:","px;display:flex;gap:",";"],20*A.iI,ae),he=c.default.div.withConfig({displayName:"indexstyle__TimeColumnStyle",componentId:"sc-hssntx-4"})(["display:flex;flex-direction:column;align-items:center;flex:1;gap:",";"],ae),fe=c.default.div.withConfig({displayName:"indexstyle__DropdownCellStyle",componentId:"sc-hssntx-5"})(["width:100%;padding:",";display:flex;flex-direction:",";flex-grow:",";justify-content:center;align-items:center;background-color:",";"],oe,(function(e){return e.flexDirection||"unset"}),(function(e){return e.flexGrow||"unset"}),(function(e){return(e.theme.background||D.Z.background).dashboard})),pe=c.default.div.withConfig({displayName:"indexstyle__ToggleGroupStyle",componentId:"sc-hssntx-6"})(["display:flex;flex-direction:column;"]),ve=(0,c.default)(fe).withConfig({displayName:"indexstyle__ToggleDropdownCellStyle",componentId:"sc-hssntx-7"})(["justify-content:flex-start;gap:12px;padding-right:","px;"],1.25*A.iI),me=["active","mountedCallback","time","timeZone"];function xe(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 je(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?xe(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):xe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ge(e){var n=e.active,t=e.mountedCallback,i=e.time,r=e.timeZone,l=(0,le.Z)(e,me),o=(0,s.useRef)(null);return(0,s.useEffect)((function(){null!=o&&o.current&&t(o.current.offsetHeight)}),[t]),(0,Y.jsx)(ce,je(je({},l),{},{active:n,borderLess:!0,borderRadius:"".concat(S.BG,"px"),compact:!0,highlightOnHoverAlt:!0,ref:o,transparent:!0,children:(0,Y.jsx)(P.ZP,{inline:!0,monospace:!0,noWrapping:!0,small:!0,children:"".concat(i," ").concat(r)})}))}var be=(0,s.memo)(ge),Ze=t(12468),ye=t(63055),Ce=t(72191),Me=t(70320),Fe=t(79633),Oe=t(3917),Pe=t(78419),He=t(53808);var we=t(23780);function ke(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 ze(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ke(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ke(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _e=[Oe.Oh.UTC,Oe.Oh.LOCAL];var De=function(e){var n=e.disabled,t=e.disableTimezoneToggle,i=e.projectName,o=(0,s.useState)((0,Me.qB)()),a=o[0],c=o[1],u=(0,s.useState)((0,He.U2)(Pe.kL,!1)),d=u[0],h=u[1],f=(0,s.useState)(!1),p=f[0],m=f[1],x=(0,s.useState)((0,Oe.e)({includeSeconds:!0,timeZones:_e})),j=x[0],g=x[1],b=(0,s.useState)(0),y=b[0],C=b[1],M=a?Oe.Oh.LOCAL:Oe.Oh.UTC,F=window.innerWidth<ye.nc,O=(0,we.VI)(null,{},[],{uuid:"components/ServerTimeDropdown"}),H=(0,l.Z)(O,1)[0],w=(0,Z.Db)(z.ZP.projects.useUpdate(i),{onSuccess:function(e){return(0,R.wD)(e,{onErrorCallback:function(e,n){return H({errors:n,response:e})}})}}),_=(0,l.Z)(w,1)[0],D=(0,s.useCallback)((function(){m((function(e){return!e}))}),[]),S=(0,s.useCallback)((function(e){C(e)}),[]),I=(0,s.useCallback)((function(){var e=(0,Oe.e)({includeSeconds:d,timeZones:_e});g((function(n){return n.size===e.size&&n.get(Oe.Oh.UTC)===e.get(Oe.Oh.UTC)?n:e}))}),[d]),E=[{checked:a,disabled:t,label:t?"Display local timezone (must be changed in platform preferences)":"Display local timezone (requires refresh)",onCheck:function(){var e=!a;c((0,Me.hY)(e)),_({project:{features:(0,r.Z)({},re.d.LOCAL_TIMEZONE,e)}})},uuid:re.d.LOCAL_TIMEZONE},{checked:d,label:"Include seconds in current time",onCheck:function(){var e;h((e=!d,!!(0,He.uN)(Pe.kL,e)))},uuid:"current_time_seconds"}];return(0,s.useEffect)((function(){var e=setInterval((function(){I()}),1e3);return function(){return clearInterval(e)}}),[I]),(0,s.useEffect)((function(){I()}),[d,I]),j?(0,Y.jsx)(v.Z,{onClickOutside:function(){return m(!1)},open:!0,children:(0,Y.jsxs)("div",{style:{position:"relative"},children:[(0,Y.jsx)(be,{active:p,disabled:F||n,mountedCallback:S,onClick:D,time:j.get(M),timeZone:(0,Oe.WT)(M)}),!F&&p&&(0,Y.jsxs)(se,{top:y,children:[(0,Y.jsx)(ue,{children:(0,Y.jsx)(P.ZP,{bold:!0,muted:!0,uppercase:!0,children:"Current Time"})}),(0,Y.jsx)(de,{children:_e.map((function(e){return(0,Y.jsxs)(he,{children:[(0,Y.jsx)(fe,{children:(0,Y.jsx)(P.ZP,{bold:!0,center:!0,muted:!0,uppercase:!0,children:"".concat(e).concat(e===Oe.Oh.LOCAL?" - ".concat((0,Oe.WT)(e)):"")})}),(0,Y.jsxs)(fe,{flexDirection:"column",flexGrow:3,children:[(0,Y.jsx)(P.ZP,{bold:!0,center:!0,color:Fe.J$,largeLg:!0,children:j.get(e)}),(0,Y.jsx)(P.ZP,{center:!0,muted:!0,small:!0,children:e===Oe.Oh.UTC?"Universal Time":Oe.mi[e]})]})]},e)}))}),(0,Y.jsx)(pe,{children:E.map((function(e){return(0,Y.jsxs)(ve,{children:[(0,Y.jsx)(k.Z,{checked:e.checked,compact:!0,disabled:e.disabled,onCheck:e.onCheck,purpleBackground:!e.disabled}),(0,Y.jsx)(P.ZP,{children:e.label}),e.uuid===re.d.LOCAL_TIMEZONE&&(0,Y.jsx)(Ze.Z,ze(ze({},Me.EB),{},{appearAbove:!0,appearBefore:!0,size:Ce.bL}))]},e.label)}))})]})]})}):null},Se=t(58401),Ie=t(59457),Ee=t(77417),Ae=t(46684),Le=t(16682),Ne=t(68804),Te=c.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-y3uzxv-0"})(["padding:","px ","px;&:hover{cursor:pointer;","}",""],.5*A.iI,1.5*A.iI,(function(e){return"\n background-color: ".concat((e.theme.interactive||D.Z.interactive).hoverBackground,";\n ")}),(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||D.Z.interactive).hoverBackground,";\n ")})),Be=t(95363),Ue=t(74445),Re=t(42122),We=t(66472),Ge=t(95924),Ye=t(69419),Ve=t(89538);function qe(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 Je(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?qe(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):qe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Qe=function(e){var n,t,o=e.breadcrumbs,b=e.hideActions,Z=e.menuItems,y=e.project,C=e.version,F=(0,we.VI)(null,{},[],{uuid:"shared/Header"}),O=(0,l.Z)(F,1)[0],H=(0,s.useContext)(c.ThemeContext),w=(0,u.useRouter)(),k=(0,G.PR)(null==w?void 0:w.basePath),D=(0,s.useState)(null),S=D[0],I=D[1],E=(0,s.useState)(!1),L=E[0],N=E[1],T=(0,s.useState)(!1),B=T[0],U=T[1],R=(0,s.useState)(null),W=R[0],V=R[1],q=(0,s.useState)(!1),J=q[0],le=q[1],oe=(0,s.useState)(null),ae=oe[0],ce=oe[1],se=(0,s.useRef)(null),ue=(0,s.useRef)(null),de=(0,s.useRef)(null),he=d.Z.isLoggedIn(),fe=(0,Ie.Z)(z.ZP.git_branches.detail,"test",{_format:"with_basic_details"},{revalidateOnFocus:!1},{pauseFetch:(0,G.YB)()&&!he},{delay:11e3}),pe=fe.data,ve=fe.mutate,me=(0,s.useMemo)((function(){return(null==pe?void 0:pe.git_branch)||{}}),[pe]),xe=me.is_git_integration_enabled,je=me.name,ge=(0,Se.Z)().design,be=(0,Ee.Z)({showError:b?null:O}),Ze=be.featureEnabled,ye=be.featureUUIDs,Ce=be.isLoadingProject,Oe=be.isLoadingUpdate,Pe=be.project,He=be.rootProject,ke=be.updateProject,ze=(0,s.useMemo)((function(){return y||Pe}),[Pe,y]),_e=(0,s.useMemo)((function(){return C||(null==ze?void 0:ze.version)}),[ze,C]),qe=(0,s.useMemo)((function(){return Le.WH.CLOSED===S||Le.WH.OPEN===S||(null==Ze?void 0:Ze(null==ye?void 0:ye.COMMAND_CENTER))}),[S,Ze,ye]),Qe=!(0,Re.Qr)(null==ze?void 0:ze.features_override);ue.current=ze;var $e=(0,s.useCallback)((function(){qe?(0,We.WJ)():(N(!0),ke({features:Je(Je({},(null==ze?void 0:ze.features)||{}),{},(0,r.Z)({},null==ye?void 0:ye.COMMAND_CENTER,!0))}).then((function(e){var n;if(null!=e&&null!==(n=e.data)&&void 0!==n&&n.error){var t;N(!1),O({errors:null==e||null===(t=e.data)||void 0===t?void 0:t.error,response:e})}else{var i=new CustomEvent(Ne.YS.COMMAND_CENTER_ENABLED);window.dispatchEvent(i)}})))}),[qe,null==ye?void 0:ye.COMMAND_CENTER,null==ze?void 0:ze.features,O,ke]),Ke=[];if(He&&Ke.push({label:function(){return null==He?void 0:He.name},linkProps:{href:"/"}}),ze){var Xe={label:function(){return null==ze?void 0:ze.name}};He?(Xe.loading=Oe&&!L,Xe.options=Object.keys((null==He?void 0:He.projects)||{}).map((function(e){return{onClick:function(){ke({activate_project:e}).then((function(e){var n;if(null!=e&&null!==(n=e.data)&&void 0!==n&&n.error){var t;O({errors:null==e||null===(t=e.data)||void 0===t?void 0:t.error,response:e})}else{var i,r,l,o=!(null==e||null===(i=e.data)||void 0===i||null===(r=i.project)||void 0===r||null===(l=r.features)||void 0===l||!l.display_local_timezone);(0,Me.hY)(o),window.location.reload()}}))},selected:e===(null==ze?void 0:ze.name),uuid:e}}))):Xe.linkProps={href:"/"},Ke.push(Xe)}else Ce||b||Ke.push({bold:!0,danger:!0,label:function(){return"Error loading project configuration"}});var en=(0,s.useMemo)((function(){return[].concat(Ke,(0,i.Z)(o||[]))}),[Ke,o,ze]),nn=w.query.pipeline,tn=(ze||{}).latest_version,rn=(0,s.useState)(null),ln=rn[0],on=rn[1],an=((0,s.useMemo)((function(){var e,n,t=null==ge||null===(e=ge.components)||void 0===e||null===(n=e.header)||void 0===n?void 0:n.media;if(t){var i=new Image,r=(null==t?void 0:t.url)||(null==t?void 0:t.file_path);if(null!=r)return i.src=r,i.onload=function(){on(i)},i}}),[ge,on]),(0,s.useMemo)((function(){var e,n,t=Ae.y7,i=(0,Y.jsx)($.Z,{height:Ae.y7});if(null!=ge&&null!==(e=ge.components)&&void 0!==e&&null!==(n=e.header)&&void 0!==n&&n.media){var r,l,o=null==ge||null===(r=ge.components)||void 0===r||null===(l=r.header)||void 0===l?void 0:l.media;if(null!==ln){var c=((null==ln?void 0:ln.width)||1)/((null==ln?void 0:ln.height)||1);t=Ae.sQ,i=(0,Y.jsx)(Ae.XD,{height:Ae.sQ,width:Ae.sQ*c,url:(null==o?void 0:o.url)||(null==o?void 0:o.file_path)})}}return(0,Y.jsx)(a(),{as:"/",href:"/",passHref:!0,children:(0,Y.jsx)(ne.Z,{block:!0,height:t,noHoverUnderline:!0,noOutline:!0,children:i})})}),[ln,ge])),cn=b?[]:[{label:function(){return"Settings"},linkProps:{href:"/settings/workspace/preferences"},uuid:"user_settings"},{label:function(){return"Launch command center"},onClick:function(e){(0,Ge.j)(e),$e()},uuid:"Launch command center"}];(0,G.YB)()&&cn.push({label:function(){return"Sign out"},onClick:function(){d.Z.logout((function(){z.ZP.sessions.updateAsyncServer(null,1).then((function(){(0,Ye.nL)("/sign-in")})).catch((function(){(0,Ye.nL)("/")}))}),null==w?void 0:w.basePath)},uuid:"sign_out"});var sn=(0,Ve.dd)((function(){return(0,Y.jsx)(Q,{branch:je,fetchBranch:ve})}),{},[je,ve],{background:!0,uuid:"git_actions"}),un=(0,l.Z)(sn,2),dn=un[0],hn=(un[1],(0,s.useMemo)((function(){return(null==je?void 0:je.length)>=21?"".concat(je.slice(0,21),"..."):je}),[je])),fn=(0,s.useMemo)((function(){return!(!k||null==k||!k.avatar)&&!/[A-Za-z0-9]+/.exec((null==k?void 0:k.avatar)||"")}),[k]),pn=(0,s.useMemo)((function(){return!(!k||null==k||!k.avatar)&&!!/[A-Za-z0-9]+/.exec((null==k?void 0:k.avatar)||"")}),[k]),vn=(0,s.useMemo)((function(){var e;if(!k||null==k||!k.avatar)return(0,Y.jsx)(te.Z,{});var n={color:null==H||null===(e=H.content)||void 0===e?void 0:e.active,fontFamily:Be.v$};return pn?(n.fontSize=2*A.iI,n.lineHeight="".concat(2*A.iI,"px"),n.position="relative",n.top=1):n.fontSize=3*A.iI,(0,Y.jsx)("div",{style:n,children:null==k?void 0:k.avatar})}),[pn,k]);return(0,s.useEffect)((function(){var e=function(e){var n,t,i=e.detail;null!=i&&i.state&&(I(null==i?void 0:i.state),Le.WH.MOUNTED===(null==i?void 0:i.state)&&(null!=ue&&null!==(n=ue.current)&&void 0!==n&&null!==(t=n.features)&&void 0!==t&&t[re.d.COMMAND_CENTER]||setTimeout((function(){(0,We.WJ)(),N(!1)}),1)))};return window.addEventListener(Ne.Mt,e),function(){window.removeEventListener(Ne.Mt,e)}}),[]),(0,Y.jsx)(Ae.I5,{children:(0,Y.jsx)(m.Z,{children:(0,Y.jsxs)(j.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"space-between",children:[(0,Y.jsxs)(x.Z,{alignItems:"center",children:[an,(0,Y.jsx)(h.Z,{breadcrumbs:en})]}),!!ze&&!b&&(0,Y.jsxs)(x.Z,{flex:1,alignItems:"center",justifyContent:"center",children:[(0,Y.jsx)(M.Z,{ml:A.cd}),(0,Y.jsx)(f.ZP,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(e){(0,Ge.j)(e),$e()},children:(0,Y.jsx)(Ae._m,{active:Le.WH.OPEN===S,children:(0,Y.jsxs)(j.ZP,{alignItems:"center",children:[(0,Y.jsx)(Y.Fragment,{children:Le.WH.OPEN===S?(0,Y.jsx)(_.UFO,{muted:!0,size:2*A.iI}):(0,Y.jsx)(_.Planet,{size:2*A.iI,success:!L&&!qe,warning:L})}),(0,Y.jsx)("div",{style:{marginRight:1.5*A.iI}}),Le.WH.OPEN!==S&&(0,Y.jsx)(P.ZP,{default:!0,noWrapping:!0,weightStyle:4,children:qe?"Command Center":L?"Launching Command Center":"Launch Command Center"}),Le.WH.OPEN===S&&(0,Y.jsx)(P.ZP,{muted:!0,noWrapping:!0,children:"Command Center launched"}),L&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("div",{style:{marginRight:1.5*A.iI}}),(0,Y.jsx)(ee.Z,{color:null==H||null===(n=H.accent)||void 0===n?void 0:n.warning,loadingStyle:ee.F.BLOCKS,width:1.5*A.iI})]}),qe&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("div",{style:{marginRight:1.5*A.iI}}),(0,Y.jsx)(X.Z,{compact:!0,settings:(0,Ue.MK)(),small:!0})]})]})})}),(0,Y.jsx)(M.Z,{mr:A.cd})]}),(0,Y.jsxs)(x.Z,{alignItems:"center",children:[xe&&je&&(0,Y.jsx)(M.Z,{mr:1,children:(0,Y.jsx)(K.ZP,{compact:!0,highlightOnHoverAlt:!0,noBackground:!0,noHoverUnderline:!0,onClick:dn,sameColorAsText:!0,title:je,uuid:"Header/GitActions",children:(0,Y.jsxs)(j.ZP,{alignItems:"center",children:[(0,Y.jsx)(_.BranchAlt,{size:1.5*A.iI}),(0,Y.jsx)(M.Z,{ml:1}),(0,Y.jsx)(P.ZP,{monospace:!0,noWrapping:!0,small:!0,children:hn})]})})}),tn&&_e&&tn!==_e&&(0,Y.jsx)(f.ZP,{backgroundColor:Fe.$R,borderLess:!0,compact:!0,linkProps:{href:"https://docs.mage.ai/about/releases"},noHoverUnderline:!0,pill:!0,sameColorAsText:!0,target:"_blank",title:"Update to version ".concat(tn),children:(0,Y.jsx)(P.ZP,{black:!0,bold:!0,children:"Update"})}),_e&&void 0!==_e&&(0,Y.jsx)(M.Z,{px:1,children:(0,Y.jsx)(ne.Z,{href:"https://www.mage.ai/changelog",monospace:!0,noWrapping:!0,openNewWindow:!0,sameColorAsText:!0,small:!0,children:"v".concat(_e)})}),(0,Y.jsx)(M.Z,{ml:1,children:(0,Y.jsx)(De,{disableTimezoneToggle:Qe,disabled:b,projectName:null==ze?void 0:ze.name})}),(0,Y.jsx)(M.Z,{ml:1,children:(0,Y.jsx)(K.ZP,{beforeElement:(0,Y.jsx)(_.Slack,{}),compact:!0,highlightOnHoverAlt:!0,inline:!0,linkProps:{as:"https://www.mage.ai/chat",href:"https://www.mage.ai/chat"},noBackground:!0,noHoverUnderline:!0,openNewTab:!0,sameColorAsText:!0,uuid:"Header/live_chat",children:"Live help"})}),Z&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(M.Z,{ml:2}),(0,Y.jsx)(v.Z,{onClickOutside:function(){return V(null)},open:!0,style:{position:"relative"},children:(0,Y.jsxs)(j.ZP,{children:[(0,Y.jsx)(Te,{highlighted:0===W,onClick:function(){return V((function(e){return 0===e?null:0}))},onMouseEnter:function(){return V((function(e){return null!==e?0:null}))},ref:se,children:(0,Y.jsx)(P.ZP,{children:"Menu"})}),(0,Y.jsx)(g.Z,{alternateBackground:!0,items:Z,onClickCallback:function(){return V(null)},open:0===W,parentRef:se,rightOffset:0,setConfirmationAction:ce,setConfirmationDialogueOpen:le,uuid:"PipelineDetail/Header/menu"})]})}),(0,Y.jsx)(v.Z,{onClickOutside:function(){return le(!1)},open:J,children:(0,Y.jsx)(ie.Z,{danger:!0,onCancel:function(){return le(!1)},onClick:ae,right:16*A.iI,subtitle:"This is irreversible and will immediately delete everything associated with the pipeline, including its blocks, triggers, runs, logs, and history.",title:"Are you sure you want to delete the pipeline ".concat(nn,"?"),width:40*A.iI})})]}),(he||!(0,G.YB)())&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(M.Z,{ml:1}),(0,Y.jsx)(v.Z,{onClickOutside:function(){return U(!1)},open:!0,style:{position:"relative"},children:(0,Y.jsxs)(j.ZP,{alignItems:"flex-end",flexDirection:"column",children:[(0,Y.jsx)(K.ZP,{compact:!0,highlightOnHoverAlt:!0,inline:!0,noBackground:!0,noHoverUnderline:!0,onClick:function(){return U(!0)},ref:de,uuid:"Header/menu",children:fn&&(null==k||null===(t=k.avatar)||void 0===t?void 0:t.length)>=2?vn:(0,Y.jsx)(p.Z,{color:Fe.Jm,size:4*A.iI,children:vn})}),(0,Y.jsx)(g.Z,{alternateBackground:!0,items:cn,onClickCallback:function(){return U(!1)},open:B,parentRef:de,rightOffset:0,uuid:"shared/Header/user_menu"})]})})]})]})]})})})}},63637:function(e,n,t){var i=t(9518),r=t(28598),l=i.default.svg.withConfig({displayName:"Mage8Bit__SVGStyle",componentId:"sc-cj6ltf-0"})([""]);n.Z=function(e){var n=e.size,t=void 0===n?20:n,i=e.viewBox,o=void 0===i?"0 0 20 20":i;return(0,r.jsxs)(l,{height:t,viewBox:o,width:t,children:[(0,r.jsxs)("g",{clipPath:"url(#clip0_297_42814)",children:[(0,r.jsx)("path",{d:"M13.334 0h1.66667v1.66667H13.334zM11.666 1.6665h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M10 1.6665h1.66667v1.66667H10z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M8.33398 1.6665h1.66667v1.66667H8.33398z",fill:"#AF93FF"}),(0,r.jsx)("path",{d:"M8.33398 3.3335h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M6.66602 3.3335h1.66667v1.66667H6.66602z",fill:"#AF93FF"}),(0,r.jsx)("path",{d:"M3.33398 5h1.66667v1.66667H3.33398z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M5 5h1.66667v1.66667H5z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M6.66602 5h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M6.66602 5h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M6.66602 8.3335h1.66667v1.66667H6.66602z",fill:"#000"}),(0,r.jsx)("path",{d:"M6.66602 6.6665h1.66667v1.66667H6.66602z",fill:"#AD8FFF"}),(0,r.jsx)("path",{d:"M6.66602 10h1.66667v1.66667H6.66602z",fill:"#C9B6FF"}),(0,r.jsx)("path",{d:"M8.33398 6.6665h1.66667v1.66667H8.33398z",fill:"#AD8FFF"}),(0,r.jsx)("path",{d:"M1.66602 13.3335h1.66667v1.66667H1.66602z",fill:"#C9B6FF"}),(0,r.jsx)("path",{d:"M1.66602 11.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,r.jsx)("path",{d:"M1.66602 10h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,r.jsx)("path",{d:"M1.66602 8.3335h1.66667v1.66667H1.66602zM1.66602 6.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,r.jsx)("path",{d:"M1.66602 6.6665h1.66667v1.66667H1.66602zM0 0h1.66667v1.66667H0zM3.33398 1.6665h1.66667v1.66667H3.33398zM0 3.3335h1.66667v1.66667H0z",fill:"#2ECDF7"}),(0,r.jsx)("path",{d:"M1.66602 16.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,r.jsx)("path",{d:"M1.66602 16.6665h1.66667v1.66667H1.66602zM1.66602 18.3335h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,r.jsx)("path",{d:"M1.66602 15h1.66667v1.66667H1.66602zM3.33398 15h1.66667v1.66667H3.33398z",fill:"#C9B6FF"}),(0,r.jsx)("path",{d:"M3.33398 16.6665h1.66667v1.66667H3.33398z",fill:"#C9B6FF"}),(0,r.jsx)("path",{d:"M3.33398 13.3335h1.66667v1.66667H3.33398z",fill:"#AD8FFF"}),(0,r.jsx)("path",{d:"M8.33398 8.3335h1.66667v1.66667H8.33398z",fill:"#C9B6FF"}),(0,r.jsx)("path",{d:"M10 6.6665h1.66667v1.66667H10z",fill:"#AD8FFF"}),(0,r.jsx)("path",{d:"M10 10h1.66667v1.66667H10z",fill:"#C9B6FF"}),(0,r.jsx)("path",{d:"M11.666 6.6665h1.66667v1.66667H11.666z",fill:"#AD8FFF"}),(0,r.jsx)("path",{d:"M11.666 8.3335h1.66667v1.66667H11.666z",fill:"#C9B6FF"}),(0,r.jsx)("path",{d:"M8.33398 10h1.66667v1.66667H8.33398z",fill:"#FF8DA9"}),(0,r.jsx)("path",{d:"M8.33398 11.6665h1.66667v1.66667H8.33398z",fill:"#FF8DA9"}),(0,r.jsx)("path",{d:"M6.66602 11.6665h1.66667v1.66667H6.66602z",fill:"#D9D9D9"}),(0,r.jsx)("path",{d:"M6.66602 11.6665h1.66667v1.66667H6.66602z",fill:"#D9D9D9"}),(0,r.jsx)("path",{d:"M5 10h1.66667v1.66667H5z",fill:"#D9D9D9"}),(0,r.jsx)("path",{d:"M5 8.3335h1.66667v1.66667H5z",fill:"#232429"}),(0,r.jsx)("path",{d:"M8.33398 11.6665h1.66667v1.66667H8.33398zM8.33398 13.3335h1.66667v1.66667H8.33398z",fill:"#D9D9D9"}),(0,r.jsx)("path",{d:"M10 11.6665h1.66667v1.66667H10z",fill:"#D9D9D9"}),(0,r.jsx)("path",{d:"M11.666 10h1.66667v1.66667H11.666zM13.334 6.6665h1.66667v1.66667H13.334zM13.334 8.3335h1.66667v1.66667H13.334z",fill:"#D9D9D9"}),(0,r.jsx)("path",{d:"M15 8.3335h1.66667v1.66667H15z",fill:"#757575"}),(0,r.jsx)("path",{d:"M15 10h1.66667v1.66667H15z",fill:"#D9D9D9"}),(0,r.jsx)("path",{d:"M10 8.3335h1.66667v1.66667H10z",fill:"#000"}),(0,r.jsx)("path",{d:"M8.33398 5h1.66667v1.66667H8.33398zM11.666 5h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M13.334 10h1.66667v1.66667H13.334zM11.666 11.6665h1.66667v1.66667H11.666zM10 13.3335h1.66667v1.66667H10z",fill:"#501FD8"}),(0,r.jsx)("path",{d:"M8.33398 15h1.66667v1.66667H8.33398zM6.66602 13.3335h1.66667v1.66667H6.66602zM15 11.6665h1.66667v1.66667H15z",fill:"#501FD8"}),(0,r.jsx)("path",{d:"M16.666 11.6665h1.66667v1.66667H16.666zM16.666 13.3335h1.66667v1.66667H16.666z",fill:"#501FD8"}),(0,r.jsx)("path",{d:"M15 13.3335h1.66667v1.66667H15z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M13.334 13.3335h1.66667v1.66667H13.334zM13.334 11.6665h1.66667v1.66667H13.334zM11.666 13.3335h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M11.666 15h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M10 15h1.66667v1.66667H10z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M8.33398 16.6665h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M6.66602 15h1.66667v1.66667H6.66602z",fill:"#AF93FF"}),(0,r.jsx)("path",{d:"M6.66602 16.6665h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M5 16.6665h1.66667v1.66667H5z",fill:"#AF93FF"}),(0,r.jsx)("path",{d:"M5 18.3335h1.66667v1.66667H5z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M6.66602 18.3335h1.66667v1.66667H6.66602zM8.33398 18.3335h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M10 18.3335h1.66667v1.66667H10z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M11.666 18.3335h1.66667v1.66667H11.666zM13.334 18.3335h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M15 18.3335h1.66667v1.66667H15z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M16.666 18.3335h1.66667v1.66667H16.666z",fill:"#652EFF"}),(0,r.jsx)("path",{d:"M3.33398 18.3335h1.66667v1.66667H3.33398zM10 16.6665h1.66667v1.66667H10z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M11.666 16.6665h1.66667v1.66667H11.666zM13.334 15h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M13.334 16.6665h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M15 16.6665h1.66667v1.66667H15z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M15 15h1.66667v1.66667H15z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M16.666 15h1.66667v1.66667H16.666zM18.334 16.6665h1.66667v1.66667H18.334zM18.334 18.3335h1.66667v1.66667H18.334z",fill:"#501FD8"}),(0,r.jsx)("path",{d:"M16.666 16.6665h1.66667v1.66667H16.666z",fill:"#652EFF"}),(0,r.jsx)("path",{d:"M13.334 5h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M15 5h1.66667v1.66667H15zM10 5h1.66667v1.66667H10z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M10 3.3335h1.66667v1.66667H10z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M11.666 3.3335h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,r.jsx)("path",{d:"M11.666 0h1.66667v1.66667H11.666z",fill:"#AF93FF"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_297_42814",children:(0,r.jsx)("path",{d:"M0 0h20v20H0z",fill:"#fff"})})})]})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2717],{8916:function(e,n,t){t.d(n,{FS:function(){return s},JZ:function(){return p},Tt:function(){return d},e7:function(){return h},wx:function(){return a}});var r=t(75582),i=t(82394),l=t(83784),o=t(30229);function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e){return"string"==typeof e?e:JSON.stringify(e)}function a(e,n){var t,r;return null==e||null===(t=e.find((function(e){var t=e.block;return n(t)})))||void 0===t||null===(r=t.variables)||void 0===r?void 0:r.map((function(e){var n=e.value;return c(c({},e),{},{value:s(n)})}))}function d(e){var n;return null===(n=a(e,(function(e){return e.uuid===l.C})))||void 0===n?void 0:n.reduce((function(e,n){var t=n.uuid,r=n.value;return c(c({},e),{},(0,i.Z)({},t,r))}),{})}function p(e,n){return n===o.Xm.TIME?e.push({uuid:"execution_date",value:"<run datetime>"}):n===o.Xm.EVENT&&e.push({uuid:"event",value:"<trigger event>"}),e}function h(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,r.Z)(n,2),l=t[0],o=t[1],u=o;try{u=JSON.parse(o)}catch(e){}return c(c({},e),{},(0,i.Z)({},l,u))}),{}):e}},81334:function(e,n,t){t.d(n,{Z:function(){return _}});var r=t(82394),i=t(82684),l=t(27277),o=t(31882),u=t(38276),c=t(48381),s=t(30160),a=t(17488),d=t(9518),p=t(44897),h=t(42631),f=t(47041),m=t(70515),v=d.default.div.withConfig({displayName:"indexstyle__DropdownStyle",componentId:"sc-suwkha-0"})([""," border-radius:","px;max-height:","px;overflow:auto;position:absolute;width:100%;z-index:1;"," ",""],f.w5,h.BG,40*m.iI,(function(e){return"\n background-color: ".concat((e.theme.background||p.Z.background).popup,";\n box-shadow: ").concat((e.theme.shadow||p.Z.shadow).popup,";\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset-.5*m.iI,"px;\n ")})),j=d.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-suwkha-1"})(["padding:","px;position:relative;z-index:2;&:hover{cursor:pointer;}",""],.5*m.iI,(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||p.Z.interactive).hoverBackground,";\n ")})),g=t(39643),x=t(95924),b=t(86735),Z=t(44688),y=t(28598);function P(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function 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,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _=function(e){var n,t=e.removeTag,r=e.selectTag,d=e.selectedTags,p=void 0===d?[]:d,h=e.tags,f=void 0===h?[]:h,m=e.uuid,P=(0,i.useRef)(null),_=(0,i.useState)(!1),k=_[0],w=_[1],S=(0,i.useState)(null),C=S[0],I=S[1],T=(0,i.useMemo)((function(){return(0,b.YC)(f||[],"uuid")}),[f]),E=(0,i.useMemo)((function(){return null==T?void 0:T.map((function(e){return{itemObject:e,searchQueries:[e.uuid],value:e.uuid}}))}),[T]),M=(0,i.useMemo)((function(){return(null==C?void 0:C.length)>=1?E.concat({itemObject:{uuid:C},searchQueries:[C],value:"Add tag: ".concat(C)}):E}),[E,C]),D=(0,Z.y)(),N=D.registerOnKeyDown,A=D.unregisterOnKeyDown;return(0,i.useEffect)((function(){return function(){return A(m)}}),[A,m]),null==N||N(m,(function(e,n){var t;k&&n[g.vP]&&(w(!1),null==P||null===(t=P.current)||void 0===t||t.blur())}),[k,P]),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.Z,{onClickTag:t,tags:p}),(0,y.jsxs)(u.Z,{mt:1,style:{position:"relative"},children:[(0,y.jsx)(a.Z,{onBlur:function(){return setTimeout((function(){return w(!1)}),150)},onChange:function(e){return I(e.target.value)},onFocus:function(){return w(!0)},ref:P,value:C||""}),(0,y.jsx)(v,{topOffset:null==P||null===(n=P.current)||void 0===n?void 0:n.getBoundingClientRect().height,children:(0,y.jsx)(l.Z,{eventProperties:{eventParameters:{item_type:"tag"}},itemGroups:[{items:k?M:[],renderItem:function(e,n){var t=e.value;return(0,y.jsx)(j,O(O({},n),{},{onClick:function(e){var t;(0,x.j)(e),null==n||null===(t=n.onClick)||void 0===t||t.call(n,e)},children:(0,y.jsx)(o.Z,{small:!0,children:(0,y.jsx)(s.ZP,{children:t})})}))}}],onSelectItem:function(e){var n=e.itemObject;null==r||r(n),I(null)},searchQuery:C,uuid:m})})]})]})}},71610:function(e,n,t){var r=t(82394),i=t(75582),l=t(12691),o=t.n(l),u=t(9518),c=t(82684),s=t(32013),a=t(98777),d=t(15338),p=t(48670),h=t(88543),f=t(38276),m=t(4190),v=t(75499),j=t(30160),g=t(35686),x=t(70515),b=t(30229),Z=t(32080),y=t(81728),P=t(3917),O=t(55283),_=t(70320),k=t(28598);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C={large:!1};n.Z=function(e){var n=e.bookmarkValues,t=e.originalBookmarkValues,l=e.setBookmarkValues,w=e.pipeline,I=(0,c.useContext)(u.ThemeContext),T=(0,_.qB)(),E=(0,c.useState)(null),M=E[0],D=E[1],N=(0,c.useMemo)((function(){return null!=w&&w.blocks?(0,Z.nG)(w):null}),[w]),A=(0,c.useMemo)((function(){return Object.keys(N||{})||[]}),[N]),L=g.ZP.integration_sources.pipelines.list(null==w?void 0:w.uuid,{block_uuid:A},{},{pauseFetch:!(null!=A&&A.length)}).data,H=(0,c.useMemo)((function(){return null==L?void 0:L.integration_sources}),[L]);return(0,c.useEffect)((function(){if((null==H?void 0:H.length)>=1&&(!n||!M)){var e={};null==H||H.map((function(n){var t,r=n.block,l=n.streams,o=null==r?void 0:r.uuid;e[o]={},null===(t=Object.entries(l||{}))||void 0===t||t.forEach((function(n){var t,r,l=(0,i.Z)(n,2),u=l[0],c=l[1];e[o][u]=null==c||null===(t=c.state)||void 0===t||null===(r=t.bookmarks)||void 0===r?void 0:r[u]}))})),n||l(e),M||D(e)}}),[n,M,l,D,H]),(0,k.jsxs)(f.Z,{p:x.cd,children:[!L&&(0,k.jsx)(m.Z,{inverted:!0,small:!0}),null==H?void 0:H.map((function(e){var u=e.block,m=e.pipeline_run,g=e.pipeline_schedule,Z=e.streams,_=null==u?void 0:u.uuid;return(0,k.jsx)(h.Z,{title:(0,k.jsx)(j.ZP,{color:(0,O.qn)(null==u?void 0:u.type,{blockColor:null==u?void 0:u.color,theme:I}).accent,monospace:!0,children:_}),children:(0,k.jsx)(s.Z,{noBorder:!0,noBoxShadow:!0,children:Object.entries(Z||{}).map((function(e){var u,s,Z,O,I=(0,i.Z)(e,2),E=I[0],D=I[1],N=D.record,A=D.state,L=(null==A||null===(u=A.bookmarks)||void 0===u?void 0:u[E])||{};return(0,k.jsxs)(a.Z,{noBorderRadius:!0,noPaddingContent:!0,title:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:E}),titleXPadding:x.cd*x.iI,titleYPadding:x.cd*x.iI,children:[(0,k.jsx)(h.S,S(S({},C),{},{title:"Last pipeline run started at",children:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:(null==m?void 0:m.started_at)&&(0,P.XG)(null==m?void 0:m.started_at,T)})})),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsx)(h.S,S(S({},C),{},{title:"Last pipeline run completed at",children:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:(null==m?void 0:m.completed_at)&&(0,P.XG)(null==m?void 0:m.completed_at,T)})})),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsx)(h.S,S(S({},C),{},{title:"Trigger",children:(0,k.jsx)(o(),{as:"/pipelines/".concat(null==w?void 0:w.uuid,"/triggers/").concat(null==g?void 0:g.id),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,k.jsx)(p.Z,{block:!0,default:!0,openNewWindow:!0,children:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:null==g?void 0:g.name})})})})),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsx)(h.S,S(S({},C),{},{title:"Type",children:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:(0,y.kC)((null===(s=b.Z4[null==g?void 0:g.schedule_type])||void 0===s?void 0:s.call(b.Z4))||"")})})),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsx)(h.S,S(S({},C),{},{title:"Frequency",children:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:null==g?void 0:g.schedule_interval})})),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsxs)(f.Z,{p:x.cd,children:[(0,k.jsx)(j.ZP,{bold:!0,large:!0,children:"Bookmark values"}),(0,k.jsx)(f.Z,{mt:1,children:(0,k.jsxs)(j.ZP,{muted:!0,small:!0,children:["Overriding the bookmark values will be applied to all pipeline runs",(0,k.jsx)("br",{}),"for this trigger until there is at least 1 successful pipeline run in this trigger."]})})]}),(0,k.jsx)(d.Z,{light:!0,short:!0}),!(null!==(Z=Object.values(L||{}))&&void 0!==Z&&Z.length)&&(0,k.jsx)(f.Z,{p:x.cd,children:(0,k.jsx)(j.ZP,{muted:!0,children:"There are currently no bookmark values for this stream."})}),Object.entries(L||{}).map((function(e){var o,u,s,a,d,p,f=(0,i.Z)(e,2),m=f[0],v=(f[1],null==n||null===(o=n[_])||void 0===o||null===(u=o[E])||void 0===u?void 0:u[m]),g=(null==t||null===(s=t[_])||void 0===s||null===(a=s[E])||void 0===a||a[m],null==M||null===(d=M[_])||void 0===d||null===(p=d[E])||void 0===p?void 0:p[m]);return(0,c.createElement)(h.S,S(S({},C),{},{title:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:m}),description:g&&g!==v&&(0,k.jsxs)(j.ZP,{muted:!0,small:!0,children:["Original bookmark value from the last pipeline run: ",(0,k.jsx)(j.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:g})]}),key:"".concat(_,"-bookmark-values-").concat(m),textInput:{monospace:!0,onChange:function(e){return l((function(t){var i;return S(S({},t),{},(0,r.Z)({},_,S(S({},null==n?void 0:n[_]),{},(0,r.Z)({},E,S(S({},null==n||null===(i=n[_])||void 0===i?void 0:i[E]),{},(0,r.Z)({},m,e.target.value))))))}))},value:String(v||"")}}))})),(0,k.jsx)(d.Z,{light:!0}),(0,c.createElement)(h.S,S(S({},C),{},{title:"Record",description:"The most recently synced record.",key:"block-uuid-".concat(_,"-").concat(E)}),(0,k.jsx)(v.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,i.Z)(e,2),t=n[0],r=n[1];return[(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:t},t),(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:String(r)},"".concat(t,"-").concat(r))]}))}))]})}))})})}))]})}},88785:function(e,n,t){t.d(n,{J:function(){return c},U:function(){return u}});var r=t(9518),i=t(44897),l=t(42631),o=t(70515),u=r.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-m7tlau-0"})(["border-radius:","px;border-style:solid;border-width:2px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],l.TR,14*o.iI,o.cd*o.iI,o.cd*o.iI,40*o.iI,(function(e){return!e.selected&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.selected&&"\n border-color: ".concat((e.theme.interactive||i.Z.interactive).linkPrimary,";\n ")})),c=r.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],l.n_,o.tr,(function(e){return"\n background-color: ".concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.absolute&&"\n position: absolute;\n z-index: 2;\n right: 0;\n top: ".concat(2.5*o.iI,"px;\n ")}),(function(e){return e.topPosition&&"\n top: -".concat(42*o.iI,"px;\n ")}))},12717:function(e,n,t){t.d(n,{Z:function(){return Be}});var r=t(21831),i=t(82394),l=t(75582),o=t(12691),u=t.n(o),c=t(82684),s=t(20026),a=t.n(s),d=t(92083),p=t.n(d),h=t(21764),f=t(83455),m=t(34376),v=t(71610),j=t(71180),g=t(90299),x=t(14805),b=t(70652),Z=t(50724),y=t(9134),P=t(39457),O=t(9518),_=t(39867),k=t(55485),w=t(85854),S=t(38276),C=t(75499),I=t(30160),T=t(17488),E=t(12468),M=t(44375),D=t(70515),N=t(55283),A=t(86735),L=t(28598);function H(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function q(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?H(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):H(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var B=function(e){var n=e.blocks,t=e.updateVariables,r=e.variables,l=(0,c.useContext)(O.ThemeContext),o=(0,c.useCallback)((function(e,n){return t((function(){var t=(null==r?void 0:r.__mage_variables)||{},l=(null==t?void 0:t.blocks)||{},o=l[e]||{},u=(null==o?void 0:o.configuration)||{};return q(q({},r),{},{__mage_variables:q(q({},t),{},{blocks:q(q({},l),{},(0,i.Z)({},e,q(q({},o),{},{configuration:q(q({},u),n)})))})})}))}),[t,r]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(w.Z,{children:"dbt runtime settings"}),(0,L.jsx)(S.Z,{mt:D.Mq,children:(0,L.jsx)(C.Z,{columnFlex:[1,null,null,null],columns:[{uuid:"Block"},{uuid:"Flags"},{uuid:"Prefix"},{uuid:"Suffix"}],compact:!0,rows:null==n?void 0:n.map((function(e){var n,t,i,u=e.type,c=e.uuid,s=(0,M.IU)(e).name,a=(0,N.qn)(u,{blockColor:e.color,theme:l}).accent,d=null==r||null===(n=r.__mage_variables)||void 0===n||null===(t=n.blocks)||void 0===t||null===(i=t[c])||void 0===i?void 0:i.configuration,p=d||{},h=p.prefix,f=p.suffix,m=(null==d?void 0:d.flags)||[],v=!(null==m||!m.includes(M.Dy));return[(0,L.jsx)(E.Z,{block:!0,label:(0,L.jsx)(I.ZP,{monospace:!0,small:!0,children:c}),size:null,widthFitContent:!0,children:(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(_.Z,{color:a,size:1.5*D.iI,square:!0}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsxs)(I.ZP,{monospace:!0,small:!0,children:[h&&(0,L.jsx)(I.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:h}),s,f&&(0,L.jsx)(I.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:f})]})]})},"uuid-".concat(c)),(0,L.jsx)(k.ZP,{alignItems:"center",children:(0,L.jsx)(b.Z,{checked:v,label:M.Dy,monospace:!0,onClick:function(){return o(c,{flags:v?(0,A.Od)(m,(function(e){return M.Dy===e})):m.concat(M.Dy)})},small:!0})},"flags-".concat(c)),(0,L.jsx)(T.Z,{compact:!0,monospace:!0,onChange:function(e){return o(c,{prefix:e.target.value})},placeholder:"N+, +",small:!0,value:h,width:10*D.iI},"prefix-".concat(c)),(0,L.jsx)(T.Z,{compact:!0,monospace:!0,onChange:function(e){return o(c,{suffix:e.target.value})},placeholder:"+, +N",small:!0,value:f,width:10*D.iI},"suffix-".concat(c))]}))})})]})},z=t(97196),U=t(15338),F=t(97618),R=t(48670),V=t(26304),W=t(44897),Y=t(95363),X=t(61896),G=["children","large","lineHeight","ordered"];function J(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function K(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?J(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):J(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}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(X.x_,"\n ")}),(function(e){return!e.large&&!e.small&&"\n ".concat(X.i3,"\n ")}),(function(e){return e.small&&"\n ".concat(X.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*D.iI,"px;\n ")}));var te,re=function(e){var n=e.children,t=e.large,r=e.lineHeight,i=e.ordered,l=(0,V.Z)(e,G),o=i?ee:$;return(0,L.jsx)(o,K(K({large:t,lineHeight:r},l),{},{children:c.Children.map(n,(function(e,n){var r;return(0,L.jsx)(ne,K(K({large:t,marginTop:n>=1},l),{},{children:c.cloneElement(e)}),(null===(r=e.props)||void 0===r?void 0:r.key)||n)}))}))},ie=t(37899),le=t(75457),oe=t(30229),ue=t(57653),ce=t(83784),se=t(44085),ae=t(81334),de=t(69650),pe=t(81769),he=t(54193),fe=t(72473),me=t(81728),ve=t(16488),je=t(70320),ge=(te={},(0,i.Z)(te,he.zj.DATE,fe.CalendarDate),(0,i.Z)(te,he.zj.DATETIME,fe.Schedule),(0,i.Z)(te,he.zj.DICTIONARY,fe.DocumentIcon),(0,i.Z)(te,he.zj.FLOAT,fe.NumberWithDecimalHash),(0,i.Z)(te,he.zj.INTEGER,fe.NumberHash),(0,i.Z)(te,he.zj.LIST,fe.TodoList),(0,i.Z)(te,he.zj.STRING,fe.Alphabet),te);var xe=function(e){var n,t,r,i=e.containerRef,o=e.date,u=e.interactions,s=e.pipeline,a=e.pipelineInteraction,d=e.pipelineSchedule,p=e.setVariables,h=e.showSummary,f=e.time,m=e.triggerTypes,v=e.variables,j=(0,c.useMemo)((function(){return(0,A.HK)(u||[],(function(e){return e.uuid}))}),[u]),g=(0,c.useMemo)((function(){return(null==s?void 0:s.blocks)||[]}),[s]),x=(0,c.useMemo)((function(){return(null==a?void 0:a.blocks)||{}}),[a]),b=(0,c.useMemo)((function(){var e=[];null==g||g.length;return null==g||g.map((function(n,t){var r=(n||{uuid:null}).uuid,l=(null==x?void 0:x[r])||[];null==l||l.length;e.push((0,L.jsx)(S.Z,{p:D.cd,children:null==l?void 0:l.map((function(e,n){return(0,L.jsx)(S.Z,{mt:n>=1?2*D.cd:0,children:(0,L.jsx)(pe.Z,{blockInteraction:e,containerRef:i,interaction:null==j?void 0:j[null==e?void 0:e.uuid],setVariables:p,variables:v})},"".concat(null==e?void 0:e.uuid,"-").concat(n))}))}))})),e}),[g,i,j,p,v]),Z=(0,je.qB)(),y=(0,c.useMemo)((function(){return o&&null!=f&&f.hour&&null!=f&&f.minute?(0,ve.XM)(o,f,{convertToUtc:Z,includeSeconds:!0,localTimezone:Z}):null}),[o,Z,f]),P=(0,c.useMemo)((function(){var e=[];null==g||g.length;return null==g||g.map((function(n,t){var r=(n||{uuid:null}).uuid,i=(null==x?void 0:x[r])||[];null==i||i.forEach((function(n,i){var o=null==j?void 0:j[null==n?void 0:n.uuid];Object.entries((null==o?void 0:o.variables)||{}).forEach((function(n,o){var u,c=(0,l.Z)(n,2),s=c[0],a=c[1],d=a.name,p=a.required,h=a.types,f=null==v?void 0:v[s],m=void 0===f,j=p&&m,g=(null==ge?void 0:ge[h[0]])||fe.Alphabet,x=[];void 0!==f?f&&Array.isArray(f||[])?null==f||f.forEach((function(e){x.push(e&&"object"==typeof e?x.push(JSON.stringify(e)):x.push(String(e)))})):f&&"object"==typeof f?Object.entries(f||{}).forEach((function(e){var n=(0,l.Z)(e,2),t=n[0];n[1]&&x.push(String(t))})):x.push(String(f)):x.push(f||""),e.push([(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(g,{default:!0,size:1.5*D.iI}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,monospace:!0,children:s})]},"".concat(r,"-").concat(s,"-label-").concat(d,"-").concat(t,"-").concat(i,"-").concat(o)),(0,L.jsx)(S.Z,{py:D.cd,children:(0,L.jsxs)(I.ZP,{danger:j,monospace:!j,muted:m,children:[m&&!j&&"-",j&&"This is required",!m&&!j&&(null==x||null===(u=x.map((function(e){return String(e)})))||void 0===u?void 0:u.join(", "))]})},"".concat(r,"-").concat(s,"-value-").concat(d,"-").concat(f,"-").concat(t,"-").concat(i,"-").concat(o))])}))}))})),(0,L.jsx)(C.Z,{columnFlex:[null,1],rows:e})}),[g,j,v]);return(0,L.jsxs)(L.Fragment,{children:[!h&&b,h&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(S.Z,{p:D.cd,children:(0,L.jsx)(w.Z,{children:"Settings"})}),(0,L.jsx)(U.Z,{light:!0,short:!0}),(0,L.jsx)(C.Z,{columnFlex:[null,1],rows:[[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.Lightning,{default:!0}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"Trigger type"})]},"trigger_type"),(0,L.jsx)(S.Z,{py:D.cd,children:(0,L.jsx)(I.ZP,{danger:!(null!=d&&d.schedule_type),monospace:!0,children:null!=d&&d.schedule_type?null==m||null===(n=m.find((function(e){return e.uuid===(null==d?void 0:d.schedule_type)})))||void 0===n||null===(t=n.label)||void 0===t?void 0:t.call(n):"This is required"})},"trigger_type_input")],[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.Alphabet,{default:!0}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"Trigger name"})]},"trigger_name"),(0,L.jsx)(S.Z,{py:D.cd,children:(0,L.jsx)(I.ZP,{danger:!(null!=d&&d.name),monospace:!0,children:(null==d?void 0:d.name)||"This is required"})},"trigger_name_input")],[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.Alphabet,{default:!0}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"Trigger description"})]},"trigger_description"),(0,L.jsx)(S.Z,{py:D.cd,children:(0,L.jsx)(I.ZP,{monospace:!0,muted:!(null!=d&&d.description),children:(null==d?void 0:d.description)||"-"})},"trigger_description_input")],[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.Schedule,{default:!0,size:1.5*D.iI}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"Frequency"})]},"frequency"),(0,L.jsx)(S.Z,{py:D.cd,children:(0,L.jsxs)(I.ZP,{danger:!(null!=d&&d.schedule_interval),monospace:!0,muted:!(null!=d&&d.schedule_interval),children:[(null==d?void 0:d.schedule_interval)&&(0,me.vg)((null==d||null===(r=d.schedule_interval)||void 0===r?void 0:r.substring(1))||""),!(null!=d&&d.schedule_interval)&&"This is required"]})},"frequency_input")],[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.CalendarDate,{default:!0,size:1.5*D.iI}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"Start date and time"})]},"start_time"),(0,L.jsx)(S.Z,{py:D.cd,children:(0,L.jsx)(I.ZP,{danger:!y,monospace:!!y,muted:!y,children:y||"This is required"})},"start_time_input")]]}),(0,L.jsx)(S.Z,{p:D.cd,children:(0,L.jsx)(w.Z,{children:"Customize"})}),(0,L.jsx)(U.Z,{light:!0,short:!0}),P]})]})},be=t(35686),Ze=t(77417),ye=t(44425),Pe=t(88785),Oe=t(3917),_e=t(82359),ke=t(28795),we=t(41143),Se={label:function(){return"CUSTOMIZE"},uuid:"customize"},Ce={label:function(){return"SETTINGS"},uuid:"settings"},Ie={label:function(){return"REVIEW"},uuid:"review"},Te=[Ce,Se,Ie],Ee=t(32080),Me=t(22286),De=t(79500),Ne=t(8916),Ae=t(42122),Le=t(72619);function He(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function qe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?He(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):He(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Be=function(e){var n=e.creatingWithLimitation,t=e.errors,o=e.fetchPipelineSchedule,s=e.onCancel,d=e.pipeline,O=e.pipelineSchedule,_=e.setErrors,E=e.variables,M=e.useCreateScheduleMutation,H=(0,Ze.Z)().project,q=(0,c.useRef)(null),V=(0,m.useRouter)(),W=(0,je.qB)(),Y=null==d?void 0:d.uuid,X=(0,c.useMemo)((function(){return null==O?void 0:O.id}),[O]),G=(null==d?void 0:d.type)===ue.qL.STREAMING,J=(0,c.useMemo)((function(){var e;return null==O||null===(e=O.variables)||void 0===e?void 0:e[oe.PN]}),[O]),K=(0,c.useState)(J?"string"==typeof J&&(0,me.Pb)(J)?JSON.stringify(J):J:null),Q=K[0],$=K[1],ee=(0,c.useState)([]),ne=ee[0],te=ee[1],pe=(0,c.useState)(!0),he=pe[0],ge=pe[1],He=(0,c.useState)(!1),Be=He[0],ze=He[1],Ue=(0,c.useState)(!1),Fe=Ue[0],Re=Ue[1],Ve=(0,c.useState)(null),We=Ve[0],Ye=Ve[1],Xe=(0,c.useState)({}),Ge=Xe[0],Je=Xe[1],Ke=(0,c.useState)(null),Qe=Ke[0],$e=Ke[1],en=(0,c.useState)(null),nn=en[0],tn=en[1],rn=(0,c.useState)(!1),ln=rn[0],on=rn[1],un=(0,c.useState)(null),cn=un[0],sn=un[1],an=(0,c.useState)(Te[0].uuid),dn=an[0],pn=an[1],hn=(0,c.useMemo)((function(){var e;return!(null==H||null===(e=H.features)||void 0===e||!e[_e.d.INTERACTIONS])}),[null==H?void 0:H.features]),fn=(0,c.useMemo)((function(){return!X&&n}),[n,X]),mn=be.ZP.pipeline_interactions.detail(hn&&Y,{filter_for_permissions:1}).data,vn=be.ZP.interactions.pipeline_interactions.list(hn&&Y).data,jn=(0,c.useMemo)((function(){return(null==mn?void 0:mn.pipeline_interaction)||{}}),[mn]),gn=(0,c.useMemo)((function(){return(null==vn?void 0:vn.interactions)||[]}),[vn]),xn=(0,c.useMemo)((function(){var e;return hn&&(null===(e=Object.keys((null==jn?void 0:jn.blocks)||{}))||void 0===e?void 0:e.length)>=1}),[hn,jn]),bn=(0,c.useMemo)((function(){return!!X&&xn}),[xn,X]),Zn=(0,c.useMemo)((function(){var e,n={};return null==jn||null===(e=jn.permissions)||void 0===e||e.forEach((function(e){var t=e.triggers;null==t||t.forEach((function(e){var t=e.schedule_interval,r=e.schedule_type;null!=n&&n[r]||(n[r]={}),t&&(n[r][t]=!0)}))})),n}),[jn]),yn=(0,c.useMemo)((function(){return(0,Ne.wx)(E,(function(e){return e.uuid===ce.C}))}),[E]),Pn=(0,c.useMemo)((function(){return Qe||{}}),[Qe]),On=Pn.description,_n=Pn.name,kn=Pn.schedule_interval,wn=Pn.schedule_type,Sn=Pn.settings,Cn=Pn.start_time,In=Pn.tags,Tn=Pn.variables,En=void 0===Tn?{}:Tn;(0,c.useEffect)((function(){!We&&Sn&&Ye(Sn)}),[We,Sn]);var Mn=(0,c.useState)(null),Dn=Mn[0],Nn=Mn[1],An=(0,c.useState)({hour:"00",minute:"00"}),Ln=An[0],Hn=An[1],qn=(0,c.useState)({dayOfMonth:null,dayOfWeek:null,hour:null,minute:null,second:null}),Bn=qn[0],zn=qn[1],Un=be.ZP.event_rules.detail(oe.Xm.EVENT===wn?"aws":null).data,Fn=(0,c.useMemo)((function(){var e;return(null==Un||null===(e=Un.event_rule)||void 0===e?void 0:e.rules)||[]}),[Un]),Rn=(0,c.useMemo)((function(){return(0,A.HK)(Fn,(function(e){return e.name}))}),[Fn]),Vn=(0,f.Db)(be.ZP.pipeline_schedules.useUpdate(X),{onSuccess:function(e){return(0,Le.wD)(e,{callback:function(){null==o||o(),V.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(Y,"/triggers/").concat(X))},onErrorCallback:function(e,n){return _({errors:n,response:e})}})}}),Wn=(0,l.Z)(Vn,2),Yn=Wn[0],Xn=Wn[1].isLoading,Gn=(0,c.useMemo)((function(){return En||{}}),[En]);(0,c.useEffect)((function(){var e=p().utc().format(Oe.TD),n=(0,De.a)(Cn||e,{localTimezone:W});if(Nn(null==n?void 0:n.date),Hn(null==n?void 0:n.time),Cn){var t=p()(Cn).utc();zn({dayOfMonth:t.date(),dayOfWeek:t.day(),hour:t.hours(),minute:t.minutes(),second:t.seconds()})}}),[W,Cn]),(0,c.useEffect)((function(){Gn&&Object.keys(Gn).length>0&&ge(!0)}),[Gn]),(0,c.useEffect)((function(){Je(he?null==yn?void 0:yn.reduce((function(e,n){var t=n.uuid,r=n.value;return qe(qe({},e),{},(0,i.Z)({},t,Gn[t]||r))}),{}):null)}),[yn,he,Gn]);var Jn=(0,c.useMemo)((function(){return(0,ve._U)(kn)}),[kn]),Kn=(0,c.useMemo)((function(){return Jn&&cn?a().toString(cn,{throwExceptionOnParseError:!1}):""}),[cn,Jn]),Qn=(0,c.useMemo)((function(){return null==Kn?void 0:Kn.toLowerCase().includes("error")}),[Kn]);(0,c.useEffect)((function(){if(O&&!Qe){if(te(O.event_matchers),(0,ve._U)(null==O?void 0:O.schedule_interval)){var e=W?(0,ve.lO)(null==O?void 0:O.schedule_interval):null==O?void 0:O.schedule_interval;sn(e),$e(qe(qe({},O),{},{schedule_interval:"custom"}))}else $e(G?qe(qe({},O),{},{schedule_interval:oe.U5.ONCE}):O);var n=O.sla;if(n){ze(!0);var t=(0,ve.gU)(n),r=t.time,i=t.unit;$e((function(e){return qe(qe({},e),{},{slaAmount:r,slaUnit:i})}))}}}),[W,G,O,Qe,kn]);var $n=(0,c.useMemo)((function(){return!(null==We||!We.landing_time_enabled)}),[We]),et=(0,c.useMemo)((function(){return oe.Xm.TIME!==wn||![oe.U5.DAILY,oe.U5.HOURLY,oe.U5.MONTHLY,oe.U5.WEEKLY].includes(kn)}),[kn,wn]),nt=(0,c.useMemo)((function(){return $n&&!et}),[et,$n]),tt=(0,c.useCallback)((function(){var e=qe(qe({},(0,Ae.GL)(Qe,["name","description","schedule_type","tags"])),{},{event_matchers:[],schedule_interval:null,start_time:null,variables:(0,Ne.e7)(qe(qe({},Ge),Q?(0,i.Z)({},oe.PN,Q):{}))});if(nt){var n=Bn.dayOfMonth,t=Bn.dayOfWeek,r=Bn.hour,l=Bn.minute,o=Bn.second,u=p()("2023-07-01").utc();(0,me.HW)(n)&&(u=u.date(n)),(0,me.HW)(t)&&(u=u.day(t)),(0,me.HW)(r)&&(u=u.hours(r)),(0,me.HW)(l)&&(u=u.minutes(l)),(0,me.HW)(o)&&(u=u.seconds(o)),e.schedule_interval=Jn?cn:Qe.schedule_interval,e.start_time=u.toISOString()}else oe.Xm.EVENT===Qe.schedule_type?e.event_matchers=ne:(e.schedule_interval=Jn?W&&!Qn&&cn?(0,ve.lO)(cn,!0):cn:Qe.schedule_interval,e.start_time=Dn&&null!=Ln&&Ln.hour&&null!=Ln&&Ln.minute?(0,ve.XM)(Dn,Ln,{convertToUtc:W,includeSeconds:!0,localTimezone:W}):null);if(Be){var c=null==Qe?void 0:Qe.slaAmount,s=null==Qe?void 0:Qe.slaUnit;if(!c||isNaN(c)||!s)return void h.Am.error("Please enter a valid SLA",{position:h.Am.POSITION.BOTTOM_RIGHT,toastId:"sla_error"});e.sla=(0,ve.vJ)(c,s)}else null!=O&&O.sla&&(e.sla=0);e.settings=We,Yn({pipeline_schedule:qe(qe({},e),{},{variables:nn||(null==e?void 0:e.variables)})})}),[Q,Qn,cn,Dn,W,Be,ne,Jn,Bn,O,Ge,Qe,We,nt,Ln,Yn,nn]),rt=(0,c.useMemo)((function(){if(null==O||!O.runtime_average)return"Trigger doesn’t have enough history to estimate runtime.";var e=Number(null==O?void 0:O.runtime_average),n=Math.max(Math.floor(e/3600),0),t=Math.max(Math.floor((e-60*n*60)/60),0),r=Math.max(Math.floor(e-(60*n*60+60*t)),0),i=[];return n>=1&&i.push((0,me._6)("hour",n,!0)),t>=1&&i.push((0,me._6)("minute",t,!0)),r>=1&&i.push((0,me._6)("second",r,!0)),i.join(" ")}),[O]),it=(0,c.useMemo)((function(){if(!nt)return null;var e=[(0,L.jsxs)(S.Z,{mr:1,children:[(0,L.jsx)(S.Z,{mb:1,children:(0,L.jsx)(I.ZP,{bold:!0,default:!0,small:!0,children:"Minute"})}),(0,L.jsxs)(se.Z,{compact:!0,monospace:!0,onChange:function(e){zn((function(n){return qe(qe({},n),{},{minute:e.target.value})}))},value:(null==Bn?void 0:Bn.minute)||"",children:[(0,L.jsx)("option",{value:""}),(0,A.w6)(60).map((function(e,n){return(0,L.jsx)("option",{value:n,children:n>=10?String(n):"0".concat(n)},n)}))]})]},"Minute"),(0,L.jsxs)(S.Z,{mr:1,children:[(0,L.jsx)(S.Z,{mb:1,children:(0,L.jsx)(I.ZP,{bold:!0,default:!0,small:!0,children:"Second"})}),(0,L.jsxs)(se.Z,{compact:!0,monospace:!0,onChange:function(e){zn((function(n){return qe(qe({},n),{},{second:e.target.value})}))},value:(null==Bn?void 0:Bn.second)||"",children:[(0,L.jsx)("option",{value:""}),(0,A.w6)(60).map((function(e,n){return(0,L.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(kn)&&e.unshift((0,L.jsxs)(S.Z,{mr:1,children:[(0,L.jsx)(S.Z,{mb:1,children:(0,L.jsx)(I.ZP,{bold:!0,default:!0,small:!0,children:"Hour"})}),(0,L.jsxs)(se.Z,{compact:!0,monospace:!0,onChange:function(e){zn((function(n){return qe(qe({},n),{},{hour:e.target.value})}))},value:(null==Bn?void 0:Bn.hour)||"",children:[(0,L.jsx)("option",{value:""}),(0,A.w6)(24).map((function(e,n){return(0,L.jsx)("option",{value:n,children:n>=10?String(n):"0".concat(n)},n)}))]})]},"Hour")),oe.U5.WEEKLY===kn?e.unshift((0,L.jsxs)(S.Z,{mr:1,children:[(0,L.jsx)(S.Z,{mb:1,children:(0,L.jsx)(I.ZP,{bold:!0,default:!0,small:!0,children:"Day of the week"})}),(0,L.jsxs)(se.Z,{compact:!0,monospace:!0,onChange:function(e){zn((function(n){return qe(qe({},n),{},{dayOfWeek:e.target.value})}))},value:(null==Bn?void 0:Bn.dayOfWeek)||"",children:[(0,L.jsx)("option",{value:""}),(0,L.jsx)("option",{value:6,children:"Sunday"}),(0,L.jsx)("option",{value:0,children:"Monday"}),(0,L.jsx)("option",{value:1,children:"Tuesday"}),(0,L.jsx)("option",{value:2,children:"Wednesday"}),(0,L.jsx)("option",{value:3,children:"Thursday"}),(0,L.jsx)("option",{value:4,children:"Friday"}),(0,L.jsx)("option",{value:5,children:"Saturday"})]})]},"Day of the week")):oe.U5.MONTHLY===kn&&e.unshift((0,L.jsxs)(S.Z,{mr:1,children:[(0,L.jsx)(S.Z,{mb:1,children:(0,L.jsx)(I.ZP,{bold:!0,default:!0,small:!0,children:"Day of the month"})}),(0,L.jsxs)(se.Z,{compact:!0,monospace:!0,onChange:function(e){zn((function(n){return qe(qe({},n),{},{dayOfMonth:e.target.value})}))},value:(null==Bn?void 0:Bn.dayOfMonth)||"",children:[(0,L.jsx)("option",{value:""}),(0,A.w6)(31).map((function(e,n){return(0,L.jsx)("option",{value:n+1,children:n+1>=10?String(n+1):"0".concat(n+1)},n+1)}))]})]},"Day of the month")),(0,L.jsx)(k.ZP,{children:e})}),[Bn,kn,nt]),lt=(0,c.useMemo)((function(){return[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.Alphabet,{default:!0}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"Trigger name"})]},"trigger_name"),(0,L.jsx)(T.Z,{monospace:!0,onChange:function(e){e.preventDefault(),$e((function(n){return qe(qe({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:_n},"trigger_name_input")]}),[_n]),ot=(0,c.useMemo)((function(){return[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.Alphabet,{default:!0}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"Trigger description"})]},"trigger_description"),(0,L.jsx)(T.Z,{monospace:!0,onChange:function(e){e.preventDefault(),$e((function(n){return qe(qe({},n),{},{description:e.target.value})}))},placeholder:"Description",value:On},"trigger_description_input")]}),[On]),ut=(0,c.useMemo)((function(){var e=[lt,ot,[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.Schedule,{default:!0,size:1.5*D.iI}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"Frequency"})]},"frequency"),(0,L.jsxs)("div",{children:[(0,L.jsxs)(se.Z,{monospace:!0,onChange:function(e){e.preventDefault();var n=e.target.value;$e((function(e){return qe(qe({},e),{},{schedule_interval:n})}))},placeholder:"Choose the frequency to run",value:kn,children:[Object.values(oe.U5).reduce((function(e,n){var t;return!fn||null!=Zn&&null!==(t=Zn[oe.Xm.TIME])&&void 0!==t&&t[n]?e.concat((0,L.jsx)("option",{value:n,children:n.substring(1)},n)):e}),[]),!fn&&(0,L.jsx)("option",{value:"custom",children:"custom"},"custom")]}),!fn&&(0,L.jsx)(S.Z,{mt:1,p:1,children:(0,L.jsxs)(I.ZP,{muted:!0,small:!0,children:["If you don't see the frequency option you need, select ",(0,L.jsx)(I.ZP,{inline:!0,monospace:!0,small:!0,children:"custom"})," and enter CRON syntax."]})})]},"frequency_input")]];return fn||e.push([(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.Switch,{default:!0,size:1.5*D.iI}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"Enable landing time"})]},"frequency"),(0,L.jsxs)("div",{children:[(0,L.jsx)(de.Z,{checked:$n,disabled:et,onCheck:function(){Ye((function(e){return qe(qe({},e),{},{landing_time_enabled:!$n})}))}}),(0,L.jsxs)(S.Z,{mt:1,p:1,children:[et&&(0,L.jsxs)(I.ZP,{muted:!0,small:!0,children:["In order to enable landing time, the trigger’s frequency must be ",(0,L.jsx)(I.ZP,{inline:!0,monospace:!0,small:!0,children:oe.U5.HOURLY}),", ",(0,L.jsx)(I.ZP,{inline:!0,monospace:!0,small:!0,children:oe.U5.DAILY}),", ",(0,L.jsx)(I.ZP,{inline:!0,monospace:!0,small:!0,children:oe.U5.WEEKLY}),", or ",(0,L.jsx)(I.ZP,{inline:!0,monospace:!0,small:!0,children:oe.U5.MONTHLY}),"."]}),!et&&(0,L.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")]),nt&&e.push([(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.Schedule,{default:!0,size:1.5*D.iI}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"Average runtime"})]},"runtime_average"),(0,L.jsx)(k.ZP,{alignItems:"center",style:{minHeight:"".concat(5.75*D.iI,"px")},children:(0,L.jsx)(I.ZP,{monospace:!0,children:rt})},"runtime_average_value")]),e.push([(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.CalendarDate,{default:!0,size:1.5*D.iI}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsxs)(I.ZP,{default:!0,children:[nt&&"Pipeline complete by",!nt&&"Start date and time"]})]},"start_time"),nt?it:(0,L.jsxs)("div",{style:{minHeight:"".concat(5.75*D.iI,"px")},children:[!ln&&(0,L.jsx)(T.Z,{monospace:!0,onClick:function(){return on((function(e){return!e}))},placeholder:"YYYY-MM-DD HH:MM",value:Dn?(0,ve.XM)(Dn,Ln,{localTimezone:W}):""}),(0,L.jsx)("div",{style:{width:"400px"},children:(0,L.jsx)(Z.Z,{disableEscape:!0,onClickOutside:function(){return on(!1)},open:ln,style:{position:"relative"},children:(0,L.jsx)(x.Z,{localTime:W,selectedDate:Dn,selectedTime:Ln,setSelectedDate:Nn,setSelectedTime:Hn,topPosition:!0})})})]},"start_time_input")]),G&&e.splice(2,2),Jn&&e.splice(2,0,[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.Code,{default:!0,size:1.5*D.iI}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"Cron expression"})]},"cron_expression"),(0,L.jsxs)("div",{children:[(0,L.jsx)(T.Z,{monospace:!0,onChange:function(e){e.preventDefault(),sn(e.target.value)},placeholder:"* * * * *",value:cn}),(0,L.jsxs)(S.Z,{mt:1,p:1,children:[(0,L.jsx)(I.ZP,{monospace:!0,xsmall:!0,children:"[minute] [hour] [day(month)] [month] [day(week)]"}),(0,L.jsx)(S.Z,{mb:"2px"}),cn?(0,L.jsx)(I.ZP,{danger:Qn,muted:!0,small:!0,children:Qn?"Invalid cron expression. Please check the cron syntax.":(0,L.jsxs)(L.Fragment,{children:['"',Kn,'"']})}):null,W&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(I.ZP,{bold:!0,inline:!0,small:!0,warning:!0,children:"Note: "}),(0,L.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,L.jsx)("br",{}),"if the minute and hour values are single values without any special characters, such as the comma, hyphen, or slash.",(0,L.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,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(S.Z,{mb:2,px:D.cd,children:(0,L.jsx)(w.Z,{children:"Settings"})}),(0,L.jsx)(U.Z,{light:!0,short:!0}),(0,L.jsx)(C.Z,{columnFlex:[null,1],rows:e})]})}),[Qn,cn,Dn,W,fn,Jn,G,et,$n,it,Zn,Kn,rt,kn,ln,nt,Ln,lt,ot]),ct=(0,c.useCallback)((function(e,n){te((function(t){return Object.entries(n).forEach((function(n){var r=(0,l.Z)(n,2),i=r[0],o=r[1];t[e][i]=o})),(0,r.Z)(t)}))}),[te]),st=(0,c.useMemo)((function(){return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(S.Z,{mb:D.cd,px:D.cd,children:(0,L.jsx)(w.Z,{children:"Settings"})}),(0,L.jsx)(U.Z,{light:!0,short:!0}),(0,L.jsx)(C.Z,{columnFlex:[null,1],rows:[lt,ot]}),(0,L.jsxs)(S.Z,{mb:2,mt:5,px:D.cd,children:[(0,L.jsx)(w.Z,{children:"Events"}),(0,L.jsxs)(I.ZP,{muted:!0,children:["Add 1 or more event that will trigger this pipeline to run.",(0,L.jsx)("br",{}),"If you add more than 1 event, this pipeline will trigger if any of the events are received."]}),(0,L.jsxs)(S.Z,{mt:D.Mq,children:[(0,L.jsx)(I.ZP,{bold:!0,large:!0,children:"AWS events"}),(0,L.jsxs)(I.ZP,{muted:!0,children:["In order to retrieve all the possible AWS events you can trigger your pipeline from,",(0,L.jsx)("br",{}),"you’ll need to set 3 environment variables (",(0,L.jsx)(R.Z,{href:"https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html",openNewWindow:!0,underline:!0,children:"more info here"}),"):"]}),(0,L.jsx)(S.Z,{mt:1,children:(0,L.jsxs)(re,{monospace:!0,ordered:!0,children:[(0,L.jsx)(I.ZP,{monospace:!0,children:"AWS_REGION_NAME"}),(0,L.jsx)(I.ZP,{monospace:!0,children:"AWS_ACCESS_KEY_ID"}),(0,L.jsx)(I.ZP,{monospace:!0,children:"AWS_SECRET_ACCESS_KEY"})]})})]})]}),(0,L.jsx)(U.Z,{light:!0,short:!0}),(null==ne?void 0:ne.length)>=1&&(0,L.jsx)(C.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.map((function(e,n){var t=e.event_type,r=e.name,i=e.pattern,l=e.id||"".concat(t,"-").concat(r,"-").concat(n,"-").concat(JSON.stringify(i)),o=[];return i&&JSON.stringify(i,null,2).split("\n").forEach((function(e){o.push(" ".concat(e))})),[(0,L.jsx)(se.Z,{monospace:!0,onChange:function(e){return ct(n,{event_type:e.target.value})},placeholder:"Event provider",value:t||"",children:z.S5.map((function(e){var n=e.label,t=e.uuid;return(0,L.jsx)("option",{value:t,children:n()},t)}))},"event-provider-".concat(l)),(0,L.jsx)(se.Z,{monospace:!0,onChange:function(e){var t,r=e.target.value,i=null===(t=Rn[r])||void 0===t?void 0:t.event_pattern;ct(n,{name:r,pattern:i?JSON.parse(i):null})},placeholder:"Event name",value:r,children:Fn.map((function(e){var n=e.name;return(0,L.jsx)("option",{value:n,children:n},n)}))},"event-name-".concat(l)),i&&(0,L.jsx)(y.Z,{language:"json",small:!0,source:o.join("\n")}),(0,L.jsx)(j.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return te((function(e){return(0,A.oM)(e,n)}))},children:(0,L.jsx)(fe.Trash,{default:!0,size:2*D.iI})},"remove_event")]}))}),(0,L.jsx)(S.Z,{p:D.cd,children:(0,L.jsx)(j.ZP,{beforeIcon:(0,L.jsx)(fe.Add,{size:2*D.iI}),onClick:function(){return te((function(e){return e.concat({})}))},outline:!0,children:"Add event matcher"})})]})}),[ne,Fn,Rn,lt,ot,ct]),at=(0,c.useMemo)((function(){var e=(0,ve.M8)(O,Fe);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(S.Z,{mb:D.cd,px:D.cd,children:(0,L.jsx)(w.Z,{children:"Settings"})}),(0,L.jsx)(U.Z,{light:!0,short:!0}),(0,L.jsx)(C.Z,{columnFlex:[null,1],rows:[lt,ot]}),(0,L.jsxs)(S.Z,{mb:2,mt:5,px:D.cd,children:[(0,L.jsx)(w.Z,{children:"Endpoint"}),(0,L.jsxs)(I.ZP,{muted:!0,children:["Make a ",(0,L.jsx)(I.ZP,{bold:!0,inline:!0,monospace:!0,children:"POST"})," request to the following endpoint:"]}),(0,L.jsx)(S.Z,{mt:D.Mq,children:(0,L.jsx)(P.Z,{copiedText:e,linkText:e,monospace:!0,withCopyIcon:!0})}),(0,L.jsx)(S.Z,{mt:D.Mq,children:(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(S.Z,{mr:1,children:(0,L.jsx)(de.Z,{checked:Fe,onCheck:function(){return Re(!Fe)}})}),(0,L.jsx)(I.ZP,{muted:!0,children:"Show alternative endpoint to pass token in headers"})]})})]}),Fe&&(0,L.jsxs)(S.Z,{mb:2,mt:5,px:D.cd,children:[(0,L.jsx)(w.Z,{children:"Headers"}),(0,L.jsx)(I.ZP,{muted:!0,children:"You will need to include the following headers in your request to authenticate with the server."}),(0,L.jsx)(S.Z,{mt:D.Mq,children:(0,L.jsx)(P.Z,{copiedText:"Content-Type: application/json\n Authorization: Bearer ".concat(null==O?void 0:O.token,"\n "),withCopyIcon:!0,children:(0,L.jsx)(y.Z,{language:"json",small:!0,source:"\n Content-Type: application/json\n Authorization: Bearer ".concat(null==O?void 0:O.token,"\n ")})})})]}),(0,L.jsxs)(S.Z,{mb:2,mt:5,px:D.cd,children:[(0,L.jsx)(w.Z,{children:"Payload"}),(0,L.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,L.jsx)(S.Z,{mt:D.Mq,children:(0,L.jsx)(P.Z,{copiedText:'{\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n}\n',withCopyIcon:!0,children:(0,L.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,L.jsxs)(S.Z,{mb:2,mt:5,px:D.cd,children:[(0,L.jsx)(w.Z,{children:"Sample cURL command"}),(0,L.jsx)(S.Z,{mt:D.Mq,children:(0,L.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.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,Re,ot,lt,Fe]),dt=!(wn&&(oe.Xm.TIME!==wn||G&&Dn||!G&&Dn&&kn)&&(oe.Xm.EVENT!==wn||null!=ne&&ne.length&&ne.every((function(e){var n=e.event_type,t=e.name;return n&&t})))),pt=(0,c.useMemo)((function(){var e;return(null==d||null===(e=d.blocks)||void 0===e?void 0:e.filter((function(e){var n=e.type;return ye.tf.DBT===n})))||[]}),[d]),ht=(0,c.useMemo)((function(){return null!=d&&d.blocks?(0,Ee.nG)(d):null}),[d]),ft=(0,c.useMemo)((function(){var e,n;return(0,L.jsxs)(S.Z,{py:D.cd,children:[(0,L.jsxs)(S.Z,{mb:D.HN,px:D.cd,children:[(0,L.jsx)(w.Z,{children:"Run settings"}),(0,L.jsxs)(S.Z,{mt:D.Mq,children:[!G&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(S.Z,{mb:D.Mq,children:[(0,L.jsx)(I.ZP,{children:"Set a timeout for each run of this trigger (optional)"}),(0,L.jsx)(S.Z,{mb:1}),(0,L.jsx)(T.Z,{label:"Timeout (in seconds)",onChange:function(e){return Ye((function(n){return qe(qe({},n),{},{timeout:e.target.value})}))},primary:!0,setContentOnMount:!0,type:"number",value:null==We?void 0:We.timeout})]}),(0,L.jsxs)(S.Z,{mb:D.Mq,children:[(0,L.jsx)(I.ZP,{children:"Status for runs that exceed the timeout (default: failed)"}),(0,L.jsx)(S.Z,{mb:1}),(0,L.jsxs)(se.Z,{fullWidth:!0,monospace:!0,onChange:function(e){e.preventDefault(),Ye((function(n){return qe(qe({},n),{},{timeout_status:e.target.value})}))},placeholder:"Timeout status",value:null==We?void 0:We.timeout_status,children:[(0,L.jsx)("option",{value:we.V.FAILED,children:"Failed"}),(0,L.jsx)("option",{value:we.V.CANCELLED,children:"Cancelled"})]})]})]}),(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(S.Z,{mr:2,children:(0,L.jsx)(de.Z,{checked:Be,onCheck:function(e){ze(e),e||$e((function(e){return qe(qe({},e),{},{slaAmount:0})}))}})}),(0,L.jsx)(I.ZP,{default:!0,monospace:!0,children:"Configure trigger SLA"})]}),Be&&(0,L.jsx)(C.Z,{columnFlex:[null,1],rows:[[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.CalendarDate,{default:!0,size:1.5*D.iI}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"SLA"})]},"sla_detail"),(0,L.jsxs)(k.ZP,{children:[(0,L.jsx)(F.Z,{flex:1,children:(0,L.jsx)(T.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),$e((function(n){return qe(qe({},n),{},{slaAmount:e.target.value})}))},placeholder:"Time",value:null==Qe?void 0:Qe.slaAmount})}),(0,L.jsx)(F.Z,{flex:1,children:(0,L.jsx)(se.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),$e((function(n){return qe(qe({},n),{},{slaUnit:e.target.value})}))},placeholder:"Select time unit",small:!0,value:null==Qe?void 0:Qe.slaUnit,children:Object.keys(ve.tL).map((function(e){return(0,L.jsx)("option",{value:e,children:"".concat(e,"(s)")},e)}))})})]},"sla_input_detail")]]})]}),(0,L.jsx)(S.Z,{mt:D.Mq,children:(0,L.jsx)(k.ZP,{alignItems:"center",children:(0,L.jsx)(b.Z,{checked:null==We?void 0:We.allow_blocks_to_fail,label:"Keep running pipeline even if blocks fail",onClick:function(){return Ye((function(e){return qe(qe({},e),{},{allow_blocks_to_fail:!(null!=We&&We.allow_blocks_to_fail)})}))}})})}),oe.Xm.TIME===wn&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(S.Z,{mt:D.cd,children:(0,L.jsx)(k.ZP,{alignItems:"center",children:(0,L.jsx)(b.Z,{checked:null==We?void 0:We.skip_if_previous_running,label:"Skip run if previous run still in progress",onClick:function(){return Ye((function(e){return qe(qe({},e),{},{skip_if_previous_running:!(null!=We&&We.skip_if_previous_running)})}))}})})}),(0,L.jsx)(S.Z,{mt:D.cd,children:(0,L.jsx)(k.ZP,{alignItems:"center",children:(0,L.jsx)(b.Z,{checked:null==We?void 0:We.create_initial_pipeline_run,label:"Create initial pipeline run if start date is before current execution period",onClick:function(){return Ye((function(e){return qe(qe({},e),{},{create_initial_pipeline_run:!(null!=We&&We.create_initial_pipeline_run)})}))}})})})]})]}),(0,L.jsxs)(S.Z,{mb:D.HN,children:[(0,L.jsxs)(S.Z,{px:D.cd,children:[(0,L.jsx)(w.Z,{children:"Runtime variables"}),(0,Ae.Qr)(yn)&&(0,L.jsxs)(S.Z,{mt:1,children:[(0,L.jsx)(I.ZP,{default:!0,children:"This pipeline has no runtime variables."}),(0,L.jsx)(u(),{as:"/pipelines/".concat(Y,"/edit?sideview=variables"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,L.jsx)(R.Z,{primary:!0,children:"Click here"})})," ",(0,L.jsx)(I.ZP,{default:!0,inline:!0,children:"to add variables to this pipeline."})]})]}),(0,L.jsx)(S.Z,{mt:D.Mq,children:(0,L.jsx)(ie.Z,{enableVariablesOverwrite:!0,originalVariables:null==O?void 0:O.variables,runtimeVariables:Ge,setRuntimeVariables:Je})})]}),ht&&(null===(e=Object.keys(ht||{}))||void 0===e?void 0:e.length)>=1&&(0,L.jsxs)(S.Z,{mb:D.HN,children:[(0,L.jsx)(S.Z,{px:D.cd,children:(0,L.jsx)(w.Z,{children:"Override bookmark values"})}),(0,L.jsx)(v.Z,{bookmarkValues:Q,originalBookmarkValues:null==O||null===(n=O.variables)||void 0===n?void 0:n[oe.PN],pipeline:d,setBookmarkValues:$})]}),(null==pt?void 0:pt.length)>=1&&(0,L.jsx)(S.Z,{mb:D.HN,children:(0,L.jsx)(B,{blocks:pt,updateVariables:Je,variables:qe(qe({},Gn),Ge)})})]})}),[ht,Q,pt,Be,yn,G,d,null==O?void 0:O.variables,Y,Ge,Qe,wn,Gn,$,ze,Je,We]),mt=be.ZP.tags.list().data,vt=(0,c.useMemo)((function(){return((null==mt?void 0:mt.tags)||[]).filter((function(e){var n=e.uuid;return!(null!=In&&In.includes(n))}))}),[mt,In]),jt=(0,c.useMemo)((function(){return(0,ve.ri)(G)}),[G]),gt=(0,c.useMemo)((function(){return(0,L.jsx)(xe,{containerRef:q,date:Dn,interactions:gn,pipeline:d,pipelineInteraction:jn,pipelineSchedule:Qe,setVariables:function(e){$e((function(n){var t=qe({},e((null==n?void 0:n.variables)||{})),r=qe({},t);return null==gn||gn.forEach((function(e){Object.entries((null==e?void 0:e.variables)||{}).forEach((function(e){var n=(0,l.Z)(e,2),t=n[0],i=n[1].types;r&&t in r&&(r[t]=(0,Me.M)(r[t],i))}))})),tn(r),qe(qe({},n),{},{variables:t})}))},showSummary:Ie.uuid===dn,time:Ln,triggerTypes:jt,variables:null==Qe?void 0:Qe.variables})}),[q,Dn,gn,d,jn,Qe,dn,$e,tn,Ln,jt]),xt=(0,c.useMemo)((function(){return oe.fq.ACTIVE===(null==Qe?void 0:Qe.status)}),[Qe]),bt=M?null==M?void 0:M((function(e){return V.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(null==d?void 0:d.uuid,"/triggers/").concat(e))})):[null,{isLoading:!1}],Zt=(0,l.Z)(bt,2),yt=Zt[0],Pt=Zt[1].isLoading,Ot=(0,c.useCallback)((function(){null==yt||yt({pipeline_schedule:qe(qe({},Qe),{},{variables:nn||(null==Qe?void 0:Qe.variables)})})}),[yt,nn,Qe]),_t=(0,c.useMemo)((function(){var e,n;return X?(e=(0,L.jsx)(j.ZP,{linkProps:{as:"/pipelines/".concat(Y,"/triggers/").concat(X),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel and go back"}),n=(0,L.jsx)(j.ZP,{onClick:tt,primary:!0,children:"Save trigger"})):Ce.uuid===dn?(e=(0,L.jsx)(j.ZP,{onClick:function(){return null==s?void 0:s()},secondary:!0,children:"Cancel and go back"}),n=(0,L.jsx)(j.ZP,{afterIcon:(0,L.jsx)(fe.PaginateArrowRight,{}),onClick:function(){return pn(Se.uuid)},primary:!0,children:"Next: Customize"})):Se.uuid===dn?(e=(0,L.jsx)(j.ZP,{beforeIcon:(0,L.jsx)(fe.PaginateArrowLeft,{}),onClick:function(){return pn(Ce.uuid)},secondary:!0,children:"Back: Settings"}),n=(0,L.jsx)(j.ZP,{afterIcon:(0,L.jsx)(fe.PaginateArrowRight,{}),onClick:function(){return pn(Ie.uuid)},primary:!0,children:"Next: Review"})):Ie.uuid===dn&&(e=(0,L.jsx)(j.ZP,{beforeIcon:(0,L.jsx)(fe.PaginateArrowLeft,{}),onClick:function(){return pn(Se.uuid)},secondary:!0,children:"Back: Customize"}),n=(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(j.ZP,{beforeIcon:(0,L.jsx)(fe.Lightning,{}),loading:Pt,onClick:function(){return Ot()},primary:!0,children:X?"Save trigger":"Create trigger"}),!X&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(S.Z,{mr:D.cd}),(0,L.jsx)(de.Z,{checked:xt,compact:!0,onCheck:function(e){return $e((function(n){return qe(qe({},n),{},{status:e(xt)?oe.fq.ACTIVE:oe.fq.INACTIVE})}))}}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:xt,muted:!xt,small:!0,children:"Set trigger to be active immediately after creating"})]})]})),(0,L.jsx)(S.Z,{p:D.cd,children:(0,L.jsxs)(k.ZP,{alignItems:"center",children:[e,e&&n&&(0,L.jsx)(S.Z,{mr:D.cd}),n]})})}),[Ot,Pt,xt,s,tt,X,Y,dn,pn]),kt=(0,c.useMemo)((function(){var e,n,t,r,i,l,o;return void 0===(null==d||null===(e=d.settings)||void 0===e||null===(n=e.triggers)||void 0===n?void 0:n.save_in_code_automatically)?null==H||null===(t=H.pipelines)||void 0===t||null===(r=t.settings)||void 0===r||null===(i=r.triggers)||void 0===i?void 0:i.save_in_code_automatically:null==d||null===(l=d.settings)||void 0===l||null===(o=l.triggers)||void 0===o?void 0:o.save_in_code_automatically}),[d,H]);return(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(le.Z,{after:!fn&&ft,afterHidden:fn,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(Y,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return null==O?void 0:O.name},linkProps:{as:"/pipelines/".concat(Y,"/triggers/").concat(X),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],errors:t,pageName:ke.M.TRIGGERS,pipeline:d,setErrors:_,subheader:fn||bn?(0,L.jsx)(S.Z,{px:D.cd,children:(0,L.jsx)(g.Z,{noPadding:!0,onClickTab:function(e){var n=e.uuid;return pn(n)},regularSizeText:!0,selectedTabUUID:dn,tabs:Te,underlineColor:(0,N.qn)(ye.tf.DATA_LOADER).accent,underlineStyle:!0})}):(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(j.ZP,{disabled:dt,loading:Xn,onClick:tt,outline:!0,primary:!0,children:"Save changes"}),(0,L.jsx)(S.Z,{mr:D.cd}),(0,L.jsx)(j.ZP,{linkProps:{as:"/pipelines/".concat(Y,"/triggers/").concat(X),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel"}),kt&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(S.Z,{mr:D.cd}),(0,L.jsxs)(I.ZP,{default:!0,xsmall:!0,children:["This trigger will automatically be persisted in code.",(0,L.jsx)("br",{}),"To change this behavior, update the ",(0,L.jsx)(u(),{as:"/pipelines/".concat(Y,"/settings"),href:"/pipelines/[pipeline]/settings",passHref:!0,children:(0,L.jsx)(R.Z,{openNewWindow:!0,xsmall:!0,children:"pipeline’s settings"})})," or ",(0,L.jsx)(u(),{as:"/settings/workspace/preferences",href:"/settings/workspace/preferences",passHref:!0,children:(0,L.jsx)(R.Z,{openNewWindow:!0,xsmall:!0,children:"project settings"})}),"."]})]})]}),subheaderNoPadding:fn||bn,title:function(){return null!=O&&O.name?"Edit ".concat(null==O?void 0:O.name):"New trigger"},uuid:"triggers/edit",children:(0,L.jsxs)("div",{ref:q,children:[(fn||bn)&&(0,L.jsx)(U.Z,{light:!0}),(fn||bn)&&(Se.uuid===dn||Ie.uuid===dn)&>,(!fn||Ce.uuid===dn)&&(!bn||Ce.uuid===dn)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(S.Z,{p:D.cd,children:[(0,L.jsxs)(S.Z,{mb:2,children:[(0,L.jsx)(w.Z,{children:"Trigger type"}),(0,L.jsx)(I.ZP,{muted:!0,children:"How would you like this pipeline to be triggered?"})]}),(0,L.jsx)(k.ZP,{children:jt.reduce((function(e,n){var t=n.label,r=n.description,i=n.uuid,l=wn===i,o=wn&&!l;return!fn||null!=Zn&&Zn[i]?e.concat((0,L.jsx)(j.ZP,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){oe.Xm.EVENT!==i||null!=ne&&ne.length||te([{}]),$e((function(e){return qe(qe({},e),{},{schedule_type:i})}))},children:(0,L.jsx)(Pe.U,{selected:l,children:(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(F.Z,{children:(0,L.jsx)("input",{checked:l,type:"radio"})}),(0,L.jsx)(S.Z,{mr:D.cd}),(0,L.jsxs)(F.Z,{alignItems:"flex-start",flexDirection:"column",children:[(0,L.jsx)(w.Z,{bold:!0,default:!l&&!o,level:5,muted:!l&&o,children:t()}),(0,L.jsx)(I.ZP,{default:!l&&!o,leftAligned:!0,muted:o,children:r()})]})]})})},i)):e}),[])})]}),(0,L.jsxs)(S.Z,{mt:D.HN,children:[oe.Xm.TIME===wn&&ut,oe.Xm.EVENT===wn&&st,oe.Xm.API===wn&&at]}),!fn&&(0,L.jsxs)(S.Z,{mt:D.HN,px:D.cd,children:[(0,L.jsxs)(S.Z,{mb:2,children:[(0,L.jsx)(w.Z,{children:"Tags"}),(0,L.jsx)(I.ZP,{muted:!0,children:"Add or remove tags from this trigger."})]}),(0,L.jsx)(ae.Z,{removeTag:function(e){$e((function(n){return qe(qe({},n),{},{tags:null==In?void 0:In.filter((function(n){return n!==e.uuid}))})}))},selectTag:function(e){$e((function(n){return qe(qe({},n),{},{tags:(0,A.$C)(e.uuid,In,(function(n){return n===e.uuid}))})}))},selectedTags:null==In?void 0:In.map((function(e){return{uuid:e}})),tags:vt,uuid:"TagsAutocompleteInputField-trigger-".concat(X)})]})]}),(fn||bn)&&_t]})})})}},37899:function(e,n,t){var r=t(82394),i=t(75582),l=t(82684),o=t(71180),u=t(15338),c=t(97618),s=t(55485),a=t(38276),d=t(75499),p=t(30160),h=t(35576),f=t(17488),m=t(72473),v=t(70515),j=t(42122),g=t(81728),x=t(28598);function b(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?b(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){e.borderless,e.compact;var n=e.enableVariablesOverwrite,t=e.originalVariables,b=e.runtimeVariables,y=(e.setEnableVariablesOverwrite,e.setRuntimeVariables),P=(0,l.useState)({}),O=P[0],_=P[1],k=(0,l.useState)(null),w=k[0],S=k[1],C=(0,l.useState)(null),I=C[0],T=C[1];(0,l.useEffect)((function(){var e=Object.entries(b||{}).reduce((function(e,n){var t=(0,i.Z)(n,2),l=t[0],o=t[1],u=(0,g.Pb)(o)&&"object"==typeof JSON.parse(o)&&!Array.isArray(JSON.parse(o))&&null!==JSON.parse(o);return Z(Z({},e),{},(0,r.Z)({},l,u))}),{});_(e)}),[]);var E=function(e,n){var t={borderless:!0,key:"variable_uuid_input_".concat(e),monospace:!0,onChange:function(n){n.preventDefault(),y((function(t){return Z(Z({},t),{},(0,r.Z)({},e,n.target.value))}))},paddingHorizontal:0,placeholder:"Variable value",value:n};return O[e]?(0,x.jsx)(h.Z,Z(Z({},t),{},{rows:1,value:n})):(0,x.jsx)(f.Z,Z({},t))};return(0,x.jsxs)(x.Fragment,{children:[n&&b&&Object.entries(b).length>0&&(0,x.jsx)(d.Z,{columnFlex:[null,1,null],columns:[{uuid:"Variable"},{uuid:"Value"},{label:function(){return""},uuid:"Action"}],rows:Object.entries(b).map((function(e){var n=(0,i.Z)(e,2),r=n[0],l=n[1];return[(0,x.jsx)(p.ZP,{default:!0,monospace:!0,children:r},"variable_".concat(r)),E(r,l),!(null!=t&&t[r])&&(0,x.jsx)(o.ZP,{iconOnly:!0,onClick:function(){y((function(e){return(0,j.gR)(e,[r])}))},children:(0,x.jsx)(m.Trash,{default:!0})})]}))}),(0,x.jsx)(a.Z,{p:v.cd,children:(0,x.jsxs)(s.ZP,{alignItems:"center",children:[(0,x.jsx)(c.Z,{flex:1,children:(0,x.jsx)(f.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return S(e.target.value)},placeholder:"New variable UUID",value:w||""})}),(0,x.jsx)(a.Z,{mr:1}),(0,x.jsx)(c.Z,{flex:1,children:(0,x.jsx)(f.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return T(e.target.value)},placeholder:"Variable value",value:I||""})}),(0,x.jsx)(a.Z,{mr:1}),(0,x.jsx)(o.ZP,{beforeIcon:(0,x.jsx)(m.Add,{}),disabled:!w||!I,onClick:function(){y((function(e){return Z(Z({},e),{},(0,r.Z)({},w,I))})),S(null),T(null)},children:"Add runtime variable"})]})}),(0,x.jsx)(u.Z,{light:!0})]})}},97196:function(e,n,t){t.d(n,{S5:function(){return l},_P:function(){return o}});var r,i=t(86735);!function(e){e.AWS="aws_event"}(r||(r={}));var l=[{label:function(){return"AWS"},uuid:r.AWS}],o=(0,i.HK)(l,(function(e){return e.uuid}))},83784:function(e,n,t){t.d(n,{C:function(){return r}});var r="global"},14805:function(e,n,t){var r=t(82394),i=t(52396),l=t(55485),o=t(44085),u=t(38276),c=t(30160),s=t(88785),a=t(70515),d=t(86735),p=t(28598);function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.localTime,t=e.selectedDate,r=e.selectedTime,h=e.setSelectedDate,m=e.setSelectedTime,v=e.topPosition;return(0,p.jsxs)(s.J,{absolute:!0,topPosition:v,children:[(0,p.jsx)(i.ZP,{onChange:h,value:t}),(0,p.jsx)(u.Z,{mb:2}),(0,p.jsxs)(l.ZP,{alignItems:"center",children:[(0,p.jsxs)(c.ZP,{default:!0,large:!0,children:["Time (",n?"Local":"UTC","):"]}),(0,p.jsx)(u.Z,{pr:2}),(0,p.jsx)(o.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),m((function(n){return f(f({},n),{},{hour:e.target.value})}))},paddingRight:5*a.iI,placeholder:"HH",value:null==r?void 0:r.hour,children:(0,d.m5)(24,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,p.jsx)("option",{value:e,children:e},"hour_".concat(e))}))}),(0,p.jsx)(u.Z,{px:1,children:(0,p.jsx)(c.ZP,{bold:!0,large:!0,children:":"})}),(0,p.jsx)(o.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),m((function(n){return f(f({},n),{},{minute:e.target.value})}))},paddingRight:5*a.iI,placeholder:"MM",value:null==r?void 0:r.minute,children:(0,d.m5)(60,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,p.jsx)("option",{value:e,children:e},"minute_".concat(e))}))})]})]})}},79500:function(e,n,t){t.d(n,{a:function(){return l}});var r=t(16488),i=t(3917);function l(e,n){var t,l;if(null!=n&&n.localTimezone)t=(0,i.n$)(e),l={hour:(0,i.lJ)(String(t.getHours())),minute:(0,i.lJ)(String(t.getMinutes()))};else{var o=e.split(" ")[1];t=(0,r.eI)(e),l={hour:o.substring(0,2),minute:o.substring(3,5)}}return{date:t,time:l}}},9134:function(e,n,t){var r=t(82684),i=t(20433),l=t(31811),o=t(9518),u=t(65292),c=t(44897),s=t(95363),a=t(70515),d=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,p=e.showLineNumbers,h=e.small,f=e.source,m=e.wrapLines,v=(0,r.useContext)(o.ThemeContext);function j(e){var r=e.value;return(0,d.jsx)(l.Z,{customStyle:{backgroundColor:(v.background||c.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:s.Vp,fontSize:h?12:14,marginBottom:0,marginTop:0,maxWidth:t,paddingBottom:2*a.iI,paddingTop:2*a.iI},language:n,lineNumberStyle:{color:(v.content||c.Z.content).muted},showLineNumbers:p,style:u._4,useInlineStyles:!0,wrapLines:m,children:r})}return(0,d.jsx)(i.D,{components:{code:function(e){var n=e.children;return(0,d.jsx)(j,{value:n})}},children:f})}},32080:function(e,n,t){t.d(n,{nG:function(){return a},sV:function(){return d}});var r=t(75582),i=t(21831),l=t(82394),o=t(44425),u=t(61599);function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e){var n,t={};return null==e||null===(n=e.blocks)||void 0===n||n.forEach((function(e){var n=e.catalog,r=e.type,i=e.uuid;if(o.tf.DATA_LOADER===r&&null!=n&&n.streams){var l,c=null==n||null===(l=n.streams)||void 0===l?void 0:l.filter((function(e){var n=e.replication_method;return u._B.INCREMENTAL===n}));(null==c?void 0:c.length)>=1&&(i in t||(t[i]={block:e,streams:[]}),t[i].streams.push(c))}})),t}function d(e,n,t,l){var u,c=t||{},a=c.addBlockDependenciesToNestedPipelineBlocks,p=void 0!==a&&a,h=c.addPipelineGroupsToBlocks,f=void 0!==h&&h,m=c.addPipelineToBlocks,v=void 0!==m&&m,j=l||{},g=j.downstreamBlocks,x=j.upstreamBlocks,b={};return null==e||null===(u=e.blocks)||void 0===u||u.forEach((function(l){var u,c,a=s({},l);(!g||null!=a&&a.downstream_blocks?!x||null!=a&&a.upstream_blocks||(a.upstream_blocks=x):a.downstream_blocks=g,v&&(a.pipeline=e),f)&&(a.groups=[].concat((0,i.Z)(null!==(u=e.groups)&&void 0!==u?u:[]),(0,i.Z)(null!==(c=a.groups)&&void 0!==c?c:[])));if(o.tf.PIPELINE===a.type){var h,m=n[a.uuid],j={};if(p)null===(h=[["downstreamBlocks",a.downstream_blocks],["upstreamBlocks",a.upstream_blocks]])||void 0===h||h.forEach((function(e){var t=(0,r.Z)(e,2),i=t[0],l=t[1];null==l||l.forEach((function(e){if(e in n){var t,r=n[e];j[i]||(j[i]=[]),null==r||null===(t=r.blocks)||void 0===t||t.forEach((function(e){var n,t;("downstreamBlocks"!==i||null!=e&&null!==(n=e.upstream_blocks)&&void 0!==n&&n.length)&&("upstreamBlocks"!==i||null!=e&&null!==(t=e.downstream_blocks)&&void 0!==t&&t.length)||j[i].push(null==e?void 0:e.uuid)}))}else j[i]||(j[i]=[]),j[i].push(e)}))}));b=s(s({},b),d(m,n,t,j))}b[a.uuid]=a})),b}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3548],{4015:function(e,n,t){t.d(n,{$b:function(){return s},I5:function(){return d},Nk:function(){return l},gI:function(){return a}});var i=t(9518),r=t(44897),o=t(42631),c=t(70515),l=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-h093u4-0"})([""," ",""],(function(e){return!e.width&&"\n width: ".concat(40*c.iI,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")})),d=i.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-h093u4-1"})(["padding:","px;"," ",""],2.5*c.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 ")}),(function(e){return e.lightBackground&&"\n background-color: ".concat((e.theme.background||r.Z.background).panel,"\n ")})),a=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.display)||"flex",";\n padding-bottom: ").concat(1*c.iI+((null==e?void 0:e.paddingVerticalAddition)||0),"px;\n padding-left: ").concat(c.cd*c.iI,"px;\n padding-top: ").concat(1*c.iI+((null==e?void 0:e.paddingVerticalAddition)||0),"px;\n ")}),(function(e){return e.columnFlex&&"\n display: flex;\n flex-direction: column;\n "}),(function(e){return e.lightBackground&&"\n background-color: ".concat((e.theme.background||r.Z.background).panel,"\n ")})),s=i.default.div.withConfig({displayName:"indexstyle__FooterStyle",componentId:"sc-h093u4-3"})(["padding:","px ","px;"," ",""],2.5*c.iI,2*c.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 ")}),(function(e){return e.topBorder&&"\n border-top: 1px solid ".concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n ")}))},55729:function(e,n,t){t.d(n,{Z:function(){return M}});var i=t(82394),r=t(75582),o=t(82684),c=t(83455),l=t(71180),d=t(15338),a=t(97618),s=t(55485),u=t(85854),p=t(48670),h=t(65956),m=t(82359),g=t(88543),f=t(38276),v=t(30160),x=t(17488),j=t(69650),b=t(12468),Z=t(35686),_=t(77417),y=t(9518),k=t(44897),P=t(42631),w=t(70515),O=y.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1b0w59t-0"})(["border-radius:","px;padding:","px;",""],P.n_,w.cd*w.iI,(function(e){return"\n background-color: ".concat((e.theme.background||k.Z.background).codeArea,";\n ")})),C=t(72473),I=t(72191),N=t(70320),S=t(81728),B=t(42122),E=t(72619),A=t(23780),D=t(28598);function L(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 H(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?L(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var M=function(e){var n,t,y,k=e.cancelButtonText,P=e.contained,L=e.header,M=e.onCancel,F=e.onSaveSuccess,V=e.rootProject,T=(0,A.VI)(null,{},[],{uuid:"settings/workspace/preferences"}),U=(0,r.Z)(T,1)[0],R=(0,o.useState)(null),W=R[0],q=R[1],z=(0,o.useState)(!1),G=z[0],K=z[1],Y=(0,_.Z)(),$=Y.fetchProjects,J=Y.project,Q=Y.projectPlatformActivated,X=Y.rootProject,ee=(0,o.useMemo)((function(){return V?X:J}),[J,X,V]),ne=ee||{},te=ne.name,ie=ne.openai_api_key,re=ne.project_uuid,oe=(0,o.useMemo)((function(){return"demo.mage.ai"===window.location.hostname}),[]);(0,o.useEffect)((function(){W||q(ee)}),[ee,W]);var ce=(0,c.Db)(Z.ZP.projects.useUpdate(te),{onSuccess:function(e){return(0,E.wD)(e,{callback:function(e){var n,t=e.project;$(),q(t),K(!1),(0,N.hY)(null==t||null===(n=t.features)||void 0===n?void 0:n[m.d.LOCAL_TIMEZONE]),F&&(null==F||F(t))},onErrorCallback:function(e,n){return U({errors:n,response:e})}})}}),le=(0,r.Z)(ce,2),de=le[0],ae=le[1].isLoading,se=(0,o.useCallback)((function(e){return de({project:H(H({},e),{},{root_project:V})})}),[V,de]),ue=(0,D.jsxs)(D.Fragment,{children:[L,(0,D.jsxs)(h.Z,{noPadding:!0,children:[(0,D.jsxs)(f.Z,{p:w.cd,children:[(0,D.jsx)(f.Z,{mb:1,children:(0,D.jsx)(u.Z,{level:5,children:"Project name"})}),(0,D.jsx)(v.ZP,{default:!0,monospace:!0,children:te})]}),(0,D.jsx)(d.Z,{light:!0}),(0,D.jsxs)(f.Z,{p:w.cd,children:[(0,D.jsx)(f.Z,{mb:1,children:(0,D.jsx)(u.Z,{level:5,children:"Project UUID"})}),(0,D.jsx)(v.ZP,{default:!!re,monospace:!0,muted:!re,children:re||"Not required"})]}),(0,D.jsx)(d.Z,{light:!0}),(0,D.jsx)(f.Z,{p:w.cd,children:(0,D.jsxs)(s.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,D.jsxs)(a.Z,{flexDirection:"column",children:[(0,D.jsx)(f.Z,{mb:1,children:(0,D.jsx)(u.Z,{level:5,children:"Help improve Mage"})}),(0,D.jsxs)(v.ZP,{default:!0,children:["Please contribute usage statistics to help improve the developer experience for you and everyone in the community. Learn more ",(0,D.jsx)(p.Z,{href:"https://docs.mage.ai/contributing/statistics/overview",openNewWindow:!0,children:"here"}),"."]})]}),(0,D.jsx)(f.Z,{mr:w.cd}),(0,D.jsx)(j.Z,{checked:null==W?void 0:W.help_improve_mage,compact:!0,id:"help_improve_mage_toggle",onCheck:function(){return q((function(e){return H(H({},e),{},{help_improve_mage:!(null!=W&&W.help_improve_mage)})}))}})]})})]}),(0,D.jsx)(f.Z,{mt:w.HN}),(0,D.jsx)(g.Z,{description:"Global settings that are applied to all pipelines in this project.",title:"Pipeline settings",children:(0,D.jsx)(g.S,{description:"Every time a trigger is created or updated in this pipeline, automatically persist it in code.",title:"Save triggers in code automatically",toggleSwitch:{checked:!(null==W||null===(n=W.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,c,l;return H(H({},n),{},{pipelines:H(H({},null==n?void 0:n.pipelines),{},{settings:H(H({},null==n||null===(t=n.pipelines)||void 0===t?void 0:t.settings),{},{triggers:H(H({},null==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||null===(o=n.pipelines)||void 0===o||null===(c=o.settings)||void 0===c||null===(l=c.triggers)||void 0===l?void 0:l.save_in_code_automatically)})})})})}))}}})}),(0,D.jsx)(f.Z,{mt:w.HN}),(0,D.jsx)(h.Z,{noPadding:!0,overflowVisible:!0,children:(0,D.jsxs)(f.Z,{p:w.cd,children:[(0,D.jsx)(f.Z,{mb:1,children:(0,D.jsxs)(u.Z,{level:5,children:["Features ",(0,D.jsx)(p.Z,{bold:!0,href:"https://docs.mage.ai/development/project/features",largeSm:!0,openNewWindow:!0,children:"(docs)"})]})}),Object.entries((0,B.gR)(null==W?void 0:W.features,[m.d.CODE_BLOCK_V2])||{}).map((function(e,n){var t=(0,r.Z)(e,2),o=t[0],c=t[1],l=Q&&!V&&(null==ee?void 0:ee.features_override)&&o in(null==ee?void 0:ee.features_override);return(0,D.jsx)(f.Z,{mt:0===n?0:1,children:(0,D.jsxs)(s.ZP,{alignItems:"center",children:[(0,D.jsxs)(a.Z,{flex:1,children:[(0,D.jsx)(j.Z,{disabled:l,checked:!!c,compact:!0,onCheck:function(){return q((function(e){return H(H({},e),{},{features:H(H({},null==W?void 0:W.features),{},(0,i.Z)({},o,!c))})}))}}),(0,D.jsx)(f.Z,{mr:w.cd}),(0,D.jsxs)(a.Z,{children:[(0,D.jsx)(v.ZP,{default:!c,monospace:!0,children:(0,S.vg)(o)}),o===m.d.LOCAL_TIMEZONE&&(0,D.jsx)(f.Z,{ml:1,children:(0,D.jsx)(b.Z,H({},N.EB))})]})]}),l&&(0,D.jsx)(v.ZP,{monospace:!0,muted:!0,small:!0,children:"overridden"})]})},o)}))]})}),(0,D.jsx)(f.Z,{mt:w.HN}),(0,D.jsx)(h.Z,{noPadding:!0,children:(0,D.jsxs)(f.Z,{p:w.cd,children:[(0,D.jsx)(f.Z,{mb:1,children:(0,D.jsx)(u.Z,{level:5,children:"OpenAI"})}),ie&&!G?(0,D.jsxs)(s.ZP,H(H({},s.A0),{},{children:[(0,D.jsx)(v.ZP,{default:!0,monospace:!0,children:"API key: ********"}),(0,D.jsx)(l.ZP,{iconOnly:!0,onClick:function(){return K(!0)},secondary:!0,title:"Edit",children:(0,D.jsx)(C.Edit,{size:I.bL})})]})):(0,D.jsx)(x.Z,{disabled:oe,label:oe?"Entering API key is disabled on demo":"API key",monospace:!0,onChange:function(e){return q((function(n){return H(H({},n),{},{openai_api_key:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null==W?void 0:W.openai_api_key)||""})]})}),(0,D.jsx)(f.Z,{mt:w.HN}),(0,D.jsxs)(s.ZP,{alignItems:"center",children:[(0,D.jsx)(l.ZP,{id:"save-project-settings",loading:ae,onClick:function(){var e={features:null==W?void 0:W.features,help_improve_mage:null==W?void 0:W.help_improve_mage,openai_api_key:null==W?void 0:W.openai_api_key,pipelines:null==W?void 0:W.pipelines};!0===(null==ee?void 0:ee.help_improve_mage)&&!1===(null==W?void 0:W.help_improve_mage)&&(e.deny_improve_mage=!0),se(e)},primary:!0,children:"Save project settings"}),M&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(f.Z,{mr:w.cd}),(0,D.jsx)(l.ZP,{onClick:M,secondary:!0,children:k||"Cancel"})]})]})]});return P?(0,D.jsx)(O,{children:ue}):ue}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3782],{94629:function(e,n,r){r.d(n,{Z:function(){return k}});var t=r(82394),i=r(21831),o=r(82684),s=r(50724),u=r(82555),c=r(97618),l=r(70613),a=r(31557),d=r(68899),f=r(28598);function p(e,n){var r=e.children,t=e.noPadding;return(0,f.jsx)(d.HS,{noPadding:t,ref:n,children:r})}var h=o.forwardRef(p),b=r(62547),g=r(82571),O=r(77417),v=r(46684),m=r(75375);function y(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function P(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?y(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function j(e,n){e.addProjectBreadcrumbToCustomBreadcrumbs;var r=e.after,t=e.afterHeader,o=e.afterHidden,p=e.afterWidth,y=e.afterWidthOverride,j=e.appendBreadcrumbs,k=e.before,I=e.beforeHeader,S=e.beforeWidth,w=e.breadcrumbs,Z=e.children,x=e.contained,M=e.errors,A=e.headerMenuItems,E=e.headerOffset,R=e.hideAfterCompletely,B=e.mainContainerHeader,N=e.navigationItems,C=e.setAfterHidden,D=e.setAfterWidth,H=e.setBeforeWidth,T=e.setErrors,_=e.subheaderChildren,L=e.subheaderNoPadding,W=e.title,G=e.uuid,q=(0,m.Z)(G,{beforeResizeOffset:m.H,setWidthAfter:D,setWidthBefore:H,widthAfter:p,widthBefore:S,widthOverrideAfter:y}),F=q.mainContainerRef,z=q.mousedownActiveAfter,K=q.mousedownActiveBefore,U=q.setMousedownActiveAfter,Y=q.setMousedownActiveBefore,V=q.setWidthAfter,J=q.setWidthBefore,Q=q.widthAfter,X=q.widthBefore,$=(0,O.Z)().project,ee=[];return w&&ee.push.apply(ee,(0,i.Z)(w)),null!=w&&w.length&&!j||!$||null!=w&&w.length||ee.unshift({bold:!j,label:function(){return W}}),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(l.Z,{title:W}),(0,f.jsx)(a.Z,{breadcrumbs:ee,menuItems:A}),(0,f.jsxs)(d.Nk,{ref:n,children:[0!==(null==N?void 0:N.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(g.Z,{navigationItems:N,showMore:!0})}),(0,f.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(b.Z,{after:r,afterHeader:t,afterHeightOffset:v.Mz,afterHidden:o,afterMousedownActive:z,afterWidth:Q,before:k,beforeHeader:I,beforeHeightOffset:v.Mz,beforeMousedownActive:K,beforeWidth:k?X:d.k1,contained:x,headerOffset:E,hideAfterCompletely:!r||R,leftOffset:k?d.k1:null,mainContainerHeader:B,mainContainerRef:F,setAfterHidden:C,setAfterMousedownActive:U,setAfterWidth:V,setBeforeMousedownActive:Y,setBeforeWidth:J,children:[_&&(0,f.jsx)(h,{noPadding:L,children:_}),Z]})})]}),M&&(0,f.jsx)(s.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null==T?void 0:T(null)},children:(0,f.jsx)(u.Z,P(P({},M),{},{onClose:function(){return null==T?void 0:T(null)}}))})]})}var k=o.forwardRef(j)},28795:function(e,n,r){var t;r.d(n,{B:function(){return i},M:function(){return t}}),function(e){e.BACKFILLS="backfills",e.BLOCK_RUNS="block_runs",e.DASHBOARD="dashboard",e.EDIT="edit",e.MONITOR="monitor",e.PIPELINE_LOGS="pipeline_logs",e.PIPELINE_RUNS="pipeline_runs",e.RUNS="runs",e.SETTINGS="settings",e.SYNCS="syncs",e.TRIGGERS="triggers"}(t||(t={}));var i="cancel_all_running_pipeline_runs"},75457:function(e,n,r){r.d(n,{Z:function(){return x}});var t=r(82394),i=r(21831),o=r(82684),s=r(34376),u=r(50724),c=r(94629),l=r(15338),a=r(82555),d=r(55485),f=r(85854),p=r(38276),h=r(35686),b=r(9518),g=r(44897),O=r(42631),v=r(70515),m=b.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],O.n_,3*v.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||g.Z.shadow).small,";\n ")}),(function(e){return e.background&&"\n background: ".concat(e.background,";\n ")}),(function(e){return e.backgroundImage&&'\n background-image: url("'.concat(e.backgroundImage,'");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n ')})),y=r(46684),P=r(85010),j=r(72619),k=r(19183),I=r(28598);function S(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function w(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?S(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function Z(e,n){var r=e.after,t=e.afterHidden,b=e.afterWidth,g=e.before,O=e.beforeWidth,S=e.breadcrumbs,Z=e.buildSidekick,x=e.children,M=e.errors,A=e.headline,E=e.pageName,R=e.pipeline,B=e.setErrors,N=e.subheader,C=e.subheaderBackground,D=e.subheaderBackgroundImage,H=e.subheaderButton,T=e.subheaderNoPadding,_=e.subheaderText,L=e.title,W=e.uuid,G=(0,k.i)().height,q=(0,s.useRouter)().query.pipeline,F=null==R?void 0:R.uuid,z=h.ZP.pipelines.detail(F,{includes_outputs:!1},{revalidateOnFocus:!1}).data,K=null==z?void 0:z.pipeline;(0,o.useEffect)((function(){(0,j.bB)(z,B)}),[z,B]);var U=b||(r||Z?50*v.iI:null),Y=(0,o.useCallback)((function(e){var n=e.width;return r||(Z?Z({height:G,heightOffset:y.Mz,pipeline:K,width:n||U}):null)}),[r,U,Z,G,K]),V=(0,o.useMemo)((function(){var e=[];return K?(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),S?(e.push({label:function(){return K.uuid},linkProps:{as:"/pipelines/".concat(F,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,i.Z)(S)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return K.name}})):null!=z&&z.error&&e.push({bold:!0,danger:!0,label:function(){return"Error loading pipeline"}}),e}),[S,null==z?void 0:z.error,K,F]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(c.Z,{after:r||Z?Y:null,afterHidden:t,afterWidth:U,before:g,beforeWidth:O,breadcrumbs:V,navigationItems:(0,P.H)(E,K,q),ref:n,subheaderChildren:void 0!==N&&N,subheaderNoPadding:T,title:K?L?L(K):K.name:null,uuid:W,children:[(H||_)&&(0,I.jsx)(p.Z,{mb:v.Mq,mt:v.cd,mx:v.cd,children:(0,I.jsx)(m,{background:C,backgroundImage:D,children:(0,I.jsxs)(d.ZP,{alignItems:"center",children:[H,_&&(0,I.jsx)(p.Z,{ml:3}),_]})})}),A&&(0,I.jsx)(p.Z,{p:v.cd,children:(0,I.jsxs)(p.Z,{mt:v.cd,px:v.cd,children:[(0,I.jsx)(f.Z,{level:5,children:A}),(0,I.jsx)(l.Z,{light:!0,mt:v.cd,short:!0})]})}),x]}),M&&(0,I.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null==B?void 0:B(null)},children:(0,I.jsx)(a.Z,w(w({},M),{},{onClose:function(){return null==B?void 0:B(null)}}))})]})}var x=o.forwardRef(Z)},85010:function(e,n,r){r.d(n,{H:function(){return s}});var t=r(57653),i=r(72473),o=r(28795);function s(e,n,r){var s=(n||{}).uuid||r,u=[{Icon:i.Lightning,id:o.M.TRIGGERS,isSelected:function(){return o.M.TRIGGERS===e},label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(s,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{Icon:i.Schedule,id:o.M.RUNS,isSelected:function(){return o.M.RUNS===e},label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(s,"/runs"),href:"/pipelines/[pipeline]/runs"}},{Icon:i.Logs,id:o.M.PIPELINE_LOGS,isSelected:function(){return o.M.PIPELINE_LOGS===e},label:function(){return"Logs"},linkProps:{as:"/pipelines/".concat(s,"/logs"),href:"/pipelines/[pipeline]/logs"}},{Icon:i.Monitor,id:o.M.MONITOR,isSelected:function(){return o.M.MONITOR===e},label:function(){return"Monitor"},linkProps:{as:"/pipelines/".concat(s,"/monitors"),href:"/pipelines/[pipeline]/monitors"}}];return t.qL.PYTHON===(null==n?void 0:n.type)&&u.splice(2,0,{Icon:i.BackfillV2,id:o.M.BACKFILLS,isSelected:function(){return o.M.BACKFILLS===e},label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(s,"/backfills"),href:"/pipelines/[pipeline]/backfills"}}),t.qL.INTEGRATION===(null==n?void 0:n.type)&&u.unshift({Icon:i.PipeIcon,id:o.M.SYNCS,isSelected:function(){return o.M.SYNCS===e},label:function(){return"Syncs"},linkProps:{as:"/pipelines/".concat(s,"/syncs"),href:"/pipelines/[pipeline]/syncs"}}),u.unshift({Icon:i.Code,disabled:!s,id:o.M.EDIT,isSelected:function(){return o.M.EDIT===e},label:function(){return"Edit pipeline"},linkProps:{as:"/pipelines/".concat(s,"/edit"),href:"/pipelines/[pipeline]/edit"}}),u.push({Icon:i.SettingsWithKnobs,id:o.M.SETTINGS,isSelected:function(){return o.M.SETTINGS===e},label:function(){return"Pipeline settings"},linkProps:{as:"/pipelines/".concat(s,"/settings"),href:"/pipelines/[pipeline]/settings"}}),u.unshift({Icon:i.NavDashboard,id:o.M.DASHBOARD,isSelected:function(){return o.M.DASHBOARD===e},label:function(){return"Dashboard"},linkProps:{as:"/pipelines/".concat(s,"/dashboard"),href:"/pipelines/[pipeline]/dashboard"}}),u}},93808:function(e,n,r){r.d(n,{Z:function(){return Z}});var t=r(77837),i=r(26304),o=r(62243),s=r(29385),u=r(80022),c=r(13692),l=r(93189),a=r(15544),d=r(82394),f=r(38860),p=r.n(f),h=r(82684),b=r(56663),g=r.n(b),O=r(40761),v=r(34661),m=r(36105),y=r(50178),P=r(69419),j=r(28598),k=["auth"];function I(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function S(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?I(Object(r),!0).forEach((function(n){(0,d.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function w(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,t=(0,a.Z)(e);if(n){var i=(0,a.Z)(this).constructor;r=Reflect.construct(t,arguments,i)}else r=t.apply(this,arguments);return(0,l.Z)(this,r)}}function Z(e){return function(n){(0,c.Z)(a,n);var r,l=w(a);function a(){var e;(0,o.Z)(this,a);for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return e=l.call.apply(l,[this].concat(r)),(0,d.Z)((0,u.Z)(e),"state",{auth:new O.Z(e.props.token)}),e}return(0,s.Z)(a,[{key:"componentDidMount",value:function(){this.setState({auth:new O.Z(this.props.token)})}},{key:"render",value:function(){var n=this.props,r=(n.auth,(0,i.Z)(n,k));return(0,j.jsx)(e,S({auth:this.state.auth},r))}}],[{key:"getInitialProps",value:(r=(0,t.Z)(p().mark((function n(r){var t,i,o,s,u,c,l,a,d;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t=g()(r),i=(0,y.ex)(r),o=i.id,s=t[v.Mv],u=t[m.qt],c=new O.Z(s),l=S(S({},r),{},{auth:c,currentGroupId:o,theme:u}),(0,y.YB)(r)&&c.isExpired&&(console.log("OAuth token has expired."),a=S(S({},r.query),{},{redirect_url:r.asPath}),(0,P.nL)("/sign-in?".concat((0,P.uM)(a)),r.res)),!e.getInitialProps){n.next=12;break}return n.next=10,e.getInitialProps(l);case 10:return d=n.sent,n.abrupt("return",S(S({},d),{},{auth:c,currentGroupId:o,theme:u}));case 12:return n.abrupt("return",l);case 13:case"end":return n.stop()}}),n)}))),function(e){return r.apply(this,arguments)})}]),a}(h.Component)}}}]);
|