mage-ai 0.9.74__py3-none-any.whl → 0.9.75__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/data_integrations/destinations/constants.py +1 -0
- mage_ai/data_preparation/models/block/__init__.py +4 -4
- mage_ai/data_preparation/models/constants.py +1 -1
- mage_ai/data_preparation/models/pipeline.py +5 -0
- mage_ai/data_preparation/templates/data_exporters/streaming/elasticsearch.yaml +3 -0
- mage_ai/data_preparation/templates/data_loaders/streaming/nats.yaml +6 -3
- mage_ai/io/base.py +29 -1
- mage_ai/io/oracledb.py +2 -4
- mage_ai/io/postgres.py +38 -19
- mage_ai/io/utils.py +18 -0
- mage_ai/orchestration/db/__init__.py +3 -3
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +3 -3
- mage_ai/server/frontend_dist/_next/static/38-PtskJFUTYUpRhT1qF_/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{1187-839336d276186105.js → 1187-4560c3895e1d7099.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{1598-0adca9dce3ba4c60.js → 1598-cbf3f5a6078fc3f5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2717-638a944d24d5abde.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3548-36f746b1824004f2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{3763-39a5174f6a3924db.js → 3763-aabe2703076636b0.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3782-3e2acb5ed45b582b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/449-f689774546860ca4.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-5bdff745074fb350.js → _app-13bf3b7dcef50c29.js} +2 -2
- 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-a5e9d77ed5b50205.js → users-b99379d0aa6a8c25.js} +1 -1
- 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-e51cd04bd4d1fffe.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-cd49372ae1702963.js → settings-0abf8a1b7243f93b.js} +1 -1
- 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_base_path_template/_next/static/chunks/pages/pipelines-b578b075a8d857e3.js → frontend_dist/_next/static/chunks/pages/pipelines-38187954b6ec4b40.js} +1 -1
- 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-5212c01a9dc558da.js → users-3ee783f5139c76a1.js} +1 -1
- 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/chunks/{webpack-b9a067f3bd0a3a05.js → webpack-0bc44da590c7cf85.js} +1 -1
- mage_ai/server/frontend_dist/block-layout.html +3 -3
- mage_ai/server/frontend_dist/compute.html +6 -6
- mage_ai/server/frontend_dist/files.html +6 -6
- mage_ai/server/frontend_dist/global-data-products/[...slug].html +6 -6
- mage_ai/server/frontend_dist/global-data-products.html +6 -6
- mage_ai/server/frontend_dist/global-hooks/[...slug].html +6 -6
- mage_ai/server/frontend_dist/global-hooks.html +6 -6
- mage_ai/server/frontend_dist/index.html +3 -3
- mage_ai/server/frontend_dist/manage/files.html +6 -6
- mage_ai/server/frontend_dist/manage/overview.html +6 -6
- mage_ai/server/frontend_dist/manage/pipeline-runs.html +6 -6
- mage_ai/server/frontend_dist/manage/settings.html +6 -6
- mage_ai/server/frontend_dist/manage/users/[user].html +6 -6
- mage_ai/server/frontend_dist/manage/users/new.html +6 -6
- mage_ai/server/frontend_dist/manage/users.html +6 -6
- mage_ai/server/frontend_dist/manage.html +6 -6
- mage_ai/server/frontend_dist/oauth.html +5 -5
- mage_ai/server/frontend_dist/overview.html +6 -6
- mage_ai/server/frontend_dist/pipeline-runs.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +3 -3
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +3 -3
- mage_ai/server/frontend_dist/pipelines.html +6 -6
- mage_ai/server/frontend_dist/platform/global-hooks/[...slug].html +6 -6
- mage_ai/server/frontend_dist/platform/global-hooks.html +6 -6
- mage_ai/server/frontend_dist/settings/account/profile.html +6 -6
- mage_ai/server/frontend_dist/settings/platform/preferences.html +6 -6
- mage_ai/server/frontend_dist/settings/platform/settings.html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/permissions.html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/roles.html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/users.html +6 -6
- mage_ai/server/frontend_dist/settings.html +3 -3
- mage_ai/server/frontend_dist/sign-in.html +7 -7
- mage_ai/server/frontend_dist/templates/[...slug].html +6 -6
- mage_ai/server/frontend_dist/templates.html +6 -6
- mage_ai/server/frontend_dist/terminal.html +6 -6
- mage_ai/server/frontend_dist/test.html +3 -3
- mage_ai/server/frontend_dist/triggers.html +6 -6
- mage_ai/server/frontend_dist/v2/canvas.html +2 -2
- mage_ai/server/frontend_dist/v2.html +2 -2
- mage_ai/server/frontend_dist/version-control.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/404.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/_next/static/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-f689774546860ca4.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-90de19bc03f1484b.js → _app-0392ef723ea2c6f8.js} +2 -2
- 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-a5e9d77ed5b50205.js → users-b99379d0aa6a8c25.js} +1 -1
- 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-e51cd04bd4d1fffe.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-cd49372ae1702963.js → settings-0abf8a1b7243f93b.js} +1 -1
- 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/_next/static/chunks/pages/pipelines-b578b075a8d857e3.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-38187954b6ec4b40.js} +1 -1
- 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-5212c01a9dc558da.js → users-3ee783f5139c76a1.js} +1 -1
- 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/dxnSzgIvSG4Ke5LM-tPQX/_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/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/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-0.9.75.dist-info/METADATA +377 -0
- {mage_ai-0.9.74.dist-info → mage_ai-0.9.75.dist-info}/RECORD +296 -289
- {mage_ai-0.9.74.dist-info → mage_ai-0.9.75.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/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]/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/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/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/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]/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/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/test-86b12cc12d4a625f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-2481c40b18d5b6d4.js +0 -1
- mage_ai-0.9.74.dist-info/METADATA +0 -544
- /mage_ai/server/frontend_dist/_next/static/{pLWT6Sqd09xYpufCVIqnz → 38-PtskJFUTYUpRhT1qF_}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-5bdff745074fb350.js.LICENSE.txt → _app-13bf3b7dcef50c29.js.LICENSE.txt} +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{_app-90de19bc03f1484b.js.LICENSE.txt → _app-0392ef723ea2c6f8.js.LICENSE.txt} +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{JQewSAObpbhO0wrdAM6Ng → dxnSzgIvSG4Ke5LM-tPQX}/_ssgManifest.js +0 -0
- {mage_ai-0.9.74.dist-info → mage_ai-0.9.75.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.74.dist-info → mage_ai-0.9.75.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.74.dist-info → mage_ai-0.9.75.dist-info}/top_level.txt +0 -0
mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-d65056b6b5e124eb.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2717],{8916:function(e,n,t){t.d(n,{FS:function(){return s},JZ:function(){return p},Tt:function(){return d},e7:function(){return h},wx:function(){return a}});var r=t(75582),i=t(82394),l=t(83784),o=t(30229);function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e){return"string"==typeof e?e:JSON.stringify(e)}function a(e,n){var t,r;return null==e||null===(t=e.find((function(e){var t=e.block;return n(t)})))||void 0===t||null===(r=t.variables)||void 0===r?void 0:r.map((function(e){var n=e.value;return c(c({},e),{},{value:s(n)})}))}function d(e){var n;return null===(n=a(e,(function(e){return e.uuid===l.C})))||void 0===n?void 0:n.reduce((function(e,n){var t=n.uuid,r=n.value;return c(c({},e),{},(0,i.Z)({},t,r))}),{})}function p(e,n){return n===o.Xm.TIME?e.push({uuid:"execution_date",value:"<run datetime>"}):n===o.Xm.EVENT&&e.push({uuid:"event",value:"<trigger event>"}),e}function h(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,r.Z)(n,2),l=t[0],o=t[1],u=o;try{u=JSON.parse(o)}catch(e){}return c(c({},e),{},(0,i.Z)({},l,u))}),{}):e}},81334:function(e,n,t){t.d(n,{Z:function(){return _}});var r=t(82394),i=t(82684),l=t(27277),o=t(31882),u=t(38276),c=t(48381),s=t(30160),a=t(17488),d=t(9518),p=t(44897),h=t(42631),f=t(47041),m=t(70515),v=d.default.div.withConfig({displayName:"indexstyle__DropdownStyle",componentId:"sc-suwkha-0"})([""," border-radius:","px;max-height:","px;overflow:auto;position:absolute;width:100%;z-index:1;"," ",""],f.w5,h.BG,40*m.iI,(function(e){return"\n background-color: ".concat((e.theme.background||p.Z.background).popup,";\n box-shadow: ").concat((e.theme.shadow||p.Z.shadow).popup,";\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset-.5*m.iI,"px;\n ")})),j=d.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-suwkha-1"})(["padding:","px;position:relative;z-index:2;&:hover{cursor:pointer;}",""],.5*m.iI,(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||p.Z.interactive).hoverBackground,";\n ")})),g=t(39643),x=t(95924),b=t(86735),Z=t(44688),y=t(28598);function P(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?P(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _=function(e){var n,t=e.removeTag,r=e.selectTag,d=e.selectedTags,p=void 0===d?[]:d,h=e.tags,f=void 0===h?[]:h,m=e.uuid,P=(0,i.useRef)(null),_=(0,i.useState)(!1),k=_[0],w=_[1],S=(0,i.useState)(null),C=S[0],I=S[1],T=(0,i.useMemo)((function(){return(0,b.YC)(f||[],"uuid")}),[f]),E=(0,i.useMemo)((function(){return null==T?void 0:T.map((function(e){return{itemObject:e,searchQueries:[e.uuid],value:e.uuid}}))}),[T]),M=(0,i.useMemo)((function(){return(null==C?void 0:C.length)>=1?E.concat({itemObject:{uuid:C},searchQueries:[C],value:"Add tag: ".concat(C)}):E}),[E,C]),D=(0,Z.y)(),N=D.registerOnKeyDown,A=D.unregisterOnKeyDown;return(0,i.useEffect)((function(){return function(){return A(m)}}),[A,m]),null==N||N(m,(function(e,n){var t;k&&n[g.vP]&&(w(!1),null==P||null===(t=P.current)||void 0===t||t.blur())}),[k,P]),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.Z,{onClickTag:t,tags:p}),(0,y.jsxs)(u.Z,{mt:1,style:{position:"relative"},children:[(0,y.jsx)(a.Z,{onBlur:function(){return setTimeout((function(){return w(!1)}),150)},onChange:function(e){return I(e.target.value)},onFocus:function(){return w(!0)},ref:P,value:C||""}),(0,y.jsx)(v,{topOffset:null==P||null===(n=P.current)||void 0===n?void 0:n.getBoundingClientRect().height,children:(0,y.jsx)(l.Z,{eventProperties:{eventParameters:{item_type:"tag"}},itemGroups:[{items:k?M:[],renderItem:function(e,n){var t=e.value;return(0,y.jsx)(j,O(O({},n),{},{onClick:function(e){var t;(0,x.j)(e),null==n||null===(t=n.onClick)||void 0===t||t.call(n,e)},children:(0,y.jsx)(o.Z,{small:!0,children:(0,y.jsx)(s.ZP,{children:t})})}))}}],onSelectItem:function(e){var n=e.itemObject;null==r||r(n),I(null)},searchQuery:C,uuid:m})})]})]})}},71610:function(e,n,t){var r=t(82394),i=t(75582),l=t(12691),o=t.n(l),u=t(9518),c=t(82684),s=t(32013),a=t(98777),d=t(15338),p=t(48670),h=t(88543),f=t(38276),m=t(4190),v=t(75499),j=t(30160),g=t(35686),x=t(70515),b=t(30229),Z=t(32080),y=t(81728),P=t(3917),O=t(55283),_=t(70320),k=t(28598);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C={large:!1};n.Z=function(e){var n=e.bookmarkValues,t=e.originalBookmarkValues,l=e.setBookmarkValues,w=e.pipeline,I=(0,c.useContext)(u.ThemeContext),T=(0,_.qB)(),E=(0,c.useState)(null),M=E[0],D=E[1],N=(0,c.useMemo)((function(){return null!=w&&w.blocks?(0,Z.nG)(w):null}),[w]),A=(0,c.useMemo)((function(){return Object.keys(N||{})||[]}),[N]),L=g.ZP.integration_sources.pipelines.list(null==w?void 0:w.uuid,{block_uuid:A},{},{pauseFetch:!(null!=A&&A.length)}).data,H=(0,c.useMemo)((function(){return null==L?void 0:L.integration_sources}),[L]);return(0,c.useEffect)((function(){if((null==H?void 0:H.length)>=1&&(!n||!M)){var e={};null==H||H.map((function(n){var t,r=n.block,l=n.streams,o=null==r?void 0:r.uuid;e[o]={},null===(t=Object.entries(l||{}))||void 0===t||t.forEach((function(n){var t,r,l=(0,i.Z)(n,2),u=l[0],c=l[1];e[o][u]=null==c||null===(t=c.state)||void 0===t||null===(r=t.bookmarks)||void 0===r?void 0:r[u]}))})),n||l(e),M||D(e)}}),[n,M,l,D,H]),(0,k.jsxs)(f.Z,{p:x.cd,children:[!L&&(0,k.jsx)(m.Z,{inverted:!0,small:!0}),null==H?void 0:H.map((function(e){var u=e.block,m=e.pipeline_run,g=e.pipeline_schedule,Z=e.streams,_=null==u?void 0:u.uuid;return(0,k.jsx)(h.Z,{title:(0,k.jsx)(j.ZP,{color:(0,O.qn)(null==u?void 0:u.type,{blockColor:null==u?void 0:u.color,theme:I}).accent,monospace:!0,children:_}),children:(0,k.jsx)(s.Z,{noBorder:!0,noBoxShadow:!0,children:Object.entries(Z||{}).map((function(e){var u,s,Z,O,I=(0,i.Z)(e,2),E=I[0],D=I[1],N=D.record,A=D.state,L=(null==A||null===(u=A.bookmarks)||void 0===u?void 0:u[E])||{};return(0,k.jsxs)(a.Z,{noBorderRadius:!0,noPaddingContent:!0,title:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:E}),titleXPadding:x.cd*x.iI,titleYPadding:x.cd*x.iI,children:[(0,k.jsx)(h.S,S(S({},C),{},{title:"Last pipeline run started at",children:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:(null==m?void 0:m.started_at)&&(0,P.XG)(null==m?void 0:m.started_at,T)})})),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsx)(h.S,S(S({},C),{},{title:"Last pipeline run completed at",children:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:(null==m?void 0:m.completed_at)&&(0,P.XG)(null==m?void 0:m.completed_at,T)})})),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsx)(h.S,S(S({},C),{},{title:"Trigger",children:(0,k.jsx)(o(),{as:"/pipelines/".concat(null==w?void 0:w.uuid,"/triggers/").concat(null==g?void 0:g.id),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,k.jsx)(p.Z,{block:!0,default:!0,openNewWindow:!0,children:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:null==g?void 0:g.name})})})})),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsx)(h.S,S(S({},C),{},{title:"Type",children:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:(0,y.kC)((null===(s=b.Z4[null==g?void 0:g.schedule_type])||void 0===s?void 0:s.call(b.Z4))||"")})})),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsx)(h.S,S(S({},C),{},{title:"Frequency",children:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:null==g?void 0:g.schedule_interval})})),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsxs)(f.Z,{p:x.cd,children:[(0,k.jsx)(j.ZP,{bold:!0,large:!0,children:"Bookmark values"}),(0,k.jsx)(f.Z,{mt:1,children:(0,k.jsxs)(j.ZP,{muted:!0,small:!0,children:["Overriding the bookmark values will be applied to all pipeline runs",(0,k.jsx)("br",{}),"for this trigger until there is at least 1 successful pipeline run in this trigger."]})})]}),(0,k.jsx)(d.Z,{light:!0,short:!0}),!(null!==(Z=Object.values(L||{}))&&void 0!==Z&&Z.length)&&(0,k.jsx)(f.Z,{p:x.cd,children:(0,k.jsx)(j.ZP,{muted:!0,children:"There are currently no bookmark values for this stream."})}),Object.entries(L||{}).map((function(e){var o,u,s,a,d,p,f=(0,i.Z)(e,2),m=f[0],v=(f[1],null==n||null===(o=n[_])||void 0===o||null===(u=o[E])||void 0===u?void 0:u[m]),g=(null==t||null===(s=t[_])||void 0===s||null===(a=s[E])||void 0===a||a[m],null==M||null===(d=M[_])||void 0===d||null===(p=d[E])||void 0===p?void 0:p[m]);return(0,c.createElement)(h.S,S(S({},C),{},{title:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:m}),description:g&&g!==v&&(0,k.jsxs)(j.ZP,{muted:!0,small:!0,children:["Original bookmark value from the last pipeline run: ",(0,k.jsx)(j.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:g})]}),key:"".concat(_,"-bookmark-values-").concat(m),textInput:{monospace:!0,onChange:function(e){return l((function(t){var i;return S(S({},t),{},(0,r.Z)({},_,S(S({},null==n?void 0:n[_]),{},(0,r.Z)({},E,S(S({},null==n||null===(i=n[_])||void 0===i?void 0:i[E]),{},(0,r.Z)({},m,e.target.value))))))}))},value:String(v||"")}}))})),(0,k.jsx)(d.Z,{light:!0}),(0,c.createElement)(h.S,S(S({},C),{},{title:"Record",description:"The most recently synced record.",key:"block-uuid-".concat(_,"-").concat(E)}),(0,k.jsx)(v.Z,{columnFlex:[1,null],columns:[{uuid:"Column"},{uuid:"Value"}],rows:null===(O=Object.entries(N||{}))||void 0===O?void 0:O.map((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];return[(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:t},t),(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:String(r)},"".concat(t,"-").concat(r))]}))}))]})}))})})}))]})}},88785:function(e,n,t){t.d(n,{J:function(){return c},U:function(){return u}});var r=t(9518),i=t(44897),l=t(42631),o=t(70515),u=r.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-m7tlau-0"})(["border-radius:","px;border-style:solid;border-width:2px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],l.TR,14*o.iI,o.cd*o.iI,o.cd*o.iI,40*o.iI,(function(e){return!e.selected&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.selected&&"\n border-color: ".concat((e.theme.interactive||i.Z.interactive).linkPrimary,";\n ")})),c=r.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],l.n_,o.tr,(function(e){return"\n background-color: ".concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.absolute&&"\n position: absolute;\n z-index: 2;\n right: 0;\n top: ".concat(2.5*o.iI,"px;\n ")}),(function(e){return e.topPosition&&"\n top: -".concat(42*o.iI,"px;\n ")}))},12717:function(e,n,t){t.d(n,{Z:function(){return Be}});var r=t(21831),i=t(82394),l=t(75582),o=t(12691),u=t.n(o),c=t(82684),s=t(20026),a=t.n(s),d=t(92083),p=t.n(d),h=t(21764),f=t(83455),m=t(34376),v=t(71610),j=t(71180),g=t(90299),x=t(14805),b=t(70652),Z=t(50724),y=t(9134),P=t(39457),O=t(9518),_=t(39867),k=t(55485),w=t(85854),S=t(38276),C=t(75499),I=t(30160),T=t(17488),E=t(12468),M=t(44375),D=t(70515),N=t(55283),A=t(86735),L=t(28598);function H(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function q(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?H(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):H(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var B=function(e){var n=e.blocks,t=e.updateVariables,r=e.variables,l=(0,c.useContext)(O.ThemeContext),o=(0,c.useCallback)((function(e,n){return t((function(){var t=(null==r?void 0:r.__mage_variables)||{},l=(null==t?void 0:t.blocks)||{},o=l[e]||{},u=(null==o?void 0:o.configuration)||{};return q(q({},r),{},{__mage_variables:q(q({},t),{},{blocks:q(q({},l),{},(0,i.Z)({},e,q(q({},o),{},{configuration:q(q({},u),n)})))})})}))}),[t,r]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(w.Z,{children:"dbt runtime settings"}),(0,L.jsx)(S.Z,{mt:D.Mq,children:(0,L.jsx)(C.Z,{columnFlex:[1,null,null,null],columns:[{uuid:"Block"},{uuid:"Flags"},{uuid:"Prefix"},{uuid:"Suffix"}],compact:!0,rows:null==n?void 0:n.map((function(e){var n,t,i,u=e.type,c=e.uuid,s=(0,M.IU)(e).name,a=(0,N.qn)(u,{blockColor:e.color,theme:l}).accent,d=null==r||null===(n=r.__mage_variables)||void 0===n||null===(t=n.blocks)||void 0===t||null===(i=t[c])||void 0===i?void 0:i.configuration,p=d||{},h=p.prefix,f=p.suffix,m=(null==d?void 0:d.flags)||[],v=!(null==m||!m.includes(M.Dy));return[(0,L.jsx)(E.Z,{block:!0,label:(0,L.jsx)(I.ZP,{monospace:!0,small:!0,children:c}),size:null,widthFitContent:!0,children:(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(_.Z,{color:a,size:1.5*D.iI,square:!0}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsxs)(I.ZP,{monospace:!0,small:!0,children:[h&&(0,L.jsx)(I.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:h}),s,f&&(0,L.jsx)(I.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:f})]})]})},"uuid-".concat(c)),(0,L.jsx)(k.ZP,{alignItems:"center",children:(0,L.jsx)(b.Z,{checked:v,label:M.Dy,monospace:!0,onClick:function(){return o(c,{flags:v?(0,A.Od)(m,(function(e){return M.Dy===e})):m.concat(M.Dy)})},small:!0})},"flags-".concat(c)),(0,L.jsx)(T.Z,{compact:!0,monospace:!0,onChange:function(e){return o(c,{prefix:e.target.value})},placeholder:"N+, +",small:!0,value:h,width:10*D.iI},"prefix-".concat(c)),(0,L.jsx)(T.Z,{compact:!0,monospace:!0,onChange:function(e){return o(c,{suffix:e.target.value})},placeholder:"+, +N",small:!0,value:f,width:10*D.iI},"suffix-".concat(c))]}))})})]})},z=t(97196),U=t(15338),F=t(97618),R=t(48670),V=t(26304),W=t(44897),Y=t(95363),X=t(61896),G=["children","large","lineHeight","ordered"];function J(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function K(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?J(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):J(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Q=(0,O.css)([""," "," "," "," "," "," "," "," "," ",""],(function(e){return!e.muted&&"\n color: ".concat((e.theme.content||W.Z.content).default,";\n ")}),(function(e){return e.muted&&"\n color: ".concat((e.theme.content||W.Z.content).muted,";\n ")}),(function(e){return e.inverted&&"\n color: ".concat((e.theme.content||W.Z.content).inverted,";\n ")}),(function(e){return e.color&&"\n color: ".concat(e.color,";\n ")}),(function(e){return!e.monospace&&"\n font-family: ".concat(Y.ry,";\n ")}),(function(e){return e.monospace&&"\n font-family: ".concat(Y.Vp,";\n ")}),(function(e){return e.large&&"\n ".concat(X.x_,"\n ")}),(function(e){return!e.large&&!e.small&&"\n ".concat(X.i3,"\n ")}),(function(e){return e.small&&"\n ".concat(X.J5,"\n ")}),(function(e){return e.lineHeight&&"\n line-height: ".concat(e.lineHeight,"px !important;\n ")})),$=O.default.ul.withConfig({displayName:"List__UnorderedListStyle",componentId:"sc-1f6yhbi-0"})(["",""],Q),ee=O.default.ol.withConfig({displayName:"List__OrderedListStyle",componentId:"sc-1f6yhbi-1"})(["",""],Q),ne=O.default.li.withConfig({displayName:"List__ListItemStyle",componentId:"sc-1f6yhbi-2"})(["",""],(function(e){return e.large&&e.marginTop&&"\n margin-top: ".concat(1*D.iI,"px;\n ")}));var te,re=function(e){var n=e.children,t=e.large,r=e.lineHeight,i=e.ordered,l=(0,V.Z)(e,G),o=i?ee:$;return(0,L.jsx)(o,K(K({large:t,lineHeight:r},l),{},{children:c.Children.map(n,(function(e,n){var r;return(0,L.jsx)(ne,K(K({large:t,marginTop:n>=1},l),{},{children:c.cloneElement(e)}),(null===(r=e.props)||void 0===r?void 0:r.key)||n)}))}))},ie=t(37899),le=t(75457),oe=t(30229),ue=t(57653),ce=t(83784),se=t(44085),ae=t(81334),de=t(69650),pe=t(81769),he=t(54193),fe=t(72473),me=t(81728),ve=t(16488),je=t(70320),ge=(te={},(0,i.Z)(te,he.zj.DATE,fe.CalendarDate),(0,i.Z)(te,he.zj.DATETIME,fe.Schedule),(0,i.Z)(te,he.zj.DICTIONARY,fe.DocumentIcon),(0,i.Z)(te,he.zj.FLOAT,fe.NumberWithDecimalHash),(0,i.Z)(te,he.zj.INTEGER,fe.NumberHash),(0,i.Z)(te,he.zj.LIST,fe.TodoList),(0,i.Z)(te,he.zj.STRING,fe.Alphabet),te);var xe=function(e){var n,t,r,i=e.containerRef,o=e.date,u=e.interactions,s=e.pipeline,a=e.pipelineInteraction,d=e.pipelineSchedule,p=e.setVariables,h=e.showSummary,f=e.time,m=e.triggerTypes,v=e.variables,j=(0,c.useMemo)((function(){return(0,A.HK)(u||[],(function(e){return e.uuid}))}),[u]),g=(0,c.useMemo)((function(){return(null==s?void 0:s.blocks)||[]}),[s]),x=(0,c.useMemo)((function(){return(null==a?void 0:a.blocks)||{}}),[a]),b=(0,c.useMemo)((function(){var e=[];null==g||g.length;return null==g||g.map((function(n,t){var r=(n||{uuid:null}).uuid,l=(null==x?void 0:x[r])||[];null==l||l.length;e.push((0,L.jsx)(S.Z,{p:D.cd,children:null==l?void 0:l.map((function(e,n){return(0,L.jsx)(S.Z,{mt:n>=1?2*D.cd:0,children:(0,L.jsx)(pe.Z,{blockInteraction:e,containerRef:i,interaction:null==j?void 0:j[null==e?void 0:e.uuid],setVariables:p,variables:v})},"".concat(null==e?void 0:e.uuid,"-").concat(n))}))}))})),e}),[g,i,j,p,v]),Z=(0,je.qB)(),y=(0,c.useMemo)((function(){return o&&null!=f&&f.hour&&null!=f&&f.minute?(0,ve.XM)(o,f,{convertToUtc:Z,includeSeconds:!0,localTimezone:Z}):null}),[o,Z,f]),P=(0,c.useMemo)((function(){var e=[];null==g||g.length;return null==g||g.map((function(n,t){var r=(n||{uuid:null}).uuid,i=(null==x?void 0:x[r])||[];null==i||i.forEach((function(n,i){var o=null==j?void 0:j[null==n?void 0:n.uuid];Object.entries((null==o?void 0:o.variables)||{}).forEach((function(n,o){var u,c=(0,l.Z)(n,2),s=c[0],a=c[1],d=a.name,p=a.required,h=a.types,f=null==v?void 0:v[s],m=void 0===f,j=p&&m,g=(null==ge?void 0:ge[h[0]])||fe.Alphabet,x=[];void 0!==f?f&&Array.isArray(f||[])?null==f||f.forEach((function(e){x.push(e&&"object"==typeof e?x.push(JSON.stringify(e)):x.push(String(e)))})):f&&"object"==typeof f?Object.entries(f||{}).forEach((function(e){var n=(0,l.Z)(e,2),t=n[0];n[1]&&x.push(String(t))})):x.push(String(f)):x.push(f||""),e.push([(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(g,{default:!0,size:1.5*D.iI}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,monospace:!0,children:s})]},"".concat(r,"-").concat(s,"-label-").concat(d,"-").concat(t,"-").concat(i,"-").concat(o)),(0,L.jsx)(S.Z,{py:D.cd,children:(0,L.jsxs)(I.ZP,{danger:j,monospace:!j,muted:m,children:[m&&!j&&"-",j&&"This is required",!m&&!j&&(null==x||null===(u=x.map((function(e){return String(e)})))||void 0===u?void 0:u.join(", "))]})},"".concat(r,"-").concat(s,"-value-").concat(d,"-").concat(f,"-").concat(t,"-").concat(i,"-").concat(o))])}))}))})),(0,L.jsx)(C.Z,{columnFlex:[null,1],rows:e})}),[g,j,v]);return(0,L.jsxs)(L.Fragment,{children:[!h&&b,h&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(S.Z,{p:D.cd,children:(0,L.jsx)(w.Z,{children:"Settings"})}),(0,L.jsx)(U.Z,{light:!0,short:!0}),(0,L.jsx)(C.Z,{columnFlex:[null,1],rows:[[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.Lightning,{default:!0}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"Trigger type"})]},"trigger_type"),(0,L.jsx)(S.Z,{py:D.cd,children:(0,L.jsx)(I.ZP,{danger:!(null!=d&&d.schedule_type),monospace:!0,children:null!=d&&d.schedule_type?null==m||null===(n=m.find((function(e){return e.uuid===(null==d?void 0:d.schedule_type)})))||void 0===n||null===(t=n.label)||void 0===t?void 0:t.call(n):"This is required"})},"trigger_type_input")],[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.Alphabet,{default:!0}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"Trigger name"})]},"trigger_name"),(0,L.jsx)(S.Z,{py:D.cd,children:(0,L.jsx)(I.ZP,{danger:!(null!=d&&d.name),monospace:!0,children:(null==d?void 0:d.name)||"This is required"})},"trigger_name_input")],[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.Alphabet,{default:!0}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"Trigger description"})]},"trigger_description"),(0,L.jsx)(S.Z,{py:D.cd,children:(0,L.jsx)(I.ZP,{monospace:!0,muted:!(null!=d&&d.description),children:(null==d?void 0:d.description)||"-"})},"trigger_description_input")],[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.Schedule,{default:!0,size:1.5*D.iI}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"Frequency"})]},"frequency"),(0,L.jsx)(S.Z,{py:D.cd,children:(0,L.jsxs)(I.ZP,{danger:!(null!=d&&d.schedule_interval),monospace:!0,muted:!(null!=d&&d.schedule_interval),children:[(null==d?void 0:d.schedule_interval)&&(0,me.vg)((null==d||null===(r=d.schedule_interval)||void 0===r?void 0:r.substring(1))||""),!(null!=d&&d.schedule_interval)&&"This is required"]})},"frequency_input")],[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.CalendarDate,{default:!0,size:1.5*D.iI}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"Start date and time"})]},"start_time"),(0,L.jsx)(S.Z,{py:D.cd,children:(0,L.jsx)(I.ZP,{danger:!y,monospace:!!y,muted:!y,children:y||"This is required"})},"start_time_input")]]}),(0,L.jsx)(S.Z,{p:D.cd,children:(0,L.jsx)(w.Z,{children:"Customize"})}),(0,L.jsx)(U.Z,{light:!0,short:!0}),P]})]})},be=t(35686),Ze=t(77417),ye=t(44425),Pe=t(88785),Oe=t(3917),_e=t(82359),ke=t(28795),we=t(41143),Se={label:function(){return"CUSTOMIZE"},uuid:"customize"},Ce={label:function(){return"SETTINGS"},uuid:"settings"},Ie={label:function(){return"REVIEW"},uuid:"review"},Te=[Ce,Se,Ie],Ee=t(32080),Me=t(22286),De=t(79500),Ne=t(8916),Ae=t(42122),Le=t(72619);function He(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function qe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?He(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):He(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Be=function(e){var n=e.creatingWithLimitation,t=e.errors,o=e.fetchPipelineSchedule,s=e.onCancel,d=e.pipeline,O=e.pipelineSchedule,_=e.setErrors,E=e.variables,M=e.useCreateScheduleMutation,H=(0,Ze.Z)().project,q=(0,c.useRef)(null),V=(0,m.useRouter)(),W=(0,je.qB)(),Y=null==d?void 0:d.uuid,X=(0,c.useMemo)((function(){return null==O?void 0:O.id}),[O]),G=(null==d?void 0:d.type)===ue.qL.STREAMING,J=(0,c.useMemo)((function(){var e;return null==O||null===(e=O.variables)||void 0===e?void 0:e[oe.PN]}),[O]),K=(0,c.useState)(J?"string"==typeof J&&(0,me.Pb)(J)?JSON.stringify(J):J:null),Q=K[0],$=K[1],ee=(0,c.useState)([]),ne=ee[0],te=ee[1],pe=(0,c.useState)(!0),he=pe[0],ge=pe[1],He=(0,c.useState)(!1),Be=He[0],ze=He[1],Ue=(0,c.useState)(!1),Fe=Ue[0],Re=Ue[1],Ve=(0,c.useState)(null),We=Ve[0],Ye=Ve[1],Xe=(0,c.useState)({}),Ge=Xe[0],Je=Xe[1],Ke=(0,c.useState)(null),Qe=Ke[0],$e=Ke[1],en=(0,c.useState)(null),nn=en[0],tn=en[1],rn=(0,c.useState)(!1),ln=rn[0],on=rn[1],un=(0,c.useState)(null),cn=un[0],sn=un[1],an=(0,c.useState)(Te[0].uuid),dn=an[0],pn=an[1],hn=(0,c.useMemo)((function(){var e;return!(null==H||null===(e=H.features)||void 0===e||!e[_e.d.INTERACTIONS])}),[null==H?void 0:H.features]),fn=(0,c.useMemo)((function(){return!X&&n}),[n,X]),mn=be.ZP.pipeline_interactions.detail(hn&&Y,{filter_for_permissions:1}).data,vn=be.ZP.interactions.pipeline_interactions.list(hn&&Y).data,jn=(0,c.useMemo)((function(){return(null==mn?void 0:mn.pipeline_interaction)||{}}),[mn]),gn=(0,c.useMemo)((function(){return(null==vn?void 0:vn.interactions)||[]}),[vn]),xn=(0,c.useMemo)((function(){var e;return hn&&(null===(e=Object.keys((null==jn?void 0:jn.blocks)||{}))||void 0===e?void 0:e.length)>=1}),[hn,jn]),bn=(0,c.useMemo)((function(){return!!X&&xn}),[xn,X]),Zn=(0,c.useMemo)((function(){var e,n={};return null==jn||null===(e=jn.permissions)||void 0===e||e.forEach((function(e){var t=e.triggers;null==t||t.forEach((function(e){var t=e.schedule_interval,r=e.schedule_type;null!=n&&n[r]||(n[r]={}),t&&(n[r][t]=!0)}))})),n}),[jn]),yn=(0,c.useMemo)((function(){return(0,Ne.wx)(E,(function(e){return e.uuid===ce.C}))}),[E]),Pn=(0,c.useMemo)((function(){return Qe||{}}),[Qe]),On=Pn.description,_n=Pn.name,kn=Pn.schedule_interval,wn=Pn.schedule_type,Sn=Pn.settings,Cn=Pn.start_time,In=Pn.tags,Tn=Pn.variables,En=void 0===Tn?{}:Tn;(0,c.useEffect)((function(){!We&&Sn&&Ye(Sn)}),[We,Sn]);var Mn=(0,c.useState)(null),Dn=Mn[0],Nn=Mn[1],An=(0,c.useState)({hour:"00",minute:"00"}),Ln=An[0],Hn=An[1],qn=(0,c.useState)({dayOfMonth:null,dayOfWeek:null,hour:null,minute:null,second:null}),Bn=qn[0],zn=qn[1],Un=be.ZP.event_rules.detail(oe.Xm.EVENT===wn?"aws":null).data,Fn=(0,c.useMemo)((function(){var e;return(null==Un||null===(e=Un.event_rule)||void 0===e?void 0:e.rules)||[]}),[Un]),Rn=(0,c.useMemo)((function(){return(0,A.HK)(Fn,(function(e){return e.name}))}),[Fn]),Vn=(0,f.Db)(be.ZP.pipeline_schedules.useUpdate(X),{onSuccess:function(e){return(0,Le.wD)(e,{callback:function(){null==o||o(),V.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(Y,"/triggers/").concat(X))},onErrorCallback:function(e,n){return _({errors:n,response:e})}})}}),Wn=(0,l.Z)(Vn,2),Yn=Wn[0],Xn=Wn[1].isLoading,Gn=(0,c.useMemo)((function(){return En||{}}),[En]);(0,c.useEffect)((function(){var e=p().utc().format(Oe.TD),n=(0,De.a)(Cn||e,{localTimezone:W});if(Nn(null==n?void 0:n.date),Hn(null==n?void 0:n.time),Cn){var t=p()(Cn).utc();zn({dayOfMonth:t.date(),dayOfWeek:t.day(),hour:t.hours(),minute:t.minutes(),second:t.seconds()})}}),[W,Cn]),(0,c.useEffect)((function(){Gn&&Object.keys(Gn).length>0&&ge(!0)}),[Gn]),(0,c.useEffect)((function(){Je(he?null==yn?void 0:yn.reduce((function(e,n){var t=n.uuid,r=n.value;return qe(qe({},e),{},(0,i.Z)({},t,Gn[t]||r))}),{}):null)}),[yn,he,Gn]);var Jn=(0,c.useMemo)((function(){return(0,ve._U)(kn)}),[kn]),Kn=(0,c.useMemo)((function(){return Jn&&cn?a().toString(cn,{throwExceptionOnParseError:!1}):""}),[cn,Jn]),Qn=(0,c.useMemo)((function(){return null==Kn?void 0:Kn.toLowerCase().includes("error")}),[Kn]);(0,c.useEffect)((function(){if(O&&!Qe){if(te(O.event_matchers),(0,ve._U)(null==O?void 0:O.schedule_interval)){var e=W?(0,ve.lO)(null==O?void 0:O.schedule_interval):null==O?void 0:O.schedule_interval;sn(e),$e(qe(qe({},O),{},{schedule_interval:"custom"}))}else $e(G?qe(qe({},O),{},{schedule_interval:oe.U5.ONCE}):O);var n=O.sla;if(n){ze(!0);var t=(0,ve.gU)(n),r=t.time,i=t.unit;$e((function(e){return qe(qe({},e),{},{slaAmount:r,slaUnit:i})}))}}}),[W,G,O,Qe,kn]);var $n=(0,c.useMemo)((function(){return!(null==We||!We.landing_time_enabled)}),[We]),et=(0,c.useMemo)((function(){return oe.Xm.TIME!==wn||![oe.U5.DAILY,oe.U5.HOURLY,oe.U5.MONTHLY,oe.U5.WEEKLY].includes(kn)}),[kn,wn]),nt=(0,c.useMemo)((function(){return $n&&!et}),[et,$n]),tt=(0,c.useCallback)((function(){var e=qe(qe({},(0,Ae.GL)(Qe,["name","description","schedule_type","tags"])),{},{event_matchers:[],schedule_interval:null,start_time:null,variables:(0,Ne.e7)(qe(qe({},Ge),Q?(0,i.Z)({},oe.PN,Q):{}))});if(nt){var n=Bn.dayOfMonth,t=Bn.dayOfWeek,r=Bn.hour,l=Bn.minute,o=Bn.second,u=p()("2023-07-01").utc();(0,me.HW)(n)&&(u=u.date(n)),(0,me.HW)(t)&&(u=u.day(t)),(0,me.HW)(r)&&(u=u.hours(r)),(0,me.HW)(l)&&(u=u.minutes(l)),(0,me.HW)(o)&&(u=u.seconds(o)),e.schedule_interval=Jn?cn:Qe.schedule_interval,e.start_time=u.toISOString()}else oe.Xm.EVENT===Qe.schedule_type?e.event_matchers=ne:(e.schedule_interval=Jn?W&&!Qn&&cn?(0,ve.lO)(cn,!0):cn:Qe.schedule_interval,e.start_time=Dn&&null!=Ln&&Ln.hour&&null!=Ln&&Ln.minute?(0,ve.XM)(Dn,Ln,{convertToUtc:W,includeSeconds:!0,localTimezone:W}):null);if(Be){var c=null==Qe?void 0:Qe.slaAmount,s=null==Qe?void 0:Qe.slaUnit;if(!c||isNaN(c)||!s)return void h.Am.error("Please enter a valid SLA",{position:h.Am.POSITION.BOTTOM_RIGHT,toastId:"sla_error"});e.sla=(0,ve.vJ)(c,s)}else null!=O&&O.sla&&(e.sla=0);e.settings=We,Yn({pipeline_schedule:qe(qe({},e),{},{variables:nn||(null==e?void 0:e.variables)})})}),[Q,Qn,cn,Dn,W,Be,ne,Jn,Bn,O,Ge,Qe,We,nt,Ln,Yn,nn]),rt=(0,c.useMemo)((function(){if(null==O||!O.runtime_average)return"Trigger doesn’t have enough history to estimate runtime.";var e=Number(null==O?void 0:O.runtime_average),n=Math.max(Math.floor(e/3600),0),t=Math.max(Math.floor((e-60*n*60)/60),0),r=Math.max(Math.floor(e-(60*n*60+60*t)),0),i=[];return n>=1&&i.push((0,me._6)("hour",n,!0)),t>=1&&i.push((0,me._6)("minute",t,!0)),r>=1&&i.push((0,me._6)("second",r,!0)),i.join(" ")}),[O]),it=(0,c.useMemo)((function(){if(!nt)return null;var e=[(0,L.jsxs)(S.Z,{mr:1,children:[(0,L.jsx)(S.Z,{mb:1,children:(0,L.jsx)(I.ZP,{bold:!0,default:!0,small:!0,children:"Minute"})}),(0,L.jsxs)(se.Z,{compact:!0,monospace:!0,onChange:function(e){zn((function(n){return qe(qe({},n),{},{minute:e.target.value})}))},value:(null==Bn?void 0:Bn.minute)||"",children:[(0,L.jsx)("option",{value:""}),(0,A.w6)(60).map((function(e,n){return(0,L.jsx)("option",{value:n,children:n>=10?String(n):"0".concat(n)},n)}))]})]},"Minute"),(0,L.jsxs)(S.Z,{mr:1,children:[(0,L.jsx)(S.Z,{mb:1,children:(0,L.jsx)(I.ZP,{bold:!0,default:!0,small:!0,children:"Second"})}),(0,L.jsxs)(se.Z,{compact:!0,monospace:!0,onChange:function(e){zn((function(n){return qe(qe({},n),{},{second:e.target.value})}))},value:(null==Bn?void 0:Bn.second)||"",children:[(0,L.jsx)("option",{value:""}),(0,A.w6)(60).map((function(e,n){return(0,L.jsx)("option",{value:n,children:n>=10?String(n):"0".concat(n)},n)}))]})]},"Second")];return[oe.U5.DAILY,oe.U5.MONTHLY,oe.U5.WEEKLY].includes(kn)&&e.unshift((0,L.jsxs)(S.Z,{mr:1,children:[(0,L.jsx)(S.Z,{mb:1,children:(0,L.jsx)(I.ZP,{bold:!0,default:!0,small:!0,children:"Hour"})}),(0,L.jsxs)(se.Z,{compact:!0,monospace:!0,onChange:function(e){zn((function(n){return qe(qe({},n),{},{hour:e.target.value})}))},value:(null==Bn?void 0:Bn.hour)||"",children:[(0,L.jsx)("option",{value:""}),(0,A.w6)(24).map((function(e,n){return(0,L.jsx)("option",{value:n,children:n>=10?String(n):"0".concat(n)},n)}))]})]},"Hour")),oe.U5.WEEKLY===kn?e.unshift((0,L.jsxs)(S.Z,{mr:1,children:[(0,L.jsx)(S.Z,{mb:1,children:(0,L.jsx)(I.ZP,{bold:!0,default:!0,small:!0,children:"Day of the week"})}),(0,L.jsxs)(se.Z,{compact:!0,monospace:!0,onChange:function(e){zn((function(n){return qe(qe({},n),{},{dayOfWeek:e.target.value})}))},value:(null==Bn?void 0:Bn.dayOfWeek)||"",children:[(0,L.jsx)("option",{value:""}),(0,L.jsx)("option",{value:6,children:"Sunday"}),(0,L.jsx)("option",{value:0,children:"Monday"}),(0,L.jsx)("option",{value:1,children:"Tuesday"}),(0,L.jsx)("option",{value:2,children:"Wednesday"}),(0,L.jsx)("option",{value:3,children:"Thursday"}),(0,L.jsx)("option",{value:4,children:"Friday"}),(0,L.jsx)("option",{value:5,children:"Saturday"})]})]},"Day of the week")):oe.U5.MONTHLY===kn&&e.unshift((0,L.jsxs)(S.Z,{mr:1,children:[(0,L.jsx)(S.Z,{mb:1,children:(0,L.jsx)(I.ZP,{bold:!0,default:!0,small:!0,children:"Day of the month"})}),(0,L.jsxs)(se.Z,{compact:!0,monospace:!0,onChange:function(e){zn((function(n){return qe(qe({},n),{},{dayOfMonth:e.target.value})}))},value:(null==Bn?void 0:Bn.dayOfMonth)||"",children:[(0,L.jsx)("option",{value:""}),(0,A.w6)(31).map((function(e,n){return(0,L.jsx)("option",{value:n+1,children:n+1>=10?String(n+1):"0".concat(n+1)},n+1)}))]})]},"Day of the month")),(0,L.jsx)(k.ZP,{children:e})}),[Bn,kn,nt]),lt=(0,c.useMemo)((function(){return[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.Alphabet,{default:!0}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"Trigger name"})]},"trigger_name"),(0,L.jsx)(T.Z,{monospace:!0,onChange:function(e){e.preventDefault(),$e((function(n){return qe(qe({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:_n},"trigger_name_input")]}),[_n]),ot=(0,c.useMemo)((function(){return[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.Alphabet,{default:!0}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"Trigger description"})]},"trigger_description"),(0,L.jsx)(T.Z,{monospace:!0,onChange:function(e){e.preventDefault(),$e((function(n){return qe(qe({},n),{},{description:e.target.value})}))},placeholder:"Description",value:On},"trigger_description_input")]}),[On]),ut=(0,c.useMemo)((function(){var e=[lt,ot,[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.Schedule,{default:!0,size:1.5*D.iI}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"Frequency"})]},"frequency"),(0,L.jsxs)("div",{children:[(0,L.jsxs)(se.Z,{monospace:!0,onChange:function(e){e.preventDefault();var n=e.target.value;$e((function(e){return qe(qe({},e),{},{schedule_interval:n})}))},placeholder:"Choose the frequency to run",value:kn,children:[Object.values(oe.U5).reduce((function(e,n){var t;return!fn||null!=Zn&&null!==(t=Zn[oe.Xm.TIME])&&void 0!==t&&t[n]?e.concat((0,L.jsx)("option",{value:n,children:n.substring(1)},n)):e}),[]),!fn&&(0,L.jsx)("option",{value:"custom",children:"custom"},"custom")]}),!fn&&(0,L.jsx)(S.Z,{mt:1,p:1,children:(0,L.jsxs)(I.ZP,{muted:!0,small:!0,children:["If you don't see the frequency option you need, select ",(0,L.jsx)(I.ZP,{inline:!0,monospace:!0,small:!0,children:"custom"})," and enter CRON syntax."]})})]},"frequency_input")]];return fn||e.push([(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.Switch,{default:!0,size:1.5*D.iI}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"Enable landing time"})]},"frequency"),(0,L.jsxs)("div",{children:[(0,L.jsx)(de.Z,{checked:$n,disabled:et,onCheck:function(){Ye((function(e){return qe(qe({},e),{},{landing_time_enabled:!$n})}))}}),(0,L.jsxs)(S.Z,{mt:1,p:1,children:[et&&(0,L.jsxs)(I.ZP,{muted:!0,small:!0,children:["In order to enable landing time, the trigger’s frequency must be ",(0,L.jsx)(I.ZP,{inline:!0,monospace:!0,small:!0,children:oe.U5.HOURLY}),", ",(0,L.jsx)(I.ZP,{inline:!0,monospace:!0,small:!0,children:oe.U5.DAILY}),", ",(0,L.jsx)(I.ZP,{inline:!0,monospace:!0,small:!0,children:oe.U5.WEEKLY}),", or ",(0,L.jsx)(I.ZP,{inline:!0,monospace:!0,small:!0,children:oe.U5.MONTHLY}),"."]}),!et&&(0,L.jsx)(I.ZP,{muted:!0,small:!0,children:"Instead of starting at a specific time, this trigger will schedule pipeline runs at a time where it will finish by the specified time below."})]})]},"frequency_input")]),nt&&e.push([(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.Schedule,{default:!0,size:1.5*D.iI}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"Average runtime"})]},"runtime_average"),(0,L.jsx)(k.ZP,{alignItems:"center",style:{minHeight:"".concat(5.75*D.iI,"px")},children:(0,L.jsx)(I.ZP,{monospace:!0,children:rt})},"runtime_average_value")]),e.push([(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.CalendarDate,{default:!0,size:1.5*D.iI}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsxs)(I.ZP,{default:!0,children:[nt&&"Pipeline complete by",!nt&&"Start date and time"]})]},"start_time"),nt?it:(0,L.jsxs)("div",{style:{minHeight:"".concat(5.75*D.iI,"px")},children:[!ln&&(0,L.jsx)(T.Z,{monospace:!0,onClick:function(){return on((function(e){return!e}))},placeholder:"YYYY-MM-DD HH:MM",value:Dn?(0,ve.XM)(Dn,Ln,{localTimezone:W}):""}),(0,L.jsx)("div",{style:{width:"400px"},children:(0,L.jsx)(Z.Z,{disableEscape:!0,onClickOutside:function(){return on(!1)},open:ln,style:{position:"relative"},children:(0,L.jsx)(x.Z,{localTime:W,selectedDate:Dn,selectedTime:Ln,setSelectedDate:Nn,setSelectedTime:Hn,topPosition:!0})})})]},"start_time_input")]),G&&e.splice(2,2),Jn&&e.splice(2,0,[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.Code,{default:!0,size:1.5*D.iI}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"Cron expression"})]},"cron_expression"),(0,L.jsxs)("div",{children:[(0,L.jsx)(T.Z,{monospace:!0,onChange:function(e){e.preventDefault(),sn(e.target.value)},placeholder:"* * * * *",value:cn}),(0,L.jsxs)(S.Z,{mt:1,p:1,children:[(0,L.jsx)(I.ZP,{monospace:!0,xsmall:!0,children:"[minute] [hour] [day(month)] [month] [day(week)]"}),(0,L.jsx)(S.Z,{mb:"2px"}),cn?(0,L.jsx)(I.ZP,{danger:Qn,muted:!0,small:!0,children:Qn?"Invalid cron expression. Please check the cron syntax.":(0,L.jsxs)(L.Fragment,{children:['"',Kn,'"']})}):null,W&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(I.ZP,{bold:!0,inline:!0,small:!0,warning:!0,children:"Note: "}),(0,L.jsxs)(I.ZP,{inline:!0,small:!0,children:["If you have the display_local_timezone setting enabled, the local cron expression above will match your local timezone only",(0,L.jsx)("br",{}),"if the minute and hour values are single values without any special characters, such as the comma, hyphen, or slash.",(0,L.jsx)("br",{}),"You can still use cron expressions with special characters for the minute/hour values, but it will be based in UTC time."]})]})]})]},"cron_expression_input")]),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(S.Z,{mb:2,px:D.cd,children:(0,L.jsx)(w.Z,{children:"Settings"})}),(0,L.jsx)(U.Z,{light:!0,short:!0}),(0,L.jsx)(C.Z,{columnFlex:[null,1],rows:e})]})}),[Qn,cn,Dn,W,fn,Jn,G,et,$n,it,Zn,Kn,rt,kn,ln,nt,Ln,lt,ot]),ct=(0,c.useCallback)((function(e,n){te((function(t){return Object.entries(n).forEach((function(n){var r=(0,l.Z)(n,2),i=r[0],o=r[1];t[e][i]=o})),(0,r.Z)(t)}))}),[te]),st=(0,c.useMemo)((function(){return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(S.Z,{mb:D.cd,px:D.cd,children:(0,L.jsx)(w.Z,{children:"Settings"})}),(0,L.jsx)(U.Z,{light:!0,short:!0}),(0,L.jsx)(C.Z,{columnFlex:[null,1],rows:[lt,ot]}),(0,L.jsxs)(S.Z,{mb:2,mt:5,px:D.cd,children:[(0,L.jsx)(w.Z,{children:"Events"}),(0,L.jsxs)(I.ZP,{muted:!0,children:["Add 1 or more event that will trigger this pipeline to run.",(0,L.jsx)("br",{}),"If you add more than 1 event, this pipeline will trigger if any of the events are received."]}),(0,L.jsxs)(S.Z,{mt:D.Mq,children:[(0,L.jsx)(I.ZP,{bold:!0,large:!0,children:"AWS events"}),(0,L.jsxs)(I.ZP,{muted:!0,children:["In order to retrieve all the possible AWS events you can trigger your pipeline from,",(0,L.jsx)("br",{}),"you’ll need to set 3 environment variables (",(0,L.jsx)(R.Z,{href:"https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html",openNewWindow:!0,underline:!0,children:"more info here"}),"):"]}),(0,L.jsx)(S.Z,{mt:1,children:(0,L.jsxs)(re,{monospace:!0,ordered:!0,children:[(0,L.jsx)(I.ZP,{monospace:!0,children:"AWS_REGION_NAME"}),(0,L.jsx)(I.ZP,{monospace:!0,children:"AWS_ACCESS_KEY_ID"}),(0,L.jsx)(I.ZP,{monospace:!0,children:"AWS_SECRET_ACCESS_KEY"})]})})]})]}),(0,L.jsx)(U.Z,{light:!0,short:!0}),(null==ne?void 0:ne.length)>=1&&(0,L.jsx)(C.Z,{alignTop:!0,columnFlex:[1,1,2,null],columns:[{uuid:"Provider"},{uuid:"Event"},{uuid:"Pattern"},{label:function(){return""},uuid:"delete"}],rows:null==ne?void 0:ne.map((function(e,n){var t=e.event_type,r=e.name,i=e.pattern,l=e.id||"".concat(t,"-").concat(r,"-").concat(n,"-").concat(JSON.stringify(i)),o=[];return i&&JSON.stringify(i,null,2).split("\n").forEach((function(e){o.push(" ".concat(e))})),[(0,L.jsx)(se.Z,{monospace:!0,onChange:function(e){return ct(n,{event_type:e.target.value})},placeholder:"Event provider",value:t||"",children:z.S5.map((function(e){var n=e.label,t=e.uuid;return(0,L.jsx)("option",{value:t,children:n()},t)}))},"event-provider-".concat(l)),(0,L.jsx)(se.Z,{monospace:!0,onChange:function(e){var t,r=e.target.value,i=null===(t=Rn[r])||void 0===t?void 0:t.event_pattern;ct(n,{name:r,pattern:i?JSON.parse(i):null})},placeholder:"Event name",value:r,children:Fn.map((function(e){var n=e.name;return(0,L.jsx)("option",{value:n,children:n},n)}))},"event-name-".concat(l)),i&&(0,L.jsx)(y.Z,{language:"json",small:!0,source:o.join("\n")}),(0,L.jsx)(j.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return te((function(e){return(0,A.oM)(e,n)}))},children:(0,L.jsx)(fe.Trash,{default:!0,size:2*D.iI})},"remove_event")]}))}),(0,L.jsx)(S.Z,{p:D.cd,children:(0,L.jsx)(j.ZP,{beforeIcon:(0,L.jsx)(fe.Add,{size:2*D.iI}),onClick:function(){return te((function(e){return e.concat({})}))},outline:!0,children:"Add event matcher"})})]})}),[ne,Fn,Rn,lt,ot,ct]),at=(0,c.useMemo)((function(){var e=(0,ve.M8)(O,Fe);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(S.Z,{mb:D.cd,px:D.cd,children:(0,L.jsx)(w.Z,{children:"Settings"})}),(0,L.jsx)(U.Z,{light:!0,short:!0}),(0,L.jsx)(C.Z,{columnFlex:[null,1],rows:[lt,ot]}),(0,L.jsxs)(S.Z,{mb:2,mt:5,px:D.cd,children:[(0,L.jsx)(w.Z,{children:"Endpoint"}),(0,L.jsxs)(I.ZP,{muted:!0,children:["Make a ",(0,L.jsx)(I.ZP,{bold:!0,inline:!0,monospace:!0,children:"POST"})," request to the following endpoint:"]}),(0,L.jsx)(S.Z,{mt:D.Mq,children:(0,L.jsx)(P.Z,{copiedText:e,linkText:e,monospace:!0,withCopyIcon:!0})}),(0,L.jsx)(S.Z,{mt:D.Mq,children:(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(S.Z,{mr:1,children:(0,L.jsx)(de.Z,{checked:Fe,onCheck:function(){return Re(!Fe)}})}),(0,L.jsx)(I.ZP,{muted:!0,children:"Show alternative endpoint to pass token in headers"})]})})]}),Fe&&(0,L.jsxs)(S.Z,{mb:2,mt:5,px:D.cd,children:[(0,L.jsx)(w.Z,{children:"Headers"}),(0,L.jsx)(I.ZP,{muted:!0,children:"You will need to include the following headers in your request to authenticate with the server."}),(0,L.jsx)(S.Z,{mt:D.Mq,children:(0,L.jsx)(P.Z,{copiedText:"Content-Type: application/json\n Authorization: Bearer ".concat(null==O?void 0:O.token,"\n "),withCopyIcon:!0,children:(0,L.jsx)(y.Z,{language:"json",small:!0,source:"\n Content-Type: application/json\n Authorization: Bearer ".concat(null==O?void 0:O.token,"\n ")})})})]}),(0,L.jsxs)(S.Z,{mb:2,mt:5,px:D.cd,children:[(0,L.jsx)(w.Z,{children:"Payload"}),(0,L.jsx)(I.ZP,{muted:!0,children:"You can optionally include runtime variables in your request payload. These runtime variables are accessible from within each pipeline block."}),(0,L.jsx)(S.Z,{mt:D.Mq,children:(0,L.jsx)(P.Z,{copiedText:'{\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n}\n',withCopyIcon:!0,children:(0,L.jsx)(y.Z,{language:"json",small:!0,source:'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\n'})})})]}),(0,L.jsxs)(S.Z,{mb:2,mt:5,px:D.cd,children:[(0,L.jsx)(w.Z,{children:"Sample cURL command"}),(0,L.jsx)(S.Z,{mt:D.Mq,children:(0,L.jsx)(y.Z,{language:"bash",small:!0,source:Fe?"\n curl -X POST ".concat(e," \\\n --header 'Content-Type: application/json' \\\n --header 'Authorization: Bearer ").concat(null==O?void 0:O.token,'\' \\\n --data \'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\'\n '):"\n curl -X POST ".concat(e,' \\\n --header \'Content-Type: application/json\' \\\n --data \'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\'\n')})})]})]})}),[O,Re,ot,lt,Fe]),dt=!(wn&&(oe.Xm.TIME!==wn||G&&Dn||!G&&Dn&&kn)&&(oe.Xm.EVENT!==wn||null!=ne&&ne.length&&ne.every((function(e){var n=e.event_type,t=e.name;return n&&t})))),pt=(0,c.useMemo)((function(){var e;return(null==d||null===(e=d.blocks)||void 0===e?void 0:e.filter((function(e){var n=e.type;return ye.tf.DBT===n})))||[]}),[d]),ht=(0,c.useMemo)((function(){return null!=d&&d.blocks?(0,Ee.nG)(d):null}),[d]),ft=(0,c.useMemo)((function(){var e,n;return(0,L.jsxs)(S.Z,{py:D.cd,children:[(0,L.jsxs)(S.Z,{mb:D.HN,px:D.cd,children:[(0,L.jsx)(w.Z,{children:"Run settings"}),(0,L.jsxs)(S.Z,{mt:D.Mq,children:[!G&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(S.Z,{mb:D.Mq,children:[(0,L.jsx)(I.ZP,{children:"Set a timeout for each run of this trigger (optional)"}),(0,L.jsx)(S.Z,{mb:1}),(0,L.jsx)(T.Z,{label:"Timeout (in seconds)",onChange:function(e){return Ye((function(n){return qe(qe({},n),{},{timeout:e.target.value})}))},primary:!0,setContentOnMount:!0,type:"number",value:null==We?void 0:We.timeout})]}),(0,L.jsxs)(S.Z,{mb:D.Mq,children:[(0,L.jsx)(I.ZP,{children:"Status for runs that exceed the timeout (default: failed)"}),(0,L.jsx)(S.Z,{mb:1}),(0,L.jsxs)(se.Z,{fullWidth:!0,monospace:!0,onChange:function(e){e.preventDefault(),Ye((function(n){return qe(qe({},n),{},{timeout_status:e.target.value})}))},placeholder:"Timeout status",value:null==We?void 0:We.timeout_status,children:[(0,L.jsx)("option",{value:we.V.FAILED,children:"Failed"}),(0,L.jsx)("option",{value:we.V.CANCELLED,children:"Cancelled"})]})]})]}),(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(S.Z,{mr:2,children:(0,L.jsx)(de.Z,{checked:Be,onCheck:function(e){ze(e),e||$e((function(e){return qe(qe({},e),{},{slaAmount:0})}))}})}),(0,L.jsx)(I.ZP,{default:!0,monospace:!0,children:"Configure trigger SLA"})]}),Be&&(0,L.jsx)(C.Z,{columnFlex:[null,1],rows:[[(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(fe.CalendarDate,{default:!0,size:1.5*D.iI}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:!0,children:"SLA"})]},"sla_detail"),(0,L.jsxs)(k.ZP,{children:[(0,L.jsx)(F.Z,{flex:1,children:(0,L.jsx)(T.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),$e((function(n){return qe(qe({},n),{},{slaAmount:e.target.value})}))},placeholder:"Time",value:null==Qe?void 0:Qe.slaAmount})}),(0,L.jsx)(F.Z,{flex:1,children:(0,L.jsx)(se.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),$e((function(n){return qe(qe({},n),{},{slaUnit:e.target.value})}))},placeholder:"Select time unit",small:!0,value:null==Qe?void 0:Qe.slaUnit,children:Object.keys(ve.tL).map((function(e){return(0,L.jsx)("option",{value:e,children:"".concat(e,"(s)")},e)}))})})]},"sla_input_detail")]]})]}),(0,L.jsx)(S.Z,{mt:D.Mq,children:(0,L.jsx)(k.ZP,{alignItems:"center",children:(0,L.jsx)(b.Z,{checked:null==We?void 0:We.allow_blocks_to_fail,label:"Keep running pipeline even if blocks fail",onClick:function(){return Ye((function(e){return qe(qe({},e),{},{allow_blocks_to_fail:!(null!=We&&We.allow_blocks_to_fail)})}))}})})}),oe.Xm.TIME===wn&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(S.Z,{mt:D.cd,children:(0,L.jsx)(k.ZP,{alignItems:"center",children:(0,L.jsx)(b.Z,{checked:null==We?void 0:We.skip_if_previous_running,label:"Skip run if previous run still in progress",onClick:function(){return Ye((function(e){return qe(qe({},e),{},{skip_if_previous_running:!(null!=We&&We.skip_if_previous_running)})}))}})})}),(0,L.jsx)(S.Z,{mt:D.cd,children:(0,L.jsx)(k.ZP,{alignItems:"center",children:(0,L.jsx)(b.Z,{checked:null==We?void 0:We.create_initial_pipeline_run,label:"Create initial pipeline run if start date is before current execution period",onClick:function(){return Ye((function(e){return qe(qe({},e),{},{create_initial_pipeline_run:!(null!=We&&We.create_initial_pipeline_run)})}))}})})})]})]}),(0,L.jsxs)(S.Z,{mb:D.HN,children:[(0,L.jsxs)(S.Z,{px:D.cd,children:[(0,L.jsx)(w.Z,{children:"Runtime variables"}),(0,Ae.Qr)(yn)&&(0,L.jsxs)(S.Z,{mt:1,children:[(0,L.jsx)(I.ZP,{default:!0,children:"This pipeline has no runtime variables."}),(0,L.jsx)(u(),{as:"/pipelines/".concat(Y,"/edit?sideview=variables"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,L.jsx)(R.Z,{primary:!0,children:"Click here"})})," ",(0,L.jsx)(I.ZP,{default:!0,inline:!0,children:"to add variables to this pipeline."})]})]}),(0,L.jsx)(S.Z,{mt:D.Mq,children:(0,L.jsx)(ie.Z,{enableVariablesOverwrite:!0,originalVariables:null==O?void 0:O.variables,runtimeVariables:Ge,setRuntimeVariables:Je})})]}),ht&&(null===(e=Object.keys(ht||{}))||void 0===e?void 0:e.length)>=1&&(0,L.jsxs)(S.Z,{mb:D.HN,children:[(0,L.jsx)(S.Z,{px:D.cd,children:(0,L.jsx)(w.Z,{children:"Override bookmark values"})}),(0,L.jsx)(v.Z,{bookmarkValues:Q,originalBookmarkValues:null==O||null===(n=O.variables)||void 0===n?void 0:n[oe.PN],pipeline:d,setBookmarkValues:$})]}),(null==pt?void 0:pt.length)>=1&&(0,L.jsx)(S.Z,{mb:D.HN,children:(0,L.jsx)(B,{blocks:pt,updateVariables:Je,variables:qe(qe({},Gn),Ge)})})]})}),[ht,Q,pt,Be,yn,G,d,null==O?void 0:O.variables,Y,Ge,Qe,wn,Gn,$,ze,Je,We]),mt=be.ZP.tags.list().data,vt=(0,c.useMemo)((function(){return((null==mt?void 0:mt.tags)||[]).filter((function(e){var n=e.uuid;return!(null!=In&&In.includes(n))}))}),[mt,In]),jt=(0,c.useMemo)((function(){return(0,ve.ri)(G)}),[G]),gt=(0,c.useMemo)((function(){return(0,L.jsx)(xe,{containerRef:q,date:Dn,interactions:gn,pipeline:d,pipelineInteraction:jn,pipelineSchedule:Qe,setVariables:function(e){$e((function(n){var t=qe({},e((null==n?void 0:n.variables)||{})),r=qe({},t);return null==gn||gn.forEach((function(e){Object.entries((null==e?void 0:e.variables)||{}).forEach((function(e){var n=(0,l.Z)(e,2),t=n[0],i=n[1].types;r&&t in r&&(r[t]=(0,Me.M)(r[t],i))}))})),tn(r),qe(qe({},n),{},{variables:t})}))},showSummary:Ie.uuid===dn,time:Ln,triggerTypes:jt,variables:null==Qe?void 0:Qe.variables})}),[q,Dn,gn,d,jn,Qe,dn,$e,tn,Ln,jt]),xt=(0,c.useMemo)((function(){return oe.fq.ACTIVE===(null==Qe?void 0:Qe.status)}),[Qe]),bt=M?null==M?void 0:M((function(e){return V.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(null==d?void 0:d.uuid,"/triggers/").concat(e))})):[null,{isLoading:!1}],Zt=(0,l.Z)(bt,2),yt=Zt[0],Pt=Zt[1].isLoading,Ot=(0,c.useCallback)((function(){null==yt||yt({pipeline_schedule:qe(qe({},Qe),{},{variables:nn||(null==Qe?void 0:Qe.variables)})})}),[yt,nn,Qe]),_t=(0,c.useMemo)((function(){var e,n;return X?(e=(0,L.jsx)(j.ZP,{linkProps:{as:"/pipelines/".concat(Y,"/triggers/").concat(X),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel and go back"}),n=(0,L.jsx)(j.ZP,{onClick:tt,primary:!0,children:"Save trigger"})):Ce.uuid===dn?(e=(0,L.jsx)(j.ZP,{onClick:function(){return null==s?void 0:s()},secondary:!0,children:"Cancel and go back"}),n=(0,L.jsx)(j.ZP,{afterIcon:(0,L.jsx)(fe.PaginateArrowRight,{}),onClick:function(){return pn(Se.uuid)},primary:!0,children:"Next: Customize"})):Se.uuid===dn?(e=(0,L.jsx)(j.ZP,{beforeIcon:(0,L.jsx)(fe.PaginateArrowLeft,{}),onClick:function(){return pn(Ce.uuid)},secondary:!0,children:"Back: Settings"}),n=(0,L.jsx)(j.ZP,{afterIcon:(0,L.jsx)(fe.PaginateArrowRight,{}),onClick:function(){return pn(Ie.uuid)},primary:!0,children:"Next: Review"})):Ie.uuid===dn&&(e=(0,L.jsx)(j.ZP,{beforeIcon:(0,L.jsx)(fe.PaginateArrowLeft,{}),onClick:function(){return pn(Se.uuid)},secondary:!0,children:"Back: Customize"}),n=(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(j.ZP,{beforeIcon:(0,L.jsx)(fe.Lightning,{}),loading:Pt,onClick:function(){return Ot()},primary:!0,children:X?"Save trigger":"Create trigger"}),!X&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(S.Z,{mr:D.cd}),(0,L.jsx)(de.Z,{checked:xt,compact:!0,onCheck:function(e){return $e((function(n){return qe(qe({},n),{},{status:e(xt)?oe.fq.ACTIVE:oe.fq.INACTIVE})}))}}),(0,L.jsx)(S.Z,{mr:1}),(0,L.jsx)(I.ZP,{default:xt,muted:!xt,small:!0,children:"Set trigger to be active immediately after creating"})]})]})),(0,L.jsx)(S.Z,{p:D.cd,children:(0,L.jsxs)(k.ZP,{alignItems:"center",children:[e,e&&n&&(0,L.jsx)(S.Z,{mr:D.cd}),n]})})}),[Ot,Pt,xt,s,tt,X,Y,dn,pn]),kt=(0,c.useMemo)((function(){var e,n,t,r,i,l,o;return void 0===(null==d||null===(e=d.settings)||void 0===e||null===(n=e.triggers)||void 0===n?void 0:n.save_in_code_automatically)?null==H||null===(t=H.pipelines)||void 0===t||null===(r=t.settings)||void 0===r||null===(i=r.triggers)||void 0===i?void 0:i.save_in_code_automatically:null==d||null===(l=d.settings)||void 0===l||null===(o=l.triggers)||void 0===o?void 0:o.save_in_code_automatically}),[d,H]);return(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(le.Z,{after:!fn&&ft,afterHidden:fn,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(Y,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return null==O?void 0:O.name},linkProps:{as:"/pipelines/".concat(Y,"/triggers/").concat(X),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],errors:t,pageName:ke.M.TRIGGERS,pipeline:d,setErrors:_,subheader:fn||bn?(0,L.jsx)(S.Z,{px:D.cd,children:(0,L.jsx)(g.Z,{noPadding:!0,onClickTab:function(e){var n=e.uuid;return pn(n)},regularSizeText:!0,selectedTabUUID:dn,tabs:Te,underlineColor:(0,N.qn)(ye.tf.DATA_LOADER).accent,underlineStyle:!0})}):(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(j.ZP,{disabled:dt,loading:Xn,onClick:tt,outline:!0,primary:!0,children:"Save changes"}),(0,L.jsx)(S.Z,{mr:D.cd}),(0,L.jsx)(j.ZP,{linkProps:{as:"/pipelines/".concat(Y,"/triggers/").concat(X),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel"}),kt&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(S.Z,{mr:D.cd}),(0,L.jsxs)(I.ZP,{default:!0,xsmall:!0,children:["This trigger will automatically be persisted in code.",(0,L.jsx)("br",{}),"To change this behavior, update the ",(0,L.jsx)(u(),{as:"/pipelines/".concat(Y,"/settings"),href:"/pipelines/[pipeline]/settings",passHref:!0,children:(0,L.jsx)(R.Z,{openNewWindow:!0,xsmall:!0,children:"pipeline’s settings"})})," or ",(0,L.jsx)(u(),{as:"/settings/workspace/preferences",href:"/settings/workspace/preferences",passHref:!0,children:(0,L.jsx)(R.Z,{openNewWindow:!0,xsmall:!0,children:"project settings"})}),"."]})]})]}),subheaderNoPadding:fn||bn,title:function(){return null!=O&&O.name?"Edit ".concat(null==O?void 0:O.name):"New trigger"},uuid:"triggers/edit",children:(0,L.jsxs)("div",{ref:q,children:[(fn||bn)&&(0,L.jsx)(U.Z,{light:!0}),(fn||bn)&&(Se.uuid===dn||Ie.uuid===dn)&>,(!fn||Ce.uuid===dn)&&(!bn||Ce.uuid===dn)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(S.Z,{p:D.cd,children:[(0,L.jsxs)(S.Z,{mb:2,children:[(0,L.jsx)(w.Z,{children:"Trigger type"}),(0,L.jsx)(I.ZP,{muted:!0,children:"How would you like this pipeline to be triggered?"})]}),(0,L.jsx)(k.ZP,{children:jt.reduce((function(e,n){var t=n.label,r=n.description,i=n.uuid,l=wn===i,o=wn&&!l;return!fn||null!=Zn&&Zn[i]?e.concat((0,L.jsx)(j.ZP,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){oe.Xm.EVENT!==i||null!=ne&&ne.length||te([{}]),$e((function(e){return qe(qe({},e),{},{schedule_type:i})}))},children:(0,L.jsx)(Pe.U,{selected:l,children:(0,L.jsxs)(k.ZP,{alignItems:"center",children:[(0,L.jsx)(F.Z,{children:(0,L.jsx)("input",{checked:l,type:"radio"})}),(0,L.jsx)(S.Z,{mr:D.cd}),(0,L.jsxs)(F.Z,{alignItems:"flex-start",flexDirection:"column",children:[(0,L.jsx)(w.Z,{bold:!0,default:!l&&!o,level:5,muted:!l&&o,children:t()}),(0,L.jsx)(I.ZP,{default:!l&&!o,leftAligned:!0,muted:o,children:r()})]})]})})},i)):e}),[])})]}),(0,L.jsxs)(S.Z,{mt:D.HN,children:[oe.Xm.TIME===wn&&ut,oe.Xm.EVENT===wn&&st,oe.Xm.API===wn&&at]}),!fn&&(0,L.jsxs)(S.Z,{mt:D.HN,px:D.cd,children:[(0,L.jsxs)(S.Z,{mb:2,children:[(0,L.jsx)(w.Z,{children:"Tags"}),(0,L.jsx)(I.ZP,{muted:!0,children:"Add or remove tags from this trigger."})]}),(0,L.jsx)(ae.Z,{removeTag:function(e){$e((function(n){return qe(qe({},n),{},{tags:null==In?void 0:In.filter((function(n){return n!==e.uuid}))})}))},selectTag:function(e){$e((function(n){return qe(qe({},n),{},{tags:(0,A.$C)(e.uuid,In,(function(n){return n===e.uuid}))})}))},selectedTags:null==In?void 0:In.map((function(e){return{uuid:e}})),tags:vt,uuid:"TagsAutocompleteInputField-trigger-".concat(X)})]})]}),(fn||bn)&&_t]})})})}},37899:function(e,n,t){var r=t(82394),i=t(75582),l=t(82684),o=t(71180),u=t(15338),c=t(97618),s=t(55485),a=t(38276),d=t(75499),p=t(30160),h=t(35576),f=t(17488),m=t(72473),v=t(70515),j=t(42122),g=t(81728),x=t(28598);function b(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?b(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){e.borderless,e.compact;var n=e.enableVariablesOverwrite,t=e.originalVariables,b=e.runtimeVariables,y=(e.setEnableVariablesOverwrite,e.setRuntimeVariables),P=(0,l.useState)({}),O=P[0],_=P[1],k=(0,l.useState)(null),w=k[0],S=k[1],C=(0,l.useState)(null),I=C[0],T=C[1];(0,l.useEffect)((function(){var e=Object.entries(b||{}).reduce((function(e,n){var t=(0,i.Z)(n,2),l=t[0],o=t[1],u=(0,g.Pb)(o)&&"object"==typeof JSON.parse(o)&&!Array.isArray(JSON.parse(o))&&null!==JSON.parse(o);return Z(Z({},e),{},(0,r.Z)({},l,u))}),{});_(e)}),[]);var E=function(e,n){var t={borderless:!0,key:"variable_uuid_input_".concat(e),monospace:!0,onChange:function(n){n.preventDefault(),y((function(t){return Z(Z({},t),{},(0,r.Z)({},e,n.target.value))}))},paddingHorizontal:0,placeholder:"Variable value",value:n};return O[e]?(0,x.jsx)(h.Z,Z(Z({},t),{},{rows:1,value:n})):(0,x.jsx)(f.Z,Z({},t))};return(0,x.jsxs)(x.Fragment,{children:[n&&b&&Object.entries(b).length>0&&(0,x.jsx)(d.Z,{columnFlex:[null,1,null],columns:[{uuid:"Variable"},{uuid:"Value"},{label:function(){return""},uuid:"Action"}],rows:Object.entries(b).map((function(e){var n=(0,i.Z)(e,2),r=n[0],l=n[1];return[(0,x.jsx)(p.ZP,{default:!0,monospace:!0,children:r},"variable_".concat(r)),E(r,l),!(null!=t&&t[r])&&(0,x.jsx)(o.ZP,{iconOnly:!0,onClick:function(){y((function(e){return(0,j.gR)(e,[r])}))},children:(0,x.jsx)(m.Trash,{default:!0})})]}))}),(0,x.jsx)(a.Z,{p:v.cd,children:(0,x.jsxs)(s.ZP,{alignItems:"center",children:[(0,x.jsx)(c.Z,{flex:1,children:(0,x.jsx)(f.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return S(e.target.value)},placeholder:"New variable UUID",value:w||""})}),(0,x.jsx)(a.Z,{mr:1}),(0,x.jsx)(c.Z,{flex:1,children:(0,x.jsx)(f.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return T(e.target.value)},placeholder:"Variable value",value:I||""})}),(0,x.jsx)(a.Z,{mr:1}),(0,x.jsx)(o.ZP,{beforeIcon:(0,x.jsx)(m.Add,{}),disabled:!w||!I,onClick:function(){y((function(e){return Z(Z({},e),{},(0,r.Z)({},w,I))})),S(null),T(null)},children:"Add runtime variable"})]})}),(0,x.jsx)(u.Z,{light:!0})]})}},97196:function(e,n,t){t.d(n,{S5:function(){return l},_P:function(){return o}});var r,i=t(86735);!function(e){e.AWS="aws_event"}(r||(r={}));var l=[{label:function(){return"AWS"},uuid:r.AWS}],o=(0,i.HK)(l,(function(e){return e.uuid}))},83784:function(e,n,t){t.d(n,{C:function(){return r}});var r="global"},14805:function(e,n,t){var r=t(82394),i=t(52396),l=t(55485),o=t(44085),u=t(38276),c=t(30160),s=t(88785),a=t(70515),d=t(86735),p=t(28598);function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.localTime,t=e.selectedDate,r=e.selectedTime,h=e.setSelectedDate,m=e.setSelectedTime,v=e.topPosition;return(0,p.jsxs)(s.J,{absolute:!0,topPosition:v,children:[(0,p.jsx)(i.ZP,{onChange:h,value:t}),(0,p.jsx)(u.Z,{mb:2}),(0,p.jsxs)(l.ZP,{alignItems:"center",children:[(0,p.jsxs)(c.ZP,{default:!0,large:!0,children:["Time (",n?"Local":"UTC","):"]}),(0,p.jsx)(u.Z,{pr:2}),(0,p.jsx)(o.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),m((function(n){return f(f({},n),{},{hour:e.target.value})}))},paddingRight:5*a.iI,placeholder:"HH",value:null==r?void 0:r.hour,children:(0,d.m5)(24,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,p.jsx)("option",{value:e,children:e},"hour_".concat(e))}))}),(0,p.jsx)(u.Z,{px:1,children:(0,p.jsx)(c.ZP,{bold:!0,large:!0,children:":"})}),(0,p.jsx)(o.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),m((function(n){return f(f({},n),{},{minute:e.target.value})}))},paddingRight:5*a.iI,placeholder:"MM",value:null==r?void 0:r.minute,children:(0,d.m5)(60,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,p.jsx)("option",{value:e,children:e},"minute_".concat(e))}))})]})]})}},79500:function(e,n,t){t.d(n,{a:function(){return l}});var r=t(16488),i=t(3917);function l(e,n){var t,l;if(null!=n&&n.localTimezone)t=(0,i.n$)(e),l={hour:(0,i.lJ)(String(t.getHours())),minute:(0,i.lJ)(String(t.getMinutes()))};else{var o=e.split(" ")[1];t=(0,r.eI)(e),l={hour:o.substring(0,2),minute:o.substring(3,5)}}return{date:t,time:l}}},9134:function(e,n,t){var r=t(82684),i=t(20433),l=t(31811),o=t(9518),u=t(65292),c=t(44897),s=t(95363),a=t(70515),d=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,p=e.showLineNumbers,h=e.small,f=e.source,m=e.wrapLines,v=(0,r.useContext)(o.ThemeContext);function j(e){var r=e.value;return(0,d.jsx)(l.Z,{customStyle:{backgroundColor:(v.background||c.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:s.Vp,fontSize:h?12:14,marginBottom:0,marginTop:0,maxWidth:t,paddingBottom:2*a.iI,paddingTop:2*a.iI},language:n,lineNumberStyle:{color:(v.content||c.Z.content).muted},showLineNumbers:p,style:u._4,useInlineStyles:!0,wrapLines:m,children:r})}return(0,d.jsx)(i.D,{components:{code:function(e){var n=e.children;return(0,d.jsx)(j,{value:n})}},children:f})}},32080:function(e,n,t){t.d(n,{nG:function(){return a},sV:function(){return d}});var r=t(75582),i=t(21831),l=t(82394),o=t(44425),u=t(61599);function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e){var n,t={};return null==e||null===(n=e.blocks)||void 0===n||n.forEach((function(e){var n=e.catalog,r=e.type,i=e.uuid;if(o.tf.DATA_LOADER===r&&null!=n&&n.streams){var l,c=null==n||null===(l=n.streams)||void 0===l?void 0:l.filter((function(e){var n=e.replication_method;return u._B.INCREMENTAL===n}));(null==c?void 0:c.length)>=1&&(i in t||(t[i]={block:e,streams:[]}),t[i].streams.push(c))}})),t}function d(e,n,t,l){var u,c=t||{},a=c.addBlockDependenciesToNestedPipelineBlocks,p=void 0!==a&&a,h=c.addPipelineGroupsToBlocks,f=void 0!==h&&h,m=c.addPipelineToBlocks,v=void 0!==m&&m,j=l||{},g=j.downstreamBlocks,x=j.upstreamBlocks,b={};return null==e||null===(u=e.blocks)||void 0===u||u.forEach((function(l){var u,c,a=s({},l);(!g||null!=a&&a.downstream_blocks?!x||null!=a&&a.upstream_blocks||(a.upstream_blocks=x):a.downstream_blocks=g,v&&(a.pipeline=e),f)&&(a.groups=[].concat((0,i.Z)(null!==(u=e.groups)&&void 0!==u?u:[]),(0,i.Z)(null!==(c=a.groups)&&void 0!==c?c:[])));if(o.tf.PIPELINE===a.type){var h,m=n[a.uuid],j={};if(p)null===(h=[["downstreamBlocks",a.downstream_blocks],["upstreamBlocks",a.upstream_blocks]])||void 0===h||h.forEach((function(e){var t=(0,r.Z)(e,2),i=t[0],l=t[1];null==l||l.forEach((function(e){if(e in n){var t,r=n[e];j[i]||(j[i]=[]),null==r||null===(t=r.blocks)||void 0===t||t.forEach((function(e){var n,t;("downstreamBlocks"!==i||null!=e&&null!==(n=e.upstream_blocks)&&void 0!==n&&n.length)&&("upstreamBlocks"!==i||null!=e&&null!==(t=e.downstream_blocks)&&void 0!==t&&t.length)||j[i].push(null==e?void 0:e.uuid)}))}else j[i]||(j[i]=[]),j[i].push(e)}))}));b=s(s({},b),d(m,n,t,j))}b[a.uuid]=a})),b}}}]);
|
mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3548-b2c5edfb710886a6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3548],{4015:function(e,n,t){t.d(n,{$b:function(){return s},I5:function(){return d},Nk:function(){return l},gI:function(){return a}});var i=t(9518),r=t(44897),o=t(42631),c=t(70515),l=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-h093u4-0"})([""," ",""],(function(e){return!e.width&&"\n width: ".concat(40*c.iI,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")})),d=i.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-h093u4-1"})(["padding:","px;"," ",""],2.5*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).dashboard,";\n border-left: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-right: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-top-left-radius: ").concat(o.n_,"px;\n border-top-right-radius: ").concat(o.n_,"px;\n border-top: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.lightBackground&&"\n background-color: ".concat((e.theme.background||r.Z.background).panel,"\n ")})),a=i.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-h093u4-2"})(["align-items:center;justify-content:space-between;"," "," ",""],(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).dashboard,";\n border-left: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-right: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-top: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n display: ").concat((null==e?void 0:e.display)||"flex",";\n padding-bottom: ").concat(1*c.iI+((null==e?void 0:e.paddingVerticalAddition)||0),"px;\n padding-left: ").concat(c.cd*c.iI,"px;\n padding-top: ").concat(1*c.iI+((null==e?void 0:e.paddingVerticalAddition)||0),"px;\n ")}),(function(e){return e.columnFlex&&"\n display: flex;\n flex-direction: column;\n "}),(function(e){return e.lightBackground&&"\n background-color: ".concat((e.theme.background||r.Z.background).panel,"\n ")})),s=i.default.div.withConfig({displayName:"indexstyle__FooterStyle",componentId:"sc-h093u4-3"})(["padding:","px ","px;"," ",""],2.5*c.iI,2*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-bottom-left-radius: ").concat(o.n_,"px;\n border-bottom-right-radius: ").concat(o.n_,"px;\n border-bottom: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-left: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-right: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.topBorder&&"\n border-top: 1px solid ".concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n ")}))},55729:function(e,n,t){t.d(n,{Z:function(){return M}});var i=t(82394),r=t(75582),o=t(82684),c=t(83455),l=t(71180),d=t(15338),a=t(97618),s=t(55485),u=t(85854),p=t(48670),h=t(65956),m=t(82359),g=t(88543),f=t(38276),v=t(30160),x=t(17488),j=t(69650),b=t(12468),Z=t(35686),_=t(77417),y=t(9518),k=t(44897),P=t(42631),w=t(70515),O=y.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1b0w59t-0"})(["border-radius:","px;padding:","px;",""],P.n_,w.cd*w.iI,(function(e){return"\n background-color: ".concat((e.theme.background||k.Z.background).codeArea,";\n ")})),C=t(72473),I=t(72191),N=t(70320),S=t(81728),B=t(42122),E=t(72619),A=t(23780),D=t(28598);function L(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function H(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?L(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var M=function(e){var n,t,y,k=e.cancelButtonText,P=e.contained,L=e.header,M=e.onCancel,F=e.onSaveSuccess,V=e.rootProject,T=(0,A.VI)(null,{},[],{uuid:"settings/workspace/preferences"}),U=(0,r.Z)(T,1)[0],R=(0,o.useState)(null),W=R[0],q=R[1],z=(0,o.useState)(!1),G=z[0],K=z[1],Y=(0,_.Z)(),$=Y.fetchProjects,J=Y.project,Q=Y.projectPlatformActivated,X=Y.rootProject,ee=(0,o.useMemo)((function(){return V?X:J}),[J,X,V]),ne=ee||{},te=ne.name,ie=ne.openai_api_key,re=ne.project_uuid,oe=(0,o.useMemo)((function(){return"demo.mage.ai"===window.location.hostname}),[]);(0,o.useEffect)((function(){W||q(ee)}),[ee,W]);var ce=(0,c.Db)(Z.ZP.projects.useUpdate(te),{onSuccess:function(e){return(0,E.wD)(e,{callback:function(e){var n,t=e.project;$(),q(t),K(!1),(0,N.hY)(null==t||null===(n=t.features)||void 0===n?void 0:n[m.d.LOCAL_TIMEZONE]),F&&(null==F||F(t))},onErrorCallback:function(e,n){return U({errors:n,response:e})}})}}),le=(0,r.Z)(ce,2),de=le[0],ae=le[1].isLoading,se=(0,o.useCallback)((function(e){return de({project:H(H({},e),{},{root_project:V})})}),[V,de]),ue=(0,D.jsxs)(D.Fragment,{children:[L,(0,D.jsxs)(h.Z,{noPadding:!0,children:[(0,D.jsxs)(f.Z,{p:w.cd,children:[(0,D.jsx)(f.Z,{mb:1,children:(0,D.jsx)(u.Z,{level:5,children:"Project name"})}),(0,D.jsx)(v.ZP,{default:!0,monospace:!0,children:te})]}),(0,D.jsx)(d.Z,{light:!0}),(0,D.jsxs)(f.Z,{p:w.cd,children:[(0,D.jsx)(f.Z,{mb:1,children:(0,D.jsx)(u.Z,{level:5,children:"Project UUID"})}),(0,D.jsx)(v.ZP,{default:!!re,monospace:!0,muted:!re,children:re||"Not required"})]}),(0,D.jsx)(d.Z,{light:!0}),(0,D.jsx)(f.Z,{p:w.cd,children:(0,D.jsxs)(s.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,D.jsxs)(a.Z,{flexDirection:"column",children:[(0,D.jsx)(f.Z,{mb:1,children:(0,D.jsx)(u.Z,{level:5,children:"Help improve Mage"})}),(0,D.jsxs)(v.ZP,{default:!0,children:["Please contribute usage statistics to help improve the developer experience for you and everyone in the community. Learn more ",(0,D.jsx)(p.Z,{href:"https://docs.mage.ai/contributing/statistics/overview",openNewWindow:!0,children:"here"}),"."]})]}),(0,D.jsx)(f.Z,{mr:w.cd}),(0,D.jsx)(j.Z,{checked:null==W?void 0:W.help_improve_mage,compact:!0,id:"help_improve_mage_toggle",onCheck:function(){return q((function(e){return H(H({},e),{},{help_improve_mage:!(null!=W&&W.help_improve_mage)})}))}})]})})]}),(0,D.jsx)(f.Z,{mt:w.HN}),(0,D.jsx)(g.Z,{description:"Global settings that are applied to all pipelines in this project.",title:"Pipeline settings",children:(0,D.jsx)(g.S,{description:"Every time a trigger is created or updated in this pipeline, automatically persist it in code.",title:"Save triggers in code automatically",toggleSwitch:{checked:!(null==W||null===(n=W.pipelines)||void 0===n||null===(t=n.settings)||void 0===t||null===(y=t.triggers)||void 0===y||!y.save_in_code_automatically),onCheck:function(e){return q((function(n){var t,i,r,o,c,l;return H(H({},n),{},{pipelines:H(H({},null==n?void 0:n.pipelines),{},{settings:H(H({},null==n||null===(t=n.pipelines)||void 0===t?void 0:t.settings),{},{triggers:H(H({},null==n||null===(i=n.pipelines)||void 0===i||null===(r=i.settings)||void 0===r?void 0:r.triggers),{},{save_in_code_automatically:e(null==n||null===(o=n.pipelines)||void 0===o||null===(c=o.settings)||void 0===c||null===(l=c.triggers)||void 0===l?void 0:l.save_in_code_automatically)})})})})}))}}})}),(0,D.jsx)(f.Z,{mt:w.HN}),(0,D.jsx)(h.Z,{noPadding:!0,overflowVisible:!0,children:(0,D.jsxs)(f.Z,{p:w.cd,children:[(0,D.jsx)(f.Z,{mb:1,children:(0,D.jsxs)(u.Z,{level:5,children:["Features ",(0,D.jsx)(p.Z,{bold:!0,href:"https://docs.mage.ai/development/project/features",largeSm:!0,openNewWindow:!0,children:"(docs)"})]})}),Object.entries((0,B.gR)(null==W?void 0:W.features,[m.d.CODE_BLOCK_V2])||{}).map((function(e,n){var t=(0,r.Z)(e,2),o=t[0],c=t[1],l=Q&&!V&&(null==ee?void 0:ee.features_override)&&o in(null==ee?void 0:ee.features_override);return(0,D.jsx)(f.Z,{mt:0===n?0:1,children:(0,D.jsxs)(s.ZP,{alignItems:"center",children:[(0,D.jsxs)(a.Z,{flex:1,children:[(0,D.jsx)(j.Z,{disabled:l,checked:!!c,compact:!0,onCheck:function(){return q((function(e){return H(H({},e),{},{features:H(H({},null==W?void 0:W.features),{},(0,i.Z)({},o,!c))})}))}}),(0,D.jsx)(f.Z,{mr:w.cd}),(0,D.jsxs)(a.Z,{children:[(0,D.jsx)(v.ZP,{default:!c,monospace:!0,children:(0,S.vg)(o)}),o===m.d.LOCAL_TIMEZONE&&(0,D.jsx)(f.Z,{ml:1,children:(0,D.jsx)(b.Z,H({},N.EB))})]})]}),l&&(0,D.jsx)(v.ZP,{monospace:!0,muted:!0,small:!0,children:"overridden"})]})},o)}))]})}),(0,D.jsx)(f.Z,{mt:w.HN}),(0,D.jsx)(h.Z,{noPadding:!0,children:(0,D.jsxs)(f.Z,{p:w.cd,children:[(0,D.jsx)(f.Z,{mb:1,children:(0,D.jsx)(u.Z,{level:5,children:"OpenAI"})}),ie&&!G?(0,D.jsxs)(s.ZP,H(H({},s.A0),{},{children:[(0,D.jsx)(v.ZP,{default:!0,monospace:!0,children:"API key: ********"}),(0,D.jsx)(l.ZP,{iconOnly:!0,onClick:function(){return K(!0)},secondary:!0,title:"Edit",children:(0,D.jsx)(C.Edit,{size:I.bL})})]})):(0,D.jsx)(x.Z,{disabled:oe,label:oe?"Entering API key is disabled on demo":"API key",monospace:!0,onChange:function(e){return q((function(n){return H(H({},n),{},{openai_api_key:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null==W?void 0:W.openai_api_key)||""})]})}),(0,D.jsx)(f.Z,{mt:w.HN}),(0,D.jsxs)(s.ZP,{alignItems:"center",children:[(0,D.jsx)(l.ZP,{id:"save-project-settings",loading:ae,onClick:function(){var e={features:null==W?void 0:W.features,help_improve_mage:null==W?void 0:W.help_improve_mage,openai_api_key:null==W?void 0:W.openai_api_key,pipelines:null==W?void 0:W.pipelines};!0===(null==ee?void 0:ee.help_improve_mage)&&!1===(null==W?void 0:W.help_improve_mage)&&(e.deny_improve_mage=!0),se(e)},primary:!0,children:"Save project settings"}),M&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(f.Z,{mr:w.cd}),(0,D.jsx)(l.ZP,{onClick:M,secondary:!0,children:k||"Cancel"})]})]})]});return P?(0,D.jsx)(O,{children:ue}):ue}}}]);
|
mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3782-4b3091e550f809a2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3782],{94629:function(e,n,r){r.d(n,{Z:function(){return k}});var t=r(82394),i=r(21831),o=r(82684),s=r(50724),u=r(82555),c=r(97618),l=r(70613),a=r(31557),d=r(68899),f=r(28598);function p(e,n){var r=e.children,t=e.noPadding;return(0,f.jsx)(d.HS,{noPadding:t,ref:n,children:r})}var h=o.forwardRef(p),b=r(62547),g=r(82571),O=r(77417),v=r(46684),m=r(75375);function y(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function P(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?y(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function j(e,n){e.addProjectBreadcrumbToCustomBreadcrumbs;var r=e.after,t=e.afterHeader,o=e.afterHidden,p=e.afterWidth,y=e.afterWidthOverride,j=e.appendBreadcrumbs,k=e.before,I=e.beforeHeader,S=e.beforeWidth,w=e.breadcrumbs,Z=e.children,x=e.contained,M=e.errors,A=e.headerMenuItems,E=e.headerOffset,R=e.hideAfterCompletely,B=e.mainContainerHeader,N=e.navigationItems,C=e.setAfterHidden,D=e.setAfterWidth,H=e.setBeforeWidth,T=e.setErrors,_=e.subheaderChildren,L=e.subheaderNoPadding,W=e.title,G=e.uuid,q=(0,m.Z)(G,{beforeResizeOffset:m.H,setWidthAfter:D,setWidthBefore:H,widthAfter:p,widthBefore:S,widthOverrideAfter:y}),F=q.mainContainerRef,z=q.mousedownActiveAfter,K=q.mousedownActiveBefore,U=q.setMousedownActiveAfter,Y=q.setMousedownActiveBefore,V=q.setWidthAfter,J=q.setWidthBefore,Q=q.widthAfter,X=q.widthBefore,$=(0,O.Z)().project,ee=[];return w&&ee.push.apply(ee,(0,i.Z)(w)),null!=w&&w.length&&!j||!$||null!=w&&w.length||ee.unshift({bold:!j,label:function(){return W}}),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(l.Z,{title:W}),(0,f.jsx)(a.Z,{breadcrumbs:ee,menuItems:A}),(0,f.jsxs)(d.Nk,{ref:n,children:[0!==(null==N?void 0:N.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(g.Z,{navigationItems:N,showMore:!0})}),(0,f.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(b.Z,{after:r,afterHeader:t,afterHeightOffset:v.Mz,afterHidden:o,afterMousedownActive:z,afterWidth:Q,before:k,beforeHeader:I,beforeHeightOffset:v.Mz,beforeMousedownActive:K,beforeWidth:k?X:d.k1,contained:x,headerOffset:E,hideAfterCompletely:!r||R,leftOffset:k?d.k1:null,mainContainerHeader:B,mainContainerRef:F,setAfterHidden:C,setAfterMousedownActive:U,setAfterWidth:V,setBeforeMousedownActive:Y,setBeforeWidth:J,children:[_&&(0,f.jsx)(h,{noPadding:L,children:_}),Z]})})]}),M&&(0,f.jsx)(s.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null==T?void 0:T(null)},children:(0,f.jsx)(u.Z,P(P({},M),{},{onClose:function(){return null==T?void 0:T(null)}}))})]})}var k=o.forwardRef(j)},28795:function(e,n,r){var t;r.d(n,{B:function(){return i},M:function(){return t}}),function(e){e.BACKFILLS="backfills",e.BLOCK_RUNS="block_runs",e.DASHBOARD="dashboard",e.EDIT="edit",e.MONITOR="monitor",e.PIPELINE_LOGS="pipeline_logs",e.PIPELINE_RUNS="pipeline_runs",e.RUNS="runs",e.SETTINGS="settings",e.SYNCS="syncs",e.TRIGGERS="triggers"}(t||(t={}));var i="cancel_all_running_pipeline_runs"},75457:function(e,n,r){r.d(n,{Z:function(){return x}});var t=r(82394),i=r(21831),o=r(82684),s=r(34376),u=r(50724),c=r(94629),l=r(15338),a=r(82555),d=r(55485),f=r(85854),p=r(38276),h=r(35686),b=r(9518),g=r(44897),O=r(42631),v=r(70515),m=b.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],O.n_,3*v.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||g.Z.shadow).small,";\n ")}),(function(e){return e.background&&"\n background: ".concat(e.background,";\n ")}),(function(e){return e.backgroundImage&&'\n background-image: url("'.concat(e.backgroundImage,'");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n ')})),y=r(46684),P=r(85010),j=r(72619),k=r(19183),I=r(28598);function S(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function w(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?S(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function Z(e,n){var r=e.after,t=e.afterHidden,b=e.afterWidth,g=e.before,O=e.beforeWidth,S=e.breadcrumbs,Z=e.buildSidekick,x=e.children,M=e.errors,A=e.headline,E=e.pageName,R=e.pipeline,B=e.setErrors,N=e.subheader,C=e.subheaderBackground,D=e.subheaderBackgroundImage,H=e.subheaderButton,T=e.subheaderNoPadding,_=e.subheaderText,L=e.title,W=e.uuid,G=(0,k.i)().height,q=(0,s.useRouter)().query.pipeline,F=null==R?void 0:R.uuid,z=h.ZP.pipelines.detail(F,{includes_outputs:!1},{revalidateOnFocus:!1}).data,K=null==z?void 0:z.pipeline;(0,o.useEffect)((function(){(0,j.bB)(z,B)}),[z,B]);var U=b||(r||Z?50*v.iI:null),Y=(0,o.useCallback)((function(e){var n=e.width;return r||(Z?Z({height:G,heightOffset:y.Mz,pipeline:K,width:n||U}):null)}),[r,U,Z,G,K]),V=(0,o.useMemo)((function(){var e=[];return K?(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),S?(e.push({label:function(){return K.uuid},linkProps:{as:"/pipelines/".concat(F,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,i.Z)(S)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return K.name}})):null!=z&&z.error&&e.push({bold:!0,danger:!0,label:function(){return"Error loading pipeline"}}),e}),[S,null==z?void 0:z.error,K,F]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(c.Z,{after:r||Z?Y:null,afterHidden:t,afterWidth:U,before:g,beforeWidth:O,breadcrumbs:V,navigationItems:(0,P.H)(E,K,q),ref:n,subheaderChildren:void 0!==N&&N,subheaderNoPadding:T,title:K?L?L(K):K.name:null,uuid:W,children:[(H||_)&&(0,I.jsx)(p.Z,{mb:v.Mq,mt:v.cd,mx:v.cd,children:(0,I.jsx)(m,{background:C,backgroundImage:D,children:(0,I.jsxs)(d.ZP,{alignItems:"center",children:[H,_&&(0,I.jsx)(p.Z,{ml:3}),_]})})}),A&&(0,I.jsx)(p.Z,{p:v.cd,children:(0,I.jsxs)(p.Z,{mt:v.cd,px:v.cd,children:[(0,I.jsx)(f.Z,{level:5,children:A}),(0,I.jsx)(l.Z,{light:!0,mt:v.cd,short:!0})]})}),x]}),M&&(0,I.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null==B?void 0:B(null)},children:(0,I.jsx)(a.Z,w(w({},M),{},{onClose:function(){return null==B?void 0:B(null)}}))})]})}var x=o.forwardRef(Z)},85010:function(e,n,r){r.d(n,{H:function(){return s}});var t=r(57653),i=r(72473),o=r(28795);function s(e,n,r){var s=(n||{}).uuid||r,u=[{Icon:i.Lightning,id:o.M.TRIGGERS,isSelected:function(){return o.M.TRIGGERS===e},label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(s,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{Icon:i.Schedule,id:o.M.RUNS,isSelected:function(){return o.M.RUNS===e},label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(s,"/runs"),href:"/pipelines/[pipeline]/runs"}},{Icon:i.Logs,id:o.M.PIPELINE_LOGS,isSelected:function(){return o.M.PIPELINE_LOGS===e},label:function(){return"Logs"},linkProps:{as:"/pipelines/".concat(s,"/logs"),href:"/pipelines/[pipeline]/logs"}},{Icon:i.Monitor,id:o.M.MONITOR,isSelected:function(){return o.M.MONITOR===e},label:function(){return"Monitor"},linkProps:{as:"/pipelines/".concat(s,"/monitors"),href:"/pipelines/[pipeline]/monitors"}}];return t.qL.PYTHON===(null==n?void 0:n.type)&&u.splice(2,0,{Icon:i.BackfillV2,id:o.M.BACKFILLS,isSelected:function(){return o.M.BACKFILLS===e},label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(s,"/backfills"),href:"/pipelines/[pipeline]/backfills"}}),t.qL.INTEGRATION===(null==n?void 0:n.type)&&u.unshift({Icon:i.PipeIcon,id:o.M.SYNCS,isSelected:function(){return o.M.SYNCS===e},label:function(){return"Syncs"},linkProps:{as:"/pipelines/".concat(s,"/syncs"),href:"/pipelines/[pipeline]/syncs"}}),u.unshift({Icon:i.Code,disabled:!s,id:o.M.EDIT,isSelected:function(){return o.M.EDIT===e},label:function(){return"Edit pipeline"},linkProps:{as:"/pipelines/".concat(s,"/edit"),href:"/pipelines/[pipeline]/edit"}}),u.push({Icon:i.SettingsWithKnobs,id:o.M.SETTINGS,isSelected:function(){return o.M.SETTINGS===e},label:function(){return"Pipeline settings"},linkProps:{as:"/pipelines/".concat(s,"/settings"),href:"/pipelines/[pipeline]/settings"}}),u.unshift({Icon:i.NavDashboard,id:o.M.DASHBOARD,isSelected:function(){return o.M.DASHBOARD===e},label:function(){return"Dashboard"},linkProps:{as:"/pipelines/".concat(s,"/dashboard"),href:"/pipelines/[pipeline]/dashboard"}}),u}},93808:function(e,n,r){r.d(n,{Z:function(){return Z}});var t=r(77837),i=r(26304),o=r(62243),s=r(29385),u=r(80022),c=r(13692),l=r(93189),a=r(15544),d=r(82394),f=r(38860),p=r.n(f),h=r(82684),b=r(56663),g=r.n(b),O=r(40761),v=r(34661),m=r(36105),y=r(50178),P=r(69419),j=r(28598),k=["auth"];function I(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function S(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?I(Object(r),!0).forEach((function(n){(0,d.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function w(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,t=(0,a.Z)(e);if(n){var i=(0,a.Z)(this).constructor;r=Reflect.construct(t,arguments,i)}else r=t.apply(this,arguments);return(0,l.Z)(this,r)}}function Z(e){return function(n){(0,c.Z)(a,n);var r,l=w(a);function a(){var e;(0,o.Z)(this,a);for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return e=l.call.apply(l,[this].concat(r)),(0,d.Z)((0,u.Z)(e),"state",{auth:new O.Z(e.props.token)}),e}return(0,s.Z)(a,[{key:"componentDidMount",value:function(){this.setState({auth:new O.Z(this.props.token)})}},{key:"render",value:function(){var n=this.props,r=(n.auth,(0,i.Z)(n,k));return(0,j.jsx)(e,S({auth:this.state.auth},r))}}],[{key:"getInitialProps",value:(r=(0,t.Z)(p().mark((function n(r){var t,i,o,s,u,c,l,a,d;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t=g()(r),i=(0,y.ex)(r),o=i.id,s=t[v.Mv],u=t[m.qt],c=new O.Z(s),l=S(S({},r),{},{auth:c,currentGroupId:o,theme:u}),(0,y.YB)(r)&&c.isExpired&&(console.log("OAuth token has expired."),a=S(S({},r.query),{},{redirect_url:r.asPath}),(0,P.nL)("/sign-in?".concat((0,P.uM)(a)),r.res)),!e.getInitialProps){n.next=12;break}return n.next=10,e.getInitialProps(l);case 10:return d=n.sent,n.abrupt("return",S(S({},d),{},{auth:c,currentGroupId:o,theme:u}));case 12:return n.abrupt("return",l);case 13:case"end":return n.stop()}}),n)}))),function(e){return r.apply(this,arguments)})}]),a}(h.Component)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1709],{81066:function(e,n,t){"use strict";t.d(n,{B:function(){return p}});var r=t(82394),i=t(46732),o=t(68562),u=t(72473),c=t(8059),l=t(70515),a=t(28598);function s(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 d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var p={bold:!0,greyBorder:!0,paddingBottom:9,paddingTop:9};n.Z=function(e){var n=e.addButtonMenuOpen,t=e.addButtonMenuRef,r=e.isLoading,s=e.label,f=e.menuItems,b=e.onClick,h=e.onClickCallback;return(0,a.jsx)(i.Z,{disableKeyboardShortcuts:!0,items:f,onClickCallback:h,onClickOutside:h,open:n,parentRef:t,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/NewItemMenu",children:(0,a.jsx)(o.ZP,d(d({},p),{},{background:c.eW,beforeElement:(0,a.jsx)(u.Add,{size:2.5*l.iI}),loading:r,onClick:function(e){e.preventDefault(),null==b||b()},uuid:"shared/AddButton/index",children:s}))})}},46568:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=(t(82684),t(33591)),u=t(28598),c=["children","fullHeight","gutter","style"];function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.fullHeight,r=e.gutter,l=e.style,s=void 0===l?{}:l,d=(0,i.Z)(e,c),p=a({},s);return r&&(p.paddingLeft=r,p.paddingRight=p.paddingLeft),t&&(p.height="100%"),(0,u.jsx)(o.Col,a(a({},d),{},{style:p,children:n}))}},82682:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),u=t(33591),c=t(28598),l=["children","fullHeight","gutter","justifyContent","style"];function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.fullHeight,r=e.gutter,a=e.justifyContent,d=e.style,p=void 0===d?{}:d,f=(0,i.Z)(e,l),b=s({},p);return r&&(b.marginLeft=-1*r,b.marginRight=b.marginLeft),t&&(b.height="100%"),(0,c.jsx)(u.Row,s(s({},f),{},{justifyContent:a,style:b,children:o.Children.map(n,(function(e,n){return e&&o.cloneElement(e,{gutter:r,key:n})}))}))}},94542:function(e,n,t){"use strict";t.d(n,{J:function(){return o},X:function(){return u}});var r=t(46568),i=t(82682),o=r.Z,u=i.Z},95660:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return De}});var r=t(77837),i=t(82394),o=t(75582),u=t(38860),c=t.n(u),l=t(83455),a=t(82684),s=t(34376),d=t(92083),p=t.n(d),f=t(52749),b=t(81066),h=t(53998),m=t(36065),y=t(60523),g=t(90299),j=t(76111),v=t(94629),O=t(55485),Z=t(85854),_=t(48670),x=t(97618),P=t(38276),w=t(30160),C=t(9518),k=t(44897),T=t(42631),E=t(70515),I=12.5*E.iI,D=8*E.iI,N=5*E.iI,S=3*E.iI,R=C.default.div.withConfig({displayName:"indexstyle__TileContainerStyle",componentId:"sc-c3nc3q-0"})(["padding:","px;border-radius:","px;height:","px;width:","px;"," ",""],2.5*E.iI,T.TR,I,I,(function(e){return"\n background-color: ".concat((e.theme||k.Z).background.chartBlock,";\n ")}),(function(e){return e.compact&&"\n height: ".concat(D,"px;\n width: ").concat(D,"px;\n ")})),L=t(28598);var M=function(e){var n=e.Icon,t=e.compact,r=e.label;return(0,L.jsx)(R,{compact:t,children:(0,L.jsxs)(O.ZP,{alignItems:"center",flexDirection:"column",justifyContent:"center",children:[(0,L.jsx)(n,{size:t?S:N}),(0,L.jsx)(P.Z,{mb:"4px"}),(0,L.jsx)(w.ZP,{bold:!0,small:t,children:r})]})})},A=t(12468),B=C.default.div.withConfig({displayName:"indexstyle__MetricsSummaryContainerStyle",componentId:"sc-nu65g1-0"})(["width:100%;padding:","px;border-radius:","px;",""],2*E.iI,T.n_,(function(e){return"\n border: ".concat(T.YF,"px ").concat(T.M8," ").concat((e.theme||k.Z).interactive.defaultBorder,";\n box-shadow: ").concat((e.theme||k.Z).shadow.frame,";\n ")})),H=C.default.div.withConfig({displayName:"indexstyle__MetricContainerStyle",componentId:"sc-nu65g1-1"})(["display:flex;flex:1;align-items:center;justify-content:space-between;",""],(function(e){return e.includeLeftBorder&&"\n @media (min-width: 1200px) {\n padding-left: 24px;\n border-left: ".concat(T.YF,"px ").concat(T.M8," ").concat((e.theme||k.Z).interactive.defaultBorder,";\n }\n ")})),U=t(57653),Y=t(94542),q=t(41143),V=t(39598),F=t(81728),X=t(48277),G=t(79221),J=t(70320),z=t(86735);function K(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 $(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?K(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):K(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var W=function(e){var n=e.pipelineRunCountByPipelineType,t=(0,J.qB)(),r=(0,a.useMemo)((function(){if(!n)return[];var e=JSON.parse(JSON.stringify(n)),t=e[U.qL.PYTHON]||{};return Object.entries(e[U.qL.PYSPARK]||{}).forEach((function(e){var n=(0,o.Z)(e,2),r=n[0],i=n[1];t[r]?t[r]+=i:t[r]=i})),e[U.qL.PYTHON]=t,delete e[U.qL.PYSPARK],(0,z.mr)(Object.entries(e).filter((function(e){var n=(0,o.Z)(e,2),t=(n[0],n[1]);return 0!==Object.keys(t).length})))}),[n]),i=(0,a.useMemo)((function(){return t?(0,L.jsx)(P.Z,{ml:"4px",children:(0,L.jsx)(A.Z,$($({},V.m),{},{label:"Please note that these metrics are based on UTC time."}))}):null}),[t]);return(0,L.jsxs)(B,{children:[(0,L.jsxs)(O.ZP,{alignItems:"center",children:[(0,L.jsx)(w.ZP,{bold:!0,large:!0,children:"Pipeline run metrics"}),i]}),(0,L.jsx)(P.Z,{mb:2}),(0,L.jsx)(Y.X,{style:{gap:"16px"},children:r.map((function(e,n){var t=(0,o.Z)(e,2),i=t[0],u=t[1];return(0,L.jsxs)(H,{includeLeftBorder:0!==n,children:[(0,L.jsx)(M,{Icon:U.Mj[i],label:U.G7[i]}),(0,z.mr)(Object.entries(u)).map((function(e,n){var t=(0,o.Z)(e,2),r=t[0],i=t[1];return(0,L.jsx)(P.Z,{px:1,children:(0,L.jsxs)(x.Z,{flexDirection:"column",children:[(0,L.jsx)(w.ZP,{children:(0,F.kC)(r)}),(0,L.jsx)(w.ZP,{bold:!0,danger:r===q.V.FAILED&&i>0,title:(0,X.uf)(i),xlarge:!0,children:(0,G.P5)(i,{maxFractionDigits:1,minAmount:1e3})})]})},"".concat(r,"_").concat(n))})),(0,L.jsx)(P.Z,{pr:n!==r.length-1?2:0})]},"".concat(i,"_metric"))}))})]})},Q=t(29241),ee=t(65956),ne=t(55729),te=t(93808),re=t(82359),ie=t(4190),oe=t(67913),ue=t(35686),ce=t(35058),le=t(64657),ae=t(44425),se=t(75399),de=t(23780),pe=t(46684),fe=t(61556),be=t(32929),he=t(17380),me=t(3917),ye=t(50389),ge=t(68899),je=t(24491),ve=t(65458),Oe=t(15610),Ze=t(72619),_e=t(69419),xe=t(89538),Pe=t(70026),we=t(53808);function Ce(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 ke(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ce(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ce(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Te={mt:2,mx:3},Ee={refreshInterval:6e4,revalidateOnFocus:!1};function Ie(e){var n,t,r=e.tab,u=(0,a.useRef)(null),c=(0,a.useRef)(!1),d=(0,a.useRef)(null),x=((0,_e.iV)(),(0,s.useRouter)()),C=(0,a.useRef)(null),T=(0,a.useMemo)((function(){return ye.hS.concat(ye.oP)}),[]),I=(0,a.useState)(T.find((function(e){var n;return e.uuid===(r||(null===(n=(0,we.U2)(we.Xq))||void 0===n?void 0:n.uuid))}))||ye.xM),D=I[0],N=I[1],S=(0,a.useState)(!1),R=S[0],M=S[1],B=(0,a.useState)(null),H=B[0],Y=B[1],G=null==D?void 0:D.uuid,K=(0,a.useMemo)((function(){return(0,me.jV)(G,{isoString:!0})}),[G]),$=(0,a.useMemo)((function(){return{group_by_pipeline_type:1,start_time:K}}),[K]),te=(0,a.useState)(),Ce=te[0],Ie=te[1],De=(0,l.Db)((function(){var e,n;return null===(e=ue.ZP.monitor_stats)||void 0===e?void 0:e.detailAsync(fe.h.PIPELINE_RUN_COUNT,$,{signal:null==u||null===(n=u.current)||void 0===n?void 0:n.signal})}),{onSuccess:function(e){return(0,Ze.wD)(e,{callback:function(e){var n=e.monitor_stat.stats;Ie(n)}})}}),Ne=(0,o.Z)(De,2),Se=Ne[0],Re=Ne[1].isLoading,Le=(0,a.useCallback)((function(e){var n;null!==(null==u?void 0:u.current)&&(null==u||null===(n=u.current)||void 0===n||n.abort());u.current=new AbortController,N((function(n){var t="function"==typeof e?e(n):e;return(null==n?void 0:n.uuid)!==(null==t?void 0:t.uuid)&&((0,Oe.u)((0,i.Z)({},he.i,null==t?void 0:t.uuid),{replaceParams:!0}),Se()),(0,we.t8)(we.Xq,t),t}))}),[Se]);(0,a.useEffect)((function(){var e;(null!=c&&c.current||(c.current=!0,Se()),r)||(0,Oe.u)((0,i.Z)({},he.i,D?null==D?void 0:D.uuid:null==T||null===(e=T[0])||void 0===e?void 0:e.uuid),{pushHistory:!1})}),[T,Se,D,r]);var Me,Ae=ue.ZP.pipeline_runs.list({_limit:50,include_pipeline_type:1,"order_by[]":"created_at desc",start_timestamp:(0,me.A5)(K),status:q.V.FAILED},ke({},Ee)).data,Be=(0,a.useMemo)((function(){return((null==Ae?void 0:Ae.pipeline_runs)||[]).filter((function(e){return null!==e.pipeline_type}))}),[null==Ae?void 0:Ae.pipeline_runs]),He=(0,a.useMemo)((function(){return(0,z.vM)(Be,(function(e){return e.pipeline_type}))}),[Be]),Ue=He.integration,Ye=void 0===Ue?[]:Ue,qe=He.python,Ve=void 0===qe?[]:qe,Fe=He.streaming,Xe=void 0===Fe?[]:Fe,Ge=(0,a.useMemo)((function(){return(0,me.Y_)(me.yD[G]+1)}),[G]),Je=(0,a.useMemo)((function(){return(0,je.i)(Ce,Ge)}),[Ce,Ge]),ze=Je.pipelineRunCountByPipelineType,Ke=Je.totalPipelineRunCount,$e=Je.ungroupedPipelineRunData,We=(0,a.useMemo)((function(){return(0,me.Ro)(me.yD[G],{endDateOnly:G===me.vk.TODAY})}),[G]),Qe=(Me=function(e){return x.push("/pipelines/[pipeline]/edit","/pipelines/".concat(e,"/edit"))},(0,l.Db)(ue.ZP.pipelines.useCreate(),{onSuccess:function(e){return(0,Ze.wD)(e,{callback:function(e){var n=e.pipeline.uuid;null==Me||Me(n)},onErrorCallback:function(e,n){return Y({errors:n,response:e})}})}})),en=(0,o.Z)(Qe,2),nn=en[0],tn=en[1].isLoading,rn=ue.ZP.projects.list(),on=rn.data,un=rn.mutate,cn=(0,a.useMemo)((function(){var e;return null==on||null===(e=on.projects)||void 0===e?void 0:e[0]}),[on]),ln=(0,a.useMemo)((function(){var e;return(0,J.hY)(null==cn||null===(e=cn.features)||void 0===e?void 0:e[re.d.LOCAL_TIMEZONE])}),[null==cn?void 0:cn.features]),an=(0,xe.dd)((function(e){var n=e.pipelineType;return(0,L.jsx)(j.Z,{onClose:pn,onSave:function(e){var t=e.name,r=e.description,i=e.tags;nn({pipeline:{description:r,name:t,tags:i,type:n}})},pipelineType:n})}),{},[nn],{background:!0,disableEscape:!0,uuid:"overview/create_pipeline"}),sn=(0,o.Z)(an,2),dn=sn[0],pn=sn[1],fn=(0,xe.dd)((function(){return(0,L.jsx)(de.BC,{children:(0,L.jsx)(y.Z,{contained:!0,onClickCustomTemplate:function(e){nn({pipeline:{custom_template_uuid:null==e?void 0:e.template_uuid,name:(0,F.Y6)()}}).then((function(){mn()}))},showBreadcrumbs:!0,tabs:[be.A2]})})}),{},[],{background:!0,uuid:"browse_templates"}),bn=(0,o.Z)(fn,2),hn=bn[0],mn=bn[1],yn=(0,xe.dd)((function(){return(0,L.jsx)(Pe.Z,{onCancel:vn})}),{},[,],{background:!0,uuid:"import_pipeline"}),gn=(0,o.Z)(yn,2),jn=gn[0],vn=gn[1],On=(0,xe.dd)((function(e){var n=e.cancelButtonText,t=(e.header,e.onCancel),r=e.onSaveSuccess;return(0,L.jsx)(de.BC,{children:(0,L.jsx)(ne.Z,{cancelButtonText:n,contained:!0,header:(0,L.jsx)(P.Z,{mb:E.HN,children:(0,L.jsxs)(ee.Z,{children:[(0,L.jsx)(w.ZP,{warning:!0,children:"You need to add an OpenAI API key to your project before you can generate pipelines using AI."}),(0,L.jsx)(P.Z,{mt:1,children:(0,L.jsxs)(w.ZP,{warning:!0,children:["Read"," ",(0,L.jsx)(_.Z,{href:"https://help.openai.com/en/articles/4936850-where-do-i-find-my-secret-api-key",openNewWindow:!0,children:"OpenAI’s documentation"})," ","to get your API key."]})})]})}),onCancel:function(){null==t||t(),xn()},onSaveSuccess:function(e){un(),xn(),null==r||r(e)}})})}),{},[un],{background:!0,uuid:"configure_project"}),Zn=(0,o.Z)(On,2),_n=Zn[0],xn=Zn[1],Pn=(0,xe.dd)((function(){return(0,L.jsx)(de.BC,{children:(0,L.jsx)(f.Z,{createPipeline:nn,isLoading:tn,onClose:kn})})}),{},[nn,tn],{background:!0,disableClickOutside:!0,disableCloseButton:!0,uuid:"AI_modal"}),wn=(0,o.Z)(Pn,2),Cn=wn[0],kn=wn[1],Tn=(0,a.useMemo)((function(){return(0,ve.d)(nn,{showAIModal:function(){null!=cn&&cn.openai_api_key?Cn():_n({onSaveSuccess:function(){Cn()}})},showBrowseTemplates:hn,showCreatePipelineModal:dn,showImportPipelineModal:jn})}),[nn,cn,Cn,hn,_n,dn,jn]),En=(0,a.useMemo)((function(){return(0,L.jsx)(b.Z,{addButtonMenuOpen:R,addButtonMenuRef:C,isLoading:tn,label:"New pipeline",menuItems:Tn,onClick:function(){return M((function(e){return!e}))},onClickCallback:function(){return M(!1)}})}),[R,tn,Tn]),In=(0,a.useMemo)((function(){return ln?(0,L.jsx)(P.Z,{ml:"4px",children:(0,L.jsx)(A.Z,ke(ke({},V.m),{},{label:"Please note that these counts are based on UTC time."}))}):null}),[ln]),Dn=(0,a.useMemo)((function(){var e,n,t,r,o,u,c="Pipelines",l=(0,F.kE)("".concat(c,"_overview_dashboard_").concat((0,F.Lo)())),a="Trigger active status",s=(0,F.kE)("".concat(a,"_overview_dashboard_").concat((0,F.Lo)())),d="Pipeline run status",p=(0,F.kE)("".concat(d,"_overview_dashboard_").concat((0,F.Lo)())),f="Pipeline runs daily",b=(0,F.kE)("".concat(f,"_overview_dashboard_").concat((0,F.Lo)())),h="Completed pipeline runs daily",m=(0,F.kE)("".concat(h,"_overview_dashboard_").concat((0,F.Lo)())),y="Failed pipeline runs daily",g=(0,F.kE)("".concat(y,"_overview_dashboard_").concat((0,F.Lo)())),j="Running pipelines",v=(0,F.kE)("".concat(j,"_overview_dashboard_").concat((0,F.Lo)())),O={type:se.XO.PIPELINE_SCHEDULES},Z={type:se.XO.PIPELINE_RUNS},_={configuration:(e={},(0,i.Z)(e,ce.eN,["execution_date"]),(0,i.Z)(e,ce.bE,[{aggregation:ce.os.COUNT_DISTINCT,column:"id"}]),(0,i.Z)(e,ce.Yg,ce.aE.DAY),(0,i.Z)(e,"chart_type",ce.oV.TIME_SERIES_LINE_CHART),e),data_source:Z,type:ae.tf.CHART};return{blocks:(u={},(0,i.Z)(u,l,{configuration:(n={},(0,i.Z)(n,ce.eN,["type"]),(0,i.Z)(n,ce.bE,[{aggregation:ce.os.COUNT_DISTINCT,column:"uuid"}]),(0,i.Z)(n,ce.$1,ce.MP.DESCENDING),(0,i.Z)(n,"chart_style",ce.JT.HORIZONTAL),(0,i.Z)(n,"chart_type",ce.oV.BAR_CHART),n),data_source:{type:se.XO.PIPELINES},name:c,type:ae.tf.CHART,uuid:l}),(0,i.Z)(u,s,{configuration:(t={},(0,i.Z)(t,ce.eN,["status"]),(0,i.Z)(t,ce.bE,[{aggregation:ce.os.COUNT_DISTINCT,column:"id"}]),(0,i.Z)(t,ce.$1,ce.MP.DESCENDING),(0,i.Z)(t,"chart_type",ce.oV.BAR_CHART),t),data_source:O,name:a,type:ae.tf.CHART,uuid:s}),(0,i.Z)(u,p,{configuration:(r={},(0,i.Z)(r,ce.eN,["status"]),(0,i.Z)(r,ce.bE,[{aggregation:ce.os.COUNT_DISTINCT,column:"id"}]),(0,i.Z)(r,ce.$1,ce.MP.DESCENDING),(0,i.Z)(r,"chart_style",ce.JT.HORIZONTAL),(0,i.Z)(r,"chart_type",ce.oV.BAR_CHART),r),data_source:Z,name:d,type:ae.tf.CHART,uuid:p}),(0,i.Z)(u,b,ke(ke({},_),{},{name:f,uuid:b})),(0,i.Z)(u,m,ke(ke({},_),{},{content:"\n@data_source\ndef d(df):\n return df[df['status'] == '".concat(q.V.COMPLETED,"']\n"),name:h,uuid:m})),(0,i.Z)(u,g,ke(ke({},_),{},{content:"\n@data_source\ndef d(df):\n return df[df['status'] == '".concat(q.V.FAILED,"']\n"),name:y,uuid:g})),(0,i.Z)(u,v,{configuration:(o={},(0,i.Z)(o,ce.eN,["backfill_id","completed_at","created_at","execution_date","executor_type","id","pipeline_schedule_id","pipeline_uuid","started_at","status"]),(0,i.Z)(o,"chart_type",ce.oV.TABLE),o),content:"\n@data_source\ndef d(df):\n return df[df['status'] == '".concat(q.V.RUNNING,"']\n"),data_source:Z,name:j,type:ae.tf.CHART,uuid:v}),u),layout:[[{block_uuid:l,width:1},{block_uuid:s,width:1}],[{block_uuid:p,width:1},{block_uuid:b,width:2}],[{block_uuid:m,width:1},{block_uuid:g,width:1}],[{block_uuid:v,width:1}]]}}),[]);return(0,L.jsxs)(v.Z,{errors:H,setErrors:Y,title:"Overview",uuid:"overview/index",children:[(0,L.jsx)(Q.Z,{backgroundColor:k.Z.background.panel,ref:d,children:(0,L.jsx)(P.Z,{py:2,children:(0,L.jsxs)(O.ZP,{alignItems:"center",children:[(0,L.jsx)(P.Z,{ml:3,children:En}),(0,L.jsx)(g.Z,{onClickTab:function(e){var n=e.uuid;Le((function(){return T.find((function(e){return n===e.uuid}))}))},regularSizeText:!0,selectedTabUUID:G,tabs:T})]})})}),ye.oP.uuid===(null==D?void 0:D.uuid)&&(0,L.jsx)(m.Z,{leftOffset:ge.k1-1,pageBlockLayoutTemplate:Dn,topOffset:pe.Mz+(null==d||null===(n=d.current)||void 0===n||null===(t=n.getBoundingClientRect())||void 0===t?void 0:t.height),uuid:"overview/dashboard"}),ye.oP.uuid!==(null==D?void 0:D.uuid)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(P.Z,{mx:3,my:2,children:[(0,L.jsxs)(Z.Z,{level:4,children:[G===me.vk.TODAY&&"".concat((0,F.kC)(me.vk.TODAY)," (UTC): ").concat(We),G!==me.vk.TODAY&&"".concat((0,F.kC)(me.s8[G])," (UTC): ").concat(We)]}),(0,L.jsx)(P.Z,{mt:2,children:Re?(0,L.jsx)(P.Z,{mx:2,my:11,children:(0,L.jsx)(ie.Z,{inverted:!0})}):(0,L.jsx)(W,{pipelineRunCountByPipelineType:ze})}),(0,L.jsxs)(P.Z,{mt:2,children:[(0,L.jsx)(P.Z,{ml:2,children:(0,L.jsxs)(O.ZP,{alignItems:"center",children:[(0,L.jsxs)(w.ZP,{bold:!0,large:!0,children:[Re?"--":(0,X.uf)(Ke)," total pipeline runs"]}),In]})}),(0,L.jsx)(P.Z,{mt:1,children:(0,L.jsx)(h.Z,{backgroundColor:k.Z.background.panel,colors:le.NU,data:$e,getXValue:function(e){return e.date},height:200,keys:le.hu,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:le.CD,xLabelFormat:function(e){return p()(e).format("MMM DD")}})})]})]}),(0,L.jsx)(P.Z,ke(ke({},Te),{},{children:(0,L.jsxs)(O.ZP,{alignItems:"center",justifyContent:"center",children:[(0,L.jsx)(oe.Z,{pipelineRuns:Be,pipelineType:U.LM}),(0,L.jsx)(P.Z,{ml:2}),(0,L.jsx)(oe.Z,{pipelineRuns:Ve,pipelineType:U.qL.PYTHON})]})})),(0,L.jsx)(P.Z,ke(ke({},Te),{},{children:(0,L.jsxs)(O.ZP,{alignItems:"center",justifyContent:"center",children:[(0,L.jsx)(oe.Z,{pipelineRuns:Ye,pipelineType:U.qL.INTEGRATION}),(0,L.jsx)(P.Z,{ml:2}),(0,L.jsx)(oe.Z,{pipelineRuns:Xe,pipelineType:U.qL.STREAMING})]})})),(0,L.jsx)(P.Z,{mb:2})]})]})}Ie.getInitialProps=function(){var e=(0,r.Z)(c().mark((function e(n){var t,r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{tab:null!=n&&null!==(t=n.query)&&void 0!==t&&t.tab?null==n||null===(r=n.query)||void 0===r?void 0:r.tab:null});case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var De=(0,te.Z)(Ie)},56655:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/overview",function(){return t(95660)}])}},function(e){e.O(0,[3662,125,2714,1799,140,2996,1557,8095,4241,4168,8023,523,6065,5831,3548,5627,6362,9774,2888,179],(function(){return n=56655,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{16488:function(e,n,t){"use strict";t.d(n,{IJ:function(){return b},M8:function(){return P},Uc:function(){return k},XM:function(){return j},_U:function(){return v},eI:function(){return _},gU:function(){return y},lO:function(){return C},ri:function(){return h},tL:function(){return E},vJ:function(){return g},xH:function(){return O}});var r,i=t(82394),u=t(92083),l=t.n(u),c=t(3917),o=t(4383),a=t(30229),s=t(42122),f=t(86735);function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var v=function(e){return!!e&&!Object.values(a.U5).includes(e)};function b(e){return null==e?void 0:e.reduce((function(e,n){var t=n.block_uuid,r=n.completed_at,u=n.started_at,c=n.status,o=null;u&&r&&(o=l()(r).valueOf()-l()(u).valueOf());return p(p({},e),{},(0,i.Z)({},t,{runtime:o,status:c}))}),{})}var m,h=function(e){var n=[{description:function(){return"This pipeline will run continuously on an interval or just once."},label:function(){return"Schedule"},uuid:a.Xm.TIME},{description:function(){return"This pipeline will run when a specific event occurs."},label:function(){return"Event"},uuid:a.Xm.EVENT},{description:function(){return"Run this pipeline when you make an API call."},label:function(){return"API"},uuid:a.Xm.API}];return e?n.slice(0,1):n};function O(e){var n=(0,s.gR)(e,[a.gm.INTERVAL,a.gm.TYPE]),t=e[a.gm.INTERVAL];t&&(n["schedule_interval[]"]=encodeURIComponent(t));var r=e[a.gm.TYPE];return r&&(n["schedule_type[]"]=r),n}function _(e){return e?new Date(l()(e).valueOf()):null}function k(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return n?(0,c.XG)(e,n,t):function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"!=typeof e)return e;var t=e.split("+")[0];return l()(_(t)).format(n||c.Nx)}(e,t)}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(m||(m={}));var E=(r={},(0,i.Z)(r,m.DAY,86400),(0,i.Z)(r,m.HOUR,3600),(0,i.Z)(r,m.MINUTE,60),(0,i.Z)(r,m.SECOND,1),r);function y(e){var n=m.SECOND,t=e;return e%86400==0?(t/=86400,n=m.DAY):e%3600==0?(t/=3600,n=m.HOUR):e%60==0&&(t/=60,n=m.MINUTE),{time:t,unit:n}}function g(e,n){return e*E[n]}function j(e,n,t){var r,i=l()(e);return i.set("hour",+(null==n?void 0:n.hour)||0),i.set("minute",+(null==n?void 0:n.minute)||0),i.set("second",0),r=i.format(c.TD),null!=t&&t.includeSeconds&&(r=r.concat(":00")),null!=t&&t.localTimezone&&(r=i.format(c.lE),null!=t&&t.convertToUtc&&(r=(0,c.d$)(r,{includeSeconds:null==t?void 0:t.includeSeconds,utcFormat:!0}))),r}function P(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t="",r=(0,o.XF)();return n?t="".concat(r,"/api/pipeline_schedules/").concat(null==e?void 0:e.id,"/api_trigger"):(t="".concat(r,"/api/pipeline_schedules/").concat(null==e?void 0:e.id,"/pipeline_runs"),null!=e&&e.token&&(t="".concat(t,"/").concat(e.token))),t}function Z(e,n,t){return e.match(/[*,-/]/)?{additionalOffset:0,cronValue:e}:function(e,n,t){var r=t.indexOf(e),i=0;if(n<0)for(var u=0;u>n;u--)0===r?(r=t.length-1,i-=1):r-=1;else if(n>0)for(var l=0;l<n;l++)r===t.length-1?(r=0,i+=1):r+=1;var c="number"==typeof t[r]?t[r]:e;return{additionalOffset:i,cronValue:String(c)}}(+e,n,t)}var w=(0,f.m5)(60),N=(0,f.m5)(24),I=(0,c.Cs)();function C(e,n){if(!e)return e;var t=l()().local().format("Z"),r=t.split(":"),i="-"===t[0],u=3===r[0].length?Number(r[0].slice(1)):Number(r[0]),c=Number(r[1]);(i&&!n||!i&&n)&&(u=-u,c=-c);var o=e.split(" "),a=o[0],s=o[1],f=o[2],d=Z(a,c,w),p=Z(s,u+d.additionalOffset,N);if(o[0]=d.cronValue,o[1]=p.cronValue,0!==(null==p?void 0:p.additionalOffset)){var v=Z(f,p.additionalOffset,I);o[2]=v.cronValue}return o.join(" ")}},83641:function(e,n,t){"use strict";t.d(n,{I7:function(){return r},IB:function(){return o},VV:function(){return u},_7:function(){return l},rn:function(){return c}});var r,i=t(41143),u="datetime",l="code",c=i.V;!function(e){e.SECOND="second",e.MINUTE="minute",e.HOUR="hour",e.DAY="day",e.WEEK="week",e.MONTH="month",e.YEAR="year",e.CUSTOM="custom"}(r||(r={}));var o=[r.MINUTE,r.HOUR,r.DAY,r.WEEK,r.MONTH,r.YEAR]},4303:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return K}});var r=t(77837),i=t(75582),u=t(38860),l=t.n(u),c=t(82684),o=t(83455),a=t(34376),s=t(82394),f=t(12691),d=t.n(f),p=t(83641),v=t(71180),b=t(55485),m=t(48670),h=t(75499),O=t(30160),_=t(35686),k=t(50724),E=t(89515),y=t(38276),g=t(81655),j=t(72191),P=t(72473),Z=t(72619),w=t(23780),N=t(28598);var I=function(e){var n=e.fetchItems,t=e.mutationFn,r=e.path,u=e.pipelineUUID,l=(0,a.useRouter)(),s=(0,c.useRef)({}),f=(0,c.useState)(null),d=f[0],p=f[1],b=(0,c.useState)(0),m=b[0],h=b[1],O=(0,c.useState)(0),_=O[0],I=O[1],C=(0,w.VI)(null,{},[],{uuid:"".concat(r,"/").concat(u,"/delete/error")}),D=(0,i.Z)(C,1)[0],x=(0,o.Db)((function(e){return t(e)()}),{onSuccess:function(e){return(0,Z.wD)(e,{callback:function(){null==n||n(),u&&l.push("/pipelines/[pipeline]/".concat(r),"/pipelines/".concat(u,"/").concat(r))},onErrorCallback:function(e,n){return D({errors:n,response:e})}})}}),T=(0,i.Z)(x,1)[0];return{deleteButton:function(e,n,t){return s.current[e]=(0,c.createRef)(),(0,N.jsxs)(y.Z,{mr:1,children:[(0,N.jsx)(v.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){var n,t,r,i;p(e),h((null===(n=s.current[e])||void 0===n||null===(t=n.current)||void 0===t?void 0:t.offsetTop)||0),I((null===(r=s.current[e])||void 0===r||null===(i=r.current)||void 0===i?void 0:i.offsetLeft)||0)},ref:s.current[e],title:"Delete",children:(0,N.jsx)(P.Trash,{default:!0,size:j.bL})}),(0,N.jsx)(k.Z,{onClickOutside:function(){return p(null)},open:d===e,children:(0,N.jsx)(E.Z,{danger:!0,left:(_||0)-g.nH,onCancel:function(){return p(null)},onClick:function(){p(null),T(e)},title:t,top:(m||0)-(n<=1?g.oz:g.OK),width:g.Xx})})]})}}},C=t(44265),D=t(70515),x=t(16488),T=t(50178),U=t(70320),R=t(3917);function S(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 V(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?S(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var A={default:!0,monospace:!0};var L=function(e){var n=e.fetchBackfills,t=e.models,r=e.onClickRow,i=e.pipeline,u=e.selectedRow,l=(0,a.useRouter)(),o=(0,T.Ct)(null==l?void 0:l.basePath),s=(0,U.qB)(),f=null==i?void 0:i.uuid,k=s?g.O$:{},E=I({fetchItems:n,mutationFn:_.ZP.backfills.useDelete,path:"backfills",pipelineUUID:f}).deleteButton,y=[{uuid:"Status"},{uuid:"Name"},V(V({},k),{},{uuid:"Backfill"}),{uuid:"Ready"},{uuid:"Running"},{uuid:"Cancelled"},{uuid:"Completed"},{uuid:"Failed"},{uuid:"Total runs"},V(V({},k),{},{uuid:"Started at"}),V(V({},k),{},{uuid:"Completed at"}),{uuid:"Interval"},{uuid:"Interval units"},{uuid:"Type"}];return o||y.push({label:function(){return""},uuid:"edit_delete_backfill"}),(0,N.jsx)(h.Z,{columnFlex:[null,1,1,null,null,null,null,null,null,1,1,null,null,null,null],columns:y,isSelectedRow:function(e){return t[e].id===(null==u?void 0:u.id)},onClickRow:function(e){return null==r?void 0:r(t[e])},rows:t.map((function(e,n){var t=e.block_uuid,r=e.completed_at,i=e.end_datetime,u=e.id,l=e.interval_type,a=e.interval_units,h=e.name,_=e.run_status_counts,k=void 0===_?{}:_,y=e.start_datetime,j=e.started_at,Z=e.status,w=e.total_run_count,I=[(0,c.createElement)(O.ZP,V(V({},(0,g.NC)(Z)),{},{key:"status_".concat(n)}),Z||"inactive"),(0,N.jsx)(d(),{as:"/pipelines/".concat(f,"/backfills/").concat(u),href:"/pipelines/[pipeline]/backfills/[...slug]",passHref:!0,children:(0,N.jsx)(m.Z,{bold:!0,sameColorAsText:!0,children:h})},"name_".concat(n)),(0,c.createElement)(O.ZP,V(V({},A),{},{key:"backfill_".concat(n),small:!0}),y&&i&&(0,N.jsxs)(N.Fragment,{children:[(0,x.Uc)(y,s)," - ",(0,x.Uc)(i,s)]}),!(y&&i)&&(0,N.jsx)(N.Fragment,{children:"—"})),(0,c.createElement)(O.ZP,V(V({},A),{},{key:"ready_".concat(n)}),k[C.VO.INITIAL]||0),(0,c.createElement)(O.ZP,V(V({},A),{},{info:k[C.VO.RUNNING]>0,key:"running_".concat(n)}),k[C.VO.RUNNING]||0),(0,c.createElement)(O.ZP,V(V({},A),{},{key:"cancelled_".concat(n),warning:k[C.VO.CANCELLED]>0}),k[C.VO.CANCELLED]||0),(0,c.createElement)(O.ZP,V(V({},A),{},{key:"completed_".concat(n),success:k[C.VO.COMPLETED]>0}),k[C.VO.COMPLETED]||0),(0,c.createElement)(O.ZP,V(V({},A),{},{danger:k[C.VO.FAILED]>0,key:"failed_".concat(n)}),k[C.VO.FAILED]||0),(0,c.createElement)(O.ZP,V(V({},A),{},{bold:!0,key:"total_runs_".concat(n)}),w||0),(0,c.createElement)(O.ZP,V(V({},A),{},{key:"started_at_".concat(n),small:!0,title:j?(0,R._6)(j):null}),j?(0,x.Uc)(j,s):(0,N.jsx)(N.Fragment,{children:"—"})),(0,c.createElement)(O.ZP,V(V({},A),{},{key:"completed_at_".concat(n),small:!0,title:r?(0,R._6)(r):null}),r?(0,x.Uc)(r,s):(0,N.jsx)(N.Fragment,{children:"—"})),(0,c.createElement)(O.ZP,V(V({},A),{},{key:"interval_".concat(n)}),l||(0,N.jsx)(N.Fragment,{children:"—"})),(0,c.createElement)(O.ZP,V(V({},A),{},{key:"interval_units_".concat(n)}),a||(0,N.jsx)(N.Fragment,{children:"—"})),(0,c.createElement)(O.ZP,V(V({},A),{},{key:"type_".concat(n)}),t?p._7:p.VV)];return o||I.push((0,N.jsxs)(b.ZP,{children:[(0,N.jsx)(v.ZP,{default:!0,disabled:!!j,iconOnly:!0,linkProps:{as:"/pipelines/".concat(f,"/backfills/").concat(u,"/edit"),href:"/pipelines/[pipeline]/backfills/[...slug]"},noBackground:!0,title:"Edit",children:(0,N.jsx)(P.Edit,{default:!0,size:2*D.iI})},"".concat(n,"_edit_button")),E(u,n,'Are you sure you want to delete the backfill "'.concat(h,'?"'))]},"edit_delete_backfill_".concat(n))),I})),uuid:"pipeline-runs"})},M=t(68562),F=t(75457),B=t(93808),H=t(28795),Y=t(69419),X=t(81728);function z(e){var n=e.pipeline,t=(0,a.useRouter)(),r=n.uuid,u=_.ZP.backfills.list({_limit:20,_offset:0,include_run_count:!0,pipeline_uuid:r},{refreshInterval:6e4}),l=u.data,s=u.mutate,f=(0,c.useMemo)((function(){return(null==l?void 0:l.backfills)||[]}),[l]),d=(0,Y.iV)(),p=(0,c.useState)(null),v=p[0],b=p[1],m=(0,c.useState)(null),h=m[0],k=m[1];(0,c.useEffect)((function(){null!=d&&d.backfill_id?b(null==f?void 0:f.find((function(e){return e.id===Number(d.backfill_id)}))):v&&b(null)}),[f,d,v]);var E=(0,c.useMemo)((function(){var e="/pipelines/".concat(r,"/backfills"),n=[{label:function(){return"Backfills"},linkProps:v?{as:e,href:"/pipelines/[pipeline]/backfills"}:null}];return v&&n.push({label:function(){return v.name}}),n}),[r,v]),g=(0,o.Db)(_.ZP.backfills.pipelines.useCreate(r),{onSuccess:function(e){return(0,Z.wD)(e,{callback:function(e){var n=e.backfill.id;t.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(r,"/backfills/").concat(n,"/edit"))},onErrorCallback:function(e,n){return k({errors:n,response:e})}})}}),j=(0,i.Z)(g,2),w=j[0],I=j[1].isLoading;return(0,N.jsxs)(F.Z,{breadcrumbs:E,errors:h,pageName:H.M.BACKFILLS,pipeline:n,setErrors:k,title:function(e){var n=e.name;return"".concat(n," backfills")},uuid:"".concat(H.M.BACKFILLS,"_").concat(r),children:[(0,N.jsx)(y.Z,{p:D.cd,children:(0,N.jsx)(M.ZP,{beforeElement:(0,N.jsx)(P.Add,{size:2.5*D.iI}),blackBorder:!0,inline:!0,loading:I,noHoverUnderline:!0,onClick:function(){return w({backfill:{name:(0,X.Y6)()}})},sameColorAsText:!0,uuid:"PipelineDetailPage/Backfills/add_new_backfill",children:"Create new backfill"})}),f&&0===f.length&&(0,N.jsx)(y.Z,{p:D.cd,children:(0,N.jsx)(O.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No backfills available"})}),(null==f?void 0:f.length)>=1&&(0,N.jsx)(L,{fetchBackfills:s,models:f,pipeline:n,selectedRow:v})]})}z.getInitialProps=function(){var e=(0,r.Z)(l().mark((function e(n){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var K=(0,B.Z)(z)},37459:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/backfills",function(){return t(4303)}])},80022:function(e,n,t){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return r}})},15544:function(e,n,t){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}t.d(n,{Z:function(){return r}})},13692:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var r=t(61049);function i(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&(0,r.Z)(e,n)}},93189:function(e,n,t){"use strict";t.d(n,{Z:function(){return u}});var r=t(12539),i=t(80022);function u(e,n){if(n&&("object"===r(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}}},function(e){e.O(0,[1557,3782,9774,2888,179],(function(){return n=37459,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|