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
|
@@ -0,0 +1 @@
|
|
|
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,P=e.breadcrumbs,S=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=[];P?(t&&ie.push(oe),ie.push.apply(ie,(0,o.Z)(P))):(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}),S]})})]}),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,P=e.onDeleteSuccess,S=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===S||void 0===S||S(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===P||void 0===P||P()},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.ZP,{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.ZP,{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.ZP,{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 ")})),P=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)),S=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=P:1===Number(i)?n=l?k:S: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)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
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.ZP,{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 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4822],{62976:function(e,n,t){t.d(n,{r:function(){return O},Z:function(){return B}});var r=t(82394),o=t(21831),i=t(82684),a=t(10919),c=t(12691),l=t.n(c),d=t(38626),u=t(72487),s=t(44628),h=t(6508),f=t(67971),m=t(19711),g=t(23831),p=t(31969),v=function(){var e=document.createElement("div");e.setAttribute("style","width: 100px; height: 100px; overflow: scroll; position:absolute; top:-9999px;"),document.body.appendChild(e);var n=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),n},b=t(2005),x=t(31012),y=t(37391),w=t(6753),j=t(49125),S=t(20567),H=t(24224),k=t(28598);function I(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?I(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C=2*j.iI+x.dN,E=20*j.iI,O=8.7,P=d.default.div.withConfig({displayName:"DataTable__Styles",componentId:"sc-1arr863-0"})([""," "," "," .body > div{","}.table{border-spacing:0;display:inline-block;"," "," "," "," .tr{.td.td-index-column{","}}.th{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;","}.th,.td{"," font-family:",";margin:0;","}.td{padding:","px;}&.sticky{overflow:auto;}.header{overflow:hidden;}}"],(function(e){return e.disableScrolling&&"\n overflow: hidden;\n "}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,"px;\n ")}),y.w5,(function(e){return!e.noBorderBottom&&"\n border-bottom: 1px solid ".concat((e.theme.borders||p.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||p.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderRight&&"\n border-right: 1px solid ".concat((e.theme.borders||p.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderTop&&"\n border-top: 1px solid ".concat((e.theme.borders||p.Z.borders).medium,";\n ")}),(function(e){return"\n color: ".concat((e.theme.content||p.Z.content).default,";\n ")}),(function(e){return"\n height: ".concat(e.columnHeaderHeight||C,"px;\n ")}),x.iD,b.ry,(function(e){return"\n background-color: ".concat((e.theme.background||p.Z.background).table,";\n border-bottom: 1px solid ").concat((e.theme.borders||p.Z.borders).medium,";\n border-right: 1px solid ").concat((e.theme.borders||p.Z.borders).medium,";\n ")}),1*j.iI);function T(e){var n=e.original,t=8.5*Math.max.apply(Math,(0,o.Z)(n.map((function(e){return(null===e||void 0===e?void 0:e.length)||0})))),r=Math.ceil(t/(E-2*j.iI));return Math.max(r,1)*x.dN+2*j.iI}function A(e){var n=e.columnHeaderHeight,t=e.columns,r=e.data,c=e.disableScrolling,y=e.height,I=e.index,P=e.invalidValues,A=e.maxHeight,B=e.numberOfIndexes,M=e.previewIndexes,_=e.renderColumnHeader,N=e.width,L=(0,i.useContext)(d.ThemeContext),R=(0,i.useRef)(null),D=(0,i.useRef)(null);(0,i.useEffect)((function(){var e=function(e){var n;null===R||void 0===R||null===(n=R.current)||void 0===n||n.scroll(e.target.scrollLeft,0)};return D&&D.current.addEventListener("scroll",e),function(){var n;null===D||void 0===D||null===(n=D.current)||void 0===n||n.removeEventListener("scroll",e)}}),[R,D]);var V=(0,i.useMemo)((function(){return I&&r&&I.length===r.length}),[r,I]),W=(0,i.useMemo)((function(){var e=[];return(0,H.w6)(B).forEach((function(n,t){var i=String(null===r||void 0===r?void 0:r.length).length*O;if(V){var a=I.map((function(e){return B>=2?String(e[t]).length:String(e).length}));i=Math.max.apply(Math,(0,o.Z)(a))*O}e.push(i+2*j.iI)})),e}),[r,I,B,V]),z=t.map((function(e){return null===e||void 0===e?void 0:e.Header})).slice(1),U=(0,i.useMemo)((function(){return v()}),[]),F=(0,i.useMemo)((function(){var e=N-(Math.max.apply(Math,(0,o.Z)(W))+1.5*j.iI+U),n=t.length-1,r=E;return r*n<e&&(r=e/n),{width:r}}),[t,W,U,N]),G=(0,s.useTable)({columns:t,data:r,defaultColumn:F},s.useBlockLayout,h.useSticky),q=G.getTableBodyProps,J=G.getTableProps,X=G.headerGroups,K=G.prepareRow,Q=G.rows,Y=new Set((null===M||void 0===M?void 0:M.removedRows)||[]),$=(0,i.useCallback)((function(e){var n=e.index,t=e.style,r=Q[n];K(r);var o=r.original,c=Y.has(n);return(0,k.jsx)("div",Z(Z({},r.getRowProps({style:Z(Z({},t),{},{width:"auto"})})),{},{className:"tr",children:r.cells.map((function(e,t){var r,d=t<=B-1,u=e.getCellProps(),s=e.column.id,h=null===P||void 0===P||null===(r=P[s])||void 0===r?void 0:r.includes(n),g=Z({},u.style);d&&(g.fontFamily=b.Vp,g.left=0,g.position="sticky",g.textAlign=I?"right":"center",g.width=W[t]);var v,x=o[t-B],y=z.indexOf(s);if(h&&(g.color=p.Z.interactive.dangerBorder),c&&(g.backgroundColor=p.Z.background.danger),Array.isArray(x)||"object"===typeof x)try{x=JSON.stringify(x)}catch(j){x="Error: cannot display value"}return d&&(V?(v=I[n],Array.isArray(v)&&(v=v[t])):v=e.render("Cell")),(0,i.createElement)("div",Z(Z({},u),{},{className:"td ".concat(d?"td-index-column":""),key:"".concat(t,"-").concat(x),style:g}),v,!d&&(0,k.jsxs)(f.Z,{justifyContent:"space-between",children:[(0,k.jsxs)(m.ZP,{danger:h,default:!0,wordBreak:!0,children:[!0===x&&"true",!1===x&&"false",(null===x||"null"===x)&&"null",!0!==x&&!1!==x&&null!==x&&"null"!==x&&x]}),h&&(0,k.jsx)(l(),{as:(0,S.o_)(w.mW,y),href:"/datasets/[...slug]",passHref:!0,children:(0,k.jsx)(a.Z,{danger:!0,children:"View all"})})]}))}))}))}),[z,I,P,W,B,K,Q,V]),ee=(0,i.useMemo)((function(){var e;return A?(e=(0,H.Sm)(Q.map(T)),e+=n||C-x.dN):(e=y,e-=n||C),e}),[n,y,A,Q]),ne=(0,i.useMemo)((function(){return(0,k.jsx)(u.S_,{estimatedItemSize:C,height:ee,itemCount:null===Q||void 0===Q?void 0:Q.length,itemSize:function(e){return T(Q[e])},outerRef:D,style:{maxHeight:A,pointerEvents:c?"none":null},children:$})}),[c,ee,A,$,Q]);return(0,k.jsx)("div",Z(Z({},J()),{},{className:"table sticky",style:{width:N},children:(0,k.jsxs)("div",Z(Z({},q()),{},{className:"body",children:[(0,k.jsx)("div",{className:"header",ref:R,children:X.map((function(e,n){return(0,i.createElement)("div",Z(Z({},e.getHeaderGroupProps()),{},{className:"tr",key:"".concat(e.id,"_").concat(n)}),e.headers.map((function(e,n){var t,r=n<=B-1,o=e.getHeaderProps(),a=Z({},o.style);return r?(a.fontFamily=b.Vp,a.left=0,a.position="sticky",a.textAlign="center",a.width=W[n],a.minWidth=W[n]):_?t=_(e,n-B,{width:F.width}):(t=e.render("Header"),a.color=(L||g.Z).content.default,a.padding=1*j.iI,a.minWidth=F.width),(0,i.createElement)("div",Z(Z({},o),{},{className:"th",key:e.id,style:a,title:r?"Row number":void 0}),t)})))}))}),ne]}))}))}var B=function(e){var n=e.columnHeaderHeight,t=e.columns,r=e.disableScrolling,o=e.height,a=e.index,c=e.invalidValues,l=e.maxHeight,d=e.noBorderBottom,u=e.noBorderLeft,s=e.noBorderRight,h=e.noBorderTop,f=e.previewIndexes,m=e.renderColumnHeader,g=e.rows,p=e.width,v=(0,i.useMemo)((function(){return null!==a&&void 0!==a&&a.length&&Array.isArray(a[0])?a[0].length:1}),[a]),b=(0,i.useMemo)((function(){return(0,H.w6)(v).map((function(e,n){return{Header:(0,H.w6)(n+1).map((function(){return" "})).join(" "),accessor:function(e,n){return n},sticky:"left"}})).concat(null===t||void 0===t?void 0:t.map((function(e){return{Header:String(e),accessor:String(e)}})))}),[t,v]);return(0,k.jsx)(P,{columnHeaderHeight:n,disableScrolling:r,height:o,maxHeight:(l||0)+37,noBorderBottom:d,noBorderLeft:u,noBorderRight:s,noBorderTop:h,children:(0,k.jsx)(A,{columnHeaderHeight:n,columns:b,data:g,disableScrolling:r,height:o,index:a,invalidValues:c,maxHeight:l,numberOfIndexes:v,previewIndexes:f,renderColumnHeader:m,width:p})})}},6753:function(e,n,t){t.d(n,{AE:function(){return o},H3:function(){return i},mW:function(){return a},oE:function(){return c},yg:function(){return r}});var r="tabs[]",o="show_columns",i="column",a="Reports",c="Visualizations"},20567:function(e,n,t){t.d(n,{o_:function(){return l}});var r=t(75582),o=t(34376),i=t(6753);t(82684),t(12691),t(60328),t(57639),t(93461),t(67971),t(10919),t(86673),t(19711),t(22341),t(28598);var a,c=t(59e3);!function(e){e.DATASETS="datasets",e.DATASET_DETAIL="dataset_detail",e.COLUMNS="features",e.COLUMN_DETAIL="feature_detail",e.EXPORT="export"}(a||(a={}));var l=function(e,n){var t=(0,o.useRouter)().query.slug,l=void 0===t?[]:t,d=(0,r.Z)(l,1)[0],u=(0,c.iV)(),s=u.show_columns,h=u.column,f="/".concat(a.DATASETS,"/").concat(d),m="".concat(i.H3,"=").concat(h||n),g="".concat(i.yg,"=").concat(e,"&").concat(m,"&").concat(i.AE,"=").concat(s||0);return"".concat(f,"?").concat(g)}},32316:function(e,n,t){t.d(n,{Z:function(){return p}});var r=t(82684),o=t(60328),i=t(67971),a=t(882),c=t(86673),l=t(19711),d=t(99994),u=t(38626),s=t(49125),h=t(37391),f=u.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],s.cd*s.iI,s.cd*s.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.allowScroll&&"\n overflow: auto;\n "}),h.w5),m=t(66653),g=t(28598);var p=function(e){var n=e.allowScroll,t=e.compact,u=e.contained,h=e.noPadding,p=e.onClickTab,v=e.regularSizeText,b=e.selectedTabUUID,x=e.small,y=e.tabs,w=(0,r.useMemo)((function(){var e=y.length,n=[];return y.forEach((function(r,u){var h=r.Icon,f=r.IconSelected,y=r.label,w=r.uuid,j=w===b,S=j&&f||h,H=y?y():w,k=(0,g.jsxs)(i.Z,{alignItems:"center",children:[S&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S,{default:!j,size:2*s.iI}),(0,g.jsx)(c.Z,{mr:1})]}),(0,g.jsx)(l.ZP,{bold:!0,default:!j,noWrapping:!0,small:!v,children:H})]});u>=1&&e>=2&&n.push((0,g.jsx)("div",{style:{marginLeft:1.5*s.iI}},"spacing-".concat(w))),j?n.push((0,g.jsx)(a.Z,{backgroundGradient:d.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:t||x,onClick:function(e){(0,m.j)(e),p(r)},paddingUnitsHorizontal:1.75,paddingUnitsVertical:1.25,small:x,children:k},w)):n.push((0,g.jsx)("div",{style:{padding:2},children:(0,g.jsx)(o.Z,{borderLess:!0,compact:t||x,default:!0,onClick:function(e){(0,m.j)(e),p(r)},outline:!0,small:x,children:k})},"button-tab-".concat(w)))})),n}),[t,p,b,x,y]),j=(0,g.jsx)(i.Z,{alignItems:"center",children:w});return u?j:(0,g.jsx)(f,{allowScroll:n,noPadding:h,children:j})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4822],{62976:function(e,n,t){t.d(n,{r:function(){return O},Z:function(){return B}});var r=t(82394),o=t(21831),i=t(82684),a=t(10919),c=t(12691),l=t.n(c),d=t(38626),u=t(72487),s=t(44628),h=t(6508),f=t(67971),m=t(19711),g=t(23831),p=t(31969),v=function(){var e=document.createElement("div");e.setAttribute("style","width: 100px; height: 100px; overflow: scroll; position:absolute; top:-9999px;"),document.body.appendChild(e);var n=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),n},b=t(2005),x=t(31012),y=t(37391),w=t(6753),j=t(49125),S=t(20567),H=t(24224),k=t(28598);function I(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?I(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C=2*j.iI+x.dN,E=20*j.iI,O=8.7,P=d.default.div.withConfig({displayName:"DataTable__Styles",componentId:"sc-1arr863-0"})([""," "," "," .body > div{","}.table{border-spacing:0;display:inline-block;"," "," "," "," .tr{.td.td-index-column{","}}.th{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;","}.th,.td{"," font-family:",";margin:0;","}.td{padding:","px;}&.sticky{overflow:auto;}.header{overflow:hidden;}}"],(function(e){return e.disableScrolling&&"\n overflow: hidden;\n "}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,"px;\n ")}),y.w5,(function(e){return!e.noBorderBottom&&"\n border-bottom: 1px solid ".concat((e.theme.borders||p.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||p.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderRight&&"\n border-right: 1px solid ".concat((e.theme.borders||p.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderTop&&"\n border-top: 1px solid ".concat((e.theme.borders||p.Z.borders).medium,";\n ")}),(function(e){return"\n color: ".concat((e.theme.content||p.Z.content).default,";\n ")}),(function(e){return"\n height: ".concat(e.columnHeaderHeight||C,"px;\n ")}),x.iD,b.ry,(function(e){return"\n background-color: ".concat((e.theme.background||p.Z.background).table,";\n border-bottom: 1px solid ").concat((e.theme.borders||p.Z.borders).medium,";\n border-right: 1px solid ").concat((e.theme.borders||p.Z.borders).medium,";\n ")}),1*j.iI);function T(e){var n=e.original,t=8.5*Math.max.apply(Math,(0,o.Z)(n.map((function(e){return(null===e||void 0===e?void 0:e.length)||0})))),r=Math.ceil(t/(E-2*j.iI));return Math.max(r,1)*x.dN+2*j.iI}function A(e){var n=e.columnHeaderHeight,t=e.columns,r=e.data,c=e.disableScrolling,y=e.height,I=e.index,P=e.invalidValues,A=e.maxHeight,B=e.numberOfIndexes,M=e.previewIndexes,_=e.renderColumnHeader,N=e.width,L=(0,i.useContext)(d.ThemeContext),R=(0,i.useRef)(null),D=(0,i.useRef)(null);(0,i.useEffect)((function(){var e=function(e){var n;null===R||void 0===R||null===(n=R.current)||void 0===n||n.scroll(e.target.scrollLeft,0)};return D&&D.current.addEventListener("scroll",e),function(){var n;null===D||void 0===D||null===(n=D.current)||void 0===n||n.removeEventListener("scroll",e)}}),[R,D]);var V=(0,i.useMemo)((function(){return I&&r&&I.length===r.length}),[r,I]),W=(0,i.useMemo)((function(){var e=[];return(0,H.w6)(B).forEach((function(n,t){var i=String(null===r||void 0===r?void 0:r.length).length*O;if(V){var a=I.map((function(e){return B>=2?String(e[t]).length:String(e).length}));i=Math.max.apply(Math,(0,o.Z)(a))*O}e.push(i+2*j.iI)})),e}),[r,I,B,V]),z=t.map((function(e){return null===e||void 0===e?void 0:e.Header})).slice(1),U=(0,i.useMemo)((function(){return v()}),[]),F=(0,i.useMemo)((function(){var e=N-(Math.max.apply(Math,(0,o.Z)(W))+1.5*j.iI+U),n=t.length-1,r=E;return r*n<e&&(r=e/n),{width:r}}),[t,W,U,N]),G=(0,s.useTable)({columns:t,data:r,defaultColumn:F},s.useBlockLayout,h.useSticky),q=G.getTableBodyProps,J=G.getTableProps,X=G.headerGroups,K=G.prepareRow,Q=G.rows,Y=new Set((null===M||void 0===M?void 0:M.removedRows)||[]),$=(0,i.useCallback)((function(e){var n=e.index,t=e.style,r=Q[n];K(r);var o=r.original,c=Y.has(n);return(0,k.jsx)("div",Z(Z({},r.getRowProps({style:Z(Z({},t),{},{width:"auto"})})),{},{className:"tr",children:r.cells.map((function(e,t){var r,d=t<=B-1,u=e.getCellProps(),s=e.column.id,h=null===P||void 0===P||null===(r=P[s])||void 0===r?void 0:r.includes(n),g=Z({},u.style);d&&(g.fontFamily=b.Vp,g.left=0,g.position="sticky",g.textAlign=I?"right":"center",g.width=W[t]);var v,x=o[t-B],y=z.indexOf(s);if(h&&(g.color=p.Z.interactive.dangerBorder),c&&(g.backgroundColor=p.Z.background.danger),Array.isArray(x)||"object"===typeof x)try{x=JSON.stringify(x)}catch(j){x="Error: cannot display value"}return d&&(V?(v=I[n],Array.isArray(v)&&(v=v[t])):v=e.render("Cell")),(0,i.createElement)("div",Z(Z({},u),{},{className:"td ".concat(d?"td-index-column":""),key:"".concat(t,"-").concat(x),style:g}),v,!d&&(0,k.jsxs)(f.ZP,{justifyContent:"space-between",children:[(0,k.jsxs)(m.ZP,{danger:h,default:!0,wordBreak:!0,children:[!0===x&&"true",!1===x&&"false",(null===x||"null"===x)&&"null",!0!==x&&!1!==x&&null!==x&&"null"!==x&&x]}),h&&(0,k.jsx)(l(),{as:(0,S.o_)(w.mW,y),href:"/datasets/[...slug]",passHref:!0,children:(0,k.jsx)(a.Z,{danger:!0,children:"View all"})})]}))}))}))}),[z,I,P,W,B,K,Q,V]),ee=(0,i.useMemo)((function(){var e;return A?(e=(0,H.Sm)(Q.map(T)),e+=n||C-x.dN):(e=y,e-=n||C),e}),[n,y,A,Q]),ne=(0,i.useMemo)((function(){return(0,k.jsx)(u.S_,{estimatedItemSize:C,height:ee,itemCount:null===Q||void 0===Q?void 0:Q.length,itemSize:function(e){return T(Q[e])},outerRef:D,style:{maxHeight:A,pointerEvents:c?"none":null},children:$})}),[c,ee,A,$,Q]);return(0,k.jsx)("div",Z(Z({},J()),{},{className:"table sticky",style:{width:N},children:(0,k.jsxs)("div",Z(Z({},q()),{},{className:"body",children:[(0,k.jsx)("div",{className:"header",ref:R,children:X.map((function(e,n){return(0,i.createElement)("div",Z(Z({},e.getHeaderGroupProps()),{},{className:"tr",key:"".concat(e.id,"_").concat(n)}),e.headers.map((function(e,n){var t,r=n<=B-1,o=e.getHeaderProps(),a=Z({},o.style);return r?(a.fontFamily=b.Vp,a.left=0,a.position="sticky",a.textAlign="center",a.width=W[n],a.minWidth=W[n]):_?t=_(e,n-B,{width:F.width}):(t=e.render("Header"),a.color=(L||g.Z).content.default,a.padding=1*j.iI,a.minWidth=F.width),(0,i.createElement)("div",Z(Z({},o),{},{className:"th",key:e.id,style:a,title:r?"Row number":void 0}),t)})))}))}),ne]}))}))}var B=function(e){var n=e.columnHeaderHeight,t=e.columns,r=e.disableScrolling,o=e.height,a=e.index,c=e.invalidValues,l=e.maxHeight,d=e.noBorderBottom,u=e.noBorderLeft,s=e.noBorderRight,h=e.noBorderTop,f=e.previewIndexes,m=e.renderColumnHeader,g=e.rows,p=e.width,v=(0,i.useMemo)((function(){return null!==a&&void 0!==a&&a.length&&Array.isArray(a[0])?a[0].length:1}),[a]),b=(0,i.useMemo)((function(){return(0,H.w6)(v).map((function(e,n){return{Header:(0,H.w6)(n+1).map((function(){return" "})).join(" "),accessor:function(e,n){return n},sticky:"left"}})).concat(null===t||void 0===t?void 0:t.map((function(e){return{Header:String(e),accessor:String(e)}})))}),[t,v]);return(0,k.jsx)(P,{columnHeaderHeight:n,disableScrolling:r,height:o,maxHeight:(l||0)+37,noBorderBottom:d,noBorderLeft:u,noBorderRight:s,noBorderTop:h,children:(0,k.jsx)(A,{columnHeaderHeight:n,columns:b,data:g,disableScrolling:r,height:o,index:a,invalidValues:c,maxHeight:l,numberOfIndexes:v,previewIndexes:f,renderColumnHeader:m,width:p})})}},6753:function(e,n,t){t.d(n,{AE:function(){return o},H3:function(){return i},mW:function(){return a},oE:function(){return c},yg:function(){return r}});var r="tabs[]",o="show_columns",i="column",a="Reports",c="Visualizations"},20567:function(e,n,t){t.d(n,{o_:function(){return l}});var r=t(75582),o=t(34376),i=t(6753);t(82684),t(12691),t(60328),t(57639),t(93461),t(67971),t(10919),t(86673),t(19711),t(22341),t(28598);var a,c=t(59e3);!function(e){e.DATASETS="datasets",e.DATASET_DETAIL="dataset_detail",e.COLUMNS="features",e.COLUMN_DETAIL="feature_detail",e.EXPORT="export"}(a||(a={}));var l=function(e,n){var t=(0,o.useRouter)().query.slug,l=void 0===t?[]:t,d=(0,r.Z)(l,1)[0],u=(0,c.iV)(),s=u.show_columns,h=u.column,f="/".concat(a.DATASETS,"/").concat(d),m="".concat(i.H3,"=").concat(h||n),g="".concat(i.yg,"=").concat(e,"&").concat(m,"&").concat(i.AE,"=").concat(s||0);return"".concat(f,"?").concat(g)}},32316:function(e,n,t){t.d(n,{Z:function(){return p}});var r=t(82684),o=t(60328),i=t(67971),a=t(882),c=t(86673),l=t(19711),d=t(99994),u=t(38626),s=t(49125),h=t(37391),f=u.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],s.cd*s.iI,s.cd*s.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.allowScroll&&"\n overflow: auto;\n "}),h.w5),m=t(66653),g=t(28598);var p=function(e){var n=e.allowScroll,t=e.compact,u=e.contained,h=e.noPadding,p=e.onClickTab,v=e.regularSizeText,b=e.selectedTabUUID,x=e.small,y=e.tabs,w=(0,r.useMemo)((function(){var e=y.length,n=[];return y.forEach((function(r,u){var h=r.Icon,f=r.IconSelected,y=r.label,w=r.uuid,j=w===b,S=j&&f||h,H=y?y():w,k=(0,g.jsxs)(i.ZP,{alignItems:"center",children:[S&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S,{default:!j,size:2*s.iI}),(0,g.jsx)(c.Z,{mr:1})]}),(0,g.jsx)(l.ZP,{bold:!0,default:!j,noWrapping:!0,small:!v,children:H})]});u>=1&&e>=2&&n.push((0,g.jsx)("div",{style:{marginLeft:1.5*s.iI}},"spacing-".concat(w))),j?n.push((0,g.jsx)(a.Z,{backgroundGradient:d.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:t||x,onClick:function(e){(0,m.j)(e),p(r)},paddingUnitsHorizontal:1.75,paddingUnitsVertical:1.25,small:x,children:k},w)):n.push((0,g.jsx)("div",{style:{padding:2},children:(0,g.jsx)(o.Z,{borderLess:!0,compact:t||x,default:!0,onClick:function(e){(0,m.j)(e),p(r)},outline:!0,small:x,children:k})},"button-tab-".concat(w)))})),n}),[t,p,b,x,y]),j=(0,g.jsx)(i.ZP,{alignItems:"center",children:w});return u?j:(0,g.jsx)(f,{allowScroll:n,noPadding:h,children:j})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[547],{1210:function(e,n,t){t.d(n,{Z:function(){return w}});var i=t(82394),r=t(21831),o=t(82684),l=t(47999),c=t(49894),u=t(93461),s=t(57384),a=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 h=o.forwardRef(p),b=t(32063),m=t(85019),g=t(82531),y=t(66166),v=t(3055),O=t(49125),j=t(91427),S=t(24141);function I(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?I(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n,t=e.addProjectBreadcrumbToCustomBreadcrumbs,i=e.after,p=e.afterHidden,I=e.afterWidth,w=e.afterWidthOverride,P=e.before,N=e.beforeWidth,k=e.breadcrumbs,Z=e.children,_=e.errors,M=e.headerMenuItems,E=e.headerOffset,C=e.mainContainerHeader,H=e.navigationItems,z=e.setErrors,L=e.subheaderChildren,R=e.title,B=e.uuid,T=(0,S.i)().width,D="dashboard_after_width_".concat(B),G="dashboard_before_width_".concat(B),A=(0,o.useRef)(null),F=(0,o.useState)(w?I:(0,j.U2)(D,I)),W=F[0],U=F[1],K=(0,o.useState)(!1),Y=K[0],q=K[1],Q=(0,o.useState)(P?Math.max((0,j.U2)(G,N),13*O.iI):null),J=Q[0],X=Q[1],V=(0,o.useState)(!1),$=V[0],ee=V[1],ne=(0,o.useState)(null)[1],te=g.ZP.projects.list({},{revalidateOnFocus:!1}).data,ie=null===te||void 0===te?void 0:te.projects,re={label:function(){var e;return null===ie||void 0===ie||null===(e=ie[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},oe=[];k?(t&&oe.push(re),oe.push.apply(oe,(0,r.Z)(k))):(null===ie||void 0===ie?void 0:ie.length)>=1&&oe.push.apply(oe,[re,{bold:!0,label:function(){return R}}]),(0,o.useEffect)((function(){null===A||void 0===A||!A.current||Y||$||null===ne||void 0===ne||ne(A.current.getBoundingClientRect().width)}),[Y,W,$,J,A,ne,T]),(0,o.useEffect)((function(){Y||(0,j.t8)(D,W)}),[p,Y,W,D]),(0,o.useEffect)((function(){$||(0,j.t8)(G,J)}),[$,J,G]);var le=(0,y.Z)(I);return(0,o.useEffect)((function(){w&&le!==I&&U(I)}),[w,I,le]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:R}),(0,f.jsx)(a.Z,{breadcrumbs:oe,menuItems:M,project:null===ie||void 0===ie?void 0:ie[0],version:null===ie||void 0===ie||null===(n=ie[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===H||void 0===H?void 0:H.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(m.Z,{navigationItems:H,showMore:!0})}),(0,f.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(b.Z,{after:i,afterHeightOffset:v.Mz,afterHidden:p,afterMousedownActive:Y,afterWidth:W,before:P,beforeHeightOffset:v.Mz,beforeMousedownActive:$,beforeWidth:d.k1+(P?J:0),headerOffset:E,hideAfterCompletely:!0,leftOffset:P?d.k1:null,mainContainerHeader:C,mainContainerRef:A,setAfterMousedownActive:q,setAfterWidth:U,setBeforeMousedownActive:ee,setBeforeWidth:X,children:[L&&(0,f.jsx)(h,{children:L}),Z]})})]}),_&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===z||void 0===z?void 0:z(null)},children:(0,f.jsx)(c.Z,x(x({},_),{},{onClose:function(){return null===z||void 0===z?void 0:z(null)}}))})]})}},59920:function(e,n,t){var i;t.d(n,{M:function(){return i}}),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"}(i||(i={}))},60547:function(e,n,t){t.d(n,{Z:function(){return N}});var i=t(82394),r=t(21831),o=t(82684),l=t(34376),c=t(47999),u=t(1210),s=t(34744),a=t(49894),d=t(67971),f=t(87372),p=t(86673),h=t(82531),b=t(38626),m=t(23831),g=t(73942),y=t(49125),v=b.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],g.n_,3*y.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||m.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 ')})),O=t(3055),j=t(36405),S=t(96510),I=t(24141),x=t(28598);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var N=function(e){var n=e.after,t=e.afterHidden,i=e.afterWidth,b=e.before,m=e.beforeWidth,g=e.breadcrumbs,w=e.buildSidekick,N=e.children,k=e.errors,Z=e.headline,_=e.pageName,M=e.pipeline,E=e.setErrors,C=e.subheader,H=e.subheaderBackground,z=e.subheaderBackgroundImage,L=e.subheaderButton,R=e.subheaderText,B=e.title,T=e.uuid,D=(0,I.i)().height,G=(0,l.useRouter)().query.pipeline,A=M.uuid,F=h.ZP.pipelines.detail(A,{includes_outputs:!1},{revalidateOnFocus:!1}).data,W=null===F||void 0===F?void 0:F.pipeline;(0,o.useEffect)((function(){(0,S.bB)(F,E)}),[F,E]);var U=(0,o.useMemo)((function(){return n||(w?w({height:D,heightOffset:O.Mz,pipeline:W}):null)}),[n,w,D,W]),K=i||(U?50*y.iI:null),Y=(0,o.useMemo)((function(){var e=[];return W?(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),g?(e.push({label:function(){return W.uuid},linkProps:{as:"/pipelines/".concat(A,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,r.Z)(g)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return W.name}})):null!==F&&void 0!==F&&F.error&&e.push({bold:!0,danger:!0,label:function(){return"Error loading pipeline"}}),e}),[g,null===F||void 0===F?void 0:F.error,W,A]);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(u.Z,{after:U,afterHidden:t,afterWidth:K,before:b,beforeWidth:m,breadcrumbs:Y,navigationItems:(0,j.H)(_,W,G),subheaderChildren:"undefined"!==typeof C&&C,title:W?B?B(W):W.name:null,uuid:T,children:[(L||R)&&(0,x.jsx)(p.Z,{mb:y.Mq,mt:y.cd,mx:y.cd,children:(0,x.jsx)(v,{background:H,backgroundImage:z,children:(0,x.jsxs)(d.ZP,{alignItems:"center",children:[L,R&&(0,x.jsx)(p.Z,{ml:3}),R]})})}),Z&&(0,x.jsx)(p.Z,{p:y.cd,children:(0,x.jsxs)(p.Z,{mt:y.cd,px:y.cd,children:[(0,x.jsx)(f.Z,{level:5,children:Z}),(0,x.jsx)(s.Z,{light:!0,mt:y.cd,short:!0})]})}),N]}),k&&(0,x.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===E||void 0===E?void 0:E(null)},children:(0,x.jsx)(a.Z,P(P({},k),{},{onClose:function(){return null===E||void 0===E?void 0:E(null)}}))})]})}},36405:function(e,n,t){t.d(n,{H:function(){return c}});var i=t(98781),r=t(22341),o=t(59920),l=t(9736);function c(e,n,t){var c=(n||{}).uuid||t,u=[{Icon:r.Bf,id:o.M.TRIGGERS,isSelected:function(){return o.M.TRIGGERS===e},label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(c,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{Icon:r.Pf,id:o.M.RUNS,isSelected:function(){return o.M.RUNS===e},label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(c,"/runs"),href:"/pipelines/[pipeline]/runs"}},{Icon:r.dE,id:o.M.BACKFILLS,isSelected:function(){return o.M.BACKFILLS===e},label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(c,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{Icon:r.UL,id:o.M.PIPELINE_LOGS,isSelected:function(){return o.M.PIPELINE_LOGS===e},label:function(){return"Logs"},linkProps:{as:"/pipelines/".concat(c,"/logs"),href:"/pipelines/[pipeline]/logs"}},{Icon:r.ug,id:o.M.MONITOR,isSelected:function(){return o.M.MONITOR===e},label:function(){return"Monitor"},linkProps:{as:"/pipelines/".concat(c,"/monitors"),href:"/pipelines/[pipeline]/monitors"}}];return i.qL.INTEGRATION===(null===n||void 0===n?void 0:n.type)&&u.unshift({Icon:r.Nt,id:o.M.SYNCS,isSelected:function(){return o.M.SYNCS===e},label:function(){return"Syncs"},linkProps:{as:"/pipelines/".concat(c,"/syncs"),href:"/pipelines/[pipeline]/syncs"}}),(0,l.Ct)()||(u.unshift({Icon:r.EK,disabled:!c,id:o.M.EDIT,isSelected:function(){return o.M.EDIT===e},label:function(){return"Edit pipeline"},linkProps:{as:"/pipelines/".concat(c,"/edit"),href:"/pipelines/[pipeline]/edit"}}),u.push({Icon:r.Zr,id:o.M.SETTINGS,isSelected:function(){return o.M.SETTINGS===e},label:function(){return"Pipeline settings"},linkProps:{as:"/pipelines/".concat(c,"/settings"),href:"/pipelines/[pipeline]/settings"}})),u}},87372:function(e,n,t){var i,r,o,l,c,u,s,a,d=t(82394),f=t(26304),p=t(26653),h=t(38626),b=t(33591),m=t(23831),g=t(2005),y=t(31012),v=t(19711),O=t(49125),j=t(86673),S=t(28598),I=["children","condensed","inline","level","marketing","spacingBelow"];function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],v.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||m.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(g.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(g.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(g.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(g.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(g.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),N=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||m.Z.content).active,";\n ")})),k=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],P,b.media.md(i||(i=(0,p.Z)(["\n ","\n "])),y.aQ),b.media.lg(r||(r=(0,p.Z)(["\n ","\n "])),y.aQ),b.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),y.aQ)),Z=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],P,y.MJ),_=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],P,b.media.xs(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),b.media.sm(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),b.media.md(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),b.media.lg(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),b.media.xl(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI)),M=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],P,y.BL),E=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],P),C=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],P),H=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],P),z=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],P,(function(e){return 1===e.level&&"\n ".concat(y.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(y.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 "})),L=function(e){var n,t=e.children,i=e.condensed,r=e.inline,o=e.level,l=e.marketing,c=e.spacingBelow,u=(0,f.Z)(e,I);r?n=z:0===Number(o)?n=k:1===Number(o)?n=l?_:Z:2===Number(o)?n=M:3===Number(o)?n=E:4===Number(o)?n=C:5===Number(o)&&(n=H);var s=(0,S.jsxs)(n,w(w({},u),{},{level:o,children:[c&&(0,S.jsx)(j.Z,{mb:i?2:3,children:t}),!c&&t]}));return r?s:(0,S.jsx)(N,{children:s})};L.defaultProps={level:3,weightStyle:6},n.Z=L}}]);
|
|
@@ -0,0 +1 @@
|
|
|
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,U=n.setSelectedFile,B=n.theme,z=n.timeout,q=n.uncollapsed,W=n.useRootFolder,Y=u.children,$=u.disabled,G=u.name,H=u.parent;G||t||(u.name=Z);var Q,X=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(X,J):$||"__init__.py"===G||!(null===G||void 0===G||!G.match(/^\./))||!G.match(f.d2)&&!Y,ee=c?c(X,J):$||"__init__.py"===G||!(null===G||void 0===G||!G.match(/^\./))&&!J||!G.match(f.d2)&&!Y,ne="".concat(s,"/").concat(G),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&&G===f.oy?ie=h.B_:G===f.PF?ie=h.er:J?ie=h.gt:!G&&t&&(ie=h.mH),J&&a.$W.includes((0,x.C5)(G))&&(0,x.C5)(G)!==a.tf.CHART&&(Q=(0,y.qn)((0,x.C5)(G),{theme:B}).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:U,theme:B,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,U,B,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===B||void 0===B||null===(o=B.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,B,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(X):re((function(e){return(0,j.t8)(ne,!e),!e})),null===F||void 0===F||F(X);else if(O)O(X);else if(t)null===P||void 0===P||P(t.uuid,t.type,(0,C.jN)(u));else if(G.match(f.xF))null===_||void 0===_||_(X);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),U(u))},onMouseDown:function(e){var n,t=u?(0,C.lr)(u,null,!0):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),U(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:[!Q&&(0,w.jsx)(ie,{disabled:K,size:m.ZG}),Q&&(0,w.jsx)(d.Z,{color:Q,size:m.ZG,square:!0})]}),(0,w.jsx)(v.ZP,{color:Q,default:!Q&&!ee,disabled:ee,monospace:!0,small:!0,children:G})]}),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.ZP,{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.ZP,{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})})]})},U=t(98781),B=t(62609),z=t(55106),q=t(66176),W=t(87815),Y=t(23831),$=t(73942),G=(b.iI,u.default.div.withConfig({displayName:"indexstyle__DropZoneStyle",componentId:"sc-1g3zz7z-0"})(["border-radius:","px;padding:","px;max-width:","px;min-width:","px;",""],$.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 Q=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.ZP,{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)(G,{children:(0,w.jsxs)(v.ZP,{center:!0,children:[u&&"Drop to upload",!u&&"Click or drop files and folders to upload"]})})})]})},X=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],$=(0,l.useState)(null),G=$[0],H=$[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)(B.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)===U.qL.INTEGRATION,a=(0,V.TU)(ne(ne({},W),{},{path:(0,C.jN)(W)}),te,O);null===t||void 0===t||t(ne(ne({},a),{},{require_unique_name:!1}),(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 G&&(0,C.lr)(G)}),[G]),Ce=(0,l.useMemo)((function(){return W&&(0,C.lr)(W)}),[W]),ke=(0,l.useMemo)((function(){return G&&"undefined"!==typeof(null===G||void 0===G?void 0:G.children)&&G}),[G]),xe=(0,J.dd)((function(){return(0,w.jsx)(Q,{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&&!G&&!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"}]):G&&(v.push.apply(v,[{label:function(){return"Rename file"},onClick:function(){Pe({file:G})},uuid:"rename_file"},{label:function(){return"Move file"},onClick:function(){Pe({file:G,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)(G);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:X.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,G,ke]);return(0,w.jsxs)(m.Nk,{ref:n,children:[je,(ye||G||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:X.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},u$:function(){return v}});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=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=u(e,c).split(o.sep);if(!s)return null;if(1===s.length)(s=null===e||void 0===e||null===(t=e.path)||void 0===t?void 0:t.split(o.sep))&&(n=s[0]===r.tf.CUSTOM?s[0]:(0,l.C5)(s[0]||""));else if(s[1]===r.tf.CUSTOM)n=s[1];else{var d=s[1];n=r.tf.DBT===d?d:(0,l.C5)(d||"")}if(!s||r.tf.DBT===n)return null;var f="";f=s.length>=3?s.slice(2,s.length).join(o.sep):s[s.length-1];var p=["\\.".concat(i.Lu.PY),"\\.".concat(i.Lu.R),"\\.".concat(i.Lu.SQL),"\\.".concat(i.Lu.YAML),"\\.".concat(i.Lu.YML)].join("|"),v=new RegExp("".concat(p,"$")),h=a?r.Q3:r.$W;if(h.concat(r.tf.DBT).includes(n)&&f.match(v)){var m=f.lastIndexOf("."),b=f.slice(m+1);return{language:i.nB[b],type:n,uuid:f.slice(0,m)}}}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}))}function v(e){var n=e||{},t=n.language,o=n.name,u=n.type;if(o&&t&&u){var c=u===r.tf.CUSTOM?u:"".concat(u,"s"),a=i.JD[t],s=(0,l.kE)(o);return"".concat(c,"/").concat(s,".").concat(a)}}},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})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6422],{44162:function(n,t,e){e.d(t,{HC:function(){return m},Kf:function(){return s},Nk:function(){return f},PY:function(){return p},gE:function(){return T},jv:function(){return A},nz:function(){return b},oh:function(){return a},qn:function(){return d},t1:function(){return h},y9:function(){return v}});var r=e(38626),o=e(23831),i=e(86422),c=e(73942),u=e(49125),l=e(90880),a=68;function d(n,t){var e,r,c=((null===t||void 0===t||null===(e=t.theme)||void 0===e?void 0:e.borders)||o.Z.borders).light,u=((null===t||void 0===t||null===(r=t.theme)||void 0===r?void 0:r.monotone)||o.Z.monotone).grey500,l=t||{},a=l.blockColor,d=l.isSelected,s=l.theme;return d?c=(s||o.Z).content.active:i.tf.TRANSFORMER===n||a===i.Lq.PURPLE?(c=(s||o.Z).accent.purple,u=(s||o.Z).accent.purpleLight):i.tf.DATA_EXPORTER===n||a===i.Lq.YELLOW?(c=(s||o.Z).accent.yellow,u=(s||o.Z).accent.yellowLight):i.tf.DATA_LOADER===n||a===i.Lq.BLUE?(c=(s||o.Z).accent.blue,u=(s||o.Z).accent.blueLight):i.tf.MARKDOWN===n?(c=(s||o.Z).accent.sky,u=(s||o.Z).accent.skyLight):i.tf.SENSOR===n||a===i.Lq.PINK?(c=(s||o.Z).accent.pink,u=(s||o.Z).accent.pinkLight):i.tf.DBT===n?(c=(s||o.Z).accent.dbt,u=(s||o.Z).accent.dbtLight):i.tf.EXTENSION===n||a===i.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).teal,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).tealLight):i.tf.CALLBACK===n?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).rose,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).roseLight):i.tf.CONDITIONAL===n||i.tf.SCRATCHPAD===n||a===i.Lq.GREY||i.tf.CUSTOM===n&&!a?(c=(s||o.Z).content.default,u=(s||o.Z).accent.contentDefaultTransparent):i.tf.GLOBAL_DATA_PRODUCT!==n||a||(c=(s||o.Z).monotone.white,u=(s||o.Z).monotone.whiteTransparent),{accent:c,accentLight:u}}var s=(0,r.css)([""," "," "," "," "," "," ",""],(0,l.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(d(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(d(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||o.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||o.Z.borders).danger,";\n ")}),(function(n){return n.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(n){return n.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),f=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),p=r.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],s,c.n_,c.M8,c.mP,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n\n &:hover {\n border-color: ").concat(d(n.blockType,n).accent,";\n }\n ")})),b=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-2"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," "," ",""],s,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,u.iI,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n ")}),(function(n){return n.bottomBorder&&"\n border-bottom: ".concat(c.YF,"px ").concat(c.M8," ").concat((n.theme||o.Z).borders.medium2,";\n ")}),(function(n){return n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")})),A=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-3"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],s,c.M8,c.mP,c.M8,c.mP,u.iI,u.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(n){return n.lightBackground&&"\n background-color: ".concat((n.theme||o.Z).background.content,";\n ")}),(function(n){return!n.hasOutput&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n ")})),T=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-4"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*u.iI,.5*u.iI,(function(n){return n.additionalZIndex>0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||o.Z.text).fileBrowser,";\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-5"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*u.iI),v=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-6"})(["margin-bottom:","px;padding-bottom:","px;",""],1*u.iI,1*u.iI,(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?u.iI:a,"px;\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-7"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,a)},75968:function(n,t,e){e.d(t,{J8:function(){return T},MS:function(){return h},Ts:function(){return A},YW:function(){return O},_o:function(){return v},eY:function(){return p},fA:function(){return b},h5:function(){return m},oI:function(){return E}});var r=e(82394),o=e(86422),i=e(82635),c=e(98781),u=e(90211),l=e(44162),a=e(33766),d=e(60701);function s(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function f(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?s(Object(e),!0).forEach((function(t){(0,r.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):s(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var p=function(n,t){var e=(null===t||void 0===t?void 0:t.upstream_blocks)||[];return o.iZ.includes(null===n||void 0===n?void 0:n.type)||o.iZ.includes(null===t||void 0===t?void 0:t.type)||o.tf.DATA_LOADER===(null===t||void 0===t?void 0:t.type)&&o.tf.SENSOR!==n.type||e.push(n.uuid),e},b=function(n,t,e){var r=[];return(null===n||void 0===n?void 0:n.type)!==c.qL.STREAMING||o.iZ.includes(null===t||void 0===t?void 0:t.type)||o.iZ.includes(null===e||void 0===e?void 0:e.type)||(r=r.concat((null===t||void 0===t?void 0:t.downstream_blocks)||[])),r},A=function(n,t,e,r){for(var i,c=[],l=t.findIndex((function(t){return t.uuid===n.uuid}));!i&&l>=0;){var a;i=t[l-1],o.tf.SCRATCHPAD===(null===(a=i)||void 0===a?void 0:a.type)&&(i=null),l-=1}return i&&c.push(i.uuid),o.Ut.map((function(t){return{label:function(){return"Convert to ".concat((0,u.wX)(o.V4[t]))},onClick:function(){return r({converted_from_type:t,converted_from_uuid:n.uuid,type:t,upstream_blocks:c})},uuid:"".concat(e,"/convert_to/").concat(t)}}))},T=function(n,t,e,r,i,c){var u=n||{},l=u.configuration,s=u.downstream_blocks,p=u.has_callback,b=u.language,A=u.metadata,T=u.replicated_block,h=u.type,v=u.upstream_blocks,m=u.uuid,E=l||{},O=E.dynamic,R=E.reduce_output,y=o.tf.DBT===h,g=[];if(o.tf.SCRATCHPAD!==h&&![o.tf.CALLBACK,o.tf.EXTENSION,o.tf.MARKDOWN].includes(h)){g.push.apply(g,[{label:function(){return y?"Execute and run all upstream blocks":"Execute with all upstream blocks"},onClick:function(){return t({block:n,runUpstream:!0})},uuid:"execute_upstream"},{label:function(){return y?"Execute and run incomplete upstream blocks":"Execute with incomplete upstream blocks"},onClick:function(){return t({block:n,runIncompleteUpstream:!0})},uuid:"execute_incomplete_upstream"}]),y||o.tf.GLOBAL_DATA_PRODUCT===h||g.push({label:function(){return"Execute block and run tests"},onClick:function(){return t({block:n,runTests:!0})},uuid:"run_tests"});var S,C,_=c||{},k=_.addNewBlock,L=_.blocksMapping,D=_.fetchFileTree,N=_.fetchPipeline,P=_.savePipelineContent,I=_.updatePipeline,Z=[];if(null===s||void 0===s||s.forEach((function(n){var t=null===L||void 0===L?void 0:L[n];t&&t.upstream_blocks.forEach((function(n){var t,e;null!==L&&void 0!==L&&null!==(t=L[n])&&void 0!==t&&null!==(e=t.configuration)&&void 0!==e&&e.dynamic&&Z.push(L[n])}))})),y&&o.t6.SQL===b)null!==A&&void 0!==A&&null!==(S=A.dbt)&&void 0!==S&&null!==(C=S.block)&&void 0!==C&&C.snapshot||g.unshift.apply(g,[{label:function(){return"Run model"},onClick:function(){return t({block:n,runSettings:{run_model:!0}})},tooltip:function(){return"Execute command dbt run."},uuid:"run_model"},{label:function(){return"Test model"},onClick:function(){return t({block:n,runSettings:{test_model:!0}})},tooltip:function(){return"Execute command dbt test."},uuid:"test_model"},{label:function(){return"Build model"},onClick:function(){return t({block:n,runSettings:{build_model:!0}})},tooltip:function(){return"Execute command dbt build."},uuid:"build_model"},{label:function(){return"Add upstream models"},onClick:function(){I({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(y||o.tf.GLOBAL_DATA_PRODUCT===h||!P||!O&&0!==Z.length||g.push({label:function(){return O?"Disable block as dynamic":"Set block as dynamic"},onClick:function(){return P({block:f(f({},n),{},{configuration:f(f({},l),{},{dynamic:!O})})})},uuid:"dynamic"}),L)(null===v||void 0===v?void 0:v.find((function(n){var t,e;return null===L||void 0===L||null===(t=L[n])||void 0===t||null===(e=t.configuration)||void 0===e?void 0:e.dynamic})))&&g.push({label:function(){return R?"Don\u2019t reduce output":"Reduce output"},onClick:function(){return P({block:f(f({},n),{},{configuration:f(f({},l),{},{reduce_output:!R})})})},uuid:"reduce_output"});g.push({label:function(){return p?"Remove callback":"Add callback"},onClick:function(){if(p)return P({block:f(f({},n),{},{has_callback:!p})}).then((function(){D(),N()}));(0,a.u7)({sideview:d.cH.CALLBACKS})},uuid:"has_callback"}),y||g.push({disabled:!!T,label:function(){return"Replicate block"},onClick:function(){return k({replicated_block:m})},uuid:"Replicate block"})}return g.push({label:function(){return"Delete block"},onClick:function(){e(n),r(!1)},uuid:"delete_block"}),i?[g.pop()]:g};function h(n){var t=n.tags,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],i=e.conditionFailed;return null===t||void 0===t||t.forEach((function(n){o.L8.DBT_SNAPSHOT===n?r.push({description:"This is a dbt snapshot file.",title:(0,u.vg)(o.L8.DBT_SNAPSHOT)}):o.L8.DYNAMIC===n?r.push({description:"This block will create N blocks for each of its downstream blocks.",title:(0,u.vg)(o.L8.DYNAMIC)}):o.L8.DYNAMIC_CHILD===n?r.push({description:"This block is dynamically created by its upstream parent block that is dynamic.",title:(0,u.vg)(o.L8.DYNAMIC_CHILD)}):o.L8.REDUCE_OUTPUT===n?r.push({description:"Reduce output from all dynamically created blocks into a single array output.",title:(0,u.vg)(o.L8.REDUCE_OUTPUT)}):o.L8.REPLICA===n?r.push({description:"This block is a replica of another block in the current pipeline.",title:(0,u.vg)(o.L8.REPLICA)}):o.L8.CONDITION===n?i?r.push({description:"This block condition evaluated as false.",title:"Condition unmet"}):r.push({description:"This block has a condition that will be run before its execution.",title:(0,u.vg)(o.L8.CONDITION)}):r.push({title:n})})),r}function v(n){var t=n.block,e=n.dynamic,r=n.dynamicUpstreamBlock,o=n.hasError,i=(n.reduceOutput,n.reduceOutputUpstreamBlock),c=n.selected,u=r&&!i;return{borderColorShareProps:{blockColor:null===t||void 0===t?void 0:t.color,blockType:null===t||void 0===t?void 0:t.type,dynamicBlock:e,dynamicChildBlock:u,hasError:o,selected:c},tags:h(t)}}function m(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t&&(null===t||void 0===t?void 0:t.length)>=0?t.map((function(n){return{data:n,execution_state:i.uF.IDLE,type:i.Gi.TEXT_PLAIN}})):n.filter((function(n){return null===n||void 0===n?void 0:n.type}))}function E(n){return{hasError:!!n.find((function(n){return n.error})),hasOutput:n.length>=1}}var O=function(){return Object.values(o.Lq).reduce((function(n,t){return f(f({},n),{},(0,r.Z)({},t,(0,l.qn)(o.tf.CUSTOM,{blockColor:t}).accent))}),{})}},60701:function(n,t,e){e.d(t,{Qq:function(){return f},Z7:function(){return p},cH:function(){return o},du:function(){return d},fp:function(){return a},j5:function(){return s},uM:function(){return l}});var r,o,i=e(82394),c=e(22341),u=e(24224),l="sideview",a=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"}(o||(o={}));o.BLOCK_SETTINGS,o.CALLBACKS,o.CHARTS,o.DATA,o.EXTENSIONS,o.TREE;var d=[o.DATA],s=[{key:o.TREE,label:"Tree"},{buildLabel:function(n){var t=(n.pipeline||{}).widgets,e=void 0===t?[]:t;return(null===e||void 0===e?void 0:e.length)>=1?"Charts (".concat(e.length,")"):"Charts"},key:o.CHARTS},{buildLabel:function(n){var t=n.variables;return(null===t||void 0===t?void 0:t.length)>=1?"Variables (".concat(t.length,")"):"Variables"},key:o.VARIABLES},{buildLabel:function(n){var t=n.secrets;return(null===t||void 0===t?void 0:t.length)>=1?"Secrets (".concat(t.length,")"):"Secrets"},key:o.SECRETS},{buildLabel:function(n){n.pipeline;return"Add-on blocks"},key:o.ADDON_BLOCKS},{buildLabel:function(n){var t=(n.pipeline||{}).extensions,e=void 0===t?{}:t,r=0;return Object.values(e).forEach((function(n){var t=n.blocks;r+=(null===t||void 0===t?void 0:t.length)||0})),r>=1?"Power ups (".concat(r,")"):"Power ups"},key:o.EXTENSIONS},{key:o.DATA,label:"Data"},{key:o.TERMINAL,label:"Terminal"},{key:o.BLOCK_SETTINGS,label:"Block settings"}],f=(0,u.HK)(s,(function(n){return n.key})),p=(r={},(0,i.Z)(r,o.ADDON_BLOCKS,c.EJ),(0,i.Z)(r,o.BLOCK_SETTINGS,c.JG),(0,i.Z)(r,o.CALLBACKS,c.AQ),(0,i.Z)(r,o.CHARTS,c.GQ),(0,i.Z)(r,o.DATA,c.iA),(0,i.Z)(r,o.EXTENSIONS,c.Bf),(0,i.Z)(r,o.SECRETS,c.Yo),(0,i.Z)(r,o.SETTINGS,c.Zr),(0,i.Z)(r,o.TERMINAL,c.oI),(0,i.Z)(r,o.TREE,c.mp),(0,i.Z)(r,o.VARIABLES,c.LO),r)},86422:function(n,t,e){e.d(t,{$W:function(){return m},DA:function(){return T},HX:function(){return y},J8:function(){return R},L8:function(){return u},LE:function(){return p},Lq:function(){return b},M5:function(){return A},Q3:function(){return E},Qj:function(){return g},Ut:function(){return k},V4:function(){return _},VZ:function(){return O},Vd:function(){return v},dO:function(){return f},f2:function(){return C},iZ:function(){return S},t6:function(){return l},tf:function(){return s}});var r,o,i,c,u,l,a=e(82394),d=e(75968);!function(n){n.CONDITION="condition",n.DBT_SNAPSHOT="snapshot",n.DYNAMIC="dynamic",n.DYNAMIC_CHILD="dynamic_child",n.REDUCE_OUTPUT="reduce_output",n.REPLICA="replica"}(u||(u={})),function(n){n.MARKDOWN="markdown",n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(l||(l={}));var s,f=(r={},(0,a.Z)(r,l.MARKDOWN,"MD"),(0,a.Z)(r,l.PYTHON,"PY"),(0,a.Z)(r,l.R,"R"),(0,a.Z)(r,l.SQL,"SQL"),(0,a.Z)(r,l.YAML,"YAML"),r),p=(o={},(0,a.Z)(o,l.MARKDOWN,"Markdown"),(0,a.Z)(o,l.PYTHON,"Python"),(0,a.Z)(o,l.R,"R"),(0,a.Z)(o,l.SQL,"SQL"),(0,a.Z)(o,l.YAML,"YAML"),o);!function(n){n.CALLBACK="callback",n.CHART="chart",n.CONDITIONAL="conditional",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.GLOBAL_DATA_PRODUCT="global_data_product",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.MARKDOWN="markdown",n.TRANSFORMER="transformer"}(s||(s={}));var b,A=[s.CALLBACK,s.CONDITIONAL,s.EXTENSION];!function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(b||(b={}));var T,h,v=(0,d.YW)(),m=[s.CHART,s.CUSTOM,s.DATA_EXPORTER,s.DATA_LOADER,s.SCRATCHPAD,s.SENSOR,s.MARKDOWN,s.TRANSFORMER],E=[s.CUSTOM,s.DATA_EXPORTER,s.DATA_LOADER,s.SCRATCHPAD,s.SENSOR,s.MARKDOWN,s.TRANSFORMER],O=[s.DATA_EXPORTER,s.DATA_LOADER],R=[s.DATA_EXPORTER,s.DATA_LOADER,s.TRANSFORMER],y=[s.DATA_EXPORTER,s.DATA_LOADER,s.DBT,s.TRANSFORMER],g=[s.CHART,s.SCRATCHPAD,s.SENSOR,s.MARKDOWN],S=[s.CALLBACK,s.CHART,s.EXTENSION,s.SCRATCHPAD,s.MARKDOWN];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(T||(T={})),function(n){n.BLOCK_FILE="block_file",n.CUSTOM_BLOCK_TEMPLATE="custom_block_template",n.MAGE_TEMPLATE="mage_template"}(h||(h={}));var C=[s.CUSTOM,s.DATA_EXPORTER,s.DATA_LOADER,s.TRANSFORMER],_=(i={},(0,a.Z)(i,s.CALLBACK,"Callback"),(0,a.Z)(i,s.CHART,"Chart"),(0,a.Z)(i,s.CONDITIONAL,"Conditional"),(0,a.Z)(i,s.CUSTOM,"Custom"),(0,a.Z)(i,s.DATA_EXPORTER,"Data exporter"),(0,a.Z)(i,s.DATA_LOADER,"Data loader"),(0,a.Z)(i,s.DBT,"DBT"),(0,a.Z)(i,s.EXTENSION,"Extension"),(0,a.Z)(i,s.GLOBAL_DATA_PRODUCT,"Global data product"),(0,a.Z)(i,s.MARKDOWN,"Markdown"),(0,a.Z)(i,s.SCRATCHPAD,"Scratchpad"),(0,a.Z)(i,s.SENSOR,"Sensor"),(0,a.Z)(i,s.TRANSFORMER,"Transformer"),i),k=[s.DATA_LOADER,s.TRANSFORMER,s.DATA_EXPORTER,s.SENSOR];c={},(0,a.Z)(c,s.DATA_EXPORTER,"DE"),(0,a.Z)(c,s.DATA_LOADER,"DL"),(0,a.Z)(c,s.SCRATCHPAD,"SP"),(0,a.Z)(c,s.SENSOR,"SR"),(0,a.Z)(c,s.MARKDOWN,"MD"),(0,a.Z)(c,s.TRANSFORMER,"TF")},98781:function(n,t,e){e.d(t,{$1:function(){return d},G7:function(){return f},LM:function(){return p},Mj:function(){return b},QK:function(){return a},a_:function(){return A},qL:function(){return c},r0:function(){return s}});var r,o,i,c,u=e(82394),l=e(22341);!function(n){n.INTEGRATION="integration",n.PYTHON="python",n.PYSPARK="pyspark",n.STREAMING="streaming"}(c||(c={}));var a,d,s,f=(r={},(0,u.Z)(r,c.INTEGRATION,"Integration"),(0,u.Z)(r,c.PYTHON,"Standard"),(0,u.Z)(r,c.PYSPARK,"PySpark"),(0,u.Z)(r,c.STREAMING,"Streaming"),r),p="all",b=(c.PYTHON,c.INTEGRATION,c.STREAMING,o={},(0,u.Z)(o,p,l.ie),(0,u.Z)(o,c.INTEGRATION,l.YC),(0,u.Z)(o,c.PYTHON,l.El),(0,u.Z)(o,c.STREAMING,l.dB),o);!function(n){n.ACTIVE="active",n.INACTIVE="inactive",n.NO_SCHEDULES="no_schedules",n.RETRY="retry"}(a||(a={})),function(n){n.GROUP="group_by",n.STATUS="status[]",n.TAG="tag[]",n.TYPE="type[]"}(d||(d={})),function(n){n.STATUS="status",n.TAG="tag",n.TYPE="type"}(s||(s={}));var A=(i={},(0,u.Z)(i,c.PYTHON,"python3"),(0,u.Z)(i,c.PYSPARK,"pysparkkernel"),i)},33766:function(n,t,e){e.d(t,{O2:function(){return s},g_:function(){return p},u7:function(){return f}});var r=e(75582),o=e(82394),i=e(34376),c=e.n(i),u=e(59e3),l=e(24224);function a(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function d(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?a(Object(e),!0).forEach((function(t){(0,o.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):a(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var s="_offset";function f(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=t.preserveParams,o=t.pushHistory,i=t.replaceParams,l=(0,u.iV)(),a={};e&&e.forEach((function(n){l[n]&&(a[n]=l[n])}));var s,f=i?a:l;s=window.location.pathname;var p=o?c().push:c().replace,b=d(d({},f),n);Object.entries(n).forEach((function(n){var t=(0,r.Z)(n,2),e=t[0],o=t[1];"undefined"!==typeof o&&null!==o||delete b[e]}));var A=(0,u.uM)(b);A.length>=1&&(A="?".concat(A));var T="".concat(s.split("?")[0]).concat(A),h=c().router.basePath;return h&&T.startsWith(h)&&(T=T.replace(h,"")),p(c().router.pathname,T,{shallow:!0})}function p(n,t,e){var o=e.addingMultipleValues,i=e.isList,c=e.itemsPerPage,u=e.pushHistory,a=void 0!==u&&u,p=e.resetLimitParams,b=d({},n);o?Object.entries(t).forEach((function(n){var t=(0,r.Z)(n,2),e=t[0],o=t[1];if(Array.isArray(o)){var i="".concat(e,"[]");b[i]=o.map(String)}})):i?Object.entries(t).forEach((function(n){var t=(0,r.Z)(n,2),e=t[0],o=t[1],i=String(o),c="".concat(e,"[]"),u=b[c];u&&Array.isArray(u)?(u=u.map(String)).includes(i)?b[c]=(0,l.Od)(u,(function(n){return n===i})):b[c]=u.concat(i):b[c]=[i]})):b=d(d({},b),t),p&&(b._limit=c||20,b[s]=0),f(b,{pushHistory:a})}},90211:function(n,t,e){e.d(t,{RA:function(){return d},kC:function(){return s},vg:function(){return v},kE:function(){return y},Mp:function(){return f},Pb:function(){return l},HW:function(){return E},wX:function(){return p},x6:function(){return b},_6:function(){return A},zf:function(){return m},Y6:function(){return R},wE:function(){return g},J3:function(){return T},We:function(){return a},QV:function(){return O},C5:function(){return h}});var r=e(75582),o=e(17717),i=["aged","ancient","autumn","billowing","bitter","black","blue","bold","broken","cold","cool","crimson","damp","dark","dawn","delicate","divine","dry","empty","falling","floral","fragrant","frosty","green","hidden","holy","icy","late","lingering","little","lively","long","misty","morning","muddy","nameless","old","patient","polished","proud","purple","quiet","red","restless","rough","shy","silent","small","snowy","solitary","sparkling","spring","still","summer","throbbing","twilight","wandering","weathered","white","wild","winter","wispy","withered","young"],c=(e(92083),["bird","breeze","brook","bush","butterfly","cherry","cloud","darkness","dawn","dew","dream","dust","feather","field","fire","firefly","flower","fog","forest","frog","frost","glade","glitter","grass","haze","hill","lake","leaf","meadow","moon","morning","mountain","night","paper","pine","pond","rain","resonance","river","sea","shadow","shape","silence","sky","smoke","snow","snowflake","sound","star","sun","sun","sunset","surf","thunder","tree","violet","voice","water","water","waterfall","wave","wildflower","wind","wood"]),u=e(24224);function l(n){if(!n)return!1;try{JSON.parse(n)}catch(t){return!1}return!0}function a(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return n.split(" ").join(t)}function d(n){return n.split(" ").join("_")}function s(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}function f(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*n)}function p(n){return n.charAt(0).toLowerCase()+n.slice(1)}function b(n){if(null===n||"undefined"===typeof n)return"";var t=n.toString().split("."),e=(0,r.Z)(t,2),o=e[0],i=e[1],c=o.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return i?"".concat(c,".").concat(i):c}function A(n,t){var e,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=t,i=void 0!==o&&null!==o;if(i||(o=2),1===o)e=n;else{var c=n.length,u=n[c-1];e="y"===u&&"day"!==n?"".concat(n.slice(0,c-1),"ies"):"".concat(n,"s"===u?"es":"s")}if(i){var l=r?b(o):o;return"".concat(l," ").concat(e)}return e}function T(n){return null===n||void 0===n?void 0:n.replace(/_/g," ")}function h(n){var t=n.length;return"ies"===n.slice(t-3,t)?"".concat(n.slice(0,t-3),"y"):"es"===n.slice(t-2,t)&&"ces"!==n.slice(t-3,t)?n.slice(0,t-2):n.slice(0,t-1)}function v(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return s(T(n.toLowerCase()))}function m(n){var t,e=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return e.forEach((function(o,i){if(!t){var c=(0,r.Z)(o,2),u=c[0],l=c[1],a=e.slice(0,i).reduce((function(n,t){return n*Number(t[1])}),1);n<Number(l)*a&&(t=A(u,Math.round(n/a)))}})),t}function E(n){return"undefined"!==typeof n&&null!==n&&!isNaN(n)}function O(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=Math.pow(10,t);return Math.round((n||0)*e)/e}function R(){return"".concat((0,u.mp)(i)," ").concat((0,u.mp)(c))}function y(n){return null===n||void 0===n?void 0:n.toLowerCase().replace(/\W+/g,"_")}function g(n){var t,e=n.split(o.sep),r=e[e.length-1].split(".");return t=1===r.length?r[0]:r.slice(0,-1).join("."),e.slice(0,e.length-1).concat(t).join(o.sep)}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6786],{92953:function(t,n,e){e.d(n,{CD:function(){return c},NU:function(){return i},a_:function(){return r},hu:function(){return u}});var r,o=e(23831);!function(t){t.BLOCK_RUNS="block_runs",t.BLOCK_RUNTIME="block_runtime",t.PIPELINE_RUNS="pipeline_runs"}(r||(r={}));var i=[o.Z.accent.warning,o.Z.background.success,o.Z.accent.negative,o.Z.content.active,o.Z.interactive.linkPrimary],u=["cancelled","completed","failed","initial","running"],c=-50},17150:function(t,n,e){e.d(n,{i:function(){return s},p:function(){return l}});var r=e(82394),o=e(75582),i=e(3645),u=e(98781);function c(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function a(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?c(Object(e),!0).forEach((function(n){(0,r.Z)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var l=function(t,n){if(!t)return[];var e=Object.entries(t).reduce((function(t,n){var e=(0,o.Z)(n,2),r=(e[0],e[1].data),i={};return Object.entries(r).forEach((function(n){var e=(0,o.Z)(n,2),r=e[0],u=e[1],c={};r in t&&(c=t[r]);var l={};Object.entries(u).forEach((function(t){var n,e=(0,o.Z)(t,2),r=e[0],i=e[1],u=null!==(n=c)&&void 0!==n&&n[r]?c[r]:0;l[r]=u+i})),i[r]=a(a({},c),l)})),a(a({},t),i)}),{});return n.map((function(t){return a({date:t},e[t]||{})}))},d=i.E.reduce((function(t,n){return a(a({},t),{},(0,r.Z)({},n,0))}),{}),f=new Set(i.E),s=function(t,n){var e;if(!t)return{groupedPipelineRunData:[],pipelineRunCountByPipelineType:{},totalPipelineRunCount:0,ungroupedPipelineRunData:[]};var i=(e={},(0,r.Z)(e,u.qL.INTEGRATION,a({},d)),(0,r.Z)(e,u.qL.PYSPARK,{}),(0,r.Z)(e,u.qL.PYTHON,a({},d)),(0,r.Z)(e,u.qL.STREAMING,a({},d)),e),c=0,l=Object.entries(t).reduce((function(t,n){var e=(0,o.Z)(n,2),r=(e[0],e[1].data),u={},l={};return Object.entries(r).forEach((function(n){var e=(0,o.Z)(n,2),r=e[0],d=e[1],s={},p={};r in t.grouped?(s=a({},t.grouped[r]),u[r]=a({},s)):u[r]={},r in t.ungrouped&&(p=a({},t.ungrouped[r]));var h={},g={};Object.entries(d).forEach((function(n){var e=(0,o.Z)(n,2),d=e[0],v=e[1];"null"===d||null===d||(r in t.grouped&&d in t.grouped[r]&&(s[d]=a({},t.grouped[r][d])),h[d]={},Object.entries(v).forEach((function(t){var n,e,r,u=(0,o.Z)(t,2),a=u[0],l=u[1],v=null!==(n=s)&&void 0!==n&&null!==(e=n[d])&&void 0!==e&&e[a]?s[d][a]:0;h[d][a]=v+l;var m=null!==(r=p)&&void 0!==r&&r[a]?p[a]:0;g[a]=null!==g&&void 0!==g&&g[a]?g[a]+l:m+l,f.has(a)&&(i[d][a]=(i[d][a]||0)+l),c+=l})),u[r][d]=a(a({},s[d]),h[d]),l[r]=a(a({},p),g))}))})),{grouped:a(a({},t.grouped),u),ungrouped:a(a({},t.ungrouped),l)}}),{grouped:{},ungrouped:{}}),s=[],p=[];return n.forEach((function(t){s.push(a({date:t},l.grouped[t]||{})),p.push(a({date:t},l.ungrouped[t]||{}))})),{groupedPipelineRunData:s,pipelineRunCountByPipelineType:i,totalPipelineRunCount:c,ungroupedPipelineRunData:p}}},67591:function(t,n,e){var r=e(26304),o=e(82394),i=e(21831),u=(e(82684),e(84969)),c=e(90948),a=e(81354),l=e(67778),d=e(29989),f=e(17066),s=e(29179),p=e(65376),h=e(48072),g=e(98677),v=e(84181),m=e(24903),b=e(67971),y=e(26226),O=e(19711),j=e(52359),x=e(23831),Z=e(73942),P=e(2005),w=e(49125),k=e(344),E=e(28598),D=["height","width","xAxisLabel","yAxisLabel"];function T(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function N(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?T(Object(e),!0).forEach((function(n){(0,o.Z)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):T(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function S(t){var n=t.backgroundColor,e=t.colors,r=t.data,o=t.getXValue,b=(t.getYValue,t.height),y=t.keys,j=t.margin,w=t.numYTicks,D=t.showLegend,T=t.tooltipLeftOffset,S=void 0===T?0:T,L=t.width,_=t.xLabelFormat,M=t.yLabelFormat,Y=(0,s.Z)(),I=Y.hideTooltip,R=Y.showTooltip,C=Y.tooltipData,A=Y.tooltipLeft,F=Y.tooltipOpen,U=Y.tooltipTop,H=L-(j.left+j.right),K=b-(j.bottom+j.top),B=r.reduce((function(t,n){var e=n,r=y.reduce((function(t,n){return Number(e[n])&&(t+=Number(e[n])),t}),0);return t.push(r),t}),[]),V=(0,g.Z)({domain:r.map(o),padding:.4,range:[0,H],round:!1}),z=(0,v.Z)({domain:[0,Math.max.apply(Math,(0,i.Z)(B))],range:[K,0],round:!0}),q=(0,m.Z)({domain:y,range:e});return(0,E.jsxs)("div",{style:{position:"relative",zIndex:2},children:[(0,E.jsxs)("svg",{height:b,width:L,children:[(0,E.jsx)("rect",{fill:n||x.Z.background.chartBlock,height:b,rx:14,width:L,x:0,y:0}),(0,E.jsx)(l.Z,{height:K,left:j.left,scale:z,stroke:"black",strokeOpacity:.2,top:j.top,width:H}),(0,E.jsx)(d.Z,{left:j.left,top:j.top,children:(0,E.jsx)(a.Z,{color:q,data:r,keys:y,value:function(t,n){return t[n]||0},x:o,xScale:V,yScale:z,children:function(t){return t.map((function(t){return t.bars.map((function(n){return(0,E.jsx)("rect",{fill:n.color,height:n.height,onMouseLeave:I,onMouseMove:function(t){var e=(0,h.Z)(t),r=n.x+n.width/2+S;R({tooltipData:n,tooltipLeft:r,tooltipTop:(null===e||void 0===e?void 0:e.y)+10})},width:n.width,x:n.x,y:n.y},"bar-stack-".concat(t.index,"-").concat(n.index))}))}))}})}),(0,E.jsx)(u.Z,{hideTicks:!0,left:j.left,numTicks:w,scale:z,stroke:x.Z.content.muted,tickFormat:function(t){return M?M(t):(0,k.P5)(t)},tickLabelProps:function(){return{fill:x.Z.content.muted,fontFamily:P.ry,fontSize:11,textAnchor:"end",transform:"translate(0,2.5)"}},top:j.top}),(0,E.jsx)(c.Z,{hideTicks:!0,left:j.left,scale:V,stroke:x.Z.content.muted,tickFormat:_,tickLabelProps:function(){return{fill:x.Z.content.muted,fontFamily:P.ry,fontSize:11,textAnchor:"middle"}},top:K+j.top})]}),D&&(0,E.jsx)("div",{style:{display:"flex",fontSize:"14px",justifyContent:"center",position:"absolute",top:j.top/2-10,width:"100%"},children:(0,E.jsx)(f.Z,{direction:"row",labelMargin:"0 15px 0 0",scale:q})}),F&&C&&(0,E.jsxs)(p.Z,{left:A,style:N(N({},p.j),{},{backgroundColor:x.Z.background.page,borderRadius:"".concat(Z.TR,"px"),padding:".3rem .4rem"}),top:U,children:[(0,E.jsx)(O.ZP,{bold:!0,color:q(C.key),children:C.key}),(0,E.jsx)(O.ZP,{children:C.bar.data[C.key]}),(0,E.jsx)(O.ZP,{children:o(C.bar.data)})]})]})}n.Z=function(t){var n=t.height,e=t.width,o=t.xAxisLabel,i=t.yAxisLabel,u=(0,r.Z)(t,D);return(0,E.jsx)(E.Fragment,{children:(0,E.jsxs)("div",{style:{height:n,marginBottom:w.iI,width:e},children:[i&&(0,E.jsx)(b.Z,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,E.jsx)(j.Z,{children:(0,E.jsx)(O.ZP,{center:!0,muted:!0,small:!0,children:i})})}),(0,E.jsx)("div",{style:{height:n,width:i?0===e?e:e-28:e},children:(0,E.jsx)(y.Z,{children:function(t){var n=t.height,e=t.width;return(0,E.jsx)(S,N(N({},u),{},{height:n,width:e}))}})}),o&&(0,E.jsx)("div",{style:{paddingLeft:i?36:0,paddingTop:4},children:(0,E.jsx)(O.ZP,{center:!0,muted:!0,small:!0,children:o})})]})})}},52359:function(t,n,e){var r=e(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;"]);n.Z=r},344:function(t,n,e){e.d(n,{P5:function(){return o},Vs:function(){return i}});e(90211);var r=Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:2});function o(t){return"number"!==typeof t?t:t>=1e4?r.format(t):t.toString()}function i(t,n,e){var r,o;if("undefined"===typeof t||"undefined"===typeof n)return 0;var i=null===t||void 0===t||null===(r=t(n,e))||void 0===r||null===(o=r.props)||void 0===o?void 0:o.children;return(Array.isArray(i)?i:[i]).join("").length}},3645:function(t,n,e){e.d(n,{E:function(){return i},h:function(){return r}});e(98781);var r,o=e(66050);!function(t){t.BLOCK_RUN_COUNT="block_run_count",t.BLOCK_RUN_TIME="block_run_time",t.PIPELINE_RUN_COUNT="pipeline_run_count",t.PIPELINE_RUN_TIME="pipeline_run_time"}(r||(r={}));var i=[o.V.RUNNING,o.V.COMPLETED,o.V.FAILED]},42305:function(t,n,e){e.d(n,{A5:function(){return y},AY:function(){return O},BP:function(){return b},JX:function(){return m},OC:function(){return f},Pc:function(){return j},Ro:function(){return x},Tz:function(){return v},Y_:function(){return P},d$:function(){return g},jV:function(){return Z},lJ:function(){return w},n1:function(){return p},s8:function(){return l},vk:function(){return i},yD:function(){return d}});var r,o,i,u=e(82394),c=e(92083),a=e.n(c);!function(t){t.TODAY="today",t.WEEK="week",t.MONTH="month"}(i||(i={}));var l=(r={},(0,u.Z)(r,i.TODAY,"today"),(0,u.Z)(r,i.WEEK,"last 7 days"),(0,u.Z)(r,i.MONTH,"last 30 days"),r),d=(o={},(0,u.Z)(o,i.TODAY,0),(0,u.Z)(o,i.WEEK,6),(0,u.Z)(o,i.MONTH,29),o),f="YYYY-MM-DD HH:mm:ss",s="YYYY-MM-DD HH:mm",p="YYYY-MM-DD",h="MMMM D, YYYY";function g(t,n){var e=n.dayAgo,r=n.includeSeconds,o=n.utcFormat,i=a()(t),u=s;return o&&(i=i.utc()),e&&(i=i.subtract(1,"days")),r&&(u=f),i.format(u)}function v(t){var n=g((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0});return null!==t&&void 0!==t&&t.dateObj?new Date(n):n}function m(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a().unix(t).format(null!==n&&void 0!==n&&n.withSeconds?f:s)}function b(t,n,e){return a()(t).utc().hours(+n).minutes(+e).format()}function y(t){return a()(t).unix()}function O(t,n,e,r){var o="".concat(t.toISOString().split("T")[0]," ").concat(n,":").concat(e);return r?"".concat(o,":").concat(r):o}function j(t){var n=a().unix(+t).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function x(t,n){var e=a().utc(),r=a().utc();null!==n&&void 0!==n&&n.localTime&&(e=a()().local(),r=a()().local());var o=(e=e.subtract(t,"days")).format(h),i=r.format(h);return null!==n&&void 0!==n&&n.endDateOnly?i:"".concat(o," - ").concat(i)}function Z(t,n){var e=null!==n&&void 0!==n&&n.localTime?a()().local():a().utc();if(t===i.WEEK){var r=d[i.WEEK];e=e.subtract(r,"days")}else if(t===i.MONTH){var o=d[i.MONTH];e=e.subtract(o,"days")}return null!==n&&void 0!==n&&n.isoString?e.startOf("day").toISOString():e.startOf("day").format(f)}function P(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:90,n=new Date,e=[],r=0;r<t;r++)e.unshift(n.toISOString().split("T")[0]),n.setDate(n.getDate()-1);return e}function w(t){return t.padStart(2,"0")}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6786],{92953:function(t,n,e){e.d(n,{CD:function(){return c},NU:function(){return i},a_:function(){return r},hu:function(){return u}});var r,o=e(23831);!function(t){t.BLOCK_RUNS="block_runs",t.BLOCK_RUNTIME="block_runtime",t.PIPELINE_RUNS="pipeline_runs"}(r||(r={}));var i=[o.Z.accent.warning,o.Z.background.success,o.Z.accent.negative,o.Z.content.active,o.Z.interactive.linkPrimary],u=["cancelled","completed","failed","initial","running"],c=-50},17150:function(t,n,e){e.d(n,{i:function(){return s},p:function(){return l}});var r=e(82394),o=e(75582),i=e(3645),u=e(98781);function c(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function a(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?c(Object(e),!0).forEach((function(n){(0,r.Z)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var l=function(t,n){if(!t)return[];var e=Object.entries(t).reduce((function(t,n){var e=(0,o.Z)(n,2),r=(e[0],e[1].data),i={};return Object.entries(r).forEach((function(n){var e=(0,o.Z)(n,2),r=e[0],u=e[1],c={};r in t&&(c=t[r]);var l={};Object.entries(u).forEach((function(t){var n,e=(0,o.Z)(t,2),r=e[0],i=e[1],u=null!==(n=c)&&void 0!==n&&n[r]?c[r]:0;l[r]=u+i})),i[r]=a(a({},c),l)})),a(a({},t),i)}),{});return n.map((function(t){return a({date:t},e[t]||{})}))},d=i.E.reduce((function(t,n){return a(a({},t),{},(0,r.Z)({},n,0))}),{}),f=new Set(i.E),s=function(t,n){var e;if(!t)return{groupedPipelineRunData:[],pipelineRunCountByPipelineType:{},totalPipelineRunCount:0,ungroupedPipelineRunData:[]};var i=(e={},(0,r.Z)(e,u.qL.INTEGRATION,a({},d)),(0,r.Z)(e,u.qL.PYSPARK,{}),(0,r.Z)(e,u.qL.PYTHON,a({},d)),(0,r.Z)(e,u.qL.STREAMING,a({},d)),e),c=0,l=Object.entries(t).reduce((function(t,n){var e=(0,o.Z)(n,2),r=(e[0],e[1].data),u={},l={};return Object.entries(r).forEach((function(n){var e=(0,o.Z)(n,2),r=e[0],d=e[1],s={},p={};r in t.grouped?(s=a({},t.grouped[r]),u[r]=a({},s)):u[r]={},r in t.ungrouped&&(p=a({},t.ungrouped[r]));var h={},g={};Object.entries(d).forEach((function(n){var e=(0,o.Z)(n,2),d=e[0],v=e[1];"null"===d||null===d||(r in t.grouped&&d in t.grouped[r]&&(s[d]=a({},t.grouped[r][d])),h[d]={},Object.entries(v).forEach((function(t){var n,e,r,u=(0,o.Z)(t,2),a=u[0],l=u[1],v=null!==(n=s)&&void 0!==n&&null!==(e=n[d])&&void 0!==e&&e[a]?s[d][a]:0;h[d][a]=v+l;var m=null!==(r=p)&&void 0!==r&&r[a]?p[a]:0;g[a]=null!==g&&void 0!==g&&g[a]?g[a]+l:m+l,f.has(a)&&(i[d][a]=(i[d][a]||0)+l),c+=l})),u[r][d]=a(a({},s[d]),h[d]),l[r]=a(a({},p),g))}))})),{grouped:a(a({},t.grouped),u),ungrouped:a(a({},t.ungrouped),l)}}),{grouped:{},ungrouped:{}}),s=[],p=[];return n.forEach((function(t){s.push(a({date:t},l.grouped[t]||{})),p.push(a({date:t},l.ungrouped[t]||{}))})),{groupedPipelineRunData:s,pipelineRunCountByPipelineType:i,totalPipelineRunCount:c,ungroupedPipelineRunData:p}}},67591:function(t,n,e){var r=e(26304),o=e(82394),i=e(21831),u=(e(82684),e(84969)),c=e(90948),a=e(81354),l=e(67778),d=e(29989),f=e(17066),s=e(29179),p=e(65376),h=e(48072),g=e(98677),v=e(84181),m=e(24903),b=e(67971),y=e(26226),O=e(19711),j=e(52359),x=e(23831),Z=e(73942),P=e(2005),w=e(49125),k=e(344),E=e(28598),D=["height","width","xAxisLabel","yAxisLabel"];function T(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function N(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?T(Object(e),!0).forEach((function(n){(0,o.Z)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):T(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function S(t){var n=t.backgroundColor,e=t.colors,r=t.data,o=t.getXValue,b=(t.getYValue,t.height),y=t.keys,j=t.margin,w=t.numYTicks,D=t.showLegend,T=t.tooltipLeftOffset,S=void 0===T?0:T,L=t.width,_=t.xLabelFormat,M=t.yLabelFormat,Y=(0,s.Z)(),I=Y.hideTooltip,R=Y.showTooltip,C=Y.tooltipData,A=Y.tooltipLeft,F=Y.tooltipOpen,U=Y.tooltipTop,H=L-(j.left+j.right),K=b-(j.bottom+j.top),B=r.reduce((function(t,n){var e=n,r=y.reduce((function(t,n){return Number(e[n])&&(t+=Number(e[n])),t}),0);return t.push(r),t}),[]),V=(0,g.Z)({domain:r.map(o),padding:.4,range:[0,H],round:!1}),z=(0,v.Z)({domain:[0,Math.max.apply(Math,(0,i.Z)(B))],range:[K,0],round:!0}),q=(0,m.Z)({domain:y,range:e});return(0,E.jsxs)("div",{style:{position:"relative",zIndex:2},children:[(0,E.jsxs)("svg",{height:b,width:L,children:[(0,E.jsx)("rect",{fill:n||x.Z.background.chartBlock,height:b,rx:14,width:L,x:0,y:0}),(0,E.jsx)(l.Z,{height:K,left:j.left,scale:z,stroke:"black",strokeOpacity:.2,top:j.top,width:H}),(0,E.jsx)(d.Z,{left:j.left,top:j.top,children:(0,E.jsx)(a.Z,{color:q,data:r,keys:y,value:function(t,n){return t[n]||0},x:o,xScale:V,yScale:z,children:function(t){return t.map((function(t){return t.bars.map((function(n){return(0,E.jsx)("rect",{fill:n.color,height:n.height,onMouseLeave:I,onMouseMove:function(t){var e=(0,h.Z)(t),r=n.x+n.width/2+S;R({tooltipData:n,tooltipLeft:r,tooltipTop:(null===e||void 0===e?void 0:e.y)+10})},width:n.width,x:n.x,y:n.y},"bar-stack-".concat(t.index,"-").concat(n.index))}))}))}})}),(0,E.jsx)(u.Z,{hideTicks:!0,left:j.left,numTicks:w,scale:z,stroke:x.Z.content.muted,tickFormat:function(t){return M?M(t):(0,k.P5)(t)},tickLabelProps:function(){return{fill:x.Z.content.muted,fontFamily:P.ry,fontSize:11,textAnchor:"end",transform:"translate(0,2.5)"}},top:j.top}),(0,E.jsx)(c.Z,{hideTicks:!0,left:j.left,scale:V,stroke:x.Z.content.muted,tickFormat:_,tickLabelProps:function(){return{fill:x.Z.content.muted,fontFamily:P.ry,fontSize:11,textAnchor:"middle"}},top:K+j.top})]}),D&&(0,E.jsx)("div",{style:{display:"flex",fontSize:"14px",justifyContent:"center",position:"absolute",top:j.top/2-10,width:"100%"},children:(0,E.jsx)(f.Z,{direction:"row",labelMargin:"0 15px 0 0",scale:q})}),F&&C&&(0,E.jsxs)(p.Z,{left:A,style:N(N({},p.j),{},{backgroundColor:x.Z.background.page,borderRadius:"".concat(Z.TR,"px"),padding:".3rem .4rem"}),top:U,children:[(0,E.jsx)(O.ZP,{bold:!0,color:q(C.key),children:C.key}),(0,E.jsx)(O.ZP,{children:C.bar.data[C.key]}),(0,E.jsx)(O.ZP,{children:o(C.bar.data)})]})]})}n.Z=function(t){var n=t.height,e=t.width,o=t.xAxisLabel,i=t.yAxisLabel,u=(0,r.Z)(t,D);return(0,E.jsx)(E.Fragment,{children:(0,E.jsxs)("div",{style:{height:n,marginBottom:w.iI,width:e},children:[i&&(0,E.jsx)(b.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,E.jsx)(j.Z,{children:(0,E.jsx)(O.ZP,{center:!0,muted:!0,small:!0,children:i})})}),(0,E.jsx)("div",{style:{height:n,width:i?0===e?e:e-28:e},children:(0,E.jsx)(y.Z,{children:function(t){var n=t.height,e=t.width;return(0,E.jsx)(S,N(N({},u),{},{height:n,width:e}))}})}),o&&(0,E.jsx)("div",{style:{paddingLeft:i?36:0,paddingTop:4},children:(0,E.jsx)(O.ZP,{center:!0,muted:!0,small:!0,children:o})})]})})}},52359:function(t,n,e){var r=e(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;"]);n.Z=r},344:function(t,n,e){e.d(n,{P5:function(){return o},Vs:function(){return i}});e(90211);var r=Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:2});function o(t){return"number"!==typeof t?t:t>=1e4?r.format(t):t.toString()}function i(t,n,e){var r,o;if("undefined"===typeof t||"undefined"===typeof n)return 0;var i=null===t||void 0===t||null===(r=t(n,e))||void 0===r||null===(o=r.props)||void 0===o?void 0:o.children;return(Array.isArray(i)?i:[i]).join("").length}},3645:function(t,n,e){e.d(n,{E:function(){return i},h:function(){return r}});e(98781);var r,o=e(66050);!function(t){t.BLOCK_RUN_COUNT="block_run_count",t.BLOCK_RUN_TIME="block_run_time",t.PIPELINE_RUN_COUNT="pipeline_run_count",t.PIPELINE_RUN_TIME="pipeline_run_time"}(r||(r={}));var i=[o.V.RUNNING,o.V.COMPLETED,o.V.FAILED]},42305:function(t,n,e){e.d(n,{A5:function(){return y},AY:function(){return O},BP:function(){return b},JX:function(){return m},OC:function(){return f},Pc:function(){return j},Ro:function(){return x},Tz:function(){return v},Y_:function(){return P},d$:function(){return g},jV:function(){return Z},lJ:function(){return w},n1:function(){return p},s8:function(){return l},vk:function(){return i},yD:function(){return d}});var r,o,i,u=e(82394),c=e(92083),a=e.n(c);!function(t){t.TODAY="today",t.WEEK="week",t.MONTH="month"}(i||(i={}));var l=(r={},(0,u.Z)(r,i.TODAY,"today"),(0,u.Z)(r,i.WEEK,"last 7 days"),(0,u.Z)(r,i.MONTH,"last 30 days"),r),d=(o={},(0,u.Z)(o,i.TODAY,0),(0,u.Z)(o,i.WEEK,6),(0,u.Z)(o,i.MONTH,29),o),f="YYYY-MM-DD HH:mm:ss",s="YYYY-MM-DD HH:mm",p="YYYY-MM-DD",h="MMMM D, YYYY";function g(t,n){var e=n.dayAgo,r=n.includeSeconds,o=n.utcFormat,i=a()(t),u=s;return o&&(i=i.utc()),e&&(i=i.subtract(1,"days")),r&&(u=f),i.format(u)}function v(t){var n=g((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0});return null!==t&&void 0!==t&&t.dateObj?new Date(n):n}function m(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a().unix(t).format(null!==n&&void 0!==n&&n.withSeconds?f:s)}function b(t,n,e){return a()(t).utc().hours(+n).minutes(+e).format()}function y(t){return a()(t).unix()}function O(t,n,e,r){var o="".concat(t.toISOString().split("T")[0]," ").concat(n,":").concat(e);return r?"".concat(o,":").concat(r):o}function j(t){var n=a().unix(+t).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function x(t,n){var e=a().utc(),r=a().utc();null!==n&&void 0!==n&&n.localTime&&(e=a()().local(),r=a()().local());var o=(e=e.subtract(t,"days")).format(h),i=r.format(h);return null!==n&&void 0!==n&&n.endDateOnly?i:"".concat(o," - ").concat(i)}function Z(t,n){var e=null!==n&&void 0!==n&&n.localTime?a()().local():a().utc();if(t===i.WEEK){var r=d[i.WEEK];e=e.subtract(r,"days")}else if(t===i.MONTH){var o=d[i.MONTH];e=e.subtract(o,"days")}return null!==n&&void 0!==n&&n.isoString?e.startOf("day").toISOString():e.startOf("day").format(f)}function P(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:90,n=new Date,e=[],r=0;r<t;r++)e.unshift(n.toISOString().split("T")[0]),n.setDate(n.getDate()-1);return e}function w(t){return t.padStart(2,"0")}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7496],{65597:function(e,n,t){t.d(n,{f:function(){return l}});var i=t(38626),r=t(23831),u=t(49125),o=t(73942),l=i.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,t){var i=t(82394),r=t(75582),u=t(12691),o=t.n(u),l=t(34376),c=t.n(l),s=t(82684),a=t(83455),d=t(60328),p=t(38341),f=t(47999),h=t(93461),_=t(67971),v=t(10919),b=t(47409),g=t(86673),x=t(54283),E=t(87815),O=t(19711),j=t(82531),m=t(23831),C=t(73942),Z=t(22341),I=t(65597),y=t(93348),w=t(45838),P=t(49125),N=t(19395),k=t(24224),D=t(9736),L=t(96510),T=t(28598);function R(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function A(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?R(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):R(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var S={monospace:!0,small:!0};function V(e){var n=e.cancelingRunId,t=e.disabled,i=e.isLoadingCancelPipeline,u=e.onCancel,o=e.onSuccess,l=e.pipelineRun,c=e.setCancelingRunId,p=e.setErrors,h=e.setShowConfirmationId,v=e.showConfirmationId,E=(0,D.Ct)(),w=l||{},N=w.id,k=w.pipeline_schedule_id,R=w.pipeline_schedule_token,A=w.pipeline_schedule_type,S=w.status,V=i&&N===n&&b.VO.RUNNING===S,U=(0,a.Db)(y.Xm.API===A&&R?j.ZP.pipeline_runs.pipeline_schedules.useCreateWithParent(k,R):j.ZP.pipeline_runs.pipeline_schedules.useCreate(k),{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})}})}}),M=(0,r.Z)(U,1)[0],F=(0,s.useCallback)((function(){h(null),M({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)||{}}})}),[M,l,h]),H=(0,s.useCallback)((function(){h(null),c(N),u({id:N,status:b.VO.CANCELLED})}),[u,N,c,h]);return(0,T.jsxs)("div",{style:{position:"relative"},children:[(0,T.jsx)(d.Z,{backgroundColor:V&&m.Z.accent.yellow,beforeIcon:b.VO.INITIAL!==S&&!t&&(0,T.jsxs)(T.Fragment,{children:[b.VO.COMPLETED===S&&(0,T.jsx)(Z.Jr,{size:2*P.iI}),[b.VO.FAILED,b.VO.CANCELLED].includes(S)&&(0,T.jsx)(Z.Py,{inverted:b.VO.CANCELLED===S&&!E,size:2*P.iI}),[b.VO.RUNNING].includes(S)&&(0,T.jsx)(x.Z,{color:V?m.Z.status.negative:m.Z.monotone.white,small:!0})]}),borderRadius:C.D7,danger:b.VO.FAILED===S&&!E,default:b.VO.INITIAL===S,disabled:t||E,loading:!l,onClick:function(){return h(N)},padding:"6px",primary:b.VO.RUNNING===S&&!V&&!E,warning:b.VO.CANCELLED===S&&!E,children:t?"Ready":V?"Canceling":b.Do[S]}),(0,T.jsx)(f.Z,{onClickOutside:function(){return h(null)},open:v===N,children:(0,T.jsxs)(I.f,{children:[[b.VO.RUNNING,b.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)(g.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)(g.Z,{mt:1,children:(0,T.jsxs)(_.ZP,{children:[(0,T.jsx)(d.Z,{onClick:function(){H(),F()},children:"Retry run"}),(0,T.jsx)(g.Z,{ml:1}),(0,T.jsx)(d.Z,{onClick:H,children:"Cancel run"})]})})]}),[b.VO.CANCELLED,b.VO.FAILED,b.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)(g.Z,{mb:1}),(0,T.jsx)(O.ZP,{children:"Retry the run with changes you have made to the pipeline."}),(0,T.jsx)(g.Z,{mb:1}),(0,T.jsx)(d.Z,{onClick:F,children:"Retry run"})]})]})})]})}n.Z=function(e){var n=e.allowBulkSelect,t=e.disableRowSelect,u=e.emptyMessage,l=void 0===u?"No runs available":u,f=e.fetchPipelineRuns,x=e.hideTriggerColumn,m=e.onClickRow,I=e.pipelineRuns,y=e.selectedRun,D=e.selectedRuns,R=e.setSelectedRuns,U=e.setErrors,M=(0,s.useState)(null),F=M[0],H=M[1],Y=(0,s.useState)(null),z=Y[0],B=Y[1],G=(0,a.Db)((function(e){var n=e.id,t=e.status;return j.ZP.pipeline_runs.useUpdate(n)({pipeline_run:{status:t}})}),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){H(null),null===f||void 0===f||f()},onErrorCallback:function(e,n){H(null),null===U||void 0===U||U({errors:n,response:e})}})}}),J=(0,r.Z)(G,2),K=J[0],q=J[1].isLoading,Q=[null,1],W=[{uuid:"Status"},{uuid:"Pipeline"}];x||(Q.push(1),W.push({uuid:"Trigger"})),Q.push.apply(Q,[1,1,null,null]),W.push.apply(W,[{uuid:"Execution date"},{uuid:"Completed at"},{uuid:"Block runs"},{uuid:"Logs"}]);var X=(0,s.useMemo)((function(){return I.every((function(e){var n=e.id;return!(null===D||void 0===D||!D[n])}))}),[I,D]);return n&&(Q.unshift(null),W.unshift({label:function(){return(0,T.jsx)(p.Z,{checked:X,onClick:function(){var e=(0,k.HK)(I||[],(function(e){return e.id}));R(X?{}:e)}})},uuid:"Selected"})),!t&&m&&(Q.push(null),W.push({label:function(){return""},uuid:"action"})),(0,T.jsx)(w.cl,{minHeight:30*P.iI,overflowVisible:!!z,children:0===(null===I||void 0===I?void 0:I.length)?(0,T.jsx)(g.Z,{px:3,py:1,children:(0,T.jsx)(O.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:l})}):(0,T.jsx)(E.Z,{columnFlex:Q,columns:W,isSelectedRow:function(e){return!t&&I[e].id===(null===y||void 0===y?void 0:y.id)},onClickRow:t?null:m,rowVerticalPadding:6,rows:null===I||void 0===I?void 0:I.map((function(e,r){var u,l,a=e.block_runs_count,E=e.completed_block_runs_count,j=e.completed_at,y=e.execution_date,w=e.id,k=e.pipeline_schedule_id,L=e.pipeline_schedule_name,M=e.pipeline_uuid,Y=e.status,G=!w&&!Y,J="".concat(E," out of ").concat(a," block runs completed"),Q=[];r>0&&I[r-1].execution_date===e.execution_date&&I[r-1].pipeline_schedule_id===e.pipeline_schedule_id?(Q=[(0,T.jsx)(g.Z,{ml:1,children:(0,T.jsxs)(_.ZP,{alignItems:"center",children:[(0,T.jsx)(Z.TT,{size:2*P.iI,useStroke:!0}),(0,T.jsx)(d.Z,{borderRadius:C.D7,notClickable:!0,padding:"6px",children:(0,T.jsx)(O.ZP,{muted:!0,children:b.Do[Y]})})]})},"row_status"),(0,T.jsx)(O.ZP,{default:!0,monospace:!0,muted:!0,children:M},"row_pipeline_uuid")],x||Q.push((0,T.jsx)(O.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_trigger_retry")),(u=Q).push.apply(u,[(0,T.jsx)(O.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_date_retry"),(0,s.createElement)(O.ZP,A(A({},S),{},{key:"row_completed",muted:!0}),j&&(0,N.Vx)(j)||"-"),(0,T.jsx)(o(),{as:"/pipelines/".concat(M,"/runs/").concat(w),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,T.jsx)(v.Z,{bold:!0,muted:!0,title:J,children:"".concat(E," / ").concat(a)})},"row_block_runs"),(0,T.jsx)(d.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(M,"/logs?pipeline_run_id[]=").concat(w))},children:(0,T.jsx)(Z.UL,{default:!0,size:2*P.iI})},"row_logs")])):(Q=[(0,T.jsx)(V,{cancelingRunId:F,disabled:G,isLoadingCancelPipeline:q,onCancel:K,onSuccess:f,pipelineRun:e,setCancelingRunId:H,setErrors:U,setShowConfirmationId:B,showConfirmationId:z},"row_retry_button"),(0,T.jsx)(O.ZP,{default:!0,monospace:!0,children:M},"row_pipeline_uuid")],x||Q.push((0,T.jsx)(o(),{as:"/pipelines/".concat(M,"/triggers/").concat(k),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,T.jsx)(v.Z,{bold:!0,sky:!0,children:L})},"row_trigger")),(l=Q).push.apply(l,[(0,s.createElement)(O.ZP,A(A({},S),{},{default:!0,key:"row_date"}),y&&(0,N.Vx)(y)||"-"),(0,s.createElement)(O.ZP,A(A({},S),{},{default:!0,key:"row_completed"}),j&&(0,N.Vx)(j)||"-"),(0,T.jsx)(o(),{as:"/pipelines/".concat(M,"/runs/").concat(w),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,T.jsx)(v.Z,{bold:!0,disabled:G,sky:!0,title:J,children:G?"":"".concat(E," / ").concat(a)})},"row_block_runs"),(0,T.jsx)(d.Z,{default:!0,disabled:G,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(M,"/logs?pipeline_run_id[]=").concat(w))},children:(0,T.jsx)(Z.UL,{default:!0,size:2*P.iI})},"row_item_13")]));if(n){var W=!(null===D||void 0===D||!D[w]);Q.unshift((0,T.jsx)(p.Z,{checked:W,onClick:function(){R((function(n){return A(A({},n),{},(0,i.Z)({},w,W?null:e))}))}},"selected-pipeline-run-".concat(w)))}return!t&&m&&Q.push((0,T.jsx)(h.Z,{flex:1,justifyContent:"flex-end",children:(0,T.jsx)(Z._Q,{default:!0,size:2*P.iI})})),Q})),uuid:"pipeline-runs"})})}},19395:function(e,n,t){t.d(n,{IJ:function(){return d},M8:function(){return b},Vx:function(){return f},eI:function(){return p},gU:function(){return _},tL:function(){return h},vJ:function(){return v}});var i,r,u=t(82394),o=t(92083),l=t.n(o),c=t(28799);function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function d(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,i=n.completed_at,r=n.started_at,o=n.status,c=null;r&&i&&(c=l()(i).valueOf()-l()(r).valueOf());return a(a({},e),{},(0,u.Z)({},t,{runtime:c,status:o}))}),{})}function p(e){if(!e)return null;var n=new Date(l()(e).valueOf()),t=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());return new Date(t)}function f(e){return"string"!==typeof e?e:p(e.split("+")[0]).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(r||(r={}));var h=(i={},(0,u.Z)(i,r.DAY,86400),(0,u.Z)(i,r.HOUR,3600),(0,u.Z)(i,r.MINUTE,60),(0,u.Z)(i,r.SECOND,1),i);function _(e){var n=r.SECOND,t=e;return e%86400===0?(t/=86400,n=r.DAY):e%3600===0?(t/=3600,n=r.HOUR):e%60===0&&(t/=60,n=r.MINUTE),{time:t,unit:n}}function v(e,n){return e*h[n]}function b(e){var n,t="";return t="".concat(window.origin,"/api/pipeline_schedules/").concat(null===e||void 0===e?void 0:e.id,"/pipeline_runs"),null!==e&&void 0!==e&&e.token&&(t="".concat(t,"/").concat(e.token)),(n=window.location.port)&&(t=t.replace(n,c.QT)),t}},47409:function(e,n,t){t.d(n,{Az:function(){return c},BF:function(){return l},Do:function(){return a},IK:function(){return o},VO:function(){return u},sZ:function(){return s}});var i,r=t(82394),u=t(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",a=(i={},(0,r.Z)(i,u.CANCELLED,"Cancelled"),(0,r.Z)(i,u.COMPLETED,"Done"),(0,r.Z)(i,u.FAILED,"Failed"),(0,r.Z)(i,u.INITIAL,"Ready"),(0,r.Z)(i,u.RUNNING,"Running"),i)},93348:function(e,n,t){t.d(n,{TR:function(){return d},U5:function(){return c},Xm:function(){return u},Z4:function(){return a},fq:function(){return l},kJ:function(){return s}});var i,r,u,o=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(u||(u={}));var l,c,s,a=(i={},(0,o.Z)(i,u.API,(function(){return"API"})),(0,o.Z)(i,u.EVENT,(function(){return"event"})),(0,o.Z)(i,u.TIME,(function(){return"schedule"})),i);!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 d=(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)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7722],{7432:function(n,e,t){var o={"./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(!t.o(o,n))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+n+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=o[n],i=e[0];return t.e(e[1]).then((function(){return t.t(i,19)}))}i.keys=function(){return Object.keys(o)},i.id=7432,n.exports=i},5677:function(n,e,t){"use strict";t.d(e,{M4:function(){return d},S0:function(){return s},S_:function(){return c},Yn:function(){return f},rW:function(){return l}});var o=t(82394),i=t(21831),r=t(75582);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 u(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}function c(n,e){return Object.entries(e).map((function(e){var t=(0,r.Z)(e,2),o=t[0],i=t[1];return n.languages.registerCompletionItemProvider(o,{provideCompletionItems:i(n)})}))}function s(n){var e=function(n){var e="[\\w.]+",t=["import ".concat(e," as ").concat(e),"import ".concat(e),"from ".concat(e," import ").concat(e," as ").concat(e),"from ".concat(e," import ").concat(e)],o=new RegExp("(".concat(t.join("|"),")"),"g");return(0,i.Z)(n.matchAll(o)).map((function(n){return n[1]}))}(n),t="[\\w.]+",r=["from ".concat(t," import ").concat(t," as (").concat(t,")"),"from ".concat(t," import (").concat(t,")"),"import ".concat(t," as (").concat(t,")"),"import (".concat(t,")")],a=new RegExp("(".concat(r.join("|"),")"));return e.reduce((function(n,e){var t=e.match(a);if(!t)return n;var r=(0,i.Z)(t),c=r[2],s=r[3],l=r[4],d=r[5],f=c||s||l||d;return u(u({},n),{},(0,o.Z)({},f,e))}),{})}function l(n,e){var t=n;e&&(t=t.split(" as ".concat(e))[0]);var o="[\\w.]+",a=["from ".concat(o," import (").concat(o,")"),"import (".concat(o,")")],u=new RegExp("(".concat(a.join("|"),")"),"g"),c=(0,i.Z)(t.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,t){"use strict";t.d(e,{Ep:function(){return u},KT:function(){return l},Nk:function(){return s},aU:function(){return c}});var o=t(38626),i=t(23831),r=t(2005),a=t(49125),u=2,c=21,s=o.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=o.default.div.withConfig({displayName:"indexstyle__PlaceholderStyle",componentId:"sc-w2hta3-1"})(["padding-left:67px;position:absolute;z-index:1;"])},57722:function(n,e,t){"use strict";t.d(e,{Z:function(){return j}});var o=t(82684),i=t(85202),r=t(38789),a=t(86422),u=t(19711),c=t(66166),s="twilight",l=t(2005),d=t(31012),f=t(32365),m=t(5677);function h(n,e,t){t.forEach((function(n){e.addAction(n)}))}var g=t(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=t(80636),b=t(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,o.useRef)(null),G=(0,o.useRef)(null),V=(0,o.useRef)(null),q=(0,o.useState)([]),Y=q[0],X=q[1],Q=(0,o.useState)(null),J=Q[0],$=Q[1],nn=(0,o.useState)(!1),en=nn[0],tn=nn[1],on=(0,o.useState)(R||s),rn=on[0],an=on[1],un=(0,o.useCallback)((function(n){n.languages.typescript.javascriptDefaults.setEagerModelSync(!0),$(n)}),[]),cn=(0,o.useCallback)((function(n,e){U.current=n,G.current=e;var t=[];null===Z||void 0===Z||Z.forEach((function(o){t.push(o(e,n))})),D&&t.push((0,v.e)(e,(function(){D(n.getValue())}))),h(0,n,t),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===_||void 0===_||_(!0)})),n.onDidContentSizeChange((function(e){var t=e.contentHeight,o=e.contentHeightChanged;j&&o&&(n._domElement.style.height="".concat(t+2*f.aU,"px"))})),P&&L&&setTimeout((function(){n.focus()}),1),x&&n.onDidChangeCursorPosition((function(e){var t=e.position.lineNumber,o=n._domElement.getBoundingClientRect(),i=o.height,r=o.top,a=n.getTopForLineNumber(t);x({editorRect:{height:Number(i),top:Number(r)},position:{lineNumberTop:a}})})),tn(!0)}),[j,E,x,D,P,tn,B,_,Z,F,L,K]);(0,o.useEffect)((function(){(function(n){return new Promise((function(e){Promise.all([r._m.init(),t(7432)("./".concat(p[n],".json"))]).then((function(t){var o=(0,g.Z)(t,2),i=o[0],r=o[1];r.colors["editor.background"]="#000000",r.colors["editor.foreground"]="#FFFFFF",i.editor.defineTheme(n,r),e()}))}))})(s).then((function(){an(s)}))}),[]),(0,o.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,o.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,o.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,o.useEffect)((function(){return function(){Y.map((function(n){return n.dispose()}))}}),[Y]),(0,o.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,t){"use strict";function o(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()}}}t.d(e,{Q:function(){return i},e:function(){return o}})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
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),i=t(23831),r=t(37391),c=t(49125),l=o.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," "," "," ",""],r.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||i.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||i.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||i.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||i.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||i.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||i.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||i.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||i.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||i.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||i.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||i.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(n,e,t){var o=t(82394),i=t(12691),r=t.n(i),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,i=n.buildLinkProps,m=n.buildRowProps,y=n.columnBorders,j=n.columnFlex,k=n.columnMaxWidth,P=n.columns,C=void 0===P?[]:P,O=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.rightClickMenuWidth,N=void 0===R?w:R,A=n.rowGroupHeaders,T=n.rowVerticalPadding,V=n.rows,z=n.rowsGroupedByIndex,F=n.stickyFirstColumn,X=n.stickyHeader,W=n.uuid,G=n.wrapColumns,q=(0,c.useState)(null),L=q[0],K=q[1],U=(0,c.useState)(null),Y=U[0],J=U[1],Q=(0,c.useMemo)((function(){return j.reduce((function(n,e){return n+(e||0)}),0)}),[j]),$=(0,c.useCallback)((function(n){if(j[n]){var e=Math.round(j[n]/Q*100);return"".concat(e,"%")}return null}),[j,Q]),nn=(0,c.useCallback)((function(){return K(null)}),[K]);(0,c.useEffect)((function(){var n;return null===(n=document)||void 0===n||n.addEventListener("click",nn),function(){var n;null===(n=document)||void 0===n||n.removeEventListener("click",nn)}}),[nn]);var en=(0,c.useMemo)((function(){return D||M}),[D,M]),tn=(0,c.useMemo)((function(){var n;if(!en)return null;var t=(null===e||void 0===e||null===(n=e.current)||void 0===n?void 0:n.getBoundingClientRect())||{},o=t.x,i=t.width,r=L||{},c=r.x,l=void 0===c?0:c,a=r.y,d=void 0===a?0:a,s=l;return l+N>=o+i&&(s=o+i-(N+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(Y),M&&(0,b.jsx)(u.Z,{items:M(Y)||[],open:!0,parentRef:void 0,uuid:"FileBrowser/ContextMenu",width:N})]})}),[L,Y,en,e,D,M]),on=(0,c.useMemo)((function(){return null===V||void 0===V?void 0:V.map((function(n,e){var o,l=null===i||void 0===i?void 0:i(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,i){var r;d&&(r=d(o,i)),r||(r=(0,b.jsx)(g.cE,{alignTop:t,columnBorders:y,compact:O,last:i===n.length-1,maxWidth:null===k||void 0===k?void 0:k(i),noBorder:H,rowVerticalPadding:T,selected:null===I||void 0===I?void 0:I(e),stickyFirstColumn:F&&0===i,width:$(i),wrapColumns:G,children:o},"".concat(W,"-row-").concat(e,"-cell-").concat(i))),p.push(r)})),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:en?function(n){n.preventDefault(),K({x:n.pageX,y:n.pageY}),J(e),null===E||void 0===E||E(e,n)}:null,children:p},"".concat(W,"-row-").concat(e))}return l?(0,c.createElement)(r(),x(x({},l),{},{key:"".concat(W,"-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,i,m,$,y,k,O,en,Z,I,H,S,B,E,T,V,J,F,W,G]),rn=(0,c.useMemo)((function(){return(0,b.jsx)(g.Vq,{noHover:!0,children:null===C||void 0===C?void 0:C.map((function(n,e){return(0,b.jsx)(g.GZ,{columnBorders:y,compact:O,last:e===C.length-1,noBorder:H,sticky:X,children:(0,b.jsxs)(d.ZP,{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(W,"-col-").concat(n.uuid,"-").concat(e))}))})}),[y,C,O,H,X,W]),cn=(0,c.useMemo)((function(){return(null===A||void 0===A?void 0:A.length)>=1&&(null===z||void 0===z?void 0:z.length)>=1?null===z||void 0===z?void 0:z.reduce((function(n,e,t){var i=null===e||void 0===e?void 0:e.map((function(n){return null===on||void 0===on?void 0:on[n]}));if((null===i||void 0===i?void 0:i.length)>=1){var r=A[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:r,children:(0,b.jsx)(g.kA,{borderCollapseSeparate:o,columnBorders:y,children:(0,b.jsxs)(b.Fragment,{children:[(null===C||void 0===C?void 0:C.length)>=1&&!_&&rn,i]})})})})},"table-group-".concat(t)))}return n}),[]):(0,b.jsxs)(g.kA,{borderCollapseSeparate:o,columnBorders:y,children:[(null===C||void 0===C?void 0:C.length)>=1&&!_&&rn,on]})}),[o,y,null===C||void 0===C?void 0:C.length,rn,_,on,A,z]);return(0,b.jsxs)("div",{style:{position:"relative"},children:[cn,en&&L&&tn]})}e.Z=c.forwardRef(y)},25880:function(n,e,t){var o=t(82394),i=t(26304),r=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 ")})),P=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 ")})),C=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 "})),O=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,r=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,i.Z)(n,w);return(0,x.jsxs)(k,j(j({},N),{},{maxHeight:v,children:[(0,x.jsx)(P,{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.ZP,{alignItems:"center",children:[(0,x.jsx)(u.Z,{mr:1,children:(0,x.jsxs)(d.ZP,{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)(C,{contentOverflowVisible:r,hideScrollbar:p,maxHeight:v,noBackground:m,noPaddingContent:y,visible:D,children:(0,x.jsx)(O,{noPaddingContent:y,ref:e,children:o})})})]}))};e.Z=r.forwardRef(Z)},44182:function(n,e,t){var o=t(82394),i=t(26304),r=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,i.Z)(n,s),b=(0,r.useState)(d||{}),m=b[0],x=b[1],w=(0,r.useState)({}),y=w[0],j=w[1],k=h(h({},m),p);return(0,u.jsx)(f,h(h({},v),{},{children:r.Children.map(t,(function(n,i){var d=r.Children.count(t),s=i===d-1,p=k[i];return(0,u.jsxs)("div",{children:[(0,u.jsx)(g,{index:i,showDividers:a,children:r.cloneElement(n,h(h({},v),{},{first:0===i,last:s,onClick:function(){var n;j(h(h({},y),{},(0,o.Z)({},i,y[i]?y[i]+1:1))),n=h(h({},k),{},(0,o.Z)({},i,!p)),x(n),c&&c(n)},singlePanel:1===d,visible:p,visibleCount:y[i]||0,visibleHighlightDisabled:"undefined"!==typeof e&&i!==e}))}),a&&(0,u.jsx)(l.Z,{})]},i)}))}))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8190],{67429:function(e,n,t){var r=t(82394),o=t(21831),i=t(82684),u=t(16115),c=t(41150),l=t(28598);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.highlightedItemIndexInitial,t=void 0===n?null:n,r=e.itemGroups,a=e.noResultGroups,s=e.onHighlightItemIndexChange,f=e.onMouseEnterItem,p=e.onMouseLeaveItem,v=e.onSelectItem,h=e.renderEmptyState,m=e.searchQuery,g=e.selectedItem,b=e.setItemRefs,y=e.uuid,j=(0,i.useState)(!0),x=j[0],O=j[1],w=(0,i.useMemo)((function(){var e=[],n=r.reduce((function(n,t){var r=t.items.filter((function(e){return!m||function(e,n){return e.searchQueries.filter((function(e){return String(e).toLowerCase().includes(n.toLowerCase())})).length>=1}(e,m)}));return 0===r.length?n:(e.push.apply(e,(0,o.Z)(r)),n.concat(d(d({},t),{},{items:r})))}),[]);return{itemGroups:n,itemsFlattened:e}}),[r,m]),k=w.itemGroups,I=w.itemsFlattened;a&&0===I.length&&(k.push.apply(k,(0,o.Z)(a)),I.push.apply(I,(0,o.Z)(a.reduce((function(e,n){var t=n.items;return e.concat(t)}),[]))));var Z=(0,i.useRef)(null);Z.current=I.map((function(){return(0,i.createRef)()}));var C=(0,i.useState)(t),P=C[0],D=C[1],E=(0,i.useCallback)((function(e){null===s||void 0===s||s(e),D(e)}),[s,D]),S=I[P],M=(0,c.y)(),_=M.registerOnKeyDown,R=M.unregisterOnKeyDown;(0,i.useEffect)((function(){return function(){return R(y)}}),[R,y]),null===_||void 0===_||_(y,(function(e,n,t){var r,o=!0,i=I.length,c=I.findIndex((function(e,r){var o=e.keyboardShortcutValidation;return null===o||void 0===o?void 0:o({keyHistory:t,keyMapping:n},r)})),l=n[u.Gs]&&!n[u.XR]&&!g;return-1!==c?(e.preventDefault(),v(I[c]),O(o),E(c)):(n[u.Uq]||l)&&I[P]?(l&&e.preventDefault(),v(I[P]),O(o),E(P)):(n[u.Bu]?(o=!1,r=null===P?i-1:P-1):n[u.kD]?(o=!1,r=null===P?0:P+1):n[u.vP]&&E(null),"undefined"!==typeof r&&(r>=i?r=0:r<=-1&&(r=i-1),r>=0&&r<=i-1?(E(r),e.preventDefault()):E(null)),void O(o))}),[P,I,g,E,O]),(0,i.useEffect)((function(){null===b||void 0===b||b(Z)}),[Z,I,b]),(0,i.useEffect)((function(){var e=null===P||"undefined"===typeof P||P>=I.length;(null===m||void 0===m?void 0:m.length)>=1&&e&&E(0)}),[P,I,m,E]);var G=(0,i.useCallback)((function(){return O(!0)}),[O]);return(0,i.useEffect)((function(){return window.addEventListener("mousemove",G),function(){window.removeEventListener("mousemove",G)}}),[G]),0===k.length&&h?h():(0,l.jsx)(l.Fragment,{children:k.map((function(e,n){var t=e.items,r=e.renderItem,o=e.renderGroupHeader,i=e.uuid,u=n>=1?k.slice(0,n).reduce((function(e,n){return e+n.items.length}),0):0,c=t.map((function(e,n){var t=e.itemObject,o=e.value,i=o===(null===S||void 0===S?void 0:S.value),c=n+u,a=(null===t||void 0===t?void 0:t.id)||(null===t||void 0===t?void 0:t.uuid);return(0,l.jsx)("div",{id:"item-".concat(o,"-").concat(a),onMouseMove:function(){return x&&E(c)},ref:Z.current[c],children:r(e,{highlighted:i,onClick:function(){return v(e)},onMouseEnter:function(){return null===f||void 0===f?void 0:f(e)},onMouseLeave:function(){return null===p||void 0===p?void 0:p(e)}},n,c)},"item-".concat(o,"-").concat(a))}));return c.length>=1&&(0,l.jsxs)("div",{children:[null===o||void 0===o?void 0:o(),c]},i||"group-uuid-".concat(n))}))})}},18190:function(e,n,t){t.d(n,{Z:function(){return I}});var r=t(82394),o=t(82684),i=t(67429),u=t(79891),c=t(86673),l=t(55264),a=t(19711),d=t(82944),s=t(38626),f=t(23831),p=t(73942),v=t(37391),h=t(49125),m=s.default.div.withConfig({displayName:"indexstyle__DropdownStyle",componentId:"sc-suwkha-0"})([""," border-radius:","px;max-height:","px;overflow:auto;position:absolute;width:100%;z-index:1;"," ",""],v.w5,p.BG,40*h.iI,(function(e){return"\n background-color: ".concat((e.theme.background||f.Z.background).popup,";\n box-shadow: ").concat((e.theme.shadow||f.Z.shadow).popup,";\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset-.5*h.iI,"px;\n ")})),g=s.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-suwkha-1"})(["padding:","px;position:relative;z-index:2;&:hover{cursor:pointer;}",""],.5*h.iI,(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||f.Z.interactive).hoverBackground,";\n ")})),b=t(16115),y=t(66653),j=t(24224),x=t(41150),O=t(28598);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function k(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var I=function(e){var n,t=e.removeTag,r=e.selectTag,s=e.selectedTags,f=void 0===s?[]:s,p=e.tags,v=void 0===p?[]:p,h=e.uuid,w=(0,o.useRef)(null),I=(0,o.useState)(!1),Z=I[0],C=I[1],P=(0,o.useState)(null),D=P[0],E=P[1],S=(0,o.useMemo)((function(){return(0,j.YC)(v||[],"uuid")}),[v]),M=(0,o.useMemo)((function(){return null===S||void 0===S?void 0:S.map((function(e){return{itemObject:e,searchQueries:[e.uuid],value:e.uuid}}))}),[S]),_=(0,o.useMemo)((function(){return(null===D||void 0===D?void 0:D.length)>=1?M.concat({itemObject:{uuid:D},searchQueries:[D],value:"Add tag: ".concat(D)}):M}),[M,D]),R=(0,x.y)(),G=R.registerOnKeyDown,B=R.unregisterOnKeyDown;return(0,o.useEffect)((function(){return function(){return B(h)}}),[B,h]),null===G||void 0===G||G(h,(function(e,n){var t;Z&&n[b.vP]&&(C(!1),null===w||void 0===w||null===(t=w.current)||void 0===t||t.blur())}),[Z,w]),(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(l.Z,{onClickTag:t,tags:f}),(0,O.jsxs)(c.Z,{mt:1,style:{position:"relative"},children:[(0,O.jsx)(d.Z,{onBlur:function(){return setTimeout((function(){return C(!1)}),150)},onChange:function(e){return E(e.target.value)},onFocus:function(){return C(!0)},ref:w,value:D||""}),(0,O.jsx)(m,{topOffset:null===w||void 0===w||null===(n=w.current)||void 0===n?void 0:n.getBoundingClientRect().height,children:(0,O.jsx)(i.Z,{itemGroups:[{items:Z?_:[],renderItem:function(e,n){var t=e.value;return(0,O.jsx)(g,k(k({},n),{},{onClick:function(e){var t;(0,y.j)(e),null===n||void 0===n||null===(t=n.onClick)||void 0===t||t.call(n,e)},children:(0,O.jsx)(u.Z,{small:!0,children:(0,O.jsx)(a.ZP,{children:t})})}))}}],onSelectItem:function(e){var n=e.itemObject;null===r||void 0===r||r(n),E(null)},searchQuery:D,uuid:h})})]})]})}},55264:function(e,n,t){var r=t(82684),o=t(79891),i=t(67971),u=t(19711),c=t(24224),l=t(28598);n.Z=function(e){var n=e.onClickTag,t=e.tags,a=void 0===t?[]:t,d=(0,r.useMemo)((function(){return(null===a||void 0===a?void 0:a.length)||0}),[a]),s=(0,r.useMemo)((function(){return(0,c.YC)(a||[],"uuid")}),[a]);return(0,l.jsx)(i.ZP,{alignItems:"center",flexWrap:"wrap",children:null===s||void 0===s?void 0:s.reduce((function(e,t){return e.push((0,l.jsx)("div",{style:{marginBottom:2,marginRight:d>=2?4:0,marginTop:2},children:(0,l.jsx)(o.Z,{onClick:n?function(){return n(t)}:null,small:!0,children:(0,l.jsx)(u.ZP,{children:t.uuid})})},"tag-".concat(t.uuid))),e}),[])})}},79891:function(e,n,t){var r=t(38626),o=t(60328),i=t(67971),u=t(86673),c=t(19711),l=t(23831),a=t(22341),d=t(49125),s=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||l.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||l.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((d.iI+s.Al)/2,"px;\n height: ").concat(1.5*d.iI+s.Al,"px;\n padding: ").concat(d.iI/1.5,"px ").concat(1.25*d.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((d.iI/2+s.Al)/2,"px;\n height: ").concat(s.Al+d.iI/2+2,"px;\n padding: ").concat(d.iI/4,"px ").concat(d.iI,"px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||l.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,t=e.children,r=e.disabled,l=e.label,s=e.onClick,v=e.primary,h=e.small;return(0,f.jsx)(p,{border:n,primary:v,small:h,children:(0,f.jsx)(o.Z,{basic:!0,disabled:r,noBackground:!0,noPadding:!0,onClick:s,transparent:!0,children:(0,f.jsxs)(i.ZP,{alignItems:"center",children:[t,l&&(0,f.jsx)(c.ZP,{small:h,children:l}),!r&&s&&(0,f.jsx)(u.Z,{ml:1,children:(0,f.jsx)(a.x8,{default:v,muted:!v,size:h?d.iI:1.25*d.iI})})]})})})}}}]);
|