mage-ai 0.9.14__py3-none-any.whl → 0.9.15__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/resources/PipelineRunResource.py +8 -5
- mage_ai/data_preparation/executors/block_executor.py +5 -7
- mage_ai/data_preparation/templates/constants.py +16 -0
- mage_ai/data_preparation/templates/data_exporters/mssql.py +32 -0
- mage_ai/data_preparation/templates/data_loaders/mssql.py +27 -0
- mage_ai/io/base.py +5 -0
- mage_ai/io/mssql.py +1 -0
- mage_ai/orchestration/db/models/base.py +15 -15
- mage_ai/orchestration/db/models/oauth.py +35 -4
- mage_ai/orchestration/pipeline_scheduler.py +12 -6
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/404.html.html +2 -2
- mage_ai/server/frontend_dist/_next/static/chunks/{2786-f71862671f66d948.js → 2786-756b3834d10b8711.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3391-e1578fe1bdb5a557.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/6299-9b785c07dacf22b3.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8952-050e60a8b1eaa32a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-03841b6dd7d240f6.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-6e2c0e3f818fd4de.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-6e59dc4e57dd2680.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-02295848c811e26a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-ce11db27e4af7869.js → [...slug]-91889109af36a793.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/{CNjkRIWPaAu1yJUmIaX_q → h5mR3pjfn_EQy348CZ_ok}/_buildManifest.js +1 -1
- mage_ai/server/frontend_dist/files.html +2 -2
- mage_ai/server/frontend_dist/global-data-products/[...slug].html +2 -2
- mage_ai/server/frontend_dist/global-data-products.html +2 -2
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage/settings.html +2 -2
- mage_ai/server/frontend_dist/manage/users/[user].html +2 -2
- mage_ai/server/frontend_dist/manage/users/new.html +2 -2
- mage_ai/server/frontend_dist/manage/users.html +2 -2
- mage_ai/server/frontend_dist/manage.html +2 -2
- mage_ai/server/frontend_dist/overview.html +2 -2
- mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +2 -2
- mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +2 -2
- mage_ai/server/frontend_dist/templates/[...slug].html +2 -2
- mage_ai/server/frontend_dist/templates.html +2 -2
- mage_ai/server/frontend_dist/terminal.html +2 -2
- mage_ai/server/frontend_dist/test.html +2 -2
- mage_ai/server/frontend_dist/triggers.html +2 -2
- mage_ai/server/frontend_dist/version-control.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/404.html.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{2786-f71862671f66d948.js → 2786-756b3834d10b8711.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3391-e1578fe1bdb5a557.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6299-9b785c07dacf22b3.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8952-050e60a8b1eaa32a.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-03841b6dd7d240f6.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-6e2c0e3f818fd4de.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-6e59dc4e57dd2680.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-02295848c811e26a.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-ce11db27e4af7869.js → [...slug]-91889109af36a793.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/{yJvL-3bfsNF3WCStZ10Dm → xykYLW_ARw5SevdiponLI}/_buildManifest.js +1 -1
- mage_ai/server/frontend_dist_base_path_template/files.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/global-data-products.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/users.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/overview.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/sign-in.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/templates.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/terminal.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/test.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/triggers.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/version-control.html +2 -2
- mage_ai/server/server.py +12 -1
- mage_ai/shared/retry.py +1 -1
- {mage_ai-0.9.14.dist-info → mage_ai-0.9.15.dist-info}/METADATA +1 -1
- {mage_ai-0.9.14.dist-info → mage_ai-0.9.15.dist-info}/RECORD +123 -122
- mage_ai/server/frontend_dist/_next/static/chunks/3391-6f0a0a5c254cd7f2.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6299-fcb702d0f3d3291b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8952-9d6fa18fa9378989.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-2dc2a0dfc0ff620d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-6577159a0af52a78.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-54cb4936accdd2d9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-d331e98ad103b13e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3391-6f0a0a5c254cd7f2.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6299-fcb702d0f3d3291b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8952-9d6fa18fa9378989.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-2dc2a0dfc0ff620d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-6577159a0af52a78.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-54cb4936accdd2d9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-d331e98ad103b13e.js +0 -1
- mage_ai/tests/orchestration/db/test_models.py +0 -710
- /mage_ai/server/frontend_dist/_next/static/{CNjkRIWPaAu1yJUmIaX_q → h5mR3pjfn_EQy348CZ_ok}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist/_next/static/{CNjkRIWPaAu1yJUmIaX_q → h5mR3pjfn_EQy348CZ_ok}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{yJvL-3bfsNF3WCStZ10Dm → xykYLW_ARw5SevdiponLI}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{yJvL-3bfsNF3WCStZ10Dm → xykYLW_ARw5SevdiponLI}/_ssgManifest.js +0 -0
- {mage_ai-0.9.14.dist-info → mage_ai-0.9.15.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.14.dist-info → mage_ai-0.9.15.dist-info}/WHEEL +0 -0
- {mage_ai-0.9.14.dist-info → mage_ai-0.9.15.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.14.dist-info → mage_ai-0.9.15.dist-info}/top_level.txt +0 -0
|
@@ -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="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/css/d1e8e64d0b07af2f.css" as="style"/><link rel="stylesheet" href="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/css/d1e8e64d0b07af2f.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/webpack-75e5c97f3bafcfc3.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/framework-7c365855dab1bf41.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/main-028c1a54af29300e.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/pages/_app-9dae6fa5126cf001.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/pages/_error-235304e5badb19eb.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_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="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/css/d1e8e64d0b07af2f.css" as="style"/><link rel="stylesheet" href="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/css/d1e8e64d0b07af2f.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/webpack-75e5c97f3bafcfc3.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/framework-7c365855dab1bf41.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/main-028c1a54af29300e.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/pages/_app-9dae6fa5126cf001.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/pages/_error-235304e5badb19eb.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/xykYLW_ARw5SevdiponLI/_buildManifest.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/xykYLW_ARw5SevdiponLI/_ssgManifest.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/xykYLW_ARw5SevdiponLI/_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></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","cyanLight":"rgba(101, 227, 255, 0.3)","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":"rgb(255, 79, 248, 0.5)","positive":"#00A81A","primaryTransparent":"rgba(155, 108, 167, 0.5)","purple":"#7D55EC","purpleLight":"rgba(125, 85, 236, 0.5)","rose":"#D1A2AB","roseLight":"rgba(209, 162, 171, 0.5)","sky":"#6AA1E0","skyLight":"rgba(106, 161, 224, 0.05)","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","dashboard":"#18181C","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","successLight":"rgb(138, 222, 0, 0.3)","table":"#292A2F","tag":"#3A4550"},"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","linkTextLight":"#9ECBFF","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","whiteTransparent":"rgba(255, 255, 255, 0.6)"},"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></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","cyanLight":"rgba(101, 227, 255, 0.3)","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":"rgb(255, 79, 248, 0.5)","positive":"#00A81A","primaryTransparent":"rgba(155, 108, 167, 0.5)","purple":"#7D55EC","purpleLight":"rgba(125, 85, 236, 0.5)","rose":"#D1A2AB","roseLight":"rgba(209, 162, 171, 0.5)","sky":"#6AA1E0","skyLight":"rgba(106, 161, 224, 0.05)","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","dashboard":"#18181C","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","successLight":"rgb(138, 222, 0, 0.3)","table":"#292A2F","tag":"#3A4550"},"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","linkTextLight":"#9ECBFF","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","whiteTransparent":"rgba(255, 255, 255, 0.6)"},"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":"xykYLW_ARw5SevdiponLI","assetPrefix":"/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_","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([[2786],{27125:function(n,e,t){var o=t(75582),u=t(82684),i=t(12691),r=t.n(i),c=t(34376),l=t.n(c),a=t(38626),s=t(83455),d=t(35490),p=t(66050),f=t(60328),v=t(16634),b=t(67971),h=t(10919),O=t(98781),j=t(86673),m=t(87815),g=t(19711),Z=t(46261),y=t(82531),x=t(73828),_=t(94353),P=t(22341),k=t(49125),L=t(44162),w=t(24224),S=t(96510),T=t(43482),D=t(28598);e.Z=function(n){var e=n.blockRuns,t=n.onClickRow,i=n.pipeline,c=n.selectedRun,C=n.setErrors,R=(0,u.useContext)(a.ThemeContext),M=(0,u.useState)(null),E=M[0],N=M[1],I=(0,u.useState)(null),Y=I[0],A=I[1],U=i||{},V=U.uuid,Q=U.type,F=(0,u.useMemo)((function(){return i.blocks||[]}),[i]),H=(0,u.useMemo)((function(){return(0,w.HK)(F,(function(n){return n.uuid}))}),[F]),J=(0,u.useMemo)((function(){return O.qL.INTEGRATION===Q}),[Q]),K=(0,u.useMemo)((function(){return O.qL.PYTHON===Q}),[Q]),B=(0,u.useMemo)((function(){var n,e;return null===(n=new d.Z)||void 0===n||null===(e=n.decodedToken)||void 0===e?void 0:e.token}),[]),q=(0,s.Db)((function(n){var e=n.blockUUID,t=n.pipelineRunId;return y.ZP.block_outputs.pipelines.downloads.detailAsync(null===i||void 0===i?void 0:i.uuid,e,{pipeline_run_id:t,token:B},{onDownloadProgress:function(n){return N((Number((null===n||void 0===n?void 0:n.loaded)||0)/1e6).toFixed(3))},responseType:_.E.BLOB})}),{onSuccess:function(n){return(0,S.wD)(n,{callback:function(n){A(null),(0,T.uS)(n,"block_output.".concat(x.Lu.CSV))},onErrorCallback:function(n,e){return null===C||void 0===C?void 0:C({errors:e,response:n})}})}}),X=(0,o.Z)(q,2),z=X[0],W=X[1].isLoading,G=[{uuid:"Status"},{uuid:"Block"},{uuid:"Trigger"},{uuid:"Created at"},{uuid:"Completed at"},{uuid:"Logs"}];return K&&G.push({uuid:"Output"}),(0,D.jsx)(m.Z,{columnFlex:[1,2,2,1,1,null,null],columns:G,isSelectedRow:function(n){return e[n].id===(null===c||void 0===c?void 0:c.id)},onClickRow:t,rows:null===e||void 0===e?void 0:e.map((function(n){var e,t,o,u,i=n||{},c=i.block_uuid,a=i.completed_at,s=i.created_at,d=i.id,O=i.pipeline_run_id,m=i.pipeline_schedule_id,y=i.pipeline_schedule_name,x=i.status,_=c,w=_.split(":"),S=Y===d&&W;J&&(_=w[0],o=w[1],u=w[2]);var T=H[_];T||(T=H[w[0]]);var C=[(0,D.jsx)(g.ZP,{danger:p.V.FAILED===x,default:p.V.CANCELLED===x,info:p.V.INITIAL===x,monospace:!0,success:p.V.COMPLETED===x,warning:p.V.RUNNING===x,children:x},"".concat(d,"_status")),(0,D.jsx)(r(),{as:"/pipelines/".concat(V,"/edit?block_uuid=").concat(_),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,D.jsxs)(h.Z,{bold:!0,fitContentWidth:!0,verticalAlignContent:!0,children:[(0,D.jsx)(v.Z,{color:(0,L.qn)(null===(e=T)||void 0===e?void 0:e.type,{blockColor:null===(t=T)||void 0===t?void 0:t.color,theme:R}).accent,size:1.5*k.iI,square:!0}),(0,D.jsx)(j.Z,{mr:1}),(0,D.jsxs)(g.ZP,{monospace:!0,sky:!0,children:[_,o&&": ",o&&(0,D.jsx)(g.ZP,{default:!0,inline:!0,monospace:!0,children:o}),u>=0&&": ",u>=0&&(0,D.jsx)(g.ZP,{default:!0,inline:!0,monospace:!0,children:u})]})]})},"".concat(d,"_block_uuid")),(0,D.jsx)(r(),{as:"/pipelines/".concat(V,"/triggers/").concat(m),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,D.jsx)(h.Z,{bold:!0,sky:!0,children:y})},"".concat(d,"_trigger")),(0,D.jsx)(g.ZP,{default:!0,monospace:!0,small:!0,children:s},"".concat(d,"_created_at")),(0,D.jsx)(g.ZP,{default:!0,monospace:!0,small:!0,children:(null===a||void 0===a?void 0:a.slice(0,19))||"-"},"".concat(d,"_completed_at")),(0,D.jsx)(f.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(V,"/logs?block_run_id[]=").concat(d))},children:(0,D.jsx)(P.UL,{default:!0,size:2*k.iI})},"".concat(d,"_logs"))];return K&&C.push((0,D.jsx)(b.ZP,{alignItems:"center",justifyContent:"center",children:(0,D.jsx)(Z.Z,{appearBefore:!0,autoHide:!S,block:!0,forceVisible:S,label:S?"".concat(E||0,"mb downloaded..."):"Save block run output as CSV file",size:null,widthFitContent:!0,children:(0,D.jsx)(f.Z,{default:!0,disabled:!K||!(p.V.COMPLETED===x)||W,iconOnly:!0,loading:S,noBackground:!0,onClick:function(){N(null),A(d),z({blockUUID:_,pipelineRunId:O})},children:(0,D.jsx)(P.vc,{default:!0,size:2*k.iI})})})},"".concat(d,"_save_output"))),C})),uuid:"block-runs"})}},43482:function(n,e,t){t.d(e,{Dp:function(){return f},OF:function(){return v},Q9:function(){return h},Rt:function(){return s},h8:function(){return b},k1:function(){return d},uS:function(){return O}});var o=t(21831),u=t(82394),i=t(91427),r=t(24224),c=t(90211);function l(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function a(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?l(Object(t),!0).forEach((function(e){(0,u.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 s(n){var e={},t={};return null===n||void 0===n||n.forEach((function(n){var o=n.content,u=n.outputs,i=n.type,r=n.uuid;(null===u||void 0===u?void 0:u.length)>=1&&(e[r]=u.map((function(n){var e=n||{},t=e.sample_data,o=e.shape,u=e.text_data,i=e.type;return t?{data:a({shape:o},t),type:i}:u&&(0,c.Pb)(u)?JSON.parse(u):u}))),t[i]||(t[i]={}),t[i][r]=o})),{content:t,messages:e}}function d(n,e,t){n.forEach((function(n){(0,i.t8)("".concat(t,"/").concat(n.uuid,"/codeCollapsed"),(0,i.Od)("".concat(e,"/").concat(n.uuid,"/codeCollapsed"))),(0,i.t8)("".concat(t,"/").concat(n.uuid,"/outputCollapsed"),(0,i.Od)("".concat(e,"/").concat(n.uuid,"/outputCollapsed")))}))}function p(n){return"".concat(n,"/").concat(i.kP)}function f(n){return(0,i.U2)(p(n),[])}function v(n,e){var t=f(n);t.includes(e)||(0,i.t8)(p(n),[].concat((0,o.Z)(t),[e]))}function b(n,e){var t=f(n).filter((function(n){return n!==e}));(0,i.t8)(p(n),t)}function h(n,e){var t=(0,r.HK)(e,(function(n){return n.uuid}));return n.map((function(n){return t[n]})).filter((function(n){return!!n}))}var O=function(n,e){var t=window.URL.createObjectURL(n),o=document.createElement("a");o.href=t,o.download=e,document.body.appendChild(o),o.click(),o.remove()}},56681:function(n,e,t){t.d(e,{G7:function(){return y},ZP:function(){return x},u$:function(){return m}});var o=t(75582),u=t(82394),i=t(26304),r=t(32316),c=t(22673),l=t(48952),a=t(86673),s=t(19711),d=t(87815),p=t(49125),f=t(19395),v=t(7715),b=t(28598),h=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function O(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function j(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?O(Object(t),!0).forEach((function(e){(0,u.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var m=76,g={uuid:"Run details"},Z={uuid:"Dependency tree"},y=[Z,g];function x(n){var e=n.height,t=n.heightOffset,u=n.pipeline,O=n.selectedRun,x=n.selectedTab,_=n.setSelectedTab,P=j({},(0,i.Z)(n,h));O?P.blockStatus=(0,f.IJ)(null===O||void 0===O?void 0:O.block_runs):P.noStatus=!0;var k=(0,v.Kn)(null===O||void 0===O?void 0:O.variables)?j({},null===O||void 0===O?void 0:O.variables):(null===O||void 0===O?void 0:O.variables)||{},L=null===O||void 0===O?void 0:O.event_variables;if(L&&(0,v.Kn)(L)&&!(0,v.Qr)(L))if((0,v.Kn)(k)&&k.hasOwnProperty("event")){var w=(0,v.Kn)(k.event)?k.event:{};k.event=j(j({},w),L)}else k.event=j({},L);var S=[];k&&JSON.stringify(k,null,2).split("\n").forEach((function(n){S.push(" ".concat(n))}));var T=O&&[["Run ID",null===O||void 0===O?void 0:O.id],["Variables",(0,b.jsx)(c.Z,{language:"json",small:!0,source:S.join("\n")},"variable_value")]],D=O&&(0,b.jsx)(a.Z,{pb:p.cd,px:p.cd,children:(0,b.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(n){return 1===n?"100px":null},rows:T.map((function(n,e){var t=(0,o.Z)(n,2),u=t[0],i=t[1];return[(0,b.jsx)(s.ZP,{monospace:!0,muted:!0,children:u},"key_".concat(e)),(0,b.jsx)(s.ZP,{monospace:!0,textOverflow:!0,children:i},"val_".concat(e))]})),uuid:"LogDetail"})}),C=x&&_;return(0,b.jsxs)(b.Fragment,{children:[C&&(0,b.jsx)(a.Z,{py:p.cd,children:(0,b.jsx)(r.Z,{onClickTab:_,selectedTabUUID:null===x||void 0===x?void 0:x.uuid,tabs:y})}),(!C||Z.uuid===(null===x||void 0===x?void 0:x.uuid))&&(0,b.jsx)(l.Z,j(j({},P),{},{height:e,heightOffset:(t||0)+(C?m:0),pipeline:u})),g.uuid===(null===x||void 0===x?void 0:x.uuid)&&D]})}},73828:function(n,e,t){t.d(e,{JD:function(){return
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2786],{27125:function(n,e,t){var o=t(75582),u=t(82684),i=t(12691),r=t.n(i),c=t(34376),l=t.n(c),a=t(38626),s=t(83455),d=t(35490),p=t(66050),f=t(60328),v=t(16634),b=t(67971),h=t(10919),O=t(98781),j=t(86673),m=t(87815),g=t(19711),Z=t(46261),y=t(82531),x=t(73828),_=t(94353),P=t(22341),k=t(49125),L=t(44162),w=t(24224),S=t(96510),T=t(43482),D=t(28598);e.Z=function(n){var e=n.blockRuns,t=n.onClickRow,i=n.pipeline,c=n.selectedRun,C=n.setErrors,R=(0,u.useContext)(a.ThemeContext),M=(0,u.useState)(null),E=M[0],N=M[1],I=(0,u.useState)(null),Y=I[0],A=I[1],U=i||{},V=U.uuid,Q=U.type,F=(0,u.useMemo)((function(){return i.blocks||[]}),[i]),H=(0,u.useMemo)((function(){return(0,w.HK)(F,(function(n){return n.uuid}))}),[F]),J=(0,u.useMemo)((function(){return O.qL.INTEGRATION===Q}),[Q]),K=(0,u.useMemo)((function(){return O.qL.PYTHON===Q}),[Q]),B=(0,u.useMemo)((function(){var n,e;return null===(n=new d.Z)||void 0===n||null===(e=n.decodedToken)||void 0===e?void 0:e.token}),[]),q=(0,s.Db)((function(n){var e=n.blockUUID,t=n.pipelineRunId;return y.ZP.block_outputs.pipelines.downloads.detailAsync(null===i||void 0===i?void 0:i.uuid,e,{pipeline_run_id:t,token:B},{onDownloadProgress:function(n){return N((Number((null===n||void 0===n?void 0:n.loaded)||0)/1e6).toFixed(3))},responseType:_.E.BLOB})}),{onSuccess:function(n){return(0,S.wD)(n,{callback:function(n){A(null),(0,T.uS)(n,"block_output.".concat(x.Lu.CSV))},onErrorCallback:function(n,e){return null===C||void 0===C?void 0:C({errors:e,response:n})}})}}),X=(0,o.Z)(q,2),z=X[0],W=X[1].isLoading,G=[{uuid:"Status"},{uuid:"Block"},{uuid:"Trigger"},{uuid:"Created at"},{uuid:"Completed at"},{uuid:"Logs"}];return K&&G.push({uuid:"Output"}),(0,D.jsx)(m.Z,{columnFlex:[1,2,2,1,1,null,null],columns:G,isSelectedRow:function(n){return e[n].id===(null===c||void 0===c?void 0:c.id)},onClickRow:t,rows:null===e||void 0===e?void 0:e.map((function(n){var e,t,o,u,i=n||{},c=i.block_uuid,a=i.completed_at,s=i.created_at,d=i.id,O=i.pipeline_run_id,m=i.pipeline_schedule_id,y=i.pipeline_schedule_name,x=i.status,_=c,w=_.split(":"),S=Y===d&&W;J&&(_=w[0],o=w[1],u=w[2]);var T=H[_];T||(T=H[w[0]]);var C=[(0,D.jsx)(g.ZP,{danger:p.V.FAILED===x,default:p.V.CANCELLED===x,info:p.V.INITIAL===x,monospace:!0,success:p.V.COMPLETED===x,warning:p.V.RUNNING===x,children:x},"".concat(d,"_status")),(0,D.jsx)(r(),{as:"/pipelines/".concat(V,"/edit?block_uuid=").concat(_),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,D.jsxs)(h.Z,{bold:!0,fitContentWidth:!0,verticalAlignContent:!0,children:[(0,D.jsx)(v.Z,{color:(0,L.qn)(null===(e=T)||void 0===e?void 0:e.type,{blockColor:null===(t=T)||void 0===t?void 0:t.color,theme:R}).accent,size:1.5*k.iI,square:!0}),(0,D.jsx)(j.Z,{mr:1}),(0,D.jsxs)(g.ZP,{monospace:!0,sky:!0,children:[_,o&&": ",o&&(0,D.jsx)(g.ZP,{default:!0,inline:!0,monospace:!0,children:o}),u>=0&&": ",u>=0&&(0,D.jsx)(g.ZP,{default:!0,inline:!0,monospace:!0,children:u})]})]})},"".concat(d,"_block_uuid")),(0,D.jsx)(r(),{as:"/pipelines/".concat(V,"/triggers/").concat(m),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,D.jsx)(h.Z,{bold:!0,sky:!0,children:y})},"".concat(d,"_trigger")),(0,D.jsx)(g.ZP,{default:!0,monospace:!0,small:!0,children:s},"".concat(d,"_created_at")),(0,D.jsx)(g.ZP,{default:!0,monospace:!0,small:!0,children:(null===a||void 0===a?void 0:a.slice(0,19))||"-"},"".concat(d,"_completed_at")),(0,D.jsx)(f.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(V,"/logs?block_run_id[]=").concat(d))},children:(0,D.jsx)(P.UL,{default:!0,size:2*k.iI})},"".concat(d,"_logs"))];return K&&C.push((0,D.jsx)(b.ZP,{alignItems:"center",justifyContent:"center",children:(0,D.jsx)(Z.Z,{appearBefore:!0,autoHide:!S,block:!0,forceVisible:S,label:S?"".concat(E||0,"mb downloaded..."):"Save block run output as CSV file",size:null,widthFitContent:!0,children:(0,D.jsx)(f.Z,{default:!0,disabled:!K||!(p.V.COMPLETED===x)||W,iconOnly:!0,loading:S,noBackground:!0,onClick:function(){N(null),A(d),z({blockUUID:_,pipelineRunId:O})},children:(0,D.jsx)(P.vc,{default:!0,size:2*k.iI})})})},"".concat(d,"_save_output"))),C})),uuid:"block-runs"})}},43482:function(n,e,t){t.d(e,{Dp:function(){return f},OF:function(){return v},Q9:function(){return h},Rt:function(){return s},h8:function(){return b},k1:function(){return d},uS:function(){return O}});var o=t(21831),u=t(82394),i=t(91427),r=t(24224),c=t(90211);function l(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function a(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?l(Object(t),!0).forEach((function(e){(0,u.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 s(n){var e={},t={};return null===n||void 0===n||n.forEach((function(n){var o=n.content,u=n.outputs,i=n.type,r=n.uuid;(null===u||void 0===u?void 0:u.length)>=1&&(e[r]=u.map((function(n){var e=n||{},t=e.sample_data,o=e.shape,u=e.text_data,i=e.type;return t?{data:a({shape:o},t),type:i}:u&&(0,c.Pb)(u)?JSON.parse(u):u}))),t[i]||(t[i]={}),t[i][r]=o})),{content:t,messages:e}}function d(n,e,t){n.forEach((function(n){(0,i.t8)("".concat(t,"/").concat(n.uuid,"/codeCollapsed"),(0,i.Od)("".concat(e,"/").concat(n.uuid,"/codeCollapsed"))),(0,i.t8)("".concat(t,"/").concat(n.uuid,"/outputCollapsed"),(0,i.Od)("".concat(e,"/").concat(n.uuid,"/outputCollapsed")))}))}function p(n){return"".concat(n,"/").concat(i.kP)}function f(n){return(0,i.U2)(p(n),[])}function v(n,e){var t=f(n);t.includes(e)||(0,i.t8)(p(n),[].concat((0,o.Z)(t),[e]))}function b(n,e){var t=f(n).filter((function(n){return n!==e}));(0,i.t8)(p(n),t)}function h(n,e){var t=(0,r.HK)(e,(function(n){return n.uuid}));return n.map((function(n){return t[n]})).filter((function(n){return!!n}))}var O=function(n,e){var t=window.URL.createObjectURL(n),o=document.createElement("a");o.href=t,o.download=e,document.body.appendChild(o),o.click(),o.remove()}},56681:function(n,e,t){t.d(e,{G7:function(){return y},ZP:function(){return x},u$:function(){return m}});var o=t(75582),u=t(82394),i=t(26304),r=t(32316),c=t(22673),l=t(48952),a=t(86673),s=t(19711),d=t(87815),p=t(49125),f=t(19395),v=t(7715),b=t(28598),h=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function O(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function j(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?O(Object(t),!0).forEach((function(e){(0,u.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var m=76,g={uuid:"Run details"},Z={uuid:"Dependency tree"},y=[Z,g];function x(n){var e=n.height,t=n.heightOffset,u=n.pipeline,O=n.selectedRun,x=n.selectedTab,_=n.setSelectedTab,P=j({},(0,i.Z)(n,h));O?P.blockStatus=(0,f.IJ)(null===O||void 0===O?void 0:O.block_runs):P.noStatus=!0;var k=(0,v.Kn)(null===O||void 0===O?void 0:O.variables)?j({},null===O||void 0===O?void 0:O.variables):(null===O||void 0===O?void 0:O.variables)||{},L=null===O||void 0===O?void 0:O.event_variables;if(L&&(0,v.Kn)(L)&&!(0,v.Qr)(L))if((0,v.Kn)(k)&&k.hasOwnProperty("event")){var w=(0,v.Kn)(k.event)?k.event:{};k.event=j(j({},w),L)}else k.event=j({},L);var S=[];k&&JSON.stringify(k,null,2).split("\n").forEach((function(n){S.push(" ".concat(n))}));var T=O&&[["Run ID",null===O||void 0===O?void 0:O.id],["Variables",(0,b.jsx)(c.Z,{language:"json",small:!0,source:S.join("\n")},"variable_value")]],D=O&&(0,b.jsx)(a.Z,{pb:p.cd,px:p.cd,children:(0,b.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(n){return 1===n?"100px":null},rows:T.map((function(n,e){var t=(0,o.Z)(n,2),u=t[0],i=t[1];return[(0,b.jsx)(s.ZP,{monospace:!0,muted:!0,children:u},"key_".concat(e)),(0,b.jsx)(s.ZP,{monospace:!0,textOverflow:!0,children:i},"val_".concat(e))]})),uuid:"LogDetail"})}),C=x&&_;return(0,b.jsxs)(b.Fragment,{children:[C&&(0,b.jsx)(a.Z,{py:p.cd,children:(0,b.jsx)(r.Z,{onClickTab:_,selectedTabUUID:null===x||void 0===x?void 0:x.uuid,tabs:y})}),(!C||Z.uuid===(null===x||void 0===x?void 0:x.uuid))&&(0,b.jsx)(l.Z,j(j({},P),{},{height:e,heightOffset:(t||0)+(C?m:0),pipeline:u})),g.uuid===(null===x||void 0===x?void 0:x.uuid)&&D]})}},73828:function(n,e,t){t.d(e,{JD:function(){return b},Lu:function(){return i},PF:function(){return p},dT:function(){return r},n6:function(){return a},nB:function(){return v},oy:function(){return f},xF:function(){return d}});var o,u,i,r,c=t(82394),l=t(86422);!function(n){n.CSV="csv",n.JSON="json",n.MD="md",n.PY="py",n.R="r",n.SQL="sql",n.TXT="txt",n.YAML="yaml",n.YML="yml"}(i||(i={})),function(n){n.INIT_PY="__init__.py",n.METADATA_YAML="metadata.yaml",n.REQS_TXT="requirements.txt"}(r||(r={}));var a=[i.PY,i.SQL],s=[i.JSON,i.MD,i.PY,i.R,i.SQL,i.TXT,i.YAML,i.YML],d=new RegExp(s.map((function(n){return".".concat(n,"$")})).join("|")),p=(new RegExp(s.map((function(n){return".".concat(n,"$")})).join("|")),"charts"),f="pipelines",v=(o={},(0,c.Z)(o,i.MD,l.t6.MARKDOWN),(0,c.Z)(o,i.JSON,i.JSON),(0,c.Z)(o,i.PY,l.t6.PYTHON),(0,c.Z)(o,i.R,l.t6.R),(0,c.Z)(o,i.SQL,l.t6.SQL),(0,c.Z)(o,i.TXT,"text"),(0,c.Z)(o,i.YAML,l.t6.YAML),(0,c.Z)(o,i.YML,l.t6.YAML),o),b=(u={},(0,c.Z)(u,l.t6.MARKDOWN,i.MD),(0,c.Z)(u,l.t6.PYTHON,i.PY),(0,c.Z)(u,l.t6.R,i.R),(0,c.Z)(u,l.t6.SQL,i.SQL),(0,c.Z)(u,l.t6.YAML,i.YAML),(0,c.Z)(u,"text",i.TXT),u)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3391],{73828:function(n,e,t){t.d(e,{JD:function(){return g},Lu:function(){return o},PF:function(){return f},dT:function(){return c},n6:function(){return d},nB:function(){return p},oy:function(){return h},xF:function(){return s}});var i,r,o,c,a=t(82394),l=t(86422);!function(n){n.CSV="csv",n.JSON="json",n.MD="md",n.PY="py",n.R="r",n.SQL="sql",n.TXT="txt",n.YAML="yaml",n.YML="yml"}(o||(o={})),function(n){n.INIT_PY="__init__.py",n.METADATA_YAML="metadata.yaml",n.REQS_TXT="requirements.txt"}(c||(c={}));var d=[o.PY,o.SQL],u=[o.JSON,o.MD,o.PY,o.R,o.SQL,o.TXT,o.YAML,o.YML],s=new RegExp(u.map((function(n){return".".concat(n,"$")})).join("|")),f=(new RegExp(u.map((function(n){return".".concat(n,"$")})).join("|")),"charts"),h="pipelines",p=(i={},(0,a.Z)(i,o.MD,l.t6.MARKDOWN),(0,a.Z)(i,o.JSON,o.JSON),(0,a.Z)(i,o.PY,l.t6.PYTHON),(0,a.Z)(i,o.R,l.t6.R),(0,a.Z)(i,o.SQL,l.t6.SQL),(0,a.Z)(i,o.TXT,"text"),(0,a.Z)(i,o.YAML,l.t6.YAML),(0,a.Z)(i,o.YML,l.t6.YAML),i),g=(r={},(0,a.Z)(r,l.t6.MARKDOWN,o.MD),(0,a.Z)(r,l.t6.PYTHON,o.PY),(0,a.Z)(r,l.t6.R,o.R),(0,a.Z)(r,l.t6.SQL,o.SQL),(0,a.Z)(r,l.t6.YAML,o.YAML),(0,a.Z)(r,"text",o.TXT),r)},29237:function(n,e,t){var i=t(38626),r=t(67971),o=t(86673),c=t(19711),a=t(23831),l=t(73942),d=t(37391),u=t(49125),s=t(28598),f=(0,i.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*u.iI,1.5*u.iI,1.5*u.iI),h=i.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],l.n_,(function(n){return n.fullWidth&&"\n width: 100%;\n "}),(function(n){return!n.borderless&&"\n border: 1px solid ".concat((n.theme.interactive||a.Z.interactive).defaultBorder,";\n ")}),(function(n){return n.success&&"\n background-color: ".concat((n.theme.background||a.Z.background).successLight,";\n ")}),(function(n){return n.success&&!n.borderless&&"\n border: 1px solid ".concat((n.theme.background||a.Z.background).success,";\n ")}),(function(n){return!n.dark&&!n.success&&"\n background-color: ".concat((n.theme.background||a.Z.background).panel,";\n ")}),(function(n){return n.dark&&"\n background-color: ".concat((n.theme.background||a.Z.background).content,";\n ")}),(function(n){return!n.fullHeight&&"\n height: fit-content;\n "}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,";\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,"px;\n ")}),(function(n){return n.minWidth&&"\n min-width: ".concat(n.minWidth,"px;\n\n @media (max-width: ").concat(n.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(n){return n.borderless&&"\n border: none;\n "}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),p=i.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],l.n_,l.n_,(function(n){return"\n background-color: ".concat((n.theme.background||a.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((n.theme.interactive||a.Z.interactive).defaultBorder,";\n ")}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),f,(function(n){return n.headerPaddingVertical&&"\n padding-bottom: ".concat(n.headerPaddingVertical,"px;\n padding-top: ").concat(n.headerPaddingVertical,"px;\n ")})),g=i.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*u.iI,d.w5,(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return n.maxHeight&&"\n max-height: calc(".concat(n.maxHeight," - ").concat(15*u.iI,"px);\n ")}),(function(n){return n.noPadding&&"\n padding: 0;\n "}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),m=i.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],l.M8,l.YF,1.75*u.iI);e.Z=function(n){var e=n.borderless,t=n.children,i=n.containerRef,a=n.contentContainerRef,l=n.dark,d=n.footer,u=n.fullHeight,f=void 0===u||u,b=n.fullWidth,x=void 0===b||b,y=n.header,w=n.headerHeight,v=n.headerIcon,j=n.headerPaddingVertical,P=n.headerTitle,Z=n.maxHeight,_=n.maxWidth,S=n.minWidth,O=n.noPadding,N=n.overflowVisible,I=n.subtitle,H=n.success;return(0,s.jsxs)(h,{borderless:e,dark:l,fullHeight:f,fullWidth:x,maxHeight:Z,maxWidth:_,minWidth:S,overflowVisible:N,ref:i,success:H,children:[(y||P)&&(0,s.jsxs)(p,{headerPaddingVertical:j,height:w,children:[y&&y,P&&(0,s.jsx)(r.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(r.ZP,{alignItems:"center",children:[v&&v,(0,s.jsx)(o.Z,{ml:v?1:0,children:(0,s.jsx)(c.ZP,{bold:!0,default:!0,children:P})})]})})]}),(0,s.jsxs)(g,{maxHeight:Z,noPadding:O,overflowVisible:N,ref:a,children:[I&&(0,s.jsx)(o.Z,{mb:2,children:(0,s.jsx)(c.ZP,{default:!0,children:I})}),t]}),d&&(0,s.jsx)(m,{children:d})]})}},66176:function(n,e,t){var i=t(82394),r=t(91835),o=(t(82684),t(38626)),c=t(23831),a=t(73942),l=t(49125),d=t(28598);function u(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function s(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?u(Object(t),!0).forEach((function(e){(0,i.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var f=o.default.div.withConfig({displayName:"ProgressBar__ProgressBarContainerStyle",componentId:"sc-10x9ojc-0"})(["border-radius:","px;height:","px;overflow:hidden;position:relative;width:100%;",""],a.BG,.75*l.iI,(function(n){return"\n background-color: ".concat((n.theme.monotone||c.Z.monotone).grey200,";\n ")})),h=o.default.div.withConfig({displayName:"ProgressBar__ProgressBarStyle",componentId:"sc-10x9ojc-1"})(["height:inherit;position:absolute;"," "," "," ",""],(function(n){return!n.danger&&"\n background-color: ".concat((n.theme.progress||c.Z.progress).positive,";\n ")}),(function(n){return n.progress&&"\n width: ".concat(n.progress,"%;\n ")}),(function(n){return n.danger&&"\n background-color: ".concat((n.theme.progress||c.Z.progress).negative,";\n ")}),(function(n){return n.animateProgress&&"\n animation: animate-progress ".concat(n.animateProgress.duration,"ms linear forwards;\n\n @keyframes animate-progress {\n 0% {\n width: ").concat(n.animateProgress.start,"%;\n }\n\n 100% {\n width: ").concat(n.animateProgress.end,"%;\n }\n }\n ")}));e.Z=function(n){var e=(0,r.Z)({},n);return(0,d.jsx)(f,s(s({},e),{},{children:(0,d.jsx)(h,s({},e))}))}},87372:function(n,e,t){var i,r,o,c,a,l,d,u,s=t(82394),f=t(26304),h=t(26653),p=t(38626),g=t(33591),m=t(23831),b=t(2005),x=t(31012),y=t(19711),w=t(49125),v=t(86673),j=t(28598),P=["children","condensed","inline","level","marketing","spacingBelow"];function Z(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function _(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(t),!0).forEach((function(e){(0,s.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var S=(0,p.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],y.IH,(function(n){return n.color&&"\n color: ".concat(n.color,"\n ")}),(function(n){return n.yellow&&"\n color: ".concat((n.theme.accent||m.Z.accent).yellow,";\n ")}),(function(n){return n.center&&"\n text-align: center;\n "}),(function(n){return!n.monospace&&0===Number(n.weightStyle)&&"\n font-family: ".concat(b.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "})),O=p.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||m.Z.content).active,";\n ")})),N=p.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],S,g.media.md(i||(i=(0,h.Z)(["\n ","\n "])),x.aQ),g.media.lg(r||(r=(0,h.Z)(["\n ","\n "])),x.aQ),g.media.xl(o||(o=(0,h.Z)(["\n ","\n "])),x.aQ)),I=p.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],S,x.MJ),H=p.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],S,g.media.xs(c||(c=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),g.media.sm(a||(a=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),g.media.md(l||(l=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),g.media.lg(d||(d=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),g.media.xl(u||(u=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),k=p.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],S,x.BL),C=p.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],S),L=p.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],S),M=p.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],S),Y=p.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],S,(function(n){return 1===n.level&&"\n ".concat(x.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(x.BL,"\n ")}),(function(n){return 3===n.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(n){return 4===n.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),z=function(n){var e,t=n.children,i=n.condensed,r=n.inline,o=n.level,c=n.marketing,a=n.spacingBelow,l=(0,f.Z)(n,P);r?e=Y:0===Number(o)?e=N:1===Number(o)?e=c?H:I:2===Number(o)?e=k:3===Number(o)?e=C:4===Number(o)?e=L:5===Number(o)&&(e=M);var d=(0,j.jsxs)(e,_(_({},l),{},{level:o,children:[a&&(0,j.jsx)(v.Z,{mb:i?2:3,children:t}),!a&&t]}));return r?d:(0,j.jsx)(O,{children:d})};z.defaultProps={level:3,weightStyle:6},e.Z=z}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6299],{43032:function(e,n,t){t.d(n,{Cl:function(){return u},Nk:function(){return c},ZG:function(){return l}});var o=t(38626),r=t(23831),i=t(49125),l=1.5*i.iI,u=1*l+i.iI/2,c=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(e){return"\n background-color: ".concat((e.theme.interactive||r.Z.interactive).hoverBackground,";\n ")}))},46299:function(e,n,t){t.d(n,{Z:function(){return ie}});var o=t(82394),r=t(75582),i=t(26304),l=t(82684),u=t(38626),c=t(83455),a=t(86422),s=t(62084),d=t(16634),f=t(73828),p=t(93461),v=t(19711),h=t(22341),m=t(43032),b=t(49125),g=t(60701),j=t(91427),y=t(44162),C=t(32821),k=t(24224),x=t(90211),w=t(28598);function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Z="default_repo";var F=function e(n){var t=n.allowEmptyFolders,o=n.allowSelectingFolders,r=n.containerRef,i=n.disableContextMenu,u=n.file,c=n.isFileDisabled,s=n.level,O=n.onClickFile,F=n.onClickFolder,P=n.onSelectBlockFile,E=n.onlyShowChildren,_=n.openFile,I=n.openPipeline,S=n.openSidekickView,R=n.pipelineBlockUuids,T=n.renderAfterContent,N=n.selectFile,M=n.setContextItem,L=n.setCoordinates,A=n.setDraggingFile,U=n.setSelectedFile,B=n.theme,z=n.timeout,q=n.uncollapsed,W=n.useRootFolder,Y=u.children,$=u.disabled,G=u.name,H=u.parent;G||t||(u.name=Z);var Q,X=W?(0,C.a9)(u):(0,C.jN)(u),V=(null===H||void 0===H?void 0:H.name)===f.oy,J=(0,l.useMemo)((function(){return Y?(0,k.YC)(Y,(function(e){return e.children?0:1})):Y}),[Y]),K=c?c(X,J):$,ee=c?c(X,J):$,ne="".concat(s,"/").concat(G),te=!!(Array.isArray(J)&&(null===J||void 0===J?void 0:J.length)>0)&&(0,j.U2)(ne,s>1),oe=(0,l.useState)("undefined"===typeof q?te:!q),re=oe[0],ie=oe[1],le=h.iU;1===s&&G===f.oy?le=h.B_:G===f.PF?le=h.er:J?le=h.gt:!G&&t&&(le=h.mH),J&&a.$W.includes((0,x.C5)(G))&&(0,x.C5)(G)!==a.tf.CHART&&(Q=(0,y.qn)((0,x.C5)(G),{theme:B}).accent);var ue=(0,l.useMemo)((function(){return null===J||void 0===J?void 0:J.map((function(n){return(0,w.jsx)(e,{allowEmptyFolders:t,allowSelectingFolders:o,containerRef:r,disableContextMenu:i,file:D(D({},n),{},{parent:u}),isFileDisabled:c,level:E?s:s+1,onClickFile:O,onClickFolder:F,onSelectBlockFile:P,openFile:_,openPipeline:I,openSidekickView:S,pipelineBlockUuids:R,renderAfterContent:T,selectFile:N,setContextItem:M,setCoordinates:L,setDraggingFile:A,setSelectedFile:U,theme:B,timeout:z,uncollapsed:q,useRootFolder:W},"".concat(ne,"/").concat((null===n||void 0===n?void 0:n.name)||Z))}))}),[t,o,J,r,i,u,c,s,O,F,P,E,_,I,S,R,T,N,M,L,A,U,B,z,q,W,ne]),ce=(0,l.useMemo)((function(){var e=[];return(0,k.w6)(s).forEach((function(n,t){var o,r=m.Cl-1;e.push((0,w.jsx)("div",{style:{borderLeft:"1px solid ".concat(null===B||void 0===B||null===(o=B.content)||void 0===o?void 0:o.disabled),height:22,marginLeft:r/2-2,paddingLeft:r/2+2}},"line-".concat(ne,"-").concat(t)))})),e}),[s,B,ne]);return(0,w.jsxs)(w.Fragment,{children:[!E&&(0,w.jsxs)("div",{className:"row",onClick:function(e){if(e.preventDefault(),!ee){if((null===H||void 0===H?void 0:H.name)===f.PF){null===S||void 0===S||S(g.cH.CHARTS);var n=(0,C.lr)(u);n&&(null===P||void 0===P||P(n.uuid,n.type,(0,C.jN)(u)))}var t=(0,C.V3)(u);if(J)o?N(X):ie((function(e){return(0,j.t8)(ne,!e),!e})),null===F||void 0===F||F(X);else if(O)O(X);else if(t)null===P||void 0===P||P(t.uuid,t.type,(0,C.jN)(u));else if(G.match(f.xF))null===_||void 0===_||_(X);else{var r=(0,C.lr)(u);r&&(null===P||void 0===P||P(r.uuid,r.type,(0,C.jN)(u)))}}},onContextMenu:function(e){var n;clearTimeout(z.current),null!==r&&void 0!==r&&null!==(n=r.current)&&void 0!==n&&n.contains(e.target)&&!i&&(e.preventDefault(),L({x:e.pageX,y:e.pageY}),A(null),U(u))},onMouseDown:function(e){var n,t=u?(0,C.lr)(u,null,!0):null;null===r||void 0===r||null===(n=r.current)||void 0===n||!n.contains(e.target)||!t||(null===J||void 0===J?void 0:J.length)>=1||i||ee||V||(e.preventDefault(),clearTimeout(z.current),z.current=setTimeout((function(){L({x:e.pageX,y:e.pageY}),A(u),U(null)}),300))},style:{alignItems:"center",cursor:"default",display:"flex",minWidth:s*m.Cl+u.name.length*b.Fo+2*b.iI,paddingRight:b.iI/4},children:[(0,w.jsxs)(p.Z,{alignItems:"center",flex:1,children:[ce,J&&!re&&(0,w.jsx)(h._M,{muted:!0,size:m.ZG}),J&&re&&(0,w.jsx)(h._Q,{muted:!0,size:m.ZG}),!J&&(0,w.jsx)("div",{style:{width:m.ZG}}),(0,w.jsxs)("div",{style:{marginLeft:b.iI/2,marginRight:b.iI/2},children:[!Q&&(0,w.jsx)(le,{disabled:K,size:m.ZG}),Q&&(0,w.jsx)(d.Z,{color:Q,size:m.ZG,square:!0})]}),(0,w.jsx)(v.ZP,{color:Q,default:!Q&&!ee,disabled:ee,monospace:!0,small:!0,children:G})]}),T&&T(u)]}),(0,w.jsx)("div",{style:{display:re?"none":"block"},children:ue})]})},P=t(60328),E=t(67971),_=t(11135),I=t(29237),S=t(86673),R=t(82944),T=t(82531),N=t(7715),M=t(96510);var L=function(e){var n=e.fetchFileTree,t=e.file,o=e.moveFile,i=e.onCancel,u=e.onCreateFile,a=e.selectedFolder,s=e.setErrors,d=(0,l.useRef)(null),f=(0,N.Qr)(t)?null:t,p=(0,l.useState)(f?(0,C.jN)(f,null,!0):""),v=p[0],h=p[1],m=(0,l.useState)(f?null===f||void 0===f?void 0:f.name:""),b=m[0],g=m[1];(0,l.useEffect)((function(){var e;null===d||void 0===d||null===(e=d.current)||void 0===e||e.focus()}),[]),(0,l.useEffect)((function(){a&&h((0,C.jN)(a))}),[a]);var j=(0,c.Db)(T.ZP.files.useCreate(),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(e){var t=e.file;null===n||void 0===n||n(),i(),null===u||void 0===u||u(t)},onErrorCallback:function(e,n){return s({errors:n,response:e})}})}}),y=(0,r.Z)(j,1)[0],k=(0,c.Db)(T.ZP.files.useUpdate(f&&encodeURIComponent((0,C.jN)(f))),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){null===n||void 0===n||n(),i()},onErrorCallback:function(e,n){return s({errors:n,response:e})}})}}),x=(0,r.Z)(k,1)[0];return(0,w.jsxs)(I.Z,{footer:(0,w.jsxs)(E.ZP,{children:[(0,w.jsxs)(_.ZP,{bold:!0,disabled:!b,inline:!0,onClick:function(){return f?x({file:{dir_path:v,name:b},file_json_only:!0}):y({file:{dir_path:v,name:b,overwrite:!1},file_json_only:!0})},primary:!0,tabIndex:0,uuid:"NewFile/create_file",children:[f?o?"Move":"Rename":"Create"," file"]}),(0,w.jsx)(S.Z,{ml:1,children:(0,w.jsx)(P.Z,{onClick:function(){return i()},tabIndex:0,children:"Cancel"})})]}),headerTitle:f?o?"Move file":"Rename file":"New file",children:[(0,w.jsx)(R.Z,{disabled:!!f&&!o,label:"Directory",monospace:!0,onChange:function(e){return h(e.target.value)},setContentOnMount:!0,value:v}),(0,w.jsx)(S.Z,{mt:2,children:(0,w.jsx)(R.Z,{disabled:!!o,label:"Filename",monospace:!0,onChange:function(e){return g(e.target.value)},ref:d,required:!0,value:b})})]})};var A=function(e){var n=e.fetchFileTree,t=e.file,o=e.moveFile,i=e.onCancel,u=e.onCreateFile,a=e.selectedFolder,s=e.setErrors,d=(0,l.useRef)(null),f=(0,N.Qr)(t)?null:t,p=(0,l.useState)(f?(0,C.jN)(f,null,!0):""),v=p[0],h=p[1],m=(0,l.useState)(f?null===f||void 0===f?void 0:f.name:""),b=m[0],g=m[1];(0,l.useEffect)((function(){var e;null===d||void 0===d||null===(e=d.current)||void 0===e||e.focus()}),[]),(0,l.useEffect)((function(){a&&h((0,C.jN)(a,null,!0))}),[a]);var j=(0,c.Db)(T.ZP.folders.useCreate(),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(e){var t=e.file;null===n||void 0===n||n(),i(),null===u||void 0===u||u(t)},onErrorCallback:function(e,n){return s({errors:n,response:e})}})}}),y=(0,r.Z)(j,1)[0],k=(0,c.Db)(T.ZP.folders.useUpdate(f&&encodeURIComponent((0,C.jN)(f))),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){null===n||void 0===n||n(),i()},onErrorCallback:function(e,n){return s({errors:n,response:e})}})}}),x=(0,r.Z)(k,1)[0];return(0,w.jsxs)(I.Z,{footer:(0,w.jsxs)(E.ZP,{children:[(0,w.jsxs)(_.ZP,{bold:!0,disabled:!b,inline:!0,onClick:function(){return f?x({folder:{name:b,path:v}}):y({folder:{name:b,overwrite:!1,path:v}})},primary:!0,tabIndex:0,uuid:"NewFolder/create_folder",children:[f?o?"Move":"Rename":"Create"," folder"]}),(0,w.jsx)(S.Z,{ml:1,children:(0,w.jsx)(P.Z,{onClick:function(){return i()},tabIndex:0,children:"Cancel"})})]}),headerTitle:f?o?"Move folder":"Rename folder":"New folder",children:[(0,w.jsx)(R.Z,{disabled:!!f&&!o,label:"Directory",monospace:!0,onChange:function(e){return h(e.target.value)},setContentOnMount:!0,value:v}),(0,w.jsx)(S.Z,{mt:2,children:(0,w.jsx)(R.Z,{disabled:!!o,label:"Folder name",monospace:!0,onChange:function(e){return g(e.target.value)},ref:d,required:!0,value:b})})]})},U=t(98781),B=t(62609),z=t(55106),q=t(66176),W=t(87815),Y=t(23831),$=t(73942),G=(b.iI,u.default.div.withConfig({displayName:"indexstyle__DropZoneStyle",componentId:"sc-1g3zz7z-0"})(["border-radius:","px;padding:","px;max-width:","px;min-width:","px;",""],$.n_,8*b.iI,100*b.iI,55*b.iI,(function(e){return"\n border: 1px dashed ".concat((e.theme.borders||Y.Z.borders).contrast,";\n ")}))),H=u.default.div.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1g3zz7z-1"})(["max-width:","px;min-width:","px;"],100*b.iI,55*b.iI);var Q=function(e){var n=e.fetchFileTree,t=e.onCancel,o=e.selectedFolder,i=(0,l.useState)(!1),u=i[0],c=i[1],a=(0,l.useState)({}),s=a[0],d=a[1],f=(0,l.useState)({}),p=f[0],h=f[1],m=!(0,N.Qr)(s),b=(0,l.useMemo)((function(){var e=[];return(0,k.YC)(Object.entries(s),(function(e){var n=(0,r.Z)(e,2),t=n[0];n[1];return t})).forEach((function(n){var t=(0,r.Z)(n,2),o=t[0],i=t[1],l=p[o],u=null===l||void 0===l?void 0:l.message;e.push([(0,w.jsxs)("div",{children:[(0,w.jsx)(v.ZP,{overflowWrap:!0,preWrap:!0,children:o}),u&&(0,w.jsx)(S.Z,{mt:1,children:(0,w.jsx)(v.ZP,{danger:!0,small:!0,children:u})})]},"name-".concat(o)),(0,w.jsx)(q.Z,{danger:!!u,progress:100*i},"progress-".concat(o))])})),(0,w.jsx)(W.Z,{columnFlex:[1,4],columns:[{uuid:"Filename"},{uuid:"Upload progress"}],rows:e,uuid:"block-runs"})}),[s,p]);return(0,w.jsxs)(I.Z,{footer:(0,w.jsxs)(E.ZP,{fullWidth:!0,children:[(0,w.jsx)(P.Z,{onClick:function(){return t()},children:"Close"}),m&&(0,w.jsx)(S.Z,{ml:1,children:(0,w.jsx)(P.Z,{onClick:function(){d({}),h({})},children:"Clear files and retry"})})]}),headerTitle:"Upload files",children:[m&&(0,w.jsx)(H,{children:b}),!m&&(0,w.jsx)(z.Z,{directoryPath:o?(0,C.jN)(o):"",onDragActiveChange:c,setFileUploadProgress:d,setUploadedFiles:function(e){h(e),null===n||void 0===n||n()},children:(0,w.jsx)(G,{children:(0,w.jsxs)(v.ZP,{center:!0,children:[u&&"Drop to upload",!u&&"Click or drop files and folders to upload"]})})})]})},X=t(86585),V=t(55512),J=t(99497),K=["addNewBlock","blocks","deleteWidget","fetchAutocompleteItems","fetchFileTree","fetchPipeline","files","onCreateFile","pipeline","setErrors","setSelectedBlock","widgets"];function ee(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function ne(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ee(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ee(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var te,oe=20*b.iI;function re(e,n){var t=e.addNewBlock,o=e.blocks,d=void 0===o?[]:o,p=e.deleteWidget,h=e.fetchAutocompleteItems,g=e.fetchFileTree,j=e.fetchPipeline,y=e.files,x=e.onCreateFile,O=e.pipeline,D=e.setErrors,Z=e.setSelectedBlock,P=e.widgets,E=void 0===P?[]:P,_=(0,i.Z)(e,K),I=(0,l.useRef)(null),S=(0,l.useContext)(u.ThemeContext),R=(0,l.useState)(null),N=R[0],z=R[1],q=(0,l.useState)(null),W=q[0],Y=q[1],$=(0,l.useState)(null),G=$[0],H=$[1],ee=T.ZP.statuses.list().data,te=(0,l.useMemo)((function(){var e,n;return null===ee||void 0===ee||null===(e=ee.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.repo_path}),[ee]),re=(0,c.Db)((function(e){return T.ZP.files.useDelete(e)()}),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){null===g||void 0===g||g()},onErrorCallback:function(e,n){return D({errors:n,response:e})}})}}),ie=(0,r.Z)(re,1)[0],le=(0,c.Db)((function(e){return T.ZP.folders.useDelete(e)()}),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){null===g||void 0===g||g()},onErrorCallback:function(e,n){return D({errors:n,response:e})}})}}),ue=(0,r.Z)(le,1)[0],ce=(0,J.dd)((function(e){var n=e.block;return(0,w.jsx)(B.Z,{centerOnScreen:!0,danger:!0,onCancel:de,onClick:function(){return pe({block:n,force:!0}).then((function(){return de()}))},subtitle:"Deleting this block file is dangerous. This block may have dependencies in active pipelines. Press confirm to delete this block anyway and remove it as a dependency from downstream blocks.",title:"Delete ".concat(n.uuid," anyway?"),width:34*b.iI})})),ae=(0,r.Z)(ce,2),se=ae[0],de=ae[1],fe=(0,c.Db)((function(e){var n=e.block,t=n.language,o=n.type,r=n.uuid,i=e.force,l=void 0!==i&&i,u="".concat(o,"/").concat(r);return t&&f.JD[t]&&(u="".concat(u,".").concat(f.JD[t].toLowerCase())),T.ZP.blocks.useDelete(encodeURIComponent(u),{force:l})()}),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){h(),j(),g()},onErrorCallback:function(e){var n=e.error,t=n.exception;n.message.includes("raise HasDownstreamDependencies")&&se({block:ye,exception:t})}})}}),pe=(0,r.Z)(fe,1)[0],ve=(0,k.sE)(null===O||void 0===O?void 0:O.blocks,(function(e){var n=e.type;return a.tf.DATA_EXPORTER===n})),he=(0,c.Db)(T.ZP.blocks.pipelines.useUpdate(null===O||void 0===O?void 0:O.uuid,null===ve||void 0===ve?void 0:ve.uuid),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){null===j||void 0===j||j()},onErrorCallback:function(e,n){return D({errors:n,response:e})}})}}),me=(0,r.Z)(he,1)[0],be=(0,l.useCallback)((function(){return H(null)}),[H]);(0,l.useEffect)((function(){var e,o,r,i=function(e){if(clearTimeout(I.current),Y(null),W&&O&&t){var o,r,i=(null===n||void 0===n||null===(o=n.current)||void 0===o||null===(r=o.getBoundingClientRect)||void 0===r?void 0:r.call(o))||{},l=i.width,u=i.x;if(e.pageX>u+l){var c=(null===O||void 0===O?void 0:O.type)===U.qL.INTEGRATION,a=(0,V.TU)(ne(ne({},W),{},{path:(0,C.jN)(W)}),te,O);null===t||void 0===t||t(ne(ne({},a),{},{require_unique_name:!1}),(function(e){c&&ve&&me({block:ne(ne({},ve),{},{upstream_blocks:[e.uuid]})}),null===Z||void 0===Z||Z(e)}))}}},l=function(e){W&&z({x:e.pageX,y:e.pageY})};return null===(e=document)||void 0===e||e.addEventListener("click",be),null===(o=document)||void 0===o||o.addEventListener("mousemove",l),null===(r=document)||void 0===r||r.addEventListener("mouseup",i),function(){var e,n,t;null===(e=document)||void 0===e||e.removeEventListener("click",be),null===(n=document)||void 0===n||n.removeEventListener("mousemove",l),null===(t=document)||void 0===t||t.removeEventListener("mouseup",i)}}),[t,ve,W,be,O,n,te,Z,I,me]);var ge=(0,l.useMemo)((function(){return d.concat(E).map((function(e){return e.uuid}))}),[d,E]),je=(0,l.useMemo)((function(){return null===y||void 0===y?void 0:y.map((function(e){return(0,l.createElement)(F,ne(ne({},_),{},{containerRef:n,file:e,key:e.name,level:0,pipelineBlockUuids:ge,setCoordinates:z,setDraggingFile:Y,setSelectedFile:H,theme:S,timeout:I}))}))}),[y,ge,_,n,S,I]),ye=(0,l.useMemo)((function(){return G&&(0,C.lr)(G)}),[G]),Ce=(0,l.useMemo)((function(){return W&&(0,C.lr)(W)}),[W]),ke=(0,l.useMemo)((function(){return G&&"undefined"!==typeof(null===G||void 0===G?void 0:G.children)&&G}),[G]),xe=(0,J.dd)((function(){return(0,w.jsx)(Q,{fetchFileTree:g,onCancel:De,selectedFolder:ke})}),{},[g,ke],{background:!0,uuid:"upload_files"}),we=(0,r.Z)(xe,2),Oe=we[0],De=we[1],Ze=(0,J.dd)((function(e){return(0,w.jsx)(L,{fetchFileTree:g,file:null===e||void 0===e?void 0:e.file,moveFile:null===e||void 0===e?void 0:e.moveFile,onCancel:Ee,onCreateFile:x,selectedFolder:ke,setErrors:D})}),{},[g,x,ke,D],{background:!0,disableClickOutside:!0,uuid:"new_file"}),Fe=(0,r.Z)(Ze,2),Pe=Fe[0],Ee=Fe[1],_e=(0,J.dd)((function(e){return(0,w.jsx)(A,{fetchFileTree:g,file:null===e||void 0===e?void 0:e.file,moveFile:null===e||void 0===e?void 0:e.moveFile,onCancel:Re,selectedFolder:ke,setErrors:D})}),{},[g,ke,D],{background:!0,disableClickOutside:!0,uuid:"new_folder"}),Ie=(0,r.Z)(_e,2),Se=Ie[0],Re=Ie[1],Te=(0,l.useMemo)((function(){var e;if(!ye&&!G&&!ke)return(0,w.jsx)("div",{});var t=(null===n||void 0===n||null===(e=n.current)||void 0===e?void 0:e.getBoundingClientRect())||{},o=t.x,r=t.width,i=N||{},l=i.x,u=void 0===l?0:l,c=i.y,d=void 0===c?0:c,f=u;u+oe>=o+r&&(f=o+r-(oe+b.iI)),f<0&&(f=0);var v=[];return ke?v.push.apply(v,[{label:function(){return"New folder"},onClick:function(){Se()},uuid:"new_folder"},{label:function(){return"Rename folder"},onClick:function(){Se({file:ke})},uuid:"rename_folder"},{label:function(){return"Move folder"},onClick:function(){Se({file:ke,moveFile:!0})},uuid:"Move_folder"},{label:function(){return"Delete folder"},onClick:function(){var e=(0,C.jN)(ke);window.confirm("Are you sure you want to delete folder ".concat(e," and all its subfolders and files?"))&&ue(encodeURIComponent(e))},uuid:"Delete_folder"},{label:function(){return"New file"},onClick:function(){Pe({file:{}})},uuid:"new_file"},{label:function(){return"Upload files"},onClick:function(){Oe()},uuid:"upload_files"}]):G&&(v.push.apply(v,[{label:function(){return"Rename file"},onClick:function(){Pe({file:G})},uuid:"rename_file"},{label:function(){return"Move file"},onClick:function(){Pe({file:G,moveFile:!0})},uuid:"move_file"}]),ye?v.push({label:function(){return"Delete block file"},onClick:function(){ye.type===a.tf.CHART?window.confirm("Are you sure you want to delete widget ".concat(ye.uuid,"?"))&&p(ye):window.confirm("Are you sure you want to delete block ".concat(ye.uuid,"?"))&&pe({block:ye})},uuid:"delete_block_file"}):v.push({label:function(){return"Delete file"},onClick:function(){var e=(0,C.jN)(G);window.confirm("Are you sure you want to delete file ".concat(e,"?"))&&ie(encodeURIComponent(e))},uuid:"delete_file"})),(0,w.jsx)("div",{style:{left:f,position:"fixed",top:d+b.iI/2,zIndex:X.bf+100},children:(0,w.jsx)(s.Z,{items:v,open:!0,parentRef:void 0,uuid:"FileBrowser/ContextMenu",width:oe})})}),[N,pe,ie,ue,p,n,Oe,Pe,Se,ye,G,ke]);return(0,w.jsxs)(m.Nk,{ref:n,children:[je,(ye||G||ke)&&Te,Ce&&(0,w.jsx)("div",{style:{left:(null===N||void 0===N?void 0:N.x)-b.iI,position:"fixed",top:(null===N||void 0===N?void 0:N.y)-b.iI,zIndex:X.bf+100},children:(0,w.jsx)(v.ZP,{cursor:"grabbing",monospace:!0,children:null===Ce||void 0===Ce?void 0:Ce.uuid})})]})}!function(e){e.BLOCK_FILE="block_file",e.DISABLED="disabled",e.FILE="file",e.FOLDER="folder",e.PIPELINE="pipeline"}(te||(te={}));var ie=l.forwardRef(re)},32821:function(e,n,t){t.d(n,{IO:function(){return f},V3:function(){return d},a9:function(){return u},jN:function(){return a},lr:function(){return s},u$:function(){return p}});var o=t(17717),r=t(86422),i=t(73828),l=t(90211);function u(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n||(t?null:null===e||void 0===e?void 0:e.name);if(null!==e&&void 0!==e&&e.parent){var i=[e.parent.name];return(null===r||void 0===r?void 0:r.length)>=1&&i.push(r),u(e.parent,i.join(o.sep))}return r}function c(e){return null===e||void 0===e?void 0:e.split(o.sep).slice(1).join(o.sep)}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=u(e,n,t);return c(o)}function s(e){var n,t,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=u(e,c).split(o.sep);if(!s)return null;if(1===s.length)(s=null===e||void 0===e||null===(t=e.path)||void 0===t?void 0:t.split(o.sep))&&(n=s[0]===r.tf.CUSTOM?s[0]:(0,l.C5)(s[0]||""));else if(s[1]===r.tf.CUSTOM)n=s[1];else{var d=s[1];n=r.tf.DBT===d?d:(0,l.C5)(d||"")}if(!s||r.tf.DBT===n)return null;var f="";f=s.length>=3?s.slice(2,s.length).join(o.sep):s[s.length-1];var p=["\\.".concat(i.Lu.PY),"\\.".concat(i.Lu.R),"\\.".concat(i.Lu.SQL),"\\.".concat(i.Lu.YAML),"\\.".concat(i.Lu.YML)].join("|"),v=new RegExp("".concat(p,"$")),h=a?r.Q3:r.$W;if(h.concat(r.tf.DBT).includes(n)&&f.match(v)){var m=f.lastIndexOf("."),b=f.slice(m+1);return{language:i.nB[b],type:n,uuid:f.slice(0,m)}}}function d(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=u(e,n).split(o.sep);if(t[1]){var c=(0,l.C5)(t[n?0:1]);t[1]===r.tf.DBT&&(c=r.tf.DBT);var a=t[t.length-1],s=new RegExp(".".concat(i.Lu.YAML,"$")),d=new RegExp(".".concat(i.Lu.R,"$")),f=new RegExp(".".concat(i.Lu.SQL,"$")),p=new RegExp(".".concat(i.Lu.MD,"$"));if(a.match(s)&&r.VZ.includes(c))return{type:c,uuid:a.replace(s,"")};if(a.match(d)&&r.J8.includes(c))return{type:c,uuid:a.replace(d,"")};if(a.match(f)&&r.HX.includes(c)){var v=a.replace(/[.]/g,"_"),h=c===r.tf.DBT?t.slice(2,-1).join("_").concat("_".concat(v)):a.replace(f,"");return{type:c,uuid:h}}return a.match(p)&&c===r.tf.MARKDOWN?{type:c,uuid:a.replace(p,"")}:void 0}}function f(e,n){var t=e.split("."),r=t[t.length-1];i.n6.includes(r)&&t.pop();var l=t.join("").split(o.sep),u=l.slice(1,l.length).join("");return n.find((function(e){return e.uuid===u}))}function p(e){var n=e||{},t=n.language,o=n.name,u=n.type;if(o&&t&&u){var c=u===r.tf.CUSTOM?u:"".concat(u,"s"),a=i.JD[t],s=(0,l.kE)(o);return"".concat(c,"/").concat(s,".").concat(a)}}},55512:function(e,n,t){t.d(n,{TU:function(){return f},ck:function(){return s},lU:function(){return d}});var o=t(21831),r=t(17717),i=t(86422),l=t(98781),u=t(73828),c=t(24224),a=t(90211),s=function(e){var n=e[0];return n===i.tf.DBT||n===i.tf.CUSTOM?n:e[0].slice(0,-1)};function d(){return new RegExp(Object.keys(u.nB).map((function(e){return".(".concat(e,")$")})).join("|"))}function f(e,n,t){var f,p,v=null===e||void 0===e||null===(f=e.path.match(d())[0])||void 0===f?void 0:f.split(".")[1],h=t.type===l.qL.INTEGRATION,m=(0,c.sE)(null===t||void 0===t?void 0:t.blocks,(function(e){var n=e.type;return i.tf.DATA_EXPORTER===n})),b=e.path.replace(n,"").split(r.sep),g=e.path.split(r.sep)[0]===i.tf.DBT,j=(p=b)[0]===i.tf.DBT?p.slice(1).join(r.sep):function(e){return e.at(-1)}(p).split(".")[0];if(b.length>=3&&!g){var y=b.slice(1,b.length-1).join(r.sep);j="".concat(y,"/").concat(j)}var C=s(e.path.split(r.sep)),k={configuration:{file_path:g?j:null},language:u.nB[v],name:(0,a.wE)(j),type:C};if(C===i.tf.CUSTOM&&(k.color=i.Lq.TEAL),h){var x=(0,c.sE)(t.blocks,(function(e){var n=e.type;return i.tf.DATA_LOADER===n})),w=(0,c.sE)(t.blocks,(function(e){var n=e.type;return i.tf.TRANSFORMER===n})),O=[];w?O.push(w.uuid):null!==m&&void 0!==m&&m.upstream_blocks?O.push.apply(O,(0,o.Z)(m.upstream_blocks)):x&&O.push(x.uuid),k.upstream_blocks=O}return k}},55106:function(e,n,t){t.d(n,{Z:function(){return g}});var o=t(82394),r=t(75582),i=t(17717),l=t(82684),u=t(83455),c=t(38626),a=t(77011),s=t(28598);function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var p=c.default.div.withConfig({displayName:"MultiFileInput__DropzoneStyle",componentId:"sc-1l6yd2y-0"})(["&:hover{cursor:pointer;}"]);var v=function(e){var n=e.children,t=e.inputOnChange,o=e.inputProps,r=e.onDragActiveChange,i=e.setFiles,u=(0,l.useCallback)((function(e){i(e)}),[i]),c=(0,a.uI)({onDrop:u}),d=c.getInputProps,v=c.getRootProps,h=c.isDragActive,m=d(),b=m.accept,g=m.autoComplete,j=m.multiple,y=m.onChange,C=m.onClick,k=m.ref,x=m.style,w=m.tabIndex,O=m.type,D=f(f({},o),{},{accept:b,autoComplete:g,multiple:j,onChange:function(e){null===t||void 0===t||t(e),null===o||void 0===o||o.onChange(e),y(e)},onClick:C,ref:k,style:x,tabIndex:w,type:O});return(0,l.useEffect)((function(){null===r||void 0===r||r(h)}),[h,r]),(0,s.jsxs)(p,f(f({},v()),{},{children:[(0,s.jsx)("input",f(f({},D),{},{directory:"",webkitdirectory:""})),n]}))},h=t(82531);function m(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?m(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=function(e){var n=e.children,t=e.directoryPath,c=e.onDragActiveChange,a=e.setFileUploadProgress,d=e.setUploadedFiles,f=(0,u.Db)(h.ZP.files.useCreate({onUploadProgress:function(e,n){var t,r=n.body,l=[null===r||void 0===r?void 0:r.dir_path,null===r||void 0===r||null===(t=r.file)||void 0===t?void 0:t.name].filter((function(e){return(null===e||void 0===e?void 0:e.length)>=1})).join(i.sep);null===a||void 0===a||a((function(n){return b(b({},n),{},(0,o.Z)({},l,e.loaded/e.total))}))}})),p=(0,r.Z)(f,1)[0],m=(0,l.useCallback)((function(e){e.forEach((function(e){var n=e.name,r=e.path,l=[t],u=r.split(i.sep).filter((function(e){return e&&e!==n})).join(i.sep);u&&l.push(u);var c=[],s=l.join(i.sep);(null===s||void 0===s?void 0:s.length)>=1&&l.push(s),c.push(n);var f=c.join(i.sep);p({dir_path:s,file:e,overwrite:!1}).then((function(e){var n=e.data,t=n.error,r=n.file;d((function(e){return b(b({},e),{},(0,o.Z)({},f,r||t))}))})),a((function(e){return b(b({},e),{},(0,o.Z)({},f,0))}))}))}),[p,t,a,d]);return(0,s.jsx)(v,{onDragActiveChange:c,setFiles:m,children:n})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8952],{35438:function(n,e,o){o.d(e,{Ai:function(){return l},Jo:function(){return r},bJ:function(){return c},rl:function(){return t}});var t,i=o(86422),r=(o(49125).iI,1e4),l={compact:!0},c={height:10,width:10};i.tf.DATA_EXPORTER,i.tf.SENSOR,i.Lq.GREY,i.Lq.PINK,i.Lq.TEAL,i.Lq.YELLOW;!function(n){n.NORTH="NORTH",n.SOUTH="SOUTH"}(t||(t={}))},48952:function(n,e,o){o.d(e,{Z:function(){return yn}});var t=o(75582),i=o(21831),r=o(82394),l=o(26304),c=o(77837),u=o(38860),d=o.n(u),a=o(51774),s=o.n(a),v=o(38626),f=o(4804),p=o(82684),h=o(83455),b=o(18283),m=o(86422),k=o(16634),g=o(93461),x=o(67971),y=o(86673),O=o(54283),C=o(19711),E=o(23831),j=o(22341),I=o(73942),T=o(49125),Z=3*T.iI,w=v.default.div.withConfig({displayName:"indexstyle__NodeStyle",componentId:"sc-kc7274-0"})(["border-radius:","px;border:1px solid transparent;min-width:fit-content;overflow:hidden;"," "," "," "," "," "," "," ",""],I.n_,(function(n){return"\n background-color: ".concat((n.theme.background||E.Z.background).codeTextarea,";\n ")}),(function(n){return n.borderColor&&"\n border-color: ".concat(n.borderColor,";\n ")}),(function(n){return n.selected&&"\n border-color: ".concat((n.theme.content||E.Z.content).active,";\n ")}),(function(n){return(n.isCancelled||n.disabled)&&"\n // opacity doesn\u2019t work on Safari\n border-color: ".concat((n.theme.content||E.Z.content).muted,";\n border-style: dotted;\n cursor: not-allowed;\n opacity: 0.5;\n ")}),(function(n){return n.isConditionFailed&&"\n background-color: ".concat((n.theme.content||E.Z.content).disabled,";\n cursor: not-allowed;\n ")}),(function(n){return n.isConditionFailed&&"\n background-color: ".concat((n.theme.content||E.Z.content).disabled,";\n cursor: not-allowed;\n ")}),(function(n){return n.disabled&&"\n &:hover {\n cursor: not-allowed;\n }\n "}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")})),_=v.default.div.withConfig({displayName:"indexstyle__StatusStyle",componentId:"sc-kc7274-1"})(["height:","px;width:","px;"],2*T.iI,2*T.iI),A=v.default.div.withConfig({displayName:"indexstyle__IconStyle",componentId:"sc-kc7274-2"})(["align-items:center;border-radius:","px;border:2px solid transparent;display:flex;height:","px;justify-content:center;width:","px;"," ",""],I.BG,5*T.iI,5*T.iI,(function(n){return n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n border-color: ").concat(n.backgroundColor,";\n ")}),(function(n){return n.borderColor&&"\n border-color: ".concat(n.borderColor,";\n ")})),D=v.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-kc7274-3"})(["padding:","px;",""],1*T.iI,(function(n){return"\n background-color: ".concat((n.theme.background||E.Z.background).dashboard,";\n ")})),R=v.default.div.withConfig({displayName:"indexstyle__BodyStyle",componentId:"sc-kc7274-4"})(["padding-left:","px;padding-right:","px;"],1*T.iI,1*T.iI),S=(v.default.div.withConfig({displayName:"indexstyle__RuntimeStyle",componentId:"sc-kc7274-5"})(["margin-right:","px;padding:12px 4px;height:100%;width:50px;background:rgba(0,0,0,0.2);background-blend-mode:soft-light;"],2*T.iI),o(98781)),P=o(75968),N=o(25958),B=T.cd,L=T.cd*T.iI,M=2*T.iI,F=7.43,H=2*T.iI+5*T.iI,U=2*T.iI+5*T.iI+L+L+M,G=30*T.iI;function V(n){var e=(0,P.MS)(n);if((null===e||void 0===e?void 0:e.length)>=1)return(null===e||void 0===e?void 0:e.map((function(n){return n.title})).join(", "))||"";if(m.tf.GLOBAL_DATA_PRODUCT===(null===n||void 0===n?void 0:n.type)){var o,t=null===n||void 0===n||null===(o=n.configuration)||void 0===o?void 0:o.global_data_product;if(null!==t&&void 0!==t&&t.uuid)return null===t||void 0===t?void 0:t.uuid}return m.dO[null===n||void 0===n?void 0:n.language]||""}function q(n,e){var o,t=n.type,i=(null===m.V4||void 0===m.V4?void 0:m.V4[t])||t;if(S.qL.INTEGRATION===(null===e||void 0===e?void 0:e.type)&&m.tf.TRANSFORMER!==n.type){var r,l={};if(m.t6.YAML===n.language&&(l=(0,f.Qc)(n.content)),m.tf.DATA_LOADER===n.type)o="".concat(n.uuid,": ").concat(null===(r=l)||void 0===r?void 0:r.source);else if(m.tf.DATA_EXPORTER===n.type){var c;o="".concat(n.uuid,": ").concat(null===(c=l)||void 0===c?void 0:c.destination)}}else if(m.tf.DBT===n.type&&m.t6.SQL===n.language){var u=(0,N.IU)(n),d=u.name,a=u.project;o=d,i="".concat(i,"/").concat(a)}return null!==n&&void 0!==n&&n.replicated_block&&(o=null===n||void 0===n?void 0:n.replicated_block,i=null===n||void 0===n?void 0:n.uuid),o||(o=n.uuid),{displayText:o,subtitle:i}}function J(n,e){return q(n,e).displayText||""}function X(n,e){return q(n,e).subtitle||""}function z(n){var e=0;return null===n||void 0===n||n.forEach((function(n,o){var t=n.uuid;e+=4+t.length*F,o>=1&&(e+=4)})),e}function Q(n,e,o){var t,i=0,r=2+H,l=W(n,e,o)-(2+2*T.iI),c=V(n),u=(null===c||void 0===c?void 0:c.length)*F;if(u>=1){var d=1;u>l&&(d=Math.ceil(u/l)),i+=1,r+=18*d}var a=o||{},s=a.blockStatus;return[a.callbackBlocks,a.conditionalBlocks,a.extensionBlocks].forEach((function(n){if((null===n||void 0===n?void 0:n.length)>=1){var e=z(n),o=1;e>l&&(o=Math.ceil(e/l)),i+=1,r+=18.5*o+4*(o-1)}})),"undefined"!==typeof(null===s||void 0===s||null===(t=s[n.uuid])||void 0===t?void 0:t.runtime)&&(r+=18,i+=1),r+=(i+=1)*(1*T.iI)}function W(n,e,o){var t,r,l=Math.max(8.62*(null===(t=J(n,e))||void 0===t?void 0:t.length),(null===(r=X(n,e))||void 0===r?void 0:r.length)*F),c=V(n),u=(null===c||void 0===c?void 0:c.length)*F,d=o||{},a=d.callbackBlocks,s=d.conditionalBlocks,v=d.extensionBlocks,f=Math.max.apply(Math,(0,i.Z)([a,s,v].map((function(n){return z(n)})).concat(u)));return f>l&&(l=Math.min(G,f)),2+U+l}var K,Y=o(44162),$=o(35438),nn=o(90211),en=function(n){var e=n/1e3,o=4-Math.floor(e).toString().length,t=(0,nn.QV)(e,o>=0?o:0),i="s";return t>1e3&&(t=(0,nn.QV)(t/60,0),i="m"),"".concat(t).concat(i)},on=function(n,e){var o=n||{},t=o.id,i=o.side,r=null===e||void 0===e?void 0:e.id;return i===$.rl.NORTH?null===t||void 0===t?void 0:t.endsWith("".concat(r,"-to")):i===$.rl.SOUTH&&(null===t||void 0===t?void 0:t.startsWith(r))},tn=o(28598),rn=(K={},(0,r.Z)(K,m.tf.DATA_EXPORTER,j.zS),(0,r.Z)(K,m.tf.DATA_LOADER,j.rH),(0,r.Z)(K,m.tf.DBT,j.xE),(0,r.Z)(K,m.tf.GLOBAL_DATA_PRODUCT,j.ie),(0,r.Z)(K,m.tf.SENSOR,j.LM),(0,r.Z)(K,m.tf.TRANSFORMER,j.Sv),K);var ln=function(n){var e=n.block,o=n.callbackBlocks,t=n.conditionalBlocks,i=n.disabled,r=n.extensionBlocks,l=n.height,c=n.hideStatus,u=n.pipeline,d=n.selected,a=n.hasFailed,s=n.isCancelled,f=n.isConditionFailed,h=n.isInProgress,I=n.isQueued,T=n.isSuccessful,S=n.runtime,P=(0,p.useContext)(v.ThemeContext),N=!(h||I||a||T||s||f),L=a&&!(h||I),F=!L&&T&&!(h||I),H="";N?H="No status":F?H="Successful execution":L?H="Failed execution":h?H="Currently executiing":s&&(H="Cancelled execution");var U=e.color,G=e.type,q=(0,Y.qn)(G,{blockColor:U,theme:P}).accent,z=(0,p.useMemo)((function(){return V(e)}),[e]),Q=(0,p.useMemo)((function(){var n,e,o=rn[G]||j.EJ,t=!1;return[m.tf.CALLBACK,m.tf.CHART,m.tf.CONDITIONAL,m.tf.CUSTOM,m.tf.DATA_EXPORTER,m.tf.DATA_LOADER,m.tf.EXTENSION,m.tf.SCRATCHPAD,m.tf.SENSOR,m.tf.MARKDOWN,m.tf.TRANSFORMER].includes(G)?n=q:[m.tf.DBT].includes(G)&&(e=q),[m.tf.DATA_EXPORTER].includes(G)&&(t=!0),(0,tn.jsx)(A,{backgroundColor:n,borderColor:e,children:(0,tn.jsx)("div",{style:{height:Z,width:Z},children:(0,tn.jsx)(o,{inverted:t,size:Z})})})}),[q,G]);return(0,tn.jsxs)(w,{borderColor:q,disabled:i,height:l,isCancelled:s,isConditionFailed:f,selected:d,children:[(0,tn.jsx)(D,{children:(0,tn.jsxs)(x.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,tn.jsxs)(g.Z,{flex:1,children:[Q,(0,tn.jsx)(y.Z,{mr:B}),(0,tn.jsxs)(g.Z,{flexDirection:"column",children:[(0,tn.jsx)(C.ZP,{bold:!0,monospace:!0,children:J(e,u)}),(0,tn.jsx)(C.ZP,{default:!0,monospace:!0,small:!0,children:X(e,u)})]})]}),(0,tn.jsx)(y.Z,{mr:"15px"}),(0,tn.jsx)(_,{title:H,children:!c&&(0,tn.jsxs)(tn.Fragment,{children:[h&&(0,tn.jsx)(O.Z,{color:(P||E.Z).content.active,small:!0}),F&&(0,tn.jsx)(j.Jr,{size:M,success:!0}),L&&(0,tn.jsx)(j.x8,{danger:!0,size:M}),N&&(0,tn.jsx)(k.Z,{borderSize:1,muted:!0,size:M})]})})]})}),(0,tn.jsxs)(R,{children:[(null===z||void 0===z?void 0:z.length)>=1&&(0,tn.jsx)(y.Z,{mt:1,children:(0,tn.jsx)(C.ZP,{default:!0,monospace:!0,small:!0,children:z})}),[t,o,r].map((function(n,e){if((null===n||void 0===n?void 0:n.length)>=1)return(0,tn.jsx)("div",{style:{marginTop:4},children:(0,tn.jsx)(x.ZP,{alignItems:"center",flexWrap:"wrap",children:n.reduce((function(n,e,o){return o>=1&&n.push((0,tn.jsx)("div",{style:{width:4}},"space-".concat(e.uuid))),n.push((0,tn.jsx)("div",{style:{marginTop:4},children:(0,tn.jsx)(b.Z,{color:(0,Y.qn)(e.type,{blockColor:e.color,theme:P}).accentLight,monospace:!0,small:!0,children:e.uuid})},"badge-".concat(e.uuid))),n}),[])})},"badge-blocks-".concat(e))})),S&&(0,tn.jsx)(y.Z,{mt:1,children:(0,tn.jsx)(C.ZP,{monospace:!0,muted:!0,small:!0,children:en(S)})})]})]})},cn=o(11135),un=o(82531),dn=o(37391),an=v.default.div.withConfig({displayName:"indexstyle__GraphContainerStyle",componentId:"sc-bc2ei5-0"})(["div{","}",""],dn.w5,(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")})),sn=(v.default.div.withConfig({displayName:"indexstyle__NodeStyle",componentId:"sc-bc2ei5-1"})(["border-radius:","px;border:1px solid transparent;min-width:fit-content;"," "," "," "," "," ",""],I.BG,(function(n){return n.selected&&"\n border-color: ".concat((n.theme.content||E.Z.content).active,";\n ")}),(function(n){return n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n ")}),(function(n){return(n.isCancelled||n.disabled)&&"\n // opacity doesn\u2019t work on Safari\n border-color: ".concat((n.theme.content||E.Z.content).active,";\n border-style: dashed;\n cursor: not-allowed;\n ")}),(function(n){return n.isConditionFailed&&"\n background-color: ".concat((n.theme.content||E.Z.content).disabled,";\n cursor: not-allowed;\n ")}),(function(n){return n.disabled&&"\n &:hover {\n cursor: not-allowed;\n }\n "}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")})),v.default.div.withConfig({displayName:"indexstyle__RuntimeStyle",componentId:"sc-bc2ei5-2"})(["margin-right:","px;padding:12px 4px;height:100%;width:50px;background:rgba(0,0,0,0.2);background-blend-mode:soft-light;"],2*T.iI),o(66050)),vn=o(24224);var fn=o(96510),pn=["forwardedRef"];function hn(n,e){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.push.apply(o,t)}return o}function bn(n){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?hn(Object(o),!0).forEach((function(e){(0,r.Z)(n,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):hn(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}var mn=s()((0,c.Z)(d().mark((function n(){var e,t;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([o.e(4434),o.e(5987),o.e(2920)]).then(o.t.bind(o,74529,23));case 2:return e=n.sent,t=e.Canvas,n.abrupt("return",(function(n){var e=n.forwardedRef,o=(0,l.Z)(n,pn);return(0,tn.jsx)(t,bn({ref:e},o))}));case 5:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),kn=s()((0,c.Z)(d().mark((function n(){var e;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([o.e(4434),o.e(5987),o.e(2920)]).then(o.t.bind(o,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Node);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),gn=s()((0,c.Z)(d().mark((function n(){var e;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([o.e(4434),o.e(5987),o.e(2920)]).then(o.t.bind(o,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Edge);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),xn=s()((0,c.Z)(d().mark((function n(){var e;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([o.e(4434),o.e(5987),o.e(2920)]).then(o.t.bind(o,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Port);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}});var yn=function(n){var e=n.blockRefs,o=n.blockStatus,r=n.blocks,l=n.disabled,c=n.editingBlock,u=n.enablePorts,d=void 0!==u&&u,a=n.fetchPipeline,s=n.height,b=n.heightOffset,k=void 0===b?10*T.iI:b,g=n.messages,O=n.noStatus,E=n.onClickNode,j=n.pannable,I=void 0===j||j,Z=n.pipeline,w=n.runningBlocks,_=void 0===w?[]:w,A=n.selectedBlock,D=n.setEditingBlock,R=n.setErrors,B=n.setSelectedBlock,L=n.setZoom,M=n.showDynamicBlocks,F=void 0!==M&&M,H=n.treeRef,U=n.zoomable,G=void 0===U||U,V=(0,p.useContext)(v.ThemeContext),q=(0,p.useRef)(null),J=H||q,X=(0,p.useState)([]),z=X[0],K=X[1],nn=(0,p.useState)(!1),en=nn[0],rn=nn[1],dn=(0,p.useState)(null),pn=dn[0],hn=dn[1],yn=d&&en,On=(null===c||void 0===c?void 0:c.upstreamBlocks)||{},Cn=On.block,En=On.values,jn=void 0===En?[]:En,In=(0,p.useMemo)((function(){return jn.length}),[jn]),Tn=(0,p.useMemo)((function(){var n;return(null===Z||void 0===Z||null===(n=Z.blocks)||void 0===n?void 0:n.filter((function(n){var e=n.type;return!m.iZ.includes(e)})))||[]}),[null===Z||void 0===Z?void 0:Z.blocks]),Zn=(0,p.useMemo)((function(){return Tn}),[Tn,F]),wn=(0,p.useMemo)((function(){if(r)return r;if(Z){var n={},e=[];return e.push.apply(e,(0,i.Z)(null===Z||void 0===Z?void 0:Z.blocks)),e.push.apply(e,(0,i.Z)(null===Z||void 0===Z?void 0:Z.callbacks)),e.push.apply(e,(0,i.Z)(null===Z||void 0===Z?void 0:Z.conditionals)),Object.values(null===Z||void 0===Z?void 0:Z.extensions).forEach((function(n){var o=n.blocks;e.push.apply(e,(0,i.Z)(o))})),e.reduce((function(e,o){return n[o.uuid]||e.push(o),e}),[])}return[]}),[r,Z]),_n=(0,p.useMemo)((function(){return(0,vn.HK)(wn||[],(function(n){return n.uuid}))}),[wn]),An=(0,p.useMemo)((function(){var n={};return null===Zn||void 0===Zn||Zn.map((function(e){var o;n[e.uuid]=null===e||void 0===e||null===(o=e.callback_blocks)||void 0===o?void 0:o.reduce((function(n,e){var o=null===_n||void 0===_n?void 0:_n[e];return o?n.concat(o):n}),[])})),n}),[Zn,_n]),Dn=(0,p.useMemo)((function(){var n={};return null===Zn||void 0===Zn||Zn.map((function(e){var o;n[e.uuid]=null===e||void 0===e||null===(o=e.conditional_blocks)||void 0===o?void 0:o.reduce((function(n,e){var o=null===_n||void 0===_n?void 0:_n[e];return o?n.concat(o):n}),[])})),n}),[Zn,_n]),Rn=(0,p.useMemo)((function(){var n={};return null===Zn||void 0===Zn||Zn.map((function(e){var o,i=[];null===(o=Object.entries((null===Z||void 0===Z?void 0:Z.extensions)||{}))||void 0===o||o.forEach((function(n){var o=(0,t.Z)(n,2),r=o[0],l=o[1].blocks;null===l||void 0===l||l.forEach((function(n){var o=n.upstream_blocks,t=n.uuid;if(null!==o&&void 0!==o&&o.includes(null===e||void 0===e?void 0:e.uuid)){var l=null===_n||void 0===_n?void 0:_n[t];l&&i.push(bn(bn({},l),{},{extension_uuid:r}))}}))})),n[e.uuid]=i})),n}),[Zn,_n,Z]),Sn=(0,p.useMemo)((function(){return(0,vn.HK)(_,(function(n){return n.uuid}))}),[_]);(0,p.useEffect)((function(){setTimeout((function(){var n,e,o,t,i;0===(null===J||void 0===J||null===(n=J.current)||void 0===n||null===(e=n.containerRef)||void 0===e||null===(o=e.current)||void 0===o?void 0:o.scrollTop)&&(null===J||void 0===J||null===(t=J.current)||void 0===t||null===(i=t.fitCanvas)||void 0===i||i.call(t))}),1e3)}),[J]);var Pn=(0,h.Db)(un.ZP.blocks.pipelines.useUpdate(null===Z||void 0===Z?void 0:Z.uuid,encodeURIComponent(null===Cn||void 0===Cn?void 0:Cn.uuid)),{onSuccess:function(n){return(0,fn.wD)(n,{callback:function(){D({upstreamBlocks:null}),null===a||void 0===a||a()},onErrorCallback:function(n,e){return null===R||void 0===R?void 0:R({errors:e,response:n})}})}}),Nn=(0,t.Z)(Pn,2),Bn=Nn[0],Ln=Nn[1].isLoading,Mn=(0,h.Db)((function(n){var e=n.fromBlock,o=n.portSide,t=n.toBlock,i=n.removeDependency,r=t,l=t.upstream_blocks.concat(e.uuid);return i||o!==$.rl.NORTH||(r=e,l=e.upstream_blocks.concat(t.uuid)),un.ZP.blocks.pipelines.useUpdate(null===Z||void 0===Z?void 0:Z.uuid,encodeURIComponent(r.uuid))({block:bn(bn({},r),{},{upstream_blocks:i?t.upstream_blocks.filter((function(n){return n!==e.uuid})):l})})}),{onSuccess:function(n){return(0,fn.wD)(n,{callback:function(){null===a||void 0===a||a()},onErrorCallback:function(n,e){return null===R||void 0===R?void 0:R({errors:e,response:n})}})}}),Fn=(0,t.Z)(Mn,1)[0],Hn=(0,p.useCallback)((function(n){var o=n.type,t=n.uuid;if(null===B||void 0===B||B(n),K([]),null!==e&&void 0!==e&&e.current){var i,r=e.current["".concat(o,"s/").concat(t,".py")];null===r||void 0===r||null===(i=r.current)||void 0===i||i.scrollIntoView()}}),[e,B]),Un=(0,p.useCallback)((function(n){K([]),D((function(e){var o=e.upstreamBlocks.values||[],t=o.findIndex((function(e){var o=e.uuid;return n.uuid===o}));return bn(bn({},e),{},{upstreamBlocks:bn(bn({},e.upstreamBlocks),{},{values:t>=0?(0,vn.oM)(o,t):o.concat(n)})})}))}),[D]),Gn=(0,p.useMemo)((function(){var n={};return Zn.forEach((function(e){e.upstream_blocks.forEach((function(o){n[o]||(n[o]=[]),n[o].push(e)}))})),n}),[Zn]),Vn=(0,p.useCallback)((function(n){var e,o;if(S.qL.INTEGRATION===(null===Z||void 0===Z?void 0:Z.type)&&m.tf.TRANSFORMER!==n.type){var t,i={};if(m.t6.YAML===n.language&&(i=(0,f.Qc)(n.content)),m.tf.DATA_LOADER===n.type)e="".concat(n.uuid,": ").concat(null===(t=i)||void 0===t?void 0:t.source);else if(m.tf.DATA_EXPORTER===n.type){var r;e="".concat(n.uuid,": ").concat(null===(r=i)||void 0===r?void 0:r.destination)}}else if(m.tf.DBT===n.type&&m.t6.SQL===n.language){var l=(0,N.IU)(n);e=l.name,o=l.project}return null!==n&&void 0!==n&&n.replicated_block&&(e=null===n||void 0===n?void 0:n.replicated_block,o=null===n||void 0===n?void 0:n.uuid),e||(e=n.uuid),{displayText:e,kicker:o,subtitle:undefined}}),[Z]),qn=(0,p.useMemo)((function(){var n=[],e=[];return Zn.forEach((function(t){var r=Vn(t),l=r.displayText,c=r.kicker,u=r.subtitle,d=t.tags,a=void 0===d?[]:d,s=t.upstream_blocks,v=void 0===s?[]:s,f=t.uuid,p=Gn[f],h=[];p?h.push.apply(h,(0,i.Z)(p.map((function(n){return bn(bn({},$.bJ),{},{id:"".concat(f,"-").concat(n.uuid,"-from"),side:$.rl.SOUTH})})))):h.push(bn(bn({},$.bJ),{},{id:"".concat(f,"-from"),side:$.rl.SOUTH})),0===v.length&&h.push(bn(bn({},$.bJ),{},{id:"".concat(f,"-to"),side:$.rl.NORTH})),null===v||void 0===v||v.forEach((function(n){h.push(bn(bn({},$.bJ),{},{id:"".concat(n,"-").concat(f,"-to"),side:$.rl.NORTH})),e.push({from:n,fromPort:"".concat(n,"-").concat(f,"-from"),id:"".concat(n,"-").concat(f),to:f,toPort:"".concat(n,"-").concat(f,"-to")})}));(null===a||void 0===a?void 0:a.length)>=1&&T.iI,c&&T.iI,u&&T.iI;var b=l;[c,u].forEach((function(n){n&&n.length>b.length&&(b=n)}));var m=null===An||void 0===An?void 0:An[null===t||void 0===t?void 0:t.uuid],k=null===Dn||void 0===Dn?void 0:Dn[null===t||void 0===t?void 0:t.uuid],g=null===Rn||void 0===Rn?void 0:Rn[null===t||void 0===t?void 0:t.uuid];n.push({data:{block:t},height:Q(t,Z,{blockStatus:o,callbackBlocks:m,conditionalBlocks:k,extensionBlocks:g}),id:f,ports:h,width:W(t,Z,{blockStatus:o,callbackBlocks:m,conditionalBlocks:k,extensionBlocks:g})})})),{edges:e,nodes:n}}),[o,Zn,An,Dn,Vn,Gn,Rn,Z]),Jn=qn.edges,Xn=qn.nodes,zn=(0,p.useCallback)((function(n){if(O)return{};if(o){var e=o[function(n){var e=n.uuid,o=n.replicated_block;return o?"".concat(e,":").concat(o):e}(n)]||{},t=e.status,i=e.runtime;return{hasFailed:sn.V.FAILED===t,isCancelled:sn.V.CANCELLED===t,isConditionFailed:sn.V.CONDITION_FAILED===t,isInProgress:sn.V.RUNNING===t,isQueued:sn.V.INITIAL===t,isSuccessful:sn.V.COMPLETED===t,runtime:i}}var r,l=(0,P.h5)((null===g||void 0===g?void 0:g[n.uuid])||[]),c=(0,P.oI)(l),u=c.hasError,d=c.hasOutput,a=Sn[n.uuid];return{hasFailed:!a&&(u||m.DA.FAILED===n.status),isInProgress:a,isQueued:a&&(null===(r=_[0])||void 0===r?void 0:r.uuid)!==n.uuid,isSuccessful:!a&&(!u&&d||m.DA.EXECUTED===n.status)}}),[o,g,O,_,Sn]),Qn=(0,p.useMemo)((function(){var n=0;return s&&(n+=s),k&&(n-=k),Math.max(0,n)}),[s,k]);return(0,tn.jsxs)(tn.Fragment,{children:[Cn&&(0,tn.jsxs)(y.Z,{my:3,px:T.cd,children:[(0,tn.jsxs)(y.Z,{mb:T.cd,children:[(0,tn.jsxs)(C.ZP,{children:["Select parent block(s) for ",(0,tn.jsx)(C.ZP,{color:(0,Y.qn)(Cn.type,{blockColor:Cn.color,theme:V}).accent,inline:!0,monospace:!0,children:Cn.uuid}),":"]}),(0,tn.jsx)(y.Z,{mt:1,children:jn.map((function(n,e){var o,t,i=n.uuid;return(0,tn.jsxs)(C.ZP,{color:(0,Y.qn)(null===(o=_n[i])||void 0===o?void 0:o.type,{blockColor:null===(t=_n[i])||void 0===t?void 0:t.type,theme:V}).accent,inline:!0,monospace:!0,children:[i,In>=2&&e<=In-2?(0,tn.jsx)(C.ZP,{inline:!0,children:",\xa0"}):null]},i)}))})]}),(0,tn.jsxs)(x.ZP,{alignItems:"center",children:[(0,tn.jsx)(cn.ZP,{compact:!0,inline:!0,loading:Ln,onClick:function(){return Bn({block:bn(bn({},Cn),{},{upstream_blocks:jn.map((function(n){return n.uuid}))})})},uuid:"DependencyGraph/save_parents",children:"Save dependencies"}),(0,tn.jsx)(y.Z,{ml:1}),(0,tn.jsx)(cn.ZP,{compact:!0,inline:!0,noBackground:!0,onClick:function(){K([]),D({upstreamBlocks:null})},uuid:"DependencyGraph/cancel_save_parents",children:"Cancel"})]})]}),(0,tn.jsx)(an,{height:Qn,onDoubleClick:function(){var n,e;return null===J||void 0===J||null===(n=J.current)||void 0===n||null===(e=n.fitCanvas)||void 0===e?void 0:e.call(n)},children:(0,tn.jsx)(mn,{arrow:null,disabled:l,edge:function(n){var e,o=_n[n.source];return(0,tn.jsx)(gn,bn(bn({},n),{},{onClick:function(n,e){hn(null),K([e.id])},onRemove:function(n,e){var o=_n[e.from],t=_n[e.to];Fn({fromBlock:o,removeDependency:!0,toBlock:t}),K([])},removable:d&&!(null!==c&&void 0!==c&&c.upstreamBlocks),style:{stroke:null===(e=(0,Y.qn)(null===o||void 0===o?void 0:o.type,{blockColor:null===o||void 0===o?void 0:o.color,theme:V}))||void 0===e?void 0:e.accent}}))},edges:Jn,fit:!0,forwardedRef:J,maxHeight:$.Jo,maxWidth:$.Jo,maxZoom:1,minZoom:-.7,node:function(n){var e,o,t,i,r,u;return(0,tn.jsx)(kn,bn(bn({},n),{},{dragType:"port",linkable:!0,onClick:function(n,e){var o=e.data.block;hn(null),(null===Cn||void 0===Cn?void 0:Cn.uuid)===o.uuid||(Cn?Un(o):(null===E||void 0===E||E({block:o}),setTimeout((function(){Hn(o)}),1)))},onEnter:function(){null!==c&&void 0!==c&&c.upstreamBlocks||rn(!0)},onLeave:function(){pn||rn(!1)},port:yn&&(null===pn||on(pn,n))?(0,tn.jsx)(xn,{onDrag:function(){return rn(!0)},onDragEnd:function(){rn(!1),hn(null)},onDragStart:function(n,e,o){var t=null===o||void 0===o?void 0:o.side;hn({id:null===o||void 0===o?void 0:o.id,side:t})},onEnter:function(){return rn(!0)},rx:10,ry:10,style:{fill:(0,Y.qn)(null===n||void 0===n||null===(e=n.properties)||void 0===e||null===(o=e.data)||void 0===o||null===(t=o.block)||void 0===t?void 0:t.type,{blockColor:null===n||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.data)||void 0===r||null===(u=r.block)||void 0===u?void 0:u.color,theme:V}).accent,stroke:"white",strokeWidth:"1px"}}):null,style:{fill:"transparent",stroke:"transparent",strokeWidth:0},children:function(n){var e=n.height,o=n.node.data.block,t=zn(o),i=Vn(o);i.displayText,i.kicker,i.subtitle;return(0,tn.jsx)("foreignObject",{height:e,style:{pointerEvents:"none"},width:n.width,x:0,y:0,children:(0,tn.jsx)(ln,bn({block:o,callbackBlocks:null===An||void 0===An?void 0:An[null===o||void 0===o?void 0:o.uuid],conditionalBlocks:null===Dn||void 0===Dn?void 0:Dn[null===o||void 0===o?void 0:o.uuid],disabled:(null===Cn||void 0===Cn?void 0:Cn.uuid)===o.uuid,extensionBlocks:null===Rn||void 0===Rn?void 0:Rn[null===o||void 0===o?void 0:o.uuid],height:e,hideStatus:l||O,pipeline:Z,selected:Cn?!!(0,vn.sE)(jn,(function(n){return n.uuid===o.uuid})):(null===A||void 0===A?void 0:A.uuid)===o.uuid},t),o.uuid)})}}))},nodes:Xn,onNodeLink:function(n,e,o,t){var i,r=_n[e.id],l=_n[o.id],c=(null===Z||void 0===Z?void 0:Z.type)===S.qL.INTEGRATION&&((null===r||void 0===r?void 0:r.type)===m.tf.DATA_EXPORTER||(null===r||void 0===r?void 0:r.type)===m.tf.DATA_LOADER&&(null===l||void 0===l?void 0:l.type)===m.tf.DATA_EXPORTER);if(!(null!==r&&void 0!==r&&null!==(i=r.upstream_blocks)&&void 0!==i&&i.includes(l.uuid)||e.id===o.id||c)){var u=null===t||void 0===t?void 0:t.side;Fn({fromBlock:r,portSide:u||$.rl.SOUTH,toBlock:l})}},onNodeLinkCheck:function(n,e,o){return!Jn.some((function(n){return n.from===e.id&&n.to===o.id}))},onZoomChange:function(n){return null===L||void 0===L?void 0:L(n)},pannable:I,selections:z,zoomable:G})})]})}},66050:function(n,e,o){var t;o.d(e,{V:function(){return t}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running",n.UPSTREAM_FAILED="upstream_failed",n.CONDITION_FAILED="condition_failed"}(t||(t={}))},18283:function(n,e,o){var t=o(82394),i=o(26304),r=(o(82684),o(38626)),l=o(23831),c=o(73942),u=o(2005),d=o(49125),a=o(31012),s=o(28598),v=["children"];function f(n,e){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.push.apply(o,t)}return o}function p(n){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?f(Object(o),!0).forEach((function(e){(0,t.Z)(n,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}var h=r.default.p.withConfig({displayName:"Badge__BadgeStyle",componentId:"sc-tfqsp0-0"})(["border-radius:","px;display:inline;font-family:",";margin:0;white-space:nowrap;",";"," "," ",";",";"," "," "," "," "," "," "," ",""],c.BG,u.ry,a.iD,(function(n){return n.small&&"\n ".concat(a.HC,";\n ")}),(function(n){return n.xxsmall&&"\n font-size: ".concat(a.VK,"px;\n line-height: ").concat(a.VK,"px;\n ")}),(function(n){return!n.regular&&"\n padding: 2px 4px;\n "}),(function(n){return n.regular&&"\n padding: ".concat(1*d.iI,"px ").concat(1.25*d.iI,"px;\n ")}),(function(n){return n.noVerticalPadding&&"\n padding-bottom: 0;\n padding-top: 0;\n "}),(function(n){return!n.disabled&&!n.inverted&&"\n background-color: ".concat((n.theme||l.Z).background.row,";\n color: ").concat((n.theme||l.Z).content.default,";\n ")}),(function(n){return!n.disabled&&n.inverted&&"\n background-color: ".concat((n.theme||l.Z).background.dark,";\n color: ").concat((n.theme||l.Z).content.inverted,";\n ")}),(function(n){return n.cyan&&"\n background-color: ".concat((n.theme||l.Z).accent.cyan,";\n color: ").concat((n.theme||l.Z).monotone.black,";\n ")}),(function(n){return n.disabled&&"\n background-color: ".concat((n.theme||l.Z).feature.disabled,";\n color: ").concat((n.theme||l.Z).content.disabled,";\n ")}),(function(n){return n.color&&"\n background-color: ".concat(n.color," !important;\n color: ").concat((n.theme||l.Z).content.active,";\n ")}),(function(n){return n.quantifier&&"\n border-radius: 34px;\n line-height: 10px;\n padding: 4px 6px;\n "}),(function(n){return n.monospace&&"\n font-family: ".concat(u.Vp,";\n word-break: break-all;\n ")}));e.Z=function(n){var e=n.children,o=(0,i.Z)(n,v);return(0,s.jsx)(h,p(p({},o),{},{children:e}))}},25958:function(n,e,o){o.d(e,{$1:function(){return r},Dy:function(){return i},IU:function(){return l}});var t=o(17717),i="--full-refresh";function r(n,e){var o,i=null===e||void 0===e?void 0:e.fullPath,r=null===n||void 0===n||null===(o=n.configuration)||void 0===o?void 0:o.file_path;if(i)return null===n||void 0===n?void 0:n.uuid;if(r){var l=r.split(t.sep),c=l[l.length-1].split(".");return c.pop(),c.join(".")}}function l(n){var e,o=null===n||void 0===n||null===(e=n.configuration)||void 0===e?void 0:e.file_path;if(o){var i=o.split(t.sep),r=i[0],l=i[i.length-1].split(".");return l.pop(),{directory:i.slice(1,i.length-1).join(t.sep),filePath:o,name:l.join("."),project:r}}return{filePath:o}}}}]);
|
mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-03841b6dd7d240f6.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7869],{48591:function(e,n,t){"use strict";var i=t(21831),r=t(75582),o=t(82684),u=t(37958);n.Z=function(e){var n=e.children,t=e.uuid,l=e.uuids,c=void 0===l?[]:l,s=(0,u.j)("apiReloads"),a=(0,r.Z)(s,1)[0],d=(0,i.Z)(c);t&&d.push(t);var f=d.map((function(e){return String(a[e])||"-"})).join("_");return o.cloneElement(n,{key:f})}},1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var i=t(82394),r=t(21831),o=t(82684),u=t(47999),l=t(49894),c=t(93461),s=t(57384),a=t(41424),d=t(72454),f=t(28598);function v(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var p=o.forwardRef(v),h=t(32063),b=t(85019),m=t(82531),g=t(66166),j=t(3055),O=t(49125),y=t(91427),x=t(24141);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Z=function(e){var n,t=e.addProjectBreadcrumbToCustomBreadcrumbs,i=e.after,v=e.afterHidden,w=e.afterWidth,Z=e.afterWidthOverride,P=e.before,S=e.beforeWidth,k=e.breadcrumbs,D=e.children,M=e.errors,E=e.headerMenuItems,_=e.headerOffset,I=e.mainContainerHeader,R=e.navigationItems,T=e.setErrors,F=e.subheaderChildren,A=e.title,N=e.uuid,H=(0,x.i)().width,U="dashboard_after_width_".concat(N),W="dashboard_before_width_".concat(N),Y=(0,o.useRef)(null),V=(0,o.useState)(Z?w:(0,y.U2)(U,w)),z=V[0],L=V[1],B=(0,o.useState)(!1),K=B[0],X=B[1],G=(0,o.useState)(P?Math.max((0,y.U2)(W,S),13*O.iI):null),J=G[0],Q=G[1],q=(0,o.useState)(!1),$=q[0],ee=q[1],ne=(0,o.useState)(null)[1],te=m.ZP.projects.list({},{revalidateOnFocus:!1}).data,ie=null===te||void 0===te?void 0:te.projects,re={label:function(){var e;return null===ie||void 0===ie||null===(e=ie[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},oe=[];k?(t&&oe.push(re),oe.push.apply(oe,(0,r.Z)(k))):(null===ie||void 0===ie?void 0:ie.length)>=1&&oe.push.apply(oe,[re,{bold:!0,label:function(){return A}}]),(0,o.useEffect)((function(){null===Y||void 0===Y||!Y.current||K||$||null===ne||void 0===ne||ne(Y.current.getBoundingClientRect().width)}),[K,z,$,J,Y,ne,H]),(0,o.useEffect)((function(){K||(0,y.t8)(U,z)}),[v,K,z,U]),(0,o.useEffect)((function(){$||(0,y.t8)(W,J)}),[$,J,W]);var ue=(0,g.Z)(w);return(0,o.useEffect)((function(){Z&&ue!==w&&L(w)}),[Z,w,ue]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:A}),(0,f.jsx)(a.Z,{breadcrumbs:oe,menuItems:E,project:null===ie||void 0===ie?void 0:ie[0],version:null===ie||void 0===ie||null===(n=ie[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===R||void 0===R?void 0:R.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(b.Z,{navigationItems:R,showMore:!0})}),(0,f.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:i,afterHeightOffset:j.Mz,afterHidden:v,afterMousedownActive:K,afterWidth:z,before:P,beforeHeightOffset:j.Mz,beforeMousedownActive:$,beforeWidth:d.k1+(P?J:0),headerOffset:_,hideAfterCompletely:!0,leftOffset:P?d.k1:null,mainContainerHeader:I,mainContainerRef:Y,setAfterMousedownActive:X,setAfterWidth:L,setBeforeMousedownActive:ee,setBeforeWidth:Q,children:[F&&(0,f.jsx)(p,{children:F}),D]})})]}),M&&(0,f.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===T||void 0===T?void 0:T(null)},children:(0,f.jsx)(l.Z,C(C({},M),{},{onClose:function(){return null===T||void 0===T?void 0:T(null)}}))})]})}},91207:function(e,n,t){"use strict";t.d(n,{Z:function(){return A}});var i=t(82394),r=t(75582),o=t(17717),u=t(82684),l=t(37958),c=t(83455),s=t(35490),a=t(86422),d=t(60328),f=t(38626),v=t(93461),p=t(67971),h=t(28598),b=f.default.div.withConfig({displayName:"ButtonGroup__ButtonGroupStyle",componentId:"sc-15vbmc8-0"})([""]),m=f.default.div.withConfig({displayName:"ButtonGroup__VerticalDivider",componentId:"sc-15vbmc8-1"})(["width:1px;"]),g=function(e){var n=e.children,t=e.divider,i=u.Children.toArray(n).length;return(0,h.jsx)(b,{children:(0,h.jsx)(p.ZP,{children:u.Children.map(n,(function(e,n){return e&&(0,h.jsxs)(v.Z,{children:[n>=1&&t&&(0,h.jsx)(m,{}),u.cloneElement(e,{borderRadiusLeft:i>=2&&0===n,borderRadiusRight:i>=2&&n===i-1,halfPaddingLeft:i>=2&&0!==n,halfPaddingRight:i>=2&&n!==i-1,noBorder:i>=2&&n>0&&n<i-1,noBorderRight:i>=2&&n!==i-1})]},"button-group-child-".concat(n))}))})})},j=t(57722),O=t(73828),y=t(11135),x=t(98781),w=t(86673),C=t(82531),Z=t(16115),P=t(94353),S=t(60701),k=t(55512),D=t(24224),M=t(32821),E=t(90211),_=t(96510),I=t(51504),R=t(41150);function T(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 F(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?T(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):T(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var A=function(e){var n=e.active,t=e.addNewBlock,f=e.disableRefreshWarning,v=e.fetchPipeline,b=e.fetchVariables,m=e.filePath,T=e.hideHeaderButtons,A=e.onContentChange,N=e.onUpdateFileSuccess,H=e.openSidekickView,U=e.pipeline,W=e.saveFile,Y=e.selectedFilePath,V=e.sendTerminalMessage,z=e.setDisableShortcuts,L=e.setErrors,B=e.setFilesTouched,K=e.setSelectedBlock,X=(0,l.j)("apiReloads"),G=(0,r.Z)(X,2)[1],J=(0,u.useState)(null),Q=J[0],q=J[1],$=(0,u.useState)(!1),ee=$[0],ne=($[1],(0,u.useRef)(null)),te=(0,u.useMemo)((function(){return new s.Z}),[]),ie=(0,u.useMemo)((function(){return{api_key:P.l,token:te.decodedToken.token}}),[te]),re=C.ZP.statuses.list().data,oe=(0,u.useMemo)((function(){var e,n;return null===re||void 0===re||null===(e=re.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.repo_path}),[re]),ue=C.ZP.file_contents.detail(m).data;(0,u.useEffect)((function(){null!==ue&&void 0!==ue&&ue.file_content&&q(ue.file_content)}),[ue]);var le=(0,u.useState)(null===Q||void 0===Q?void 0:Q.content),ce=le[0],se=le[1],ae=(0,u.useCallback)((function(e){se(e),A&&(null===A||void 0===A||A(e))}),[A]),de=(0,u.useState)(!1),fe=de[0],ve=de[1];(0,u.useEffect)((function(){n&&z&&(null===z||void 0===z||z(!0))}),[n,z]),(0,u.useEffect)((function(){var e;Y&&(null===ne||void 0===ne||null===(e=ne.current)||void 0===e||e.scrollIntoView())}),[Y]);var pe=(0,c.Db)(C.ZP.file_contents.useUpdate((null===Q||void 0===Q?void 0:Q.path)&&encodeURIComponent(null===Q||void 0===Q?void 0:Q.path)),{onSuccess:function(e){return(0,_.wD)(e,{callback:function(e){var n=e.file_content;G((function(e){return F(F({},e),{},(0,i.Z)({},"FileVersions/".concat(null===Q||void 0===Q?void 0:Q.path),Number(new Date)))})),N&&(null===N||void 0===N||N(n))},onErrorCallback:function(e,n){return null===L||void 0===L?void 0:L({errors:n,response:e})}})}}),he=(0,r.Z)(pe,1)[0],be=(0,u.useCallback)((function(e,n){if(W)return W(e,n);he({file_content:F(F({},n),{},{content:e})}).then((function(){decodeURIComponent(m).split(o.sep).pop()===O.dT.METADATA_YAML&&b&&(null===b||void 0===b||b())})),B((function(e){return F(F({},e),{},(0,i.Z)({},null===n||void 0===n?void 0:n.path,!1))})),ve(!1)}),[b,m,W,B,he]),me=(0,u.useMemo)((function(){return(0,k.lU)()}),[]),ge=(0,u.useMemo)((function(){var e,n,t,i;return null===(null===Q||void 0===Q||null===(e=Q.path)||void 0===e?void 0:e.match(me))?O.Lu.TXT:null===Q||void 0===Q||null===(n=Q.path)||void 0===n||null===(t=n.match(me))||void 0===t||null===(i=t[0])||void 0===i?void 0:i.split(".")[1]}),[me,Q]),je=(0,u.useMemo)((function(){if(null!==Q&&void 0!==Q&&Q.path)return(0,h.jsx)(j.Z,{autoHeight:!0,language:O.nB[ge],onChange:function(e){ae(e),B((function(e){return F(F({},e),{},(0,i.Z)({},null===Q||void 0===Q?void 0:Q.path,!0))})),ve(!0)},onSave:function(e){be(e,Q)},selected:!0,textareaFocused:!0,value:(0,E.Pb)(null===Q||void 0===Q?void 0:Q.content)?JSON.stringify(JSON.parse(null===Q||void 0===Q?void 0:Q.content),null,2):null===Q||void 0===Q?void 0:Q.content,width:"100%"})}),[Q,ge,be,ae,B]),Oe=null!==U&&void 0!==U&&U.blocks?(0,D.sE)(null===U||void 0===U?void 0:U.blocks,(function(e){var n=e.type;return a.tf.DATA_EXPORTER===n})):null,ye=(0,c.Db)(C.ZP.blocks.pipelines.useUpdate(null===U||void 0===U?void 0:U.uuid,null===Oe||void 0===Oe?void 0:Oe.uuid),{onSuccess:function(e){return(0,_.wD)(e,{callback:function(){null===v||void 0===v||v()}})}}),xe=(0,r.Z)(ye,1)[0],we=t&&U&&(ge===O.Lu.PY||ge===O.Lu.SQL||(ge===O.Lu.YAML||ge===O.Lu.R)&&(0,M.V3)(Q,null===Q||void 0===Q?void 0:Q.path))&&(0,k.ck)(Q.path.split(o.sep))!==a.tf.SCRATCHPAD&&(0,M.lr)(Q)&&(0,h.jsx)(d.Z,{onClick:function(){var e=(null===U||void 0===U?void 0:U.type)===x.qL.INTEGRATION,n=(0,k.TU)(Q,oe,U);t(n,(function(n){e&&Oe&&xe({block:F(F({},Oe),{},{upstream_blocks:[n.uuid]})}),null===K||void 0===K||K(n)}))},primary:!0,children:"Add to current pipeline"}),Ce=V&&(0,h.jsx)(w.Z,{m:2,children:(0,h.jsx)(y.ZP,{disabled:!oe,inline:!0,loading:ee,onClick:function(){null===H||void 0===H||H(S.cH.TERMINAL),null===V||void 0===V||V(JSON.stringify(F(F({},ie),{},{command:["stdin","pip install -r ".concat(oe,"/requirements.txt\r")]})))},title:oe?"Pip install packages from your saved requirements.txt file (\u2318+S to save).":"Please use right panel terminal to install packages.",uuid:"FileEditor/InstallPackages",children:"Install packages"})}),Ze="FileEditor/".concat(null===Q||void 0===Q?void 0:Q.path),Pe=(0,R.y)(),Se=Pe.registerOnKeyDown,ke=Pe.unregisterOnKeyDown;return(0,u.useEffect)((function(){return function(){ke(Ze)}}),[ke,Ze]),Se(Ze,(function(e,t){if(n&&!f)if((0,I.y)([Z.zX,Z.Um],t)||(0,I.y)([Z.PQ,Z.Um],t))e.preventDefault(),be(ce,Q);else if(fe&&(0,I.y)([Z.zX,Z.hS],t)){e.preventDefault();var i="".concat(Q.path," has changes that are unsaved. ")+"Click cancel and save your changes before reloading page.";"undefined"!==typeof location&&window.confirm(i)&&location.reload()}}),[n,ce,f,Q,be,fe]),(0,h.jsxs)("div",{ref:ne,children:[!T&&(0,h.jsx)(w.Z,{p:2,children:(0,h.jsxs)(p.ZP,{justifyContent:"space-between",children:[(0,h.jsxs)(g,{children:[we,(0,h.jsx)(d.Z,{disabled:!ce,onClick:function(e){e.preventDefault(),be(ce,Q)},title:ce?null:"No changes have been made to this file.",children:"Save file content"})]}),H&&(0,h.jsx)(g,{children:(0,h.jsx)(d.Z,{compact:!0,onClick:function(){H(S.cH.FILE_VERSIONS)},small:!0,title:"View previous changes to this file.",children:"Show versions"})})]})}),je,m===O.dT.REQS_TXT&&Ce]})}},23351:function(e,n,t){"use strict";var i=t(82394),r=t(75582),o=t(17717),u=t(37958),l=t(82684),c=t(83455),s=t(60328),a=t(57722),d=t(73828),f=t(93461),v=t(67971),p=t(87372),h=t(86673),b=t(54283),m=t(87815),g=t(19711),j=t(82531),O=t(49125),y=t(55512),x=t(42305),w=t(90211),C=t(96510),Z=t(66653),P=t(24224),S=t(28598);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 D(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}n.Z=function(e){var n=e.onActionCallback,t=e.selectedBlock,k=e.selectedFilePath,M=e.setErrors,E=e.width,_=(0,u.j)("apiReloads"),I=(0,r.Z)(_,2)[1],R=j.ZP.file_versions.files.list(k&&encodeURIComponent(k)),T=R.data,F=R.mutate,A=(0,l.useMemo)((function(){return(null===T||void 0===T?void 0:T.file_versions)||[]}),[T]),N=(0,l.useState)(null),H=N[0],U=N[1],W=(0,l.useMemo)((function(){return null===A||void 0===A?void 0:A[H]}),[H,A]),Y=j.ZP.file_contents.detail(W?encodeURIComponent(W.path):null).data,V=(0,l.useMemo)((function(){return null===Y||void 0===Y?void 0:Y.file_content}),[Y]),z=(0,l.useMemo)((function(){return(0,y.lU)()}),[]),L=(0,l.useMemo)((function(){var e,n,t;return null===k||void 0===k||null===(e=k.match(z))||void 0===e||null===(n=e[0])||void 0===n||null===(t=n.split("."))||void 0===t?void 0:t[1]}),[k,z]),B=(0,c.Db)(j.ZP.file_contents.useUpdate(k&&encodeURIComponent(k)),{onSuccess:function(e){return(0,C.wD)(e,{callback:function(e){var t;k&&F();var r=null===e||void 0===e||null===(t=e.file_content)||void 0===t?void 0:t.path,u="FileEditor/".concat(r);if(r){var l=r.split(o.sep);if("pipelines"===l[0]){var c=l.slice(1,l.length-1).join(o.sep);u="PipelineDetail/".concat(c)}}I((function(e){return D(D({},e),{},(0,i.Z)({},u,Number(new Date)))})),U((function(e){return e+1})),null===n||void 0===n||n(null===e||void 0===e?void 0:e.file_content)},onErrorCallback:function(e,n){return M({errors:n,response:e})}})}}),K=(0,r.Z)(B,2),X=K[0],G=K[1].isLoading,J=(0,l.useMemo)((function(){var e=A.map((function(e){var n=e.name,t=e.path;return[(0,S.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,S.jsxs)(f.Z,{flex:1,children:[(0,S.jsx)(g.ZP,{default:!0,monospace:!0,children:(0,x.JX)(n,{withSeconds:!0})}),(0,S.jsx)(h.Z,{px:2*O.cd,children:(0,S.jsx)(g.ZP,{monospace:!0,children:n})})]}),W&&(null===W||void 0===W?void 0:W.path)===t&&(0,S.jsx)(s.Z,{compact:!0,loading:G,onClick:function(e){(0,Z.j)(e),X({file_content:{version:n}})},small:!0,children:"Replace with this version"})]},n)]}));if(W){var n=(0,S.jsx)(h.Z,{p:O.cd,children:(0,S.jsx)(b.Z,{},"spinner")});if(V&&(null===V||void 0===V?void 0:V.path)===(null===W||void 0===W?void 0:W.path)){var t=V.content,i=void 0===t?"":t;n=(0,S.jsx)(a.Z,{autoHeight:!0,language:d.nB[L],padding:!0,readOnly:!0,value:(0,w.Pb)(i)?JSON.stringify(JSON.parse(i),null,2):i,width:E})}e=(0,P.Hk)([n],H+1,e)}return e}),[V,L,A,G,W,H,X,E]);return(0,S.jsxs)("div",{style:{width:E},children:[(0,S.jsxs)(h.Z,{p:O.cd,children:[(0,S.jsx)(p.Z,{level:5,children:"File versions"}),(0,S.jsx)(g.ZP,{inline:!0,monospace:!0,children:k?decodeURIComponent(k):null===t||void 0===t?void 0:t.uuid})]}),(0,S.jsx)(m.Z,{buildRowProps:function(e){if(W&&H+1===e)return{renderCell:function(e){return e},renderRow:function(e){return e}}},columnFlex:[1],columns:[{uuid:"Version"}],isSelectedRow:function(e){var n;return(null===(n=A[e])||void 0===n?void 0:n.name)===(null===W||void 0===W?void 0:W.name)},onClickRow:function(e){W?e===H?U(null):e<H?U(e):e>H+1&&U(e-1):U(e)},rows:J})]})}},38488:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var i=t(82394),r=t(26304),o=t(82684),u=t(38626),l=t(16634),c=t(67971),s=t(10919),a=t(86673),d=t(19711),f=t(46261),v=t(23831),p=t(22341),h=t(28347),b=t(49125),m=t(33766),g=t(66653),j=t(28598);var O=function(e){var n=e.filePath,t=e.filesTouched,i=void 0===t?{}:t,r=e.isLast,u=e.onClickTab,O=e.onClickTabClose,y=e.renderTabTitle,x=e.savePipelineContent,w=e.selected,C=e.themeContext,Z=(0,o.useState)(!1),P=Z[0],S=Z[1];return(0,j.jsx)(c.ZP,{flexDirection:"column",fullHeight:!0,onClick:function(e){e.preventDefault(),w||(u?u(n):(null===x||void 0===x||x(),(0,m.u7)({file_path:encodeURIComponent(n)})))},onMouseEnter:function(){return S(!0)},onMouseLeave:function(){return S(!1)},children:(0,j.jsx)(h.Gb,{last:r,selected:w,children:(0,j.jsxs)(c.ZP,{alignItems:"center",fullHeight:!0,children:[(0,j.jsx)(f.Z,{appearAbove:!0,appearBefore:!0,label:n,size:null,widthFitContent:!0,children:(0,j.jsxs)(c.ZP,{alignItems:"center",fullHeight:!0,children:[!i[n]&&(0,j.jsx)(p.iU,{muted:!w,size:1.5*b.iI}),i[n]&&(0,j.jsx)(f.Z,{label:"Unsaved changes",size:null,widthFitContent:!0,children:(0,j.jsx)("div",{style:{padding:1},children:(0,j.jsx)(l.Z,{borderColor:(C||v.Z).borders.danger,size:1.25*b.iI})})}),(0,j.jsx)(a.Z,{mr:1}),(0,j.jsx)(d.ZP,{muted:!w,children:y?y(n):n})]})}),(0,j.jsx)(a.Z,{mr:2}),(0,j.jsx)(f.Z,{label:"Close",size:null,widthFitContent:!0,children:(0,j.jsxs)(s.Z,{autoHeight:!0,block:!0,noHoverUnderline:!0,noOutline:!0,onClick:function(e){(0,g.j)(e),null===O||void 0===O||O(n)},preventDefault:!0,children:[(P||w)&&(0,j.jsx)(p.x8,{muted:!w,size:1.25*b.iI}),!P&&!w&&(0,j.jsx)("div",{style:{width:1.25*b.iI}})]})})]})})})},y=t(24224),x=["filePaths","isSelectedFilePath","onClickTabClose","selectedFilePath"];function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Z=function(e){var n=e.filePaths,t=e.isSelectedFilePath,i=e.onClickTabClose,l=e.selectedFilePath,s=(0,r.Z)(e,x),a=(0,o.useContext)(u.ThemeContext),d=(0,o.useMemo)((function(){return n.map((function(e){return decodeURIComponent(e)}))}),[n]),f=(0,o.useMemo)((function(){return null===d||void 0===d?void 0:d.length}),[d]);return(0,j.jsx)(c.ZP,{alignItems:"center",justifyContent:"flex-start",children:null===d||void 0===d?void 0:d.map((function(e,n){var r=t?t(e,l):l===encodeURIComponent(e);return(0,o.createElement)(O,C(C({},s),{},{filePath:e,isLast:n===f-1,key:e,onClickTabClose:function(e){if(i)i(e);else{var n=(0,y.Od)(d,(function(n){return n===e})).map((function(e){return encodeURIComponent(e)}));(0,m.u7)({file_path:n[n.length-1]||null,"file_paths[]":n},{pushHistory:!0})}},selected:r,themeContext:a}))}))})}},28347:function(e,n,t){"use strict";t.d(n,{Gb:function(){return f},fm:function(){return a},lO:function(){return s},rK:function(){return d},zn:function(){return c}});var i=t(38626),r=t(23831),o=t(82386),u=t(49125),l=t(37391),c=300,s=i.default.div.withConfig({displayName:"indexstyle__PipelineContainerStyle",componentId:"sc-1sv9513-0"})([".pipeline-detail-enter-active{opacity:1;transition:opacity ","ms linear;}.pipeline-detail-enter-done{opacity:0;transition:opacity ","ms linear;}"],c,c),a=i.default.div.withConfig({displayName:"indexstyle__OverlayStyle",componentId:"sc-1sv9513-1"})(["height:100vh;opacity:1;position:fixed;width:100vw;z-index:9999;",""],(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).codeArea,";\n ")})),d=i.default.div.withConfig({displayName:"indexstyle__PipelineHeaderStyle",componentId:"sc-1sv9513-2"})(["height:","px;position:sticky;top:","px;width:100%;z-index:5;"," "," "," ",""],o.Wi,o.Wi,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||r.Z.borders).medium,";\n ")}),(function(e){return e.relativePosition&&"\n position: relative;\n "}),(function(e){return e.secondary&&"\n height: ".concat(37,"px;\n top: ").concat(o.Wi,"px;\n overflow-x: auto;\n z-index: 3;\n ")}),(0,l.y$)()),f=i.default.div.withConfig({displayName:"indexstyle__FileTabStyle",componentId:"sc-1sv9513-3"})(["border-right:1px solid transparent;height:100%;padding:","px ","px;"," "," ",""],u.iI,u.cd*u.iI,(function(e){return"\n &:hover {\n cursor: default;\n\n p {\n color: ".concat((e.theme.content||r.Z.content).active," !important;\n cursor: default;\n }\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.interactive||r.Z.interactive).hoverBackground,";\n ")}),(function(e){return!e.selected&&!e.last&&"\n border-color: ".concat((e.theme.borders||r.Z.borders).light," !important;\n ")}))},55389:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Q}});var i=t(77837),r=t(38860),o=t.n(r),u=t(82394),l=t(75582),c=t(17717),s=t(82684),a=t(37958),d=t(83455),f=t(48591),v=t(1210),p=t(46299),h=t(91207),b=t(47999),m=t(67971),g=t(62084),j=t(19711),O=t(16115),y=t(64318),x=t(54405),w=t(41150),C=t(28598);var Z=function(e){var n=e.children,t=e.fileVersionsVisible,i=e.onSave,r=e.setFilesVersionsVisible,o=(0,s.useState)(null),u=o[0],l=o[1],c=(0,s.useRef)(null),a=(0,s.useRef)(null),d=(0,s.useMemo)((function(){return[{disabled:!i,keyTextGroups:[[(0,x.V5)()?O.RJ:O.hE,O.SS]],label:function(){return"Save"},onClick:function(){return i?i():null},uuid:"save"}]}),[i]),f=(0,s.useMemo)((function(){return[{label:function(){return t?"Hide versions":"Show versions"},onClick:function(){return r(!t)},uuid:"versions"}]}),[t,r]),v="FileHeaderMenu/index",p=(0,w.y)(),h=p.registerOnKeyDown,Z=p.unregisterOnKeyDown;return(0,s.useEffect)((function(){return function(){Z(v)}}),[Z,v]),h(v,(function(e,n){null!==u&&(n[O.QK]?l((function(e){return 0===e?2:e-1})):n[O.DY]&&l((function(e){return 2===e?0:e+1})))}),[u,l]),(0,C.jsx)(b.Z,{onClickOutside:function(){return l(null)},open:!0,style:{position:"relative"},children:(0,C.jsxs)(m.ZP,{children:[(0,C.jsxs)("div",{style:{position:"relative"},children:[(0,C.jsx)(y.u,{highlighted:0===u,onClick:function(){return l((function(e){return 0===e?null:0}))},onMouseEnter:function(){return l((function(e){return null!==e?0:null}))},ref:c,children:(0,C.jsx)(j.ZP,{children:"File"})}),(0,C.jsx)(g.Z,{items:d,onClickCallback:function(){return l(null)},open:0===u,parentRef:c,uuid:"FileHeaderMenu/file"})]}),(0,C.jsxs)("div",{style:{position:"relative"},children:[(0,C.jsx)(y.u,{highlighted:1===u,onClick:function(){return l((function(e){return 1===e?null:1}))},onMouseEnter:function(){return l((function(e){return null!==e?1:null}))},ref:a,children:(0,C.jsx)(j.ZP,{children:"Edit"})}),(0,C.jsx)(g.Z,{items:f,onClickCallback:function(){return l(null)},open:1===u,parentRef:a,uuid:"FileHeaderMenu/edit"})]}),n]})})},P=t(38488),S=t(23351),k=t(82531),D=t(38626),M=t(23831),E=t(82386),_=t(3055),I=t(37391),R=72-E.uX+_.Mz,T=D.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-11pty4f-0"})(["height:","px;top:","px;z-index:3;",""],72,_.Mz,(function(e){return"\n background-color: ".concat((e.theme.background||M.Z.background).codeArea,";\n ")})),F=D.default.div.withConfig({displayName:"indexstyle__MenuStyle",componentId:"sc-11pty4f-1"})(["height:","px;position:relative;z-index:1;",""],36,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||M.Z.borders).medium,";\n ")})),A=D.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-11pty4f-2"})([""," height:","px;overflow-x:auto;position:sticky;width:100%;z-index:0;"],(0,I.y$)(),36),N=t(91427),H=t(24224),U="open_files";function W(e){(0,N.t8)(U,e)}var Y=t(96510),V=t(51504),z=t(9728);function L(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function B(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?L(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function K(e){var n=e.split(c.sep);return n[n.length-1]}var X=function(){var e=(0,a.j)("apiReloads"),n=(0,l.Z)(e,2)[1],t=(0,s.useRef)(null),i=(0,s.useRef)(null),r=(0,s.useCallback)((function(e){i.current||(i.current={}),i.current=B(B({},i.current),e)}),[i]),o=(0,s.useState)([]),c=o[0],b=o[1],m=(0,s.useState)(null),g=m[0],j=m[1],y=(0,s.useState)({}),x=y[0],D=y[1],M=(0,s.useState)(!1),E=M[0],_=M[1],I=(0,s.useMemo)((function(){return c.reduce((function(e,n){var t=K(n);return e[t]||(e[t]=[]),e[t].push(n),e}),{})}),[c]),L=(0,s.useCallback)((function(e){W(e),b(e)}),[]),X=(0,s.useCallback)((function(e){L(function(e){var n=(0,N.U2)(U,[]);return n.includes(e)||n.push(e),W(n),n}(e))}),[L]),G=(0,s.useCallback)((function(e){r((0,u.Z)({},e,null)),D((function(n){return B(B({},n),{},(0,u.Z)({},e,!1))}));var n=function(e){var n=(0,N.U2)(U,[]),t=(0,H.Od)(n,(function(n){return n===e}));return W(t),t}(e);L(n),g===e&&(null===n||void 0===n?void 0:n.length)>=1&&j(n[n.length-1]),0===(null===n||void 0===n?void 0:n.length)&&j(null)}),[g,r,L]),J=(0,s.useCallback)((function(e,n){n||(X(e),j(e))}),[X]);(0,s.useEffect)((function(){var e=(0,N.U2)(U,[]);L(e),j((function(n){return!n&&(null===e||void 0===e?void 0:e.length)>=1?e[0]:n}))}),[L]);var Q=k.ZP.files.list(),q=Q.data,$=Q.mutate,ee=(0,s.useMemo)((function(){return(null===q||void 0===q?void 0:q.files)||[]}),[q]),ne=(0,z.VI)(null,{},[],{uuid:"FilesPage"}),te=(0,l.Z)(ne,1)[0],ie="Files/index",re=(0,w.y)(),oe=(re.disableGlobalKeyboardShortcuts,re.registerOnKeyDown),ue=re.unregisterOnKeyDown;(0,s.useEffect)((function(){return function(){ue(ie)}}),[ue,ie]),oe(ie,(function(e,n){var t=Object.entries(x).reduce((function(e,n){var t=(0,l.Z)(n,2),i=t[0];return t[1]?e.concat(i):e}),[]);if((0,V.y)([O.zX,O.hS],n)&&(null===t||void 0===t?void 0:t.length)>=1){e.preventDefault();var i="You have changes that are unsaved: ".concat(t.join(", "),". ")+"Click cancel and save your changes before reloading page.";"undefined"!==typeof location&&window.confirm(i)&&location.reload()}}),[x]);var le=(0,s.useMemo)((function(){return(0,C.jsx)(P.Z,{filePaths:c,filesTouched:x,isSelectedFilePath:function(e,n){return e===n},onClickTab:function(e){return j(e)},onClickTabClose:function(e){return G(e)},renderTabTitle:function(e){var n=K(e),t=I[n];return t&&(null===t||void 0===t?void 0:t.length)>=2?e:n},selectedFilePath:g})}),[x,c,I,G,g]),ce=(0,s.useMemo)((function(){return(0,C.jsx)(p.Z,{fetchFileTree:$,files:ee,onClickFile:function(e){return J(e)},onClickFolder:function(e){return J(e,!0)},onCreateFile:function(e){var n=e.path;return J(n)},ref:t,setErrors:te})}),[$,t,ee,J,te]),se=(0,d.Db)((function(e){return k.ZP.file_contents.useUpdate((null===e||void 0===e?void 0:e.path)&&encodeURIComponent(null===e||void 0===e?void 0:e.path))({file_content:e})}),{onSuccess:function(e){return(0,Y.wD)(e,{callback:function(e){var t=e.file_content;n((function(e){return B(B({},e),{},(0,u.Z)({},"FileVersions/".concat(null===t||void 0===t?void 0:t.path),Number(new Date)))})),r((0,u.Z)({},null===t||void 0===t?void 0:t.path,null))},onErrorCallback:function(e,n){return te({errors:n,response:e})}})}}),ae=(0,l.Z)(se,1)[0],de=(0,s.useCallback)((function(e,n){ae(B(B({},n),{},{content:e})),D((function(e){return B(B({},e),{},(0,u.Z)({},null===n||void 0===n?void 0:n.path,!1))}))}),[D,ae]),fe=(0,s.useMemo)((function(){return null===c||void 0===c?void 0:c.map((function(e){return(0,C.jsx)("div",{style:{display:g===e?null:"none"},children:(0,C.jsx)(f.Z,{uuid:"FileEditor/".concat(decodeURIComponent(e)),children:(0,C.jsx)(h.Z,{active:g===e,disableRefreshWarning:!0,filePath:e?encodeURIComponent(e):null,hideHeaderButtons:!0,onContentChange:function(n){return r((0,u.Z)({},e,n))},saveFile:de,selectedFilePath:g,setErrors:te,setFilesTouched:D})})},e)}))}),[c,de,g,r,te]),ve=(0,s.useMemo)((function(){return(0,C.jsx)(Z,{fileVersionsVisible:E,onSave:function(){var e,n;(null===i||void 0===i||null===(e=i.current)||void 0===e||null===(n=e[g])||void 0===n?void 0:n.length)>=1&&de(i.current[g],{path:g})},setFilesVersionsVisible:_})}),[i,E,de,g,_]);return(0,C.jsx)(v.Z,{after:(0,C.jsx)(f.Z,{uuid:"FileVersions/".concat(g?decodeURIComponent(g):""),children:(0,C.jsx)(S.Z,{selectedFilePath:g,setErrors:te})}),afterHidden:!(E&&g),before:ce,headerOffset:R,mainContainerHeader:(null===c||void 0===c?void 0:c.length)>=1&&(0,C.jsxs)(T,{children:[(0,C.jsx)(F,{children:ve}),(0,C.jsx)(A,{children:le})]}),title:"Files",uuid:"Files/index",children:fe})},G=t(41788);function J(){return(0,C.jsx)(X,{})}J.getInitialProps=(0,i.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var Q=(0,G.Z)(J)},37958:function(e,n,t){"use strict";t.d(n,{j:function(){return i}});var i=(0,t(44152).r)({apiReloads:{}}).useGlobalState},42305:function(e,n,t){"use strict";t.d(n,{A5:function(){return j},AY:function(){return O},BP:function(){return g},JX:function(){return m},OC:function(){return d},Pc:function(){return y},Ro:function(){return x},Tz:function(){return b},Y_:function(){return C},d$:function(){return h},jV:function(){return w},lJ:function(){return Z},n1:function(){return v},s8:function(){return s},vk:function(){return o},yD:function(){return a}});var i,r,o,u=t(82394),l=t(92083),c=t.n(l);!function(e){e.TODAY="today",e.WEEK="week",e.MONTH="month"}(o||(o={}));var s=(i={},(0,u.Z)(i,o.TODAY,"today"),(0,u.Z)(i,o.WEEK,"last 7 days"),(0,u.Z)(i,o.MONTH,"last 30 days"),i),a=(r={},(0,u.Z)(r,o.TODAY,0),(0,u.Z)(r,o.WEEK,6),(0,u.Z)(r,o.MONTH,29),r),d="YYYY-MM-DD HH:mm:ss",f="YYYY-MM-DD HH:mm",v="YYYY-MM-DD",p="MMMM D, YYYY";function h(e,n){var t=n.dayAgo,i=n.includeSeconds,r=n.utcFormat,o=c()(e),u=f;return r&&(o=o.utc()),t&&(o=o.subtract(1,"days")),i&&(u=d),o.format(u)}function b(e){var n=h((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0});return null!==e&&void 0!==e&&e.dateObj?new Date(n):n}function m(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?d:f)}function g(e,n,t){return c()(e).utc().hours(+n).minutes(+t).format()}function j(e){return c()(e).unix()}function O(e,n,t,i){var r="".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t);return i?"".concat(r,":").concat(i):r}function y(e){var n=c().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function x(e,n){var t=c().utc(),i=c().utc();null!==n&&void 0!==n&&n.localTime&&(t=c()().local(),i=c()().local());var r=(t=t.subtract(e,"days")).format(p),o=i.format(p);return null!==n&&void 0!==n&&n.endDateOnly?o:"".concat(r," - ").concat(o)}function w(e,n){var t=null!==n&&void 0!==n&&n.localTime?c()().local():c().utc();if(e===o.WEEK){var i=a[o.WEEK];t=t.subtract(i,"days")}else if(e===o.MONTH){var r=a[o.MONTH];t=t.subtract(r,"days")}return null!==n&&void 0!==n&&n.isoString?t.startOf("day").toISOString():t.startOf("day").format(d)}function C(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:90,n=new Date,t=[],i=0;i<e;i++)t.unshift(n.toISOString().split("T")[0]),n.setDate(n.getDate()-1);return t}function Z(e){return e.padStart(2,"0")}},54405:function(e,n,t){"use strict";var i;t.d(n,{V5:function(){return o}}),function(e){e.ANDROID="Android",e.CHROME_OS="ChromeOS",e.IOS="iOS",e.LINUX="Linux",e.MAC="macOS",e.WINDOWS="Windows"}(i||(i={}));var r=i;function o(){return function(){var e,n,t,i,o,u,l,c=r.MAC,s=null===(e=window)||void 0===e||null===(n=e.navigator)||void 0===n?void 0:n.userAgent,a=(null===(t=window)||void 0===t||null===(i=t.navigator)||void 0===i||null===(o=i.userAgentData)||void 0===o?void 0:o.platform)||(null===(u=window)||void 0===u||null===(l=u.navigator)||void 0===l?void 0:l.platform);return a?["macOS","Macintosh","MacIntel","MacPPC","Mac68K"].includes(a)?c=r.MAC:["Win32","Win64","Windows","WinCE"].includes(a)?c=r.WINDOWS:["iPhone","iPad","iPod"].includes(a)&&(c=r.IOS):s&&(s.includes("Macintosh")?c=r.MAC:s.includes("Windows")?c=r.WINDOWS:s.includes("Linux")&&s.includes("X11")?c=r.LINUX:/(iPhone|iPad)/.test(s)?c=r.IOS:s.includes("Android")&&s.includes("Mobi")?c=r.ANDROID:s.includes("CrOS")&&(c=r.CHROME_OS)),c}()===r.MAC}},99017:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/files",function(){return t(55389)}])}},function(e){e.O(0,[844,9902,8789,7011,5643,1424,1005,7815,6422,7722,3391,6299,9774,2888,179],(function(){return n=99017,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3512],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return P}});var r=t(82394),i=t(21831),o=t(82684),u=t(47999),l=t(49894),c=t(93461),a=t(57384),s=t(41424),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var v=o.forwardRef(p),h=t(32063),b=t(85019),g=t(82531),m=t(66166),S=t(3055),O=t(49125),j=t(91427),T=t(24141);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 E(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,r.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 P=function(e){var n,t=e.addProjectBreadcrumbToCustomBreadcrumbs,r=e.after,p=e.afterHidden,y=e.afterWidth,P=e.afterWidthOverride,k=e.before,w=e.beforeWidth,Z=e.breadcrumbs,_=e.children,R=e.errors,L=e.headerMenuItems,x=e.headerOffset,M=e.mainContainerHeader,A=e.navigationItems,D=e.setErrors,C=e.subheaderChildren,N=e.title,I=e.uuid,B=(0,T.i)().width,Y="dashboard_after_width_".concat(I),U="dashboard_before_width_".concat(I),W=(0,o.useRef)(null),F=(0,o.useState)(P?y:(0,j.U2)(Y,y)),H=F[0],Q=F[1],X=(0,o.useState)(!1),V=X[0],G=X[1],J=(0,o.useState)(k?Math.max((0,j.U2)(U,w),13*O.iI):null),$=J[0],K=J[1],q=(0,o.useState)(!1),z=q[0],ee=q[1],ne=(0,o.useState)(null)[1],te=g.ZP.projects.list({},{revalidateOnFocus:!1}).data,re=null===te||void 0===te?void 0:te.projects,ie={label:function(){var e;return null===re||void 0===re||null===(e=re[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},oe=[];Z?(t&&oe.push(ie),oe.push.apply(oe,(0,i.Z)(Z))):(null===re||void 0===re?void 0:re.length)>=1&&oe.push.apply(oe,[ie,{bold:!0,label:function(){return N}}]),(0,o.useEffect)((function(){null===W||void 0===W||!W.current||V||z||null===ne||void 0===ne||ne(W.current.getBoundingClientRect().width)}),[V,H,z,$,W,ne,B]),(0,o.useEffect)((function(){V||(0,j.t8)(Y,H)}),[p,V,H,Y]),(0,o.useEffect)((function(){z||(0,j.t8)(U,$)}),[z,$,U]);var ue=(0,m.Z)(y);return(0,o.useEffect)((function(){P&&ue!==y&&Q(y)}),[P,y,ue]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Z,{title:N}),(0,f.jsx)(s.Z,{breadcrumbs:oe,menuItems:L,project:null===re||void 0===re?void 0:re[0],version:null===re||void 0===re||null===(n=re[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===A||void 0===A?void 0:A.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(b.Z,{navigationItems:A,showMore:!0})}),(0,f.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:r,afterHeightOffset:S.Mz,afterHidden:p,afterMousedownActive:V,afterWidth:H,before:k,beforeHeightOffset:S.Mz,beforeMousedownActive:z,beforeWidth:d.k1+(k?$:0),headerOffset:x,hideAfterCompletely:!0,leftOffset:k?d.k1:null,mainContainerHeader:M,mainContainerRef:W,setAfterMousedownActive:G,setAfterWidth:Q,setBeforeMousedownActive:ee,setBeforeWidth:K,children:[C&&(0,f.jsx)(v,{children:C}),_]})})]}),R&&(0,f.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,f.jsx)(l.Z,E(E({},R),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}},32821:function(e,n,t){"use strict";t.d(n,{IO:function(){return f},V3:function(){return d},a9:function(){return l},jN:function(){return a},lr:function(){return s},u$:function(){return p}});var r=t(17717),i=t(86422),o=t(73828),u=t(90211);function l(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=n||(t?null:null===e||void 0===e?void 0:e.name);if(null!==e&&void 0!==e&&e.parent){var o=[e.parent.name];return(null===i||void 0===i?void 0:i.length)>=1&&o.push(i),l(e.parent,o.join(r.sep))}return i}function c(e){return null===e||void 0===e?void 0:e.split(r.sep).slice(1).join(r.sep)}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=l(e,n,t);return c(r)}function s(e){var n,t,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=l(e,c).split(r.sep);if(!s)return null;if(1===s.length)(s=null===e||void 0===e||null===(t=e.path)||void 0===t?void 0:t.split(r.sep))&&(n=s[0]===i.tf.CUSTOM?s[0]:(0,u.C5)(s[0]||""));else if(s[1]===i.tf.CUSTOM)n=s[1];else{var d=s[1];n=i.tf.DBT===d?d:(0,u.C5)(d||"")}if(!s||i.tf.DBT===n)return null;var f="";f=s.length>=3?s.slice(2,s.length).join(r.sep):s[s.length-1];var p=["\\.".concat(o.Lu.PY),"\\.".concat(o.Lu.R),"\\.".concat(o.Lu.SQL),"\\.".concat(o.Lu.YAML),"\\.".concat(o.Lu.YML)].join("|"),v=new RegExp("".concat(p,"$")),h=a?i.Q3:i.$W;if(h.concat(i.tf.DBT).includes(n)&&f.match(v)){var b=f.lastIndexOf("."),g=f.slice(b+1);return{language:o.nB[g],type:n,uuid:f.slice(0,b)}}}function d(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=l(e,n).split(r.sep);if(t[1]){var c=(0,u.C5)(t[n?0:1]);t[1]===i.tf.DBT&&(c=i.tf.DBT);var a=t[t.length-1],s=new RegExp(".".concat(o.Lu.YAML,"$")),d=new RegExp(".".concat(o.Lu.R,"$")),f=new RegExp(".".concat(o.Lu.SQL,"$")),p=new RegExp(".".concat(o.Lu.MD,"$"));if(a.match(s)&&i.VZ.includes(c))return{type:c,uuid:a.replace(s,"")};if(a.match(d)&&i.J8.includes(c))return{type:c,uuid:a.replace(d,"")};if(a.match(f)&&i.HX.includes(c)){var v=a.replace(/[.]/g,"_"),h=c===i.tf.DBT?t.slice(2,-1).join("_").concat("_".concat(v)):a.replace(f,"");return{type:c,uuid:h}}return a.match(p)&&c===i.tf.MARKDOWN?{type:c,uuid:a.replace(p,"")}:void 0}}function f(e,n){var t=e.split("."),i=t[t.length-1];o.n6.includes(i)&&t.pop();var u=t.join("").split(r.sep),l=u.slice(1,u.length).join("");return n.find((function(e){return e.uuid===l}))}function p(e){var n=e||{},t=n.language,r=n.name,l=n.type;if(r&&t&&l){var c=l===i.tf.CUSTOM?l:"".concat(l,"s"),a=o.JD[t],s=(0,u.kE)(r);return"".concat(c,"/").concat(s,".").concat(a)}}},91207:function(e,n,t){"use strict";t.d(n,{Z:function(){return N}});var r=t(82394),i=t(75582),o=t(17717),u=t(82684),l=t(37958),c=t(83455),a=t(35490),s=t(86422),d=t(60328),f=t(38626),p=t(93461),v=t(67971),h=t(28598),b=f.default.div.withConfig({displayName:"ButtonGroup__ButtonGroupStyle",componentId:"sc-15vbmc8-0"})([""]),g=f.default.div.withConfig({displayName:"ButtonGroup__VerticalDivider",componentId:"sc-15vbmc8-1"})(["width:1px;"]),m=function(e){var n=e.children,t=e.divider,r=u.Children.toArray(n).length;return(0,h.jsx)(b,{children:(0,h.jsx)(v.ZP,{children:u.Children.map(n,(function(e,n){return e&&(0,h.jsxs)(p.Z,{children:[n>=1&&t&&(0,h.jsx)(g,{}),u.cloneElement(e,{borderRadiusLeft:r>=2&&0===n,borderRadiusRight:r>=2&&n===r-1,halfPaddingLeft:r>=2&&0!==n,halfPaddingRight:r>=2&&n!==r-1,noBorder:r>=2&&n>0&&n<r-1,noBorderRight:r>=2&&n!==r-1})]},"button-group-child-".concat(n))}))})})},S=t(57722),O=t(73828),j=t(11135),T=t(98781),y=t(86673),E=t(82531),P=t(16115),k=t(94353),w=t(60701),Z=t(55512),_=t(24224),R=t(32821),L=t(90211),x=t(96510),M=t(51504),A=t(41150);function D(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?D(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var N=function(e){var n=e.active,t=e.addNewBlock,f=e.disableRefreshWarning,p=e.fetchPipeline,b=e.fetchVariables,g=e.filePath,D=e.hideHeaderButtons,N=e.onContentChange,I=e.onUpdateFileSuccess,B=e.openSidekickView,Y=e.pipeline,U=e.saveFile,W=e.selectedFilePath,F=e.sendTerminalMessage,H=e.setDisableShortcuts,Q=e.setErrors,X=e.setFilesTouched,V=e.setSelectedBlock,G=(0,l.j)("apiReloads"),J=(0,i.Z)(G,2)[1],$=(0,u.useState)(null),K=$[0],q=$[1],z=(0,u.useState)(!1),ee=z[0],ne=(z[1],(0,u.useRef)(null)),te=(0,u.useMemo)((function(){return new a.Z}),[]),re=(0,u.useMemo)((function(){return{api_key:k.l,token:te.decodedToken.token}}),[te]),ie=E.ZP.statuses.list().data,oe=(0,u.useMemo)((function(){var e,n;return null===ie||void 0===ie||null===(e=ie.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.repo_path}),[ie]),ue=E.ZP.file_contents.detail(g).data;(0,u.useEffect)((function(){null!==ue&&void 0!==ue&&ue.file_content&&q(ue.file_content)}),[ue]);var le=(0,u.useState)(null===K||void 0===K?void 0:K.content),ce=le[0],ae=le[1],se=(0,u.useCallback)((function(e){ae(e),N&&(null===N||void 0===N||N(e))}),[N]),de=(0,u.useState)(!1),fe=de[0],pe=de[1];(0,u.useEffect)((function(){n&&H&&(null===H||void 0===H||H(!0))}),[n,H]),(0,u.useEffect)((function(){var e;W&&(null===ne||void 0===ne||null===(e=ne.current)||void 0===e||e.scrollIntoView())}),[W]);var ve=(0,c.Db)(E.ZP.file_contents.useUpdate((null===K||void 0===K?void 0:K.path)&&encodeURIComponent(null===K||void 0===K?void 0:K.path)),{onSuccess:function(e){return(0,x.wD)(e,{callback:function(e){var n=e.file_content;J((function(e){return C(C({},e),{},(0,r.Z)({},"FileVersions/".concat(null===K||void 0===K?void 0:K.path),Number(new Date)))})),I&&(null===I||void 0===I||I(n))},onErrorCallback:function(e,n){return null===Q||void 0===Q?void 0:Q({errors:n,response:e})}})}}),he=(0,i.Z)(ve,1)[0],be=(0,u.useCallback)((function(e,n){if(U)return U(e,n);he({file_content:C(C({},n),{},{content:e})}).then((function(){decodeURIComponent(g).split(o.sep).pop()===O.dT.METADATA_YAML&&b&&(null===b||void 0===b||b())})),X((function(e){return C(C({},e),{},(0,r.Z)({},null===n||void 0===n?void 0:n.path,!1))})),pe(!1)}),[b,g,U,X,he]),ge=(0,u.useMemo)((function(){return(0,Z.lU)()}),[]),me=(0,u.useMemo)((function(){var e,n,t,r;return null===(null===K||void 0===K||null===(e=K.path)||void 0===e?void 0:e.match(ge))?O.Lu.TXT:null===K||void 0===K||null===(n=K.path)||void 0===n||null===(t=n.match(ge))||void 0===t||null===(r=t[0])||void 0===r?void 0:r.split(".")[1]}),[ge,K]),Se=(0,u.useMemo)((function(){if(null!==K&&void 0!==K&&K.path)return(0,h.jsx)(S.Z,{autoHeight:!0,language:O.nB[me],onChange:function(e){se(e),X((function(e){return C(C({},e),{},(0,r.Z)({},null===K||void 0===K?void 0:K.path,!0))})),pe(!0)},onSave:function(e){be(e,K)},selected:!0,textareaFocused:!0,value:(0,L.Pb)(null===K||void 0===K?void 0:K.content)?JSON.stringify(JSON.parse(null===K||void 0===K?void 0:K.content),null,2):null===K||void 0===K?void 0:K.content,width:"100%"})}),[K,me,be,se,X]),Oe=null!==Y&&void 0!==Y&&Y.blocks?(0,_.sE)(null===Y||void 0===Y?void 0:Y.blocks,(function(e){var n=e.type;return s.tf.DATA_EXPORTER===n})):null,je=(0,c.Db)(E.ZP.blocks.pipelines.useUpdate(null===Y||void 0===Y?void 0:Y.uuid,null===Oe||void 0===Oe?void 0:Oe.uuid),{onSuccess:function(e){return(0,x.wD)(e,{callback:function(){null===p||void 0===p||p()}})}}),Te=(0,i.Z)(je,1)[0],ye=t&&Y&&(me===O.Lu.PY||me===O.Lu.SQL||(me===O.Lu.YAML||me===O.Lu.R)&&(0,R.V3)(K,null===K||void 0===K?void 0:K.path))&&(0,Z.ck)(K.path.split(o.sep))!==s.tf.SCRATCHPAD&&(0,R.lr)(K)&&(0,h.jsx)(d.Z,{onClick:function(){var e=(null===Y||void 0===Y?void 0:Y.type)===T.qL.INTEGRATION,n=(0,Z.TU)(K,oe,Y);t(n,(function(n){e&&Oe&&Te({block:C(C({},Oe),{},{upstream_blocks:[n.uuid]})}),null===V||void 0===V||V(n)}))},primary:!0,children:"Add to current pipeline"}),Ee=F&&(0,h.jsx)(y.Z,{m:2,children:(0,h.jsx)(j.ZP,{disabled:!oe,inline:!0,loading:ee,onClick:function(){null===B||void 0===B||B(w.cH.TERMINAL),null===F||void 0===F||F(JSON.stringify(C(C({},re),{},{command:["stdin","pip install -r ".concat(oe,"/requirements.txt\r")]})))},title:oe?"Pip install packages from your saved requirements.txt file (\u2318+S to save).":"Please use right panel terminal to install packages.",uuid:"FileEditor/InstallPackages",children:"Install packages"})}),Pe="FileEditor/".concat(null===K||void 0===K?void 0:K.path),ke=(0,A.y)(),we=ke.registerOnKeyDown,Ze=ke.unregisterOnKeyDown;return(0,u.useEffect)((function(){return function(){Ze(Pe)}}),[Ze,Pe]),we(Pe,(function(e,t){if(n&&!f)if((0,M.y)([P.zX,P.Um],t)||(0,M.y)([P.PQ,P.Um],t))e.preventDefault(),be(ce,K);else if(fe&&(0,M.y)([P.zX,P.hS],t)){e.preventDefault();var r="".concat(K.path," has changes that are unsaved. ")+"Click cancel and save your changes before reloading page.";"undefined"!==typeof location&&window.confirm(r)&&location.reload()}}),[n,ce,f,K,be,fe]),(0,h.jsxs)("div",{ref:ne,children:[!D&&(0,h.jsx)(y.Z,{p:2,children:(0,h.jsxs)(v.ZP,{justifyContent:"space-between",children:[(0,h.jsxs)(m,{children:[ye,(0,h.jsx)(d.Z,{disabled:!ce,onClick:function(e){e.preventDefault(),be(ce,K)},title:ce?null:"No changes have been made to this file.",children:"Save file content"})]}),B&&(0,h.jsx)(m,{children:(0,h.jsx)(d.Z,{compact:!0,onClick:function(){B(w.cH.FILE_VERSIONS)},small:!0,title:"View previous changes to this file.",children:"Show versions"})})]})}),Se,g===O.dT.REQS_TXT&&Ee]})}},55512:function(e,n,t){"use strict";t.d(n,{TU:function(){return f},ck:function(){return s},lU:function(){return d}});var r=t(21831),i=t(17717),o=t(86422),u=t(98781),l=t(73828),c=t(24224),a=t(90211),s=function(e){var n=e[0];return n===o.tf.DBT||n===o.tf.CUSTOM?n:e[0].slice(0,-1)};function d(){return new RegExp(Object.keys(l.nB).map((function(e){return".(".concat(e,")$")})).join("|"))}function f(e,n,t){var f,p,v=null===e||void 0===e||null===(f=e.path.match(d())[0])||void 0===f?void 0:f.split(".")[1],h=t.type===u.qL.INTEGRATION,b=(0,c.sE)(null===t||void 0===t?void 0:t.blocks,(function(e){var n=e.type;return o.tf.DATA_EXPORTER===n})),g=e.path.replace(n,"").split(i.sep),m=e.path.split(i.sep)[0]===o.tf.DBT,S=(p=g)[0]===o.tf.DBT?p.slice(1).join(i.sep):function(e){return e.at(-1)}(p).split(".")[0];if(g.length>=3&&!m){var O=g.slice(1,g.length-1).join(i.sep);S="".concat(O,"/").concat(S)}var j=s(e.path.split(i.sep)),T={configuration:{file_path:m?S:null},language:l.nB[v],name:(0,a.wE)(S),type:j};if(j===o.tf.CUSTOM&&(T.color=o.Lq.TEAL),h){var y=(0,c.sE)(t.blocks,(function(e){var n=e.type;return o.tf.DATA_LOADER===n})),E=(0,c.sE)(t.blocks,(function(e){var n=e.type;return o.tf.TRANSFORMER===n})),P=[];E?P.push(E.uuid):null!==b&&void 0!==b&&b.upstream_blocks?P.push.apply(P,(0,r.Z)(b.upstream_blocks)):y&&P.push(y.uuid),T.upstream_blocks=P}return T}},84392:function(e,n,t){"use strict";t.d(n,{HF:function(){return u},L6:function(){return r}});var r,i=t(46336),o=t(22341);function u(e,n,t){var u=e.owner,l=(e.roles,[{Icon:o.Vz,id:r.WORKSPACES,isSelected:function(){return r.WORKSPACES===t},label:function(){return"Workspaces"},linkProps:{href:"/manage"}}]);return u&&l.push({Icon:o.NO,id:r.USERS,isSelected:function(){return r.USERS===t},label:function(){return"Users"},linkProps:{href:"/manage/users"}}),n==i.k.MAIN&&l.push({Icon:o.Zr,id:r.SETTINGS,isSelected:function(){return r.SETTINGS===t},label:function(){return"Settings"},linkProps:{href:"/manage/settings"}}),l}!function(e){e.WORKSPACES="workspaces",e.USERS="users",e.SETTINGS="settings"}(r||(r={}))},3849:function(e,n,t){"use strict";var r=t(82684),i=t(1210),o=t(82531),u=t(49125),l=t(84392),c=t(9736),a=t(28598);n.Z=function(e){var n=e.before,t=e.breadcrumbs,s=void 0===t?[]:t,d=e.children,f=e.errors,p=e.pageName,v=e.subheaderChildren,h=o.ZP.statuses.list().data,b=(0,r.useMemo)((function(){var e,n;return null===h||void 0===h||null===(e=h.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.project_type}),[h]),g=(0,c.PR)()||{};return(0,a.jsx)(i.Z,{before:n,beforeWidth:n?50*u.iI:0,breadcrumbs:s,errors:f,navigationItems:(0,l.HF)(g,b,p),subheaderChildren:v,title:"Workspaces",uuid:"workspaces/index",children:d})}},73828:function(e,n,t){"use strict";t.d(n,{JD:function(){return h},Lu:function(){return o},PF:function(){return f},dT:function(){return u},n6:function(){return a},nB:function(){return v},oy:function(){return p},xF:function(){return d}});var r,i,o,u,l=t(82394),c=t(86422);!function(e){e.CSV="csv",e.JSON="json",e.MD="md",e.PY="py",e.R="r",e.SQL="sql",e.TXT="txt",e.YAML="yaml",e.YML="yml"}(o||(o={})),function(e){e.INIT_PY="__init__.py",e.METADATA_YAML="metadata.yaml",e.REQS_TXT="requirements.txt"}(u||(u={}));var a=[o.PY,o.SQL],s=[o.JSON,o.MD,o.PY,o.R,o.SQL,o.TXT,o.YAML,o.YML],d=new RegExp(s.map((function(e){return".".concat(e,"$")})).join("|")),f=(new RegExp(s.map((function(e){return".".concat(e,"$")})).join("|")),"charts"),p="pipelines",v=(r={},(0,l.Z)(r,o.MD,c.t6.MARKDOWN),(0,l.Z)(r,o.JSON,o.JSON),(0,l.Z)(r,o.PY,c.t6.PYTHON),(0,l.Z)(r,o.R,c.t6.R),(0,l.Z)(r,o.SQL,c.t6.SQL),(0,l.Z)(r,o.TXT,"text"),(0,l.Z)(r,o.YAML,c.t6.YAML),(0,l.Z)(r,o.YML,c.t6.YAML),r),h=(i={},(0,l.Z)(i,c.t6.MARKDOWN,o.MD),(0,l.Z)(i,c.t6.PYTHON,o.PY),(0,l.Z)(i,c.t6.R,o.R),(0,l.Z)(i,c.t6.SQL,o.SQL),(0,l.Z)(i,c.t6.YAML,o.YAML),(0,l.Z)(i,"text",o.TXT),i)},46336:function(e,n,t){"use strict";var r,i;t.d(n,{d:function(){return r},k:function(){return i}}),function(e){e.ADD_NEW_BLOCK_V2="add_new_block_v2"}(r||(r={})),function(e){e.MAIN="main",e.STANDALONE="standalone",e.SUB="sub"}(i||(i={}))},3938:function(e,n,t){"use strict";t.r(n);var r=t(77837),i=t(38860),o=t.n(i),u=t(82684),l=t(91207),c=t(41788),a=t(3849),s=t(84392),d=t(28598);function f(){var e=(0,u.useState)(null),n=e[0];e[1];return(0,d.jsx)(a.Z,{breadcrumbs:[{label:function(){return"Workspaces"},linkProps:{as:"/manage",href:"/manage"}},{bold:!0,label:function(){return"Settings"}}],errors:n,pageName:s.L6.SETTINGS,children:(0,d.jsx)(l.Z,{active:!0,filePath:"metadata.yaml",selectedFilePath:"metadata.yaml",setFilesTouched:function(){return null}})})}f.getInitialProps=(0,r.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,c.Z)(f)},37958:function(e,n,t){"use strict";t.d(n,{j:function(){return r}});var r=(0,t(44152).r)({apiReloads:{}}).useGlobalState},1116:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage/settings",function(){return t(3938)}])}},function(e){e.O(0,[844,9902,8789,4398,1424,1005,6422,7722,9774,2888,179],(function(){return n=1116,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|