mage-ai 0.8.36__py3-none-any.whl → 0.8.38__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mage-ai might be problematic. Click here for more details.
- mage_ai/api/logging.py +2 -2
- mage_ai/api/resources/PipelineRunResource.py +6 -3
- mage_ai/data_integrations/sources/constants.py +1 -0
- mage_ai/data_preparation/models/block/dbt/__init__.py +20 -0
- mage_ai/data_preparation/models/block/dbt/utils/__init__.py +4 -1
- mage_ai/data_preparation/models/block/sql/utils/shared.py +4 -4
- mage_ai/data_preparation/models/block/utils.py +2 -1
- mage_ai/data_preparation/models/pipeline.py +18 -3
- mage_ai/orchestration/pipeline_scheduler.py +37 -27
- mage_ai/server/active_kernel.py +6 -3
- mage_ai/server/api/clusters.py +4 -1
- mage_ai/server/api/integration_sources.py +5 -2
- mage_ai/server/client/mage.py +2 -2
- mage_ai/server/constants.py +1 -1
- mage_ai/server/data/base.py +2 -2
- mage_ai/server/data/models.py +2 -2
- mage_ai/server/execution_manager.py +4 -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/{Jr2a8psREhSP9ee5P4ILJ → R_cV5sAcMT3qDXIKAGGPe}/_buildManifest.js +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{2626-905774aafeb2c600.js → 2626-e7fa4f83f8214c97.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4178-9103014b7dae3c49.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{4538-8a3c3e47be976ede.js → 4538-347283088b83c6bf.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{5477-793cd2120261d023.js → 5477-b439f211b6146a11.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{5872-103815a4a043489b.js → 5872-1767c45ee6690ae5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{5896-f84e336fb8877027.js → 5896-10a676bcc86978cc.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{7400-365cb7888b6db7d9.js → 7400-f4db9b5d41f67f75.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{9386-fb899ca8ecc2a350.js → 9386-d4cc11bab74eec8d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{9832-c8b8970bb522f302.js → 9832-f97919376d52e3bf.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{manage-9e5f315db570ac77.js → manage-3046bc53d24917c7.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipeline-runs-79e10a783afec3df.js → pipeline-runs-e64ba4e8b2bfe73c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-6d04570af5494767.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{syncs-1767a2f57f887ef7.js → syncs-e1271453ed0c8d6e.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipelines-52c3ee3817e5554b.js → pipelines-7446a70bdd8381a5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{preferences-a23b61bab04a16f3.js → preferences-997acba85f777259.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{sync-data-de28e502102defde.js → sync-data-8c903140c99e487c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{terminal-9c21edae8f1b6737.js → terminal-4c9ad80f8f9d1074.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{triggers-8a2169d30b643ae7.js → triggers-783b9526167f1249.js} +1 -1
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage.html +4 -4
- mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +5 -5
- mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +10 -10
- mage_ai/server/frontend_dist/terminal.html +5 -5
- mage_ai/server/frontend_dist/test.html +3 -3
- mage_ai/server/frontend_dist/triggers.html +5 -5
- mage_ai/server/logger.py +16 -0
- mage_ai/server/scheduler_manager.py +8 -4
- mage_ai/server/server.py +5 -0
- mage_ai/server/subscriber.py +6 -3
- mage_ai/server/utils/frontend_renderer.py +3 -2
- mage_ai/server/utils/output_display.py +1 -1
- mage_ai/server/websocket_server.py +4 -1
- mage_ai/settings/__init__.py +2 -0
- mage_ai/shared/logger.py +4 -0
- {mage_ai-0.8.36.dist-info → mage_ai-0.8.38.dist-info}/METADATA +1 -1
- {mage_ai-0.8.36.dist-info → mage_ai-0.8.38.dist-info}/RECORD +81 -80
- mage_ai/server/frontend_dist/_next/static/chunks/4178-e17f37d21253b832.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-6a52671f1853e1a5.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{Jr2a8psREhSP9ee5P4ILJ → R_cV5sAcMT3qDXIKAGGPe}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist/_next/static/{Jr2a8psREhSP9ee5P4ILJ → R_cV5sAcMT3qDXIKAGGPe}/_ssgManifest.js +0 -0
- {mage_ai-0.8.36.dist-info → mage_ai-0.8.38.dist-info}/LICENSE +0 -0
- {mage_ai-0.8.36.dist-info → mage_ai-0.8.38.dist-info}/WHEEL +0 -0
- {mage_ai-0.8.36.dist-info → mage_ai-0.8.38.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.8.36.dist-info → mage_ai-0.8.38.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9386],{15270:function(e,n,t){t.d(n,{Z:function(){return j}});var r=t(82684),i=t(34376),o=t(61519),d=t(57639),l=t(882),c=t(11135),a=t(28598);var s=function(e){var n=e.size;return(0,a.jsxs)("svg",{width:n,height:n,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.86364 2.5H4.13636C3.68449 2.5 3.31818 2.94772 3.31818 3.5V7.5C3.31818 8.05228 3.68449 8.5 4.13636 8.5H9.86364C10.3155 8.5 10.6818 8.05228 10.6818 7.5V3.5C10.6818 2.94772 10.3155 2.5 9.86364 2.5ZM4.13636 1.5C3.23263 1.5 2.5 2.39543 2.5 3.5V7.5C2.5 8.60457 3.23263 9.5 4.13636 9.5H5.5V16.1667V16.5H4.13636C3.23263 16.5 2.5 17.3954 2.5 18.5V22.5C2.5 23.6046 3.23263 24.5 4.13636 24.5H9.86364C10.7674 24.5 11.5 23.6046 11.5 22.5V18.5C11.5 17.3954 10.7674 16.5 9.86364 16.5H6.5V16.1667C6.5 14.9394 7.61929 13.9444 9 13.9444H16C17.933 13.9444 19.5 12.5516 19.5 10.8333V9.5H21.8636C22.7674 9.5 23.5 8.60457 23.5 7.5V3.5C23.5 2.39543 22.7674 1.5 21.8636 1.5H16.1364C15.2326 1.5 14.5 2.39543 14.5 3.5V7.5C14.5 8.60457 15.2326 9.5 16.1364 9.5H18.5V10.8333C18.5 12.0606 17.3807 13.0556 16 13.0556H9C8.02066 13.0556 7.13526 13.4131 6.5 13.9893V9.5H9.86364C10.7674 9.5 11.5 8.60457 11.5 7.5V3.5C11.5 2.39543 10.7674 1.5 9.86364 1.5H4.13636ZM9.86364 17.5H6.5H5.5H4.13636C3.68449 17.5 3.31818 17.9477 3.31818 18.5V22.5C3.31818 23.0523 3.68449 23.5 4.13636 23.5H9.86364C10.3155 23.5 10.6818 23.0523 10.6818 22.5V18.5C10.6818 17.9477 10.3155 17.5 9.86364 17.5ZM16.1364 2.5H21.8636C22.3155 2.5 22.6818 2.94772 22.6818 3.5V7.5C22.6818 8.05228 22.3155 8.5 21.8636 8.5H16.1364C15.6845 8.5 15.3182 8.05228 15.3182 7.5V3.5C15.3182 2.94772 15.6845 2.5 16.1364 2.5Z",fill:"url(#paint0_linear_2738_141228)"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_2738_141228",x1:"2.5",y1:"13",x2:"23.5",y2:"13",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},u=t(29664);var f=function(e){var n=e.size;return(0,a.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.65256 15.8011L4.68226 20.7714C4.14193 21.3117 3.26588 21.3117 2.72556 20.7714C2.18523 20.231 2.18523 19.355 2.72556 18.8147L7.60553 13.9347C9.03 12.5102 9.91996 10.6383 10.1255 8.6343L10.3663 6.28587C10.4455 5.51385 10.7884 4.7927 11.3371 4.24393L11.9728 3.60825C13.233 2.34803 15.1222 2.10014 16.6299 2.86457L13.621 5.87349C12.7214 6.77304 12.7214 8.23149 13.621 9.13104L13.9934 9.50349C14.893 10.403 16.3514 10.403 17.251 9.50349L20.2599 6.49457C21.0243 8.00224 20.7764 9.89143 19.5162 11.1516L18.786 11.8818C18.2751 12.3928 17.6175 12.7318 16.9049 12.8515L14.634 13.2332C12.7469 13.5504 11.0056 14.448 9.65256 15.8011ZM11.0889 2.72437C12.8414 0.971949 15.5214 0.712489 17.5485 1.94599C17.9008 2.16036 18.2333 2.41982 18.5379 2.72436L14.5049 6.75738C14.0935 7.16877 14.0935 7.83577 14.5049 8.24716L14.8773 8.61961C15.2887 9.031 15.9557 9.031 16.3671 8.61961L20.4001 4.5866C20.7046 4.89114 20.9641 5.22371 21.1785 5.57599C22.412 7.60309 22.1525 10.2831 20.4001 12.0355L19.6699 12.7657C18.9751 13.4605 18.081 13.9214 17.1121 14.0842L14.8412 14.4659C13.2104 14.74 11.7057 15.5157 10.5364 16.6849L5.56614 21.6552C4.53766 22.6837 2.87016 22.6837 1.84167 21.6552C0.81319 20.6268 0.813193 18.9593 1.84168 17.9308L6.72165 13.0508C7.94285 11.8296 8.70581 10.2248 8.88201 8.50678L9.12286 6.15835C9.23136 5.10035 9.70121 4.11209 10.4533 3.36005L11.0889 2.72437ZM4.88014 19.3535C5.0754 19.1582 5.0754 18.8417 4.88014 18.6464C4.68488 18.4511 4.3683 18.4511 4.17303 18.6464L3.64631 19.1731C3.45105 19.3684 3.45105 19.685 3.64631 19.8802C3.84158 20.0755 4.15816 20.0755 4.35342 19.8802L4.88014 19.3535Z",fill:"url(#paint0_linear_7839_33197)"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_7839_33197",x1:"1.07031",y1:"11.8041",x2:"21.9428",y2:"11.8041",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})};var p=function(e){var n=e.size;return(0,a.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 18V6c0-1.38071 1.11929-2.5 2.5-2.5h12c1.3807 0 2.5 1.11929 2.5 2.5v12c0 1.3807-1.1193 2.5-2.5 2.5H6c-1.38071 0-2.5-1.1193-2.5-2.5zM2 18V6c0-2.20914 1.79086-4 4-4h12c2.2091 0 4 1.79086 4 4v12c0 2.2091-1.7909 4-4 4H6c-2.20914 0-4-1.7909-4-4zm9.0935-8.41432c.3235-.25876.3759-.73073.1172-1.05417-.2588-.32345-.7308-.37589-1.0542-.11713L7.03148 10.9144c-.17791.1423-.28148.3578-.28148.5856 0 .2279.10357.4433.28148.5857l3.12502 2.5c.3234.2587.7954.2063 1.0542-.1172.2587-.3234.2063-.7954-.1172-1.0541L8.70058 11.5l2.39292-1.91432zM14.5 13.25c-.4142 0-.75.3358-.75.75s.3358.75.75.75H17c.4142 0 .75-.3358.75-.75s-.3358-.75-.75-.75h-2.5z",fill:"url(#paint0_linear_1244_32583)"}),(0,a.jsxs)("defs",{children:[(0,a.jsx)("clipPath",{id:"clip0_5247_222548",children:(0,a.jsx)("rect",{width:"24",height:"24",fill:"white"})}),(0,a.jsxs)("linearGradient",{id:"paint0_linear_1244_32583",x1:"1.07031",y1:"11.8041",x2:"21.9428",y2:"11.8041",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})]})]})},h=t(86673),g=t(19711),x=t(46261),v=t(10503),m=t(72454),b=t(99994),y=t(49125),C=3*y.iI;var j=function(e){var n=e.aligned,t=e.navigationItems,j=(0,i.useRouter)().pathname,w=(0,r.useMemo)((function(){var e=[{Icon:v.rV,IconSelected:s,id:"pipelines",label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}},{Icon:v.Pf,IconSelected:u.Z,id:"triggers",label:function(){return"Triggers"},linkProps:{href:"/triggers"}},{Icon:v.pd,IconSelected:o.Z,id:"pipeline-runs",label:function(){return"Pipelines runs"},linkProps:{href:"/pipeline-runs"}},{Icon:v.oI,IconSelected:p,id:"terminal",label:function(){return"Terminal"},linkProps:{href:"/terminal"}},{Icon:v.Zr,IconSelected:f,id:"settings",label:function(){return"Settings"},linkProps:{href:"/settings"}}];return(t||e).map((function(e,t){var r=e.Icon,i=e.IconSelected,o=e.id,d=e.isSelected,s=e.label,u=e.linkProps,f=e.onClick,p=d?d(j,e):!!j.match(new RegExp("^/".concat(o,"[/]*"))),v=p&&i?i:r;return(0,a.jsx)(h.Z,{mt:t>=1?y.cd:0,children:(0,a.jsxs)(x.Z,{appearBefore:"right"===n,height:5*y.iI,label:s(),size:null,widthFitContent:!0,children:[p&&i&&(0,a.jsx)(l.Z,{backgroundGradient:b.yr,backgroundPanel:!0,basic:!0,borderWidth:2,linkProps:u,onClick:f,paddingUnits:1,children:(0,a.jsx)("div",{style:{height:C,width:C},children:(0,a.jsx)(v,{muted:!0,size:C})})}),(!p||p&&!i)&&(0,a.jsx)(c.ZP,{block:!0,linkProps:u,noHoverUnderline:!0,noPadding:!0,onClick:f,primary:p,sameColorAsText:!0,uuid:"VerticalNavigation/".concat(o),children:(0,a.jsx)(m.E7,{primary:!v,children:v?(0,a.jsx)(v,{muted:!p,size:C}):(0,a.jsx)(g.ZP,{children:"Edit"})})})]})},"button-".concat(o))}))}),[n,t,j]);return(0,a.jsx)(d.Z,{children:w})}},72454:function(e,n,t){t.d(n,{E7:function(){return h},HS:function(){return p},Nk:function(){return u},k1:function(){return s},lm:function(){return f}});var r=t(9518),i=t(23831),o=t(73942),d=t(3055),l=t(49125),c=t(37391),a=t(90880),s=l.cd*l.iI+5*l.iI+l.cd*l.iI+1,u=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-ecogjt-0"})(["display:flex;flex-direction:row;height:calc(100vh - ","px);position:fixed;top:","px;width:100%;",""],d.Mz,d.Mz,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).page,";\n ")})),f=r.default.div.withConfig({displayName:"indexstyle__VerticalNavigationStyle",componentId:"sc-ecogjt-1"})(["padding:","px;"," "," ",""],l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n ")}),(function(e){return e.borderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}),(function(e){return!e.borderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")})),p=r.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-ecogjt-2"})(["width:100%;padding:","px;position:sticky;top:0;z-index:3;",""],l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).page,";\n border-bottom: 1px solid ").concat((e.theme.borders||i.Z.borders).medium,";\n ")})),h=(r.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-ecogjt-3"})([""," overflow:auto;",""],c.w5,(function(e){return"\n height: calc(100vh - ".concat(d.Mz+(e.heightOffset||0),"px);\n ")})),r.default.div.withConfig({displayName:"indexstyle__NavigationItemStyle",componentId:"sc-ecogjt-4"})(["display:flex;align-items:center;justify-content:center;padding:","px;border-radius:","px;",""],l.iI,o.n_,(function(e){return e.primary&&"\n ".concat((0,a.eR)(),"\n background: ").concat((e.theme||i.Z).chart.backgroundPrimary,";\n border: 1px solid ").concat((e.theme||i.Z).feature.active,";\n\n &:hover {\n background-color: ").concat((e.theme||i.Z).interactive.linkSecondary,";\n }\n ")})))},28358:function(e,n,t){t.d(n,{Z:function(){return v}});var r=t(82684),i=t(60328),o=t(10919),d=t(86673),l=t(19711),c=t(10503),a=t(9518),s=t(23831),u=t(73942),f=t(49125),p=t(37391),h=a.default.div.withConfig({displayName:"indexstyle__ErrorPopupStyle",componentId:"sc-aqfw6f-0"})(["top:50%;left:50%;transform:translate(-50%,-50%);max-height:95vh;max-width:95vw;overflow:auto;padding:","px;position:fixed;z-index:9999;border-radius:","px;"," ",""],f.iI*f.cd,u.n_,(function(e){return"\n background-color: ".concat((e.theme||s.Z).background.page,";\n border: 1px solid ").concat((e.theme||s.Z).accent.negative,";\n box-shadow: ").concat((e.theme||s.Z).shadow.window,";\n ")}),p.w5),g=a.default.div.withConfig({displayName:"indexstyle__CloseButtonContainerStyle",componentId:"sc-aqfw6f-1"})(["display:flex;justify-content:flex-end;position:sticky;top:0;"]),x=t(28598);var v=function(e){var n,t,a=e.displayMessage,s=e.errors,u=e.links,f=e.onClose,p=e.response,v=(0,r.useState)(!1),m=v[0],b=v[1],y=(0,r.useState)(!1),C=y[0],j=y[1],w=(s||{}).messages,Z=(null===p||void 0===p?void 0:p.error)||{},k=Z.errors,_=Z.exception,I=Z.message,H=a,O=w;return I&&(O=I.split("\n")),_||H||null===(n=O)||void 0===n||!n[0]||(H=O[0],O=null),(0,x.jsxs)(h,{children:[(0,x.jsx)(g,{children:(0,x.jsx)(i.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:f,title:"Close errors",children:(0,x.jsx)(c.x8,{})})}),(0,x.jsx)(l.ZP,{bold:!0,large:!0,children:"Error"}),H&&(0,x.jsx)(d.Z,{mt:1,children:(0,x.jsx)(l.ZP,{default:!0,children:H})}),_&&(0,x.jsx)(d.Z,{mt:1,children:(0,x.jsx)(l.ZP,{default:!0,disableWordBreak:!0,monospace:!0,children:_})}),(null===(t=O)||void 0===t?void 0:t.length)>0&&(0,x.jsxs)(d.Z,{mt:2,children:[(0,x.jsxs)(l.ZP,{bold:!0,large:!0,children:["Traceback (",(0,x.jsxs)(o.Z,{onClick:function(){return j((function(e){return!e}))},preventDefault:!0,warning:!0,children:[C?"hide":"show"," traceback"]}),")"]}),C&&(0,x.jsx)(d.Z,{mt:1,children:O.map((function(e){return(0,x.jsx)(l.ZP,{dangerouslySetInnerHTML:{__html:e.replaceAll(" "," ")},default:!0,disableWordBreak:!0,monospace:!0},e)}))})]}),k&&(0,x.jsxs)(d.Z,{mt:2,children:[(0,x.jsxs)(l.ZP,{bold:!0,large:!0,children:["Stack trace (",(0,x.jsxs)(o.Z,{onClick:function(){return b((function(e){return!e}))},preventDefault:!0,warning:!0,children:[m?"hide":"show"," stack trace"]}),")"]}),m&&(0,x.jsx)(d.Z,{mt:1,children:k.map((function(e){return(0,x.jsx)(l.ZP,{dangerouslySetInnerHTML:{__html:e.replaceAll(" "," ")},default:!0,disableWordBreak:!0,monospace:!0},e)}))})]}),null===u||void 0===u?void 0:u.map((function(e,n){var t=e.label,r=e.onClick;return(0,x.jsx)(d.Z,{mt:2,children:(0,x.jsx)(o.Z,{large:!0,onClick:r,underline:!0,warning:!0,children:t})},t)}))]})}},82386:function(e,n,t){t.d(n,{E$:function(){return I},MK:function(){return m},MP:function(){return Z},Md:function(){return s},OM:function(){return x},Ru:function(){return k},VW:function(){return p},W7:function(){return j},Wi:function(){return g},YJ:function(){return w},Zj:function(){return S},Zt:function(){return a},aH:function(){return P},dN:function(){return u},ff:function(){return _},l8:function(){return h},rS:function(){return O},uX:function(){return v},v7:function(){return H},ve:function(){return f}});var r=t(9518),i=t(23831),o=t(73942),d=t(3055),l=t(49125),c=t(37391),a=64*l.iI,s=3*l.cd*l.iI,u=s,f=35*l.iI,p=.5*l.iI,h=13*l.iI,g=3*l.cd*l.iI,x=6*l.iI,v=2*l.cd*3*l.iI,m=(r.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-1lxpneo-0"})(["position:fixed;z-index:2;"," "," ",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.monotone||i.Z.monotone).grey200,";\n ")}),(function(e){return!e.beforeVisible&&"\n width: 100%;\n "}),(function(e){return e.beforeVisible&&"\n left: ".concat(f,"px;\n width: calc(100% - ").concat(f,"px);\n ")})),r.default.div.withConfig({displayName:"indexstyle__NewHeaderStyle",componentId:"sc-1lxpneo-1"})(["height:","px;position:fixed;top:0;width:100%;z-index:4;"],d.Mz)),b=(r.default.div.withConfig({displayName:"indexstyle__TabStyle",componentId:"sc-1lxpneo-2"})(["border-top-left-radius:","px;border-top-right-radius:","px;padding:","px ","px;position:relative;top:1px;"," "," ",""],o.n_,o.n_,1*l.iI,2*l.iI,(function(e){return"\n border-left: 1px solid ".concat((e.theme.monotone||i.Z.monotone).grey200,";\n border-right: 1px solid ").concat((e.theme.monotone||i.Z.monotone).grey200,";\n border-top: 1px solid ").concat((e.theme.monotone||i.Z.monotone).grey200,";\n ")}),(function(e){return!e.first&&"\n margin-left: ".concat(1*l.iI,"px;\n ")}),(function(e){return e.selected&&"\n border-bottom: 1px solid ".concat((e.theme.monotone||i.Z.monotone).white,";\n ")})),(0,r.css)(["position:fixed;z-index:2;",""],(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n height: calc(100% - ").concat("undefined"===typeof e.heightOffset?v:e.heightOffset,"px);\n top: ").concat("undefined"===typeof e.heightOffset?v:e.heightOffset,"px;\n ")}))),y=(0,r.css)([""," height:100%;overflow:auto;position:relative;z-index:2;"],c.w5),C=(0,r.css)(["height:calc(100% + ","px);position:absolute;top:-","px;width:","px;z-index:6;&:hover{","}"," ",""],g,g,p,(function(e){return!e.disabled&&"\n border-color: ".concat((e.theme.text||i.Z.text).fileBrowser," !important;\n ")}),(function(e){return!e.disabled&&"\n cursor: col-resize;\n "}),(function(e){return e.active&&!e.disabled&&"\n border-color: ".concat((e.theme.text||i.Z.text).fileBrowser," !important;\n ")})),j=r.default.div.withConfig({displayName:"indexstyle__AsideHeaderStyle",componentId:"sc-1lxpneo-3"})(["border-bottom:1px solid transparent;height:","px;position:fixed;top:","px;z-index:4;"," "," ",""],g,g,(0,c.y$)(),(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n ")}),(function(e){return!e.visible&&"\n border-left: 1px solid transparent;\n border-right: 1px solid transparent;\n border-color: ".concat((e.theme.borders||i.Z.borders).medium," !important;\n ")})),w=r.default.div.withConfig({displayName:"indexstyle__AsideSubheaderStyle",componentId:"sc-1lxpneo-4"})(["border-bottom:1px solid transparent;height:","px;overflow-x:auto;"," "," ",""],g,(0,c.y$)(),(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).table,";\n ")}),(function(e){return!e.visible&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).medium," !important;\n ")})),Z=r.default.aside.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-1lxpneo-5"})([""," left:0;"],b),k=r.default.div.withConfig({displayName:"indexstyle__BeforeInnerStyle",componentId:"sc-1lxpneo-6"})([""," overflow:hidden;&:hover{overflow:auto;}"],y),_=r.default.aside.withConfig({displayName:"indexstyle__AfterStyle",componentId:"sc-1lxpneo-7"})([""," right:0;"],b),I=r.default.div.withConfig({displayName:"indexstyle__AfterInnerStyle",componentId:"sc-1lxpneo-8"})(["",""],y),H=r.default.div.withConfig({displayName:"indexstyle__DraggableStyle",componentId:"sc-1lxpneo-9"})([""," "," ",""],C,(function(e){return"undefined"!==typeof e.left&&"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n left: ").concat(e.left,"px;\n ")}),(function(e){return"undefined"!==typeof e.right&&"\n border-right: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n right: ").concat(e.right,"px;\n ")})),O=r.default.div.withConfig({displayName:"indexstyle__MainWrapper",componentId:"sc-1lxpneo-10"})(["height:100%;position:fixed;z-index:1;",""],(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeArea,";\n ")})),P=r.default.div.withConfig({displayName:"indexstyle__MainContentStyle",componentId:"sc-1lxpneo-11"})(["position:fixed;z-index:2;",""],(function(e){return"\n height: calc(100% - ".concat(e.headerOffset||0,"px);\n top: ").concat(e.headerOffset||0,"px;\n ")})),S=r.default.div.withConfig({displayName:"indexstyle__MainContentInnerStyle",componentId:"sc-1lxpneo-12"})([""," height:100%;overflow:auto;"],c.w5)},32063:function(e,n,t){var r=t(82684),i=t(1887),o=t.n(i),d=t(60328),l=t(57639),c=t(93461),a=t(67971),s=t(86673),u=t(46261),f=t(82386),p=t(10503),h=t(91427),g=t(49125),x=t(24141),v=t(28598);n.Z=function(e){var n=e.after,t=e.afterHeader,i=e.afterHeightOffset,m=e.afterHidden,b=e.afterMousedownActive,y=e.afterSubheader,C=e.afterWidth,j=void 0===C?0:C,w=e.before,Z=e.beforeHeader,k=e.beforeHeightOffset,_=e.beforeHidden,I=e.beforeMousedownActive,H=e.beforeWidth,O=void 0===H?0:H,P=e.children,S=e.header,V=e.headerOffset,E=void 0===V?0:V,M=e.hideAfterCompletely,B=e.leftOffset,L=void 0===B?0:B,z=e.mainContainerHeader,N=e.mainContainerRef,R=e.setAfterHidden,A=e.setAfterMousedownActive,D=e.setAfterWidth,W=e.setBeforeHidden,F=e.setBeforeMousedownActive,U=e.setBeforeWidth,T=(e.uuid,(0,x.i)().width),G=(0,r.useRef)(null),X=(0,r.useRef)(null),$=(0,r.useRef)(null),q=(0,r.useRef)(null),Y=(0,r.useCallback)((function(){var e=!m;null===R||void 0===R||R(e),(0,h.t8)(h.zg,e)}),[m,R]),J=(0,r.useCallback)((function(){var e=!_;W(e),(0,h.t8)(h.Uu,e)}),[_,W]);(0,r.useEffect)((function(){var e,n,t,r,i=function(e){var n,t;((null===$||void 0===$||null===(n=$.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).x;if(T){var r=e.x;r+f.l8>T-j&&(r=T-j-f.l8),r-=2*L,U(Math.max(r,f.dN))}},o=function(e){var n,t;e.offsetX>=e.target.offsetWidth-f.VW&&e.offsetX<=e.target.offsetWidth+f.VW&&(null===F||void 0===F||F(!0),e.preventDefault(),null===(n=document)||void 0===n||null===(t=n.addEventListener)||void 0===t||t.call(n,"mousemove",i,!1))},d=function(){var e,n;null===F||void 0===F||F(!1),null===(e=document)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousemove",i,!1)};return null===q||void 0===q||null===(e=q.current)||void 0===e||null===(n=e.addEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(r=t.addEventListener)||void 0===r||r.call(t,"mouseup",d,!1),function(){var e,n,t,r;null===q||void 0===q||null===(e=q.current)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(r=t.removeEventListener)||void 0===r||r.call(t,"mouseup",d,!1),d()}}),[j,_,L,$,q,F,U,T]),(0,r.useEffect)((function(){var e,n,t,r,i=function(e){var n,t;((null===G||void 0===G||null===(n=G.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).x;if(T){var r=T-e.x;r+f.l8>T-O&&(r=T-O-f.l8),D(Math.max(r,f.Md))}},o=function(e){var n,t;e.offsetX>=-1*f.VW&&e.offsetX<=f.VW&&(null===A||void 0===A||A(!0),e.preventDefault(),null===(n=document)||void 0===n||null===(t=n.addEventListener)||void 0===t||t.call(n,"mousemove",i,!1))},d=function(){var e,n;null===A||void 0===A||A(!1),null===(e=document)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousemove",i,!1)};return null===X||void 0===X||null===(e=X.current)||void 0===e||null===(n=e.addEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(r=t.addEventListener)||void 0===r||r.call(t,"mouseup",d,!1),function(){var e,n,t,r;null===X||void 0===X||null===(e=X.current)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(r=t.removeEventListener)||void 0===r||r.call(t,"mouseup",d,!1),d()}}),[m,O,G,X,A,D,T]);var K=M&&m,Q=K?0:m?4*g.iI:j,ee=_?4*g.iI:O,ne="calc(100% - ".concat(ee+Q+L,"px)");return(0,v.jsxs)(l.Z,{children:[(b&&!m||I&&!_)&&(0,v.jsx)(o(),{children:(0,v.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n body {\n cursor: col-resize;\n }\n "}})}),S&&(0,v.jsx)(f.MK,{children:S}),w&&(0,v.jsxs)(f.MP,{heightOffset:k,style:{left:L,width:ee},children:[(0,v.jsx)(f.v7,{active:I,disabled:_,ref:q,right:0}),W&&(0,v.jsx)(f.W7,{style:{width:ee},visible:_,children:(0,v.jsxs)(a.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,justifyContent:"space-between",children:[(0,v.jsxs)(c.Z,{children:[(0,v.jsx)(s.Z,{pl:_?1:0}),!_&&Z]}),(0,v.jsxs)(c.Z,{children:[(0,v.jsx)(u.Z,{block:!0,label:_?"Show sidebar":"Hide sidebar",size:null,widthFitContent:!0,children:(0,v.jsxs)(d.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return J()},children:[_&&(0,v.jsx)(p._Q,{neutral:!0,size:2*g.iI}),!_&&(0,v.jsx)(p.s$,{neutral:!0,size:2*g.iI})]})},_?"before-is-hidden":"before-is-visible"),(0,v.jsx)(s.Z,{pr:_?1:2})]})]})}),(0,v.jsx)(f.Ru,{noScrollbarTrackBackground:!0,ref:$,children:!_&&w})]}),(0,v.jsxs)(f.rS,{style:{left:ee+L,width:ne},children:[z,(0,v.jsx)(f.aH,{headerOffset:(z?f.uX:f.Wi)+E,style:{width:ne},children:(0,v.jsx)(f.Zj,{noScrollbarTrackBackground:!0,ref:N,children:P})})]}),n&&!K&&(0,v.jsxs)(f.ff,{heightOffset:i,style:{width:Q},children:[(0,v.jsx)(f.v7,{active:b,disabled:m,left:0,ref:X}),R&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(f.W7,{style:{width:Q},visible:m,children:(0,v.jsxs)(a.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,children:[(0,v.jsxs)(c.Z,{children:[(0,v.jsx)(s.Z,{pl:m?1:2}),(0,v.jsxs)(d.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return Y()},children:[m&&(0,v.jsx)(p.s$,{neutral:!0,size:2*g.iI}),!m&&(0,v.jsx)(p._Q,{neutral:!0,size:2*g.iI})]})]}),!m&&t]})}),!m&&y&&(0,v.jsx)(f.YJ,{style:{width:Q},visible:m,children:y})]}),(0,v.jsx)(f.E$,{noScrollbarTrackBackground:!0,ref:G,children:!m&&n})]})]})}},41788:function(e,n,t){t.d(n,{Z:function(){return I}});var r=t(77837),i=t(26304),o=t(62243),d=t(29385),l=t(80022),c=t(99177),a=t(93189),s=t(15544),u=t(82394),f=t(38860),p=t.n(f),h=t(82684),g=t(56663),x=t.n(g),v=t(35490),m=t(55361),b=t(30332),y=t(9736),C=t(59e3),j=t(28598),w=["auth"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function k(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function _(e){var n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=(0,s.Z)(e);if(n){var i=(0,s.Z)(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return(0,a.Z)(this,t)}}function I(e){return function(n){(0,c.Z)(a,n);var t=_(a);function a(){var e;(0,o.Z)(this,a);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=t.call.apply(t,[this].concat(r)),(0,u.Z)((0,l.Z)(e),"state",{auth:new v.Z(e.props.token)}),e}return(0,d.Z)(a,[{key:"componentDidMount",value:function(){this.setState({auth:new v.Z(this.props.token)})}},{key:"render",value:function(){var n=this.props,t=(n.auth,(0,i.Z)(n,w));return(0,j.jsx)(e,k({auth:this.state.auth},t))}}],[{key:"getInitialProps",value:function(){var n=(0,r.Z)(p().mark((function n(t){var r,i,o,d,l,c,a,s,u;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=x()(t),i=(0,y.ex)(t),o=i.id,d=r[m.Mv],l=r[b.qt],c=new v.Z(d),a=k(k({},t),{},{auth:c,currentGroupId:o,theme:l}),(0,y.YB)(t)&&c.isExpired&&(console.log("OAuth token has expired."),s=k(k({},t.query),{},{redirect_url:t.asPath}),(0,C.nL)("/sign-in?".concat((0,C.uM)(s)),t.res)),!e.getInitialProps){n.next=12;break}return n.next=10,e.getInitialProps(a);case 10:return u=n.sent,n.abrupt("return",k(k({},u),{},{auth:c,currentGroupId:o,theme:l}));case 12:return n.abrupt("return",a);case 13:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}]),a}(h.Component)}},882:function(e,n,t){var r=t(82394),i=t(26304),o=t(9518),d=t(60328),l=t(23831),c=t(73942),a=t(99994),s=t(49125),u=t(28598),f=["backgroundGradient","backgroundPanel","borderWidth","children","compact","paddingUnits","paddingUnitsHorizontal","paddingUnitsVertical"];function p(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 h(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=o.default.div.withConfig({displayName:"GradientButton__ButtonContentStyle",componentId:"sc-1gzx4r1-0"})(["border-radius:","px;height:fit-content;"," ",""],c.n_,(function(e){return!e.backgroundPanel&&"\n background-color: ".concat((e.theme.background||l.Z.background).page,";\n ")}),(function(e){return e.backgroundPanel&&"\n background-color: ".concat((e.theme.background||l.Z.background).panel,";\n ")}));n.Z=function(e){var n=e.backgroundGradient,t=void 0===n?a.TD:n,r=e.backgroundPanel,o=e.borderWidth,l=void 0===o?1:o,c=e.children,p=e.compact,x=e.paddingUnits,v=e.paddingUnitsHorizontal,m=void 0===v?1.5:v,b=e.paddingUnitsVertical,y=void 0===b?1.25:b,C=(0,i.Z)(e,f),j=m,w=y;return x&&(j=x,w=x),p&&(j*=.75,w*=.75),(0,u.jsx)(d.Z,h(h({},C),{},{backgroundGradient:t,noPadding:!0,padding:"".concat(l,"px"),pointerEventsEnabled:!0,children:(0,u.jsx)(g,{backgroundPanel:r,children:(0,u.jsx)("div",{style:{paddingBottom:w*s.iI-l,paddingLeft:j*s.iI-l,paddingRight:j*s.iI-l,paddingTop:w*s.iI-l},children:c})})}))}},61519:function(e,n,t){var r=t(28598);n.Z=function(e){var n=e.size;return(0,r.jsxs)("svg",{width:n,height:n,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3H9V9H3V3ZM10 2V9H17V16H24V24H17H16H10H9H2V17V16V10V9V2H10ZM16 23V17H10V23H16ZM17 23H23V17H17V23ZM16 16V10H10V16H16ZM9 10V16H3V10H9ZM9 17V23H3V17H9Z",fill:"url(#paint0_linear_2738_140355)"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"paint0_linear_2738_140355",x1:"2",y1:"13",x2:"24",y2:"13",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}},29664:function(e,n,t){var r=t(28598);n.Z=function(e){var n=e.size;return(0,r.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C6.75329 21.5 2.5 17.2467 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5C17.2467 2.5 21.5 6.75329 21.5 12ZM23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM12.75 7C12.75 6.58579 12.4142 6.25 12 6.25C11.5858 6.25 11.25 6.58579 11.25 7V13C11.25 13.4142 11.5858 13.75 12 13.75H16C16.4142 13.75 16.75 13.4142 16.75 13C16.75 12.5858 16.4142 12.25 16 12.25H12.75V7Z",fill:"url(#paint0_linear_2798_59379)"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"paint0_linear_2798_59379",x1:"1",y1:"12",x2:"23",y2:"12",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}},99994:function(e,n,t){t.d(n,{eW:function(){return a},TD:function(){return l},yr:function(){return c}});var r=t(73899),i="#FF144D",o="#DEBB92",d="#2A60FE",l=("linear-gradient(90deg, ".concat(o,", ").concat("#CBFE00",")"),"linear-gradient(90deg, ".concat(i,", #C86DD7)")),c=("linear-gradient(90deg, ".concat("#95ECE2",", ").concat(d,")"),"linear-gradient(90deg, ".concat("#9B6CA7",", ").concat(o,")"),"linear-gradient(90deg, ".concat("#C72400",", ").concat(o,")"),"linear-gradient(100.38deg, ".concat(i," 41.11%, #FF9559 86.99%)"),"linear-gradient(100.38deg, ".concat("#6B50D7"," 41.11%, #677FFF 86.99%)"),"linear-gradient(100.38deg, ".concat(d," 41.11%, #B880FF 86.99%)"),"linear-gradient(90deg, ".concat(r.t4," 20.13%, #2AB2FE)")),a="linear-gradient(90deg, ".concat(r.Ck," 0%, ").concat(r.t4," 53.13%, ").concat(r.X_," 100%)")},66166:function(e,n,t){var r=t(82684);n.Z=function(e){var n=(0,r.useRef)();return(0,r.useEffect)((function(){n.current=e}),[e]),n.current}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9386],{15270:function(e,n,t){t.d(n,{Z:function(){return j}});var r=t(82684),i=t(34376),o=t(61519),d=t(57639),l=t(882),c=t(11135),a=t(28598);var s=function(e){var n=e.size;return(0,a.jsxs)("svg",{width:n,height:n,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.86364 2.5H4.13636C3.68449 2.5 3.31818 2.94772 3.31818 3.5V7.5C3.31818 8.05228 3.68449 8.5 4.13636 8.5H9.86364C10.3155 8.5 10.6818 8.05228 10.6818 7.5V3.5C10.6818 2.94772 10.3155 2.5 9.86364 2.5ZM4.13636 1.5C3.23263 1.5 2.5 2.39543 2.5 3.5V7.5C2.5 8.60457 3.23263 9.5 4.13636 9.5H5.5V16.1667V16.5H4.13636C3.23263 16.5 2.5 17.3954 2.5 18.5V22.5C2.5 23.6046 3.23263 24.5 4.13636 24.5H9.86364C10.7674 24.5 11.5 23.6046 11.5 22.5V18.5C11.5 17.3954 10.7674 16.5 9.86364 16.5H6.5V16.1667C6.5 14.9394 7.61929 13.9444 9 13.9444H16C17.933 13.9444 19.5 12.5516 19.5 10.8333V9.5H21.8636C22.7674 9.5 23.5 8.60457 23.5 7.5V3.5C23.5 2.39543 22.7674 1.5 21.8636 1.5H16.1364C15.2326 1.5 14.5 2.39543 14.5 3.5V7.5C14.5 8.60457 15.2326 9.5 16.1364 9.5H18.5V10.8333C18.5 12.0606 17.3807 13.0556 16 13.0556H9C8.02066 13.0556 7.13526 13.4131 6.5 13.9893V9.5H9.86364C10.7674 9.5 11.5 8.60457 11.5 7.5V3.5C11.5 2.39543 10.7674 1.5 9.86364 1.5H4.13636ZM9.86364 17.5H6.5H5.5H4.13636C3.68449 17.5 3.31818 17.9477 3.31818 18.5V22.5C3.31818 23.0523 3.68449 23.5 4.13636 23.5H9.86364C10.3155 23.5 10.6818 23.0523 10.6818 22.5V18.5C10.6818 17.9477 10.3155 17.5 9.86364 17.5ZM16.1364 2.5H21.8636C22.3155 2.5 22.6818 2.94772 22.6818 3.5V7.5C22.6818 8.05228 22.3155 8.5 21.8636 8.5H16.1364C15.6845 8.5 15.3182 8.05228 15.3182 7.5V3.5C15.3182 2.94772 15.6845 2.5 16.1364 2.5Z",fill:"url(#paint0_linear_2738_141228)"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_2738_141228",x1:"2.5",y1:"13",x2:"23.5",y2:"13",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},u=t(29664);var f=function(e){var n=e.size;return(0,a.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.65256 15.8011L4.68226 20.7714C4.14193 21.3117 3.26588 21.3117 2.72556 20.7714C2.18523 20.231 2.18523 19.355 2.72556 18.8147L7.60553 13.9347C9.03 12.5102 9.91996 10.6383 10.1255 8.6343L10.3663 6.28587C10.4455 5.51385 10.7884 4.7927 11.3371 4.24393L11.9728 3.60825C13.233 2.34803 15.1222 2.10014 16.6299 2.86457L13.621 5.87349C12.7214 6.77304 12.7214 8.23149 13.621 9.13104L13.9934 9.50349C14.893 10.403 16.3514 10.403 17.251 9.50349L20.2599 6.49457C21.0243 8.00224 20.7764 9.89143 19.5162 11.1516L18.786 11.8818C18.2751 12.3928 17.6175 12.7318 16.9049 12.8515L14.634 13.2332C12.7469 13.5504 11.0056 14.448 9.65256 15.8011ZM11.0889 2.72437C12.8414 0.971949 15.5214 0.712489 17.5485 1.94599C17.9008 2.16036 18.2333 2.41982 18.5379 2.72436L14.5049 6.75738C14.0935 7.16877 14.0935 7.83577 14.5049 8.24716L14.8773 8.61961C15.2887 9.031 15.9557 9.031 16.3671 8.61961L20.4001 4.5866C20.7046 4.89114 20.9641 5.22371 21.1785 5.57599C22.412 7.60309 22.1525 10.2831 20.4001 12.0355L19.6699 12.7657C18.9751 13.4605 18.081 13.9214 17.1121 14.0842L14.8412 14.4659C13.2104 14.74 11.7057 15.5157 10.5364 16.6849L5.56614 21.6552C4.53766 22.6837 2.87016 22.6837 1.84167 21.6552C0.81319 20.6268 0.813193 18.9593 1.84168 17.9308L6.72165 13.0508C7.94285 11.8296 8.70581 10.2248 8.88201 8.50678L9.12286 6.15835C9.23136 5.10035 9.70121 4.11209 10.4533 3.36005L11.0889 2.72437ZM4.88014 19.3535C5.0754 19.1582 5.0754 18.8417 4.88014 18.6464C4.68488 18.4511 4.3683 18.4511 4.17303 18.6464L3.64631 19.1731C3.45105 19.3684 3.45105 19.685 3.64631 19.8802C3.84158 20.0755 4.15816 20.0755 4.35342 19.8802L4.88014 19.3535Z",fill:"url(#paint0_linear_7839_33197)"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_7839_33197",x1:"1.07031",y1:"11.8041",x2:"21.9428",y2:"11.8041",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})};var p=function(e){var n=e.size;return(0,a.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 18V6c0-1.38071 1.11929-2.5 2.5-2.5h12c1.3807 0 2.5 1.11929 2.5 2.5v12c0 1.3807-1.1193 2.5-2.5 2.5H6c-1.38071 0-2.5-1.1193-2.5-2.5zM2 18V6c0-2.20914 1.79086-4 4-4h12c2.2091 0 4 1.79086 4 4v12c0 2.2091-1.7909 4-4 4H6c-2.20914 0-4-1.7909-4-4zm9.0935-8.41432c.3235-.25876.3759-.73073.1172-1.05417-.2588-.32345-.7308-.37589-1.0542-.11713L7.03148 10.9144c-.17791.1423-.28148.3578-.28148.5856 0 .2279.10357.4433.28148.5857l3.12502 2.5c.3234.2587.7954.2063 1.0542-.1172.2587-.3234.2063-.7954-.1172-1.0541L8.70058 11.5l2.39292-1.91432zM14.5 13.25c-.4142 0-.75.3358-.75.75s.3358.75.75.75H17c.4142 0 .75-.3358.75-.75s-.3358-.75-.75-.75h-2.5z",fill:"url(#paint0_linear_1244_32583)"}),(0,a.jsxs)("defs",{children:[(0,a.jsx)("clipPath",{id:"clip0_5247_222548",children:(0,a.jsx)("rect",{width:"24",height:"24",fill:"white"})}),(0,a.jsxs)("linearGradient",{id:"paint0_linear_1244_32583",x1:"1.07031",y1:"11.8041",x2:"21.9428",y2:"11.8041",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})]})]})},h=t(86673),g=t(19711),x=t(46261),v=t(10503),m=t(72454),b=t(99994),y=t(49125),C=3*y.iI;var j=function(e){var n=e.aligned,t=e.navigationItems,j=(0,i.useRouter)().pathname,w=(0,r.useMemo)((function(){var e=[{Icon:v.rV,IconSelected:s,id:"pipelines",label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}},{Icon:v.Pf,IconSelected:u.Z,id:"triggers",label:function(){return"Triggers"},linkProps:{href:"/triggers"}},{Icon:v.pd,IconSelected:o.Z,id:"pipeline-runs",label:function(){return"Pipelines runs"},linkProps:{href:"/pipeline-runs"}},{Icon:v.oI,IconSelected:p,id:"terminal",label:function(){return"Terminal"},linkProps:{href:"/terminal"}},{Icon:v.Zr,IconSelected:f,id:"settings",label:function(){return"Settings"},linkProps:{href:"/settings"}}];return(t||e).map((function(e,t){var r=e.Icon,i=e.IconSelected,o=e.id,d=e.isSelected,s=e.label,u=e.linkProps,f=e.onClick,p=d?d(j,e):!!j.match(new RegExp("^/".concat(o,"[/]*"))),v=p&&i?i:r;return(0,a.jsx)(h.Z,{mt:t>=1?y.cd:0,children:(0,a.jsxs)(x.Z,{appearBefore:"right"===n,height:5*y.iI,label:s(),size:null,widthFitContent:!0,children:[p&&i&&(0,a.jsx)(l.Z,{backgroundGradient:b.yr,backgroundPanel:!0,basic:!0,borderWidth:2,linkProps:u,onClick:f,paddingUnits:1,children:(0,a.jsx)("div",{style:{height:C,width:C},children:(0,a.jsx)(v,{muted:!0,size:C})})}),(!p||p&&!i)&&(0,a.jsx)(c.ZP,{block:!0,linkProps:u,noHoverUnderline:!0,noPadding:!0,onClick:f,primary:p,sameColorAsText:!0,uuid:"VerticalNavigation/".concat(o),children:(0,a.jsx)(m.E7,{primary:!v,children:v?(0,a.jsx)(v,{muted:!p,size:C}):(0,a.jsx)(g.ZP,{children:"Edit"})})})]})},"button-".concat(o))}))}),[n,t,j]);return(0,a.jsx)(d.Z,{children:w})}},72454:function(e,n,t){t.d(n,{E7:function(){return h},HS:function(){return p},Nk:function(){return u},k1:function(){return s},lm:function(){return f}});var r=t(9518),i=t(23831),o=t(73942),d=t(3055),l=t(49125),c=t(37391),a=t(90880),s=l.cd*l.iI+5*l.iI+l.cd*l.iI+1,u=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-ecogjt-0"})(["display:flex;flex-direction:row;height:calc(100vh - ","px);position:fixed;top:","px;width:100%;",""],d.Mz,d.Mz,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).page,";\n ")})),f=r.default.div.withConfig({displayName:"indexstyle__VerticalNavigationStyle",componentId:"sc-ecogjt-1"})(["padding:","px;"," "," ",""],l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n ")}),(function(e){return e.borderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}),(function(e){return!e.borderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")})),p=r.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-ecogjt-2"})(["width:100%;padding:","px;position:sticky;top:0;z-index:3;",""],l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).page,";\n border-bottom: 1px solid ").concat((e.theme.borders||i.Z.borders).medium,";\n ")})),h=(r.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-ecogjt-3"})([""," overflow:auto;",""],c.w5,(function(e){return"\n height: calc(100vh - ".concat(d.Mz+(e.heightOffset||0),"px);\n ")})),r.default.div.withConfig({displayName:"indexstyle__NavigationItemStyle",componentId:"sc-ecogjt-4"})(["display:flex;align-items:center;justify-content:center;padding:","px;border-radius:","px;",""],l.iI,o.n_,(function(e){return e.primary&&"\n ".concat((0,a.eR)(),"\n background: ").concat((e.theme||i.Z).chart.backgroundPrimary,";\n border: 1px solid ").concat((e.theme||i.Z).feature.active,";\n\n &:hover {\n background-color: ").concat((e.theme||i.Z).interactive.linkSecondary,";\n }\n ")})))},49894:function(e,n,t){t.d(n,{Z:function(){return v}});var r=t(82684),i=t(60328),o=t(10919),d=t(86673),l=t(19711),c=t(10503),a=t(9518),s=t(23831),u=t(73942),f=t(49125),p=t(37391),h=a.default.div.withConfig({displayName:"indexstyle__ErrorPopupStyle",componentId:"sc-aqfw6f-0"})(["top:50%;left:50%;transform:translate(-50%,-50%);max-height:95vh;max-width:95vw;overflow:auto;padding:","px;position:fixed;z-index:9999;border-radius:","px;"," ",""],f.iI*f.cd,u.n_,(function(e){return"\n background-color: ".concat((e.theme||s.Z).background.page,";\n border: 1px solid ").concat((e.theme||s.Z).accent.negative,";\n box-shadow: ").concat((e.theme||s.Z).shadow.window,";\n ")}),p.w5),g=a.default.div.withConfig({displayName:"indexstyle__CloseButtonContainerStyle",componentId:"sc-aqfw6f-1"})(["display:flex;justify-content:flex-end;position:sticky;top:0;"]),x=t(28598);var v=function(e){var n,t,a=e.displayMessage,s=e.errors,u=e.links,f=e.onClose,p=e.response,v=(0,r.useState)(!1),m=v[0],b=v[1],y=(0,r.useState)(!1),C=y[0],j=y[1],w=(s||{}).messages,Z=(null===p||void 0===p?void 0:p.error)||{},k=Z.errors,_=Z.exception,I=Z.message,H=a,O=w;return I&&(O=I.split("\n")),_||H||null===(n=O)||void 0===n||!n[0]||(H=O[0],O=null),(0,x.jsxs)(h,{children:[(0,x.jsx)(g,{children:(0,x.jsx)(i.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:f,title:"Close errors",children:(0,x.jsx)(c.x8,{})})}),(0,x.jsx)(l.ZP,{bold:!0,large:!0,children:"Error"}),H&&(0,x.jsx)(d.Z,{mt:1,children:(0,x.jsx)(l.ZP,{default:!0,children:H})}),_&&(0,x.jsx)(d.Z,{mt:1,children:(0,x.jsx)(l.ZP,{default:!0,disableWordBreak:!0,monospace:!0,children:_})}),(null===(t=O)||void 0===t?void 0:t.length)>0&&(0,x.jsxs)(d.Z,{mt:2,children:[(0,x.jsxs)(l.ZP,{bold:!0,large:!0,children:["Traceback (",(0,x.jsxs)(o.Z,{onClick:function(){return j((function(e){return!e}))},preventDefault:!0,warning:!0,children:[C?"hide":"show"," traceback"]}),")"]}),C&&(0,x.jsx)(d.Z,{mt:1,children:O.map((function(e){return(0,x.jsx)(l.ZP,{dangerouslySetInnerHTML:{__html:e.replaceAll(" "," ")},default:!0,disableWordBreak:!0,monospace:!0},e)}))})]}),k&&(0,x.jsxs)(d.Z,{mt:2,children:[(0,x.jsxs)(l.ZP,{bold:!0,large:!0,children:["Stack trace (",(0,x.jsxs)(o.Z,{onClick:function(){return b((function(e){return!e}))},preventDefault:!0,warning:!0,children:[m?"hide":"show"," stack trace"]}),")"]}),m&&(0,x.jsx)(d.Z,{mt:1,children:k.map((function(e){return(0,x.jsx)(l.ZP,{dangerouslySetInnerHTML:{__html:e.replaceAll(" "," ")},default:!0,disableWordBreak:!0,monospace:!0},e)}))})]}),null===u||void 0===u?void 0:u.map((function(e,n){var t=e.label,r=e.onClick;return(0,x.jsx)(d.Z,{mt:2,children:(0,x.jsx)(o.Z,{large:!0,onClick:r,underline:!0,warning:!0,children:t})},t)}))]})}},82386:function(e,n,t){t.d(n,{E$:function(){return I},MK:function(){return m},MP:function(){return Z},Md:function(){return s},OM:function(){return x},Ru:function(){return k},VW:function(){return p},W7:function(){return j},Wi:function(){return g},YJ:function(){return w},Zj:function(){return S},Zt:function(){return a},aH:function(){return P},dN:function(){return u},ff:function(){return _},l8:function(){return h},rS:function(){return O},uX:function(){return v},v7:function(){return H},ve:function(){return f}});var r=t(9518),i=t(23831),o=t(73942),d=t(3055),l=t(49125),c=t(37391),a=64*l.iI,s=3*l.cd*l.iI,u=s,f=35*l.iI,p=.5*l.iI,h=13*l.iI,g=3*l.cd*l.iI,x=6*l.iI,v=2*l.cd*3*l.iI,m=(r.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-1lxpneo-0"})(["position:fixed;z-index:2;"," "," ",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.monotone||i.Z.monotone).grey200,";\n ")}),(function(e){return!e.beforeVisible&&"\n width: 100%;\n "}),(function(e){return e.beforeVisible&&"\n left: ".concat(f,"px;\n width: calc(100% - ").concat(f,"px);\n ")})),r.default.div.withConfig({displayName:"indexstyle__NewHeaderStyle",componentId:"sc-1lxpneo-1"})(["height:","px;position:fixed;top:0;width:100%;z-index:4;"],d.Mz)),b=(r.default.div.withConfig({displayName:"indexstyle__TabStyle",componentId:"sc-1lxpneo-2"})(["border-top-left-radius:","px;border-top-right-radius:","px;padding:","px ","px;position:relative;top:1px;"," "," ",""],o.n_,o.n_,1*l.iI,2*l.iI,(function(e){return"\n border-left: 1px solid ".concat((e.theme.monotone||i.Z.monotone).grey200,";\n border-right: 1px solid ").concat((e.theme.monotone||i.Z.monotone).grey200,";\n border-top: 1px solid ").concat((e.theme.monotone||i.Z.monotone).grey200,";\n ")}),(function(e){return!e.first&&"\n margin-left: ".concat(1*l.iI,"px;\n ")}),(function(e){return e.selected&&"\n border-bottom: 1px solid ".concat((e.theme.monotone||i.Z.monotone).white,";\n ")})),(0,r.css)(["position:fixed;z-index:2;",""],(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n height: calc(100% - ").concat("undefined"===typeof e.heightOffset?v:e.heightOffset,"px);\n top: ").concat("undefined"===typeof e.heightOffset?v:e.heightOffset,"px;\n ")}))),y=(0,r.css)([""," height:100%;overflow:auto;position:relative;z-index:2;"],c.w5),C=(0,r.css)(["height:calc(100% + ","px);position:absolute;top:-","px;width:","px;z-index:6;&:hover{","}"," ",""],g,g,p,(function(e){return!e.disabled&&"\n border-color: ".concat((e.theme.text||i.Z.text).fileBrowser," !important;\n ")}),(function(e){return!e.disabled&&"\n cursor: col-resize;\n "}),(function(e){return e.active&&!e.disabled&&"\n border-color: ".concat((e.theme.text||i.Z.text).fileBrowser," !important;\n ")})),j=r.default.div.withConfig({displayName:"indexstyle__AsideHeaderStyle",componentId:"sc-1lxpneo-3"})(["border-bottom:1px solid transparent;height:","px;position:fixed;top:","px;z-index:4;"," "," ",""],g,g,(0,c.y$)(),(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n ")}),(function(e){return!e.visible&&"\n border-left: 1px solid transparent;\n border-right: 1px solid transparent;\n border-color: ".concat((e.theme.borders||i.Z.borders).medium," !important;\n ")})),w=r.default.div.withConfig({displayName:"indexstyle__AsideSubheaderStyle",componentId:"sc-1lxpneo-4"})(["border-bottom:1px solid transparent;height:","px;overflow-x:auto;"," "," ",""],g,(0,c.y$)(),(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).table,";\n ")}),(function(e){return!e.visible&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).medium," !important;\n ")})),Z=r.default.aside.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-1lxpneo-5"})([""," left:0;"],b),k=r.default.div.withConfig({displayName:"indexstyle__BeforeInnerStyle",componentId:"sc-1lxpneo-6"})([""," overflow:hidden;&:hover{overflow:auto;}"],y),_=r.default.aside.withConfig({displayName:"indexstyle__AfterStyle",componentId:"sc-1lxpneo-7"})([""," right:0;"],b),I=r.default.div.withConfig({displayName:"indexstyle__AfterInnerStyle",componentId:"sc-1lxpneo-8"})(["",""],y),H=r.default.div.withConfig({displayName:"indexstyle__DraggableStyle",componentId:"sc-1lxpneo-9"})([""," "," ",""],C,(function(e){return"undefined"!==typeof e.left&&"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n left: ").concat(e.left,"px;\n ")}),(function(e){return"undefined"!==typeof e.right&&"\n border-right: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n right: ").concat(e.right,"px;\n ")})),O=r.default.div.withConfig({displayName:"indexstyle__MainWrapper",componentId:"sc-1lxpneo-10"})(["height:100%;position:fixed;z-index:1;",""],(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeArea,";\n ")})),P=r.default.div.withConfig({displayName:"indexstyle__MainContentStyle",componentId:"sc-1lxpneo-11"})(["position:fixed;z-index:2;",""],(function(e){return"\n height: calc(100% - ".concat(e.headerOffset||0,"px);\n top: ").concat(e.headerOffset||0,"px;\n ")})),S=r.default.div.withConfig({displayName:"indexstyle__MainContentInnerStyle",componentId:"sc-1lxpneo-12"})([""," height:100%;overflow:auto;"],c.w5)},32063:function(e,n,t){var r=t(82684),i=t(1887),o=t.n(i),d=t(60328),l=t(57639),c=t(93461),a=t(67971),s=t(86673),u=t(46261),f=t(82386),p=t(10503),h=t(91427),g=t(49125),x=t(24141),v=t(28598);n.Z=function(e){var n=e.after,t=e.afterHeader,i=e.afterHeightOffset,m=e.afterHidden,b=e.afterMousedownActive,y=e.afterSubheader,C=e.afterWidth,j=void 0===C?0:C,w=e.before,Z=e.beforeHeader,k=e.beforeHeightOffset,_=e.beforeHidden,I=e.beforeMousedownActive,H=e.beforeWidth,O=void 0===H?0:H,P=e.children,S=e.header,V=e.headerOffset,E=void 0===V?0:V,M=e.hideAfterCompletely,B=e.leftOffset,L=void 0===B?0:B,z=e.mainContainerHeader,N=e.mainContainerRef,R=e.setAfterHidden,A=e.setAfterMousedownActive,D=e.setAfterWidth,W=e.setBeforeHidden,F=e.setBeforeMousedownActive,U=e.setBeforeWidth,T=(e.uuid,(0,x.i)().width),G=(0,r.useRef)(null),X=(0,r.useRef)(null),$=(0,r.useRef)(null),q=(0,r.useRef)(null),Y=(0,r.useCallback)((function(){var e=!m;null===R||void 0===R||R(e),(0,h.t8)(h.zg,e)}),[m,R]),J=(0,r.useCallback)((function(){var e=!_;W(e),(0,h.t8)(h.Uu,e)}),[_,W]);(0,r.useEffect)((function(){var e,n,t,r,i=function(e){var n,t;((null===$||void 0===$||null===(n=$.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).x;if(T){var r=e.x;r+f.l8>T-j&&(r=T-j-f.l8),r-=2*L,U(Math.max(r,f.dN))}},o=function(e){var n,t;e.offsetX>=e.target.offsetWidth-f.VW&&e.offsetX<=e.target.offsetWidth+f.VW&&(null===F||void 0===F||F(!0),e.preventDefault(),null===(n=document)||void 0===n||null===(t=n.addEventListener)||void 0===t||t.call(n,"mousemove",i,!1))},d=function(){var e,n;null===F||void 0===F||F(!1),null===(e=document)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousemove",i,!1)};return null===q||void 0===q||null===(e=q.current)||void 0===e||null===(n=e.addEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(r=t.addEventListener)||void 0===r||r.call(t,"mouseup",d,!1),function(){var e,n,t,r;null===q||void 0===q||null===(e=q.current)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(r=t.removeEventListener)||void 0===r||r.call(t,"mouseup",d,!1),d()}}),[j,_,L,$,q,F,U,T]),(0,r.useEffect)((function(){var e,n,t,r,i=function(e){var n,t;((null===G||void 0===G||null===(n=G.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).x;if(T){var r=T-e.x;r+f.l8>T-O&&(r=T-O-f.l8),D(Math.max(r,f.Md))}},o=function(e){var n,t;e.offsetX>=-1*f.VW&&e.offsetX<=f.VW&&(null===A||void 0===A||A(!0),e.preventDefault(),null===(n=document)||void 0===n||null===(t=n.addEventListener)||void 0===t||t.call(n,"mousemove",i,!1))},d=function(){var e,n;null===A||void 0===A||A(!1),null===(e=document)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousemove",i,!1)};return null===X||void 0===X||null===(e=X.current)||void 0===e||null===(n=e.addEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(r=t.addEventListener)||void 0===r||r.call(t,"mouseup",d,!1),function(){var e,n,t,r;null===X||void 0===X||null===(e=X.current)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(r=t.removeEventListener)||void 0===r||r.call(t,"mouseup",d,!1),d()}}),[m,O,G,X,A,D,T]);var K=M&&m,Q=K?0:m?4*g.iI:j,ee=_?4*g.iI:O,ne="calc(100% - ".concat(ee+Q+L,"px)");return(0,v.jsxs)(l.Z,{children:[(b&&!m||I&&!_)&&(0,v.jsx)(o(),{children:(0,v.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n body {\n cursor: col-resize;\n }\n "}})}),S&&(0,v.jsx)(f.MK,{children:S}),w&&(0,v.jsxs)(f.MP,{heightOffset:k,style:{left:L,width:ee},children:[(0,v.jsx)(f.v7,{active:I,disabled:_,ref:q,right:0}),W&&(0,v.jsx)(f.W7,{style:{width:ee},visible:_,children:(0,v.jsxs)(a.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,justifyContent:"space-between",children:[(0,v.jsxs)(c.Z,{children:[(0,v.jsx)(s.Z,{pl:_?1:0}),!_&&Z]}),(0,v.jsxs)(c.Z,{children:[(0,v.jsx)(u.Z,{block:!0,label:_?"Show sidebar":"Hide sidebar",size:null,widthFitContent:!0,children:(0,v.jsxs)(d.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return J()},children:[_&&(0,v.jsx)(p._Q,{neutral:!0,size:2*g.iI}),!_&&(0,v.jsx)(p.s$,{neutral:!0,size:2*g.iI})]})},_?"before-is-hidden":"before-is-visible"),(0,v.jsx)(s.Z,{pr:_?1:2})]})]})}),(0,v.jsx)(f.Ru,{noScrollbarTrackBackground:!0,ref:$,children:!_&&w})]}),(0,v.jsxs)(f.rS,{style:{left:ee+L,width:ne},children:[z,(0,v.jsx)(f.aH,{headerOffset:(z?f.uX:f.Wi)+E,style:{width:ne},children:(0,v.jsx)(f.Zj,{noScrollbarTrackBackground:!0,ref:N,children:P})})]}),n&&!K&&(0,v.jsxs)(f.ff,{heightOffset:i,style:{width:Q},children:[(0,v.jsx)(f.v7,{active:b,disabled:m,left:0,ref:X}),R&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(f.W7,{style:{width:Q},visible:m,children:(0,v.jsxs)(a.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,children:[(0,v.jsxs)(c.Z,{children:[(0,v.jsx)(s.Z,{pl:m?1:2}),(0,v.jsxs)(d.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return Y()},children:[m&&(0,v.jsx)(p.s$,{neutral:!0,size:2*g.iI}),!m&&(0,v.jsx)(p._Q,{neutral:!0,size:2*g.iI})]})]}),!m&&t]})}),!m&&y&&(0,v.jsx)(f.YJ,{style:{width:Q},visible:m,children:y})]}),(0,v.jsx)(f.E$,{noScrollbarTrackBackground:!0,ref:G,children:!m&&n})]})]})}},41788:function(e,n,t){t.d(n,{Z:function(){return I}});var r=t(77837),i=t(26304),o=t(62243),d=t(29385),l=t(80022),c=t(99177),a=t(93189),s=t(15544),u=t(82394),f=t(38860),p=t.n(f),h=t(82684),g=t(56663),x=t.n(g),v=t(35490),m=t(55361),b=t(30332),y=t(9736),C=t(59e3),j=t(28598),w=["auth"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function k(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function _(e){var n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=(0,s.Z)(e);if(n){var i=(0,s.Z)(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return(0,a.Z)(this,t)}}function I(e){return function(n){(0,c.Z)(a,n);var t=_(a);function a(){var e;(0,o.Z)(this,a);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=t.call.apply(t,[this].concat(r)),(0,u.Z)((0,l.Z)(e),"state",{auth:new v.Z(e.props.token)}),e}return(0,d.Z)(a,[{key:"componentDidMount",value:function(){this.setState({auth:new v.Z(this.props.token)})}},{key:"render",value:function(){var n=this.props,t=(n.auth,(0,i.Z)(n,w));return(0,j.jsx)(e,k({auth:this.state.auth},t))}}],[{key:"getInitialProps",value:function(){var n=(0,r.Z)(p().mark((function n(t){var r,i,o,d,l,c,a,s,u;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=x()(t),i=(0,y.ex)(t),o=i.id,d=r[m.Mv],l=r[b.qt],c=new v.Z(d),a=k(k({},t),{},{auth:c,currentGroupId:o,theme:l}),(0,y.YB)(t)&&c.isExpired&&(console.log("OAuth token has expired."),s=k(k({},t.query),{},{redirect_url:t.asPath}),(0,C.nL)("/sign-in?".concat((0,C.uM)(s)),t.res)),!e.getInitialProps){n.next=12;break}return n.next=10,e.getInitialProps(a);case 10:return u=n.sent,n.abrupt("return",k(k({},u),{},{auth:c,currentGroupId:o,theme:l}));case 12:return n.abrupt("return",a);case 13:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}]),a}(h.Component)}},882:function(e,n,t){var r=t(82394),i=t(26304),o=t(9518),d=t(60328),l=t(23831),c=t(73942),a=t(99994),s=t(49125),u=t(28598),f=["backgroundGradient","backgroundPanel","borderWidth","children","compact","paddingUnits","paddingUnitsHorizontal","paddingUnitsVertical"];function p(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 h(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=o.default.div.withConfig({displayName:"GradientButton__ButtonContentStyle",componentId:"sc-1gzx4r1-0"})(["border-radius:","px;height:fit-content;"," ",""],c.n_,(function(e){return!e.backgroundPanel&&"\n background-color: ".concat((e.theme.background||l.Z.background).page,";\n ")}),(function(e){return e.backgroundPanel&&"\n background-color: ".concat((e.theme.background||l.Z.background).panel,";\n ")}));n.Z=function(e){var n=e.backgroundGradient,t=void 0===n?a.TD:n,r=e.backgroundPanel,o=e.borderWidth,l=void 0===o?1:o,c=e.children,p=e.compact,x=e.paddingUnits,v=e.paddingUnitsHorizontal,m=void 0===v?1.5:v,b=e.paddingUnitsVertical,y=void 0===b?1.25:b,C=(0,i.Z)(e,f),j=m,w=y;return x&&(j=x,w=x),p&&(j*=.75,w*=.75),(0,u.jsx)(d.Z,h(h({},C),{},{backgroundGradient:t,noPadding:!0,padding:"".concat(l,"px"),pointerEventsEnabled:!0,children:(0,u.jsx)(g,{backgroundPanel:r,children:(0,u.jsx)("div",{style:{paddingBottom:w*s.iI-l,paddingLeft:j*s.iI-l,paddingRight:j*s.iI-l,paddingTop:w*s.iI-l},children:c})})}))}},61519:function(e,n,t){var r=t(28598);n.Z=function(e){var n=e.size;return(0,r.jsxs)("svg",{width:n,height:n,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3H9V9H3V3ZM10 2V9H17V16H24V24H17H16H10H9H2V17V16V10V9V2H10ZM16 23V17H10V23H16ZM17 23H23V17H17V23ZM16 16V10H10V16H16ZM9 10V16H3V10H9ZM9 17V23H3V17H9Z",fill:"url(#paint0_linear_2738_140355)"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"paint0_linear_2738_140355",x1:"2",y1:"13",x2:"24",y2:"13",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}},29664:function(e,n,t){var r=t(28598);n.Z=function(e){var n=e.size;return(0,r.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C6.75329 21.5 2.5 17.2467 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5C17.2467 2.5 21.5 6.75329 21.5 12ZM23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM12.75 7C12.75 6.58579 12.4142 6.25 12 6.25C11.5858 6.25 11.25 6.58579 11.25 7V13C11.25 13.4142 11.5858 13.75 12 13.75H16C16.4142 13.75 16.75 13.4142 16.75 13C16.75 12.5858 16.4142 12.25 16 12.25H12.75V7Z",fill:"url(#paint0_linear_2798_59379)"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"paint0_linear_2798_59379",x1:"1",y1:"12",x2:"23",y2:"12",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}},99994:function(e,n,t){t.d(n,{eW:function(){return a},TD:function(){return l},yr:function(){return c}});var r=t(73899),i="#FF144D",o="#DEBB92",d="#2A60FE",l=("linear-gradient(90deg, ".concat(o,", ").concat("#CBFE00",")"),"linear-gradient(90deg, ".concat(i,", #C86DD7)")),c=("linear-gradient(90deg, ".concat("#95ECE2",", ").concat(d,")"),"linear-gradient(90deg, ".concat("#9B6CA7",", ").concat(o,")"),"linear-gradient(90deg, ".concat("#C72400",", ").concat(o,")"),"linear-gradient(100.38deg, ".concat(i," 41.11%, #FF9559 86.99%)"),"linear-gradient(100.38deg, ".concat("#6B50D7"," 41.11%, #677FFF 86.99%)"),"linear-gradient(100.38deg, ".concat(d," 41.11%, #B880FF 86.99%)"),"linear-gradient(90deg, ".concat(r.t4," 20.13%, #2AB2FE)")),a="linear-gradient(90deg, ".concat(r.Ck," 0%, ").concat(r.t4," 53.13%, ").concat(r.X_," 100%)")},66166:function(e,n,t){var r=t(82684);n.Z=function(e){var n=(0,r.useRef)();return(0,r.useEffect)((function(){n.current=e}),[e]),n.current}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9832],{52136:function(t,n,e){e.d(n,{Z:function(){return p}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),l=e(5237),s=e(29989),a=e(81352),h=e(46119),f=e(88543),d=e(12765),y=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function _(){return _=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},_.apply(this,arguments)}function p(t){var n=t.top,e=void 0===n?0:n,i=t.left,r=void 0===i?0:i,u=t.scale,p=t.height,v=t.stroke,x=void 0===v?"#eaf0f6":v,m=t.strokeWidth,Z=void 0===m?1:m,g=t.strokeDasharray,b=t.className,O=t.numTicks,E=void 0===O?10:O,k=t.lineStyle,w=t.offset,T=t.tickValues,N=t.children,j=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,y),M=null!=T?T:(0,h.Z)(u,E),P=(null!=w?w:0)+(0,d.Z)(u)/2,R=M.map((function(t,n){var e,i=(null!=(e=(0,f.Z)(u(t)))?e:0)+P;return{index:n,from:new a.Z({x:i,y:0}),to:new a.Z({x:i,y:p})}}));return o.createElement(s.Z,{className:c()("visx-columns",b),top:e,left:r},N?N({lines:R}):R.map((function(t){var n=t.from,e=t.to,i=t.index;return o.createElement(l.Z,_({key:"column-line-"+i,from:n,to:e,stroke:x,strokeWidth:Z,strokeDasharray:g,style:k},j))})))}p.propTypes={tickValues:r().array,height:r().number.isRequired}},85587:function(t,n,e){e.d(n,{Z:function(){return s}});var i=e(82684),r=e(63588),o=e.n(r),u=e(39309),c=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return l=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},l.apply(this,arguments)}function s(t){var n=t.children,e=t.data,r=void 0===e?[]:e,s=t.x,a=t.y,h=t.fill,f=void 0===h?"transparent":h,d=t.className,y=t.curve,_=t.innerRef,p=t.defined,v=void 0===p?function(){return!0}:p,x=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,c),m=(0,u.jv)({x:s,y:a,defined:v,curve:y});return n?i.createElement(i.Fragment,null,n({path:m})):i.createElement("path",l({ref:_,className:o()("visx-linepath",d),d:m(r)||"",fill:f,strokeLinecap:"round"},x))}},39309:function(t,n,e){e.d(n,{SO:function(){return u},jv:function(){return c}});var i=e(48167),r=e(92201),o=e(49894);function u(t){var n=void 0===t?{}:t,e=n.x,r=n.x0,u=n.x1,c=n.y,l=n.y0,s=n.y1,a=n.defined,h=n.curve,f=(0,i.Z)();return e&&(0,o.Z)(f.x,e),r&&(0,o.Z)(f.x0,r),u&&(0,o.Z)(f.x1,u),c&&(0,o.Z)(f.y,c),l&&(0,o.Z)(f.y0,l),s&&(0,o.Z)(f.y1,s),a&&f.defined(a),h&&f.curve(h),f}function c(t){var n=void 0===t?{}:t,e=n.x,i=n.y,u=n.defined,c=n.curve,l=(0,r.Z)();return e&&(0,o.Z)(l.x,e),i&&(0,o.Z)(l.y,i),u&&l.defined(u),c&&l.curve(c),l}},98889:function(t,n,e){e.d(n,{Z:function(){return p}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),l=e(39309),s=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function a(){return a=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},a.apply(this,arguments)}function h(t){var n=t.children,e=t.x,i=t.x0,r=t.x1,u=t.y,h=t.y0,f=t.y1,d=t.data,y=void 0===d?[]:d,_=t.defined,p=void 0===_?function(){return!0}:_,v=t.className,x=t.curve,m=t.innerRef,Z=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,s),g=(0,l.SO)({x:e,x0:i,x1:r,y:u,y0:h,y1:f,defined:p,curve:x});return n?o.createElement(o.Fragment,null,n({path:g})):o.createElement("path",a({ref:m,className:c()("visx-area",v),d:g(y)||""},Z))}var f=["id","children"];function d(){return d=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},d.apply(this,arguments)}function y(t){var n=t.id,e=t.children,i=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,f);return o.createElement("defs",null,o.createElement("clipPath",d({id:n},i),e))}function _(){return _=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},_.apply(this,arguments)}function p(t){var n=t.className,e=t.curve,i=t.clipAboveTo,r=t.clipBelowTo,u=t.data,l=t.defined,s=t.x,a=t.y0,f=t.y1,d=t.aboveAreaProps,p=t.belowAreaProps,v=t.id,x=void 0===v?"":v;return o.createElement("g",{className:c()("visx-threshold",n)},o.createElement(h,{curve:e,data:u,x:s,y1:f,defined:l},(function(t){var n=t.path,e=null,c=null;return e=n.y0(r)(u),c=n.y0(i)(u),o.createElement("g",null,o.createElement(y,{id:"threshold-clip-below-"+x},o.createElement("path",{d:e||""})),o.createElement(y,{id:"threshold-clip-above-"+x},o.createElement("path",{d:c||""})))})),o.createElement(h,_({curve:e,data:u,defined:l,x:s,y0:a,y1:f,strokeWidth:0,clipPath:"url(#threshold-clip-below-"+x+")"},p)),o.createElement(h,_({curve:e,data:u,defined:l,x:s,y0:a,y1:f,strokeWidth:0,clipPath:"url(#threshold-clip-above-"+x+")"},d)))}y.propTypes={id:r().string.isRequired,children:r().node},p.propTypes={className:r().string,clipAboveTo:r().oneOfType([r().func,r().number]).isRequired,clipBelowTo:r().oneOfType([r().func,r().number]).isRequired,id:r().string.isRequired,data:r().array.isRequired,defined:r().func,x:r().oneOfType([r().func,r().number]).isRequired,y0:r().oneOfType([r().func,r().number]).isRequired,y1:r().oneOfType([r().func,r().number]).isRequired}},61655:function(t,n,e){e.d(n,{Z:function(){return u}});var i=e(82684),r=e(29179);function o(){return o=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},o.apply(this,arguments)}function u(t,n,e){void 0===n&&(n={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===e&&(e=function(t,n){return i.createElement("div",n,t)});return function(u){var c=(0,r.Z)();return e(i.createElement(t,o({},c,u)),n)}}},35681:function(t,n){var e=Math.PI,i=2*e,r=1e-6,o=i-r;function u(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function c(){return new u}u.prototype=c.prototype={constructor:u,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,i){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(t,n,e,i,r,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +i+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(t,n,i,o,u){t=+t,n=+n,i=+i,o=+o,u=+u;var c=this._x1,l=this._y1,s=i-t,a=o-n,h=c-t,f=l-n,d=h*h+f*f;if(u<0)throw new Error("negative radius: "+u);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(d>r)if(Math.abs(f*s-a*h)>r&&u){var y=i-c,_=o-l,p=s*s+a*a,v=y*y+_*_,x=Math.sqrt(p),m=Math.sqrt(d),Z=u*Math.tan((e-Math.acos((p+d-v)/(2*x*m)))/2),g=Z/m,b=Z/x;Math.abs(g-1)>r&&(this._+="L"+(t+g*h)+","+(n+g*f)),this._+="A"+u+","+u+",0,0,"+ +(f*y>h*_)+","+(this._x1=t+b*s)+","+(this._y1=n+b*a)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,u,c,l,s){t=+t,n=+n,s=!!s;var a=(u=+u)*Math.cos(c),h=u*Math.sin(c),f=t+a,d=n+h,y=1^s,_=s?c-l:l-c;if(u<0)throw new Error("negative radius: "+u);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>r||Math.abs(this._y1-d)>r)&&(this._+="L"+f+","+d),u&&(_<0&&(_=_%i+i),_>o?this._+="A"+u+","+u+",0,1,"+y+","+(t-a)+","+(n-h)+"A"+u+","+u+",0,1,"+y+","+(this._x1=f)+","+(this._y1=d):_>r&&(this._+="A"+u+","+u+",0,"+ +(_>=e)+","+y+","+(this._x1=t+u*Math.cos(l))+","+(this._y1=n+u*Math.sin(l))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}},n.Z=c},48167:function(t,n,e){e.d(n,{Z:function(){return l}});var i=e(35681),r=e(90875),o=e(23622),u=e(92201),c=e(98930);function l(){var t=c.x,n=null,e=(0,r.Z)(0),l=c.y,s=(0,r.Z)(!0),a=null,h=o.Z,f=null;function d(r){var o,u,c,d,y,_=r.length,p=!1,v=new Array(_),x=new Array(_);for(null==a&&(f=h(y=(0,i.Z)())),o=0;o<=_;++o){if(!(o<_&&s(d=r[o],o,r))===p)if(p=!p)u=o,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),c=o-1;c>=u;--c)f.point(v[c],x[c]);f.lineEnd(),f.areaEnd()}p&&(v[o]=+t(d,o,r),x[o]=+e(d,o,r),f.point(n?+n(d,o,r):v[o],l?+l(d,o,r):x[o]))}if(y)return f=null,y+""||null}function y(){return(0,u.Z)().defined(s).curve(h).context(a)}return d.x=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.Z)(+e),n=null,d):t},d.x0=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),d):t},d.x1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),d):n},d.y=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),l=null,d):e},d.y0=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),d):e},d.y1=function(t){return arguments.length?(l=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),d):l},d.lineX0=d.lineY0=function(){return y().x(t).y(e)},d.lineY1=function(){return y().x(t).y(l)},d.lineX1=function(){return y().x(n).y(e)},d.defined=function(t){return arguments.length?(s="function"===typeof t?t:(0,r.Z)(!!t),d):s},d.curve=function(t){return arguments.length?(h=t,null!=a&&(f=h(a)),d):h},d.context=function(t){return arguments.length?(null==t?a=f=null:f=h(a=t),d):a},d}},97745:function(t,n,e){function i(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function r(t){this._context=t}function o(t){return new r(t)}e.d(n,{ZP:function(){return o},fE:function(){return r},xm:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}}},23622:function(t,n,e){function i(t){this._context=t}function r(t){return new i(t)}e.d(n,{Z:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}}},92201:function(t,n,e){e.d(n,{Z:function(){return c}});var i=e(35681),r=e(90875),o=e(23622),u=e(98930);function c(){var t=u.x,n=u.y,e=(0,r.Z)(!0),c=null,l=o.Z,s=null;function a(r){var o,u,a,h=r.length,f=!1;for(null==c&&(s=l(a=(0,i.Z)())),o=0;o<=h;++o)!(o<h&&e(u=r[o],o,r))===f&&((f=!f)?s.lineStart():s.lineEnd()),f&&s.point(+t(u,o,r),+n(u,o,r));if(a)return s=null,a+""||null}return a.x=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),a):t},a.y=function(t){return arguments.length?(n="function"===typeof t?t:(0,r.Z)(+t),a):n},a.defined=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(!!t),a):e},a.curve=function(t){return arguments.length?(l=t,null!=c&&(s=l(c)),a):l},a.context=function(t){return arguments.length?(null==t?c=s=null:s=l(c=t),a):c},a}},98930:function(t,n,e){function i(t){return t[0]}function r(t){return t[1]}e.d(n,{x:function(){return i},y:function(){return r}})}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9832],{52136:function(t,n,e){e.d(n,{Z:function(){return p}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),l=e(5237),s=e(29989),a=e(81352),h=e(46119),f=e(88543),d=e(12765),y=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function _(){return _=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},_.apply(this,arguments)}function p(t){var n=t.top,e=void 0===n?0:n,i=t.left,r=void 0===i?0:i,u=t.scale,p=t.height,v=t.stroke,x=void 0===v?"#eaf0f6":v,m=t.strokeWidth,Z=void 0===m?1:m,g=t.strokeDasharray,b=t.className,O=t.numTicks,E=void 0===O?10:O,k=t.lineStyle,w=t.offset,T=t.tickValues,N=t.children,j=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,y),M=null!=T?T:(0,h.Z)(u,E),P=(null!=w?w:0)+(0,d.Z)(u)/2,R=M.map((function(t,n){var e,i=(null!=(e=(0,f.Z)(u(t)))?e:0)+P;return{index:n,from:new a.Z({x:i,y:0}),to:new a.Z({x:i,y:p})}}));return o.createElement(s.Z,{className:c()("visx-columns",b),top:e,left:r},N?N({lines:R}):R.map((function(t){var n=t.from,e=t.to,i=t.index;return o.createElement(l.Z,_({key:"column-line-"+i,from:n,to:e,stroke:x,strokeWidth:Z,strokeDasharray:g,style:k},j))})))}p.propTypes={tickValues:r().array,height:r().number.isRequired}},85587:function(t,n,e){e.d(n,{Z:function(){return s}});var i=e(82684),r=e(63588),o=e.n(r),u=e(39309),c=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return l=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},l.apply(this,arguments)}function s(t){var n=t.children,e=t.data,r=void 0===e?[]:e,s=t.x,a=t.y,h=t.fill,f=void 0===h?"transparent":h,d=t.className,y=t.curve,_=t.innerRef,p=t.defined,v=void 0===p?function(){return!0}:p,x=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,c),m=(0,u.jv)({x:s,y:a,defined:v,curve:y});return n?i.createElement(i.Fragment,null,n({path:m})):i.createElement("path",l({ref:_,className:o()("visx-linepath",d),d:m(r)||"",fill:f,strokeLinecap:"round"},x))}},39309:function(t,n,e){e.d(n,{SO:function(){return u},jv:function(){return c}});var i=e(48167),r=e(92201),o=e(13004);function u(t){var n=void 0===t?{}:t,e=n.x,r=n.x0,u=n.x1,c=n.y,l=n.y0,s=n.y1,a=n.defined,h=n.curve,f=(0,i.Z)();return e&&(0,o.Z)(f.x,e),r&&(0,o.Z)(f.x0,r),u&&(0,o.Z)(f.x1,u),c&&(0,o.Z)(f.y,c),l&&(0,o.Z)(f.y0,l),s&&(0,o.Z)(f.y1,s),a&&f.defined(a),h&&f.curve(h),f}function c(t){var n=void 0===t?{}:t,e=n.x,i=n.y,u=n.defined,c=n.curve,l=(0,r.Z)();return e&&(0,o.Z)(l.x,e),i&&(0,o.Z)(l.y,i),u&&l.defined(u),c&&l.curve(c),l}},98889:function(t,n,e){e.d(n,{Z:function(){return p}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),l=e(39309),s=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function a(){return a=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},a.apply(this,arguments)}function h(t){var n=t.children,e=t.x,i=t.x0,r=t.x1,u=t.y,h=t.y0,f=t.y1,d=t.data,y=void 0===d?[]:d,_=t.defined,p=void 0===_?function(){return!0}:_,v=t.className,x=t.curve,m=t.innerRef,Z=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,s),g=(0,l.SO)({x:e,x0:i,x1:r,y:u,y0:h,y1:f,defined:p,curve:x});return n?o.createElement(o.Fragment,null,n({path:g})):o.createElement("path",a({ref:m,className:c()("visx-area",v),d:g(y)||""},Z))}var f=["id","children"];function d(){return d=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},d.apply(this,arguments)}function y(t){var n=t.id,e=t.children,i=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,f);return o.createElement("defs",null,o.createElement("clipPath",d({id:n},i),e))}function _(){return _=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},_.apply(this,arguments)}function p(t){var n=t.className,e=t.curve,i=t.clipAboveTo,r=t.clipBelowTo,u=t.data,l=t.defined,s=t.x,a=t.y0,f=t.y1,d=t.aboveAreaProps,p=t.belowAreaProps,v=t.id,x=void 0===v?"":v;return o.createElement("g",{className:c()("visx-threshold",n)},o.createElement(h,{curve:e,data:u,x:s,y1:f,defined:l},(function(t){var n=t.path,e=null,c=null;return e=n.y0(r)(u),c=n.y0(i)(u),o.createElement("g",null,o.createElement(y,{id:"threshold-clip-below-"+x},o.createElement("path",{d:e||""})),o.createElement(y,{id:"threshold-clip-above-"+x},o.createElement("path",{d:c||""})))})),o.createElement(h,_({curve:e,data:u,defined:l,x:s,y0:a,y1:f,strokeWidth:0,clipPath:"url(#threshold-clip-below-"+x+")"},p)),o.createElement(h,_({curve:e,data:u,defined:l,x:s,y0:a,y1:f,strokeWidth:0,clipPath:"url(#threshold-clip-above-"+x+")"},d)))}y.propTypes={id:r().string.isRequired,children:r().node},p.propTypes={className:r().string,clipAboveTo:r().oneOfType([r().func,r().number]).isRequired,clipBelowTo:r().oneOfType([r().func,r().number]).isRequired,id:r().string.isRequired,data:r().array.isRequired,defined:r().func,x:r().oneOfType([r().func,r().number]).isRequired,y0:r().oneOfType([r().func,r().number]).isRequired,y1:r().oneOfType([r().func,r().number]).isRequired}},61655:function(t,n,e){e.d(n,{Z:function(){return u}});var i=e(82684),r=e(29179);function o(){return o=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},o.apply(this,arguments)}function u(t,n,e){void 0===n&&(n={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===e&&(e=function(t,n){return i.createElement("div",n,t)});return function(u){var c=(0,r.Z)();return e(i.createElement(t,o({},c,u)),n)}}},35681:function(t,n){var e=Math.PI,i=2*e,r=1e-6,o=i-r;function u(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function c(){return new u}u.prototype=c.prototype={constructor:u,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,i){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(t,n,e,i,r,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +i+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(t,n,i,o,u){t=+t,n=+n,i=+i,o=+o,u=+u;var c=this._x1,l=this._y1,s=i-t,a=o-n,h=c-t,f=l-n,d=h*h+f*f;if(u<0)throw new Error("negative radius: "+u);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(d>r)if(Math.abs(f*s-a*h)>r&&u){var y=i-c,_=o-l,p=s*s+a*a,v=y*y+_*_,x=Math.sqrt(p),m=Math.sqrt(d),Z=u*Math.tan((e-Math.acos((p+d-v)/(2*x*m)))/2),g=Z/m,b=Z/x;Math.abs(g-1)>r&&(this._+="L"+(t+g*h)+","+(n+g*f)),this._+="A"+u+","+u+",0,0,"+ +(f*y>h*_)+","+(this._x1=t+b*s)+","+(this._y1=n+b*a)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,u,c,l,s){t=+t,n=+n,s=!!s;var a=(u=+u)*Math.cos(c),h=u*Math.sin(c),f=t+a,d=n+h,y=1^s,_=s?c-l:l-c;if(u<0)throw new Error("negative radius: "+u);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>r||Math.abs(this._y1-d)>r)&&(this._+="L"+f+","+d),u&&(_<0&&(_=_%i+i),_>o?this._+="A"+u+","+u+",0,1,"+y+","+(t-a)+","+(n-h)+"A"+u+","+u+",0,1,"+y+","+(this._x1=f)+","+(this._y1=d):_>r&&(this._+="A"+u+","+u+",0,"+ +(_>=e)+","+y+","+(this._x1=t+u*Math.cos(l))+","+(this._y1=n+u*Math.sin(l))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}},n.Z=c},48167:function(t,n,e){e.d(n,{Z:function(){return l}});var i=e(35681),r=e(90875),o=e(23622),u=e(92201),c=e(98930);function l(){var t=c.x,n=null,e=(0,r.Z)(0),l=c.y,s=(0,r.Z)(!0),a=null,h=o.Z,f=null;function d(r){var o,u,c,d,y,_=r.length,p=!1,v=new Array(_),x=new Array(_);for(null==a&&(f=h(y=(0,i.Z)())),o=0;o<=_;++o){if(!(o<_&&s(d=r[o],o,r))===p)if(p=!p)u=o,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),c=o-1;c>=u;--c)f.point(v[c],x[c]);f.lineEnd(),f.areaEnd()}p&&(v[o]=+t(d,o,r),x[o]=+e(d,o,r),f.point(n?+n(d,o,r):v[o],l?+l(d,o,r):x[o]))}if(y)return f=null,y+""||null}function y(){return(0,u.Z)().defined(s).curve(h).context(a)}return d.x=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.Z)(+e),n=null,d):t},d.x0=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),d):t},d.x1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),d):n},d.y=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),l=null,d):e},d.y0=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),d):e},d.y1=function(t){return arguments.length?(l=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),d):l},d.lineX0=d.lineY0=function(){return y().x(t).y(e)},d.lineY1=function(){return y().x(t).y(l)},d.lineX1=function(){return y().x(n).y(e)},d.defined=function(t){return arguments.length?(s="function"===typeof t?t:(0,r.Z)(!!t),d):s},d.curve=function(t){return arguments.length?(h=t,null!=a&&(f=h(a)),d):h},d.context=function(t){return arguments.length?(null==t?a=f=null:f=h(a=t),d):a},d}},97745:function(t,n,e){function i(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function r(t){this._context=t}function o(t){return new r(t)}e.d(n,{ZP:function(){return o},fE:function(){return r},xm:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}}},23622:function(t,n,e){function i(t){this._context=t}function r(t){return new i(t)}e.d(n,{Z:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}}},92201:function(t,n,e){e.d(n,{Z:function(){return c}});var i=e(35681),r=e(90875),o=e(23622),u=e(98930);function c(){var t=u.x,n=u.y,e=(0,r.Z)(!0),c=null,l=o.Z,s=null;function a(r){var o,u,a,h=r.length,f=!1;for(null==c&&(s=l(a=(0,i.Z)())),o=0;o<=h;++o)!(o<h&&e(u=r[o],o,r))===f&&((f=!f)?s.lineStart():s.lineEnd()),f&&s.point(+t(u,o,r),+n(u,o,r));if(a)return s=null,a+""||null}return a.x=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),a):t},a.y=function(t){return arguments.length?(n="function"===typeof t?t:(0,r.Z)(+t),a):n},a.defined=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(!!t),a):e},a.curve=function(t){return arguments.length?(l=t,null!=c&&(s=l(c)),a):l},a.context=function(t){return arguments.length?(null==t?c=s=null:s=l(c=t),a):c},a}},98930:function(t,n,e){function i(t){return t[0]}function r(t){return t[1]}e.d(n,{x:function(){return i},y:function(){return r}})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8867],{59739:function(e,n,t){"use strict";var r=t(56669);function i(){}function c(){}c.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,c,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:c,resetWarningCache:i};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return T}});var r=t(82394),i=t(21831),c=t(82684),o=t(47999),s=t(28358),a=t(93461),u=t(57384),l=t(12344),d=t(72454),f=t(28598);function h(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var p=c.forwardRef(h),m=t(32063),v=t(15270),x=t(82531),O=t(66166),b=t(3055),E=t(49125),j=t(91427),R=t(24141);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function A(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var T=function(e){var n,t=e.after,r=e.afterHidden,h=e.afterWidth,Z=e.afterWidthOverride,T=e.before,P=e.beforeWidth,g=e.breadcrumbs,S=e.children,_=e.errors,C=e.headerMenuItems,D=e.navigationItems,y=e.setErrors,w=e.subheaderChildren,k=e.title,N=e.uuid,I=(0,R.i)().width,M="dashboard_after_width_".concat(N),L="dashboard_before_width_".concat(N),F=(0,c.useRef)(null),H=(0,c.useState)(Z?h:(0,j.U2)(M,h)),W=H[0],U=H[1],X=(0,c.useState)(!1),Y=X[0],z=X[1],B=(0,c.useState)(T?Math.max((0,j.U2)(L,P),13*E.iI):null),G=B[0],q=B[1],Q=(0,c.useState)(!1),V=Q[0],$=Q[1],J=(0,c.useState)(null)[1],K=x.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===K||void 0===K?void 0:K.projects,ne=[];g?ne.push.apply(ne,(0,i.Z)(g)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return k}}]),(0,c.useEffect)((function(){null===F||void 0===F||!F.current||Y||V||null===J||void 0===J||J(F.current.getBoundingClientRect().width)}),[Y,W,V,G,F,J,I]),(0,c.useEffect)((function(){Y||(0,j.t8)(M,W)}),[r,Y,W,M]),(0,c.useEffect)((function(){V||(0,j.t8)(L,G)}),[V,G,L]);var te=(0,O.Z)(h);return(0,c.useEffect)((function(){Z&&te!==h&&U(h)}),[Z,h,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(u.Z,{title:k}),(0,f.jsx)(l.Z,{breadcrumbs:ne,menuItems:C,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(v.Z,{navigationItems:D})}),(0,f.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:t,afterHeightOffset:b.Mz,afterHidden:r,afterMousedownActive:Y,afterWidth:W,before:T,beforeHeightOffset:b.Mz,beforeMousedownActive:V,beforeWidth:d.k1+(T?G:0),hideAfterCompletely:!0,leftOffset:T?d.k1:null,mainContainerRef:F,setAfterMousedownActive:z,setAfterWidth:U,setBeforeMousedownActive:$,setBeforeWidth:q,children:[w&&(0,f.jsx)(p,{children:w}),S]})})]}),_&&(0,f.jsx)(o.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===y||void 0===y?void 0:y(null)},children:(0,f.jsx)(s.Z,A(A({},_),{},{onClose:function(){return null===y||void 0===y?void 0:y(null)}}))})]})}},65597:function(e,n,t){"use strict";t.d(n,{f:function(){return s}});var r=t(9518),i=t(23831),c=t(49125),o=t(73942),s=r.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*c.iI,o.TR,2*c.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||i.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},86422:function(e,n,t){"use strict";t.d(n,{$W:function(){return f},DA:function(){return d},HX:function(){return m},J8:function(){return p},Lq:function(){return u},Qj:function(){return v},Ut:function(){return E},V4:function(){return b},VZ:function(){return h},dO:function(){return l},f2:function(){return O},iZ:function(){return x},t6:function(){return o},tf:function(){return a}});var r,i,c,o,s=t(82394);!function(e){e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(o||(o={}));var a,u,l=(r={},(0,s.Z)(r,o.PYTHON,"PY"),(0,s.Z)(r,o.R,"R"),(0,s.Z)(r,o.SQL,"SQL"),(0,s.Z)(r,o.YAML,"YAML"),r);!function(e){e.CHART="chart",e.CUSTOM="custom",e.DATA_EXPORTER="data_exporter",e.DATA_LOADER="data_loader",e.DBT="dbt",e.EXTENSION="extension",e.SCRATCHPAD="scratchpad",e.SENSOR="sensor",e.TRANSFORMER="transformer"}(a||(a={})),function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(u||(u={}));var d,f=[a.CHART,a.CUSTOM,a.DATA_EXPORTER,a.DATA_LOADER,a.SCRATCHPAD,a.SENSOR,a.TRANSFORMER],h=[a.DATA_EXPORTER,a.DATA_LOADER],p=[a.DATA_EXPORTER,a.DATA_LOADER,a.TRANSFORMER],m=[a.DATA_EXPORTER,a.DATA_LOADER,a.DBT,a.TRANSFORMER],v=[a.CHART,a.SCRATCHPAD,a.SENSOR],x=[a.EXTENSION,a.SCRATCHPAD];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(d||(d={}));var O=[a.CUSTOM,a.DATA_EXPORTER,a.TRANSFORMER],b=(i={},(0,s.Z)(i,a.CUSTOM,"Custom"),(0,s.Z)(i,a.DATA_EXPORTER,"Data exporter"),(0,s.Z)(i,a.DATA_LOADER,"Data loader"),(0,s.Z)(i,a.EXTENSION,"Extension"),(0,s.Z)(i,a.SCRATCHPAD,"Scratchpad"),(0,s.Z)(i,a.SENSOR,"Sensor"),(0,s.Z)(i,a.TRANSFORMER,"Transformer"),i),E=[a.DATA_LOADER,a.TRANSFORMER,a.DATA_EXPORTER,a.SENSOR];c={},(0,s.Z)(c,a.DATA_EXPORTER,"DE"),(0,s.Z)(c,a.DATA_LOADER,"DL"),(0,s.Z)(c,a.SCRATCHPAD,"SP"),(0,s.Z)(c,a.SENSOR,"SR"),(0,s.Z)(c,a.TRANSFORMER,"TF")},48438:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return F}});var r=t(77837),i=t(75582),c=t(38860),o=t.n(c),s=t(82684),a=t(83455),u=t(60328),l=t(47999),d=t(57722),f=t(67971),h=t(87372),p=t(11135),m=t(86673),v=t(58180),x=t(19711),O=t(82944),b=t(70902),E=t(82531),j=t(10503),R=t(86422),Z=t(73899),A=t(99994),T=t(85307),P=t(49125),g=t(96510),S=t(90211),_=t(28598);var C=function(e){var n=e.fetchInstances,t=e.instanceType,r=(0,s.useState)(),c=r[0],o=r[1],u=(0,s.useState)(),l=u[0],C=u[1],D=(0,s.useState)(),y=D[0],w=D[1],k=(0,s.useState)(null),N=k[0],I=k[1],M=(0,s.useState)(),L=M[0],F=M[1],H=(0,s.useState)(),W=H[0],U=H[1],X=(0,a.Db)(E.ZP.instances.clusters.useCreate(t),{onSuccess:function(e){return(0,g.wD)(e,{callback:function(e){e.success?(n(),o(!1)):C(e.error_message)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;console.log(t,r)}})}}),Y=(0,i.Z)(X,2),z=Y[0],B=Y[1].isLoading,G=[[(0,_.jsx)(x.ZP,{bold:!0,color:Z.cM,children:"Instance name"}),(0,_.jsx)(O.Z,{label:"ecs"===t?"Spaces will be replaced by underscores":"Spaces will be replaced by hyphens",monospace:!0,onChange:function(e){e.preventDefault(),F(e.target.value)},placeholder:"Name your new instance",value:L})]];return"k8s"===t&&G.push([(0,_.jsx)(x.ZP,{bold:!0,color:Z.cM,children:"Service account name (optional)"}),(0,_.jsx)(O.Z,{label:"Name of service account to be attached to stateful set",monospace:!0,onChange:function(e){e.preventDefault(),U(e.target.value)},placeholder:"Service account name",value:W})]),(0,_.jsx)(_.Fragment,{children:c?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(h.Z,{default:!0,level:5,monospace:!0,children:"Configure new instance"}),(0,_.jsx)(v.Z,{columnFlex:[null,3],rows:G}),"k8s"===t&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(m.Z,{mt:1,children:(0,_.jsxs)(f.Z,{alignItems:"center",children:[(0,_.jsx)(x.ZP,{default:!0,monospace:!0,children:"Configure container"}),(0,_.jsx)(m.Z,{ml:1}),(0,_.jsx)(b.Z,{checked:y,onCheck:function(){return w((function(e){return!e}))}})]})}),y&&(0,_.jsx)(m.Z,{mt:1,children:(0,_.jsx)(T.$W,{children:(0,_.jsx)(d.Z,{autoHeight:!0,language:R.t6.YAML,onChange:function(e){I(e)},tabSize:2,value:N||void 0,width:"100%"})})})]}),B&&(0,_.jsx)(m.Z,{mt:1,children:(0,_.jsx)(x.ZP,{small:!0,warning:!0,children:"This may take up to a few minutes... Once the service is created, it may take another 5-10 minutes for the service to be accessible."})}),!B&&l&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(m.Z,{mt:1,children:(0,_.jsx)(x.ZP,{small:!0,danger:!0,children:"Failed to create instance, see error below."})}),(0,_.jsx)(m.Z,{mt:1,children:(0,_.jsx)(x.ZP,{small:!0,danger:!0,children:l})})]}),(0,_.jsx)(m.Z,{my:2,children:(0,_.jsxs)(f.Z,{children:[(0,_.jsx)(p.ZP,{background:Z.a$,bold:!0,inline:!0,loading:B,onClick:function(){return z({instance:{name:(e=L,"ecs"===t?(0,S.We)(e,"_"):(0,S.We)(e,"-")),service_account_name:W,container_config:y&&N}});var e},uuid:"EnvironmentListPage/new",children:"Create"}),(0,_.jsx)(m.Z,{ml:1}),(0,_.jsx)(p.ZP,{bold:!0,inline:!0,onClick:function(){return o(!1)},uuid:"EnvironmentListPage/cancel",children:"Cancel"})]})})]}):(0,_.jsx)(p.ZP,{background:A.eW,beforeElement:(0,_.jsx)(j.mm,{size:2.5*P.iI}),bold:!0,inline:!0,onClick:function(){F((0,S.Y6)()),o(!0)},uuid:"EnvironmentListPage/new_instance",children:"Create new instance"})})},D=t(1210),y=t(62084),w=t(41788),k=t(73942),N=t(65597),I=t(72454);function M(e){var n=e.fetchInstances,t=e.instance,r=e.instanceType,c=(0,s.useRef)(null),o=(0,s.useState)(),d=o[0],h=o[1],p=(0,s.useState)(),v=p[0],O=p[1],b=t.name,R=t.task_arn,Z={};R&&(Z.task_arn=R);var A=(0,a.Db)(E.ZP.instances.clusters.useUpdate(r,b),{onSuccess:function(e){return(0,g.wD)(e,{callback:function(){n(),h(!1)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;console.log(t,r)}})}}),T=(0,i.Z)(A,1)[0],S=(0,a.Db)(E.ZP.instances.clusters.useDelete(r,b,Z),{onSuccess:function(e){return(0,g.wD)(e,{callback:function(){n(),h(!1)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;console.log(t,r)}})}}),C=(0,i.Z)(S,1)[0],D=(0,s.useMemo)((function(){var e=t.status,n=[{label:function(){return(0,_.jsx)(x.ZP,{children:"Delete instance"})},onClick:function(){return O(!0)},uuid:"delete_instance"}];return"STOPPED"===e?n.unshift({label:function(){return(0,_.jsx)(x.ZP,{children:"Resume instance"})},onClick:function(){return T({instance:{action:"resume",name:t.name,task_arn:t.task_arn}})},uuid:"resume_instance"}):"RUNNING"===e&&n.unshift({label:function(){return(0,_.jsx)(x.ZP,{children:"Stop instance"})},onClick:function(){return T({instance:{action:"stop",name:t.name,task_arn:t.task_arn}})},uuid:"stop_instance"}),n}),[t]);return(0,_.jsx)(_.Fragment,{children:"ecs"===r&&(0,_.jsxs)("div",{ref:c,style:{position:"relative",zIndex:"1"},children:[(0,_.jsx)(u.Z,{iconOnly:!0,onClick:function(){return h(!d)},children:(0,_.jsx)(j.mH,{size:2*P.iI})}),(0,_.jsx)(l.Z,{disableEscape:!0,onClickOutside:function(){h(!1),O(!1)},open:d,children:v?(0,_.jsxs)(N.f,{leftOffset:30*-P.iI,topOffset:3*-P.iI,width:30*P.iI,children:[(0,_.jsx)(x.ZP,{children:"Are you sure you want to delete"}),(0,_.jsx)(x.ZP,{children:"this instance? You may not be"}),(0,_.jsx)(x.ZP,{children:"able to recover your data."}),(0,_.jsx)(m.Z,{mt:1}),(0,_.jsxs)(f.Z,{children:[(0,_.jsx)(u.Z,{danger:!0,onClick:C,children:"Confirm"}),(0,_.jsx)(m.Z,{ml:1}),(0,_.jsx)(u.Z,{default:!0,onClick:function(){return O(!1)},children:"Cancel"})]})]}):(0,_.jsx)(y.Z,{items:D,left:25*-P.iI,open:d,parentRef:c,topOffset:3*-P.iI,uuid:"Manage/more_actions",width:25*P.iI})})]})})}function L(){var e,n=(0,s.useState)(),t=(n[0],n[1],E.ZP.status.list().data),r=(null===t||void 0===t||null===(e=t.status)||void 0===e?void 0:e.instance_type)||"ecs",i=E.ZP.instances.clusters.list(r,{},{refreshInterval:3e3,revalidateOnFocus:!0}),c=i.data,o=i.mutate,a=(0,s.useMemo)((function(){var e;return null===c||void 0===c||null===(e=c.instances)||void 0===e?void 0:e.filter((function(e){return e.name}))}),[c]);return(0,_.jsx)(D.Z,{afterWidth:I.k1,beforeWidth:I.k1,breadcrumbs:[{bold:!0,label:function(){return"Manage (".concat(r,")")}}],navigationItems:[],subheaderChildren:(0,_.jsx)(C,{fetchInstances:o,instanceType:r}),title:"Manage",uuid:"Manage/index",children:(0,_.jsx)(v.Z,{columns:[{uuid:"Status"},{uuid:"Instance Name"},{uuid:"Type"},{uuid:"Public IP address"},{uuid:"Open"},{label:function(){return""},uuid:"Actions"}],columnFlex:[2,4,2,3,1,null],rows:null===a||void 0===a?void 0:a.map((function(e){var n=e.ip,t=e.name,i=e.status,c=e.type,s="http://".concat(n);return"ecs"===r&&(s="http://".concat(n,":6789")),[(0,_.jsx)(u.Z,{borderRadius:k.D7,danger:"STOPPED"===i,default:"PROVISIONING"===i,notClickable:!0,padding:"6px",primary:"RUNNING"===i,warning:"PENDING"===i,children:(0,S.vg)(i)}),(0,_.jsx)(x.ZP,{children:t}),(0,_.jsx)(x.ZP,{children:(0,S.vg)(c)}),(0,_.jsx)(x.ZP,{children:n}),(0,_.jsx)(u.Z,{iconOnly:!0,onClick:function(){return window.open(s)},children:(0,_.jsx)(j.M0,{size:2*P.iI})}),(0,_.jsx)(M,{fetchInstances:o,instance:e,instanceType:r})]}))})})}L.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)})));var F=(0,w.Z)(L)},13157:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage",function(){return t(48438)}])}},function(e){e.O(0,[3850,2083,8789,2344,9386,6166,8180,4261,9774,2888,179],(function(){return n=13157,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8867],{59739:function(e,n,t){"use strict";var r=t(56669);function i(){}function c(){}c.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,c,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:c,resetWarningCache:i};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return T}});var r=t(82394),i=t(21831),c=t(82684),o=t(47999),s=t(49894),a=t(93461),u=t(57384),l=t(12344),d=t(72454),f=t(28598);function h(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var p=c.forwardRef(h),m=t(32063),v=t(15270),x=t(82531),O=t(66166),b=t(3055),E=t(49125),j=t(91427),R=t(24141);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function A(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var T=function(e){var n,t=e.after,r=e.afterHidden,h=e.afterWidth,Z=e.afterWidthOverride,T=e.before,P=e.beforeWidth,g=e.breadcrumbs,S=e.children,_=e.errors,C=e.headerMenuItems,D=e.navigationItems,y=e.setErrors,w=e.subheaderChildren,k=e.title,N=e.uuid,I=(0,R.i)().width,M="dashboard_after_width_".concat(N),L="dashboard_before_width_".concat(N),F=(0,c.useRef)(null),H=(0,c.useState)(Z?h:(0,j.U2)(M,h)),W=H[0],U=H[1],X=(0,c.useState)(!1),Y=X[0],z=X[1],B=(0,c.useState)(T?Math.max((0,j.U2)(L,P),13*E.iI):null),G=B[0],q=B[1],Q=(0,c.useState)(!1),V=Q[0],$=Q[1],J=(0,c.useState)(null)[1],K=x.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===K||void 0===K?void 0:K.projects,ne=[];g?ne.push.apply(ne,(0,i.Z)(g)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return k}}]),(0,c.useEffect)((function(){null===F||void 0===F||!F.current||Y||V||null===J||void 0===J||J(F.current.getBoundingClientRect().width)}),[Y,W,V,G,F,J,I]),(0,c.useEffect)((function(){Y||(0,j.t8)(M,W)}),[r,Y,W,M]),(0,c.useEffect)((function(){V||(0,j.t8)(L,G)}),[V,G,L]);var te=(0,O.Z)(h);return(0,c.useEffect)((function(){Z&&te!==h&&U(h)}),[Z,h,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(u.Z,{title:k}),(0,f.jsx)(l.Z,{breadcrumbs:ne,menuItems:C,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(v.Z,{navigationItems:D})}),(0,f.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:t,afterHeightOffset:b.Mz,afterHidden:r,afterMousedownActive:Y,afterWidth:W,before:T,beforeHeightOffset:b.Mz,beforeMousedownActive:V,beforeWidth:d.k1+(T?G:0),hideAfterCompletely:!0,leftOffset:T?d.k1:null,mainContainerRef:F,setAfterMousedownActive:z,setAfterWidth:U,setBeforeMousedownActive:$,setBeforeWidth:q,children:[w&&(0,f.jsx)(p,{children:w}),S]})})]}),_&&(0,f.jsx)(o.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===y||void 0===y?void 0:y(null)},children:(0,f.jsx)(s.Z,A(A({},_),{},{onClose:function(){return null===y||void 0===y?void 0:y(null)}}))})]})}},65597:function(e,n,t){"use strict";t.d(n,{f:function(){return s}});var r=t(9518),i=t(23831),c=t(49125),o=t(73942),s=r.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*c.iI,o.TR,2*c.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||i.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},86422:function(e,n,t){"use strict";t.d(n,{$W:function(){return f},DA:function(){return d},HX:function(){return m},J8:function(){return p},Lq:function(){return u},Qj:function(){return v},Ut:function(){return E},V4:function(){return b},VZ:function(){return h},dO:function(){return l},f2:function(){return O},iZ:function(){return x},t6:function(){return o},tf:function(){return a}});var r,i,c,o,s=t(82394);!function(e){e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(o||(o={}));var a,u,l=(r={},(0,s.Z)(r,o.PYTHON,"PY"),(0,s.Z)(r,o.R,"R"),(0,s.Z)(r,o.SQL,"SQL"),(0,s.Z)(r,o.YAML,"YAML"),r);!function(e){e.CHART="chart",e.CUSTOM="custom",e.DATA_EXPORTER="data_exporter",e.DATA_LOADER="data_loader",e.DBT="dbt",e.EXTENSION="extension",e.SCRATCHPAD="scratchpad",e.SENSOR="sensor",e.TRANSFORMER="transformer"}(a||(a={})),function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(u||(u={}));var d,f=[a.CHART,a.CUSTOM,a.DATA_EXPORTER,a.DATA_LOADER,a.SCRATCHPAD,a.SENSOR,a.TRANSFORMER],h=[a.DATA_EXPORTER,a.DATA_LOADER],p=[a.DATA_EXPORTER,a.DATA_LOADER,a.TRANSFORMER],m=[a.DATA_EXPORTER,a.DATA_LOADER,a.DBT,a.TRANSFORMER],v=[a.CHART,a.SCRATCHPAD,a.SENSOR],x=[a.EXTENSION,a.SCRATCHPAD];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(d||(d={}));var O=[a.CUSTOM,a.DATA_EXPORTER,a.TRANSFORMER],b=(i={},(0,s.Z)(i,a.CUSTOM,"Custom"),(0,s.Z)(i,a.DATA_EXPORTER,"Data exporter"),(0,s.Z)(i,a.DATA_LOADER,"Data loader"),(0,s.Z)(i,a.EXTENSION,"Extension"),(0,s.Z)(i,a.SCRATCHPAD,"Scratchpad"),(0,s.Z)(i,a.SENSOR,"Sensor"),(0,s.Z)(i,a.TRANSFORMER,"Transformer"),i),E=[a.DATA_LOADER,a.TRANSFORMER,a.DATA_EXPORTER,a.SENSOR];c={},(0,s.Z)(c,a.DATA_EXPORTER,"DE"),(0,s.Z)(c,a.DATA_LOADER,"DL"),(0,s.Z)(c,a.SCRATCHPAD,"SP"),(0,s.Z)(c,a.SENSOR,"SR"),(0,s.Z)(c,a.TRANSFORMER,"TF")},48438:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return F}});var r=t(77837),i=t(75582),c=t(38860),o=t.n(c),s=t(82684),a=t(83455),u=t(60328),l=t(47999),d=t(57722),f=t(67971),h=t(87372),p=t(11135),m=t(86673),v=t(58180),x=t(19711),O=t(82944),b=t(70902),E=t(82531),j=t(10503),R=t(86422),Z=t(73899),A=t(99994),T=t(85307),P=t(49125),g=t(96510),S=t(90211),_=t(28598);var C=function(e){var n=e.fetchInstances,t=e.instanceType,r=(0,s.useState)(),c=r[0],o=r[1],u=(0,s.useState)(),l=u[0],C=u[1],D=(0,s.useState)(),y=D[0],w=D[1],k=(0,s.useState)(null),N=k[0],I=k[1],M=(0,s.useState)(),L=M[0],F=M[1],H=(0,s.useState)(),W=H[0],U=H[1],X=(0,a.Db)(E.ZP.instances.clusters.useCreate(t),{onSuccess:function(e){return(0,g.wD)(e,{callback:function(e){e.success?(n(),o(!1)):C(e.error_message)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;console.log(t,r)}})}}),Y=(0,i.Z)(X,2),z=Y[0],B=Y[1].isLoading,G=[[(0,_.jsx)(x.ZP,{bold:!0,color:Z.cM,children:"Instance name"}),(0,_.jsx)(O.Z,{label:"ecs"===t?"Spaces will be replaced by underscores":"Spaces will be replaced by hyphens",monospace:!0,onChange:function(e){e.preventDefault(),F(e.target.value)},placeholder:"Name your new instance",value:L})]];return"k8s"===t&&G.push([(0,_.jsx)(x.ZP,{bold:!0,color:Z.cM,children:"Service account name (optional)"}),(0,_.jsx)(O.Z,{label:"Name of service account to be attached to stateful set",monospace:!0,onChange:function(e){e.preventDefault(),U(e.target.value)},placeholder:"Service account name",value:W})]),(0,_.jsx)(_.Fragment,{children:c?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(h.Z,{default:!0,level:5,monospace:!0,children:"Configure new instance"}),(0,_.jsx)(v.Z,{columnFlex:[null,3],rows:G}),"k8s"===t&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(m.Z,{mt:1,children:(0,_.jsxs)(f.Z,{alignItems:"center",children:[(0,_.jsx)(x.ZP,{default:!0,monospace:!0,children:"Configure container"}),(0,_.jsx)(m.Z,{ml:1}),(0,_.jsx)(b.Z,{checked:y,onCheck:function(){return w((function(e){return!e}))}})]})}),y&&(0,_.jsx)(m.Z,{mt:1,children:(0,_.jsx)(T.$W,{children:(0,_.jsx)(d.Z,{autoHeight:!0,language:R.t6.YAML,onChange:function(e){I(e)},tabSize:2,value:N||void 0,width:"100%"})})})]}),B&&(0,_.jsx)(m.Z,{mt:1,children:(0,_.jsx)(x.ZP,{small:!0,warning:!0,children:"This may take up to a few minutes... Once the service is created, it may take another 5-10 minutes for the service to be accessible."})}),!B&&l&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(m.Z,{mt:1,children:(0,_.jsx)(x.ZP,{small:!0,danger:!0,children:"Failed to create instance, see error below."})}),(0,_.jsx)(m.Z,{mt:1,children:(0,_.jsx)(x.ZP,{small:!0,danger:!0,children:l})})]}),(0,_.jsx)(m.Z,{my:2,children:(0,_.jsxs)(f.Z,{children:[(0,_.jsx)(p.ZP,{background:Z.a$,bold:!0,inline:!0,loading:B,onClick:function(){return z({instance:{name:(e=L,"ecs"===t?(0,S.We)(e,"_"):(0,S.We)(e,"-")),service_account_name:W,container_config:y&&N}});var e},uuid:"EnvironmentListPage/new",children:"Create"}),(0,_.jsx)(m.Z,{ml:1}),(0,_.jsx)(p.ZP,{bold:!0,inline:!0,onClick:function(){return o(!1)},uuid:"EnvironmentListPage/cancel",children:"Cancel"})]})})]}):(0,_.jsx)(p.ZP,{background:A.eW,beforeElement:(0,_.jsx)(j.mm,{size:2.5*P.iI}),bold:!0,inline:!0,onClick:function(){F((0,S.Y6)()),o(!0)},uuid:"EnvironmentListPage/new_instance",children:"Create new instance"})})},D=t(1210),y=t(62084),w=t(41788),k=t(73942),N=t(65597),I=t(72454);function M(e){var n=e.fetchInstances,t=e.instance,r=e.instanceType,c=(0,s.useRef)(null),o=(0,s.useState)(),d=o[0],h=o[1],p=(0,s.useState)(),v=p[0],O=p[1],b=t.name,R=t.task_arn,Z={};R&&(Z.task_arn=R);var A=(0,a.Db)(E.ZP.instances.clusters.useUpdate(r,b),{onSuccess:function(e){return(0,g.wD)(e,{callback:function(){n(),h(!1)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;console.log(t,r)}})}}),T=(0,i.Z)(A,1)[0],S=(0,a.Db)(E.ZP.instances.clusters.useDelete(r,b,Z),{onSuccess:function(e){return(0,g.wD)(e,{callback:function(){n(),h(!1)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;console.log(t,r)}})}}),C=(0,i.Z)(S,1)[0],D=(0,s.useMemo)((function(){var e=t.status,n=[{label:function(){return(0,_.jsx)(x.ZP,{children:"Delete instance"})},onClick:function(){return O(!0)},uuid:"delete_instance"}];return"STOPPED"===e?n.unshift({label:function(){return(0,_.jsx)(x.ZP,{children:"Resume instance"})},onClick:function(){return T({instance:{action:"resume",name:t.name,task_arn:t.task_arn}})},uuid:"resume_instance"}):"RUNNING"===e&&n.unshift({label:function(){return(0,_.jsx)(x.ZP,{children:"Stop instance"})},onClick:function(){return T({instance:{action:"stop",name:t.name,task_arn:t.task_arn}})},uuid:"stop_instance"}),n}),[t]);return(0,_.jsx)(_.Fragment,{children:"ecs"===r&&(0,_.jsxs)("div",{ref:c,style:{position:"relative",zIndex:"1"},children:[(0,_.jsx)(u.Z,{iconOnly:!0,onClick:function(){return h(!d)},children:(0,_.jsx)(j.mH,{size:2*P.iI})}),(0,_.jsx)(l.Z,{disableEscape:!0,onClickOutside:function(){h(!1),O(!1)},open:d,children:v?(0,_.jsxs)(N.f,{leftOffset:30*-P.iI,topOffset:3*-P.iI,width:30*P.iI,children:[(0,_.jsx)(x.ZP,{children:"Are you sure you want to delete"}),(0,_.jsx)(x.ZP,{children:"this instance? You may not be"}),(0,_.jsx)(x.ZP,{children:"able to recover your data."}),(0,_.jsx)(m.Z,{mt:1}),(0,_.jsxs)(f.Z,{children:[(0,_.jsx)(u.Z,{danger:!0,onClick:C,children:"Confirm"}),(0,_.jsx)(m.Z,{ml:1}),(0,_.jsx)(u.Z,{default:!0,onClick:function(){return O(!1)},children:"Cancel"})]})]}):(0,_.jsx)(y.Z,{items:D,left:25*-P.iI,open:d,parentRef:c,topOffset:3*-P.iI,uuid:"Manage/more_actions",width:25*P.iI})})]})})}function L(){var e,n=(0,s.useState)(),t=(n[0],n[1],E.ZP.status.list().data),r=(null===t||void 0===t||null===(e=t.status)||void 0===e?void 0:e.instance_type)||"ecs",i=E.ZP.instances.clusters.list(r,{},{refreshInterval:3e3,revalidateOnFocus:!0}),c=i.data,o=i.mutate,a=(0,s.useMemo)((function(){var e;return null===c||void 0===c||null===(e=c.instances)||void 0===e?void 0:e.filter((function(e){return e.name}))}),[c]);return(0,_.jsx)(D.Z,{afterWidth:I.k1,beforeWidth:I.k1,breadcrumbs:[{bold:!0,label:function(){return"Manage (".concat(r,")")}}],navigationItems:[],subheaderChildren:(0,_.jsx)(C,{fetchInstances:o,instanceType:r}),title:"Manage",uuid:"Manage/index",children:(0,_.jsx)(v.Z,{columns:[{uuid:"Status"},{uuid:"Instance Name"},{uuid:"Type"},{uuid:"Public IP address"},{uuid:"Open"},{label:function(){return""},uuid:"Actions"}],columnFlex:[2,4,2,3,1,null],rows:null===a||void 0===a?void 0:a.map((function(e){var n=e.ip,t=e.name,i=e.status,c=e.type,s="http://".concat(n);return"ecs"===r&&(s="http://".concat(n,":6789")),[(0,_.jsx)(u.Z,{borderRadius:k.D7,danger:"STOPPED"===i,default:"PROVISIONING"===i,notClickable:!0,padding:"6px",primary:"RUNNING"===i,warning:"PENDING"===i,children:(0,S.vg)(i)}),(0,_.jsx)(x.ZP,{children:t}),(0,_.jsx)(x.ZP,{children:(0,S.vg)(c)}),(0,_.jsx)(x.ZP,{children:n}),(0,_.jsx)(u.Z,{iconOnly:!0,onClick:function(){return window.open(s)},children:(0,_.jsx)(j.M0,{size:2*P.iI})}),(0,_.jsx)(M,{fetchInstances:o,instance:e,instanceType:r})]}))})})}L.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)})));var F=(0,w.Z)(L)},13157:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage",function(){return t(48438)}])}},function(e){e.O(0,[3850,2083,8789,2344,9386,6166,8180,4261,9774,2888,179],(function(){return n=13157,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1009],{1210:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(82394),i=n(21831),u=n(82684),o=n(47999),
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1009],{1210:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(82394),i=n(21831),u=n(82684),o=n(47999),s=n(49894),l=n(93461),a=n(57384),c=n(12344),d=n(72454),f=n(28598);function p(e,t){var n=e.children;return(0,f.jsx)(d.HS,{ref:t,children:n})}var v=u.forwardRef(p),h=n(32063),b=n(15270),j=n(82531),O=n(66166),g=n(3055),m=n(49125),x=n(91427),w=n(24141);function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Z=function(e){var t,n=e.after,r=e.afterHidden,p=e.afterWidth,P=e.afterWidthOverride,Z=e.before,_=e.beforeWidth,E=e.breadcrumbs,C=e.children,D=e.errors,I=e.headerMenuItems,k=e.navigationItems,M=e.setErrors,N=e.subheaderChildren,S=e.title,A=e.uuid,R=(0,w.i)().width,W="dashboard_after_width_".concat(A),F="dashboard_before_width_".concat(A),H=(0,u.useRef)(null),L=(0,u.useState)(P?p:(0,x.U2)(W,p)),T=L[0],U=L[1],B=(0,u.useState)(!1),Q=B[0],V=B[1],z=(0,u.useState)(Z?Math.max((0,x.U2)(F,_),13*m.iI):null),X=z[0],G=z[1],q=(0,u.useState)(!1),J=q[0],K=q[1],Y=(0,u.useState)(null)[1],$=j.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===$||void 0===$?void 0:$.projects,te=[];E?te.push.apply(te,(0,i.Z)(E)):(null===ee||void 0===ee?void 0:ee.length)>=1&&te.push.apply(te,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return S}}]),(0,u.useEffect)((function(){null===H||void 0===H||!H.current||Q||J||null===Y||void 0===Y||Y(H.current.getBoundingClientRect().width)}),[Q,T,J,X,H,Y,R]),(0,u.useEffect)((function(){Q||(0,x.t8)(W,T)}),[r,Q,T,W]),(0,u.useEffect)((function(){J||(0,x.t8)(F,X)}),[J,X,F]);var ne=(0,O.Z)(p);return(0,u.useEffect)((function(){P&&ne!==p&&U(p)}),[P,p,ne]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Z,{title:S}),(0,f.jsx)(c.Z,{breadcrumbs:te,menuItems:I,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(t=ee[0])||void 0===t?void 0:t.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===k||void 0===k?void 0:k.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(b.Z,{navigationItems:k})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:n,afterHeightOffset:g.Mz,afterHidden:r,afterMousedownActive:Q,afterWidth:T,before:Z,beforeHeightOffset:g.Mz,beforeMousedownActive:J,beforeWidth:d.k1+(Z?X:0),hideAfterCompletely:!0,leftOffset:Z?d.k1:null,mainContainerRef:H,setAfterMousedownActive:V,setAfterWidth:U,setBeforeMousedownActive:K,setBeforeWidth:G,children:[N&&(0,f.jsx)(v,{children:N}),C]})})]}),D&&(0,f.jsx)(o.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===M||void 0===M?void 0:M(null)},children:(0,f.jsx)(s.Z,y(y({},D),{},{onClose:function(){return null===M||void 0===M?void 0:M(null)}}))})]})}},66050:function(e,t,n){"use strict";var r;n.d(t,{V:function(){return r}}),function(e){e.CANCELLED="cancelled",e.COMPLETED="completed",e.FAILED="failed",e.INITIAL="initial",e.RUNNING="running"}(r||(r={}))},92597:function(e,t,n){"use strict";n.r(t);var r=n(77837),i=n(82394),u=n(38860),o=n.n(u),s=n(82684),l=n(34376),a=n(1210),c=n(67971),d=n(51099),f=n(97496),p=n(41788),v=n(55378),h=n(86673),b=n(19711),j=n(82531),O=n(47409),g=n(66050),m=n(49125),x=n(33766),w=n(59e3),P=n(28598);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(){var e=(0,l.useRouter)(),t=(0,s.useState)(null),n=t[0],r=t[1],i=(0,w.iV)(),u=null!==i&&void 0!==i&&i.page?i.page:0,o={_limit:d.Q,_offset:u*d.Q};null!==i&&void 0!==i&&i.status&&(o.status=i.status);var p=j.ZP.pipeline_runs.list(o,{refreshInterval:3e3,revalidateOnFocus:!0}),y=p.data,_=p.mutate,E=(0,s.useMemo)((function(){return(null===y||void 0===y?void 0:y.pipeline_runs)||[]}),[y]),C=(0,s.useMemo)((function(){var e;return(null===y||void 0===y||null===(e=y.metadata)||void 0===e?void 0:e.count)||[]}),[y]);return(0,P.jsxs)(a.Z,{errors:n,setErrors:r,title:"Pipeline runs",uuid:"pipeline_runs/index",children:[(0,P.jsx)(h.Z,{mx:2,my:1,children:(0,P.jsxs)(c.Z,{alignItems:"center",children:[(0,P.jsx)(b.ZP,{bold:!0,default:!0,large:!0,children:"Filter runs by status:"}),(0,P.jsx)(h.Z,{mr:1}),(0,P.jsxs)(v.Z,{compact:!0,defaultColor:!0,fitContent:!0,onChange:function(t){t.preventDefault(),"all"===t.target.value?e.push("/pipeline-runs"):(0,x.u7)({page:0,status:t.target.value})},paddingRight:4*m.iI,placeholder:"Select run status",value:(null===i||void 0===i?void 0:i.status)||"all",children:[(0,P.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(g.V).map((function(e){return(0,P.jsx)("option",{value:e,children:O.D[e]},e)}))]})]})}),(0,P.jsx)(f.Z,{fetchPipelineRuns:_,pipelineRuns:E,setErrors:r}),(0,P.jsx)(h.Z,{p:2,children:(0,P.jsx)(d.Z,{maxPages:9,onUpdate:function(t){var n=Number(t),r=Z(Z({},i),{},{page:n>=0?n:0});e.push("/pipeline-runs","/pipeline-runs?".concat((0,w.uM)(r)))},page:Number(u),totalPages:Math.ceil(C/d.Q)})})]})}_.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)}))),t.default=(0,p.Z)(_)},60710:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipeline-runs",function(){return n(92597)}])}},function(e){e.O(0,[3850,2083,2344,9386,6166,8180,4178,9774,2888,179],(function(){return t=60710,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
|