mage-ai 0.9.44__py3-none-any.whl → 0.9.46__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/api/constants.py +2 -0
- mage_ai/api/operations/base.py +208 -12
- mage_ai/api/policies/BasePolicy.py +3 -3
- mage_ai/api/policies/ComputeClusterPolicy.py +96 -0
- mage_ai/api/policies/ComputeConnectionPolicy.py +74 -0
- mage_ai/api/policies/ComputeServicePolicy.py +50 -0
- mage_ai/api/policies/DownloadPolicy.py +29 -0
- mage_ai/api/policies/GitCustomBranchPolicy.py +1 -0
- mage_ai/api/policies/GlobalHookPolicy.py +126 -0
- mage_ai/api/policies/OauthPolicy.py +56 -7
- mage_ai/api/policies/ProjectPolicy.py +1 -0
- mage_ai/api/policies/RolePolicy.py +12 -1
- mage_ai/api/presenters/ComputeClusterPresenter.py +19 -0
- mage_ai/api/presenters/ComputeConnectionPresenter.py +26 -0
- mage_ai/api/presenters/ComputeServicePresenter.py +15 -0
- mage_ai/api/presenters/DownloadPresenter.py +13 -0
- mage_ai/api/presenters/GlobalHookPresenter.py +74 -0
- mage_ai/api/presenters/OauthPresenter.py +1 -0
- mage_ai/api/presenters/PipelinePresenter.py +1 -0
- mage_ai/api/presenters/ProjectPresenter.py +1 -0
- mage_ai/api/presenters/SparkApplicationPresenter.py +2 -0
- mage_ai/api/presenters/WorkspacePresenter.py +22 -22
- mage_ai/api/resources/AsyncBaseResource.py +39 -0
- mage_ai/api/resources/BackfillResource.py +1 -0
- mage_ai/api/resources/BlockResource.py +57 -0
- mage_ai/api/resources/ClusterResource.py +1 -1
- mage_ai/api/resources/ComputeClusterResource.py +109 -0
- mage_ai/api/resources/ComputeConnectionResource.py +103 -0
- mage_ai/api/resources/ComputeServiceResource.py +35 -0
- mage_ai/api/resources/DownloadResource.py +56 -0
- mage_ai/api/resources/ExecutionStateResource.py +1 -1
- mage_ai/api/resources/GitBranchResource.py +35 -29
- mage_ai/api/resources/GitCustomBranchResource.py +9 -0
- mage_ai/api/resources/GlobalHookResource.py +192 -0
- mage_ai/api/resources/KernelResource.py +10 -0
- mage_ai/api/resources/OauthResource.py +60 -98
- mage_ai/api/resources/PipelineResource.py +4 -4
- mage_ai/api/resources/PipelineScheduleResource.py +37 -16
- mage_ai/api/resources/ProjectResource.py +5 -3
- mage_ai/api/resources/SessionResource.py +24 -9
- mage_ai/api/resources/SparkApplicationResource.py +5 -5
- mage_ai/api/resources/SparkEnvironmentResource.py +1 -2
- mage_ai/api/resources/SparkExecutorResource.py +1 -2
- mage_ai/api/resources/SparkJobResource.py +3 -6
- mage_ai/api/resources/SparkSqlResource.py +6 -11
- mage_ai/api/resources/SparkStageAttemptResource.py +2 -3
- mage_ai/api/resources/SparkStageAttemptTaskResource.py +1 -2
- mage_ai/api/resources/SparkStageAttemptTaskSummaryResource.py +1 -2
- mage_ai/api/resources/SparkStageResource.py +3 -6
- mage_ai/api/resources/SparkThreadResource.py +1 -2
- mage_ai/api/resources/UserResource.py +32 -31
- mage_ai/api/resources/mixins/spark.py +25 -4
- mage_ai/authentication/oauth/constants.py +4 -0
- mage_ai/authentication/oauth2.py +1 -3
- mage_ai/authentication/permissions/constants.py +4 -0
- mage_ai/authentication/providers/__init__.py +0 -0
- mage_ai/authentication/providers/active_directory.py +136 -0
- mage_ai/authentication/providers/constants.py +17 -0
- mage_ai/authentication/providers/ghe.py +81 -0
- mage_ai/authentication/providers/google.py +86 -0
- mage_ai/authentication/providers/oauth.py +60 -0
- mage_ai/authentication/providers/okta.py +101 -0
- mage_ai/authentication/providers/sso.py +20 -0
- mage_ai/authentication/providers/utils.py +12 -0
- mage_ai/cluster_manager/aws/emr_cluster_manager.py +2 -1
- mage_ai/cluster_manager/workspace/base.py +7 -3
- mage_ai/data_integrations/destinations/constants.py +2 -0
- mage_ai/data_preparation/executors/block_executor.py +3 -0
- mage_ai/data_preparation/executors/pipeline_executor.py +9 -0
- mage_ai/data_preparation/git/__init__.py +3 -3
- mage_ai/data_preparation/git/api.py +69 -35
- mage_ai/data_preparation/models/block/__init__.py +95 -60
- mage_ai/data_preparation/models/block/data_integration/data.py +1 -1
- mage_ai/data_preparation/models/block/dbt/block_sql.py +95 -1
- mage_ai/data_preparation/models/block/dbt/utils.py +6 -0
- mage_ai/data_preparation/models/block/spark/mixins.py +82 -34
- mage_ai/data_preparation/models/download/__init__.py +8 -0
- mage_ai/data_preparation/models/global_hooks/__init__.py +0 -0
- mage_ai/data_preparation/models/global_hooks/constants.py +44 -0
- mage_ai/data_preparation/models/global_hooks/models.py +928 -0
- mage_ai/data_preparation/models/global_hooks/utils.py +21 -0
- mage_ai/data_preparation/models/pipeline.py +82 -6
- mage_ai/data_preparation/models/pipelines/models.py +16 -0
- mage_ai/data_preparation/models/project/__init__.py +6 -0
- mage_ai/data_preparation/models/project/constants.py +1 -0
- mage_ai/data_preparation/models/project/models.py +12 -0
- mage_ai/data_preparation/repo_manager.py +23 -1
- mage_ai/data_preparation/templates/callbacks/base.jinja +4 -0
- mage_ai/data_preparation/templates/data_exporters/streaming/kafka.yaml +1 -0
- mage_ai/data_preparation/templates/data_loaders/streaming/activemq.yaml +6 -0
- mage_ai/data_preparation/templates/data_loaders/streaming/kafka.yaml +1 -0
- mage_ai/data_preparation/templates/data_loaders/streaming/nats.yaml +20 -0
- mage_ai/data_preparation/templates/repo/io_config.yaml +2 -2
- mage_ai/io/duckdb.py +0 -1
- mage_ai/orchestration/concurrency.py +8 -1
- mage_ai/orchestration/db/models/schedules.py +23 -2
- mage_ai/orchestration/pipeline_scheduler.py +168 -105
- mage_ai/orchestration/queue/process_queue.py +9 -1
- mage_ai/orchestration/triggers/api.py +11 -3
- mage_ai/orchestration/triggers/constants.py +1 -0
- mage_ai/orchestration/triggers/utils.py +23 -0
- mage_ai/server/active_kernel.py +37 -4
- mage_ai/server/api/downloads.py +76 -1
- mage_ai/server/api/triggers.py +1 -0
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/_next/static/9jB4XPuz6BzxBcG9VNao5/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1749-9a6276b2918fdae1.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/7519-8c29bbb92e03cc77.js → frontend_dist/_next/static/chunks/1845-5ce774d5ab81ed57.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1952-ac7722e8b1ab88fe.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3419-f8d518d024e7b5c8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/4267-fd4d8049e83178de.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/4366-93e09e5a4a7e182c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5457-949640f4037bf12f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5499-76cf8f023c6b0985.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/553-7f7919e14392ca67.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5638-a65610405a70961c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5810-12eadc488265d55b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5820-28adeabb5cda2b96.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/595-0d174b1f9fbfce4f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/600-705fe234320ec5de.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3122-f27de34d0b5426af.js → frontend_dist/_next/static/chunks/6285-e9b45335bfb9ccaf.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6333-bc1b433b428a9095.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{5397-b5f2e477acc6bd6b.js → 6965-c613d1834c8ed92d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{7022-18fde36eb46e1d65.js → 7022-070ec0144a4d029c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/722-a1584445357a276c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{7858-c83d25349d0e980f.js → 7858-d9df72e95e438284.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8264-0d582a6ca33c3dfa.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3684-cbda680fd8927d07.js → frontend_dist/_next/static/chunks/8432-f191e39f9b5893f2.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/90-a7308bae028d7001.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9264-1d4f0327d42fed91.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9618-2c5045255ac5a6e7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{976-27c4eed1c9b20c44.js → 976-18c98af60b76f1a7.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/framework-22b71764bf44ede4.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-ebef928183f9a3bb.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-a24cb24b6f08bbc9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-419775ca1293b354.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-0f2d4be6fdca86ca.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/{[...slug]-3f6fc312f67ff72e.js → [...slug]-cfd68e760ae00958.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-data-products-f4cd03036c3e8723.js → global-data-products-c3b79ef31007f95b.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-77edfa32d000e88b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-e561ae38cf5592e8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-449a022f2f0f2d94.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-60845f0b59142f32.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-1d9b298fdceabbf1.js → frontend_dist/_next/static/chunks/pages/manage/users/[user]-9384c5f1efa2ac18.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-abd8571907664fdf.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{users-a7c970122a10afdc.js → users-28a930b148d99766.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-f83deb790548693b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/oauth-8bb62c4f6a511c43.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-f0c40645f385f23f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipeline-runs-c79819d6826e5416.js → pipeline-runs-b35d37bfba8fbccc.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-10e9a2d19541caa2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-c8d3a5289ab93f88.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-571c0962333b92f0.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-ff7e9108502f5716.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-a52d2d3e0c2978f4.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-ef680455ae54ccbe.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-ddddcddd2f74b4f6.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-4a238307feddb522.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-e051057d9fe94f23.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-4977276c8f84b5f4.js → [run]-0691711636fa95c7.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-ce717786f31e8f04.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d20b2cd08907afd.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-2914e326a5f1ffe0.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-b75bf17498e87354.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a7500e6e53084d3.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-c0e551d265a8d467.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/{[pipeline]-35fe7762cb83a733.js → [pipeline]-02c843b9c8418bb5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-e47db5c3eaf683af.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-55ac955dfa9a5a8d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-d6a62284c7c99cb3.js → [...slug]-b78b1be5b9ed84b9.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{permissions-b1389695f758c32b.js → permissions-37b78a436eeab258.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-29c92a9bc54ae5cd.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-0bdb66265286ab22.js → [...slug]-db05a80d18c168e5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{roles-e04e18fc295ca76a.js → roles-f55c77e4f46c8d33.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-2a1f8737561fdd94.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/{[...slug]-0267358c91122109.js → [...slug]-e3bf6e5d8bb250c4.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-50fed18bb9b8d142.js → users-20f0a050a42a015d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{settings-56f83205752b1323.js → settings-0f0121db7f5ff93d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-99e2748e3c1d57a3.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-9370551ffa462144.js → frontend_dist/_next/static/chunks/pages/templates/[...slug]-f44ccd1499ffd23a.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/templates-3cff90df13a1a755.js → frontend_dist/_next/static/chunks/pages/templates-1bfaa1c50e844813.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-ed121e305169cf1c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/test-9ae68758102cc843.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{triggers-ffaab4c013e62ba1.js → triggers-572d82d6eb7a5d43.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-2d26d80370a2e481.js +1 -0
- mage_ai/server/frontend_dist/block-layout.html +2 -2
- mage_ai/server/frontend_dist/compute.html +5 -5
- mage_ai/server/frontend_dist/files.html +5 -5
- mage_ai/server/frontend_dist/global-data-products/[...slug].html +5 -5
- mage_ai/server/frontend_dist/global-data-products.html +5 -5
- mage_ai/server/frontend_dist/global-hooks/[...slug].html +24 -0
- mage_ai/server/frontend_dist/global-hooks.html +24 -0
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage/files.html +5 -5
- mage_ai/server/frontend_dist/manage/settings.html +5 -5
- mage_ai/server/frontend_dist/manage/users/[user].html +5 -5
- mage_ai/server/frontend_dist/manage/users/new.html +5 -5
- mage_ai/server/frontend_dist/manage/users.html +5 -5
- mage_ai/server/frontend_dist/manage.html +5 -5
- mage_ai/server/frontend_dist/oauth.html +4 -4
- mage_ai/server/frontend_dist/overview.html +5 -5
- mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +5 -5
- mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/permissions.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/roles.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +17 -17
- mage_ai/server/frontend_dist/templates/[...slug].html +5 -5
- mage_ai/server/frontend_dist/templates.html +5 -5
- mage_ai/server/frontend_dist/terminal.html +5 -5
- mage_ai/server/frontend_dist/test.html +15 -15
- mage_ai/server/frontend_dist/triggers.html +5 -5
- mage_ai/server/frontend_dist/version-control.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1749-9a6276b2918fdae1.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/7519-8c29bbb92e03cc77.js → frontend_dist_base_path_template/_next/static/chunks/1845-5ce774d5ab81ed57.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-ac7722e8b1ab88fe.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-f8d518d024e7b5c8.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4267-fd4d8049e83178de.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4366-93e09e5a4a7e182c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-949640f4037bf12f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5499-76cf8f023c6b0985.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/553-7f7919e14392ca67.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5638-a65610405a70961c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-12eadc488265d55b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5820-28adeabb5cda2b96.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/595-0d174b1f9fbfce4f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/600-705fe234320ec5de.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/3122-f27de34d0b5426af.js → frontend_dist_base_path_template/_next/static/chunks/6285-e9b45335bfb9ccaf.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6333-bc1b433b428a9095.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{5397-b5f2e477acc6bd6b.js → 6965-c613d1834c8ed92d.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{7022-18fde36eb46e1d65.js → 7022-070ec0144a4d029c.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/722-a1584445357a276c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{7858-c83d25349d0e980f.js → 7858-d9df72e95e438284.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-0d582a6ca33c3dfa.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/3684-cbda680fd8927d07.js → frontend_dist_base_path_template/_next/static/chunks/8432-f191e39f9b5893f2.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/90-a7308bae028d7001.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-1d4f0327d42fed91.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9618-2c5045255ac5a6e7.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{976-27c4eed1c9b20c44.js → 976-18c98af60b76f1a7.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/framework-22b71764bf44ede4.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-ebef928183f9a3bb.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-a24cb24b6f08bbc9.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-419775ca1293b354.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-0f2d4be6fdca86ca.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/{[...slug]-3f6fc312f67ff72e.js → [...slug]-cfd68e760ae00958.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-data-products-f4cd03036c3e8723.js → global-data-products-c3b79ef31007f95b.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-77edfa32d000e88b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-e561ae38cf5592e8.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-449a022f2f0f2d94.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-60845f0b59142f32.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage/users/[user]-1d9b298fdceabbf1.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-9384c5f1efa2ac18.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-abd8571907664fdf.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{users-a7c970122a10afdc.js → users-28a930b148d99766.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-f83deb790548693b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/oauth-8bb62c4f6a511c43.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-f0c40645f385f23f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{pipeline-runs-c79819d6826e5416.js → pipeline-runs-b35d37bfba8fbccc.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-10e9a2d19541caa2.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-c8d3a5289ab93f88.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-571c0962333b92f0.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-ff7e9108502f5716.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-a52d2d3e0c2978f4.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-ef680455ae54ccbe.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-ddddcddd2f74b4f6.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-4a238307feddb522.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-e051057d9fe94f23.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-4977276c8f84b5f4.js → [run]-0691711636fa95c7.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-ce717786f31e8f04.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d20b2cd08907afd.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-2914e326a5f1ffe0.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-b75bf17498e87354.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a7500e6e53084d3.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-c0e551d265a8d467.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/{[pipeline]-35fe7762cb83a733.js → [pipeline]-02c843b9c8418bb5.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-e47db5c3eaf683af.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-55ac955dfa9a5a8d.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-d6a62284c7c99cb3.js → [...slug]-b78b1be5b9ed84b9.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{permissions-b1389695f758c32b.js → permissions-37b78a436eeab258.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-29c92a9bc54ae5cd.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-0bdb66265286ab22.js → [...slug]-db05a80d18c168e5.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{roles-e04e18fc295ca76a.js → roles-f55c77e4f46c8d33.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-2a1f8737561fdd94.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/{[...slug]-0267358c91122109.js → [...slug]-e3bf6e5d8bb250c4.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{users-50fed18bb9b8d142.js → users-20f0a050a42a015d.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{settings-56f83205752b1323.js → settings-0f0121db7f5ff93d.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-99e2748e3c1d57a3.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/templates/[...slug]-9370551ffa462144.js → frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-f44ccd1499ffd23a.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/templates-3cff90df13a1a755.js → frontend_dist_base_path_template/_next/static/chunks/pages/templates-1bfaa1c50e844813.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-ed121e305169cf1c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-9ae68758102cc843.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{triggers-ffaab4c013e62ba1.js → triggers-572d82d6eb7a5d43.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-2d26d80370a2e481.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/uPDjJYpJMst1q6psbRyte/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/block-layout.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/compute.html +2 -2
- 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/global-hooks/[...slug].html +24 -0
- mage_ai/server/frontend_dist_base_path_template/global-hooks.html +24 -0
- mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/files.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/oauth.html +3 -3
- 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]/dashboard.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/permissions/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.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/roles/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.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/[...slug].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 +9 -9
- 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 +14 -14
- 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 +43 -15
- mage_ai/server/utils/output_display.py +6 -0
- mage_ai/server/websocket_server.py +14 -0
- mage_ai/services/aws/ecs/config.py +11 -8
- mage_ai/services/aws/emr/config.py +1 -0
- mage_ai/services/aws/emr/constants.py +1 -0
- mage_ai/services/aws/emr/emr.py +20 -7
- mage_ai/services/compute/__init__.py +0 -0
- mage_ai/services/compute/aws/__init__.py +0 -0
- mage_ai/services/compute/aws/constants.py +21 -0
- mage_ai/services/compute/aws/models.py +459 -0
- mage_ai/services/compute/aws/steps.py +482 -0
- mage_ai/services/compute/constants.py +27 -0
- mage_ai/services/compute/models.py +212 -0
- mage_ai/services/k8s/job_manager.py +3 -0
- mage_ai/services/spark/api/aws_emr.py +38 -0
- mage_ai/services/spark/api/base.py +7 -4
- mage_ai/services/spark/api/constants.py +4 -0
- mage_ai/services/spark/api/local.py +25 -24
- mage_ai/services/spark/api/service.py +15 -5
- mage_ai/services/spark/constants.py +1 -1
- mage_ai/services/spark/models/applications.py +45 -3
- mage_ai/services/spark/models/base.py +3 -19
- mage_ai/services/spark/models/environments.py +16 -11
- mage_ai/services/spark/models/executors.py +2 -2
- mage_ai/services/spark/models/sqls.py +46 -15
- mage_ai/services/spark/models/stages.py +55 -32
- mage_ai/services/spark/models/threads.py +2 -2
- mage_ai/services/spark/utils.py +22 -6
- mage_ai/services/ssh/__init__.py +0 -0
- mage_ai/services/ssh/aws/__init__.py +0 -0
- mage_ai/services/ssh/aws/emr/__init__.py +0 -0
- mage_ai/services/ssh/aws/emr/constants.py +10 -0
- mage_ai/services/ssh/aws/emr/models.py +326 -0
- mage_ai/services/ssh/aws/emr/utils.py +151 -0
- mage_ai/settings/__init__.py +16 -1
- mage_ai/settings/secret_generation.py +7 -0
- mage_ai/settings/sso.py +20 -0
- mage_ai/shared/hash.py +17 -1
- mage_ai/shared/models.py +253 -0
- mage_ai/streaming/constants.py +2 -0
- mage_ai/streaming/sources/activemq.py +89 -0
- mage_ai/streaming/sources/nats_js.py +182 -0
- mage_ai/streaming/sources/source_factory.py +8 -0
- mage_ai/tests/ai/test_ai_functions.py +53 -8
- mage_ai/tests/api/endpoints/test_oauths.py +33 -0
- mage_ai/tests/api/endpoints/test_projects.py +1 -0
- mage_ai/tests/api/endpoints/test_workspaces.py +55 -0
- mage_ai/tests/api/operations/test_base.py +7 -5
- mage_ai/tests/api/operations/test_operations.py +0 -1
- mage_ai/tests/api/operations/test_operations_with_hooks.py +577 -0
- mage_ai/tests/api/operations/test_syncs.py +0 -1
- mage_ai/tests/api/operations/test_users.py +13 -2
- mage_ai/tests/data_preparation/executors/test_block_executor.py +1 -0
- mage_ai/tests/data_preparation/models/global_hooks/__init__.py +0 -0
- mage_ai/tests/data_preparation/models/global_hooks/test_global_hooks.py +575 -0
- mage_ai/tests/data_preparation/models/global_hooks/test_hook.py +760 -0
- mage_ai/tests/data_preparation/models/global_hooks/test_utils.py +33 -0
- mage_ai/tests/data_preparation/models/test_pipeline.py +5 -0
- mage_ai/tests/data_preparation/test_repo_manager.py +11 -0
- mage_ai/tests/data_preparation/test_templates.py +1 -0
- mage_ai/tests/factory.py +132 -10
- mage_ai/tests/orchestration/queue/test_process_queue.py +15 -2
- mage_ai/tests/orchestration/test_pipeline_scheduler.py +447 -79
- mage_ai/tests/services/aws/ecs/__init__.py +0 -0
- mage_ai/tests/services/aws/ecs/test_config.py +144 -0
- mage_ai/tests/services/k8s/test_job_manager.py +22 -1
- mage_ai/tests/shared/mixins.py +291 -0
- mage_ai/tests/shared/test_hash.py +17 -1
- mage_ai/tests/streaming/sources/test_activemq.py +32 -0
- mage_ai/tests/streaming/sources/test_nats_js.py +32 -0
- mage_ai/tests/streaming/sources/test_source_factory.py +26 -1
- {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/METADATA +28 -66
- {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/RECORD +443 -364
- mage_ai/authentication/oauth/active_directory.py +0 -17
- mage_ai/server/frontend_dist/_next/static/RPXiX8RpZ7oO-yeaEtV2c/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1125-91d3ce33140ef041.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1749-607014ecf28268bf.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1952-573c7fc7ad84da6e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3004-231cad9039ae5dcb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3419-0873e170ef7d6303.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3932-0ceca9599d6e6d00.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4267-335766a915ee2fa9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5457-8be2e0a3fe0ba64b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5499-bca977f466e259e1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/553-edf533e634e85192.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5810-37c6091b29a1fe53.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/600-0733eb84f0a0a9e0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6333-53b6ebbef95a3691.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/722-3fff38a9019369fe.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8224-39a93ee1058b6069.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8264-6ef8fdb195694807.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9264-1b5c4b071ed544c3.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/framework-7c365855dab1bf41.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-a4a660fa14cf05a9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-c465c14d48392b11.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-b1f8d5a7a9a30f2d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-93c094bad0f299fb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-891e5bd5935f7473.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-d2e4ee4e68d36807.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-4a49126fcfe8ced0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-5f8c5d0bc6ad1113.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/oauth-09467512a85c96ed.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-31bde04718d0d3a8.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-96718f95103d7844.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-a9266d353f288e8c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-b5c29c852262312e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-5d525454ff7aeb3f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-883f4ae9a4a264c0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-c65be964e6398cb7.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-1f5b4a974bd39740.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-074c32397d341de9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-50f5d8706ed0bc73.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-e151c1552fcb67bd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-cc36f0f8c73fee4b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-8336c4326f1e7d96.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-01dd679e4a21e0d9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-4d9051c073a9b2ff.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-88d41c33b8fcb300.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-d859e07561eb9010.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-578d862f3e56e6e6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/test-1c0588d685b909b9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-e284cf1535d93798.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1125-91d3ce33140ef041.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1749-607014ecf28268bf.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-573c7fc7ad84da6e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3004-231cad9039ae5dcb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-0873e170ef7d6303.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3932-0ceca9599d6e6d00.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4267-335766a915ee2fa9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-8be2e0a3fe0ba64b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5499-bca977f466e259e1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/553-edf533e634e85192.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-37c6091b29a1fe53.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/600-0733eb84f0a0a9e0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6333-53b6ebbef95a3691.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/722-3fff38a9019369fe.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8224-39a93ee1058b6069.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-6ef8fdb195694807.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-1b5c4b071ed544c3.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/framework-7c365855dab1bf41.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-a4a660fa14cf05a9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-c465c14d48392b11.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-b1f8d5a7a9a30f2d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-93c094bad0f299fb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-891e5bd5935f7473.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-d2e4ee4e68d36807.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-4a49126fcfe8ced0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-5f8c5d0bc6ad1113.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/oauth-09467512a85c96ed.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-31bde04718d0d3a8.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-96718f95103d7844.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-a9266d353f288e8c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-b5c29c852262312e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-5d525454ff7aeb3f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-883f4ae9a4a264c0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-c65be964e6398cb7.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-1f5b4a974bd39740.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-074c32397d341de9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-50f5d8706ed0bc73.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-e151c1552fcb67bd.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-cc36f0f8c73fee4b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-8336c4326f1e7d96.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-01dd679e4a21e0d9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-4d9051c073a9b2ff.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-88d41c33b8fcb300.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-d859e07561eb9010.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-578d862f3e56e6e6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-1c0588d685b909b9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-e284cf1535d93798.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/rNR5JgSxO3eA2BWGa_i7U/_buildManifest.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{RPXiX8RpZ7oO-yeaEtV2c → 9jB4XPuz6BzxBcG9VNao5}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{rNR5JgSxO3eA2BWGa_i7U → uPDjJYpJMst1q6psbRyte}/_ssgManifest.js +0 -0
- {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/WHEEL +0 -0
- {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[595],{55283:function(e,n,t){t.d(n,{HC:function(){return O},HS:function(){return j},IN:function(){return h},Kf:function(){return g},Nk:function(){return m},PB:function(){return x},PY:function(){return b},WC:function(){return p},fk:function(){return S},gE:function(){return A},j1:function(){return C},jv:function(){return Z},nz:function(){return y},oh:function(){return s},qn:function(){return v},t1:function(){return k},u2:function(){return f},y9:function(){return _}});var o=t(38626),i=t(44897),r=t(44425),l=t(42631),d=t(8059),c=t(70515),u=t(47041),a=t(91437),s=68,h=1.5*c.iI,p=3*c.iI;function f(e){var n=d.eW;return r.tf.CALLBACK===e?n=d.J:r.tf.CHART===e||r.tf.CONDITIONAL===e?n=d.Hv:r.tf.CUSTOM===e?n=d.AK:r.tf.DATA_EXPORTER===e?n=d.Sr:r.tf.DATA_LOADER===e?n=d.R2:r.tf.DBT===e?n=d.J:r.tf.EXTENSION===e?n=d.FI:r.tf.GLOBAL_DATA_PRODUCT===e?n=d.yr:r.tf.SCRATCHPAD===e?n=d.Hv:r.tf.SENSOR===e?n=d.rK:r.tf.MARKDOWN===e?n=d.RK:r.tf.TRANSFORMER===e&&(n=d.eW),n}function v(e,n){var t,o,l=((null===n||void 0===n||null===(t=n.theme)||void 0===t?void 0:t.borders)||i.Z.borders).light,d=((null===n||void 0===n||null===(o=n.theme)||void 0===o?void 0:o.monotone)||i.Z.monotone).grey500,c=n||{},u=c.blockColor,a=c.isSelected,s=c.theme;return a?l=(s||i.Z).content.active:r.tf.TRANSFORMER===e||u===r.Lq.PURPLE?(l=(s||i.Z).accent.purple,d=(s||i.Z).accent.purpleLight):r.tf.DATA_EXPORTER===e||u===r.Lq.YELLOW?(l=(s||i.Z).accent.yellow,d=(s||i.Z).accent.yellowLight):r.tf.DATA_LOADER===e||u===r.Lq.BLUE?(l=(s||i.Z).accent.blue,d=(s||i.Z).accent.blueLight):r.tf.MARKDOWN===e?(l=(s||i.Z).accent.sky,d=(s||i.Z).accent.skyLight):r.tf.SENSOR===e||u===r.Lq.PINK?(l=(s||i.Z).accent.pink,d=(s||i.Z).accent.pinkLight):r.tf.DBT===e?(l=(s||i.Z).accent.dbt,d=(s||i.Z).accent.dbtLight):r.tf.EXTENSION===e||u===r.Lq.TEAL?(l=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).teal,d=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).tealLight):r.tf.CALLBACK===e?(l=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).rose,d=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).roseLight):r.tf.CONDITIONAL===e||r.tf.SCRATCHPAD===e||u===r.Lq.GREY||r.tf.CUSTOM===e&&!u?(l=(s||i.Z).content.default,d=(s||i.Z).accent.contentDefaultTransparent):r.tf.GLOBAL_DATA_PRODUCT!==e||u||(l=(s||i.Z).monotone.white,d=(s||i.Z).monotone.whiteTransparent),{accent:l,accentLight:d}}var g=(0,o.css)([""," "," "," "," "," "," ",""],(0,a.eR)(),(function(e){return!e.selected&&!e.hasError&&"\n border-color: ".concat(v(e.blockType,e).accentLight,";\n ")}),(function(e){return e.selected&&!e.hasError&&"\n border-color: ".concat(v(e.blockType,e).accent,";\n ")}),(function(e){return!e.selected&&e.hasError&&"\n border-color: ".concat((e.theme.accent||i.Z.accent).negativeTransparent,";\n ")}),(function(e){return e.selected&&e.hasError&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).danger,";\n ")}),(function(e){return e.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(e){return e.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),m=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],l.n_),b=o.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],g,l.n_,l.M8,l.mP,(function(e){return"\n background-color: ".concat((e.theme||i.Z).background.content,";\n\n &:hover {\n border-color: ").concat(v(e.blockType,e).accent,";\n }\n ")})),x=o.default.div.withConfig({displayName:"indexstyle__HeaderHorizontalBorder",componentId:"sc-s5rj34-2"})(["",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme||i.Z).borders.darkLight,";\n ")})),y=o.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-3"})([""," 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-bottom:","px;padding-top:","px;"," "," "," ",""],g,l.n_,l.n_,l.M8,l.mP,l.M8,l.mP,l.M8,l.mP,1*c.iI,1*c.iI,(function(e){return"\n background-color: ".concat((e.theme||i.Z).background.dashboard,";\n ")}),(function(e){return"undefined"!==typeof e.zIndex&&null!==e.zIndex&&"\n z-index: ".concat(6+(e.zIndex||0),";\n ")}),(function(e){return!e.noSticky&&"\n // This is to hide the horizontal scrollbar in the block header when sideBySide is enabled,\n // and the screen width is too small.\n position: sticky;\n top: -5px;\n "}),(function(e){return e.noSticky&&"\n ".concat((0,u.y$)(),"\n\n overflow-x: auto;\n overflow-y: visible;\n ")})),j=o.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-s5rj34-4"})([""," "," ",""],(function(e){return!e.darkBorder&&"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).darkLight,";\n ")}),(function(e){return e.darkBorder&&"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}),(function(e){return!e.noBackground&&"\n background-color: ".concat((e.theme||i.Z).background.dashboard,";\n ")})),Z=o.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-5"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;position:relative;"," "," "," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],g,l.M8,l.mP,l.M8,l.mP,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeTextarea,";\n ")}),(function(e){return!e.noPadding&&"\n padding-bottom: ".concat(c.iI,"px;\n padding-top: ").concat(c.iI,"px;\n ")}),(function(e){return e.lightBackground&&"\n background-color: ".concat((e.theme||i.Z).background.content,";\n ")}),(function(e){return!e.hideBorderBottom&&"\n border-bottom-left-radius: ".concat(l.n_,"px;\n border-bottom-right-radius: ").concat(l.n_,"px;\n border-bottom-style: ").concat(l.M8,";\n border-bottom-width: ").concat(l.mP,"px;\n overflow: hidden;\n ")})),A=o.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-6"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;&:hover{"," .block-divider-inner{","}}"," "," "," ",""],2*c.iI,(function(e){return e.additionalZIndex>0&&"\n z-index: ".concat(8+e.additionalZIndex,";\n ")}),(function(e){return"\n background-color: ".concat((e.theme.text||i.Z.text).fileBrowser,";\n ")}),(function(e){return!e.height&&"\n height: ".concat(2*c.iI,"px;\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return!e.bottom&&"\n bottom: ".concat(.5*c.iI,"px;\n ")}),(function(e){return"undefined"!==typeof e.bottom&&"\n bottom: ".concat(e.bottom,"px;\n ")})),k=o.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-7"})(["height 1px;width:100%;position:absolute;z-index:-1;"," ",""],(function(e){return!e.top&&"\n top: ".concat(1.5*c.iI,"px;\n ")}),(function(e){return"undefined"!==typeof e.top&&"\n top: ".concat(e.top,"px;\n ")})),_=o.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-8"})([""," ",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n padding-left: ").concat(e.normalPadding?c.iI:s,"px;\n ")}),(function(e){return!e.noMargin&&"\n margin-bottom: ".concat(1*c.iI,"px;\n padding-bottom: ").concat(1*c.iI,"px;\n ")})),O=o.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-9"})(["bottom:","px;left:","px;position:absolute;"],1*c.iI,s),S=o.default.div.withConfig({displayName:"indexstyle__ScrollColunnsContainerStyle",componentId:"sc-s5rj34-10"})(["position:relative;",""],(function(e){return"\n z-index: ".concat((null===e||void 0===e?void 0:e.zIndex)||1,";\n ")})),C=o.default.div.attrs((function(e){var n=e.height,t=e.left,o=e.right,i=e.top;return{style:{position:"fixed",height:n,width:e.width,left:t,right:o,top:i,zIndex:(e.zIndex||0)+2}}})).withConfig({displayName:"indexstyle__ScrollColunnStyle",componentId:"sc-s5rj34-11"})([""])},94629:function(e,n,t){t.d(n,{Z:function(){return O}});var o=t(82394),i=t(21831),r=t(82684),l=t(50724),d=t(82555),c=t(97618),u=t(70613),a=t(68487),s=t(68899),h=t(28598);function p(e,n){var t=e.children,o=e.noPadding;return(0,h.jsx)(s.HS,{noPadding:o,ref:n,children:t})}var f=r.forwardRef(p),v=t(62547),g=t(82571),m=t(35686),b=t(98464),x=t(46684),y=t(70515),j=t(53808),Z=t(19183);function A(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 k(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,o.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}function _(e,n){var t,o=e.addProjectBreadcrumbToCustomBreadcrumbs,p=e.after,A=e.afterHeader,_=e.afterHidden,O=e.afterWidth,S=e.afterWidthOverride,C=e.appendBreadcrumbs,R=e.before,E=e.beforeWidth,P=e.breadcrumbs,T=e.children,I=e.errors,w=e.headerMenuItems,D=e.headerOffset,L=e.hideAfterCompletely,N=e.mainContainerHeader,M=e.navigationItems,B=e.setAfterHidden,H=e.setErrors,U=e.subheaderChildren,W=e.subheaderNoPadding,F=e.title,K=e.uuid,z=(0,Z.i)().width,X="dashboard_after_width_".concat(K),Y="dashboard_before_width_".concat(K),G=(0,r.useRef)(null),V=(0,r.useState)(S?O:(0,j.U2)(X,O)),q=V[0],Q=V[1],J=(0,r.useState)(!1),$=J[0],ee=J[1],ne=(0,r.useState)(R?Math.max((0,j.U2)(Y,E),13*y.iI):null),te=ne[0],oe=ne[1],ie=(0,r.useState)(!1),re=ie[0],le=ie[1],de=(0,r.useState)(null)[1],ce=m.ZP.projects.list({},{revalidateOnFocus:!1}).data,ue=null===ce||void 0===ce?void 0:ce.projects,ae={label:function(){var e;return null===ue||void 0===ue||null===(e=ue[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},se=[];P&&(o&&se.push(ae),se.push.apply(se,(0,i.Z)(P))),(null===P||void 0===P||!P.length||C)&&(null===ue||void 0===ue?void 0:ue.length)>=1&&(null!==P&&void 0!==P&&P.length||se.unshift({bold:!C,label:function(){return F}}),se.unshift(ae)),(0,r.useEffect)((function(){null===G||void 0===G||!G.current||$||re||null===de||void 0===de||de(G.current.getBoundingClientRect().width)}),[$,q,re,te,G,de,z]),(0,r.useEffect)((function(){$||(0,j.t8)(X,q)}),[_,$,q,X]),(0,r.useEffect)((function(){re||(0,j.t8)(Y,te)}),[re,te,Y]);var he=(0,b.Z)(O);return(0,r.useEffect)((function(){S&&he!==O&&Q(O)}),[S,O,he]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(u.Z,{title:F}),(0,h.jsx)(a.Z,{breadcrumbs:se,menuItems:w,project:null===ue||void 0===ue?void 0:ue[0],version:null===ue||void 0===ue||null===(t=ue[0])||void 0===t?void 0:t.version}),(0,h.jsxs)(s.Nk,{ref:n,children:[0!==(null===M||void 0===M?void 0:M.length)&&(0,h.jsx)(s.lm,{showMore:!0,children:(0,h.jsx)(g.Z,{navigationItems:M,showMore:!0})}),(0,h.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,h.jsxs)(v.Z,{after:p,afterHeader:A,afterHeightOffset:x.Mz,afterHidden:_,afterMousedownActive:$,afterWidth:q,before:R,beforeHeightOffset:x.Mz,beforeMousedownActive:re,beforeWidth:s.k1+(R?te:0),headerOffset:D,hideAfterCompletely:!B||L,leftOffset:R?s.k1:null,mainContainerHeader:N,mainContainerRef:G,setAfterHidden:B,setAfterMousedownActive:ee,setAfterWidth:Q,setBeforeMousedownActive:le,setBeforeWidth:oe,children:[U&&(0,h.jsx)(f,{noPadding:W,children:U}),T]})})]}),I&&(0,h.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===H||void 0===H?void 0:H(null)},children:(0,h.jsx)(d.Z,k(k({},I),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}var O=r.forwardRef(_)},11364:function(e,n,t){t.d(n,{Z:function(){return Y}});var o=t(61049);function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,n,t){return r=i()?Reflect.construct:function(e,n,t){var i=[null];i.push.apply(i,n);var r=new(Function.bind.apply(e,i));return t&&(0,o.Z)(r,t.prototype),r},r.apply(null,arguments)}var l,d,c,u,a,s=t(21831),h=t(82394),p=t(75582),f=t(12691),v=t.n(f),g=t(38626),m=t(21764),b=t(82684),x=t(69864),y=t(34376),j=t(32013),Z=t(98777),A=t(71180),k=t(31882),_=t(97618),O=t(55485);!function(e){e.CREATE="create",e.DELETE="delete",e.DETAIL="detail",e.EXECUTE="execute",e.LIST="list",e.UPDATE="update",e.UPDATE_ANYWHERE="update_anywhere"}(l||(l={})),function(e){e.BREAK="break",e.CONTINUE="continue",e.RAISE="raise"}(d||(d={})),function(e){e.AFTER="after",e.BEFORE="before"}(c||(c={})),function(e){e.ERROR="error",e.META="meta",e.METADATA="metadata",e.PAYLOAD="payload",e.QUERY="query",e.RESOURCE="resource",e.RESOURCES="resources"}(u||(u={})),function(e){e.FAILURE="failure",e.SUCCESS="success"}(a||(a={}));var S=t(48670),C=t(57114),R=t(38276),E=t(30160),P=t(35686),T=t(72473),I=t(8193),w=t(70515),D=t(81728),L=t(3917),N=t(55283),M=t(50178),B=t(42122),H=t(86735),U=t(72619),W=t(70320),F=t(23780),K=t(28598);function z(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 X(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,h.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 Y=function(e){var n,t,o,i,l,h,f,z,Y,G,V,q,Q,J,$,ee,ne,te,oe,ie,re,le,de=e.isNew,ce=e.operationType,ue=e.resourceType,ae=e.uuid,se=(0,W.q)(),he=(0,M.PR)(),pe=(0,y.useRouter)(),fe="GlobalHookDetail/".concat(ae),ve=(0,b.useContext)(g.ThemeContext),ge=(0,b.useState)(null),me=ge[0],be=ge[1],xe=(0,b.useState)(!1),ye=xe[0],je=xe[1],Ze=(0,b.useState)(ce),Ae=Ze[0],ke=(Ze[1],(0,b.useState)(ue)),_e=ke[0],Oe=(ke[1],(0,F.VI)(null,{},[],{uuid:fe})),Se=(0,p.Z)(Oe,1)[0],Ce=(0,b.useMemo)((function(){return(0,B.hB)({include_operation_types:1,include_resource_types:1,include_snapshot_validation:1,operation_type:"undefined"===typeof Ae?null:Ae,resource_type:"undefined"===typeof _e?null:_e})}),[Ae,_e]),Re=P.ZP.global_hooks.detail(de?"__new__":ae,Ce).data,Ee=(0,b.useMemo)((function(){return null===Re||void 0===Re?void 0:Re.global_hook}),[Re]),Pe=(0,b.useMemo)((function(){return{onErrorCallback:function(e){var n=e.error,t=n.errors,o=n.exception,i=n.message,r=n.type,l=e.response;return m.Am.error((null===t||void 0===t?void 0:t.error)||o||i,{position:m.Am.POSITION.BOTTOM_RIGHT,toastId:r}),Se({errors:t,response:l})}}}),[]),Te=(0,x.Db)(P.ZP.global_hooks.useCreate(),{onSuccess:function(e){return(0,U.wD)(e,X({callback:function(e){var n=e.global_hook;pe.replace("/global-hooks/".concat(n.uuid,"?operation_type=").concat(n.operation_type,"&resource_type=").concat(n.resource_type))}},Pe))}}),Ie=(0,p.Z)(Te,2),we=Ie[0],De=Ie[1].isLoading,Le=(0,x.Db)(P.ZP.global_hooks.useUpdate(null===Ee||void 0===Ee?void 0:Ee.uuid,Ce),{onSuccess:function(e){return(0,U.wD)(e,X({callback:function(e){var n=e.global_hook;Qe((function(e){return X(X({},e),n)})),m.Am.success("Global hook changes successfully saved.",{position:m.Am.POSITION.BOTTOM_RIGHT,toastId:"global-hooks-success-".concat(n.uuid)})}},Pe))}}),Ne=(0,p.Z)(Le,2),Me=Ne[0],Be=Ne[1].isLoading,He=(0,x.Db)((function(e){var n=e.pipeline;return P.ZP.global_hooks.useUpdate(null===Ee||void 0===Ee?void 0:Ee.uuid,Ce)({global_hook:{pipeline:n,snapshot:1}})}),{onSuccess:function(e){return(0,U.wD)(e,X({callback:function(e){var n=e.global_hook;Qe((function(e){return X(X({},e),{},{metadata:X(X({},null===e||void 0===e?void 0:e.metadata),null===n||void 0===n?void 0:n.metadata),pipeline:X(X({},null===e||void 0===e?void 0:e.pipeline),null===n||void 0===n?void 0:n.pipeline)})})),m.Am.success("Snapshot successfully created.",{position:m.Am.POSITION.BOTTOM_RIGHT,toastId:"global-hooks-snapshot-success-".concat(n.uuid)})}},Pe))}}),Ue=(0,p.Z)(He,2),We=Ue[0],Fe=Ue[1].isLoading,Ke=(0,x.Db)(P.ZP.global_hooks.useDelete(null===Ee||void 0===Ee?void 0:Ee.uuid,Ce),{onSuccess:function(e){return(0,U.wD)(e,X({callback:function(e){var n=e.global_hook;m.Am.success("Global hook changes successfully saved.",{position:m.Am.POSITION.BOTTOM_RIGHT,toastId:"global-hooks-success-".concat(n.uuid)}),pe.replace("/global-hooks")}},Pe))}}),ze=(0,p.Z)(Ke,2),Xe=ze[0],Ye=ze[1].isLoading,Ge=P.ZP.pipelines.list().data,Ve=(0,b.useMemo)((function(){return(0,H.YC)((null===Ge||void 0===Ge?void 0:Ge.pipelines)||[],(function(e){return e.name}))}),[Ge]),qe=(0,b.useMemo)((function(){return(0,H.HK)(Ve||[],(function(e){return e.uuid}))}),[Ve]),Qe=(0,b.useCallback)((function(e){be(e),je(!0)}),[be,je]);(0,b.useEffect)((function(){Ee&&!me&&be(Ee)}),[me,Ee,be]);var Je=(0,b.useMemo)((function(){return null!==me&&void 0!==me&&me.operation_type&&null!==me&&void 0!==me&&me.resource_type?"".concat((0,D.vg)(null===me||void 0===me?void 0:me.operation_type)," ").concat(null===me||void 0===me?void 0:me.resource_type," operation"):null!==me&&void 0!==me&&me.resource_type?"".concat(null===me||void 0===me?void 0:me.resource_type," operation"):null!==me&&void 0!==me&&me.operation_type?"".concat(null===me||void 0===me?void 0:me.operation_type," operation"):"operation"}),[me]),$e=(0,b.useMemo)((function(){var e;return null===qe||void 0===qe?void 0:qe[null===me||void 0===me||null===(e=me.pipeline)||void 0===e?void 0:e.uuid]}),[me,qe]),en=(0,b.useMemo)((function(){return(null===$e||void 0===$e?void 0:$e.blocks)||[]}),[$e]),nn=(0,b.useMemo)((function(){return(0,H.HK)(en||[],(function(e){return e.uuid}))}),[en]),tn=(0,b.useMemo)((function(){return(null===me||void 0===me?void 0:me.outputs)||[]}),[me]),on=(0,b.useCallback)((function(e,n){var t=(0,s.Z)(tn||[]);t[n]=e,Qe((function(e){return X(X({},e),{},{outputs:t})}))}),[tn,Qe]),rn=(0,b.useMemo)((function(){return(0,K.jsx)(A.ZP,{beforeIcon:(0,K.jsx)(T.mm,{}),compact:(null===tn||void 0===tn?void 0:tn.length)>=1,small:(null===tn||void 0===tn?void 0:tn.length)>=1,onClick:function(){return Qe((function(e){return X(X({},e),{},{outputs:((null===e||void 0===e?void 0:e.outputs)||[]).concat({block:{uuid:null},key:u.PAYLOAD})})}))},secondary:!0,children:"Add block output"})}),[tn,Qe]),ln=(0,b.useMemo)((function(){return null===tn||void 0===tn?void 0:tn.map((function(e,n){var t,o,i=e.block,r=e.key,l=e.keyMore,d=e.keys,c=null===nn||void 0===nn?void 0:nn[null===i||void 0===i?void 0:i.uuid];return o=c?(0,K.jsx)(v(),{as:"/pipelines/".concat(null===$e||void 0===$e?void 0:$e.uuid,"/edit?block_uuid=").concat(null===c||void 0===c?void 0:c.uuid),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,K.jsx)(S.Z,{block:!0,openNewWindow:!0,children:(0,K.jsx)(E.ZP,{color:(0,N.qn)(null===c||void 0===c?void 0:c.type,{blockColor:null===c||void 0===c?void 0:c.color,theme:ve}).accent,monospace:!0,children:(null===c||void 0===c?void 0:c.uuid)||"[select a block]"})})}):(0,K.jsx)(E.ZP,{default:!0,monospace:!0,children:(null===c||void 0===c?void 0:c.uuid)||(null===i||void 0===i?void 0:i.uuid)||"[select a block]"}),(0,K.jsxs)(Z.Z,{noBorderRadius:!0,noPaddingContent:!0,title:(0,K.jsxs)(O.ZP,{alignItems:"center",children:[o,(0,K.jsx)(R.Z,{mr:1}),(0,K.jsx)(T.Kw,{muted:!0}),(0,K.jsx)(R.Z,{mr:1}),(0,K.jsxs)(E.ZP,{default:!0,monospace:!0,children:[r||"{object}",(null===d||void 0===d?void 0:d.length)>=1&&(null===d||void 0===d?void 0:d.map((function(e){return(0,K.jsxs)(E.ZP,{default:!0,inline:!0,monospace:!0,children:["['",e,"']"]})})))]})]}),titleXPadding:w.cd*w.iI,titleYPadding:w.cd*w.iI,children:[(0,K.jsx)(C.S,{title:"Block to extract data from",description:"The output data from this block will be merged into the ".concat(Je,"\u2019s data."),selectInput:{monospace:!0,onChange:function(t){return on(X(X({},e),{},{block:X(X({},c),{},{uuid:t.target.value})}),n)},options:null===en||void 0===en?void 0:en.map((function(e){return{label:e.name,value:e.uuid}})),placeholder:"Select a block",value:null===c||void 0===c?void 0:c.uuid}},"block-uuid-".concat(n)),(0,K.jsx)(C.S,{title:"Object to merge block output data into",description:"Select the ".concat(Je," object to merge the block output data into."),selectInput:{monospace:!0,onChange:function(t){return on(X(X({},e),{},{key:t.target.value}),n)},options:null===(t=Object.values(u))||void 0===t?void 0:t.map((function(e){return{label:e,value:e}})),placeholder:"Select an object",value:r}},"key-".concat(n)),(0,K.jsxs)(C.S,{title:"Additional dictionary keys",description:(0,K.jsxs)(E.ZP,{muted:!0,small:!0,children:["If there is a nested object or value in the $",Je," data that you want to merge the block output data into,",(0,K.jsx)("br",{}),"use these additional keys to instruct the hook on how nested you want to merge the block output data."]}),textInput:{fullWidth:!1,monospace:!0,placeholder:"optional",onChange:function(t){return on(X(X({},e),{},{keyMore:t.target.value}),n)},value:l},children:[null===d||void 0===d?void 0:d.map((function(t){return(0,K.jsx)(R.Z,{ml:1,children:(0,K.jsx)(k.Z,{border:!0,label:t,monospace:!0,onClick:function(){on(X(X({},e),{},{keys:(d||[]).filter((function(e){return e!==t}))}),n)}})},"keys-".concat(n,"-").concat(t))})),(null===d||void 0===d?void 0:d.length)>=1&&(0,K.jsx)(R.Z,{mr:w.cd}),l&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(A.ZP,{compact:!0,small:!0,onClick:function(){on(X(X({},e),{},{keyMore:"",keys:(d||[]).concat(l)}),n)},children:["Add key ",l]}),(0,K.jsx)(R.Z,{mr:w.cd})]})]},"keys-".concat(n))]})}))}),[en,nn,tn,$e,on]),dn=(0,b.useMemo)((function(){return(0,B.GL)(me||{},["conditions","operation_type","outputs","pipeline","predicates","resource_type","run_settings","stages","strategies"])}),[me]),cn=(0,b.useMemo)((function(){return(null===me||void 0===me?void 0:me.metadata)||{created_at:null,snapshot_hash:null,snapshot_valid:!1,snapshotted_at:null,updated_at:null,user:{id:null}}}),[me]);return(0,K.jsxs)(R.Z,{mb:8,p:w.cd,children:[(0,K.jsxs)(C.Z,{title:"What to run hook for",children:[(0,K.jsx)(C.S,{description:"This hook\u2019s UUID must be unique across all hooks for the same resource type and operation type.",invalid:ye&&!(null!==me&&void 0!==me&&me.uuid),textInput:de?{monospace:!0,onChange:function(e){return Qe((function(n){return X(X({},n),{},{uuid:e.target.value})}))},placeholder:"e.g. bootstrap pipeline blocks",value:null===me||void 0===me?void 0:me.uuid}:null,title:"Hook UUID",children:!de&&(0,K.jsx)(R.Z,{px:w.cd,children:(0,K.jsx)(E.ZP,{large:!0,monospace:!0,children:ae})})}),(0,K.jsx)(C.S,{description:"Select the resource this hook should be attached to.",invalid:ye&&!(null!==me&&void 0!==me&&me.resource_type),selectInput:{monospace:!0,onChange:function(e){return Qe((function(n){return X(X({},n),{},{resource_type:e.target.value})}))},options:null===me||void 0===me||null===(n=me.resource_types)||void 0===n?void 0:n.map((function(e){return{label:(0,D.j3)(e),value:e}})),placeholder:"e.g. Pipeline",value:null===me||void 0===me?void 0:me.resource_type},title:"Resource type"}),(0,K.jsx)(C.S,{description:"When a specific operation occurs for a given resource, this hook will be invoked for that specific operation on the configured resource.",invalid:ye&&!(null!==me&&void 0!==me&&me.operation_type),selectInput:{monospace:!0,onChange:function(e){return Qe((function(n){return X(X({},n),{},{operation_type:e.target.value})}))},options:null===me||void 0===me||null===(t=me.operation_types)||void 0===t?void 0:t.map((function(e){return{label:(0,D.vg)(e),value:e}})),placeholder:"e.g. Update",value:null===me||void 0===me?void 0:me.operation_type},title:"Operation type"})]}),!de&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(R.Z,{mb:w.cd}),(0,K.jsxs)(C.Z,{title:"When to run hook",children:[(0,K.jsx)(C.S,{title:"Before operation starts",description:"If enabled, this hook will be invoked before the ".concat(Je," starts."),toggleSwitch:{checked:null===me||void 0===me||null===(o=me.stages)||void 0===o?void 0:o.includes(c.BEFORE),onCheck:function(e){return Qe((function(n){var t,o;return X(X({},n),{},{stages:e(null===n||void 0===n||null===(t=n.stages)||void 0===t?void 0:t.includes(c.BEFORE))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.stages)||[]).concat(c.BEFORE)])):(null===n||void 0===n||null===(o=n.stages)||void 0===o?void 0:o.filter((function(e){return e!==c.BEFORE})))||[]})}))}}}),(0,K.jsx)(C.S,{title:"After operation completes",description:"If enabled, this hook will be invoked after the ".concat(Je," ends."),toggleSwitch:{checked:null===me||void 0===me||null===(i=me.stages)||void 0===i?void 0:i.includes(c.AFTER),onCheck:function(e){return Qe((function(n){var t,o;return X(X({},n),{},{stages:e(null===n||void 0===n||null===(t=n.stages)||void 0===t?void 0:t.includes(c.AFTER))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.stages)||[]).concat(c.AFTER)])):(null===n||void 0===n||null===(o=n.stages)||void 0===o?void 0:o.filter((function(e){return e!==c.AFTER})))||[]})}))}}}),(0,K.jsx)(C.S,{title:"Run if ".concat(Je," succeeds"),description:"If enabled, this hook will be invoked if the ".concat(Je," is successful and doesn\u2019t error."),toggleSwitch:{checked:null===me||void 0===me||null===(l=me.conditions)||void 0===l?void 0:l.includes(a.SUCCESS),onCheck:function(e){return Qe((function(n){var t,o;return X(X({},n),{},{conditions:e(null===n||void 0===n||null===(t=n.conditions)||void 0===t?void 0:t.includes(a.SUCCESS))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.conditions)||[]).concat(a.SUCCESS)])):(null===n||void 0===n||null===(o=n.conditions)||void 0===o?void 0:o.filter((function(e){return e!==a.SUCCESS})))||[]})}))}}}),(0,K.jsx)(C.S,{title:"Run if ".concat(Je," fails"),description:"If enabled, this hook will be invoked if the ".concat(Je," fails with an error."),toggleSwitch:{checked:null===me||void 0===me||null===(h=me.conditions)||void 0===h?void 0:h.includes(a.FAILURE),onCheck:function(e){return Qe((function(n){var t,o;return X(X({},n),{},{conditions:e(null===n||void 0===n||null===(t=n.conditions)||void 0===t?void 0:t.includes(a.FAILURE))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.conditions)||[]).concat(a.FAILURE)])):(null===n||void 0===n||null===(o=n.conditions)||void 0===o?void 0:o.filter((function(e){return e!==a.FAILURE})))||[]})}))}}})]}),(0,K.jsx)(R.Z,{mb:w.cd}),(0,K.jsxs)(C.Z,{title:"Code to run",description:"When the current hook gets triggered, it will execute the associated pipeline.",children:[(0,K.jsx)(C.S,{title:"Pipeline to execute",description:"Select a pipeline that will be executed every time this hook is triggered.",invalid:ye&&!(null!==me&&void 0!==me&&null!==(f=me.pipeline)&&void 0!==f&&f.uuid),selectInput:{monospace:!0,onChange:function(e){return Qe((function(n){return X(X({},n),{},{pipeline:X(X({},null===n||void 0===n?void 0:n.pipeline),{},{uuid:e.target.value})})}))},options:null===Ve||void 0===Ve?void 0:Ve.map((function(e){var n=e.name,t=e.uuid;return{label:n||t,value:t}})),placeholder:"Select a pipeline",value:null===me||void 0===me||null===(z=me.pipeline)||void 0===z?void 0:z.uuid}}),(0,K.jsxs)(C.S,{title:null===me||void 0===me||null===(Y=me.pipeline)||void 0===Y||!Y.uuid||null!==cn&&void 0!==cn&&cn.snapshot_hash||null!==cn&&void 0!==cn&&cn.snapshot_valid?"Valid code snapshot":"Code snapshot hasn\u2019t been created yet",description:(0,K.jsx)(K.Fragment,{children:(0,K.jsxs)(E.ZP,{muted:!0,small:!0,children:["Take a snapshot of ",null!==me&&void 0!==me&&null!==(G=me.pipeline)&&void 0!==G&&G.uuid?(0,K.jsx)(E.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:null===me||void 0===me||null===(V=me.pipeline)||void 0===V?void 0:V.uuid}):"the associated pipeline","\u2019s code. The snapshot is used to validate the hook before it runs.",(0,K.jsx)("br",{}),"A hook cannot run if ",null!==me&&void 0!==me&&null!==(q=me.pipeline)&&void 0!==q&&q.uuid?(0,K.jsx)(E.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:null===me||void 0===me||null===(Q=me.pipeline)||void 0===Q?void 0:Q.uuid}):"the associated pipeline","\u2019s code has changed after the most recent snapshot has been made.",(0,K.jsx)("br",{}),"If the code changes, a new snapshot must be created."]})}),invalid:(null===me||void 0===me||null===(J=me.pipeline)||void 0===J?void 0:J.uuid)&&(null===cn||void 0===cn?void 0:cn.snapshot_hash)&&!(null!==cn&&void 0!==cn&&cn.snapshot_valid),warning:(null===me||void 0===me||null===($=me.pipeline)||void 0===$?void 0:$.uuid)&&!(null!==cn&&void 0!==cn&&cn.snapshot_hash)&&!(null!==cn&&void 0!==cn&&cn.snapshot_valid),children:[!(null!==cn&&void 0!==cn&&cn.snapshot_hash)&&(0,K.jsx)(E.ZP,{default:!0,large:!0,children:null!==me&&void 0!==me&&null!==(ee=me.pipeline)&&void 0!==ee&&ee.uuid?"No snapshot has been created":"Select a pipeline before taking a snapshot"}),(null===cn||void 0===cn?void 0:cn.snapshot_hash)&&(0,K.jsx)(O.ZP,{flexDirection:"column",children:(0,K.jsx)(E.ZP,{danger:!(null!==cn&&void 0!==cn&&cn.snapshot_valid),large:!0,rightAligned:!0,success:null===cn||void 0===cn?void 0:cn.snapshot_valid,children:null!==cn&&void 0!==cn&&cn.snapshot_valid?"Snapshot valid":"Snapshot outdated"})})]}),(0,K.jsx)(R.Z,{p:w.cd,children:(0,K.jsx)(O.ZP,{alignItems:"center",justifyContent:"flex-end",children:(0,K.jsxs)(O.ZP,{alignItems:"center",children:[(null===cn||void 0===cn?void 0:cn.snapshotted_at)&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(E.ZP,{muted:!0,rightAligned:!0,small:!0,children:["Last snapshot at ",(0,K.jsx)(E.ZP,{inline:!0,muted:!0,small:!0,monospace:!0,children:null===cn||void 0===cn?void 0:cn.snapshotted_at})]}),(0,K.jsx)(R.Z,{mr:w.cd})]}),(0,K.jsx)(A.ZP,{disabled:!(null!==me&&void 0!==me&&null!==(ne=me.pipeline)&&void 0!==ne&&ne.uuid),loading:Fe,onClick:function(){return We({pipeline:null===me||void 0===me?void 0:me.pipeline})},primary:!(null!==cn&&void 0!==cn&&cn.snapshot_valid),secondary:null===cn||void 0===cn?void 0:cn.snapshot_valid,children:null!==cn&&void 0!==cn&&cn.snapshot_hash?null!==cn&&void 0!==cn&&cn.snapshot_valid?"Update snapshot even though it\u2019s valid":"Update snapshot to make it valid":"Create snapshot of code"})]})})})]}),(0,K.jsx)(R.Z,{mb:w.cd}),(0,K.jsxs)(C.Z,{title:"How to run hook",children:[(0,K.jsx)(C.S,{title:"Stop operation if hook fails",description:"If enabled, the ".concat(Je," will be cancelled and an error will be raised."),toggleSwitch:{checked:null===me||void 0===me||null===(te=me.strategies)||void 0===te?void 0:te.includes(d.RAISE),onCheck:function(e){return Qe((function(n){var t,o;return X(X({},n),{},{strategies:e(null===n||void 0===n||null===(t=n.strategies)||void 0===t?void 0:t.includes(d.RAISE))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.strategies)||[]).concat(d.RAISE)])):(null===n||void 0===n||null===(o=n.strategies)||void 0===o?void 0:o.filter((function(e){return e!==d.RAISE})))||[]})}))}}}),(0,K.jsx)(C.S,{title:"Execute hook with history and logging",description:(0,K.jsxs)(E.ZP,{muted:!0,small:!0,children:["If enabled, anytime this hook is executed an associated pipeline run and block runs will be created.",(0,K.jsx)("br",{}),"This will provide a history of the hook execution as well as logging for observability.",(0,K.jsx)("br",{}),"However, this will have a significant impact on the ",Je," resolution time.",(0,K.jsx)("br",{}),"This may cause very delayed API responsed and a degraded devloper experience."]}),toggleSwitch:{checked:!(null===me||void 0===me||null===(oe=me.run_settings)||void 0===oe||!oe.with_trigger),onCheck:function(e){return Qe((function(n){var t;return X(X({},n),{},{run_settings:X(X({},null===n||void 0===n?void 0:n.run_settings),{},{with_trigger:e(null===n||void 0===n||null===(t=n.run_settings)||void 0===t?void 0:t.with_trigger)})})}))}}})]}),(0,K.jsx)(R.Z,{mb:w.cd}),(0,K.jsxs)(C.Z,{title:"Block outputs ".concat((null===tn||void 0===tn?void 0:tn.length)>=1?"(".concat((null===tn||void 0===tn?void 0:tn.length)||0,")"):""),description:(0,K.jsx)(R.Z,{mt:1,children:(0,K.jsxs)(E.ZP,{muted:!0,children:["When a hook runs and executes a pipeline, the output from the pipeline\u2019s blocks",(0,K.jsx)("br",{}),"can optionally be used to mutate the ",Je," input and output data."]})}),headerChildren:(null===tn||void 0===tn?void 0:tn.length)>=1&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(R.Z,{ml:w.cd}),rn]}),children:[!(null!==tn&&void 0!==tn&&tn.length)&&(0,K.jsx)(R.Z,{p:w.cd,children:rn}),(null===tn||void 0===tn?void 0:tn.length)>=1&&(0,K.jsx)(j.Z,{noBorder:!0,noBoxShadow:!0,children:ln})]}),(0,K.jsx)(R.Z,{mb:w.cd}),(0,K.jsxs)(C.Z,{title:"Metadata",children:[(0,K.jsx)(C.S,{title:"Last updated",children:(0,K.jsxs)(_.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,K.jsx)(E.ZP,{large:!0,monospace:!0,muted:!0,children:null!==cn&&void 0!==cn&&cn.updated_at?(0,L.XG)(null===cn||void 0===cn?void 0:cn.updated_at,se):"-"}),(0,K.jsx)(R.Z,{mr:w.cd}),(0,K.jsx)(T.Pf,{muted:!0,size:I.Z}),(0,K.jsx)(R.Z,{mr:1})]})}),(0,K.jsx)(C.S,{title:"Created at",children:(0,K.jsxs)(_.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,K.jsx)(E.ZP,{large:!0,monospace:!0,muted:!0,children:null!==cn&&void 0!==cn&&cn.created_at?(0,L.XG)(null===cn||void 0===cn?void 0:cn.created_at,se):"-"}),(0,K.jsx)(R.Z,{mr:w.cd}),(0,K.jsx)(T.Pf,{muted:!0,size:I.Z}),(0,K.jsx)(R.Z,{mr:1})]})}),(0,K.jsx)(C.S,{title:"Snapshotted at",children:(0,K.jsxs)(_.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,K.jsx)(E.ZP,{large:!0,monospace:!0,muted:!0,children:null!==cn&&void 0!==cn&&cn.snapshotted_at?(0,L.XG)(null===cn||void 0===cn?void 0:cn.snapshotted_at,se):"-"}),(0,K.jsx)(R.Z,{mr:w.cd}),(0,K.jsx)(T.Pf,{muted:!0,size:I.Z}),(0,K.jsx)(R.Z,{mr:1})]})}),(0,K.jsx)(C.S,{title:"Snapshot valid",children:(0,K.jsxs)(_.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,K.jsx)(E.ZP,{large:!0,danger:!(null!==cn&&void 0!==cn&&cn.snapshot_valid),muted:null===cn||void 0===cn?void 0:cn.snapshot_valid,children:null!==cn&&void 0!==cn&&cn.snapshot_valid?"Valid":"Hook won\u2019t run until snapshot is valid"}),(0,K.jsx)(R.Z,{mr:w.cd}),null!==cn&&void 0!==cn&&cn.snapshot_valid?(0,K.jsx)(T.Jr,{size:I.Z,success:!0}):(0,K.jsx)(T.uy,{danger:!0,size:I.Z}),(0,K.jsx)(R.Z,{mr:1})]})}),(0,K.jsx)(C.S,{title:"Created by",children:(0,K.jsxs)(_.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,K.jsx)(E.ZP,{large:!0,monospace:!0,muted:!0,children:null!==cn&&void 0!==cn&&null!==(ie=cn.user)&&void 0!==ie&&ie.id?String(null===cn||void 0===cn||null===(re=cn.user)||void 0===re?void 0:re.id)===String(null===he||void 0===he?void 0:he.id)?"You created this hook":"User ID ".concat(null===cn||void 0===cn||null===(le=cn.user)||void 0===le?void 0:le.id):"-"}),(0,K.jsx)(R.Z,{mr:w.cd}),(0,K.jsx)(T.SC,{muted:!0,size:I.Z}),(0,K.jsx)(R.Z,{mr:1})]})})]})]}),(0,K.jsx)(R.Z,{mt:w.HN,children:(0,K.jsxs)(O.ZP,{alignItems:"center",justifyContent:"space-between",children:[!de&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(A.ZP,{compact:!0,danger:!0,loading:Ye,onClick:function(){window.confirm("Are you sure you wantt to delete this hook?")&&Xe()},small:!0,children:"Delete global hook"}),(0,K.jsx)(R.Z,{mr:w.cd})]}),(0,K.jsxs)(_.Z,{flex:1,justifyContent:"flex-end",children:[(0,K.jsx)(A.ZP,{beforeIcon:(0,K.jsx)(T.Hd,{}),disabled:De||Be||Ye,onClick:function(){return pe.push("/global-hooks")},secondary:!0,children:ye?"Cancel changes & go back":"Go back to all hooks"}),(0,K.jsx)(R.Z,{mr:w.cd}),(0,K.jsx)(A.ZP,{beforeIcon:(0,K.jsx)(T.vc,{}),disabled:Ye,loading:De||Be,onClick:function(){return(de?we:Me)({global_hook:X(X({},dn),de?{uuid:null===me||void 0===me?void 0:me.uuid}:{})})},primary:!0,children:de?"Create new global hook":"Save changes"})]})]})})]})}},70320:function(e,n,t){t.d(n,{h:function(){return l},q:function(){return r}});var o=t(78419),i=t(53808);function r(){return(0,i.U2)(o.am,null)||!1}function l(e){return"undefined"!==typeof e&&(0,i.t8)(o.am,e),e}},57114:function(e,n,t){t.d(n,{S:function(){return j},Z:function(){return Z}});var o=t(82684),i=t(15338),r=t(97618),l=t(55485),d=t(85854),c=t(65956),u=t(82394),a=t(44085),s=t(38276),h=t(30160),p=t(17488),f=t(69650),v=t(72473),g=t(8193),m=t(70515),b=t(28598);function x(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 y(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,u.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 j=function(e){var n,t=e.children,o=e.description,i=e.invalid,d=e.selectInput,c=e.textInput,u=e.title,x=e.toggleSwitch,j=e.warning;return(0,b.jsx)(s.Z,{p:m.cd,children:(0,b.jsxs)(l.ZP,{alignItems:"center",children:[(0,b.jsxs)(l.ZP,{flexDirection:"column",children:[(0,b.jsxs)(h.ZP,{danger:i,default:!0,large:!0,warning:j,children:[u," ",i&&(0,b.jsx)(h.ZP,{danger:!0,inline:!0,large:!0,children:"is required"})]}),o&&"string"===typeof o&&(0,b.jsx)(h.ZP,{muted:!0,small:!0,children:o}),o&&"string"!==typeof o&&o]}),(0,b.jsx)(s.Z,{mr:m.cd}),(0,b.jsxs)(r.Z,{flex:1,justifyContent:"flex-end",children:[t,c&&(0,b.jsx)(p.Z,y({afterIcon:(0,b.jsx)(v.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:g.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0},c)),d&&(0,b.jsx)(a.Z,y(y({},d),{},{afterIcon:(0,b.jsx)(v._M,{}),afterIconSize:g.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0,children:null===d||void 0===d||null===(n=d.options)||void 0===n?void 0:n.map((function(e){var n=e.label,t=e.value;return(0,b.jsx)("option",{value:t,children:n||t},t)}))})),x&&(0,b.jsx)(f.Z,{checked:!(null===x||void 0===x||!x.checked),compact:!0,onCheck:null===x||void 0===x?void 0:x.onCheck})]})]})})},Z=function(e){var n=e.children,t=e.description,u=e.headerChildren,a=e.title;return(0,b.jsxs)(c.Z,{noPadding:!0,children:[(0,b.jsx)(s.Z,{p:m.cd,children:(0,b.jsxs)(l.ZP,{alignItems:"center",children:[(0,b.jsxs)(r.Z,{flex:1,flexDirection:"column",children:[(0,b.jsx)(d.Z,{level:4,children:a}),t&&"string"===typeof t&&(0,b.jsx)(s.Z,{mt:1,children:(0,b.jsx)(h.ZP,{muted:!0,children:t})}),t&&"string"!==typeof t&&t]}),u]})}),o.Children.map(n,(function(e,n){return(0,b.jsxs)("div",{children:[(0,b.jsx)(i.Z,{light:!0}),e]},"".concat(a,"-").concat(n))}))]})}},8193:function(e,n,t){t.d(n,{N:function(){return c},Z:function(){return d}});var o=t(38626),i=t(44897),r=t(42631),l=t(70515),d=2*l.iI,c=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1ck7mzt-0"})(["border-radius:","px;padding:","px;",""],r.n_,l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeArea,";\n ")}))},44425:function(e,n,t){t.d(n,{$W:function(){return m},DA:function(){return v},HX:function(){return j},J8:function(){return y},L8:function(){return d},LE:function(){return h},Lk:function(){return k},Lq:function(){return p},M5:function(){return f},Q3:function(){return b},Qj:function(){return Z},Ut:function(){return S},V4:function(){return O},VZ:function(){return x},dO:function(){return s},f2:function(){return _},iZ:function(){return A},t6:function(){return c},tf:function(){return a}});var o,i,r,l,d,c,u=t(82394);!function(e){e.CONDITION="condition",e.DBT_SNAPSHOT="snapshot",e.DYNAMIC="dynamic",e.DYNAMIC_CHILD="dynamic_child",e.REDUCE_OUTPUT="reduce_output",e.REPLICA="replica"}(d||(d={})),function(e){e.MARKDOWN="markdown",e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(c||(c={}));var a,s=(o={},(0,u.Z)(o,c.MARKDOWN,"MD"),(0,u.Z)(o,c.PYTHON,"PY"),(0,u.Z)(o,c.R,"R"),(0,u.Z)(o,c.SQL,"SQL"),(0,u.Z)(o,c.YAML,"YAML"),o),h=(i={},(0,u.Z)(i,c.MARKDOWN,"Markdown"),(0,u.Z)(i,c.PYTHON,"Python"),(0,u.Z)(i,c.R,"R"),(0,u.Z)(i,c.SQL,"SQL"),(0,u.Z)(i,c.YAML,"YAML"),i);!function(e){e.CALLBACK="callback",e.CHART="chart",e.CONDITIONAL="conditional",e.CUSTOM="custom",e.DATA_EXPORTER="data_exporter",e.DATA_LOADER="data_loader",e.DBT="dbt",e.EXTENSION="extension",e.GLOBAL_DATA_PRODUCT="global_data_product",e.SCRATCHPAD="scratchpad",e.SENSOR="sensor",e.MARKDOWN="markdown",e.TRANSFORMER="transformer"}(a||(a={}));var p,f=[a.CALLBACK,a.CONDITIONAL,a.EXTENSION];!function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(p||(p={}));var v,g,m=[a.CHART,a.CUSTOM,a.DATA_EXPORTER,a.DATA_LOADER,a.SCRATCHPAD,a.SENSOR,a.MARKDOWN,a.TRANSFORMER],b=[a.CUSTOM,a.DATA_EXPORTER,a.DATA_LOADER,a.SCRATCHPAD,a.SENSOR,a.MARKDOWN,a.TRANSFORMER],x=[a.DATA_EXPORTER,a.DATA_LOADER],y=[a.DATA_EXPORTER,a.DATA_LOADER,a.TRANSFORMER],j=[a.DATA_EXPORTER,a.DATA_LOADER,a.DBT,a.TRANSFORMER],Z=[a.CHART,a.SCRATCHPAD,a.SENSOR,a.MARKDOWN],A=[a.CALLBACK,a.CHART,a.EXTENSION,a.SCRATCHPAD,a.MARKDOWN],k=[a.CUSTOM,a.DATA_EXPORTER,a.DATA_LOADER,a.SENSOR,a.TRANSFORMER];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(v||(v={})),function(e){e.BLOCK_FILE="block_file",e.CUSTOM_BLOCK_TEMPLATE="custom_block_template",e.MAGE_TEMPLATE="mage_template"}(g||(g={}));var _=[a.CUSTOM,a.DATA_EXPORTER,a.DATA_LOADER,a.TRANSFORMER],O=(r={},(0,u.Z)(r,a.CALLBACK,"Callback"),(0,u.Z)(r,a.CHART,"Chart"),(0,u.Z)(r,a.CONDITIONAL,"Conditional"),(0,u.Z)(r,a.CUSTOM,"Custom"),(0,u.Z)(r,a.DATA_EXPORTER,"Data exporter"),(0,u.Z)(r,a.DATA_LOADER,"Data loader"),(0,u.Z)(r,a.DBT,"DBT"),(0,u.Z)(r,a.EXTENSION,"Extension"),(0,u.Z)(r,a.GLOBAL_DATA_PRODUCT,"Global data product"),(0,u.Z)(r,a.MARKDOWN,"Markdown"),(0,u.Z)(r,a.SCRATCHPAD,"Scratchpad"),(0,u.Z)(r,a.SENSOR,"Sensor"),(0,u.Z)(r,a.TRANSFORMER,"Transformer"),r),S=[a.DATA_LOADER,a.TRANSFORMER,a.DATA_EXPORTER,a.SENSOR];l={},(0,u.Z)(l,a.DATA_EXPORTER,"DE"),(0,u.Z)(l,a.DATA_LOADER,"DL"),(0,u.Z)(l,a.SCRATCHPAD,"SP"),(0,u.Z)(l,a.SENSOR,"SR"),(0,u.Z)(l,a.MARKDOWN,"MD"),(0,u.Z)(l,a.TRANSFORMER,"TF")},31882:function(e,n,t){var o=t(38626),i=t(71180),r=t(55485),l=t(30160),d=t(44897),c=t(72473),u=t(70515),a=t(61896),s=t(28598),h=o.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||d.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||d.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((u.iI+a.Al)/2,"px;\n height: ").concat(1.5*u.iI+a.Al,"px;\n padding: ").concat(u.iI/1.5,"px ").concat(1.25*u.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((u.iI/2+a.Al)/2,"px;\n height: ").concat(a.Al+u.iI/2+2,"px;\n padding: ").concat(u.iI/4,"px ").concat(u.iI,"px;\n ")}),(function(e){return e.xsmall&&"\n border-radius: ".concat((u.iI/1+a.Al)/1,"px;\n height: ").concat(20,"px;\n padding: 4px 6px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||d.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,t=e.children,o=e.disabled,d=e.label,a=e.monospace,p=e.onClick,f=e.primary,v=e.small,g=e.xsmall;return(0,s.jsx)(h,{border:n,primary:f,small:v,xsmall:g,children:(0,s.jsx)(i.ZP,{basic:!0,disabled:o,noBackground:!0,noPadding:!0,onClick:p,transparent:!0,children:(0,s.jsxs)(r.ZP,{alignItems:"center",children:[t,d&&(0,s.jsx)(l.ZP,{monospace:a,small:v,xsmall:g,children:d}),!o&&p&&(0,s.jsx)("div",{style:{marginLeft:2}}),!o&&p&&(0,s.jsx)(c.x8,{default:f,muted:!f,size:v?u.iI:1.25*u.iI})]})})})}},65956:function(e,n,t){var o=t(38626),i=t(55485),r=t(38276),l=t(30160),d=t(44897),c=t(42631),u=t(47041),a=t(70515),s=t(28598),h=(0,o.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*a.iI,1.5*a.iI,1.5*a.iI),p=o.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],c.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||d.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||d.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||d.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||d.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||d.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),f=o.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],c.n_,c.n_,(function(e){return"\n background-color: ".concat((e.theme.background||d.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||d.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),h,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),v=o.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*a.iI,u.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*a.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),g=o.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],c.M8,c.YF,1.75*a.iI);n.Z=function(e){var n=e.borderless,t=e.children,o=e.containerRef,d=e.contentContainerRef,c=e.dark,u=e.footer,a=e.fullHeight,h=void 0===a||a,m=e.fullWidth,b=void 0===m||m,x=e.header,y=e.headerHeight,j=e.headerIcon,Z=e.headerPaddingVertical,A=e.headerTitle,k=e.maxHeight,_=e.maxWidth,O=e.minWidth,S=e.noPadding,C=e.overflowVisible,R=e.subtitle,E=e.success;return(0,s.jsxs)(p,{borderless:n,dark:c,fullHeight:h,fullWidth:b,maxHeight:k,maxWidth:_,minWidth:O,overflowVisible:C,ref:o,success:E,children:[(x||A)&&(0,s.jsxs)(f,{headerPaddingVertical:Z,height:y,children:[x&&x,A&&(0,s.jsx)(i.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(i.ZP,{alignItems:"center",children:[j&&j,(0,s.jsx)(r.Z,{ml:j?1:0,children:(0,s.jsx)(l.ZP,{bold:!0,default:!0,children:A})})]})})]}),(0,s.jsxs)(v,{maxHeight:k,noPadding:S,overflowVisible:C,ref:d,children:[R&&(0,s.jsx)(r.Z,{mb:2,children:(0,s.jsx)(l.ZP,{default:!0,children:R})}),t]}),u&&(0,s.jsx)(g,{children:u})]})}},80022:function(e,n,t){function o(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 o}})},15544:function(e,n,t){function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}t.d(n,{Z:function(){return o}})},13692:function(e,n,t){t.d(n,{Z:function(){return i}});var o=t(61049);function i(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&(0,o.Z)(e,n)}},93189:function(e,n,t){t.d(n,{Z:function(){return r}});var o=t(12539),i=t(80022);function r(e,n){if(n&&("object"===o(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},61049:function(e,n,t){function o(e,n){return o=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},o(e,n)}t.d(n,{Z:function(){return o}})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[600],{54750:function(n,e,t){var o=t(82394),r=t(12691),i=t.n(r),c=t(55485),a=t(48670),u=t(38276),d=t(30160),l=t(72473),s=t(28598),p=t(82684);function f(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?f(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}e.Z=function(n){var e=n.breadcrumbs,t=n.noMarginLeft,o=e.length,r=[];return e.forEach((function(n,e){var c=n.bold,f=n.danger,g=n.label,b=n.linkProps,m=n.monospace,v=void 0===m||m,y=n.onClick,x=g();o>=2&&e>=1&&r.push((0,s.jsx)(u.Z,{mx:1,children:(0,s.jsx)(l._Q,{muted:!0})},"divider-".concat(x)));var O=(0,s.jsx)(d.ZP,{bold:c,danger:f,default:!c,monospace:v,children:x}),P=(0,s.jsx)(u.Z,{ml:t||0!==e?0:2,children:O},"breadcrumb-".concat(x));b?P=(0,p.createElement)(i(),h(h({},b),{},{key:"breadcrumb-link-".concat(x),passHref:!0}),(0,s.jsx)(a.Z,{block:!0,default:!c,noOutline:!0,sameColorAsText:c,children:P})):y&&(P=(0,s.jsx)(a.Z,{block:!0,default:!c,noOutline:!0,onClick:y,preventDefault:!0,sameColorAsText:c,children:P})),r.push(P)})),(0,s.jsx)(c.ZP,{alignItems:"center",children:r})}},46684:function(n,e,t){t.d(e,{I5:function(){return u},Mz:function(){return a},y7:function(){return c}});var o=t(38626),r=t(44897),i=t(70515),c=2.5*i.iI,a=6*i.iI,u=o.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-1bk8irg-0"})(["height:","px;left:0;padding-left:","px;padding-right:","px;position:fixed;top:0;width:100%;z-index:10;",""],a,2*i.iI,2*i.iI,(function(n){return"\n background-color: ".concat((n.theme.background||r.Z.background).panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||r.Z.borders).medium,";\n ")}))},58036:function(n,e,t){var o=t(82684),r=t(28598);e.Z=function(n){var e=n.children,t=(0,o.useState)(!1),i=t[0],c=t[1];return(0,o.useEffect)((function(){c(!0)}),[]),i?e:(0,r.jsx)("div",{})}},89370:function(n,e,t){t.d(e,{P_:function(){return c},RL:function(){return r},Rp:function(){return a}});var o,r,i=t(82394);!function(n){n.CATEGORY="category",n.CATEGORY_HIGH_CARDINALITY="category_high_cardinality",n.DATETIME="datetime",n.EMAIL="email",n.LIST="list",n.NUMBER="number",n.NUMBER_WITH_DECIMALS="number_with_decimals",n.PHONE_NUMBER="phone_number",n.TEXT="text",n.TRUE_OR_FALSE="true_or_false",n.UUID="uuid",n.ZIP_CODE="zip_code"}(r||(r={}));r.NUMBER,r.NUMBER_WITH_DECIMALS,r.NUMBER,r.NUMBER_WITH_DECIMALS,r.DATETIME,r.NUMBER,r.NUMBER_WITH_DECIMALS,r.CATEGORY,r.CATEGORY_HIGH_CARDINALITY,r.DATETIME,r.EMAIL,r.PHONE_NUMBER,r.TEXT,r.TRUE_OR_FALSE,r.CATEGORY,r.CATEGORY_HIGH_CARDINALITY,r.DATETIME,r.EMAIL,r.PHONE_NUMBER,r.TEXT;var c=[r.CATEGORY,r.CATEGORY_HIGH_CARDINALITY],a=(o={},(0,i.Z)(o,r.NUMBER,"Number"),(0,i.Z)(o,r.NUMBER_WITH_DECIMALS,"Decimal number"),(0,i.Z)(o,r.CATEGORY,"Category"),(0,i.Z)(o,r.CATEGORY_HIGH_CARDINALITY,"Category (high cardinality)"),(0,i.Z)(o,r.DATETIME,"Date/Time"),(0,i.Z)(o,r.EMAIL,"Email"),(0,i.Z)(o,r.LIST,"List"),(0,i.Z)(o,r.PHONE_NUMBER,"Phone number"),(0,i.Z)(o,r.TEXT,"Text"),(0,i.Z)(o,r.TRUE_OR_FALSE,"Boolean"),(0,i.Z)(o,r.ZIP_CODE,"Zip code"),o)},70374:function(n,e,t){t.d(e,{Z:function(){return S}});var o=t(82394),r=t(82684),i=t(12691),c=t.n(i),a=t(34376),u=t(97618),d=t(55485),l=t(49130),s=t(38276),p=t(30160),f=t(12468),h=t(72473),g=t(38626),b=t(44897),m=t(42631),v=t(47041),y=t(70515),x=g.default.div.withConfig({displayName:"indexstyle__FlyoutMenuContainerStyle",componentId:"sc-1o7k6f4-0"})([""," position:absolute;max-height:","px;z-index:1;"," "," "," ",""],v.w5,58*y.iI,(function(n){return n.width&&"\n min-width: 0px;\n width: ".concat(n.width,"px;\n ")}),(function(n){var e=n.maxHeight;return e&&"\n max-height: ".concat(e,"px;\n overflow: auto;\n ")}),(function(n){return"\n box-shadow: ".concat((n.theme.shadow||b.Z.shadow).popup,";\n\n &:hover {\n background-color: ").concat((n.theme.interactive||b.Z.interactive).hoverBackground,";\n }\n ")}),(function(n){return n.roundedStyle&&"\n border: ".concat(m.YF,"px ").concat(m.M8," ").concat((n.theme||b.Z).borders.button,";\n border-radius: ").concat(m.n_,"px;\n\n div:first-child {\n border-top-left-radius: ").concat(m.n_,"px;\n border-top-right-radius: ").concat(m.n_,"px;\n }\n\n div:last-child {\n border-bottom-left-radius: ").concat(m.n_,"px;\n border-bottom-right-radius: ").concat(m.n_,"px;\n }\n ")})),O=g.default.div.withConfig({displayName:"indexstyle__TitleContainerStyle",componentId:"sc-1o7k6f4-1"})(["padding:","px;padding-bottom:0;"," ",""],y.iI,(function(n){return"\n background-color: ".concat((n.theme||b.Z).background.popup,";\n ")}),(function(n){return n.roundedStyle&&"\n background-color: ".concat((n.theme||b.Z).interactive.defaultBackground,";\n border-bottom: ").concat(m.YF,"px ").concat(m.M8," ").concat((n.theme||b.Z).borders.medium,";\n padding-bottom: ").concat(y.iI,"px;\n ")})),P=(0,g.css)(["justify-content:space-between;padding:","px;"," "," "," "," "," "," ",""],y.iI,(function(n){return n.largePadding&&"\n padding: ".concat(1.5*y.iI,"px;\n padding-right: ").concat(6*y.iI,"px;\n ")}),(function(n){return!n.disabled&&"\n &:hover {\n background-color: ".concat((n.theme.interactive||b.Z.interactive).hoverBackground,";\n cursor: pointer;\n }\n ")}),(function(n){return"\n background-color: ".concat((n.theme.background||b.Z.background).popup,";\n ")}),(function(n){return n.alternateBackground&&"\n background-color: ".concat((n.theme.interactive||b.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.disabled&&"\n color: ".concat((n.theme.content||b.Z.content).disabled,";\n cursor: not-allowed;\n\n &:hover {\n color: ").concat((n.theme.content||b.Z.content).disabled,";\n }\n ")}),(function(n){return n.indent&&"\n padding-left: ".concat(2*y.iI,"px;\n ")}),(function(n){return n.highlighted&&"\n background-color: ".concat((n.theme.interactive||b.Z.interactive).hoverBackground,";\n ")})),w=g.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1o7k6f4-2"})(["",""],P),k=g.default.a.withConfig({displayName:"indexstyle__LinkAnchorStyle",componentId:"sc-1o7k6f4-3"})([""," display:block;"],P),j=t(39643),I=t(3314),Z=t(44688),T=t(28598);function E(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 C(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?E(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var _=4.5*y.iI;var S=function(n){var e,t,i=n.alternateBackground,g=n.customSubmenuHeights,b=n.disableKeyboardShortcuts,m=n.items,v=n.left,y=n.multipleConfirmDialogues,P=n.onClickCallback,E=n.open,S=n.parentRef,D=n.rightOffset,B=n.roundedStyle,R=n.setConfirmationAction,N=n.setConfirmationDialogueOpen,M=n.topOffset,A=void 0===M?0:M,H=n.uuid,L=n.width,U=(0,r.useState)([]),W=U[0],G=U[1],z=(0,r.useState)({}),F=z[0],Y=z[1],K=(0,r.useState)(0),V=K[0],q=K[1],X=(0,r.useState)(0),Q=X[0],$=X[1],J=(0,r.useState)(0),nn=J[0],en=J[1],tn=((null===S||void 0===S||null===(e=S.current)||void 0===e||null===(t=e.getBoundingClientRect)||void 0===t?void 0:t.call(e))||{}).height,on=(0,r.useRef)({}),rn=(0,r.useRef)(null),cn=(0,a.useRouter)(),an=(0,Z.y)(),un=an.registerOnKeyDown,dn=an.unregisterOnKeyDown;return(0,r.useEffect)((function(){return function(){dn(H)}}),[dn,H]),un(H,(function(n,e,t){if(E)if(b)(0,I.j)(n);else{var o=W[0];if(e[j.kD])(0,I.j)(n),"undefined"===typeof o||o===m.length-1?G([0]):G([o+1]);else if(e[j.Bu])(0,I.j)(n),G("undefined"===typeof o||0===o?[m.length-1]:[o-1]);else if(e[j.Uq]&&"undefined"!==typeof o){var r,i=m[o];if(i)if(null!==i&&void 0!==i&&i.onClick)null===i||void 0===i||null===(r=i.onClick)||void 0===r||r.call(i);else if(null!==i&&void 0!==i&&i.linkProps){var c,a;cn.push(null===i||void 0===i||null===(c=i.linkProps)||void 0===c?void 0:c.href,null===i||void 0===i||null===(a=i.linkProps)||void 0===a?void 0:a.as)}null===P||void 0===P||P()}else null===m||void 0===m||m.forEach((function(n){var o=n.keyboardShortcutValidation;null===o||void 0===o||o({keyHistory:t,keyMapping:e})}))}}),[W,m,P,E,G]),(0,r.useEffect)((function(){E||G([])}),[E]),m?function n(e,t,a){var b=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,m=arguments.length>4?arguments[4]:void 0;b+=1;var j=null===g||void 0===g?void 0:g.hasOwnProperty(t),I=j?null===g||void 0===g?void 0:g[t]:null,Z=j?(null===g||void 0===g?void 0:g[t])-_:0;return(0,T.jsx)(x,{maxHeight:I,roundedStyle:B,style:{display:a||F[t]?null:"none",left:"undefined"===typeof D&&(1===b?v||0:"100%"),right:1===b?D:null,top:(1===b?(tn||0)+A:(2===b?V:3===b?Q:nn)||0)-Z},width:L,children:null===e||void 0===e?void 0:e.map((function(e,t){var a=e.beforeIcon,g=e.bold,v=e.disabled,x=e.items,j=e.indent,I=e.isGroupingTitle,Z=e.keyTextGroups,E=e.label,_=e.leftAligned,S=e.linkProps,D=e.onClick,M=e.openConfirmationDialogue,A=e.tooltip,H=e.uuid;m.current[H]=(0,r.createRef)();var L=S?k:w,U=E();if(I)return(0,T.jsxs)(O,{roundedStyle:B,children:["string"===typeof U&&(0,T.jsx)(p.ZP,{bold:!0,muted:!0,noWrapping:!0,children:U}),"string"!==typeof U&&U]},H);var G=(0,T.jsxs)(L,{alternateBackground:i||B,disabled:v,highlighted:W[0]===t,indent:j,largePadding:B,onClick:function(n){S||n.preventDefault(),M&&!v?(null===N||void 0===N||N(!y||H),null===R||void 0===R||R((function(){return D})),null===P||void 0===P||P()):D&&!v&&(null===D||void 0===D||D(),null===P||void 0===P||P())},onMouseEnter:function(){var n,e;if(Y((function(n){return C(C({},n),{},(0,o.Z)({},H,!0))})),1===b)q((null===(n=m.current[H])||void 0===n||null===(e=n.current)||void 0===e?void 0:e.offsetTop)||0);else if(2===b){var t,r;$((null===(t=m.current[H])||void 0===t||null===(r=t.current)||void 0===r?void 0:r.offsetTop)||0)}else if(3===b){var i,c;en((null===(i=m.current[H])||void 0===i||null===(c=i.current)||void 0===c?void 0:c.offsetTop)||0)}},onMouseLeave:function(){Y((function(n){return C(C({},n),{},(0,o.Z)({},H,!1))}))},ref:m.current[H],children:[(0,T.jsxs)(d.ZP,{alignItems:"center",fullWidth:!0,justifyContent:_?"flex-start":"space-between",children:[(a||"string"===typeof U)&&(0,T.jsxs)(u.Z,{alignItems:"center",children:[a&&(0,T.jsxs)(T.Fragment,{children:[a,(0,T.jsx)(s.Z,{mr:1})]}),"string"===typeof U&&(0,T.jsx)(p.ZP,{bold:g,disabled:v,noWrapping:!0,children:(0,T.jsx)("div",{role:"menuitem",children:U})})]}),"string"!==typeof U&&U,x&&(0,T.jsx)(s.Z,{ml:2,children:(0,T.jsx)(h._Q,{})}),Z&&(0,T.jsx)(s.Z,{ml:4,ref:rn,children:(0,T.jsx)(l.Z,{keyTextGroups:Z})})]}),x&&n(x,H,!1,b,m)]},H);return A&&(G=(0,T.jsx)(f.Z,{appearBefore:!0,block:!0,center:!0,description:A(),size:null,widthFitContent:!0,children:G})),S?(0,r.createElement)(c(),C(C({},S),{},{key:H,passHref:!0}),G):G}))})}(m,void 0,E,0,on):null}},12468:function(n,e,t){t.d(e,{Z:function(){return C}});var o=t(82394),r=t(26304),i=t(82684),c=t(38626),a=t(55485),u=t(30160),d=t(44897),l=t(42631),s=t(70515),p=t(71180),f=t(91437),h=t(28598),g=(0,c.css)(["position:static;"," "," "," ",""],(function(n){return n.relativePosition&&"\n position: relative;\n "}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return n.size&&"\n height: ".concat(n.size,"px;\n ")}),(function(n){return n.fullSize&&"\n height: 100%;\n "})),b=c.default.div.withConfig({displayName:"TooltipWrapper__ContainerStyle",componentId:"sc-1dd57l8-0"})(["",""],g),m=c.default.span.withConfig({displayName:"TooltipWrapper__ContainerSpanStyle",componentId:"sc-1dd57l8-1"})(["",""],g),v=c.default.div.withConfig({displayName:"TooltipWrapper__HoverStyle",componentId:"sc-1dd57l8-2"})([""," "," "," border-radius:50%;"," "," &:active,&:focus{outline:none;}"," ",""],(0,f.eR)(),(function(n){return n.size&&"\n height: ".concat(n.size,"px;\n width: ").concat(n.size,"px;\n ")}),(function(n){return n.fullSize&&"\n height: 100%;\n width: 100%;\n "}),(function(n){return!n.block&&"\n display: inline-block;\n "}),(function(n){return n.block&&"\n display: block;\n "}),(function(n){return n.noHoverOutline&&"\n &:hover {\n cursor: pointer;\n }\n "}),(function(n){return!n.noHoverOutline&&"\n &:hover {\n cursor: pointer;\n\n box-shadow:\n 0 0 0 ".concat(l.PV,"px ").concat((0,p.W5)(n),",\n 0 0 0 ").concat(l.PV+l.q2,"px ").concat((n.theme.interactive||d.Z.interactive).hoverOverlay,";\n }\n ")})),y=c.default.span.withConfig({displayName:"TooltipWrapper__BasicStyle",componentId:"sc-1dd57l8-3"})([""]),x=c.default.div.withConfig({displayName:"TooltipWrapper__ContentStyle",componentId:"sc-1dd57l8-4"})(["position:absolute;z-index:3;"," "," "," "," "," "," "," "," "," "," ",""],(function(n){return"\n box-shadow: ".concat((n.theme.shadow||d.Z.shadow).base,";\n ")}),(function(n){return n.lightBackground&&"\n box-shadow: ".concat((n.theme.shadow||d.Z.shadow).window,";\n ")}),(function(n){return n.appearAbove&&!n.size&&"\n bottom: 0;\n "}),(function(n){return n.appearAbove&&n.size&&"\n bottom: ".concat(n.size+l.PV+l.q2,"px;\n ")}),(function(n){return n.appearBefore&&"\n right: ".concat(2*s.iI,"px;\n ")}),(function(n){return n.leftPosition&&"\n left: ".concat(n.leftPosition,"px;\n ")}),(function(n){return!n.leftPosition&&n.rightPosition&&"\n right: 0px;\n "}),(function(n){return n.minWidth&&"\n min-width: ".concat(n.minWidth,"px;\n ")}),(function(n){return n.widthFitContent&&"\n width: max-content;\n "}),(function(n){return n.topOffset&&"\n top: ".concat(n.topOffset,"px;\n ")}),(function(n){return n.bottomOffset&&"\n bottom: ".concat(n.bottomOffset,"px;\n ")}));var O=function(n){var e=n.alignLeft,t=n.appearAbove,o=n.appearBefore,r=n.autoHide,c=n.autoWidth,a=n.basic,u=n.block,d=n.bottomOffset,l=n.center,p=n.children,f=n.content,g=n.forceVisible,O=void 0!==g&&g,P=n.fullSize,w=n.height,k=n.inline,j=n.lightBackground,I=n.minWidth,Z=n.noHoverOutline,T=n.relativePosition,E=n.size,C=void 0===E?2*s.iI:E,_=n.topOffset,S=n.visibleDelay,D=void 0===S?1e3:S,B=n.widthFitContent,R=(0,i.useState)(!1),N=R[0],M=R[1],A=(0,i.useState)(!1),H=A[0],L=A[1],U=(I-C)/-2,W=k?m:b,G=a?y:v,z=(0,h.jsx)(G,{block:u,fullSize:P,href:"#",noHoverOutline:Z,onClick:function(n){return n.preventDefault()},onMouseEnter:function(){return M(!0)},size:C,children:p});return(0,i.useEffect)((function(){var n=setInterval((function(){return L(!0)}),D);return N||clearInterval(n),r&&setTimeout((function(){M(!1),L(!1)}),3*D),function(){return clearInterval(n)}}),[r,L,D,N]),(0,h.jsxs)(W,{fullSize:P,height:w,onMouseLeave:function(){M(!1),L(!1)},relativePosition:T,size:C,children:[z,(H||O)&&(0,h.jsx)(x,{appearAbove:t,appearBefore:o,bottomOffset:d,leftPosition:l?U:null,lightBackground:j,minWidth:c?I:null,rightPosition:e,size:C,topOffset:_,widthFitContent:B,children:f})]})},P=t(72473),w=["autoWidth","children","default","description","inverted","keyboardShortcuts","label","lightBackground","maxWidth","muted","primary","size","warning","widthFitContent"];function k(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?k(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var I=42*s.iI,Z=(0,c.css)(["border-radius:","px;"," "," "," ",""],l.BG,(function(n){return"\n box-shadow: ".concat((n.theme.shadow||d.Z.shadow).popup,";\n background-color: ").concat((n.theme.background||d.Z.background).popup,";\n ")}),(function(n){return n.lightBackground&&"\n background-color: ".concat((n.theme.interactive||d.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.width&&!(n.widthFitContent||n.autoWidth)&&"\n width: ".concat(n.width,"px;\n ")}),(function(n){return!n.width&&!(n.widthFitContent||n.autoWidth)&&"\n width: ".concat(I,"px;\n ")})),T=c.default.div.withConfig({displayName:"Tooltip__LabelStyle",componentId:"sc-allmdq-0"})([""," padding:","px ","px;"],Z,.75*s.iI,1*s.iI),E=c.default.div.withConfig({displayName:"Tooltip__DescriptionStyle",componentId:"sc-allmdq-1"})([""," padding:","px ","px;"],Z,1.5*s.iI,2*s.iI);var C=function(n){var e=n.autoWidth,t=n.children,o=n.default,c=n.description,d=n.inverted,l=n.keyboardShortcuts,p=n.label,f=n.lightBackground,g=n.maxWidth,b=n.muted,m=n.primary,v=n.size,y=void 0===v?2*s.iI:v,x=n.warning,k=n.widthFitContent,Z=(0,r.Z)(n,w),C=c||p||"",_=c?E:T,S=Math.min(g||I,C.length*s.Fo),D=[];null===l||void 0===l||l.forEach((function(n,e){e>=1&&D.push((0,h.jsx)(u.ZP,{default:!0,children:"+"})),D.push(n)}));var B=D.map((function(n,e){var t="keyboard-shortcut-".concat(e);return"string"===typeof n?(0,h.jsx)("span",{children:n},t):i.cloneElement(n,{key:t})}));return(0,h.jsx)(O,j(j({},Z),{},{autoWidth:e,content:(0,h.jsx)(_,{autoWidth:e,lightBackground:f,width:g,widthFitContent:k,children:(0,h.jsxs)(a.ZP,{alignItems:"center",children:[(0,h.jsx)(u.ZP,{whiteSpaceNormal:!0,children:C}),B.length>=1&&(0,h.jsx)(u.ZP,{muted:!0,children:"\xa0\xa0\xa0\u2022\xa0\xa0\xa0"}),B.length>=1&&B]})}),lightBackground:f,minWidth:S,noHoverOutline:!!t,size:y,widthFitContent:k,children:t||(0,h.jsx)(P.kI,{default:o,inverted:d,muted:b,primary:m,size:y,warning:x})}))}},93369:function(n,e,t){t.d(e,{ZP:function(){return on}});var o=t(82394),r=t(26304),i=t(82684),c=t(12691),a=t.n(c),u=t(38626),d=t(97618),l=t(49130),s=t(34376),p=t(50178);function f(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?f(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function g(){var n,e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h(h({},t),{},{groupId:null===(n=(0,p.ex)())||void 0===n?void 0:n.id,id:null===(e=(0,p.PR)())||void 0===e?void 0:e.id})}var b=t(75582),m=t(39421),v=t(39487);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 x(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}function O(){return[[v.go,"initialAsPath"],[v.iT,"initialPathname"],[v.FT,"notificationTemplate"],[v.Ll,"notificationUUID"],[v.$m,"referringURL"]].reduce((function(n,e){var t=(0,b.Z)(e,2),r=t[0],i=t[1];return x(x({},n),{},(0,o.Z)({},i,m.Z.get(r,v.vZ)))}),{})}var P=t(63055);function w(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 k(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?w(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var j="click",I="button";function Z(n){var e,t,o=n.actionName,r=n.actionType,i=n.componentName,c=n.componentType,a=n.properties,u=n.screenName,d=(e=o||r,t=i||c,"".concat(u,".").concat(e,"_").concat(t)),l=function(){var n,e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=O(),r=(null!==t&&void 0!==t&&t.width,window.innerWidth);return k(k(k({},t),o),{},{groupId:null===(n=(0,p.ex)())||void 0===n?void 0:n.id,partner_id:"Mage",screenSize:(0,P.Z3)(r),userId:null===(e=(0,p.PR)())||void 0===e?void 0:e.id})}(k({actionType:r,componentType:c},a));return{eventProperties:l,eventType:d,userProperties:g()}}function T(n,e){null===n||void 0===n||n(e)}var E=function(n){var e=n.children;return n.eventProperties,n.userProperties,e((function(n){return!1}))},C=t(44688),_=t(28598);function S(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 D(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?S(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var B,R,N=function(n){var e,t=n.buildChildren,o=n.disabled,r=n.eventActionName,c=void 0===r?j:r,a=n.eventComponentName,u=void 0===a?I:a,d=n.eventProperties,l=void 0===d?{}:d,p=n.eventScreenName,f=void 0===p?"generic":p,h=n.keyboardShortcutValidation,g=n.linkProps,b=n.onClick,m=n.openNewTab,v=n.requireKeyUp,y=n.uuid,x=(0,s.useRouter)(),O=(0,C.y)(),P=O.registerOnKeyDown,w=O.registerOnKeyUp,k=O.unregisterOnKeyDown,S=O.unregisterOnKeyUp;(0,i.useEffect)((function(){return function(){var n=v?S:k;null===n||void 0===n||n(y)}}),[v,k,S,y]),o||!b&&!g||(e=function(n){null===b||void 0===b||b(n),g&&(m?(window.open(g.as||g.href),n.preventDefault()):x.push(g.href,g.as))});var B=Z({actionName:c,actionType:j,componentName:u,componentType:I,properties:l,screenName:f}),R=B.eventType,N=B.eventProperties,M=B.userProperties;return(0,_.jsx)(E,{eventProperties:N,userProperties:M,children:function(n){var o=n.logEvent;h&&e&&(v?w:P)(y,(function(n,t,r){h({keyHistory:r,keyMapping:t})&&(T(o,R,{eventProperties:D(D({},N),{},{usedKeyboardShortcut:!0}),userProperties:M}),e(n))}),[N,R,o,e,M]);return t({eventProperties:N,eventType:R,logEvent:o,onClick:e,userProperties:M})}})},M={chatBubbleProps:null,graphicButtonProps:null,logoProps:null,mageImageUrl:null,mascotImageUrls:{base:null,castingSpell:null,chargingUp:null,thinking:null},sharedProps:null},A=i.createContext(M),H=A,L=t(38276),U=t(4190),W=t(44897),G=t(79633),z=t(42631),F=t(71180),Y=t(95363),K=t(61896),V=t(48670),q=t(70515),X=t(91437),Q=["Icon","afterElement","beforeElement","bold","borderless","centerText","children","compact","disabled","fitContentWidth","inverted","keyTextGroups","keyTextsPosition","linkProps","loading","mutedDisabled","noHover","onClick","padding","smallIcon","type","useModelTheme"];function $(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?$(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):$(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}!function(n){n.LEFT="left",n.RIGHT="right"}(B||(B={})),function(n){n.BUTTON="button",n.SUBMIT="submit"}(R||(R={}));var nn=(0,u.css)([""," "," align-items:center;border:none;display:flex;flex-direction:row;position:relative;text-align:left;z-index:0;"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ",""],(0,X.eR)(),F.MY,(function(n){return!n.large1&&!n.large2&&"\n ".concat(K.iD,"\n ")}),(function(n){return n.small&&"\n ".concat(K.HC,"\n ")}),(function(n){return n.large1&&"\n ".concat(K.ln,"\n ")}),(function(n){return n.large2&&"\n ".concat(K.QU,"\n ")}),(function(n){return!n.inline&&"\n width: 100%;\n "}),(function(n){return n.shortWidth&&"\n min-width: ".concat(28*q.iI,"px;\n ")}),(function(n){return!n.wrapText&&"\n white-space: nowrap;\n "}),(function(n){return n.outline&&!n.disabled&&"\n &:hover {\n box-shadow:\n 0 0 0 ".concat(z.PV,"px ").concat((n.theme||W.Z).background.panel,",\n 0 0 0 ").concat(z.PV+z.q2,"px ").concat((n.theme.interactive||W.Z.interactive).hoverOverlay,";\n }\n\n &:focus {\n box-shadow:\n 0 0 0 ").concat(z.PV,"px ").concat((n.theme||W.Z).background.panel,",\n 0 0 0 ").concat(z.PV+z.q2,"px ").concat((n.theme.interactive||W.Z.interactive).focusBorder,";\n }\n\n &:active {\n box-shadow: none;\n }\n ")}),(function(n){return!n.secondary&&"\n font-family: ".concat(Y.ry,";\n justify-content: space-between;\n ")}),(function(n){return n.primary&&!n.disabled&&"\n background-color: ".concat((n.theme.interactive||W.Z.interactive).linkPrimary,";\n border-color: ").concat((n.theme.interactive||W.Z.interactive).linkPrimary,";\n color: ").concat((n.theme.monotone||W.Z.monotone).white,";\n\n &:hover,\n &:focus,\n &:active {\n background-color: ").concat((n.theme.interactive||W.Z.interactive).linkPrimaryHover," !important;\n border-color: ").concat((n.theme.interactive||W.Z.interactive).linkPrimary," !important;\n }\n ")}),(function(n){return n.center&&"\n justify-content: center;\n "}),(function(n){return!n.noPadding&&!n.spacious&&!n.compact&&"\n padding: ".concat(1.25*q.iI,"px ").concat(1.5*q.iI,"px;\n ")}),(function(n){return n.compact&&"\n padding: ".concat(.5*q.iI,"px ").concat(.75*q.iI,"px;\n ")}),(function(n){return n.withIcon&&"\n padding: ".concat(1.25*q.iI-1,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.paddingTop&&"\n padding-top: ".concat(n.paddingTop,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.halfPaddingTop&&"\n padding-top: ".concat(.625*q.iI,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.halfPaddingBottom&&"\n padding-bottom: ".concat(.625*q.iI,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.paddingBottom&&"\n padding-bottom: ".concat(n.paddingBottom,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.halfPaddingRight&&"\n padding-right: ".concat(.75*q.iI,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.halfPaddingLeft&&"\n padding-left: ".concat(.75*q.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&!n.marketing&&"\n padding: ".concat(2.25*q.iI,"px ").concat(3*q.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.marketing&&"\n padding: ".concat(2.25*q.iI-2,"px ").concat(3*q.iI-2,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.halfPaddingTop&&"\n padding-top: ".concat(1.125*q.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.halfPaddingBottom&&"\n padding-bottom: ".concat(1.125*q.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.halfPaddingRight&&"\n padding-right: ".concat(1.5*q.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.halfPaddingLeft&&"\n padding-left: ".concat(1.5*q.iI,"px;\n ")}),(function(n){return n.secondary&&"\n flex-basis: content;\n font-family: ".concat(Y.nF,";\n padding: 0;\n ")}),(function(n){return n.noPadding&&"\n padding: 0;\n "}),(function(n){return n.bold&&"\n font-family: ".concat(Y.nF,";\n ")}),(function(n){return!n.muted&&!n.inverted&&"\n color: ".concat((n.theme.content||W.Z.content).active,";\n ")}),(function(n){return!n.muted&&n.inverted&&"\n color: ".concat((n.theme.content||W.Z.content).inverted,";\n ")}),(function(n){return n.muted&&"\n color: ".concat((n.theme.monotone||W.Z.monotone).grey300,";\n ")}),(function(n){return n.warning&&"\n color: ".concat((n.theme.brand||W.Z.brand).energy400,";\n ")}),(function(n){return n.noHover&&"\n &:hover {\n cursor: default;\n }\n "}),(function(n){return n.greyBorder&&"\n border: ".concat(z.YF,"px ").concat(z.M8," ").concat((n.theme||W.Z).borders.button,";\n ")}),(function(n){return n.blackBorder&&"\n border: ".concat(z.YF,"px ").concat(z.M8," ").concat((n.theme.monotone||W.Z.monotone).black,";\n ")}),(function(n){return!n.pill&&!n.borderless&&!n.compact&&"\n border-radius: ".concat(z.n_,"px;\n ")}),(function(n){return n.compact&&"\n border-radius: ".concat(z.BG,"px;\n ")}),(function(n){return!n.borderRadiusLeft&&!n.borderRadiusRight&&n.pill&&!n.spacious&&"\n border-radius: ".concat(5*q.iI,"px;\n ")}),(function(n){return n.borderRadiusLeft&&n.pill&&!n.spacious&&"\n border-bottom-left-radius: ".concat(5*q.iI,"px;\n border-top-left-radius: ").concat(5*q.iI,"px;\n ")}),(function(n){return n.borderRadiusRight&&n.pill&&!n.spacious&&"\n border-bottom-right-radius: ".concat(5*q.iI,"px;\n border-top-right-radius: ").concat(5*q.iI,"px;\n ")}),(function(n){return n.borderRadiusLeft&&n.pill&&n.spacious&&"\n border-bottom-left-radius: ".concat(8*q.iI,"px;\n border-top-left-radius: ").concat(8*q.iI,"px;\n ")}),(function(n){return n.borderRadiusRight&&n.pill&&n.spacious&&"\n border-bottom-right-radius: ".concat(8*q.iI,"px;\n border-top-right-radius: ").concat(8*q.iI,"px;\n ")}),(function(n){return n.inverted&&!n.noBackground&&!n.backgroundColor&&"\n background-color: ".concat((n.theme.monotone||W.Z.monotone).black,";\n ")}),(function(n){return!n.inverted&&!n.noBackground&&!n.primary&&!n.noHover&&"\n background-color: ".concat((n.theme.interactive||W.Z.interactive).defaultBackground,";\n\n &:hover {\n background-color: ").concat((n.theme.interactive||W.Z.interactive).hoverBackground,";\n }\n ")}),(function(n){return!n.inverted&&!n.noBackground&&!n.primary&&n.noHover&&"\n background-color: ".concat((n.theme.interactive||W.Z.interactive).defaultBackground,";\n ")}),(function(n){return!n.noBackground&&n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n ")}),(function(n){return n.noBackground&&"\n background-color: transparent !important;\n "}),(function(n){return n.disabled&&n.inverted&&"\n color: ".concat((n.theme.monotone||W.Z.monotone).grey400," !important;\n ")}),(function(n){return n.disabled&&!n.inverted&&"\n color: ".concat((n.theme.monotone||W.Z.monotone).grey300," !important;\n ")}),(function(n){return n.disabled&&"\n &:hover {\n cursor: not-allowed;\n }\n "}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.monotone||W.Z.monotone).black,";\n color: ").concat((n.theme.monotone||W.Z.monotone).white,";\n ")}),(function(n){return n.selected&&n.grey300&&"\n background-color: ".concat((n.theme.monotone||W.Z.monotone).grey300,";\n ")}),(function(n){return(n.selected||n.useModelTheme)&&n.fire&&"\n background-color: ".concat((n.theme.brand||W.Z.brand).fire400,";\n ")}),(function(n){return n.useModelTheme&&"\n color: ".concat((n.theme.monotone||W.Z.monotone).white,";\n ")}),(function(n){return(n.selected||n.useModelTheme)&&n.earth&&"\n background-color: ".concat((n.theme.brand||W.Z.brand).earth400,";\n ")}),(function(n){return n.primaryGradient&&"\n background: ".concat(G.uH," !important;\n ")}),(function(n){return n.background&&"\n background: ".concat(n.background," !important;\n ")}),(function(n){return(n.selected||n.useModelTheme)&&n.wind&&"\n background-color: ".concat((n.theme.brand||W.Z.brand).wind400,";\n\n &:hover,\n &:focus,\n &:active {\n background-color: ").concat((n.theme.brand||W.Z.brand).wind500,";\n }\n ")}),(function(n){return(n.selected||n.useModelTheme)&&n.water&&"\n background-color: ".concat((n.theme.brand||W.Z.brand).water400,";\n ")}),(function(n){return n.padding>0&&"\n padding: ".concat(n.padding,"px;\n ")}),(function(n){return n.shadow&&"\n box-shadow: ".concat((n.theme.shadow||W.Z.shadow).large,";\n ")})),en=u.default.button.withConfig({displayName:"KeyboardShortcutButton__ButtonStyle",componentId:"sc-10tm4pj-0"})(["",""],nn),tn=u.default.a.withConfig({displayName:"KeyboardShortcutButton__AnchorStyle",componentId:"sc-10tm4pj-1"})([""," ",""],nn,V.R);var on=function(n){var e=n.Icon,t=n.afterElement,c=n.beforeElement,u=n.bold,s=n.borderless,p=n.centerText,f=n.children,h=n.compact,g=n.disabled,b=n.fitContentWidth,m=n.inverted,v=n.keyTextGroups,y=n.keyTextsPosition,x=void 0===y?B.RIGHT:y,O=n.linkProps,P=n.loading,w=n.mutedDisabled,k=n.noHover,j=n.onClick,I=n.padding,Z=n.smallIcon,E=n.type,C=void 0===E?R.BUTTON:E,S=n.useModelTheme,D=(0,r.Z)(n,Q),M=O||{},A=M.as,W=M.href,G=A||W?tn:en,z=(0,i.useMemo)((function(){if(!v)return null;var n=(0,o.Z)({},x===B.RIGHT?"ml":"mr",f?1:0);return(0,_.jsx)(L.Z,J(J({},n),{},{children:(0,_.jsx)(l.Z,{borderless:m,disabled:g,keyTextGroups:v,mutedDisabled:w})}))}),[f,g,m,v,x,w]),F=((0,i.useContext)(H)||{}).sharedProps;return(0,_.jsx)(N,J(J({},D),{},{buildChildren:function(n){var o=n.eventProperties,r=n.eventType,i=n.logEvent,l=n.onClick,v=n.userProperties,y=(0,_.jsxs)(G,J(J(J({},D),S?F:{}),{},{bold:S||u,borderless:S||s,center:p,compact:h,disabled:g||w,fitContentWidth:b,inverted:m,noHover:(!l||k)&&!(A||W)&&C===R.BUTTON,onClick:function(n){T(i,r,{eventProperties:o,userProperties:v}),null===l||void 0===l||l(n)},padding:Z&&!f?11:I,type:A||W?null:C,useModelTheme:S,withIcon:!!e,children:[c&&!P&&(0,_.jsxs)(_.Fragment,{children:[c,(0,_.jsx)(L.Z,{mr:1})]}),x===B.LEFT&&z,(0,_.jsxs)(d.Z,{alignItems:"center",children:[e&&(0,_.jsx)(e,{muted:g||w,size:Z?2*q.iI:2.5*q.iI}),e&&f&&(0,_.jsx)(L.Z,{mr:1}),P&&(0,_.jsx)(U.Z,{inverted:!m,small:Z}),!P&&f]}),x===B.RIGHT&&z&&(0,_.jsx)(L.Z,{ml:1,children:z}),t&&!P&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(L.Z,{ml:t?1:0}),t]})]}));return!A&&!W||g||w?y:(0,_.jsx)(a(),J(J({},O),{},{passHref:!0,children:y}))},disabled:g||w,linkProps:O,onClick:j}))}},16756:function(n,e,t){var o=t(82684),r=t(38626),i=t(30160),c=t(44897),a=t(42631),u=t(28598),d=(0,r.css)(["min-width:18px;padding-left:2px;padding-right:2px;"," "," "," "," "," ",""],(function(n){return!n.disabled&&"\n background-color: ".concat((n.theme.content||c.Z.content).inverted,";\n ")}),(function(n){return n.disabled&&"\n // background-color: ".concat((n.theme.monotone||c.Z.monotone).grey400," !important;\n ")}),(function(n){return n.mutedDisabled&&"\n opacity: 0.3;\n "}),(function(n){return!n.borderless&&"\n box-shadow: ".concat((n.theme.shadow||c.Z.shadow).tiny,";\n padding-bottom: 3px;\n padding-top: 3px;\n ")}),(function(n){return n.borderless&&"\n border-radius: ".concat(a.BG,"px;\n padding-bottom: 4px;\n padding-top: 4px;\n ")}),(function(n){return n.spacingLeft&&"\n margin-left: ".concat(n.spacingLeft,"px;\n ")})),l=r.default.kbd.withConfig({displayName:"KeyboardText__KbdStyle",componentId:"sc-18540m4-0"})(["",""],d),s=r.default.div.withConfig({displayName:"KeyboardText__DivStyle",componentId:"sc-18540m4-1"})(["",""],d);e.Z=function(n){var e=n.borderless,t=n.disabled,d=n.inline,p=n.keyText,f=n.monospace,h=n.mutedDisabled,g=n.spacingLeft,b=d?s:l,m=(0,o.useContext)(r.ThemeContext),v={};if(!e){var y,x;if(t)v.borderColor=null===(y=(null===m||void 0===m?void 0:m.monotone)||c.Z.monotone)||void 0===y?void 0:y.grey400;else v.borderColor=null===(x=(null===m||void 0===m?void 0:m.content)||c.Z.content)||void 0===x?void 0:x.active;v.borderRadius=a.BG,v.borderStyle="solid",v.borderWidth=1,v.overflow="hidden"}return(0,u.jsx)(i.ZP,{center:!0,inline:!0,monospace:f,muted:t||h,style:v,xsmall:!0,children:(0,u.jsx)(b,{borderless:e,disabled:t,mutedDisabled:h,spacingLeft:g,children:p})})}},49130:function(n,e,t){var o=t(38626),r=t(55485),i=t(16756),c=t(30160),a=t(70515),u=t(28598),d=o.default.div.withConfig({displayName:"KeyboardTextGroup__SpacingStyle",componentId:"sc-1bx41p7-0"})([""," "," ",""],(function(n){return n.small&&"\n margin-left: ".concat(.25*a.iI,"px;\n ")}),(function(n){return!n.small&&"\n margin-left: ".concat(.25*a.iI,"px;\n ")}),(function(n){return n.marginRight&&"\n margin-right: ".concat(.25*a.iI,"px;\n ")}));e.Z=function(n){var e=n.addPlusSignBetweenKeys,t=n.borderless,o=n.disabled,a=n.keyTextGroups,l=n.inline,s=n.monospace,p=n.mutedDisabled,f=n.small,h=n.uuidForKey,g=[],b=[];return a.forEach((function(n,r){var a=[];n.forEach((function(n,r){b.push(n),r>=1&&(a.push((0,u.jsx)(d,{small:f},"spacing-".concat(n))),e&&(a.push((0,u.jsx)(c.ZP,{disabled:o,monospace:s,small:f,children:"+"},"spacing-".concat(n,"-plus-sign"))),a.push((0,u.jsx)(d,{small:f},"spacing-".concat(n,"-after-plus-sign"))))),a.push((0,u.jsx)(i.Z,{borderless:t,disabled:o,inline:!0,keyText:n,monospace:s,mutedDisabled:p},"key-".concat(b.join("-"),"-").concat(h)))})),r>=1&&g.push((0,u.jsx)(d,{marginRight:!0,children:(0,u.jsx)(c.ZP,{monospace:s,muted:!0,small:!f,xsmall:f,children:"then"})},"then-".concat(r))),g.push.apply(g,a)})),(0,u.jsx)(r.ZP,{alignItems:"center",inline:l,children:g})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3122],{52136:function(t,n,e){"use strict";e.d(n,{Z:function(){return _}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),s=e(5237),a=e(29989),l=e(81352),f=e(46119),h=e(88543),y=e(12765),p=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function d(){return d=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},d.apply(this,arguments)}function _(t){var n=t.top,e=void 0===n?0:n,i=t.left,r=void 0===i?0:i,u=t.scale,_=t.height,v=t.stroke,x=void 0===v?"#eaf0f6":v,m=t.strokeWidth,b=void 0===m?1:m,g=t.strokeDasharray,Z=t.className,O=t.numTicks,E=void 0===O?10:O,T=t.lineStyle,w=t.offset,k=t.tickValues,j=t.children,P=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,p),N=null!=k?k:(0,f.Z)(u,E),R=(null!=w?w:0)+(0,y.Z)(u)/2,S=N.map((function(t,n){var e,i=(null!=(e=(0,h.Z)(u(t)))?e:0)+R;return{index:n,from:new l.Z({x:i,y:0}),to:new l.Z({x:i,y:_})}}));return o.createElement(a.Z,{className:c()("visx-columns",Z),top:e,left:r},j?j({lines:S}):S.map((function(t){var n=t.from,e=t.to,i=t.index;return o.createElement(s.Z,d({key:"column-line-"+i,from:n,to:e,stroke:x,strokeWidth:b,strokeDasharray:g,style:T},P))})))}_.propTypes={tickValues:r().array,height:r().number.isRequired}},85587:function(t,n,e){"use strict";e.d(n,{Z:function(){return a}});var i=e(82684),r=e(63588),o=e.n(r),u=e(39309),c=["children","data","x","y","fill","className","curve","innerRef","defined"];function s(){return s=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},s.apply(this,arguments)}function a(t){var n=t.children,e=t.data,r=void 0===e?[]:e,a=t.x,l=t.y,f=t.fill,h=void 0===f?"transparent":f,y=t.className,p=t.curve,d=t.innerRef,_=t.defined,v=void 0===_?function(){return!0}:_,x=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,c),m=(0,u.jv)({x:a,y:l,defined:v,curve:p});return n?i.createElement(i.Fragment,null,n({path:m})):i.createElement("path",s({ref:d,className:o()("visx-linepath",y),d:m(r)||"",fill:h,strokeLinecap:"round"},x))}},39309:function(t,n,e){"use strict";e.d(n,{SO:function(){return u},jv:function(){return c}});var i=e(48167),r=e(92201),o=e(49894);function u(t){var n=void 0===t?{}:t,e=n.x,r=n.x0,u=n.x1,c=n.y,s=n.y0,a=n.y1,l=n.defined,f=n.curve,h=(0,i.Z)();return e&&(0,o.Z)(h.x,e),r&&(0,o.Z)(h.x0,r),u&&(0,o.Z)(h.x1,u),c&&(0,o.Z)(h.y,c),s&&(0,o.Z)(h.y0,s),a&&(0,o.Z)(h.y1,a),l&&h.defined(l),f&&h.curve(f),h}function c(t){var n=void 0===t?{}:t,e=n.x,i=n.y,u=n.defined,c=n.curve,s=(0,r.Z)();return e&&(0,o.Z)(s.x,e),i&&(0,o.Z)(s.y,i),u&&s.defined(u),c&&s.curve(c),s}},98889:function(t,n,e){"use strict";e.d(n,{Z:function(){return _}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),s=e(39309),a=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function l(){return l=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},l.apply(this,arguments)}function f(t){var n=t.children,e=t.x,i=t.x0,r=t.x1,u=t.y,f=t.y0,h=t.y1,y=t.data,p=void 0===y?[]:y,d=t.defined,_=void 0===d?function(){return!0}:d,v=t.className,x=t.curve,m=t.innerRef,b=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,a),g=(0,s.SO)({x:e,x0:i,x1:r,y:u,y0:f,y1:h,defined:_,curve:x});return n?o.createElement(o.Fragment,null,n({path:g})):o.createElement("path",l({ref:m,className:c()("visx-area",v),d:g(p)||""},b))}var h=["id","children"];function y(){return y=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},y.apply(this,arguments)}function p(t){var n=t.id,e=t.children,i=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,h);return o.createElement("defs",null,o.createElement("clipPath",y({id:n},i),e))}function d(){return d=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},d.apply(this,arguments)}function _(t){var n=t.className,e=t.curve,i=t.clipAboveTo,r=t.clipBelowTo,u=t.data,s=t.defined,a=t.x,l=t.y0,h=t.y1,y=t.aboveAreaProps,_=t.belowAreaProps,v=t.id,x=void 0===v?"":v;return o.createElement("g",{className:c()("visx-threshold",n)},o.createElement(f,{curve:e,data:u,x:a,y1:h,defined:s},(function(t){var n=t.path,e=null,c=null;return e=n.y0(r)(u),c=n.y0(i)(u),o.createElement("g",null,o.createElement(p,{id:"threshold-clip-below-"+x},o.createElement("path",{d:e||""})),o.createElement(p,{id:"threshold-clip-above-"+x},o.createElement("path",{d:c||""})))})),o.createElement(f,d({curve:e,data:u,defined:s,x:a,y0:l,y1:h,strokeWidth:0,clipPath:"url(#threshold-clip-below-"+x+")"},_)),o.createElement(f,d({curve:e,data:u,defined:s,x:a,y0:l,y1:h,strokeWidth:0,clipPath:"url(#threshold-clip-above-"+x+")"},y)))}p.propTypes={id:r().string.isRequired,children:r().node},_.propTypes={className:r().string,clipAboveTo:r().oneOfType([r().func,r().number]).isRequired,clipBelowTo:r().oneOfType([r().func,r().number]).isRequired,id:r().string.isRequired,data:r().array.isRequired,defined:r().func,x:r().oneOfType([r().func,r().number]).isRequired,y0:r().oneOfType([r().func,r().number]).isRequired,y1:r().oneOfType([r().func,r().number]).isRequired}},61655:function(t,n,e){"use strict";e.d(n,{Z:function(){return u}});var i=e(82684),r=e(29179);function o(){return o=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},o.apply(this,arguments)}function u(t,n,e){void 0===n&&(n={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===e&&(e=function(t,n){return i.createElement("div",n,t)});return function(u){var c=(0,r.Z)();return e(i.createElement(t,o({},c,u)),n)}}},35681:function(t,n){"use strict";var e=Math.PI,i=2*e,r=1e-6,o=i-r;function u(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function c(){return new u}u.prototype=c.prototype={constructor:u,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,i){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(t,n,e,i,r,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +i+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(t,n,i,o,u){t=+t,n=+n,i=+i,o=+o,u=+u;var c=this._x1,s=this._y1,a=i-t,l=o-n,f=c-t,h=s-n,y=f*f+h*h;if(u<0)throw new Error("negative radius: "+u);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(y>r)if(Math.abs(h*a-l*f)>r&&u){var p=i-c,d=o-s,_=a*a+l*l,v=p*p+d*d,x=Math.sqrt(_),m=Math.sqrt(y),b=u*Math.tan((e-Math.acos((_+y-v)/(2*x*m)))/2),g=b/m,Z=b/x;Math.abs(g-1)>r&&(this._+="L"+(t+g*f)+","+(n+g*h)),this._+="A"+u+","+u+",0,0,"+ +(h*p>f*d)+","+(this._x1=t+Z*a)+","+(this._y1=n+Z*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,u,c,s,a){t=+t,n=+n,a=!!a;var l=(u=+u)*Math.cos(c),f=u*Math.sin(c),h=t+l,y=n+f,p=1^a,d=a?c-s:s-c;if(u<0)throw new Error("negative radius: "+u);null===this._x1?this._+="M"+h+","+y:(Math.abs(this._x1-h)>r||Math.abs(this._y1-y)>r)&&(this._+="L"+h+","+y),u&&(d<0&&(d=d%i+i),d>o?this._+="A"+u+","+u+",0,1,"+p+","+(t-l)+","+(n-f)+"A"+u+","+u+",0,1,"+p+","+(this._x1=h)+","+(this._y1=y):d>r&&(this._+="A"+u+","+u+",0,"+ +(d>=e)+","+p+","+(this._x1=t+u*Math.cos(s))+","+(this._y1=n+u*Math.sin(s))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}},n.Z=c},48167:function(t,n,e){"use strict";e.d(n,{Z:function(){return s}});var i=e(35681),r=e(90875),o=e(23622),u=e(92201),c=e(98930);function s(){var t=c.x,n=null,e=(0,r.Z)(0),s=c.y,a=(0,r.Z)(!0),l=null,f=o.Z,h=null;function y(r){var o,u,c,y,p,d=r.length,_=!1,v=new Array(d),x=new Array(d);for(null==l&&(h=f(p=(0,i.Z)())),o=0;o<=d;++o){if(!(o<d&&a(y=r[o],o,r))===_)if(_=!_)u=o,h.areaStart(),h.lineStart();else{for(h.lineEnd(),h.lineStart(),c=o-1;c>=u;--c)h.point(v[c],x[c]);h.lineEnd(),h.areaEnd()}_&&(v[o]=+t(y,o,r),x[o]=+e(y,o,r),h.point(n?+n(y,o,r):v[o],s?+s(y,o,r):x[o]))}if(p)return h=null,p+""||null}function p(){return(0,u.Z)().defined(a).curve(f).context(l)}return y.x=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.Z)(+e),n=null,y):t},y.x0=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),y):t},y.x1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),y):n},y.y=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),s=null,y):e},y.y0=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),y):e},y.y1=function(t){return arguments.length?(s=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),y):s},y.lineX0=y.lineY0=function(){return p().x(t).y(e)},y.lineY1=function(){return p().x(t).y(s)},y.lineX1=function(){return p().x(n).y(e)},y.defined=function(t){return arguments.length?(a="function"===typeof t?t:(0,r.Z)(!!t),y):a},y.curve=function(t){return arguments.length?(f=t,null!=l&&(h=f(l)),y):f},y.context=function(t){return arguments.length?(null==t?l=h=null:h=f(l=t),y):l},y}},97745:function(t,n,e){"use strict";function i(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function r(t){this._context=t}function o(t){return new r(t)}e.d(n,{ZP:function(){return o},fE:function(){return r},xm:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}}},23622:function(t,n,e){"use strict";function i(t){this._context=t}function r(t){return new i(t)}e.d(n,{Z:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}}},92201:function(t,n,e){"use strict";e.d(n,{Z:function(){return c}});var i=e(35681),r=e(90875),o=e(23622),u=e(98930);function c(){var t=u.x,n=u.y,e=(0,r.Z)(!0),c=null,s=o.Z,a=null;function l(r){var o,u,l,f=r.length,h=!1;for(null==c&&(a=s(l=(0,i.Z)())),o=0;o<=f;++o)!(o<f&&e(u=r[o],o,r))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+t(u,o,r),+n(u,o,r));if(l)return a=null,l+""||null}return l.x=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),l):t},l.y=function(t){return arguments.length?(n="function"===typeof t?t:(0,r.Z)(+t),l):n},l.defined=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(!!t),l):e},l.curve=function(t){return arguments.length?(s=t,null!=c&&(a=s(c)),l):s},l.context=function(t){return arguments.length?(null==t?c=a=null:a=s(c=t),l):c},l}},98930:function(t,n,e){"use strict";function i(t){return t[0]}function r(t){return t[1]}e.d(n,{x:function(){return i},y:function(){return r}})},59739:function(t,n,e){"use strict";var i=e(56669);function r(){}function o(){}o.resetWarningCache=r,t.exports=function(){function t(t,n,e,r,o,u){if(u!==i){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function n(){return t}t.isRequired=t;var e={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,elementType:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:r};return e.PropTypes=e,e}},47329:function(t,n,e){t.exports=e(59739)()},56669:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},80022:function(t,n,e){"use strict";function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}e.d(n,{Z:function(){return i}})},15544:function(t,n,e){"use strict";function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}e.d(n,{Z:function(){return i}})},99177:function(t,n,e){"use strict";function i(t,n){return i=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},i(t,n)}function r(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&i(t,n)}e.d(n,{Z:function(){return r}})},93189:function(t,n,e){"use strict";e.d(n,{Z:function(){return o}});var i=e(12539),r=e(80022);function o(t,n){if(n&&("object"===i(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.Z)(t)}}}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6285],{52136:function(t,n,e){"use strict";e.d(n,{Z:function(){return _}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),s=e(5237),a=e(29989),l=e(81352),f=e(46119),h=e(88543),y=e(12765),p=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function d(){return d=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},d.apply(this,arguments)}function _(t){var n=t.top,e=void 0===n?0:n,i=t.left,r=void 0===i?0:i,u=t.scale,_=t.height,v=t.stroke,x=void 0===v?"#eaf0f6":v,m=t.strokeWidth,b=void 0===m?1:m,g=t.strokeDasharray,Z=t.className,O=t.numTicks,E=void 0===O?10:O,T=t.lineStyle,w=t.offset,k=t.tickValues,j=t.children,P=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,p),N=null!=k?k:(0,f.Z)(u,E),R=(null!=w?w:0)+(0,y.Z)(u)/2,S=N.map((function(t,n){var e,i=(null!=(e=(0,h.Z)(u(t)))?e:0)+R;return{index:n,from:new l.Z({x:i,y:0}),to:new l.Z({x:i,y:_})}}));return o.createElement(a.Z,{className:c()("visx-columns",Z),top:e,left:r},j?j({lines:S}):S.map((function(t){var n=t.from,e=t.to,i=t.index;return o.createElement(s.Z,d({key:"column-line-"+i,from:n,to:e,stroke:x,strokeWidth:b,strokeDasharray:g,style:T},P))})))}_.propTypes={tickValues:r().array,height:r().number.isRequired}},85587:function(t,n,e){"use strict";e.d(n,{Z:function(){return a}});var i=e(82684),r=e(63588),o=e.n(r),u=e(39309),c=["children","data","x","y","fill","className","curve","innerRef","defined"];function s(){return s=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},s.apply(this,arguments)}function a(t){var n=t.children,e=t.data,r=void 0===e?[]:e,a=t.x,l=t.y,f=t.fill,h=void 0===f?"transparent":f,y=t.className,p=t.curve,d=t.innerRef,_=t.defined,v=void 0===_?function(){return!0}:_,x=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,c),m=(0,u.jv)({x:a,y:l,defined:v,curve:p});return n?i.createElement(i.Fragment,null,n({path:m})):i.createElement("path",s({ref:d,className:o()("visx-linepath",y),d:m(r)||"",fill:h,strokeLinecap:"round"},x))}},39309:function(t,n,e){"use strict";e.d(n,{SO:function(){return u},jv:function(){return c}});var i=e(48167),r=e(92201),o=e(49894);function u(t){var n=void 0===t?{}:t,e=n.x,r=n.x0,u=n.x1,c=n.y,s=n.y0,a=n.y1,l=n.defined,f=n.curve,h=(0,i.Z)();return e&&(0,o.Z)(h.x,e),r&&(0,o.Z)(h.x0,r),u&&(0,o.Z)(h.x1,u),c&&(0,o.Z)(h.y,c),s&&(0,o.Z)(h.y0,s),a&&(0,o.Z)(h.y1,a),l&&h.defined(l),f&&h.curve(f),h}function c(t){var n=void 0===t?{}:t,e=n.x,i=n.y,u=n.defined,c=n.curve,s=(0,r.Z)();return e&&(0,o.Z)(s.x,e),i&&(0,o.Z)(s.y,i),u&&s.defined(u),c&&s.curve(c),s}},98889:function(t,n,e){"use strict";e.d(n,{Z:function(){return _}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),s=e(39309),a=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function l(){return l=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},l.apply(this,arguments)}function f(t){var n=t.children,e=t.x,i=t.x0,r=t.x1,u=t.y,f=t.y0,h=t.y1,y=t.data,p=void 0===y?[]:y,d=t.defined,_=void 0===d?function(){return!0}:d,v=t.className,x=t.curve,m=t.innerRef,b=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,a),g=(0,s.SO)({x:e,x0:i,x1:r,y:u,y0:f,y1:h,defined:_,curve:x});return n?o.createElement(o.Fragment,null,n({path:g})):o.createElement("path",l({ref:m,className:c()("visx-area",v),d:g(p)||""},b))}var h=["id","children"];function y(){return y=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},y.apply(this,arguments)}function p(t){var n=t.id,e=t.children,i=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,h);return o.createElement("defs",null,o.createElement("clipPath",y({id:n},i),e))}function d(){return d=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},d.apply(this,arguments)}function _(t){var n=t.className,e=t.curve,i=t.clipAboveTo,r=t.clipBelowTo,u=t.data,s=t.defined,a=t.x,l=t.y0,h=t.y1,y=t.aboveAreaProps,_=t.belowAreaProps,v=t.id,x=void 0===v?"":v;return o.createElement("g",{className:c()("visx-threshold",n)},o.createElement(f,{curve:e,data:u,x:a,y1:h,defined:s},(function(t){var n=t.path,e=null,c=null;return e=n.y0(r)(u),c=n.y0(i)(u),o.createElement("g",null,o.createElement(p,{id:"threshold-clip-below-"+x},o.createElement("path",{d:e||""})),o.createElement(p,{id:"threshold-clip-above-"+x},o.createElement("path",{d:c||""})))})),o.createElement(f,d({curve:e,data:u,defined:s,x:a,y0:l,y1:h,strokeWidth:0,clipPath:"url(#threshold-clip-below-"+x+")"},_)),o.createElement(f,d({curve:e,data:u,defined:s,x:a,y0:l,y1:h,strokeWidth:0,clipPath:"url(#threshold-clip-above-"+x+")"},y)))}p.propTypes={id:r().string.isRequired,children:r().node},_.propTypes={className:r().string,clipAboveTo:r().oneOfType([r().func,r().number]).isRequired,clipBelowTo:r().oneOfType([r().func,r().number]).isRequired,id:r().string.isRequired,data:r().array.isRequired,defined:r().func,x:r().oneOfType([r().func,r().number]).isRequired,y0:r().oneOfType([r().func,r().number]).isRequired,y1:r().oneOfType([r().func,r().number]).isRequired}},61655:function(t,n,e){"use strict";e.d(n,{Z:function(){return u}});var i=e(82684),r=e(29179);function o(){return o=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},o.apply(this,arguments)}function u(t,n,e){void 0===n&&(n={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===e&&(e=function(t,n){return i.createElement("div",n,t)});return function(u){var c=(0,r.Z)();return e(i.createElement(t,o({},c,u)),n)}}},35681:function(t,n){"use strict";var e=Math.PI,i=2*e,r=1e-6,o=i-r;function u(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function c(){return new u}u.prototype=c.prototype={constructor:u,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,i){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(t,n,e,i,r,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +i+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(t,n,i,o,u){t=+t,n=+n,i=+i,o=+o,u=+u;var c=this._x1,s=this._y1,a=i-t,l=o-n,f=c-t,h=s-n,y=f*f+h*h;if(u<0)throw new Error("negative radius: "+u);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(y>r)if(Math.abs(h*a-l*f)>r&&u){var p=i-c,d=o-s,_=a*a+l*l,v=p*p+d*d,x=Math.sqrt(_),m=Math.sqrt(y),b=u*Math.tan((e-Math.acos((_+y-v)/(2*x*m)))/2),g=b/m,Z=b/x;Math.abs(g-1)>r&&(this._+="L"+(t+g*f)+","+(n+g*h)),this._+="A"+u+","+u+",0,0,"+ +(h*p>f*d)+","+(this._x1=t+Z*a)+","+(this._y1=n+Z*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,u,c,s,a){t=+t,n=+n,a=!!a;var l=(u=+u)*Math.cos(c),f=u*Math.sin(c),h=t+l,y=n+f,p=1^a,d=a?c-s:s-c;if(u<0)throw new Error("negative radius: "+u);null===this._x1?this._+="M"+h+","+y:(Math.abs(this._x1-h)>r||Math.abs(this._y1-y)>r)&&(this._+="L"+h+","+y),u&&(d<0&&(d=d%i+i),d>o?this._+="A"+u+","+u+",0,1,"+p+","+(t-l)+","+(n-f)+"A"+u+","+u+",0,1,"+p+","+(this._x1=h)+","+(this._y1=y):d>r&&(this._+="A"+u+","+u+",0,"+ +(d>=e)+","+p+","+(this._x1=t+u*Math.cos(s))+","+(this._y1=n+u*Math.sin(s))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}},n.Z=c},48167:function(t,n,e){"use strict";e.d(n,{Z:function(){return s}});var i=e(35681),r=e(90875),o=e(23622),u=e(92201),c=e(98930);function s(){var t=c.x,n=null,e=(0,r.Z)(0),s=c.y,a=(0,r.Z)(!0),l=null,f=o.Z,h=null;function y(r){var o,u,c,y,p,d=r.length,_=!1,v=new Array(d),x=new Array(d);for(null==l&&(h=f(p=(0,i.Z)())),o=0;o<=d;++o){if(!(o<d&&a(y=r[o],o,r))===_)if(_=!_)u=o,h.areaStart(),h.lineStart();else{for(h.lineEnd(),h.lineStart(),c=o-1;c>=u;--c)h.point(v[c],x[c]);h.lineEnd(),h.areaEnd()}_&&(v[o]=+t(y,o,r),x[o]=+e(y,o,r),h.point(n?+n(y,o,r):v[o],s?+s(y,o,r):x[o]))}if(p)return h=null,p+""||null}function p(){return(0,u.Z)().defined(a).curve(f).context(l)}return y.x=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.Z)(+e),n=null,y):t},y.x0=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),y):t},y.x1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),y):n},y.y=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),s=null,y):e},y.y0=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),y):e},y.y1=function(t){return arguments.length?(s=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),y):s},y.lineX0=y.lineY0=function(){return p().x(t).y(e)},y.lineY1=function(){return p().x(t).y(s)},y.lineX1=function(){return p().x(n).y(e)},y.defined=function(t){return arguments.length?(a="function"===typeof t?t:(0,r.Z)(!!t),y):a},y.curve=function(t){return arguments.length?(f=t,null!=l&&(h=f(l)),y):f},y.context=function(t){return arguments.length?(null==t?l=h=null:h=f(l=t),y):l},y}},97745:function(t,n,e){"use strict";function i(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function r(t){this._context=t}function o(t){return new r(t)}e.d(n,{ZP:function(){return o},fE:function(){return r},xm:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}}},23622:function(t,n,e){"use strict";function i(t){this._context=t}function r(t){return new i(t)}e.d(n,{Z:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}}},92201:function(t,n,e){"use strict";e.d(n,{Z:function(){return c}});var i=e(35681),r=e(90875),o=e(23622),u=e(98930);function c(){var t=u.x,n=u.y,e=(0,r.Z)(!0),c=null,s=o.Z,a=null;function l(r){var o,u,l,f=r.length,h=!1;for(null==c&&(a=s(l=(0,i.Z)())),o=0;o<=f;++o)!(o<f&&e(u=r[o],o,r))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+t(u,o,r),+n(u,o,r));if(l)return a=null,l+""||null}return l.x=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),l):t},l.y=function(t){return arguments.length?(n="function"===typeof t?t:(0,r.Z)(+t),l):n},l.defined=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(!!t),l):e},l.curve=function(t){return arguments.length?(s=t,null!=c&&(a=s(c)),l):s},l.context=function(t){return arguments.length?(null==t?c=a=null:a=s(c=t),l):c},l}},98930:function(t,n,e){"use strict";function i(t){return t[0]}function r(t){return t[1]}e.d(n,{x:function(){return i},y:function(){return r}})},59739:function(t,n,e){"use strict";var i=e(56669);function r(){}function o(){}o.resetWarningCache=r,t.exports=function(){function t(t,n,e,r,o,u){if(u!==i){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function n(){return t}t.isRequired=t;var e={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,elementType:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:r};return e.PropTypes=e,e}},47329:function(t,n,e){t.exports=e(59739)()},56669:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},80022:function(t,n,e){"use strict";function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}e.d(n,{Z:function(){return i}})},15544:function(t,n,e){"use strict";function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}e.d(n,{Z:function(){return i}})},13692:function(t,n,e){"use strict";e.d(n,{Z:function(){return r}});var i=e(61049);function r(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&(0,i.Z)(t,n)}},93189:function(t,n,e){"use strict";e.d(n,{Z:function(){return o}});var i=e(12539),r=e(80022);function o(t,n){if(n&&("object"===i(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.Z)(t)}},61049:function(t,n,e){"use strict";function i(t,n){return i=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},i(t,n)}e.d(n,{Z:function(){return i}})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6333],{27277:function(e,n,t){var i=t(82394),r=t(21831),o=t(82684),l=t(39643),u=t(44688),c=t(28598);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,i.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}n.Z=function(e){var n=e.highlightedItemIndexInitial,t=void 0===n?null:n,i=e.itemGroups,s=e.noResultGroups,d=e.onHighlightItemIndexChange,p=e.onMouseEnterItem,f=e.onMouseLeaveItem,h=e.onSelectItem,v=e.renderEmptyState,m=e.searchQuery,j=e.selectedItem,g=e.setItemRefs,x=e.uuid,Z=(0,o.useState)(!0),b=Z[0],y=Z[1],P=(0,o.useMemo)((function(){var e=[],n=i.reduce((function(n,t){var i=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===i.length?n:(e.push.apply(e,(0,r.Z)(i)),n.concat(a(a({},t),{},{items:i})))}),[]);return{itemGroups:n,itemsFlattened:e}}),[i,m]),O=P.itemGroups,_=P.itemsFlattened;s&&0===_.length&&(O.push.apply(O,(0,r.Z)(s)),_.push.apply(_,(0,r.Z)(s.reduce((function(e,n){var t=n.items;return e.concat(t)}),[]))));var w=(0,o.useRef)(null);w.current=_.map((function(){return(0,o.createRef)()}));var I=(0,o.useState)(t),k=I[0],S=I[1],C=(0,o.useCallback)((function(e){null===d||void 0===d||d(e),S(e)}),[d,S]),T=_[k],E=(0,u.y)(),M=E.registerOnKeyDown,D=E.unregisterOnKeyDown;(0,o.useEffect)((function(){return function(){return D(x)}}),[D,x]),null===M||void 0===M||M(x,(function(e,n,t){var i,r=!0,o=_.length,u=_.findIndex((function(e,i){var r=e.keyboardShortcutValidation;return null===r||void 0===r?void 0:r({keyHistory:t,keyMapping:n},i)})),c=n[l.Gs]&&!n[l.XR]&&!j;return-1!==u?(e.preventDefault(),h(_[u]),y(r),C(u)):(n[l.Uq]||c)&&_[k]?(c&&e.preventDefault(),h(_[k]),y(r),C(k)):(n[l.Bu]?(r=!1,i=null===k?o-1:k-1):n[l.kD]?(r=!1,i=null===k?0:k+1):n[l.vP]&&C(null),"undefined"!==typeof i&&(i>=o?i=0:i<=-1&&(i=o-1),i>=0&&i<=o-1?(C(i),e.preventDefault()):C(null)),void y(r))}),[k,_,j,C,y]),(0,o.useEffect)((function(){null===g||void 0===g||g(w)}),[w,_,g]),(0,o.useEffect)((function(){var e=null===k||"undefined"===typeof k||k>=_.length;(null===m||void 0===m?void 0:m.length)>=1&&e&&C(0)}),[k,_,m,C]);var N=(0,o.useCallback)((function(){return y(!0)}),[y]);return(0,o.useEffect)((function(){return window.addEventListener("mousemove",N),function(){window.removeEventListener("mousemove",N)}}),[N]),0===O.length&&v?v():(0,c.jsx)(c.Fragment,{children:O.map((function(e,n){var t=e.items,i=e.renderItem,r=e.renderGroupHeader,o=e.uuid,l=n>=1?O.slice(0,n).reduce((function(e,n){return e+n.items.length}),0):0,u=t.map((function(e,n){var t=e.itemObject,r=e.value,o=r===(null===T||void 0===T?void 0:T.value),u=n+l,s=(null===t||void 0===t?void 0:t.id)||(null===t||void 0===t?void 0:t.uuid);return(0,c.jsx)("div",{id:"item-".concat(r,"-").concat(s),onMouseMove:function(){return b&&C(u)},ref:w.current[u],children:i(e,{highlighted:o,onClick:function(){return h(e)},onMouseEnter:function(){return null===p||void 0===p?void 0:p(e)},onMouseLeave:function(){return null===f||void 0===f?void 0:f(e)}},n,u)},"item-".concat(r,"-").concat(s))}));return u.length>=1&&(0,c.jsxs)("div",{children:[null===r||void 0===r?void 0:r(),u]},o||"group-uuid-".concat(n))}))})}},8916:function(e,n,t){t.d(n,{FS:function(){return s},JZ:function(){return p},Tt:function(){return d},e7:function(){return f},wx:function(){return a}});var i=t(75582),r=t(82394),o=t(83784),l=t(30229);function u(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 c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e){return"string"===typeof e?e:JSON.stringify(e)}function a(e,n){var t,i;return null===e||void 0===e||null===(t=e.find((function(e){var t=e.block;return n(t)})))||void 0===t||null===(i=t.variables)||void 0===i?void 0:i.map((function(e){var n=e.value;return c(c({},e),{},{value:s(n)})}))}function d(e){var n;return null===(n=a(e,(function(e){return e.uuid===o.C})))||void 0===n?void 0:n.reduce((function(e,n){var t=n.uuid,i=n.value;return c(c({},e),{},(0,r.Z)({},t,i))}),{})}function p(e,n){return n===l.Xm.TIME?e.push({uuid:"execution_date",value:"<run datetime>"}):n===l.Xm.EVENT&&e.push({uuid:"event",value:"<trigger event>"}),e}function f(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,i.Z)(n,2),o=t[0],l=t[1],u=l;try{u=JSON.parse(l)}catch(s){}return c(c({},e),{},(0,r.Z)({},o,u))}),{}):e}},81334:function(e,n,t){t.d(n,{Z:function(){return _}});var i=t(82394),r=t(82684),o=t(27277),l=t(31882),u=t(38276),c=t(48381),s=t(30160),a=t(17488),d=t(38626),p=t(44897),f=t(42631),h=t(47041),v=t(70515),m=d.default.div.withConfig({displayName:"indexstyle__DropdownStyle",componentId:"sc-suwkha-0"})([""," border-radius:","px;max-height:","px;overflow:auto;position:absolute;width:100%;z-index:1;"," ",""],h.w5,f.BG,40*v.iI,(function(e){return"\n background-color: ".concat((e.theme.background||p.Z.background).popup,";\n box-shadow: ").concat((e.theme.shadow||p.Z.shadow).popup,";\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset-.5*v.iI,"px;\n ")})),j=d.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-suwkha-1"})(["padding:","px;position:relative;z-index:2;&:hover{cursor:pointer;}",""],.5*v.iI,(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||p.Z.interactive).hoverBackground,";\n ")})),g=t(39643),x=t(3314),Z=t(86735),b=t(44688),y=t(28598);function P(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 O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?P(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _=function(e){var n,t=e.removeTag,i=e.selectTag,d=e.selectedTags,p=void 0===d?[]:d,f=e.tags,h=void 0===f?[]:f,v=e.uuid,P=(0,r.useRef)(null),_=(0,r.useState)(!1),w=_[0],I=_[1],k=(0,r.useState)(null),S=k[0],C=k[1],T=(0,r.useMemo)((function(){return(0,Z.YC)(h||[],"uuid")}),[h]),E=(0,r.useMemo)((function(){return null===T||void 0===T?void 0:T.map((function(e){return{itemObject:e,searchQueries:[e.uuid],value:e.uuid}}))}),[T]),M=(0,r.useMemo)((function(){return(null===S||void 0===S?void 0:S.length)>=1?E.concat({itemObject:{uuid:S},searchQueries:[S],value:"Add tag: ".concat(S)}):E}),[E,S]),D=(0,b.y)(),N=D.registerOnKeyDown,A=D.unregisterOnKeyDown;return(0,r.useEffect)((function(){return function(){return A(v)}}),[A,v]),null===N||void 0===N||N(v,(function(e,n){var t;w&&n[g.vP]&&(I(!1),null===P||void 0===P||null===(t=P.current)||void 0===t||t.blur())}),[w,P]),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.Z,{onClickTag:t,tags:p}),(0,y.jsxs)(u.Z,{mt:1,style:{position:"relative"},children:[(0,y.jsx)(a.Z,{onBlur:function(){return setTimeout((function(){return I(!1)}),150)},onChange:function(e){return C(e.target.value)},onFocus:function(){return I(!0)},ref:P,value:S||""}),(0,y.jsx)(m,{topOffset:null===P||void 0===P||null===(n=P.current)||void 0===n?void 0:n.getBoundingClientRect().height,children:(0,y.jsx)(o.Z,{itemGroups:[{items:w?M:[],renderItem:function(e,n){var t=e.value;return(0,y.jsx)(j,O(O({},n),{},{onClick:function(e){var t;(0,x.j)(e),null===n||void 0===n||null===(t=n.onClick)||void 0===t||t.call(n,e)},children:(0,y.jsx)(l.Z,{small:!0,children:(0,y.jsx)(s.ZP,{children:t})})}))}}],onSelectItem:function(e){var n=e.itemObject;null===i||void 0===i||i(n),C(null)},searchQuery:S,uuid:v})})]})]})}},88785:function(e,n,t){t.d(n,{J:function(){return c},U:function(){return u}});var i=t(38626),r=t(44897),o=t(42631),l=t(70515),u=i.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-m7tlau-0"})(["border-radius:","px;border-style:solid;border-width:2px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],o.TR,14*l.iI,l.cd*l.iI,l.cd*l.iI,40*l.iI,(function(e){return!e.selected&&"\n border-color: ".concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.selected&&"\n border-color: ".concat((e.theme.interactive||r.Z.interactive).linkPrimary,";\n ")})),c=i.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],o.n_,l.tr,(function(e){return"\n background-color: ".concat((e.theme.interactive||r.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.absolute&&"\n position: absolute;\n z-index: 2;\n right: 0;\n top: ".concat(2.5*l.iI,"px;\n ")}),(function(e){return e.topPosition&&"\n top: -".concat(42*l.iI,"px;\n ")}))},12717:function(e,n,t){t.d(n,{Z:function(){return Le}});var i=t(21831),r=t(82394),o=t(75582),l=t(12691),u=t.n(l),c=t(82684),s=t(20026),a=t.n(s),d=t(92083),p=t.n(d),f=t(21764),h=t(69864),v=t(34376),m=t(71180),j=t(90299),g=t(14805),x=t(70652),Z=t(50724),b=t(9134),y=t(39457),P=t(38626),O=t(39867),_=t(55485),w=t(85854),I=t(38276),k=t(75499),S=t(30160),C=t(17488),T=t(12468),E=t(44375),M=t(70515),D=t(55283),N=t(86735),A=t(28598);function L(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function H(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?L(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var z=function(e){var n=e.blocks,t=e.updateVariables,i=e.variables,o=(0,c.useContext)(P.ThemeContext),l=(0,c.useCallback)((function(e,n){return t((function(){var t=(null===i||void 0===i?void 0:i.__mage_variables)||{},o=(null===t||void 0===t?void 0:t.blocks)||{},l=o[e]||{},u=(null===l||void 0===l?void 0:l.configuration)||{};return H(H({},i),{},{__mage_variables:H(H({},t),{},{blocks:H(H({},o),{},(0,r.Z)({},e,H(H({},l),{},{configuration:H(H({},u),n)})))})})}))}),[t,i]);return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(w.Z,{children:"dbt runtime settings"}),(0,A.jsx)(I.Z,{mt:M.Mq,children:(0,A.jsx)(k.Z,{columnFlex:[1,null,null,null],columns:[{uuid:"Block"},{uuid:"Flags"},{uuid:"Prefix"},{uuid:"Suffix"}],compact:!0,rows:null===n||void 0===n?void 0:n.map((function(e){var n,t,r,u=e.type,c=e.uuid,s=(0,E.IU)(e).name,a=(0,D.qn)(u,{blockColor:e.color,theme:o}).accent,d=null===i||void 0===i||null===(n=i.__mage_variables)||void 0===n||null===(t=n.blocks)||void 0===t||null===(r=t[c])||void 0===r?void 0:r.configuration,p=d||{},f=p.prefix,h=p.suffix,v=(null===d||void 0===d?void 0:d.flags)||[],m=!(null===v||void 0===v||!v.includes(E.Dy));return[(0,A.jsx)(T.Z,{block:!0,label:(0,A.jsx)(S.ZP,{monospace:!0,small:!0,children:c}),size:null,widthFitContent:!0,children:(0,A.jsxs)(_.ZP,{alignItems:"center",children:[(0,A.jsx)(O.Z,{color:a,size:1.5*M.iI,square:!0}),(0,A.jsx)(I.Z,{mr:1}),(0,A.jsxs)(S.ZP,{monospace:!0,small:!0,children:[f&&(0,A.jsx)(S.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:f}),s,h&&(0,A.jsx)(S.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:h})]})]})},"uuid-".concat(c)),(0,A.jsx)(_.ZP,{alignItems:"center",children:(0,A.jsx)(x.Z,{checked:m,label:E.Dy,monospace:!0,onClick:function(){return l(c,{flags:m?(0,N.Od)(v,(function(e){return E.Dy===e})):v.concat(E.Dy)})},small:!0})},"flags-".concat(c)),(0,A.jsx)(C.Z,{compact:!0,monospace:!0,onChange:function(e){return l(c,{prefix:e.target.value})},placeholder:"N+, +",small:!0,value:f,width:10*M.iI},"prefix-".concat(c)),(0,A.jsx)(C.Z,{compact:!0,monospace:!0,onChange:function(e){return l(c,{suffix:e.target.value})},placeholder:"+, +N",small:!0,value:h,width:10*M.iI},"suffix-".concat(c))]}))})})]})},F=t(97196),q=t(15338),U=t(97618),R=t(48670),W=t(26304),B=t(44897),K=t(95363),Y=t(61896),J=["children","large","lineHeight","ordered"];function G(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 V(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?G(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):G(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var X=(0,P.css)([""," "," "," "," "," "," "," "," "," ",""],(function(e){return!e.muted&&"\n color: ".concat((e.theme.content||B.Z.content).default,";\n ")}),(function(e){return e.muted&&"\n color: ".concat((e.theme.content||B.Z.content).muted,";\n ")}),(function(e){return e.inverted&&"\n color: ".concat((e.theme.content||B.Z.content).inverted,";\n ")}),(function(e){return e.color&&"\n color: ".concat(e.color,";\n ")}),(function(e){return!e.monospace&&"\n font-family: ".concat(K.ry,";\n ")}),(function(e){return e.monospace&&"\n font-family: ".concat(K.Vp,";\n ")}),(function(e){return e.large&&"\n ".concat(Y.x_,"\n ")}),(function(e){return!e.large&&!e.small&&"\n ".concat(Y.i3,"\n ")}),(function(e){return e.small&&"\n ".concat(Y.J5,"\n ")}),(function(e){return e.lineHeight&&"\n line-height: ".concat(e.lineHeight,"px !important;\n ")})),Q=P.default.ul.withConfig({displayName:"List__UnorderedListStyle",componentId:"sc-1f6yhbi-0"})(["",""],X),$=P.default.ol.withConfig({displayName:"List__OrderedListStyle",componentId:"sc-1f6yhbi-1"})(["",""],X),ee=P.default.li.withConfig({displayName:"List__ListItemStyle",componentId:"sc-1f6yhbi-2"})(["",""],(function(e){return e.large&&e.marginTop&&"\n margin-top: ".concat(1*M.iI,"px;\n ")}));var ne,te=function(e){var n=e.children,t=e.large,i=e.lineHeight,r=e.ordered,o=(0,W.Z)(e,J),l=r?$:Q;return(0,A.jsx)(l,V(V({large:t,lineHeight:i},o),{},{children:c.Children.map(n,(function(e,n){var i;return(0,A.jsx)(ee,V(V({large:t,marginTop:n>=1},o),{},{children:c.cloneElement(e)}),(null===(i=e.props)||void 0===i?void 0:i.key)||n)}))}))},ie=t(75457),re=t(30229),oe=t(57653),le=t(83784),ue=t(82359),ce=t(44085),se=t(81334),ae=t(69650),de=t(81769),pe=t(54193),fe=t(72473),he=t(81728),ve=t(16488),me=t(70320),je=(ne={},(0,r.Z)(ne,pe.zj.DATE,fe.aw),(0,r.Z)(ne,pe.zj.DATETIME,fe.Pf),(0,r.Z)(ne,pe.zj.DICTIONARY,fe.$l),(0,r.Z)(ne,pe.zj.FLOAT,fe.As),(0,r.Z)(ne,pe.zj.INTEGER,fe.qZ),(0,r.Z)(ne,pe.zj.LIST,fe.B4),(0,r.Z)(ne,pe.zj.STRING,fe.KJ),ne);var ge=function(e){var n,t,i,r=e.containerRef,l=e.date,u=e.interactions,s=e.pipeline,a=e.pipelineInteraction,d=e.pipelineSchedule,p=e.setVariables,f=e.showSummary,h=e.time,v=e.triggerTypes,m=e.variables,j=(0,c.useMemo)((function(){return(0,N.HK)(u||[],(function(e){return e.uuid}))}),[u]),g=(0,c.useMemo)((function(){return(null===s||void 0===s?void 0:s.blocks)||[]}),[s]),x=(0,c.useMemo)((function(){return(null===a||void 0===a?void 0:a.blocks)||{}}),[a]),Z=(0,c.useMemo)((function(){var e=[];null===g||void 0===g||g.length;return null===g||void 0===g||g.map((function(n,t){var i=(n||{uuid:null}).uuid,o=(null===x||void 0===x?void 0:x[i])||[];null===o||void 0===o||o.length;e.push((0,A.jsx)(I.Z,{p:M.cd,children:null===o||void 0===o?void 0:o.map((function(e,n){return(0,A.jsx)(I.Z,{mt:n>=1?2*M.cd:0,children:(0,A.jsx)(de.Z,{blockInteraction:e,containerRef:r,interaction:null===j||void 0===j?void 0:j[null===e||void 0===e?void 0:e.uuid],setVariables:p,variables:m})},"".concat(null===e||void 0===e?void 0:e.uuid,"-").concat(n))}))}))})),e}),[g,r,j,p,m]),b=(0,me.q)(),y=(0,c.useMemo)((function(){return l&&null!==h&&void 0!==h&&h.hour&&null!==h&&void 0!==h&&h.minute?(0,ve.XM)(l,h,{convertToUtc:b,includeSeconds:!0,localTimezone:b}):null}),[l,b,h]),P=(0,c.useMemo)((function(){var e=[];null===g||void 0===g||g.length;return null===g||void 0===g||g.map((function(n,t){var i=(n||{uuid:null}).uuid,r=(null===x||void 0===x?void 0:x[i])||[];null===r||void 0===r||r.forEach((function(n,r){var l=null===j||void 0===j?void 0:j[null===n||void 0===n?void 0:n.uuid];Object.entries((null===l||void 0===l?void 0:l.variables)||{}).forEach((function(n,l){var u,c=(0,o.Z)(n,2),s=c[0],a=c[1],d=a.name,p=a.required,f=a.types,h=null===m||void 0===m?void 0:m[s],v="undefined"===typeof h,j=p&&v,g=(null===je||void 0===je?void 0:je[f[0]])||fe.KJ,x=[];"undefined"!==typeof h?h&&Array.isArray(h||[])?null===h||void 0===h||h.forEach((function(e){x.push(e&&"object"===typeof e?x.push(JSON.stringify(e)):x.push(String(e)))})):h&&"object"===typeof h?Object.entries(h||{}).forEach((function(e){var n=(0,o.Z)(e,2),t=n[0];n[1]&&x.push(String(t))})):x.push(String(h)):x.push(h||""),e.push([(0,A.jsxs)(_.ZP,{alignItems:"center",children:[(0,A.jsx)(g,{default:!0,size:1.5*M.iI}),(0,A.jsx)(I.Z,{mr:1}),(0,A.jsx)(S.ZP,{default:!0,monospace:!0,children:s})]},"".concat(i,"-").concat(s,"-label-").concat(d,"-").concat(t,"-").concat(r,"-").concat(l)),(0,A.jsx)(I.Z,{py:M.cd,children:(0,A.jsxs)(S.ZP,{danger:j,monospace:!j,muted:v,children:[v&&!j&&"-",j&&"This is required",!v&&!j&&(null===x||void 0===x||null===(u=x.map((function(e){return String(e)})))||void 0===u?void 0:u.join(", "))]})},"".concat(i,"-").concat(s,"-value-").concat(d,"-").concat(h,"-").concat(t,"-").concat(r,"-").concat(l))])}))}))})),(0,A.jsx)(k.Z,{columnFlex:[null,1],rows:e})}),[g,j,m]);return(0,A.jsxs)(A.Fragment,{children:[!f&&Z,f&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(I.Z,{p:M.cd,children:(0,A.jsx)(w.Z,{children:"Settings"})}),(0,A.jsx)(q.Z,{light:!0,short:!0}),(0,A.jsx)(k.Z,{columnFlex:[null,1],rows:[[(0,A.jsxs)(_.ZP,{alignItems:"center",children:[(0,A.jsx)(fe.Bf,{default:!0}),(0,A.jsx)(I.Z,{mr:1}),(0,A.jsx)(S.ZP,{default:!0,children:"Trigger type"})]},"trigger_type"),(0,A.jsx)(I.Z,{py:M.cd,children:(0,A.jsx)(S.ZP,{danger:!(null!==d&&void 0!==d&&d.schedule_type),monospace:!0,children:null!==d&&void 0!==d&&d.schedule_type?null===v||void 0===v||null===(n=v.find((function(e){return e.uuid===(null===d||void 0===d?void 0:d.schedule_type)})))||void 0===n||null===(t=n.label)||void 0===t?void 0:t.call(n):"This is required"})},"trigger_type_input")],[(0,A.jsxs)(_.ZP,{alignItems:"center",children:[(0,A.jsx)(fe.KJ,{default:!0}),(0,A.jsx)(I.Z,{mr:1}),(0,A.jsx)(S.ZP,{default:!0,children:"Trigger name"})]},"trigger_name"),(0,A.jsx)(I.Z,{py:M.cd,children:(0,A.jsx)(S.ZP,{danger:!(null!==d&&void 0!==d&&d.name),monospace:!0,children:(null===d||void 0===d?void 0:d.name)||"This is required"})},"trigger_name_input")],[(0,A.jsxs)(_.ZP,{alignItems:"center",children:[(0,A.jsx)(fe.KJ,{default:!0}),(0,A.jsx)(I.Z,{mr:1}),(0,A.jsx)(S.ZP,{default:!0,children:"Trigger description"})]},"trigger_description"),(0,A.jsx)(I.Z,{py:M.cd,children:(0,A.jsx)(S.ZP,{monospace:!0,muted:!(null!==d&&void 0!==d&&d.description),children:(null===d||void 0===d?void 0:d.description)||"-"})},"trigger_description_input")],[(0,A.jsxs)(_.ZP,{alignItems:"center",children:[(0,A.jsx)(fe.Pf,{default:!0,size:1.5*M.iI}),(0,A.jsx)(I.Z,{mr:1}),(0,A.jsx)(S.ZP,{default:!0,children:"Frequency"})]},"frequency"),(0,A.jsx)(I.Z,{py:M.cd,children:(0,A.jsxs)(S.ZP,{danger:!(null!==d&&void 0!==d&&d.schedule_interval),monospace:!0,muted:!(null!==d&&void 0!==d&&d.schedule_interval),children:[(null===d||void 0===d?void 0:d.schedule_interval)&&(0,he.vg)((null===d||void 0===d||null===(i=d.schedule_interval)||void 0===i?void 0:i.substring(1))||""),!(null!==d&&void 0!==d&&d.schedule_interval)&&"This is required"]})},"frequency_input")],[(0,A.jsxs)(_.ZP,{alignItems:"center",children:[(0,A.jsx)(fe.aw,{default:!0,size:1.5*M.iI}),(0,A.jsx)(I.Z,{mr:1}),(0,A.jsx)(S.ZP,{default:!0,children:"Start date and time"})]},"start_time"),(0,A.jsx)(I.Z,{py:M.cd,children:(0,A.jsx)(S.ZP,{danger:!y,monospace:!!y,muted:!y,children:y||"This is required"})},"start_time_input")]]}),(0,A.jsx)(I.Z,{p:M.cd,children:(0,A.jsx)(w.Z,{children:"Customize"})}),(0,A.jsx)(q.Z,{light:!0,short:!0}),P]})]})},xe=t(35686),Ze=t(77417),be=t(44425),ye=t(88785),Pe=t(44265),Oe=t(28795),_e={label:function(){return"CUSTOMIZE"},uuid:"customize"},we={label:function(){return"SETTINGS"},uuid:"settings"},Ie={label:function(){return"REVIEW"},uuid:"review"},ke=[we,_e,Ie],Se=t(22286),Ce=t(79500),Te=t(8916),Ee=t(42122),Me=t(72619),De=t(3917);function Ne(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 Ae(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ne(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ne(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Le=function(e){var n=e.creatingWithLimitation,t=e.errors,l=e.fetchPipelineSchedule,s=e.onCancel,d=e.pipeline,P=e.pipelineSchedule,O=e.setErrors,T=e.variables,E=e.useCreateScheduleMutation,L=(0,Ze.Z)().project,H=(0,c.useRef)(null),W=(0,v.useRouter)(),B=(0,me.q)(),K=null===d||void 0===d?void 0:d.uuid,Y=(0,c.useMemo)((function(){return null===P||void 0===P?void 0:P.id}),[P]),J=(null===d||void 0===d?void 0:d.type)===oe.qL.STREAMING,G=(0,c.useState)([]),V=G[0],X=G[1],Q=(0,c.useState)(!1),$=Q[0],ee=Q[1],ne=(0,c.useState)(!1),de=ne[0],pe=ne[1],je=(0,c.useState)(!1),Ne=je[0],Le=je[1],He=(0,c.useState)(null),ze=He[0],Fe=He[1],qe=(0,c.useState)({}),Ue=qe[0],Re=qe[1],We=(0,c.useState)(null),Be=We[0],Ke=We[1],Ye=(0,c.useState)(null),Je=Ye[0],Ge=Ye[1],Ve=(0,c.useState)(!1),Xe=Ve[0],Qe=Ve[1],$e=(0,c.useState)(null),en=$e[0],nn=$e[1],tn=xe.ZP.client_pages.detail("pipeline_schedule:create",{"pipeline_schedules[]":[Y],"pipelines[]":[K]},{},{key:"Triggers/Edit/".concat(K,"/").concat(Y),pauseFetch:!K||!Y}).data,rn=((0,c.useMemo)((function(){return null===tn||void 0===tn?void 0:tn.client_page}),[tn]),(0,c.useState)(ke[0].uuid)),on=rn[0],ln=rn[1],un=(0,c.useMemo)((function(){var e;return!(null===L||void 0===L||null===(e=L.features)||void 0===e||!e[ue.d.INTERACTIONS])}),[null===L||void 0===L?void 0:L.features]),cn=(0,c.useMemo)((function(){return!Y&&n}),[n,Y]),sn=xe.ZP.pipeline_interactions.detail(un&&K,{filter_for_permissions:1}).data,an=xe.ZP.interactions.pipeline_interactions.list(un&&K).data,dn=(0,c.useMemo)((function(){return(null===sn||void 0===sn?void 0:sn.pipeline_interaction)||{}}),[sn]),pn=(0,c.useMemo)((function(){return(null===an||void 0===an?void 0:an.interactions)||[]}),[an]),fn=(0,c.useMemo)((function(){var e;return un&&(null===(e=Object.keys((null===dn||void 0===dn?void 0:dn.blocks)||{}))||void 0===e?void 0:e.length)>=1}),[un,dn]),hn=(0,c.useMemo)((function(){return!!Y&&fn}),[fn,Y]),vn=(0,c.useMemo)((function(){var e,n={};return null===dn||void 0===dn||null===(e=dn.permissions)||void 0===e||e.forEach((function(e){var t=e.triggers;null===t||void 0===t||t.forEach((function(e){var t=e.schedule_interval,i=e.schedule_type;null!==n&&void 0!==n&&n[i]||(n[i]={}),t&&(n[i][t]=!0)}))})),n}),[dn]),mn=(0,c.useMemo)((function(){return(0,Te.wx)(T,(function(e){return e.uuid===le.C}))}),[T]),jn=(0,c.useMemo)((function(){return Be||{}}),[Be]),gn=jn.description,xn=jn.name,Zn=jn.schedule_interval,bn=jn.schedule_type,yn=jn.settings,Pn=void 0===yn?{}:yn,On=jn.start_time,_n=jn.tags,wn=jn.variables,In=void 0===wn?{}:wn;(0,c.useEffect)((function(){!ze&&Pn&&Fe(Pn)}),[ze,Pn]);var kn=(0,c.useState)(null),Sn=kn[0],Cn=kn[1],Tn=(0,c.useState)({hour:"00",minute:"00"}),En=Tn[0],Mn=Tn[1],Dn=(0,c.useState)({dayOfMonth:null,dayOfWeek:null,hour:null,minute:null,second:null}),Nn=Dn[0],An=Dn[1],Ln=xe.ZP.event_rules.detail(re.Xm.EVENT===bn?"aws":null).data,Hn=(0,c.useMemo)((function(){var e;return(null===Ln||void 0===Ln||null===(e=Ln.event_rule)||void 0===e?void 0:e.rules)||[]}),[Ln]),zn=(0,c.useMemo)((function(){return(0,N.HK)(Hn,(function(e){return e.name}))}),[Hn]),Fn=(0,h.Db)(xe.ZP.pipeline_schedules.useUpdate(Y),{onSuccess:function(e){return(0,Me.wD)(e,{callback:function(){null===l||void 0===l||l(),W.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(K,"/triggers/").concat(Y))},onErrorCallback:function(e,n){return O({errors:n,response:e})}})}}),qn=(0,o.Z)(Fn,2),Un=qn[0],Rn=qn[1].isLoading,Wn=(0,c.useMemo)((function(){return In||{}}),[In]);(0,c.useEffect)((function(){if(On){var e=(0,Ce.a)(On,{localTimezone:B});Cn(null===e||void 0===e?void 0:e.date),Mn(null===e||void 0===e?void 0:e.time);var n=p()(On).utc();An({dayOfMonth:n.date(),dayOfWeek:n.day(),hour:n.hours(),minute:n.minutes(),second:n.seconds()})}else{var t=new Date;Cn(t),Mn(B?{hour:(0,De.lJ)(String(t.getHours())),minute:(0,De.lJ)(String(t.getMinutes()))}:{hour:(0,De.lJ)(String(t.getUTCHours())),minute:(0,De.lJ)(String(t.getUTCMinutes()))})}}),[B,On]),(0,c.useEffect)((function(){Wn&&Object.keys(Wn).length>0&&ee(!0)}),[Wn]),(0,c.useEffect)((function(){Re($?null===mn||void 0===mn?void 0:mn.reduce((function(e,n){var t=n.uuid,i=n.value;return Ae(Ae({},e),{},(0,r.Z)({},t,Wn[t]||i))}),{}):null)}),[mn,$,Wn]);var Bn=(0,c.useMemo)((function(){return(0,ve._U)(Zn)}),[Zn]),Kn=(0,c.useMemo)((function(){return Bn&&en?a().toString(en,{throwExceptionOnParseError:!1}):""}),[en,Bn]),Yn=(0,c.useMemo)((function(){return null===Kn||void 0===Kn?void 0:Kn.toLowerCase().includes("error")}),[Kn]);(0,c.useEffect)((function(){if(P&&!Be){if(X(P.event_matchers),(0,ve._U)(null===P||void 0===P?void 0:P.schedule_interval)){var e=B?(0,ve.lO)(null===P||void 0===P?void 0:P.schedule_interval):null===P||void 0===P?void 0:P.schedule_interval;nn(e),Ke(Ae(Ae({},P),{},{schedule_interval:"custom"}))}else Ke(J?Ae(Ae({},P),{},{schedule_interval:re.U5.ONCE}):P);var n=P.sla;if(n){pe(!0);var t=(0,ve.gU)(n),i=t.time,r=t.unit;Ke((function(e){return Ae(Ae({},e),{},{slaAmount:i,slaUnit:r})}))}}}),[B,J,P,Be,Zn]);var Jn=(0,c.useMemo)((function(){return!(null===ze||void 0===ze||!ze.landing_time_enabled)}),[ze]),Gn=(0,c.useMemo)((function(){return re.Xm.TIME!==bn||![re.U5.DAILY,re.U5.HOURLY,re.U5.MONTHLY,re.U5.WEEKLY].includes(Zn)}),[Zn,bn]),Vn=(0,c.useMemo)((function(){return Jn&&!Gn}),[Gn,Jn]),Xn=(0,c.useCallback)((function(){var e=Ae(Ae({},(0,Ee.GL)(Be,["name","description","schedule_type","tags"])),{},{event_matchers:[],schedule_interval:null,start_time:null,variables:(0,Te.e7)(Ue)});if(Vn){var n=Nn.dayOfMonth,t=Nn.dayOfWeek,i=Nn.hour,r=Nn.minute,o=Nn.second,l=p()("2023-07-01").utc();(0,he.HW)(n)&&(l=l.date(n)),(0,he.HW)(t)&&(l=l.day(t)),(0,he.HW)(i)&&(l=l.hours(i)),(0,he.HW)(r)&&(l=l.minutes(r)),(0,he.HW)(o)&&(l=l.seconds(o)),e.schedule_interval=Bn?en:Be.schedule_interval,e.start_time=l.toISOString()}else re.Xm.EVENT===Be.schedule_type?e.event_matchers=V:(e.schedule_interval=Bn?B&&!Yn&&en?(0,ve.lO)(en,!0):en:Be.schedule_interval,e.start_time=Sn&&null!==En&&void 0!==En&&En.hour&&null!==En&&void 0!==En&&En.minute?(0,ve.XM)(Sn,En,{convertToUtc:B,includeSeconds:!0,localTimezone:B}):null);if(de){var u=null===Be||void 0===Be?void 0:Be.slaAmount,c=null===Be||void 0===Be?void 0:Be.slaUnit;if(!u||isNaN(u)||!c)return void f.Am.error("Please enter a valid SLA",{position:f.Am.POSITION.BOTTOM_RIGHT,toastId:"sla_error"});e.sla=(0,ve.vJ)(u,c)}else null!==P&&void 0!==P&&P.sla&&(e.sla=0);e.settings=ze,Un({pipeline_schedule:Ae(Ae({},e),{},{variables:Je||(null===e||void 0===e?void 0:e.variables)})})}),[Yn,en,Sn,B,de,V,Bn,Nn,P,Ue,Be,ze,Vn,En,Un,Je]),Qn=(0,c.useMemo)((function(){if(null===P||void 0===P||!P.runtime_average)return"Trigger doesn\u2019t have enough history to estimate runtime.";var e=Number(null===P||void 0===P?void 0:P.runtime_average),n=Math.max(Math.floor(e/3600),0),t=Math.max(Math.floor((e-60*n*60)/60),0),i=Math.max(Math.floor(e-(60*n*60+60*t)),0),r=[];return n>=1&&r.push((0,he._6)("hour",n,!0)),t>=1&&r.push((0,he._6)("minute",t,!0)),i>=1&&r.push((0,he._6)("second",i,!0)),r.join(" ")}),[P]),$n=(0,c.useMemo)((function(){if(!Vn)return null;var e=[(0,A.jsxs)(I.Z,{mr:1,children:[(0,A.jsx)(I.Z,{mb:1,children:(0,A.jsx)(S.ZP,{bold:!0,default:!0,small:!0,children:"Minute"})}),(0,A.jsxs)(ce.Z,{compact:!0,monospace:!0,onChange:function(e){An((function(n){return Ae(Ae({},n),{},{minute:e.target.value})}))},value:(null===Nn||void 0===Nn?void 0:Nn.minute)||"",children:[(0,A.jsx)("option",{value:""}),(0,N.w6)(60).map((function(e,n){return(0,A.jsx)("option",{value:n,children:n>=10?String(n):"0".concat(n)},n)}))]})]},"Minute"),(0,A.jsxs)(I.Z,{mr:1,children:[(0,A.jsx)(I.Z,{mb:1,children:(0,A.jsx)(S.ZP,{bold:!0,default:!0,small:!0,children:"Second"})}),(0,A.jsxs)(ce.Z,{compact:!0,monospace:!0,onChange:function(e){An((function(n){return Ae(Ae({},n),{},{second:e.target.value})}))},value:(null===Nn||void 0===Nn?void 0:Nn.second)||"",children:[(0,A.jsx)("option",{value:""}),(0,N.w6)(60).map((function(e,n){return(0,A.jsx)("option",{value:n,children:n>=10?String(n):"0".concat(n)},n)}))]})]},"Second")];return[re.U5.DAILY,re.U5.MONTHLY,re.U5.WEEKLY].includes(Zn)&&e.unshift((0,A.jsxs)(I.Z,{mr:1,children:[(0,A.jsx)(I.Z,{mb:1,children:(0,A.jsx)(S.ZP,{bold:!0,default:!0,small:!0,children:"Hour"})}),(0,A.jsxs)(ce.Z,{compact:!0,monospace:!0,onChange:function(e){An((function(n){return Ae(Ae({},n),{},{hour:e.target.value})}))},value:(null===Nn||void 0===Nn?void 0:Nn.hour)||"",children:[(0,A.jsx)("option",{value:""}),(0,N.w6)(24).map((function(e,n){return(0,A.jsx)("option",{value:n,children:n>=10?String(n):"0".concat(n)},n)}))]})]},"Hour")),re.U5.WEEKLY===Zn?e.unshift((0,A.jsxs)(I.Z,{mr:1,children:[(0,A.jsx)(I.Z,{mb:1,children:(0,A.jsx)(S.ZP,{bold:!0,default:!0,small:!0,children:"Day of the week"})}),(0,A.jsxs)(ce.Z,{compact:!0,monospace:!0,onChange:function(e){An((function(n){return Ae(Ae({},n),{},{dayOfWeek:e.target.value})}))},value:(null===Nn||void 0===Nn?void 0:Nn.dayOfWeek)||"",children:[(0,A.jsx)("option",{value:""}),(0,A.jsx)("option",{value:6,children:"Sunday"}),(0,A.jsx)("option",{value:0,children:"Monday"}),(0,A.jsx)("option",{value:1,children:"Tuesday"}),(0,A.jsx)("option",{value:2,children:"Wednesday"}),(0,A.jsx)("option",{value:3,children:"Thursday"}),(0,A.jsx)("option",{value:4,children:"Friday"}),(0,A.jsx)("option",{value:5,children:"Saturday"})]})]},"Day of the week")):re.U5.MONTHLY===Zn&&e.unshift((0,A.jsxs)(I.Z,{mr:1,children:[(0,A.jsx)(I.Z,{mb:1,children:(0,A.jsx)(S.ZP,{bold:!0,default:!0,small:!0,children:"Day of the month"})}),(0,A.jsxs)(ce.Z,{compact:!0,monospace:!0,onChange:function(e){An((function(n){return Ae(Ae({},n),{},{dayOfMonth:e.target.value})}))},value:(null===Nn||void 0===Nn?void 0:Nn.dayOfMonth)||"",children:[(0,A.jsx)("option",{value:""}),(0,N.w6)(31).map((function(e,n){return(0,A.jsx)("option",{value:n+1,children:n+1>=10?String(n+1):"0".concat(n+1)},n+1)}))]})]},"Day of the month")),(0,A.jsx)(_.ZP,{children:e})}),[Nn,Zn,Vn]),et=(0,c.useMemo)((function(){return[(0,A.jsxs)(_.ZP,{alignItems:"center",children:[(0,A.jsx)(fe.KJ,{default:!0}),(0,A.jsx)(I.Z,{mr:1}),(0,A.jsx)(S.ZP,{default:!0,children:"Trigger name"})]},"trigger_name"),(0,A.jsx)(C.Z,{monospace:!0,onChange:function(e){e.preventDefault(),Ke((function(n){return Ae(Ae({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:xn},"trigger_name_input")]}),[xn]),nt=(0,c.useMemo)((function(){return[(0,A.jsxs)(_.ZP,{alignItems:"center",children:[(0,A.jsx)(fe.KJ,{default:!0}),(0,A.jsx)(I.Z,{mr:1}),(0,A.jsx)(S.ZP,{default:!0,children:"Trigger description"})]},"trigger_description"),(0,A.jsx)(C.Z,{monospace:!0,onChange:function(e){e.preventDefault(),Ke((function(n){return Ae(Ae({},n),{},{description:e.target.value})}))},placeholder:"Description",value:gn},"trigger_description_input")]}),[gn]),tt=(0,c.useMemo)((function(){var e=[et,nt,[(0,A.jsxs)(_.ZP,{alignItems:"center",children:[(0,A.jsx)(fe.Pf,{default:!0,size:1.5*M.iI}),(0,A.jsx)(I.Z,{mr:1}),(0,A.jsx)(S.ZP,{default:!0,children:"Frequency"})]},"frequency"),(0,A.jsxs)("div",{children:[(0,A.jsxs)(ce.Z,{monospace:!0,onChange:function(e){e.preventDefault();var n=e.target.value;Ke((function(e){return Ae(Ae({},e),{},{schedule_interval:n})}))},placeholder:"Choose the frequency to run",value:Zn,children:[Object.values(re.U5).reduce((function(e,n){var t;return!cn||null!==vn&&void 0!==vn&&null!==(t=vn[re.Xm.TIME])&&void 0!==t&&t[n]?e.concat((0,A.jsx)("option",{value:n,children:n.substring(1)},n)):e}),[]),!cn&&(0,A.jsx)("option",{value:"custom",children:"custom"},"custom")]}),!cn&&(0,A.jsx)(I.Z,{mt:1,p:1,children:(0,A.jsxs)(S.ZP,{muted:!0,small:!0,children:["If you don't see the frequency option you need, select ",(0,A.jsx)(S.ZP,{inline:!0,monospace:!0,small:!0,children:"custom"})," and enter CRON syntax."]})})]},"frequency_input")]];return cn||e.push([(0,A.jsxs)(_.ZP,{alignItems:"center",children:[(0,A.jsx)(fe.rs,{default:!0,size:1.5*M.iI}),(0,A.jsx)(I.Z,{mr:1}),(0,A.jsx)(S.ZP,{default:!0,children:"Enable landing time"})]},"frequency"),(0,A.jsxs)("div",{children:[(0,A.jsx)(ae.Z,{checked:Jn,disabled:Gn,onCheck:function(){Fe((function(e){return Ae(Ae({},e),{},{landing_time_enabled:!Jn})}))}}),(0,A.jsxs)(I.Z,{mt:1,p:1,children:[Gn&&(0,A.jsxs)(S.ZP,{muted:!0,small:!0,children:["In order to enable landing time, the trigger\u2019s frequency must be ",(0,A.jsx)(S.ZP,{inline:!0,monospace:!0,small:!0,children:re.U5.HOURLY}),", ",(0,A.jsx)(S.ZP,{inline:!0,monospace:!0,small:!0,children:re.U5.DAILY}),", ",(0,A.jsx)(S.ZP,{inline:!0,monospace:!0,small:!0,children:re.U5.WEEKLY}),", or ",(0,A.jsx)(S.ZP,{inline:!0,monospace:!0,small:!0,children:re.U5.MONTHLY}),"."]}),!Gn&&(0,A.jsx)(S.ZP,{muted:!0,small:!0,children:"Instead of starting at a specific time, this trigger will schedule pipeline runs at a time where it will finish by the specified time below."})]})]},"frequency_input")]),Vn&&e.push([(0,A.jsxs)(_.ZP,{alignItems:"center",children:[(0,A.jsx)(fe.Pf,{default:!0,size:1.5*M.iI}),(0,A.jsx)(I.Z,{mr:1}),(0,A.jsx)(S.ZP,{default:!0,children:"Average runtime"})]},"runtime_average"),(0,A.jsx)(_.ZP,{alignItems:"center",style:{minHeight:"".concat(5.75*M.iI,"px")},children:(0,A.jsx)(S.ZP,{monospace:!0,children:Qn})},"runtime_average_value")]),e.push([(0,A.jsxs)(_.ZP,{alignItems:"center",children:[(0,A.jsx)(fe.aw,{default:!0,size:1.5*M.iI}),(0,A.jsx)(I.Z,{mr:1}),(0,A.jsxs)(S.ZP,{default:!0,children:[Vn&&"Pipeline complete by",!Vn&&"Start date and time"]})]},"start_time"),Vn?$n:(0,A.jsxs)("div",{style:{minHeight:"".concat(5.75*M.iI,"px")},children:[!Xe&&(0,A.jsx)(C.Z,{monospace:!0,onClick:function(){return Qe((function(e){return!e}))},placeholder:"YYYY-MM-DD HH:MM",value:Sn?(0,ve.XM)(Sn,En,{localTimezone:B}):""}),(0,A.jsx)("div",{style:{width:"400px"},children:(0,A.jsx)(Z.Z,{disableEscape:!0,onClickOutside:function(){return Qe(!1)},open:Xe,style:{position:"relative"},children:(0,A.jsx)(g.Z,{localTime:B,selectedDate:Sn,selectedTime:En,setSelectedDate:Cn,setSelectedTime:Mn,topPosition:!0})})})]},"start_time_input")]),J&&e.splice(2,2),Bn&&e.splice(2,0,[(0,A.jsxs)(_.ZP,{alignItems:"center",children:[(0,A.jsx)(fe.EK,{default:!0,size:1.5*M.iI}),(0,A.jsx)(I.Z,{mr:1}),(0,A.jsx)(S.ZP,{default:!0,children:"Cron expression"})]},"cron_expression"),(0,A.jsxs)("div",{children:[(0,A.jsx)(C.Z,{monospace:!0,onChange:function(e){e.preventDefault(),nn(e.target.value)},placeholder:"* * * * *",value:en}),(0,A.jsxs)(I.Z,{mt:1,p:1,children:[(0,A.jsx)(S.ZP,{monospace:!0,xsmall:!0,children:"[minute] [hour] [day(month)] [month] [day(week)]"}),(0,A.jsx)(I.Z,{mb:"2px"}),en?(0,A.jsx)(S.ZP,{danger:Yn,muted:!0,small:!0,children:Yn?"Invalid cron expression. Please check the cron syntax.":(0,A.jsxs)(A.Fragment,{children:['"',Kn,'"']})}):null,B&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(S.ZP,{bold:!0,inline:!0,small:!0,warning:!0,children:"Note:\xa0"}),(0,A.jsxs)(S.ZP,{inline:!0,small:!0,children:["If you have the display_local_timezone setting enabled, the local cron expression above will match your local timezone only",(0,A.jsx)("br",{}),"if the minute and hour values are single values without any special characters, such as the comma, hyphen, or slash.",(0,A.jsx)("br",{}),"You can still use cron expressions with special characters for the minute/hour values, but it will be based in UTC time."]})]})]})]},"cron_expression_input")]),(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(I.Z,{mb:2,px:M.cd,children:(0,A.jsx)(w.Z,{children:"Settings"})}),(0,A.jsx)(q.Z,{light:!0,short:!0}),(0,A.jsx)(k.Z,{columnFlex:[null,1],rows:e})]})}),[Yn,en,Sn,B,cn,Bn,J,Gn,Jn,$n,vn,Kn,Qn,Zn,Xe,Vn,En,et,nt]),it=(0,c.useCallback)((function(e,n){X((function(t){return Object.entries(n).forEach((function(n){var i=(0,o.Z)(n,2),r=i[0],l=i[1];t[e][r]=l})),(0,i.Z)(t)}))}),[X]),rt=(0,c.useMemo)((function(){return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(I.Z,{mb:M.cd,px:M.cd,children:(0,A.jsx)(w.Z,{children:"Settings"})}),(0,A.jsx)(q.Z,{light:!0,short:!0}),(0,A.jsx)(k.Z,{columnFlex:[null,1],rows:[et,nt]}),(0,A.jsxs)(I.Z,{mb:2,mt:5,px:M.cd,children:[(0,A.jsx)(w.Z,{children:"Events"}),(0,A.jsxs)(S.ZP,{muted:!0,children:["Add 1 or more event that will trigger this pipeline to run.",(0,A.jsx)("br",{}),"If you add more than 1 event, this pipeline will trigger if any of the events are received."]}),(0,A.jsxs)(I.Z,{mt:M.Mq,children:[(0,A.jsx)(S.ZP,{bold:!0,large:!0,children:"AWS events"}),(0,A.jsxs)(S.ZP,{muted:!0,children:["In order to retrieve all the possible AWS events you can trigger your pipeline from,",(0,A.jsx)("br",{}),"you\u2019ll need to set 3 environment variables (",(0,A.jsx)(R.Z,{href:"https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html",openNewWindow:!0,underline:!0,children:"more info here"}),"):"]}),(0,A.jsx)(I.Z,{mt:1,children:(0,A.jsxs)(te,{monospace:!0,ordered:!0,children:[(0,A.jsx)(S.ZP,{monospace:!0,children:"AWS_REGION_NAME"}),(0,A.jsx)(S.ZP,{monospace:!0,children:"AWS_ACCESS_KEY_ID"}),(0,A.jsx)(S.ZP,{monospace:!0,children:"AWS_SECRET_ACCESS_KEY"})]})})]})]}),(0,A.jsx)(q.Z,{light:!0,short:!0}),(null===V||void 0===V?void 0:V.length)>=1&&(0,A.jsx)(k.Z,{alignTop:!0,columnFlex:[1,1,2,null],columns:[{uuid:"Provider"},{uuid:"Event"},{uuid:"Pattern"},{label:function(){return""},uuid:"delete"}],rows:null===V||void 0===V?void 0:V.map((function(e,n){var t=e.event_type,i=e.name,r=e.pattern,o=e.id||"".concat(t,"-").concat(i,"-").concat(n,"-").concat(JSON.stringify(r)),l=[];return r&&JSON.stringify(r,null,2).split("\n").forEach((function(e){l.push(" ".concat(e))})),[(0,A.jsx)(ce.Z,{monospace:!0,onChange:function(e){return it(n,{event_type:e.target.value})},placeholder:"Event provider",value:t||"",children:F.S5.map((function(e){var n=e.label,t=e.uuid;return(0,A.jsx)("option",{value:t,children:n()},t)}))},"event-provider-".concat(o)),(0,A.jsx)(ce.Z,{monospace:!0,onChange:function(e){var t,i=e.target.value,r=null===(t=zn[i])||void 0===t?void 0:t.event_pattern;it(n,{name:i,pattern:r?JSON.parse(r):null})},placeholder:"Event name",value:i,children:Hn.map((function(e){var n=e.name;return(0,A.jsx)("option",{value:n,children:n},n)}))},"event-name-".concat(o)),r&&(0,A.jsx)(b.Z,{language:"json",small:!0,source:l.join("\n")}),(0,A.jsx)(m.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return X((function(e){return(0,N.oM)(e,n)}))},children:(0,A.jsx)(fe.rF,{default:!0,size:2*M.iI})},"remove_event")]}))}),(0,A.jsx)(I.Z,{p:M.cd,children:(0,A.jsx)(m.ZP,{beforeIcon:(0,A.jsx)(fe.mm,{size:2*M.iI}),onClick:function(){return X((function(e){return e.concat({})}))},outline:!0,children:"Add event matcher"})})]})}),[V,Hn,zn,et,nt,it]),ot=(0,c.useMemo)((function(){var e=(0,ve.M8)(P,Ne);return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(I.Z,{mb:M.cd,px:M.cd,children:(0,A.jsx)(w.Z,{children:"Settings"})}),(0,A.jsx)(q.Z,{light:!0,short:!0}),(0,A.jsx)(k.Z,{columnFlex:[null,1],rows:[et,nt]}),(0,A.jsxs)(I.Z,{mb:2,mt:5,px:M.cd,children:[(0,A.jsx)(w.Z,{children:"Endpoint"}),(0,A.jsxs)(S.ZP,{muted:!0,children:["Make a ",(0,A.jsx)(S.ZP,{bold:!0,inline:!0,monospace:!0,children:"POST"})," request to the following endpoint:"]}),(0,A.jsx)(I.Z,{mt:M.Mq,children:(0,A.jsx)(y.Z,{copiedText:e,linkText:e,monospace:!0,withCopyIcon:!0})}),(0,A.jsx)(I.Z,{mt:M.Mq,children:(0,A.jsxs)(_.ZP,{alignItems:"center",children:[(0,A.jsx)(I.Z,{mr:1,children:(0,A.jsx)(ae.Z,{checked:Ne,onCheck:function(){return Le(!Ne)}})}),(0,A.jsx)(S.ZP,{muted:!0,children:"Show alternative endpoint to pass token in headers"})]})})]}),Ne&&(0,A.jsxs)(I.Z,{mb:2,mt:5,px:M.cd,children:[(0,A.jsx)(w.Z,{children:"Headers"}),(0,A.jsx)(S.ZP,{muted:!0,children:"You will need to include the following headers in your request to authenticate with the server."}),(0,A.jsx)(I.Z,{mt:M.Mq,children:(0,A.jsx)(y.Z,{copiedText:"Content-Type: application/json\n Authorization: Bearer ".concat(null===P||void 0===P?void 0:P.token,"\n "),withCopyIcon:!0,children:(0,A.jsx)(b.Z,{language:"json",small:!0,source:"\n Content-Type: application/json\n Authorization: Bearer ".concat(null===P||void 0===P?void 0:P.token,"\n ")})})})]}),(0,A.jsxs)(I.Z,{mb:2,mt:5,px:M.cd,children:[(0,A.jsx)(w.Z,{children:"Payload"}),(0,A.jsx)(S.ZP,{muted:!0,children:"You can optionally include runtime variables in your request payload. These runtime variables are accessible from within each pipeline block."}),(0,A.jsx)(I.Z,{mt:M.Mq,children:(0,A.jsx)(y.Z,{copiedText:'{\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n}\n',withCopyIcon:!0,children:(0,A.jsx)(b.Z,{language:"json",small:!0,source:'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\n'})})})]}),(0,A.jsxs)(I.Z,{mb:2,mt:5,px:M.cd,children:[(0,A.jsx)(w.Z,{children:"Sample cURL command"}),(0,A.jsx)(I.Z,{mt:M.Mq,children:(0,A.jsx)(b.Z,{language:"bash",small:!0,source:Ne?"\n curl -X POST ".concat(e," \\\n --header 'Content-Type: application/json' \\\n --header 'Authorization: Bearer ").concat(null===P||void 0===P?void 0:P.token,'\' \\\n --data \'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\'\n '):"\n curl -X POST ".concat(e,' \\\n --header \'Content-Type: application/json\' \\\n --data \'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\'\n')})})]})]})}),[P,Le,nt,et,Ne]),lt=!bn||re.Xm.TIME===bn&&!(J&&Sn||!J&&Sn&&Zn)||re.Xm.EVENT===bn&&(!(null!==V&&void 0!==V&&V.length)||!V.every((function(e){var n=e.event_type,t=e.name;return n&&t}))),ut=(0,c.useMemo)((function(){var e;return(null===d||void 0===d||null===(e=d.blocks)||void 0===e?void 0:e.filter((function(e){var n=e.type;return be.tf.DBT===n})))||[]}),[d]),ct=(0,c.useMemo)((function(){return(0,A.jsxs)(I.Z,{p:M.cd,children:[(0,A.jsxs)(I.Z,{mb:M.HN,children:[(0,A.jsx)(w.Z,{children:"Run settings"}),(0,A.jsxs)(I.Z,{mt:M.Mq,children:[!J&&(0,A.jsxs)(I.Z,{mb:M.Mq,children:[(0,A.jsx)(S.ZP,{children:"Set a timeout for each run of this trigger (optional)"}),(0,A.jsx)(I.Z,{mb:1}),(0,A.jsx)(C.Z,{label:"Timeout (in seconds)",onChange:function(e){return Fe((function(n){return Ae(Ae({},n),{},{timeout:e.target.value})}))},primary:!0,setContentOnMount:!0,type:"number",value:null===ze||void 0===ze?void 0:ze.timeout})]}),(0,A.jsxs)(_.ZP,{alignItems:"center",children:[(0,A.jsx)(I.Z,{mr:2,children:(0,A.jsx)(ae.Z,{checked:de,onCheck:function(e){pe(e),e||Ke((function(e){return Ae(Ae({},e),{},{slaAmount:0})}))}})}),(0,A.jsx)(S.ZP,{default:!0,monospace:!0,children:"Configure trigger SLA"})]}),de&&(0,A.jsx)(k.Z,{columnFlex:[null,1],rows:[[(0,A.jsxs)(_.ZP,{alignItems:"center",children:[(0,A.jsx)(fe.aw,{default:!0,size:1.5*M.iI}),(0,A.jsx)(I.Z,{mr:1}),(0,A.jsx)(S.ZP,{default:!0,children:"SLA"})]},"sla_detail"),(0,A.jsxs)(_.ZP,{children:[(0,A.jsx)(U.Z,{flex:1,children:(0,A.jsx)(C.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),Ke((function(n){return Ae(Ae({},n),{},{slaAmount:e.target.value})}))},placeholder:"Time",value:null===Be||void 0===Be?void 0:Be.slaAmount})}),(0,A.jsx)(U.Z,{flex:1,children:(0,A.jsx)(ce.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),Ke((function(n){return Ae(Ae({},n),{},{slaUnit:e.target.value})}))},placeholder:"Select time unit",small:!0,value:null===Be||void 0===Be?void 0:Be.slaUnit,children:Object.keys(ve.tL).map((function(e){return(0,A.jsx)("option",{value:e,children:"".concat(e,"(s)")},e)}))})})]},"sla_input_detail")]]})]}),(0,A.jsx)(I.Z,{mt:M.Mq,children:(0,A.jsx)(_.ZP,{alignItems:"center",children:(0,A.jsx)(x.Z,{checked:null===ze||void 0===ze?void 0:ze.allow_blocks_to_fail,label:"Keep running pipeline even if blocks fail",onClick:function(){return Fe((function(e){return Ae(Ae({},e),{},{allow_blocks_to_fail:!(null!==ze&&void 0!==ze&&ze.allow_blocks_to_fail)})}))}})})}),re.Xm.TIME===bn&&(0,A.jsx)(I.Z,{mt:M.Mq,children:(0,A.jsx)(_.ZP,{alignItems:"center",children:(0,A.jsx)(x.Z,{checked:null===ze||void 0===ze?void 0:ze.skip_if_previous_running,label:"Skip run if previous run still in progress",onClick:function(){return Fe((function(e){return Ae(Ae({},e),{},{skip_if_previous_running:!(null!==ze&&void 0!==ze&&ze.skip_if_previous_running)})}))}})})})]}),(0,A.jsxs)(I.Z,{mb:M.HN,children:[(0,A.jsx)(w.Z,{children:"Runtime variables"}),(0,Ee.Qr)(mn)&&(0,A.jsxs)(I.Z,{mt:1,children:[(0,A.jsx)(S.ZP,{default:!0,children:"This pipeline has no runtime variables."}),(0,A.jsx)(u(),{as:"/pipelines/".concat(K,"/edit?sideview=variables"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,A.jsx)(R.Z,{primary:!0,children:"Click here"})})," ",(0,A.jsx)(S.ZP,{default:!0,inline:!0,children:"to add variables to this pipeline."})]}),(0,A.jsxs)(I.Z,{mt:M.Mq,children:[(0,A.jsxs)(_.ZP,{alignItems:"center",children:[(0,A.jsx)(I.Z,{mr:2,children:(0,A.jsx)(ae.Z,{checked:$,disabled:(0,Ee.Qr)(mn),onCheck:ee})}),(0,A.jsx)(S.ZP,{monospace:!0,muted:!0,children:"Overwrite global variables"})]}),$&&Ue&&Object.entries(Ue).length>0&&(0,A.jsx)(I.Z,{mt:1,children:(0,A.jsx)(k.Z,{columnFlex:[null,1],columns:[{uuid:"Variable"},{uuid:"Value"}],rows:Object.entries(Ue).reduce((function(e,n){var t=(0,o.Z)(n,2),i=t[0],l=t[1];return Pe.sZ===i?e:e.concat([[(0,A.jsx)(S.ZP,{default:!0,monospace:!0,children:i},"variable_".concat(i)),(0,A.jsx)(C.Z,{borderless:!0,monospace:!0,onChange:function(e){e.preventDefault(),Re((function(n){return Ae(Ae({},n),{},(0,r.Z)({},i,e.target.value))}))},paddingHorizontal:0,placeholder:"Variable value",value:l},"variable_uuid_input_".concat(i))]])}),[])})})]})]}),(null===ut||void 0===ut?void 0:ut.length)>=1&&(0,A.jsx)(I.Z,{mb:M.HN,children:(0,A.jsx)(z,{blocks:ut,updateVariables:Re,variables:Ae(Ae({},Wn),Ue)})})]})}),[ut,de,mn,J,$,K,Ue,Be,bn,Wn,pe,ee,Re,ze]),st=xe.ZP.tags.list().data,at=(0,c.useMemo)((function(){return((null===st||void 0===st?void 0:st.tags)||[]).filter((function(e){var n=e.uuid;return!(null!==_n&&void 0!==_n&&_n.includes(n))}))}),[st,_n]),dt=(0,c.useMemo)((function(){return(0,ve.ri)(J)}),[J]),pt=(0,c.useMemo)((function(){return(0,A.jsx)(ge,{containerRef:H,date:Sn,interactions:pn,pipeline:d,pipelineInteraction:dn,pipelineSchedule:Be,setVariables:function(e){Ke((function(n){var t=Ae({},e((null===n||void 0===n?void 0:n.variables)||{})),i=Ae({},t);return null===pn||void 0===pn||pn.forEach((function(e){Object.entries((null===e||void 0===e?void 0:e.variables)||{}).forEach((function(e){var n=(0,o.Z)(e,2),t=n[0],r=n[1].types;i&&t in i&&(i[t]=(0,Se.M)(i[t],r))}))})),Ge(i),Ae(Ae({},n),{},{variables:t})}))},showSummary:Ie.uuid===on,time:En,triggerTypes:dt,variables:null===Be||void 0===Be?void 0:Be.variables})}),[H,Sn,pn,d,dn,Be,on,Ke,Ge,En,dt]),ft=(0,c.useMemo)((function(){return re.fq.ACTIVE===(null===Be||void 0===Be?void 0:Be.status)}),[Be]),ht=E?null===E||void 0===E?void 0:E((function(e){return W.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(null===d||void 0===d?void 0:d.uuid,"/triggers/").concat(e))})):[null,{isLoading:!1}],vt=(0,o.Z)(ht,2),mt=vt[0],jt=vt[1].isLoading,gt=(0,c.useCallback)((function(){null===mt||void 0===mt||mt({pipeline_schedule:Ae(Ae({},Be),{},{variables:Je||(null===Be||void 0===Be?void 0:Be.variables)})})}),[mt,Je,Be]),xt=(0,c.useMemo)((function(){var e,n;return Y?(e=(0,A.jsx)(m.ZP,{linkProps:{as:"/pipelines/".concat(K,"/triggers/").concat(Y),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel and go back"}),n=(0,A.jsx)(m.ZP,{onClick:Xn,primary:!0,children:"Save trigger"})):we.uuid===on?(e=(0,A.jsx)(m.ZP,{onClick:function(){return null===s||void 0===s?void 0:s()},secondary:!0,children:"Cancel and go back"}),n=(0,A.jsx)(m.ZP,{afterIcon:(0,A.jsx)(fe.Kw,{}),onClick:function(){return ln(_e.uuid)},primary:!0,children:"Next: Customize"})):_e.uuid===on?(e=(0,A.jsx)(m.ZP,{beforeIcon:(0,A.jsx)(fe.Hd,{}),onClick:function(){return ln(we.uuid)},secondary:!0,children:"Back: Settings"}),n=(0,A.jsx)(m.ZP,{afterIcon:(0,A.jsx)(fe.Kw,{}),onClick:function(){return ln(Ie.uuid)},primary:!0,children:"Next: Review"})):Ie.uuid===on&&(e=(0,A.jsx)(m.ZP,{beforeIcon:(0,A.jsx)(fe.Hd,{}),onClick:function(){return ln(_e.uuid)},secondary:!0,children:"Back: Customize"}),n=(0,A.jsxs)(_.ZP,{alignItems:"center",children:[(0,A.jsx)(m.ZP,{beforeIcon:(0,A.jsx)(fe.Bf,{}),loading:jt,onClick:function(){return gt()},primary:!0,children:Y?"Save trigger":"Create trigger"}),!Y&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(I.Z,{mr:M.cd}),(0,A.jsx)(ae.Z,{checked:ft,compact:!0,onCheck:function(e){return Ke((function(n){return Ae(Ae({},n),{},{status:e(ft)?re.fq.ACTIVE:re.fq.INACTIVE})}))}}),(0,A.jsx)(I.Z,{mr:1}),(0,A.jsx)(S.ZP,{default:ft,muted:!ft,small:!0,children:"Set trigger to be active immediately after creating"})]})]})),(0,A.jsx)(I.Z,{p:M.cd,children:(0,A.jsxs)(_.ZP,{alignItems:"center",children:[e,e&&n&&(0,A.jsx)(I.Z,{mr:M.cd}),n]})})}),[gt,jt,ft,s,Xn,Y,K,on,ln]),Zt=(0,c.useMemo)((function(){var e,n,t,i,r,o,l;return"undefined"===typeof(null===d||void 0===d||null===(e=d.settings)||void 0===e||null===(n=e.triggers)||void 0===n?void 0:n.save_in_code_automatically)?null===L||void 0===L||null===(t=L.pipelines)||void 0===t||null===(i=t.settings)||void 0===i||null===(r=i.triggers)||void 0===r?void 0:r.save_in_code_automatically:null===d||void 0===d||null===(o=d.settings)||void 0===o||null===(l=o.triggers)||void 0===l?void 0:l.save_in_code_automatically}),[d,L]);return(0,A.jsx)(A.Fragment,{children:(0,A.jsx)(ie.Z,{after:!cn&&ct,afterHidden:cn,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(K,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return null===P||void 0===P?void 0:P.name},linkProps:{as:"/pipelines/".concat(K,"/triggers/").concat(Y),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],errors:t,pageName:Oe.M.TRIGGERS,pipeline:d,setErrors:O,subheader:cn||hn?(0,A.jsx)(I.Z,{px:M.cd,children:(0,A.jsx)(j.Z,{noPadding:!0,onClickTab:function(e){var n=e.uuid;return ln(n)},regularSizeText:!0,selectedTabUUID:on,tabs:ke,underlineColor:(0,D.qn)(be.tf.DATA_LOADER).accent,underlineStyle:!0})}):(0,A.jsxs)(_.ZP,{alignItems:"center",children:[(0,A.jsx)(m.ZP,{disabled:lt,loading:Rn,onClick:Xn,outline:!0,primary:!0,children:"Save changes"}),(0,A.jsx)(I.Z,{mr:M.cd}),(0,A.jsx)(m.ZP,{linkProps:{as:"/pipelines/".concat(K,"/triggers/").concat(Y),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel"}),Zt&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(I.Z,{mr:M.cd}),(0,A.jsxs)(S.ZP,{default:!0,xsmall:!0,children:["This trigger will automatically be persisted in code.",(0,A.jsx)("br",{}),"To change this behavior, update the ",(0,A.jsx)(u(),{as:"/pipelines/".concat(K,"/settings"),href:"/pipelines/[pipeline]/settings",passHref:!0,children:(0,A.jsx)(R.Z,{openNewWindow:!0,xsmall:!0,children:"pipeline\u2019s settings"})})," or ",(0,A.jsx)(u(),{as:"/settings/workspace/preferences",href:"/settings/workspace/preferences",passHref:!0,children:(0,A.jsx)(R.Z,{openNewWindow:!0,xsmall:!0,children:"project settings"})}),"."]})]})]}),subheaderNoPadding:cn||hn,title:function(){return null!==P&&void 0!==P&&P.name?"Edit ".concat(null===P||void 0===P?void 0:P.name):"New trigger"},uuid:"triggers/edit",children:(0,A.jsxs)("div",{ref:H,children:[(cn||hn)&&(0,A.jsx)(q.Z,{light:!0}),(cn||hn)&&(_e.uuid===on||Ie.uuid===on)&&pt,(!cn||we.uuid===on)&&(!hn||we.uuid===on)&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(I.Z,{p:M.cd,children:[(0,A.jsxs)(I.Z,{mb:2,children:[(0,A.jsx)(w.Z,{children:"Trigger type"}),(0,A.jsx)(S.ZP,{muted:!0,children:"How would you like this pipeline to be triggered?"})]}),(0,A.jsx)(_.ZP,{children:dt.reduce((function(e,n){var t=n.label,i=n.description,r=n.uuid,o=bn===r,l=bn&&!o;return!cn||null!==vn&&void 0!==vn&&vn[r]?e.concat((0,A.jsx)(m.ZP,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){re.Xm.EVENT!==r||null!==V&&void 0!==V&&V.length||X([{}]),Ke((function(e){return Ae(Ae({},e),{},{schedule_type:r})}))},children:(0,A.jsx)(ye.U,{selected:o,children:(0,A.jsxs)(_.ZP,{alignItems:"center",children:[(0,A.jsx)(U.Z,{children:(0,A.jsx)("input",{checked:o,type:"radio"})}),(0,A.jsx)(I.Z,{mr:M.cd}),(0,A.jsxs)(U.Z,{alignItems:"flex-start",flexDirection:"column",children:[(0,A.jsx)(w.Z,{bold:!0,default:!o&&!l,level:5,muted:!o&&l,children:t()}),(0,A.jsx)(S.ZP,{default:!o&&!l,leftAligned:!0,muted:l,children:i()})]})]})})},r)):e}),[])})]}),(0,A.jsxs)(I.Z,{mt:M.HN,children:[re.Xm.TIME===bn&&tt,re.Xm.EVENT===bn&&rt,re.Xm.API===bn&&ot]}),!cn&&(0,A.jsxs)(I.Z,{mt:M.HN,px:M.cd,children:[(0,A.jsxs)(I.Z,{mb:2,children:[(0,A.jsx)(w.Z,{children:"Tags"}),(0,A.jsx)(S.ZP,{muted:!0,children:"Add or remove tags from this trigger."})]}),(0,A.jsx)(se.Z,{removeTag:function(e){Ke((function(n){return Ae(Ae({},n),{},{tags:null===_n||void 0===_n?void 0:_n.filter((function(n){return n!==e.uuid}))})}))},selectTag:function(e){Ke((function(n){return Ae(Ae({},n),{},{tags:(0,N.$C)(e.uuid,_n,(function(n){return n===e.uuid}))})}))},selectedTags:null===_n||void 0===_n?void 0:_n.map((function(e){return{uuid:e}})),tags:at,uuid:"TagsAutocompleteInputField-trigger-".concat(Y)})]})]}),(cn||hn)&&xt]})})})}},55072:function(e,n,t){t.d(n,{Et:function(){return p},Q:function(){return d}});t(82684);var i=t(71180),r=t(55485),o=t(38276),l=t(31748),u=t(72473),c=t(79633),s=t(70515),a=t(28598),d=30,p=9;n.ZP=function(e){var n=e.page,t=e.maxPages,d=e.onUpdate,p=e.totalPages,f=[],h=t;if(h>p)f=Array.from({length:p},(function(e,n){return n}));else{var v=Math.floor(h/2),m=n-v;n+v>=p?(m=p-h+2,h-=2):n-v<=0?(m=0,h-=2):(h-=4,m=n-Math.floor(h/2)),f=Array.from({length:h},(function(e,n){return n+m}))}return(0,a.jsx)(a.Fragment,{children:p>0&&(0,a.jsxs)(r.ZP,{alignItems:"center",children:[(0,a.jsx)(i.ZP,{disabled:0===n,onClick:function(){return d(n-1)},children:(0,a.jsx)(u.Hd,{size:1.5*s.iI,stroke:l.Av})}),!f.includes(0)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.Z,{ml:1,children:(0,a.jsx)(i.ZP,{borderLess:!0,noBackground:!0,onClick:function(){return d(0)},children:1})},0),!f.includes(1)&&(0,a.jsx)(o.Z,{ml:1,children:(0,a.jsx)(i.ZP,{noBackground:!0,noPadding:!0,notClickable:!0,children:"..."})},0)]}),f.map((function(e){return(0,a.jsx)(o.Z,{ml:1,children:(0,a.jsx)(i.ZP,{backgroundColor:e===n&&c.a$,borderLess:!0,noBackground:!0,notClickable:e===n,onClick:function(){e!==n&&d(e)},children:e+1})},e)})),!f.includes(p-1)&&(0,a.jsxs)(a.Fragment,{children:[!f.includes(p-2)&&(0,a.jsx)(o.Z,{ml:1,children:(0,a.jsx)(i.ZP,{noBackground:!0,noPadding:!0,notClickable:!0,children:"..."})},0),(0,a.jsx)(o.Z,{ml:1,children:(0,a.jsx)(i.ZP,{borderLess:!0,noBackground:!0,onClick:function(){return d(p-1)},children:p})},p-1)]}),(0,a.jsx)(o.Z,{ml:1}),(0,a.jsx)(i.ZP,{disabled:n===p-1,onClick:function(){return d(n+1)},children:(0,a.jsx)(u.Kw,{size:1.5*s.iI,stroke:l.Av})})]})})}},97196:function(e,n,t){t.d(n,{S5:function(){return o},_P:function(){return l}});var i,r=t(86735);!function(e){e.AWS="aws_event"}(i||(i={}));var o=[{label:function(){return"AWS"},uuid:i.AWS}],l=(0,r.HK)(o,(function(e){return e.uuid}))},83784:function(e,n,t){t.d(n,{C:function(){return i}});var i="global"},14805:function(e,n,t){var i=t(82394),r=t(44495),o=t(55485),l=t(44085),u=t(38276),c=t(30160),s=t(88785),a=t(70515),d=t(86735),p=t(28598);function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function h(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.localTime,t=e.selectedDate,i=e.selectedTime,f=e.setSelectedDate,v=e.setSelectedTime,m=e.topPosition;return(0,p.jsxs)(s.J,{absolute:!0,topPosition:m,children:[(0,p.jsx)(r.ZP,{onChange:f,value:t}),(0,p.jsx)(u.Z,{mb:2}),(0,p.jsxs)(o.ZP,{alignItems:"center",children:[(0,p.jsxs)(c.ZP,{default:!0,large:!0,children:["Time (",n?"Local":"UTC","):"]}),(0,p.jsx)(u.Z,{pr:2}),(0,p.jsx)(l.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),v((function(n){return h(h({},n),{},{hour:e.target.value})}))},paddingRight:5*a.iI,placeholder:"HH",value:null===i||void 0===i?void 0:i.hour,children:(0,d.m5)(24,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,p.jsx)("option",{value:e,children:e},"hour_".concat(e))}))}),(0,p.jsx)(u.Z,{px:1,children:(0,p.jsx)(c.ZP,{bold:!0,large:!0,children:":"})}),(0,p.jsx)(l.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),v((function(n){return h(h({},n),{},{minute:e.target.value})}))},paddingRight:5*a.iI,placeholder:"MM",value:null===i||void 0===i?void 0:i.minute,children:(0,d.m5)(60,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,p.jsx)("option",{value:e,children:e},"minute_".concat(e))}))})]})]})}},79500:function(e,n,t){t.d(n,{a:function(){return o}});var i=t(16488),r=t(3917);function o(e,n){var t,o;if(null!==n&&void 0!==n&&n.localTimezone)t=(0,r.n$)(e),o={hour:(0,r.lJ)(String(t.getHours())),minute:(0,r.lJ)(String(t.getMinutes()))};else{var l=e.split(" ")[1];t=(0,i.eI)(e),o={hour:l.substring(0,2),minute:l.substring(3,5)}}return{date:t,time:o}}},9134:function(e,n,t){var i=t(82684),r=t(21124),o=t(68432),l=t(38626),u=t(65292),c=t(44897),s=t(95363),a=t(70515),d=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,p=e.showLineNumbers,f=e.small,h=e.source,v=e.wrapLines,m=(0,i.useContext)(l.ThemeContext);function j(e){var i=e.value;return(0,d.jsx)(o.Z,{customStyle:{backgroundColor:(m.background||c.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:s.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,maxWidth:t,paddingBottom:2*a.iI,paddingTop:2*a.iI},language:n,lineNumberStyle:{color:(m.content||c.Z.content).muted},showLineNumbers:p,style:u._4,useInlineStyles:!0,wrapLines:v,children:i})}return(0,d.jsx)(r.D,{components:{code:function(e){var n=e.children;return(0,d.jsx)(j,{value:n})}},children:h})}},39457:function(e,n,t){var i,r=t(82394),o=(t(82684),t(64866)),l=t(21764),u=t(55485),c=t(48670),s=t(38276),a=t(30160),d=t(12468),p=t(72473),f=t(70515),h=t(28598);function v(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function m(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?v(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}!function(e){e.LEFT="left",e.RIGHT="right"}(i||(i={})),n.Z=function(e){var n,t=e.children,r=e.copiedText,v=e.iconPosition,j=void 0===v?i.LEFT:v,g=e.inverted,x=e.linkProps,Z=e.linkText,b=e.monospace,y=e.muted,P=e.small,O=e.toastMessage,_=e.withCopyIcon;return t?n=(0,h.jsx)("span",{children:t}):_&&(n=(0,h.jsx)(c.Z,m(m({href:"#",inline:!0,muted:y,preventDefault:!0,sameColorAsText:!0,small:P},x),{},{children:(0,h.jsxs)(u.ZP,{alignItems:"center",children:[j===i.LEFT&&(0,h.jsx)(s.Z,{mr:Z?1:0,children:(0,h.jsx)(u.ZP,{alignItems:"center",children:(0,h.jsx)(p.CK,{inverted:g,muted:y,size:2*f.iI})})}),Z&&(0,h.jsx)(a.ZP,{inverted:g,monospace:b,muted:y,small:P,children:Z}),j===i.RIGHT&&(0,h.jsx)(s.Z,{ml:Z?1:0,children:(0,h.jsx)(u.ZP,{alignItems:"center",children:(0,h.jsx)(p.CK,{inverted:g,muted:y})})})]})}))),(0,h.jsx)(d.Z,{block:!0,label:"Copy",size:null,widthFitContent:!0,children:(0,h.jsx)(o.CopyToClipboard,{onCopy:function(){return l.Am.success(O||"Successfully copied to clipboard.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:r})},text:r,children:n})})}},22286:function(e,n,t){t.d(n,{M:function(){return a}});var i=t(82394),r=t(75582),o=t(54193),l=t(81728),u=t(42122);function c(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 s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e,n){var t,c;if(!n||null===n||void 0===n||!n.length)return e;if(null!==n&&void 0!==n&&n.includes(o.zj.LIST))return((0,u.Kn)(e)?Object.keys(e||{}):[e]).map((function(e){return a(e,null===n||void 0===n?void 0:n.filter((function(e){return o.zj.LIST!==e})))}));if(null!==n&&void 0!==n&&n.includes(o.zj.DICTIONARY)){var d=(0,u.Kn)(e)?e:(0,l.Pb)(e)?JSON.parse(e):e;if((0,u.Kn)(d))return Object.entries(d).reduce((function(e,t){var l=(0,r.Z)(t,2),u=l[0],c=l[1];return s(s({},e),{},(0,i.Z)({},u,a(c,null===n||void 0===n?void 0:n.filter((function(e){return o.zj.DICTIONARY!==e})))))}),{})}if(null!==n&&void 0!==n&&n.includes(o.zj.BOOLEAN)){var p,f;if("boolean"===typeof e)return e;if("true"===(null===(p=String(e))||void 0===p?void 0:p.toLowerCase()))return!0;if("false"===(null===(f=String(e))||void 0===f?void 0:f.toLowerCase()))return!1}return null!==n&&void 0!==n&&null!==(t=n.includes)&&void 0!==t&&t.call(n,o.zj.FLOAT)&&(0,l.HW)(e)?parseFloat(e):null!==n&&void 0!==n&&null!==(c=n.includes)&&void 0!==c&&c.call(n,o.zj.INTEGER)&&(0,l.HW)(e)?parseInt(e):e}}}]);
|