mage-ai 0.9.12__py3-none-any.whl → 0.9.14__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/generator.py +1 -1
- mage_ai/ai/generator_cmds.py +1 -1
- mage_ai/ai/llm_pipeline_wizard.py +31 -17
- mage_ai/api/policies/BlockPolicy.py +1 -0
- mage_ai/api/policies/PipelineRunPolicy.py +1 -0
- mage_ai/api/policies/PipelineSchedulePolicy.py +12 -0
- mage_ai/api/policies/TagPolicy.py +18 -0
- mage_ai/api/presenters/BlockRunPresenter.py +4 -1
- mage_ai/api/presenters/PipelineRunPresenter.py +2 -0
- mage_ai/api/presenters/PipelineSchedulePresenter.py +9 -2
- mage_ai/api/presenters/TagPresenter.py +3 -0
- mage_ai/api/resources/BackfillResource.py +6 -3
- mage_ai/api/resources/BlockResource.py +2 -0
- mage_ai/api/resources/BlockRunResource.py +18 -12
- mage_ai/api/resources/DatabaseResource.py +23 -0
- mage_ai/api/resources/GitBranchResource.py +8 -1
- mage_ai/api/resources/GlobalDataProductResource.py +5 -2
- mage_ai/api/resources/PipelineResource.py +30 -14
- mage_ai/api/resources/PipelineScheduleResource.py +157 -1
- mage_ai/api/resources/SearchResultResource.py +1 -0
- mage_ai/api/resources/TagResource.py +16 -3
- mage_ai/data_integrations/sources/constants.py +1 -0
- mage_ai/data_preparation/git/__init__.py +18 -0
- mage_ai/data_preparation/models/block/__init__.py +34 -11
- mage_ai/data_preparation/models/block/dbt/utils/__init__.py +37 -10
- mage_ai/data_preparation/models/block/integration/__init__.py +1 -1
- mage_ai/data_preparation/models/block/sql/__init__.py +44 -2
- mage_ai/data_preparation/models/custom_templates/utils.py +14 -4
- mage_ai/data_preparation/models/global_data_product/__init__.py +8 -0
- mage_ai/data_preparation/models/pipeline.py +4 -0
- mage_ai/data_preparation/models/variable.py +5 -2
- mage_ai/data_preparation/repo_manager.py +28 -16
- mage_ai/io/clickhouse.py +9 -6
- mage_ai/io/redshift.py +9 -10
- mage_ai/io/utils.py +3 -1
- mage_ai/orchestration/db/migrations/README.md +39 -2
- mage_ai/orchestration/db/migrations/env.py +1 -0
- mage_ai/orchestration/db/migrations/versions/386bcfebd48d_create_tag_and_tagassociation_tables.py +59 -0
- mage_ai/orchestration/db/models/schedules.py +29 -2
- mage_ai/orchestration/db/models/tags.py +57 -0
- mage_ai/orchestration/pipeline_scheduler.py +7 -7
- mage_ai/orchestration/triggers/global_data_product.py +41 -40
- mage_ai/orchestration/triggers/utils.py +11 -1
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/404.html.html +2 -2
- mage_ai/server/frontend_dist/_next/static/CNjkRIWPaAu1yJUmIaX_q/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1005-a2f0e3ee378ef02b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1424-fca78f21a81a7183.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1484-87d4d4a698ac63dc.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2485-39885e5335888821.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2786-f71862671f66d948.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3391-6f0a0a5c254cd7f2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3881-131cf690e54c23a3.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/437-331193bd9b2fe777.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/4822-045cc7cdd7c95163.js → frontend_dist/_next/static/chunks/4822-ee62acb1927c8150.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/547-bd961ea93f3eb98b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/6299-fcb702d0f3d3291b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/6422-0cdd6e596dcd43b6.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{6786-77c7e36678abb2c6.js → 6786-55e1bca3c897d5ee.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7496-7e4dd11e3f3b8e79.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/7722-76c724a66240561b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/7815-8b68b0eb665fcd2d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8190-d38ed1133030797d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8952-9d6fa18fa9378989.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9605-9332e1686c46da7d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-9dae6fa5126cf001.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-2dc2a0dfc0ff620d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/[...slug]-6d3d53624debede6.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products-2756fe6d9decae4a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-6577159a0af52a78.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-6815a3ece7dc1678.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-7f790238fe70d9ab.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-33c7f2550add0719.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-07e4a3a674e83578.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-b8b4bed1e8e50068.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-54cb4936accdd2d9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-d331e98ad103b13e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-d87d0c21758a2d7c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-68e1b861ef4fc0d7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-9fa0c4ce1c921a41.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-d5ef19ca1f9931de.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-4a2671811a153411.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-8872a6e00280f58c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-484581ae34a1c596.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-ce11db27e4af7869.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-624a2d7cbe6303b4.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-1169f4eecf752033.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-d2224a447987fa69.js → frontend_dist/_next/static/chunks/pages/settings/account/profile-c3ff06a12baa40a2.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-60b4398d7ae00206.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-dd827816bf4a7908.js → frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-05b53444f0e7449b.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-097aa0bef1e34cdb.js → frontend_dist/_next/static/chunks/pages/sign-in-a5e9561a6c0d2e38.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/{[...slug]-78a07e7fe8973811.js → [...slug]-c21b269750441494.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/templates-19df643f52679d5a.js → frontend_dist/_next/static/chunks/pages/templates-ce2a29d477a6ce94.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-71bbb30dd9b57f80.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-1dc780d52fbd1573.js +1 -0
- mage_ai/server/frontend_dist/files.html +2 -2
- mage_ai/server/frontend_dist/global-data-products/[...slug].html +2 -2
- mage_ai/server/frontend_dist/global-data-products.html +2 -2
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage/settings.html +2 -2
- mage_ai/server/frontend_dist/manage/users/[user].html +2 -2
- mage_ai/server/frontend_dist/manage/users/new.html +2 -2
- mage_ai/server/frontend_dist/manage/users.html +2 -2
- mage_ai/server/frontend_dist/manage.html +2 -2
- mage_ai/server/frontend_dist/overview.html +2 -2
- mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +2 -2
- mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +11 -11
- mage_ai/server/frontend_dist/templates/[...slug].html +2 -2
- mage_ai/server/frontend_dist/templates.html +2 -2
- mage_ai/server/frontend_dist/terminal.html +2 -2
- mage_ai/server/frontend_dist/test.html +3 -3
- mage_ai/server/frontend_dist/triggers.html +2 -2
- mage_ai/server/frontend_dist/version-control.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/404.html.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1005-a2f0e3ee378ef02b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1424-fca78f21a81a7183.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1484-87d4d4a698ac63dc.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2485-39885e5335888821.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2786-f71862671f66d948.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3391-6f0a0a5c254cd7f2.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3881-131cf690e54c23a3.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/437-331193bd9b2fe777.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/4822-045cc7cdd7c95163.js → frontend_dist_base_path_template/_next/static/chunks/4822-ee62acb1927c8150.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/547-bd961ea93f3eb98b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6299-fcb702d0f3d3291b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6422-0cdd6e596dcd43b6.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{6786-77c7e36678abb2c6.js → 6786-55e1bca3c897d5ee.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7496-7e4dd11e3f3b8e79.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7722-76c724a66240561b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7815-8b68b0eb665fcd2d.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8190-d38ed1133030797d.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8952-9d6fa18fa9378989.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9605-9332e1686c46da7d.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-9dae6fa5126cf001.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-2dc2a0dfc0ff620d.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/[...slug]-6d3d53624debede6.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products-2756fe6d9decae4a.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-6577159a0af52a78.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-6815a3ece7dc1678.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-7f790238fe70d9ab.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-33c7f2550add0719.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-07e4a3a674e83578.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-b8b4bed1e8e50068.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-54cb4936accdd2d9.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-d331e98ad103b13e.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-d87d0c21758a2d7c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-68e1b861ef4fc0d7.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-9fa0c4ce1c921a41.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-d5ef19ca1f9931de.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-4a2671811a153411.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-8872a6e00280f58c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-484581ae34a1c596.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-ce11db27e4af7869.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-624a2d7cbe6303b4.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-1169f4eecf752033.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/settings/account/profile-d2224a447987fa69.js → frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-c3ff06a12baa40a2.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-60b4398d7ae00206.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-dd827816bf4a7908.js → frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-05b53444f0e7449b.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/sign-in-097aa0bef1e34cdb.js → frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-a5e9561a6c0d2e38.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates/{[...slug]-78a07e7fe8973811.js → [...slug]-c21b269750441494.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/templates-19df643f52679d5a.js → frontend_dist_base_path_template/_next/static/chunks/pages/templates-ce2a29d477a6ce94.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-71bbb30dd9b57f80.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-1dc780d52fbd1573.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/yJvL-3bfsNF3WCStZ10Dm/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/files.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/global-data-products.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/users.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/overview.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/sign-in.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/templates.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/terminal.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/test.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/triggers.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/version-control.html +2 -2
- mage_ai/server/server.py +53 -27
- mage_ai/services/spark/spark.py +75 -2
- mage_ai/streaming/constants.py +1 -0
- mage_ai/streaming/sources/kafka.py +17 -9
- mage_ai/tests/data_preparation/models/custom_templates/__init__.py +0 -0
- mage_ai/tests/data_preparation/models/custom_templates/test_utils.py +36 -0
- mage_ai/tests/data_preparation/models/test_block.py +48 -0
- mage_ai/tests/data_preparation/test_repo_manager.py +19 -1
- mage_ai/tests/server/test_server.py +20 -2
- mage_ai/tests/services/spark/__init__.py +0 -0
- mage_ai/tests/services/spark/test_spark.py +52 -0
- {mage_ai-0.9.12.dist-info → mage_ai-0.9.14.dist-info}/METADATA +1 -1
- {mage_ai-0.9.12.dist-info → mage_ai-0.9.14.dist-info}/RECORD +245 -233
- mage_ai/server/frontend_dist/_next/static/RdDEYzOW6lfmOEilKsz4V/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1005-2f8ef0e28c917767.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1424-a2cd1bfc708a323b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1484-a07f74ae5c40141c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2485-b569baad92049d6b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2786-acce6ea0d9b4898e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3654-14ee3eacc42b118a.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3881-0eb04f7f7a244347.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/437-d43ccff3a064a528.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/547-4ad2cdae967055b6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6299-cf188c1b7a1bc33c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7496-ab1be388ae09d362.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7722-a74e6f977993e75e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7815-fbd99c8f259d9e8b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8952-98e54b14c1af492f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-74805cf1296fd50f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-bcdaa82adcca891d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/[...slug]-abdbda772d94c386.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products-01f8ef10e87ec236.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-950fbcb72961eb3c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-c6fd44191c812edf.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-6e46ed84cf3f4e9d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-1d52bba72442c53f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-8c33956a28fb4fa8.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-b28d151c32c2a469.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-e1708e5576cd26d1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-0f3468d52020dcbf.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-489d02937d5f4695.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-544475d8e841638f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-e117a99f334b6022.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-f1ef481c7beb8aef.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-ab52e3174c3dcf64.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-3e290f7d76c68b3f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-1ac4dc91ec394c6d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-4753de69f7e366c5.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-cf285c43759e9b2a.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-3f86e7f1c8d63beb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-b2354688508b0755.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-cacb24e3632cfdfc.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-5a6e3a62fef551f1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/4dbzHNz2XwS_s6Z0qsIGO/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1005-2f8ef0e28c917767.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1424-a2cd1bfc708a323b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1484-a07f74ae5c40141c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2485-b569baad92049d6b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2786-acce6ea0d9b4898e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3654-14ee3eacc42b118a.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3881-0eb04f7f7a244347.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/437-d43ccff3a064a528.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/547-4ad2cdae967055b6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6299-cf188c1b7a1bc33c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7496-ab1be388ae09d362.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7722-a74e6f977993e75e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7815-fbd99c8f259d9e8b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8952-98e54b14c1af492f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-74805cf1296fd50f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-bcdaa82adcca891d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/[...slug]-abdbda772d94c386.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products-01f8ef10e87ec236.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-950fbcb72961eb3c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-c6fd44191c812edf.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-6e46ed84cf3f4e9d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-1d52bba72442c53f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-8c33956a28fb4fa8.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-b28d151c32c2a469.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-e1708e5576cd26d1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-0f3468d52020dcbf.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-489d02937d5f4695.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-544475d8e841638f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-e117a99f334b6022.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-f1ef481c7beb8aef.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-ab52e3174c3dcf64.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-3e290f7d76c68b3f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-1ac4dc91ec394c6d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-4753de69f7e366c5.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-cf285c43759e9b2a.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-3f86e7f1c8d63beb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-b2354688508b0755.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-cacb24e3632cfdfc.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-5a6e3a62fef551f1.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{RdDEYzOW6lfmOEilKsz4V → CNjkRIWPaAu1yJUmIaX_q}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist/_next/static/{RdDEYzOW6lfmOEilKsz4V → CNjkRIWPaAu1yJUmIaX_q}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{4dbzHNz2XwS_s6Z0qsIGO → yJvL-3bfsNF3WCStZ10Dm}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{4dbzHNz2XwS_s6Z0qsIGO → yJvL-3bfsNF3WCStZ10Dm}/_ssgManifest.js +0 -0
- {mage_ai-0.9.12.dist-info → mage_ai-0.9.14.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.12.dist-info → mage_ai-0.9.14.dist-info}/WHEEL +0 -0
- {mage_ai-0.9.12.dist-info → mage_ai-0.9.14.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.12.dist-info → mage_ai-0.9.14.dist-info}/top_level.txt +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3881],{1210:function(e,n,t){t.d(n,{Z:function(){return _}});var r=t(82394),o=t(21831),i=t(82684),l=t(47999),u=t(49894),c=t(93461),a=t(57384),s=t(41424),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var m=i.forwardRef(p),h=t(32063),v=t(85019),b=t(82531),w=t(66166),y=t(3055),g=t(49125),j=t(91427),x=t(24141);function O(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?O(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _=function(e){var n,t=e.addProjectBreadcrumbToCustomBreadcrumbs,r=e.after,p=e.afterHidden,O=e.afterWidth,_=e.afterWidthOverride,C=e.before,I=e.beforeWidth,S=e.breadcrumbs,P=e.children,k=e.errors,N=e.headerMenuItems,H=e.headerOffset,D=e.mainContainerHeader,E=e.navigationItems,M=e.setErrors,z=e.subheaderChildren,A=e.title,T=e.uuid,B=(0,x.i)().width,F="dashboard_after_width_".concat(T),L="dashboard_before_width_".concat(T),q=(0,i.useRef)(null),R=(0,i.useState)(_?O:(0,j.U2)(F,O)),U=R[0],W=R[1],G=(0,i.useState)(!1),Q=G[0],J=G[1],X=(0,i.useState)(C?Math.max((0,j.U2)(L,I),13*g.iI):null),K=X[0],V=X[1],Y=(0,i.useState)(!1),$=Y[0],ee=Y[1],ne=(0,i.useState)(null)[1],te=b.ZP.projects.list({},{revalidateOnFocus:!1}).data,re=null===te||void 0===te?void 0:te.projects,oe={label:function(){var e;return null===re||void 0===re||null===(e=re[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},ie=[];S?(t&&ie.push(oe),ie.push.apply(ie,(0,o.Z)(S))):(null===re||void 0===re?void 0:re.length)>=1&&ie.push.apply(ie,[oe,{bold:!0,label:function(){return A}}]),(0,i.useEffect)((function(){null===q||void 0===q||!q.current||Q||$||null===ne||void 0===ne||ne(q.current.getBoundingClientRect().width)}),[Q,U,$,K,q,ne,B]),(0,i.useEffect)((function(){Q||(0,j.t8)(F,U)}),[p,Q,U,F]),(0,i.useEffect)((function(){$||(0,j.t8)(L,K)}),[$,K,L]);var le=(0,w.Z)(O);return(0,i.useEffect)((function(){_&&le!==O&&W(O)}),[_,O,le]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Z,{title:A}),(0,f.jsx)(s.Z,{breadcrumbs:ie,menuItems:N,project:null===re||void 0===re?void 0:re[0],version:null===re||void 0===re||null===(n=re[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===E||void 0===E?void 0:E.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(v.Z,{navigationItems:E,showMore:!0})}),(0,f.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:r,afterHeightOffset:y.Mz,afterHidden:p,afterMousedownActive:Q,afterWidth:U,before:C,beforeHeightOffset:y.Mz,beforeMousedownActive:$,beforeWidth:d.k1+(C?K:0),headerOffset:H,hideAfterCompletely:!0,leftOffset:C?d.k1:null,mainContainerHeader:D,mainContainerRef:q,setAfterMousedownActive:J,setAfterWidth:W,setBeforeMousedownActive:ee,setBeforeWidth:V,children:[z&&(0,f.jsx)(m,{children:z}),P]})})]}),k&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===M||void 0===M?void 0:M(null)},children:(0,f.jsx)(u.Z,Z(Z({},k),{},{onClose:function(){return null===M||void 0===M?void 0:M(null)}}))})]})}},63153:function(e,n,t){t.d(n,{Z3:function(){return r},ms:function(){return i},s7:function(){return o}});var r=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",disabled:!1,label:"Email",required:!0,type:"email",uuid:"email"}],o="password_current",i=[{autoComplete:"current-password",label:"Current password",type:"password",uuid:o},{autoComplete:"new-password",label:"New password",type:"password",uuid:"password"},{autoComplete:"new-password",label:"Confirm new password",type:"password",uuid:"password_confirmation"}]},20582:function(e,n,t){var r=t(82394),o=t(21831),i=t(75582),l=t(21764),u=t(82684),c=t(83455),a=t(60328),s=t(79891),d=t(67971),f=t(87372),p=t(55378),m=t(86673),h=t(19711),v=t(82944),b=t(82531),w=t(66166),y=t(46336),g=t(63153),j=t(24224),x=t(9736),O=t(7715),Z=t(96510),_=t(28598);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 I(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,r.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}n.Z=function(e){var n=e.disabledFields,t=e.hideFields,C=e.newUser,S=e.onDeleteSuccess,P=e.onSaveSuccess,k=e.showDelete,N=e.title,H=e.user,D=(0,u.useState)(!0),E=D[0],M=D[1],z=(0,u.useState)({}),A=z[0],T=z[1],B=(0,u.useState)(null),F=B[0],L=B[1],q=((0,x.PR)()||{}).owner,R=b.ZP.statuses.list().data,U=(0,u.useMemo)((function(){var e;return(null===R||void 0===R||null===(e=R.statuses)||void 0===e?void 0:e[0])||{}}),[R]),W=U.project_type,G=U.project_uuid,Q="global",J=null,X=null;W===y.k.SUB?(Q="project",J=G):W===y.k.MAIN&&(X="The roles selected here will apply to this user globally.\n If a user has both a global role and a workspace role,\n then the role with higher access will take precedence.");var K=b.ZP.roles.list({entity:Q,entity_ids:J?[J]:[],limit_roles:!!C},{revalidateOnFocus:!1}),V=K.data,Y=(K.mutate,(0,u.useMemo)((function(){return(null===V||void 0===V?void 0:V.roles)||[]}),[null===V||void 0===V?void 0:V.roles])),$=(0,c.Db)(C?b.ZP.users.useCreate():b.ZP.users.useUpdate(null===H||void 0===H?void 0:H.id),{onSuccess:function(e){return(0,Z.wD)(e,{callback:function(e){var n=e.user,t=g.Z3.concat(g.ms).map((function(e){return e.uuid}));t.push("id");var r=(0,O.GL)(n,t);L(r),l.Am.success(C?"New user created successfully.":"User profile successfully updated.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:"user-update-success-".concat(n.id)}),null===P||void 0===P||P(r)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.exception,o=n.message,i=n.type;l.Am.error((null===t||void 0===t?void 0:t.error)||r||o,{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:i})}})}}),ee=(0,i.Z)($,2),ne=ee[0],te=ee[1].isLoading,re=(0,c.Db)(b.ZP.users.useDelete(null===H||void 0===H?void 0:H.id),{onSuccess:function(e){return(0,Z.wD)(e,{callback:function(){null===S||void 0===S||S()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;alert(r),console.log(t)}})}}),oe=(0,i.Z)(re,2),ie=oe[0],le=oe[1].isLoading,ue=t?(0,o.Z)(t):[];C&&ue.push(g.s7);var ce=!ue||!ue.includes(g.s7),ae=(0,w.Z)(H);(0,u.useEffect)((function(){if(H&&(!F||(null===ae||void 0===ae?void 0:ae.id)!==(null===H||void 0===H?void 0:H.id))){var e=g.Z3.concat(g.ms).map((function(e){return e.uuid}));L((0,O.GL)(H,e))}null!==F&&void 0!==F&&F.password||null!==F&&void 0!==F&&F.password_confirmation?(null===F||void 0===F?void 0:F.password)!==(null===F||void 0===F?void 0:F.password_confirmation)?T({password_confirmation:"Password confirmation does not match."}):!ce||null!==F&&void 0!==F&&F.password_current?T(null):T({password_current:"This field is required."}):null!==F&&void 0!==F&&F.password_current&&ce?null!==F&&void 0!==F&&F.password&&null!==F&&void 0!==F&&F.password_confirmation?T(null):T({password:"This field is required.",password_confirmation:"This field is required."}):null!==F&&void 0!==F&&F.password_current||null!==F&&void 0!==F&&F.password||null!==F&&void 0!==F&&F.password_confirmation||T(null)}),[F,ce,H,ae]);var se=(0,u.useState)(!1),de=se[0],fe=se[1],pe=(0,u.useMemo)((function(){return(de?null===F||void 0===F?void 0:F.roles_new:null===H||void 0===H?void 0:H.roles_new)||[]}),[F,de,H]),me=(0,u.useMemo)((function(){var e=(null===Y||void 0===Y?void 0:Y.map((function(e){return e.id})))||[];return null===pe||void 0===pe?void 0:pe.filter((function(n){var t=n.id;return e.includes(t)}))}),[pe,Y]);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(f.Z,{children:N||"Edit profile"}),(0,_.jsxs)("form",{children:[g.Z3.filter((function(e){var n=e.uuid;return!ue||!ue.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,o=e.label,i=e.required,l=e.type,u=e.uuid;return(0,_.jsx)(m.Z,{mt:2,children:(0,_.jsx)(v.Z,{autoComplete:n,disabled:t&&!C,label:o,onChange:function(e){M(!1),L((function(n){return I(I({},n),{},(0,r.Z)({},u,e.target.value))}))},primary:!0,required:i,setContentOnMount:!0,type:l,value:(null===F||void 0===F?void 0:F[u])||""})},u)})),!(null!==H&&void 0!==H&&H.owner)&&!(null!==ue&&void 0!==ue&&ue.includes("roles"))&&(0,_.jsxs)(m.Z,{mt:2,children:[X&&(0,_.jsx)(m.Z,{mb:1,children:(0,_.jsx)(h.ZP,{children:X})}),(0,_.jsx)(p.Z,{disabled:null===n||void 0===n?void 0:n.includes("roles"),label:"Roles",onChange:function(e){var n=(0,j.sE)(Y,(function(n){return n.id==e.target.value}));n&&(M(!1),fe(!0),L((function(e){var t={};return(0,j.sE)(pe,(function(e){return e.id==(null===n||void 0===n?void 0:n.id)}))||(t={roles_new:[].concat((0,o.Z)(pe),[n])}),I(I({},e),t)})))},primary:!0,setContentOnMount:!0,children:Y.map((function(e){var n=e.id,t=e.name;return(0,_.jsx)("option",{value:n,children:t},t)}))}),(0,_.jsx)(m.Z,{mb:1}),(0,_.jsx)(d.Z,{alignItems:"center",flexWrap:"wrap",children:null===me||void 0===me?void 0:me.map((function(e){var t=e.id,r=e.name;return(0,_.jsx)(m.Z,{mb:1,mr:1,children:(0,_.jsx)(s.Z,{disabled:null===n||void 0===n?void 0:n.includes("roles"),label:r,onClick:function(){M(!1),fe(!0),L((function(e){return I(I({},e),{},{roles_new:(0,j.Od)(pe,(function(e){return e.id===t}))})}))},primary:!0})},"user_roles/".concat(r))}))})]}),(0,_.jsxs)(m.Z,{mt:5,children:[(0,_.jsx)(f.Z,{children:C?"Password":"Change password"}),g.ms.filter((function(e){var n=e.uuid;return!ue||!ue.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,o=e.label,i=e.required,l=e.type,u=e.uuid;return(0,_.jsx)(m.Z,{mt:2,children:(0,_.jsx)(v.Z,{autoComplete:n,disabled:t,label:o,meta:{error:null===A||void 0===A?void 0:A[u],touched:!(null===A||void 0===A||!A[u])},onChange:function(e){M(!1),L((function(n){return I(I({},n),{},(0,r.Z)({},u,e.target.value))}))},primary:!0,required:i,setContentOnMount:!0,type:l,value:(null===F||void 0===F?void 0:F[u])||""})},u)}))]}),(0,_.jsx)(m.Z,{mt:5,children:(0,_.jsxs)(d.Z,{children:[(0,_.jsx)(a.Z,{disabled:E||A&&!(0,O.Qr)(A),loading:te,onClick:function(){var e,n=I({},F);"roles_new"in n&&(n.roles_new=null===(e=F.roles_new)||void 0===e?void 0:e.map((function(e){return e.id})));ne({user:n})},primary:!0,children:C?"Create new user":"Update user profile"}),k&&q&&(0,_.jsx)(m.Z,{ml:1,children:(0,_.jsx)(a.Z,{danger:!0,loading:le,onClick:function(){window.confirm("Are you sure you want to delete ".concat(F.username||F.email,"?"))&&ie()},children:"Delete user"})})]})})]})]})}},46336:function(e,n,t){var r,o;t.d(n,{d:function(){return r},k:function(){return o}}),function(e){e.ADD_NEW_BLOCK_V2="add_new_block_v2"}(r||(r={})),function(e){e.MAIN="main",e.STANDALONE="standalone",e.SUB="sub"}(o||(o={}))},79891:function(e,n,t){var r=t(38626),o=t(60328),i=t(67971),l=t(86673),u=t(19711),c=t(23831),a=t(22341),s=t(49125),d=t(31012),f=t(28598),p=r.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," ",""],(function(e){return!e.primary&&"\n background-color: ".concat((e.theme.background||c.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||c.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((s.iI+d.Al)/2,"px;\n height: ").concat(1.5*s.iI+d.Al,"px;\n padding: ").concat(s.iI/1.5,"px ").concat(1.25*s.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((s.iI/2+d.Al)/2,"px;\n height: ").concat(d.Al+s.iI/2+2,"px;\n padding: ").concat(s.iI/4,"px ").concat(s.iI,"px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||c.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,t=e.children,r=e.disabled,c=e.label,d=e.onClick,m=e.primary,h=e.small;return(0,f.jsx)(p,{border:n,primary:m,small:h,children:(0,f.jsx)(o.Z,{basic:!0,disabled:r,noBackground:!0,noPadding:!0,onClick:d,transparent:!0,children:(0,f.jsxs)(i.Z,{alignItems:"center",children:[t,c&&(0,f.jsx)(u.ZP,{small:h,children:c}),!r&&d&&(0,f.jsx)(l.Z,{ml:1,children:(0,f.jsx)(a.x8,{default:m,muted:!m,size:h?s.iI:1.25*s.iI})})]})})})}},87372:function(e,n,t){var r,o,i,l,u,c,a,s,d=t(82394),f=t(26304),p=t(26653),m=t(38626),h=t(33591),v=t(23831),b=t(2005),w=t(31012),y=t(19711),g=t(49125),j=t(86673),x=t(28598),O=["children","condensed","inline","level","marketing","spacingBelow"];function Z(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?Z(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C=(0,m.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],y.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||v.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(b.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),I=m.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||v.Z.content).active,";\n ")})),S=m.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],C,h.media.md(r||(r=(0,p.Z)(["\n ","\n "])),w.aQ),h.media.lg(o||(o=(0,p.Z)(["\n ","\n "])),w.aQ),h.media.xl(i||(i=(0,p.Z)(["\n ","\n "])),w.aQ)),P=m.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],C,w.MJ),k=m.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],C,h.media.xs(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*g.iI,7*g.iI),h.media.sm(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*g.iI,7*g.iI),h.media.md(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*g.iI,7*g.iI),h.media.lg(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*g.iI,7*g.iI),h.media.xl(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*g.iI,7*g.iI)),N=m.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],C,w.BL),H=m.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],C),D=m.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],C),E=m.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],C),M=m.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],C,(function(e){return 1===e.level&&"\n ".concat(w.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(w.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),z=function(e){var n,t=e.children,r=e.condensed,o=e.inline,i=e.level,l=e.marketing,u=e.spacingBelow,c=(0,f.Z)(e,O);o?n=M:0===Number(i)?n=S:1===Number(i)?n=l?k:P:2===Number(i)?n=N:3===Number(i)?n=H:4===Number(i)?n=D:5===Number(i)&&(n=E);var a=(0,x.jsxs)(n,_(_({},c),{},{level:i,children:[u&&(0,x.jsx)(j.Z,{mb:r?2:3,children:t}),!u&&t]}));return o?a:(0,x.jsx)(I,{children:a})};z.defaultProps={level:3,weightStyle:6},n.Z=z},80022:function(e,n,t){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){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}})},99177:function(e,n,t){function r(e,n){return r=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},r(e,n)}function o(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&&r(e,n)}t.d(n,{Z:function(){return o}})},93189:function(e,n,t){t.d(n,{Z:function(){return i}});var r=t(12539),o=t(80022);function i(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,o.Z)(e)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[437],{64155:function(t,e,n){n.d(e,{Eh:function(){return c},t0:function(){return s}});var r=n(38626),i=n(82386),o=n(9468),a=n(31012),l=n(37391),u=n(49125),c=(u.iI,o.O$+3*u.iI+a.dN),s=r.default.div.withConfig({displayName:"indexstyle__SidekickContainerStyle",componentId:"sc-15ofupc-0"})([""," overflow:auto;position:absolute;width:100%;"," ",""],l.w5,(function(t){return"\n height: calc(100vh - ".concat(i.uX,"px - ").concat(t.heightOffset,"px);\n ")}),(function(t){return t.overflowHidden&&"\n overflow: hidden;\n "}));r.default.div.withConfig({displayName:"indexstyle__PaddingContainerStyle",componentId:"sc-15ofupc-1"})(["padding:","px;",""],2*u.iI,(function(t){return t.noPadding&&"\n padding: 0;\n "}))},66872:function(t,e,n){n.d(e,{Z:function(){return H}});var r=n(26304),i=n(21831),o=n(82394),a=n(82684),l=n(26226),u=n(84969),c=n(90948),s=n(65743),d=n(29989),f=n(38626),h=n(61655),p=n(16853),m=n(65376),g=n(48072),v=n(98677),x=n(84181),y=n(67971),b=n(54283),j=n(19711),w=n(52359),Z=n(31969),S=n(73899),O=n(88560),k=n(2005),L=n(31012),T=n(49125),I=n(88543),M=n(6568),D=function(t){return t.slice(0,10)},P=function(t,e){var n=t.toISOString().slice(0,10),r=e.toISOString().slice(0,10);return"".concat(n,":").concat(r)},A=n(344),C=n(45739),E=n(28598),R=["height","loading","selected","width","xAxisLabel","yAxisLabel"];function Y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var F={bottom:T.iI,left:3*T.iI,right:0,top:1*T.iI},N=(0,h.Z)((function(t){var e=t.columnType,n=t.data,r=void 0===n?[]:n,o=t.getBarColor,l=t.getXValue,h=t.getYValue,y=t.height,b=t.hideTooltip,w=t.large,R=t.margin,Y=void 0===R?{}:R,N=t.muted,H=t.noPadding,V=t.numberOfXTicks,z=t.renderTooltipContent,B=t.selected,U=t.showAxisLabels,X=t.showTooltip,J=t.showYAxisLabels,K=t.showZeroes,W=t.sortData,Q=t.tooltipData,G=t.tooltipLeft,$=t.tooltipOpen,q=t.tooltipTop,tt=t.width,et=t.xLabelFormat,nt=t.yLabelFormat,rt=w?L.J5:L.VK,it=(0,a.useCallback)((function(t){return l?l(t):t[0]}),[l]),ot=(0,a.useCallback)((function(t){return h?h(t):t[1]}),[h]),at=(0,a.useContext)(f.ThemeContext),lt=e===O.RL.DATETIME,ut=_(_({},F),Y);U&&(ut=_(_({},ut),{},{left:ut.left+T.iI}));var ct=W?W(r):r.sort((function(t,e){return e[1]-t[1]})),st=lt?r.sort((function(t,e){return new Date(t[0])-new Date(e[0])})).filter((function(t){return!!t[0]})):ct.slice(0,60),dt=tt-(ut.left+ut.right),ft=y-(ut.bottom+ut.top),ht=lt?function(t,e){var n,r=t.map((function(t){return new Date(t[0])})).sort((function(t,e){return t-e}));return(0,M.Z)({domain:(n=r,[(0,I.Z)(n[0]),(0,I.Z)(n[n.length-1])]),nice:!0,range:[0,e]})}(st,dt):null,pt=function(t,e){if(null===e)return{};var n=e.ticks().map((function(t){return t.toISOString()})),r={},i=0,o=1;return t.forEach((function(t){var e=new Date(t[0]),a=t[1],l=n[i],u=n[o];if(l&&u){var c=new Date(l),s=new Date(u),d=P(c,s);if(e>=c&&e<s)r[d]=(r[d]||0)+a;else for(;o<n.length||!r[d];)if(i+=1,o+=1,c=new Date(n[i]),s=new Date(n[o]),d=P(c,s),e>=c&&e<s)return void(r[d]=(r[d]||0)+a)}})),n.reduce((function(t,e,n,r){if(0===n)return t;var i=D(e),o=D(r[n-1]);return t.push("".concat(o,":").concat(i)),t}),[]).forEach((function(t){r[t]=r[t]||0})),r}(st,ht);st=ht?Object.entries(pt).sort((function(t,e){return new Date(D(t[0]))-new Date(D(e[0]))})):st;var mt=ht?Math.max.apply(Math,(0,i.Z)(Object.values(pt))):0,gt=st.reduce((function(t,e){return(0!==ot(e)||lt||K)&&t.push(it(e)),t}),[]),vt=gt.length,xt=function(t,e,n){return n?.05:t>=30&&e<300?.5:t>=15?.3:t>=5?.1:t>2?.05:2===t?.025:0}(vt,tt,lt),yt=(0,v.Z)({domain:gt,paddingInner:H?null:xt,range:[0,dt],round:!1}),bt=(0,x.Z)({domain:[0,Math.max.apply(Math,(0,i.Z)(st.map(ot)))],range:[ft,0],round:!0}),jt=(0,C.K)(at),wt={active:((null===at||void 0===at?void 0:at.content)||Z.Z.content).active,default:jt[0],muted:((null===at||void 0===at?void 0:at.monotone)||Z.Z.monotone).gray,selected:((null===at||void 0===at?void 0:at.elevation)||Z.Z.elevation).visualizationAccent},Zt=wt.default;N?Zt=wt.muted:B&&(Zt=wt.selected);var St=vt?lt?mt:Math.max.apply(Math,(0,i.Z)(st.map((function(t){return ot(t)})))):0,Ot=Math.floor(St/6),kt=[0],Lt=0;if(St>6)for(;Lt<St;)kt.push(Lt+Ot),Lt+=Ot;else for(;Lt<=St;)kt.push(Lt+1),Lt+=1;St>9999?ut=_(_({},ut),{},{left:w?8*T.iI:4.1*T.iI}):St>999&&(ut=_(_({},ut),{},{left:w?5*T.iI:3.6*T.iI}));var Tt=lt?2.25:0,It=vt<10||e===O.RL.NUMBER||e===O.RL.NUMBER_WITH_DECIMALS||lt||J,Mt=(0,a.useCallback)((function(t){var e=(0,g.Z)(t)||{x:0,y:0},n=e.x,r=e.y,i=(n-(U?ut.left:0))/dt,o=Math.floor(vt*i),a=st[o];"undefined"===typeof a&&(a=st[0]);var l=it(a);l=l.length>15?"".concat(l.slice(0,21)):l;var u=z?z(a):"".concat(l," (").concat(ot(a),")");X({tooltipData:u,tooltipLeft:n-ut.left,tooltipTop:r+ut.top})}),[st,vt,it,ot,ut.left,ut.top,z,U,X,tt]);return tt<10||!r.length?null:(0,E.jsxs)("div",{children:[(0,E.jsxs)("svg",{height:y+ut.bottom*(lt?7.5:3),width:tt,children:[(0,E.jsx)(d.Z,{left:U?ut.left:0,top:ut.top+Tt,children:st.reduce((function(t,e){var n=it(e),r=ot(e);if(0!==r){var i,a=yt.bandwidth(),l=ft-(null!==(i=bt(r))&&void 0!==i?i:0),u=yt(n),c=ft-l;t.push((0,E.jsx)(s.Z,{fill:o?o(e):Zt,height:l,onMouseLeave:function(){return b()},onMouseMove:Mt,onTouchMove:Mt,onTouchStart:Mt,width:a,x:u,y:c},"bar-".concat(n)))}return t}),[])}),U&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(u.Z,{left:ut.left,scale:bt,stroke:wt.muted,tickFormat:function(t){return nt?nt(t):(0,A.P5)(t)},tickLabelProps:function(){return{fill:wt.active,fontFamily:k.ry,fontSize:rt,textAnchor:"end",transform:"translate(-2,2.5)"}},tickStroke:wt.muted,tickValues:kt,top:ut.top+Tt}),(0,E.jsx)(c.Z,{left:ut.left,numTicks:lt?void 0:V||6,orientation:"top",scale:ht||yt,stroke:wt.muted,tickFormat:function(t){return et?et(String(t)):lt?t.toISOString().slice(0,10):String(t)},tickLabelProps:function(t){return{fill:It?wt.active:"transparent",fontFamily:k.ry,fontSize:rt,textAnchor:"middle",transform:lt?"rotate(-90,".concat(ht(t),",0) translate(-33,10)"):"translate(0, ".concat(3*ut.bottom,")")}},tickLineProps:{transform:"translate(0,".concat(T.iI,")")},tickStroke:It?wt.muted:"transparent",top:ft+ut.top+Tt})]})]}),$&&Q&&(0,E.jsx)(p.Z,{left:G,style:m.j,top:q,children:(0,E.jsx)(j.ZP,{color:S.E5,small:!0,children:Q})})]})}));var H=function(t){var e=t.height,n=t.loading,i=t.selected,o=t.width,a=t.xAxisLabel,u=t.yAxisLabel,c=(0,r.Z)(t,R);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{style:{display:"flex",height:e,marginBottom:T.iI,width:"100%"},children:[u&&(0,E.jsx)(y.Z,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,E.jsx)(w.Z,{children:(0,E.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:u})})}),(0,E.jsxs)("div",{style:{height:e,width:u?0===o?o:o-28:o},children:[n&&(0,E.jsx)(b.Z,{}),!n&&(0,E.jsx)(l.Z,{children:function(t){var e=t.height,n=t.width;return(0,E.jsx)(N,_(_({},c),{},{height:e,selected:i,width:n}))}})]})]}),a&&(0,E.jsx)("div",{style:{paddingLeft:u?36:0,paddingTop:4},children:(0,E.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:a})})]})}},320:function(t,e,n){n.d(e,{Z:function(){return T}});var r=n(26304),i=n(82394),o=n(75582),a=n(26226),l=n(28940),u=n(82684),c=n(29989),s=n(38626),d=n(11684),f=n(24903),h=n(19711),p=n(23831),m=n(2005),g=n(31012),v=n(49125),x=n(45739),y=n(28598),b=["height","width","xAxisLabel"];function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Z={bottom:0,left:0,right:0,top:0},S=function(t){var e=t.endAngle;return{endAngle:e>Math.PI?2*Math.PI:0,opacity:0,startAngle:e>Math.PI?2*Math.PI:0}},O=function(t){var e=t.startAngle;return{endAngle:t.endAngle,opacity:1,startAngle:e}};function k(t){var e=t.animate,n=t.arcs,r=t.path,i=t.getKey,a=t.getColor,l=t.onClickDatum,u=t.textColor;return(0,d.useTransition)(n,{enter:O,from:e?S:O,keys:i,leave:e?S:O,update:O})((function(t,e,n){var c=n.key,s=r.centroid(e),f=(0,o.Z)(s,2),h=f[0],p=f[1],v=e.endAngle-e.startAngle>=.1;return(0,y.jsxs)("g",{children:[(0,y.jsx)(d.animated.path,{d:(0,d.to)([t.startAngle,t.endAngle],(function(t,n){return r(w(w({},e),{},{endAngle:n,startAngle:t}))})),fill:a(e),onClick:function(){return l(e)},onTouchStart:function(){return l(e)}}),v&&(0,y.jsx)(d.animated.g,{style:{opacity:t.opacity},children:(0,y.jsx)("text",{dy:".33em",fill:u,fontFamily:m.ry,fontSize:g.J5,pointerEvents:"none",textAnchor:"middle",x:h,y:p,children:i(e)})})]},c)}))}function L(t){var e=t.animate,n=void 0===e||e,r=t.data,i=t.getX,o=t.getY,a=t.height,d=t.margin,h=void 0===d?Z:d,m=t.textColor,g=t.width,b=(0,u.useState)(null),j=b[0],S=b[1],O=(0,u.useContext)(s.ThemeContext),L=m||(null===O||void 0===O?void 0:O.content.active)||p.Z.content.active;if(g<10)return null;var T=(0,f.Z)({domain:r.map((function(t){return i(t)})),range:(0,x.K)(O)}),I=g-h.left-h.right,M=a-h.top-h.bottom,D=Math.min(I,M)/2,P=M/2,A=I/2,C=Math.min(I/4,12*v.iI);return(0,y.jsx)("svg",{height:a,width:g,children:(0,y.jsx)(c.Z,{left:A+h.left,top:P+h.top,children:(0,y.jsx)(l.Z,{cornerRadius:v.iI/2,data:j?r.filter((function(t){return JSON.stringify(t)===JSON.stringify(j)})):r,innerRadius:Math.max(D-C,12.25),outerRadius:D,padAngle:.005,pieValue:o,children:function(t){return(0,y.jsx)(k,w(w({},t),{},{animate:n,getColor:function(t){var e=t.data;return T(i(e))},getKey:function(t){var e=t.data;return i(e)},onClickDatum:function(t){var e=t.data;return n&&S(j&&JSON.stringify(j)===JSON.stringify(e)?null:e)},textColor:L}))}})})})}function T(t){var e=t.height,n=t.width,i=t.xAxisLabel,o=(0,r.Z)(t,b),l={};return"undefined"!==typeof e&&(l.height=e),"undefined"!==typeof n&&(l.width=n),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{style:l,children:(0,y.jsx)(a.Z,{children:function(t){var e=t.width,n=t.height;return(0,y.jsx)(L,w(w({},o),{},{height:n,width:e}))}})}),i&&(0,y.jsx)("div",{style:{paddingTop:4},children:(0,y.jsx)(h.ZP,{center:!0,muted:!0,small:!0,children:i})})]})}},45739:function(t,e,n){n.d(e,{K:function(){return i}});var r=n(31969),i=function(t){var e=t||r.Z,n=e.brand,i=n.earth200,o=n.earth300,a=n.earth400,l=n.energy200,u=n.energy300,c=n.energy400,s=n.fire200,d=n.fire300,f=n.fire400,h=n.water200,p=n.water300,m=n.water400,g=n.wind200,v=n.wind300,x=n.wind400,y=e.chart;return[y.backgroundPrimary,y.backgroundSecondary,y.backgroundTertiary].concat([x,m,f,c,a,v,p,d,u,o,g,h,s,l,i])}},52359:function(t,e,n){var r=n(38626).default.div.withConfig({displayName:"YAxisLabelContainer",componentId:"sc-qwp21x-0"})(["-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);white-space:nowrap;"]);e.Z=r},344:function(t,e,n){n.d(e,{P5:function(){return i},Vs:function(){return o}});n(90211);var r=Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:2});function i(t){return"number"!==typeof t?t:t>=1e4?r.format(t):t.toString()}function o(t,e,n){var r,i;if("undefined"===typeof t||"undefined"===typeof e)return 0;var o=null===t||void 0===t||null===(r=t(e,n))||void 0===r||null===(i=r.props)||void 0===i?void 0:i.children;return(Array.isArray(o)?o:[o]).join("").length}},9468:function(t,e,n){n.d(e,{O$:function(){return ot},Fk:function(){return at}});var r=n(75582),i=n(12691),o=n.n(i),a=n(26304),l=n(21831),u=n(82394),c=n(82684),s=n(26226),d=n(84969),f=n(90948),h=n(65743),p=n(28108),m=n(79487),g=n(29989),v=n(38626),x=n(61655),y=n(16853),b=n(65376),j=n(48072),w=n(24903),Z=n(84181),S=n(98677),O=n(19711),k=n(31969),L=n(73899),T=n(31012),I=n(49125),M=n(2005),D=n(28598),P=["height","width"];function A(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?A(Object(n),!0).forEach((function(e){(0,u.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var E={bottom:5*I.iI,left:3*I.iI,right:20*I.iI,top:0},R=function(t){return t.x},Y=function(t){return t.y},_=(0,x.Z)((function(t){var e=t.data,n=t.height,r=t.hideTooltip,i=t.large,o=t.margin,a=void 0===o?{}:o,u=t.renderTooltipContent,s=t.showTooltip,x=t.tooltipData,I=t.tooltipLeft,P=t.tooltipOpen,A=t.tooltipTop,_=t.width,F=t.xAxisLabel,N=t.xNumTicks,H=t.yLabelFormat,V=t.ySerialize,z=H;z||(z=function(t){return t.length>20?"".concat(t.substring(0,20),"..."):t});var B=i?T.iD:T.J5,U=(0,c.useContext)(v.ThemeContext),X=C(C({},E),a),J=e.slice(Math.max(0,e.length-50)),K=Object.keys(J[0]||[]).filter((function(t){return"x"===t})),W=(0,w.Z)({domain:K,range:[L.hM]}),Q=(0,Z.Z)({domain:[0,Math.max.apply(Math,(0,l.Z)(J.map(R)))],nice:!0}),G=(0,S.Z)({domain:J.map(Y),padding:.35}),$={active:(null===U||void 0===U?void 0:U.content.default)||k.Z.content.default,backgroundPrimary:(null===U||void 0===U?void 0:U.chart.backgroundPrimary)||k.Z.chart.backgroundPrimary,backgroundSecondary:(null===U||void 0===U?void 0:U.chart.backgroundSecondary)||k.Z.chart.backgroundSecondary,muted:(null===U||void 0===U?void 0:U.content.muted)||k.Z.content.muted,primary:(null===U||void 0===U?void 0:U.chart.primary)||k.Z.chart.primary,tooltipBackground:(null===U||void 0===U?void 0:U.background.navigation)||k.Z.background.navigation},q=J.map(V),tt=Math.min(Math.max.apply(Math,(0,l.Z)(q.map((function(t){return String(t).length})))),20);6*tt>2*X.right?X.right+=5.5*tt:6*tt>=X.right&&(X.right+=3.75*tt);var et=_-X.left-X.right,nt=n-X.top-X.bottom;X.left+=7*tt,Q.rangeRound([0,et]),G.rangeRound([nt,0]);var rt=J.map(R).length,it=G(q[rt-1]),ot=(0,c.useCallback)((function(t){var e=(0,j.Z)(t)||{x:0,y:0},n=e.x,r=e.y,i=1-(r-it/2)/(nt-it),o=Math.floor(i*rt),a=J[o];"undefined"===typeof a&&(a=J[o-1]),r>it&&r<nt-it&&s({tooltipData:a,tooltipLeft:n,tooltipTop:r+X.top})}),[J,rt,X.top,s,it,nt]);return _<10?null:(0,D.jsxs)("div",{children:[(0,D.jsxs)("svg",{height:n,width:_,children:[(0,D.jsx)(h.Z,{fill:"transparent",height:n-(X.top+X.bottom),onMouseLeave:function(){return r()},onMouseMove:ot,onTouchMove:ot,onTouchStart:ot,rx:14,width:_-X.left,x:X.left,y:0}),(0,D.jsxs)(g.Z,{left:X.left,top:X.top,children:[(0,D.jsx)(p.Z,{color:W,data:J,height:nt,keys:K,pointerEvents:"none",xScale:Q,y:V,yScale:G,children:function(t){return t.map((function(t){return t.bars.map((function(e){return(0,D.jsx)("g",{children:(0,D.jsx)(D.Fragment,{children:(0,D.jsx)("rect",{fill:$.backgroundPrimary,height:e.height,pointerEvents:"none",rx:4,width:e.width,x:e.x,y:e.y})})},"barstack-horizontal-".concat(t.index,"-").concat(e.index))}))}))}}),(0,D.jsx)(d.Z,{hideTicks:!0,scale:G,stroke:$.muted,tickFormat:function(t){return z(t)},tickLabelProps:function(){return{fill:$.active,fontFamily:M.ry,fontSize:B,style:{width:"10px"},textAnchor:"end"}},tickStroke:$.muted,tickValues:q,top:2}),(0,D.jsx)(f.Z,{label:F,labelProps:{fill:$.muted,fontFamily:M.ry,fontSize:B,textAnchor:"middle"},numTicks:N,scale:Q,stroke:$.muted,tickLabelProps:function(){return{fill:$.active,fontFamily:M.ry,fontSize:B,textAnchor:"middle"}},tickStroke:$.muted,top:nt})]}),x&&(0,D.jsx)("g",{children:(0,D.jsx)(m.Z,{from:{x:X.left,y:A},pointerEvents:"none",stroke:L.Ej,strokeDasharray:"5,2",strokeWidth:1,to:{x:et+X.left,y:A}})})]}),P&&x&&(0,D.jsx)(y.Z,{left:I,style:C(C({},b.j),{},{backgroundColor:$.tooltipBackground}),top:A,children:(0,D.jsxs)(O.ZP,{black:!0,small:!0,children:[null===u||void 0===u?void 0:u(x),!u&&R(x).toFixed(4)]})})]})}));var F,N,H,V,z=function(t){var e=t.height,n=t.width,r=(0,a.Z)(t,P);return(0,D.jsx)("div",{style:{height:e,width:"undefined"===typeof n?"100%":n},children:(0,D.jsx)(s.Z,{children:function(t){var e=t.width,n=t.height;return(0,D.jsx)(_,C(C({},r),{},{height:n,width:e}))}})})},B=n(93461),U=n(66872),X=n(10919),J=n(320),K=n(88560),W=n(24224),Q=(W.Qj,W.tS,W.tS,W.tS,W.tS,W.Qj,W.Qj,W.Qj,W.tS,W.tS,F={},(0,u.Z)(F,K.RL.EMAIL,"domain_distribution"),(0,u.Z)(F,K.RL.TEXT,"word_distribution"),(0,u.Z)(F,K.RL.LIST,"element_distribution"),(0,u.Z)(F,"default","value_counts"),F),G=[].concat((0,l.Z)(K.P_),[K.RL.TEXT,K.RL.EMAIL,K.RL.LIST]),$=(N={},(0,u.Z)(N,K.RL.EMAIL,"Domain distribution"),(0,u.Z)(N,K.RL.TEXT,"Word distribution"),(0,u.Z)(N,K.RL.LIST,"Element distribution"),(0,u.Z)(N,"default","Distribution of values"),n(86585));!function(t){t.RANGE="range"}(H||(H={})),function(t){t.BAR_HORIZONTAL="bar_horizontal",t.LINE_CHART="line_chart",t.HISTOGRAM="histogram"}(V||(V={}));var q=n(6753),tt=n(92083),et=n.n(tt),nt=n(90211);function rt(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r||{},o=i.calculateAnomaly,a=i.feature,u=i.getYValue,c=t.x,s=t.x_metadata,d=s.label,f=s.label_type,h=t.y,p=(null===h||void 0===h?void 0:h.map((function(t){return null===u||void 0===u?void 0:u(t)})))||[],m=Math.max.apply(Math,(0,l.Z)(p)),g=Math.max.apply(Math,(0,l.Z)(p)),v=(0,W.Sm)(p),x=(0,W.IN)(p),y=v/Math.max(1,p.length),b=e[d]||a,j=null===b||void 0===b?void 0:b.columnType,w=K.RL.DATETIME===j,Z=[],S=[],O=c.length,k=c.map((function(t,e){var r,i,a,l,u=t.label,c=t.max,s=t.min,d=h[e];if(H.RANGE===f)if(n||(n=c-s),l=K.RL.NUMBER===j&&n<=O)r=Number(s);else if(r=n/2+s,w){var b="M/D/YYYY",k="M/D/YYYY",L="M/D/YYYY";n<=1?(b=n<=.1?"H:mm:ss.SSS":"H:mm:ss",k="H:mm:ss.SSS",L="H:mm:ss.SSS"):n<=60?(b="H:mm",k="H:mm:ss",L="H:mm:ss"):n<=3600?(b="H:mm",k="M/D/YYYY H:mm",L="H:mm"):n<=86400&&(k="M/D/YYYY H:mm",L="M/D/YYYY H:mm"),r=et().unix(r).format(b),i=et().unix(s).format(k),a=et().unix(c).format(L)}else r=(0,nt.QV)(r);else r=u;var T=e>=1?h[e-1]:null,I=!1;o&&(I=o({x:t,y:d,yPrevious:T,yValues:p,yValuesAverage:y,yValuesMax:m,yValuesMin:g,yValuesStandardDeviation:x,yValuesSum:v}));var M={hideRange:l,isUnusual:I,x:t,xLabel:r,xLabelMax:a,xLabelMin:i,y:d};return I&&(l?S.push(M):Z.push(M)),M}));return{distribution:{data:k,featureUUID:d},rangedWithUnusualDistribution:(0,W.YC)(Z,(function(t){var e=t.y;return u(e)}),{ascending:!1}),unusualDistribution:(0,W.YC)(S,(function(t){var e=t.y;return u(e)}),{ascending:!1})}}var it=n(20567);var ot=12*I.iI;function at(t){var e=t.columnTypes,n=t.columns,i=t.insightsByFeatureUUID,a=t.insightsOverview,l=t.noColumnLinks,u=void 0!==l&&l,c=t.statistics;return function(t,l,s){var d=s.width,f=n[l],h=e[f],p=$.T5[h],m=(i[f]||{}).charts,g=a.time_series,v=n.filter((function(t){return e[t]===K.RL.DATETIME})),x=null===g||void 0===g?void 0:g.map((function(t){return rt(t,{},{feature:{columnType:h,uuid:f}}).distribution})),y={};null===x||void 0===x||x.forEach((function(t,e){var n=t.data;y[v[e]]=(0,D.jsx)(U.Z,{data:n.map((function(t){var e=t.x,n=t.xLabel,r=t.xLabelMax,i=t.xLabelMin;return[n,t.y.count,i,r,e.min,e.max]})),height:ot,large:!0,margin:{bottom:0,left:0,right:0,top:0},renderTooltipContent:function(t){var e=(0,r.Z)(t,4),n=e[1],i=e[2],o=e[3];return(0,D.jsxs)("p",{children:["Rows: ",n,(0,D.jsx)("br",{}),"Start: ",i,(0,D.jsx)("br",{}),"End: ",o]})},sortData:function(t){return(0,W.YC)(t,"[4]")}},f)}));var b,j=null===m||void 0===m?void 0:m.find((function(t){var e=t.type;return V.HISTOGRAM===e})),w=(j?rt(j,{},{feature:{columnType:h,uuid:f},getYValue:function(t){return t.value}}):{}).distribution,Z=void 0===w?null:w,S=Q[h]||Q.default,k=null===c||void 0===c?void 0:c["".concat(f,"/").concat(S)],L=Object.entries(k||{}).map((function(t){var e=(0,r.Z)(t,2),n=e[0];return{x:e[1],y:n}})),T=K.RL.TRUE_OR_FALSE===h;if(K.RL.DATETIME===h)b=y[f];else if(Z&&!T)b=(0,D.jsx)(U.Z,{data:Z.data.map((function(t){var e=t.hideRange,n=t.isUnusual,r=t.x;return[t.xLabel,t.y.value,r.min,r.max,n,e]})),height:ot,margin:{bottom:0,left:0,right:0,top:0},renderTooltipContent:function(t){var e=(0,r.Z)(t,6),n=e[1],i=e[2],o=e[3],a=e[5];return(0,D.jsxs)("p",{children:[a&&(0,D.jsxs)(D.Fragment,{children:["Rows: ",n,(0,D.jsx)("br",{}),"Value: ",i]}),!a&&(0,D.jsxs)(D.Fragment,{children:["Rows: ",n,(0,D.jsx)("br",{}),"Range: ",i," - ",o]})]})},sortData:function(t){return(0,W.YC)(t,"[2]")},width:d-2*I.iI});else if(G.includes(h)){var M=(0,W.YC)((0,W.YC)(L,"x",{ascending:!1}).slice(0,5),"x");b=(0,D.jsx)(z,{data:M,height:ot,margin:{bottom:0,left:0,right:20,top:0},renderTooltipContent:function(t){var e=t.x,n=t.y;return"".concat(n," appears ").concat((0,nt.x6)(e)," times")},xNumTicks:2,ySerialize:function(t){return t.y}})}else T&&k&&(b=(0,D.jsx)(J.Z,{data:Object.entries(k),getX:function(t){var e=(0,r.Z)(t,2),n=e[0],i=e[1];return"".concat(n," (").concat((0,nt.x6)(i),")")},getY:function(t){return(0,r.Z)(t,2)[1]},height:ot}));return(0,D.jsxs)("div",{style:{padding:I.iI},children:[(0,D.jsxs)("div",{style:{alignItems:"center",display:"flex",marginBottom:I.iI},children:[p&&(0,D.jsx)(B.Z,{title:K.Rp[h],children:(0,D.jsx)(p,{size:2*I.iI})}),(0,D.jsx)("div",{style:{marginLeft:.5*I.iI,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:d-4.5*I.iI},children:u?(0,D.jsx)(O.ZP,{bold:!0,default:!0,title:n[l],children:n[l]}):(0,D.jsx)(o(),{as:(0,it.o_)(q.oE,l),href:"/datasets/[...slug]",passHref:!0,children:(0,D.jsx)(X.Z,{bold:!0,monospace:!0,secondary:!0,small:!0,title:n[l],children:n[l]})})})]}),b,!b&&(0,D.jsx)("div",{style:{height:ot}})]})}}},22673:function(t,e,n){var r=n(82684),i=n(68792),o=n(31811),a=n(38626),l=n(65292),u=n(23831),c=n(2005),s=n(49125),d=n(28598);e.Z=function(t){var e=t.language,n=t.maxWidth,f=t.showLineNumbers,h=t.small,p=t.source,m=t.wrapLines,g=(0,r.useContext)(a.ThemeContext);function v(t){var r=t.value;return(0,d.jsx)(o.Z,{customStyle:{backgroundColor:(g.background||u.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:c.Vp,fontSize:h?12:14,marginBottom:0,marginTop:0,maxWidth:n,paddingBottom:2*s.iI,paddingTop:2*s.iI},language:e,lineNumberStyle:{color:(g.content||u.Z.content).muted},showLineNumbers:f,style:l._4,useInlineStyles:!0,wrapLines:m,children:r})}return(0,d.jsx)(i.D,{components:{code:function(t){var e=t.children;return(0,d.jsx)(v,{value:e})}},children:p})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[547],{1210:function(e,n,r){r.d(n,{Z:function(){return y}});var t=r(82394),i=r(21831),o=r(82684),l=r(47999),s=r(49894),u=r(93461),c=r(57384),d=r(41424),a=r(72454),f=r(28598);function p(e,n){var r=e.children;return(0,f.jsx)(a.HS,{ref:n,children:r})}var h=o.forwardRef(p),b=r(32063),g=r(85019),v=r(82531),O=r(66166),m=r(3055),j=r(49125),I=r(91427),S=r(24141);function k(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?k(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var y=function(e){var n,r=e.addProjectBreadcrumbToCustomBreadcrumbs,t=e.after,p=e.afterHidden,k=e.afterWidth,y=e.afterWidthOverride,E=e.before,M=e.beforeWidth,x=e.breadcrumbs,w=e.children,Z=e.errors,N=e.headerMenuItems,C=e.headerOffset,_=e.mainContainerHeader,R=e.navigationItems,T=e.setErrors,L=e.subheaderChildren,B=e.title,G=e.uuid,D=(0,S.i)().width,A="dashboard_after_width_".concat(G),H="dashboard_before_width_".concat(G),W=(0,o.useRef)(null),U=(0,o.useState)(y?k:(0,I.U2)(A,k)),F=U[0],K=U[1],z=(0,o.useState)(!1),q=z[0],Y=z[1],J=(0,o.useState)(E?Math.max((0,I.U2)(H,M),13*j.iI):null),Q=J[0],V=J[1],X=(0,o.useState)(!1),$=X[0],ee=X[1],ne=(0,o.useState)(null)[1],re=v.ZP.projects.list({},{revalidateOnFocus:!1}).data,te=null===re||void 0===re?void 0:re.projects,ie={label:function(){var e;return null===te||void 0===te||null===(e=te[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},oe=[];x?(r&&oe.push(ie),oe.push.apply(oe,(0,i.Z)(x))):(null===te||void 0===te?void 0:te.length)>=1&&oe.push.apply(oe,[ie,{bold:!0,label:function(){return B}}]),(0,o.useEffect)((function(){null===W||void 0===W||!W.current||q||$||null===ne||void 0===ne||ne(W.current.getBoundingClientRect().width)}),[q,F,$,Q,W,ne,D]),(0,o.useEffect)((function(){q||(0,I.t8)(A,F)}),[p,q,F,A]),(0,o.useEffect)((function(){$||(0,I.t8)(H,Q)}),[$,Q,H]);var le=(0,O.Z)(k);return(0,o.useEffect)((function(){y&&le!==k&&K(k)}),[y,k,le]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(c.Z,{title:B}),(0,f.jsx)(d.Z,{breadcrumbs:oe,menuItems:N,project:null===te||void 0===te?void 0:te[0],version:null===te||void 0===te||null===(n=te[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(a.Nk,{children:[0!==(null===R||void 0===R?void 0:R.length)&&(0,f.jsx)(a.lm,{showMore:!0,children:(0,f.jsx)(g.Z,{navigationItems:R,showMore:!0})}),(0,f.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(b.Z,{after:t,afterHeightOffset:m.Mz,afterHidden:p,afterMousedownActive:q,afterWidth:F,before:E,beforeHeightOffset:m.Mz,beforeMousedownActive:$,beforeWidth:a.k1+(E?Q:0),headerOffset:C,hideAfterCompletely:!0,leftOffset:E?a.k1:null,mainContainerHeader:_,mainContainerRef:W,setAfterMousedownActive:Y,setAfterWidth:K,setBeforeMousedownActive:ee,setBeforeWidth:V,children:[L&&(0,f.jsx)(h,{children:L}),w]})})]}),Z&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===T||void 0===T?void 0:T(null)},children:(0,f.jsx)(s.Z,P(P({},Z),{},{onClose:function(){return null===T||void 0===T?void 0:T(null)}}))})]})}},59920:function(e,n,r){var t;r.d(n,{M:function(){return t}}),function(e){e.BACKFILLS="backfills",e.BLOCK_RUNS="block_runs",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={}))},60547:function(e,n,r){r.d(n,{Z:function(){return M}});var t=r(82394),i=r(21831),o=r(82684),l=r(34376),s=r(47999),u=r(1210),c=r(34744),d=r(49894),a=r(67971),f=r(87372),p=r(86673),h=r(82531),b=r(38626),g=r(23831),v=r(73942),O=r(49125),m=b.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],v.n_,3*O.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 ')})),j=r(3055),I=r(36405),S=r(96510),k=r(24141),P=r(28598);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 E(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}var M=function(e){var n=e.after,r=e.afterHidden,t=e.afterWidth,b=e.before,g=e.beforeWidth,v=e.breadcrumbs,y=e.buildSidekick,M=e.children,x=e.errors,w=e.headline,Z=e.pageName,N=e.pipeline,C=e.setErrors,_=e.subheader,R=e.subheaderBackground,T=e.subheaderBackgroundImage,L=e.subheaderButton,B=e.subheaderText,G=e.title,D=e.uuid,A=(0,k.i)().height,H=(0,l.useRouter)().query.pipeline,W=N.uuid,U=h.ZP.pipelines.detail(W,{includes_outputs:!1},{revalidateOnFocus:!1}).data,F=null===U||void 0===U?void 0:U.pipeline;(0,o.useEffect)((function(){(0,S.bB)(U,C)}),[U,C]);var K=(0,o.useMemo)((function(){return n||(y?y({height:A,heightOffset:j.Mz,pipeline:F}):null)}),[n,y,A,F]),z=t||(K?50*O.iI:null),q=(0,o.useMemo)((function(){var e=[];return F?(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),v?(e.push({label:function(){return F.uuid},linkProps:{as:"/pipelines/".concat(W,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,i.Z)(v)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return F.name}})):null!==U&&void 0!==U&&U.error&&e.push({bold:!0,danger:!0,label:function(){return"Error loading pipeline"}}),e}),[v,null===U||void 0===U?void 0:U.error,F,W]);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(u.Z,{after:K,afterHidden:r,afterWidth:z,before:b,beforeWidth:g,breadcrumbs:q,navigationItems:(0,I.H)(Z,F,H),subheaderChildren:"undefined"!==typeof _&&_,title:F?G?G(F):F.name:null,uuid:D,children:[(L||B)&&(0,P.jsx)(p.Z,{mb:O.Mq,mt:O.cd,mx:O.cd,children:(0,P.jsx)(m,{background:R,backgroundImage:T,children:(0,P.jsxs)(a.Z,{alignItems:"center",children:[L,B&&(0,P.jsx)(p.Z,{ml:3}),B]})})}),w&&(0,P.jsx)(p.Z,{p:O.cd,children:(0,P.jsxs)(p.Z,{mt:O.cd,px:O.cd,children:[(0,P.jsx)(f.Z,{level:5,children:w}),(0,P.jsx)(c.Z,{light:!0,mt:O.cd,short:!0})]})}),M]}),x&&(0,P.jsx)(s.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===C||void 0===C?void 0:C(null)},children:(0,P.jsx)(d.Z,E(E({},x),{},{onClose:function(){return null===C||void 0===C?void 0:C(null)}}))})]})}},36405:function(e,n,r){r.d(n,{H:function(){return s}});var t=r(98781),i=r(22341),o=r(59920),l=r(9736);function s(e,n,r){var s=(n||{}).uuid||r,u=[{Icon:i.Bf,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.Pf,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.dE,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"}},{Icon:i.UL,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.ug,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.INTEGRATION===(null===n||void 0===n?void 0:n.type)&&u.unshift({Icon:i.Nt,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"}}),(0,l.Ct)()||(u.unshift({Icon:i.EK,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.Zr,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}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6299],{43032:function(e,n,t){t.d(n,{Cl:function(){return u},Nk:function(){return c},ZG:function(){return l}});var o=t(38626),r=t(23831),i=t(49125),l=1.5*i.iI,u=1*l+i.iI/2,c=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(e){return"\n background-color: ".concat((e.theme.interactive||r.Z.interactive).hoverBackground,";\n ")}))},46299:function(e,n,t){t.d(n,{Z:function(){return ie}});var o=t(82394),r=t(75582),i=t(26304),l=t(82684),u=t(38626),c=t(83455),a=t(86422),s=t(62084),d=t(16634),f=t(73828),p=t(93461),v=t(19711),h=t(22341),m=t(43032),b=t(49125),g=t(60701),j=t(91427),y=t(44162),C=t(32821),k=t(24224),x=t(90211),w=t(28598);function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Z="default_repo";var F=function e(n){var t=n.allowEmptyFolders,o=n.allowSelectingFolders,r=n.containerRef,i=n.disableContextMenu,u=n.file,c=n.isFileDisabled,s=n.level,O=n.onClickFile,F=n.onClickFolder,P=n.onSelectBlockFile,E=n.onlyShowChildren,_=n.openFile,I=n.openPipeline,S=n.openSidekickView,R=n.pipelineBlockUuids,T=n.renderAfterContent,N=n.selectFile,M=n.setContextItem,L=n.setCoordinates,A=n.setDraggingFile,B=n.setSelectedFile,U=n.theme,z=n.timeout,q=n.uncollapsed,W=n.useRootFolder,Y=u.children,G=u.disabled,$=u.name,H=u.parent;$||t||(u.name=Z);var X,Q=W?(0,C.a9)(u):(0,C.jN)(u),V=(null===H||void 0===H?void 0:H.name)===f.oy,J=(0,l.useMemo)((function(){return Y?(0,k.YC)(Y,(function(e){return e.children?0:1})):Y}),[Y]),K=c?c(Q,J):G||"__init__.py"===$||!(null===$||void 0===$||!$.match(/^\./))||!$.match(f.d2)&&!Y,ee=c?c(Q,J):G||"__init__.py"===$||!(null===$||void 0===$||!$.match(/^\./))&&!J||!$.match(f.d2)&&!Y,ne="".concat(s,"/").concat($),te=(R.includes((0,C.dq)(u)),(0,l.useState)("undefined"===typeof q?(0,j.U2)(ne,!1):!q)),oe=te[0],re=te[1],ie=h.iU;1===s&&$===f.oy?ie=h.B_:$===f.PF?ie=h.er:J?ie=h.gt:!$&&t&&(ie=h.mH),J&&a.$W.includes((0,x.C5)($))&&(0,x.C5)($)!==a.tf.CHART&&(X=(0,y.qn)((0,x.C5)($),{theme:U}).accent);var le=(0,l.useMemo)((function(){return null===J||void 0===J?void 0:J.map((function(n){return(0,w.jsx)(e,{allowEmptyFolders:t,allowSelectingFolders:o,containerRef:r,disableContextMenu:i,file:D(D({},n),{},{parent:u}),isFileDisabled:c,level:E?s:s+1,onClickFile:O,onClickFolder:F,onSelectBlockFile:P,openFile:_,openPipeline:I,openSidekickView:S,pipelineBlockUuids:R,renderAfterContent:T,selectFile:N,setContextItem:M,setCoordinates:L,setDraggingFile:A,setSelectedFile:B,theme:U,timeout:z,uncollapsed:q,useRootFolder:W},"".concat(ne,"/").concat((null===n||void 0===n?void 0:n.name)||Z))}))}),[t,o,J,r,i,u,c,s,O,F,P,E,_,I,S,R,T,N,M,L,A,B,U,z,q,W,ne]),ue=(0,l.useMemo)((function(){var e=[];return(0,k.w6)(s).forEach((function(n,t){var o,r=m.Cl-1;e.push((0,w.jsx)("div",{style:{borderLeft:"1px solid ".concat(null===U||void 0===U||null===(o=U.content)||void 0===o?void 0:o.disabled),height:22,marginLeft:r/2-2,paddingLeft:r/2+2}},"line-".concat(ne,"-").concat(t)))})),e}),[s,U,ne]);return(0,w.jsxs)(w.Fragment,{children:[!E&&(0,w.jsxs)("div",{className:"row",onClick:function(e){if(e.preventDefault(),!ee){if((null===H||void 0===H?void 0:H.name)===f.PF){null===S||void 0===S||S(g.cH.CHARTS);var n=(0,C.lr)(u);n&&(null===P||void 0===P||P(n.uuid,n.type,(0,C.jN)(u)))}var t=(0,C.V3)(u);if(J)o?N(Q):re((function(e){return(0,j.t8)(ne,!e),!e})),null===F||void 0===F||F(Q);else if(O)O(Q);else if(t)null===P||void 0===P||P(t.uuid,t.type,(0,C.jN)(u));else if($.match(f.xF))null===_||void 0===_||_(Q);else{var r=(0,C.lr)(u);r&&(null===P||void 0===P||P(r.uuid,r.type,(0,C.jN)(u)))}}},onContextMenu:function(e){var n;clearTimeout(z.current),null!==r&&void 0!==r&&null!==(n=r.current)&&void 0!==n&&n.contains(e.target)&&!i&&(e.preventDefault(),L({x:e.pageX,y:e.pageY}),A(null),B(u))},onMouseDown:function(e){var n,t=u?(0,C.lr)(u):null;null===r||void 0===r||null===(n=r.current)||void 0===n||!n.contains(e.target)||!t||(null===J||void 0===J?void 0:J.length)>=1||i||ee||V||(e.preventDefault(),clearTimeout(z.current),z.current=setTimeout((function(){L({x:e.pageX,y:e.pageY}),A(u),B(null)}),300))},style:{alignItems:"center",cursor:"default",display:"flex",minWidth:s*m.Cl+u.name.length*b.Fo+2*b.iI,paddingRight:b.iI/4},children:[(0,w.jsxs)(p.Z,{alignItems:"center",flex:1,children:[ue,J&&!oe&&(0,w.jsx)(h._M,{muted:!0,size:m.ZG}),J&&oe&&(0,w.jsx)(h._Q,{muted:!0,size:m.ZG}),!J&&(0,w.jsx)("div",{style:{width:m.ZG}}),(0,w.jsxs)("div",{style:{marginLeft:b.iI/2,marginRight:b.iI/2},children:[!X&&(0,w.jsx)(ie,{disabled:K,size:m.ZG}),X&&(0,w.jsx)(d.Z,{color:X,size:m.ZG,square:!0})]}),(0,w.jsx)(v.ZP,{color:X,default:!X&&!ee,disabled:ee,monospace:!0,small:!0,children:$})]}),T&&T(u)]}),(0,w.jsx)("div",{style:{display:oe?"none":"block"},children:le})]})},P=t(60328),E=t(67971),_=t(11135),I=t(29237),S=t(86673),R=t(82944),T=t(82531),N=t(7715),M=t(96510);var L=function(e){var n=e.fetchFileTree,t=e.file,o=e.moveFile,i=e.onCancel,u=e.onCreateFile,a=e.selectedFolder,s=e.setErrors,d=(0,l.useRef)(null),f=(0,N.Qr)(t)?null:t,p=(0,l.useState)(f?(0,C.jN)(f,null,!0):""),v=p[0],h=p[1],m=(0,l.useState)(f?null===f||void 0===f?void 0:f.name:""),b=m[0],g=m[1];(0,l.useEffect)((function(){var e;null===d||void 0===d||null===(e=d.current)||void 0===e||e.focus()}),[]),(0,l.useEffect)((function(){a&&h((0,C.jN)(a))}),[a]);var j=(0,c.Db)(T.ZP.files.useCreate(),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(e){var t=e.file;null===n||void 0===n||n(),i(),null===u||void 0===u||u(t)},onErrorCallback:function(e,n){return s({errors:n,response:e})}})}}),y=(0,r.Z)(j,1)[0],k=(0,c.Db)(T.ZP.files.useUpdate(f&&encodeURIComponent((0,C.jN)(f))),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){null===n||void 0===n||n(),i()},onErrorCallback:function(e,n){return s({errors:n,response:e})}})}}),x=(0,r.Z)(k,1)[0];return(0,w.jsxs)(I.Z,{footer:(0,w.jsxs)(E.Z,{children:[(0,w.jsxs)(_.ZP,{bold:!0,disabled:!b,inline:!0,onClick:function(){return f?x({file:{dir_path:v,name:b},file_json_only:!0}):y({file:{dir_path:v,name:b,overwrite:!1},file_json_only:!0})},primary:!0,tabIndex:0,uuid:"NewFile/create_file",children:[f?o?"Move":"Rename":"Create"," file"]}),(0,w.jsx)(S.Z,{ml:1,children:(0,w.jsx)(P.Z,{onClick:function(){return i()},tabIndex:0,children:"Cancel"})})]}),headerTitle:f?o?"Move file":"Rename file":"New file",children:[(0,w.jsx)(R.Z,{disabled:!!f&&!o,label:"Directory",monospace:!0,onChange:function(e){return h(e.target.value)},setContentOnMount:!0,value:v}),(0,w.jsx)(S.Z,{mt:2,children:(0,w.jsx)(R.Z,{disabled:!!o,label:"Filename",monospace:!0,onChange:function(e){return g(e.target.value)},ref:d,required:!0,value:b})})]})};var A=function(e){var n=e.fetchFileTree,t=e.file,o=e.moveFile,i=e.onCancel,u=e.onCreateFile,a=e.selectedFolder,s=e.setErrors,d=(0,l.useRef)(null),f=(0,N.Qr)(t)?null:t,p=(0,l.useState)(f?(0,C.jN)(f,null,!0):""),v=p[0],h=p[1],m=(0,l.useState)(f?null===f||void 0===f?void 0:f.name:""),b=m[0],g=m[1];(0,l.useEffect)((function(){var e;null===d||void 0===d||null===(e=d.current)||void 0===e||e.focus()}),[]),(0,l.useEffect)((function(){a&&h((0,C.jN)(a,null,!0))}),[a]);var j=(0,c.Db)(T.ZP.folders.useCreate(),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(e){var t=e.file;null===n||void 0===n||n(),i(),null===u||void 0===u||u(t)},onErrorCallback:function(e,n){return s({errors:n,response:e})}})}}),y=(0,r.Z)(j,1)[0],k=(0,c.Db)(T.ZP.folders.useUpdate(f&&encodeURIComponent((0,C.jN)(f))),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){null===n||void 0===n||n(),i()},onErrorCallback:function(e,n){return s({errors:n,response:e})}})}}),x=(0,r.Z)(k,1)[0];return(0,w.jsxs)(I.Z,{footer:(0,w.jsxs)(E.Z,{children:[(0,w.jsxs)(_.ZP,{bold:!0,disabled:!b,inline:!0,onClick:function(){return f?x({folder:{name:b,path:v}}):y({folder:{name:b,overwrite:!1,path:v}})},primary:!0,tabIndex:0,uuid:"NewFolder/create_folder",children:[f?o?"Move":"Rename":"Create"," folder"]}),(0,w.jsx)(S.Z,{ml:1,children:(0,w.jsx)(P.Z,{onClick:function(){return i()},tabIndex:0,children:"Cancel"})})]}),headerTitle:f?o?"Move folder":"Rename folder":"New folder",children:[(0,w.jsx)(R.Z,{disabled:!!f&&!o,label:"Directory",monospace:!0,onChange:function(e){return h(e.target.value)},setContentOnMount:!0,value:v}),(0,w.jsx)(S.Z,{mt:2,children:(0,w.jsx)(R.Z,{disabled:!!o,label:"Folder name",monospace:!0,onChange:function(e){return g(e.target.value)},ref:d,required:!0,value:b})})]})},B=t(98781),U=t(62609),z=t(55106),q=t(66176),W=t(87815),Y=t(23831),G=t(73942),$=(b.iI,u.default.div.withConfig({displayName:"indexstyle__DropZoneStyle",componentId:"sc-1g3zz7z-0"})(["border-radius:","px;padding:","px;max-width:","px;min-width:","px;",""],G.n_,8*b.iI,100*b.iI,55*b.iI,(function(e){return"\n border: 1px dashed ".concat((e.theme.borders||Y.Z.borders).contrast,";\n ")}))),H=u.default.div.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1g3zz7z-1"})(["max-width:","px;min-width:","px;"],100*b.iI,55*b.iI);var X=function(e){var n=e.fetchFileTree,t=e.onCancel,o=e.selectedFolder,i=(0,l.useState)(!1),u=i[0],c=i[1],a=(0,l.useState)({}),s=a[0],d=a[1],f=(0,l.useState)({}),p=f[0],h=f[1],m=!(0,N.Qr)(s),b=(0,l.useMemo)((function(){var e=[];return(0,k.YC)(Object.entries(s),(function(e){var n=(0,r.Z)(e,2),t=n[0];n[1];return t})).forEach((function(n){var t=(0,r.Z)(n,2),o=t[0],i=t[1],l=p[o],u=null===l||void 0===l?void 0:l.message;e.push([(0,w.jsxs)("div",{children:[(0,w.jsx)(v.ZP,{overflowWrap:!0,preWrap:!0,children:o}),u&&(0,w.jsx)(S.Z,{mt:1,children:(0,w.jsx)(v.ZP,{danger:!0,small:!0,children:u})})]},"name-".concat(o)),(0,w.jsx)(q.Z,{danger:!!u,progress:100*i},"progress-".concat(o))])})),(0,w.jsx)(W.Z,{columnFlex:[1,4],columns:[{uuid:"Filename"},{uuid:"Upload progress"}],rows:e,uuid:"block-runs"})}),[s,p]);return(0,w.jsxs)(I.Z,{footer:(0,w.jsxs)(E.Z,{fullWidth:!0,children:[(0,w.jsx)(P.Z,{onClick:function(){return t()},children:"Close"}),m&&(0,w.jsx)(S.Z,{ml:1,children:(0,w.jsx)(P.Z,{onClick:function(){d({}),h({})},children:"Clear files and retry"})})]}),headerTitle:"Upload files",children:[m&&(0,w.jsx)(H,{children:b}),!m&&(0,w.jsx)(z.Z,{directoryPath:o?(0,C.jN)(o):"",onDragActiveChange:c,setFileUploadProgress:d,setUploadedFiles:function(e){h(e),null===n||void 0===n||n()},children:(0,w.jsx)($,{children:(0,w.jsxs)(v.ZP,{center:!0,children:[u&&"Drop to upload",!u&&"Click or drop files and folders to upload"]})})})]})},Q=t(86585),V=t(55512),J=t(99497),K=["addNewBlock","blocks","deleteWidget","fetchAutocompleteItems","fetchFileTree","fetchPipeline","files","onCreateFile","pipeline","setErrors","setSelectedBlock","widgets"];function ee(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function ne(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ee(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ee(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var te,oe=20*b.iI;function re(e,n){var t=e.addNewBlock,o=e.blocks,d=void 0===o?[]:o,p=e.deleteWidget,h=e.fetchAutocompleteItems,g=e.fetchFileTree,j=e.fetchPipeline,y=e.files,x=e.onCreateFile,O=e.pipeline,D=e.setErrors,Z=e.setSelectedBlock,P=e.widgets,E=void 0===P?[]:P,_=(0,i.Z)(e,K),I=(0,l.useRef)(null),S=(0,l.useContext)(u.ThemeContext),R=(0,l.useState)(null),N=R[0],z=R[1],q=(0,l.useState)(null),W=q[0],Y=q[1],G=(0,l.useState)(null),$=G[0],H=G[1],ee=T.ZP.statuses.list().data,te=(0,l.useMemo)((function(){var e,n;return null===ee||void 0===ee||null===(e=ee.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.repo_path}),[ee]),re=(0,c.Db)((function(e){return T.ZP.files.useDelete(e)()}),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){null===g||void 0===g||g()},onErrorCallback:function(e,n){return D({errors:n,response:e})}})}}),ie=(0,r.Z)(re,1)[0],le=(0,c.Db)((function(e){return T.ZP.folders.useDelete(e)()}),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){null===g||void 0===g||g()},onErrorCallback:function(e,n){return D({errors:n,response:e})}})}}),ue=(0,r.Z)(le,1)[0],ce=(0,J.dd)((function(e){var n=e.block;return(0,w.jsx)(U.Z,{centerOnScreen:!0,danger:!0,onCancel:de,onClick:function(){return pe({block:n,force:!0}).then((function(){return de()}))},subtitle:"Deleting this block file is dangerous. This block may have dependencies in active pipelines. Press confirm to delete this block anyway and remove it as a dependency from downstream blocks.",title:"Delete ".concat(n.uuid," anyway?"),width:34*b.iI})})),ae=(0,r.Z)(ce,2),se=ae[0],de=ae[1],fe=(0,c.Db)((function(e){var n=e.block,t=n.language,o=n.type,r=n.uuid,i=e.force,l=void 0!==i&&i,u="".concat(o,"/").concat(r);return t&&f.JD[t]&&(u="".concat(u,".").concat(f.JD[t].toLowerCase())),T.ZP.blocks.useDelete(encodeURIComponent(u),{force:l})()}),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){h(),j(),g()},onErrorCallback:function(e){var n=e.error,t=n.exception;n.message.includes("raise HasDownstreamDependencies")&&se({block:ye,exception:t})}})}}),pe=(0,r.Z)(fe,1)[0],ve=(0,k.sE)(null===O||void 0===O?void 0:O.blocks,(function(e){var n=e.type;return a.tf.DATA_EXPORTER===n})),he=(0,c.Db)(T.ZP.blocks.pipelines.useUpdate(null===O||void 0===O?void 0:O.uuid,null===ve||void 0===ve?void 0:ve.uuid),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){null===j||void 0===j||j()},onErrorCallback:function(e,n){return D({errors:n,response:e})}})}}),me=(0,r.Z)(he,1)[0],be=(0,l.useCallback)((function(){return H(null)}),[H]);(0,l.useEffect)((function(){var e,o,r,i=function(e){if(clearTimeout(I.current),Y(null),W&&O&&t){var o,r,i=(null===n||void 0===n||null===(o=n.current)||void 0===o||null===(r=o.getBoundingClientRect)||void 0===r?void 0:r.call(o))||{},l=i.width,u=i.x;if(e.pageX>u+l){var c=(null===O||void 0===O?void 0:O.type)===B.qL.INTEGRATION,a=(0,V.TU)(ne(ne({},W),{},{path:(0,C.jN)(W)}),te,O);null===t||void 0===t||t(a,(function(e){c&&ve&&me({block:ne(ne({},ve),{},{upstream_blocks:[e.uuid]})}),null===Z||void 0===Z||Z(e)}))}}},l=function(e){W&&z({x:e.pageX,y:e.pageY})};return null===(e=document)||void 0===e||e.addEventListener("click",be),null===(o=document)||void 0===o||o.addEventListener("mousemove",l),null===(r=document)||void 0===r||r.addEventListener("mouseup",i),function(){var e,n,t;null===(e=document)||void 0===e||e.removeEventListener("click",be),null===(n=document)||void 0===n||n.removeEventListener("mousemove",l),null===(t=document)||void 0===t||t.removeEventListener("mouseup",i)}}),[t,ve,W,be,O,n,te,Z,I,me]);var ge=(0,l.useMemo)((function(){return d.concat(E).map((function(e){return e.uuid}))}),[d,E]),je=(0,l.useMemo)((function(){return null===y||void 0===y?void 0:y.map((function(e){return(0,l.createElement)(F,ne(ne({},_),{},{containerRef:n,file:e,key:e.name,level:0,pipelineBlockUuids:ge,setCoordinates:z,setDraggingFile:Y,setSelectedFile:H,theme:S,timeout:I}))}))}),[y,ge,_,n,S,I]),ye=(0,l.useMemo)((function(){return $&&(0,C.lr)($)}),[$]),Ce=(0,l.useMemo)((function(){return W&&(0,C.lr)(W)}),[W]),ke=(0,l.useMemo)((function(){return $&&"undefined"!==typeof(null===$||void 0===$?void 0:$.children)&&$}),[$]),xe=(0,J.dd)((function(){return(0,w.jsx)(X,{fetchFileTree:g,onCancel:De,selectedFolder:ke})}),{},[g,ke],{background:!0,uuid:"upload_files"}),we=(0,r.Z)(xe,2),Oe=we[0],De=we[1],Ze=(0,J.dd)((function(e){return(0,w.jsx)(L,{fetchFileTree:g,file:null===e||void 0===e?void 0:e.file,moveFile:null===e||void 0===e?void 0:e.moveFile,onCancel:Ee,onCreateFile:x,selectedFolder:ke,setErrors:D})}),{},[g,x,ke,D],{background:!0,disableClickOutside:!0,uuid:"new_file"}),Fe=(0,r.Z)(Ze,2),Pe=Fe[0],Ee=Fe[1],_e=(0,J.dd)((function(e){return(0,w.jsx)(A,{fetchFileTree:g,file:null===e||void 0===e?void 0:e.file,moveFile:null===e||void 0===e?void 0:e.moveFile,onCancel:Re,selectedFolder:ke,setErrors:D})}),{},[g,ke,D],{background:!0,disableClickOutside:!0,uuid:"new_folder"}),Ie=(0,r.Z)(_e,2),Se=Ie[0],Re=Ie[1],Te=(0,l.useMemo)((function(){var e;if(!ye&&!$&&!ke)return(0,w.jsx)("div",{});var t=(null===n||void 0===n||null===(e=n.current)||void 0===e?void 0:e.getBoundingClientRect())||{},o=t.x,r=t.width,i=N||{},l=i.x,u=void 0===l?0:l,c=i.y,d=void 0===c?0:c,f=u;u+oe>=o+r&&(f=o+r-(oe+b.iI)),f<0&&(f=0);var v=[];return ke?v.push.apply(v,[{label:function(){return"New folder"},onClick:function(){Se()},uuid:"new_folder"},{label:function(){return"Rename folder"},onClick:function(){Se({file:ke})},uuid:"rename_folder"},{label:function(){return"Move folder"},onClick:function(){Se({file:ke,moveFile:!0})},uuid:"Move_folder"},{label:function(){return"Delete folder"},onClick:function(){var e=(0,C.jN)(ke);window.confirm("Are you sure you want to delete folder ".concat(e," and all its subfolders and files?"))&&ue(encodeURIComponent(e))},uuid:"Delete_folder"},{label:function(){return"New file"},onClick:function(){Pe({file:{}})},uuid:"new_file"},{label:function(){return"Upload files"},onClick:function(){Oe()},uuid:"upload_files"}]):$&&(v.push.apply(v,[{label:function(){return"Rename file"},onClick:function(){Pe({file:$})},uuid:"rename_file"},{label:function(){return"Move file"},onClick:function(){Pe({file:$,moveFile:!0})},uuid:"move_file"}]),ye?v.push({label:function(){return"Delete block file"},onClick:function(){ye.type===a.tf.CHART?window.confirm("Are you sure you want to delete widget ".concat(ye.uuid,"?"))&&p(ye):window.confirm("Are you sure you want to delete block ".concat(ye.uuid,"?"))&&pe({block:ye})},uuid:"delete_block_file"}):v.push({label:function(){return"Delete file"},onClick:function(){var e=(0,C.jN)($);window.confirm("Are you sure you want to delete file ".concat(e,"?"))&&ie(encodeURIComponent(e))},uuid:"delete_file"})),(0,w.jsx)("div",{style:{left:f,position:"fixed",top:d+b.iI/2,zIndex:Q.bf+100},children:(0,w.jsx)(s.Z,{items:v,open:!0,parentRef:void 0,uuid:"FileBrowser/ContextMenu",width:oe})})}),[N,pe,ie,ue,p,n,Oe,Pe,Se,ye,$,ke]);return(0,w.jsxs)(m.Nk,{ref:n,children:[je,(ye||$||ke)&&Te,Ce&&(0,w.jsx)("div",{style:{left:(null===N||void 0===N?void 0:N.x)-b.iI,position:"fixed",top:(null===N||void 0===N?void 0:N.y)-b.iI,zIndex:Q.bf+100},children:(0,w.jsx)(v.ZP,{cursor:"grabbing",monospace:!0,children:null===Ce||void 0===Ce?void 0:Ce.uuid})})]})}!function(e){e.BLOCK_FILE="block_file",e.DISABLED="disabled",e.FILE="file",e.FOLDER="folder",e.PIPELINE="pipeline"}(te||(te={}));var ie=l.forwardRef(re)},32821:function(e,n,t){t.d(n,{IO:function(){return p},V3:function(){return d},a9:function(){return u},dq:function(){return f},jN:function(){return a},lr:function(){return s}});var o=t(17717),r=t(86422),i=t(73828),l=t(90211);function u(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n||(t?null:null===e||void 0===e?void 0:e.name);if(null!==e&&void 0!==e&&e.parent){var i=[e.parent.name];return(null===r||void 0===r?void 0:r.length)>=1&&i.push(r),u(e.parent,i.join(o.sep))}return r}function c(e){return null===e||void 0===e?void 0:e.split(o.sep).slice(1).join(o.sep)}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=u(e,n,t);return c(o)}function s(e){var n,t,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=u(e,c).split(o.sep);if(!a)return null;if(1===a.length)(a=null===e||void 0===e||null===(t=e.path)||void 0===t?void 0:t.split(o.sep))&&(n=a[0]===r.tf.CUSTOM?a[0]:(0,l.C5)(a[0]||""));else if(a[1]===r.tf.CUSTOM)n=a[1];else{var s=a[1];n=r.tf.DBT===s?s:(0,l.C5)(s||"")}if(!a||r.tf.DBT===n)return null;var d="";d=a.length>=3?a.slice(2,a.length).join(o.sep):a[a.length-1];var f=["\\.".concat(i.Lu.PY),"\\.".concat(i.Lu.R),"\\.".concat(i.Lu.SQL),"\\.".concat(i.Lu.YAML),"\\.".concat(i.Lu.YML)].join("|"),p=new RegExp("".concat(f,"$"));if(r.$W.concat(r.tf.DBT).includes(n)&&d.match(p)){var v=d.lastIndexOf("."),h=d.slice(v+1);return{language:i.nB[h],type:n,uuid:d.slice(0,v)}}}function d(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=u(e,n).split(o.sep);if(t[1]){var c=(0,l.C5)(t[n?0:1]);t[1]===r.tf.DBT&&(c=r.tf.DBT);var a=t[t.length-1],s=new RegExp(".".concat(i.Lu.YAML,"$")),d=new RegExp(".".concat(i.Lu.R,"$")),f=new RegExp(".".concat(i.Lu.SQL,"$")),p=new RegExp(".".concat(i.Lu.MD,"$"));if(a.match(s)&&r.VZ.includes(c))return{type:c,uuid:a.replace(s,"")};if(a.match(d)&&r.J8.includes(c))return{type:c,uuid:a.replace(d,"")};if(a.match(f)&&r.HX.includes(c)){var v=a.replace(/[.]/g,"_"),h=c===r.tf.DBT?t.slice(2,-1).join("_").concat("_".concat(v)):a.replace(f,"");return{type:c,uuid:h}}return a.match(p)&&c===r.tf.MARKDOWN?{type:c,uuid:a.replace(p,"")}:void 0}}function f(e){var n=e.name.split("."),t=n[n.length-1];return i.n6.includes(t)&&n.pop(),n.join("")}function p(e,n){var t=e.split("."),r=t[t.length-1];i.n6.includes(r)&&t.pop();var l=t.join("").split(o.sep),u=l.slice(1,l.length).join("");return n.find((function(e){return e.uuid===u}))}},55512:function(e,n,t){t.d(n,{TU:function(){return f},ck:function(){return s},lU:function(){return d}});var o=t(21831),r=t(17717),i=t(86422),l=t(98781),u=t(73828),c=t(24224),a=t(90211),s=function(e){var n=e[0];return n===i.tf.DBT||n===i.tf.CUSTOM?n:e[0].slice(0,-1)};function d(){return new RegExp(Object.keys(u.nB).map((function(e){return".(".concat(e,")$")})).join("|"))}function f(e,n,t){var f,p,v=null===e||void 0===e||null===(f=e.path.match(d())[0])||void 0===f?void 0:f.split(".")[1],h=t.type===l.qL.INTEGRATION,m=(0,c.sE)(null===t||void 0===t?void 0:t.blocks,(function(e){var n=e.type;return i.tf.DATA_EXPORTER===n})),b=e.path.replace(n,"").split(r.sep),g=e.path.split(r.sep)[0]===i.tf.DBT,j=(p=b)[0]===i.tf.DBT?p.slice(1).join(r.sep):function(e){return e.at(-1)}(p).split(".")[0];if(b.length>=3&&!g){var y=b.slice(1,b.length-1).join(r.sep);j="".concat(y,"/").concat(j)}var C=s(e.path.split(r.sep)),k={configuration:{file_path:g?j:null},language:u.nB[v],name:(0,a.wE)(j),type:C};if(C===i.tf.CUSTOM&&(k.color=i.Lq.TEAL),h){var x=(0,c.sE)(t.blocks,(function(e){var n=e.type;return i.tf.DATA_LOADER===n})),w=(0,c.sE)(t.blocks,(function(e){var n=e.type;return i.tf.TRANSFORMER===n})),O=[];w?O.push(w.uuid):null!==m&&void 0!==m&&m.upstream_blocks?O.push.apply(O,(0,o.Z)(m.upstream_blocks)):x&&O.push(x.uuid),k.upstream_blocks=O}return k}},55106:function(e,n,t){t.d(n,{Z:function(){return g}});var o=t(82394),r=t(75582),i=t(17717),l=t(82684),u=t(83455),c=t(38626),a=t(77011),s=t(28598);function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function f(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,o.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 p=c.default.div.withConfig({displayName:"MultiFileInput__DropzoneStyle",componentId:"sc-1l6yd2y-0"})(["&:hover{cursor:pointer;}"]);var v=function(e){var n=e.children,t=e.inputOnChange,o=e.inputProps,r=e.onDragActiveChange,i=e.setFiles,u=(0,l.useCallback)((function(e){i(e)}),[i]),c=(0,a.uI)({onDrop:u}),d=c.getInputProps,v=c.getRootProps,h=c.isDragActive,m=d(),b=m.accept,g=m.autoComplete,j=m.multiple,y=m.onChange,C=m.onClick,k=m.ref,x=m.style,w=m.tabIndex,O=m.type,D=f(f({},o),{},{accept:b,autoComplete:g,multiple:j,onChange:function(e){null===t||void 0===t||t(e),null===o||void 0===o||o.onChange(e),y(e)},onClick:C,ref:k,style:x,tabIndex:w,type:O});return(0,l.useEffect)((function(){null===r||void 0===r||r(h)}),[h,r]),(0,s.jsxs)(p,f(f({},v()),{},{children:[(0,s.jsx)("input",f(f({},D),{},{directory:"",webkitdirectory:""})),n]}))},h=t(82531);function m(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?m(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=function(e){var n=e.children,t=e.directoryPath,c=e.onDragActiveChange,a=e.setFileUploadProgress,d=e.setUploadedFiles,f=(0,u.Db)(h.ZP.files.useCreate({onUploadProgress:function(e,n){var t,r=n.body,l=[null===r||void 0===r?void 0:r.dir_path,null===r||void 0===r||null===(t=r.file)||void 0===t?void 0:t.name].filter((function(e){return(null===e||void 0===e?void 0:e.length)>=1})).join(i.sep);null===a||void 0===a||a((function(n){return b(b({},n),{},(0,o.Z)({},l,e.loaded/e.total))}))}})),p=(0,r.Z)(f,1)[0],m=(0,l.useCallback)((function(e){e.forEach((function(e){var n=e.name,r=e.path,l=[t],u=r.split(i.sep).filter((function(e){return e&&e!==n})).join(i.sep);u&&l.push(u);var c=[],s=l.join(i.sep);(null===s||void 0===s?void 0:s.length)>=1&&l.push(s),c.push(n);var f=c.join(i.sep);p({dir_path:s,file:e,overwrite:!1}).then((function(e){var n=e.data,t=n.error,r=n.file;d((function(e){return b(b({},e),{},(0,o.Z)({},f,r||t))}))})),a((function(e){return b(b({},e),{},(0,o.Z)({},f,0))}))}))}),[p,t,a,d]);return(0,s.jsx)(v,{onDragActiveChange:c,setFiles:m,children:n})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7496],{65597:function(e,n,i){i.d(n,{f:function(){return l}});var t=i(38626),r=i(23831),u=i(49125),o=i(73942),l=t.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*u.iI,o.TR,2*u.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||r.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||r.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},97496:function(e,n,i){var t=i(82394),r=i(75582),u=i(12691),o=i.n(u),l=i(34376),c=i.n(l),s=i(82684),d=i(83455),a=i(60328),p=i(38341),f=i(47999),h=i(93461),_=i(67971),b=i(10919),x=i(47409),v=i(86673),j=i(54283),g=i(87815),O=i(19711),C=i(82531),E=i(23831),I=i(73942),Z=i(22341),m=i(65597),y=i(93348),w=i(45838),P=i(49125),N=i(19395),D=i(24224),k=i(9736),L=i(96510),T=i(28598);function A(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function R(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?A(Object(i),!0).forEach((function(n){(0,t.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):A(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}function S(e){var n=e.cancelingRunId,i=e.disabled,t=e.isLoadingCancelPipeline,u=e.onCancel,o=e.onSuccess,l=e.pipelineRun,c=e.setCancelingRunId,p=e.setErrors,h=e.setShowConfirmationId,b=e.showConfirmationId,g=(0,k.Ct)(),w=l||{},N=w.id,D=w.pipeline_schedule_id,A=w.pipeline_schedule_token,R=w.pipeline_schedule_type,S=w.status,V=t&&N===n&&x.VO.RUNNING===S,U=(0,d.Db)(y.Xm.API===R&&A?C.ZP.pipeline_runs.pipeline_schedules.useCreateWithParent(D,A):C.ZP.pipeline_runs.pipeline_schedules.useCreate(D),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){o()},onErrorCallback:function(e,n){return null===p||void 0===p?void 0:p({errors:n,response:e})}})}}),F=(0,r.Z)(U,1)[0],M=(0,s.useCallback)((function(){h(null),F({pipeline_run:{backfill_id:null===l||void 0===l?void 0:l.backfill_id,event_variables:(null===l||void 0===l?void 0:l.event_variables)||{},execution_date:null===l||void 0===l?void 0:l.execution_date,pipeline_schedule_id:null===l||void 0===l?void 0:l.pipeline_schedule_id,pipeline_uuid:null===l||void 0===l?void 0:l.pipeline_uuid,variables:(null===l||void 0===l?void 0:l.variables)||{}}})}),[F,l,h]),H=(0,s.useCallback)((function(){h(null),c(N),u({id:N,status:x.VO.CANCELLED})}),[u,N,c,h]);return(0,T.jsxs)("div",{style:{position:"relative"},children:[(0,T.jsx)(a.Z,{backgroundColor:V&&E.Z.accent.yellow,beforeIcon:x.VO.INITIAL!==S&&!i&&(0,T.jsxs)(T.Fragment,{children:[x.VO.COMPLETED===S&&(0,T.jsx)(Z.Jr,{size:2*P.iI}),[x.VO.FAILED,x.VO.CANCELLED].includes(S)&&(0,T.jsx)(Z.Py,{inverted:x.VO.CANCELLED===S&&!g,size:2*P.iI}),[x.VO.RUNNING].includes(S)&&(0,T.jsx)(j.Z,{color:V?E.Z.status.negative:E.Z.monotone.white,small:!0})]}),borderRadius:I.D7,danger:x.VO.FAILED===S&&!g,default:x.VO.INITIAL===S,disabled:i||g,loading:!l,onClick:function(){return h(N)},padding:"6px",primary:x.VO.RUNNING===S&&!V&&!g,warning:x.VO.CANCELLED===S&&!g,children:i?"Ready":V?"Canceling":x.Do[S]}),(0,T.jsx)(f.Z,{onClickOutside:function(){return h(null)},open:b===N,children:(0,T.jsxs)(m.f,{children:[[x.VO.RUNNING,x.VO.INITIAL].includes(S)&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(O.ZP,{bold:!0,color:"#9ECBFF",children:"Run is in progress"}),(0,T.jsx)(v.Z,{mb:1}),(0,T.jsxs)(O.ZP,{children:["This pipeline run is currently ongoing. Retrying will cancel",(0,T.jsx)("br",{}),"the current pipeline run."]}),(0,T.jsx)(O.ZP,{}),(0,T.jsx)(v.Z,{mt:1,children:(0,T.jsxs)(_.Z,{children:[(0,T.jsx)(a.Z,{onClick:function(){H(),M()},children:"Retry run"}),(0,T.jsx)(v.Z,{ml:1}),(0,T.jsx)(a.Z,{onClick:H,children:"Cancel run"})]})})]}),[x.VO.CANCELLED,x.VO.FAILED,x.VO.COMPLETED].includes(S)&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(O.ZP,{bold:!0,color:"#9ECBFF",children:["Run ",S]}),(0,T.jsx)(v.Z,{mb:1}),(0,T.jsx)(O.ZP,{children:"Retry the run with changes you have made to the pipeline."}),(0,T.jsx)(v.Z,{mb:1}),(0,T.jsx)(a.Z,{onClick:M,children:"Retry run"})]})]})})]})}n.Z=function(e){var n=e.allowBulkSelect,i=e.disableRowSelect,u=e.emptyMessage,l=void 0===u?"No runs available":u,f=e.fetchPipelineRuns,j=e.hideTriggerColumn,E=e.onClickRow,m=e.pipelineRuns,y=e.selectedRun,k=e.selectedRuns,A=e.setSelectedRuns,V=e.setErrors,U=(0,s.useState)(null),F=U[0],M=U[1],H=(0,s.useState)(null),B=H[0],Y=H[1],z=(0,d.Db)((function(e){var n=e.id,i=e.status;return C.ZP.pipeline_runs.useUpdate(n)({pipeline_run:{status:i}})}),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){M(null),null===f||void 0===f||f()},onErrorCallback:function(e,n){M(null),null===V||void 0===V||V({errors:n,response:e})}})}}),G=(0,r.Z)(z,2),J=G[0],K=G[1].isLoading,q=[null,1,2],W=[{uuid:"Status"},{uuid:"Pipeline UUID"},{uuid:"Date"}];j||(q.push(1),W.push({uuid:"Trigger"})),q.push.apply(q,[1,null,null]),W.push.apply(W,[{uuid:"Block runs"},{uuid:"Completed"},{uuid:"Logs"}]);var X=(0,s.useMemo)((function(){return m.every((function(e){var n=e.id;return!(null===k||void 0===k||!k[n])}))}),[m,k]);return n&&(q.unshift(null),W.unshift({label:function(){return(0,T.jsx)(p.Z,{checked:X,onClick:function(){var e=(0,D.HK)(m||[],(function(e){return e.id}));A(X?{}:e)}})},uuid:"Selected"})),!i&&E&&(q.push(null),W.push({label:function(){return""},uuid:"action"})),(0,T.jsx)(w.cl,{minHeight:30*P.iI,overflowVisible:!!B,children:0===(null===m||void 0===m?void 0:m.length)?(0,T.jsx)(v.Z,{px:3,py:1,children:(0,T.jsx)(O.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:l})}):(0,T.jsx)(g.Z,{columnFlex:q,columns:W,isSelectedRow:function(e){return!i&&m[e].id===(null===y||void 0===y?void 0:y.id)},onClickRow:i?null:E,rowVerticalPadding:6,rows:null===m||void 0===m?void 0:m.map((function(e,r){var u,l,s=e.block_runs_count,d=e.completed_at,g=e.execution_date,C=e.id,y=e.pipeline_schedule_id,w=e.pipeline_schedule_name,D=e.pipeline_uuid,L=e.status,U=!C&&!L,H=[];r>0&&m[r-1].execution_date===e.execution_date&&m[r-1].pipeline_schedule_id===e.pipeline_schedule_id?(H=[(0,T.jsx)(v.Z,{ml:1,children:(0,T.jsxs)(_.Z,{alignItems:"center",children:[(0,T.jsx)(Z.TT,{size:2*P.iI,useStroke:!0}),(0,T.jsx)(a.Z,{borderRadius:I.D7,notClickable:!0,padding:"6px",children:(0,T.jsx)(O.ZP,{muted:!0,children:x.Do[L]})})]})},"row_status"),(0,T.jsx)(O.ZP,{default:!0,monospace:!0,muted:!0,children:D},"row_pipeline_uuid"),(0,T.jsx)(O.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_date_retry")],j||H.push((0,T.jsx)(O.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_trigger_retry")),(u=H).push.apply(u,[(0,T.jsx)(o(),{as:"/pipelines/".concat(D,"/runs/").concat(C),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,T.jsx)(b.Z,{bold:!0,muted:!0,children:"See block runs (".concat(s,")")})},"row_block_runs"),(0,T.jsx)(O.ZP,{monospace:!0,muted:!0,children:d&&(0,N.Vx)(d)||"-"},"row_completed"),(0,T.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(D,"/logs?pipeline_run_id[]=").concat(C))},children:(0,T.jsx)(Z.B4,{default:!0,size:2*P.iI})},"row_logs")])):(H=[(0,T.jsx)(S,{cancelingRunId:F,disabled:U,isLoadingCancelPipeline:K,onCancel:J,onSuccess:f,pipelineRun:e,setCancelingRunId:M,setErrors:V,setShowConfirmationId:Y,showConfirmationId:B},"row_retry_button"),(0,T.jsx)(O.ZP,{default:!0,monospace:!0,children:D},"row_pipeline_uuid"),(0,T.jsx)(O.ZP,{default:!0,monospace:!0,children:g&&(0,N.Vx)(g)||"-"},"row_date")],j||H.push((0,T.jsx)(o(),{as:"/pipelines/".concat(D,"/triggers/").concat(y),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,T.jsx)(b.Z,{bold:!0,sameColorAsText:!0,children:w})},"row_trigger")),(l=H).push.apply(l,[(0,T.jsx)(o(),{as:"/pipelines/".concat(D,"/runs/").concat(C),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,T.jsx)(b.Z,{bold:!0,disabled:U,sameColorAsText:!0,children:U?"":"See block runs (".concat(s,")")})},"row_block_runs"),(0,T.jsx)(O.ZP,{default:!0,monospace:!0,children:d&&(0,N.Vx)(d)||"-"},"row_completed"),(0,T.jsx)(a.Z,{default:!0,disabled:U,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(D,"/logs?pipeline_run_id[]=").concat(C))},children:(0,T.jsx)(Z.B4,{default:!0,size:2*P.iI})},"row_item_13")]));if(n){var z=!(null===k||void 0===k||!k[C]);H.unshift((0,T.jsx)(p.Z,{checked:z,onClick:function(){A((function(n){return R(R({},n),{},(0,t.Z)({},C,z?null:e))}))}},"selected-pipeline-run-".concat(C)))}return!i&&E&&H.push((0,T.jsx)(h.Z,{flex:1,justifyContent:"flex-end",children:(0,T.jsx)(Z._Q,{default:!0,size:2*P.iI})})),H})),uuid:"pipeline-runs"})})}},19395:function(e,n,i){i.d(n,{IJ:function(){return d},Vx:function(){return p},eI:function(){return a},gU:function(){return h},tL:function(){return f},vJ:function(){return _}});var t,r,u=i(82394),o=i(92083),l=i.n(o);function c(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function s(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?c(Object(i),!0).forEach((function(n){(0,u.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}function d(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var i=n.block_uuid,t=n.completed_at,r=n.started_at,o=n.status,c=null;r&&t&&(c=l()(t).valueOf()-l()(r).valueOf());return s(s({},e),{},(0,u.Z)({},i,{runtime:c,status:o}))}),{})}function a(e){if(!e)return null;var n=new Date(l()(e).valueOf()),i=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());return new Date(i)}function p(e){return"string"!==typeof e?e:a(e.split("+")[0]).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(r||(r={}));var f=(t={},(0,u.Z)(t,r.DAY,86400),(0,u.Z)(t,r.HOUR,3600),(0,u.Z)(t,r.MINUTE,60),(0,u.Z)(t,r.SECOND,1),t);function h(e){var n=r.SECOND,i=e;return e%86400===0?(i/=86400,n=r.DAY):e%3600===0?(i/=3600,n=r.HOUR):e%60===0&&(i/=60,n=r.MINUTE),{time:i,unit:n}}function _(e,n){return e*f[n]}},47409:function(e,n,i){i.d(n,{Az:function(){return c},BF:function(){return l},Do:function(){return d},IK:function(){return o},VO:function(){return u},sZ:function(){return s}});var t,r=i(82394),u=i(66050).V,o=[u.FAILED,u.COMPLETED,u.RUNNING,u.CANCELLED,u.INITIAL],l=[u.INITIAL,u.RUNNING],c=[u.CANCELLED,u.COMPLETED,u.FAILED],s="__mage_variables",d=(t={},(0,r.Z)(t,u.CANCELLED,"Cancelled"),(0,r.Z)(t,u.COMPLETED,"Done"),(0,r.Z)(t,u.FAILED,"Failed"),(0,r.Z)(t,u.INITIAL,"Ready"),(0,r.Z)(t,u.RUNNING,"Running"),t)},93348:function(e,n,i){i.d(n,{TR:function(){return a},U5:function(){return c},Xm:function(){return u},Z4:function(){return d},fq:function(){return l},kJ:function(){return s}});var t,r,u,o=i(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(u||(u={}));var l,c,s,d=(t={},(0,o.Z)(t,u.API,(function(){return"API"})),(0,o.Z)(t,u.EVENT,(function(){return"event"})),(0,o.Z)(t,u.TIME,(function(){return"schedule"})),t);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(l||(l={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(c||(c={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(s||(s={}));var a=(r={},(0,o.Z)(r,s.CREATED_AT,"Created at"),(0,o.Z)(r,s.NAME,"Name"),(0,o.Z)(r,s.PIPELINE,"Pipeline"),(0,o.Z)(r,s.STATUS,"Status"),(0,o.Z)(r,s.TYPE,"Type"),r)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7722],{7432:function(n,e,o){var t={"./Active4D.json":[266,266],"./All Hallows Eve.json":[4450,4450],"./Amy.json":[88849,8849],"./Birds of Paradise.json":[78097,8097],"./Blackboard.json":[88018,6115],"./Brilliance Black.json":[73835,3835],"./Brilliance Dull.json":[6507,6507],"./Chrome DevTools.json":[22508,2508],"./Clouds Midnight.json":[49566,9566],"./Clouds.json":[57951,7951],"./Cobalt.json":[80826,826],"./Cobalt2.json":[98256,8256],"./Dawn.json":[76958,6958],"./Dominion Day.json":[89307,9307],"./Dracula.json":[33453,3453],"./Dreamweaver.json":[19363,9363],"./Eiffel.json":[82481,2481],"./Espresso Libre.json":[44776,4776],"./GitHub Dark.json":[792,792],"./GitHub Light.json":[61450,1450],"./GitHub.json":[10739,739],"./IDLE.json":[67947,7947],"./Katzenmilch.json":[81240,1240],"./Kuroir Theme.json":[4388,4388],"./LAZY.json":[25164,5164],"./MagicWB (Amiga).json":[76443,6443],"./Merbivore Soft.json":[99361,9361],"./Merbivore.json":[86042,6042],"./Monokai Bright.json":[14883,4883],"./Monokai.json":[34454,4454],"./Night Owl.json":[60261,261],"./Nord.json":[59785,9785],"./Oceanic Next.json":[58920,8920],"./Pastels on Dark.json":[38901,8901],"./Slush and Poppies.json":[26434,6434],"./Solarized-dark.json":[36116,6116],"./Solarized-light.json":[5008,5008],"./SpaceCadet.json":[20440,440],"./Sunburst.json":[68018,8018],"./Textmate (Mac Classic).json":[15824,5824],"./Tomorrow-Night-Blue.json":[81150,1150],"./Tomorrow-Night-Bright.json":[8762,8762],"./Tomorrow-Night-Eighties.json":[82545,2545],"./Tomorrow-Night.json":[99855,9855],"./Tomorrow.json":[34092,4092],"./Twilight.json":[93898,3898],"./Upstream Sunburst.json":[98807,8807],"./Vibrant Ink.json":[89927,9927],"./Xcode_default.json":[64042,4042],"./Zenburnesque.json":[33467,3467],"./iPlastic.json":[88277,8277],"./idleFingers.json":[5104,5104],"./krTheme.json":[9633,9633],"./monoindustrial.json":[15729,5729],"./themelist.json":[79437,9437]};function i(n){if(!o.o(t,n))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+n+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=t[n],i=e[0];return o.e(e[1]).then((function(){return o.t(i,19)}))}i.keys=function(){return Object.keys(t)},i.id=7432,n.exports=i},5677:function(n,e,o){"use strict";o.d(e,{M4:function(){return d},S0:function(){return s},S_:function(){return c},Yn:function(){return f},rW:function(){return l}});var t=o(82394),i=o(21831),r=o(75582);function a(n,e){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.push.apply(o,t)}return o}function u(n){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?a(Object(o),!0).forEach((function(e){(0,t.Z)(n,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}function c(n,e){return Object.entries(e).map((function(e){var o=(0,r.Z)(e,2),t=o[0],i=o[1];return n.languages.registerCompletionItemProvider(t,{provideCompletionItems:i(n)})}))}function s(n){var e=function(n){var e="[\\w.]+",o=["import ".concat(e," as ").concat(e),"import ".concat(e),"from ".concat(e," import ").concat(e," as ").concat(e),"from ".concat(e," import ").concat(e)],t=new RegExp("(".concat(o.join("|"),")"),"g");return(0,i.Z)(n.matchAll(t)).map((function(n){return n[1]}))}(n),o="[\\w.]+",r=["from ".concat(o," import ").concat(o," as (").concat(o,")"),"from ".concat(o," import (").concat(o,")"),"import ".concat(o," as (").concat(o,")"),"import (".concat(o,")")],a=new RegExp("(".concat(r.join("|"),")"));return e.reduce((function(n,e){var o=e.match(a);if(!o)return n;var r=(0,i.Z)(o),c=r[2],s=r[3],l=r[4],d=r[5],f=c||s||l||d;return u(u({},n),{},(0,t.Z)({},f,e))}),{})}function l(n,e){var o=n;e&&(o=o.split(" as ".concat(e))[0]);var t="[\\w.]+",a=["from ".concat(t," import (").concat(t,")"),"import (".concat(t,")")],u=new RegExp("(".concat(a.join("|"),")"),"g"),c=(0,i.Z)(o.matchAll(u))[0];if(c){var s=(0,r.Z)(c,4),l=s[2],d=s[3];return l||d}}function d(n,e){return function(n,e){return n.split("\n")[e.startLineNumber-1]}(n,e).slice(0,e.startColumn-1)}function f(n){var e=new RegExp("([\\w_]+)[ ]*=[ ]*([\\w_]+)","g");return(0,i.Z)(n.matchAll(e)).map((function(n){return{assignmentValue:n[2],variableName:n[1]}}))}},32365:function(n,e,o){"use strict";o.d(e,{Ep:function(){return u},KT:function(){return l},Nk:function(){return s},aU:function(){return c}});var t=o(38626),i=o(23831),r=o(2005),a=o(49125),u=2,c=21,s=t.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-w2hta3-0"})(["font-family:",";"," ",""],r.ry,(function(n){return n.padding&&"\n padding-top: ".concat(2*a.iI,"px;\n background-color: ").concat((n.theme.background||i.Z.background).codeTextarea,";\n ")}),(function(n){return n.hideDuplicateMenuItems&&'\n /*\n * The (n + 10) assumes a specific number of items in the block editor context\n * menu. This includes "Run selected block", "Change All Occurrences", "Cut",\n * "Copy", "Paste", "Command Palette", and 3 dividers. The 10th item from the\n * bottom and higher are hidden to avoid duplicate shortcut items in the\n * context menu.\n */\n .monaco-menu li.action-item:nth-last-child(n + 10) {\n display: none;\n }\n '})),l=t.default.div.withConfig({displayName:"indexstyle__PlaceholderStyle",componentId:"sc-w2hta3-1"})(["padding-left:67px;position:absolute;z-index:1;"])},57722:function(n,e,o){"use strict";o.d(e,{Z:function(){return j}});var t=o(82684),i=o(85202),r=o(38789),a=o(86422),u=o(19711),c=o(66166),s="twilight",l=o(2005),d=o(31012),f=o(32365),m=o(5677);function h(n,e,o){o.forEach((function(n){e.addAction(n)}))}var g=o(75582),p={"all-hallows-eve":"All Hallows Eve","birds-of-paradise":"Birds of Paradise","brilliance-black":"Brilliance Black","brilliance-dull":"Brilliance Dull","chrome-devtools":"Chrome DevTools","clouds-midnight":"Clouds Midnight","espresso-libre":"Espresso Libre","kuroir-theme":"Kuroir Theme","magicwb--amiga-":"MagicWB (Amiga)","merbivore-soft":"Merbivore Soft","monokai-bright":"Monokai Bright","night-owl":"Night Owl","oceanic-next":"Oceanic Next","pastels-on-dark":"Pastels on Dark","slush-and-poppies":"Slush and Poppies","solarized-dark":"Solarized-dark","solarized-light":"Solarized-light","textmate--mac-classic-":"Textmate (Mac Classic)","tomorrow-night":"Tomorrow-Night","tomorrow-night-blue":"Tomorrow-Night-Blue","tomorrow-night-bright":"Tomorrow-Night-Bright","tomorrow-night-eighties":"Tomorrow-Night-Eighties","upstream-sunburst":"Upstream Sunburst","vibrant-ink":"Vibrant Ink","xcode-default":"Xcode_default",active4d:"Active4D",amy:"Amy",blackboard:"Blackboard",clouds:"Clouds",cobalt:"Cobalt",dawn:"Dawn",dreamweaver:"Dreamweaver",eiffel:"Eiffel",github:"GitHub",idle:"IDLE",idlefingers:"idleFingers",iplastic:"iPlastic",katzenmilch:"Katzenmilch",krtheme:"krTheme",lazy:"LAZY",merbivore:"Merbivore",monoindustrial:"monoindustrial",monokai:"Monokai",spacecadet:"SpaceCadet",sunburst:"Sunburst",tomorrow:"Tomorrow",twilight:"Twilight",zenburnesque:"Zenburnesque"};var v=o(80636),b=o(28598);var j=function(n){var e=n.autocompleteProviders,j=n.autoHeight,w=n.autoSave,y=n.block,k=n.fontSize,C=void 0===k?d.i3:k,E=n.height,O=n.language,S=n.onChange,x=n.onDidChangeCursorPosition,D=n.onSave,N=n.padding,T=n.placeholder,M=n.readOnly,P=n.selected,B=n.setSelected,_=n.setTextareaFocused,Z=n.shortcuts,z=n.showLineNumbers,A=void 0===z||z,I=n.tabSize,F=void 0===I?4:I,L=n.textareaFocused,R=n.theme,K=n.value,H=n.width,W=void 0===H?"100%":H,U=(0,t.useRef)(null),G=(0,t.useRef)(null),V=(0,t.useRef)(null),q=(0,t.useState)([]),Y=q[0],X=q[1],Q=(0,t.useState)(null),J=Q[0],$=Q[1],nn=(0,t.useState)(!1),en=nn[0],on=nn[1],tn=(0,t.useState)(R||s),rn=tn[0],an=tn[1],un=(0,t.useCallback)((function(n){n.languages.typescript.javascriptDefaults.setEagerModelSync(!0),$(n)}),[]),cn=(0,t.useCallback)((function(n,e){U.current=n,G.current=e;var o=[];null===Z||void 0===Z||Z.forEach((function(t){o.push(t(e,n))})),D&&o.push((0,v.e)(e,(function(){D(n.getValue())}))),h(0,n,o),n.getModel().updateOptions({tabSize:F}),j&&!E&&(n._domElement.style.height="".concat(((K||"").split("\n").length+f.Ep)*f.aU,"px")),n.onDidFocusEditorWidget((function(){null===B||void 0===B||B(!0),null===_||void 0===_||_(!0)})),n.onDidContentSizeChange((function(e){var o=e.contentHeight,t=e.contentHeightChanged;j&&t&&(n._domElement.style.height="".concat(o+2*f.aU,"px"))})),P&&L&&setTimeout((function(){n.focus()}),1),x&&n.onDidChangeCursorPosition((function(e){var o=e.position.lineNumber,t=n._domElement.getBoundingClientRect(),i=t.height,r=t.top,a=n.getTopForLineNumber(o);x({editorRect:{height:Number(i),top:Number(r)},position:{lineNumberTop:a}})})),on(!0)}),[j,E,x,D,P,on,B,_,Z,F,L,K]);(0,t.useEffect)((function(){(function(n){return new Promise((function(e){Promise.all([r._m.init(),o(7432)("./".concat(p[n],".json"))]).then((function(o){var t=(0,g.Z)(o,2),i=t[0],r=t[1];r.colors["editor.background"]="#000000",r.colors["editor.foreground"]="#FFFFFF",i.editor.defineTheme(n,r),e()}))}))})(s).then((function(){an(s)}))}),[]),(0,t.useEffect)((function(){var n;return w&&D&&(n=setInterval((function(){D(U.current.getValue())}),5e3)),function(){w&&n&&clearInterval(n)}}),[w,U,D]);var sn=(0,c.Z)(P),ln=(0,c.Z)(L);return(0,t.useEffect)((function(){null!==U&&void 0!==U&&U.current&&(P&&L?setTimeout((function(){U.current.focus()}),1):i.findDOMNode(U.current._domElement).getElementsByClassName("inputarea")[0].blur())}),[U,P,sn,L,ln]),(0,t.useEffect)((function(){if(null!==G&&void 0!==G&&G.current&&null!==U&&void 0!==U&&U.current){var n=[];null===Z||void 0===Z||Z.forEach((function(e){n.push(e(null===G||void 0===G?void 0:G.current,null===U||void 0===U?void 0:U.current))})),h(null===G||void 0===G||G.current,null===U||void 0===U?void 0:U.current,n)}}),[null===y||void 0===y?void 0:y.downstream_blocks,null===y||void 0===y?void 0:y.upstream_blocks]),(0,t.useEffect)((function(){return function(){Y.map((function(n){return n.dispose()}))}}),[Y]),(0,t.useEffect)((function(){J&&e&&(0===Y.length&&L||!ln&&L?X((0,m.S_)(J,e)):ln&&!L&&Y.map((function(n){return n.dispose()})))}),[e,Y,J,L,ln]),(0,b.jsxs)(f.Nk,{hideDuplicateMenuItems:!0,padding:N,style:{display:en?null:"none"},children:[T&&!(null!==K&&void 0!==K&&K.length)&&(0,b.jsx)(f.KT,{children:(0,b.jsx)(u.ZP,{monospace:!0,muted:!0,children:T})}),(0,b.jsx)(r.ZP,{beforeMount:un,height:E,language:O||"python",onChange:function(n){null===S||void 0===S||S(n)},onMount:cn,options:{domReadOnly:M,fontFamily:l.Vp,fontLigatures:!0,fontSize:C,hideCursorInOverviewRuler:!0,lineNumbers:A,minimap:{enabled:!1},overviewRulerBorder:!1,readOnly:M,renderLineHighlightOnlyWhenFocus:!0,scrollBeyondLastLine:!1,scrollbar:{alwaysConsumeMouseWheel:!1,vertical:"hidden"},useShadowDOM:!1,wordBasedSuggestions:!1,wordWrap:(null===y||void 0===y?void 0:y.type)===a.tf.MARKDOWN?"on":"off"},theme:rn,value:K,width:W}),(0,b.jsx)("div",{ref:V})]})}},80636:function(n,e,o){"use strict";function t(n,e){return{contextMenuGroupId:"navigation",contextMenuOrder:1.5,id:"saveCode",keybindingContext:null,keybindings:[n.KeyMod.CtrlCmd|n.KeyCode.KeyS],label:"Save",precondition:null,run:function(n){e()}}}function i(n,e){return{contextMenuGroupId:"navigation",contextMenuOrder:1.5,id:"executeCode",keybindingContext:null,keybindings:[n.KeyMod.CtrlCmd|n.KeyCode.Enter],label:"Run selected block",precondition:null,run:function(){return e()}}}o.d(e,{Q:function(){return i},e:function(){return t}})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7815],{45838:function(n,e,t){t.d(e,{GZ:function(){return s},Vq:function(){return d},cE:function(){return p},cl:function(){return l},kA:function(){return a}});var o=t(38626),r=t(23831),i=t(37391),c=t(49125),l=o.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," "," "," ",""],i.w5,(function(n){return n.includePadding&&"\n padding: ".concat(2*c.iI,"px;\n ")}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,";\n ")}),(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),a=o.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),d=o.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||r.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||r.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),u=(0,o.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(n){return!n.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")})),s=o.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],u,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||r.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||r.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),p=o.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],u,(function(n){return n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")}),(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||r.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||r.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(n,e,t){var o=t(82394),r=t(12691),i=t.n(r),c=t(82684),l=t(44182),a=t(25880),d=t(67971),u=t(62084),s=t(10919),p=t(86673),h=t(19711),f=t(46261),g=t(45838),v=t(49125),b=t(28598);function m(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function x(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?m(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var w=20*v.iI;function y(n,e){var t=n.alignTop,o=n.borderCollapseSeparate,r=n.buildLinkProps,m=n.buildRowProps,y=n.columnBorders,j=n.columnFlex,k=n.columnMaxWidth,C=n.columns,O=void 0===C?[]:C,P=n.compact,Z=n.highlightRowOnHover,I=n.isSelectedRow,H=n.noBorder,_=n.noHeader,S=n.onClickRow,B=n.onDoubleClickRow,E=n.onRightClickRow,D=n.renderRightClickMenu,M=n.renderRightClickMenuItems,R=n.rowGroupHeaders,N=n.rowVerticalPadding,A=n.rows,T=n.rowsGroupedByIndex,V=n.stickyFirstColumn,z=n.stickyHeader,F=n.uuid,X=n.wrapColumns,W=(0,c.useState)(null),G=W[0],q=W[1],L=(0,c.useState)(null),K=L[0],U=L[1],Y=(0,c.useMemo)((function(){return j.reduce((function(n,e){return n+(e||0)}),0)}),[j]),J=(0,c.useCallback)((function(n){if(j[n]){var e=Math.round(j[n]/Y*100);return"".concat(e,"%")}return null}),[j,Y]),Q=(0,c.useCallback)((function(){return q(null)}),[q]);(0,c.useEffect)((function(){var n;return null===(n=document)||void 0===n||n.addEventListener("click",Q),function(){var n;null===(n=document)||void 0===n||n.removeEventListener("click",Q)}}),[Q]);var $=(0,c.useMemo)((function(){return D||M}),[D,M]),nn=(0,c.useMemo)((function(){var n;if(!$)return null;var t=(null===e||void 0===e||null===(n=e.current)||void 0===n?void 0:n.getBoundingClientRect())||{},o=t.x,r=t.width,i=G||{},c=i.x,l=void 0===c?0:c,a=i.y,d=void 0===a?0:a,s=l;return l+w>=o+r&&(s=o+r-(w+v.iI)),s<0&&(s=0),(0,b.jsxs)("div",{style:{left:s,position:"fixed",top:d+v.iI/2,zIndex:100},children:[null===D||void 0===D?void 0:D(K),M&&(0,b.jsx)(u.Z,{items:M(K)||[],open:!0,parentRef:void 0,uuid:"FileBrowser/ContextMenu",width:w})]})}),[G,K,$,e,D,M]),en=(0,c.useMemo)((function(){return null===A||void 0===A?void 0:A.map((function(n,e){var o,l=null===r||void 0===r?void 0:r(e),a=(null===m||void 0===m?void 0:m(e))||{renderCell:null,renderRow:null},d=a.renderCell,u=a.renderRow,p=[];if(n.forEach((function(o,r){var i;d&&(i=d(o,r)),i||(i=(0,b.jsx)(g.cE,{alignTop:t,columnBorders:y,compact:P,last:r===n.length-1,maxWidth:null===k||void 0===k?void 0:k(r),noBorder:H,rowVerticalPadding:N,selected:null===I||void 0===I?void 0:I(e),stickyFirstColumn:V&&0===r,width:J(r),wrapColumns:X,children:o},"".concat(F,"-row-").concat(e,"-cell-").concat(r))),p.push(i)})),u)o=u(p);else{o=(0,b.jsx)(g.Vq,{highlightOnHover:Z,noHover:!(l||S),onClick:S?function(n){return function(n,e){1===(null===e||void 0===e?void 0:e.detail)?S(n):B&&2===(null===e||void 0===e?void 0:e.detail)&&B(n)}(e,n)}:null,onContextMenu:$?function(n){n.preventDefault(),q({x:n.pageX,y:n.pageY}),U(e),null===E||void 0===E||E(e,n)}:null,children:p},"".concat(F,"-row-").concat(e))}return l?(0,c.createElement)(i(),x(x({},l),{},{key:"".concat(F,"-row-link-").concat(e),passHref:!0}),(0,b.jsx)(s.Z,{fullWidth:!0,noHoverUnderline:!0,noOutline:!0,style:{display:"table-row-group"},verticalAlignContent:!0,children:o})):o}))}),[t,r,m,J,y,k,P,$,Z,I,H,S,B,E,N,A,U,V,F,X]),tn=(0,c.useMemo)((function(){return(0,b.jsx)(g.Vq,{noHover:!0,children:null===O||void 0===O?void 0:O.map((function(n,e){return(0,b.jsx)(g.GZ,{columnBorders:y,compact:P,last:e===O.length-1,noBorder:H,sticky:z,children:(0,b.jsxs)(d.Z,{alignItems:"center",justifyContent:n.center?"center":"flex-start",children:[(0,b.jsx)(h.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,b.jsx)(p.Z,{ml:"4px",children:(0,b.jsx)(f.Z,{appearBefore:!0,label:(0,b.jsx)(h.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(F,"-col-").concat(n.uuid,"-").concat(e))}))})}),[y,O,P,H,z,F]),on=(0,c.useMemo)((function(){return(null===R||void 0===R?void 0:R.length)>=1&&(null===T||void 0===T?void 0:T.length)>=1?null===T||void 0===T?void 0:T.reduce((function(n,e,t){var r=null===e||void 0===e?void 0:e.map((function(n){return null===en||void 0===en?void 0:en[n]}));if((null===r||void 0===r?void 0:r.length)>=1){var i=R[t];n.push((0,b.jsx)(p.Z,{mt:t>=1?2:0,children:(0,b.jsx)(l.Z,{visibleMapping:{0:!0},children:(0,b.jsx)(a.Z,{noPaddingContent:!0,title:i,children:(0,b.jsx)(g.kA,{borderCollapseSeparate:o,columnBorders:y,children:(0,b.jsxs)(b.Fragment,{children:[(null===O||void 0===O?void 0:O.length)>=1&&!_&&tn,r]})})})})},"table-group-".concat(t)))}return n}),[]):(0,b.jsxs)(g.kA,{borderCollapseSeparate:o,columnBorders:y,children:[(null===O||void 0===O?void 0:O.length)>=1&&!_&&tn,en]})}),[o,y,null===O||void 0===O?void 0:O.length,tn,_,en,R,T]);return(0,b.jsxs)("div",{style:{position:"relative"},children:[on,$&&G&&nn]})}e.Z=c.forwardRef(y)},25880:function(n,e,t){var o=t(82394),r=t(26304),i=t(82684),c=t(38626),l=t(16910),a=t(93461),d=t(67971),u=t(86673),s=t(19711),p=t(23831),h=t(22341),f=t(73942),g=t(37391),v=t(10919),b=t(49125),m=t(90880),x=t(28598),w=["beforeTitleElement","children","contentOverflowVisible","first","hideScrollbar","highlighted","last","maxHeight","noBackground","noPaddingContent","onClick","onEntered","onExited","singlePanel","smallTitle","title","titleXPadding","visible","visibleCount","visibleHighlightDisabled"];function y(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function j(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?y(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var k=c.default.div.withConfig({displayName:"AccordionPanel__AccordionPanelStyle",componentId:"sc-sf242a-0"})([".accordion-panel-chevron-down-exit-done{transform:rotate(0deg);transition:all 200ms;}.accordion-panel-chevron-down-enter-active{transform:rotate(180deg);transition:all 200ms;}.accordion-panel-chevron-down-enter-done,.accordion-panel-chevron-down-enter-done-visible{transform:rotate(180deg);transition:all 300ms;}.accordion-panel-chevron-down-exit{transform:rotate(0deg);transition:all 300ms;}.accordion-panel-content-enter{display:block;max-height:0px;overflow:hidden;transition:max-height 400ms ease-in-out;}.accordion-panel-content-enter-active{max-height:100vh;","}.accordion-panel-content-enter-done{display:block;}.accordion-panel-content-exit{display:block;max-height:100vh;"," overflow:hidden;}.accordion-panel-content-exit-active{max-height:0px;transition:max-height 300ms cubic-bezier(0,1,0,1);}.accordion-panel-content-exit-done{display:none;}"],(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,"px;\n ")}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,"px;\n ")})),C=c.default.a.withConfig({displayName:"AccordionPanel__TitleStyle",componentId:"sc-sf242a-1"})([""," display:block;position:relative;padding:","px ","px;z-index:1;"," "," "," "," "," ",""],v.R,2*b.iI,2*b.iI,(function(n){return"\n &:hover,\n &:focus {\n outline: none;\n }\n ".concat((0,m.Kl)(n),"\n\n background-color: ").concat((n.theme.background||p.Z.background).table,";\n\n &:hover {\n background-color: ").concat((n.theme||p.Z).background.page,";\n }\n\n &:active {\n background-color: ").concat((n.theme||p.Z).background.page,";\n }\n ")}),(function(n){return n.visible&&"\n border-bottom: 1px solid ".concat((n.theme||p.Z).borders.medium2,";\n ")}),(function(n){return!n.first&&n.visible&&"\n border-top: 1px solid ".concat((n.theme||p.Z).borders.medium2,";\n ")}),(function(n){return n.first&&"\n border-top-left-radius: ".concat(f.n_,"px;\n border-top-right-radius: ").concat(f.n_,"px;\n ")}),(function(n){return(n.last||n.singlePanel)&&!n.visible&&"\n border-bottom-left-radius: ".concat(f.n_,"px;\n border-bottom-right-radius: ").concat(f.n_,"px;\n ")}),(function(n){return n.titleXPadding&&"\n padding-left: ".concat(n.titleXPadding,"px;\n padding-right: ").concat(n.titleXPadding,"px;\n ")})),O=c.default.div.withConfig({displayName:"AccordionPanel__ContentStyle",componentId:"sc-sf242a-2"})(["padding-left:","px;padding-right:","px;"," "," "," "," "," "," ",""],2*b.iI,2*b.iI,g.w5,(function(n){return n.hideScrollbar&&"\n ::-webkit-scrollbar {\n display: none;\n }\n "}),(function(n){return!n.visible&&"\n display: none;\n "}),(function(n){return!n.contentOverflowVisible&&"\n overflow-y: auto;\n "}),(function(n){return n.contentOverflowVisible&&"\n overflow-y: visible;\n "}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,"px;\n ")}),(function(n){return n.noPaddingContent&&"\n padding: 0;\n "})),P=c.default.div.withConfig({displayName:"AccordionPanel__ContentInnerStyle",componentId:"sc-sf242a-3"})(["padding-bottom:","px;padding-top:","px;",""],2*b.iI,2*b.iI,(function(n){return n.noPaddingContent&&"\n padding: 0;\n "})),Z=function(n,e){var t=n.beforeTitleElement,o=n.children,i=n.contentOverflowVisible,c=n.first,p=n.hideScrollbar,f=n.highlighted,g=n.last,v=n.maxHeight,m=n.noBackground,y=n.noPaddingContent,Z=n.onClick,I=n.onEntered,H=n.onExited,_=n.singlePanel,S=n.smallTitle,B=n.title,E=n.titleXPadding,D=n.visible,M=n.visibleCount,R=n.visibleHighlightDisabled,N=(0,r.Z)(n,w);return(0,x.jsxs)(k,j(j({},N),{},{maxHeight:v,children:[(0,x.jsx)(C,{first:c,href:"#",last:g,noHoverUnderline:!0,onClick:function(n){n.preventDefault(),Z&&Z(n)},onKeyPress:function(n){" "===n.key&&Z&&Z(n)},singlePanel:_,titleXPadding:E,visible:D&&!R,children:(0,x.jsxs)(d.Z,{alignItems:"center",children:[(0,x.jsx)(u.Z,{mr:1,children:(0,x.jsxs)(d.Z,{alignItems:"center",children:[t,t&&(0,x.jsx)(u.Z,{ml:1}),"string"!==typeof B&&B,"string"===typeof B&&(0,x.jsx)(s.ZP,{bold:!0,default:!D,large:!S,wind:f,children:B})]})}),(0,x.jsx)(l.Z,{classNames:"accordion-panel-chevron-down",in:D,timeout:400,children:(0,x.jsx)(a.Z,{className:D&&0===M&&"accordion-panel-chevron-down-enter-done-visible",children:(0,x.jsx)(h._M,{default:!0,size:2*b.iI})})})]})}),(0,x.jsx)(l.Z,{classNames:"accordion-panel-content",in:D,onEntered:function(n){return I&&I(n)},onExited:function(n){return H&&H(n)},timeout:300,children:(0,x.jsx)(O,{contentOverflowVisible:i,hideScrollbar:p,maxHeight:v,noBackground:m,noPaddingContent:y,visible:D,children:(0,x.jsx)(P,{noPaddingContent:y,ref:e,children:o})})})]}))};e.Z=i.forwardRef(Z)},44182:function(n,e,t){var o=t(82394),r=t(26304),i=t(82684),c=t(38626),l=(t(25880),t(34744)),a=t(23831),d=t(73942),u=t(28598),s=["activeItemIndex","children","onClick","showDividers","visibleMapping","visibleMappingForced"];function p(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function h(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?p(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var f=c.default.div.withConfig({displayName:"Accordion__AccordionStyle",componentId:"sc-1xr4nou-0"})(["border-radius:","px;overflow:hidden;border-width:","px;border-style:",";"," "," ",""],d.n_,d.YF,d.M8,(function(n){return"\n background-color: ".concat((n.theme.background||a.Z.background).content,";\n box-shadow: ").concat((n.theme||a.Z).shadow.frame,";\n ")}),(function(n){return!n.highlighted&&"\n border-color: ".concat((n.theme||a.Z).background.panel,";\n ")}),(function(n){return n.highlighted&&"\n border-color: ".concat((n.theme||a.Z).brand.wind400,";\n ")})),g=c.default.div.withConfig({displayName:"Accordion__AccordionPanelContainerStyle",componentId:"sc-1xr4nou-1"})([""]);e.Z=function(n){var e=n.activeItemIndex,t=n.children,c=n.onClick,a=n.showDividers,d=n.visibleMapping,p=n.visibleMappingForced,v=(0,r.Z)(n,s),b=(0,i.useState)(d||{}),m=b[0],x=b[1],w=(0,i.useState)({}),y=w[0],j=w[1],k=h(h({},m),p);return(0,u.jsx)(f,h(h({},v),{},{children:i.Children.map(t,(function(n,r){var d=i.Children.count(t),s=r===d-1,p=k[r];return(0,u.jsxs)("div",{children:[(0,u.jsx)(g,{index:r,showDividers:a,children:i.cloneElement(n,h(h({},v),{},{first:0===r,last:s,onClick:function(){var n;j(h(h({},y),{},(0,o.Z)({},r,y[r]?y[r]+1:1))),n=h(h({},k),{},(0,o.Z)({},r,!p)),x(n),c&&c(n)},singlePanel:1===d,visible:p,visibleCount:y[r]||0,visibleHighlightDisabled:"undefined"!==typeof e&&r!==e}))}),a&&(0,u.jsx)(l.Z,{})]},r)}))}))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8952],{75968:function(n,e,t){t.d(e,{J8:function(){return b},MS:function(){return h},Ts:function(){return p},_o:function(){return m},eY:function(){return f},fA:function(){return v},h5:function(){return k},oI:function(){return g}});var o=t(82394),i=t(86422),r=t(82635),u=t(98781),c=t(90211),l=t(33766),d=t(60701);function a(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function s(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?a(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var f=function(n,e){var t=(null===e||void 0===e?void 0:e.upstream_blocks)||[];return i.iZ.includes(null===n||void 0===n?void 0:n.type)||i.iZ.includes(null===e||void 0===e?void 0:e.type)||i.tf.DATA_LOADER===(null===e||void 0===e?void 0:e.type)&&i.tf.SENSOR!==n.type||t.push(n.uuid),t},v=function(n,e,t){var o=[];return(null===n||void 0===n?void 0:n.type)!==u.qL.STREAMING||i.iZ.includes(null===e||void 0===e?void 0:e.type)||i.iZ.includes(null===t||void 0===t?void 0:t.type)||(o=o.concat((null===e||void 0===e?void 0:e.downstream_blocks)||[])),o},p=function(n,e,t,o){for(var r,u=[],l=e.findIndex((function(e){return e.uuid===n.uuid}));!r&&l>=0;){var d;r=e[l-1],i.tf.SCRATCHPAD===(null===(d=r)||void 0===d?void 0:d.type)&&(r=null),l-=1}return r&&u.push(r.uuid),i.Ut.map((function(e){return{label:function(){return"Convert to ".concat((0,c.wX)(i.V4[e]))},onClick:function(){return o({converted_from_type:e,converted_from_uuid:n.uuid,type:e,upstream_blocks:u})},uuid:"".concat(t,"/convert_to/").concat(e)}}))},b=function(n,e,t,o,r,u){var c=n||{},a=c.configuration,f=c.downstream_blocks,v=c.has_callback,p=c.language,b=c.metadata,h=c.replicated_block,m=c.type,k=c.upstream_blocks,g=c.uuid,y=a||{},O=y.dynamic,x=y.reduce_output,E=i.tf.DBT===m,C=[];if(i.tf.SCRATCHPAD!==m&&![i.tf.CALLBACK,i.tf.EXTENSION,i.tf.MARKDOWN].includes(m)){C.push.apply(C,[{label:function(){return E?"Execute and run all upstream blocks":"Execute with all upstream blocks"},onClick:function(){return e({block:n,runUpstream:!0})},uuid:"execute_upstream"},{label:function(){return E?"Execute and run incomplete upstream blocks":"Execute with incomplete upstream blocks"},onClick:function(){return e({block:n,runIncompleteUpstream:!0})},uuid:"execute_incomplete_upstream"}]),E||i.tf.GLOBAL_DATA_PRODUCT===m||C.push({label:function(){return"Execute block and run tests"},onClick:function(){return e({block:n,runTests:!0})},uuid:"run_tests"});var T,A,S=u||{},_=S.addNewBlock,I=S.blocksMapping,D=S.fetchFileTree,j=S.fetchPipeline,w=S.savePipelineContent,R=S.updatePipeline,L=[];if(null===f||void 0===f||f.forEach((function(n){var e=null===I||void 0===I?void 0:I[n];e&&e.upstream_blocks.forEach((function(n){var e,t;null!==I&&void 0!==I&&null!==(e=I[n])&&void 0!==e&&null!==(t=e.configuration)&&void 0!==t&&t.dynamic&&L.push(I[n])}))})),E&&i.t6.SQL===p)null!==b&&void 0!==b&&null!==(T=b.dbt)&&void 0!==T&&null!==(A=T.block)&&void 0!==A&&A.snapshot||C.unshift.apply(C,[{label:function(){return"Run model"},onClick:function(){return e({block:n,runSettings:{run_model:!0}})},tooltip:function(){return"Execute command dbt run."},uuid:"run_model"},{label:function(){return"Test model"},onClick:function(){return e({block:n,runSettings:{test_model:!0}})},tooltip:function(){return"Execute command dbt test."},uuid:"test_model"},{label:function(){return"Build model"},onClick:function(){return e({block:n,runSettings:{build_model:!0}})},tooltip:function(){return"Execute command dbt build."},uuid:"build_model"},{label:function(){return"Add upstream models"},onClick:function(){R({pipeline:{add_upstream_for_block_uuid:null===n||void 0===n?void 0:n.uuid}})},tooltip:function(){return"Add upstream models for this model to the pipeline."},uuid:"add_upstream_models"}]);if(E||i.tf.GLOBAL_DATA_PRODUCT===m||!w||!O&&0!==L.length||C.push({label:function(){return O?"Disable block as dynamic":"Set block as dynamic"},onClick:function(){return w({block:s(s({},n),{},{configuration:s(s({},a),{},{dynamic:!O})})})},uuid:"dynamic"}),I)(null===k||void 0===k?void 0:k.find((function(n){var e,t;return null===I||void 0===I||null===(e=I[n])||void 0===e||null===(t=e.configuration)||void 0===t?void 0:t.dynamic})))&&C.push({label:function(){return x?"Don\u2019t reduce output":"Reduce output"},onClick:function(){return w({block:s(s({},n),{},{configuration:s(s({},a),{},{reduce_output:!x})})})},uuid:"reduce_output"});C.push({label:function(){return v?"Remove callback":"Add callback"},onClick:function(){if(v)return w({block:s(s({},n),{},{has_callback:!v})}).then((function(){D(),j()}));(0,l.u7)({sideview:d.cH.CALLBACKS})},uuid:"has_callback"}),E||C.push({disabled:!!h,label:function(){return"Replicate block"},onClick:function(){return _({replicated_block:g})},uuid:"Replicate block"})}return C.push({label:function(){return"Delete block"},onClick:function(){t(n),o(!1)},uuid:"delete_block"}),r?[C.pop()]:C};function h(n){var e=n.tags,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=[],r=t.conditionFailed;return null===e||void 0===e||e.forEach((function(n){i.L8.DBT_SNAPSHOT===n?o.push({description:"This is a dbt snapshot file.",title:(0,c.vg)(i.L8.DBT_SNAPSHOT)}):i.L8.DYNAMIC===n?o.push({description:"This block will create N blocks for each of its downstream blocks.",title:(0,c.vg)(i.L8.DYNAMIC)}):i.L8.DYNAMIC_CHILD===n?o.push({description:"This block is dynamically created by its upstream parent block that is dynamic.",title:(0,c.vg)(i.L8.DYNAMIC_CHILD)}):i.L8.REDUCE_OUTPUT===n?o.push({description:"Reduce output from all dynamically created blocks into a single array output.",title:(0,c.vg)(i.L8.REDUCE_OUTPUT)}):i.L8.REPLICA===n?o.push({description:"This block is a replica of another block in the current pipeline.",title:(0,c.vg)(i.L8.REPLICA)}):i.L8.CONDITION===n?r?o.push({description:"This block condition evaluated as false.",title:"Condition unmet"}):o.push({description:"This block has a condition that will be run before its execution.",title:(0,c.vg)(i.L8.CONDITION)}):o.push({title:n})})),o}function m(n){var e=n.block,t=n.dynamic,o=n.dynamicUpstreamBlock,i=n.hasError,r=(n.reduceOutput,n.reduceOutputUpstreamBlock),u=n.selected,c=o&&!r;return{borderColorShareProps:{blockColor:null===e||void 0===e?void 0:e.color,blockType:null===e||void 0===e?void 0:e.type,dynamicBlock:t,dynamicChildBlock:c,hasError:i,selected:u},tags:h(e)}}function k(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e&&(null===e||void 0===e?void 0:e.length)>=0?e.map((function(n){return{data:n,execution_state:r.uF.IDLE,type:r.Gi.TEXT_PLAIN}})):n.filter((function(n){return null===n||void 0===n?void 0:n.type}))}function g(n){return{hasError:!!n.find((function(n){return n.error})),hasOutput:n.length>=1}}},35438:function(n,e,t){t.d(e,{Ai:function(){return u},Jo:function(){return r},bJ:function(){return c},rl:function(){return o}});var o,i=t(86422),r=(t(49125).iI,1e4),u={compact:!0},c={height:10,width:10};i.tf.DATA_EXPORTER,i.tf.SENSOR,i.Lq.GREY,i.Lq.PINK,i.Lq.TEAL,i.Lq.YELLOW;!function(n){n.NORTH="NORTH",n.SOUTH="SOUTH"}(o||(o={}))},48952:function(n,e,t){t.d(e,{Z:function(){return On}});var o=t(75582),i=t(21831),r=t(82394),u=t(26304),c=t(77837),l=t(38860),d=t.n(l),a=t(51774),s=t.n(a),f=t(38626),v=t(4804),p=t(82684),b=t(83455),h=t(18283),m=t(86422),k=t(16634),g=t(93461),y=t(67971),O=t(86673),x=t(54283),E=t(19711),C=t(23831),T=t(22341),A=t(73942),S=t(49125),_=3*S.iI,I=f.default.div.withConfig({displayName:"indexstyle__NodeStyle",componentId:"sc-kc7274-0"})(["border-radius:","px;border:1px solid transparent;min-width:fit-content;overflow:hidden;"," "," "," "," "," "," "," ",""],A.n_,(function(n){return"\n background-color: ".concat((n.theme.background||C.Z.background).codeTextarea,";\n ")}),(function(n){return n.borderColor&&"\n border-color: ".concat(n.borderColor,";\n ")}),(function(n){return n.selected&&"\n border-color: ".concat((n.theme.content||C.Z.content).active,";\n ")}),(function(n){return(n.isCancelled||n.disabled)&&"\n // opacity doesn\u2019t work on Safari\n border-color: ".concat((n.theme.content||C.Z.content).muted,";\n border-style: dotted;\n cursor: not-allowed;\n opacity: 0.5;\n ")}),(function(n){return n.isConditionFailed&&"\n background-color: ".concat((n.theme.content||C.Z.content).disabled,";\n cursor: not-allowed;\n ")}),(function(n){return n.isConditionFailed&&"\n background-color: ".concat((n.theme.content||C.Z.content).disabled,";\n cursor: not-allowed;\n ")}),(function(n){return n.disabled&&"\n &:hover {\n cursor: not-allowed;\n }\n "}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")})),D=f.default.div.withConfig({displayName:"indexstyle__StatusStyle",componentId:"sc-kc7274-1"})(["height:","px;width:","px;"],2*S.iI,2*S.iI),j=f.default.div.withConfig({displayName:"indexstyle__IconStyle",componentId:"sc-kc7274-2"})(["align-items:center;border-radius:","px;border:2px solid transparent;display:flex;height:","px;justify-content:center;width:","px;"," ",""],A.BG,5*S.iI,5*S.iI,(function(n){return n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n border-color: ").concat(n.backgroundColor,";\n ")}),(function(n){return n.borderColor&&"\n border-color: ".concat(n.borderColor,";\n ")})),w=f.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-kc7274-3"})(["padding:","px;",""],1*S.iI,(function(n){return"\n background-color: ".concat((n.theme.background||C.Z.background).dashboard,";\n ")})),R=f.default.div.withConfig({displayName:"indexstyle__BodyStyle",componentId:"sc-kc7274-4"})(["padding-left:","px;padding-right:","px;"],1*S.iI,1*S.iI),L=(f.default.div.withConfig({displayName:"indexstyle__RuntimeStyle",componentId:"sc-kc7274-5"})(["margin-right:","px;padding:12px 4px;height:100%;width:50px;background:rgba(0,0,0,0.2);background-blend-mode:soft-light;"],2*S.iI),t(98781)),P=t(75968),Z=t(25958),N=S.cd,B=S.cd*S.iI,M=2*S.iI,H=7.43,U=2*S.iI+5*S.iI,G=2*S.iI+5*S.iI+B+B+M,F=30*S.iI;function V(n){var e=(0,P.MS)(n);if((null===e||void 0===e?void 0:e.length)>=1)return(null===e||void 0===e?void 0:e.map((function(n){return n.title})).join(", "))||"";if(m.tf.GLOBAL_DATA_PRODUCT===(null===n||void 0===n?void 0:n.type)){var t,o=null===n||void 0===n||null===(t=n.configuration)||void 0===t?void 0:t.global_data_product;if(null!==o&&void 0!==o&&o.uuid)return null===o||void 0===o?void 0:o.uuid}return m.dO[null===n||void 0===n?void 0:n.language]||""}function K(n,e){var t,o=n.type,i=(null===m.V4||void 0===m.V4?void 0:m.V4[o])||o;if(L.qL.INTEGRATION===(null===e||void 0===e?void 0:e.type)&&m.tf.TRANSFORMER!==n.type){var r,u={};if(m.t6.YAML===n.language&&(u=(0,v.Qc)(n.content)),m.tf.DATA_LOADER===n.type)t="".concat(n.uuid,": ").concat(null===(r=u)||void 0===r?void 0:r.source);else if(m.tf.DATA_EXPORTER===n.type){var c;t="".concat(n.uuid,": ").concat(null===(c=u)||void 0===c?void 0:c.destination)}}else if(m.tf.DBT===n.type&&m.t6.SQL===n.language){var l=(0,Z.IU)(n),d=l.name,a=l.project;t=d,i="".concat(i,"/").concat(a)}return null!==n&&void 0!==n&&n.replicated_block&&(t=null===n||void 0===n?void 0:n.replicated_block,i=null===n||void 0===n?void 0:n.uuid),t||(t=n.uuid),{displayText:t,subtitle:i}}function q(n,e){return K(n,e).displayText||""}function X(n,e){return K(n,e).subtitle||""}function J(n){var e=0;return null===n||void 0===n||n.forEach((function(n,t){var o=n.uuid;e+=4+o.length*H,t>=1&&(e+=4)})),e}function Q(n,e,t){var o,i=0,r=2+U,u=W(n,e,t)-(2+2*S.iI),c=V(n),l=(null===c||void 0===c?void 0:c.length)*H;if(l>=1){var d=1;l>u&&(d=Math.ceil(l/u)),i+=1,r+=18*d}var a=t||{},s=a.blockStatus;return[a.callbackBlocks,a.conditionalBlocks,a.extensionBlocks].forEach((function(n){if((null===n||void 0===n?void 0:n.length)>=1){var e=J(n),t=1;e>u&&(t=Math.ceil(e/u)),i+=1,r+=18.5*t+4*(t-1)}})),"undefined"!==typeof(null===s||void 0===s||null===(o=s[n.uuid])||void 0===o?void 0:o.runtime)&&(r+=18,i+=1),r+=(i+=1)*(1*S.iI)}function W(n,e,t){var o,r,u=Math.max(8.62*(null===(o=q(n,e))||void 0===o?void 0:o.length),(null===(r=X(n,e))||void 0===r?void 0:r.length)*H),c=V(n),l=(null===c||void 0===c?void 0:c.length)*H,d=t||{},a=d.callbackBlocks,s=d.conditionalBlocks,f=d.extensionBlocks,v=Math.max.apply(Math,(0,i.Z)([a,s,f].map((function(n){return J(n)})).concat(l)));return v>u&&(u=Math.min(F,v)),2+G+u}var Y,z=t(44162),$=t(35438),nn=t(90211),en=function(n){var e=n/1e3,t=4-Math.floor(e).toString().length,o=(0,nn.QV)(e,t>=0?t:0),i="s";return o>1e3&&(o=(0,nn.QV)(o/60,0),i="m"),"".concat(o).concat(i)},tn=function(n,e){var t=n||{},o=t.id,i=t.side,r=null===e||void 0===e?void 0:e.id;return i===$.rl.NORTH?null===o||void 0===o?void 0:o.endsWith("".concat(r,"-to")):i===$.rl.SOUTH&&(null===o||void 0===o?void 0:o.startsWith(r))},on=t(28598),rn=(Y={},(0,r.Z)(Y,m.tf.DATA_EXPORTER,T.zS),(0,r.Z)(Y,m.tf.DATA_LOADER,T.rH),(0,r.Z)(Y,m.tf.DBT,T.xE),(0,r.Z)(Y,m.tf.GLOBAL_DATA_PRODUCT,T.ie),(0,r.Z)(Y,m.tf.SENSOR,T.LM),(0,r.Z)(Y,m.tf.TRANSFORMER,T.Sv),Y);var un=function(n){var e=n.block,t=n.callbackBlocks,o=n.conditionalBlocks,i=n.disabled,r=n.extensionBlocks,u=n.height,c=n.hideStatus,l=n.pipeline,d=n.selected,a=n.hasFailed,s=n.isCancelled,v=n.isConditionFailed,b=n.isInProgress,A=n.isQueued,S=n.isSuccessful,L=n.runtime,P=(0,p.useContext)(f.ThemeContext),Z=!(b||A||a||S||s||v),B=a&&!(b||A),H=!B&&S&&!(b||A),U="";Z?U="No status":H?U="Successful execution":B?U="Failed execution":b?U="Currently executiing":s&&(U="Cancelled execution");var G=e.color,F=e.type,K=(0,z.qn)(F,{blockColor:G,theme:P}).accent,J=(0,p.useMemo)((function(){return V(e)}),[e]),Q=(0,p.useMemo)((function(){var n,e,t=rn[F]||T.EJ,o=!1;return[m.tf.CALLBACK,m.tf.CHART,m.tf.CONDITIONAL,m.tf.CUSTOM,m.tf.DATA_EXPORTER,m.tf.DATA_LOADER,m.tf.EXTENSION,m.tf.SCRATCHPAD,m.tf.SENSOR,m.tf.MARKDOWN,m.tf.TRANSFORMER].includes(F)?n=K:[m.tf.DBT].includes(F)&&(e=K),[m.tf.DATA_EXPORTER].includes(F)&&(o=!0),(0,on.jsx)(j,{backgroundColor:n,borderColor:e,children:(0,on.jsx)("div",{style:{height:_,width:_},children:(0,on.jsx)(t,{inverted:o,size:_})})})}),[K,F]);return(0,on.jsxs)(I,{borderColor:K,disabled:i,height:u,isCancelled:s,isConditionFailed:v,selected:d,children:[(0,on.jsx)(w,{children:(0,on.jsxs)(y.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,on.jsxs)(g.Z,{flex:1,children:[Q,(0,on.jsx)(O.Z,{mr:N}),(0,on.jsxs)(g.Z,{flexDirection:"column",children:[(0,on.jsx)(E.ZP,{bold:!0,monospace:!0,children:q(e,l)}),(0,on.jsx)(E.ZP,{default:!0,monospace:!0,small:!0,children:X(e,l)})]})]}),(0,on.jsx)(O.Z,{mr:"15px"}),(0,on.jsx)(D,{title:U,children:!c&&(0,on.jsxs)(on.Fragment,{children:[b&&(0,on.jsx)(x.Z,{color:(P||C.Z).content.active,small:!0}),H&&(0,on.jsx)(T.Jr,{size:M,success:!0}),B&&(0,on.jsx)(T.x8,{danger:!0,size:M}),Z&&(0,on.jsx)(k.Z,{borderSize:1,muted:!0,size:M})]})})]})}),(0,on.jsxs)(R,{children:[(null===J||void 0===J?void 0:J.length)>=1&&(0,on.jsx)(O.Z,{mt:1,children:(0,on.jsx)(E.ZP,{default:!0,monospace:!0,small:!0,children:J})}),[o,t,r].map((function(n,e){if((null===n||void 0===n?void 0:n.length)>=1)return(0,on.jsx)("div",{style:{marginTop:4},children:(0,on.jsx)(y.Z,{alignItems:"center",flexWrap:"wrap",children:n.reduce((function(n,e,t){return t>=1&&n.push((0,on.jsx)("div",{style:{width:4}},"space-".concat(e.uuid))),n.push((0,on.jsx)("div",{style:{marginTop:4},children:(0,on.jsx)(h.Z,{color:(0,z.qn)(e.type,{blockColor:e.color,theme:P}).accentLight,monospace:!0,small:!0,children:e.uuid})},"badge-".concat(e.uuid))),n}),[])})},"badge-blocks-".concat(e))})),L&&(0,on.jsx)(O.Z,{mt:1,children:(0,on.jsx)(E.ZP,{monospace:!0,muted:!0,small:!0,children:en(L)})})]})]})},cn=t(11135),ln=t(82531),dn=t(37391),an=f.default.div.withConfig({displayName:"indexstyle__GraphContainerStyle",componentId:"sc-bc2ei5-0"})(["div{","}",""],dn.w5,(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")})),sn=(f.default.div.withConfig({displayName:"indexstyle__NodeStyle",componentId:"sc-bc2ei5-1"})(["border-radius:","px;border:1px solid transparent;min-width:fit-content;"," "," "," "," "," ",""],A.BG,(function(n){return n.selected&&"\n border-color: ".concat((n.theme.content||C.Z.content).active,";\n ")}),(function(n){return n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n ")}),(function(n){return(n.isCancelled||n.disabled)&&"\n // opacity doesn\u2019t work on Safari\n border-color: ".concat((n.theme.content||C.Z.content).active,";\n border-style: dashed;\n cursor: not-allowed;\n ")}),(function(n){return n.isConditionFailed&&"\n background-color: ".concat((n.theme.content||C.Z.content).disabled,";\n cursor: not-allowed;\n ")}),(function(n){return n.disabled&&"\n &:hover {\n cursor: not-allowed;\n }\n "}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")})),f.default.div.withConfig({displayName:"indexstyle__RuntimeStyle",componentId:"sc-bc2ei5-2"})(["margin-right:","px;padding:12px 4px;height:100%;width:50px;background:rgba(0,0,0,0.2);background-blend-mode:soft-light;"],2*S.iI),t(66050)),fn=t(24224);var vn=t(96510),pn=["forwardedRef"];function bn(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function hn(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?bn(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):bn(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var mn=s()((0,c.Z)(d().mark((function n(){var e,o;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(2920)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,o=e.Canvas,n.abrupt("return",(function(n){var e=n.forwardedRef,t=(0,u.Z)(n,pn);return(0,on.jsx)(o,hn({ref:e},t))}));case 5:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),kn=s()((0,c.Z)(d().mark((function n(){var e;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(2920)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Node);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),gn=s()((0,c.Z)(d().mark((function n(){var e;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(2920)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Edge);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),yn=s()((0,c.Z)(d().mark((function n(){var e;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(2920)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Port);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}});var On=function(n){var e=n.blockRefs,t=n.blockStatus,r=n.blocks,u=n.disabled,c=n.editingBlock,l=n.enablePorts,d=void 0!==l&&l,a=n.fetchPipeline,s=n.height,h=n.heightOffset,k=void 0===h?10*S.iI:h,g=n.messages,x=n.noStatus,C=n.onClickNode,T=n.pannable,A=void 0===T||T,_=n.pipeline,I=n.runningBlocks,D=void 0===I?[]:I,j=n.selectedBlock,w=n.setEditingBlock,R=n.setErrors,N=n.setSelectedBlock,B=n.setZoom,M=n.showDynamicBlocks,H=void 0!==M&&M,U=n.treeRef,G=n.zoomable,F=void 0===G||G,V=(0,p.useContext)(f.ThemeContext),K=(0,p.useRef)(null),q=U||K,X=(0,p.useState)([]),J=X[0],Y=X[1],nn=(0,p.useState)(!1),en=nn[0],rn=nn[1],dn=(0,p.useState)(null),pn=dn[0],bn=dn[1],On=d&&en,xn=(null===c||void 0===c?void 0:c.upstreamBlocks)||{},En=xn.block,Cn=xn.values,Tn=void 0===Cn?[]:Cn,An=(0,p.useMemo)((function(){return Tn.length}),[Tn]),Sn=(0,p.useMemo)((function(){var n;return(null===_||void 0===_||null===(n=_.blocks)||void 0===n?void 0:n.filter((function(n){var e=n.type;return!m.iZ.includes(e)})))||[]}),[null===_||void 0===_?void 0:_.blocks]),_n=(0,p.useMemo)((function(){return Sn}),[Sn,H]),In=(0,p.useMemo)((function(){if(r)return r;if(_){var n={},e=[];return e.push.apply(e,(0,i.Z)(null===_||void 0===_?void 0:_.blocks)),e.push.apply(e,(0,i.Z)(null===_||void 0===_?void 0:_.callbacks)),e.push.apply(e,(0,i.Z)(null===_||void 0===_?void 0:_.conditionals)),Object.values(null===_||void 0===_?void 0:_.extensions).forEach((function(n){var t=n.blocks;e.push.apply(e,(0,i.Z)(t))})),e.reduce((function(e,t){return n[t.uuid]||e.push(t),e}),[])}return[]}),[r,_]),Dn=(0,p.useMemo)((function(){return(0,fn.HK)(In||[],(function(n){return n.uuid}))}),[In]),jn=(0,p.useMemo)((function(){var n={};return null===_n||void 0===_n||_n.map((function(e){var t;n[e.uuid]=null===e||void 0===e||null===(t=e.callback_blocks)||void 0===t?void 0:t.reduce((function(n,e){var t=null===Dn||void 0===Dn?void 0:Dn[e];return t?n.concat(t):n}),[])})),n}),[_n,Dn]),wn=(0,p.useMemo)((function(){var n={};return null===_n||void 0===_n||_n.map((function(e){var t;n[e.uuid]=null===e||void 0===e||null===(t=e.conditional_blocks)||void 0===t?void 0:t.reduce((function(n,e){var t=null===Dn||void 0===Dn?void 0:Dn[e];return t?n.concat(t):n}),[])})),n}),[_n,Dn]),Rn=(0,p.useMemo)((function(){var n={};return null===_n||void 0===_n||_n.map((function(e){var t,i=[];null===(t=Object.entries((null===_||void 0===_?void 0:_.extensions)||{}))||void 0===t||t.forEach((function(n){var t=(0,o.Z)(n,2),r=t[0],u=t[1].blocks;null===u||void 0===u||u.forEach((function(n){var t=n.upstream_blocks,o=n.uuid;if(null!==t&&void 0!==t&&t.includes(null===e||void 0===e?void 0:e.uuid)){var u=null===Dn||void 0===Dn?void 0:Dn[o];u&&i.push(hn(hn({},u),{},{extension_uuid:r}))}}))})),n[e.uuid]=i})),n}),[_n,Dn,_]),Ln=(0,p.useMemo)((function(){return(0,fn.HK)(D,(function(n){return n.uuid}))}),[D]),Pn=(0,b.Db)(ln.ZP.blocks.pipelines.useUpdate(null===_||void 0===_?void 0:_.uuid,encodeURIComponent(null===En||void 0===En?void 0:En.uuid)),{onSuccess:function(n){return(0,vn.wD)(n,{callback:function(){w({upstreamBlocks:null}),null===a||void 0===a||a()},onErrorCallback:function(n,e){return null===R||void 0===R?void 0:R({errors:e,response:n})}})}}),Zn=(0,o.Z)(Pn,2),Nn=Zn[0],Bn=Zn[1].isLoading,Mn=(0,b.Db)((function(n){var e=n.fromBlock,t=n.portSide,o=n.toBlock,i=n.removeDependency,r=o,u=o.upstream_blocks.concat(e.uuid);return i||t!==$.rl.NORTH||(r=e,u=e.upstream_blocks.concat(o.uuid)),ln.ZP.blocks.pipelines.useUpdate(null===_||void 0===_?void 0:_.uuid,encodeURIComponent(r.uuid))({block:hn(hn({},r),{},{upstream_blocks:i?o.upstream_blocks.filter((function(n){return n!==e.uuid})):u})})}),{onSuccess:function(n){return(0,vn.wD)(n,{callback:function(){null===a||void 0===a||a()},onErrorCallback:function(n,e){return null===R||void 0===R?void 0:R({errors:e,response:n})}})}}),Hn=(0,o.Z)(Mn,1)[0],Un=(0,p.useCallback)((function(n){var t=n.type,o=n.uuid;if(null===N||void 0===N||N(n),Y([]),null!==e&&void 0!==e&&e.current){var i,r=e.current["".concat(t,"s/").concat(o,".py")];null===r||void 0===r||null===(i=r.current)||void 0===i||i.scrollIntoView()}}),[e,N]),Gn=(0,p.useCallback)((function(n){Y([]),w((function(e){var t=e.upstreamBlocks.values||[],o=t.findIndex((function(e){var t=e.uuid;return n.uuid===t}));return hn(hn({},e),{},{upstreamBlocks:hn(hn({},e.upstreamBlocks),{},{values:o>=0?(0,fn.oM)(t,o):t.concat(n)})})}))}),[w]),Fn=(0,p.useMemo)((function(){var n={};return _n.forEach((function(e){e.upstream_blocks.forEach((function(t){n[t]||(n[t]=[]),n[t].push(e)}))})),n}),[_n]),Vn=(0,p.useCallback)((function(n){var e,t;if(L.qL.INTEGRATION===(null===_||void 0===_?void 0:_.type)&&m.tf.TRANSFORMER!==n.type){var o,i={};if(m.t6.YAML===n.language&&(i=(0,v.Qc)(n.content)),m.tf.DATA_LOADER===n.type)e="".concat(n.uuid,": ").concat(null===(o=i)||void 0===o?void 0:o.source);else if(m.tf.DATA_EXPORTER===n.type){var r;e="".concat(n.uuid,": ").concat(null===(r=i)||void 0===r?void 0:r.destination)}}else if(m.tf.DBT===n.type&&m.t6.SQL===n.language){var u=(0,Z.IU)(n);e=u.name,t=u.project}return null!==n&&void 0!==n&&n.replicated_block&&(e=null===n||void 0===n?void 0:n.replicated_block,t=null===n||void 0===n?void 0:n.uuid),e||(e=n.uuid),{displayText:e,kicker:t,subtitle:undefined}}),[_]),Kn=(0,p.useMemo)((function(){var n=[],e=[];return _n.forEach((function(o){var r=Vn(o),u=r.displayText,c=r.kicker,l=r.subtitle,d=o.tags,a=void 0===d?[]:d,s=o.upstream_blocks,f=void 0===s?[]:s,v=o.uuid,p=Fn[v],b=[];p?b.push.apply(b,(0,i.Z)(p.map((function(n){return hn(hn({},$.bJ),{},{id:"".concat(v,"-").concat(n.uuid,"-from"),side:$.rl.SOUTH})})))):b.push(hn(hn({},$.bJ),{},{id:"".concat(v,"-from"),side:$.rl.SOUTH})),0===f.length&&b.push(hn(hn({},$.bJ),{},{id:"".concat(v,"-to"),side:$.rl.NORTH})),null===f||void 0===f||f.forEach((function(n){b.push(hn(hn({},$.bJ),{},{id:"".concat(n,"-").concat(v,"-to"),side:$.rl.NORTH})),e.push({from:n,fromPort:"".concat(n,"-").concat(v,"-from"),id:"".concat(n,"-").concat(v),to:v,toPort:"".concat(n,"-").concat(v,"-to")})}));(null===a||void 0===a?void 0:a.length)>=1&&S.iI,c&&S.iI,l&&S.iI;var h=u;[c,l].forEach((function(n){n&&n.length>h.length&&(h=n)}));var m=null===jn||void 0===jn?void 0:jn[null===o||void 0===o?void 0:o.uuid],k=null===wn||void 0===wn?void 0:wn[null===o||void 0===o?void 0:o.uuid],g=null===Rn||void 0===Rn?void 0:Rn[null===o||void 0===o?void 0:o.uuid];n.push({data:{block:o},height:Q(o,_,{blockStatus:t,callbackBlocks:m,conditionalBlocks:k,extensionBlocks:g}),id:v,ports:b,width:W(o,_,{blockStatus:t,callbackBlocks:m,conditionalBlocks:k,extensionBlocks:g})})})),{edges:e,nodes:n}}),[t,_n,jn,wn,Vn,Fn,Rn,_]),qn=Kn.edges,Xn=Kn.nodes,Jn=(0,p.useCallback)((function(n){if(x)return{};if(t){var e=t[function(n){var e=n.uuid,t=n.replicated_block;return t?"".concat(e,":").concat(t):e}(n)]||{},o=e.status,i=e.runtime;return{hasFailed:sn.V.FAILED===o,isCancelled:sn.V.CANCELLED===o,isConditionFailed:sn.V.CONDITION_FAILED===o,isInProgress:sn.V.RUNNING===o,isQueued:sn.V.INITIAL===o,isSuccessful:sn.V.COMPLETED===o,runtime:i}}var r,u=(0,P.h5)((null===g||void 0===g?void 0:g[n.uuid])||[]),c=(0,P.oI)(u),l=c.hasError,d=c.hasOutput,a=Ln[n.uuid];return{hasFailed:!a&&(l||m.DA.FAILED===n.status),isInProgress:a,isQueued:a&&(null===(r=D[0])||void 0===r?void 0:r.uuid)!==n.uuid,isSuccessful:!a&&(!l&&d||m.DA.EXECUTED===n.status)}}),[t,g,x,D,Ln]),Qn=(0,p.useMemo)((function(){var n=0;return s&&(n+=s),k&&(n-=k),Math.max(0,n)}),[s,k]);return(0,on.jsxs)(on.Fragment,{children:[En&&(0,on.jsxs)(O.Z,{my:3,px:S.cd,children:[(0,on.jsxs)(O.Z,{mb:S.cd,children:[(0,on.jsxs)(E.ZP,{children:["Select parent block(s) for ",(0,on.jsx)(E.ZP,{color:(0,z.qn)(En.type,{blockColor:En.color,theme:V}).accent,inline:!0,monospace:!0,children:En.uuid}),":"]}),(0,on.jsx)(O.Z,{mt:1,children:Tn.map((function(n,e){var t,o,i=n.uuid;return(0,on.jsxs)(E.ZP,{color:(0,z.qn)(null===(t=Dn[i])||void 0===t?void 0:t.type,{blockColor:null===(o=Dn[i])||void 0===o?void 0:o.type,theme:V}).accent,inline:!0,monospace:!0,children:[i,An>=2&&e<=An-2?(0,on.jsx)(E.ZP,{inline:!0,children:",\xa0"}):null]},i)}))})]}),(0,on.jsxs)(y.Z,{alignItems:"center",children:[(0,on.jsx)(cn.ZP,{compact:!0,inline:!0,loading:Bn,onClick:function(){return Nn({block:hn(hn({},En),{},{upstream_blocks:Tn.map((function(n){return n.uuid}))})})},uuid:"DependencyGraph/save_parents",children:"Save dependencies"}),(0,on.jsx)(O.Z,{ml:1}),(0,on.jsx)(cn.ZP,{compact:!0,inline:!0,noBackground:!0,onClick:function(){Y([]),w({upstreamBlocks:null})},uuid:"DependencyGraph/cancel_save_parents",children:"Cancel"})]})]}),(0,on.jsx)(an,{height:Qn,onDoubleClick:function(){var n,e;return null===q||void 0===q||null===(n=q.current)||void 0===n||null===(e=n.fitCanvas)||void 0===e?void 0:e.call(n)},children:(0,on.jsx)(mn,{arrow:null,disabled:u,edge:function(n){var e,t=Dn[n.source];return(0,on.jsx)(gn,hn(hn({},n),{},{onClick:function(n,e){bn(null),Y([e.id])},onRemove:function(n,e){var t=Dn[e.from],o=Dn[e.to];Hn({fromBlock:t,removeDependency:!0,toBlock:o}),Y([])},removable:d&&!(null!==c&&void 0!==c&&c.upstreamBlocks),style:{stroke:null===(e=(0,z.qn)(null===t||void 0===t?void 0:t.type,{blockColor:null===t||void 0===t?void 0:t.color,theme:V}))||void 0===e?void 0:e.accent}}))},edges:qn,fit:!0,forwardedRef:q,maxHeight:$.Jo,maxWidth:$.Jo,maxZoom:1,minZoom:-.7,node:function(n){var e,t,o,i,r,l;return(0,on.jsx)(kn,hn(hn({},n),{},{dragType:"port",linkable:!0,onClick:function(n,e){var t=e.data.block;bn(null),(null===En||void 0===En?void 0:En.uuid)===t.uuid||(En?Gn(t):(null===C||void 0===C||C({block:t}),setTimeout((function(){Un(t)}),1)))},onEnter:function(){null!==c&&void 0!==c&&c.upstreamBlocks||rn(!0)},onLeave:function(){return rn(!1)},port:On&&(null===pn||tn(pn,n))?(0,on.jsx)(yn,{onDrag:function(){return rn(!0)},onDragEnd:function(){rn(!1),bn(null)},onDragStart:function(n,e,t){var o=null===t||void 0===t?void 0:t.side;bn({id:null===t||void 0===t?void 0:t.id,side:o})},onEnter:function(){return rn(!0)},rx:10,ry:10,style:{fill:(0,z.qn)(null===n||void 0===n||null===(e=n.properties)||void 0===e||null===(t=e.data)||void 0===t||null===(o=t.block)||void 0===o?void 0:o.type,{blockColor:null===n||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.data)||void 0===r||null===(l=r.block)||void 0===l?void 0:l.color,theme:V}).accent,stroke:"white",strokeWidth:"1px"}}):null,style:{fill:"transparent",stroke:"transparent",strokeWidth:0},children:function(n){var e=n.height,t=n.node.data.block,o=Jn(t),i=Vn(t);i.displayText,i.kicker,i.subtitle;return(0,on.jsx)("foreignObject",{height:e,style:{pointerEvents:"none"},width:n.width,x:0,y:0,children:(0,on.jsx)(un,hn({block:t,callbackBlocks:null===jn||void 0===jn?void 0:jn[null===t||void 0===t?void 0:t.uuid],conditionalBlocks:null===wn||void 0===wn?void 0:wn[null===t||void 0===t?void 0:t.uuid],disabled:(null===En||void 0===En?void 0:En.uuid)===t.uuid,extensionBlocks:null===Rn||void 0===Rn?void 0:Rn[null===t||void 0===t?void 0:t.uuid],height:e,hideStatus:u||x,pipeline:_,selected:En?!!(0,fn.sE)(Tn,(function(n){return n.uuid===t.uuid})):(null===j||void 0===j?void 0:j.uuid)===t.uuid},o),t.uuid)})}}))},nodes:Xn,onNodeLink:function(n,e,t,o){var i,r=Dn[e.id],u=Dn[t.id],c=(null===_||void 0===_?void 0:_.type)===L.qL.INTEGRATION&&((null===r||void 0===r?void 0:r.type)===m.tf.DATA_EXPORTER||(null===r||void 0===r?void 0:r.type)===m.tf.DATA_LOADER&&(null===u||void 0===u?void 0:u.type)===m.tf.DATA_EXPORTER);if(!(null!==r&&void 0!==r&&null!==(i=r.upstream_blocks)&&void 0!==i&&i.includes(u.uuid)||e.id===t.id||c)){var l=null===o||void 0===o?void 0:o.side;Hn({fromBlock:r,portSide:l||$.rl.SOUTH,toBlock:u})}},onNodeLinkCheck:function(n,e,t){return!qn.some((function(n){return n.from===e.id&&n.to===t.id}))},onZoomChange:function(n){return null===B||void 0===B?void 0:B(n)},pannable:A,selections:J,zoomable:F})})]})}},60701:function(n,e,t){t.d(e,{Qq:function(){return f},Z7:function(){return v},cH:function(){return i},du:function(){return a},fp:function(){return d},j5:function(){return s},uM:function(){return l}});var o,i,r=t(82394),u=t(22341),c=t(24224),l="sideview",d=90;!function(n){n.ADDON_BLOCKS="addon_blocks",n.BLOCK_SETTINGS="block_settings",n.CALLBACKS="callbacks",n.CHARTS="charts",n.DATA="data",n.EXTENSIONS="power_ups",n.FILE_VERSIONS="file_versions",n.GRAPHS="graphs",n.REPORTS="reports",n.SECRETS="secrets",n.SETTINGS="settings",n.TERMINAL="terminal",n.TREE="tree",n.VARIABLES="variables"}(i||(i={}));i.BLOCK_SETTINGS,i.CALLBACKS,i.CHARTS,i.DATA,i.EXTENSIONS,i.TREE;var a=[i.DATA],s=[{key:i.TREE,label:"Tree"},{buildLabel:function(n){var e=(n.pipeline||{}).widgets,t=void 0===e?[]:e;return(null===t||void 0===t?void 0:t.length)>=1?"Charts (".concat(t.length,")"):"Charts"},key:i.CHARTS},{buildLabel:function(n){var e=n.variables;return(null===e||void 0===e?void 0:e.length)>=1?"Variables (".concat(e.length,")"):"Variables"},key:i.VARIABLES},{buildLabel:function(n){var e=n.secrets;return(null===e||void 0===e?void 0:e.length)>=1?"Secrets (".concat(e.length,")"):"Secrets"},key:i.SECRETS},{buildLabel:function(n){n.pipeline;return"Add-on blocks"},key:i.ADDON_BLOCKS},{buildLabel:function(n){var e=(n.pipeline||{}).extensions,t=void 0===e?{}:e,o=0;return Object.values(t).forEach((function(n){var e=n.blocks;o+=(null===e||void 0===e?void 0:e.length)||0})),o>=1?"Power ups (".concat(o,")"):"Power ups"},key:i.EXTENSIONS},{key:i.DATA,label:"Data"},{key:i.TERMINAL,label:"Terminal"},{key:i.BLOCK_SETTINGS,label:"Block settings"}],f=(0,c.HK)(s,(function(n){return n.key})),v=(o={},(0,r.Z)(o,i.ADDON_BLOCKS,u.EJ),(0,r.Z)(o,i.BLOCK_SETTINGS,u.JG),(0,r.Z)(o,i.CALLBACKS,u.AQ),(0,r.Z)(o,i.CHARTS,u.GQ),(0,r.Z)(o,i.DATA,u.iA),(0,r.Z)(o,i.EXTENSIONS,u.Bf),(0,r.Z)(o,i.SECRETS,u.Yo),(0,r.Z)(o,i.SETTINGS,u.Zr),(0,r.Z)(o,i.TERMINAL,u.oI),(0,r.Z)(o,i.TREE,u.mp),(0,r.Z)(o,i.VARIABLES,u.LO),o)},66050:function(n,e,t){var o;t.d(e,{V:function(){return o}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running",n.UPSTREAM_FAILED="upstream_failed",n.CONDITION_FAILED="condition_failed"}(o||(o={}))},18283:function(n,e,t){var o=t(82394),i=t(26304),r=(t(82684),t(38626)),u=t(23831),c=t(73942),l=t(2005),d=t(49125),a=t(31012),s=t(28598),f=["children"];function v(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function p(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?v(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var b=r.default.p.withConfig({displayName:"Badge__BadgeStyle",componentId:"sc-tfqsp0-0"})(["border-radius:","px;display:inline;font-family:",";margin:0;white-space:nowrap;",";"," "," ",";",";"," "," "," "," "," "," "," ",""],c.BG,l.ry,a.iD,(function(n){return n.small&&"\n ".concat(a.HC,";\n ")}),(function(n){return n.xxsmall&&"\n font-size: ".concat(a.VK,"px;\n line-height: ").concat(a.VK,"px;\n ")}),(function(n){return!n.regular&&"\n padding: 2px 4px;\n "}),(function(n){return n.regular&&"\n padding: ".concat(1*d.iI,"px ").concat(1.25*d.iI,"px;\n ")}),(function(n){return n.noVerticalPadding&&"\n padding-bottom: 0;\n padding-top: 0;\n "}),(function(n){return!n.disabled&&!n.inverted&&"\n background-color: ".concat((n.theme||u.Z).background.row,";\n color: ").concat((n.theme||u.Z).content.default,";\n ")}),(function(n){return!n.disabled&&n.inverted&&"\n background-color: ".concat((n.theme||u.Z).background.dark,";\n color: ").concat((n.theme||u.Z).content.inverted,";\n ")}),(function(n){return n.cyan&&"\n background-color: ".concat((n.theme||u.Z).accent.cyan,";\n color: ").concat((n.theme||u.Z).monotone.black,";\n ")}),(function(n){return n.disabled&&"\n background-color: ".concat((n.theme||u.Z).feature.disabled,";\n color: ").concat((n.theme||u.Z).content.disabled,";\n ")}),(function(n){return n.color&&"\n background-color: ".concat(n.color," !important;\n color: ").concat((n.theme||u.Z).content.active,";\n ")}),(function(n){return n.quantifier&&"\n border-radius: 34px;\n line-height: 10px;\n padding: 4px 6px;\n "}),(function(n){return n.monospace&&"\n font-family: ".concat(l.Vp,";\n word-break: break-all;\n ")}));e.Z=function(n){var e=n.children,t=(0,i.Z)(n,f);return(0,s.jsx)(b,p(p({},t),{},{children:e}))}},25958:function(n,e,t){t.d(e,{$1:function(){return r},Dy:function(){return i},IU:function(){return u}});var o=t(17717),i="--full-refresh";function r(n,e){var t,i=null===e||void 0===e?void 0:e.fullPath,r=null===n||void 0===n||null===(t=n.configuration)||void 0===t?void 0:t.file_path;if(i)return null===n||void 0===n?void 0:n.uuid;if(r){var u=r.split(o.sep),c=u[u.length-1].split(".");return c.pop(),c.join(".")}}function u(n){var e,t=null===n||void 0===n||null===(e=n.configuration)||void 0===e?void 0:e.file_path;if(t){var i=t.split(o.sep),r=i[0],u=i[i.length-1].split(".");return u.pop(),{directory:i.slice(1,i.length-1).join(o.sep),filePath:t,name:u.join("."),project:r}}return{filePath:t}}},33766:function(n,e,t){t.d(e,{O2:function(){return s},g_:function(){return v},u7:function(){return f}});var o=t(75582),i=t(82394),r=t(34376),u=t.n(r),c=t(59e3),l=t(24224);function d(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function a(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?d(Object(t),!0).forEach((function(e){(0,i.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var s="_offset";function f(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.preserveParams,i=e.pushHistory,r=e.replaceParams,l=(0,c.iV)(),d={};t&&t.forEach((function(n){l[n]&&(d[n]=l[n])}));var s,f=r?d:l;s=window.location.pathname;var v=i?u().push:u().replace,p=a(a({},f),n);Object.entries(n).forEach((function(n){var e=(0,o.Z)(n,2),t=e[0],i=e[1];"undefined"!==typeof i&&null!==i||delete p[t]}));var b=(0,c.uM)(p);b.length>=1&&(b="?".concat(b));var h="".concat(s.split("?")[0]).concat(b),m=u().router.basePath;return m&&h.startsWith(m)&&(h=h.replace(m,"")),v(u().router.pathname,h,{shallow:!0})}function v(n,e,t){var i=t.addingMultipleValues,r=t.isList,u=t.itemsPerPage,c=t.pushHistory,d=void 0!==c&&c,v=t.resetLimitParams,p=a({},n);i?Object.entries(e).forEach((function(n){var e=(0,o.Z)(n,2),t=e[0],i=e[1];if(Array.isArray(i)){var r="".concat(t,"[]");p[r]=i.map(String)}})):r?Object.entries(e).forEach((function(n){var e=(0,o.Z)(n,2),t=e[0],i=e[1],r=String(i),u="".concat(t,"[]"),c=p[u];c&&Array.isArray(c)?(c=c.map(String)).includes(r)?p[u]=(0,l.Od)(c,(function(n){return n===r})):p[u]=c.concat(r):p[u]=[r]})):p=a(a({},p),e),v&&(p._limit=u||20,p[s]=0),f(p,{pushHistory:d})}}}]);
|