mage-ai 0.9.74__py3-none-any.whl → 0.9.76__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.
Potentially problematic release.
This version of mage-ai might be problematic. Click here for more details.
- 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/PipelineScheduleResource.py +11 -3
- 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/data_integrations/destinations/constants.py +3 -0
- mage_ai/data_integrations/sources/constants.py +2 -0
- mage_ai/data_preparation/models/block/__init__.py +4 -5
- 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/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 +2 -1
- mage_ai/data_preparation/models/pipeline.py +5 -0
- 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 +5 -0
- mage_ai/io/mssql.py +5 -0
- mage_ai/io/mysql.py +6 -1
- mage_ai/io/oracledb.py +2 -4
- mage_ai/io/postgres.py +38 -19
- 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/models/schedules.py +2 -5
- mage_ai/orchestration/db/models/secrets.py +11 -1
- mage_ai/orchestration/metrics/pipeline_run.py +1 -1
- mage_ai/orchestration/pipeline_scheduler_original.py +4 -5
- mage_ai/orchestration/pipeline_scheduler_project_platform.py +4 -5
- mage_ai/orchestration/utils/distributed_lock.py +8 -1
- 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/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-782dd4a6b13e1c42.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-432da20df91511fb.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-e3d7fdfeb7f806f7.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/_next/static/qR0jauUABqPaFMjUsYeoG/_buildManifest.js +1 -0
- 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/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-ee5e328aaf51c698.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-432da20df91511fb.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-e3d7fdfeb7f806f7.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/_next/static/iCySon3_GCldnbC5U7C-s/_buildManifest.js +1 -0
- 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/server.py +9 -0
- mage_ai/services/teams/config.py +13 -2
- mage_ai/services/teams/teams.py +13 -11
- mage_ai/settings/server.py +2 -0
- mage_ai/shared/constants.py +3 -1
- mage_ai/shared/enum.py +2 -5
- mage_ai/shared/environments.py +27 -3
- mage_ai/streaming/sinks/elasticsearch.py +15 -5
- 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/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/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 +27 -0
- mage_ai/tests/orchestration/notification/test_config.py +3 -3
- mage_ai/usage_statistics/logger.py +99 -15
- mage_ai-0.9.76.dist-info/METADATA +393 -0
- {mage_ai-0.9.74.dist-info → mage_ai-0.9.76.dist-info}/RECORD +331 -322
- {mage_ai-0.9.74.dist-info → mage_ai-0.9.76.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/chunks/pages/{_app-5bdff745074fb350.js.LICENSE.txt → _app-782dd4a6b13e1c42.js.LICENSE.txt} +0 -0
- /mage_ai/server/frontend_dist/_next/static/{pLWT6Sqd09xYpufCVIqnz → qR0jauUABqPaFMjUsYeoG}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{_app-90de19bc03f1484b.js.LICENSE.txt → _app-ee5e328aaf51c698.js.LICENSE.txt} +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{JQewSAObpbhO0wrdAM6Ng → iCySon3_GCldnbC5U7C-s}/_ssgManifest.js +0 -0
- {mage_ai-0.9.74.dist-info → mage_ai-0.9.76.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.74.dist-info → mage_ai-0.9.76.dist-info/licenses}/LICENSE +0 -0
- {mage_ai-0.9.74.dist-info → mage_ai-0.9.76.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1598],{94629:function(e,r,t){t.d(r,{Z:function(){return j}});var n=t(82394),i=t(21831),o=t(82684),s=t(50724),u=t(82555),a=t(97618),c=t(70613),f=t(
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1598],{94629:function(e,r,t){t.d(r,{Z:function(){return j}});var n=t(82394),i=t(21831),o=t(82684),s=t(50724),u=t(82555),a=t(97618),c=t(70613),f=t(92272),d=t(68899),l=t(28598);function h(e,r){var t=e.children,n=e.noPadding;return(0,l.jsx)(d.HS,{noPadding:n,ref:r,children:t})}var p=o.forwardRef(h),b=t(62547),v=t(82571),O=t(77417),m=t(46684),w=t(75375);function g(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function P(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?g(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function y(e,r){e.addProjectBreadcrumbToCustomBreadcrumbs;var t=e.after,n=e.afterHeader,o=e.afterHidden,h=e.afterWidth,g=e.afterWidthOverride,y=e.appendBreadcrumbs,j=e.before,S=e.beforeHeader,E=e.beforeWidth,I=e.breadcrumbs,k=e.children,Z=e.contained,R=e.errors,A=e.headerMenuItems,W=e.headerOffset,x=e.hideAfterCompletely,C=e.mainContainerHeader,B=e.navigationItems,H=e.setAfterHidden,M=e.setAfterWidth,N=e.setBeforeWidth,_=e.setErrors,D=e.subheaderChildren,F=e.subheaderNoPadding,L=e.title,U=e.uuid,T=(0,w.Z)(U,{beforeResizeOffset:w.H,setWidthAfter:M,setWidthBefore:N,widthAfter:h,widthBefore:E,widthOverrideAfter:g}),V=T.mainContainerRef,G=T.mousedownActiveAfter,z=T.mousedownActiveBefore,K=T.setMousedownActiveAfter,q=T.setMousedownActiveBefore,Y=T.setWidthAfter,J=T.setWidthBefore,Q=T.widthAfter,X=T.widthBefore,$=(0,O.Z)().project,ee=[];return I&&ee.push.apply(ee,(0,i.Z)(I)),null!=I&&I.length&&!y||!$||null!=I&&I.length||ee.unshift({bold:!y,label:function(){return L}}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.Z,{title:L}),(0,l.jsx)(f.Z,{breadcrumbs:ee,menuItems:A}),(0,l.jsxs)(d.Nk,{ref:r,children:[0!==(null==B?void 0:B.length)&&(0,l.jsx)(d.lm,{showMore:!0,children:(0,l.jsx)(v.Z,{navigationItems:B,showMore:!0})}),(0,l.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,l.jsxs)(b.Z,{after:t,afterHeader:n,afterHeightOffset:m.Mz,afterHidden:o,afterMousedownActive:G,afterWidth:Q,before:j,beforeHeader:S,beforeHeightOffset:m.Mz,beforeMousedownActive:z,beforeWidth:j?X:d.k1,contained:Z,headerOffset:W,hideAfterCompletely:!t||x,leftOffset:j?d.k1:null,mainContainerHeader:C,mainContainerRef:V,setAfterHidden:H,setAfterMousedownActive:K,setAfterWidth:Y,setBeforeMousedownActive:q,setBeforeWidth:J,children:[D&&(0,l.jsx)(p,{noPadding:F,children:D}),k]})})]}),R&&(0,l.jsx)(s.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null==_?void 0:_(null)},children:(0,l.jsx)(u.Z,P(P({},R),{},{onClose:function(){return null==_?void 0:_(null)}}))})]})}var j=o.forwardRef(y)},93808:function(e,r,t){t.d(r,{Z:function(){return k}});var n=t(77837),i=t(26304),o=t(62243),s=t(29385),u=t(80022),a=t(13692),c=t(93189),f=t(15544),d=t(82394),l=t(38860),h=t.n(l),p=t(82684),b=t(56663),v=t.n(b),O=t(40761),m=t(34661),w=t(36105),g=t(50178),P=t(69419),y=t(28598),j=["auth"];function S(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function E(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?S(Object(t),!0).forEach((function(r){(0,d.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function I(e){var r=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 t,n=(0,f.Z)(e);if(r){var i=(0,f.Z)(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return(0,c.Z)(this,t)}}function k(e){return function(r){(0,a.Z)(f,r);var t,c=I(f);function f(){var e;(0,o.Z)(this,f);for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return e=c.call.apply(c,[this].concat(t)),(0,d.Z)((0,u.Z)(e),"state",{auth:new O.Z(e.props.token)}),e}return(0,s.Z)(f,[{key:"componentDidMount",value:function(){this.setState({auth:new O.Z(this.props.token)})}},{key:"render",value:function(){var r=this.props,t=(r.auth,(0,i.Z)(r,j));return(0,y.jsx)(e,E({auth:this.state.auth},t))}}],[{key:"getInitialProps",value:(t=(0,n.Z)(h().mark((function r(t){var n,i,o,s,u,a,c,f,d;return h().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=v()(t),i=(0,g.ex)(t),o=i.id,s=n[m.Mv],u=n[w.qt],a=new O.Z(s),c=E(E({},t),{},{auth:a,currentGroupId:o,theme:u}),(0,g.YB)(t)&&a.isExpired&&(console.log("OAuth token has expired."),f=E(E({},t.query),{},{redirect_url:t.asPath}),(0,P.nL)("/sign-in?".concat((0,P.uM)(f)),t.res)),!e.getInitialProps){r.next=12;break}return r.next=10,e.getInitialProps(c);case 10:return d=r.sent,r.abrupt("return",E(E({},d),{},{auth:a,currentGroupId:o,theme:u}));case 12:return r.abrupt("return",c);case 13:case"end":return r.stop()}}),r)}))),function(e){return t.apply(this,arguments)})}]),f}(p.Component)}},75083:function(e,r,t){t.d(r,{HF:function(){return o},L6:function(){return n}});var n,i=t(72473);function o(e,r,t){var o=e.owner,s=(e.roles,[{Icon:i.WorkspacesIcon,id:n.WORKSPACES,isSelected:function(){return n.WORKSPACES===t},label:function(){return"Workspaces"},linkProps:{href:"/manage"}},{Icon:i.NavDashboard,id:n.OVERVIEW,isSelected:function(){return n.OVERVIEW===t},label:function(){return"Overview"},linkProps:{href:"/manage/overview"}},{Icon:i.Schedule,id:n.PIPELINE_RUNS,isSelected:function(){return n.PIPELINE_RUNS===t},label:function(){return"Pipeline runs"},linkProps:{href:"/manage/pipeline-runs"}}]);return o&&s.push({Icon:i.WorkspacesUsersIcon,id:n.USERS,isSelected:function(){return n.USERS===t},label:function(){return"Users"},linkProps:{href:"/manage/users"}}),s.push.apply(s,[{Icon:i.File,id:n.FILE_BROWSER,isSelected:function(){return n.FILE_BROWSER===t},label:function(){return"File browser"},linkProps:{href:"/manage/files"}},{Icon:i.Settings,id:n.SETTINGS,isSelected:function(){return n.SETTINGS===t},label:function(){return"Settings"},linkProps:{href:"/manage/settings"}}]),s}!function(e){e.OVERVIEW="overview",e.PIPELINE_RUNS="pipeline_runs",e.WORKSPACES="workspaces",e.USERS="users",e.SETTINGS="settings",e.FILE_BROWSER="file_browser"}(n||(n={}))},59533:function(e,r,t){var n=t(82684),i=t(94629),o=t(35686),s=t(50018),u=t(70515),a=t(75083),c=t(28598);r.Z=function(e){var r=e.before,t=e.breadcrumbs,f=void 0===t?[]:t,d=e.children,l=e.errors,h=e.headerOffset,p=e.mainContainerHeader,b=e.pageName,v=e.setErrors,O=e.subheaderChildren,m=o.ZP.statuses.list().data,w=(0,n.useMemo)((function(){var e,r;return null==m||null===(e=m.statuses)||void 0===e||null===(r=e[0])||void 0===r?void 0:r.project_type}),[m]),g=(0,s.Z)()||{};return(0,c.jsx)(i.Z,{before:r,beforeWidth:r?50*u.iI:0,breadcrumbs:f,errors:l,headerOffset:h,mainContainerHeader:p,navigationItems:(0,a.HF)(g,w,b),setErrors:v,subheaderChildren:O,title:"Workspaces",uuid:"workspaces/index",children:d})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
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 qe}});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 B(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 q=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 B(B({},r),{},{__mage_variables:B(B({},t),{},{blocks:B(B({},l),{},(0,i.Z)({},e,B(B({},o),{},{configuration:B(B({},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),F=t(15338),V=t(97618),R=t(48670),U=t(26304),W=t(44897),X=t(95363),Y=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(X.ry,";\n ")}),(function(e){return e.monospace&&"\n font-family: ".concat(X.Vp,";\n ")}),(function(e){return e.large&&"\n ".concat(Y.x_,"\n ")}),(function(e){return!e.large&&!e.small&&"\n ".concat(Y.i3,"\n ")}),(function(e){return e.small&&"\n ".concat(Y.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,U.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,o=e.containerRef,u=e.date,s=e.interactions,a=e.pipeline,d=e.pipelineInteraction,p=e.pipelineSchedule,h=e.setVariables,f=e.showSummary,m=e.time,v=e.triggerTypes,j=e.variables,g=(0,c.useMemo)((function(){return(0,A.HK)(s||[],(function(e){return e.uuid}))}),[s]),x=(0,c.useMemo)((function(){return(null==a?void 0:a.blocks)||[]}),[a]),b=(0,c.useMemo)((function(){return(null==d?void 0:d.blocks)||{}}),[d]),Z=(0,c.useMemo)((function(){var e=[];null==x||x.length;return null==x||x.map((function(n,t){var r=(n||{uuid:null}).uuid,i=(null==b?void 0:b[r])||[];null==i||i.length;e.push((0,L.jsx)(S.Z,{p:D.cd,children:null==i?void 0:i.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:o,interaction:null==g?void 0:g[null==e?void 0:e.uuid],setVariables:h,variables:j})},"".concat(null==e?void 0:e.uuid,"-").concat(n))}))}))})),e}),[x,o,g,h,j]),y=(0,je.qB)(),P=(0,c.useMemo)((function(){return u&&null!=m&&m.hour&&null!=m&&m.minute?(0,ve.XM)(u,m,{convertToUtc:y,includeSeconds:!0,localTimezone:y}):null}),[u,y,m]),O=(0,c.useMemo)((function(){var e=[];null==x||x.length;return null==x||x.map((function(n,t){var r=(n||{uuid:null}).uuid,i=(null==b?void 0:b[r])||[];null==i||i.forEach((function(n,i){var o=null==g?void 0:g[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==j?void 0:j[s],m=void 0===f,v=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:v,monospace:!v,muted:m,children:[m&&!v&&"-",v&&"This is required",!m&&!v&&(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})}),[x,g,j]);return(0,L.jsxs)(L.Fragment,{children:[!f&&Z,f&&(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)(F.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!=p&&p.schedule_type),monospace:!0,children:null!=p&&p.schedule_type?null==v||null===(n=v.find((function(e){return e.uuid===(null==p?void 0:p.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!=p&&p.name),monospace:!0,children:(null==p?void 0:p.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!=p&&p.description),children:(null==p?void 0:p.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!=p&&p.schedule_interval),monospace:!0,muted:!(null!=p&&p.schedule_interval),children:[(null==p?void 0:p.schedule_interval)&&(0,me.vg)("@"===(null==p||null===(r=p.schedule_interval)||void 0===r?void 0:r[0])?(null==p||null===(i=p.schedule_interval)||void 0===i?void 0:i.substring(1))||"":(null==p?void 0:p.schedule_interval)||""),!(null!=p&&p.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:!P,monospace:!!P,muted:!P,children:P||"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)(F.Z,{light:!0,short:!0}),O]})]})},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 Be(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 qe=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,B=(0,c.useRef)(null),U=(0,m.useRouter)(),W=(0,je.qB)(),X=null==d?void 0:d.uuid,Y=(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),qe=He[0],ze=He[1],Fe=(0,c.useState)(!1),Ve=Fe[0],Re=Fe[1],Ue=(0,c.useState)(null),We=Ue[0],Xe=Ue[1],Ye=(0,c.useState)({}),Ge=Ye[0],Je=Ye[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!Y&&n}),[n,Y]),mn=be.ZP.pipeline_interactions.detail(hn&&X,{filter_for_permissions:1}).data,vn=be.ZP.interactions.pipeline_interactions.list(hn&&X).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!!Y&&xn}),[xn,Y]),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&&Xe(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],Bn=(0,c.useState)({dayOfMonth:null,dayOfWeek:null,hour:null,minute:null,second:null}),qn=Bn[0],zn=Bn[1],Fn=be.ZP.event_rules.detail(oe.Xm.EVENT===wn?"aws":null).data,Vn=(0,c.useMemo)((function(){var e;return(null==Fn||null===(e=Fn.event_rule)||void 0===e?void 0:e.rules)||[]}),[Fn]),Rn=(0,c.useMemo)((function(){return(0,A.HK)(Vn,(function(e){return e.name}))}),[Vn]),Un=(0,f.Db)(be.ZP.pipeline_schedules.useUpdate(Y),{onSuccess:function(e){return(0,Le.wD)(e,{callback:function(){null==o||o(),U.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(X,"/triggers/").concat(Y))},onErrorCallback:function(e,n){return _({errors:n,response:e})}})}}),Wn=(0,l.Z)(Un,2),Xn=Wn[0],Yn=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 Be(Be({},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(Be(Be({},O),{},{schedule_interval:"custom"}))}else $e(G?Be(Be({},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 Be(Be({},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=Be(Be({},(0,Ae.GL)(Qe,["name","description","schedule_type","tags"])),{},{event_matchers:[],schedule_interval:null,start_time:null,variables:(0,Ne.e7)(Be(Be({},Ge),Q?(0,i.Z)({},oe.PN,Q):{}))});if(nt){var n=qn.dayOfMonth,t=qn.dayOfWeek,r=qn.hour,l=qn.minute,o=qn.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(qe){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,Xn({pipeline_schedule:Be(Be({},e),{},{variables:nn||(null==e?void 0:e.variables)})})}),[Q,Qn,cn,Dn,W,qe,ne,Jn,qn,O,Ge,Qe,We,nt,Ln,Xn,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 Be(Be({},n),{},{minute:e.target.value})}))},value:(null==qn?void 0:qn.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 Be(Be({},n),{},{second:e.target.value})}))},value:(null==qn?void 0:qn.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 Be(Be({},n),{},{hour:e.target.value})}))},value:(null==qn?void 0:qn.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 Be(Be({},n),{},{dayOfWeek:e.target.value})}))},value:(null==qn?void 0:qn.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 Be(Be({},n),{},{dayOfMonth:e.target.value})}))},value:(null==qn?void 0:qn.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})}),[qn,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 Be(Be({},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 Be(Be({},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 Be(Be({},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 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)(F.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)(F.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)(F.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:Vn.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,Vn,Rn,lt,ot,ct]),at=(0,c.useMemo)((function(){var e=(0,ve.M8)(O,Ve);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)(F.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:Ve,onCheck:function(){return Re(!Ve)}})}),(0,L.jsx)(I.ZP,{muted:!0,children:"Show alternative endpoint to pass token in headers"})]})})]}),Ve&&(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:Ve?"\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,Ve]),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 Xe((function(n){return Be(Be({},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(),Xe((function(n){return Be(Be({},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:qe,onCheck:function(e){ze(e),e||$e((function(e){return Be(Be({},e),{},{slaAmount:0})}))}})}),(0,L.jsx)(I.ZP,{default:!0,monospace:!0,children:"Configure trigger SLA"})]}),qe&&(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)(V.Z,{flex:1,children:(0,L.jsx)(T.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),$e((function(n){return Be(Be({},n),{},{slaAmount:e.target.value})}))},placeholder:"Time",value:null==Qe?void 0:Qe.slaAmount})}),(0,L.jsx)(V.Z,{flex:1,children:(0,L.jsx)(se.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),$e((function(n){return Be(Be({},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 Xe((function(e){return Be(Be({},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 Xe((function(e){return Be(Be({},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 Xe((function(e){return Be(Be({},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(X,"/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)(q,{blocks:pt,updateVariables:Je,variables:Be(Be({},Gn),Ge)})})]})}),[ht,Q,pt,qe,yn,G,d,null==O?void 0:O.variables,X,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:B,date:Dn,interactions:gn,pipeline:d,pipelineInteraction:jn,pipelineSchedule:Qe,setVariables:function(e){$e((function(n){var t=Be({},e((null==n?void 0:n.variables)||{})),r=Be({},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),Be(Be({},n),{},{variables:t})}))},showSummary:Ie.uuid===dn,time:Ln,triggerTypes:jt,variables:null==Qe?void 0:Qe.variables})}),[B,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 U.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:Be(Be({},Qe),{},{variables:nn||(null==Qe?void 0:Qe.variables)})})}),[yt,nn,Qe]),_t=(0,c.useMemo)((function(){var e,n;return Y?(e=(0,L.jsx)(j.ZP,{linkProps:{as:"/pipelines/".concat(X,"/triggers/").concat(Y),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:Y?"Save trigger":"Create trigger"}),!Y&&(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 Be(Be({},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,Y,X,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(X,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return null==O?void 0:O.name},linkProps:{as:"/pipelines/".concat(X,"/triggers/").concat(Y),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:Yn,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(X,"/triggers/").concat(Y),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(X,"/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:B,children:[(fn||bn)&&(0,L.jsx)(F.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 Be(Be({},e),{},{schedule_type:i})}))},children:(0,L.jsx)(Pe.U,{selected:l,children:(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(V.Z,{children:(0,L.jsx)("input",{checked:l,type:"radio"})}),(0,L.jsx)(S.Z,{mr:D.cd}),(0,L.jsxs)(V.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 Be(Be({},n),{},{tags:null==In?void 0:In.filter((function(n){return n!==e.uuid}))})}))},selectTag:function(e){$e((function(n){return Be(Be({},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(Y)})]})]}),(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}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
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 l},Nk:function(){return d},gI:function(){return a}});var i=t(9518),r=t(44897),o=t(42631),c=t(70515),d=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 ")})),l=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 T}});var i=t(82394),r=t(75582),o=t(82684),c=t(83455),d=t(71180),l=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),O=t(70515),w=y.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1b0w59t-0"})(["border-radius:","px;padding:","px;",""],P.n_,O.cd*O.iI,(function(e){return"\n background-color: ".concat((e.theme.background||k.Z.background).codeArea,";\n ")})),C=t(72473),I=t(72191),E=t(70320),N=t(81728),S=t(42122),B=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 M(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 T=function(e){var n,t,y,k=e.cancelButtonText,P=e.contained,L=e.header,T=e.onCancel,H=e.onSaveSuccess,U=e.rootProject,V=(0,A.VI)(null,{},[],{uuid:"settings/workspace/preferences"}),F=(0,r.Z)(V,1)[0],G=(0,o.useState)(null),K=G[0],R=G[1],W=(0,o.useState)(!1),q=W[0],z=W[1],Y=(0,_.Z)(),$=Y.fetchProjects,J=Y.project,Q=Y.projectPlatformActivated,X=Y.rootProject,ee=(0,o.useMemo)((function(){return U?X:J}),[J,X,U]),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(){K||R(ee)}),[ee,K]);var ce=(0,c.Db)(Z.ZP.projects.useUpdate(te),{onSuccess:function(e){return(0,B.wD)(e,{callback:function(e){var n,t=e.project;$(),R(t),z(!1),(0,E.hY)(null==t||null===(n=t.features)||void 0===n?void 0:n[m.d.LOCAL_TIMEZONE]),H&&(null==H||H(t))},onErrorCallback:function(e,n){return F({errors:n,response:e})}})}}),de=(0,r.Z)(ce,2),le=de[0],ae=de[1].isLoading,se=(0,o.useCallback)((function(e){return le({project:M(M({},e),{},{root_project:U})})}),[U,le]),ue=(0,D.jsxs)(D.Fragment,{children:[L,(0,D.jsxs)(h.Z,{noPadding:!0,children:[(0,D.jsxs)(f.Z,{p:O.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)(l.Z,{light:!0}),(0,D.jsxs)(f.Z,{p:O.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)(l.Z,{light:!0}),(0,D.jsx)(f.Z,{p:O.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:O.cd}),(0,D.jsx)(j.Z,{checked:null==K?void 0:K.help_improve_mage,compact:!0,id:"help_improve_mage_toggle",onCheck:function(){return R((function(e){return M(M({},e),{},{help_improve_mage:!(null!=K&&K.help_improve_mage)})}))}})]})})]}),(0,D.jsx)(f.Z,{mt:O.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==K||null===(n=K.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 R((function(n){var t,i,r,o,c,d;return M(M({},n),{},{pipelines:M(M({},null==n?void 0:n.pipelines),{},{settings:M(M({},null==n||null===(t=n.pipelines)||void 0===t?void 0:t.settings),{},{triggers:M(M({},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===(d=c.triggers)||void 0===d?void 0:d.save_in_code_automatically)})})})})}))}}})}),(0,D.jsx)(f.Z,{mt:O.HN}),(0,D.jsx)(h.Z,{noPadding:!0,overflowVisible:!0,children:(0,D.jsxs)(f.Z,{p:O.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,S.gR)(null==K?void 0:K.features,[m.d.CODE_BLOCK_V2,m.d.COMMAND_CENTER,m.d.COMPUTE_MANAGEMENT,m.d.CUSTOM_DESIGN,m.d.DBT_V2,m.d.GLOBAL_HOOKS,m.d.NOTEBOOK_BLOCK_OUTPUT_SPLIT_VIEW])||{}).map((function(e,n){var t=(0,r.Z)(e,2),o=t[0],c=t[1],d=Q&&!U&&(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:d,checked:!!c,compact:!0,onCheck:function(){return R((function(e){return M(M({},e),{},{features:M(M({},null==K?void 0:K.features),{},(0,i.Z)({},o,!c))})}))}}),(0,D.jsx)(f.Z,{mr:O.cd}),(0,D.jsxs)(a.Z,{children:[(0,D.jsx)(v.ZP,{default:!c,monospace:!0,children:(0,N.vg)(o)}),o===m.d.LOCAL_TIMEZONE&&(0,D.jsx)(f.Z,{ml:1,children:(0,D.jsx)(b.Z,M({},E.EB))})]})]}),d&&(0,D.jsx)(v.ZP,{monospace:!0,muted:!0,small:!0,children:"overridden"})]})},o)}))]})}),(0,D.jsx)(f.Z,{mt:O.HN}),(0,D.jsx)(h.Z,{noPadding:!0,children:(0,D.jsxs)(f.Z,{p:O.cd,children:[(0,D.jsx)(f.Z,{mb:1,children:(0,D.jsx)(u.Z,{level:5,children:"OpenAI"})}),ie&&!q?(0,D.jsxs)(s.ZP,M(M({},s.A0),{},{children:[(0,D.jsx)(v.ZP,{default:!0,monospace:!0,children:"API key: ********"}),(0,D.jsx)(d.ZP,{iconOnly:!0,onClick:function(){return z(!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 R((function(n){return M(M({},n),{},{openai_api_key:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null==K?void 0:K.openai_api_key)||""})]})}),(0,D.jsx)(f.Z,{mt:O.HN}),(0,D.jsxs)(s.ZP,{alignItems:"center",children:[(0,D.jsx)(d.ZP,{id:"save-project-settings",loading:ae,onClick:function(){var e={features:null==K?void 0:K.features,help_improve_mage:null==K?void 0:K.help_improve_mage,openai_api_key:null==K?void 0:K.openai_api_key,pipelines:null==K?void 0:K.pipelines};!0===(null==ee?void 0:ee.help_improve_mage)&&!1===(null==K?void 0:K.help_improve_mage)&&(e.deny_improve_mage=!0),se(e)},primary:!0,children:"Save project settings"}),T&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(f.Z,{mr:O.cd}),(0,D.jsx)(d.ZP,{onClick:T,secondary:!0,children:k||"Cancel"})]})]})]});return P?(0,D.jsx)(w,{children:ue}):ue}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3763],{84649:function(e,t,n){n.d(t,{EN:function(){return P},FX:function(){return k},HS:function(){return j},Nk:function(){return h},Rd:function(){return f},SL:function(){return _},Tj:function(){return Z},UE:function(){return O},Yf:function(){return g},ZG:function(){return c},bC:function(){return b},n5:function(){return p},n8:function(){return w},w5:function(){return x},wj:function(){return v},wl:function(){return m},ze:function(){return y}});var r=n(9518),i=n(44897),o=n(42631),u=n(46684),l=n(70515),a=n(91437),d=n(47041),c=2.5*l.iI,s=40*l.iI,p=10*l.iI,f=r.default.div.withConfig({displayName:"indexstyle__ContainedStyle",componentId:"sc-8sk2qr-0"})([""," overflow:auto;"," "," ",""],d.w5,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).page,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-p,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width-p,"px;\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-8sk2qr-1"})(["height:100%;position:relative;"]),b=r.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-8sk2qr-2"})(["position:fixed;width:","px;z-index:1;"," "," ",""],s,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-p,"px;\n ")}),(function(e){return!e.height&&"\n height: 100%;\n "})),g=r.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-8sk2qr-3"})(["padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;",""],1*l.iI,l.cd*l.iI,l.cd*l.iI,1*l.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).light,";\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__LinksContainerStyle",componentId:"sc-8sk2qr-4"})([""," overflow:auto;position:fixed;width:","px;",""],d.w5,s,(function(e){return"\n height: calc(100% - ".concat(55+(null!=e&&e.contained?p:u.Mz)+((null==e?void 0:e.heightOffset)||0),"px);\n ")})),v=r.default.div.withConfig({displayName:"indexstyle__NavLinkStyle",componentId:"sc-8sk2qr-5"})([""," padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;&:hover{cursor:pointer;}",""],(0,a.eR)(),1*l.iI,l.cd*l.iI,l.cd*l.iI,1*l.iI,(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||i.Z.background).codeTextarea,";\n ")})),y=r.default.div.withConfig({displayName:"indexstyle__IconStyle",componentId:"sc-8sk2qr-6"})([""," border-radius:","px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],(0,a.eR)(),o.n_,5*l.iI,1.25*l.iI,1.25*l.iI,5*l.iI,(function(e){return!e.backgroundColor&&"\n background-color: ".concat((e.theme.background||i.Z.background).chartBlock,";\n ")}),(function(e){return e.backgroundColor&&"\n background-color: ".concat(e.backgroundColor,";\n ")})),x=r.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-8sk2qr-7"})(["margin-left:","px;"],s),j=r.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-8sk2qr-8"})(["padding:","px;",""],l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||i.Z.borders).light,";\n ")})),w=r.default.div.withConfig({displayName:"indexstyle__CardsStyle",componentId:"sc-8sk2qr-9"})(["display:flex;flex-wrap:wrap;padding:","px;"],.75*l.iI),O=r.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-8sk2qr-10"})(["border-radius:","px;margin:","px;padding:","px;width:","px;&:hover{cursor:pointer;}",""],o.n_,.75*l.iI,2.5*l.iI,50*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border: 1px solid ").concat((e.theme.background||i.Z.background).chartBlock,";\n box-shadow: ").concat((e.theme.shadow||i.Z.shadow).frame,";\n ")})),Z=r.default.div.withConfig({displayName:"indexstyle__CardTitleStyle",componentId:"sc-8sk2qr-11"})(["height:","px;"],2.5*l.iI),_=r.default.div.withConfig({displayName:"indexstyle__CardDescriptionStyle",componentId:"sc-8sk2qr-12"})(["height:","px;margin-top:","px;"],2.5*l.iI*2,1*l.iI),P=r.default.div.withConfig({displayName:"indexstyle__TagsStyle",componentId:"sc-8sk2qr-13"})(["height:","px;margin-top:","px;overflow:hidden;"],3.5*l.iI,.5*l.iI),k=r.default.div.withConfig({displayName:"indexstyle__BreadcrumbsStyle",componentId:"sc-8sk2qr-14"})(["padding-bottom:","px;padding-top:","px;",""],1*l.iI,1*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||i.Z.borders).light,";\n ")}))},11302:function(e,t,n){n.d(t,{Nk:function(){return a},Yf:function(){return c},bC:function(){return d},ig:function(){return s},w5:function(){return p}});var r=n(9518),i=n(44897),o=n(70515),u=n(84649),l=(o.iI,40*o.iI),a=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-axgvn9-0"})(["height:100%;position:relative;"]),d=r.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-axgvn9-1"})(["overflow:auto;position:fixed;width:","px;z-index:1;"," "," ",""],l,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-u.n5,"px;\n ")}),(function(e){return!e.height&&"\n height: 100%;\n "})),c=r.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-axgvn9-2"})(["padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;width:100%;",""],1*o.iI,o.cd*o.iI,o.cd*o.iI,1*o.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).light,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__ButtonsStyle",componentId:"sc-axgvn9-3"})(["margin-top:","px;width:100%;",""],o.cd*o.iI,(function(e){return"\n border-top: 1px solid ".concat((e.theme.borders||i.Z.borders).light,";\n ")})),p=r.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-axgvn9-4"})(["margin-left:","px;"],l)},94629:function(e,t,n){n.d(t,{Z:function(){return O}});var r=n(82394),i=n(21831),o=n(82684),u=n(50724),l=n(82555),a=n(97618),d=n(70613),c=n(31557),s=n(68899),p=n(28598);function f(e,t){var n=e.children,r=e.noPadding;return(0,p.jsx)(s.HS,{noPadding:r,ref:t,children:n})}var h=o.forwardRef(f),b=n(62547),g=n(82571),m=n(77417),v=n(46684),y=n(75375);function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t){e.addProjectBreadcrumbToCustomBreadcrumbs;var n=e.after,r=e.afterHeader,o=e.afterHidden,f=e.afterWidth,x=e.afterWidthOverride,w=e.appendBreadcrumbs,O=e.before,Z=e.beforeHeader,_=e.beforeWidth,P=e.breadcrumbs,k=e.children,I=e.contained,C=e.errors,S=e.headerMenuItems,A=e.headerOffset,D=e.hideAfterCompletely,N=e.mainContainerHeader,M=e.navigationItems,E=e.setAfterHidden,q=e.setAfterWidth,B=e.setBeforeWidth,T=e.setErrors,H=e.subheaderChildren,W=e.subheaderNoPadding,R=e.title,F=e.uuid,U=(0,y.Z)(F,{beforeResizeOffset:y.H,setWidthAfter:q,setWidthBefore:B,widthAfter:f,widthBefore:_,widthOverrideAfter:x}),L=U.mainContainerRef,z=U.mousedownActiveAfter,G=U.mousedownActiveBefore,Y=U.setMousedownActiveAfter,V=U.setMousedownActiveBefore,J=U.setWidthAfter,K=U.setWidthBefore,X=U.widthAfter,Q=U.widthBefore,$=(0,m.Z)().project,ee=[];return P&&ee.push.apply(ee,(0,i.Z)(P)),null!=P&&P.length&&!w||!$||null!=P&&P.length||ee.unshift({bold:!w,label:function(){return R}}),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(d.Z,{title:R}),(0,p.jsx)(c.Z,{breadcrumbs:ee,menuItems:S}),(0,p.jsxs)(s.Nk,{ref:t,children:[0!==(null==M?void 0:M.length)&&(0,p.jsx)(s.lm,{showMore:!0,children:(0,p.jsx)(g.Z,{navigationItems:M,showMore:!0})}),(0,p.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(b.Z,{after:n,afterHeader:r,afterHeightOffset:v.Mz,afterHidden:o,afterMousedownActive:z,afterWidth:X,before:O,beforeHeader:Z,beforeHeightOffset:v.Mz,beforeMousedownActive:G,beforeWidth:O?Q:s.k1,contained:I,headerOffset:A,hideAfterCompletely:!n||D,leftOffset:O?s.k1:null,mainContainerHeader:N,mainContainerRef:L,setAfterHidden:E,setAfterMousedownActive:Y,setAfterWidth:J,setBeforeMousedownActive:V,setBeforeWidth:K,children:[H&&(0,p.jsx)(h,{noPadding:W,children:H}),k]})})]}),C&&(0,p.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null==T?void 0:T(null)},children:(0,p.jsx)(l.Z,j(j({},C),{},{onClose:function(){return null==T?void 0:T(null)}}))})]})}var O=o.forwardRef(w)},72226:function(e,t,n){var r=n(82394),i=n(38276),o=n(75499),u=n(30160),l=n(17488),a=n(70515),d=n(28598);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.objectAttributes,n=e.originalAttributes,c=e.setObjectAttributes;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(i.Z,{mb:1,px:a.cd,children:[(0,d.jsx)(u.ZP,{bold:!0,children:"Outdated after"}),(0,d.jsx)(u.ZP,{muted:!0,small:!0,children:"After the global data product successfully completes running, how long after that will the global data product be outdated?"})]}),(0,d.jsx)(o.Z,{columnFlex:[null,1],columns:[{uuid:"Unit"},{uuid:"Value"}],rows:[{uuid:"seconds"},{uuid:"weeks"},{uuid:"months"},{uuid:"years"}].map((function(e){var i,o,a=e.uuid,p=null==t||null===(i=t.outdated_after)||void 0===i?void 0:i[a],f=null==n||null===(o=n.outdated_after)||void 0===o?void 0:o[a];return[(0,d.jsxs)(u.ZP,{default:!0,monospace:!0,children:[a," ",f&&(0,d.jsxs)(u.ZP,{inline:!0,monospace:!0,muted:!0,children:["(default: ",f,")"]})]},"label-".concat(a)),(0,d.jsx)(l.Z,{compact:!0,monospace:!0,onChange:function(e){return c((function(t){var n;return s(s({},t),{},{outdated_after:s(s({},null==t?void 0:t.outdated_after),{},(0,r.Z)({},a,0===(null===(n=e.target.value)||void 0===n?void 0:n.length)?null:Number(e.target.value)))})}))},placeholder:"Enter a number",primary:!0,setContentOnMount:!0,small:!0,type:"number",value:null==p?"":p},"input-".concat(a))]}))})]})}},29644:function(e,t,n){var r=n(82394),i=n(44085),o=n(38276),u=n(75499),l=n(30160),a=n(17488),d=n(70515),c=n(81728),s=n(86735),p=n(28598);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.objectAttributes,n=e.originalAttributes,f=e.setObjectAttributes;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(o.Z,{mb:1,px:d.cd,children:[(0,p.jsxs)(l.ZP,{bold:!0,children:["Outdated starting at ",(0,p.jsx)(l.ZP,{inline:!0,muted:!0,children:"(optional)"})]}),(0,p.jsx)(l.ZP,{muted:!0,small:!0,children:"If enough time has passed since the last global data product has ran successfully and the global data product is determined to be outdated, then you can configure it to be outdated at a specific date or time."}),(0,p.jsx)("div",{style:{marginTop:4},children:(0,p.jsxs)(l.ZP,{muted:!0,small:!0,children:["For example, let’s say the global data product is outdated after 12 hours. The last successful run was yesterday at 18:00. The global data product will be outdated today at 06:00. However, if the ",(0,p.jsx)(l.ZP,{bold:!0,inline:!0,muted:!0,small:!0,children:"Outdated starting at"})," has a value of 17 for ",(0,p.jsx)(l.ZP,{bold:!0,inline:!0,muted:!0,small:!0,children:"Hour of day"}),", then the global data product won’t run again until today at 17:00."]})})]}),(0,p.jsx)(u.Z,{columnFlex:[null,1],columns:[{uuid:"Unit"},{uuid:"Value"}],rows:[{uuid:"second_of_minute",values:(0,s.w6)(60).map((function(e,t){return{uuid:t,value:t}}))},{uuid:"minute_of_hour",values:(0,s.w6)(60).map((function(e,t){return{uuid:t,value:t}}))},{uuid:"hour_of_day",values:(0,s.w6)(24).map((function(e,t){return{uuid:t,value:t}}))},{uuid:"day_of_week",values:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((function(e,t){return{uuid:e,value:t}}))},{uuid:"day_of_month",values:(0,s.w6)(31).map((function(e,t){return{uuid:t+1,value:t+1}}))},{uuid:"day_of_year",values:(0,s.w6)(365).map((function(e,t){return{uuid:t+1,value:t+1}}))},{uuid:"week_of_month",values:(0,s.w6)(5).map((function(e,t){return{uuid:t+1,value:t+1}}))},{uuid:"week_of_year",values:(0,s.w6)(52).map((function(e,t){return{uuid:t+1,value:t+1}}))},{uuid:"month_of_year",values:["January","February","March","April","May","June","July","August","September","October","November","December"].map((function(e,t){return{uuid:e,value:t+1}}))}].map((function(e){var o,u,d,s=e.uuid,b=e.values,g=null==t||null===(o=t.outdated_starting_at)||void 0===o?void 0:o[s],m=null==n||null===(u=n.outdated_starting_at)||void 0===u?void 0:u[s],v={compact:!0,key:"outdated-starting-at-input-".concat(s),monospace:!0,onChange:function(e){return f((function(t){var n;return h(h({},t),{},{outdated_starting_at:h(h({},null==t?void 0:t.outdated_starting_at),{},(0,r.Z)({},s,0===(null===(n=e.target.value)||void 0===n?void 0:n.length)?null:Number(e.target.value)))})}))},primary:!0,small:!0,value:null==g?"":g};return d=b?(0,p.jsx)(i.Z,h(h({},v),{},{placeholder:"Select a value",children:b.map((function(e){var t=e.uuid,n=e.value;return(0,p.jsx)("option",{value:n,children:t},n)}))})):(0,p.jsx)(a.Z,h(h({},v),{},{placeholder:"Enter a number",setContentOnMount:!0,type:"number"})),[(0,p.jsxs)(l.ZP,{default:!0,monospace:!0,children:[(0,c.vg)(s)," ",m&&(0,p.jsxs)(l.ZP,{inline:!0,monospace:!0,muted:!0,children:["(default: ",m,")"]})]},"outdated-starting-at-label-".concat(s)),d]}))})]})}},46209:function(e,t,n){var r=n(82394),i=n(12691),o=n.n(i),u=n(70652),l=n(48670),a=n(38276),d=n(75499),c=n(30160),s=n(17488),p=n(70515),f=n(28598);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.blocks,n=e.objectAttributes,i=e.originalAttributes,h=e.setObjectAttributes;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(a.Z,{mb:1,px:p.cd,children:[(0,f.jsx)(c.ZP,{bold:!0,children:"Block data to output"}),(0,f.jsx)(c.ZP,{muted:!0,small:!0,children:"The data output from the block(s) you select below will be the data product that is returned when a downstream entity is requesting data from this global data product."}),(0,f.jsx)("div",{style:{marginTop:4},children:(0,f.jsx)(c.ZP,{muted:!0,small:!0,children:"When requesting data from this global data product, the selected block(s) will return data from its most recent partition. You can override this by adding a value in the partitions setting. For example, if you set the partitions value to 5, then the selected block will return data from its 5 most recent partitions. If you set the partitions value to 0, then all the partitions will be returned."})})]}),(0,f.jsx)(d.Z,{columnFlex:[null,1,null],columns:[{label:function(){return""},uuid:"selected"},{uuid:"Block UUID"},{uuid:"Partitions"}],rows:null==t?void 0:t.map((function(e){var t,a=e.uuid,d=null==n?void 0:n.settings,p=null==d?void 0:d[a],g=null==p?void 0:p.partitions,m=null==i||null===(t=i.settings)||void 0===t?void 0:t[a],v=null==m?void 0:m.partitions,y=!!p||!!m;return[(0,f.jsx)(u.Z,{checked:y,onClick:function(){return function(e){h((function(t){var n=(null==t?void 0:t.settings)||{};return e?n[a]={}:null==n||delete n[a],b(b({},t),{},{settings:n})}))}(!y)}},"selected--".concat(a)),(0,f.jsxs)("div",{children:[(0,f.jsx)(o(),{as:"/pipelines/".concat(null==n?void 0:n.object_uuid,"/edit?block_uuid=").concat(a),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,f.jsx)(l.Z,{monospace:!0,openNewWindow:!0,sameColorAsText:!0,children:a})})," ",v&&(0,f.jsxs)(c.ZP,{inline:!0,monospace:!0,muted:!0,children:["(default: ",v,")"]})]},"block-uuid-".concat(a)),(0,f.jsx)(s.Z,{compact:!0,monospace:!0,onChange:function(e){return h((function(t){var n,i;return b(b({},t),{},{settings:b(b({},null==t?void 0:t.settings),{},(0,r.Z)({},a,b(b({},null==t||null===(n=t.settings)||void 0===n?void 0:n[a]),{},{partitions:0===(null===(i=e.target.value)||void 0===i?void 0:i.length)?null:Number(e.target.value)})))})}))},placeholder:"1",primary:!0,setContentOnMount:!0,small:!0,type:"number",value:null==g?"":g},"input-".concat(a))]}))})]})}},19396:function(e,t,n){var r=n(82394),i=n(75582),o=n(12691),u=n.n(o),l=n(21764),a=n(82684),d=n(83455),c=n(34376),s=n(71180),p=n(15338),f=n(97618),h=n(55485),b=n(8666),g=n(85854),m=n(48670),v=n(72226),y=n(29644),x=n(27966),j=n(44085),w=n(46209),O=n(38276),Z=n(30160),_=n(17488),P=n(29624),k=n(62547),I=n(35686),C=n(98464),S=n(11302),A=n(70515),D=n(68899),N=n(81728),M=n(72619),E=n(86735),q=n(23780),B=n(28598);function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.globalDataProduct,n=e.isNew,r=(0,c.useRouter)(),o=(0,q.VI)(null,{},[],{uuid:"GlobalDataProductDetail"}),T=(0,i.Z)(o,1)[0],W=(0,a.useState)(!1),R=W[0],F=W[1],U=(0,a.useState)(600),L=U[0],z=U[1],G=(0,a.useState)(null),Y=G[0],V=G[1],J=(0,a.useCallback)((function(e){V(e)}),[]),K=(0,C.Z)(t);(0,a.useEffect)((function(){null!=t&&t.uuid&&(null==K?void 0:K.uuid)===(null==t?void 0:t.uuid)||V(t)}),[t,K]);var X=(0,a.useMemo)((function(){return!(null!=Y&&Y.uuid)}),[Y]),Q=(0,d.Db)((function(e){return I.ZP.global_data_products.useUpdate(n?null==Y?void 0:Y.uuid:null==t?void 0:t.uuid)(e)}),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(e){var i=e.global_data_product;n||null!=t&&t.uuid&&(null==i?void 0:i.uuid)!==(null==t?void 0:t.uuid)?r.replace("/global-data-products/[...slug]","/global-data-products/".concat(null==i?void 0:i.uuid)):(V(i),l.Am.success("Global data product successfully saved.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:"custom_pipeline_template"}))},onErrorCallback:function(e,t){return T({errors:t,response:e})}})}}),$=(0,i.Z)(Q,2),ee=$[0],te=$[1].isLoading,ne=I.ZP.pipelines.detail(b.b.PIPELINE===(null==t?void 0:t.object_type)?null==t?void 0:t.object_uuid:null).data,re=(0,a.useMemo)((function(){return null==ne?void 0:ne.pipeline}),[ne]),ie=(0,a.useMemo)((function(){return(null==re?void 0:re.blocks)||[]}),[re]),oe=I.ZP.pipelines.list(!n&&null!=t&&t.repo_path?{repo_path:null==t?void 0:t.repo_path}:{}).data,ue=(0,a.useMemo)((function(){return(0,E.YC)((null==oe?void 0:oe.pipelines)||[],"uuid")}),[oe]),le=(0,a.useMemo)((function(){return(0,B.jsxs)(h.ZP,{flexDirection:"column",fullHeight:!0,children:[(0,B.jsxs)(f.Z,{flexDirection:"column",children:[(0,B.jsxs)(O.Z,{mt:A.Mq,px:A.cd,children:[(0,B.jsxs)(O.Z,{mb:1,children:[(0,B.jsx)(Z.ZP,{bold:!0,children:"UUID"}),(0,B.jsx)(Z.ZP,{muted:!0,small:!0,children:"Unique identifier for this global data product. This value must be unique across all global data products."})]}),(0,B.jsx)(_.Z,{monospace:!0,onChange:function(e){return J((function(t){return H(H({},t),{},{uuid:e.target.value})}))},placeholder:"e.g. a unique identifier",primary:!0,setContentOnMount:!0,value:(null==Y?void 0:Y.uuid)||""})]}),(0,B.jsxs)(O.Z,{mt:A.Mq,px:A.cd,children:[(0,B.jsxs)(O.Z,{mb:1,children:[(0,B.jsx)(Z.ZP,{bold:!0,children:"Object type"}),(0,B.jsx)(Z.ZP,{muted:!0,small:!0,children:"Pipeline, block, etc. Currently, only pipeline is supported."})]}),(0,B.jsx)(j.Z,{onChange:function(e){return J((function(t){return H(H({},t),{},{object_type:e.target.value})}))},placeholder:"Only pipeline is currently supported",primary:!0,value:(null==Y?void 0:Y.object_type)||"",children:[b.b.PIPELINE].map((function(e){return(0,B.jsx)("option",{value:e,children:(0,N.kC)(e)},e)}))})]}),(0,B.jsxs)(O.Z,{mt:A.Mq,px:A.cd,children:[(0,B.jsxs)(O.Z,{mb:1,children:[(0,B.jsx)(Z.ZP,{bold:!0,children:"Object UUID"}),(0,B.jsxs)(Z.ZP,{muted:!0,small:!0,children:["The UUID of the ",(null==Y?void 0:Y.object_type)||"object type"," that this global data product represents."]})]}),(0,B.jsx)(j.Z,{monospace:!0,onChange:function(e){return J((function(t){return H(H({},t),{},{object_uuid:e.target.value})}))},placeholder:"Select object UUID",primary:!0,value:(null==Y?void 0:Y.object_uuid)||"",children:null==ue?void 0:ue.map((function(e){var t=e.uuid;return(0,B.jsx)("option",{value:t,children:t},t)}))}),b.b.PIPELINE===(null==Y?void 0:Y.object_type)&&(null==Y?void 0:Y.object_uuid)&&(0,B.jsx)(O.Z,{mt:1,children:(0,B.jsxs)(Z.ZP,{muted:!0,small:!0,children:["View pipeline"," ",(0,B.jsx)(u(),{as:"/pipelines/".concat(null==Y?void 0:Y.object_uuid,"/edit"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,B.jsx)(m.Z,{bold:!0,inline:!0,monospace:!0,openNewWindow:!0,small:!0,children:null==Y?void 0:Y.object_uuid})}),"."]})})]}),!n&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(O.Z,{mt:A.Mq,children:(0,B.jsx)(v.Z,{objectAttributes:Y,setObjectAttributes:J})}),(0,B.jsx)(O.Z,{mt:A.Mq,children:(0,B.jsx)(y.Z,{objectAttributes:Y,setObjectAttributes:J})}),(null==ie?void 0:ie.length)>=1&&(0,B.jsx)(O.Z,{mt:A.Mq,children:(0,B.jsx)(w.Z,{blocks:ie,objectAttributes:Y,setObjectAttributes:J})})]})]}),(0,B.jsx)(S.ig,{children:(0,B.jsx)(O.Z,{p:A.cd,children:(0,B.jsx)(h.ZP,{children:(0,B.jsxs)(s.ZP,{disabled:X,fullWidth:!0,loading:te,onClick:function(){return ee({global_data_product:Y})},primary:!0,children:[n&&"Create global data product",!n&&"Save global data product"]})})})})]})}),[ie,X,te,n,Y,ue,J,ee]),ae=I.ZP.pipeline_schedules.list({global_data_product_uuid:null==t?void 0:t.uuid},{},{pauseFetch:!(null!=t&&t.uuid)}).data,de=(0,a.useMemo)((function(){return(null==ae?void 0:ae.pipeline_schedules)||[]}),[ae]),ce=I.ZP.pipeline_runs.list({global_data_product_uuid:null==t?void 0:t.uuid},{},{pauseFetch:!(null!=t&&t.uuid)}).data,se=(0,a.useMemo)((function(){return(null==ce?void 0:ce.pipeline_runs)||[]}),[ce]);return(0,B.jsx)(k.Z,{before:le,beforeHeader:(0,B.jsx)(O.Z,{px:A.cd,children:(0,B.jsx)(Z.ZP,{children:"Global data product attributes"})}),beforeHidden:R,beforeWidth:L,excludeOffsetFromBeforeDraggableLeft:!0,leftOffset:D.k1,setBeforeHidden:F,setBeforeWidth:z,children:!n&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(O.Z,{p:A.cd,children:(0,B.jsx)(g.Z,{children:"Triggers"})}),(0,B.jsx)(p.Z,{light:!0}),(0,B.jsx)(P.Z,{disableActions:!0,pipeline:re,pipelineSchedules:de}),(0,B.jsx)(O.Z,{p:A.cd,children:(0,B.jsx)(g.Z,{children:"Runs"})}),(0,B.jsx)(p.Z,{light:!0}),(0,B.jsx)(x.Z,{hideTriggerColumn:!0,pipelineRuns:se})]})})}},93808:function(e,t,n){n.d(t,{Z:function(){return k}});var r=n(77837),i=n(26304),o=n(62243),u=n(29385),l=n(80022),a=n(13692),d=n(93189),c=n(15544),s=n(82394),p=n(38860),f=n.n(p),h=n(82684),b=n(56663),g=n.n(b),m=n(40761),v=n(34661),y=n(36105),x=n(50178),j=n(69419),w=n(28598),O=["auth"];function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e){var t=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 n,r=(0,c.Z)(e);if(t){var i=(0,c.Z)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,d.Z)(this,n)}}function k(e){return function(t){(0,a.Z)(c,t);var n,d=P(c);function c(){var e;(0,o.Z)(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e=d.call.apply(d,[this].concat(n)),(0,s.Z)((0,l.Z)(e),"state",{auth:new m.Z(e.props.token)}),e}return(0,u.Z)(c,[{key:"componentDidMount",value:function(){this.setState({auth:new m.Z(this.props.token)})}},{key:"render",value:function(){var t=this.props,n=(t.auth,(0,i.Z)(t,O));return(0,w.jsx)(e,_({auth:this.state.auth},n))}}],[{key:"getInitialProps",value:(n=(0,r.Z)(f().mark((function t(n){var r,i,o,u,l,a,d,c,s;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=g()(n),i=(0,x.ex)(n),o=i.id,u=r[v.Mv],l=r[y.qt],a=new m.Z(u),d=_(_({},n),{},{auth:a,currentGroupId:o,theme:l}),(0,x.YB)(n)&&a.isExpired&&(console.log("OAuth token has expired."),c=_(_({},n.query),{},{redirect_url:n.asPath}),(0,j.nL)("/sign-in?".concat((0,j.uM)(c)),n.res)),!e.getInitialProps){t.next=12;break}return t.next=10,e.getInitialProps(d);case 10:return s=t.sent,t.abrupt("return",_(_({},s),{},{auth:a,currentGroupId:o,theme:l}));case 12:return t.abrupt("return",d);case 13:case"end":return t.stop()}}),t)}))),function(e){return n.apply(this,arguments)})}]),c}(h.Component)}},8666:function(e,t,n){var r;n.d(t,{b:function(){return r}}),function(e){e.BLOCK="block",e.PIPELINE="pipeline"}(r||(r={}))},80022:function(e,t,n){function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},15544:function(e,t,n){function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},13692:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(61049);function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,r.Z)(e,t)}},93189:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(12539),i=n(80022);function o(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3763],{84649:function(e,t,n){n.d(t,{EN:function(){return P},FX:function(){return k},HS:function(){return j},Nk:function(){return h},Rd:function(){return f},SL:function(){return _},Tj:function(){return Z},UE:function(){return O},Yf:function(){return g},ZG:function(){return c},bC:function(){return b},n5:function(){return p},n8:function(){return w},w5:function(){return x},wj:function(){return v},wl:function(){return m},ze:function(){return y}});var r=n(9518),i=n(44897),o=n(42631),u=n(46684),l=n(70515),a=n(91437),d=n(47041),c=2.5*l.iI,s=40*l.iI,p=10*l.iI,f=r.default.div.withConfig({displayName:"indexstyle__ContainedStyle",componentId:"sc-8sk2qr-0"})([""," overflow:auto;"," "," ",""],d.w5,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).page,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-p,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width-p,"px;\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-8sk2qr-1"})(["height:100%;position:relative;"]),b=r.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-8sk2qr-2"})(["position:fixed;width:","px;z-index:1;"," "," ",""],s,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-p,"px;\n ")}),(function(e){return!e.height&&"\n height: 100%;\n "})),g=r.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-8sk2qr-3"})(["padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;",""],1*l.iI,l.cd*l.iI,l.cd*l.iI,1*l.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).light,";\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__LinksContainerStyle",componentId:"sc-8sk2qr-4"})([""," overflow:auto;position:fixed;width:","px;",""],d.w5,s,(function(e){return"\n height: calc(100% - ".concat(55+(null!=e&&e.contained?p:u.Mz)+((null==e?void 0:e.heightOffset)||0),"px);\n ")})),v=r.default.div.withConfig({displayName:"indexstyle__NavLinkStyle",componentId:"sc-8sk2qr-5"})([""," padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;&:hover{cursor:pointer;}",""],(0,a.eR)(),1*l.iI,l.cd*l.iI,l.cd*l.iI,1*l.iI,(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||i.Z.background).codeTextarea,";\n ")})),y=r.default.div.withConfig({displayName:"indexstyle__IconStyle",componentId:"sc-8sk2qr-6"})([""," border-radius:","px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],(0,a.eR)(),o.n_,5*l.iI,1.25*l.iI,1.25*l.iI,5*l.iI,(function(e){return!e.backgroundColor&&"\n background-color: ".concat((e.theme.background||i.Z.background).chartBlock,";\n ")}),(function(e){return e.backgroundColor&&"\n background-color: ".concat(e.backgroundColor,";\n ")})),x=r.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-8sk2qr-7"})(["margin-left:","px;"],s),j=r.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-8sk2qr-8"})(["padding:","px;",""],l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||i.Z.borders).light,";\n ")})),w=r.default.div.withConfig({displayName:"indexstyle__CardsStyle",componentId:"sc-8sk2qr-9"})(["display:flex;flex-wrap:wrap;padding:","px;"],.75*l.iI),O=r.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-8sk2qr-10"})(["border-radius:","px;margin:","px;padding:","px;width:","px;&:hover{cursor:pointer;}",""],o.n_,.75*l.iI,2.5*l.iI,50*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border: 1px solid ").concat((e.theme.background||i.Z.background).chartBlock,";\n box-shadow: ").concat((e.theme.shadow||i.Z.shadow).frame,";\n ")})),Z=r.default.div.withConfig({displayName:"indexstyle__CardTitleStyle",componentId:"sc-8sk2qr-11"})(["height:","px;"],2.5*l.iI),_=r.default.div.withConfig({displayName:"indexstyle__CardDescriptionStyle",componentId:"sc-8sk2qr-12"})(["height:","px;margin-top:","px;"],2.5*l.iI*2,1*l.iI),P=r.default.div.withConfig({displayName:"indexstyle__TagsStyle",componentId:"sc-8sk2qr-13"})(["height:","px;margin-top:","px;overflow:hidden;"],3.5*l.iI,.5*l.iI),k=r.default.div.withConfig({displayName:"indexstyle__BreadcrumbsStyle",componentId:"sc-8sk2qr-14"})(["padding-bottom:","px;padding-top:","px;",""],1*l.iI,1*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||i.Z.borders).light,";\n ")}))},11302:function(e,t,n){n.d(t,{Nk:function(){return a},Yf:function(){return c},bC:function(){return d},ig:function(){return s},w5:function(){return p}});var r=n(9518),i=n(44897),o=n(70515),u=n(84649),l=(o.iI,40*o.iI),a=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-axgvn9-0"})(["height:100%;position:relative;"]),d=r.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-axgvn9-1"})(["overflow:auto;position:fixed;width:","px;z-index:1;"," "," ",""],l,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-u.n5,"px;\n ")}),(function(e){return!e.height&&"\n height: 100%;\n "})),c=r.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-axgvn9-2"})(["padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;width:100%;",""],1*o.iI,o.cd*o.iI,o.cd*o.iI,1*o.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).light,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__ButtonsStyle",componentId:"sc-axgvn9-3"})(["margin-top:","px;width:100%;",""],o.cd*o.iI,(function(e){return"\n border-top: 1px solid ".concat((e.theme.borders||i.Z.borders).light,";\n ")})),p=r.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-axgvn9-4"})(["margin-left:","px;"],l)},94629:function(e,t,n){n.d(t,{Z:function(){return O}});var r=n(82394),i=n(21831),o=n(82684),u=n(50724),l=n(82555),a=n(97618),d=n(70613),c=n(92272),s=n(68899),p=n(28598);function f(e,t){var n=e.children,r=e.noPadding;return(0,p.jsx)(s.HS,{noPadding:r,ref:t,children:n})}var h=o.forwardRef(f),b=n(62547),g=n(82571),m=n(77417),v=n(46684),y=n(75375);function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t){e.addProjectBreadcrumbToCustomBreadcrumbs;var n=e.after,r=e.afterHeader,o=e.afterHidden,f=e.afterWidth,x=e.afterWidthOverride,w=e.appendBreadcrumbs,O=e.before,Z=e.beforeHeader,_=e.beforeWidth,P=e.breadcrumbs,k=e.children,I=e.contained,C=e.errors,S=e.headerMenuItems,A=e.headerOffset,D=e.hideAfterCompletely,N=e.mainContainerHeader,M=e.navigationItems,E=e.setAfterHidden,q=e.setAfterWidth,B=e.setBeforeWidth,T=e.setErrors,H=e.subheaderChildren,W=e.subheaderNoPadding,R=e.title,F=e.uuid,U=(0,y.Z)(F,{beforeResizeOffset:y.H,setWidthAfter:q,setWidthBefore:B,widthAfter:f,widthBefore:_,widthOverrideAfter:x}),L=U.mainContainerRef,z=U.mousedownActiveAfter,G=U.mousedownActiveBefore,Y=U.setMousedownActiveAfter,V=U.setMousedownActiveBefore,J=U.setWidthAfter,K=U.setWidthBefore,X=U.widthAfter,Q=U.widthBefore,$=(0,m.Z)().project,ee=[];return P&&ee.push.apply(ee,(0,i.Z)(P)),null!=P&&P.length&&!w||!$||null!=P&&P.length||ee.unshift({bold:!w,label:function(){return R}}),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(d.Z,{title:R}),(0,p.jsx)(c.Z,{breadcrumbs:ee,menuItems:S}),(0,p.jsxs)(s.Nk,{ref:t,children:[0!==(null==M?void 0:M.length)&&(0,p.jsx)(s.lm,{showMore:!0,children:(0,p.jsx)(g.Z,{navigationItems:M,showMore:!0})}),(0,p.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(b.Z,{after:n,afterHeader:r,afterHeightOffset:v.Mz,afterHidden:o,afterMousedownActive:z,afterWidth:X,before:O,beforeHeader:Z,beforeHeightOffset:v.Mz,beforeMousedownActive:G,beforeWidth:O?Q:s.k1,contained:I,headerOffset:A,hideAfterCompletely:!n||D,leftOffset:O?s.k1:null,mainContainerHeader:N,mainContainerRef:L,setAfterHidden:E,setAfterMousedownActive:Y,setAfterWidth:J,setBeforeMousedownActive:V,setBeforeWidth:K,children:[H&&(0,p.jsx)(h,{noPadding:W,children:H}),k]})})]}),C&&(0,p.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null==T?void 0:T(null)},children:(0,p.jsx)(l.Z,j(j({},C),{},{onClose:function(){return null==T?void 0:T(null)}}))})]})}var O=o.forwardRef(w)},72226:function(e,t,n){var r=n(82394),i=n(38276),o=n(75499),u=n(30160),l=n(17488),a=n(70515),d=n(28598);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.objectAttributes,n=e.originalAttributes,c=e.setObjectAttributes;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(i.Z,{mb:1,px:a.cd,children:[(0,d.jsx)(u.ZP,{bold:!0,children:"Outdated after"}),(0,d.jsx)(u.ZP,{muted:!0,small:!0,children:"After the global data product successfully completes running, how long after that will the global data product be outdated?"})]}),(0,d.jsx)(o.Z,{columnFlex:[null,1],columns:[{uuid:"Unit"},{uuid:"Value"}],rows:[{uuid:"seconds"},{uuid:"weeks"},{uuid:"months"},{uuid:"years"}].map((function(e){var i,o,a=e.uuid,p=null==t||null===(i=t.outdated_after)||void 0===i?void 0:i[a],f=null==n||null===(o=n.outdated_after)||void 0===o?void 0:o[a];return[(0,d.jsxs)(u.ZP,{default:!0,monospace:!0,children:[a," ",f&&(0,d.jsxs)(u.ZP,{inline:!0,monospace:!0,muted:!0,children:["(default: ",f,")"]})]},"label-".concat(a)),(0,d.jsx)(l.Z,{compact:!0,monospace:!0,onChange:function(e){return c((function(t){var n;return s(s({},t),{},{outdated_after:s(s({},null==t?void 0:t.outdated_after),{},(0,r.Z)({},a,0===(null===(n=e.target.value)||void 0===n?void 0:n.length)?null:Number(e.target.value)))})}))},placeholder:"Enter a number",primary:!0,setContentOnMount:!0,small:!0,type:"number",value:null==p?"":p},"input-".concat(a))]}))})]})}},29644:function(e,t,n){var r=n(82394),i=n(44085),o=n(38276),u=n(75499),l=n(30160),a=n(17488),d=n(70515),c=n(81728),s=n(86735),p=n(28598);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.objectAttributes,n=e.originalAttributes,f=e.setObjectAttributes;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(o.Z,{mb:1,px:d.cd,children:[(0,p.jsxs)(l.ZP,{bold:!0,children:["Outdated starting at ",(0,p.jsx)(l.ZP,{inline:!0,muted:!0,children:"(optional)"})]}),(0,p.jsx)(l.ZP,{muted:!0,small:!0,children:"If enough time has passed since the last global data product has ran successfully and the global data product is determined to be outdated, then you can configure it to be outdated at a specific date or time."}),(0,p.jsx)("div",{style:{marginTop:4},children:(0,p.jsxs)(l.ZP,{muted:!0,small:!0,children:["For example, let’s say the global data product is outdated after 12 hours. The last successful run was yesterday at 18:00. The global data product will be outdated today at 06:00. However, if the ",(0,p.jsx)(l.ZP,{bold:!0,inline:!0,muted:!0,small:!0,children:"Outdated starting at"})," has a value of 17 for ",(0,p.jsx)(l.ZP,{bold:!0,inline:!0,muted:!0,small:!0,children:"Hour of day"}),", then the global data product won’t run again until today at 17:00."]})})]}),(0,p.jsx)(u.Z,{columnFlex:[null,1],columns:[{uuid:"Unit"},{uuid:"Value"}],rows:[{uuid:"second_of_minute",values:(0,s.w6)(60).map((function(e,t){return{uuid:t,value:t}}))},{uuid:"minute_of_hour",values:(0,s.w6)(60).map((function(e,t){return{uuid:t,value:t}}))},{uuid:"hour_of_day",values:(0,s.w6)(24).map((function(e,t){return{uuid:t,value:t}}))},{uuid:"day_of_week",values:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((function(e,t){return{uuid:e,value:t}}))},{uuid:"day_of_month",values:(0,s.w6)(31).map((function(e,t){return{uuid:t+1,value:t+1}}))},{uuid:"day_of_year",values:(0,s.w6)(365).map((function(e,t){return{uuid:t+1,value:t+1}}))},{uuid:"week_of_month",values:(0,s.w6)(5).map((function(e,t){return{uuid:t+1,value:t+1}}))},{uuid:"week_of_year",values:(0,s.w6)(52).map((function(e,t){return{uuid:t+1,value:t+1}}))},{uuid:"month_of_year",values:["January","February","March","April","May","June","July","August","September","October","November","December"].map((function(e,t){return{uuid:e,value:t+1}}))}].map((function(e){var o,u,d,s=e.uuid,b=e.values,g=null==t||null===(o=t.outdated_starting_at)||void 0===o?void 0:o[s],m=null==n||null===(u=n.outdated_starting_at)||void 0===u?void 0:u[s],v={compact:!0,key:"outdated-starting-at-input-".concat(s),monospace:!0,onChange:function(e){return f((function(t){var n;return h(h({},t),{},{outdated_starting_at:h(h({},null==t?void 0:t.outdated_starting_at),{},(0,r.Z)({},s,0===(null===(n=e.target.value)||void 0===n?void 0:n.length)?null:Number(e.target.value)))})}))},primary:!0,small:!0,value:null==g?"":g};return d=b?(0,p.jsx)(i.Z,h(h({},v),{},{placeholder:"Select a value",children:b.map((function(e){var t=e.uuid,n=e.value;return(0,p.jsx)("option",{value:n,children:t},n)}))})):(0,p.jsx)(a.Z,h(h({},v),{},{placeholder:"Enter a number",setContentOnMount:!0,type:"number"})),[(0,p.jsxs)(l.ZP,{default:!0,monospace:!0,children:[(0,c.vg)(s)," ",m&&(0,p.jsxs)(l.ZP,{inline:!0,monospace:!0,muted:!0,children:["(default: ",m,")"]})]},"outdated-starting-at-label-".concat(s)),d]}))})]})}},46209:function(e,t,n){var r=n(82394),i=n(12691),o=n.n(i),u=n(70652),l=n(48670),a=n(38276),d=n(75499),c=n(30160),s=n(17488),p=n(70515),f=n(28598);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.blocks,n=e.objectAttributes,i=e.originalAttributes,h=e.setObjectAttributes;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(a.Z,{mb:1,px:p.cd,children:[(0,f.jsx)(c.ZP,{bold:!0,children:"Block data to output"}),(0,f.jsx)(c.ZP,{muted:!0,small:!0,children:"The data output from the block(s) you select below will be the data product that is returned when a downstream entity is requesting data from this global data product."}),(0,f.jsx)("div",{style:{marginTop:4},children:(0,f.jsx)(c.ZP,{muted:!0,small:!0,children:"When requesting data from this global data product, the selected block(s) will return data from its most recent partition. You can override this by adding a value in the partitions setting. For example, if you set the partitions value to 5, then the selected block will return data from its 5 most recent partitions. If you set the partitions value to 0, then all the partitions will be returned."})})]}),(0,f.jsx)(d.Z,{columnFlex:[null,1,null],columns:[{label:function(){return""},uuid:"selected"},{uuid:"Block UUID"},{uuid:"Partitions"}],rows:null==t?void 0:t.map((function(e){var t,a=e.uuid,d=null==n?void 0:n.settings,p=null==d?void 0:d[a],g=null==p?void 0:p.partitions,m=null==i||null===(t=i.settings)||void 0===t?void 0:t[a],v=null==m?void 0:m.partitions,y=!!p||!!m;return[(0,f.jsx)(u.Z,{checked:y,onClick:function(){return function(e){h((function(t){var n=(null==t?void 0:t.settings)||{};return e?n[a]={}:null==n||delete n[a],b(b({},t),{},{settings:n})}))}(!y)}},"selected--".concat(a)),(0,f.jsxs)("div",{children:[(0,f.jsx)(o(),{as:"/pipelines/".concat(null==n?void 0:n.object_uuid,"/edit?block_uuid=").concat(a),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,f.jsx)(l.Z,{monospace:!0,openNewWindow:!0,sameColorAsText:!0,children:a})})," ",v&&(0,f.jsxs)(c.ZP,{inline:!0,monospace:!0,muted:!0,children:["(default: ",v,")"]})]},"block-uuid-".concat(a)),(0,f.jsx)(s.Z,{compact:!0,monospace:!0,onChange:function(e){return h((function(t){var n,i;return b(b({},t),{},{settings:b(b({},null==t?void 0:t.settings),{},(0,r.Z)({},a,b(b({},null==t||null===(n=t.settings)||void 0===n?void 0:n[a]),{},{partitions:0===(null===(i=e.target.value)||void 0===i?void 0:i.length)?null:Number(e.target.value)})))})}))},placeholder:"1",primary:!0,setContentOnMount:!0,small:!0,type:"number",value:null==g?"":g},"input-".concat(a))]}))})]})}},19396:function(e,t,n){var r=n(82394),i=n(75582),o=n(12691),u=n.n(o),l=n(21764),a=n(82684),d=n(83455),c=n(34376),s=n(71180),p=n(15338),f=n(97618),h=n(55485),b=n(8666),g=n(85854),m=n(48670),v=n(72226),y=n(29644),x=n(27966),j=n(44085),w=n(46209),O=n(38276),Z=n(30160),_=n(17488),P=n(29624),k=n(62547),I=n(35686),C=n(98464),S=n(11302),A=n(70515),D=n(68899),N=n(81728),M=n(72619),E=n(86735),q=n(23780),B=n(28598);function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.globalDataProduct,n=e.isNew,r=(0,c.useRouter)(),o=(0,q.VI)(null,{},[],{uuid:"GlobalDataProductDetail"}),T=(0,i.Z)(o,1)[0],W=(0,a.useState)(!1),R=W[0],F=W[1],U=(0,a.useState)(600),L=U[0],z=U[1],G=(0,a.useState)(null),Y=G[0],V=G[1],J=(0,a.useCallback)((function(e){V(e)}),[]),K=(0,C.Z)(t);(0,a.useEffect)((function(){null!=t&&t.uuid&&(null==K?void 0:K.uuid)===(null==t?void 0:t.uuid)||V(t)}),[t,K]);var X=(0,a.useMemo)((function(){return!(null!=Y&&Y.uuid)}),[Y]),Q=(0,d.Db)((function(e){return I.ZP.global_data_products.useUpdate(n?null==Y?void 0:Y.uuid:null==t?void 0:t.uuid)(e)}),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(e){var i=e.global_data_product;n||null!=t&&t.uuid&&(null==i?void 0:i.uuid)!==(null==t?void 0:t.uuid)?r.replace("/global-data-products/[...slug]","/global-data-products/".concat(null==i?void 0:i.uuid)):(V(i),l.Am.success("Global data product successfully saved.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:"custom_pipeline_template"}))},onErrorCallback:function(e,t){return T({errors:t,response:e})}})}}),$=(0,i.Z)(Q,2),ee=$[0],te=$[1].isLoading,ne=I.ZP.pipelines.detail(b.b.PIPELINE===(null==t?void 0:t.object_type)?null==t?void 0:t.object_uuid:null).data,re=(0,a.useMemo)((function(){return null==ne?void 0:ne.pipeline}),[ne]),ie=(0,a.useMemo)((function(){return(null==re?void 0:re.blocks)||[]}),[re]),oe=I.ZP.pipelines.list(!n&&null!=t&&t.repo_path?{repo_path:null==t?void 0:t.repo_path}:{}).data,ue=(0,a.useMemo)((function(){return(0,E.YC)((null==oe?void 0:oe.pipelines)||[],"uuid")}),[oe]),le=(0,a.useMemo)((function(){return(0,B.jsxs)(h.ZP,{flexDirection:"column",fullHeight:!0,children:[(0,B.jsxs)(f.Z,{flexDirection:"column",children:[(0,B.jsxs)(O.Z,{mt:A.Mq,px:A.cd,children:[(0,B.jsxs)(O.Z,{mb:1,children:[(0,B.jsx)(Z.ZP,{bold:!0,children:"UUID"}),(0,B.jsx)(Z.ZP,{muted:!0,small:!0,children:"Unique identifier for this global data product. This value must be unique across all global data products."})]}),(0,B.jsx)(_.Z,{monospace:!0,onChange:function(e){return J((function(t){return H(H({},t),{},{uuid:e.target.value})}))},placeholder:"e.g. a unique identifier",primary:!0,setContentOnMount:!0,value:(null==Y?void 0:Y.uuid)||""})]}),(0,B.jsxs)(O.Z,{mt:A.Mq,px:A.cd,children:[(0,B.jsxs)(O.Z,{mb:1,children:[(0,B.jsx)(Z.ZP,{bold:!0,children:"Object type"}),(0,B.jsx)(Z.ZP,{muted:!0,small:!0,children:"Pipeline, block, etc. Currently, only pipeline is supported."})]}),(0,B.jsx)(j.Z,{onChange:function(e){return J((function(t){return H(H({},t),{},{object_type:e.target.value})}))},placeholder:"Only pipeline is currently supported",primary:!0,value:(null==Y?void 0:Y.object_type)||"",children:[b.b.PIPELINE].map((function(e){return(0,B.jsx)("option",{value:e,children:(0,N.kC)(e)},e)}))})]}),(0,B.jsxs)(O.Z,{mt:A.Mq,px:A.cd,children:[(0,B.jsxs)(O.Z,{mb:1,children:[(0,B.jsx)(Z.ZP,{bold:!0,children:"Object UUID"}),(0,B.jsxs)(Z.ZP,{muted:!0,small:!0,children:["The UUID of the ",(null==Y?void 0:Y.object_type)||"object type"," that this global data product represents."]})]}),(0,B.jsx)(j.Z,{monospace:!0,onChange:function(e){return J((function(t){return H(H({},t),{},{object_uuid:e.target.value})}))},placeholder:"Select object UUID",primary:!0,value:(null==Y?void 0:Y.object_uuid)||"",children:null==ue?void 0:ue.map((function(e){var t=e.uuid;return(0,B.jsx)("option",{value:t,children:t},t)}))}),b.b.PIPELINE===(null==Y?void 0:Y.object_type)&&(null==Y?void 0:Y.object_uuid)&&(0,B.jsx)(O.Z,{mt:1,children:(0,B.jsxs)(Z.ZP,{muted:!0,small:!0,children:["View pipeline"," ",(0,B.jsx)(u(),{as:"/pipelines/".concat(null==Y?void 0:Y.object_uuid,"/edit"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,B.jsx)(m.Z,{bold:!0,inline:!0,monospace:!0,openNewWindow:!0,small:!0,children:null==Y?void 0:Y.object_uuid})}),"."]})})]}),!n&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(O.Z,{mt:A.Mq,children:(0,B.jsx)(v.Z,{objectAttributes:Y,setObjectAttributes:J})}),(0,B.jsx)(O.Z,{mt:A.Mq,children:(0,B.jsx)(y.Z,{objectAttributes:Y,setObjectAttributes:J})}),(null==ie?void 0:ie.length)>=1&&(0,B.jsx)(O.Z,{mt:A.Mq,children:(0,B.jsx)(w.Z,{blocks:ie,objectAttributes:Y,setObjectAttributes:J})})]})]}),(0,B.jsx)(S.ig,{children:(0,B.jsx)(O.Z,{p:A.cd,children:(0,B.jsx)(h.ZP,{children:(0,B.jsxs)(s.ZP,{disabled:X,fullWidth:!0,loading:te,onClick:function(){return ee({global_data_product:Y})},primary:!0,children:[n&&"Create global data product",!n&&"Save global data product"]})})})})]})}),[ie,X,te,n,Y,ue,J,ee]),ae=I.ZP.pipeline_schedules.list({global_data_product_uuid:null==t?void 0:t.uuid},{},{pauseFetch:!(null!=t&&t.uuid)}).data,de=(0,a.useMemo)((function(){return(null==ae?void 0:ae.pipeline_schedules)||[]}),[ae]),ce=I.ZP.pipeline_runs.list({global_data_product_uuid:null==t?void 0:t.uuid},{},{pauseFetch:!(null!=t&&t.uuid)}).data,se=(0,a.useMemo)((function(){return(null==ce?void 0:ce.pipeline_runs)||[]}),[ce]);return(0,B.jsx)(k.Z,{before:le,beforeHeader:(0,B.jsx)(O.Z,{px:A.cd,children:(0,B.jsx)(Z.ZP,{children:"Global data product attributes"})}),beforeHidden:R,beforeWidth:L,excludeOffsetFromBeforeDraggableLeft:!0,leftOffset:D.k1,setBeforeHidden:F,setBeforeWidth:z,children:!n&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(O.Z,{p:A.cd,children:(0,B.jsx)(g.Z,{children:"Triggers"})}),(0,B.jsx)(p.Z,{light:!0}),(0,B.jsx)(P.Z,{disableActions:!0,pipeline:re,pipelineSchedules:de}),(0,B.jsx)(O.Z,{p:A.cd,children:(0,B.jsx)(g.Z,{children:"Runs"})}),(0,B.jsx)(p.Z,{light:!0}),(0,B.jsx)(x.Z,{hideTriggerColumn:!0,pipelineRuns:se})]})})}},93808:function(e,t,n){n.d(t,{Z:function(){return k}});var r=n(77837),i=n(26304),o=n(62243),u=n(29385),l=n(80022),a=n(13692),d=n(93189),c=n(15544),s=n(82394),p=n(38860),f=n.n(p),h=n(82684),b=n(56663),g=n.n(b),m=n(40761),v=n(34661),y=n(36105),x=n(50178),j=n(69419),w=n(28598),O=["auth"];function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e){var t=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 n,r=(0,c.Z)(e);if(t){var i=(0,c.Z)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,d.Z)(this,n)}}function k(e){return function(t){(0,a.Z)(c,t);var n,d=P(c);function c(){var e;(0,o.Z)(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e=d.call.apply(d,[this].concat(n)),(0,s.Z)((0,l.Z)(e),"state",{auth:new m.Z(e.props.token)}),e}return(0,u.Z)(c,[{key:"componentDidMount",value:function(){this.setState({auth:new m.Z(this.props.token)})}},{key:"render",value:function(){var t=this.props,n=(t.auth,(0,i.Z)(t,O));return(0,w.jsx)(e,_({auth:this.state.auth},n))}}],[{key:"getInitialProps",value:(n=(0,r.Z)(f().mark((function t(n){var r,i,o,u,l,a,d,c,s;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=g()(n),i=(0,x.ex)(n),o=i.id,u=r[v.Mv],l=r[y.qt],a=new m.Z(u),d=_(_({},n),{},{auth:a,currentGroupId:o,theme:l}),(0,x.YB)(n)&&a.isExpired&&(console.log("OAuth token has expired."),c=_(_({},n.query),{},{redirect_url:n.asPath}),(0,j.nL)("/sign-in?".concat((0,j.uM)(c)),n.res)),!e.getInitialProps){t.next=12;break}return t.next=10,e.getInitialProps(d);case 10:return s=t.sent,t.abrupt("return",_(_({},s),{},{auth:a,currentGroupId:o,theme:l}));case 12:return t.abrupt("return",d);case 13:case"end":return t.stop()}}),t)}))),function(e){return n.apply(this,arguments)})}]),c}(h.Component)}},8666:function(e,t,n){var r;n.d(t,{b:function(){return r}}),function(e){e.BLOCK="block",e.PIPELINE="pipeline"}(r||(r={}))},80022:function(e,t,n){function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},15544:function(e,t,n){function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},13692:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(61049);function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,r.Z)(e,t)}},93189:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(12539),i=n(80022);function o(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
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(92272),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 j(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 P(e,n){e.addProjectBreadcrumbToCustomBreadcrumbs;var r=e.after,t=e.afterHeader,o=e.afterHidden,p=e.afterWidth,y=e.afterWidthOverride,P=e.appendBreadcrumbs,k=e.before,I=e.beforeHeader,w=e.beforeWidth,S=e.breadcrumbs,Z=e.children,x=e.contained,M=e.errors,E=e.headerMenuItems,A=e.headerOffset,N=e.hideAfterCompletely,R=e.mainContainerHeader,B=e.navigationItems,C=e.setAfterHidden,T=e.setAfterWidth,_=e.setBeforeWidth,H=e.setErrors,L=e.subheaderChildren,D=e.subheaderNoPadding,W=e.title,G=e.uuid,q=(0,m.Z)(G,{beforeResizeOffset:m.H,setWidthAfter:T,setWidthBefore:_,widthAfter:p,widthBefore:w,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 S&&ee.push.apply(ee,(0,i.Z)(S)),null!=S&&S.length&&!P||!$||null!=S&&S.length||ee.unshift({bold:!P,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:E}),(0,f.jsxs)(d.Nk,{ref:n,children:[0!==(null==B?void 0:B.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(g.Z,{navigationItems:B,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:A,hideAfterCompletely:!r||N,leftOffset:k?d.k1:null,mainContainerHeader:R,mainContainerRef:F,setAfterHidden:C,setAfterMousedownActive:U,setAfterWidth:V,setBeforeMousedownActive:Y,setBeforeWidth:J,children:[L&&(0,f.jsx)(h,{noPadding:D,children:L}),Z]})})]}),M&&(0,f.jsx)(s.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null==H?void 0:H(null)},children:(0,f.jsx)(u.Z,j(j({},M),{},{onClose:function(){return null==H?void 0:H(null)}}))})]})}var k=o.forwardRef(P)},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),j=r(85010),P=r(72619),k=r(19183),I=r(28598);function w(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function S(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?w(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function Z(e,n){var r=e.after,t=e.afterHidden,b=e.afterWidth,g=e.before,O=e.beforeWidth,w=e.breadcrumbs,Z=e.buildSidekick,x=e.children,M=e.errors,E=e.headline,A=e.pageName,N=e.pipeline,R=e.setErrors,B=e.subheader,C=e.subheaderBackground,T=e.subheaderBackgroundImage,_=e.subheaderButton,H=e.subheaderNoPadding,L=e.subheaderText,D=e.title,W=e.uuid,G=(0,k.i)().height,q=(0,s.useRouter)().query.pipeline,F=null==N?void 0:N.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,P.bB)(z,R)}),[z,R]);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"}}]),w?(e.push({label:function(){return K.uuid},linkProps:{as:"/pipelines/".concat(F,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,i.Z)(w)),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}),[w,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,j.H)(A,K,q),ref:n,subheaderChildren:void 0!==B&&B,subheaderNoPadding:H,title:K?D?D(K):K.name:null,uuid:W,children:[(_||L)&&(0,I.jsx)(p.Z,{mb:v.Mq,mt:v.cd,mx:v.cd,children:(0,I.jsx)(m,{background:C,backgroundImage:T,children:(0,I.jsxs)(d.ZP,{alignItems:"center",children:[_,L&&(0,I.jsx)(p.Z,{ml:3}),L]})})}),E&&(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:E}),(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==R?void 0:R(null)},children:(0,I.jsx)(a.Z,S(S({},M),{},{onClose:function(){return null==R?void 0:R(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}},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),j=r(69419),P=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 w(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 S(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=S(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,P.jsx)(e,w({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=w(w({},r),{},{auth:c,currentGroupId:o,theme:u}),(0,y.YB)(r)&&c.isExpired&&(console.log("OAuth token has expired."),a=w(w({},r.query),{},{redirect_url:r.asPath}),(0,j.nL)("/sign-in?".concat((0,j.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",w(w({},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)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[449],{54750:function(e,n,t){var r=t(82394),i=t(12691),l=t.n(i),o=t(55485),a=t(48670),s=t(44085),c=t(38276),u=t(4190),d=t(30160),h=t(72473),p=t(70515),f=t(28598),v=t(82684);function m(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 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,r.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,r=n.length,i=[];return n.forEach((function(e,n){var m=e.bold,j=e.danger,g=e.label,b=e.linkProps,y=e.loading,Z=e.monospace,C=void 0===Z||Z,M=e.onClick,F=e.options,O=g();r>=2&&n>=1&&i.push((0,f.jsx)(c.Z,{mx:1,children:(0,f.jsx)(h.ChevronRight,{muted:!0})},"divider-".concat(O)));var P=(0,f.jsx)(d.ZP,{bold:m,danger:j,default:!m,monospace:C,noWrapping:!0,children:O});if((null==F?void 0:F.length)>=1){var w,H,_=null==F?void 0:F.find((function(e){return!!e.selected}));if(_)(w=((null==_||null===(H=_.uuid)||void 0===H?void 0:H.length)||0)*p.ro)&&(w+=3*p.iI,y&&(w+=2*p.iI));P=(0,f.jsx)(o.ZP,{alignItems:"center",children:(0,f.jsx)(s.Z,{afterIcon:y?(0,f.jsx)(u.Z,{inverted:!0,small:!0}):null,danger:j,defaultTextColor:!m,maxWidth:w||null,monospace:C,noBackground:!0,noBorder:!0,onChange:function(e){var n,t=e.target.value,r=null==F?void 0:F.find((function(e){return e.uuid===t}));r&&null!=r&&r.onClick&&(null==r||null===(n=r.onClick)||void 0===n||n.call(r,t))},paddingHorizontal:0,paddingVertical:0,value:(null==_?void 0:_.uuid)||"",children:null==F?void 0:F.map((function(e){var n=e.label,t=e.selected,r=e.uuid,i=n?null==n?void 0:n():r;return(0,f.jsx)("option",{value:r,children:t?r:i},r)}))})})}var k=(0,f.jsx)(c.Z,{ml:t||0!==n?0:2,children:P},"breadcrumb-".concat(O));b?k=(0,v.createElement)(l(),x(x({},b),{},{key:"breadcrumb-link-".concat(O),passHref:!0}),(0,f.jsx)(a.Z,{block:!0,default:!m,noOutline:!0,sameColorAsText:m,children:k})):M&&(k=(0,f.jsx)(a.Z,{block:!0,default:!m,noOutline:!0,onClick:M,preventDefault:!0,sameColorAsText:m,children:k})),i.push(k)})),(0,f.jsx)(o.ZP,{alignItems:"center",children:i})}},92272:function(e,n,t){t.d(n,{Z:function(){return qe}});var r=t(21831),i=t(82394),l=t(75582),o=t(12691),a=t.n(o),s=t(9518),c=t(82684),u=t(34376),d=t(40761),h=t(54750),p=t(71180),f=t(39867),v=t(50724),m=t(58036),x=t(97618),j=t(55485),g=t(70374),b=t(56085),y=t(83455),Z=t(70652),C=t(44085),M=t(38276),F=t(4190),O=t(28026),P=t(30160),w=t(35576),H=t(17488),_=t(69650),k=t(35686),z=t(72473),D=t(44897),I=t(42631),S=t(31353),E=t(47041),A=t(70515),T=s.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;"],S.Mz),L=s.default.div.withConfig({displayName:"GitActionsstyle__TerminalStyle",componentId:"sc-ynrhio-1"})(["height:calc(75vh - ","px);position:relative;"],S.Mz),N=s.default.div.withConfig({displayName:"GitActionsstyle__PanelStyle",componentId:"sc-ynrhio-2"})(["height:75vh;min-height:300px;width:75vw;backgroundColor:#232429;border-radius:","px;",""],I.n_,(function(e){return"\n background-color: ".concat((e.theme.background||D.Z.background).panel,";\n ")})),U=s.default.div.withConfig({displayName:"GitActionsstyle__OutputStyle",componentId:"sc-ynrhio-3"})([""," padding:","px;height:calc(75vh - ","px);overflow-y:auto;"],E.w5,2*A.iI,S.Mz),B=t(4383),R=t(72619),W=t(86735),G=t(50178),q=t(28598);function Y(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 J(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Y(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var V={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,r=(e.fetchBranch,(0,u.useRouter)()),i=(0,c.useState)(),o=i[0],a=i[1],s=(0,c.useState)(),d=s[0],h=s[1],f=(0,c.useState)(),v=f[0],m=f[1],x=(0,c.useState)(),g=x[0],D=x[1],I=(0,c.useState)(),S=I[0],E=I[1],A=(0,c.useState)(),Y=A[0],Q=A[1],$=k.ZP.git_branches.list({include_remote_branches:1}),X=$.data,K=$.isValidating,ee=$.mutate,ne=(0,c.useMemo)((function(){return null==X?void 0:X.git_branches}),[X]),te=k.ZP.syncs.list().data,re=(0,c.useMemo)((function(){var e;if(te)return null===(e=te.syncs)||void 0===e?void 0:e[0]}),[te]),ie=(0,y.Db)(k.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)(ie,2),oe=le[0],ae=le[1].isLoading,se=(0,y.Db)((function(){return k.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)}})}}),ce=(0,l.Z)(se,1)[0],ue=(0,y.Db)(k.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],pe=de[1].isLoading,fe=(0,y.Db)(k.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)(fe,2),me=ve[0],xe=ve[1].isLoading,je=(0,c.useState)(),ge=je[0],be=je[1],ye=(0,c.useState)([]),Ze=ye[0],Ce=ye[1],Me=(0,c.useState)([]),Fe=Me[0],Oe=Me[1],Pe=(0,c.useCallback)((function(){ce().then((function(e){var n=e.data,t=null==n?void 0:n.git_branch,r=null==t?void 0:t.status,i=null==t?void 0:t.modified_files,l=null==t?void 0:t.untracked_files;be(r),Ce(l),Oe(i)}))}),[ce]),we=(0,c.useMemo)((function(){return ae||pe||xe}),[ae,pe,xe]);(0,c.useEffect)((function(){K||Pe()}),[v,K,Pe]);var He=(0,c.useMemo)((function(){return(0,G.PR)(null==r?void 0:r.basePath)||{}}),[null==r?void 0:r.basePath]),_e=(0,c.useMemo)((function(){var e={term_name:null!=He&&He.id?"git_".concat(null==He?void 0:He.id):"git"};return null!=re&&re.repo_path&&(e.cwd=null==re?void 0:re.repo_path),e}),[null==re?void 0:re.repo_path,He]),ke=(0,b.ZP)((0,B.Ib)("terminal"),{shouldReconnect:function(){return!0}},"cwd"in _e),ze=ke.lastMessage,De=ke.sendMessage,Ie=(0,c.useCallback)((function(e){return(0,q.jsx)(Z.Z,{checked:((null==o?void 0:o.files)||[]).includes(e),label:(0,q.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),J(J({},n),{},{files:t})}))},small:!0},e)}),[o]),Se=(0,c.useMemo)((function(){return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(p.ZP,{onClick:function(){return a((function(e){return J(J({},e),{},{files:Fe.concat(Ze)})}))},children:"Include all changes"}),Fe&&Fe.length>0&&(0,q.jsxs)(M.Z,{mb:1,children:[(0,q.jsx)(M.Z,{my:1,children:(0,q.jsx)(P.ZP,{children:"Modified files"})}),Fe.map(Ie)]}),Ze&&Ze.length>0&&(0,q.jsxs)(M.Z,{mb:1,children:[(0,q.jsx)(M.Z,{my:1,children:(0,q.jsx)(P.ZP,{children:"Untracked files"})}),Ze.map(Ie)]})]})}),[Ie,Fe,Ze]),Ee=(0,c.useMemo)((function(){return(0,q.jsx)(M.Z,{p:2,children:we?(0,q.jsx)(F.Z,{color:"white"}):(0,q.jsxs)(q.Fragment,{children:["commit"===v&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(w.Z,{compact:!0,fullWidth:!0,label:"Commit message",monospace:!0,onChange:function(e){return a((function(n){return J(J({},n),{},{message:e.target.value})}))},required:!0,value:null==o?void 0:o.message}),(0,q.jsx)(M.Z,{mt:1}),(0,q.jsxs)(j.ZP,{children:[(0,q.jsx)(p.ZP,{borderLess:!0,onClick:function(){he({git_branch:J({action_type:"commit"},o)}).then((function(){Pe(),a(null)}))},success:!0,children:"Commit"}),(0,q.jsx)(M.Z,{mr:1}),(0,q.jsx)(p.ZP,{borderLess:!0,onClick:function(){he({git_branch:{action_type:"push"}})},primary:!0,children:"Push"})]})]}),"new_branch"===v&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(H.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,q.jsx)(M.Z,{mt:1}),(0,q.jsx)(p.ZP,{borderLess:!0,onClick:function(){oe({git_branch:o})},primary:!0,children:"Create"})]}),"clone"===v&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(P.ZP,{children:["Clone from ",(0,q.jsx)(P.ZP,{default:!0,inline:!0,children:null==re?void 0:re.remote_repo_link})," to ",(0,q.jsx)(P.ZP,{default:!0,inline:!0,children:null==re?void 0:re.repo_path}),". This ",(0,q.jsx)(P.ZP,{danger:!0,inline:!0,children:"will overwrite"})," any existing data in the local repository."]}),(0,q.jsx)(M.Z,{mt:1}),(0,q.jsx)(p.ZP,{borderLess:!0,onClick:function(){me({git_branch:{action_type:"clone"}})},primary:!0,children:"Clone"})]}),"pull"===v&&(0,q.jsx)(p.ZP,{borderLess:!0,onClick:function(){me({git_branch:{action_type:"pull"}})},primary:!0,children:"Pull"}),"reset_hard"===v&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(M.Z,{mb:1,children:(0,q.jsx)(P.ZP,{children:d||"This will reset your local branch to match the remote branch."})}),d?(0,q.jsx)(p.ZP,{borderLess:!0,onClick:function(){h(null),me({git_branch:{action_type:"reset"}})},warning:!0,children:"Confirm"}):(0,q.jsx)(p.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,q.jsx)(M.Z,{mt:1,children:!we&&(0,q.jsxs)(q.Fragment,{children:[!S&&g&&(0,q.jsx)(P.ZP,{children:g}),S&&(0,q.jsx)(P.ZP,{preWrap:!0,danger:!0,children:S})]})})]})})}),[we,v,S,re,g,o,d,ge]),Ae=(0,c.useMemo)((function(){return(0,q.jsx)(O.Z,{lastMessage:ze,sendMessage:De})}),[ze,De]);return(0,q.jsxs)(N,{children:[(0,q.jsxs)(T,{children:[(0,q.jsx)(M.Z,{m:2,children:(0,q.jsxs)(j.ZP,{children:[(0,q.jsx)(C.Z,{beforeIcon:(0,q.jsx)(z.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,q.jsx)("option",{value:n,children:n},n)}))},"select_branch"),(0,q.jsx)(M.Z,{ml:2}),(0,q.jsxs)(C.Z,{compact:!0,onChange:function(e){e.preventDefault(),m(e.target.value),Q(!1),D(null),a(null)},value:v,children:[(0,q.jsx)("option",{value:"",children:"Select an action"}),Object.entries(V).map((function(e){var n=(0,l.Z)(e,2),t=n[0],r=n[1];return(0,q.jsx)("option",{value:t,children:r},t)}))]},"select_git_action")]})}),(0,q.jsx)(M.Z,{m:2,children:(0,q.jsxs)(j.ZP,{alignItems:"center",children:[(0,q.jsx)(P.ZP,{children:"UI"}),(0,q.jsx)(M.Z,{ml:1}),(0,q.jsx)(_.Z,{checked:!!Y,monotone:!0,onCheck:function(){return Q((function(e){return!e}))}}),(0,q.jsx)(M.Z,{ml:1}),(0,q.jsx)(P.ZP,{children:"Terminal"})]})})]}),(0,q.jsxs)(j.ZP,{children:[(0,q.jsx)("div",{style:{width:"50%"},children:(0,q.jsx)(U,{children:"commit"===v?Se:(0,q.jsx)(q.Fragment,{children:null==ge||null===(n=ge.split("\\n"))||void 0===n?void 0:n.map((function(e){return(0,q.jsx)(P.ZP,{monospace:!0,preWrap:!0,small:!0,children:e},e)}))})})}),(0,q.jsx)("div",{style:{width:"50%"},children:Y?(0,q.jsx)(L,{children:Ae}):Ee})]})]})},$=t(65186),X=t(68562),K=t(48670),ee=t(63637),ne=t(89515),te=t(82359),re=t(26304),ie="12px 20px",le="1px",oe=(0,s.default)(p.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 ")})),ae=s.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,le,(function(e){return(e.theme.borders||D.Z.borders).darkLight}),I.n_,(function(e){return(e.theme.borders||D.Z.borders).darkLight})),se=s.default.div.withConfig({displayName:"indexstyle__DropdownHeaderStyle",componentId:"sc-hssntx-2"})(["padding:",";background-color:",";"],ie,(function(e){return(e.theme.background||D.Z.background).panel})),ce=s.default.div.withConfig({displayName:"indexstyle__TimeListContainerStyle",componentId:"sc-hssntx-3"})(["height:","px;display:flex;gap:",";"],20*A.iI,le),ue=s.default.div.withConfig({displayName:"indexstyle__TimeColumnStyle",componentId:"sc-hssntx-4"})(["display:flex;flex-direction:column;align-items:center;flex:1;gap:",";"],le),de=s.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:",";"],ie,(function(e){return e.flexDirection||"unset"}),(function(e){return e.flexGrow||"unset"}),(function(e){return(e.theme.background||D.Z.background).dashboard})),he=s.default.div.withConfig({displayName:"indexstyle__ToggleGroupStyle",componentId:"sc-hssntx-6"})(["display:flex;flex-direction:column;"]),pe=(0,s.default)(de).withConfig({displayName:"indexstyle__ToggleDropdownCellStyle",componentId:"sc-hssntx-7"})(["justify-content:flex-start;gap:12px;padding-right:","px;"],1.25*A.iI),fe=["active","mountedCallback","time","timeZone"];function ve(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 me(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ve(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ve(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function xe(e){var n=e.active,t=e.mountedCallback,r=e.time,i=e.timeZone,l=(0,re.Z)(e,fe),o=(0,c.useRef)(null);return(0,c.useEffect)((function(){null!=o&&o.current&&t(o.current.offsetHeight)}),[t]),(0,q.jsx)(oe,me(me({},l),{},{active:n,borderLess:!0,borderRadius:"".concat(I.BG,"px"),compact:!0,highlightOnHoverAlt:!0,ref:o,transparent:!0,children:(0,q.jsx)(P.ZP,{inline:!0,monospace:!0,noWrapping:!0,small:!0,children:"".concat(r," ").concat(i)})}))}var je=(0,c.memo)(xe),ge=t(12468),be=t(63055),ye=t(72191),Ze=t(70320),Ce=t(79633),Me=t(3917),Fe=t(78419),Oe=t(53808);var Pe=t(23780);function we(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 He(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?we(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):we(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _e=[Me.Oh.UTC,Me.Oh.LOCAL];var ke=function(e){var n=e.disabled,t=e.disableTimezoneToggle,r=e.projectName,o=(0,c.useState)((0,Ze.qB)()),a=o[0],s=o[1],u=(0,c.useState)((0,Oe.U2)(Fe.kL,!1)),d=u[0],h=u[1],p=(0,c.useState)(!1),f=p[0],m=p[1],x=(0,c.useState)((0,Me.e)({includeSeconds:!0,timeZones:_e})),j=x[0],g=x[1],b=(0,c.useState)(0),Z=b[0],C=b[1],M=a?Me.Oh.LOCAL:Me.Oh.UTC,F=window.innerWidth<be.nc,O=(0,Pe.VI)(null,{},[],{uuid:"components/ServerTimeDropdown"}),w=(0,l.Z)(O,1)[0],H=(0,y.Db)(k.ZP.projects.useUpdate(r),{onSuccess:function(e){return(0,R.wD)(e,{onErrorCallback:function(e,n){return w({errors:n,response:e})}})}}),z=(0,l.Z)(H,1)[0],D=(0,c.useCallback)((function(){m((function(e){return!e}))}),[]),I=(0,c.useCallback)((function(e){C(e)}),[]),S=(0,c.useCallback)((function(){var e=(0,Me.e)({includeSeconds:d,timeZones:_e});g((function(n){return n.size===e.size&&n.get(Me.Oh.UTC)===e.get(Me.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;s((0,Ze.hY)(e)),z({project:{features:(0,i.Z)({},te.d.LOCAL_TIMEZONE,e)}})},uuid:te.d.LOCAL_TIMEZONE},{checked:d,label:"Include seconds in current time",onCheck:function(){var e;h((e=!d,!!(0,Oe.uN)(Fe.kL,e)))},uuid:"current_time_seconds"}];return(0,c.useEffect)((function(){var e=setInterval((function(){S()}),1e3);return function(){return clearInterval(e)}}),[S]),(0,c.useEffect)((function(){S()}),[d,S]),j?(0,q.jsx)(v.Z,{onClickOutside:function(){return m(!1)},open:!0,children:(0,q.jsxs)("div",{style:{position:"relative"},children:[(0,q.jsx)(je,{active:f,disabled:F||n,mountedCallback:I,onClick:D,time:j.get(M),timeZone:(0,Me.WT)(M)}),!F&&f&&(0,q.jsxs)(ae,{top:Z,children:[(0,q.jsx)(se,{children:(0,q.jsx)(P.ZP,{bold:!0,muted:!0,uppercase:!0,children:"Current Time"})}),(0,q.jsx)(ce,{children:_e.map((function(e){return(0,q.jsxs)(ue,{children:[(0,q.jsx)(de,{children:(0,q.jsx)(P.ZP,{bold:!0,center:!0,muted:!0,uppercase:!0,children:"".concat(e).concat(e===Me.Oh.LOCAL?" - ".concat((0,Me.WT)(e)):"")})}),(0,q.jsxs)(de,{flexDirection:"column",flexGrow:3,children:[(0,q.jsx)(P.ZP,{bold:!0,center:!0,color:Ce.J$,largeLg:!0,children:j.get(e)}),(0,q.jsx)(P.ZP,{center:!0,muted:!0,small:!0,children:e===Me.Oh.UTC?"Universal Time":Me.mi[e]})]})]},e)}))}),(0,q.jsx)(he,{children:E.map((function(e){return(0,q.jsxs)(pe,{children:[(0,q.jsx)(_.Z,{checked:e.checked,compact:!0,disabled:e.disabled,onCheck:e.onCheck,purpleBackground:!e.disabled}),(0,q.jsx)(P.ZP,{children:e.label}),e.uuid===te.d.LOCAL_TIMEZONE&&(0,q.jsx)(ge.Z,He(He({},Ze.EB),{},{appearAbove:!0,appearBefore:!0,size:ye.bL}))]},e.label)}))})]})]})}):null},ze=t(59457),De=t(77417),Ie=t(42122);var Se=function(e){var n,t=e||{operation:null,pageType:null,pageUUID:null,resource:null,resourceID:null,resourceParent:null,resourceParentID:null,useProjectData:null},r=t.operation,i=t.pageType,l=t.pageUUID,o=t.resource,a=t.resourceID,s=t.resourceParent,d=t.resourceParentID,h=t.useProjectData,p=(0,De.Z)({pauseFetch:!!h}),f=(0,c.useMemo)((function(){return null!=h?h:p}),[h,p])||{featureEnabled:null,featureUUIDs:null,project:null},v=f.featureEnabled,m=f.featureUUIDs,x=f.project,j=(0,c.useMemo)((function(){return v&&m&&x&&(null==v?void 0:v(null==m?void 0:m.CUSTOM_DESIGN))}),[v,m,x]),g=(0,u.useRouter)(),b=null==g?void 0:g.asPath,y=null==g||null===(n=g.pathname)||void 0===n?void 0:n.replace(/^\/{1}/i,""),Z=null==g?void 0:g.query,C=(0,ze.Z)(k.ZP.custom_designs.detail,encodeURIComponent(y),(0,Ie.hB)({operation:r,page_path:encodeURIComponent(b),page_query:Z?JSON.stringify(Z||""):null,page_type:i,page_uuid:l,resource:o,resource_id:a,resource_parent:s,resource_parent_id:d}),{},{condition:function(){return j},delay:5e3}),M=C.data,F=C.mutate;return{design:(0,c.useMemo)((function(){return(null==M?void 0:M.custom_design)||[]}),[M]),fetchDesign:F,router:g,routerDetails:{asPath:b,pathname:y,query:Z}}},Ee=t(46684),Ae=t(16682),Te=t(68804),Le=s.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 ")})),Ne=t(95363),Ue=t(66472),Be=t(69419),Re=t(89538);function We(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 Ge(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?We(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):We(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var qe=function(e){var n,t=e.breadcrumbs,o=e.hideActions,b=e.menuItems,y=e.project,Z=e.version,C=(0,Pe.VI)(null,{},[],{uuid:"shared/Header"}),F=(0,l.Z)(C,1)[0],O=(0,c.useContext)(s.ThemeContext),w=(0,u.useRouter)(),H=(0,G.PR)(null==w?void 0:w.basePath),_=(0,c.useState)(null),D=_[0],I=_[1],S=(0,c.useState)(!1),E=S[0],T=S[1],L=(0,c.useState)(!1),N=L[0],U=L[1],B=(0,c.useState)(null),R=B[0],W=B[1],Y=(0,c.useState)(!1),J=Y[0],V=Y[1],re=(0,c.useState)(null),ie=re[0],le=re[1],oe=(0,c.useRef)(null),ae=(0,c.useRef)(null),se=(0,c.useRef)(null),ce=d.Z.isLoggedIn(),ue=(0,ze.Z)(k.ZP.git_branches.detail,"test",{_format:"with_basic_details"},{revalidateOnFocus:!1},{pauseFetch:(0,G.YB)()&&!ce},{delay:11e3}),de=ue.data,he=ue.mutate,pe=(0,c.useMemo)((function(){return(null==de?void 0:de.git_branch)||{}}),[de]),fe=pe.is_git_integration_enabled,ve=pe.name,me=Se().design,xe=(0,De.Z)({showError:o?null:F}),je=xe.featureEnabled,ge=xe.featureUUIDs,be=xe.isLoadingProject,ye=xe.isLoadingUpdate,Me=xe.project,Fe=xe.rootProject,Oe=xe.updateProject,we=(0,c.useMemo)((function(){return y||Me}),[Me,y]),He=(0,c.useMemo)((function(){return Z||(null==we?void 0:we.version)}),[we,Z]),_e=(0,c.useMemo)((function(){return Ae.WH.CLOSED===D||Ae.WH.OPEN===D||(null==je?void 0:je(null==ge?void 0:ge.COMMAND_CENTER))}),[D,je,ge]),We=!(0,Ie.Qr)(null==we?void 0:we.features_override);ae.current=we,(0,c.useCallback)((function(){_e?(0,Ue.WJ)():(T(!0),Oe({features:Ge(Ge({},(null==we?void 0:we.features)||{}),{},(0,i.Z)({},null==ge?void 0:ge.COMMAND_CENTER,!0))}).then((function(e){var n;if(null!=e&&null!==(n=e.data)&&void 0!==n&&n.error){var t;T(!1),F({errors:null==e||null===(t=e.data)||void 0===t?void 0:t.error,response:e})}else{var r=new CustomEvent(Te.YS.COMMAND_CENTER_ENABLED);window.dispatchEvent(r)}})))}),[_e,null==ge?void 0:ge.COMMAND_CENTER,null==we?void 0:we.features,F,Oe]);var qe=[];if(Fe&&qe.push({label:function(){return null==Fe?void 0:Fe.name},linkProps:{href:"/"}}),we){var Ye={label:function(){return null==we?void 0:we.name}};Fe?(Ye.loading=ye&&!E,Ye.options=Object.keys((null==Fe?void 0:Fe.projects)||{}).map((function(e){return{onClick:function(){Oe({activate_project:e}).then((function(e){var n;if(null!=e&&null!==(n=e.data)&&void 0!==n&&n.error){var t;F({errors:null==e||null===(t=e.data)||void 0===t?void 0:t.error,response:e})}else{var r,i,l,o=!(null==e||null===(r=e.data)||void 0===r||null===(i=r.project)||void 0===i||null===(l=i.features)||void 0===l||!l.display_local_timezone);(0,Ze.hY)(o),window.location.reload()}}))},selected:e===(null==we?void 0:we.name),uuid:e}}))):Ye.linkProps={href:"/"},qe.push(Ye)}else be||o||qe.push({bold:!0,danger:!0,label:function(){return"Error loading project configuration"}});var Je=(0,c.useMemo)((function(){return[].concat(qe,(0,r.Z)(t||[]))}),[qe,t,we]),Ve=w.query.pipeline,Qe=(we||{}).latest_version,$e=(0,c.useState)(null),Xe=$e[0],Ke=($e[1],(0,c.useMemo)((function(){var e,n,t=Ee.y7,r=(0,q.jsx)($.Z,{height:Ee.y7});if(null!=me&&null!==(e=me.components)&&void 0!==e&&null!==(n=e.header)&&void 0!==n&&n.media){var i,l,o=null==me||null===(i=me.components)||void 0===i||null===(l=i.header)||void 0===l?void 0:l.media;if(null!==Xe){var s=((null==Xe?void 0:Xe.width)||1)/((null==Xe?void 0:Xe.height)||1);t=Ee.sQ,r=(0,q.jsx)(Ee.XD,{height:Ee.sQ,width:Ee.sQ*s,url:(null==o?void 0:o.url)||(null==o?void 0:o.file_path)})}}return(0,q.jsx)(a(),{as:"/",href:"/",passHref:!0,children:(0,q.jsx)(K.Z,{block:!0,height:t,noHoverUnderline:!0,noOutline:!0,children:r})})}),[Xe,me])),en=o?[]:[{label:function(){return"Settings"},linkProps:{href:"/settings/workspace/preferences"},uuid:"user_settings"},{label:function(){return"Light mode"},linkProps:{href:"https://www.mage.ai/build?ref=oss",openNewWindow:!0},tag:"Pro",uuid:"light_mode"}];(0,G.YB)()&&en.push({label:function(){return"Sign out"},onClick:function(){d.Z.logout((function(){k.ZP.sessions.updateAsyncServer(null,1).then((function(){(0,Be.nL)("/sign-in")})).catch((function(){(0,Be.nL)("/")}))}),null==w?void 0:w.basePath)},uuid:"sign_out"});var nn=(0,Re.dd)((function(){return(0,q.jsx)(Q,{branch:ve,fetchBranch:he})}),{},[ve,he],{background:!0,uuid:"git_actions"}),tn=(0,l.Z)(nn,2),rn=tn[0],ln=(tn[1],(0,c.useMemo)((function(){return(null==ve?void 0:ve.length)>=21?"".concat(ve.slice(0,21),"..."):ve}),[ve])),on=(0,c.useMemo)((function(){return!(!H||null==H||!H.avatar)&&!/[A-Za-z0-9]+/.exec((null==H?void 0:H.avatar)||"")}),[H]),an=(0,c.useMemo)((function(){return!(!H||null==H||!H.avatar)&&!!/[A-Za-z0-9]+/.exec((null==H?void 0:H.avatar)||"")}),[H]),sn=(0,c.useMemo)((function(){var e;if(!H||null==H||!H.avatar)return(0,q.jsx)(ee.Z,{});var n={color:null==O||null===(e=O.content)||void 0===e?void 0:e.active,fontFamily:Ne.v$};return an?(n.fontSize=2*A.iI,n.lineHeight="".concat(2*A.iI,"px"),n.position="relative",n.top=1):n.fontSize=3*A.iI,(0,q.jsx)("div",{style:n,children:null==H?void 0:H.avatar})}),[an,H]);return(0,c.useEffect)((function(){var e=function(e){var n,t,r=e.detail;null!=r&&r.state&&(I(null==r?void 0:r.state),Ae.WH.MOUNTED===(null==r?void 0:r.state)&&(null!=ae&&null!==(n=ae.current)&&void 0!==n&&null!==(t=n.features)&&void 0!==t&&t[te.d.COMMAND_CENTER]||setTimeout((function(){(0,Ue.WJ)(),T(!1)}),1)))};return window.addEventListener(Te.Mt,e),function(){window.removeEventListener(Te.Mt,e)}}),[]),(0,q.jsx)(Ee.I5,{children:(0,q.jsx)(m.Z,{children:(0,q.jsxs)(j.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"space-between",children:[(0,q.jsxs)(x.Z,{alignItems:"center",children:[Ke,(0,q.jsx)(h.Z,{breadcrumbs:Je})]}),(0,q.jsxs)(x.Z,{alignItems:"center",children:[fe&&ve&&(0,q.jsx)(M.Z,{mr:1,children:(0,q.jsx)(X.ZP,{compact:!0,highlightOnHoverAlt:!0,noBackground:!0,noHoverUnderline:!0,onClick:rn,sameColorAsText:!0,title:ve,uuid:"Header/GitActions",children:(0,q.jsxs)(j.ZP,{alignItems:"center",children:[(0,q.jsx)(z.BranchAlt,{size:1.5*A.iI}),(0,q.jsx)(M.Z,{ml:1}),(0,q.jsx)(P.ZP,{monospace:!0,noWrapping:!0,small:!0,children:ln})]})})}),Qe&&He&&Qe!==He&&(0,q.jsx)(p.ZP,{backgroundColor:Ce.$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(Qe),children:(0,q.jsx)(P.ZP,{black:!0,bold:!0,children:"Update"})}),He&&void 0!==He&&(0,q.jsx)(M.Z,{px:1,children:(0,q.jsx)(K.Z,{href:"https://www.mage.ai/changelog",monospace:!0,noWrapping:!0,openNewWindow:!0,sameColorAsText:!0,small:!0,children:"v".concat(He)})}),(0,q.jsx)(M.Z,{ml:1,children:(0,q.jsx)(ke,{disableTimezoneToggle:We,disabled:o,projectName:null==we?void 0:we.name})}),(0,q.jsx)(M.Z,{ml:1,children:(0,q.jsx)(X.ZP,{beforeElement:(0,q.jsx)(z.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"})}),(0,q.jsx)(M.Z,{ml:1,children:(0,q.jsx)(X.ZP,{compact:!0,highlightOnHoverAlt:!0,inline:!0,linkProps:{as:"https://cloud.mage.ai/sign-up?ref=oss",href:"https://cloud.mage.ai/sign-up?ref=oss"},openNewTab:!0,noBackground:!0,noHoverUnderline:!0,sameColorAsText:!0,afterElement:(0,q.jsx)(z.MageProLetters,{size:24}),uuid:"Header/pro",children:"Try"})}),b&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(M.Z,{ml:2}),(0,q.jsx)(v.Z,{onClickOutside:function(){return W(null)},open:!0,style:{position:"relative"},children:(0,q.jsxs)(j.ZP,{children:[(0,q.jsx)(Le,{highlighted:0===R,onClick:function(){return W((function(e){return 0===e?null:0}))},onMouseEnter:function(){return W((function(e){return null!==e?0:null}))},ref:oe,children:(0,q.jsx)(P.ZP,{children:"Menu"})}),(0,q.jsx)(g.Z,{alternateBackground:!0,items:b,onClickCallback:function(){return W(null)},open:0===R,parentRef:oe,rightOffset:0,setConfirmationAction:le,setConfirmationDialogueOpen:V,uuid:"PipelineDetail/Header/menu"})]})}),(0,q.jsx)(v.Z,{onClickOutside:function(){return V(!1)},open:J,children:(0,q.jsx)(ne.Z,{danger:!0,onCancel:function(){return V(!1)},onClick:ie,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(Ve,"?"),width:40*A.iI})})]}),(ce||!(0,G.YB)())&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(M.Z,{ml:1}),(0,q.jsx)(v.Z,{onClickOutside:function(){return U(!1)},open:!0,style:{position:"relative"},children:(0,q.jsxs)(j.ZP,{alignItems:"flex-end",flexDirection:"column",children:[(0,q.jsx)(X.ZP,{compact:!0,highlightOnHoverAlt:!0,inline:!0,noBackground:!0,noHoverUnderline:!0,onClick:function(){return U(!0)},ref:se,uuid:"Header/menu",children:on&&(null==H||null===(n=H.avatar)||void 0===n?void 0:n.length)>=2?sn:(0,q.jsx)(f.Z,{color:Ce.Jm,size:4*A.iI,children:sn})}),(0,q.jsx)(g.Z,{alternateBackground:!0,items:en,onClickCallback:function(){return U(!1)},open:N,parentRef:se,rightOffset:0,uuid:"shared/Header/user_menu"})]})})]})]})]})})})}},63637:function(e,n,t){var r=t(9518),i=t(28598),l=r.default.svg.withConfig({displayName:"Mage8Bit__SVGStyle",componentId:"sc-cj6ltf-0"})([""]);n.Z=function(e){var n=e.size,t=void 0===n?20:n,r=e.viewBox,o=void 0===r?"0 0 20 20":r;return(0,i.jsxs)(l,{height:t,viewBox:o,width:t,children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_297_42814)",children:[(0,i.jsx)("path",{d:"M13.334 0h1.66667v1.66667H13.334zM11.666 1.6665h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 1.6665h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M8.33398 1.6665h1.66667v1.66667H8.33398z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M8.33398 3.3335h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 3.3335h1.66667v1.66667H6.66602z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M3.33398 5h1.66667v1.66667H3.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M5 5h1.66667v1.66667H5z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 5h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 5h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 8.3335h1.66667v1.66667H6.66602z",fill:"#000"}),(0,i.jsx)("path",{d:"M6.66602 6.6665h1.66667v1.66667H6.66602z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M6.66602 10h1.66667v1.66667H6.66602z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M8.33398 6.6665h1.66667v1.66667H8.33398z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M1.66602 13.3335h1.66667v1.66667H1.66602z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M1.66602 11.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 10h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 8.3335h1.66667v1.66667H1.66602zM1.66602 6.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 6.6665h1.66667v1.66667H1.66602zM0 0h1.66667v1.66667H0zM3.33398 1.6665h1.66667v1.66667H3.33398zM0 3.3335h1.66667v1.66667H0z",fill:"#2ECDF7"}),(0,i.jsx)("path",{d:"M1.66602 16.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 16.6665h1.66667v1.66667H1.66602zM1.66602 18.3335h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 15h1.66667v1.66667H1.66602zM3.33398 15h1.66667v1.66667H3.33398z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M3.33398 16.6665h1.66667v1.66667H3.33398z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M3.33398 13.3335h1.66667v1.66667H3.33398z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M8.33398 8.3335h1.66667v1.66667H8.33398z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M10 6.6665h1.66667v1.66667H10z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M10 10h1.66667v1.66667H10z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M11.666 6.6665h1.66667v1.66667H11.666z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M11.666 8.3335h1.66667v1.66667H11.666z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M8.33398 10h1.66667v1.66667H8.33398z",fill:"#FF8DA9"}),(0,i.jsx)("path",{d:"M8.33398 11.6665h1.66667v1.66667H8.33398z",fill:"#FF8DA9"}),(0,i.jsx)("path",{d:"M6.66602 11.6665h1.66667v1.66667H6.66602z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M6.66602 11.6665h1.66667v1.66667H6.66602z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M5 10h1.66667v1.66667H5z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M5 8.3335h1.66667v1.66667H5z",fill:"#232429"}),(0,i.jsx)("path",{d:"M8.33398 11.6665h1.66667v1.66667H8.33398zM8.33398 13.3335h1.66667v1.66667H8.33398z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M10 11.6665h1.66667v1.66667H10z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M11.666 10h1.66667v1.66667H11.666zM13.334 6.6665h1.66667v1.66667H13.334zM13.334 8.3335h1.66667v1.66667H13.334z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M15 8.3335h1.66667v1.66667H15z",fill:"#757575"}),(0,i.jsx)("path",{d:"M15 10h1.66667v1.66667H15z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M10 8.3335h1.66667v1.66667H10z",fill:"#000"}),(0,i.jsx)("path",{d:"M8.33398 5h1.66667v1.66667H8.33398zM11.666 5h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M13.334 10h1.66667v1.66667H13.334zM11.666 11.6665h1.66667v1.66667H11.666zM10 13.3335h1.66667v1.66667H10z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M8.33398 15h1.66667v1.66667H8.33398zM6.66602 13.3335h1.66667v1.66667H6.66602zM15 11.6665h1.66667v1.66667H15z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M16.666 11.6665h1.66667v1.66667H16.666zM16.666 13.3335h1.66667v1.66667H16.666z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M15 13.3335h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M13.334 13.3335h1.66667v1.66667H13.334zM13.334 11.6665h1.66667v1.66667H13.334zM11.666 13.3335h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 15h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 15h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M8.33398 16.6665h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 15h1.66667v1.66667H6.66602z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M6.66602 16.6665h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M5 16.6665h1.66667v1.66667H5z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M5 18.3335h1.66667v1.66667H5z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 18.3335h1.66667v1.66667H6.66602zM8.33398 18.3335h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 18.3335h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 18.3335h1.66667v1.66667H11.666zM13.334 18.3335h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 18.3335h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M16.666 18.3335h1.66667v1.66667H16.666z",fill:"#652EFF"}),(0,i.jsx)("path",{d:"M3.33398 18.3335h1.66667v1.66667H3.33398zM10 16.6665h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 16.6665h1.66667v1.66667H11.666zM13.334 15h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M13.334 16.6665h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 16.6665h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 15h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M16.666 15h1.66667v1.66667H16.666zM18.334 16.6665h1.66667v1.66667H18.334zM18.334 18.3335h1.66667v1.66667H18.334z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M16.666 16.6665h1.66667v1.66667H16.666z",fill:"#652EFF"}),(0,i.jsx)("path",{d:"M13.334 5h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 5h1.66667v1.66667H15zM10 5h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 3.3335h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 3.3335h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 0h1.66667v1.66667H11.666z",fill:"#AF93FF"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_297_42814",children:(0,i.jsx)("path",{d:"M0 0h20v20H0z",fill:"#fff"})})})]})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5627],{52749:function(e,n,r){var i=r(82394),t=r(82684),l=r(71180),o=r(55485),s=r(68562),c=r(7267),u=r(38276),a=r(30160),d=r(35576),p=r(17488),f=r(72473),h=r(4015),j=r(70515),g=r(81728),v=r(28598);function m(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,i)}return r}function b(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?m(Object(r),!0).forEach((function(n){(0,i.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}n.Z=function(e){var n,r,i,m,x=e.createPipeline,P=e.isLoading,w=e.onClose,Z=(0,t.useRef)(null),O=(0,t.useState)(!1),C=O[0],y=O[1],I=(0,t.useState)({name:(0,g.Y6)()}),k=I[0],A=I[1];return(0,t.useEffect)((function(){var e;null==Z||null===(e=Z.current)||void 0===e||e.focus()}),[]),(0,v.jsxs)(h.Nk,{children:[(0,v.jsx)(h.I5,{children:(0,v.jsx)(o.ZP,{alignItems:"center",justifyContent:"center",children:(0,v.jsx)(f.AISparkle,{size:5*j.iI,warning:!0})})}),(0,v.jsx)(h.gI,{children:(0,v.jsxs)(u.Z,{py:1,children:[(0,v.jsx)(u.Z,{mb:1,children:(0,v.jsx)(a.ZP,{default:!0,children:"New pipeline"})}),(0,v.jsx)(a.ZP,{textOverflow:!0,children:"Using AI"})]})}),(0,v.jsxs)(h.gI,{children:[(0,v.jsx)(a.ZP,{default:!0,children:"Name"}),(0,v.jsx)(p.Z,{alignRight:!0,noBackground:!0,noBorder:!0,onChange:function(e){return A((function(n){return b(b({},n),{},{name:e.target.value})}))},paddingVertical:j.iI,placeholder:"Enter pipeline name...",value:(null==k?void 0:k.name)||""})]}),(0,v.jsx)(h.gI,{children:(0,v.jsxs)(o.ZP,{flexDirection:"column",fullWidth:!0,children:[(0,v.jsx)(u.Z,{mb:2,pt:1,children:(0,v.jsx)(a.ZP,{default:!0,children:"Describe what the pipeline should do"})}),(0,v.jsxs)(u.Z,{pb:1,pr:j.cd,children:[(0,v.jsx)(d.Z,{fullWidth:!0,onChange:function(e){return A((function(n){return b(b({},n),{},{llm:{request:{pipeline_description:e.target.value},use_case:c.z.GENERATE_PIPELINE_WITH_DESCRIPTION}})}))},placeholder:"Type the pipeline purpose...",ref:Z,rows:8,value:(null==k||null===(n=k.llm)||void 0===n||null===(r=n.request)||void 0===r?void 0:r.pipeline_description)||""}),(P||C)&&(0,v.jsx)(u.Z,{mt:1,children:(0,v.jsx)(a.ZP,{warning:!0,children:"Pipeline is being generated using AI based on your description above..."})})]})]})}),(0,v.jsx)(h.$b,{children:(0,v.jsxs)(o.ZP,{fullWidth:!0,children:[(0,v.jsx)(s.ZP,{bold:!0,centerText:!0,disabled:!(null!=k&&k.name&&null!=k&&null!==(i=k.llm)&&void 0!==i&&null!==(m=i.request)&&void 0!==m&&m.pipeline_description),loading:P||C,onClick:function(){y(!0),x({pipeline:k}).then((function(){return y(!1)}))},primary:!0,tabIndex:0,uuid:"AIControlPanel/CreatePipeline",children:"Create pipeline"}),w&&(0,v.jsx)(u.Z,{ml:1,children:(0,v.jsx)(l.ZP,{onClick:w,tabIndex:0,children:"Cancel"})})]})})]})}},94629:function(e,n,r){r.d(n,{Z:function(){return Z}});var i=r(82394),t=r(21831),l=r(82684),o=r(50724),s=r(82555),c=r(97618),u=r(70613),a=r(31557),d=r(68899),p=r(28598);function f(e,n){var r=e.children,i=e.noPadding;return(0,p.jsx)(d.HS,{noPadding:i,ref:n,children:r})}var h=l.forwardRef(f),j=r(62547),g=r(82571),v=r(77417),m=r(46684),b=r(75375);function x(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,i)}return r}function P(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?x(Object(r),!0).forEach((function(n){(0,i.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function w(e,n){e.addProjectBreadcrumbToCustomBreadcrumbs;var r=e.after,i=e.afterHeader,l=e.afterHidden,f=e.afterWidth,x=e.afterWidthOverride,w=e.appendBreadcrumbs,Z=e.before,O=e.beforeHeader,C=e.beforeWidth,y=e.breadcrumbs,I=e.children,k=e.contained,A=e.errors,M=e.headerMenuItems,E=e.headerOffset,W=e.hideAfterCompletely,T=e.mainContainerHeader,B=e.navigationItems,S=e.setAfterHidden,N=e.setAfterWidth,D=e.setBeforeWidth,H=e.setErrors,R=e.subheaderChildren,_=e.subheaderNoPadding,z=e.title,L=e.uuid,q=(0,b.Z)(L,{beforeResizeOffset:b.H,setWidthAfter:N,setWidthBefore:D,widthAfter:f,widthBefore:C,widthOverrideAfter:x}),Y=q.mainContainerRef,F=q.mousedownActiveAfter,G=q.mousedownActiveBefore,U=q.setMousedownActiveAfter,V=q.setMousedownActiveBefore,$=q.setWidthAfter,K=q.setWidthBefore,Q=q.widthAfter,J=q.widthBefore,X=(0,v.Z)().project,ee=[];return y&&ee.push.apply(ee,(0,t.Z)(y)),null!=y&&y.length&&!w||!X||null!=y&&y.length||ee.unshift({bold:!w,label:function(){return z}}),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(u.Z,{title:z}),(0,p.jsx)(a.Z,{breadcrumbs:ee,menuItems:M}),(0,p.jsxs)(d.Nk,{ref:n,children:[0!==(null==B?void 0:B.length)&&(0,p.jsx)(d.lm,{showMore:!0,children:(0,p.jsx)(g.Z,{navigationItems:B,showMore:!0})}),(0,p.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(j.Z,{after:r,afterHeader:i,afterHeightOffset:m.Mz,afterHidden:l,afterMousedownActive:F,afterWidth:Q,before:Z,beforeHeader:O,beforeHeightOffset:m.Mz,beforeMousedownActive:G,beforeWidth:Z?J:d.k1,contained:k,headerOffset:E,hideAfterCompletely:!r||W,leftOffset:Z?d.k1:null,mainContainerHeader:T,mainContainerRef:Y,setAfterHidden:S,setAfterMousedownActive:U,setAfterWidth:$,setBeforeMousedownActive:V,setBeforeWidth:K,children:[R&&(0,p.jsx)(h,{noPadding:_,children:R}),I]})})]}),A&&(0,p.jsx)(o.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null==H?void 0:H(null)},children:(0,p.jsx)(s.Z,P(P({},A),{},{onClose:function(){return null==H?void 0:H(null)}}))})]})}var Z=l.forwardRef(w)},65458:function(e,n,r){r.d(n,{d:function(){return u}});var i=r(72473),t=r(57653),l=r(70515),o=r(81728),s=r(28598),c=1.5*l.iI,u=function(e,n){var r=[{beforeIcon:(0,s.jsx)(i.BatchPipeline,{}),label:function(){return"Standard (batch)"},onClick:function(){var r;null!=n&&n.showCreatePipelineModal?null==n||null===(r=n.showCreatePipelineModal)||void 0===r||r.call(n,{pipelineType:t.qL.PYTHON}):e({pipeline:{name:(0,o.Y6)()}})},uuid:"Pipelines/NewPipelineMenu/standard"},{beforeIcon:(0,s.jsx)(i.IntegrationPipeline,{}),label:function(){return"Data integration"},onClick:function(){var r;null!=n&&n.showCreatePipelineModal?null==n||null===(r=n.showCreatePipelineModal)||void 0===r||r.call(n,{pipelineType:t.qL.INTEGRATION}):e({pipeline:{name:(0,o.Y6)(),type:t.qL.INTEGRATION}})},uuid:"Pipelines/NewPipelineMenu/integration"},{beforeIcon:(0,s.jsx)(i.StreamingPipeline,{size:c}),label:function(){return"Streaming"},onClick:function(){var r;null!=n&&n.showCreatePipelineModal?null==n||null===(r=n.showCreatePipelineModal)||void 0===r||r.call(n,{pipelineType:t.qL.STREAMING}):e({pipeline:{name:(0,o.Y6)(),type:t.qL.STREAMING}})},uuid:"Pipelines/NewPipelineMenu/streaming"}];return null!=n&&n.showBrowseTemplates&&r.push({beforeIcon:(0,s.jsx)(i.TemplateShapes,{}),label:function(){return"From a template"},onClick:function(){var e;return null==n||null===(e=n.showBrowseTemplates)||void 0===e?void 0:e.call(n)},uuid:"Pipelines/NewPipelineMenu/custom_template"}),null!=n&&n.showImportPipelineModal&&r.push({beforeIcon:(0,s.jsx)(i.Upload,{}),label:function(){return"Import pipeline zip"},onClick:function(){var e;return null==n||null===(e=n.showImportPipelineModal)||void 0===e?void 0:e.call(n)},uuid:"Pipelines/NewPipelineMenu/upload"}),null!=n&&n.showAIModal&&r.push({beforeIcon:(0,s.jsx)(i.AISparkle,{}),label:function(){return"Using AI (beta)"},onClick:function(){var e;return null==n||null===(e=n.showAIModal)||void 0===e?void 0:e.call(n)},uuid:"Pipelines/NewPipelineMenu/AI_modal"}),r}},76111:function(e,n,r){var i=r(82394),t=r(82684),l=r(71180),o=r(97618),s=r(55485),c=r(68562),u=r(38276),a=r(30160),d=r(35576),p=r(17488),f=r(44897),h=r(4015),j=r(39643),g=r(57653),v=r(70515),m=r(81728),b=r(28598);function x(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,i)}return r}function P(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?x(Object(r),!0).forEach((function(n){(0,i.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}n.Z=function(e){var n=e.onClose,r=e.onSave,i=e.pipelineType,x=g.Mj[i],w=(0,t.useRef)(null),Z=(0,t.useState)({name:(0,m.Y6)()}),O=Z[0],C=Z[1];(0,t.useEffect)((function(){var e;null==w||null===(e=w.current)||void 0===e||e.focus()}),[]);var y=(0,t.useCallback)((function(){var e=null==O?void 0:O.tags,i=[];e&&(i=e.split(",").map((function(e){return e.trim()})).filter((function(e){return!!e}))),r(P(P({},O),{},{name:(null==O?void 0:O.name)||(0,m.Y6)(),tags:i})),null==n||n()}),[O,n,r]);return(0,t.useEffect)((function(){var e,r=function(e){if(e.stopPropagation(),e.key===j.KW)null==n||n();else if(e.key===j.tt){var r=e.target.innerText;r.startsWith("Create")||"Cancel"===r||y()}};return null===(e=document)||void 0===e||e.addEventListener("keydown",r),function(){var e;null===(e=document)||void 0===e||e.removeEventListener("keydown",r)}}),[y,n]),(0,b.jsxs)(h.Nk,{width:55*v.iI,children:[(0,b.jsx)(h.I5,{lightBackground:!0,children:(0,b.jsxs)(s.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,b.jsx)(a.ZP,{bold:!0,cyan:!0,largeLg:!0,children:"".concat(g.G7[i]," pipeline")}),(0,b.jsx)(x,{fill:f.Z.accent.cyan,size:10*v.iI})]})}),(0,b.jsxs)(h.gI,{lightBackground:!0,children:[(0,b.jsx)(a.ZP,{default:!0,children:"Name"}),(0,b.jsx)(p.Z,{alignRight:!0,fullWidth:!0,noBackground:!0,noBorder:!0,onChange:function(e){C((function(n){return P(P({},n),{},{name:e.target.value})}))},paddingVertical:v.iI,placeholder:"Pipeline name...",ref:w,value:(null==O?void 0:O.name)||""})]}),(0,b.jsxs)(h.gI,{lightBackground:!0,children:[(0,b.jsx)(a.ZP,{default:!0,children:"Description"}),(0,b.jsx)(u.Z,{ml:9}),(0,b.jsx)(u.Z,{fullWidth:!0,px:2,py:1,children:(0,b.jsx)(d.Z,{onChange:function(e){C((function(n){return P(P({},n),{},{description:e.target.value})}))},rows:2,value:(null==O?void 0:O.description)||""})})]}),(0,b.jsxs)(h.gI,{lightBackground:!0,children:[(0,b.jsx)(a.ZP,{default:!0,children:"Tags"}),(0,b.jsx)(p.Z,{alignRight:!0,fullWidth:!0,noBackground:!0,noBorder:!0,onChange:function(e){var n=e.target.value;C((function(e){return P(P({},e),{},{tags:n})}))},paddingVertical:v.iI,placeholder:"e.g. tag_1, tag_2",value:(null==O?void 0:O.tags)||""})]}),(0,b.jsx)(h.$b,{topBorder:!0,children:(0,b.jsxs)(s.ZP,{fullWidth:!0,children:[(0,b.jsx)(o.Z,{flex:"1",children:(0,b.jsx)(l.ZP,{fullWidth:!0,onClick:n,children:"Cancel"})}),(0,b.jsx)(u.Z,{ml:1}),(0,b.jsx)(o.Z,{flex:"1",children:(0,b.jsx)(c.ZP,{bold:!0,centerText:!0,disabled:!(null!=O&&O.name),fullWidth:!0,onClick:y,primary:!0,uuid:"ConfigurePipeline/CreatePipeline",children:"Create"})})]})})]})}},70026:function(e,n,r){var i=r(75582),t=r(34376),l=r.n(t),o=r(82684),s=r(71180),c=r(59658),u=r(55485),a=r(65956),d=r(89515),p=r(35185),f=r(38276),h=r(75499),j=r(30160),g=r(69650),v=r(65327),m=r(42122),b=r(86735),x=r(70515),P=r(89538),w=r(28598);n.Z=function(e){var n=e.fetchPipelines,r=e.onCancel,t=(0,o.useState)(!1),Z=t[0],O=t[1],C=(0,o.useState)(!1),y=C[0],I=C[1],k=(0,o.useState)({}),A=k[0],M=k[1],E=(0,o.useState)({}),W=E[0],T=E[1],B=!(0,m.Qr)(A),S=(0,P.dd)((function(){var e=Object.values(W)[0],n=null==e?void 0:e.message,i=!!n;return(0,w.jsx)(d.Z,{cancelText:i?null:"Edit ".concat(null==e?void 0:e.name),centerOnScreen:!0,confirmText:"Close",danger:i,neutral:!i,onCancel:i?void 0:function(){return l().push("/pipelines/[pipeline]/edit","/pipelines/".concat(null==e?void 0:e.name,"/edit"))},onClick:function(){return r()},subtitle:i?n:"Pipeline ".concat(null==e?void 0:e.name," successfully imported!"),title:i?"Error on pipeline import.":"Successful import!",width:50*x.iI})}),{},[W],{background:!0,uuid:"confirm_upload"}),N=(0,i.Z)(S,1)[0],D=(0,o.useMemo)((function(){var e=[];return(0,b.YC)(Object.entries(A),(function(e){var n=(0,i.Z)(e,2),r=n[0];n[1];return r})).forEach((function(n){var r=(0,i.Z)(n,2),t=r[0],l=r[1],o=W[t],s=null==o?void 0:o.message;e.push([(0,w.jsxs)("div",{children:[(0,w.jsx)(j.ZP,{overflowWrap:!0,preWrap:!0,children:t}),s&&(0,w.jsx)(f.Z,{mt:1,children:(0,w.jsx)(j.ZP,{danger:!0,small:!0,children:s})})]},"name-".concat(t)),(0,w.jsx)(p.Z,{danger:!!s,progress:100*l},"progress-".concat(t))])})),(0,w.jsx)(h.Z,{columnFlex:[1,4],columns:[{uuid:"Filename"},{uuid:"Upload progress"}],rows:e,uuid:"block-runs"})}),[A,W]);return(0,w.jsxs)(a.Z,{footer:(0,w.jsxs)(u.ZP,{fullWidth:!0,justifyContent:"space-between",children:[(0,w.jsx)(s.ZP,{onClick:function(){return r()},children:"Close"}),(0,w.jsx)(f.Z,{ml:1,children:(0,w.jsxs)(u.ZP,{alignItems:"center",justifyContent:"flex-end",children:[(0,w.jsx)(j.ZP,{children:"Overwrite pipeline files"}),(0,w.jsx)(f.Z,{ml:1}),(0,w.jsx)(g.Z,{checked:Z,onCheck:O})]})})]}),headerTitle:"Import pipeline from .zip file",children:[B&&(0,w.jsx)(v.kA,{children:D}),!B&&(0,w.jsxs)(c.Z,{directoryPath:null,onDragActiveChange:I,overwrite:Z,pipelineZip:!0,setFileUploadProgress:M,setUploadedFiles:function(e){T(e),N(),null==n||n()},children:[(0,w.jsx)(v.es,{children:(0,w.jsxs)(j.ZP,{center:!0,children:[y&&"Drop pipeline zip to import",!y&&"Click or drop pipeline zip to upload"]})}),(0,w.jsx)(f.Z,{mt:2,children:(0,w.jsxs)(j.ZP,{warning:!0,children:["The zip file should include the pipeline’s metadata.yaml file and each",(0,w.jsx)("br",{}),"block’s script file in the root folder."]})})]})]})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5627],{52749:function(e,n,r){var i=r(82394),t=r(82684),l=r(71180),o=r(55485),s=r(68562),c=r(7267),u=r(38276),a=r(30160),d=r(35576),p=r(17488),f=r(72473),h=r(4015),j=r(70515),g=r(81728),v=r(28598);function m(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,i)}return r}function b(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?m(Object(r),!0).forEach((function(n){(0,i.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}n.Z=function(e){var n,r,i,m,x=e.createPipeline,P=e.isLoading,w=e.onClose,Z=(0,t.useRef)(null),O=(0,t.useState)(!1),C=O[0],y=O[1],I=(0,t.useState)({name:(0,g.Y6)()}),k=I[0],A=I[1];return(0,t.useEffect)((function(){var e;null==Z||null===(e=Z.current)||void 0===e||e.focus()}),[]),(0,v.jsxs)(h.Nk,{children:[(0,v.jsx)(h.I5,{children:(0,v.jsx)(o.ZP,{alignItems:"center",justifyContent:"center",children:(0,v.jsx)(f.AISparkle,{size:5*j.iI,warning:!0})})}),(0,v.jsx)(h.gI,{children:(0,v.jsxs)(u.Z,{py:1,children:[(0,v.jsx)(u.Z,{mb:1,children:(0,v.jsx)(a.ZP,{default:!0,children:"New pipeline"})}),(0,v.jsx)(a.ZP,{textOverflow:!0,children:"Using AI"})]})}),(0,v.jsxs)(h.gI,{children:[(0,v.jsx)(a.ZP,{default:!0,children:"Name"}),(0,v.jsx)(p.Z,{alignRight:!0,noBackground:!0,noBorder:!0,onChange:function(e){return A((function(n){return b(b({},n),{},{name:e.target.value})}))},paddingVertical:j.iI,placeholder:"Enter pipeline name...",value:(null==k?void 0:k.name)||""})]}),(0,v.jsx)(h.gI,{children:(0,v.jsxs)(o.ZP,{flexDirection:"column",fullWidth:!0,children:[(0,v.jsx)(u.Z,{mb:2,pt:1,children:(0,v.jsx)(a.ZP,{default:!0,children:"Describe what the pipeline should do"})}),(0,v.jsxs)(u.Z,{pb:1,pr:j.cd,children:[(0,v.jsx)(d.Z,{fullWidth:!0,onChange:function(e){return A((function(n){return b(b({},n),{},{llm:{request:{pipeline_description:e.target.value},use_case:c.z.GENERATE_PIPELINE_WITH_DESCRIPTION}})}))},placeholder:"Type the pipeline purpose...",ref:Z,rows:8,value:(null==k||null===(n=k.llm)||void 0===n||null===(r=n.request)||void 0===r?void 0:r.pipeline_description)||""}),(P||C)&&(0,v.jsx)(u.Z,{mt:1,children:(0,v.jsx)(a.ZP,{warning:!0,children:"Pipeline is being generated using AI based on your description above..."})})]})]})}),(0,v.jsx)(h.$b,{children:(0,v.jsxs)(o.ZP,{fullWidth:!0,children:[(0,v.jsx)(s.ZP,{bold:!0,centerText:!0,disabled:!(null!=k&&k.name&&null!=k&&null!==(i=k.llm)&&void 0!==i&&null!==(m=i.request)&&void 0!==m&&m.pipeline_description),loading:P||C,onClick:function(){y(!0),x({pipeline:k}).then((function(){return y(!1)}))},primary:!0,tabIndex:0,uuid:"AIControlPanel/CreatePipeline",children:"Create pipeline"}),w&&(0,v.jsx)(u.Z,{ml:1,children:(0,v.jsx)(l.ZP,{onClick:w,tabIndex:0,children:"Cancel"})})]})})]})}},94629:function(e,n,r){r.d(n,{Z:function(){return Z}});var i=r(82394),t=r(21831),l=r(82684),o=r(50724),s=r(82555),c=r(97618),u=r(70613),a=r(92272),d=r(68899),p=r(28598);function f(e,n){var r=e.children,i=e.noPadding;return(0,p.jsx)(d.HS,{noPadding:i,ref:n,children:r})}var h=l.forwardRef(f),j=r(62547),g=r(82571),v=r(77417),m=r(46684),b=r(75375);function x(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,i)}return r}function P(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?x(Object(r),!0).forEach((function(n){(0,i.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function w(e,n){e.addProjectBreadcrumbToCustomBreadcrumbs;var r=e.after,i=e.afterHeader,l=e.afterHidden,f=e.afterWidth,x=e.afterWidthOverride,w=e.appendBreadcrumbs,Z=e.before,O=e.beforeHeader,C=e.beforeWidth,y=e.breadcrumbs,I=e.children,k=e.contained,A=e.errors,M=e.headerMenuItems,E=e.headerOffset,W=e.hideAfterCompletely,T=e.mainContainerHeader,B=e.navigationItems,S=e.setAfterHidden,N=e.setAfterWidth,D=e.setBeforeWidth,H=e.setErrors,R=e.subheaderChildren,_=e.subheaderNoPadding,z=e.title,L=e.uuid,q=(0,b.Z)(L,{beforeResizeOffset:b.H,setWidthAfter:N,setWidthBefore:D,widthAfter:f,widthBefore:C,widthOverrideAfter:x}),Y=q.mainContainerRef,F=q.mousedownActiveAfter,G=q.mousedownActiveBefore,U=q.setMousedownActiveAfter,V=q.setMousedownActiveBefore,$=q.setWidthAfter,K=q.setWidthBefore,Q=q.widthAfter,J=q.widthBefore,X=(0,v.Z)().project,ee=[];return y&&ee.push.apply(ee,(0,t.Z)(y)),null!=y&&y.length&&!w||!X||null!=y&&y.length||ee.unshift({bold:!w,label:function(){return z}}),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(u.Z,{title:z}),(0,p.jsx)(a.Z,{breadcrumbs:ee,menuItems:M}),(0,p.jsxs)(d.Nk,{ref:n,children:[0!==(null==B?void 0:B.length)&&(0,p.jsx)(d.lm,{showMore:!0,children:(0,p.jsx)(g.Z,{navigationItems:B,showMore:!0})}),(0,p.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(j.Z,{after:r,afterHeader:i,afterHeightOffset:m.Mz,afterHidden:l,afterMousedownActive:F,afterWidth:Q,before:Z,beforeHeader:O,beforeHeightOffset:m.Mz,beforeMousedownActive:G,beforeWidth:Z?J:d.k1,contained:k,headerOffset:E,hideAfterCompletely:!r||W,leftOffset:Z?d.k1:null,mainContainerHeader:T,mainContainerRef:Y,setAfterHidden:S,setAfterMousedownActive:U,setAfterWidth:$,setBeforeMousedownActive:V,setBeforeWidth:K,children:[R&&(0,p.jsx)(h,{noPadding:_,children:R}),I]})})]}),A&&(0,p.jsx)(o.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null==H?void 0:H(null)},children:(0,p.jsx)(s.Z,P(P({},A),{},{onClose:function(){return null==H?void 0:H(null)}}))})]})}var Z=l.forwardRef(w)},65458:function(e,n,r){r.d(n,{d:function(){return u}});var i=r(72473),t=r(57653),l=r(70515),o=r(81728),s=r(28598),c=1.5*l.iI,u=function(e,n){var r=[{beforeIcon:(0,s.jsx)(i.BatchPipeline,{}),label:function(){return"Standard (batch)"},onClick:function(){var r;null!=n&&n.showCreatePipelineModal?null==n||null===(r=n.showCreatePipelineModal)||void 0===r||r.call(n,{pipelineType:t.qL.PYTHON}):e({pipeline:{name:(0,o.Y6)()}})},uuid:"Pipelines/NewPipelineMenu/standard"},{beforeIcon:(0,s.jsx)(i.IntegrationPipeline,{}),label:function(){return"Data integration"},onClick:function(){var r;null!=n&&n.showCreatePipelineModal?null==n||null===(r=n.showCreatePipelineModal)||void 0===r||r.call(n,{pipelineType:t.qL.INTEGRATION}):e({pipeline:{name:(0,o.Y6)(),type:t.qL.INTEGRATION}})},uuid:"Pipelines/NewPipelineMenu/integration"},{beforeIcon:(0,s.jsx)(i.StreamingPipeline,{size:c}),label:function(){return"Streaming"},onClick:function(){var r;null!=n&&n.showCreatePipelineModal?null==n||null===(r=n.showCreatePipelineModal)||void 0===r||r.call(n,{pipelineType:t.qL.STREAMING}):e({pipeline:{name:(0,o.Y6)(),type:t.qL.STREAMING}})},uuid:"Pipelines/NewPipelineMenu/streaming"}];return null!=n&&n.showBrowseTemplates&&r.push({beforeIcon:(0,s.jsx)(i.TemplateShapes,{}),label:function(){return"From a template"},onClick:function(){var e;return null==n||null===(e=n.showBrowseTemplates)||void 0===e?void 0:e.call(n)},uuid:"Pipelines/NewPipelineMenu/custom_template"}),null!=n&&n.showImportPipelineModal&&r.push({beforeIcon:(0,s.jsx)(i.Upload,{}),label:function(){return"Import pipeline zip"},onClick:function(){var e;return null==n||null===(e=n.showImportPipelineModal)||void 0===e?void 0:e.call(n)},uuid:"Pipelines/NewPipelineMenu/upload"}),null!=n&&n.showAIModal&&r.push({beforeIcon:(0,s.jsx)(i.AISparkle,{}),label:function(){return"Using AI (beta)"},onClick:function(){var e;return null==n||null===(e=n.showAIModal)||void 0===e?void 0:e.call(n)},uuid:"Pipelines/NewPipelineMenu/AI_modal"}),r}},76111:function(e,n,r){var i=r(82394),t=r(82684),l=r(71180),o=r(97618),s=r(55485),c=r(68562),u=r(38276),a=r(30160),d=r(35576),p=r(17488),f=r(44897),h=r(4015),j=r(39643),g=r(57653),v=r(70515),m=r(81728),b=r(28598);function x(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,i)}return r}function P(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?x(Object(r),!0).forEach((function(n){(0,i.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}n.Z=function(e){var n=e.onClose,r=e.onSave,i=e.pipelineType,x=g.Mj[i],w=(0,t.useRef)(null),Z=(0,t.useState)({name:(0,m.Y6)()}),O=Z[0],C=Z[1];(0,t.useEffect)((function(){var e;null==w||null===(e=w.current)||void 0===e||e.focus()}),[]);var y=(0,t.useCallback)((function(){var e=null==O?void 0:O.tags,i=[];e&&(i=e.split(",").map((function(e){return e.trim()})).filter((function(e){return!!e}))),r(P(P({},O),{},{name:(null==O?void 0:O.name)||(0,m.Y6)(),tags:i})),null==n||n()}),[O,n,r]);return(0,t.useEffect)((function(){var e,r=function(e){if(e.stopPropagation(),e.key===j.KW)null==n||n();else if(e.key===j.tt){var r=e.target.innerText;r.startsWith("Create")||"Cancel"===r||y()}};return null===(e=document)||void 0===e||e.addEventListener("keydown",r),function(){var e;null===(e=document)||void 0===e||e.removeEventListener("keydown",r)}}),[y,n]),(0,b.jsxs)(h.Nk,{width:55*v.iI,children:[(0,b.jsx)(h.I5,{lightBackground:!0,children:(0,b.jsxs)(s.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,b.jsx)(a.ZP,{bold:!0,cyan:!0,largeLg:!0,children:"".concat(g.G7[i]," pipeline")}),(0,b.jsx)(x,{fill:f.Z.accent.cyan,size:10*v.iI})]})}),(0,b.jsxs)(h.gI,{lightBackground:!0,children:[(0,b.jsx)(a.ZP,{default:!0,children:"Name"}),(0,b.jsx)(p.Z,{alignRight:!0,fullWidth:!0,noBackground:!0,noBorder:!0,onChange:function(e){C((function(n){return P(P({},n),{},{name:e.target.value})}))},paddingVertical:v.iI,placeholder:"Pipeline name...",ref:w,value:(null==O?void 0:O.name)||""})]}),(0,b.jsxs)(h.gI,{lightBackground:!0,children:[(0,b.jsx)(a.ZP,{default:!0,children:"Description"}),(0,b.jsx)(u.Z,{ml:9}),(0,b.jsx)(u.Z,{fullWidth:!0,px:2,py:1,children:(0,b.jsx)(d.Z,{onChange:function(e){C((function(n){return P(P({},n),{},{description:e.target.value})}))},rows:2,value:(null==O?void 0:O.description)||""})})]}),(0,b.jsxs)(h.gI,{lightBackground:!0,children:[(0,b.jsx)(a.ZP,{default:!0,children:"Tags"}),(0,b.jsx)(p.Z,{alignRight:!0,fullWidth:!0,noBackground:!0,noBorder:!0,onChange:function(e){var n=e.target.value;C((function(e){return P(P({},e),{},{tags:n})}))},paddingVertical:v.iI,placeholder:"e.g. tag_1, tag_2",value:(null==O?void 0:O.tags)||""})]}),(0,b.jsx)(h.$b,{topBorder:!0,children:(0,b.jsxs)(s.ZP,{fullWidth:!0,children:[(0,b.jsx)(o.Z,{flex:"1",children:(0,b.jsx)(l.ZP,{fullWidth:!0,onClick:n,children:"Cancel"})}),(0,b.jsx)(u.Z,{ml:1}),(0,b.jsx)(o.Z,{flex:"1",children:(0,b.jsx)(c.ZP,{bold:!0,centerText:!0,disabled:!(null!=O&&O.name),fullWidth:!0,onClick:y,primary:!0,uuid:"ConfigurePipeline/CreatePipeline",children:"Create"})})]})})]})}},70026:function(e,n,r){var i=r(75582),t=r(34376),l=r.n(t),o=r(82684),s=r(71180),c=r(59658),u=r(55485),a=r(65956),d=r(89515),p=r(35185),f=r(38276),h=r(75499),j=r(30160),g=r(69650),v=r(65327),m=r(42122),b=r(86735),x=r(70515),P=r(89538),w=r(28598);n.Z=function(e){var n=e.fetchPipelines,r=e.onCancel,t=(0,o.useState)(!1),Z=t[0],O=t[1],C=(0,o.useState)(!1),y=C[0],I=C[1],k=(0,o.useState)({}),A=k[0],M=k[1],E=(0,o.useState)({}),W=E[0],T=E[1],B=!(0,m.Qr)(A),S=(0,P.dd)((function(){var e=Object.values(W)[0],n=null==e?void 0:e.message,i=!!n;return(0,w.jsx)(d.Z,{cancelText:i?null:"Edit ".concat(null==e?void 0:e.name),centerOnScreen:!0,confirmText:"Close",danger:i,neutral:!i,onCancel:i?void 0:function(){return l().push("/pipelines/[pipeline]/edit","/pipelines/".concat(null==e?void 0:e.name,"/edit"))},onClick:function(){return r()},subtitle:i?n:"Pipeline ".concat(null==e?void 0:e.name," successfully imported!"),title:i?"Error on pipeline import.":"Successful import!",width:50*x.iI})}),{},[W],{background:!0,uuid:"confirm_upload"}),N=(0,i.Z)(S,1)[0],D=(0,o.useMemo)((function(){var e=[];return(0,b.YC)(Object.entries(A),(function(e){var n=(0,i.Z)(e,2),r=n[0];n[1];return r})).forEach((function(n){var r=(0,i.Z)(n,2),t=r[0],l=r[1],o=W[t],s=null==o?void 0:o.message;e.push([(0,w.jsxs)("div",{children:[(0,w.jsx)(j.ZP,{overflowWrap:!0,preWrap:!0,children:t}),s&&(0,w.jsx)(f.Z,{mt:1,children:(0,w.jsx)(j.ZP,{danger:!0,small:!0,children:s})})]},"name-".concat(t)),(0,w.jsx)(p.Z,{danger:!!s,progress:100*l},"progress-".concat(t))])})),(0,w.jsx)(h.Z,{columnFlex:[1,4],columns:[{uuid:"Filename"},{uuid:"Upload progress"}],rows:e,uuid:"block-runs"})}),[A,W]);return(0,w.jsxs)(a.Z,{footer:(0,w.jsxs)(u.ZP,{fullWidth:!0,justifyContent:"space-between",children:[(0,w.jsx)(s.ZP,{onClick:function(){return r()},children:"Close"}),(0,w.jsx)(f.Z,{ml:1,children:(0,w.jsxs)(u.ZP,{alignItems:"center",justifyContent:"flex-end",children:[(0,w.jsx)(j.ZP,{children:"Overwrite pipeline files"}),(0,w.jsx)(f.Z,{ml:1}),(0,w.jsx)(g.Z,{checked:Z,onCheck:O})]})})]}),headerTitle:"Import pipeline from .zip file",children:[B&&(0,w.jsx)(v.kA,{children:D}),!B&&(0,w.jsxs)(c.Z,{directoryPath:null,onDragActiveChange:I,overwrite:Z,pipelineZip:!0,setFileUploadProgress:M,setUploadedFiles:function(e){T(e),N(),null==n||n()},children:[(0,w.jsx)(v.es,{children:(0,w.jsxs)(j.ZP,{center:!0,children:[y&&"Drop pipeline zip to import",!y&&"Click or drop pipeline zip to upload"]})}),(0,w.jsx)(f.Z,{mt:2,children:(0,w.jsxs)(j.ZP,{warning:!0,children:["The zip file should include the pipeline’s metadata.yaml file and each",(0,w.jsx)("br",{}),"block’s script file in the root folder."]})})]})]})}}}]);
|