mage-ai 0.8.48__py3-none-any.whl → 0.8.49__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.

Files changed (71) hide show
  1. mage_ai/api/resources/DataProviderResource.py +12 -1
  2. mage_ai/data_preparation/models/block/sql/__init__.py +5 -7
  3. mage_ai/data_preparation/models/pipeline.py +36 -3
  4. mage_ai/data_preparation/templates/repo/io_config.yaml +6 -0
  5. mage_ai/io/sql.py +4 -1
  6. mage_ai/server/constants.py +1 -1
  7. mage_ai/server/frontend_dist/404.html +2 -2
  8. mage_ai/server/frontend_dist/404.html.html +2 -2
  9. mage_ai/server/frontend_dist/_next/static/{MxJEQAsVYkCzpf7Sf1BKY → I2bRLK9B7Lap2LvCicTKv}/_buildManifest.js +1 -1
  10. mage_ai/server/frontend_dist/_next/static/chunks/{2249-50d2156ae3ce5933.js → 2249-59feb0a0585ef7c1.js} +1 -1
  11. mage_ai/server/frontend_dist/_next/static/chunks/2407-35c362852abff411.js +1 -0
  12. mage_ai/server/frontend_dist/_next/static/chunks/{3014-26ba07eb6a78e31c.js → 3014-a01e16bc067500ad.js} +1 -1
  13. mage_ai/server/frontend_dist/_next/static/chunks/{4506-ce5fa63b65f6fa5f.js → 4506-a3c53b0033972626.js} +1 -1
  14. mage_ai/server/frontend_dist/_next/static/chunks/{4741-a90063795b0eae44.js → 4741-5fbecd08232ba3f9.js} +1 -1
  15. mage_ai/server/frontend_dist/_next/static/chunks/{5477-793cd2120261d023.js → 5477-b439f211b6146a11.js} +1 -1
  16. mage_ai/server/frontend_dist/_next/static/chunks/{5872-103815a4a043489b.js → 5872-1767c45ee6690ae5.js} +1 -1
  17. mage_ai/server/frontend_dist/_next/static/chunks/{5896-f84e336fb8877027.js → 5896-10a676bcc86978cc.js} +1 -1
  18. mage_ai/server/frontend_dist/_next/static/chunks/{7400-acab00d6265bd4dc.js → 7400-033fb12e7c46f62e.js} +1 -1
  19. mage_ai/server/frontend_dist/_next/static/chunks/{9832-c8b8970bb522f302.js → 9832-f97919376d52e3bf.js} +1 -1
  20. mage_ai/server/frontend_dist/_next/static/chunks/pages/{manage-68a4afe10fa0958c.js → manage-8a7b2b707c7038fb.js} +1 -1
  21. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-24c7b51521b5da92.js → [...slug]-c48a45cea6df6192.js} +1 -1
  22. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{backfills-f0f726599529789c.js → backfills-dd637dcb042ff771.js} +1 -1
  23. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-5541c3e13297ddbc.js +1 -0
  24. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{logs-a26b3d2b4806cb75.js → logs-caa9fade2bc783b9.js} +1 -1
  25. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-534e4fdf17255583.js → [run]-5f78885afc7758df.js} +1 -1
  26. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{runs-a9636cb88ec885bd.js → runs-43f2c1658cd3d03d.js} +1 -1
  27. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{settings-3719bc2024f5d031.js → settings-8fb53eb8dd0267e1.js} +1 -1
  28. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{syncs-93f1a008086f516a.js → syncs-c92351b1a81f7a13.js} +1 -1
  29. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-e9c39e78b4406d9b.js → [...slug]-ca76f5938bdff8a7.js} +1 -1
  30. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-57af43cc439b2b43.js → triggers-4e9518882c8730b1.js} +1 -1
  31. mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipelines-3156eaf5f09ebf39.js → pipelines-c46347f0308ab09a.js} +1 -1
  32. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{preferences-25735fdf80f95015.js → preferences-45c40fb24c8a5139.js} +1 -1
  33. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{sync-data-abfaa2b15eef72a0.js → sync-data-6e80afa0c9b90cdf.js} +1 -1
  34. mage_ai/server/frontend_dist/_next/static/chunks/pages/{terminal-24eb5df948cc9a7e.js → terminal-cc54b4d4e5295101.js} +1 -1
  35. mage_ai/server/frontend_dist/index.html +2 -2
  36. mage_ai/server/frontend_dist/manage.html +2 -2
  37. mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
  38. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
  39. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
  40. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  41. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
  42. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
  43. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
  44. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
  45. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
  46. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
  47. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +2 -2
  48. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
  49. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
  50. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
  51. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  52. mage_ai/server/frontend_dist/pipelines.html +2 -2
  53. mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
  54. mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
  55. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
  56. mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
  57. mage_ai/server/frontend_dist/settings.html +2 -2
  58. mage_ai/server/frontend_dist/sign-in.html +2 -2
  59. mage_ai/server/frontend_dist/terminal.html +2 -2
  60. mage_ai/server/frontend_dist/test.html +2 -2
  61. mage_ai/server/frontend_dist/triggers.html +2 -2
  62. {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/METADATA +1 -1
  63. {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/RECORD +69 -69
  64. mage_ai/server/frontend_dist/_next/static/chunks/4538-8a3c3e47be976ede.js +0 -1
  65. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-f68a5f454656d7a4.js +0 -1
  66. /mage_ai/server/frontend_dist/_next/static/{MxJEQAsVYkCzpf7Sf1BKY → I2bRLK9B7Lap2LvCicTKv}/_middlewareManifest.js +0 -0
  67. /mage_ai/server/frontend_dist/_next/static/{MxJEQAsVYkCzpf7Sf1BKY → I2bRLK9B7Lap2LvCicTKv}/_ssgManifest.js +0 -0
  68. {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/LICENSE +0 -0
  69. {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/WHEEL +0 -0
  70. {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/entry_points.txt +0 -0
  71. {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4506],{15270:function(e,n,t){t.d(n,{Z:function(){return j}});var i=t(82684),r=t(34376),o=t(61519),l=t(57639),d=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 h=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"})]})]})]})},p=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,r.useRouter)().pathname,w=(0,i.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:h,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 i=e.Icon,r=e.IconSelected,o=e.id,l=e.isSelected,s=e.label,u=e.linkProps,f=e.onClick,h=l?l(j,e):!!j.match(new RegExp("^/".concat(o,"[/]*"))),v=h&&r?r:i;return(0,a.jsx)(p.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:[h&&r&&(0,a.jsx)(d.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})})}),(!h||h&&!r)&&(0,a.jsx)(c.ZP,{block:!0,linkProps:u,noHoverUnderline:!0,noPadding:!0,onClick:f,primary:h,sameColorAsText:!0,uuid:"VerticalNavigation/".concat(o),children:(0,a.jsx)(m.E7,{primary:!v,children:v?(0,a.jsx)(v,{muted:!h,size:C}):(0,a.jsx)(g.ZP,{children:"Edit"})})})]})},"button-".concat(o))}))}),[n,t,j]);return(0,a.jsx)(l.Z,{children:w})}},72454:function(e,n,t){t.d(n,{E7:function(){return p},HS:function(){return h},Nk:function(){return u},k1:function(){return s},lm:function(){return f}});var i=t(9518),r=t(23831),o=t(73942),l=t(3055),d=t(49125),c=t(37391),a=t(90880),s=d.cd*d.iI+5*d.iI+d.cd*d.iI+1,u=i.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%;",""],l.Mz,l.Mz,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).page,";\n ")})),f=i.default.div.withConfig({displayName:"indexstyle__VerticalNavigationStyle",componentId:"sc-ecogjt-1"})(["padding:","px;",""],d.cd*d.iI,(function(e){return!e.borderLess&&"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||r.Z.borders).medium,";\n ")})),h=i.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-ecogjt-2"})(["width:100%;padding:","px;position:sticky;top:0;z-index:3;",""],d.cd*d.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).page,";\n border-bottom: 1px solid ").concat((e.theme.borders||r.Z.borders).medium,";\n ")})),p=(i.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-ecogjt-3"})([""," overflow:auto;",""],c.w5,(function(e){return"\n height: calc(100vh - ".concat(l.Mz+(e.heightOffset||0),"px);\n ")})),i.default.div.withConfig({displayName:"indexstyle__NavigationItemStyle",componentId:"sc-ecogjt-4"})(["display:flex;align-items:center;justify-content:center;padding:","px;border-radius:","px;",""],d.iI,o.n_,(function(e){return e.primary&&"\n ".concat((0,a.eR)(),"\n background: ").concat((e.theme||r.Z).chart.backgroundPrimary,";\n border: 1px solid ").concat((e.theme||r.Z).feature.active,";\n\n &:hover {\n background-color: ").concat((e.theme||r.Z).interactive.linkSecondary,";\n }\n ")})))},28358:function(e,n,t){t.d(n,{Z:function(){return v}});var i=t(82684),r=t(60328),o=t(10919),l=t(86673),d=t(19711),c=t(10503),a=t(9518),s=t(23831),u=t(73942),f=t(49125),h=t(37391),p=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 ")}),h.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,h=e.response,v=(0,i.useState)(!1),m=v[0],b=v[1],y=(0,i.useState)(!1),C=y[0],j=y[1],w=(s||{}).messages,Z=(null===h||void 0===h?void 0:h.error)||{},k=Z.errors,_=Z.exception,I=Z.message,O=a,H=w;return I&&(H=I.split("\n")),_||O||null===(n=H)||void 0===n||!n[0]||(O=H[0],H=null),(0,x.jsxs)(p,{children:[(0,x.jsx)(g,{children:(0,x.jsx)(r.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:f,title:"Close errors",children:(0,x.jsx)(c.x8,{})})}),(0,x.jsx)(d.ZP,{bold:!0,large:!0,children:"Error"}),O&&(0,x.jsx)(l.Z,{mt:1,children:(0,x.jsx)(d.ZP,{default:!0,children:O})}),_&&(0,x.jsx)(l.Z,{mt:1,children:(0,x.jsx)(d.ZP,{default:!0,disableWordBreak:!0,monospace:!0,children:_})}),(null===(t=H)||void 0===t?void 0:t.length)>0&&(0,x.jsxs)(l.Z,{mt:2,children:[(0,x.jsxs)(d.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)(l.Z,{mt:1,children:H.map((function(e){return(0,x.jsx)(d.ZP,{dangerouslySetInnerHTML:{__html:e.replaceAll(" ","&nbsp;")},default:!0,disableWordBreak:!0,monospace:!0},e)}))})]}),k&&(0,x.jsxs)(l.Z,{mt:2,children:[(0,x.jsxs)(d.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)(l.Z,{mt:1,children:k.map((function(e){return(0,x.jsx)(d.ZP,{dangerouslySetInnerHTML:{__html:e.replaceAll(" ","&nbsp;")},default:!0,disableWordBreak:!0,monospace:!0},e)}))})]}),null===u||void 0===u?void 0:u.map((function(e,n){var t=e.label,i=e.onClick;return(0,x.jsx)(l.Z,{mt:2,children:(0,x.jsx)(o.Z,{large:!0,onClick:i,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},S9:function(){return E},VW:function(){return h},W7:function(){return j},Wi:function(){return g},YJ:function(){return w},Zj:function(){return P},Zt:function(){return a},aH:function(){return S},bC:function(){return V},dN:function(){return u},ff:function(){return _},l8:function(){return p},lU:function(){return M},rS:function(){return H},uX:function(){return v},v7:function(){return O},ve:function(){return f}});var i=t(9518),r=t(23831),o=t(73942),l=t(3055),d=t(49125),c=t(37391),a=64*d.iI,s=3*d.cd*d.iI,u=s,f=35*d.iI,h=.5*d.iI,p=13*d.iI,g=3*d.cd*d.iI,x=6*d.iI,v=2*d.cd*3*d.iI,m=(i.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||r.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 ")})),i.default.div.withConfig({displayName:"indexstyle__NewHeaderStyle",componentId:"sc-1lxpneo-1"})(["height:","px;position:fixed;top:0;width:100%;z-index:4;"],l.Mz)),b=(i.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*d.iI,2*d.iI,(function(e){return"\n border-left: 1px solid ".concat((e.theme.monotone||r.Z.monotone).grey200,";\n border-right: 1px solid ").concat((e.theme.monotone||r.Z.monotone).grey200,";\n border-top: 1px solid ").concat((e.theme.monotone||r.Z.monotone).grey200,";\n ")}),(function(e){return!e.first&&"\n margin-left: ".concat(1*d.iI,"px;\n ")}),(function(e){return e.selected&&"\n border-bottom: 1px solid ".concat((e.theme.monotone||r.Z.monotone).white,";\n ")})),(0,i.css)(["position:fixed;z-index:2;",""],(function(e){return"\n background-color: ".concat((e.theme.background||r.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,i.css)([""," height:100%;overflow:auto;position:relative;z-index:2;",""],c.w5,(function(e){return e.verticalOffset&&"\n height: calc(100% - ".concat(e.verticalOffset,"px);\n top: ").concat(e.verticalOffset,"px;\n ")})),C=(0,i.css)(["height:calc(100% + ","px);position:absolute;top:-","px;width:","px;z-index:6;&:hover{","}"," ",""],g,g,h,(function(e){return!e.disabled&&"\n border-color: ".concat((e.theme.text||r.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||r.Z.text).fileBrowser," !important;\n ")})),j=i.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||r.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||r.Z.borders).medium," !important;\n ")})),w=i.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||r.Z.background).table,";\n ")}),(function(e){return!e.visible&&"\n border-color: ".concat((e.theme.borders||r.Z.borders).medium," !important;\n ")})),Z=i.default.aside.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-1lxpneo-5"})([""," left:0;"],b),k=i.default.div.withConfig({displayName:"indexstyle__BeforeInnerStyle",componentId:"sc-1lxpneo-6"})([""," overflow:hidden;&:hover{overflow:auto;}"],y),_=i.default.aside.withConfig({displayName:"indexstyle__AfterStyle",componentId:"sc-1lxpneo-7"})([""," right:0;"],b),I=i.default.div.withConfig({displayName:"indexstyle__AfterInnerStyle",componentId:"sc-1lxpneo-8"})(["",""],y),O=i.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||r.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||r.Z.borders).medium,";\n right: ").concat(e.right,"px;\n ")})),H=i.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||r.Z.background).codeArea,";\n ")})),S=i.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 ")})),P=i.default.div.withConfig({displayName:"indexstyle__MainContentInnerStyle",componentId:"sc-1lxpneo-12"})([""," height:100%;overflow:auto;"],c.w5),V=i.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-1lxpneo-13"})(["position:relative;"]),M=i.default.div.withConfig({displayName:"indexstyle__NavigationInnerStyle",componentId:"sc-1lxpneo-14"})(["height:100%;position:fixed;"," ",""],(function(e){return"left"===e.aligned&&"\n border-right: 1px solid ".concat((e.theme.borders||r.Z.borders).medium,";\n left: 0;\n ")}),(function(e){return"right"===e.aligned&&"\n border-left: 1px solid ".concat((e.theme.borders||r.Z.borders).medium,";\n right: 0;\n ")})),E=i.default.div.withConfig({displayName:"indexstyle__NavigationContainerStyle",componentId:"sc-1lxpneo-15"})([""," overflow:auto;position:absolute;width:fit-content;"," "," "," ",""],c.w5,(function(e){return"\n height: calc(100vh - ".concat(e.heightOffset,"px);\n ")}),(function(e){return e.fullWidth&&"\n width: calc(100% - ".concat(e.widthOffset||0,"px);\n ")}),(function(e){return e.widthOffset&&"left"===e.aligned&&"\n left: ".concat(e.widthOffset,"px;\n ")}),(function(e){return e.widthOffset&&"right"===e.aligned&&"\n right: ".concat(e.widthOffset,"px;\n ")}))},32063:function(e,n,t){var i=t(82684),r=t(1887),o=t.n(r),l=t(60328),d=t(57639),c=t(93461),a=t(67971),s=t(86673),u=t(46261),f=t(15270),h=t(82386),p=t(10503),g=t(91427),x=t(49125),v=t(72454),m=t(24141),b=t(28598);n.Z=function(e){var n=e.after,t=e.afterHeader,r=e.afterHeightOffset,y=e.afterHidden,C=e.afterMousedownActive,j=e.afterNavigationItems,w=e.afterSubheader,Z=e.afterWidth,k=void 0===Z?0:Z,_=e.before,I=e.beforeHeader,O=e.beforeHeightOffset,H=e.beforeHidden,S=e.beforeMousedownActive,P=e.beforeNavigationItems,V=e.beforeWidth,M=void 0===V?0:V,E=e.children,B=e.header,L=e.headerOffset,N=void 0===L?0:L,z=e.hideAfterCompletely,R=e.leftOffset,W=void 0===R?0:R,A=e.mainContainerHeader,D=e.mainContainerRef,F=e.setAfterHidden,U=e.setAfterMousedownActive,T=e.setAfterWidth,G=e.setBeforeHidden,X=e.setBeforeMousedownActive,$=e.setBeforeWidth,q=(e.uuid,(0,m.i)().width),Y=(0,i.useRef)(null),J=(0,i.useRef)(null),K=(0,i.useRef)(null),Q=(0,i.useRef)(null),ee=(0,i.useCallback)((function(){var e=!y;null===F||void 0===F||F(e),(0,g.t8)(g.zg,e)}),[y,F]),ne=(0,i.useCallback)((function(){var e=!H;G(e),(0,g.t8)(g.Uu,e)}),[H,G]);(0,i.useEffect)((function(){var e,n,t,i,r=function(e){var n,t;((null===K||void 0===K||null===(n=K.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).x;if(q){var i=e.x;i+h.l8>q-k&&(i=q-k-h.l8),i-=2*W,$(Math.max(i,h.dN))}},o=function(e){var n,t;e.offsetX>=e.target.offsetWidth-h.VW&&e.offsetX<=e.target.offsetWidth+h.VW&&(null===X||void 0===X||X(!0),e.preventDefault(),null===(n=document)||void 0===n||null===(t=n.addEventListener)||void 0===t||t.call(n,"mousemove",r,!1))},l=function(){var e,n;null===X||void 0===X||X(!1),null===(e=document)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousemove",r,!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===(i=t.addEventListener)||void 0===i||i.call(t,"mouseup",l,!1),function(){var e,n,t,i;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===(i=t.removeEventListener)||void 0===i||i.call(t,"mouseup",l,!1),l()}}),[k,H,W,K,Q,X,$,q]),(0,i.useEffect)((function(){var e,n,t,i,r=function(e){var n,t;((null===Y||void 0===Y||null===(n=Y.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).x;if(q){var i=q-e.x;i+h.l8>q-M&&(i=q-M-h.l8),T(Math.max(i,h.Md))}},o=function(e){var n,t;e.offsetX>=-1*h.VW&&e.offsetX<=h.VW&&(null===U||void 0===U||U(!0),e.preventDefault(),null===(n=document)||void 0===n||null===(t=n.addEventListener)||void 0===t||t.call(n,"mousemove",r,!1))},l=function(){var e,n;null===U||void 0===U||U(!1),null===(e=document)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousemove",r,!1)};return null===J||void 0===J||null===(e=J.current)||void 0===e||null===(n=e.addEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(i=t.addEventListener)||void 0===i||i.call(t,"mouseup",l,!1),function(){var e,n,t,i;null===J||void 0===J||null===(e=J.current)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(i=t.removeEventListener)||void 0===i||i.call(t,"mouseup",l,!1),l()}}),[y,M,Y,J,U,T,q]);var te=z&&y,ie=te?0:y?4*x.iI:k,re=H?4*x.iI:M,oe="calc(100% - ".concat(re+ie+W,"px)"),le=(0,i.useMemo)((function(){return(null===j||void 0===j?void 0:j.length)>=1}),[j]),de=(0,i.useMemo)((function(){return(0,b.jsxs)(b.Fragment,{children:[F&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.W7,{style:{width:le?ie-(v.k1+1):ie},visible:y,children:(0,b.jsxs)(a.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,children:[(0,b.jsxs)(c.Z,{children:[(0,b.jsx)(s.Z,{pl:y?1:2}),(0,b.jsxs)(l.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return ee()},children:[y&&(0,b.jsx)(p.s$,{neutral:!0,size:2*x.iI}),!y&&(0,b.jsx)(p._Q,{neutral:!0,size:2*x.iI})]})]}),!y&&t]})}),!y&&w&&(0,b.jsx)(h.YJ,{style:{width:ie},visible:y,children:w})]}),(0,b.jsx)(h.E$,{noScrollbarTrackBackground:!0,ref:Y,verticalOffset:t?r:null,children:!y&&n})]})}),[n,t,r,y,w,ie,le,Y,F,ee]),ce=(0,i.useMemo)((function(){return(null===P||void 0===P?void 0:P.length)>=1}),[P]),ae=(0,i.useMemo)((function(){return(0,b.jsxs)(b.Fragment,{children:[G&&(0,b.jsx)(h.W7,{style:{width:ce?re-(v.k1+1):re},visible:H,children:(0,b.jsxs)(a.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,justifyContent:"space-between",children:[(0,b.jsxs)(c.Z,{children:[(0,b.jsx)(s.Z,{pl:H?1:0}),!H&&I]}),(0,b.jsxs)(c.Z,{children:[(0,b.jsx)(u.Z,{block:!0,label:H?"Show sidebar":"Hide sidebar",size:null,widthFitContent:!0,children:(0,b.jsxs)(l.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return ne()},children:[H&&(0,b.jsx)(p._Q,{neutral:!0,size:2*x.iI}),!H&&(0,b.jsx)(p.s$,{neutral:!0,size:2*x.iI})]})},H?"before-is-hidden":"before-is-visible"),(0,b.jsx)(s.Z,{pr:H?1:2})]})]})}),(0,b.jsx)(h.Ru,{noScrollbarTrackBackground:!0,ref:K,verticalOffset:I?O:null,children:!H&&_})]})}),[_,I,O,H,re,ce,K,G,ne]);return(0,b.jsxs)(d.Z,{children:[(C&&!y||S&&!H)&&(0,b.jsx)(o(),{children:(0,b.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n body {\n cursor: col-resize;\n }\n "}})}),B&&(0,b.jsx)(h.MK,{children:B}),_&&(0,b.jsxs)(h.MP,{heightOffset:O,style:{left:W,width:re},children:[(0,b.jsx)(h.v7,{active:S,disabled:H,ref:Q,right:0}),ce&&(0,b.jsxs)(h.bC,{children:[!H&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.lU,{aligned:"left",children:(0,b.jsx)(v.lm,{borderLess:!0,children:(0,b.jsx)(f.Z,{aligned:"left",navigationItems:P})})}),(0,b.jsx)(h.S9,{aligned:"left",fullWidth:!0,heightOffset:O,widthOffset:v.k1+1,children:ae})]}),H&&ae]}),!ce&&ae]}),(0,b.jsxs)(h.rS,{style:{left:re+W,width:oe},children:[A,(0,b.jsx)(h.aH,{headerOffset:(A?h.uX:h.Wi)+N,style:{width:oe},children:(0,b.jsx)(h.Zj,{noScrollbarTrackBackground:!0,ref:D,children:E})})]}),n&&!te&&(0,b.jsxs)(h.ff,{heightOffset:r,style:{width:ie},children:[(0,b.jsx)(h.v7,{active:C,disabled:y,left:0,ref:J}),le&&(0,b.jsxs)(h.bC,{children:[!y&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.lU,{aligned:"right",children:(0,b.jsx)(v.lm,{borderLess:!0,children:(0,b.jsx)(f.Z,{aligned:"right",navigationItems:j})})}),(0,b.jsx)(h.S9,{aligned:"right",fullWidth:!0,heightOffset:r,widthOffset:v.k1+1,children:de})]}),y&&de]}),!le&&de]})]})}},41788:function(e,n,t){t.d(n,{Z:function(){return I}});var i=t(77837),r=t(26304),o=t(62243),l=t(29385),d=t(80022),c=t(99177),a=t(93189),s=t(15544),u=t(82394),f=t(38860),h=t.n(f),p=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 i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}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,i=(0,s.Z)(e);if(n){var r=(0,s.Z)(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.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,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e=t.call.apply(t,[this].concat(i)),(0,u.Z)((0,d.Z)(e),"state",{auth:new v.Z(e.props.token)}),e}return(0,l.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,r.Z)(n,w));return(0,j.jsx)(e,k({auth:this.state.auth},t))}}],[{key:"getInitialProps",value:function(){var n=(0,i.Z)(h().mark((function n(t){var i,r,o,l,d,c,a,s,u;return h().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=x()(t),r=(0,y.ex)(t),o=r.id,l=i[m.Mv],d=i[b.qt],c=new v.Z(l),a=k(k({},t),{},{auth:c,currentGroupId:o,theme:d}),(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:d}));case 12:return n.abrupt("return",a);case 13:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}]),a}(p.Component)}},882:function(e,n,t){var i=t(82394),r=t(26304),o=t(9518),l=t(60328),d=t(23831),c=t(73942),a=t(99994),s=t(49125),u=t(28598),f=["backgroundGradient","backgroundPanel","borderWidth","children","compact","paddingUnits","paddingUnitsHorizontal","paddingUnitsVertical"];function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(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||d.Z.background).page,";\n ")}),(function(e){return e.backgroundPanel&&"\n background-color: ".concat((e.theme.background||d.Z.background).panel,";\n ")}));n.Z=function(e){var n=e.backgroundGradient,t=void 0===n?a.TD:n,i=e.backgroundPanel,o=e.borderWidth,d=void 0===o?1:o,c=e.children,h=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,r.Z)(e,f),j=m,w=y;return x&&(j=x,w=x),h&&(j*=.75,w*=.75),(0,u.jsx)(l.Z,p(p({},C),{},{backgroundGradient:t,noPadding:!0,padding:"".concat(d,"px"),pointerEventsEnabled:!0,children:(0,u.jsx)(g,{backgroundPanel:i,children:(0,u.jsx)("div",{style:{paddingBottom:w*s.iI-d,paddingLeft:j*s.iI-d,paddingRight:j*s.iI-d,paddingTop:w*s.iI-d},children:c})})}))}},61519:function(e,n,t){var i=t(28598);n.Z=function(e){var n=e.size;return(0,i.jsxs)("svg",{width:n,height:n,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3H9V9H3V3ZM10 2V9H17V16H24V24H17H16H10H9H2V17V16V10V9V2H10ZM16 23V17H10V23H16ZM17 23H23V17H17V23ZM16 16V10H10V16H16ZM9 10V16H3V10H9ZM9 17V23H3V17H9Z",fill:"url(#paint0_linear_2738_140355)"}),(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:"paint0_linear_2738_140355",x1:"2",y1:"13",x2:"24",y2:"13",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}},29664:function(e,n,t){var i=t(28598);n.Z=function(e){var n=e.size;return(0,i.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"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,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:"paint0_linear_2798_59379",x1:"1",y1:"12",x2:"23",y2:"12",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}},99994:function(e,n,t){t.d(n,{eW:function(){return a},TD:function(){return d},yr:function(){return c}});var i=t(73899),r="#FF144D",o="#DEBB92",l="#2A60FE",d=("linear-gradient(90deg, ".concat(o,", ").concat("#CBFE00",")"),"linear-gradient(90deg, ".concat(r,", #C86DD7)")),c=("linear-gradient(90deg, ".concat("#95ECE2",", ").concat(l,")"),"linear-gradient(90deg, ".concat("#9B6CA7",", ").concat(o,")"),"linear-gradient(90deg, ".concat("#C72400",", ").concat(o,")"),"linear-gradient(100.38deg, ".concat(r," 41.11%, #FF9559 86.99%)"),"linear-gradient(100.38deg, ".concat("#6B50D7"," 41.11%, #677FFF 86.99%)"),"linear-gradient(100.38deg, ".concat(l," 41.11%, #B880FF 86.99%)"),"linear-gradient(90deg, ".concat(i.t4," 20.13%, #2AB2FE)")),a="linear-gradient(90deg, ".concat(i.Ck," 0%, ").concat(i.t4," 53.13%, ").concat(i.X_," 100%)")},66166:function(e,n,t){var i=t(82684);n.Z=function(e){var n=(0,i.useRef)();return(0,i.useEffect)((function(){n.current=e}),[e]),n.current}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4506],{15270:function(e,n,t){t.d(n,{Z:function(){return j}});var i=t(82684),r=t(34376),o=t(61519),l=t(57639),d=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 h=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"})]})]})]})},p=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,r.useRouter)().pathname,w=(0,i.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:h,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 i=e.Icon,r=e.IconSelected,o=e.id,l=e.isSelected,s=e.label,u=e.linkProps,f=e.onClick,h=l?l(j,e):!!j.match(new RegExp("^/".concat(o,"[/]*"))),v=h&&r?r:i;return(0,a.jsx)(p.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:[h&&r&&(0,a.jsx)(d.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})})}),(!h||h&&!r)&&(0,a.jsx)(c.ZP,{block:!0,linkProps:u,noHoverUnderline:!0,noPadding:!0,onClick:f,primary:h,sameColorAsText:!0,uuid:"VerticalNavigation/".concat(o),children:(0,a.jsx)(m.E7,{primary:!v,children:v?(0,a.jsx)(v,{muted:!h,size:C}):(0,a.jsx)(g.ZP,{children:"Edit"})})})]})},"button-".concat(o))}))}),[n,t,j]);return(0,a.jsx)(l.Z,{children:w})}},72454:function(e,n,t){t.d(n,{E7:function(){return p},HS:function(){return h},Nk:function(){return u},k1:function(){return s},lm:function(){return f}});var i=t(9518),r=t(23831),o=t(73942),l=t(3055),d=t(49125),c=t(37391),a=t(90880),s=d.cd*d.iI+5*d.iI+d.cd*d.iI+1,u=i.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%;",""],l.Mz,l.Mz,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).page,";\n ")})),f=i.default.div.withConfig({displayName:"indexstyle__VerticalNavigationStyle",componentId:"sc-ecogjt-1"})(["padding:","px;",""],d.cd*d.iI,(function(e){return!e.borderLess&&"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||r.Z.borders).medium,";\n ")})),h=i.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-ecogjt-2"})(["width:100%;padding:","px;position:sticky;top:0;z-index:3;",""],d.cd*d.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).page,";\n border-bottom: 1px solid ").concat((e.theme.borders||r.Z.borders).medium,";\n ")})),p=(i.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-ecogjt-3"})([""," overflow:auto;",""],c.w5,(function(e){return"\n height: calc(100vh - ".concat(l.Mz+(e.heightOffset||0),"px);\n ")})),i.default.div.withConfig({displayName:"indexstyle__NavigationItemStyle",componentId:"sc-ecogjt-4"})(["display:flex;align-items:center;justify-content:center;padding:","px;border-radius:","px;",""],d.iI,o.n_,(function(e){return e.primary&&"\n ".concat((0,a.eR)(),"\n background: ").concat((e.theme||r.Z).chart.backgroundPrimary,";\n border: 1px solid ").concat((e.theme||r.Z).feature.active,";\n\n &:hover {\n background-color: ").concat((e.theme||r.Z).interactive.linkSecondary,";\n }\n ")})))},49894:function(e,n,t){t.d(n,{Z:function(){return v}});var i=t(82684),r=t(60328),o=t(10919),l=t(86673),d=t(19711),c=t(10503),a=t(9518),s=t(23831),u=t(73942),f=t(49125),h=t(37391),p=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 ")}),h.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,h=e.response,v=(0,i.useState)(!1),m=v[0],b=v[1],y=(0,i.useState)(!1),C=y[0],j=y[1],w=(s||{}).messages,Z=(null===h||void 0===h?void 0:h.error)||{},k=Z.errors,_=Z.exception,I=Z.message,O=a,H=w;return I&&(H=I.split("\n")),_||O||null===(n=H)||void 0===n||!n[0]||(O=H[0],H=null),(0,x.jsxs)(p,{children:[(0,x.jsx)(g,{children:(0,x.jsx)(r.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:f,title:"Close errors",children:(0,x.jsx)(c.x8,{})})}),(0,x.jsx)(d.ZP,{bold:!0,large:!0,children:"Error"}),O&&(0,x.jsx)(l.Z,{mt:1,children:(0,x.jsx)(d.ZP,{default:!0,children:O})}),_&&(0,x.jsx)(l.Z,{mt:1,children:(0,x.jsx)(d.ZP,{default:!0,disableWordBreak:!0,monospace:!0,children:_})}),(null===(t=H)||void 0===t?void 0:t.length)>0&&(0,x.jsxs)(l.Z,{mt:2,children:[(0,x.jsxs)(d.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)(l.Z,{mt:1,children:H.map((function(e){return(0,x.jsx)(d.ZP,{dangerouslySetInnerHTML:{__html:e.replaceAll(" ","&nbsp;")},default:!0,disableWordBreak:!0,monospace:!0},e)}))})]}),k&&(0,x.jsxs)(l.Z,{mt:2,children:[(0,x.jsxs)(d.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)(l.Z,{mt:1,children:k.map((function(e){return(0,x.jsx)(d.ZP,{dangerouslySetInnerHTML:{__html:e.replaceAll(" ","&nbsp;")},default:!0,disableWordBreak:!0,monospace:!0},e)}))})]}),null===u||void 0===u?void 0:u.map((function(e,n){var t=e.label,i=e.onClick;return(0,x.jsx)(l.Z,{mt:2,children:(0,x.jsx)(o.Z,{large:!0,onClick:i,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},S9:function(){return E},VW:function(){return h},W7:function(){return j},Wi:function(){return g},YJ:function(){return w},Zj:function(){return P},Zt:function(){return a},aH:function(){return S},bC:function(){return V},dN:function(){return u},ff:function(){return _},l8:function(){return p},lU:function(){return M},rS:function(){return H},uX:function(){return v},v7:function(){return O},ve:function(){return f}});var i=t(9518),r=t(23831),o=t(73942),l=t(3055),d=t(49125),c=t(37391),a=64*d.iI,s=3*d.cd*d.iI,u=s,f=35*d.iI,h=.5*d.iI,p=13*d.iI,g=3*d.cd*d.iI,x=6*d.iI,v=2*d.cd*3*d.iI,m=(i.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||r.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 ")})),i.default.div.withConfig({displayName:"indexstyle__NewHeaderStyle",componentId:"sc-1lxpneo-1"})(["height:","px;position:fixed;top:0;width:100%;z-index:4;"],l.Mz)),b=(i.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*d.iI,2*d.iI,(function(e){return"\n border-left: 1px solid ".concat((e.theme.monotone||r.Z.monotone).grey200,";\n border-right: 1px solid ").concat((e.theme.monotone||r.Z.monotone).grey200,";\n border-top: 1px solid ").concat((e.theme.monotone||r.Z.monotone).grey200,";\n ")}),(function(e){return!e.first&&"\n margin-left: ".concat(1*d.iI,"px;\n ")}),(function(e){return e.selected&&"\n border-bottom: 1px solid ".concat((e.theme.monotone||r.Z.monotone).white,";\n ")})),(0,i.css)(["position:fixed;z-index:2;",""],(function(e){return"\n background-color: ".concat((e.theme.background||r.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,i.css)([""," height:100%;overflow:auto;position:relative;z-index:2;",""],c.w5,(function(e){return e.verticalOffset&&"\n height: calc(100% - ".concat(e.verticalOffset,"px);\n top: ").concat(e.verticalOffset,"px;\n ")})),C=(0,i.css)(["height:calc(100% + ","px);position:absolute;top:-","px;width:","px;z-index:6;&:hover{","}"," ",""],g,g,h,(function(e){return!e.disabled&&"\n border-color: ".concat((e.theme.text||r.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||r.Z.text).fileBrowser," !important;\n ")})),j=i.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||r.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||r.Z.borders).medium," !important;\n ")})),w=i.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||r.Z.background).table,";\n ")}),(function(e){return!e.visible&&"\n border-color: ".concat((e.theme.borders||r.Z.borders).medium," !important;\n ")})),Z=i.default.aside.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-1lxpneo-5"})([""," left:0;"],b),k=i.default.div.withConfig({displayName:"indexstyle__BeforeInnerStyle",componentId:"sc-1lxpneo-6"})([""," overflow:hidden;&:hover{overflow:auto;}"],y),_=i.default.aside.withConfig({displayName:"indexstyle__AfterStyle",componentId:"sc-1lxpneo-7"})([""," right:0;"],b),I=i.default.div.withConfig({displayName:"indexstyle__AfterInnerStyle",componentId:"sc-1lxpneo-8"})(["",""],y),O=i.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||r.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||r.Z.borders).medium,";\n right: ").concat(e.right,"px;\n ")})),H=i.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||r.Z.background).codeArea,";\n ")})),S=i.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 ")})),P=i.default.div.withConfig({displayName:"indexstyle__MainContentInnerStyle",componentId:"sc-1lxpneo-12"})([""," height:100%;overflow:auto;"],c.w5),V=i.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-1lxpneo-13"})(["position:relative;"]),M=i.default.div.withConfig({displayName:"indexstyle__NavigationInnerStyle",componentId:"sc-1lxpneo-14"})(["height:100%;position:fixed;"," ",""],(function(e){return"left"===e.aligned&&"\n border-right: 1px solid ".concat((e.theme.borders||r.Z.borders).medium,";\n left: 0;\n ")}),(function(e){return"right"===e.aligned&&"\n border-left: 1px solid ".concat((e.theme.borders||r.Z.borders).medium,";\n right: 0;\n ")})),E=i.default.div.withConfig({displayName:"indexstyle__NavigationContainerStyle",componentId:"sc-1lxpneo-15"})([""," overflow:auto;position:absolute;width:fit-content;"," "," "," ",""],c.w5,(function(e){return"\n height: calc(100vh - ".concat(e.heightOffset,"px);\n ")}),(function(e){return e.fullWidth&&"\n width: calc(100% - ".concat(e.widthOffset||0,"px);\n ")}),(function(e){return e.widthOffset&&"left"===e.aligned&&"\n left: ".concat(e.widthOffset,"px;\n ")}),(function(e){return e.widthOffset&&"right"===e.aligned&&"\n right: ".concat(e.widthOffset,"px;\n ")}))},32063:function(e,n,t){var i=t(82684),r=t(1887),o=t.n(r),l=t(60328),d=t(57639),c=t(93461),a=t(67971),s=t(86673),u=t(46261),f=t(15270),h=t(82386),p=t(10503),g=t(91427),x=t(49125),v=t(72454),m=t(24141),b=t(28598);n.Z=function(e){var n=e.after,t=e.afterHeader,r=e.afterHeightOffset,y=e.afterHidden,C=e.afterMousedownActive,j=e.afterNavigationItems,w=e.afterSubheader,Z=e.afterWidth,k=void 0===Z?0:Z,_=e.before,I=e.beforeHeader,O=e.beforeHeightOffset,H=e.beforeHidden,S=e.beforeMousedownActive,P=e.beforeNavigationItems,V=e.beforeWidth,M=void 0===V?0:V,E=e.children,B=e.header,L=e.headerOffset,N=void 0===L?0:L,z=e.hideAfterCompletely,R=e.leftOffset,W=void 0===R?0:R,A=e.mainContainerHeader,D=e.mainContainerRef,F=e.setAfterHidden,U=e.setAfterMousedownActive,T=e.setAfterWidth,G=e.setBeforeHidden,X=e.setBeforeMousedownActive,$=e.setBeforeWidth,q=(e.uuid,(0,m.i)().width),Y=(0,i.useRef)(null),J=(0,i.useRef)(null),K=(0,i.useRef)(null),Q=(0,i.useRef)(null),ee=(0,i.useCallback)((function(){var e=!y;null===F||void 0===F||F(e),(0,g.t8)(g.zg,e)}),[y,F]),ne=(0,i.useCallback)((function(){var e=!H;G(e),(0,g.t8)(g.Uu,e)}),[H,G]);(0,i.useEffect)((function(){var e,n,t,i,r=function(e){var n,t;((null===K||void 0===K||null===(n=K.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).x;if(q){var i=e.x;i+h.l8>q-k&&(i=q-k-h.l8),i-=2*W,$(Math.max(i,h.dN))}},o=function(e){var n,t;e.offsetX>=e.target.offsetWidth-h.VW&&e.offsetX<=e.target.offsetWidth+h.VW&&(null===X||void 0===X||X(!0),e.preventDefault(),null===(n=document)||void 0===n||null===(t=n.addEventListener)||void 0===t||t.call(n,"mousemove",r,!1))},l=function(){var e,n;null===X||void 0===X||X(!1),null===(e=document)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousemove",r,!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===(i=t.addEventListener)||void 0===i||i.call(t,"mouseup",l,!1),function(){var e,n,t,i;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===(i=t.removeEventListener)||void 0===i||i.call(t,"mouseup",l,!1),l()}}),[k,H,W,K,Q,X,$,q]),(0,i.useEffect)((function(){var e,n,t,i,r=function(e){var n,t;((null===Y||void 0===Y||null===(n=Y.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).x;if(q){var i=q-e.x;i+h.l8>q-M&&(i=q-M-h.l8),T(Math.max(i,h.Md))}},o=function(e){var n,t;e.offsetX>=-1*h.VW&&e.offsetX<=h.VW&&(null===U||void 0===U||U(!0),e.preventDefault(),null===(n=document)||void 0===n||null===(t=n.addEventListener)||void 0===t||t.call(n,"mousemove",r,!1))},l=function(){var e,n;null===U||void 0===U||U(!1),null===(e=document)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousemove",r,!1)};return null===J||void 0===J||null===(e=J.current)||void 0===e||null===(n=e.addEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(i=t.addEventListener)||void 0===i||i.call(t,"mouseup",l,!1),function(){var e,n,t,i;null===J||void 0===J||null===(e=J.current)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(i=t.removeEventListener)||void 0===i||i.call(t,"mouseup",l,!1),l()}}),[y,M,Y,J,U,T,q]);var te=z&&y,ie=te?0:y?4*x.iI:k,re=H?4*x.iI:M,oe="calc(100% - ".concat(re+ie+W,"px)"),le=(0,i.useMemo)((function(){return(null===j||void 0===j?void 0:j.length)>=1}),[j]),de=(0,i.useMemo)((function(){return(0,b.jsxs)(b.Fragment,{children:[F&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.W7,{style:{width:le?ie-(v.k1+1):ie},visible:y,children:(0,b.jsxs)(a.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,children:[(0,b.jsxs)(c.Z,{children:[(0,b.jsx)(s.Z,{pl:y?1:2}),(0,b.jsxs)(l.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return ee()},children:[y&&(0,b.jsx)(p.s$,{neutral:!0,size:2*x.iI}),!y&&(0,b.jsx)(p._Q,{neutral:!0,size:2*x.iI})]})]}),!y&&t]})}),!y&&w&&(0,b.jsx)(h.YJ,{style:{width:ie},visible:y,children:w})]}),(0,b.jsx)(h.E$,{noScrollbarTrackBackground:!0,ref:Y,verticalOffset:t?r:null,children:!y&&n})]})}),[n,t,r,y,w,ie,le,Y,F,ee]),ce=(0,i.useMemo)((function(){return(null===P||void 0===P?void 0:P.length)>=1}),[P]),ae=(0,i.useMemo)((function(){return(0,b.jsxs)(b.Fragment,{children:[G&&(0,b.jsx)(h.W7,{style:{width:ce?re-(v.k1+1):re},visible:H,children:(0,b.jsxs)(a.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,justifyContent:"space-between",children:[(0,b.jsxs)(c.Z,{children:[(0,b.jsx)(s.Z,{pl:H?1:0}),!H&&I]}),(0,b.jsxs)(c.Z,{children:[(0,b.jsx)(u.Z,{block:!0,label:H?"Show sidebar":"Hide sidebar",size:null,widthFitContent:!0,children:(0,b.jsxs)(l.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return ne()},children:[H&&(0,b.jsx)(p._Q,{neutral:!0,size:2*x.iI}),!H&&(0,b.jsx)(p.s$,{neutral:!0,size:2*x.iI})]})},H?"before-is-hidden":"before-is-visible"),(0,b.jsx)(s.Z,{pr:H?1:2})]})]})}),(0,b.jsx)(h.Ru,{noScrollbarTrackBackground:!0,ref:K,verticalOffset:I?O:null,children:!H&&_})]})}),[_,I,O,H,re,ce,K,G,ne]);return(0,b.jsxs)(d.Z,{children:[(C&&!y||S&&!H)&&(0,b.jsx)(o(),{children:(0,b.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n body {\n cursor: col-resize;\n }\n "}})}),B&&(0,b.jsx)(h.MK,{children:B}),_&&(0,b.jsxs)(h.MP,{heightOffset:O,style:{left:W,width:re},children:[(0,b.jsx)(h.v7,{active:S,disabled:H,ref:Q,right:0}),ce&&(0,b.jsxs)(h.bC,{children:[!H&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.lU,{aligned:"left",children:(0,b.jsx)(v.lm,{borderLess:!0,children:(0,b.jsx)(f.Z,{aligned:"left",navigationItems:P})})}),(0,b.jsx)(h.S9,{aligned:"left",fullWidth:!0,heightOffset:O,widthOffset:v.k1+1,children:ae})]}),H&&ae]}),!ce&&ae]}),(0,b.jsxs)(h.rS,{style:{left:re+W,width:oe},children:[A,(0,b.jsx)(h.aH,{headerOffset:(A?h.uX:h.Wi)+N,style:{width:oe},children:(0,b.jsx)(h.Zj,{noScrollbarTrackBackground:!0,ref:D,children:E})})]}),n&&!te&&(0,b.jsxs)(h.ff,{heightOffset:r,style:{width:ie},children:[(0,b.jsx)(h.v7,{active:C,disabled:y,left:0,ref:J}),le&&(0,b.jsxs)(h.bC,{children:[!y&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.lU,{aligned:"right",children:(0,b.jsx)(v.lm,{borderLess:!0,children:(0,b.jsx)(f.Z,{aligned:"right",navigationItems:j})})}),(0,b.jsx)(h.S9,{aligned:"right",fullWidth:!0,heightOffset:r,widthOffset:v.k1+1,children:de})]}),y&&de]}),!le&&de]})]})}},41788:function(e,n,t){t.d(n,{Z:function(){return I}});var i=t(77837),r=t(26304),o=t(62243),l=t(29385),d=t(80022),c=t(99177),a=t(93189),s=t(15544),u=t(82394),f=t(38860),h=t.n(f),p=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 i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}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,i=(0,s.Z)(e);if(n){var r=(0,s.Z)(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.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,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e=t.call.apply(t,[this].concat(i)),(0,u.Z)((0,d.Z)(e),"state",{auth:new v.Z(e.props.token)}),e}return(0,l.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,r.Z)(n,w));return(0,j.jsx)(e,k({auth:this.state.auth},t))}}],[{key:"getInitialProps",value:function(){var n=(0,i.Z)(h().mark((function n(t){var i,r,o,l,d,c,a,s,u;return h().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=x()(t),r=(0,y.ex)(t),o=r.id,l=i[m.Mv],d=i[b.qt],c=new v.Z(l),a=k(k({},t),{},{auth:c,currentGroupId:o,theme:d}),(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:d}));case 12:return n.abrupt("return",a);case 13:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}]),a}(p.Component)}},882:function(e,n,t){var i=t(82394),r=t(26304),o=t(9518),l=t(60328),d=t(23831),c=t(73942),a=t(99994),s=t(49125),u=t(28598),f=["backgroundGradient","backgroundPanel","borderWidth","children","compact","paddingUnits","paddingUnitsHorizontal","paddingUnitsVertical"];function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(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||d.Z.background).page,";\n ")}),(function(e){return e.backgroundPanel&&"\n background-color: ".concat((e.theme.background||d.Z.background).panel,";\n ")}));n.Z=function(e){var n=e.backgroundGradient,t=void 0===n?a.TD:n,i=e.backgroundPanel,o=e.borderWidth,d=void 0===o?1:o,c=e.children,h=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,r.Z)(e,f),j=m,w=y;return x&&(j=x,w=x),h&&(j*=.75,w*=.75),(0,u.jsx)(l.Z,p(p({},C),{},{backgroundGradient:t,noPadding:!0,padding:"".concat(d,"px"),pointerEventsEnabled:!0,children:(0,u.jsx)(g,{backgroundPanel:i,children:(0,u.jsx)("div",{style:{paddingBottom:w*s.iI-d,paddingLeft:j*s.iI-d,paddingRight:j*s.iI-d,paddingTop:w*s.iI-d},children:c})})}))}},61519:function(e,n,t){var i=t(28598);n.Z=function(e){var n=e.size;return(0,i.jsxs)("svg",{width:n,height:n,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3H9V9H3V3ZM10 2V9H17V16H24V24H17H16H10H9H2V17V16V10V9V2H10ZM16 23V17H10V23H16ZM17 23H23V17H17V23ZM16 16V10H10V16H16ZM9 10V16H3V10H9ZM9 17V23H3V17H9Z",fill:"url(#paint0_linear_2738_140355)"}),(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:"paint0_linear_2738_140355",x1:"2",y1:"13",x2:"24",y2:"13",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}},29664:function(e,n,t){var i=t(28598);n.Z=function(e){var n=e.size;return(0,i.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"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,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:"paint0_linear_2798_59379",x1:"1",y1:"12",x2:"23",y2:"12",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}},99994:function(e,n,t){t.d(n,{eW:function(){return a},TD:function(){return d},yr:function(){return c}});var i=t(73899),r="#FF144D",o="#DEBB92",l="#2A60FE",d=("linear-gradient(90deg, ".concat(o,", ").concat("#CBFE00",")"),"linear-gradient(90deg, ".concat(r,", #C86DD7)")),c=("linear-gradient(90deg, ".concat("#95ECE2",", ").concat(l,")"),"linear-gradient(90deg, ".concat("#9B6CA7",", ").concat(o,")"),"linear-gradient(90deg, ".concat("#C72400",", ").concat(o,")"),"linear-gradient(100.38deg, ".concat(r," 41.11%, #FF9559 86.99%)"),"linear-gradient(100.38deg, ".concat("#6B50D7"," 41.11%, #677FFF 86.99%)"),"linear-gradient(100.38deg, ".concat(l," 41.11%, #B880FF 86.99%)"),"linear-gradient(90deg, ".concat(i.t4," 20.13%, #2AB2FE)")),a="linear-gradient(90deg, ".concat(i.Ck," 0%, ").concat(i.t4," 53.13%, ").concat(i.X_," 100%)")},66166:function(e,n,t){var i=t(82684);n.Z=function(e){var n=(0,i.useRef)();return(0,i.useEffect)((function(){n.current=e}),[e]),n.current}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4741],{1210:function(e,n,t){t.d(n,{Z:function(){return y}});var r=t(82394),i=t(21831),o=t(82684),u=t(47999),c=t(28358),l=t(93461),s=t(57384),a=t(12344),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var h=o.forwardRef(p),j=t(32063),v=t(15270),b=t(82531),g=t(66166),m=t(3055),x=t(49125),Z=t(91427),O=t(24141);function _(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var y=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,_=e.afterWidthOverride,y=e.before,E=e.beforeWidth,w=e.breadcrumbs,P=e.children,I=e.errors,k=e.headerMenuItems,D=e.navigationItems,A=e.setErrors,S=e.subheaderChildren,N=e.title,R=e.uuid,T=(0,O.i)().width,L="dashboard_after_width_".concat(R),M="dashboard_before_width_".concat(R),V=(0,o.useRef)(null),H=(0,o.useState)(_?p:(0,Z.U2)(L,p)),U=H[0],Y=H[1],F=(0,o.useState)(!1),B=F[0],z=F[1],W=(0,o.useState)(y?Math.max((0,Z.U2)(M,E),13*x.iI):null),J=W[0],G=W[1],X=(0,o.useState)(!1),$=X[0],q=X[1],K=(0,o.useState)(null)[1],Q=b.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===Q||void 0===Q?void 0:Q.projects,ne=[];w?ne.push.apply(ne,(0,i.Z)(w)):(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 N}}]),(0,o.useEffect)((function(){null===V||void 0===V||!V.current||B||$||null===K||void 0===K||K(V.current.getBoundingClientRect().width)}),[B,U,$,J,V,K,T]),(0,o.useEffect)((function(){B||(0,Z.t8)(L,U)}),[r,B,U,L]),(0,o.useEffect)((function(){$||(0,Z.t8)(M,J)}),[$,J,M]);var te=(0,g.Z)(p);return(0,o.useEffect)((function(){_&&te!==p&&Y(p)}),[_,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:N}),(0,f.jsx)(a.Z,{breadcrumbs:ne,menuItems:k,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(v.Z,{navigationItems:D})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(j.Z,{after:t,afterHeightOffset:m.Mz,afterHidden:r,afterMousedownActive:B,afterWidth:U,before:y,beforeHeightOffset:m.Mz,beforeMousedownActive:$,beforeWidth:d.k1+(y?J:0),hideAfterCompletely:!0,leftOffset:y?d.k1:null,mainContainerRef:V,setAfterMousedownActive:z,setAfterWidth:Y,setBeforeMousedownActive:q,setBeforeWidth:G,children:[S&&(0,f.jsx)(h,{children:S}),P]})})]}),I&&(0,f.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===A||void 0===A?void 0:A(null)},children:(0,f.jsx)(c.Z,C(C({},I),{},{onClose:function(){return null===A||void 0===A?void 0:A(null)}}))})]})}},65597:function(e,n,t){t.d(n,{f:function(){return c}});var r=t(9518),i=t(23831),o=t(49125),u=t(73942),c=r.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*o.iI,u.TR,2*o.iI,(function(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 ")}))},97496:function(e,n,t){var r=t(75582),i=t(12691),o=t.n(i),u=t(34376),c=t.n(u),l=t(82684),s=t(83455),a=t(60328),d=t(47999),f=t(93461),p=t(67971),h=t(10919),j=t(47409),v=t(86673),b=t(54283),g=t(58180),m=t(19711),x=t(82531),Z=t(23831),O=t(73942),_=t(10503),C=t(65597),y=t(93348),E=t(45838),w=t(49125),P=t(42305),I=t(19395),k=t(9736),D=t(96510),A=t(28598);function S(e){var n=e.cancelingRunId,t=e.disabled,i=e.isLoadingCancelPipeline,o=e.onCancel,u=e.onSuccess,c=e.pipelineRun,f=e.setCancelingRunId,h=e.setErrors,g=e.setShowConfirmationId,E=e.showConfirmationId,I=(0,k.Ct)(),S=c||{},N=S.id,R=S.pipeline_schedule_id,T=S.pipeline_schedule_token,L=S.pipeline_schedule_type,M=S.status,V=i&&N===n&&j.V.RUNNING===M,H=(0,s.Db)(y.Xm.API===L&&T?x.ZP.pipeline_runs.pipeline_schedules.useCreateWithParent(R,T):x.ZP.pipeline_runs.pipeline_schedules.useCreate(R),{onSuccess:function(e){return(0,D.wD)(e,{callback:function(){u()},onErrorCallback:function(e,n){return null===h||void 0===h?void 0:h({errors:n,response:e})}})}}),U=(0,r.Z)(H,1)[0],Y=(0,l.useCallback)((function(){g(null),U({pipeline_run:{execution_date:(0,P.d$)((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0}),pipeline_schedule_id:null===c||void 0===c?void 0:c.pipeline_schedule_id,pipeline_uuid:null===c||void 0===c?void 0:c.pipeline_uuid,variables:null===c||void 0===c?void 0:c.variables}})}),[U,c,g]),F=(0,l.useCallback)((function(){g(null),f(N),o({id:N,status:j.V.CANCELLED})}),[o,N,f,g]);return(0,A.jsxs)("div",{style:{position:"relative"},children:[(0,A.jsx)(a.Z,{backgroundColor:V&&Z.Z.accent.yellow,beforeIcon:j.V.INITIAL!==M&&!t&&(0,A.jsxs)(A.Fragment,{children:[j.V.COMPLETED===M&&(0,A.jsx)(_.Jr,{size:2*w.iI}),[j.V.FAILED,j.V.CANCELLED].includes(M)&&(0,A.jsx)(_.Py,{inverted:j.V.CANCELLED===M&&!I,size:2*w.iI}),[j.V.RUNNING].includes(M)&&(0,A.jsx)(b.Z,{color:V?Z.Z.status.negative:Z.Z.monotone.white,small:!0})]}),borderRadius:O.D7,danger:j.V.FAILED===M&&!I,default:j.V.INITIAL===M,disabled:t||I,loading:!c,onClick:function(){return g(N)},padding:"6px",primary:j.V.RUNNING===M&&!V&&!I,warning:j.V.CANCELLED===M&&!I,children:t?"Ready":V?"Canceling":j.D[M]}),(0,A.jsx)(d.Z,{onClickOutside:function(){return g(null)},open:E===N,children:(0,A.jsxs)(C.f,{children:[[j.V.RUNNING,j.V.INITIAL].includes(M)&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(m.ZP,{bold:!0,color:"#9ECBFF",children:"Run is in progress"}),(0,A.jsx)(v.Z,{mb:1}),(0,A.jsxs)(m.ZP,{children:["This pipeline run is currently ongoing. Retrying will cancel",(0,A.jsx)("br",{}),"the current pipeline run."]}),(0,A.jsx)(m.ZP,{}),(0,A.jsx)(v.Z,{mt:1,children:(0,A.jsxs)(p.Z,{children:[(0,A.jsx)(a.Z,{onClick:function(){F(),Y()},children:"Retry run"}),(0,A.jsx)(v.Z,{ml:1}),(0,A.jsx)(a.Z,{onClick:F,children:"Cancel run"})]})})]}),[j.V.CANCELLED,j.V.FAILED,j.V.COMPLETED].includes(M)&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(m.ZP,{bold:!0,color:"#9ECBFF",children:["Run ",M]}),(0,A.jsx)(v.Z,{mb:1}),(0,A.jsx)(m.ZP,{children:"Retry the run with changes you have made to the pipeline."}),(0,A.jsx)(v.Z,{mb:1}),(0,A.jsx)(a.Z,{onClick:Y,children:"Retry run"})]})]})})]})}n.Z=function(e){var n=e.disableRowSelect,t=e.emptyMessage,i=void 0===t?"No runs available":t,u=e.fetchPipelineRuns,d=e.onClickRow,b=e.pipelineRuns,Z=e.selectedRun,C=e.setErrors,y=(0,l.useState)(null),P=y[0],k=y[1],N=(0,l.useState)(null),R=N[0],T=N[1],L=(0,s.Db)((function(e){var n=e.id,t=e.status;return x.ZP.pipeline_runs.useUpdate(n)({pipeline_run:{status:t}})}),{onSuccess:function(e){return(0,D.wD)(e,{callback:function(){k(null),u()},onErrorCallback:function(e,n){k(null),null===C||void 0===C||C({errors:n,response:e})}})}}),M=(0,r.Z)(L,2),V=M[0],H=M[1].isLoading,U=[null,1,2,1,1,null],Y=[{uuid:"Status"},{uuid:"Pipeline UUID"},{uuid:"Date"},{uuid:"Trigger"},{uuid:"Block runs"},{uuid:"Completed"},{uuid:"Logs"}];return!n&&d&&(U.push(null),Y.push({label:function(){return""},uuid:"action"})),(0,A.jsx)(E.cl,{minHeight:30*w.iI,overflowVisible:!!R,children:0===(null===b||void 0===b?void 0:b.length)?(0,A.jsx)(v.Z,{px:3,py:1,children:(0,A.jsx)(m.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:i})}):(0,A.jsx)(g.Z,{columnFlex:U,columns:Y,isSelectedRow:function(e){return!n&&b[e].id===(null===Z||void 0===Z?void 0:Z.id)},onClickRow:n?null:d,rowVerticalPadding:6,rows:null===b||void 0===b?void 0:b.map((function(e,t){var r=e.block_runs_count,i=e.completed_at,l=e.execution_date,s=e.id,g=e.pipeline_schedule_id,x=e.pipeline_schedule_name,Z=e.pipeline_uuid,y=e.status,E=!s&&!y,D=[];return D=t>0&&b[t-1].execution_date===e.execution_date&&b[t-1].pipeline_schedule_id===e.pipeline_schedule_id?[(0,A.jsx)(v.Z,{ml:1,children:(0,A.jsxs)(p.Z,{alignItems:"center",children:[(0,A.jsx)(_.TT,{size:2*w.iI,useStroke:!0}),(0,A.jsx)(a.Z,{borderRadius:O.D7,notClickable:!0,padding:"6px",children:(0,A.jsx)(m.ZP,{muted:!0,children:j.D[y]})})]})},"row_status"),(0,A.jsx)(m.ZP,{default:!0,monospace:!0,muted:!0,children:Z},"row_pipeline_uuid"),(0,A.jsx)(m.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_date_retry"),(0,A.jsx)(m.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_trigger_retry"),(0,A.jsx)(o(),{as:"/pipelines/".concat(Z,"/runs/").concat(s),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,A.jsx)(h.Z,{bold:!0,muted:!0,children:"See block runs (".concat(r,")")})},"row_block_runs"),(0,A.jsx)(m.ZP,{monospace:!0,muted:!0,children:i&&(0,I.Vx)(i)||"-"},"row_completed"),(0,A.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(Z,"/logs?pipeline_run_id[]=").concat(s))},children:(0,A.jsx)(_.B4,{default:!0,size:2*w.iI})},"row_logs")]:[(0,A.jsx)(S,{cancelingRunId:P,disabled:E,isLoadingCancelPipeline:H,onCancel:V,onSuccess:u,pipelineRun:e,setCancelingRunId:k,setErrors:C,setShowConfirmationId:T,showConfirmationId:R},"row_retry_button"),(0,A.jsx)(m.ZP,{default:!0,monospace:!0,children:Z},"row_pipeline_uuid"),(0,A.jsx)(m.ZP,{default:!0,monospace:!0,children:l&&(0,I.Vx)(l)||"-"},"row_date"),(0,A.jsx)(o(),{as:"/pipelines/".concat(Z,"/triggers/").concat(g),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,A.jsx)(h.Z,{bold:!0,sameColorAsText:!0,children:x})},"row_trigger"),(0,A.jsx)(o(),{as:"/pipelines/".concat(Z,"/runs/").concat(s),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,A.jsx)(h.Z,{bold:!0,disabled:E,sameColorAsText:!0,children:E?"":"See block runs (".concat(r,")")})},"row_block_runs"),(0,A.jsx)(m.ZP,{default:!0,monospace:!0,children:i&&(0,I.Vx)(i)||"-"},"row_completed"),(0,A.jsx)(a.Z,{default:!0,disabled:E,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(Z,"/logs?pipeline_run_id[]=").concat(s))},children:(0,A.jsx)(_.B4,{default:!0,size:2*w.iI})},"row_item_13")],!n&&d&&D.push((0,A.jsx)(f.Z,{flex:1,justifyContent:"flex-end",children:(0,A.jsx)(_._Q,{default:!0,size:2*w.iI})})),D})),uuid:"pipeline-runs"})})}},19395:function(e,n,t){t.d(n,{IJ:function(){return a},Vx:function(){return f},eI:function(){return d},gU:function(){return h},tL:function(){return p},vJ:function(){return j}});var r,i,o=t(82394),u=t(92083),c=t.n(u);function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,r=n.completed_at,i=n.started_at,u=n.status,l=null;i&&r&&(l=c()(r).valueOf()-c()(i).valueOf());return s(s({},e),{},(0,o.Z)({},t,{runtime:l,status:u}))}),{})}function d(e){if(!e)return null;var n=new Date(c()(e).valueOf()),t=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());return new Date(t)}function f(e){return"string"!==typeof e?e:d(e.split("+")[0]).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(i||(i={}));var p=(r={},(0,o.Z)(r,i.DAY,86400),(0,o.Z)(r,i.HOUR,3600),(0,o.Z)(r,i.MINUTE,60),(0,o.Z)(r,i.SECOND,1),r);function h(e){var n=i.SECOND,t=e;return e%86400===0?(t/=86400,n=i.DAY):e%3600===0?(t/=3600,n=i.HOUR):e%60===0&&(t/=60,n=i.MINUTE),{time:t,unit:n}}function j(e,n){return e*p[n]}},51099:function(e,n,t){t.d(n,{Q:function(){return a}});t(82684);var r=t(60328),i=t(67971),o=t(86673),u=t(10503),c=t(73899),l=t(49125),s=t(28598),a=22;n.Z=function(e){var n=e.page,t=e.maxPages,a=e.onUpdate,d=e.totalPages,f=[],p=t;if(p>d)f=Array.from({length:d},(function(e,n){return n}));else{var h=Math.floor(p/2),j=n-h;n+h>=d?(j=d-p+2,p-=2):n-h<=0?(j=0,p-=2):(p-=4,j=n-Math.floor(p/2)),f=Array.from({length:p},(function(e,n){return n+j}))}return(0,s.jsx)(s.Fragment,{children:d>0&&(0,s.jsxs)(i.Z,{alignItems:"center",children:[(0,s.jsx)(r.Z,{disabled:0===n,onClick:function(){return a(n-1)},children:(0,s.jsx)(u.Hd,{size:1.5*l.iI,stroke:"#AEAEAE"})}),!f.includes(0)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){return a(0)},borderLess:!0,noBackground:!0,children:1})},0),!f.includes(1)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0)]}),f.map((function(e){return(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){e!==n&&a(e)},notClickable:e===n,backgroundColor:e===n&&c.a$,borderLess:!0,noBackground:!0,children:e+1})},e)})),!f.includes(d-1)&&(0,s.jsxs)(s.Fragment,{children:[!f.includes(d-2)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0),(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){return a(d-1)},borderLess:!0,noBackground:!0,children:d})},d-1)]}),(0,s.jsx)(o.Z,{ml:1}),(0,s.jsx)(r.Z,{disabled:n===d-1,onClick:function(){return a(n+1)},children:(0,s.jsx)(u.Kw,{size:1.5*l.iI,stroke:"#AEAEAE"})})]})})}},47409:function(e,n,t){t.d(n,{D:function(){return u},V:function(){return o}});var r,i=t(82394),o=t(66050).V,u=(r={},(0,i.Z)(r,o.CANCELLED,"Cancelled"),(0,i.Z)(r,o.COMPLETED,"Done"),(0,i.Z)(r,o.FAILED,"Failed"),(0,i.Z)(r,o.INITIAL,"Ready"),(0,i.Z)(r,o.RUNNING,"Running"),r)},93348:function(e,n,t){t.d(n,{TR:function(){return d},U5:function(){return l},Xm:function(){return o},Z4:function(){return a},fq:function(){return c},kJ:function(){return s}});var r,i,o,u=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var c,l,s,a=(r={},(0,u.Z)(r,o.API,(function(){return"API"})),(0,u.Z)(r,o.EVENT,(function(){return"event"})),(0,u.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(c||(c={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(l||(l={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(s||(s={}));var d=(i={},(0,u.Z)(i,s.CREATED_AT,"Created at"),(0,u.Z)(i,s.NAME,"Name"),(0,u.Z)(i,s.PIPELINE,"Pipeline"),(0,u.Z)(i,s.STATUS,"Status"),(0,u.Z)(i,s.TYPE,"Type"),i)},42305:function(e,n,t){t.d(n,{A5:function(){return f},AY:function(){return p},BP:function(){return d},JX:function(){return a},OC:function(){return o},Pc:function(){return h},Tz:function(){return s},d$:function(){return l},lJ:function(){return j},n1:function(){return c}});var r=t(92083),i=t.n(r),o="YYYY-MM-DD HH:mm:ss",u="YYYY-MM-DD HH:mm",c="YYYY-MM-DD";function l(e,n){var t=n.dayAgo,r=n.includeSeconds,c=n.utcFormat,l=i()(e),s=u;return c&&(l=l.utc()),t&&(l=l.subtract(1,"days")),r&&(s=o),l.format(s)}function s(e){var n=l((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0});return null!==e&&void 0!==e&&e.dateObj?new Date(n):n}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?o:u)}function d(e,n,t){return i()(e).utc().hours(+n).minutes(+t).format()}function f(e){return i()(e).unix()}function p(e,n,t,r){var i="".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t);return r?"".concat(i,":").concat(r):i}function h(e){var n=i().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function j(e){return e.padStart(2,"0")}},33766:function(e,n,t){t.d(n,{g_:function(){return f},u7:function(){return d}});var r=t(75582),i=t(82394),o=t(34376),u=t.n(o),c=t(59e3),l=t(24224);function s(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?s(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function d(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,o=t.pushHistory,l=i?{}:(0,c.iV)();n=window.location.pathname;var s=o?u().push:u().replace,d=a(a({},l),e);Object.entries(e).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];"undefined"!==typeof i&&null!==i||delete d[t]}));var f=(0,c.uM)(d);f.length>=1&&(f="?".concat(f));var p="".concat(n.split("?")[0]).concat(f);return s(u().router.pathname,p,{shallow:!0})}function f(e,n,t){var i=t.addingMultipleValues,o=t.isList,u=t.itemsPerPage,c=t.pushHistory,s=void 0!==c&&c,f=t.resetLimitParams,p=a({},e);i?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];if(Array.isArray(i)){var o="".concat(t,"[]");p[o]=i.map(String)}})):o?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1],o=String(i),u="".concat(t,"[]"),c=p[u];c&&Array.isArray(c)?(c=c.map(String)).includes(o)?p[u]=(0,l.Od)(c,(function(e){return e===o})):p[u]=c.concat(o):p[u]=[o]})):p=a(a({},p),n),f&&(p._limit=u||20,p._offset=0),d(p,{pushHistory:s})}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4741],{1210:function(e,n,t){t.d(n,{Z:function(){return y}});var r=t(82394),i=t(21831),o=t(82684),u=t(47999),c=t(49894),l=t(93461),s=t(57384),a=t(12344),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var h=o.forwardRef(p),j=t(32063),v=t(15270),b=t(82531),g=t(66166),m=t(3055),x=t(49125),Z=t(91427),O=t(24141);function _(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var y=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,_=e.afterWidthOverride,y=e.before,E=e.beforeWidth,w=e.breadcrumbs,P=e.children,I=e.errors,k=e.headerMenuItems,D=e.navigationItems,A=e.setErrors,S=e.subheaderChildren,N=e.title,R=e.uuid,T=(0,O.i)().width,L="dashboard_after_width_".concat(R),M="dashboard_before_width_".concat(R),V=(0,o.useRef)(null),H=(0,o.useState)(_?p:(0,Z.U2)(L,p)),U=H[0],Y=H[1],F=(0,o.useState)(!1),B=F[0],z=F[1],W=(0,o.useState)(y?Math.max((0,Z.U2)(M,E),13*x.iI):null),J=W[0],G=W[1],X=(0,o.useState)(!1),$=X[0],q=X[1],K=(0,o.useState)(null)[1],Q=b.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===Q||void 0===Q?void 0:Q.projects,ne=[];w?ne.push.apply(ne,(0,i.Z)(w)):(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 N}}]),(0,o.useEffect)((function(){null===V||void 0===V||!V.current||B||$||null===K||void 0===K||K(V.current.getBoundingClientRect().width)}),[B,U,$,J,V,K,T]),(0,o.useEffect)((function(){B||(0,Z.t8)(L,U)}),[r,B,U,L]),(0,o.useEffect)((function(){$||(0,Z.t8)(M,J)}),[$,J,M]);var te=(0,g.Z)(p);return(0,o.useEffect)((function(){_&&te!==p&&Y(p)}),[_,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:N}),(0,f.jsx)(a.Z,{breadcrumbs:ne,menuItems:k,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(v.Z,{navigationItems:D})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(j.Z,{after:t,afterHeightOffset:m.Mz,afterHidden:r,afterMousedownActive:B,afterWidth:U,before:y,beforeHeightOffset:m.Mz,beforeMousedownActive:$,beforeWidth:d.k1+(y?J:0),hideAfterCompletely:!0,leftOffset:y?d.k1:null,mainContainerRef:V,setAfterMousedownActive:z,setAfterWidth:Y,setBeforeMousedownActive:q,setBeforeWidth:G,children:[S&&(0,f.jsx)(h,{children:S}),P]})})]}),I&&(0,f.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===A||void 0===A?void 0:A(null)},children:(0,f.jsx)(c.Z,C(C({},I),{},{onClose:function(){return null===A||void 0===A?void 0:A(null)}}))})]})}},65597:function(e,n,t){t.d(n,{f:function(){return c}});var r=t(9518),i=t(23831),o=t(49125),u=t(73942),c=r.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*o.iI,u.TR,2*o.iI,(function(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 ")}))},97496:function(e,n,t){var r=t(75582),i=t(12691),o=t.n(i),u=t(34376),c=t.n(u),l=t(82684),s=t(83455),a=t(60328),d=t(47999),f=t(93461),p=t(67971),h=t(10919),j=t(47409),v=t(86673),b=t(54283),g=t(58180),m=t(19711),x=t(82531),Z=t(23831),O=t(73942),_=t(10503),C=t(65597),y=t(93348),E=t(45838),w=t(49125),P=t(42305),I=t(19395),k=t(9736),D=t(96510),A=t(28598);function S(e){var n=e.cancelingRunId,t=e.disabled,i=e.isLoadingCancelPipeline,o=e.onCancel,u=e.onSuccess,c=e.pipelineRun,f=e.setCancelingRunId,h=e.setErrors,g=e.setShowConfirmationId,E=e.showConfirmationId,I=(0,k.Ct)(),S=c||{},N=S.id,R=S.pipeline_schedule_id,T=S.pipeline_schedule_token,L=S.pipeline_schedule_type,M=S.status,V=i&&N===n&&j.V.RUNNING===M,H=(0,s.Db)(y.Xm.API===L&&T?x.ZP.pipeline_runs.pipeline_schedules.useCreateWithParent(R,T):x.ZP.pipeline_runs.pipeline_schedules.useCreate(R),{onSuccess:function(e){return(0,D.wD)(e,{callback:function(){u()},onErrorCallback:function(e,n){return null===h||void 0===h?void 0:h({errors:n,response:e})}})}}),U=(0,r.Z)(H,1)[0],Y=(0,l.useCallback)((function(){g(null),U({pipeline_run:{execution_date:(0,P.d$)((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0}),pipeline_schedule_id:null===c||void 0===c?void 0:c.pipeline_schedule_id,pipeline_uuid:null===c||void 0===c?void 0:c.pipeline_uuid,variables:null===c||void 0===c?void 0:c.variables}})}),[U,c,g]),F=(0,l.useCallback)((function(){g(null),f(N),o({id:N,status:j.V.CANCELLED})}),[o,N,f,g]);return(0,A.jsxs)("div",{style:{position:"relative"},children:[(0,A.jsx)(a.Z,{backgroundColor:V&&Z.Z.accent.yellow,beforeIcon:j.V.INITIAL!==M&&!t&&(0,A.jsxs)(A.Fragment,{children:[j.V.COMPLETED===M&&(0,A.jsx)(_.Jr,{size:2*w.iI}),[j.V.FAILED,j.V.CANCELLED].includes(M)&&(0,A.jsx)(_.Py,{inverted:j.V.CANCELLED===M&&!I,size:2*w.iI}),[j.V.RUNNING].includes(M)&&(0,A.jsx)(b.Z,{color:V?Z.Z.status.negative:Z.Z.monotone.white,small:!0})]}),borderRadius:O.D7,danger:j.V.FAILED===M&&!I,default:j.V.INITIAL===M,disabled:t||I,loading:!c,onClick:function(){return g(N)},padding:"6px",primary:j.V.RUNNING===M&&!V&&!I,warning:j.V.CANCELLED===M&&!I,children:t?"Ready":V?"Canceling":j.D[M]}),(0,A.jsx)(d.Z,{onClickOutside:function(){return g(null)},open:E===N,children:(0,A.jsxs)(C.f,{children:[[j.V.RUNNING,j.V.INITIAL].includes(M)&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(m.ZP,{bold:!0,color:"#9ECBFF",children:"Run is in progress"}),(0,A.jsx)(v.Z,{mb:1}),(0,A.jsxs)(m.ZP,{children:["This pipeline run is currently ongoing. Retrying will cancel",(0,A.jsx)("br",{}),"the current pipeline run."]}),(0,A.jsx)(m.ZP,{}),(0,A.jsx)(v.Z,{mt:1,children:(0,A.jsxs)(p.Z,{children:[(0,A.jsx)(a.Z,{onClick:function(){F(),Y()},children:"Retry run"}),(0,A.jsx)(v.Z,{ml:1}),(0,A.jsx)(a.Z,{onClick:F,children:"Cancel run"})]})})]}),[j.V.CANCELLED,j.V.FAILED,j.V.COMPLETED].includes(M)&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(m.ZP,{bold:!0,color:"#9ECBFF",children:["Run ",M]}),(0,A.jsx)(v.Z,{mb:1}),(0,A.jsx)(m.ZP,{children:"Retry the run with changes you have made to the pipeline."}),(0,A.jsx)(v.Z,{mb:1}),(0,A.jsx)(a.Z,{onClick:Y,children:"Retry run"})]})]})})]})}n.Z=function(e){var n=e.disableRowSelect,t=e.emptyMessage,i=void 0===t?"No runs available":t,u=e.fetchPipelineRuns,d=e.onClickRow,b=e.pipelineRuns,Z=e.selectedRun,C=e.setErrors,y=(0,l.useState)(null),P=y[0],k=y[1],N=(0,l.useState)(null),R=N[0],T=N[1],L=(0,s.Db)((function(e){var n=e.id,t=e.status;return x.ZP.pipeline_runs.useUpdate(n)({pipeline_run:{status:t}})}),{onSuccess:function(e){return(0,D.wD)(e,{callback:function(){k(null),u()},onErrorCallback:function(e,n){k(null),null===C||void 0===C||C({errors:n,response:e})}})}}),M=(0,r.Z)(L,2),V=M[0],H=M[1].isLoading,U=[null,1,2,1,1,null],Y=[{uuid:"Status"},{uuid:"Pipeline UUID"},{uuid:"Date"},{uuid:"Trigger"},{uuid:"Block runs"},{uuid:"Completed"},{uuid:"Logs"}];return!n&&d&&(U.push(null),Y.push({label:function(){return""},uuid:"action"})),(0,A.jsx)(E.cl,{minHeight:30*w.iI,overflowVisible:!!R,children:0===(null===b||void 0===b?void 0:b.length)?(0,A.jsx)(v.Z,{px:3,py:1,children:(0,A.jsx)(m.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:i})}):(0,A.jsx)(g.Z,{columnFlex:U,columns:Y,isSelectedRow:function(e){return!n&&b[e].id===(null===Z||void 0===Z?void 0:Z.id)},onClickRow:n?null:d,rowVerticalPadding:6,rows:null===b||void 0===b?void 0:b.map((function(e,t){var r=e.block_runs_count,i=e.completed_at,l=e.execution_date,s=e.id,g=e.pipeline_schedule_id,x=e.pipeline_schedule_name,Z=e.pipeline_uuid,y=e.status,E=!s&&!y,D=[];return D=t>0&&b[t-1].execution_date===e.execution_date&&b[t-1].pipeline_schedule_id===e.pipeline_schedule_id?[(0,A.jsx)(v.Z,{ml:1,children:(0,A.jsxs)(p.Z,{alignItems:"center",children:[(0,A.jsx)(_.TT,{size:2*w.iI,useStroke:!0}),(0,A.jsx)(a.Z,{borderRadius:O.D7,notClickable:!0,padding:"6px",children:(0,A.jsx)(m.ZP,{muted:!0,children:j.D[y]})})]})},"row_status"),(0,A.jsx)(m.ZP,{default:!0,monospace:!0,muted:!0,children:Z},"row_pipeline_uuid"),(0,A.jsx)(m.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_date_retry"),(0,A.jsx)(m.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_trigger_retry"),(0,A.jsx)(o(),{as:"/pipelines/".concat(Z,"/runs/").concat(s),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,A.jsx)(h.Z,{bold:!0,muted:!0,children:"See block runs (".concat(r,")")})},"row_block_runs"),(0,A.jsx)(m.ZP,{monospace:!0,muted:!0,children:i&&(0,I.Vx)(i)||"-"},"row_completed"),(0,A.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(Z,"/logs?pipeline_run_id[]=").concat(s))},children:(0,A.jsx)(_.B4,{default:!0,size:2*w.iI})},"row_logs")]:[(0,A.jsx)(S,{cancelingRunId:P,disabled:E,isLoadingCancelPipeline:H,onCancel:V,onSuccess:u,pipelineRun:e,setCancelingRunId:k,setErrors:C,setShowConfirmationId:T,showConfirmationId:R},"row_retry_button"),(0,A.jsx)(m.ZP,{default:!0,monospace:!0,children:Z},"row_pipeline_uuid"),(0,A.jsx)(m.ZP,{default:!0,monospace:!0,children:l&&(0,I.Vx)(l)||"-"},"row_date"),(0,A.jsx)(o(),{as:"/pipelines/".concat(Z,"/triggers/").concat(g),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,A.jsx)(h.Z,{bold:!0,sameColorAsText:!0,children:x})},"row_trigger"),(0,A.jsx)(o(),{as:"/pipelines/".concat(Z,"/runs/").concat(s),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,A.jsx)(h.Z,{bold:!0,disabled:E,sameColorAsText:!0,children:E?"":"See block runs (".concat(r,")")})},"row_block_runs"),(0,A.jsx)(m.ZP,{default:!0,monospace:!0,children:i&&(0,I.Vx)(i)||"-"},"row_completed"),(0,A.jsx)(a.Z,{default:!0,disabled:E,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(Z,"/logs?pipeline_run_id[]=").concat(s))},children:(0,A.jsx)(_.B4,{default:!0,size:2*w.iI})},"row_item_13")],!n&&d&&D.push((0,A.jsx)(f.Z,{flex:1,justifyContent:"flex-end",children:(0,A.jsx)(_._Q,{default:!0,size:2*w.iI})})),D})),uuid:"pipeline-runs"})})}},19395:function(e,n,t){t.d(n,{IJ:function(){return a},Vx:function(){return f},eI:function(){return d},gU:function(){return h},tL:function(){return p},vJ:function(){return j}});var r,i,o=t(82394),u=t(92083),c=t.n(u);function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,r=n.completed_at,i=n.started_at,u=n.status,l=null;i&&r&&(l=c()(r).valueOf()-c()(i).valueOf());return s(s({},e),{},(0,o.Z)({},t,{runtime:l,status:u}))}),{})}function d(e){if(!e)return null;var n=new Date(c()(e).valueOf()),t=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());return new Date(t)}function f(e){return"string"!==typeof e?e:d(e.split("+")[0]).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(i||(i={}));var p=(r={},(0,o.Z)(r,i.DAY,86400),(0,o.Z)(r,i.HOUR,3600),(0,o.Z)(r,i.MINUTE,60),(0,o.Z)(r,i.SECOND,1),r);function h(e){var n=i.SECOND,t=e;return e%86400===0?(t/=86400,n=i.DAY):e%3600===0?(t/=3600,n=i.HOUR):e%60===0&&(t/=60,n=i.MINUTE),{time:t,unit:n}}function j(e,n){return e*p[n]}},51099:function(e,n,t){t.d(n,{Q:function(){return a}});t(82684);var r=t(60328),i=t(67971),o=t(86673),u=t(10503),c=t(73899),l=t(49125),s=t(28598),a=22;n.Z=function(e){var n=e.page,t=e.maxPages,a=e.onUpdate,d=e.totalPages,f=[],p=t;if(p>d)f=Array.from({length:d},(function(e,n){return n}));else{var h=Math.floor(p/2),j=n-h;n+h>=d?(j=d-p+2,p-=2):n-h<=0?(j=0,p-=2):(p-=4,j=n-Math.floor(p/2)),f=Array.from({length:p},(function(e,n){return n+j}))}return(0,s.jsx)(s.Fragment,{children:d>0&&(0,s.jsxs)(i.Z,{alignItems:"center",children:[(0,s.jsx)(r.Z,{disabled:0===n,onClick:function(){return a(n-1)},children:(0,s.jsx)(u.Hd,{size:1.5*l.iI,stroke:"#AEAEAE"})}),!f.includes(0)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){return a(0)},borderLess:!0,noBackground:!0,children:1})},0),!f.includes(1)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0)]}),f.map((function(e){return(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){e!==n&&a(e)},notClickable:e===n,backgroundColor:e===n&&c.a$,borderLess:!0,noBackground:!0,children:e+1})},e)})),!f.includes(d-1)&&(0,s.jsxs)(s.Fragment,{children:[!f.includes(d-2)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0),(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){return a(d-1)},borderLess:!0,noBackground:!0,children:d})},d-1)]}),(0,s.jsx)(o.Z,{ml:1}),(0,s.jsx)(r.Z,{disabled:n===d-1,onClick:function(){return a(n+1)},children:(0,s.jsx)(u.Kw,{size:1.5*l.iI,stroke:"#AEAEAE"})})]})})}},47409:function(e,n,t){t.d(n,{D:function(){return u},V:function(){return o}});var r,i=t(82394),o=t(66050).V,u=(r={},(0,i.Z)(r,o.CANCELLED,"Cancelled"),(0,i.Z)(r,o.COMPLETED,"Done"),(0,i.Z)(r,o.FAILED,"Failed"),(0,i.Z)(r,o.INITIAL,"Ready"),(0,i.Z)(r,o.RUNNING,"Running"),r)},93348:function(e,n,t){t.d(n,{TR:function(){return d},U5:function(){return l},Xm:function(){return o},Z4:function(){return a},fq:function(){return c},kJ:function(){return s}});var r,i,o,u=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var c,l,s,a=(r={},(0,u.Z)(r,o.API,(function(){return"API"})),(0,u.Z)(r,o.EVENT,(function(){return"event"})),(0,u.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(c||(c={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(l||(l={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(s||(s={}));var d=(i={},(0,u.Z)(i,s.CREATED_AT,"Created at"),(0,u.Z)(i,s.NAME,"Name"),(0,u.Z)(i,s.PIPELINE,"Pipeline"),(0,u.Z)(i,s.STATUS,"Status"),(0,u.Z)(i,s.TYPE,"Type"),i)},42305:function(e,n,t){t.d(n,{A5:function(){return f},AY:function(){return p},BP:function(){return d},JX:function(){return a},OC:function(){return o},Pc:function(){return h},Tz:function(){return s},d$:function(){return l},lJ:function(){return j},n1:function(){return c}});var r=t(92083),i=t.n(r),o="YYYY-MM-DD HH:mm:ss",u="YYYY-MM-DD HH:mm",c="YYYY-MM-DD";function l(e,n){var t=n.dayAgo,r=n.includeSeconds,c=n.utcFormat,l=i()(e),s=u;return c&&(l=l.utc()),t&&(l=l.subtract(1,"days")),r&&(s=o),l.format(s)}function s(e){var n=l((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0});return null!==e&&void 0!==e&&e.dateObj?new Date(n):n}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?o:u)}function d(e,n,t){return i()(e).utc().hours(+n).minutes(+t).format()}function f(e){return i()(e).unix()}function p(e,n,t,r){var i="".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t);return r?"".concat(i,":").concat(r):i}function h(e){var n=i().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function j(e){return e.padStart(2,"0")}},33766:function(e,n,t){t.d(n,{g_:function(){return f},u7:function(){return d}});var r=t(75582),i=t(82394),o=t(34376),u=t.n(o),c=t(59e3),l=t(24224);function s(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?s(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function d(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,o=t.pushHistory,l=i?{}:(0,c.iV)();n=window.location.pathname;var s=o?u().push:u().replace,d=a(a({},l),e);Object.entries(e).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];"undefined"!==typeof i&&null!==i||delete d[t]}));var f=(0,c.uM)(d);f.length>=1&&(f="?".concat(f));var p="".concat(n.split("?")[0]).concat(f);return s(u().router.pathname,p,{shallow:!0})}function f(e,n,t){var i=t.addingMultipleValues,o=t.isList,u=t.itemsPerPage,c=t.pushHistory,s=void 0!==c&&c,f=t.resetLimitParams,p=a({},e);i?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];if(Array.isArray(i)){var o="".concat(t,"[]");p[o]=i.map(String)}})):o?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1],o=String(i),u="".concat(t,"[]"),c=p[u];c&&Array.isArray(c)?(c=c.map(String)).includes(o)?p[u]=(0,l.Od)(c,(function(e){return e===o})):p[u]=c.concat(o):p[u]=[o]})):p=a(a({},p),n),f&&(p._limit=u||20,p._offset=0),d(p,{pushHistory:s})}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5477],{1210:function(e,n,t){t.d(n,{Z:function(){return S}});var r=t(82394),i=t(21831),o=t(82684),l=t(47999),u=t(28358),c=t(93461),s=t(57384),a=t(12344),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var m=o.forwardRef(p),h=t(32063),v=t(15270),b=t(82531),y=t(66166),g=t(3055),w=t(49125),j=t(91427),O=t(24141);function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var S=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,x=e.afterWidthOverride,S=e.before,C=e.beforeWidth,P=e.breadcrumbs,I=e.children,_=e.errors,k=e.headerMenuItems,N=e.navigationItems,H=e.setErrors,D=e.subheaderChildren,z=e.title,E=e.uuid,A=(0,O.i)().width,M="dashboard_after_width_".concat(E),W="dashboard_before_width_".concat(E),T=(0,o.useRef)(null),B=(0,o.useState)(x?p:(0,j.U2)(M,p)),F=B[0],R=B[1],U=(0,o.useState)(!1),q=U[0],L=U[1],G=(0,o.useState)(S?Math.max((0,j.U2)(W,C),13*w.iI):null),Q=G[0],Y=G[1],J=(0,o.useState)(!1),X=J[0],K=J[1],$=(0,o.useState)(null)[1],V=b.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===V||void 0===V?void 0:V.projects,ne=[];P?ne.push.apply(ne,(0,i.Z)(P)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return z}}]),(0,o.useEffect)((function(){null===T||void 0===T||!T.current||q||X||null===$||void 0===$||$(T.current.getBoundingClientRect().width)}),[q,F,X,Q,T,$,A]),(0,o.useEffect)((function(){q||(0,j.t8)(M,F)}),[r,q,F,M]),(0,o.useEffect)((function(){X||(0,j.t8)(W,Q)}),[X,Q,W]);var te=(0,y.Z)(p);return(0,o.useEffect)((function(){x&&te!==p&&R(p)}),[x,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:z}),(0,f.jsx)(a.Z,{breadcrumbs:ne,menuItems:k,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===N||void 0===N?void 0:N.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(v.Z,{navigationItems:N})}),(0,f.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:t,afterHeightOffset:g.Mz,afterHidden:r,afterMousedownActive:q,afterWidth:F,before:S,beforeHeightOffset:g.Mz,beforeMousedownActive:X,beforeWidth:d.k1+(S?Q:0),hideAfterCompletely:!0,leftOffset:S?d.k1:null,mainContainerRef:T,setAfterMousedownActive:L,setAfterWidth:R,setBeforeMousedownActive:K,setBeforeWidth:Y,children:[D&&(0,f.jsx)(m,{children:D}),I]})})]}),_&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===H||void 0===H?void 0:H(null)},children:(0,f.jsx)(u.Z,Z(Z({},_),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}},2850:function(e,n,t){t.d(n,{M:function(){return u},W:function(){return l}});var r=t(9518),i=t(23831),o=t(3055),l=34*t(49125).iI,u=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},79585:function(e,n,t){t.d(n,{DQ:function(){return a},HY:function(){return l},SA:function(){return d},WH:function(){return o},eC:function(){return c},fF:function(){return u},tC:function(){return s}});var r=t(81132),i=t(9736),o="Workspace",l="Preferences",u="Git settings",c="Users",s="Account",a="Profile",d=function(e){var n=e.owner,t=e.roles,d=[{linkProps:{href:"/settings/workspace/preferences"},uuid:l}];n&&d.push({linkProps:{href:"/settings/workspace/users"},uuid:c}),(!(0,i.YB)()||t<=r.No.EDITOR)&&d.push({linkProps:{href:"/settings/workspace/sync-data"},uuid:u});var f=[{items:d,uuid:o}];return(0,i.YB)()?f.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:a}],uuid:s}]):f}},30775:function(e,n,t){t.d(n,{Z:function(){return Z}});var r=t(1210),i=t(82394),o=t(12691),l=t.n(o),u=t(10919),c=t(86673),s=t(19711),a=t(9518),d=t(23831),f=t(49125),p=t(90880),m=(f.iI,a.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*f.iI,2.5*f.iI)),h=a.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,p.eR)(),1.5*f.iI,2.5*f.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||d.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),v=t(28598),b=t(82684);function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n=e.isItemSelected,t=e.sections;return(0,v.jsx)(c.Z,{py:f.Gg,children:null===t||void 0===t?void 0:t.map((function(e){var t=e.items,r=e.title,i=e.uuid;return(0,v.jsxs)(c.Z,{children:[(0,v.jsx)(m,{children:(0,v.jsx)(s.ZP,{bold:!0,muted:!0,small:!0,uppercase:!0,children:r?r():i})}),null===t||void 0===t?void 0:t.map((function(e){var t=e.label,r=e.linkProps,o=e.onClick,c=e.uuid,s=t?t():c,a=(0,v.jsx)(h,{selected:null===n||void 0===n?void 0:n(g(g({},e),{},{uuidWorkspace:i})),children:s});return r?(0,b.createElement)(l(),g(g({},r),{},{key:c,passHref:!0}),(0,v.jsx)(u.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,sameColorAsText:!0,children:a})):(0,v.jsx)(u.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:o,preventDefault:!0,sameColorAsText:!0,children:a},c)}))]},i)}))})},j=t(2850),O=t(79585),x=t(9736);var Z=function(e){var n=e.after,t=e.afterHidden,i=e.children,o=e.uuidItemSelected,l=e.uuidWorkspaceSelected,u=(0,x.PR)()||{};return(0,v.jsx)(r.Z,{after:n,afterHidden:!n||t,afterWidth:n?50*f.iI:0,afterWidthOverride:!0,before:(0,v.jsx)(j.M,{children:(0,v.jsx)(w,{isItemSelected:function(e){var n=e.uuid,t=e.uuidWorkspace;return l===t&&o===n},sections:(0,O.SA)(u)})}),beforeWidth:j.W,title:"Settings",uuid:"settings/index",children:i})}},63153:function(e,n,t){t.d(n,{Z3:function(){return r},ms:function(){return o},s7:function(){return i}});var r=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",disabled:!0,label:"Email",required:!0,type:"email",uuid:"email"}],i="password_current",o=[{autoComplete:"current-password",label:"Current password",type:"password",uuid:i},{autoComplete:"new-password",label:"New password",type:"password",uuid:"password"},{autoComplete:"new-password",label:"Confirm new password",type:"password",uuid:"password_confirmation"}]},20582:function(e,n,t){var r=t(82394),i=t(21831),o=t(75582),l=t(21764),u=t(82684),c=t(83455),s=t(60328),a=t(67971),d=t(87372),f=t(55378),p=t(86673),m=t(82944),h=t(81132),v=t(82531),b=t(66166),y=t(63153),g=t(7715),w=t(96510),j=t(28598);function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.disabledFields,t=e.hideFields,O=e.newUser,Z=e.onDeleteSuccess,S=e.onSaveSuccess,C=e.showDelete,P=e.title,I=e.user,_=(0,u.useState)(!0),k=_[0],N=_[1],H=(0,u.useState)({}),D=H[0],z=H[1],E=(0,u.useState)(null),A=E[0],M=E[1],W=(0,c.Db)(O?v.ZP.users.useCreate():v.ZP.users.useUpdate(null===I||void 0===I?void 0:I.id),{onSuccess:function(e){return(0,w.wD)(e,{callback:function(e){var n=e.user,t=(0,g.GL)(n,y.Z3.concat(y.ms).map((function(e){return e.uuid})));M(t),l.Am.success(O?"New user created successfully.":"User profile successfully updated.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:"user-update-success-".concat(n.id)}),null===S||void 0===S||S(t)},onErrorCallback:function(e){var n=e.error,t=n.message,r=n.type;l.Am.error(t,{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:r})}})}}),T=(0,o.Z)(W,2),B=T[0],F=T[1].isLoading,R=(0,c.Db)(v.ZP.users.useDelete(null===I||void 0===I?void 0:I.id),{onSuccess:function(e){return(0,w.wD)(e,{callback:function(){null===Z||void 0===Z||Z()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;alert(r),console.log(t)}})}}),U=(0,o.Z)(R,2),q=U[0],L=U[1].isLoading,G=t?(0,i.Z)(t):[];O&&G.push(y.s7);var Q=!G||!G.includes(y.s7),Y=(0,b.Z)(I);return(0,u.useEffect)((function(){!I||A&&(null===Y||void 0===Y?void 0:Y.id)===(null===I||void 0===I?void 0:I.id)||M((0,g.GL)(I,y.Z3.concat(y.ms).map((function(e){return e.uuid})))),null!==A&&void 0!==A&&A.password||null!==A&&void 0!==A&&A.password_confirmation?(null===A||void 0===A?void 0:A.password)!==(null===A||void 0===A?void 0:A.password_confirmation)?z({password_confirmation:"Password confirmation does not match."}):!Q||null!==A&&void 0!==A&&A.password_current?z(null):z({password_current:"This field is required."}):null!==A&&void 0!==A&&A.password_current&&Q?null!==A&&void 0!==A&&A.password&&null!==A&&void 0!==A&&A.password_confirmation?z(null):z({password:"This field is required.",password_confirmation:"This field is required."}):null!==A&&void 0!==A&&A.password_current||null!==A&&void 0!==A&&A.password||null!==A&&void 0!==A&&A.password_confirmation||z(null)}),[A,Q,I,Y]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(d.Z,{children:P||"Edit profile"}),(0,j.jsxs)("form",{children:[y.Z3.filter((function(e){var n=e.uuid;return!G||!G.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,i=e.label,o=e.required,l=e.type,u=e.uuid;return(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsx)(m.Z,{autoComplete:n,disabled:t&&!O,label:i,onChange:function(e){N(!1),M((function(n){return x(x({},n),{},(0,r.Z)({},u,e.target.value))}))},primary:!0,required:o,setContentOnMount:!0,type:l,value:(null===A||void 0===A?void 0:A[u])||""})},u)})),!(null!==I&&void 0!==I&&I.owner)&&(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsxs)(f.Z,{disabled:null===n||void 0===n?void 0:n.includes("roles"),label:"Roles",onChange:function(e){N(!1),M((function(n){return x(x({},n),{},{roles:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===A||void 0===A?void 0:A.roles)||(null===I||void 0===I?void 0:I.roles)||"",children:[(0,j.jsx)("option",{value:""}),h.K$.map((function(e){return(0,j.jsx)("option",{value:e,children:h.gG[e]},e)}))]})}),(0,j.jsxs)(p.Z,{mt:5,children:[(0,j.jsx)(d.Z,{children:O?"Password":"Change password"}),y.ms.filter((function(e){var n=e.uuid;return!G||!G.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,i=e.label,o=e.required,l=e.type,u=e.uuid;return(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsx)(m.Z,{autoComplete:n,disabled:t,label:i,meta:{error:null===D||void 0===D?void 0:D[u],touched:!(null===D||void 0===D||!D[u])},onChange:function(e){N(!1),M((function(n){return x(x({},n),{},(0,r.Z)({},u,e.target.value))}))},primary:!0,required:o,setContentOnMount:!0,type:l,value:(null===A||void 0===A?void 0:A[u])||""})},u)}))]}),(0,j.jsx)(p.Z,{mt:5,children:(0,j.jsxs)(a.Z,{children:[(0,j.jsx)(s.Z,{disabled:k||D&&!(0,g.Qr)(D),loading:F,onClick:function(){return B({user:A})},primary:!0,children:O?"Create new user":"Update user profile"}),C&&(0,j.jsx)(p.Z,{ml:1,children:(0,j.jsx)(s.Z,{danger:!0,loading:L,onClick:function(){window.confirm("Are you sure you want to delete ".concat(A.username||A.email,"?"))&&q()},children:"Delete user"})})]})})]})]})}},87372:function(e,n,t){var r,i,o,l,u,c,s,a,d=t(82394),f=t(26304),p=t(26653),m=t(9518),h=t(33591),v=t(23831),b=t(2005),y=t(31012),g=t(19711),w=t(49125),j=t(86673),O=t(28598),x=["children","condensed","inline","level","marketing","spacingBelow"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C=(0,m.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],g.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||v.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(b.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),P=m.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||v.Z.content).active,";\n ")})),I=m.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],C,h.media.md(r||(r=(0,p.Z)(["\n ","\n "])),y.aQ),h.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),y.aQ),h.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),y.aQ)),_=m.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],C,y.MJ),k=m.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],C,h.media.xs(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.sm(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.md(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.lg(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.xl(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),N=m.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],C,y.BL),H=m.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],C),D=m.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],C),z=m.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],C),E=m.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],C,(function(e){return 1===e.level&&"\n ".concat(y.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(y.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),A=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,l=e.marketing,u=e.spacingBelow,c=(0,f.Z)(e,x);i?n=E:0===Number(o)?n=I:1===Number(o)?n=l?k:_:2===Number(o)?n=N:3===Number(o)?n=H:4===Number(o)?n=D:5===Number(o)&&(n=z);var s=(0,O.jsxs)(n,S(S({},c),{},{level:o,children:[u&&(0,O.jsx)(j.Z,{mb:r?2:3,children:t}),!u&&t]}));return i?s:(0,O.jsx)(P,{children:s})};A.defaultProps={level:3,weightStyle:6},n.Z=A}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5477],{1210:function(e,n,t){t.d(n,{Z:function(){return S}});var r=t(82394),i=t(21831),o=t(82684),l=t(47999),u=t(49894),c=t(93461),s=t(57384),a=t(12344),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var m=o.forwardRef(p),h=t(32063),v=t(15270),b=t(82531),y=t(66166),g=t(3055),w=t(49125),j=t(91427),O=t(24141);function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var S=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,x=e.afterWidthOverride,S=e.before,C=e.beforeWidth,P=e.breadcrumbs,I=e.children,_=e.errors,k=e.headerMenuItems,N=e.navigationItems,H=e.setErrors,D=e.subheaderChildren,z=e.title,E=e.uuid,A=(0,O.i)().width,M="dashboard_after_width_".concat(E),W="dashboard_before_width_".concat(E),T=(0,o.useRef)(null),B=(0,o.useState)(x?p:(0,j.U2)(M,p)),F=B[0],R=B[1],U=(0,o.useState)(!1),q=U[0],L=U[1],G=(0,o.useState)(S?Math.max((0,j.U2)(W,C),13*w.iI):null),Q=G[0],Y=G[1],J=(0,o.useState)(!1),X=J[0],K=J[1],$=(0,o.useState)(null)[1],V=b.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===V||void 0===V?void 0:V.projects,ne=[];P?ne.push.apply(ne,(0,i.Z)(P)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return z}}]),(0,o.useEffect)((function(){null===T||void 0===T||!T.current||q||X||null===$||void 0===$||$(T.current.getBoundingClientRect().width)}),[q,F,X,Q,T,$,A]),(0,o.useEffect)((function(){q||(0,j.t8)(M,F)}),[r,q,F,M]),(0,o.useEffect)((function(){X||(0,j.t8)(W,Q)}),[X,Q,W]);var te=(0,y.Z)(p);return(0,o.useEffect)((function(){x&&te!==p&&R(p)}),[x,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:z}),(0,f.jsx)(a.Z,{breadcrumbs:ne,menuItems:k,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===N||void 0===N?void 0:N.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(v.Z,{navigationItems:N})}),(0,f.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:t,afterHeightOffset:g.Mz,afterHidden:r,afterMousedownActive:q,afterWidth:F,before:S,beforeHeightOffset:g.Mz,beforeMousedownActive:X,beforeWidth:d.k1+(S?Q:0),hideAfterCompletely:!0,leftOffset:S?d.k1:null,mainContainerRef:T,setAfterMousedownActive:L,setAfterWidth:R,setBeforeMousedownActive:K,setBeforeWidth:Y,children:[D&&(0,f.jsx)(m,{children:D}),I]})})]}),_&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===H||void 0===H?void 0:H(null)},children:(0,f.jsx)(u.Z,Z(Z({},_),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}},2850:function(e,n,t){t.d(n,{M:function(){return u},W:function(){return l}});var r=t(9518),i=t(23831),o=t(3055),l=34*t(49125).iI,u=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},79585:function(e,n,t){t.d(n,{DQ:function(){return a},HY:function(){return l},SA:function(){return d},WH:function(){return o},eC:function(){return c},fF:function(){return u},tC:function(){return s}});var r=t(81132),i=t(9736),o="Workspace",l="Preferences",u="Git settings",c="Users",s="Account",a="Profile",d=function(e){var n=e.owner,t=e.roles,d=[{linkProps:{href:"/settings/workspace/preferences"},uuid:l}];n&&d.push({linkProps:{href:"/settings/workspace/users"},uuid:c}),(!(0,i.YB)()||t<=r.No.EDITOR)&&d.push({linkProps:{href:"/settings/workspace/sync-data"},uuid:u});var f=[{items:d,uuid:o}];return(0,i.YB)()?f.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:a}],uuid:s}]):f}},30775:function(e,n,t){t.d(n,{Z:function(){return Z}});var r=t(1210),i=t(82394),o=t(12691),l=t.n(o),u=t(10919),c=t(86673),s=t(19711),a=t(9518),d=t(23831),f=t(49125),p=t(90880),m=(f.iI,a.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*f.iI,2.5*f.iI)),h=a.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,p.eR)(),1.5*f.iI,2.5*f.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||d.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),v=t(28598),b=t(82684);function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n=e.isItemSelected,t=e.sections;return(0,v.jsx)(c.Z,{py:f.Gg,children:null===t||void 0===t?void 0:t.map((function(e){var t=e.items,r=e.title,i=e.uuid;return(0,v.jsxs)(c.Z,{children:[(0,v.jsx)(m,{children:(0,v.jsx)(s.ZP,{bold:!0,muted:!0,small:!0,uppercase:!0,children:r?r():i})}),null===t||void 0===t?void 0:t.map((function(e){var t=e.label,r=e.linkProps,o=e.onClick,c=e.uuid,s=t?t():c,a=(0,v.jsx)(h,{selected:null===n||void 0===n?void 0:n(g(g({},e),{},{uuidWorkspace:i})),children:s});return r?(0,b.createElement)(l(),g(g({},r),{},{key:c,passHref:!0}),(0,v.jsx)(u.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,sameColorAsText:!0,children:a})):(0,v.jsx)(u.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:o,preventDefault:!0,sameColorAsText:!0,children:a},c)}))]},i)}))})},j=t(2850),O=t(79585),x=t(9736);var Z=function(e){var n=e.after,t=e.afterHidden,i=e.children,o=e.uuidItemSelected,l=e.uuidWorkspaceSelected,u=(0,x.PR)()||{};return(0,v.jsx)(r.Z,{after:n,afterHidden:!n||t,afterWidth:n?50*f.iI:0,afterWidthOverride:!0,before:(0,v.jsx)(j.M,{children:(0,v.jsx)(w,{isItemSelected:function(e){var n=e.uuid,t=e.uuidWorkspace;return l===t&&o===n},sections:(0,O.SA)(u)})}),beforeWidth:j.W,title:"Settings",uuid:"settings/index",children:i})}},63153:function(e,n,t){t.d(n,{Z3:function(){return r},ms:function(){return o},s7:function(){return i}});var r=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",disabled:!0,label:"Email",required:!0,type:"email",uuid:"email"}],i="password_current",o=[{autoComplete:"current-password",label:"Current password",type:"password",uuid:i},{autoComplete:"new-password",label:"New password",type:"password",uuid:"password"},{autoComplete:"new-password",label:"Confirm new password",type:"password",uuid:"password_confirmation"}]},20582:function(e,n,t){var r=t(82394),i=t(21831),o=t(75582),l=t(21764),u=t(82684),c=t(83455),s=t(60328),a=t(67971),d=t(87372),f=t(55378),p=t(86673),m=t(82944),h=t(81132),v=t(82531),b=t(66166),y=t(63153),g=t(7715),w=t(96510),j=t(28598);function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.disabledFields,t=e.hideFields,O=e.newUser,Z=e.onDeleteSuccess,S=e.onSaveSuccess,C=e.showDelete,P=e.title,I=e.user,_=(0,u.useState)(!0),k=_[0],N=_[1],H=(0,u.useState)({}),D=H[0],z=H[1],E=(0,u.useState)(null),A=E[0],M=E[1],W=(0,c.Db)(O?v.ZP.users.useCreate():v.ZP.users.useUpdate(null===I||void 0===I?void 0:I.id),{onSuccess:function(e){return(0,w.wD)(e,{callback:function(e){var n=e.user,t=(0,g.GL)(n,y.Z3.concat(y.ms).map((function(e){return e.uuid})));M(t),l.Am.success(O?"New user created successfully.":"User profile successfully updated.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:"user-update-success-".concat(n.id)}),null===S||void 0===S||S(t)},onErrorCallback:function(e){var n=e.error,t=n.message,r=n.type;l.Am.error(t,{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:r})}})}}),T=(0,o.Z)(W,2),B=T[0],F=T[1].isLoading,R=(0,c.Db)(v.ZP.users.useDelete(null===I||void 0===I?void 0:I.id),{onSuccess:function(e){return(0,w.wD)(e,{callback:function(){null===Z||void 0===Z||Z()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;alert(r),console.log(t)}})}}),U=(0,o.Z)(R,2),q=U[0],L=U[1].isLoading,G=t?(0,i.Z)(t):[];O&&G.push(y.s7);var Q=!G||!G.includes(y.s7),Y=(0,b.Z)(I);return(0,u.useEffect)((function(){!I||A&&(null===Y||void 0===Y?void 0:Y.id)===(null===I||void 0===I?void 0:I.id)||M((0,g.GL)(I,y.Z3.concat(y.ms).map((function(e){return e.uuid})))),null!==A&&void 0!==A&&A.password||null!==A&&void 0!==A&&A.password_confirmation?(null===A||void 0===A?void 0:A.password)!==(null===A||void 0===A?void 0:A.password_confirmation)?z({password_confirmation:"Password confirmation does not match."}):!Q||null!==A&&void 0!==A&&A.password_current?z(null):z({password_current:"This field is required."}):null!==A&&void 0!==A&&A.password_current&&Q?null!==A&&void 0!==A&&A.password&&null!==A&&void 0!==A&&A.password_confirmation?z(null):z({password:"This field is required.",password_confirmation:"This field is required."}):null!==A&&void 0!==A&&A.password_current||null!==A&&void 0!==A&&A.password||null!==A&&void 0!==A&&A.password_confirmation||z(null)}),[A,Q,I,Y]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(d.Z,{children:P||"Edit profile"}),(0,j.jsxs)("form",{children:[y.Z3.filter((function(e){var n=e.uuid;return!G||!G.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,i=e.label,o=e.required,l=e.type,u=e.uuid;return(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsx)(m.Z,{autoComplete:n,disabled:t&&!O,label:i,onChange:function(e){N(!1),M((function(n){return x(x({},n),{},(0,r.Z)({},u,e.target.value))}))},primary:!0,required:o,setContentOnMount:!0,type:l,value:(null===A||void 0===A?void 0:A[u])||""})},u)})),!(null!==I&&void 0!==I&&I.owner)&&(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsxs)(f.Z,{disabled:null===n||void 0===n?void 0:n.includes("roles"),label:"Roles",onChange:function(e){N(!1),M((function(n){return x(x({},n),{},{roles:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===A||void 0===A?void 0:A.roles)||(null===I||void 0===I?void 0:I.roles)||"",children:[(0,j.jsx)("option",{value:""}),h.K$.map((function(e){return(0,j.jsx)("option",{value:e,children:h.gG[e]},e)}))]})}),(0,j.jsxs)(p.Z,{mt:5,children:[(0,j.jsx)(d.Z,{children:O?"Password":"Change password"}),y.ms.filter((function(e){var n=e.uuid;return!G||!G.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,i=e.label,o=e.required,l=e.type,u=e.uuid;return(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsx)(m.Z,{autoComplete:n,disabled:t,label:i,meta:{error:null===D||void 0===D?void 0:D[u],touched:!(null===D||void 0===D||!D[u])},onChange:function(e){N(!1),M((function(n){return x(x({},n),{},(0,r.Z)({},u,e.target.value))}))},primary:!0,required:o,setContentOnMount:!0,type:l,value:(null===A||void 0===A?void 0:A[u])||""})},u)}))]}),(0,j.jsx)(p.Z,{mt:5,children:(0,j.jsxs)(a.Z,{children:[(0,j.jsx)(s.Z,{disabled:k||D&&!(0,g.Qr)(D),loading:F,onClick:function(){return B({user:A})},primary:!0,children:O?"Create new user":"Update user profile"}),C&&(0,j.jsx)(p.Z,{ml:1,children:(0,j.jsx)(s.Z,{danger:!0,loading:L,onClick:function(){window.confirm("Are you sure you want to delete ".concat(A.username||A.email,"?"))&&q()},children:"Delete user"})})]})})]})]})}},87372:function(e,n,t){var r,i,o,l,u,c,s,a,d=t(82394),f=t(26304),p=t(26653),m=t(9518),h=t(33591),v=t(23831),b=t(2005),y=t(31012),g=t(19711),w=t(49125),j=t(86673),O=t(28598),x=["children","condensed","inline","level","marketing","spacingBelow"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C=(0,m.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],g.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||v.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(b.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),P=m.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||v.Z.content).active,";\n ")})),I=m.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],C,h.media.md(r||(r=(0,p.Z)(["\n ","\n "])),y.aQ),h.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),y.aQ),h.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),y.aQ)),_=m.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],C,y.MJ),k=m.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],C,h.media.xs(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.sm(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.md(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.lg(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.xl(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),N=m.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],C,y.BL),H=m.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],C),D=m.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],C),z=m.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],C),E=m.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],C,(function(e){return 1===e.level&&"\n ".concat(y.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(y.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),A=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,l=e.marketing,u=e.spacingBelow,c=(0,f.Z)(e,x);i?n=E:0===Number(o)?n=I:1===Number(o)?n=l?k:_:2===Number(o)?n=N:3===Number(o)?n=H:4===Number(o)?n=D:5===Number(o)&&(n=z);var s=(0,O.jsxs)(n,S(S({},c),{},{level:o,children:[u&&(0,O.jsx)(j.Z,{mb:r?2:3,children:t}),!u&&t]}));return i?s:(0,O.jsx)(P,{children:s})};A.defaultProps={level:3,weightStyle:6},n.Z=A}}]);