mage-ai 0.8.37__py3-none-any.whl → 0.8.39__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/logging.py +2 -2
- mage_ai/api/resources/PipelineRunResource.py +6 -3
- mage_ai/data_integrations/sources/constants.py +1 -0
- mage_ai/data_preparation/models/block/dbt/__init__.py +20 -0
- mage_ai/data_preparation/models/block/dbt/utils/__init__.py +4 -1
- mage_ai/data_preparation/models/pipeline.py +10 -1
- mage_ai/io/base.py +2 -2
- mage_ai/io/constants.py +3 -0
- mage_ai/io/export_utils.py +14 -1
- mage_ai/io/mssql.py +5 -2
- mage_ai/io/mysql.py +7 -3
- mage_ai/io/postgres.py +64 -21
- mage_ai/io/sql.py +35 -6
- mage_ai/io/trino.py +7 -3
- mage_ai/orchestration/pipeline_scheduler.py +37 -27
- mage_ai/server/active_kernel.py +6 -3
- mage_ai/server/api/clusters.py +4 -1
- mage_ai/server/api/integration_sources.py +5 -2
- mage_ai/server/client/mage.py +2 -2
- mage_ai/server/constants.py +1 -1
- mage_ai/server/data/base.py +2 -2
- mage_ai/server/data/models.py +2 -2
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/404.html.html +2 -2
- mage_ai/server/frontend_dist/_next/static/chunks/{2626-905774aafeb2c600.js → 2626-e7fa4f83f8214c97.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4178-9103014b7dae3c49.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{4538-8a3c3e47be976ede.js → 4538-347283088b83c6bf.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5141-ddf4ba0a362d6f34.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{5477-793cd2120261d023.js → 5477-b439f211b6146a11.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{5872-103815a4a043489b.js → 5872-1767c45ee6690ae5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{5896-f84e336fb8877027.js → 5896-10a676bcc86978cc.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{7400-365cb7888b6db7d9.js → 7400-f4db9b5d41f67f75.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{9386-fb899ca8ecc2a350.js → 9386-d4cc11bab74eec8d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{9832-c8b8970bb522f302.js → 9832-f97919376d52e3bf.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{manage-9e5f315db570ac77.js → manage-3046bc53d24917c7.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipeline-runs-79e10a783afec3df.js → pipeline-runs-e64ba4e8b2bfe73c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-017f6a2de38f8658.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{syncs-1767a2f57f887ef7.js → syncs-e1271453ed0c8d6e.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipelines-52c3ee3817e5554b.js → pipelines-7446a70bdd8381a5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{preferences-a23b61bab04a16f3.js → preferences-997acba85f777259.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{sync-data-de28e502102defde.js → sync-data-8c903140c99e487c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-6c0ea500b3bc6b61.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{triggers-8a2169d30b643ae7.js → triggers-783b9526167f1249.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/{23nXkA2GRjJCZDwY3kuKd → ngCg1gM6urg83y2nV5KHK}/_buildManifest.js +1 -1
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage.html +2 -2
- mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +2 -2
- mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +2 -2
- mage_ai/server/frontend_dist/terminal.html +2 -2
- mage_ai/server/frontend_dist/test.html +2 -2
- mage_ai/server/frontend_dist/triggers.html +2 -2
- mage_ai/server/logger.py +16 -0
- mage_ai/server/scheduler_manager.py +8 -4
- mage_ai/server/server.py +7 -14
- mage_ai/server/subscriber.py +6 -3
- mage_ai/server/terminal_server.py +65 -0
- mage_ai/server/utils/frontend_renderer.py +3 -2
- mage_ai/server/websocket_server.py +4 -1
- mage_ai/settings/__init__.py +2 -0
- mage_ai/shared/logger.py +4 -0
- {mage_ai-0.8.37.dist-info → mage_ai-0.8.39.dist-info}/METADATA +1 -1
- {mage_ai-0.8.37.dist-info → mage_ai-0.8.39.dist-info}/RECORD +87 -85
- mage_ai/server/frontend_dist/_next/static/chunks/4178-e17f37d21253b832.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5141-2ae9eae00ec2cdfa.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-6a52671f1853e1a5.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-9c21edae8f1b6737.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{23nXkA2GRjJCZDwY3kuKd → ngCg1gM6urg83y2nV5KHK}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist/_next/static/{23nXkA2GRjJCZDwY3kuKd → ngCg1gM6urg83y2nV5KHK}/_ssgManifest.js +0 -0
- {mage_ai-0.8.37.dist-info → mage_ai-0.8.39.dist-info}/LICENSE +0 -0
- {mage_ai-0.8.37.dist-info → mage_ai-0.8.39.dist-info}/WHEEL +0 -0
- {mage_ai-0.8.37.dist-info → mage_ai-0.8.39.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.8.37.dist-info → mage_ai-0.8.39.dist-info}/top_level.txt +0 -0
mage_ai/server/constants.py
CHANGED
mage_ai/server/data/base.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from mage_ai.shared.parsers import encode_complex
|
|
2
|
+
from mage_ai.server.logger import Logger
|
|
2
3
|
import json
|
|
3
|
-
import logging
|
|
4
4
|
import os
|
|
5
5
|
import os.path
|
|
6
6
|
import pandas as pd
|
|
@@ -9,7 +9,7 @@ import simplejson
|
|
|
9
9
|
# This is equivalent to ./files
|
|
10
10
|
DATA_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), 'files'))
|
|
11
11
|
|
|
12
|
-
logger =
|
|
12
|
+
logger = Logger().new_server_logger(__name__)
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
class Model:
|
mage_ai/server/data/models.py
CHANGED
|
@@ -3,11 +3,11 @@ from mage_ai.server.client.mage import Mage
|
|
|
3
3
|
from mage_ai.server.data.base import Model
|
|
4
4
|
from mage_ai.shared.constants import SAMPLE_SIZE
|
|
5
5
|
from mage_ai.shared.hash import merge_dict
|
|
6
|
-
import
|
|
6
|
+
from mage_ai.server.logger import Logger
|
|
7
7
|
import os
|
|
8
8
|
import os.path
|
|
9
9
|
|
|
10
|
-
logger =
|
|
10
|
+
logger = Logger().new_server_logger(__name__)
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
# right now, we are writing the models to local files to reduce dependencies
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=0" name="viewport"/><title>404: This page could not be found</title><meta name="next-head-count" content="3"/><link href="/favicon.ico" rel="icon"/><link rel="preload" href="/_next/static/css/d1e8e64d0b07af2f.css" as="style"/><link rel="stylesheet" href="/_next/static/css/d1e8e64d0b07af2f.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/_next/static/chunks/webpack-bc5e4eb2c1ff587c.js" defer=""></script><script src="/_next/static/chunks/framework-7c365855dab1bf41.js" defer=""></script><script src="/_next/static/chunks/main-bb0dd5375146d7fd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-7e791bee1e32adec.js" defer=""></script><script src="/_next/static/chunks/pages/_error-235304e5badb19eb.js" defer=""></script><script src="/_next/static/
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=0" name="viewport"/><title>404: This page could not be found</title><meta name="next-head-count" content="3"/><link href="/favicon.ico" rel="icon"/><link rel="preload" href="/_next/static/css/d1e8e64d0b07af2f.css" as="style"/><link rel="stylesheet" href="/_next/static/css/d1e8e64d0b07af2f.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/_next/static/chunks/webpack-bc5e4eb2c1ff587c.js" defer=""></script><script src="/_next/static/chunks/framework-7c365855dab1bf41.js" defer=""></script><script src="/_next/static/chunks/main-bb0dd5375146d7fd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-7e791bee1e32adec.js" defer=""></script><script src="/_next/static/chunks/pages/_error-235304e5badb19eb.js" defer=""></script><script src="/_next/static/ngCg1gM6urg83y2nV5KHK/_buildManifest.js" defer=""></script><script src="/_next/static/ngCg1gM6urg83y2nV5KHK/_ssgManifest.js" defer=""></script><script src="/_next/static/ngCg1gM6urg83y2nV5KHK/_middlewareManifest.js" defer=""></script><style data-styled="" data-styled-version="5.3.6">html{-webkit-box-sizing:border-box;box-sizing:border-box;-ms-overflow-style:scrollbar;}/*!sc*/
|
|
2
2
|
*,*::before,*::after{-webkit-box-sizing:inherit;box-sizing:inherit;}/*!sc*/
|
|
3
3
|
data-styled.g4[id="sc-global-czSCUT1"]{content:"sc-global-czSCUT1,"}/*!sc*/
|
|
4
4
|
.kOVcuR .Toastify__toast-container{margin-top:24px;padding:0 !important;width:500px !important;}/*!sc*/
|
|
@@ -19,4 +19,4 @@ data-styled.g5[id="ToastWrapper-sc-1a33ph1-0"]{content:"kOVcuR,"}/*!sc*/
|
|
|
19
19
|
.next-error-h1 {
|
|
20
20
|
border-right: 1px solid rgba(255, 255, 255, .3);
|
|
21
21
|
}
|
|
22
|
-
}</style><h1 class="next-error-h1" style="display:inline-block;margin:0;margin-right:20px;padding:10px 23px 10px 0;font-size:24px;font-weight:500;vertical-align:top">404<!-- --></h1><div style="display:inline-block;text-align:left;line-height:49px;height:49px;vertical-align:middle"><h2 style="font-size:14px;font-weight:normal;line-height:inherit;margin:0;padding:0">This page could not be found<!-- -->.<!-- --></h2></div></div></div><div></div><div></div><div class="ToastWrapper-sc-1a33ph1-0 kOVcuR"><div class="Toastify"></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404},"currentTheme":{"accent":{"alert":"#F6540B","blue":"#4877FF","blueLight":"rgba(72, 119, 255, 0.5)","contentDefaultTransparent":"rgba(174, 174, 174, 0.5)","cyan":"#65E3FF","cyanTransparent":"rgba(101, 227, 255, 0.12)","dbt":"#fc6949","dbtLight":"rgba(252, 105, 73, 0.5)","info":"#00ABFF","infoTransparent":"rgba(0, 171, 255, 0.5)","negative":"#FF1E59","negativeTransparent":"rgba(255, 30, 89, 0.3)","pink":"#FF4FF8","pinkLight":"#FFB9FC","positive":"#00A81A","primaryTransparent":"rgba(155, 108, 167, 0.5)","purple":"#7D55EC","purpleLight":"rgba(125, 85, 236, 0.5)","teal":"#00B4CC","tealLight":"rgba(0, 180, 204, 0.5)","warning":"#DD9900","warningTransparent":"rgba(221, 153, 0, 0.5)","yellow":"#FFCC19","yellowLight":"rgba(255, 204, 25, 0.5)"},"background":{"chartBlock":"#2E3036","codeArea":"#1E1F24","codeTextarea":"#000000","content":"#1B1C20","danger":"#FFD0DB","dark":"#B1B8C3","header":"#1B1B1B","menu":"#0F4CFF","muted":"#F9FAFC","navigation":"#EDEDED","output":"#2E3036","page":"#1E1F24","panel":"#232429","popup":"#27292E","row":"#2C2C2C","row2":"#51535C","scrollbarThumb":"rgba(100, 100, 100, 0.5)","scrollbarThumbHover":"rgba(255, 255, 255, 0.3)","scrollbarTrack":"#2E3036","success":"#8ADE00","table":"#292A2F"},"borders":{"button":"#454850","contrast":"#FFFFFF","danger":"#FF144D","dark":"#000000","info":"#FFCC19","light":"#2F3034","medium":"#1C1C1C","medium2":"#141414","success":"#2FCB52"},"brand":{"earth100":"#C6EEDB","earth200":"#9DDFBF","earth300":"#6BBF96","earth400":"#37A46F","earth400Transparent":"rgba(55, 164, 111, 0.4)","earth500":"#00954C","energy100":"#FFF4BA","energy200":"#FFED92","energy300":"#FFE662","energy400":"#FFDA19","energy400Transparent":"rgba(255, 218, 25, 0.04)","energy500":"#F6C000","fire100":"#FFD7E0","fire200":"#FFA3B9","fire300":"#FF547D","fire400":"#FF144D","fire400Transparent":"rgba(255, 20, 77, 0.4)","fire500":"#EB0032","stone100":"#F3E6D7","stone200":"#E3D4C2","stone400":"#BFA78B","stone500":"#AF8859","water100":"#BDCEFF","water200":"#81A1FF","water300":"#517DFF","water400":"#2A60FE","water400Transparent":"rgba(42, 96, 254, 0.4)","water500":"#0F4CFF","wind100":"#EEEAFF","wind200":"#CCC1F4","wind300":"#A698DD","wind400":"#6B50D7","wind400SuperTransparent":"rgba(107, 80, 215, 0.12)","wind400Transparent":"rgba(107, 80, 215, 0.4)","wind500":"#4E32BC"},"chart":{"backgroundPrimary":"#7D55EC","backgroundSecondary":"#FF144D","backgroundTertiary":"#86E2FF","button1":"#4877FF","button2":"#FFCC19","button3":"#8ADE00","button4":"#FF4FF8","button5":"#B98D95","lines":"#9B6CA7","primary":"#6B50D7","secondary":"#FF144D","tertiary":"#2A60FE"},"content":{"active":"#FFFFFF","default":"#AEAEAE","disabled":"rgba(255, 255, 255, 0.3)","inverted":"#2C2C2C","muted":"#787A85"},"elevation":{"visualizationAccent":"#996CFF","visualizationAccentAlt":"#C1ACF7"},"feature":{"active":"rgba(250, 248, 254, 0.14)","disabled":"rgba(201, 206, 218, 0.12)"},"icons":{"neutral":"#787878"},"interactive":{"activeBorder":"#060606","checked":"#060606","dangerBorder":"#FF144D","defaultBackground":"#36383F","defaultBorder":"#2E3036","disabledBorder":"#B1B8C3","focusBackground":"#B1B8C3","focusBorder":"#86E2FF","hoverBackground":"#4E4E4E","hoverBorder":"#B9BFCA","hoverOverlay":"rgba(255, 255, 255, 0.1)","linkPrimary":"#1752FF","linkPrimaryHover":"#4877FF","linkPrimaryLight":"#5982ff","linkSecondary":"#6B50D7","linkSecondaryDisabled":"#C4B9EF","linkText":"#6AA1E0","rowHoverBackground":"rgba(0, 0, 0, 0.1)","transparent":"rgba(255, 255, 255, 0)"},"loader":{"color":"#EB0032","colorInverted":"#8ADE00"},"logo":{"color":"#FFFFFF"},"monotone":{"black":"#060606","blackTransparent":"rgba(0, 0, 0, 0.6)","gray":"#B1B8C3","grey100":"#F2F2F2","grey200":"#D5D7DC","grey300":"#B4B8C0","grey400":"#70747C","grey500":"#51535C","purple":"#6B50D7","white":"#FFFFFF"},"neutral":{"n100":"#E7E8EA","n200":"#D8DADE","n300":"#CBCCD0","n400":"#BCBEC4","n500":"#AEB0B6"},"progress":{"negative":"#FF144D","positive":"#6B50D7"},"shadow":{"base":"12px 40px 120px rgba(106, 117, 139, 0.4)","frame":"0px 10px 40px rgba(0, 0, 0, 0.26)","menu":"4px 10px 20px rgba(6, 6, 6, 0.12)","popup":"10px 20px 40px rgba(0, 0, 0, 0.2)","small":"0px, 4px, rgba(0, 0, 0, 0.25)","window":"0px 10px 60px rgba(0, 0, 0, 0.7)"},"status":{"negative":"#FF144D","positive":"#24B400"},"text":{"fileBrowser":"#787A85"}}},"page":"/_error","query":{},"buildId":"
|
|
22
|
+
}</style><h1 class="next-error-h1" style="display:inline-block;margin:0;margin-right:20px;padding:10px 23px 10px 0;font-size:24px;font-weight:500;vertical-align:top">404<!-- --></h1><div style="display:inline-block;text-align:left;line-height:49px;height:49px;vertical-align:middle"><h2 style="font-size:14px;font-weight:normal;line-height:inherit;margin:0;padding:0">This page could not be found<!-- -->.<!-- --></h2></div></div></div><div></div><div></div><div class="ToastWrapper-sc-1a33ph1-0 kOVcuR"><div class="Toastify"></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404},"currentTheme":{"accent":{"alert":"#F6540B","blue":"#4877FF","blueLight":"rgba(72, 119, 255, 0.5)","contentDefaultTransparent":"rgba(174, 174, 174, 0.5)","cyan":"#65E3FF","cyanTransparent":"rgba(101, 227, 255, 0.12)","dbt":"#fc6949","dbtLight":"rgba(252, 105, 73, 0.5)","info":"#00ABFF","infoTransparent":"rgba(0, 171, 255, 0.5)","negative":"#FF1E59","negativeTransparent":"rgba(255, 30, 89, 0.3)","pink":"#FF4FF8","pinkLight":"#FFB9FC","positive":"#00A81A","primaryTransparent":"rgba(155, 108, 167, 0.5)","purple":"#7D55EC","purpleLight":"rgba(125, 85, 236, 0.5)","teal":"#00B4CC","tealLight":"rgba(0, 180, 204, 0.5)","warning":"#DD9900","warningTransparent":"rgba(221, 153, 0, 0.5)","yellow":"#FFCC19","yellowLight":"rgba(255, 204, 25, 0.5)"},"background":{"chartBlock":"#2E3036","codeArea":"#1E1F24","codeTextarea":"#000000","content":"#1B1C20","danger":"#FFD0DB","dark":"#B1B8C3","header":"#1B1B1B","menu":"#0F4CFF","muted":"#F9FAFC","navigation":"#EDEDED","output":"#2E3036","page":"#1E1F24","panel":"#232429","popup":"#27292E","row":"#2C2C2C","row2":"#51535C","scrollbarThumb":"rgba(100, 100, 100, 0.5)","scrollbarThumbHover":"rgba(255, 255, 255, 0.3)","scrollbarTrack":"#2E3036","success":"#8ADE00","table":"#292A2F"},"borders":{"button":"#454850","contrast":"#FFFFFF","danger":"#FF144D","dark":"#000000","info":"#FFCC19","light":"#2F3034","medium":"#1C1C1C","medium2":"#141414","success":"#2FCB52"},"brand":{"earth100":"#C6EEDB","earth200":"#9DDFBF","earth300":"#6BBF96","earth400":"#37A46F","earth400Transparent":"rgba(55, 164, 111, 0.4)","earth500":"#00954C","energy100":"#FFF4BA","energy200":"#FFED92","energy300":"#FFE662","energy400":"#FFDA19","energy400Transparent":"rgba(255, 218, 25, 0.04)","energy500":"#F6C000","fire100":"#FFD7E0","fire200":"#FFA3B9","fire300":"#FF547D","fire400":"#FF144D","fire400Transparent":"rgba(255, 20, 77, 0.4)","fire500":"#EB0032","stone100":"#F3E6D7","stone200":"#E3D4C2","stone400":"#BFA78B","stone500":"#AF8859","water100":"#BDCEFF","water200":"#81A1FF","water300":"#517DFF","water400":"#2A60FE","water400Transparent":"rgba(42, 96, 254, 0.4)","water500":"#0F4CFF","wind100":"#EEEAFF","wind200":"#CCC1F4","wind300":"#A698DD","wind400":"#6B50D7","wind400SuperTransparent":"rgba(107, 80, 215, 0.12)","wind400Transparent":"rgba(107, 80, 215, 0.4)","wind500":"#4E32BC"},"chart":{"backgroundPrimary":"#7D55EC","backgroundSecondary":"#FF144D","backgroundTertiary":"#86E2FF","button1":"#4877FF","button2":"#FFCC19","button3":"#8ADE00","button4":"#FF4FF8","button5":"#B98D95","lines":"#9B6CA7","primary":"#6B50D7","secondary":"#FF144D","tertiary":"#2A60FE"},"content":{"active":"#FFFFFF","default":"#AEAEAE","disabled":"rgba(255, 255, 255, 0.3)","inverted":"#2C2C2C","muted":"#787A85"},"elevation":{"visualizationAccent":"#996CFF","visualizationAccentAlt":"#C1ACF7"},"feature":{"active":"rgba(250, 248, 254, 0.14)","disabled":"rgba(201, 206, 218, 0.12)"},"icons":{"neutral":"#787878"},"interactive":{"activeBorder":"#060606","checked":"#060606","dangerBorder":"#FF144D","defaultBackground":"#36383F","defaultBorder":"#2E3036","disabledBorder":"#B1B8C3","focusBackground":"#B1B8C3","focusBorder":"#86E2FF","hoverBackground":"#4E4E4E","hoverBorder":"#B9BFCA","hoverOverlay":"rgba(255, 255, 255, 0.1)","linkPrimary":"#1752FF","linkPrimaryHover":"#4877FF","linkPrimaryLight":"#5982ff","linkSecondary":"#6B50D7","linkSecondaryDisabled":"#C4B9EF","linkText":"#6AA1E0","rowHoverBackground":"rgba(0, 0, 0, 0.1)","transparent":"rgba(255, 255, 255, 0)"},"loader":{"color":"#EB0032","colorInverted":"#8ADE00"},"logo":{"color":"#FFFFFF"},"monotone":{"black":"#060606","blackTransparent":"rgba(0, 0, 0, 0.6)","gray":"#B1B8C3","grey100":"#F2F2F2","grey200":"#D5D7DC","grey300":"#B4B8C0","grey400":"#70747C","grey500":"#51535C","purple":"#6B50D7","white":"#FFFFFF"},"neutral":{"n100":"#E7E8EA","n200":"#D8DADE","n300":"#CBCCD0","n400":"#BCBEC4","n500":"#AEB0B6"},"progress":{"negative":"#FF144D","positive":"#6B50D7"},"shadow":{"base":"12px 40px 120px rgba(106, 117, 139, 0.4)","frame":"0px 10px 40px rgba(0, 0, 0, 0.26)","menu":"4px 10px 20px rgba(6, 6, 6, 0.12)","popup":"10px 20px 40px rgba(0, 0, 0, 0.2)","small":"0px, 4px, rgba(0, 0, 0, 0.25)","window":"0px 10px 60px rgba(0, 0, 0, 0.7)"},"status":{"negative":"#FF144D","positive":"#24B400"},"text":{"fileBrowser":"#787A85"}}},"page":"/_error","query":{},"buildId":"ngCg1gM6urg83y2nV5KHK","nextExport":true,"isFallback":false,"gip":true,"appGip":true,"scriptLoader":[]}</script></body></html>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=0" name="viewport"/><title>404: This page could not be found</title><meta name="next-head-count" content="3"/><link href="/favicon.ico" rel="icon"/><link rel="preload" href="/_next/static/css/d1e8e64d0b07af2f.css" as="style"/><link rel="stylesheet" href="/_next/static/css/d1e8e64d0b07af2f.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/_next/static/chunks/webpack-bc5e4eb2c1ff587c.js" defer=""></script><script src="/_next/static/chunks/framework-7c365855dab1bf41.js" defer=""></script><script src="/_next/static/chunks/main-bb0dd5375146d7fd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-7e791bee1e32adec.js" defer=""></script><script src="/_next/static/chunks/pages/_error-235304e5badb19eb.js" defer=""></script><script src="/_next/static/
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=0" name="viewport"/><title>404: This page could not be found</title><meta name="next-head-count" content="3"/><link href="/favicon.ico" rel="icon"/><link rel="preload" href="/_next/static/css/d1e8e64d0b07af2f.css" as="style"/><link rel="stylesheet" href="/_next/static/css/d1e8e64d0b07af2f.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/_next/static/chunks/webpack-bc5e4eb2c1ff587c.js" defer=""></script><script src="/_next/static/chunks/framework-7c365855dab1bf41.js" defer=""></script><script src="/_next/static/chunks/main-bb0dd5375146d7fd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-7e791bee1e32adec.js" defer=""></script><script src="/_next/static/chunks/pages/_error-235304e5badb19eb.js" defer=""></script><script src="/_next/static/ngCg1gM6urg83y2nV5KHK/_buildManifest.js" defer=""></script><script src="/_next/static/ngCg1gM6urg83y2nV5KHK/_ssgManifest.js" defer=""></script><script src="/_next/static/ngCg1gM6urg83y2nV5KHK/_middlewareManifest.js" defer=""></script><style data-styled="" data-styled-version="5.3.6">html{-webkit-box-sizing:border-box;box-sizing:border-box;-ms-overflow-style:scrollbar;}/*!sc*/
|
|
2
2
|
*,*::before,*::after{-webkit-box-sizing:inherit;box-sizing:inherit;}/*!sc*/
|
|
3
3
|
data-styled.g4[id="sc-global-czSCUT1"]{content:"sc-global-czSCUT1,"}/*!sc*/
|
|
4
4
|
.kOVcuR .Toastify__toast-container{margin-top:24px;padding:0 !important;width:500px !important;}/*!sc*/
|
|
@@ -19,4 +19,4 @@ data-styled.g5[id="ToastWrapper-sc-1a33ph1-0"]{content:"kOVcuR,"}/*!sc*/
|
|
|
19
19
|
.next-error-h1 {
|
|
20
20
|
border-right: 1px solid rgba(255, 255, 255, .3);
|
|
21
21
|
}
|
|
22
|
-
}</style><h1 class="next-error-h1" style="display:inline-block;margin:0;margin-right:20px;padding:10px 23px 10px 0;font-size:24px;font-weight:500;vertical-align:top">404<!-- --></h1><div style="display:inline-block;text-align:left;line-height:49px;height:49px;vertical-align:middle"><h2 style="font-size:14px;font-weight:normal;line-height:inherit;margin:0;padding:0">This page could not be found<!-- -->.<!-- --></h2></div></div></div><div></div><div></div><div class="ToastWrapper-sc-1a33ph1-0 kOVcuR"><div class="Toastify"></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404},"currentTheme":{"accent":{"alert":"#F6540B","blue":"#4877FF","blueLight":"rgba(72, 119, 255, 0.5)","contentDefaultTransparent":"rgba(174, 174, 174, 0.5)","cyan":"#65E3FF","cyanTransparent":"rgba(101, 227, 255, 0.12)","dbt":"#fc6949","dbtLight":"rgba(252, 105, 73, 0.5)","info":"#00ABFF","infoTransparent":"rgba(0, 171, 255, 0.5)","negative":"#FF1E59","negativeTransparent":"rgba(255, 30, 89, 0.3)","pink":"#FF4FF8","pinkLight":"#FFB9FC","positive":"#00A81A","primaryTransparent":"rgba(155, 108, 167, 0.5)","purple":"#7D55EC","purpleLight":"rgba(125, 85, 236, 0.5)","teal":"#00B4CC","tealLight":"rgba(0, 180, 204, 0.5)","warning":"#DD9900","warningTransparent":"rgba(221, 153, 0, 0.5)","yellow":"#FFCC19","yellowLight":"rgba(255, 204, 25, 0.5)"},"background":{"chartBlock":"#2E3036","codeArea":"#1E1F24","codeTextarea":"#000000","content":"#1B1C20","danger":"#FFD0DB","dark":"#B1B8C3","header":"#1B1B1B","menu":"#0F4CFF","muted":"#F9FAFC","navigation":"#EDEDED","output":"#2E3036","page":"#1E1F24","panel":"#232429","popup":"#27292E","row":"#2C2C2C","row2":"#51535C","scrollbarThumb":"rgba(100, 100, 100, 0.5)","scrollbarThumbHover":"rgba(255, 255, 255, 0.3)","scrollbarTrack":"#2E3036","success":"#8ADE00","table":"#292A2F"},"borders":{"button":"#454850","contrast":"#FFFFFF","danger":"#FF144D","dark":"#000000","info":"#FFCC19","light":"#2F3034","medium":"#1C1C1C","medium2":"#141414","success":"#2FCB52"},"brand":{"earth100":"#C6EEDB","earth200":"#9DDFBF","earth300":"#6BBF96","earth400":"#37A46F","earth400Transparent":"rgba(55, 164, 111, 0.4)","earth500":"#00954C","energy100":"#FFF4BA","energy200":"#FFED92","energy300":"#FFE662","energy400":"#FFDA19","energy400Transparent":"rgba(255, 218, 25, 0.04)","energy500":"#F6C000","fire100":"#FFD7E0","fire200":"#FFA3B9","fire300":"#FF547D","fire400":"#FF144D","fire400Transparent":"rgba(255, 20, 77, 0.4)","fire500":"#EB0032","stone100":"#F3E6D7","stone200":"#E3D4C2","stone400":"#BFA78B","stone500":"#AF8859","water100":"#BDCEFF","water200":"#81A1FF","water300":"#517DFF","water400":"#2A60FE","water400Transparent":"rgba(42, 96, 254, 0.4)","water500":"#0F4CFF","wind100":"#EEEAFF","wind200":"#CCC1F4","wind300":"#A698DD","wind400":"#6B50D7","wind400SuperTransparent":"rgba(107, 80, 215, 0.12)","wind400Transparent":"rgba(107, 80, 215, 0.4)","wind500":"#4E32BC"},"chart":{"backgroundPrimary":"#7D55EC","backgroundSecondary":"#FF144D","backgroundTertiary":"#86E2FF","button1":"#4877FF","button2":"#FFCC19","button3":"#8ADE00","button4":"#FF4FF8","button5":"#B98D95","lines":"#9B6CA7","primary":"#6B50D7","secondary":"#FF144D","tertiary":"#2A60FE"},"content":{"active":"#FFFFFF","default":"#AEAEAE","disabled":"rgba(255, 255, 255, 0.3)","inverted":"#2C2C2C","muted":"#787A85"},"elevation":{"visualizationAccent":"#996CFF","visualizationAccentAlt":"#C1ACF7"},"feature":{"active":"rgba(250, 248, 254, 0.14)","disabled":"rgba(201, 206, 218, 0.12)"},"icons":{"neutral":"#787878"},"interactive":{"activeBorder":"#060606","checked":"#060606","dangerBorder":"#FF144D","defaultBackground":"#36383F","defaultBorder":"#2E3036","disabledBorder":"#B1B8C3","focusBackground":"#B1B8C3","focusBorder":"#86E2FF","hoverBackground":"#4E4E4E","hoverBorder":"#B9BFCA","hoverOverlay":"rgba(255, 255, 255, 0.1)","linkPrimary":"#1752FF","linkPrimaryHover":"#4877FF","linkPrimaryLight":"#5982ff","linkSecondary":"#6B50D7","linkSecondaryDisabled":"#C4B9EF","linkText":"#6AA1E0","rowHoverBackground":"rgba(0, 0, 0, 0.1)","transparent":"rgba(255, 255, 255, 0)"},"loader":{"color":"#EB0032","colorInverted":"#8ADE00"},"logo":{"color":"#FFFFFF"},"monotone":{"black":"#060606","blackTransparent":"rgba(0, 0, 0, 0.6)","gray":"#B1B8C3","grey100":"#F2F2F2","grey200":"#D5D7DC","grey300":"#B4B8C0","grey400":"#70747C","grey500":"#51535C","purple":"#6B50D7","white":"#FFFFFF"},"neutral":{"n100":"#E7E8EA","n200":"#D8DADE","n300":"#CBCCD0","n400":"#BCBEC4","n500":"#AEB0B6"},"progress":{"negative":"#FF144D","positive":"#6B50D7"},"shadow":{"base":"12px 40px 120px rgba(106, 117, 139, 0.4)","frame":"0px 10px 40px rgba(0, 0, 0, 0.26)","menu":"4px 10px 20px rgba(6, 6, 6, 0.12)","popup":"10px 20px 40px rgba(0, 0, 0, 0.2)","small":"0px, 4px, rgba(0, 0, 0, 0.25)","window":"0px 10px 60px rgba(0, 0, 0, 0.7)"},"status":{"negative":"#FF144D","positive":"#24B400"},"text":{"fileBrowser":"#787A85"}}},"page":"/_error","query":{},"buildId":"
|
|
22
|
+
}</style><h1 class="next-error-h1" style="display:inline-block;margin:0;margin-right:20px;padding:10px 23px 10px 0;font-size:24px;font-weight:500;vertical-align:top">404<!-- --></h1><div style="display:inline-block;text-align:left;line-height:49px;height:49px;vertical-align:middle"><h2 style="font-size:14px;font-weight:normal;line-height:inherit;margin:0;padding:0">This page could not be found<!-- -->.<!-- --></h2></div></div></div><div></div><div></div><div class="ToastWrapper-sc-1a33ph1-0 kOVcuR"><div class="Toastify"></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404},"currentTheme":{"accent":{"alert":"#F6540B","blue":"#4877FF","blueLight":"rgba(72, 119, 255, 0.5)","contentDefaultTransparent":"rgba(174, 174, 174, 0.5)","cyan":"#65E3FF","cyanTransparent":"rgba(101, 227, 255, 0.12)","dbt":"#fc6949","dbtLight":"rgba(252, 105, 73, 0.5)","info":"#00ABFF","infoTransparent":"rgba(0, 171, 255, 0.5)","negative":"#FF1E59","negativeTransparent":"rgba(255, 30, 89, 0.3)","pink":"#FF4FF8","pinkLight":"#FFB9FC","positive":"#00A81A","primaryTransparent":"rgba(155, 108, 167, 0.5)","purple":"#7D55EC","purpleLight":"rgba(125, 85, 236, 0.5)","teal":"#00B4CC","tealLight":"rgba(0, 180, 204, 0.5)","warning":"#DD9900","warningTransparent":"rgba(221, 153, 0, 0.5)","yellow":"#FFCC19","yellowLight":"rgba(255, 204, 25, 0.5)"},"background":{"chartBlock":"#2E3036","codeArea":"#1E1F24","codeTextarea":"#000000","content":"#1B1C20","danger":"#FFD0DB","dark":"#B1B8C3","header":"#1B1B1B","menu":"#0F4CFF","muted":"#F9FAFC","navigation":"#EDEDED","output":"#2E3036","page":"#1E1F24","panel":"#232429","popup":"#27292E","row":"#2C2C2C","row2":"#51535C","scrollbarThumb":"rgba(100, 100, 100, 0.5)","scrollbarThumbHover":"rgba(255, 255, 255, 0.3)","scrollbarTrack":"#2E3036","success":"#8ADE00","table":"#292A2F"},"borders":{"button":"#454850","contrast":"#FFFFFF","danger":"#FF144D","dark":"#000000","info":"#FFCC19","light":"#2F3034","medium":"#1C1C1C","medium2":"#141414","success":"#2FCB52"},"brand":{"earth100":"#C6EEDB","earth200":"#9DDFBF","earth300":"#6BBF96","earth400":"#37A46F","earth400Transparent":"rgba(55, 164, 111, 0.4)","earth500":"#00954C","energy100":"#FFF4BA","energy200":"#FFED92","energy300":"#FFE662","energy400":"#FFDA19","energy400Transparent":"rgba(255, 218, 25, 0.04)","energy500":"#F6C000","fire100":"#FFD7E0","fire200":"#FFA3B9","fire300":"#FF547D","fire400":"#FF144D","fire400Transparent":"rgba(255, 20, 77, 0.4)","fire500":"#EB0032","stone100":"#F3E6D7","stone200":"#E3D4C2","stone400":"#BFA78B","stone500":"#AF8859","water100":"#BDCEFF","water200":"#81A1FF","water300":"#517DFF","water400":"#2A60FE","water400Transparent":"rgba(42, 96, 254, 0.4)","water500":"#0F4CFF","wind100":"#EEEAFF","wind200":"#CCC1F4","wind300":"#A698DD","wind400":"#6B50D7","wind400SuperTransparent":"rgba(107, 80, 215, 0.12)","wind400Transparent":"rgba(107, 80, 215, 0.4)","wind500":"#4E32BC"},"chart":{"backgroundPrimary":"#7D55EC","backgroundSecondary":"#FF144D","backgroundTertiary":"#86E2FF","button1":"#4877FF","button2":"#FFCC19","button3":"#8ADE00","button4":"#FF4FF8","button5":"#B98D95","lines":"#9B6CA7","primary":"#6B50D7","secondary":"#FF144D","tertiary":"#2A60FE"},"content":{"active":"#FFFFFF","default":"#AEAEAE","disabled":"rgba(255, 255, 255, 0.3)","inverted":"#2C2C2C","muted":"#787A85"},"elevation":{"visualizationAccent":"#996CFF","visualizationAccentAlt":"#C1ACF7"},"feature":{"active":"rgba(250, 248, 254, 0.14)","disabled":"rgba(201, 206, 218, 0.12)"},"icons":{"neutral":"#787878"},"interactive":{"activeBorder":"#060606","checked":"#060606","dangerBorder":"#FF144D","defaultBackground":"#36383F","defaultBorder":"#2E3036","disabledBorder":"#B1B8C3","focusBackground":"#B1B8C3","focusBorder":"#86E2FF","hoverBackground":"#4E4E4E","hoverBorder":"#B9BFCA","hoverOverlay":"rgba(255, 255, 255, 0.1)","linkPrimary":"#1752FF","linkPrimaryHover":"#4877FF","linkPrimaryLight":"#5982ff","linkSecondary":"#6B50D7","linkSecondaryDisabled":"#C4B9EF","linkText":"#6AA1E0","rowHoverBackground":"rgba(0, 0, 0, 0.1)","transparent":"rgba(255, 255, 255, 0)"},"loader":{"color":"#EB0032","colorInverted":"#8ADE00"},"logo":{"color":"#FFFFFF"},"monotone":{"black":"#060606","blackTransparent":"rgba(0, 0, 0, 0.6)","gray":"#B1B8C3","grey100":"#F2F2F2","grey200":"#D5D7DC","grey300":"#B4B8C0","grey400":"#70747C","grey500":"#51535C","purple":"#6B50D7","white":"#FFFFFF"},"neutral":{"n100":"#E7E8EA","n200":"#D8DADE","n300":"#CBCCD0","n400":"#BCBEC4","n500":"#AEB0B6"},"progress":{"negative":"#FF144D","positive":"#6B50D7"},"shadow":{"base":"12px 40px 120px rgba(106, 117, 139, 0.4)","frame":"0px 10px 40px rgba(0, 0, 0, 0.26)","menu":"4px 10px 20px rgba(6, 6, 6, 0.12)","popup":"10px 20px 40px rgba(0, 0, 0, 0.2)","small":"0px, 4px, rgba(0, 0, 0, 0.25)","window":"0px 10px 60px rgba(0, 0, 0, 0.7)"},"status":{"negative":"#FF144D","positive":"#24B400"},"text":{"fileBrowser":"#787A85"}}},"page":"/_error","query":{},"buildId":"ngCg1gM6urg83y2nV5KHK","nextExport":true,"isFallback":false,"gip":true,"appGip":true,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2626],{1210:function(e,n,t){t.d(n,{Z:function(){return w}});var i=t(82394),r=t(21831),o=t(82684),l=t(47999),c=t(28358),s=t(93461),a=t(57384),u=t(12344),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var h=o.forwardRef(p),g=t(32063),m=t(15270),b=t(82531),v=t(66166),C=t(3055),x=t(49125),y=t(91427),j=t(24141);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 O(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}var w=function(e){var n,t=e.after,i=e.afterHidden,p=e.afterWidth,S=e.afterWidthOverride,w=e.before,I=e.beforeWidth,_=e.breadcrumbs,Z=e.children,P=e.errors,N=e.headerMenuItems,M=e.navigationItems,k=e.setErrors,H=e.subheaderChildren,E=e.title,R=e.uuid,z=(0,j.i)().width,L="dashboard_after_width_".concat(R),V="dashboard_before_width_".concat(R),T=(0,o.useRef)(null),A=(0,o.useState)(S?p:(0,y.U2)(L,p)),B=A[0],D=A[1],G=(0,o.useState)(!1),U=G[0],F=G[1],Y=(0,o.useState)(w?Math.max((0,y.U2)(V,I),13*x.iI):null),W=Y[0],K=Y[1],Q=(0,o.useState)(!1),q=Q[0],J=Q[1],X=(0,o.useState)(null)[1],$=b.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===$||void 0===$?void 0:$.projects,ne=[];_?ne.push.apply(ne,(0,r.Z)(_)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return E}}]),(0,o.useEffect)((function(){null===T||void 0===T||!T.current||U||q||null===X||void 0===X||X(T.current.getBoundingClientRect().width)}),[U,B,q,W,T,X,z]),(0,o.useEffect)((function(){U||(0,y.t8)(L,B)}),[i,U,B,L]),(0,o.useEffect)((function(){q||(0,y.t8)(V,W)}),[q,W,V]);var te=(0,v.Z)(p);return(0,o.useEffect)((function(){S&&te!==p&&D(p)}),[S,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Z,{title:E}),(0,f.jsx)(u.Z,{breadcrumbs:ne,menuItems:N,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===M||void 0===M?void 0:M.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(m.Z,{navigationItems:M})}),(0,f.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(g.Z,{after:t,afterHeightOffset:C.Mz,afterHidden:i,afterMousedownActive:U,afterWidth:B,before:w,beforeHeightOffset:C.Mz,beforeMousedownActive:q,beforeWidth:d.k1+(w?W:0),hideAfterCompletely:!0,leftOffset:w?d.k1:null,mainContainerRef:T,setAfterMousedownActive:F,setAfterWidth:D,setBeforeMousedownActive:J,setBeforeWidth:K,children:[H&&(0,f.jsx)(h,{children:H}),Z]})})]}),P&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===k||void 0===k?void 0:k(null)},children:(0,f.jsx)(c.Z,O(O({},P),{},{onClose:function(){return null===k||void 0===k?void 0:k(null)}}))})]})}},59920:function(e,n,t){var i;t.d(n,{M:function(){return i}}),function(e){e.BACKFILLS="backfills",e.BLOCK_RUNS="block_runs",e.EDIT="edit",e.MONITOR="monitor",e.PIPELINE_LOGS="pipeline_logs",e.PIPELINE_RUNS="pipeline_runs",e.RUNS="runs",e.SYNCS="syncs",e.TRIGGERS="triggers"}(i||(i={}))},2626:function(e,n,t){t.d(n,{Z:function(){return E}});var i=t(82394),r=t(21831),o=t(82684),l=t(28598);var c=function(e){var n=e.size;return(0,l.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("g",{clipPath:"url(#clip0_7525_68660)",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.67625 7.82429C8.48671 8.13404 8.61933 8.53116 8.9436 8.69464C9.26787 8.85812 9.6606 8.72561 9.85513 8.41896C10.5416 7.33682 11.5276 6.47056 12.6997 5.92987C14.0715 5.29701 15.6173 5.14749 17.085 5.50568C18.5526 5.86388 19.8557 6.70866 20.7818 7.90233C21.7079 9.096 22.2023 10.5682 22.1845 12.0788C22.1667 13.5895 21.6377 15.0496 20.6837 16.2211C19.7298 17.3926 18.4071 18.2064 16.9314 18.5299C15.4557 18.8534 13.9139 18.6675 12.5573 18.0024C11.3984 17.4343 10.433 16.545 9.77227 15.447C9.58502 15.1358 9.19553 14.9941 8.86749 15.1499C8.53946 15.3057 8.39751 15.6995 8.5797 16.0137C9.37152 17.379 10.5525 18.4842 11.9785 19.1832C13.6018 19.9791 15.4469 20.2016 17.213 19.8145C18.979 19.4273 20.5619 18.4534 21.7035 17.0514C22.8451 15.6495 23.4781 13.9022 23.4994 12.0943C23.5208 10.2865 22.9291 8.52472 21.8208 7.09623C20.7126 5.66774 19.1532 4.65677 17.3968 4.22811C15.6403 3.79945 13.7905 3.97839 12.1488 4.73574C10.7068 5.40099 9.50004 6.47805 8.67625 7.82429ZM0.219185 12.5303C-0.0737079 12.2375 -0.0737079 11.7626 0.219185 11.4697L4.71918 6.96968C5.01208 6.67679 5.48695 6.67679 5.77985 6.96968C6.07274 7.26258 6.07274 7.73745 5.77985 8.03034L2.56017 11.25L15.7495 11.25C16.1637 11.25 16.4995 11.5858 16.4995 12C16.4995 12.4142 16.1637 12.75 15.7495 12.75L2.56017 12.75L5.77985 15.9697C6.07274 16.2626 6.07274 16.7375 5.77985 17.0303C5.48695 17.3232 5.01208 17.3232 4.71918 17.0303L0.219185 12.5303Z",fill:"url(#paint0_linear_7525_68660)"})}),(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"paint0_linear_7525_68660",x1:"11.7498",y1:"4",x2:"11.7498",y2:"20",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},s=t(16953),a=t(61519);var u=function(e){var n=e.size;return(0,l.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.25 1C23.25 0.585786 22.9142 0.25 22.5 0.25C22.0858 0.25 21.75 0.585786 21.75 1V15.5C21.75 15.9142 22.0858 16.25 22.5 16.25C22.9142 16.25 23.25 15.9142 23.25 15.5V1ZM5 4.25C5.41421 4.25 5.75 4.58579 5.75 5V15.5C5.75 15.9142 5.41421 16.25 5 16.25C4.58579 16.25 4.25 15.9142 4.25 15.5V5C4.25 4.58579 4.58579 4.25 5 4.25ZM1.5 7.25C1.91421 7.25 2.25 7.58579 2.25 8V15.5C2.25 15.9142 1.91421 16.25 1.5 16.25C1.08579 16.25 0.75 15.9142 0.75 15.5V8C0.75 7.58579 1.08579 7.25 1.5 7.25ZM9.25 7C9.25 6.58579 8.91421 6.25 8.5 6.25C8.08579 6.25 7.75 6.58579 7.75 7V15.5C7.75 15.9142 8.08579 16.25 8.5 16.25C8.91421 16.25 9.25 15.9142 9.25 15.5V7ZM12 8.75C12.4142 8.75 12.75 9.08579 12.75 9.5V15.5C12.75 15.9142 12.4142 16.25 12 16.25C11.5858 16.25 11.25 15.9142 11.25 15.5V9.5C11.25 9.08579 11.5858 8.75 12 8.75ZM16.25 11.5C16.25 11.0858 15.9142 10.75 15.5 10.75C15.0858 10.75 14.75 11.0858 14.75 11.5V15.5C14.75 15.9142 15.0858 16.25 15.5 16.25C15.9142 16.25 16.25 15.9142 16.25 15.5V11.5ZM19 9.25C19.4142 9.25 19.75 9.58579 19.75 10V15.5C19.75 15.9142 19.4142 16.25 19 16.25C18.5858 16.25 18.25 15.9142 18.25 15.5V10C18.25 9.58579 18.5858 9.25 19 9.25Z",fill:"url(#paint0_linear_2919_69883)"}),(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"paint0_linear_2919_69883",x1:"1.5",y1:"11.875",x2:"22.75",y2:"11.875",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},d=t(47999),f=t(1210),p=t(34744),h=t(28358),g=t(67971),m=t(87372),b=t(98781),v=t(29664),C=t(86673);var x=function(e){var n=e.size;return(0,l.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 17c0 1.1046-.89543 2-2 2s-2-.8954-2-2 .89543-2 2-2 2 .8954 2 2zm1.5 0c0 1.933-1.567 3.5-3.5 3.5S1.5 18.933 1.5 17s1.567-3.5 3.5-3.5 3.5 1.567 3.5 3.5zm2.25-.5c0-.4142.3358-.75.75-.75H22c.4142 0 .75.3358.75.75s-.3358.75-.75.75H11.5c-.4142 0-.75-.3358-.75-.75zM8.68946 4.29563c.16317-.38072-.0132-.82163-.39392-.9848-.38072-.16316-.82163.0132-.9848.39392L5.06418 8.94674c-.07952.18554-.3348.2052-.44179.03402L3.1361 6.60269c-.21953-.35125-.68225-.45803-1.0335-.2385-.35125.21954-.45803.68225-.2385 1.0335l1.48629 2.37807c.74892 1.19824 2.53587 1.06064 3.0925-.23814l2.24657-5.24199zM11.5 6.75c-.4142 0-.75.33579-.75.75s.3358.75.75.75H22c.4142 0 .75-.33579.75-.75s-.3358-.75-.75-.75H11.5z",fill:"url(#paint0_linear_2919_69883)"}),(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"paint0_linear_2919_69883",x1:"1.5",y1:"11.875",x2:"22.75",y2:"11.875",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},y=t(82531),j=t(10503),S=t(9518),O=t(23831),w=t(73942),I=t(49125),_=S.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],w.n_,3*I.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||O.Z.shadow).small,";\n ")}),(function(e){return e.background&&"\n background: ".concat(e.background,";\n ")}),(function(e){return e.backgroundImage&&'\n background-image: url("'.concat(e.backgroundImage,'");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n ')})),Z=t(3055),P=t(59920),N=t(9736),M=t(24141);function k(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?k(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var E=function(e){var n=e.after,t=e.afterHidden,i=e.afterWidth,S=e.before,O=e.beforeWidth,w=e.breadcrumbs,k=e.buildSidekick,E=e.children,R=e.errors,z=e.headline,L=e.pageName,V=e.pipeline,T=e.setErrors,A=e.subheader,B=e.subheaderBackground,D=e.subheaderBackgroundImage,G=e.subheaderButton,U=e.subheaderText,F=e.title,Y=e.uuid,W=(0,M.i)().height,K=V.uuid,Q=y.ZP.pipelines.detail(K,{includes_outputs:!1},{revalidateOnFocus:!1}).data,q=null===Q||void 0===Q?void 0:Q.pipeline,J=(0,o.useMemo)((function(){return n||(k?k({height:W,heightOffset:Z.Mz,pipeline:q}):null)}),[n,k,W,q]),X=i||(J?50*I.iI:null),$=(0,o.useMemo)((function(){var e=[];return q&&(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),w?(e.push({label:function(){return q.uuid},linkProps:{as:"/pipelines/".concat(K,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,r.Z)(w)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return q.name}})),e}),[w,q,K]),ee=[{Icon:j.Pf,IconSelected:v.Z,id:P.M.TRIGGERS,isSelected:function(){return P.M.TRIGGERS===L},label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(K,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{Icon:j.pd,IconSelected:a.Z,id:P.M.RUNS,isSelected:function(){return P.M.RUNS===L},label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(K,"/runs"),href:"/pipelines/[pipeline]/runs"}},{Icon:j.yg,IconSelected:c,id:P.M.BACKFILLS,isSelected:function(){return P.M.BACKFILLS===L},label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(K,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{Icon:j.B4,IconSelected:x,id:P.M.PIPELINE_LOGS,isSelected:function(){return P.M.PIPELINE_LOGS===L},label:function(){return"Logs"},linkProps:{as:"/pipelines/".concat(K,"/logs"),href:"/pipelines/[pipeline]/logs"}},{Icon:j.kL,IconSelected:u,id:P.M.MONITOR,isSelected:function(){return P.M.MONITOR===L},label:function(){return"Monitor"},linkProps:{as:"/pipelines/".concat(K,"/monitors"),href:"/pipelines/[pipeline]/monitors"}}];return b.qL.INTEGRATION===(null===q||void 0===q?void 0:q.type)&&ee.unshift({Icon:j.Re,IconSelected:s.Z,id:P.M.SYNCS,isSelected:function(){return P.M.SYNCS===L},label:function(){return"Syncs"},linkProps:{as:"/pipelines/".concat(K,"/syncs"),href:"/pipelines/[pipeline]/syncs"}}),(0,N.Ct)()||ee.unshift({Icon:null,IconSelected:null,id:P.M.EDIT,label:function(){return"Edit pipeline"},linkProps:{as:"/pipelines/".concat(K,"/edit"),href:"/pipelines/[pipeline]/edit"}}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(f.Z,{after:J,afterHidden:t,afterWidth:X,before:S,beforeWidth:O,breadcrumbs:$,navigationItems:ee,subheaderChildren:"undefined"!==typeof A&&A,title:q?F?F(q):q.name:null,uuid:Y,children:[(G||U)&&(0,l.jsx)(C.Z,{mb:I.Mq,mt:I.cd,mx:I.cd,children:(0,l.jsx)(_,{background:B,backgroundImage:D,children:(0,l.jsxs)(g.Z,{alignItems:"center",children:[G,U&&(0,l.jsx)(C.Z,{ml:3}),U]})})}),z&&(0,l.jsx)(C.Z,{p:I.cd,children:(0,l.jsxs)(C.Z,{mt:I.cd,px:I.cd,children:[(0,l.jsx)(m.Z,{level:5,children:z}),(0,l.jsx)(p.Z,{light:!0,mt:I.cd,short:!0})]})}),E]}),R&&(0,l.jsx)(d.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===T||void 0===T?void 0:T(null)},children:(0,l.jsx)(h.Z,H(H({},R),{},{onClose:function(){return null===T||void 0===T?void 0:T(null)}}))})]})}},98781:function(e,n,t){t.d(n,{$1:function(){return s},G7:function(){return u},QK:function(){return c},a_:function(){return d},qL:function(){return o},r0:function(){return a}});var i,r,o,l=t(82394);!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(o||(o={}));var c,s,a,u=(i={},(0,l.Z)(i,o.INTEGRATION,"Integration"),(0,l.Z)(i,o.PYTHON,"Standard"),(0,l.Z)(i,o.PYSPARK,"PySpark"),(0,l.Z)(i,o.STREAMING,"Streaming"),i);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules"}(c||(c={})),function(e){e.GROUP="group_by",e.STATUS="status[]",e.TYPE="type[]"}(s||(s={})),function(e){e.STATUS="status",e.TYPE="type"}(a||(a={}));var d=(r={},(0,l.Z)(r,o.PYTHON,"python3"),(0,l.Z)(r,o.PYSPARK,"pysparkkernel"),r)},87372:function(e,n,t){var i,r,o,l,c,s,a,u,d=t(82394),f=t(26304),p=t(26653),h=t(9518),g=t(33591),m=t(23831),b=t(2005),v=t(31012),C=t(19711),x=t(49125),y=t(86673),j=t(28598),S=["children","condensed","inline","level","marketing","spacingBelow"];function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var I=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],C.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||m.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(b.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),_=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||m.Z.content).active,";\n ")})),Z=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],I,g.media.md(i||(i=(0,p.Z)(["\n ","\n "])),v.aQ),g.media.lg(r||(r=(0,p.Z)(["\n ","\n "])),v.aQ),g.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),v.aQ)),P=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],I,v.MJ),N=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],I,g.media.xs(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.sm(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.md(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.lg(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.xl(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI)),M=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],I,v.BL),k=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],I),H=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],I),E=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],I),R=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],I,(function(e){return 1===e.level&&"\n ".concat(v.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(v.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),z=function(e){var n,t=e.children,i=e.condensed,r=e.inline,o=e.level,l=e.marketing,c=e.spacingBelow,s=(0,f.Z)(e,S);r?n=R:0===Number(o)?n=Z:1===Number(o)?n=l?N:P:2===Number(o)?n=M:3===Number(o)?n=k:4===Number(o)?n=H:5===Number(o)&&(n=E);var a=(0,j.jsxs)(n,w(w({},s),{},{level:o,children:[c&&(0,j.jsx)(y.Z,{mb:i?2:3,children:t}),!c&&t]}));return r?a:(0,j.jsx)(_,{children:a})};z.defaultProps={level:3,weightStyle:6},n.Z=z},16953:function(e,n,t){var i=t(28598);n.Z=function(e){var n=e.size;return(0,i.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 8.5H15.5V3.5H20.5V8.5ZM14 9V3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55229 21.5523 10 21 10H15C14.4477 10 14 9.55229 14 9ZM2 5V12.5V14V21.5C2 22.0523 2.44772 22.5 3 22.5H10.5H12H19.5C20.0523 22.5 20.5 22.0523 20.5 21.5V13.5C20.5 12.9477 20.0523 12.5 19.5 12.5H12V5C12 4.44772 11.5523 4 11 4H3C2.44772 4 2 4.44772 2 5ZM10.5 14V21H3.5V14H10.5ZM19 14V21H12V14H19ZM10.5 5.5V12.5H3.5V5.5H10.5Z",fill:"url(#paint0_linear_2842_55048)"}),(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:"paint0_linear_2842_55048",x1:"2",y1:"12.25",x2:"22",y2:"12.25",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2626],{1210:function(e,n,t){t.d(n,{Z:function(){return w}});var i=t(82394),r=t(21831),o=t(82684),l=t(47999),c=t(49894),s=t(93461),a=t(57384),u=t(12344),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var h=o.forwardRef(p),g=t(32063),m=t(15270),b=t(82531),v=t(66166),C=t(3055),x=t(49125),y=t(91427),j=t(24141);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 O(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}var w=function(e){var n,t=e.after,i=e.afterHidden,p=e.afterWidth,S=e.afterWidthOverride,w=e.before,I=e.beforeWidth,_=e.breadcrumbs,Z=e.children,P=e.errors,N=e.headerMenuItems,M=e.navigationItems,k=e.setErrors,H=e.subheaderChildren,E=e.title,R=e.uuid,z=(0,j.i)().width,L="dashboard_after_width_".concat(R),V="dashboard_before_width_".concat(R),T=(0,o.useRef)(null),A=(0,o.useState)(S?p:(0,y.U2)(L,p)),B=A[0],D=A[1],G=(0,o.useState)(!1),U=G[0],F=G[1],Y=(0,o.useState)(w?Math.max((0,y.U2)(V,I),13*x.iI):null),W=Y[0],K=Y[1],Q=(0,o.useState)(!1),q=Q[0],J=Q[1],X=(0,o.useState)(null)[1],$=b.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===$||void 0===$?void 0:$.projects,ne=[];_?ne.push.apply(ne,(0,r.Z)(_)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return E}}]),(0,o.useEffect)((function(){null===T||void 0===T||!T.current||U||q||null===X||void 0===X||X(T.current.getBoundingClientRect().width)}),[U,B,q,W,T,X,z]),(0,o.useEffect)((function(){U||(0,y.t8)(L,B)}),[i,U,B,L]),(0,o.useEffect)((function(){q||(0,y.t8)(V,W)}),[q,W,V]);var te=(0,v.Z)(p);return(0,o.useEffect)((function(){S&&te!==p&&D(p)}),[S,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Z,{title:E}),(0,f.jsx)(u.Z,{breadcrumbs:ne,menuItems:N,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===M||void 0===M?void 0:M.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(m.Z,{navigationItems:M})}),(0,f.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(g.Z,{after:t,afterHeightOffset:C.Mz,afterHidden:i,afterMousedownActive:U,afterWidth:B,before:w,beforeHeightOffset:C.Mz,beforeMousedownActive:q,beforeWidth:d.k1+(w?W:0),hideAfterCompletely:!0,leftOffset:w?d.k1:null,mainContainerRef:T,setAfterMousedownActive:F,setAfterWidth:D,setBeforeMousedownActive:J,setBeforeWidth:K,children:[H&&(0,f.jsx)(h,{children:H}),Z]})})]}),P&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===k||void 0===k?void 0:k(null)},children:(0,f.jsx)(c.Z,O(O({},P),{},{onClose:function(){return null===k||void 0===k?void 0:k(null)}}))})]})}},59920:function(e,n,t){var i;t.d(n,{M:function(){return i}}),function(e){e.BACKFILLS="backfills",e.BLOCK_RUNS="block_runs",e.EDIT="edit",e.MONITOR="monitor",e.PIPELINE_LOGS="pipeline_logs",e.PIPELINE_RUNS="pipeline_runs",e.RUNS="runs",e.SYNCS="syncs",e.TRIGGERS="triggers"}(i||(i={}))},2626:function(e,n,t){t.d(n,{Z:function(){return E}});var i=t(82394),r=t(21831),o=t(82684),l=t(28598);var c=function(e){var n=e.size;return(0,l.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("g",{clipPath:"url(#clip0_7525_68660)",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.67625 7.82429C8.48671 8.13404 8.61933 8.53116 8.9436 8.69464C9.26787 8.85812 9.6606 8.72561 9.85513 8.41896C10.5416 7.33682 11.5276 6.47056 12.6997 5.92987C14.0715 5.29701 15.6173 5.14749 17.085 5.50568C18.5526 5.86388 19.8557 6.70866 20.7818 7.90233C21.7079 9.096 22.2023 10.5682 22.1845 12.0788C22.1667 13.5895 21.6377 15.0496 20.6837 16.2211C19.7298 17.3926 18.4071 18.2064 16.9314 18.5299C15.4557 18.8534 13.9139 18.6675 12.5573 18.0024C11.3984 17.4343 10.433 16.545 9.77227 15.447C9.58502 15.1358 9.19553 14.9941 8.86749 15.1499C8.53946 15.3057 8.39751 15.6995 8.5797 16.0137C9.37152 17.379 10.5525 18.4842 11.9785 19.1832C13.6018 19.9791 15.4469 20.2016 17.213 19.8145C18.979 19.4273 20.5619 18.4534 21.7035 17.0514C22.8451 15.6495 23.4781 13.9022 23.4994 12.0943C23.5208 10.2865 22.9291 8.52472 21.8208 7.09623C20.7126 5.66774 19.1532 4.65677 17.3968 4.22811C15.6403 3.79945 13.7905 3.97839 12.1488 4.73574C10.7068 5.40099 9.50004 6.47805 8.67625 7.82429ZM0.219185 12.5303C-0.0737079 12.2375 -0.0737079 11.7626 0.219185 11.4697L4.71918 6.96968C5.01208 6.67679 5.48695 6.67679 5.77985 6.96968C6.07274 7.26258 6.07274 7.73745 5.77985 8.03034L2.56017 11.25L15.7495 11.25C16.1637 11.25 16.4995 11.5858 16.4995 12C16.4995 12.4142 16.1637 12.75 15.7495 12.75L2.56017 12.75L5.77985 15.9697C6.07274 16.2626 6.07274 16.7375 5.77985 17.0303C5.48695 17.3232 5.01208 17.3232 4.71918 17.0303L0.219185 12.5303Z",fill:"url(#paint0_linear_7525_68660)"})}),(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"paint0_linear_7525_68660",x1:"11.7498",y1:"4",x2:"11.7498",y2:"20",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},s=t(16953),a=t(61519);var u=function(e){var n=e.size;return(0,l.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.25 1C23.25 0.585786 22.9142 0.25 22.5 0.25C22.0858 0.25 21.75 0.585786 21.75 1V15.5C21.75 15.9142 22.0858 16.25 22.5 16.25C22.9142 16.25 23.25 15.9142 23.25 15.5V1ZM5 4.25C5.41421 4.25 5.75 4.58579 5.75 5V15.5C5.75 15.9142 5.41421 16.25 5 16.25C4.58579 16.25 4.25 15.9142 4.25 15.5V5C4.25 4.58579 4.58579 4.25 5 4.25ZM1.5 7.25C1.91421 7.25 2.25 7.58579 2.25 8V15.5C2.25 15.9142 1.91421 16.25 1.5 16.25C1.08579 16.25 0.75 15.9142 0.75 15.5V8C0.75 7.58579 1.08579 7.25 1.5 7.25ZM9.25 7C9.25 6.58579 8.91421 6.25 8.5 6.25C8.08579 6.25 7.75 6.58579 7.75 7V15.5C7.75 15.9142 8.08579 16.25 8.5 16.25C8.91421 16.25 9.25 15.9142 9.25 15.5V7ZM12 8.75C12.4142 8.75 12.75 9.08579 12.75 9.5V15.5C12.75 15.9142 12.4142 16.25 12 16.25C11.5858 16.25 11.25 15.9142 11.25 15.5V9.5C11.25 9.08579 11.5858 8.75 12 8.75ZM16.25 11.5C16.25 11.0858 15.9142 10.75 15.5 10.75C15.0858 10.75 14.75 11.0858 14.75 11.5V15.5C14.75 15.9142 15.0858 16.25 15.5 16.25C15.9142 16.25 16.25 15.9142 16.25 15.5V11.5ZM19 9.25C19.4142 9.25 19.75 9.58579 19.75 10V15.5C19.75 15.9142 19.4142 16.25 19 16.25C18.5858 16.25 18.25 15.9142 18.25 15.5V10C18.25 9.58579 18.5858 9.25 19 9.25Z",fill:"url(#paint0_linear_2919_69883)"}),(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"paint0_linear_2919_69883",x1:"1.5",y1:"11.875",x2:"22.75",y2:"11.875",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},d=t(47999),f=t(1210),p=t(34744),h=t(49894),g=t(67971),m=t(87372),b=t(98781),v=t(29664),C=t(86673);var x=function(e){var n=e.size;return(0,l.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 17c0 1.1046-.89543 2-2 2s-2-.8954-2-2 .89543-2 2-2 2 .8954 2 2zm1.5 0c0 1.933-1.567 3.5-3.5 3.5S1.5 18.933 1.5 17s1.567-3.5 3.5-3.5 3.5 1.567 3.5 3.5zm2.25-.5c0-.4142.3358-.75.75-.75H22c.4142 0 .75.3358.75.75s-.3358.75-.75.75H11.5c-.4142 0-.75-.3358-.75-.75zM8.68946 4.29563c.16317-.38072-.0132-.82163-.39392-.9848-.38072-.16316-.82163.0132-.9848.39392L5.06418 8.94674c-.07952.18554-.3348.2052-.44179.03402L3.1361 6.60269c-.21953-.35125-.68225-.45803-1.0335-.2385-.35125.21954-.45803.68225-.2385 1.0335l1.48629 2.37807c.74892 1.19824 2.53587 1.06064 3.0925-.23814l2.24657-5.24199zM11.5 6.75c-.4142 0-.75.33579-.75.75s.3358.75.75.75H22c.4142 0 .75-.33579.75-.75s-.3358-.75-.75-.75H11.5z",fill:"url(#paint0_linear_2919_69883)"}),(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"paint0_linear_2919_69883",x1:"1.5",y1:"11.875",x2:"22.75",y2:"11.875",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},y=t(82531),j=t(10503),S=t(9518),O=t(23831),w=t(73942),I=t(49125),_=S.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],w.n_,3*I.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||O.Z.shadow).small,";\n ")}),(function(e){return e.background&&"\n background: ".concat(e.background,";\n ")}),(function(e){return e.backgroundImage&&'\n background-image: url("'.concat(e.backgroundImage,'");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n ')})),Z=t(3055),P=t(59920),N=t(9736),M=t(24141);function k(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?k(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var E=function(e){var n=e.after,t=e.afterHidden,i=e.afterWidth,S=e.before,O=e.beforeWidth,w=e.breadcrumbs,k=e.buildSidekick,E=e.children,R=e.errors,z=e.headline,L=e.pageName,V=e.pipeline,T=e.setErrors,A=e.subheader,B=e.subheaderBackground,D=e.subheaderBackgroundImage,G=e.subheaderButton,U=e.subheaderText,F=e.title,Y=e.uuid,W=(0,M.i)().height,K=V.uuid,Q=y.ZP.pipelines.detail(K,{includes_outputs:!1},{revalidateOnFocus:!1}).data,q=null===Q||void 0===Q?void 0:Q.pipeline,J=(0,o.useMemo)((function(){return n||(k?k({height:W,heightOffset:Z.Mz,pipeline:q}):null)}),[n,k,W,q]),X=i||(J?50*I.iI:null),$=(0,o.useMemo)((function(){var e=[];return q&&(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),w?(e.push({label:function(){return q.uuid},linkProps:{as:"/pipelines/".concat(K,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,r.Z)(w)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return q.name}})),e}),[w,q,K]),ee=[{Icon:j.Pf,IconSelected:v.Z,id:P.M.TRIGGERS,isSelected:function(){return P.M.TRIGGERS===L},label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(K,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{Icon:j.pd,IconSelected:a.Z,id:P.M.RUNS,isSelected:function(){return P.M.RUNS===L},label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(K,"/runs"),href:"/pipelines/[pipeline]/runs"}},{Icon:j.yg,IconSelected:c,id:P.M.BACKFILLS,isSelected:function(){return P.M.BACKFILLS===L},label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(K,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{Icon:j.B4,IconSelected:x,id:P.M.PIPELINE_LOGS,isSelected:function(){return P.M.PIPELINE_LOGS===L},label:function(){return"Logs"},linkProps:{as:"/pipelines/".concat(K,"/logs"),href:"/pipelines/[pipeline]/logs"}},{Icon:j.kL,IconSelected:u,id:P.M.MONITOR,isSelected:function(){return P.M.MONITOR===L},label:function(){return"Monitor"},linkProps:{as:"/pipelines/".concat(K,"/monitors"),href:"/pipelines/[pipeline]/monitors"}}];return b.qL.INTEGRATION===(null===q||void 0===q?void 0:q.type)&&ee.unshift({Icon:j.Re,IconSelected:s.Z,id:P.M.SYNCS,isSelected:function(){return P.M.SYNCS===L},label:function(){return"Syncs"},linkProps:{as:"/pipelines/".concat(K,"/syncs"),href:"/pipelines/[pipeline]/syncs"}}),(0,N.Ct)()||ee.unshift({Icon:null,IconSelected:null,id:P.M.EDIT,label:function(){return"Edit pipeline"},linkProps:{as:"/pipelines/".concat(K,"/edit"),href:"/pipelines/[pipeline]/edit"}}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(f.Z,{after:J,afterHidden:t,afterWidth:X,before:S,beforeWidth:O,breadcrumbs:$,navigationItems:ee,subheaderChildren:"undefined"!==typeof A&&A,title:q?F?F(q):q.name:null,uuid:Y,children:[(G||U)&&(0,l.jsx)(C.Z,{mb:I.Mq,mt:I.cd,mx:I.cd,children:(0,l.jsx)(_,{background:B,backgroundImage:D,children:(0,l.jsxs)(g.Z,{alignItems:"center",children:[G,U&&(0,l.jsx)(C.Z,{ml:3}),U]})})}),z&&(0,l.jsx)(C.Z,{p:I.cd,children:(0,l.jsxs)(C.Z,{mt:I.cd,px:I.cd,children:[(0,l.jsx)(m.Z,{level:5,children:z}),(0,l.jsx)(p.Z,{light:!0,mt:I.cd,short:!0})]})}),E]}),R&&(0,l.jsx)(d.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===T||void 0===T?void 0:T(null)},children:(0,l.jsx)(h.Z,H(H({},R),{},{onClose:function(){return null===T||void 0===T?void 0:T(null)}}))})]})}},98781:function(e,n,t){t.d(n,{$1:function(){return s},G7:function(){return u},QK:function(){return c},a_:function(){return d},qL:function(){return o},r0:function(){return a}});var i,r,o,l=t(82394);!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(o||(o={}));var c,s,a,u=(i={},(0,l.Z)(i,o.INTEGRATION,"Integration"),(0,l.Z)(i,o.PYTHON,"Standard"),(0,l.Z)(i,o.PYSPARK,"PySpark"),(0,l.Z)(i,o.STREAMING,"Streaming"),i);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules"}(c||(c={})),function(e){e.GROUP="group_by",e.STATUS="status[]",e.TYPE="type[]"}(s||(s={})),function(e){e.STATUS="status",e.TYPE="type"}(a||(a={}));var d=(r={},(0,l.Z)(r,o.PYTHON,"python3"),(0,l.Z)(r,o.PYSPARK,"pysparkkernel"),r)},87372:function(e,n,t){var i,r,o,l,c,s,a,u,d=t(82394),f=t(26304),p=t(26653),h=t(9518),g=t(33591),m=t(23831),b=t(2005),v=t(31012),C=t(19711),x=t(49125),y=t(86673),j=t(28598),S=["children","condensed","inline","level","marketing","spacingBelow"];function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var I=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],C.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||m.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(b.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),_=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||m.Z.content).active,";\n ")})),Z=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],I,g.media.md(i||(i=(0,p.Z)(["\n ","\n "])),v.aQ),g.media.lg(r||(r=(0,p.Z)(["\n ","\n "])),v.aQ),g.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),v.aQ)),P=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],I,v.MJ),N=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],I,g.media.xs(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.sm(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.md(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.lg(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.xl(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI)),M=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],I,v.BL),k=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],I),H=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],I),E=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],I),R=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],I,(function(e){return 1===e.level&&"\n ".concat(v.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(v.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),z=function(e){var n,t=e.children,i=e.condensed,r=e.inline,o=e.level,l=e.marketing,c=e.spacingBelow,s=(0,f.Z)(e,S);r?n=R:0===Number(o)?n=Z:1===Number(o)?n=l?N:P:2===Number(o)?n=M:3===Number(o)?n=k:4===Number(o)?n=H:5===Number(o)&&(n=E);var a=(0,j.jsxs)(n,w(w({},s),{},{level:o,children:[c&&(0,j.jsx)(y.Z,{mb:i?2:3,children:t}),!c&&t]}));return r?a:(0,j.jsx)(_,{children:a})};z.defaultProps={level:3,weightStyle:6},n.Z=z},16953:function(e,n,t){var i=t(28598);n.Z=function(e){var n=e.size;return(0,i.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 8.5H15.5V3.5H20.5V8.5ZM14 9V3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55229 21.5523 10 21 10H15C14.4477 10 14 9.55229 14 9ZM2 5V12.5V14V21.5C2 22.0523 2.44772 22.5 3 22.5H10.5H12H19.5C20.0523 22.5 20.5 22.0523 20.5 21.5V13.5C20.5 12.9477 20.0523 12.5 19.5 12.5H12V5C12 4.44772 11.5523 4 11 4H3C2.44772 4 2 4.44772 2 5ZM10.5 14V21H3.5V14H10.5ZM19 14V21H12V14H19ZM10.5 5.5V12.5H3.5V5.5H10.5Z",fill:"url(#paint0_linear_2842_55048)"}),(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:"paint0_linear_2842_55048",x1:"2",y1:"12.25",x2:"22",y2:"12.25",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4178],{65597:function(n,e,t){t.d(e,{f:function(){return c}});var r=t(9518),i=t(23831),o=t(49125),u=t(73942),c=r.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*o.iI,u.TR,2*o.iI,(function(n){return"\n box-shadow: ".concat((n.theme.shadow||i.Z.shadow).popup,";\n background-color: ").concat((n.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.leftOffset&&"\n left: ".concat(n.leftOffset,"px;\n ")}),(function(n){return n.topOffset&&"\n top: ".concat(n.topOffset,"px;\n ")}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")}))},97496:function(n,e,t){var r=t(75582),i=t(12691),o=t.n(i),u=t(34376),c=t.n(u),l=t(82684),s=t(83455),a=t(60328),d=t(47999),p=t(93461),f=t(67971),h=t(10919),g=t(47409),m=t(86673),j=t(54283),x=t(58180),b=t(19711),Z=t(82531),v=t(23831),_=t(73942),C=t(10503),I=t(65597),E=t(93348),O=t(45838),y=t(49125),P=t(42305),w=t(19395),D=t(9736),k=t(96510),S=t(28598);function A(n){var e=n.cancelingRunId,t=n.disabled,i=n.isLoadingCancelPipeline,o=n.onCancel,u=n.onSuccess,c=n.pipelineRun,p=n.setCancelingRunId,h=n.setErrors,x=n.setShowConfirmationId,O=n.showConfirmationId,w=(0,D.Ct)(),A=c||{},N=A.id,T=A.pipeline_schedule_id,L=A.pipeline_schedule_token,R=A.pipeline_schedule_type,V=A.status,M=i&&N===e&&g.V.RUNNING===V,Y=(0,s.Db)(E.Xm.API===R&&L?Z.ZP.pipeline_runs.pipeline_schedules.useCreateWithParent(T,L):Z.ZP.pipeline_runs.pipeline_schedules.useCreate(T),{onSuccess:function(n){return(0,k.wD)(n,{callback:function(){u()},onErrorCallback:function(n,e){return null===h||void 0===h?void 0:h({errors:e,response:n})}})}}),U=(0,r.Z)(Y,1)[0],F=(0,l.useCallback)((function(){x(null),U({pipeline_run:{execution_date:(0,P.d$)((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0}),pipeline_schedule_id:null===c||void 0===c?void 0:c.pipeline_schedule_id,pipeline_uuid:null===c||void 0===c?void 0:c.pipeline_uuid,variables:null===c||void 0===c?void 0:c.variables}})}),[U,c,x]),H=(0,l.useCallback)((function(){x(null),p(N),o({id:N,status:g.V.CANCELLED})}),[o,N,p,x]);return(0,S.jsxs)("div",{style:{position:"relative"},children:[(0,S.jsx)(a.Z,{backgroundColor:M&&v.Z.accent.yellow,beforeIcon:g.V.INITIAL!==V&&!t&&(0,S.jsxs)(S.Fragment,{children:[g.V.COMPLETED===V&&(0,S.jsx)(C.Jr,{size:2*y.iI}),[g.V.FAILED,g.V.CANCELLED].includes(V)&&(0,S.jsx)(C.Py,{inverted:g.V.CANCELLED===V&&!w,size:2*y.iI}),[g.V.RUNNING].includes(V)&&(0,S.jsx)(j.Z,{color:M?v.Z.status.negative:v.Z.monotone.white,small:!0})]}),borderRadius:_.D7,danger:g.V.FAILED===V&&!w,default:g.V.INITIAL===V,disabled:t||w,loading:!c,onClick:function(){return x(N)},padding:"6px",primary:g.V.RUNNING===V&&!M&&!w,warning:g.V.CANCELLED===V&&!w,children:t?"Ready":M?"Canceling":g.D[V]}),(0,S.jsx)(d.Z,{onClickOutside:function(){return x(null)},open:O===N,children:(0,S.jsxs)(I.f,{children:[[g.V.RUNNING,g.V.INITIAL].includes(V)&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(b.ZP,{bold:!0,color:"#9ECBFF",children:"Run is in progress"}),(0,S.jsx)(m.Z,{mb:1}),(0,S.jsxs)(b.ZP,{children:["This pipeline run is currently ongoing. Retrying will cancel",(0,S.jsx)("br",{}),"the current pipeline run."]}),(0,S.jsx)(b.ZP,{}),(0,S.jsx)(m.Z,{mt:1,children:(0,S.jsxs)(f.Z,{children:[(0,S.jsx)(a.Z,{onClick:function(){H(),F()},children:"Retry run"}),(0,S.jsx)(m.Z,{ml:1}),(0,S.jsx)(a.Z,{onClick:H,children:"Cancel run"})]})})]}),[g.V.CANCELLED,g.V.FAILED,g.V.COMPLETED].includes(V)&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(b.ZP,{bold:!0,color:"#9ECBFF",children:["Run ",V]}),(0,S.jsx)(m.Z,{mb:1}),(0,S.jsx)(b.ZP,{children:"Retry the run with changes you have made to the pipeline."}),(0,S.jsx)(m.Z,{mb:1}),(0,S.jsx)(a.Z,{onClick:F,children:"Retry run"})]})]})})]})}e.Z=function(n){var e=n.disableRowSelect,t=n.emptyMessage,i=void 0===t?"No runs available":t,u=n.fetchPipelineRuns,d=n.onClickRow,j=n.pipelineRuns,v=n.selectedRun,I=n.setErrors,E=(0,l.useState)(null),P=E[0],D=E[1],N=(0,l.useState)(null),T=N[0],L=N[1],R=(0,s.Db)((function(n){var e=n.id,t=n.status;return Z.ZP.pipeline_runs.useUpdate(e)({pipeline_run:{status:t}})}),{onSuccess:function(n){return(0,k.wD)(n,{callback:function(){D(null),u()},onErrorCallback:function(n,e){D(null),null===I||void 0===I||I({errors:e,response:n})}})}}),V=(0,r.Z)(R,2),M=V[0],Y=V[1].isLoading,U=[null,1,2,1,1,null],F=[{uuid:"Status"},{uuid:"Pipeline UUID"},{uuid:"Date"},{uuid:"Trigger"},{uuid:"Block runs"},{uuid:"Completed"},{uuid:"Logs"}];return!e&&d&&(U.push(null),F.push({label:function(){return""},uuid:"action"})),(0,S.jsx)(O.cl,{minHeight:30*y.iI,overflowVisible:!!T,children:0===(null===j||void 0===j?void 0:j.length)?(0,S.jsx)(m.Z,{px:3,py:1,children:(0,S.jsx)(b.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:i})}):(0,S.jsx)(x.Z,{columnFlex:U,columns:F,isSelectedRow:function(n){return!e&&j[n].id===(null===v||void 0===v?void 0:v.id)},onClickRow:e?null:d,rowVerticalPadding:6,rows:null===j||void 0===j?void 0:j.map((function(n,t){var r=n.block_runs_count,i=n.completed_at,l=n.execution_date,s=n.id,x=n.pipeline_schedule_id,Z=n.pipeline_schedule_name,v=n.pipeline_uuid,E=n.status,O=!s&&!E,k=[];return k=t>0&&j[t-1].execution_date===n.execution_date&&j[t-1].pipeline_schedule_id===n.pipeline_schedule_id?[(0,S.jsx)(m.Z,{ml:1,children:(0,S.jsxs)(f.Z,{alignItems:"center",children:[(0,S.jsx)(C.TT,{size:2*y.iI,useStroke:!0}),(0,S.jsx)(a.Z,{borderRadius:_.D7,notClickable:!0,padding:"6px",children:(0,S.jsx)(b.ZP,{muted:!0,children:g.D[E]})})]})},"row_status"),(0,S.jsx)(b.ZP,{default:!0,monospace:!0,muted:!0,children:v},"row_pipeline_uuid"),(0,S.jsx)(b.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_date_retry"),(0,S.jsx)(b.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_trigger_retry"),(0,S.jsx)(o(),{as:"/pipelines/".concat(v,"/runs/").concat(s),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,S.jsx)(h.Z,{bold:!0,muted:!0,children:"See block runs (".concat(r,")")})},"row_block_runs"),(0,S.jsx)(b.ZP,{monospace:!0,muted:!0,children:i&&(0,w.eI)(i).toISOString().split(".")[0]||"-"},"row_completed"),(0,S.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(v,"/logs?pipeline_run_id[]=").concat(s))},children:(0,S.jsx)(C.B4,{default:!0,size:2*y.iI})},"row_logs")]:[(0,S.jsx)(A,{cancelingRunId:P,disabled:O,isLoadingCancelPipeline:Y,onCancel:M,onSuccess:u,pipelineRun:n,setCancelingRunId:D,setErrors:I,setShowConfirmationId:L,showConfirmationId:T},"row_retry_button"),(0,S.jsx)(b.ZP,{default:!0,monospace:!0,children:v},"row_pipeline_uuid"),(0,S.jsx)(b.ZP,{default:!0,monospace:!0,children:l&&(0,w.eI)(l).toISOString().split(".")[0]||"-"},"row_date"),(0,S.jsx)(o(),{as:"/pipelines/".concat(v,"/triggers/").concat(x),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,S.jsx)(h.Z,{bold:!0,sameColorAsText:!0,children:Z})},"row_trigger"),(0,S.jsx)(o(),{as:"/pipelines/".concat(v,"/runs/").concat(s),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,S.jsx)(h.Z,{bold:!0,disabled:O,sameColorAsText:!0,children:O?"":"See block runs (".concat(r,")")})},"row_block_runs"),(0,S.jsx)(b.ZP,{default:!0,monospace:!0,children:i&&(0,w.eI)(i).toISOString().split(".")[0]||"-"},"row_completed"),(0,S.jsx)(a.Z,{default:!0,disabled:O,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(v,"/logs?pipeline_run_id[]=").concat(s))},children:(0,S.jsx)(C.B4,{default:!0,size:2*y.iI})},"row_item_13")],!e&&d&&k.push((0,S.jsx)(p.Z,{flex:1,justifyContent:"flex-end",children:(0,S.jsx)(C._Q,{default:!0,size:2*y.iI})})),k})),uuid:"pipeline-runs"})})}},19395:function(n,e,t){t.d(e,{IJ:function(){return a},Vx:function(){return p},eI:function(){return d},gU:function(){return h},tL:function(){return f},vJ:function(){return g}});var r,i,o=t(82394),u=t(92083),c=t.n(u);function l(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function s(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?l(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function a(n){return null===n||void 0===n?void 0:n.reduce((function(n,e){var t=e.block_uuid,r=e.completed_at,i=e.started_at,u=e.status,l=null;i&&r&&(l=c()(r).valueOf()-c()(i).valueOf());return s(s({},n),{},(0,o.Z)({},t,{runtime:l,status:u}))}),{})}function d(n){if(!n)return null;var e=new Date(c()(n).valueOf()),t=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());return new Date(t)}function p(n){return d(n).toISOString().split(".")[0]}!function(n){n.DAY="day",n.HOUR="hour",n.MINUTE="minute",n.SECOND="second"}(i||(i={}));var f=(r={},(0,o.Z)(r,i.DAY,86400),(0,o.Z)(r,i.HOUR,3600),(0,o.Z)(r,i.MINUTE,60),(0,o.Z)(r,i.SECOND,1),r);function h(n){var e=i.SECOND,t=n;return n%86400===0?(t/=86400,e=i.DAY):n%3600===0?(t/=3600,e=i.HOUR):n%60===0&&(t/=60,e=i.MINUTE),{time:t,unit:e}}function g(n,e){return n*f[e]}},51099:function(n,e,t){t.d(e,{Q:function(){return a}});t(82684);var r=t(60328),i=t(67971),o=t(86673),u=t(10503),c=t(73899),l=t(49125),s=t(28598),a=22;e.Z=function(n){var e=n.page,t=n.maxPages,a=n.onUpdate,d=n.totalPages,p=[],f=t;if(f>d)p=Array.from({length:d},(function(n,e){return e}));else{var h=Math.floor(f/2),g=e-h;e+h>=d?(g=d-f+2,f-=2):e-h<=0?(g=0,f-=2):(f-=4,g=e-Math.floor(f/2)),p=Array.from({length:f},(function(n,e){return e+g}))}return(0,s.jsx)(s.Fragment,{children:d>0&&(0,s.jsxs)(i.Z,{alignItems:"center",children:[(0,s.jsx)(r.Z,{disabled:0===e,onClick:function(){return a(e-1)},children:(0,s.jsx)(u.Hd,{size:1.5*l.iI,stroke:"#AEAEAE"})}),!p.includes(0)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){return a(0)},borderLess:!0,noBackground:!0,children:1})},0),!p.includes(1)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0)]}),p.map((function(n){return(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){n!==e&&a(n)},notClickable:n===e,backgroundColor:n===e&&c.a$,borderLess:!0,noBackground:!0,children:n+1})},n)})),!p.includes(d-1)&&(0,s.jsxs)(s.Fragment,{children:[!p.includes(d-2)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0),(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){return a(d-1)},borderLess:!0,noBackground:!0,children:d})},d-1)]}),(0,s.jsx)(o.Z,{ml:1}),(0,s.jsx)(r.Z,{disabled:e===d-1,onClick:function(){return a(e+1)},children:(0,s.jsx)(u.Kw,{size:1.5*l.iI,stroke:"#AEAEAE"})})]})})}},47409:function(n,e,t){t.d(e,{D:function(){return u},V:function(){return o}});var r,i=t(82394),o=t(66050).V,u=(r={},(0,i.Z)(r,o.CANCELLED,"Cancelled"),(0,i.Z)(r,o.COMPLETED,"Done"),(0,i.Z)(r,o.FAILED,"Failed"),(0,i.Z)(r,o.INITIAL,"Ready"),(0,i.Z)(r,o.RUNNING,"Running"),r)},93348:function(n,e,t){t.d(e,{TR:function(){return d},U5:function(){return l},Xm:function(){return o},Z4:function(){return a},fq:function(){return c},kJ:function(){return s}});var r,i,o,u=t(82394);!function(n){n.API="api",n.EVENT="event",n.TIME="time"}(o||(o={}));var c,l,s,a=(r={},(0,u.Z)(r,o.API,(function(){return"API"})),(0,u.Z)(r,o.EVENT,(function(){return"event"})),(0,u.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive"}(c||(c={})),function(n){n.ONCE="@once",n.HOURLY="@hourly",n.DAILY="@daily",n.WEEKLY="@weekly",n.MONTHLY="@monthly"}(l||(l={})),function(n){n.CREATED_AT="created_at",n.NAME="name",n.PIPELINE="pipeline_uuid",n.STATUS="status",n.TYPE="schedule_type"}(s||(s={}));var d=(i={},(0,u.Z)(i,s.CREATED_AT,"Created at"),(0,u.Z)(i,s.NAME,"Name"),(0,u.Z)(i,s.PIPELINE,"Pipeline"),(0,u.Z)(i,s.STATUS,"Status"),(0,u.Z)(i,s.TYPE,"Type"),i)},42305:function(n,e,t){t.d(e,{A5:function(){return p},AY:function(){return f},BP:function(){return d},JX:function(){return a},OC:function(){return o},Pc:function(){return h},Tz:function(){return s},d$:function(){return l},lJ:function(){return g},n1:function(){return c}});var r=t(92083),i=t.n(r),o="YYYY-MM-DD HH:mm:ss",u="YYYY-MM-DD HH:mm",c="YYYY-MM-DD";function l(n,e){var t=e.dayAgo,r=e.includeSeconds,c=e.utcFormat,l=i()(n),s=u;return c&&(l=l.utc()),t&&(l=l.subtract(1,"days")),r&&(s=o),l.format(s)}function s(n){var e=l((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0});return null!==n&&void 0!==n&&n.dateObj?new Date(e):e}function a(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i().unix(n).format(null!==e&&void 0!==e&&e.withSeconds?o:u)}function d(n,e,t){return i()(n).utc().hours(+e).minutes(+t).format()}function p(n){return i()(n).unix()}function f(n,e,t){return"".concat(n.toISOString().split("T")[0]," ").concat(e,":").concat(t)}function h(n){var e=i().unix(+n).utc();return{date:e.toDate(),hour:String(e.hour()),minute:String(e.minute())}}function g(n){return n.padStart(2,"0")}},33766:function(n,e,t){t.d(e,{g_:function(){return p},u7:function(){return d}});var r=t(75582),i=t(82394),o=t(34376),u=t.n(o),c=t(59e3),l=t(24224);function s(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function a(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,i.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}function d(n){var e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,o=t.pushHistory,l=i?{}:(0,c.iV)();e=window.location.pathname;var s=o?u().push:u().replace,d=a(a({},l),n);Object.entries(n).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],i=e[1];"undefined"!==typeof i&&null!==i||delete d[t]}));var p=(0,c.uM)(d);p.length>=1&&(p="?".concat(p));var f="".concat(e.split("?")[0]).concat(p);return s(u().router.pathname,f,{shallow:!0})}function p(n,e,t){var i=t.addingMultipleValues,o=t.isList,u=t.itemsPerPage,c=t.pushHistory,s=void 0!==c&&c,p=t.resetLimitParams,f=a({},n);i?Object.entries(e).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],i=e[1];if(Array.isArray(i)){var o="".concat(t,"[]");f[o]=i.map(String)}})):o?Object.entries(e).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],i=e[1],o=String(i),u="".concat(t,"[]"),c=f[u];c&&Array.isArray(c)?(c=c.map(String)).includes(o)?f[u]=(0,l.Od)(c,(function(n){return n===o})):f[u]=c.concat(o):f[u]=[o]})):f=a(a({},f),e),p&&(f._limit=u||20,f._offset=0),d(f,{pushHistory:s})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4538],{52136:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(47329),o=n.n(r),a=n(82684),i=n(63588),c=n.n(i),u=n(5237),l=n(29989),s=n(81352),f=n(46119),p=n(88543),d=n(12765),y=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function h(e){var t=e.top,n=void 0===t?0:t,r=e.left,o=void 0===r?0:r,i=e.scale,h=e.height,b=e.stroke,m=void 0===b?"#eaf0f6":b,g=e.strokeWidth,x=void 0===g?1:g,O=e.strokeDasharray,w=e.className,S=e.numTicks,j=void 0===S?10:S,k=e.lineStyle,E=e.offset,C=e.tickValues,P=e.children,R=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,y),Z=null!=C?C:(0,f.Z)(i,j),D=(null!=E?E:0)+(0,d.Z)(i)/2,N=Z.map((function(e,t){var n,r=(null!=(n=(0,p.Z)(i(e)))?n:0)+D;return{index:t,from:new s.Z({x:r,y:0}),to:new s.Z({x:r,y:h})}}));return a.createElement(l.Z,{className:c()("visx-columns",w),top:n,left:o},P?P({lines:N}):N.map((function(e){var t=e.from,n=e.to,r=e.index;return a.createElement(u.Z,v({key:"column-line-"+r,from:t,to:n,stroke:m,strokeWidth:x,strokeDasharray:O,style:k},R))})))}h.propTypes={tickValues:o().array,height:o().number.isRequired}},53655:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(47329),o=n.n(r),a=n(82684),i=n(63588),c=n.n(i),u=n(29989),l=["className","top","left","data","binWidth","binHeight","x0","gap","xScale","yScale","colorScale","opacityScale","bins","count","children"];function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function f(e){var t=e.className,n=e.top,r=e.left,o=e.data,i=void 0===o?[]:o,f=e.binWidth,p=void 0===f?6:f,d=e.binHeight,y=void 0===d?6:d,v=e.x0,h=void 0===v?0:v,b=e.gap,m=void 0===b?1:b,g=e.xScale,x=e.yScale,O=e.colorScale,w=void 0===O?function(){}:O,S=e.opacityScale,j=void 0===S?function(){return 1}:S,k=e.bins,E=void 0===k?function(e){return null==e?void 0:e.bins}:k,C=e.count,P=void 0===C?function(e){return null==e?void 0:e.count}:C,R=e.children,Z=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,l),D=p-m,N=y-m,T=i.map((function(e,t){var n=g(t);return E(e).map((function(r,o){var a=P(r);return{bin:r,row:o,column:t,datum:e,width:D,height:N,gap:m,count:a,x:n+h,y:x(o)+m,color:w(a),opacity:j(a)}}))}));return R?a.createElement(a.Fragment,null,R(T)):a.createElement(u.Z,{className:"visx-heatmap-rects",top:n,left:r},T.map((function(e){return e.map((function(e){return a.createElement("rect",s({key:"heatmap-tile-rect-"+e.row+"-"+e.column,className:c()("visx-heatmap-rect",t),width:e.width,height:e.height,x:e.x,y:e.y,fill:e.color,fillOpacity:e.opacity},Z))}))})))}f.propTypes={data:o().array,left:o().number,top:o().number,binWidth:o().number,binHeight:o().number,x0:o().number,gap:o().number,xScale:o().func.isRequired,yScale:o().func.isRequired,bins:o().func,count:o().func,className:o().string,children:o().func}},95422:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(82684),o=n(63588),a=n.n(o),i=n(29989),c=n(65743),u=n(53989),l=["data","className","top","left","x0","x0Scale","x1Scale","yScale","color","keys","height","children"];function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function f(e){var t=e.data,n=e.className,o=e.top,f=e.left,p=e.x0,d=e.x0Scale,y=e.x1Scale,v=e.yScale,h=e.color,b=e.keys,m=e.height,g=e.children,x=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,l),O=(0,u.Z)(y),w=t.map((function(e,t){return{index:t,x0:d(p(e)),bars:b.map((function(t,n){var r=e[t];return{index:n,key:t,value:r,width:O,x:y(t)||0,y:v(r)||0,color:h(t,n),height:m-(v(r)||0)}}))}}));return g?r.createElement(r.Fragment,null,g(w)):r.createElement(i.Z,{className:a()("visx-bar-group",n),top:o,left:f},w.map((function(e){return r.createElement(i.Z,{key:"bar-group-"+e.index+"-"+e.x0,left:e.x0},e.bars.map((function(t){return r.createElement(c.Z,s({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},x))})))})))}},39048:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(82684),o=n(63588),a=n.n(o),i=n(29989),c=n(65743),u=n(53989),l=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function f(e){var t=e.data,n=e.className,o=e.top,f=e.left,p=e.x,d=void 0===p?function(){return 0}:p,y=e.y0,v=e.y0Scale,h=e.y1Scale,b=e.xScale,m=e.color,g=e.keys,x=(e.width,e.children),O=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,l),w=(0,u.Z)(h),S=t.map((function(e,t){return{index:t,y0:v(y(e))||0,bars:g.map((function(t,n){var r=e[t];return{index:n,key:t,value:r,height:w,x:d(r)||0,y:h(t)||0,color:m(t,n),width:b(r)||0}}))}}));return x?r.createElement(r.Fragment,null,x(S)):r.createElement(i.Z,{className:a()("visx-bar-group-horizontal",n),top:o,left:f},S.map((function(e){return r.createElement(i.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map((function(t){return r.createElement(c.Z,s({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},O))})))})))}},85587:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(82684),o=n(63588),a=n.n(o),i=n(39309),c=["children","data","x","y","fill","className","curve","innerRef","defined"];function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function l(e){var t=e.children,n=e.data,o=void 0===n?[]:n,l=e.x,s=e.y,f=e.fill,p=void 0===f?"transparent":f,d=e.className,y=e.curve,v=e.innerRef,h=e.defined,b=void 0===h?function(){return!0}:h,m=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,c),g=(0,i.jv)({x:l,y:s,defined:b,curve:y});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",u({ref:v,className:a()("visx-linepath",d),d:g(o)||"",fill:p,strokeLinecap:"round"},m))}},39309:function(e,t,n){"use strict";n.d(t,{SO:function(){return i},jv:function(){return c}});var r=n(48167),o=n(92201),a=n(49894);function i(e){var t=void 0===e?{}:e,n=t.x,o=t.x0,i=t.x1,c=t.y,u=t.y0,l=t.y1,s=t.defined,f=t.curve,p=(0,r.Z)();return n&&(0,a.Z)(p.x,n),o&&(0,a.Z)(p.x0,o),i&&(0,a.Z)(p.x1,i),c&&(0,a.Z)(p.y,c),u&&(0,a.Z)(p.y0,u),l&&(0,a.Z)(p.y1,l),s&&p.defined(s),f&&p.curve(f),p}function c(e){var t=void 0===e?{}:e,n=t.x,r=t.y,i=t.defined,c=t.curve,u=(0,o.Z)();return n&&(0,a.Z)(u.x,n),r&&(0,a.Z)(u.y,r),i&&u.defined(i),c&&u.curve(c),u}},98889:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(47329),o=n.n(r),a=n(82684),i=n(63588),c=n.n(i),u=n(39309),l=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function f(e){var t=e.children,n=e.x,r=e.x0,o=e.x1,i=e.y,f=e.y0,p=e.y1,d=e.data,y=void 0===d?[]:d,v=e.defined,h=void 0===v?function(){return!0}:v,b=e.className,m=e.curve,g=e.innerRef,x=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,l),O=(0,u.SO)({x:n,x0:r,x1:o,y:i,y0:f,y1:p,defined:h,curve:m});return t?a.createElement(a.Fragment,null,t({path:O})):a.createElement("path",s({ref:g,className:c()("visx-area",b),d:O(y)||""},x))}var p=["id","children"];function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}function y(e){var t=e.id,n=e.children,r=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,p);return a.createElement("defs",null,a.createElement("clipPath",d({id:t},r),n))}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function h(e){var t=e.className,n=e.curve,r=e.clipAboveTo,o=e.clipBelowTo,i=e.data,u=e.defined,l=e.x,s=e.y0,p=e.y1,d=e.aboveAreaProps,h=e.belowAreaProps,b=e.id,m=void 0===b?"":b;return a.createElement("g",{className:c()("visx-threshold",t)},a.createElement(f,{curve:n,data:i,x:l,y1:p,defined:u},(function(e){var t=e.path,n=null,c=null;return n=t.y0(o)(i),c=t.y0(r)(i),a.createElement("g",null,a.createElement(y,{id:"threshold-clip-below-"+m},a.createElement("path",{d:n||""})),a.createElement(y,{id:"threshold-clip-above-"+m},a.createElement("path",{d:c||""})))})),a.createElement(f,v({curve:n,data:i,defined:u,x:l,y0:s,y1:p,strokeWidth:0,clipPath:"url(#threshold-clip-below-"+m+")"},h)),a.createElement(f,v({curve:n,data:i,defined:u,x:l,y0:s,y1:p,strokeWidth:0,clipPath:"url(#threshold-clip-above-"+m+")"},d)))}y.propTypes={id:o().string.isRequired,children:o().node},h.propTypes={className:o().string,clipAboveTo:o().oneOfType([o().func,o().number]).isRequired,clipBelowTo:o().oneOfType([o().func,o().number]).isRequired,id:o().string.isRequired,data:o().array.isRequired,defined:o().func,x:o().oneOfType([o().func,o().number]).isRequired,y0:o().oneOfType([o().func,o().number]).isRequired,y1:o().oneOfType([o().func,o().number]).isRequired}},90659:function(e,t,n){"use strict";var r=n(67403),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,i,c,u,l,s=!1;t||(t={}),n=t.debug||!1;try{if(i=r(),c=document.createRange(),u=document.getSelection(),(l=document.createElement("span")).textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=o[t.format]||o.default;window.clipboardData.setData(a,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(l),c.selectNodeContents(l),u.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");s=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(c):u.removeAllRanges()),l&&document.body.removeChild(l),i()}return s}},11984:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=c(n(82684)),a=c(n(90659)),i=["text","onCopy","options","children"];function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function y(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(u,e);var t,n,r,c=y(u);function u(){var e;f(this,u);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(h(e=c.call.apply(c,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,i=n.onCopy,c=n.children,u=n.options,l=o.default.Children.only(c),s=(0,a.default)(r,u);i&&i(r,s),l&&l.props&&"function"===typeof l.props.onClick&&l.props.onClick(t)})),e}return t=u,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=s(e,i),r=o.default.Children.only(t);return o.default.cloneElement(r,l(l({},n),{},{onClick:this.onClick}))}}])&&p(t.prototype,n),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.default.PureComponent);t.CopyToClipboard=g,m(g,"defaultProps",{onCopy:void 0,options:void 0})},64866:function(e,t,n){"use strict";var r=n(11984).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},44152:function(e,t,n){"use strict";n.d(t,{r:function(){return l}});var r=n(82684);const o=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"===typeof e?e(t):e;if(o!==t){const e=t;t=r?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,a={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,o,a),a};var a=n(81550);const{useSyncExternalStoreWithSelector:i}=a;const c=e=>{const t="function"===typeof e?(e=>e?o(e):o)(e):e,n=(e,n)=>function(e,t=e.getState,n){const o=i(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,r.useDebugValue)(o),o}(t,e,n);return Object.assign(n,t),n};var u=e=>e?c(e):c;const l=e=>{const t=u((()=>e)),n=(Object.keys(e),(e,n)=>{t.setState((t=>{return{[e]:(r=t[e],o=n,"function"==typeof o?o(r):o)};var r,o}))});return{useGlobalState:e=>{const o=(0,r.useCallback)((t=>t[e]),[e]);return[t(o),(0,r.useCallback)((t=>n(e,t)),[e])]},getGlobalState:e=>t.getState()[e],setGlobalState:n,subscribe:(e,n)=>{t.subscribe(((t,r)=>{t[e]!==r[e]&&n(t[e])}))}}}},67403:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},1589:function(e,t,n){"use strict";var r=n(82684);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=r.useState,i=r.useEffect,c=r.useLayoutEffect,u=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(r){return!0}}var s="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return c((function(){o.value=n,o.getSnapshot=t,l(o)&&s({inst:o})}),[e,n,t]),i((function(){return l(o)&&s({inst:o}),e((function(){l(o)&&s({inst:o})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:s},73847:function(e,t,n){"use strict";var r=n(82684),o=n(48216);var a="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=o.useSyncExternalStore,c=r.useRef,u=r.useEffect,l=r.useMemo,s=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=c(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=l((function(){function e(e){if(!u){if(u=!0,i=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return c=t}return c=e}if(t=c,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,c=n)}var i,c,u=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,o]);var d=i(e,f[0],f[1]);return u((function(){p.hasValue=!0,p.value=d}),[d]),s(d),d}},48216:function(e,t,n){"use strict";e.exports=n(1589)},81550:function(e,t,n){"use strict";e.exports=n(73847)}}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4538],{52136:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(47329),o=n.n(r),a=n(82684),i=n(63588),c=n.n(i),u=n(5237),l=n(29989),s=n(81352),f=n(46119),p=n(88543),d=n(12765),y=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function h(e){var t=e.top,n=void 0===t?0:t,r=e.left,o=void 0===r?0:r,i=e.scale,h=e.height,b=e.stroke,m=void 0===b?"#eaf0f6":b,g=e.strokeWidth,x=void 0===g?1:g,O=e.strokeDasharray,w=e.className,S=e.numTicks,j=void 0===S?10:S,k=e.lineStyle,E=e.offset,C=e.tickValues,P=e.children,R=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,y),Z=null!=C?C:(0,f.Z)(i,j),D=(null!=E?E:0)+(0,d.Z)(i)/2,N=Z.map((function(e,t){var n,r=(null!=(n=(0,p.Z)(i(e)))?n:0)+D;return{index:t,from:new s.Z({x:r,y:0}),to:new s.Z({x:r,y:h})}}));return a.createElement(l.Z,{className:c()("visx-columns",w),top:n,left:o},P?P({lines:N}):N.map((function(e){var t=e.from,n=e.to,r=e.index;return a.createElement(u.Z,v({key:"column-line-"+r,from:t,to:n,stroke:m,strokeWidth:x,strokeDasharray:O,style:k},R))})))}h.propTypes={tickValues:o().array,height:o().number.isRequired}},53655:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(47329),o=n.n(r),a=n(82684),i=n(63588),c=n.n(i),u=n(29989),l=["className","top","left","data","binWidth","binHeight","x0","gap","xScale","yScale","colorScale","opacityScale","bins","count","children"];function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function f(e){var t=e.className,n=e.top,r=e.left,o=e.data,i=void 0===o?[]:o,f=e.binWidth,p=void 0===f?6:f,d=e.binHeight,y=void 0===d?6:d,v=e.x0,h=void 0===v?0:v,b=e.gap,m=void 0===b?1:b,g=e.xScale,x=e.yScale,O=e.colorScale,w=void 0===O?function(){}:O,S=e.opacityScale,j=void 0===S?function(){return 1}:S,k=e.bins,E=void 0===k?function(e){return null==e?void 0:e.bins}:k,C=e.count,P=void 0===C?function(e){return null==e?void 0:e.count}:C,R=e.children,Z=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,l),D=p-m,N=y-m,T=i.map((function(e,t){var n=g(t);return E(e).map((function(r,o){var a=P(r);return{bin:r,row:o,column:t,datum:e,width:D,height:N,gap:m,count:a,x:n+h,y:x(o)+m,color:w(a),opacity:j(a)}}))}));return R?a.createElement(a.Fragment,null,R(T)):a.createElement(u.Z,{className:"visx-heatmap-rects",top:n,left:r},T.map((function(e){return e.map((function(e){return a.createElement("rect",s({key:"heatmap-tile-rect-"+e.row+"-"+e.column,className:c()("visx-heatmap-rect",t),width:e.width,height:e.height,x:e.x,y:e.y,fill:e.color,fillOpacity:e.opacity},Z))}))})))}f.propTypes={data:o().array,left:o().number,top:o().number,binWidth:o().number,binHeight:o().number,x0:o().number,gap:o().number,xScale:o().func.isRequired,yScale:o().func.isRequired,bins:o().func,count:o().func,className:o().string,children:o().func}},95422:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(82684),o=n(63588),a=n.n(o),i=n(29989),c=n(65743),u=n(53989),l=["data","className","top","left","x0","x0Scale","x1Scale","yScale","color","keys","height","children"];function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function f(e){var t=e.data,n=e.className,o=e.top,f=e.left,p=e.x0,d=e.x0Scale,y=e.x1Scale,v=e.yScale,h=e.color,b=e.keys,m=e.height,g=e.children,x=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,l),O=(0,u.Z)(y),w=t.map((function(e,t){return{index:t,x0:d(p(e)),bars:b.map((function(t,n){var r=e[t];return{index:n,key:t,value:r,width:O,x:y(t)||0,y:v(r)||0,color:h(t,n),height:m-(v(r)||0)}}))}}));return g?r.createElement(r.Fragment,null,g(w)):r.createElement(i.Z,{className:a()("visx-bar-group",n),top:o,left:f},w.map((function(e){return r.createElement(i.Z,{key:"bar-group-"+e.index+"-"+e.x0,left:e.x0},e.bars.map((function(t){return r.createElement(c.Z,s({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},x))})))})))}},39048:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(82684),o=n(63588),a=n.n(o),i=n(29989),c=n(65743),u=n(53989),l=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function f(e){var t=e.data,n=e.className,o=e.top,f=e.left,p=e.x,d=void 0===p?function(){return 0}:p,y=e.y0,v=e.y0Scale,h=e.y1Scale,b=e.xScale,m=e.color,g=e.keys,x=(e.width,e.children),O=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,l),w=(0,u.Z)(h),S=t.map((function(e,t){return{index:t,y0:v(y(e))||0,bars:g.map((function(t,n){var r=e[t];return{index:n,key:t,value:r,height:w,x:d(r)||0,y:h(t)||0,color:m(t,n),width:b(r)||0}}))}}));return x?r.createElement(r.Fragment,null,x(S)):r.createElement(i.Z,{className:a()("visx-bar-group-horizontal",n),top:o,left:f},S.map((function(e){return r.createElement(i.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map((function(t){return r.createElement(c.Z,s({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},O))})))})))}},85587:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(82684),o=n(63588),a=n.n(o),i=n(39309),c=["children","data","x","y","fill","className","curve","innerRef","defined"];function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function l(e){var t=e.children,n=e.data,o=void 0===n?[]:n,l=e.x,s=e.y,f=e.fill,p=void 0===f?"transparent":f,d=e.className,y=e.curve,v=e.innerRef,h=e.defined,b=void 0===h?function(){return!0}:h,m=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,c),g=(0,i.jv)({x:l,y:s,defined:b,curve:y});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",u({ref:v,className:a()("visx-linepath",d),d:g(o)||"",fill:p,strokeLinecap:"round"},m))}},39309:function(e,t,n){"use strict";n.d(t,{SO:function(){return i},jv:function(){return c}});var r=n(48167),o=n(92201),a=n(13004);function i(e){var t=void 0===e?{}:e,n=t.x,o=t.x0,i=t.x1,c=t.y,u=t.y0,l=t.y1,s=t.defined,f=t.curve,p=(0,r.Z)();return n&&(0,a.Z)(p.x,n),o&&(0,a.Z)(p.x0,o),i&&(0,a.Z)(p.x1,i),c&&(0,a.Z)(p.y,c),u&&(0,a.Z)(p.y0,u),l&&(0,a.Z)(p.y1,l),s&&p.defined(s),f&&p.curve(f),p}function c(e){var t=void 0===e?{}:e,n=t.x,r=t.y,i=t.defined,c=t.curve,u=(0,o.Z)();return n&&(0,a.Z)(u.x,n),r&&(0,a.Z)(u.y,r),i&&u.defined(i),c&&u.curve(c),u}},98889:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(47329),o=n.n(r),a=n(82684),i=n(63588),c=n.n(i),u=n(39309),l=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function f(e){var t=e.children,n=e.x,r=e.x0,o=e.x1,i=e.y,f=e.y0,p=e.y1,d=e.data,y=void 0===d?[]:d,v=e.defined,h=void 0===v?function(){return!0}:v,b=e.className,m=e.curve,g=e.innerRef,x=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,l),O=(0,u.SO)({x:n,x0:r,x1:o,y:i,y0:f,y1:p,defined:h,curve:m});return t?a.createElement(a.Fragment,null,t({path:O})):a.createElement("path",s({ref:g,className:c()("visx-area",b),d:O(y)||""},x))}var p=["id","children"];function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}function y(e){var t=e.id,n=e.children,r=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,p);return a.createElement("defs",null,a.createElement("clipPath",d({id:t},r),n))}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function h(e){var t=e.className,n=e.curve,r=e.clipAboveTo,o=e.clipBelowTo,i=e.data,u=e.defined,l=e.x,s=e.y0,p=e.y1,d=e.aboveAreaProps,h=e.belowAreaProps,b=e.id,m=void 0===b?"":b;return a.createElement("g",{className:c()("visx-threshold",t)},a.createElement(f,{curve:n,data:i,x:l,y1:p,defined:u},(function(e){var t=e.path,n=null,c=null;return n=t.y0(o)(i),c=t.y0(r)(i),a.createElement("g",null,a.createElement(y,{id:"threshold-clip-below-"+m},a.createElement("path",{d:n||""})),a.createElement(y,{id:"threshold-clip-above-"+m},a.createElement("path",{d:c||""})))})),a.createElement(f,v({curve:n,data:i,defined:u,x:l,y0:s,y1:p,strokeWidth:0,clipPath:"url(#threshold-clip-below-"+m+")"},h)),a.createElement(f,v({curve:n,data:i,defined:u,x:l,y0:s,y1:p,strokeWidth:0,clipPath:"url(#threshold-clip-above-"+m+")"},d)))}y.propTypes={id:o().string.isRequired,children:o().node},h.propTypes={className:o().string,clipAboveTo:o().oneOfType([o().func,o().number]).isRequired,clipBelowTo:o().oneOfType([o().func,o().number]).isRequired,id:o().string.isRequired,data:o().array.isRequired,defined:o().func,x:o().oneOfType([o().func,o().number]).isRequired,y0:o().oneOfType([o().func,o().number]).isRequired,y1:o().oneOfType([o().func,o().number]).isRequired}},90659:function(e,t,n){"use strict";var r=n(67403),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,i,c,u,l,s=!1;t||(t={}),n=t.debug||!1;try{if(i=r(),c=document.createRange(),u=document.getSelection(),(l=document.createElement("span")).textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=o[t.format]||o.default;window.clipboardData.setData(a,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(l),c.selectNodeContents(l),u.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");s=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(c):u.removeAllRanges()),l&&document.body.removeChild(l),i()}return s}},11984:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=c(n(82684)),a=c(n(90659)),i=["text","onCopy","options","children"];function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function y(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(u,e);var t,n,r,c=y(u);function u(){var e;f(this,u);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(h(e=c.call.apply(c,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,i=n.onCopy,c=n.children,u=n.options,l=o.default.Children.only(c),s=(0,a.default)(r,u);i&&i(r,s),l&&l.props&&"function"===typeof l.props.onClick&&l.props.onClick(t)})),e}return t=u,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=s(e,i),r=o.default.Children.only(t);return o.default.cloneElement(r,l(l({},n),{},{onClick:this.onClick}))}}])&&p(t.prototype,n),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.default.PureComponent);t.CopyToClipboard=g,m(g,"defaultProps",{onCopy:void 0,options:void 0})},64866:function(e,t,n){"use strict";var r=n(11984).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},44152:function(e,t,n){"use strict";n.d(t,{r:function(){return l}});var r=n(82684);const o=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"===typeof e?e(t):e;if(o!==t){const e=t;t=r?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,a={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,o,a),a};var a=n(81550);const{useSyncExternalStoreWithSelector:i}=a;const c=e=>{const t="function"===typeof e?(e=>e?o(e):o)(e):e,n=(e,n)=>function(e,t=e.getState,n){const o=i(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,r.useDebugValue)(o),o}(t,e,n);return Object.assign(n,t),n};var u=e=>e?c(e):c;const l=e=>{const t=u((()=>e)),n=(Object.keys(e),(e,n)=>{t.setState((t=>{return{[e]:(r=t[e],o=n,"function"==typeof o?o(r):o)};var r,o}))});return{useGlobalState:e=>{const o=(0,r.useCallback)((t=>t[e]),[e]);return[t(o),(0,r.useCallback)((t=>n(e,t)),[e])]},getGlobalState:e=>t.getState()[e],setGlobalState:n,subscribe:(e,n)=>{t.subscribe(((t,r)=>{t[e]!==r[e]&&n(t[e])}))}}}},67403:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},1589:function(e,t,n){"use strict";var r=n(82684);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=r.useState,i=r.useEffect,c=r.useLayoutEffect,u=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(r){return!0}}var s="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return c((function(){o.value=n,o.getSnapshot=t,l(o)&&s({inst:o})}),[e,n,t]),i((function(){return l(o)&&s({inst:o}),e((function(){l(o)&&s({inst:o})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:s},73847:function(e,t,n){"use strict";var r=n(82684),o=n(48216);var a="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=o.useSyncExternalStore,c=r.useRef,u=r.useEffect,l=r.useMemo,s=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=c(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=l((function(){function e(e){if(!u){if(u=!0,i=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return c=t}return c=e}if(t=c,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,c=n)}var i,c,u=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,o]);var d=i(e,f[0],f[1]);return u((function(){p.hasValue=!0,p.value=d}),[d]),s(d),d}},48216:function(e,t,n){"use strict";e.exports=n(1589)},81550:function(e,t,n){"use strict";e.exports=n(73847)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5141],{33699:function(n,t,e){e.d(t,{Z:function(){return k}});var r=e(89565),i=e.n(r),o=e(82684),a=e(47999),c=e(82635),u=e(19711),s=e(9518),l=e(23831),d=e(49125),f=e(37391),p=(0,s.css)([""," ",""],(function(n){return!n.width&&"\n width: 100%;\n "}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")})),g=s.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-11d4rgl-0"})([""," "," height:100%;overflow:auto;position:absolute;",""],p,f.w5,(function(n){return"\n background-color: ".concat((n.theme.background||l.Z.background).codeTextarea,";\n ")})),h=s.default.div.withConfig({displayName:"indexstyle__InnerStyle",componentId:"sc-11d4rgl-1"})([""," padding:","px;"],p,d.cd*d.iI),y=s.default.div.withConfig({displayName:"indexstyle__LineStyle",componentId:"sc-11d4rgl-2"})(["height:","px;"],20),v=(0,s.css)(["@keyframes cursor-blink{0%{opacity:0;}}::before{","}::after{","}"],(function(n){return n.focusBeginning&&"\n position: absolute;\n background-color: ".concat((n.theme.accent||l.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(d.iI,"px;\n opacity: 0.3;\n ")}),(function(n){return n.focused&&"\n background-color: ".concat((n.theme.accent||l.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(d.iI,"px;\n opacity: 0.3;\n ")})),m=s.default.div.withConfig({displayName:"indexstyle__InputStyle",componentId:"sc-11d4rgl-3"})(["align-items:center;display:flex;gap:2px;",""],v),b=s.default.span.withConfig({displayName:"indexstyle__CharacterStyle",componentId:"sc-11d4rgl-4"})([""," ::after{","}"],v,(function(n){return n.focused&&"\n position: absolute;\n "})),S=e(16115),x=e(51504),T=e(66653),w=e(41150),P=e(28598);function E(n,t){var e="undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!e){if(Array.isArray(n)||(e=function(n,t){if(!n)return;if("string"===typeof n)return I(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);"Object"===e&&n.constructor&&(e=n.constructor.name);if("Map"===e||"Set"===e)return Array.from(n);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return I(n,t)}(n))||t&&n&&"number"===typeof n.length){e&&(n=e);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){e=e.call(n)},n:function(){var n=e.next();return a=n.done,n},e:function(n){c=!0,o=n},f:function(){try{a||null==e.return||e.return()}finally{if(c)throw o}}}}function I(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}var k=function(n){var t=n.interruptKernel,e=n.lastMessage,r=n.onFocus,s=n.sendMessage,l=n.uuid,d=void 0===l?"terminal":l,f=n.width,p=(0,o.useRef)(null),v=(0,o.useRef)(null),I=(0,o.useState)(""),k=I[0],A=I[1],N=(0,o.useState)(0),C=N[0],_=N[1],j=(0,o.useState)(""),O=j[0],M=j[1],R=(0,o.useState)(0),Z=R[0],G=R[1],U=(0,o.useState)([]),X=U[0],F=U[1],Y=(0,o.useState)(!1),D=Y[0],L=Y[1],K=(0,o.useState)([]),Q=(K[0],K[1]),B=(0,o.useState)(),H=B[0],z=B[1];(0,o.useEffect)((function(){if(e){var n=JSON.parse(e.data);z((function(t){var e=t||"";return"stdout"===n[0]?e+n[1]:e}))}}),[e,d]);var J=(0,o.useMemo)((function(){return H?H.split("\n").filter((function(n){return!n.includes("# Mage terminal settings command")})).map((function(n){return{data:n,type:c.Gi.TEXT}})):[]}),[H]);(0,o.useEffect)((function(){if(p.current&&v.current){var n=v.current.getBoundingClientRect().height;p.current.scrollTo(0,n)}}),[J,p,v]);var V=(0,w.y)(),q=V.registerOnKeyDown,$=V.setDisableGlobalKeyboardShortcuts,W=V.unregisterOnKeyDown;(0,o.useEffect)((function(){return function(){W(d)}}),[W,d]);var nn=(0,o.useCallback)((function(){G((function(n){return n>0?n-1:n}))}),[]),tn=(0,o.useCallback)((function(){G((function(n){return n<=k.length?n+1:n}))}),[k]),en=(0,o.useCallback)((function(n){var t=(null===n||void 0===n?void 0:n.split(/\n/))||[];if(t.length>1){var e=t.slice(0,-1);e[0]=k+e[0];var r=e.map((function(n,t){return{command:0===t,data:n,type:c.Gi.TEXT}}));_(X.length+e.length),F((function(n){return n.concat(e)})),Q((function(n){return n.concat(r)})),M((function(n){return n+e.join("\n")}));var i=(t.slice(-1)[0]||"").trim();A(i),G(i.length)}else A((function(t){return t+n})),G(k.length+n.length)}),[k,X]);q(d,(function(n,t,e){var r=n.code,i=n.key;if(D)if((0,T.j)(n),(0,x.y)([S.PQ,S.VS],t)){var o=O+k;(null===o||void 0===o?void 0:o.length)>=0&&(s(JSON.stringify(["stdin",o])),s(JSON.stringify(["stdin","\x03"])),G(0)),M(""),A("")}else if(S.Qj!==r||t[S.zX])if((0,x.y)([S.QK],t))nn();else if((0,x.y)([S.DY],t))tn();else if((0,x.y)([S.Bu],t)){if(X.length>=1){var a,c=Math.max(0,C-1);A(X[c]),_(c),G((null===(a=X[c])||void 0===a?void 0:a.length)||0)}}else if((0,x.y)([S.kD],t)){if(X.length>=1){var u=Math.min(X.length,C+1),l=X[u]||"";A(l),_(u),G(l.length)}}else if((0,x.y)([S.Uq],t)){var d=O+k;s(JSON.stringify(["stdin",d])),s(JSON.stringify(["stdin","\r"])),(null===d||void 0===d?void 0:d.length)>=2&&(_(X.length+1),F((function(n){return n.concat(k)})),G(0)),M(""),A("")}else if((0,x.y)([S.zX,S.VS],t))navigator.clipboard.writeText(window.getSelection().toString());else if((0,x.y)([S.zX,S.Pd],t)||(0,x.y)([S.PQ,S.Pd],t)){var f,p,g,h,y;"undefined"===typeof(null===(f=navigator)||void 0===f?void 0:f.clipboard)?alert('Clipboard pasting is not allowed in insecure contexts. If your Mage deployment is not secure but you still want to use clipboard paste, you can override this setting (which should only be done temporarily) on Chrome browsers by going to "chrome://flags/#unsafely-treat-insecure-origin-as-secure", adding your origin to "Insecure origins treated as secure", and enabling that setting.'):null!==(p=navigator)&&void 0!==p&&null!==(g=p.clipboard)&&void 0!==g&&g.readText?navigator.clipboard.readText().then(en).catch((function(n){return alert("".concat(n,'\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.'))})):null!==(h=navigator)&&void 0!==h&&null!==(y=h.clipboard)&&void 0!==y&&y.read?navigator.clipboard.read().then((function(n){var t,e=E(n);try{for(e.s();!(t=e.n()).done;){var r,i=t.value,o=E(i.types);try{for(o.s();!(r=o.n()).done;){var a=r.value;if("text/plain"===a)return i.getType(a)}}catch(c){o.e(c)}finally{o.f()}}}catch(c){e.e(c)}finally{e.f()}})).then((function(n){return n.text()})).then(en).catch((function(n){return alert("".concat(n,'\n For Firefox, users need to allow clipboard paste by setting the "dom.events.asyncClipboard.read" preference in "about:config" to "true" and clicking "Paste" in the context menu that appears.'))})):alert('If pasting is not working properly, you may need to adjust some settings in your browser.\n\n For Firefox, users need to allow clipboard paste by setting both the "dom.events.asyncClipboard.clipboardItem" and "dom.events.asyncClipboard.read" preferences in "about:config" to "true" and clicking "Paste" in the context menu that appears.\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.\n')}else t[S.zX]||t[S.PQ]||1!==i.length||(A((function(n){return n.slice(0,Z)+i+n.slice(Z)})),tn());else{var v=Math.max(0,Z-1);A((function(n){return n.slice(0,v)+n.slice(Z)})),G((function(n){return Math.max(0,n-1)}))}}),[k,X,C,D,t,A,F,_,Q,d]);var rn=(0,o.useMemo)((function(){var n;return null===(n=J[J.length-1])||void 0===n?void 0:n.data}),[J]);return(0,P.jsx)(g,{ref:p,width:f,children:(0,P.jsx)(a.Z,{isOpen:!0,onClick:function(){null===r||void 0===r||r(),L(!0),$(!0)},onClickOutside:function(){L(!1),$(!1)},style:{minHeight:"100%"},children:(0,P.jsxs)(h,{ref:v,width:f,children:[null===J||void 0===J?void 0:J.reduce((function(n,t,e){if(e==J.length-1)return n;var r=t||{},o=r.command,a=r.data,s=r.type,l=[];l=(l=Array.isArray(a)?a:[a]).filter((function(n){return n}));var d=[];return l.forEach((function(n,t){var r;if(c.jU.includes(s)&&(r=(0,P.jsx)(u.ZP,{monospace:!0,noWrapping:!0,pre:!0,children:n&&(0,P.jsx)(i(),{children:n})})),r){var a="command-".concat(e,"-").concat(t,"-").concat(n);o||d.push((0,P.jsx)(y,{children:r},a))}})),n.concat(d)}),[]),(0,P.jsx)(m,{focused:D&&(0===(null===k||void 0===k?void 0:k.length)||Z>(null===k||void 0===k?void 0:k.length)),children:(0,P.jsxs)(u.ZP,{monospace:!0,children:[(0,P.jsx)(u.ZP,{inline:!0,monospace:!0,children:rn&&(0,P.jsx)(i(),{children:rn})}),null===k||void 0===k?void 0:k.split("").map((function(n,t){return(0,P.jsxs)(b,{focusBeginning:D&&0===Z&&0===t,focused:D&&Z===t+1,children:[" "===n&&(0,P.jsx)(P.Fragment,{children:"\xa0"})," "!==n&&n]},"command-".concat(t,"-").concat(n))}))]})})]})})})}},82635:function(n,t,e){var r,i;e.d(t,{Gi:function(){return i},jU:function(){return a},uF:function(){return r}}),function(n){n.BUSY="busy",n.IDLE="idle",n.QUEUED="queued"}(r||(r={})),function(n){n.IMAGE_PNG="image/png",n.PROGRESS="progress",n.TABLE="table",n.TEXT="text",n.TEXT_HTML="text/html",n.TEXT_PLAIN="text/plain"}(i||(i={}));var o,a=[i.TEXT,i.TEXT_PLAIN];!function(n){n.DISPLAY_DATA="display_data",n.STATUS="status",n.STREAM="stream",n.STREAM_PIPELINE="stream_pipeline"}(o||(o={}))},98781:function(n,t,e){e.d(t,{$1:function(){return u},G7:function(){return l},QK:function(){return c},a_:function(){return d},qL:function(){return o},r0:function(){return s}});var r,i,o,a=e(82394);!function(n){n.INTEGRATION="integration",n.PYTHON="python",n.PYSPARK="pyspark",n.STREAMING="streaming"}(o||(o={}));var c,u,s,l=(r={},(0,a.Z)(r,o.INTEGRATION,"Integration"),(0,a.Z)(r,o.PYTHON,"Standard"),(0,a.Z)(r,o.PYSPARK,"PySpark"),(0,a.Z)(r,o.STREAMING,"Streaming"),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive",n.NO_SCHEDULES="no_schedules"}(c||(c={})),function(n){n.GROUP="group_by",n.STATUS="status[]",n.TYPE="type[]"}(u||(u={})),function(n){n.STATUS="status",n.TYPE="type"}(s||(s={}));var d=(i={},(0,a.Z)(i,o.PYTHON,"python3"),(0,a.Z)(i,o.PYSPARK,"pysparkkernel"),i)},51504:function(n,t,e){e.d(t,{y:function(){return o}});var r=e(75582),i=e(16115);function o(n,t){var e=n.map((function(n){return String(n)})),o=n.includes(i.PQ),a=n.includes(i.zX),c=n.includes(i.XR),u=i.xU.map((function(n){return String(n)})),s=i.vk.map((function(n){return String(n)})),l=i.Tr.map((function(n){return String(n)})),d=Object.entries(t).find((function(n){var t=(0,r.Z)(n,2),i=t[0];return t[1]&&!e.includes(String(i))&&(!a||!s.includes(String(i)))&&(!o||!u.includes(String(i)))&&(!c||!l.includes(String(i)))}));return n.every((function(n){return t[n]}))&&!d}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5477],{1210:function(e,n,t){t.d(n,{Z:function(){return S}});var r=t(82394),i=t(21831),o=t(82684),l=t(47999),u=t(28358),c=t(93461),s=t(57384),a=t(12344),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var m=o.forwardRef(p),h=t(32063),v=t(15270),b=t(82531),y=t(66166),g=t(3055),w=t(49125),j=t(91427),O=t(24141);function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){(0,r.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 S=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,x=e.afterWidthOverride,S=e.before,C=e.beforeWidth,P=e.breadcrumbs,I=e.children,_=e.errors,k=e.headerMenuItems,N=e.navigationItems,H=e.setErrors,D=e.subheaderChildren,z=e.title,E=e.uuid,A=(0,O.i)().width,M="dashboard_after_width_".concat(E),W="dashboard_before_width_".concat(E),T=(0,o.useRef)(null),B=(0,o.useState)(x?p:(0,j.U2)(M,p)),F=B[0],R=B[1],U=(0,o.useState)(!1),q=U[0],L=U[1],G=(0,o.useState)(S?Math.max((0,j.U2)(W,C),13*w.iI):null),Q=G[0],Y=G[1],J=(0,o.useState)(!1),X=J[0],K=J[1],$=(0,o.useState)(null)[1],V=b.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===V||void 0===V?void 0:V.projects,ne=[];P?ne.push.apply(ne,(0,i.Z)(P)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return z}}]),(0,o.useEffect)((function(){null===T||void 0===T||!T.current||q||X||null===$||void 0===$||$(T.current.getBoundingClientRect().width)}),[q,F,X,Q,T,$,A]),(0,o.useEffect)((function(){q||(0,j.t8)(M,F)}),[r,q,F,M]),(0,o.useEffect)((function(){X||(0,j.t8)(W,Q)}),[X,Q,W]);var te=(0,y.Z)(p);return(0,o.useEffect)((function(){x&&te!==p&&R(p)}),[x,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:z}),(0,f.jsx)(a.Z,{breadcrumbs:ne,menuItems:k,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===N||void 0===N?void 0:N.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(v.Z,{navigationItems:N})}),(0,f.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:t,afterHeightOffset:g.Mz,afterHidden:r,afterMousedownActive:q,afterWidth:F,before:S,beforeHeightOffset:g.Mz,beforeMousedownActive:X,beforeWidth:d.k1+(S?Q:0),hideAfterCompletely:!0,leftOffset:S?d.k1:null,mainContainerRef:T,setAfterMousedownActive:L,setAfterWidth:R,setBeforeMousedownActive:K,setBeforeWidth:Y,children:[D&&(0,f.jsx)(m,{children:D}),I]})})]}),_&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===H||void 0===H?void 0:H(null)},children:(0,f.jsx)(u.Z,Z(Z({},_),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}},2850:function(e,n,t){t.d(n,{M:function(){return u},W:function(){return l}});var r=t(9518),i=t(23831),o=t(3055),l=34*t(49125).iI,u=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},79585:function(e,n,t){t.d(n,{DQ:function(){return a},HY:function(){return l},SA:function(){return d},WH:function(){return o},eC:function(){return c},fF:function(){return u},tC:function(){return s}});var r=t(81132),i=t(9736),o="Workspace",l="Preferences",u="Git settings",c="Users",s="Account",a="Profile",d=function(e){var n=e.owner,t=e.roles,d=[{linkProps:{href:"/settings/workspace/preferences"},uuid:l}];n&&d.push({linkProps:{href:"/settings/workspace/users"},uuid:c}),(!(0,i.YB)()||t<=r.No.EDITOR)&&d.push({linkProps:{href:"/settings/workspace/sync-data"},uuid:u});var f=[{items:d,uuid:o}];return(0,i.YB)()?f.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:a}],uuid:s}]):f}},30775:function(e,n,t){t.d(n,{Z:function(){return Z}});var r=t(1210),i=t(82394),o=t(12691),l=t.n(o),u=t(10919),c=t(86673),s=t(19711),a=t(9518),d=t(23831),f=t(49125),p=t(90880),m=(f.iI,a.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*f.iI,2.5*f.iI)),h=a.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,p.eR)(),1.5*f.iI,2.5*f.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||d.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),v=t(28598),b=t(82684);function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n=e.isItemSelected,t=e.sections;return(0,v.jsx)(c.Z,{py:f.Gg,children:null===t||void 0===t?void 0:t.map((function(e){var t=e.items,r=e.title,i=e.uuid;return(0,v.jsxs)(c.Z,{children:[(0,v.jsx)(m,{children:(0,v.jsx)(s.ZP,{bold:!0,muted:!0,small:!0,uppercase:!0,children:r?r():i})}),null===t||void 0===t?void 0:t.map((function(e){var t=e.label,r=e.linkProps,o=e.onClick,c=e.uuid,s=t?t():c,a=(0,v.jsx)(h,{selected:null===n||void 0===n?void 0:n(g(g({},e),{},{uuidWorkspace:i})),children:s});return r?(0,b.createElement)(l(),g(g({},r),{},{key:c,passHref:!0}),(0,v.jsx)(u.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,sameColorAsText:!0,children:a})):(0,v.jsx)(u.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:o,preventDefault:!0,sameColorAsText:!0,children:a},c)}))]},i)}))})},j=t(2850),O=t(79585),x=t(9736);var Z=function(e){var n=e.after,t=e.afterHidden,i=e.children,o=e.uuidItemSelected,l=e.uuidWorkspaceSelected,u=(0,x.PR)()||{};return(0,v.jsx)(r.Z,{after:n,afterHidden:!n||t,afterWidth:n?50*f.iI:0,afterWidthOverride:!0,before:(0,v.jsx)(j.M,{children:(0,v.jsx)(w,{isItemSelected:function(e){var n=e.uuid,t=e.uuidWorkspace;return l===t&&o===n},sections:(0,O.SA)(u)})}),beforeWidth:j.W,title:"Settings",uuid:"settings/index",children:i})}},63153:function(e,n,t){t.d(n,{Z3:function(){return r},ms:function(){return o},s7:function(){return i}});var r=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",disabled:!0,label:"Email",required:!0,type:"email",uuid:"email"}],i="password_current",o=[{autoComplete:"current-password",label:"Current password",type:"password",uuid:i},{autoComplete:"new-password",label:"New password",type:"password",uuid:"password"},{autoComplete:"new-password",label:"Confirm new password",type:"password",uuid:"password_confirmation"}]},20582:function(e,n,t){var r=t(82394),i=t(21831),o=t(75582),l=t(21764),u=t(82684),c=t(83455),s=t(60328),a=t(67971),d=t(87372),f=t(55378),p=t(86673),m=t(82944),h=t(81132),v=t(82531),b=t(66166),y=t(63153),g=t(7715),w=t(96510),j=t(28598);function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.disabledFields,t=e.hideFields,O=e.newUser,Z=e.onDeleteSuccess,S=e.onSaveSuccess,C=e.showDelete,P=e.title,I=e.user,_=(0,u.useState)(!0),k=_[0],N=_[1],H=(0,u.useState)({}),D=H[0],z=H[1],E=(0,u.useState)(null),A=E[0],M=E[1],W=(0,c.Db)(O?v.ZP.users.useCreate():v.ZP.users.useUpdate(null===I||void 0===I?void 0:I.id),{onSuccess:function(e){return(0,w.wD)(e,{callback:function(e){var n=e.user,t=(0,g.GL)(n,y.Z3.concat(y.ms).map((function(e){return e.uuid})));M(t),l.Am.success(O?"New user created successfully.":"User profile successfully updated.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:"user-update-success-".concat(n.id)}),null===S||void 0===S||S(t)},onErrorCallback:function(e){var n=e.error,t=n.message,r=n.type;l.Am.error(t,{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:r})}})}}),T=(0,o.Z)(W,2),B=T[0],F=T[1].isLoading,R=(0,c.Db)(v.ZP.users.useDelete(null===I||void 0===I?void 0:I.id),{onSuccess:function(e){return(0,w.wD)(e,{callback:function(){null===Z||void 0===Z||Z()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;alert(r),console.log(t)}})}}),U=(0,o.Z)(R,2),q=U[0],L=U[1].isLoading,G=t?(0,i.Z)(t):[];O&&G.push(y.s7);var Q=!G||!G.includes(y.s7),Y=(0,b.Z)(I);return(0,u.useEffect)((function(){!I||A&&(null===Y||void 0===Y?void 0:Y.id)===(null===I||void 0===I?void 0:I.id)||M((0,g.GL)(I,y.Z3.concat(y.ms).map((function(e){return e.uuid})))),null!==A&&void 0!==A&&A.password||null!==A&&void 0!==A&&A.password_confirmation?(null===A||void 0===A?void 0:A.password)!==(null===A||void 0===A?void 0:A.password_confirmation)?z({password_confirmation:"Password confirmation does not match."}):!Q||null!==A&&void 0!==A&&A.password_current?z(null):z({password_current:"This field is required."}):null!==A&&void 0!==A&&A.password_current&&Q?null!==A&&void 0!==A&&A.password&&null!==A&&void 0!==A&&A.password_confirmation?z(null):z({password:"This field is required.",password_confirmation:"This field is required."}):null!==A&&void 0!==A&&A.password_current||null!==A&&void 0!==A&&A.password||null!==A&&void 0!==A&&A.password_confirmation||z(null)}),[A,Q,I,Y]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(d.Z,{children:P||"Edit profile"}),(0,j.jsxs)("form",{children:[y.Z3.filter((function(e){var n=e.uuid;return!G||!G.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,i=e.label,o=e.required,l=e.type,u=e.uuid;return(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsx)(m.Z,{autoComplete:n,disabled:t&&!O,label:i,onChange:function(e){N(!1),M((function(n){return x(x({},n),{},(0,r.Z)({},u,e.target.value))}))},primary:!0,required:o,setContentOnMount:!0,type:l,value:(null===A||void 0===A?void 0:A[u])||""})},u)})),!(null!==I&&void 0!==I&&I.owner)&&(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsxs)(f.Z,{disabled:null===n||void 0===n?void 0:n.includes("roles"),label:"Roles",onChange:function(e){N(!1),M((function(n){return x(x({},n),{},{roles:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===A||void 0===A?void 0:A.roles)||(null===I||void 0===I?void 0:I.roles)||"",children:[(0,j.jsx)("option",{value:""}),h.K$.map((function(e){return(0,j.jsx)("option",{value:e,children:h.gG[e]},e)}))]})}),(0,j.jsxs)(p.Z,{mt:5,children:[(0,j.jsx)(d.Z,{children:O?"Password":"Change password"}),y.ms.filter((function(e){var n=e.uuid;return!G||!G.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,i=e.label,o=e.required,l=e.type,u=e.uuid;return(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsx)(m.Z,{autoComplete:n,disabled:t,label:i,meta:{error:null===D||void 0===D?void 0:D[u],touched:!(null===D||void 0===D||!D[u])},onChange:function(e){N(!1),M((function(n){return x(x({},n),{},(0,r.Z)({},u,e.target.value))}))},primary:!0,required:o,setContentOnMount:!0,type:l,value:(null===A||void 0===A?void 0:A[u])||""})},u)}))]}),(0,j.jsx)(p.Z,{mt:5,children:(0,j.jsxs)(a.Z,{children:[(0,j.jsx)(s.Z,{disabled:k||D&&!(0,g.Qr)(D),loading:F,onClick:function(){return B({user:A})},primary:!0,children:O?"Create new user":"Update user profile"}),C&&(0,j.jsx)(p.Z,{ml:1,children:(0,j.jsx)(s.Z,{danger:!0,loading:L,onClick:function(){window.confirm("Are you sure you want to delete ".concat(A.username||A.email,"?"))&&q()},children:"Delete user"})})]})})]})]})}},87372:function(e,n,t){var r,i,o,l,u,c,s,a,d=t(82394),f=t(26304),p=t(26653),m=t(9518),h=t(33591),v=t(23831),b=t(2005),y=t(31012),g=t(19711),w=t(49125),j=t(86673),O=t(28598),x=["children","condensed","inline","level","marketing","spacingBelow"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C=(0,m.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],g.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||v.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(b.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),P=m.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||v.Z.content).active,";\n ")})),I=m.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],C,h.media.md(r||(r=(0,p.Z)(["\n ","\n "])),y.aQ),h.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),y.aQ),h.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),y.aQ)),_=m.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],C,y.MJ),k=m.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],C,h.media.xs(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.sm(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.md(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.lg(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.xl(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),N=m.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],C,y.BL),H=m.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],C),D=m.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],C),z=m.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],C),E=m.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],C,(function(e){return 1===e.level&&"\n ".concat(y.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(y.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),A=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,l=e.marketing,u=e.spacingBelow,c=(0,f.Z)(e,x);i?n=E:0===Number(o)?n=I:1===Number(o)?n=l?k:_:2===Number(o)?n=N:3===Number(o)?n=H:4===Number(o)?n=D:5===Number(o)&&(n=z);var s=(0,O.jsxs)(n,S(S({},c),{},{level:o,children:[u&&(0,O.jsx)(j.Z,{mb:r?2:3,children:t}),!u&&t]}));return i?s:(0,O.jsx)(P,{children:s})};A.defaultProps={level:3,weightStyle:6},n.Z=A}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5477],{1210:function(e,n,t){t.d(n,{Z:function(){return S}});var r=t(82394),i=t(21831),o=t(82684),l=t(47999),u=t(49894),c=t(93461),s=t(57384),a=t(12344),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var m=o.forwardRef(p),h=t(32063),v=t(15270),b=t(82531),y=t(66166),g=t(3055),w=t(49125),j=t(91427),O=t(24141);function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){(0,r.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 S=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,x=e.afterWidthOverride,S=e.before,C=e.beforeWidth,P=e.breadcrumbs,I=e.children,_=e.errors,k=e.headerMenuItems,N=e.navigationItems,H=e.setErrors,D=e.subheaderChildren,z=e.title,E=e.uuid,A=(0,O.i)().width,M="dashboard_after_width_".concat(E),W="dashboard_before_width_".concat(E),T=(0,o.useRef)(null),B=(0,o.useState)(x?p:(0,j.U2)(M,p)),F=B[0],R=B[1],U=(0,o.useState)(!1),q=U[0],L=U[1],G=(0,o.useState)(S?Math.max((0,j.U2)(W,C),13*w.iI):null),Q=G[0],Y=G[1],J=(0,o.useState)(!1),X=J[0],K=J[1],$=(0,o.useState)(null)[1],V=b.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===V||void 0===V?void 0:V.projects,ne=[];P?ne.push.apply(ne,(0,i.Z)(P)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return z}}]),(0,o.useEffect)((function(){null===T||void 0===T||!T.current||q||X||null===$||void 0===$||$(T.current.getBoundingClientRect().width)}),[q,F,X,Q,T,$,A]),(0,o.useEffect)((function(){q||(0,j.t8)(M,F)}),[r,q,F,M]),(0,o.useEffect)((function(){X||(0,j.t8)(W,Q)}),[X,Q,W]);var te=(0,y.Z)(p);return(0,o.useEffect)((function(){x&&te!==p&&R(p)}),[x,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:z}),(0,f.jsx)(a.Z,{breadcrumbs:ne,menuItems:k,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===N||void 0===N?void 0:N.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(v.Z,{navigationItems:N})}),(0,f.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:t,afterHeightOffset:g.Mz,afterHidden:r,afterMousedownActive:q,afterWidth:F,before:S,beforeHeightOffset:g.Mz,beforeMousedownActive:X,beforeWidth:d.k1+(S?Q:0),hideAfterCompletely:!0,leftOffset:S?d.k1:null,mainContainerRef:T,setAfterMousedownActive:L,setAfterWidth:R,setBeforeMousedownActive:K,setBeforeWidth:Y,children:[D&&(0,f.jsx)(m,{children:D}),I]})})]}),_&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===H||void 0===H?void 0:H(null)},children:(0,f.jsx)(u.Z,Z(Z({},_),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}},2850:function(e,n,t){t.d(n,{M:function(){return u},W:function(){return l}});var r=t(9518),i=t(23831),o=t(3055),l=34*t(49125).iI,u=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},79585:function(e,n,t){t.d(n,{DQ:function(){return a},HY:function(){return l},SA:function(){return d},WH:function(){return o},eC:function(){return c},fF:function(){return u},tC:function(){return s}});var r=t(81132),i=t(9736),o="Workspace",l="Preferences",u="Git settings",c="Users",s="Account",a="Profile",d=function(e){var n=e.owner,t=e.roles,d=[{linkProps:{href:"/settings/workspace/preferences"},uuid:l}];n&&d.push({linkProps:{href:"/settings/workspace/users"},uuid:c}),(!(0,i.YB)()||t<=r.No.EDITOR)&&d.push({linkProps:{href:"/settings/workspace/sync-data"},uuid:u});var f=[{items:d,uuid:o}];return(0,i.YB)()?f.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:a}],uuid:s}]):f}},30775:function(e,n,t){t.d(n,{Z:function(){return Z}});var r=t(1210),i=t(82394),o=t(12691),l=t.n(o),u=t(10919),c=t(86673),s=t(19711),a=t(9518),d=t(23831),f=t(49125),p=t(90880),m=(f.iI,a.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*f.iI,2.5*f.iI)),h=a.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,p.eR)(),1.5*f.iI,2.5*f.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||d.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),v=t(28598),b=t(82684);function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n=e.isItemSelected,t=e.sections;return(0,v.jsx)(c.Z,{py:f.Gg,children:null===t||void 0===t?void 0:t.map((function(e){var t=e.items,r=e.title,i=e.uuid;return(0,v.jsxs)(c.Z,{children:[(0,v.jsx)(m,{children:(0,v.jsx)(s.ZP,{bold:!0,muted:!0,small:!0,uppercase:!0,children:r?r():i})}),null===t||void 0===t?void 0:t.map((function(e){var t=e.label,r=e.linkProps,o=e.onClick,c=e.uuid,s=t?t():c,a=(0,v.jsx)(h,{selected:null===n||void 0===n?void 0:n(g(g({},e),{},{uuidWorkspace:i})),children:s});return r?(0,b.createElement)(l(),g(g({},r),{},{key:c,passHref:!0}),(0,v.jsx)(u.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,sameColorAsText:!0,children:a})):(0,v.jsx)(u.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:o,preventDefault:!0,sameColorAsText:!0,children:a},c)}))]},i)}))})},j=t(2850),O=t(79585),x=t(9736);var Z=function(e){var n=e.after,t=e.afterHidden,i=e.children,o=e.uuidItemSelected,l=e.uuidWorkspaceSelected,u=(0,x.PR)()||{};return(0,v.jsx)(r.Z,{after:n,afterHidden:!n||t,afterWidth:n?50*f.iI:0,afterWidthOverride:!0,before:(0,v.jsx)(j.M,{children:(0,v.jsx)(w,{isItemSelected:function(e){var n=e.uuid,t=e.uuidWorkspace;return l===t&&o===n},sections:(0,O.SA)(u)})}),beforeWidth:j.W,title:"Settings",uuid:"settings/index",children:i})}},63153:function(e,n,t){t.d(n,{Z3:function(){return r},ms:function(){return o},s7:function(){return i}});var r=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",disabled:!0,label:"Email",required:!0,type:"email",uuid:"email"}],i="password_current",o=[{autoComplete:"current-password",label:"Current password",type:"password",uuid:i},{autoComplete:"new-password",label:"New password",type:"password",uuid:"password"},{autoComplete:"new-password",label:"Confirm new password",type:"password",uuid:"password_confirmation"}]},20582:function(e,n,t){var r=t(82394),i=t(21831),o=t(75582),l=t(21764),u=t(82684),c=t(83455),s=t(60328),a=t(67971),d=t(87372),f=t(55378),p=t(86673),m=t(82944),h=t(81132),v=t(82531),b=t(66166),y=t(63153),g=t(7715),w=t(96510),j=t(28598);function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.disabledFields,t=e.hideFields,O=e.newUser,Z=e.onDeleteSuccess,S=e.onSaveSuccess,C=e.showDelete,P=e.title,I=e.user,_=(0,u.useState)(!0),k=_[0],N=_[1],H=(0,u.useState)({}),D=H[0],z=H[1],E=(0,u.useState)(null),A=E[0],M=E[1],W=(0,c.Db)(O?v.ZP.users.useCreate():v.ZP.users.useUpdate(null===I||void 0===I?void 0:I.id),{onSuccess:function(e){return(0,w.wD)(e,{callback:function(e){var n=e.user,t=(0,g.GL)(n,y.Z3.concat(y.ms).map((function(e){return e.uuid})));M(t),l.Am.success(O?"New user created successfully.":"User profile successfully updated.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:"user-update-success-".concat(n.id)}),null===S||void 0===S||S(t)},onErrorCallback:function(e){var n=e.error,t=n.message,r=n.type;l.Am.error(t,{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:r})}})}}),T=(0,o.Z)(W,2),B=T[0],F=T[1].isLoading,R=(0,c.Db)(v.ZP.users.useDelete(null===I||void 0===I?void 0:I.id),{onSuccess:function(e){return(0,w.wD)(e,{callback:function(){null===Z||void 0===Z||Z()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;alert(r),console.log(t)}})}}),U=(0,o.Z)(R,2),q=U[0],L=U[1].isLoading,G=t?(0,i.Z)(t):[];O&&G.push(y.s7);var Q=!G||!G.includes(y.s7),Y=(0,b.Z)(I);return(0,u.useEffect)((function(){!I||A&&(null===Y||void 0===Y?void 0:Y.id)===(null===I||void 0===I?void 0:I.id)||M((0,g.GL)(I,y.Z3.concat(y.ms).map((function(e){return e.uuid})))),null!==A&&void 0!==A&&A.password||null!==A&&void 0!==A&&A.password_confirmation?(null===A||void 0===A?void 0:A.password)!==(null===A||void 0===A?void 0:A.password_confirmation)?z({password_confirmation:"Password confirmation does not match."}):!Q||null!==A&&void 0!==A&&A.password_current?z(null):z({password_current:"This field is required."}):null!==A&&void 0!==A&&A.password_current&&Q?null!==A&&void 0!==A&&A.password&&null!==A&&void 0!==A&&A.password_confirmation?z(null):z({password:"This field is required.",password_confirmation:"This field is required."}):null!==A&&void 0!==A&&A.password_current||null!==A&&void 0!==A&&A.password||null!==A&&void 0!==A&&A.password_confirmation||z(null)}),[A,Q,I,Y]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(d.Z,{children:P||"Edit profile"}),(0,j.jsxs)("form",{children:[y.Z3.filter((function(e){var n=e.uuid;return!G||!G.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,i=e.label,o=e.required,l=e.type,u=e.uuid;return(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsx)(m.Z,{autoComplete:n,disabled:t&&!O,label:i,onChange:function(e){N(!1),M((function(n){return x(x({},n),{},(0,r.Z)({},u,e.target.value))}))},primary:!0,required:o,setContentOnMount:!0,type:l,value:(null===A||void 0===A?void 0:A[u])||""})},u)})),!(null!==I&&void 0!==I&&I.owner)&&(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsxs)(f.Z,{disabled:null===n||void 0===n?void 0:n.includes("roles"),label:"Roles",onChange:function(e){N(!1),M((function(n){return x(x({},n),{},{roles:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===A||void 0===A?void 0:A.roles)||(null===I||void 0===I?void 0:I.roles)||"",children:[(0,j.jsx)("option",{value:""}),h.K$.map((function(e){return(0,j.jsx)("option",{value:e,children:h.gG[e]},e)}))]})}),(0,j.jsxs)(p.Z,{mt:5,children:[(0,j.jsx)(d.Z,{children:O?"Password":"Change password"}),y.ms.filter((function(e){var n=e.uuid;return!G||!G.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,i=e.label,o=e.required,l=e.type,u=e.uuid;return(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsx)(m.Z,{autoComplete:n,disabled:t,label:i,meta:{error:null===D||void 0===D?void 0:D[u],touched:!(null===D||void 0===D||!D[u])},onChange:function(e){N(!1),M((function(n){return x(x({},n),{},(0,r.Z)({},u,e.target.value))}))},primary:!0,required:o,setContentOnMount:!0,type:l,value:(null===A||void 0===A?void 0:A[u])||""})},u)}))]}),(0,j.jsx)(p.Z,{mt:5,children:(0,j.jsxs)(a.Z,{children:[(0,j.jsx)(s.Z,{disabled:k||D&&!(0,g.Qr)(D),loading:F,onClick:function(){return B({user:A})},primary:!0,children:O?"Create new user":"Update user profile"}),C&&(0,j.jsx)(p.Z,{ml:1,children:(0,j.jsx)(s.Z,{danger:!0,loading:L,onClick:function(){window.confirm("Are you sure you want to delete ".concat(A.username||A.email,"?"))&&q()},children:"Delete user"})})]})})]})]})}},87372:function(e,n,t){var r,i,o,l,u,c,s,a,d=t(82394),f=t(26304),p=t(26653),m=t(9518),h=t(33591),v=t(23831),b=t(2005),y=t(31012),g=t(19711),w=t(49125),j=t(86673),O=t(28598),x=["children","condensed","inline","level","marketing","spacingBelow"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C=(0,m.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],g.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||v.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(b.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),P=m.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||v.Z.content).active,";\n ")})),I=m.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],C,h.media.md(r||(r=(0,p.Z)(["\n ","\n "])),y.aQ),h.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),y.aQ),h.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),y.aQ)),_=m.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],C,y.MJ),k=m.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],C,h.media.xs(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.sm(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.md(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.lg(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.xl(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),N=m.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],C,y.BL),H=m.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],C),D=m.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],C),z=m.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],C),E=m.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],C,(function(e){return 1===e.level&&"\n ".concat(y.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(y.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),A=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,l=e.marketing,u=e.spacingBelow,c=(0,f.Z)(e,x);i?n=E:0===Number(o)?n=I:1===Number(o)?n=l?k:_:2===Number(o)?n=N:3===Number(o)?n=H:4===Number(o)?n=D:5===Number(o)&&(n=z);var s=(0,O.jsxs)(n,S(S({},c),{},{level:o,children:[u&&(0,O.jsx)(j.Z,{mb:r?2:3,children:t}),!u&&t]}));return i?s:(0,O.jsx)(P,{children:s})};A.defaultProps={level:3,weightStyle:6},n.Z=A}}]);
|