mage-ai 0.8.12__py3-none-any.whl → 0.8.13__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 (98) hide show
  1. mage_ai/api/policies/BackfillPolicy.py +4 -1
  2. mage_ai/io/export_utils.py +1 -0
  3. mage_ai/io/postgres.py +46 -4
  4. mage_ai/server/constants.py +1 -1
  5. mage_ai/server/frontend_dist/404.html +2 -2
  6. mage_ai/server/frontend_dist/404.html.html +2 -2
  7. mage_ai/server/frontend_dist/_next/static/UuQKenirO2LDcepWvj6S9/_buildManifest.js +1 -0
  8. mage_ai/server/frontend_dist/_next/static/chunks/{1830-c3f709c7ca7f32ab.js → 1830-fbc03130dc8507d5.js} +1 -1
  9. mage_ai/server/frontend_dist/_next/static/chunks/2626-74904ade5b462127.js +1 -0
  10. mage_ai/server/frontend_dist/_next/static/chunks/3573-9b7b57411a327efa.js +1 -0
  11. mage_ai/server/frontend_dist/_next/static/chunks/434-b1cbc39e987f22cd.js +1 -0
  12. mage_ai/server/frontend_dist/_next/static/chunks/4846-688b5f0a015a543a.js +1 -0
  13. mage_ai/server/frontend_dist/_next/static/chunks/5477-4d9bab807c386355.js +1 -0
  14. mage_ai/server/frontend_dist/_next/static/chunks/7281-99f836e410857a68.js +1 -0
  15. mage_ai/server/frontend_dist/_next/static/chunks/7400-26ce25ec46728ef7.js +1 -0
  16. mage_ai/server/frontend_dist/_next/static/chunks/9767-30e239ed26aa848a.js +1 -0
  17. mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-77b4b367fdb247d6.js → _app-169f9cc923ae39a5.js} +1 -1
  18. mage_ai/server/frontend_dist/_next/static/chunks/pages/{manage-14c743a0e2549486.js → manage-91c4fd203b4ac0e2.js} +1 -1
  19. mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipeline-runs-21fe37061bdaaaea.js → pipeline-runs-10d54d54bfd9b39c.js} +1 -1
  20. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-971ea5bb26d66155.js +1 -0
  21. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-393cec015b843dd8.js +1 -0
  22. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-2963c971fdefd159.js +1 -0
  23. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-d1490dc3ea4f2e61.js +1 -0
  24. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-8f23f7ca9efcb069.js → block-runs-f513df1d43ba48f0.js} +1 -1
  25. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-393fa626a8873f74.js +1 -0
  26. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-8b08ec1aef4af4f2.js → monitors-d45f982e19978552.js} +1 -1
  27. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-463347405cafa133.js +1 -0
  28. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-a33f6fd5d91cd123.js +1 -0
  29. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-d4df695d51e01232.js +1 -0
  30. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-d83cf90749c8cd56.js +1 -0
  31. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-f6ee40bebf427cfa.js +1 -0
  32. mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipelines-1c0627627c21667f.js → pipelines-db2903bdeeeae791.js} +1 -1
  33. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-19a5aa2de681b54a.js +1 -0
  34. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-e1b34b9a44fc4688.js +1 -0
  35. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync_data-4ae244876881cfe1.js +1 -0
  36. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-439adeb06fca8436.js → users-b8aeca222449e041.js} +1 -1
  37. mage_ai/server/frontend_dist/_next/static/chunks/pages/{terminal-6feb9848233a6c6e.js → terminal-482bd79cb26b8f73.js} +1 -1
  38. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-81b7327ed8e015a4.js +1 -0
  39. mage_ai/server/frontend_dist/index.html +2 -2
  40. mage_ai/server/frontend_dist/manage.html +4 -4
  41. mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
  42. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
  43. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
  44. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  45. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
  46. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
  47. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
  48. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
  49. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
  50. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
  51. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
  52. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
  53. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
  54. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  55. mage_ai/server/frontend_dist/pipelines.html +5 -5
  56. mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
  57. mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
  58. mage_ai/server/frontend_dist/settings/workspace/sync_data.html +5 -5
  59. mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
  60. mage_ai/server/frontend_dist/settings.html +2 -2
  61. mage_ai/server/frontend_dist/sign-in.html +4 -4
  62. mage_ai/server/frontend_dist/terminal.html +5 -5
  63. mage_ai/server/frontend_dist/test.html +3 -3
  64. mage_ai/server/frontend_dist/triggers.html +5 -5
  65. mage_ai/server/websocket_server.py +1 -1
  66. {mage_ai-0.8.12.dist-info → mage_ai-0.8.13.dist-info}/METADATA +1 -1
  67. {mage_ai-0.8.12.dist-info → mage_ai-0.8.13.dist-info}/RECORD +73 -75
  68. mage_ai/server/frontend_dist/_next/static/BJSgpMeWTfdkZw_YRDpOz/_buildManifest.js +0 -1
  69. mage_ai/server/frontend_dist/_next/static/chunks/2249-70929b8c547bbc18.js +0 -1
  70. mage_ai/server/frontend_dist/_next/static/chunks/2426-115f8871a2e28f8c.js +0 -1
  71. mage_ai/server/frontend_dist/_next/static/chunks/434-69ddfacd3e93f2db.js +0 -1
  72. mage_ai/server/frontend_dist/_next/static/chunks/4846-b4ced91dc0e9fba9.js +0 -1
  73. mage_ai/server/frontend_dist/_next/static/chunks/5477-d76f7f4b9d329116.js +0 -1
  74. mage_ai/server/frontend_dist/_next/static/chunks/5944-757b7898608a65e1.js +0 -1
  75. mage_ai/server/frontend_dist/_next/static/chunks/6579-2b5d8d39472d85c0.js +0 -1
  76. mage_ai/server/frontend_dist/_next/static/chunks/7400-1430ec3874c1fdee.js +0 -1
  77. mage_ai/server/frontend_dist/_next/static/chunks/8961-697fe5d4db44d909.js +0 -1
  78. mage_ai/server/frontend_dist/_next/static/chunks/9767-e89f3e19764e4f24.js +0 -1
  79. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-678569cf24a2e10d.js +0 -1
  80. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-0ed0d70bc659c236.js +0 -1
  81. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-51fe31916670195c.js +0 -1
  82. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-5ccc75887776efb0.js +0 -1
  83. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-f83ab9de4094e1b0.js +0 -1
  84. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-73ced07cc98a4968.js +0 -1
  85. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-67d23509a0c9a1b8.js +0 -1
  86. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-4084a44baf91f30e.js +0 -1
  87. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-ae970171cfe98c51.js +0 -1
  88. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-b0b91245d3299bdf.js +0 -1
  89. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-88bc8c5e21f7e493.js +0 -1
  90. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-4c05a269e02f2208.js +0 -1
  91. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync_data-f1f47e503c490758.js +0 -1
  92. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-e0172c422c95eda9.js +0 -1
  93. /mage_ai/server/frontend_dist/_next/static/{BJSgpMeWTfdkZw_YRDpOz → UuQKenirO2LDcepWvj6S9}/_middlewareManifest.js +0 -0
  94. /mage_ai/server/frontend_dist/_next/static/{BJSgpMeWTfdkZw_YRDpOz → UuQKenirO2LDcepWvj6S9}/_ssgManifest.js +0 -0
  95. {mage_ai-0.8.12.dist-info → mage_ai-0.8.13.dist-info}/LICENSE +0 -0
  96. {mage_ai-0.8.12.dist-info → mage_ai-0.8.13.dist-info}/WHEEL +0 -0
  97. {mage_ai-0.8.12.dist-info → mage_ai-0.8.13.dist-info}/entry_points.txt +0 -0
  98. {mage_ai-0.8.12.dist-info → mage_ai-0.8.13.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8867],{59739:function(n,e,t){"use strict";var r=t(56669);function o(){}function i(){}i.resetWarningCache=o,n.exports=function(){function n(n,e,t,o,i,c){if(c!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return n}n.isRequired=n;var t={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:e,element:n,elementType:n,instanceOf:e,node:n,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return t.PropTypes=t,t}},47329:function(n,e,t){n.exports=t(59739)()},56669:function(n){"use strict";n.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7432:function(n,e,t){var r={"./Active4D.json":[266,266],"./All Hallows Eve.json":[4450,4450],"./Amy.json":[88849,8849],"./Birds of Paradise.json":[78097,8097],"./Blackboard.json":[88018,6115],"./Brilliance Black.json":[73835,3835],"./Brilliance Dull.json":[6507,6507],"./Chrome DevTools.json":[22508,2508],"./Clouds Midnight.json":[49566,9566],"./Clouds.json":[57951,7951],"./Cobalt.json":[80826,826],"./Cobalt2.json":[98256,8256],"./Dawn.json":[76958,6958],"./Dominion Day.json":[89307,9307],"./Dracula.json":[33453,3453],"./Dreamweaver.json":[19363,9363],"./Eiffel.json":[82481,2481],"./Espresso Libre.json":[44776,4776],"./GitHub Dark.json":[792,792],"./GitHub Light.json":[61450,1450],"./GitHub.json":[10739,739],"./IDLE.json":[67947,7947],"./Katzenmilch.json":[81240,1240],"./Kuroir Theme.json":[4388,4388],"./LAZY.json":[25164,5164],"./MagicWB (Amiga).json":[76443,6443],"./Merbivore Soft.json":[99361,9361],"./Merbivore.json":[86042,6042],"./Monokai Bright.json":[14883,4883],"./Monokai.json":[34454,4454],"./Night Owl.json":[60261,261],"./Nord.json":[59785,9785],"./Oceanic Next.json":[58920,8920],"./Pastels on Dark.json":[38901,8901],"./Slush and Poppies.json":[26434,6434],"./Solarized-dark.json":[36116,6116],"./Solarized-light.json":[5008,5008],"./SpaceCadet.json":[20440,440],"./Sunburst.json":[68018,8018],"./Textmate (Mac Classic).json":[15824,5824],"./Tomorrow-Night-Blue.json":[81150,1150],"./Tomorrow-Night-Bright.json":[8762,8762],"./Tomorrow-Night-Eighties.json":[82545,2545],"./Tomorrow-Night.json":[99855,9855],"./Tomorrow.json":[34092,4092],"./Twilight.json":[93898,3898],"./Upstream Sunburst.json":[98807,8807],"./Vibrant Ink.json":[89927,9927],"./Xcode_default.json":[64042,4042],"./Zenburnesque.json":[33467,3467],"./iPlastic.json":[88277,8277],"./idleFingers.json":[5104,5104],"./krTheme.json":[9633,9633],"./monoindustrial.json":[15729,5729],"./themelist.json":[79437,9437]};function o(n){if(!t.o(r,n))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+n+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=r[n],o=e[0];return t.e(e[1]).then((function(){return t.t(o,19)}))}o.keys=function(){return Object.keys(r)},o.id=7432,n.exports=o},5677:function(n,e,t){"use strict";t.d(e,{M4:function(){return d},S0:function(){return l},S_:function(){return u},Yn:function(){return f},rW:function(){return s}});var r=t(82394),o=t(21831),i=t(75582);function c(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function a(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?c(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function u(n,e){return Object.entries(e).map((function(e){var t=(0,i.Z)(e,2),r=t[0],o=t[1];return n.languages.registerCompletionItemProvider(r,{provideCompletionItems:o(n)})}))}function l(n){var e=function(n){var e="[\\w.]+",t=["import ".concat(e," as ").concat(e),"import ".concat(e),"from ".concat(e," import ").concat(e," as ").concat(e),"from ".concat(e," import ").concat(e)],r=new RegExp("(".concat(t.join("|"),")"),"g");return(0,o.Z)(n.matchAll(r)).map((function(n){return n[1]}))}(n),t="[\\w.]+",i=["from ".concat(t," import ").concat(t," as (").concat(t,")"),"from ".concat(t," import (").concat(t,")"),"import ".concat(t," as (").concat(t,")"),"import (".concat(t,")")],c=new RegExp("(".concat(i.join("|"),")"));return e.reduce((function(n,e){var t=e.match(c);if(!t)return n;var i=(0,o.Z)(t),u=i[2],l=i[3],s=i[4],d=i[5],f=u||l||s||d;return a(a({},n),{},(0,r.Z)({},f,e))}),{})}function s(n,e){var t=n;e&&(t=t.split(" as ".concat(e))[0]);var r="[\\w.]+",c=["from ".concat(r," import (").concat(r,")"),"import (".concat(r,")")],a=new RegExp("(".concat(c.join("|"),")"),"g"),u=(0,o.Z)(t.matchAll(a))[0];if(u){var l=(0,i.Z)(u,4),s=l[2],d=l[3];return s||d}}function d(n,e){return function(n,e){return n.split("\n")[e.startLineNumber-1]}(n,e).slice(0,e.startColumn-1)}function f(n){var e=new RegExp("([\\w_]+)[ ]*=[ ]*([\\w_]+)","g");return(0,o.Z)(n.matchAll(e)).map((function(n){return{assignmentValue:n[2],variableName:n[1]}}))}},32365:function(n,e,t){"use strict";t.d(e,{Ep:function(){return c},KT:function(){return l},Nk:function(){return u},aU:function(){return a}});var r=t(9518),o=t(23831),i=t(49125),c=2,a=21,u=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-w2hta3-0"})(["",""],(function(n){return n.padding&&"\n padding-top: ".concat(2*i.iI,"px;\n background-color: ").concat((n.theme.background||o.Z.background).codeTextarea,";\n ")})),l=r.default.div.withConfig({displayName:"indexstyle__PlaceholderStyle",componentId:"sc-w2hta3-1"})(["padding-left:67px;position:absolute;z-index:1;"])},57722:function(n,e,t){"use strict";t.d(e,{Z:function(){return b}});var r=t(82684),o=t(85202),i=t(38789),c=t(19711),a=t(66166),u="twilight",l=t(2005),s=t(31012),d=t(32365),f=t(5677);var p=t(75582),h={"all-hallows-eve":"All Hallows Eve","birds-of-paradise":"Birds of Paradise","brilliance-black":"Brilliance Black","brilliance-dull":"Brilliance Dull","chrome-devtools":"Chrome DevTools","clouds-midnight":"Clouds Midnight","espresso-libre":"Espresso Libre","kuroir-theme":"Kuroir Theme","magicwb--amiga-":"MagicWB (Amiga)","merbivore-soft":"Merbivore Soft","monokai-bright":"Monokai Bright","night-owl":"Night Owl","oceanic-next":"Oceanic Next","pastels-on-dark":"Pastels on Dark","slush-and-poppies":"Slush and Poppies","solarized-dark":"Solarized-dark","solarized-light":"Solarized-light","textmate--mac-classic-":"Textmate (Mac Classic)","tomorrow-night":"Tomorrow-Night","tomorrow-night-blue":"Tomorrow-Night-Blue","tomorrow-night-bright":"Tomorrow-Night-Bright","tomorrow-night-eighties":"Tomorrow-Night-Eighties","upstream-sunburst":"Upstream Sunburst","vibrant-ink":"Vibrant Ink","xcode-default":"Xcode_default",active4d:"Active4D",amy:"Amy",blackboard:"Blackboard",clouds:"Clouds",cobalt:"Cobalt",dawn:"Dawn",dreamweaver:"Dreamweaver",eiffel:"Eiffel",github:"GitHub",idle:"IDLE",idlefingers:"idleFingers",iplastic:"iPlastic",katzenmilch:"Katzenmilch",krtheme:"krTheme",lazy:"LAZY",merbivore:"Merbivore",monoindustrial:"monoindustrial",monokai:"Monokai",spacecadet:"SpaceCadet",sunburst:"Sunburst",tomorrow:"Tomorrow",twilight:"Twilight",zenburnesque:"Zenburnesque"};var m=t(80636),g=t(28598);var b=function(n){var e=n.autocompleteProviders,b=n.autoHeight,v=n.autoSave,y=n.fontSize,w=void 0===y?s.i3:y,j=n.height,x=n.language,O=n.onChange,k=n.onDidChangeCursorPosition,S=n.onSave,C=n.padding,Z=n.placeholder,P=n.readOnly,E=n.selected,_=n.setSelected,T=n.setTextareaFocused,D=n.shortcuts,N=n.showLineNumbers,A=void 0===N||N,R=n.tabSize,I=void 0===R?4:R,M=n.textareaFocused,H=n.theme,z=n.value,B=n.width,L=void 0===B?"100%":B,F=(0,r.useRef)(null),W=(0,r.useRef)(null),U=(0,r.useRef)(null),V=(0,r.useState)([]),X=V[0],Y=V[1],q=(0,r.useState)(null),G=q[0],K=q[1],Q=(0,r.useState)(!1),J=Q[0],$=Q[1],nn=(0,r.useState)(j),en=(nn[0],nn[1],(0,r.useState)(H||u)),tn=en[0],rn=en[1],on=(0,r.useCallback)((function(n){n.languages.typescript.javascriptDefaults.setEagerModelSync(!0),K(n)}),[]),cn=(0,r.useCallback)((function(n,e){F.current=n,W.current=e;var t=[];null===D||void 0===D||D.forEach((function(r){t.push(r(e,n))})),S&&t.push((0,m.e)(e,(function(){S(n.getValue())}))),function(n,e,t){t.forEach((function(n){e.addAction(n)}))}(0,n,t),n.getModel().updateOptions({tabSize:I}),b&&!j&&(n._domElement.style.height="".concat(((z||"").split("\n").length+d.Ep)*d.aU,"px")),n.onDidFocusEditorWidget((function(){null===_||void 0===_||_(!0),null===T||void 0===T||T(!0)})),n.onDidContentSizeChange((function(e){var t=e.contentHeight,r=e.contentHeightChanged;b&&r&&(n._domElement.style.height="".concat(t+2*d.aU,"px"))})),E&&M&&setTimeout((function(){n.focus()}),1),k&&n.onDidChangeCursorPosition((function(e){var t=e.position.lineNumber,r=n._domElement.getBoundingClientRect(),o=r.height,i=r.top;k({editorRect:{height:Number(o),top:Number(i)},position:{lineNumber:Number(t)}})})),$(!0)}),[b,j,k,S,E,$,_,T,D,I,M,z]);(0,r.useEffect)((function(){(function(n){return new Promise((function(e){Promise.all([i._m.init(),t(7432)("./".concat(h[n],".json"))]).then((function(t){var r=(0,p.Z)(t,2),o=r[0],i=r[1];i.colors["editor.background"]="#000000",i.colors["editor.foreground"]="#FFFFFF",o.editor.defineTheme(n,i),e()}))}))})(u).then((function(){rn(u)}))}),[]),(0,r.useEffect)((function(){var n;return v&&S&&(n=setInterval((function(){S(F.current.getValue())}),5e3)),function(){v&&n&&clearInterval(n)}}),[v,F,S]);var an=(0,a.Z)(E),un=(0,a.Z)(M);return(0,r.useEffect)((function(){null!==F&&void 0!==F&&F.current&&(E&&M?setTimeout((function(){F.current.focus()}),1):o.findDOMNode(F.current._domElement).getElementsByClassName("inputarea")[0].blur())}),[F,E,an,M,un]),(0,r.useEffect)((function(){return function(){X.map((function(n){return n.dispose()}))}}),[X]),(0,r.useEffect)((function(){G&&e&&(0===X.length&&M||!un&&M?Y((0,f.S_)(G,e)):un&&!M&&X.map((function(n){return n.dispose()})))}),[e,X,G,M,un]),(0,g.jsxs)(d.Nk,{padding:C,style:{display:J?null:"none"},children:[Z&&!(null!==z&&void 0!==z&&z.length)&&(0,g.jsx)(d.KT,{children:(0,g.jsx)(c.ZP,{monospace:!0,muted:!0,children:Z})}),(0,g.jsx)(i.ZP,{beforeMount:on,height:j,language:x||"python",onChange:function(n){null===O||void 0===O||O(n)},onMount:cn,options:{domReadOnly:P,fontFamily:l.Vp,fontLigatures:!0,fontSize:w,hideCursorInOverviewRuler:!0,lineNumbers:A,minimap:{enabled:!1},overviewRulerBorder:!1,readOnly:P,renderLineHighlightOnlyWhenFocus:!0,scrollBeyondLastLine:!1,scrollbar:{alwaysConsumeMouseWheel:!1,vertical:"hidden"},wordBasedSuggestions:!1},theme:tn,value:z,width:L}),(0,g.jsx)("div",{ref:U})]})}},80636:function(n,e,t){"use strict";function r(n,e){return{contextMenuGroupId:"navigation",contextMenuOrder:1.5,id:"saveCode",keybindingContext:null,keybindings:[n.KeyMod.CtrlCmd|n.KeyCode.KeyS],label:"Save",precondition:null,run:function(n){e()}}}function o(n,e){return{contextMenuGroupId:"navigation",contextMenuOrder:1.5,id:"executeCode",keybindingContext:null,keybindings:[n.KeyMod.CtrlCmd|n.KeyCode.Enter],label:"Run selected block",precondition:null,run:function(){return e()}}}t.d(e,{Q:function(){return o},e:function(){return r}})},85307:function(n,e,t){"use strict";t.d(e,{$W:function(){return l},cl:function(){return s},cv:function(){return d},dE:function(){return u}});var r=t(9518),o=t(23831),i=t(73942),c=t(49125),a=t(37391),u=r.default.div.withConfig({displayName:"indexstyle__SectionStyle",componentId:"sc-7a1uhf-0"})(["border-radius:","px;padding:","px;",""],i.n_,c.cd*c.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).popup,";\n ")})),l=r.default.div.withConfig({displayName:"indexstyle__CodeEditorStyle",componentId:"sc-7a1uhf-1"})(["padding-top:","px;",""],c.cd*c.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).codeTextarea,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-7a1uhf-2"})(["overflow:auto;max-height:90vh;width:100%;"," "," "," "," ",""],a.w5,(function(n){return n.hideHorizontalScrollbar&&"\n overflow-x: hidden;\n "}),(function(n){return n.width&&"\n width: ".concat(n.width,";\n ")}),(function(n){return n.height&&"\n height: ".concat(n.height,";\n ")}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,";\n ")})),d=r.default.div.withConfig({displayName:"indexstyle__HeaderRowStyle",componentId:"sc-7a1uhf-3"})(["padding:","px;"," "," ",""],2*c.iI,(function(n){return"\n background-color: ".concat((n.theme||o.Z).interactive.defaultBackground,";\n border-bottom: ").concat(i.YF,"px ").concat(i.M8," ").concat((n.theme||o.Z).borders.medium,";\n ")}),(function(n){return n.padding&&"\n padding: ".concat(n.padding,"px;\n ")}),(function(n){return n.rounded&&"\n border-top-left-radius: ".concat(i.n_,"px;\n border-top-right-radius: ").concat(i.n_,"px;\n ")}))},65597:function(n,e,t){"use strict";t.d(e,{f:function(){return a}});var r=t(9518),o=t(23831),i=t(49125),c=t(73942),a=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*i.iI,c.TR,2*i.iI,(function(n){return"\n box-shadow: ".concat((n.theme.shadow||o.Z.shadow).popup,";\n background-color: ").concat((n.theme.interactive||o.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.leftOffset&&"\n left: ".concat(n.leftOffset,"px;\n ")}),(function(n){return n.topOffset&&"\n top: ".concat(n.topOffset,"px;\n ")}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")}))},45838:function(n,e,t){"use strict";t.d(e,{GZ:function(){return d},Vq:function(){return l},cE:function(){return f},cl:function(){return a},kA:function(){return u}});var r=t(9518),o=t(23831),i=t(37391),c=t(49125),a=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," ",""],i.w5,(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),u=r.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),l=r.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),s=(0,r.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(n){return!n.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")})),d=r.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],s,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||o.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),f=r.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],s,(function(n){return n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")}),(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(n,e,t){"use strict";var r=t(82394),o=t(12691),i=t.n(o),c=t(82684),a=t(67971),u=t(10919),l=t(86673),s=t(19711),d=t(46261),f=t(45838),p=t(28598);function h(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function m(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?h(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}e.Z=function(n){var e=n.alignTop,t=n.borderCollapseSeparate,r=n.buildLinkProps,o=n.columnBorders,h=n.columnFlex,g=n.columnMaxWidth,b=n.columns,v=void 0===b?[]:b,y=n.compact,w=n.highlightRowOnHover,j=n.isSelectedRow,x=n.noBorder,O=n.noHeader,k=n.onClickRow,S=n.rows,C=n.rowVerticalPadding,Z=n.stickyFirstColumn,P=n.stickyHeader,E=n.uuid,_=n.wrapColumns,T=(0,c.useMemo)((function(){return h.reduce((function(n,e){return n+(e||0)}),0)}),h),D=(0,c.useCallback)((function(n){if(h[n]){var e=Math.round(h[n]/T*100);return"".concat(e,"%")}return null}),[]),N=(0,c.useMemo)((function(){return null===S||void 0===S?void 0:S.map((function(n,t){var a=null===r||void 0===r?void 0:r(t),l=n.map((function(r,i){return(0,p.jsx)(f.cE,{alignTop:e,columnBorders:o,compact:y,last:i===n.length-1,maxWidth:null===g||void 0===g?void 0:g(i),noBorder:x,rowVerticalPadding:C,selected:null===j||void 0===j?void 0:j(t),stickyFirstColumn:Z&&0===i,width:D(i),wrapColumns:_,children:r},"".concat(E,"-row-").concat(t,"-cell-").concat(i))})),s=(0,p.jsx)(f.Vq,{highlightOnHover:w,noHover:!(a||k),onClick:k?function(){return k(t)}:null,children:l},"".concat(E,"-row-").concat(t));return a?(0,c.createElement)(i(),m(m({},a),{},{key:"".concat(E,"-row-link-").concat(t),passHref:!0}),(0,p.jsx)(u.Z,{fullWidth:!0,noHoverUnderline:!0,noOutline:!0,style:{display:"table-row-group"},verticalAlignContent:!0,children:s})):s}))}),[e,r,D,g,v,y,j,x,k,S]);return(0,p.jsxs)(f.kA,{borderCollapseSeparate:t,columnBorders:o,children:[(null===v||void 0===v?void 0:v.length)>=1&&!O&&(0,p.jsx)(f.Vq,{noHover:!0,children:v.map((function(n,e){return(0,p.jsx)(f.GZ,{columnBorders:o,compact:y,last:e===v.length-1,noBorder:x,sticky:P,children:(0,p.jsxs)(a.Z,{alignItems:"center",children:[(0,p.jsx)(s.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,p.jsx)(l.Z,{ml:"4px",children:(0,p.jsx)(d.Z,{appearBefore:!0,label:(0,p.jsx)(s.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(E,"-col-").concat(n.uuid,"-").concat(e))}))}),N]})}},86422:function(n,e,t){"use strict";t.d(e,{$W:function(){return f},DA:function(){return d},HX:function(){return m},J8:function(){return h},Lq:function(){return l},Qj:function(){return g},Ut:function(){return w},V4:function(){return y},VZ:function(){return p},dO:function(){return s},f2:function(){return v},iZ:function(){return b},t6:function(){return c},tf:function(){return u}});var r,o,i,c,a=t(82394);!function(n){n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(c||(c={}));var u,l,s=(r={},(0,a.Z)(r,c.PYTHON,"PY"),(0,a.Z)(r,c.R,"R"),(0,a.Z)(r,c.SQL,"SQL"),(0,a.Z)(r,c.YAML,"YAML"),r);!function(n){n.CHART="chart",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.TRANSFORMER="transformer"}(u||(u={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(l||(l={}));var d,f=[u.CHART,u.CUSTOM,u.DATA_EXPORTER,u.DATA_LOADER,u.SCRATCHPAD,u.SENSOR,u.TRANSFORMER],p=[u.DATA_EXPORTER,u.DATA_LOADER],h=[u.DATA_EXPORTER,u.DATA_LOADER,u.TRANSFORMER],m=[u.DATA_EXPORTER,u.DATA_LOADER,u.DBT,u.TRANSFORMER],g=[u.CHART,u.SCRATCHPAD,u.SENSOR],b=[u.SCRATCHPAD];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(d||(d={}));var v=[u.DATA_EXPORTER,u.TRANSFORMER],y=(o={},(0,a.Z)(o,u.CUSTOM,"Custom"),(0,a.Z)(o,u.DATA_EXPORTER,"Data exporter"),(0,a.Z)(o,u.DATA_LOADER,"Data loader"),(0,a.Z)(o,u.SCRATCHPAD,"Scratchpad"),(0,a.Z)(o,u.SENSOR,"Sensor"),(0,a.Z)(o,u.TRANSFORMER,"Transformer"),o),w=[u.DATA_LOADER,u.TRANSFORMER,u.DATA_EXPORTER];i={},(0,a.Z)(i,u.DATA_EXPORTER,"DE"),(0,a.Z)(i,u.DATA_LOADER,"DL"),(0,a.Z)(i,u.SCRATCHPAD,"SP"),(0,a.Z)(i,u.SENSOR,"SR"),(0,a.Z)(i,u.TRANSFORMER,"TF")},87372:function(n,e,t){"use strict";var r,o,i,c,a,u,l,s,d=t(82394),f=t(26304),p=t(26653),h=t(9518),m=t(33591),g=t(23831),b=t(2005),v=t(31012),y=t(19711),w=t(49125),j=t(86673),x=t(28598),O=["children","condensed","inline","level","marketing","spacingBelow"];function k(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function S(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?k(Object(t),!0).forEach((function(e){(0,d.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var C=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],y.IH,(function(n){return n.color&&"\n color: ".concat(n.color,"\n ")}),(function(n){return n.yellow&&"\n color: ".concat((n.theme.accent||g.Z.accent).yellow,";\n ")}),(function(n){return n.center&&"\n text-align: center;\n "}),(function(n){return!n.monospace&&0===Number(n.weightStyle)&&"\n font-family: ".concat(b.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "})),Z=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||g.Z.content).active,";\n ")})),P=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],C,m.media.md(r||(r=(0,p.Z)(["\n ","\n "])),v.aQ),m.media.lg(o||(o=(0,p.Z)(["\n ","\n "])),v.aQ),m.media.xl(i||(i=(0,p.Z)(["\n ","\n "])),v.aQ)),E=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],C,v.MJ),_=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],C,m.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.sm(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.md(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.lg(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.xl(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),T=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],C,v.BL),D=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],C),N=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],C),A=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],C),R=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],C,(function(n){return 1===n.level&&"\n ".concat(v.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(v.BL,"\n ")}),(function(n){return 3===n.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(n){return 4===n.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),I=function(n){var e,t=n.children,r=n.condensed,o=n.inline,i=n.level,c=n.marketing,a=n.spacingBelow,u=(0,f.Z)(n,O);o?e=R:0===Number(i)?e=P:1===Number(i)?e=c?_:E:2===Number(i)?e=T:3===Number(i)?e=D:4===Number(i)?e=N:5===Number(i)&&(e=A);var l=(0,x.jsxs)(e,S(S({},u),{},{level:i,children:[a&&(0,x.jsx)(j.Z,{mb:r?2:3,children:t}),!a&&t]}));return o?l:(0,x.jsx)(Z,{children:l})};I.defaultProps={level:3,weightStyle:6},e.Z=I},82944:function(n,e,t){"use strict";var r=t(82394),o=t(91835),i=t(82684),c=t(9518),a=t(69898),u=t(28598);function l(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function s(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?l(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var d=c.default.input.withConfig({displayName:"TextInput__TextInputStyle",componentId:"sc-1ii4qtc-0"})(["",""],a.p),f=function(n,e){var t=(0,o.Z)({},n);return(0,u.jsx)(a.Z,s(s({},t),{},{input:(0,u.jsx)(d,s({},t)),ref:e}))};e.Z=i.forwardRef(f)},70902:function(n,e,t){"use strict";var r=t(82394),o=t(26304),i=t(82684),c=t(9518),a=t(69898),u=t(23831),l=t(28598),s=["checked","onCheck"];function d(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function f(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?d(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var p=c.default.label.withConfig({displayName:"ToggleSwitch__ToggleSwitchStyle",componentId:"sc-179r5zs-0"})([""," position:relative;display:inline-block;width:","px;min-width:","px;height:",'px;& input[type="checkbox"]{display:none;}& span{position:absolute;cursor:',";background-color:",";border-radius:13px;",';top:0;right:0;bottom:0;left:0;transition:background-color 0.2s ease;}& span::before{position:absolute;content:"";left:2px;top:2px;width:22px;height:22px;background-color:#787A85;border-radius:50%;transition:transform 0.3s ease;}& input[type="checkbox"]:checked + span::before{transform:translateX(20px);}',""],a.p,46,46,26,(function(n){return n.disabled?"not-allowed":"pointer"}),(function(n){return n.disabled?u.Z.monotone.white:u.Z.monotone.black}),(function(n){return n.disabled&&"border: 1px solid ".concat(u.Z.monotone.grey200)}),(function(n){return!n.disabled&&'\n & input[type="checkbox"]:checked + span {\n background-color: #6AA1E0;\n }\n\n & input[type="checkbox"]:checked + span::before {\n background-color: '.concat(u.Z.monotone.white,";\n }\n ")})),h=function(n,e){var t=n.checked,r=n.onCheck,i=(0,o.Z)(n,s);return(0,l.jsx)(a.Z,f(f({},i),{},{input:(0,l.jsxs)(p,f(f({},i),{},{noBackground:!0,noBorder:!0,children:[(0,l.jsx)("input",{checked:t,type:"checkbox"}),(0,l.jsx)("span",{onClick:function(){return r((function(n){return!n}))}})]})),noBackground:!0,ref:e}))};e.Z=i.forwardRef(h)},48438:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return z}});var r=t(77837),o=t(75582),i=t(38860),c=t.n(i),a=t(82684),u=t(83455),l=t(60328),s=t(47999),d=t(57722),f=t(67971),p=t(87372),h=t(11135),m=t(86673),g=t(87815),b=t(19711),v=t(82944),y=t(70902),w=t(82531),j=t(10503),x=t(86422),O=t(73899),k=t(99994),S=t(85307),C=t(49125),Z=t(96510),P=t(90211),E=t(28598);var _=function(n){var e=n.fetchInstances,t=n.instanceType,r=(0,a.useState)(),i=r[0],c=r[1],l=(0,a.useState)(),s=l[0],_=l[1],T=(0,a.useState)(),D=T[0],N=T[1],A=(0,a.useState)(null),R=A[0],I=A[1],M=(0,a.useState)(),H=M[0],z=M[1],B=(0,a.useState)(),L=B[0],F=B[1],W=(0,u.Db)(w.ZP.instances.clusters.useCreate(t),{onSuccess:function(n){return(0,Z.wD)(n,{callback:function(n){n.success?(e(),c(!1)):_(n.error_message)},onErrorCallback:function(n){var e=n.error,t=e.errors,r=e.message;console.log(t,r)}})}}),U=(0,o.Z)(W,2),V=U[0],X=U[1].isLoading,Y=[[(0,E.jsx)(b.ZP,{bold:!0,color:O.cM,children:"Instance name"}),(0,E.jsx)(v.Z,{label:"ecs"===t?"Spaces will be replaced by underscores":"Spaces will be replaced by hyphens",monospace:!0,onChange:function(n){n.preventDefault(),z(n.target.value)},placeholder:"Name your new instance",value:H})]];return"k8s"===t&&Y.push([(0,E.jsx)(b.ZP,{bold:!0,color:O.cM,children:"Service account name (optional)"}),(0,E.jsx)(v.Z,{label:"Name of service account to be attached to stateful set",monospace:!0,onChange:function(n){n.preventDefault(),F(n.target.value)},placeholder:"Service account name",value:L})]),(0,E.jsx)(E.Fragment,{children:i?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(p.Z,{default:!0,level:5,monospace:!0,children:"Configure new instance"}),(0,E.jsx)(g.Z,{columnFlex:[null,3],rows:Y}),"k8s"===t&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(m.Z,{mt:1,children:(0,E.jsxs)(f.Z,{alignItems:"center",children:[(0,E.jsx)(b.ZP,{default:!0,monospace:!0,children:"Configure container"}),(0,E.jsx)(m.Z,{ml:1}),(0,E.jsx)(y.Z,{checked:D,onCheck:function(){return N((function(n){return!n}))}})]})}),D&&(0,E.jsx)(m.Z,{mt:1,children:(0,E.jsx)(S.$W,{children:(0,E.jsx)(d.Z,{autoHeight:!0,language:x.t6.YAML,onChange:function(n){I(n)},tabSize:2,value:R||void 0,width:"100%"})})})]}),X&&(0,E.jsx)(m.Z,{mt:1,children:(0,E.jsx)(b.ZP,{small:!0,warning:!0,children:"This may take up to a few minutes... Once the service is created, it may take another 5-10 minutes for the service to be accessible."})}),!X&&s&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(m.Z,{mt:1,children:(0,E.jsx)(b.ZP,{small:!0,danger:!0,children:"Failed to create instance, see error below."})}),(0,E.jsx)(m.Z,{mt:1,children:(0,E.jsx)(b.ZP,{small:!0,danger:!0,children:s})})]}),(0,E.jsx)(m.Z,{my:2,children:(0,E.jsxs)(f.Z,{children:[(0,E.jsx)(h.ZP,{background:O.a$,bold:!0,inline:!0,loading:X,onClick:function(){return V({instance:{name:(n=H,"ecs"===t?(0,P.We)(n,"_"):(0,P.We)(n,"-")),service_account_name:L,container_config:D&&R}});var n},uuid:"EnvironmentListPage/new",children:"Create"}),(0,E.jsx)(m.Z,{ml:1}),(0,E.jsx)(h.ZP,{bold:!0,inline:!0,onClick:function(){return c(!1)},uuid:"EnvironmentListPage/cancel",children:"Cancel"})]})})]}):(0,E.jsx)(h.ZP,{background:k.eW,beforeElement:(0,E.jsx)(j.mm,{size:2.5*C.iI}),bold:!0,inline:!0,onClick:function(){z((0,P.Y6)()),c(!0)},uuid:"EnvironmentListPage/new_instance",children:"Create new instance"})})},T=t(70434),D=t(62084),N=t(41788),A=t(73942),R=t(65597),I=t(72454);function M(n){var e=n.fetchInstances,t=n.instance,r=n.instanceType,i=(0,a.useRef)(null),c=(0,a.useState)(),d=c[0],p=c[1],h=(0,a.useState)(),g=h[0],v=h[1],y=t.name,x=t.task_arn,O={};x&&(O.task_arn=x);var k=(0,u.Db)(w.ZP.instances.clusters.useUpdate(r,y),{onSuccess:function(n){return(0,Z.wD)(n,{callback:function(){e(),p(!1)},onErrorCallback:function(n){var e=n.error,t=e.errors,r=e.message;console.log(t,r)}})}}),S=(0,o.Z)(k,1)[0],P=(0,u.Db)(w.ZP.instances.clusters.useDelete(r,y,O),{onSuccess:function(n){return(0,Z.wD)(n,{callback:function(){e(),p(!1)},onErrorCallback:function(n){var e=n.error,t=e.errors,r=e.message;console.log(t,r)}})}}),_=(0,o.Z)(P,1)[0],T=(0,a.useMemo)((function(){var n=t.status,e=[{label:function(){return(0,E.jsx)(b.ZP,{children:"Delete instance"})},onClick:function(){return v(!0)},uuid:"delete_instance"}];return"STOPPED"===n?e.unshift({label:function(){return(0,E.jsx)(b.ZP,{children:"Resume instance"})},onClick:function(){return S({instance:{action:"resume",name:t.name,task_arn:t.task_arn}})},uuid:"resume_instance"}):"RUNNING"===n&&e.unshift({label:function(){return(0,E.jsx)(b.ZP,{children:"Stop instance"})},onClick:function(){return S({instance:{action:"stop",name:t.name,task_arn:t.task_arn}})},uuid:"stop_instance"}),e}),[t]);return(0,E.jsx)(E.Fragment,{children:"ecs"===r&&(0,E.jsxs)("div",{ref:i,style:{position:"relative",zIndex:"1"},children:[(0,E.jsx)(l.Z,{iconOnly:!0,onClick:function(){return p(!d)},children:(0,E.jsx)(j.mH,{size:2*C.iI})}),(0,E.jsx)(s.Z,{disableEscape:!0,onClickOutside:function(){p(!1),v(!1)},open:d,children:g?(0,E.jsxs)(R.f,{leftOffset:30*-C.iI,topOffset:3*-C.iI,width:30*C.iI,children:[(0,E.jsx)(b.ZP,{children:"Are you sure you want to delete"}),(0,E.jsx)(b.ZP,{children:"this instance? You may not be"}),(0,E.jsx)(b.ZP,{children:"able to recover your data."}),(0,E.jsx)(m.Z,{mt:1}),(0,E.jsxs)(f.Z,{children:[(0,E.jsx)(l.Z,{danger:!0,onClick:_,children:"Confirm"}),(0,E.jsx)(m.Z,{ml:1}),(0,E.jsx)(l.Z,{default:!0,onClick:function(){return v(!1)},children:"Cancel"})]})]}):(0,E.jsx)(D.Z,{items:T,left:25*-C.iI,open:d,parentRef:i,topOffset:3*-C.iI,uuid:"Manage/more_actions",width:25*C.iI})})]})})}function H(){var n,e=(0,a.useState)(),t=(e[0],e[1],w.ZP.status.list().data),r=(null===t||void 0===t||null===(n=t.status)||void 0===n?void 0:n.instance_type)||"ecs",o=w.ZP.instances.clusters.list(r,{},{refreshInterval:3e3,revalidateOnFocus:!0}),i=o.data,c=o.mutate,u=(0,a.useMemo)((function(){var n;return null===i||void 0===i||null===(n=i.instances)||void 0===n?void 0:n.filter((function(n){return n.name}))}),[i]);return(0,E.jsx)(T.Z,{afterWidth:I.k1,beforeWidth:I.k1,breadcrumbs:[{bold:!0,label:function(){return"Manage (".concat(r,")")}}],navigationItems:[],subheaderChildren:(0,E.jsx)(_,{fetchInstances:c,instanceType:r}),title:"Manage",uuid:"Manage/index",children:(0,E.jsx)(g.Z,{columns:[{uuid:"Status"},{uuid:"Instance Name"},{uuid:"Type"},{uuid:"Public IP address"},{uuid:"Open"},{label:function(){return""},uuid:"Actions"}],columnFlex:[2,4,2,3,1,null],rows:null===u||void 0===u?void 0:u.map((function(n){var e=n.ip,t=n.name,o=n.status,i=n.type,a="http://".concat(e);return"ecs"===r&&(a="http://".concat(e,":6789")),[(0,E.jsx)(l.Z,{borderRadius:A.D7,danger:"STOPPED"===o,default:"PROVISIONING"===o,notClickable:!0,padding:"6px",primary:"RUNNING"===o,warning:"PENDING"===o,children:(0,P.vg)(o)}),(0,E.jsx)(b.ZP,{children:t}),(0,E.jsx)(b.ZP,{children:(0,P.vg)(i)}),(0,E.jsx)(b.ZP,{children:e}),(0,E.jsx)(l.Z,{iconOnly:!0,onClick:function(){return window.open(a)},children:(0,E.jsx)(j.M0,{size:2*C.iI})}),(0,E.jsx)(M,{fetchInstances:c,instance:n,instanceType:r})]}))})})}H.getInitialProps=(0,r.Z)(c().mark((function n(){return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{});case 1:case"end":return n.stop()}}),n)})));var z=(0,N.Z)(H)},24224:function(n,e,t){"use strict";t.d(e,{HK:function(){return u},IN:function(){return w},Od:function(){return f},Qj:function(){return g},Sm:function(){return y},YC:function(){return l},fS:function(){return h},m5:function(){return v},mp:function(){return j},mr:function(){return s},oM:function(){return p},ry:function(){return d},sE:function(){return a},tS:function(){return m},w6:function(){return b}});var r=t(82394),o=t(7715);function i(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function c(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?i(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function a(n,e){return null===n||void 0===n?void 0:n.find(e)}function u(n,e){return null===n||void 0===n?void 0:n.reduce((function(n,t){return c(c({},n),{},(0,r.Z)({},e(t),t))}),{})}function l(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.ascending,i=void 0===r||r,c=t.absoluteValue,a=void 0!==c&&c,u="string"===typeof e||"number"===typeof e?function(n){return a?Math.abs((0,o.t2)(n,e)):(0,o.t2)(n,e)}:function(n){return a?Math.abs(e(n)):e(n)};return n.sort((function(n,e){var t=0;return u(n)>u(e)?t=i?1:-1:u(n)<u(e)&&(t=i?-1:1),t}))}function s(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.ascending,r=void 0===t||t;return n.sort((function(n,e){var t=0;return n[0]>e[0]?t=r?1:-1:n[0]<e[0]&&(t=r?-1:1),t}))}function d(n,e){for(var t=-1,r=n.length;1+t<r;){var o=t+(r-t>>1);e(n[o])?t=o:r=o}return r}function f(n,e){var t=n.findIndex(e);return p(n,t)}function p(n,e){return n.slice(0,e).concat(n.slice(e+1,n.length))}function h(n,e){return n.map((function(n){return String(n)})).join()===e.map((function(n){return String(n)})).join()}function m(n,e){return n>e}function g(n,e){return n<e}function b(n){return Array(n).fill(0)}function v(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=Array.from(Array(n).keys());return 0!==e&&(t=t.map((function(n){return n+e}))),t}function y(n){return n.reduce((function(n,e){return n+e}),0)}function w(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.reduce((function(n,e){return n+e}),0)/n.length;return Math.sqrt(n.reduce((function(n,e){return n.concat(Math.pow(e-t,2))}),[]).reduce((function(n,e){return n+e}),0)/(n.length-(e?0:1)))}function j(n){return n[Math.floor(Math.random()*n.length)]}},90211:function(n,e,t){"use strict";t.d(e,{RA:function(){return l},kC:function(){return s},vg:function(){return b},T3:function(){return w},Mp:function(){return d},Pb:function(){return a},HW:function(){return y},wX:function(){return f},x6:function(){return p},_6:function(){return h},zf:function(){return v},Y6:function(){return x},wE:function(){return O},We:function(){return u},QV:function(){return j},C5:function(){return g}});var r=t(75582),o=["aged","ancient","autumn","billowing","bitter","black","blue","bold","broken","cold","cool","crimson","damp","dark","dawn","delicate","divine","dry","empty","falling","floral","fragrant","frosty","green","hidden","holy","icy","late","lingering","little","lively","long","misty","morning","muddy","nameless","old","patient","polished","proud","purple","quiet","red","restless","rough","shy","silent","small","snowy","solitary","sparkling","spring","still","summer","throbbing","twilight","wandering","weathered","white","wild","winter","wispy","withered","young"],i=(t(92083),["bird","breeze","brook","bush","butterfly","cherry","cloud","darkness","dawn","dew","dream","dust","feather","field","fire","firefly","flower","fog","forest","frog","frost","glade","glitter","grass","haze","hill","lake","leaf","meadow","moon","morning","mountain","night","paper","pine","pond","rain","resonance","river","sea","shadow","shape","silence","sky","smoke","snow","snowflake","sound","star","sun","sun","sunset","surf","thunder","tree","violet","voice","water","water","waterfall","wave","wildflower","wind","wood"]),c=t(24224);function a(n){try{JSON.parse(n)}catch(e){return!1}return!0}function u(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return n.split(" ").join(e)}function l(n){return n.split(" ").join("_")}function s(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}function d(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*n)}function f(n){return n.charAt(0).toLowerCase()+n.slice(1)}function p(n){if(null===n||"undefined"===typeof n)return"";var e=n.toString().split("."),t=(0,r.Z)(e,2),o=t[0],i=t[1],c=o.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return i?"".concat(c,".").concat(i):c}function h(n,e){var t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e,i=void 0!==o&&null!==o;if(i||(o=2),1===o)t=n;else{var c=n.length,a=n[c-1];t="y"===a&&"day"!==n?"".concat(n.slice(0,c-1),"ies"):"".concat(n,"s"===a?"es":"s")}if(i){var u=r?p(o):o;return"".concat(u," ").concat(t)}return t}function m(n){return null===n||void 0===n?void 0:n.replace(/_/g," ")}function g(n){var e=n.length;return"ies"===n.slice(e-3,e)?"".concat(n.slice(0,e-3),"y"):"es"===n.slice(e-2,e)&&"ces"!==n.slice(e-3,e)?n.slice(0,e-2):n.slice(0,e-1)}function b(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return s(m(n.toLowerCase()))}function v(n){var e,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(o,i){if(!e){var c=(0,r.Z)(o,2),a=c[0],u=c[1],l=t.slice(0,i).reduce((function(n,e){return n*Number(e[1])}),1);n<Number(u)*l&&(e=h(a,Math.round(n/l)))}})),e}function y(n){return!isNaN(n)}function w(n){return"".concat(p(function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Math.round((n||0)*Math.pow(100,e))/100}(n)),"%")}function j(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=Math.pow(10,e);return Math.round((n||0)*t)/t}function x(){return"".concat((0,c.mp)(o)," ").concat((0,c.mp)(i))}function O(n){var e=n.split("/"),t=e[e.length-1].split(".")[0];return e.slice(0,e.length-1).concat(t).join("/")}},13157:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage",function(){return t(48438)}])}},function(n){n.O(0,[3850,2083,8789,9767,6579,434,9898,9774,2888,179],(function(){return e=13157,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8867],{59739:function(n,e,t){"use strict";var r=t(56669);function o(){}function i(){}i.resetWarningCache=o,n.exports=function(){function n(n,e,t,o,i,c){if(c!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return n}n.isRequired=n;var t={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:e,element:n,elementType:n,instanceOf:e,node:n,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return t.PropTypes=t,t}},47329:function(n,e,t){n.exports=t(59739)()},56669:function(n){"use strict";n.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7432:function(n,e,t){var r={"./Active4D.json":[266,266],"./All Hallows Eve.json":[4450,4450],"./Amy.json":[88849,8849],"./Birds of Paradise.json":[78097,8097],"./Blackboard.json":[88018,6115],"./Brilliance Black.json":[73835,3835],"./Brilliance Dull.json":[6507,6507],"./Chrome DevTools.json":[22508,2508],"./Clouds Midnight.json":[49566,9566],"./Clouds.json":[57951,7951],"./Cobalt.json":[80826,826],"./Cobalt2.json":[98256,8256],"./Dawn.json":[76958,6958],"./Dominion Day.json":[89307,9307],"./Dracula.json":[33453,3453],"./Dreamweaver.json":[19363,9363],"./Eiffel.json":[82481,2481],"./Espresso Libre.json":[44776,4776],"./GitHub Dark.json":[792,792],"./GitHub Light.json":[61450,1450],"./GitHub.json":[10739,739],"./IDLE.json":[67947,7947],"./Katzenmilch.json":[81240,1240],"./Kuroir Theme.json":[4388,4388],"./LAZY.json":[25164,5164],"./MagicWB (Amiga).json":[76443,6443],"./Merbivore Soft.json":[99361,9361],"./Merbivore.json":[86042,6042],"./Monokai Bright.json":[14883,4883],"./Monokai.json":[34454,4454],"./Night Owl.json":[60261,261],"./Nord.json":[59785,9785],"./Oceanic Next.json":[58920,8920],"./Pastels on Dark.json":[38901,8901],"./Slush and Poppies.json":[26434,6434],"./Solarized-dark.json":[36116,6116],"./Solarized-light.json":[5008,5008],"./SpaceCadet.json":[20440,440],"./Sunburst.json":[68018,8018],"./Textmate (Mac Classic).json":[15824,5824],"./Tomorrow-Night-Blue.json":[81150,1150],"./Tomorrow-Night-Bright.json":[8762,8762],"./Tomorrow-Night-Eighties.json":[82545,2545],"./Tomorrow-Night.json":[99855,9855],"./Tomorrow.json":[34092,4092],"./Twilight.json":[93898,3898],"./Upstream Sunburst.json":[98807,8807],"./Vibrant Ink.json":[89927,9927],"./Xcode_default.json":[64042,4042],"./Zenburnesque.json":[33467,3467],"./iPlastic.json":[88277,8277],"./idleFingers.json":[5104,5104],"./krTheme.json":[9633,9633],"./monoindustrial.json":[15729,5729],"./themelist.json":[79437,9437]};function o(n){if(!t.o(r,n))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+n+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=r[n],o=e[0];return t.e(e[1]).then((function(){return t.t(o,19)}))}o.keys=function(){return Object.keys(r)},o.id=7432,n.exports=o},5677:function(n,e,t){"use strict";t.d(e,{M4:function(){return d},S0:function(){return l},S_:function(){return u},Yn:function(){return f},rW:function(){return s}});var r=t(82394),o=t(21831),i=t(75582);function c(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function a(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?c(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function u(n,e){return Object.entries(e).map((function(e){var t=(0,i.Z)(e,2),r=t[0],o=t[1];return n.languages.registerCompletionItemProvider(r,{provideCompletionItems:o(n)})}))}function l(n){var e=function(n){var e="[\\w.]+",t=["import ".concat(e," as ").concat(e),"import ".concat(e),"from ".concat(e," import ").concat(e," as ").concat(e),"from ".concat(e," import ").concat(e)],r=new RegExp("(".concat(t.join("|"),")"),"g");return(0,o.Z)(n.matchAll(r)).map((function(n){return n[1]}))}(n),t="[\\w.]+",i=["from ".concat(t," import ").concat(t," as (").concat(t,")"),"from ".concat(t," import (").concat(t,")"),"import ".concat(t," as (").concat(t,")"),"import (".concat(t,")")],c=new RegExp("(".concat(i.join("|"),")"));return e.reduce((function(n,e){var t=e.match(c);if(!t)return n;var i=(0,o.Z)(t),u=i[2],l=i[3],s=i[4],d=i[5],f=u||l||s||d;return a(a({},n),{},(0,r.Z)({},f,e))}),{})}function s(n,e){var t=n;e&&(t=t.split(" as ".concat(e))[0]);var r="[\\w.]+",c=["from ".concat(r," import (").concat(r,")"),"import (".concat(r,")")],a=new RegExp("(".concat(c.join("|"),")"),"g"),u=(0,o.Z)(t.matchAll(a))[0];if(u){var l=(0,i.Z)(u,4),s=l[2],d=l[3];return s||d}}function d(n,e){return function(n,e){return n.split("\n")[e.startLineNumber-1]}(n,e).slice(0,e.startColumn-1)}function f(n){var e=new RegExp("([\\w_]+)[ ]*=[ ]*([\\w_]+)","g");return(0,o.Z)(n.matchAll(e)).map((function(n){return{assignmentValue:n[2],variableName:n[1]}}))}},32365:function(n,e,t){"use strict";t.d(e,{Ep:function(){return c},KT:function(){return l},Nk:function(){return u},aU:function(){return a}});var r=t(9518),o=t(23831),i=t(49125),c=2,a=21,u=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-w2hta3-0"})(["",""],(function(n){return n.padding&&"\n padding-top: ".concat(2*i.iI,"px;\n background-color: ").concat((n.theme.background||o.Z.background).codeTextarea,";\n ")})),l=r.default.div.withConfig({displayName:"indexstyle__PlaceholderStyle",componentId:"sc-w2hta3-1"})(["padding-left:67px;position:absolute;z-index:1;"])},57722:function(n,e,t){"use strict";t.d(e,{Z:function(){return b}});var r=t(82684),o=t(85202),i=t(38789),c=t(19711),a=t(66166),u="twilight",l=t(2005),s=t(31012),d=t(32365),f=t(5677);var p=t(75582),h={"all-hallows-eve":"All Hallows Eve","birds-of-paradise":"Birds of Paradise","brilliance-black":"Brilliance Black","brilliance-dull":"Brilliance Dull","chrome-devtools":"Chrome DevTools","clouds-midnight":"Clouds Midnight","espresso-libre":"Espresso Libre","kuroir-theme":"Kuroir Theme","magicwb--amiga-":"MagicWB (Amiga)","merbivore-soft":"Merbivore Soft","monokai-bright":"Monokai Bright","night-owl":"Night Owl","oceanic-next":"Oceanic Next","pastels-on-dark":"Pastels on Dark","slush-and-poppies":"Slush and Poppies","solarized-dark":"Solarized-dark","solarized-light":"Solarized-light","textmate--mac-classic-":"Textmate (Mac Classic)","tomorrow-night":"Tomorrow-Night","tomorrow-night-blue":"Tomorrow-Night-Blue","tomorrow-night-bright":"Tomorrow-Night-Bright","tomorrow-night-eighties":"Tomorrow-Night-Eighties","upstream-sunburst":"Upstream Sunburst","vibrant-ink":"Vibrant Ink","xcode-default":"Xcode_default",active4d:"Active4D",amy:"Amy",blackboard:"Blackboard",clouds:"Clouds",cobalt:"Cobalt",dawn:"Dawn",dreamweaver:"Dreamweaver",eiffel:"Eiffel",github:"GitHub",idle:"IDLE",idlefingers:"idleFingers",iplastic:"iPlastic",katzenmilch:"Katzenmilch",krtheme:"krTheme",lazy:"LAZY",merbivore:"Merbivore",monoindustrial:"monoindustrial",monokai:"Monokai",spacecadet:"SpaceCadet",sunburst:"Sunburst",tomorrow:"Tomorrow",twilight:"Twilight",zenburnesque:"Zenburnesque"};var m=t(80636),g=t(28598);var b=function(n){var e=n.autocompleteProviders,b=n.autoHeight,v=n.autoSave,y=n.fontSize,w=void 0===y?s.i3:y,j=n.height,x=n.language,O=n.onChange,k=n.onDidChangeCursorPosition,S=n.onSave,C=n.padding,Z=n.placeholder,P=n.readOnly,E=n.selected,_=n.setSelected,T=n.setTextareaFocused,D=n.shortcuts,N=n.showLineNumbers,A=void 0===N||N,R=n.tabSize,I=void 0===R?4:R,M=n.textareaFocused,H=n.theme,z=n.value,B=n.width,L=void 0===B?"100%":B,F=(0,r.useRef)(null),W=(0,r.useRef)(null),U=(0,r.useRef)(null),V=(0,r.useState)([]),X=V[0],Y=V[1],q=(0,r.useState)(null),G=q[0],K=q[1],Q=(0,r.useState)(!1),J=Q[0],$=Q[1],nn=(0,r.useState)(j),en=(nn[0],nn[1],(0,r.useState)(H||u)),tn=en[0],rn=en[1],on=(0,r.useCallback)((function(n){n.languages.typescript.javascriptDefaults.setEagerModelSync(!0),K(n)}),[]),cn=(0,r.useCallback)((function(n,e){F.current=n,W.current=e;var t=[];null===D||void 0===D||D.forEach((function(r){t.push(r(e,n))})),S&&t.push((0,m.e)(e,(function(){S(n.getValue())}))),function(n,e,t){t.forEach((function(n){e.addAction(n)}))}(0,n,t),n.getModel().updateOptions({tabSize:I}),b&&!j&&(n._domElement.style.height="".concat(((z||"").split("\n").length+d.Ep)*d.aU,"px")),n.onDidFocusEditorWidget((function(){null===_||void 0===_||_(!0),null===T||void 0===T||T(!0)})),n.onDidContentSizeChange((function(e){var t=e.contentHeight,r=e.contentHeightChanged;b&&r&&(n._domElement.style.height="".concat(t+2*d.aU,"px"))})),E&&M&&setTimeout((function(){n.focus()}),1),k&&n.onDidChangeCursorPosition((function(e){var t=e.position.lineNumber,r=n._domElement.getBoundingClientRect(),o=r.height,i=r.top;k({editorRect:{height:Number(o),top:Number(i)},position:{lineNumber:Number(t)}})})),$(!0)}),[b,j,k,S,E,$,_,T,D,I,M,z]);(0,r.useEffect)((function(){(function(n){return new Promise((function(e){Promise.all([i._m.init(),t(7432)("./".concat(h[n],".json"))]).then((function(t){var r=(0,p.Z)(t,2),o=r[0],i=r[1];i.colors["editor.background"]="#000000",i.colors["editor.foreground"]="#FFFFFF",o.editor.defineTheme(n,i),e()}))}))})(u).then((function(){rn(u)}))}),[]),(0,r.useEffect)((function(){var n;return v&&S&&(n=setInterval((function(){S(F.current.getValue())}),5e3)),function(){v&&n&&clearInterval(n)}}),[v,F,S]);var an=(0,a.Z)(E),un=(0,a.Z)(M);return(0,r.useEffect)((function(){null!==F&&void 0!==F&&F.current&&(E&&M?setTimeout((function(){F.current.focus()}),1):o.findDOMNode(F.current._domElement).getElementsByClassName("inputarea")[0].blur())}),[F,E,an,M,un]),(0,r.useEffect)((function(){return function(){X.map((function(n){return n.dispose()}))}}),[X]),(0,r.useEffect)((function(){G&&e&&(0===X.length&&M||!un&&M?Y((0,f.S_)(G,e)):un&&!M&&X.map((function(n){return n.dispose()})))}),[e,X,G,M,un]),(0,g.jsxs)(d.Nk,{padding:C,style:{display:J?null:"none"},children:[Z&&!(null!==z&&void 0!==z&&z.length)&&(0,g.jsx)(d.KT,{children:(0,g.jsx)(c.ZP,{monospace:!0,muted:!0,children:Z})}),(0,g.jsx)(i.ZP,{beforeMount:on,height:j,language:x||"python",onChange:function(n){null===O||void 0===O||O(n)},onMount:cn,options:{domReadOnly:P,fontFamily:l.Vp,fontLigatures:!0,fontSize:w,hideCursorInOverviewRuler:!0,lineNumbers:A,minimap:{enabled:!1},overviewRulerBorder:!1,readOnly:P,renderLineHighlightOnlyWhenFocus:!0,scrollBeyondLastLine:!1,scrollbar:{alwaysConsumeMouseWheel:!1,vertical:"hidden"},wordBasedSuggestions:!1},theme:tn,value:z,width:L}),(0,g.jsx)("div",{ref:U})]})}},80636:function(n,e,t){"use strict";function r(n,e){return{contextMenuGroupId:"navigation",contextMenuOrder:1.5,id:"saveCode",keybindingContext:null,keybindings:[n.KeyMod.CtrlCmd|n.KeyCode.KeyS],label:"Save",precondition:null,run:function(n){e()}}}function o(n,e){return{contextMenuGroupId:"navigation",contextMenuOrder:1.5,id:"executeCode",keybindingContext:null,keybindings:[n.KeyMod.CtrlCmd|n.KeyCode.Enter],label:"Run selected block",precondition:null,run:function(){return e()}}}t.d(e,{Q:function(){return o},e:function(){return r}})},85307:function(n,e,t){"use strict";t.d(e,{$W:function(){return l},cl:function(){return s},cv:function(){return d},dE:function(){return u}});var r=t(9518),o=t(23831),i=t(73942),c=t(49125),a=t(37391),u=r.default.div.withConfig({displayName:"indexstyle__SectionStyle",componentId:"sc-7a1uhf-0"})(["border-radius:","px;padding:","px;",""],i.n_,c.cd*c.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).popup,";\n ")})),l=r.default.div.withConfig({displayName:"indexstyle__CodeEditorStyle",componentId:"sc-7a1uhf-1"})(["padding-top:","px;",""],c.cd*c.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).codeTextarea,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-7a1uhf-2"})(["overflow:auto;max-height:90vh;width:100%;"," "," "," "," ",""],a.w5,(function(n){return n.hideHorizontalScrollbar&&"\n overflow-x: hidden;\n "}),(function(n){return n.width&&"\n width: ".concat(n.width,";\n ")}),(function(n){return n.height&&"\n height: ".concat(n.height,";\n ")}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,";\n ")})),d=r.default.div.withConfig({displayName:"indexstyle__HeaderRowStyle",componentId:"sc-7a1uhf-3"})(["padding:","px;"," "," ",""],2*c.iI,(function(n){return"\n background-color: ".concat((n.theme||o.Z).interactive.defaultBackground,";\n border-bottom: ").concat(i.YF,"px ").concat(i.M8," ").concat((n.theme||o.Z).borders.medium,";\n ")}),(function(n){return n.padding&&"\n padding: ".concat(n.padding,"px;\n ")}),(function(n){return n.rounded&&"\n border-top-left-radius: ".concat(i.n_,"px;\n border-top-right-radius: ").concat(i.n_,"px;\n ")}))},65597:function(n,e,t){"use strict";t.d(e,{f:function(){return a}});var r=t(9518),o=t(23831),i=t(49125),c=t(73942),a=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*i.iI,c.TR,2*i.iI,(function(n){return"\n box-shadow: ".concat((n.theme.shadow||o.Z.shadow).popup,";\n background-color: ").concat((n.theme.interactive||o.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.leftOffset&&"\n left: ".concat(n.leftOffset,"px;\n ")}),(function(n){return n.topOffset&&"\n top: ".concat(n.topOffset,"px;\n ")}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")}))},45838:function(n,e,t){"use strict";t.d(e,{GZ:function(){return d},Vq:function(){return l},cE:function(){return f},cl:function(){return a},kA:function(){return u}});var r=t(9518),o=t(23831),i=t(37391),c=t(49125),a=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," ",""],i.w5,(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),u=r.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),l=r.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),s=(0,r.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(n){return!n.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")})),d=r.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],s,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||o.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),f=r.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],s,(function(n){return n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")}),(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(n,e,t){"use strict";var r=t(82394),o=t(12691),i=t.n(o),c=t(82684),a=t(67971),u=t(10919),l=t(86673),s=t(19711),d=t(46261),f=t(45838),p=t(28598);function h(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function m(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?h(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}e.Z=function(n){var e=n.alignTop,t=n.borderCollapseSeparate,r=n.buildLinkProps,o=n.columnBorders,h=n.columnFlex,g=n.columnMaxWidth,b=n.columns,v=void 0===b?[]:b,y=n.compact,w=n.highlightRowOnHover,j=n.isSelectedRow,x=n.noBorder,O=n.noHeader,k=n.onClickRow,S=n.rows,C=n.rowVerticalPadding,Z=n.stickyFirstColumn,P=n.stickyHeader,E=n.uuid,_=n.wrapColumns,T=(0,c.useMemo)((function(){return h.reduce((function(n,e){return n+(e||0)}),0)}),h),D=(0,c.useCallback)((function(n){if(h[n]){var e=Math.round(h[n]/T*100);return"".concat(e,"%")}return null}),[]),N=(0,c.useMemo)((function(){return null===S||void 0===S?void 0:S.map((function(n,t){var a=null===r||void 0===r?void 0:r(t),l=n.map((function(r,i){return(0,p.jsx)(f.cE,{alignTop:e,columnBorders:o,compact:y,last:i===n.length-1,maxWidth:null===g||void 0===g?void 0:g(i),noBorder:x,rowVerticalPadding:C,selected:null===j||void 0===j?void 0:j(t),stickyFirstColumn:Z&&0===i,width:D(i),wrapColumns:_,children:r},"".concat(E,"-row-").concat(t,"-cell-").concat(i))})),s=(0,p.jsx)(f.Vq,{highlightOnHover:w,noHover:!(a||k),onClick:k?function(){return k(t)}:null,children:l},"".concat(E,"-row-").concat(t));return a?(0,c.createElement)(i(),m(m({},a),{},{key:"".concat(E,"-row-link-").concat(t),passHref:!0}),(0,p.jsx)(u.Z,{fullWidth:!0,noHoverUnderline:!0,noOutline:!0,style:{display:"table-row-group"},verticalAlignContent:!0,children:s})):s}))}),[e,r,D,g,v,y,j,x,k,S]);return(0,p.jsxs)(f.kA,{borderCollapseSeparate:t,columnBorders:o,children:[(null===v||void 0===v?void 0:v.length)>=1&&!O&&(0,p.jsx)(f.Vq,{noHover:!0,children:v.map((function(n,e){return(0,p.jsx)(f.GZ,{columnBorders:o,compact:y,last:e===v.length-1,noBorder:x,sticky:P,children:(0,p.jsxs)(a.Z,{alignItems:"center",children:[(0,p.jsx)(s.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,p.jsx)(l.Z,{ml:"4px",children:(0,p.jsx)(d.Z,{appearBefore:!0,label:(0,p.jsx)(s.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(E,"-col-").concat(n.uuid,"-").concat(e))}))}),N]})}},86422:function(n,e,t){"use strict";t.d(e,{$W:function(){return f},DA:function(){return d},HX:function(){return m},J8:function(){return h},Lq:function(){return l},Qj:function(){return g},Ut:function(){return w},V4:function(){return y},VZ:function(){return p},dO:function(){return s},f2:function(){return v},iZ:function(){return b},t6:function(){return c},tf:function(){return u}});var r,o,i,c,a=t(82394);!function(n){n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(c||(c={}));var u,l,s=(r={},(0,a.Z)(r,c.PYTHON,"PY"),(0,a.Z)(r,c.R,"R"),(0,a.Z)(r,c.SQL,"SQL"),(0,a.Z)(r,c.YAML,"YAML"),r);!function(n){n.CHART="chart",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.TRANSFORMER="transformer"}(u||(u={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(l||(l={}));var d,f=[u.CHART,u.CUSTOM,u.DATA_EXPORTER,u.DATA_LOADER,u.SCRATCHPAD,u.SENSOR,u.TRANSFORMER],p=[u.DATA_EXPORTER,u.DATA_LOADER],h=[u.DATA_EXPORTER,u.DATA_LOADER,u.TRANSFORMER],m=[u.DATA_EXPORTER,u.DATA_LOADER,u.DBT,u.TRANSFORMER],g=[u.CHART,u.SCRATCHPAD,u.SENSOR],b=[u.SCRATCHPAD];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(d||(d={}));var v=[u.DATA_EXPORTER,u.TRANSFORMER],y=(o={},(0,a.Z)(o,u.CUSTOM,"Custom"),(0,a.Z)(o,u.DATA_EXPORTER,"Data exporter"),(0,a.Z)(o,u.DATA_LOADER,"Data loader"),(0,a.Z)(o,u.SCRATCHPAD,"Scratchpad"),(0,a.Z)(o,u.SENSOR,"Sensor"),(0,a.Z)(o,u.TRANSFORMER,"Transformer"),o),w=[u.DATA_LOADER,u.TRANSFORMER,u.DATA_EXPORTER];i={},(0,a.Z)(i,u.DATA_EXPORTER,"DE"),(0,a.Z)(i,u.DATA_LOADER,"DL"),(0,a.Z)(i,u.SCRATCHPAD,"SP"),(0,a.Z)(i,u.SENSOR,"SR"),(0,a.Z)(i,u.TRANSFORMER,"TF")},87372:function(n,e,t){"use strict";var r,o,i,c,a,u,l,s,d=t(82394),f=t(26304),p=t(26653),h=t(9518),m=t(33591),g=t(23831),b=t(2005),v=t(31012),y=t(19711),w=t(49125),j=t(86673),x=t(28598),O=["children","condensed","inline","level","marketing","spacingBelow"];function k(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function S(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?k(Object(t),!0).forEach((function(e){(0,d.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var C=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],y.IH,(function(n){return n.color&&"\n color: ".concat(n.color,"\n ")}),(function(n){return n.yellow&&"\n color: ".concat((n.theme.accent||g.Z.accent).yellow,";\n ")}),(function(n){return n.center&&"\n text-align: center;\n "}),(function(n){return!n.monospace&&0===Number(n.weightStyle)&&"\n font-family: ".concat(b.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "})),Z=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||g.Z.content).active,";\n ")})),P=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],C,m.media.md(r||(r=(0,p.Z)(["\n ","\n "])),v.aQ),m.media.lg(o||(o=(0,p.Z)(["\n ","\n "])),v.aQ),m.media.xl(i||(i=(0,p.Z)(["\n ","\n "])),v.aQ)),E=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],C,v.MJ),_=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],C,m.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.sm(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.md(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.lg(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.xl(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),T=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],C,v.BL),D=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],C),N=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],C),A=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],C),R=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],C,(function(n){return 1===n.level&&"\n ".concat(v.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(v.BL,"\n ")}),(function(n){return 3===n.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(n){return 4===n.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),I=function(n){var e,t=n.children,r=n.condensed,o=n.inline,i=n.level,c=n.marketing,a=n.spacingBelow,u=(0,f.Z)(n,O);o?e=R:0===Number(i)?e=P:1===Number(i)?e=c?_:E:2===Number(i)?e=T:3===Number(i)?e=D:4===Number(i)?e=N:5===Number(i)&&(e=A);var l=(0,x.jsxs)(e,S(S({},u),{},{level:i,children:[a&&(0,x.jsx)(j.Z,{mb:r?2:3,children:t}),!a&&t]}));return o?l:(0,x.jsx)(Z,{children:l})};I.defaultProps={level:3,weightStyle:6},e.Z=I},82944:function(n,e,t){"use strict";var r=t(82394),o=t(91835),i=t(82684),c=t(9518),a=t(69898),u=t(28598);function l(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function s(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?l(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var d=c.default.input.withConfig({displayName:"TextInput__TextInputStyle",componentId:"sc-1ii4qtc-0"})(["",""],a.p),f=function(n,e){var t=(0,o.Z)({},n);return(0,u.jsx)(a.Z,s(s({},t),{},{input:(0,u.jsx)(d,s({},t)),ref:e}))};e.Z=i.forwardRef(f)},70902:function(n,e,t){"use strict";var r=t(82394),o=t(26304),i=t(82684),c=t(9518),a=t(69898),u=t(23831),l=t(28598),s=["checked","disabled","onCheck"];function d(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function f(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?d(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var p=c.default.label.withConfig({displayName:"ToggleSwitch__ToggleSwitchStyle",componentId:"sc-179r5zs-0"})([""," position:relative;display:inline-block;width:","px;min-width:","px;height:",'px;& input[type="checkbox"]{display:none;}& span{position:absolute;cursor:',";background-color:",";border-radius:13px;",';top:0;right:0;bottom:0;left:0;transition:background-color 0.2s ease;}& span::before{position:absolute;content:"";left:2px;top:2px;width:22px;height:22px;background-color:#787A85;border-radius:50%;transition:transform 0.3s ease;}& input[type="checkbox"]:checked + span::before{transform:translateX(20px);}',""],a.p,46,46,26,(function(n){return n.disabled?"not-allowed":"pointer"}),(function(n){return n.disabled?u.Z.monotone.white:u.Z.monotone.black}),(function(n){return n.disabled&&"border: 1px solid ".concat(u.Z.monotone.grey200)}),(function(n){return!n.disabled&&'\n & input[type="checkbox"]:checked + span {\n background-color: #6AA1E0;\n }\n\n & input[type="checkbox"]:checked + span::before {\n background-color: '.concat(u.Z.monotone.white,";\n }\n ")})),h=function(n,e){var t=n.checked,r=n.disabled,i=n.onCheck,c=(0,o.Z)(n,s);return(0,l.jsx)(a.Z,f(f({},c),{},{disabled:r,input:(0,l.jsxs)(p,f(f({},c),{},{disabled:r,noBackground:!0,noBorder:!0,children:[(0,l.jsx)("input",{checked:t,type:"checkbox"}),(0,l.jsx)("span",{onClick:r?null:function(){return null===i||void 0===i?void 0:i((function(n){return!n}))}})]})),noBackground:!0,ref:e}))};e.Z=i.forwardRef(h)},48438:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return z}});var r=t(77837),o=t(75582),i=t(38860),c=t.n(i),a=t(82684),u=t(83455),l=t(60328),s=t(47999),d=t(57722),f=t(67971),p=t(87372),h=t(11135),m=t(86673),g=t(87815),b=t(19711),v=t(82944),y=t(70902),w=t(82531),j=t(10503),x=t(86422),O=t(73899),k=t(99994),S=t(85307),C=t(49125),Z=t(96510),P=t(90211),E=t(28598);var _=function(n){var e=n.fetchInstances,t=n.instanceType,r=(0,a.useState)(),i=r[0],c=r[1],l=(0,a.useState)(),s=l[0],_=l[1],T=(0,a.useState)(),D=T[0],N=T[1],A=(0,a.useState)(null),R=A[0],I=A[1],M=(0,a.useState)(),H=M[0],z=M[1],B=(0,a.useState)(),L=B[0],F=B[1],W=(0,u.Db)(w.ZP.instances.clusters.useCreate(t),{onSuccess:function(n){return(0,Z.wD)(n,{callback:function(n){n.success?(e(),c(!1)):_(n.error_message)},onErrorCallback:function(n){var e=n.error,t=e.errors,r=e.message;console.log(t,r)}})}}),U=(0,o.Z)(W,2),V=U[0],X=U[1].isLoading,Y=[[(0,E.jsx)(b.ZP,{bold:!0,color:O.cM,children:"Instance name"}),(0,E.jsx)(v.Z,{label:"ecs"===t?"Spaces will be replaced by underscores":"Spaces will be replaced by hyphens",monospace:!0,onChange:function(n){n.preventDefault(),z(n.target.value)},placeholder:"Name your new instance",value:H})]];return"k8s"===t&&Y.push([(0,E.jsx)(b.ZP,{bold:!0,color:O.cM,children:"Service account name (optional)"}),(0,E.jsx)(v.Z,{label:"Name of service account to be attached to stateful set",monospace:!0,onChange:function(n){n.preventDefault(),F(n.target.value)},placeholder:"Service account name",value:L})]),(0,E.jsx)(E.Fragment,{children:i?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(p.Z,{default:!0,level:5,monospace:!0,children:"Configure new instance"}),(0,E.jsx)(g.Z,{columnFlex:[null,3],rows:Y}),"k8s"===t&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(m.Z,{mt:1,children:(0,E.jsxs)(f.Z,{alignItems:"center",children:[(0,E.jsx)(b.ZP,{default:!0,monospace:!0,children:"Configure container"}),(0,E.jsx)(m.Z,{ml:1}),(0,E.jsx)(y.Z,{checked:D,onCheck:function(){return N((function(n){return!n}))}})]})}),D&&(0,E.jsx)(m.Z,{mt:1,children:(0,E.jsx)(S.$W,{children:(0,E.jsx)(d.Z,{autoHeight:!0,language:x.t6.YAML,onChange:function(n){I(n)},tabSize:2,value:R||void 0,width:"100%"})})})]}),X&&(0,E.jsx)(m.Z,{mt:1,children:(0,E.jsx)(b.ZP,{small:!0,warning:!0,children:"This may take up to a few minutes... Once the service is created, it may take another 5-10 minutes for the service to be accessible."})}),!X&&s&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(m.Z,{mt:1,children:(0,E.jsx)(b.ZP,{small:!0,danger:!0,children:"Failed to create instance, see error below."})}),(0,E.jsx)(m.Z,{mt:1,children:(0,E.jsx)(b.ZP,{small:!0,danger:!0,children:s})})]}),(0,E.jsx)(m.Z,{my:2,children:(0,E.jsxs)(f.Z,{children:[(0,E.jsx)(h.ZP,{background:O.a$,bold:!0,inline:!0,loading:X,onClick:function(){return V({instance:{name:(n=H,"ecs"===t?(0,P.We)(n,"_"):(0,P.We)(n,"-")),service_account_name:L,container_config:D&&R}});var n},uuid:"EnvironmentListPage/new",children:"Create"}),(0,E.jsx)(m.Z,{ml:1}),(0,E.jsx)(h.ZP,{bold:!0,inline:!0,onClick:function(){return c(!1)},uuid:"EnvironmentListPage/cancel",children:"Cancel"})]})})]}):(0,E.jsx)(h.ZP,{background:k.eW,beforeElement:(0,E.jsx)(j.mm,{size:2.5*C.iI}),bold:!0,inline:!0,onClick:function(){z((0,P.Y6)()),c(!0)},uuid:"EnvironmentListPage/new_instance",children:"Create new instance"})})},T=t(70434),D=t(62084),N=t(41788),A=t(73942),R=t(65597),I=t(72454);function M(n){var e=n.fetchInstances,t=n.instance,r=n.instanceType,i=(0,a.useRef)(null),c=(0,a.useState)(),d=c[0],p=c[1],h=(0,a.useState)(),g=h[0],v=h[1],y=t.name,x=t.task_arn,O={};x&&(O.task_arn=x);var k=(0,u.Db)(w.ZP.instances.clusters.useUpdate(r,y),{onSuccess:function(n){return(0,Z.wD)(n,{callback:function(){e(),p(!1)},onErrorCallback:function(n){var e=n.error,t=e.errors,r=e.message;console.log(t,r)}})}}),S=(0,o.Z)(k,1)[0],P=(0,u.Db)(w.ZP.instances.clusters.useDelete(r,y,O),{onSuccess:function(n){return(0,Z.wD)(n,{callback:function(){e(),p(!1)},onErrorCallback:function(n){var e=n.error,t=e.errors,r=e.message;console.log(t,r)}})}}),_=(0,o.Z)(P,1)[0],T=(0,a.useMemo)((function(){var n=t.status,e=[{label:function(){return(0,E.jsx)(b.ZP,{children:"Delete instance"})},onClick:function(){return v(!0)},uuid:"delete_instance"}];return"STOPPED"===n?e.unshift({label:function(){return(0,E.jsx)(b.ZP,{children:"Resume instance"})},onClick:function(){return S({instance:{action:"resume",name:t.name,task_arn:t.task_arn}})},uuid:"resume_instance"}):"RUNNING"===n&&e.unshift({label:function(){return(0,E.jsx)(b.ZP,{children:"Stop instance"})},onClick:function(){return S({instance:{action:"stop",name:t.name,task_arn:t.task_arn}})},uuid:"stop_instance"}),e}),[t]);return(0,E.jsx)(E.Fragment,{children:"ecs"===r&&(0,E.jsxs)("div",{ref:i,style:{position:"relative",zIndex:"1"},children:[(0,E.jsx)(l.Z,{iconOnly:!0,onClick:function(){return p(!d)},children:(0,E.jsx)(j.mH,{size:2*C.iI})}),(0,E.jsx)(s.Z,{disableEscape:!0,onClickOutside:function(){p(!1),v(!1)},open:d,children:g?(0,E.jsxs)(R.f,{leftOffset:30*-C.iI,topOffset:3*-C.iI,width:30*C.iI,children:[(0,E.jsx)(b.ZP,{children:"Are you sure you want to delete"}),(0,E.jsx)(b.ZP,{children:"this instance? You may not be"}),(0,E.jsx)(b.ZP,{children:"able to recover your data."}),(0,E.jsx)(m.Z,{mt:1}),(0,E.jsxs)(f.Z,{children:[(0,E.jsx)(l.Z,{danger:!0,onClick:_,children:"Confirm"}),(0,E.jsx)(m.Z,{ml:1}),(0,E.jsx)(l.Z,{default:!0,onClick:function(){return v(!1)},children:"Cancel"})]})]}):(0,E.jsx)(D.Z,{items:T,left:25*-C.iI,open:d,parentRef:i,topOffset:3*-C.iI,uuid:"Manage/more_actions",width:25*C.iI})})]})})}function H(){var n,e=(0,a.useState)(),t=(e[0],e[1],w.ZP.status.list().data),r=(null===t||void 0===t||null===(n=t.status)||void 0===n?void 0:n.instance_type)||"ecs",o=w.ZP.instances.clusters.list(r,{},{refreshInterval:3e3,revalidateOnFocus:!0}),i=o.data,c=o.mutate,u=(0,a.useMemo)((function(){var n;return null===i||void 0===i||null===(n=i.instances)||void 0===n?void 0:n.filter((function(n){return n.name}))}),[i]);return(0,E.jsx)(T.Z,{afterWidth:I.k1,beforeWidth:I.k1,breadcrumbs:[{bold:!0,label:function(){return"Manage (".concat(r,")")}}],navigationItems:[],subheaderChildren:(0,E.jsx)(_,{fetchInstances:c,instanceType:r}),title:"Manage",uuid:"Manage/index",children:(0,E.jsx)(g.Z,{columns:[{uuid:"Status"},{uuid:"Instance Name"},{uuid:"Type"},{uuid:"Public IP address"},{uuid:"Open"},{label:function(){return""},uuid:"Actions"}],columnFlex:[2,4,2,3,1,null],rows:null===u||void 0===u?void 0:u.map((function(n){var e=n.ip,t=n.name,o=n.status,i=n.type,a="http://".concat(e);return"ecs"===r&&(a="http://".concat(e,":6789")),[(0,E.jsx)(l.Z,{borderRadius:A.D7,danger:"STOPPED"===o,default:"PROVISIONING"===o,notClickable:!0,padding:"6px",primary:"RUNNING"===o,warning:"PENDING"===o,children:(0,P.vg)(o)}),(0,E.jsx)(b.ZP,{children:t}),(0,E.jsx)(b.ZP,{children:(0,P.vg)(i)}),(0,E.jsx)(b.ZP,{children:e}),(0,E.jsx)(l.Z,{iconOnly:!0,onClick:function(){return window.open(a)},children:(0,E.jsx)(j.M0,{size:2*C.iI})}),(0,E.jsx)(M,{fetchInstances:c,instance:n,instanceType:r})]}))})})}H.getInitialProps=(0,r.Z)(c().mark((function n(){return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{});case 1:case"end":return n.stop()}}),n)})));var z=(0,N.Z)(H)},24224:function(n,e,t){"use strict";t.d(e,{HK:function(){return u},IN:function(){return w},Od:function(){return f},Qj:function(){return g},Sm:function(){return y},YC:function(){return l},fS:function(){return h},m5:function(){return v},mp:function(){return j},mr:function(){return s},oM:function(){return p},ry:function(){return d},sE:function(){return a},tS:function(){return m},w6:function(){return b}});var r=t(82394),o=t(7715);function i(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function c(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?i(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function a(n,e){return null===n||void 0===n?void 0:n.find(e)}function u(n,e){return null===n||void 0===n?void 0:n.reduce((function(n,t){return c(c({},n),{},(0,r.Z)({},e(t),t))}),{})}function l(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.ascending,i=void 0===r||r,c=t.absoluteValue,a=void 0!==c&&c,u="string"===typeof e||"number"===typeof e?function(n){return a?Math.abs((0,o.t2)(n,e)):(0,o.t2)(n,e)}:function(n){return a?Math.abs(e(n)):e(n)};return n.sort((function(n,e){var t=0;return u(n)>u(e)?t=i?1:-1:u(n)<u(e)&&(t=i?-1:1),t}))}function s(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.ascending,r=void 0===t||t;return n.sort((function(n,e){var t=0;return n[0]>e[0]?t=r?1:-1:n[0]<e[0]&&(t=r?-1:1),t}))}function d(n,e){for(var t=-1,r=n.length;1+t<r;){var o=t+(r-t>>1);e(n[o])?t=o:r=o}return r}function f(n,e){var t=n.findIndex(e);return p(n,t)}function p(n,e){return n.slice(0,e).concat(n.slice(e+1,n.length))}function h(n,e){return n.map((function(n){return String(n)})).join()===e.map((function(n){return String(n)})).join()}function m(n,e){return n>e}function g(n,e){return n<e}function b(n){return Array(n).fill(0)}function v(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=Array.from(Array(n).keys());return 0!==e&&(t=t.map((function(n){return n+e}))),t}function y(n){return n.reduce((function(n,e){return n+e}),0)}function w(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.reduce((function(n,e){return n+e}),0)/n.length;return Math.sqrt(n.reduce((function(n,e){return n.concat(Math.pow(e-t,2))}),[]).reduce((function(n,e){return n+e}),0)/(n.length-(e?0:1)))}function j(n){return n[Math.floor(Math.random()*n.length)]}},90211:function(n,e,t){"use strict";t.d(e,{RA:function(){return l},kC:function(){return s},vg:function(){return b},T3:function(){return w},Mp:function(){return d},Pb:function(){return a},HW:function(){return y},wX:function(){return f},x6:function(){return p},_6:function(){return h},zf:function(){return v},Y6:function(){return x},wE:function(){return O},We:function(){return u},QV:function(){return j},C5:function(){return g}});var r=t(75582),o=["aged","ancient","autumn","billowing","bitter","black","blue","bold","broken","cold","cool","crimson","damp","dark","dawn","delicate","divine","dry","empty","falling","floral","fragrant","frosty","green","hidden","holy","icy","late","lingering","little","lively","long","misty","morning","muddy","nameless","old","patient","polished","proud","purple","quiet","red","restless","rough","shy","silent","small","snowy","solitary","sparkling","spring","still","summer","throbbing","twilight","wandering","weathered","white","wild","winter","wispy","withered","young"],i=(t(92083),["bird","breeze","brook","bush","butterfly","cherry","cloud","darkness","dawn","dew","dream","dust","feather","field","fire","firefly","flower","fog","forest","frog","frost","glade","glitter","grass","haze","hill","lake","leaf","meadow","moon","morning","mountain","night","paper","pine","pond","rain","resonance","river","sea","shadow","shape","silence","sky","smoke","snow","snowflake","sound","star","sun","sun","sunset","surf","thunder","tree","violet","voice","water","water","waterfall","wave","wildflower","wind","wood"]),c=t(24224);function a(n){if(!n)return!1;try{JSON.parse(n)}catch(e){return!1}return!0}function u(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return n.split(" ").join(e)}function l(n){return n.split(" ").join("_")}function s(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}function d(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*n)}function f(n){return n.charAt(0).toLowerCase()+n.slice(1)}function p(n){if(null===n||"undefined"===typeof n)return"";var e=n.toString().split("."),t=(0,r.Z)(e,2),o=t[0],i=t[1],c=o.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return i?"".concat(c,".").concat(i):c}function h(n,e){var t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e,i=void 0!==o&&null!==o;if(i||(o=2),1===o)t=n;else{var c=n.length,a=n[c-1];t="y"===a&&"day"!==n?"".concat(n.slice(0,c-1),"ies"):"".concat(n,"s"===a?"es":"s")}if(i){var u=r?p(o):o;return"".concat(u," ").concat(t)}return t}function m(n){return null===n||void 0===n?void 0:n.replace(/_/g," ")}function g(n){var e=n.length;return"ies"===n.slice(e-3,e)?"".concat(n.slice(0,e-3),"y"):"es"===n.slice(e-2,e)&&"ces"!==n.slice(e-3,e)?n.slice(0,e-2):n.slice(0,e-1)}function b(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return s(m(n.toLowerCase()))}function v(n){var e,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(o,i){if(!e){var c=(0,r.Z)(o,2),a=c[0],u=c[1],l=t.slice(0,i).reduce((function(n,e){return n*Number(e[1])}),1);n<Number(u)*l&&(e=h(a,Math.round(n/l)))}})),e}function y(n){return!isNaN(n)}function w(n){return"".concat(p(function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Math.round((n||0)*Math.pow(100,e))/100}(n)),"%")}function j(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=Math.pow(10,e);return Math.round((n||0)*t)/t}function x(){return"".concat((0,c.mp)(o)," ").concat((0,c.mp)(i))}function O(n){var e=n.split("/"),t=e[e.length-1].split(".")[0];return e.slice(0,e.length-1).concat(t).join("/")}},13157:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage",function(){return t(48438)}])}},function(n){n.O(0,[3850,2083,8789,9767,3573,434,9898,9774,2888,179],(function(){return e=13157,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1009],{45838:function(n,e,t){"use strict";t.d(e,{GZ:function(){return d},Vq:function(){return u},cE:function(){return p},cl:function(){return l},kA:function(){return a}});var r=t(9518),o=t(23831),i=t(37391),c=t(49125),l=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," ",""],i.w5,(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),a=r.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),u=r.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),s=(0,r.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(n){return!n.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")})),d=r.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],s,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||o.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),p=r.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],s,(function(n){return n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")}),(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(n,e,t){"use strict";var r=t(82394),o=t(12691),i=t.n(o),c=t(82684),l=t(67971),a=t(10919),u=t(86673),s=t(19711),d=t(46261),p=t(45838),f=t(28598);function h(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function m(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?h(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}e.Z=function(n){var e=n.alignTop,t=n.borderCollapseSeparate,r=n.buildLinkProps,o=n.columnBorders,h=n.columnFlex,g=n.columnMaxWidth,b=n.columns,v=void 0===b?[]:b,w=n.compact,y=n.highlightRowOnHover,x=n.isSelectedRow,j=n.noBorder,O=n.noHeader,k=n.onClickRow,P=n.rows,Z=n.rowVerticalPadding,_=n.stickyFirstColumn,C=n.stickyHeader,I=n.uuid,B=n.wrapColumns,E=(0,c.useMemo)((function(){return h.reduce((function(n,e){return n+(e||0)}),0)}),h),N=(0,c.useCallback)((function(n){if(h[n]){var e=Math.round(h[n]/E*100);return"".concat(e,"%")}return null}),[]),H=(0,c.useMemo)((function(){return null===P||void 0===P?void 0:P.map((function(n,t){var l=null===r||void 0===r?void 0:r(t),u=n.map((function(r,i){return(0,f.jsx)(p.cE,{alignTop:e,columnBorders:o,compact:w,last:i===n.length-1,maxWidth:null===g||void 0===g?void 0:g(i),noBorder:j,rowVerticalPadding:Z,selected:null===x||void 0===x?void 0:x(t),stickyFirstColumn:_&&0===i,width:N(i),wrapColumns:B,children:r},"".concat(I,"-row-").concat(t,"-cell-").concat(i))})),s=(0,f.jsx)(p.Vq,{highlightOnHover:y,noHover:!(l||k),onClick:k?function(){return k(t)}:null,children:u},"".concat(I,"-row-").concat(t));return l?(0,c.createElement)(i(),m(m({},l),{},{key:"".concat(I,"-row-link-").concat(t),passHref:!0}),(0,f.jsx)(a.Z,{fullWidth:!0,noHoverUnderline:!0,noOutline:!0,style:{display:"table-row-group"},verticalAlignContent:!0,children:s})):s}))}),[e,r,N,g,v,w,x,j,k,P]);return(0,f.jsxs)(p.kA,{borderCollapseSeparate:t,columnBorders:o,children:[(null===v||void 0===v?void 0:v.length)>=1&&!O&&(0,f.jsx)(p.Vq,{noHover:!0,children:v.map((function(n,e){return(0,f.jsx)(p.GZ,{columnBorders:o,compact:w,last:e===v.length-1,noBorder:j,sticky:C,children:(0,f.jsxs)(l.Z,{alignItems:"center",children:[(0,f.jsx)(s.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,f.jsx)(u.Z,{ml:"4px",children:(0,f.jsx)(d.Z,{appearBefore:!0,label:(0,f.jsx)(s.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(I,"-col-").concat(n.uuid,"-").concat(e))}))}),H]})}},66050:function(n,e,t){"use strict";var r;t.d(e,{V:function(){return r}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running"}(r||(r={}))},92597:function(n,e,t){"use strict";t.r(e);var r=t(77837),o=t(82394),i=t(38860),c=t.n(i),l=t(82684),a=t(34376),u=t(70434),s=t(67971),d=t(51099),p=t(97496),f=t(41788),h=t(55378),m=t(86673),g=t(19711),b=t(82531),v=t(47409),w=t(66050),y=t(49125),x=t(33766),j=t(59e3),O=t(28598);function k(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function P(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?k(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function Z(){var n=(0,a.useRouter)(),e=(0,j.iV)(),t=null!==e&&void 0!==e&&e.page?e.page:0,r={_limit:d.Q,_offset:t*d.Q};null!==e&&void 0!==e&&e.status&&(r.status=e.status);var o=b.ZP.pipeline_runs.list(r,{refreshInterval:3e3,revalidateOnFocus:!0}),i=o.data,c=o.mutate,f=(0,l.useMemo)((function(){return(null===i||void 0===i?void 0:i.pipeline_runs)||[]}),[i]),k=(0,l.useMemo)((function(){var n;return(null===i||void 0===i||null===(n=i.metadata)||void 0===n?void 0:n.count)||[]}),[i]);return(0,O.jsxs)(u.Z,{title:"Pipeline runs",uuid:"pipeline_runs/index",children:[(0,O.jsx)(m.Z,{mx:2,my:1,children:(0,O.jsxs)(s.Z,{alignItems:"center",children:[(0,O.jsx)(g.ZP,{bold:!0,default:!0,large:!0,children:"Filter runs by status:"}),(0,O.jsx)(m.Z,{mr:1}),(0,O.jsxs)(h.Z,{compact:!0,defaultColor:!0,fitContent:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?n.push("/pipeline-runs"):(0,x.u)({page:0,status:e.target.value})},paddingRight:4*y.iI,placeholder:"Select run status",value:(null===e||void 0===e?void 0:e.status)||"all",children:[(0,O.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(w.V).map((function(n){return(0,O.jsx)("option",{value:n,children:v.D[n]},n)}))]})]})}),(0,O.jsx)(p.Z,{fetchPipelineRuns:c,pipelineRuns:f}),(0,O.jsx)(m.Z,{p:2,children:(0,O.jsx)(d.Z,{maxPages:9,onUpdate:function(t){var r=Number(t),o=P(P({},e),{},{page:r>=0?r:0});n.push("/pipeline-runs","/pipeline-runs?".concat((0,j.uM)(o)))},page:Number(t),totalPages:Math.ceil(k/d.Q)})})]})}Z.getInitialProps=(0,r.Z)(c().mark((function n(){return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{});case 1:case"end":return n.stop()}}),n)}))),e.default=(0,f.Z)(Z)},60710:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipeline-runs",function(){return t(92597)}])}},function(n){n.O(0,[3850,2083,9767,6579,434,9898,4846,9774,2888,179],(function(){return e=60710,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1009],{45838:function(n,e,t){"use strict";t.d(e,{GZ:function(){return d},Vq:function(){return u},cE:function(){return p},cl:function(){return l},kA:function(){return a}});var r=t(9518),o=t(23831),i=t(37391),c=t(49125),l=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," ",""],i.w5,(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),a=r.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),u=r.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),s=(0,r.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(n){return!n.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")})),d=r.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],s,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||o.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),p=r.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],s,(function(n){return n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")}),(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(n,e,t){"use strict";var r=t(82394),o=t(12691),i=t.n(o),c=t(82684),l=t(67971),a=t(10919),u=t(86673),s=t(19711),d=t(46261),p=t(45838),f=t(28598);function h(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function m(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?h(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}e.Z=function(n){var e=n.alignTop,t=n.borderCollapseSeparate,r=n.buildLinkProps,o=n.columnBorders,h=n.columnFlex,g=n.columnMaxWidth,b=n.columns,v=void 0===b?[]:b,w=n.compact,y=n.highlightRowOnHover,x=n.isSelectedRow,j=n.noBorder,O=n.noHeader,k=n.onClickRow,P=n.rows,Z=n.rowVerticalPadding,_=n.stickyFirstColumn,C=n.stickyHeader,I=n.uuid,B=n.wrapColumns,E=(0,c.useMemo)((function(){return h.reduce((function(n,e){return n+(e||0)}),0)}),h),N=(0,c.useCallback)((function(n){if(h[n]){var e=Math.round(h[n]/E*100);return"".concat(e,"%")}return null}),[]),H=(0,c.useMemo)((function(){return null===P||void 0===P?void 0:P.map((function(n,t){var l=null===r||void 0===r?void 0:r(t),u=n.map((function(r,i){return(0,f.jsx)(p.cE,{alignTop:e,columnBorders:o,compact:w,last:i===n.length-1,maxWidth:null===g||void 0===g?void 0:g(i),noBorder:j,rowVerticalPadding:Z,selected:null===x||void 0===x?void 0:x(t),stickyFirstColumn:_&&0===i,width:N(i),wrapColumns:B,children:r},"".concat(I,"-row-").concat(t,"-cell-").concat(i))})),s=(0,f.jsx)(p.Vq,{highlightOnHover:y,noHover:!(l||k),onClick:k?function(){return k(t)}:null,children:u},"".concat(I,"-row-").concat(t));return l?(0,c.createElement)(i(),m(m({},l),{},{key:"".concat(I,"-row-link-").concat(t),passHref:!0}),(0,f.jsx)(a.Z,{fullWidth:!0,noHoverUnderline:!0,noOutline:!0,style:{display:"table-row-group"},verticalAlignContent:!0,children:s})):s}))}),[e,r,N,g,v,w,x,j,k,P]);return(0,f.jsxs)(p.kA,{borderCollapseSeparate:t,columnBorders:o,children:[(null===v||void 0===v?void 0:v.length)>=1&&!O&&(0,f.jsx)(p.Vq,{noHover:!0,children:v.map((function(n,e){return(0,f.jsx)(p.GZ,{columnBorders:o,compact:w,last:e===v.length-1,noBorder:j,sticky:C,children:(0,f.jsxs)(l.Z,{alignItems:"center",children:[(0,f.jsx)(s.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,f.jsx)(u.Z,{ml:"4px",children:(0,f.jsx)(d.Z,{appearBefore:!0,label:(0,f.jsx)(s.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(I,"-col-").concat(n.uuid,"-").concat(e))}))}),H]})}},66050:function(n,e,t){"use strict";var r;t.d(e,{V:function(){return r}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running"}(r||(r={}))},92597:function(n,e,t){"use strict";t.r(e);var r=t(77837),o=t(82394),i=t(38860),c=t.n(i),l=t(82684),a=t(34376),u=t(70434),s=t(67971),d=t(51099),p=t(97496),f=t(41788),h=t(55378),m=t(86673),g=t(19711),b=t(82531),v=t(47409),w=t(66050),y=t(49125),x=t(33766),j=t(59e3),O=t(28598);function k(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function P(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?k(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function Z(){var n=(0,a.useRouter)(),e=(0,j.iV)(),t=null!==e&&void 0!==e&&e.page?e.page:0,r={_limit:d.Q,_offset:t*d.Q};null!==e&&void 0!==e&&e.status&&(r.status=e.status);var o=b.ZP.pipeline_runs.list(r,{refreshInterval:3e3,revalidateOnFocus:!0}),i=o.data,c=o.mutate,f=(0,l.useMemo)((function(){return(null===i||void 0===i?void 0:i.pipeline_runs)||[]}),[i]),k=(0,l.useMemo)((function(){var n;return(null===i||void 0===i||null===(n=i.metadata)||void 0===n?void 0:n.count)||[]}),[i]);return(0,O.jsxs)(u.Z,{title:"Pipeline runs",uuid:"pipeline_runs/index",children:[(0,O.jsx)(m.Z,{mx:2,my:1,children:(0,O.jsxs)(s.Z,{alignItems:"center",children:[(0,O.jsx)(g.ZP,{bold:!0,default:!0,large:!0,children:"Filter runs by status:"}),(0,O.jsx)(m.Z,{mr:1}),(0,O.jsxs)(h.Z,{compact:!0,defaultColor:!0,fitContent:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?n.push("/pipeline-runs"):(0,x.u)({page:0,status:e.target.value})},paddingRight:4*y.iI,placeholder:"Select run status",value:(null===e||void 0===e?void 0:e.status)||"all",children:[(0,O.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(w.V).map((function(n){return(0,O.jsx)("option",{value:n,children:v.D[n]},n)}))]})]})}),(0,O.jsx)(p.Z,{fetchPipelineRuns:c,pipelineRuns:f}),(0,O.jsx)(m.Z,{p:2,children:(0,O.jsx)(d.Z,{maxPages:9,onUpdate:function(t){var r=Number(t),o=P(P({},e),{},{page:r>=0?r:0});n.push("/pipeline-runs","/pipeline-runs?".concat((0,j.uM)(o)))},page:Number(t),totalPages:Math.ceil(k/d.Q)})})]})}Z.getInitialProps=(0,r.Z)(c().mark((function n(){return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{});case 1:case"end":return n.stop()}}),n)}))),e.default=(0,f.Z)(Z)},60710:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipeline-runs",function(){return t(92597)}])}},function(n){n.O(0,[3850,2083,9767,3573,434,9898,4846,9774,2888,179],(function(){return e=60710,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6780],{2850:function(e,n,t){"use strict";t.d(n,{M:function(){return a},W:function(){return c}});var r=t(9518),i=t(23831),l=t(3055),c=34*t(49125).iI,a=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],l.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},56681:function(e,n,t){"use strict";t.d(n,{G:function(){return g},Z:function(){return Z}});var r=t(75582),i=t(82394),l=t(26304),c=t(32316),a=t(22673),s=t(86532),o=t(86673),u=t(19711),d=t(87815),p=t(49125),f=t(19395),b=t(28598),v=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function h(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 m(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 j={uuid:"Run details"},x={uuid:"Dependency tree"},g=[x,j];function Z(e){var n=e.height,t=e.heightOffset,i=e.pipeline,h=e.selectedRun,Z=e.selectedTab,y=e.setSelectedTab,O=m({},(0,l.Z)(e,v));h?O.blockStatus=(0,f.IJ)(null===h||void 0===h?void 0:h.block_runs):O.noStatus=!0;var P=(null===h||void 0===h?void 0:h.variables)||{};null!==h&&void 0!==h&&h.event_variables&&(P.event=h.event_variables);var _=[];P&&JSON.stringify(P,null,2).split("\n").forEach((function(e){_.push(" ".concat(e))}));var k=h&&[["Run ID",null===h||void 0===h?void 0:h.id],["Variables",(0,b.jsx)(a.Z,{language:"json",small:!0,source:_.join("\n")})]],I=h&&(0,b.jsx)(o.Z,{pb:p.cd,px:p.cd,children:(0,b.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:k.map((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];return[(0,b.jsx)(u.ZP,{monospace:!0,muted:!0,children:t}),(0,b.jsx)(u.ZP,{monospace:!0,textOverflow:!0,children:i})]})),uuid:"LogDetail"})}),w=Z&&y;return(0,b.jsxs)(b.Fragment,{children:[w&&(0,b.jsx)(o.Z,{py:p.cd,children:(0,b.jsx)(c.Z,{onClickTab:y,selectedTabUUID:null===Z||void 0===Z?void 0:Z.uuid,tabs:g})}),(!w||x.uuid===(null===Z||void 0===Z?void 0:Z.uuid))&&(0,b.jsx)(s.Z,m(m({},O),{},{height:n,heightOffset:(t||0)+(w?76:0),pipeline:i})),j.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&I]})}},58122:function(e,n,t){"use strict";t.d(n,{CL:function(){return f},FS:function(){return b},JZ:function(){return h},e7:function(){return m},v0:function(){return p},wx:function(){return v}});var r=t(75582),i=t(82394),l=t(43313),c=t(93348),a=t(1286),s=t(90211),o=t(84779);function u(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 d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function p(e){var n=e.statistics,t=Object.keys(n),r=Array(l.Dy.length).fill(0);return 0===t.length?null:(t.forEach((function(e){if(l.Dy.includes(e)){var t=l.CC[e],i=n[e],c=i,a=!1,s=[2,3],u=l.Ub[e],d=l.oH[e],p=l.OD[e];if(l.y_.includes(e))a=!0,s=[2,1,2];else if(e in l.Sq){i=(0,o.Jw)(i,0);var f=l.Sq[e];c=n[f]}var b={columnFlexNumbers:s,name:t,progress:a,rate:c,successDirection:d,warning:p};l.y_.includes(e)||(b.value=i),r[u]=b}})),r)}function f(e){var n=e.columnTypes,t=void 0===n?{}:n,r=e.statistics,i=Object.keys(r);if(0===i.length)return null;var c=Object.values(t),o=c.length,u=[];u.push({name:"Column count",successDirection:l.oH.column_count,value:(0,s.x6)(o)}),i.forEach((function(e){if(l.Zu.includes(e)){var n=l.CC[e],t=r[e],i=l.OD[e];u.push({name:n,successDirection:l.oH[e],value:(0,s.x6)(t),warning:i})}}));var d=(0,a.QO)(c),p=d.countCategory,f=d.countDatetime,b=d.countNumerical;return u.push({name:"Categorical Features",rate:p/o,value:(0,s.x6)(p)},{name:"Numerical Features",rate:b/o,value:(0,s.x6)(b)},{name:"Datetime Features",rate:f/o,value:(0,s.x6)(f)}),u}function b(e){return"string"===typeof e?e:JSON.stringify(e)}function v(e,n){var t,r;return null===e||void 0===e||null===(t=e.find((function(e){var t=e.block;return n(t)})))||void 0===t||null===(r=t.variables)||void 0===r?void 0:r.map((function(e){var n=e.value;return d(d({},e),{},{value:b(n)})}))}function h(e,n){return n===c.Xm.TIME?e.push({uuid:"execution_date",value:"<run datetime>"}):n===c.Xm.EVENT&&e.push({uuid:"event",value:"<trigger event>"}),e}function m(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,r.Z)(n,2),l=t[0],c=t[1],a=c;try{a=JSON.parse(c)}catch(s){}return d(d({},e),{},(0,i.Z)({},l,a))}),{}):e}},18025:function(e,n,t){"use strict";t.d(n,{J:function(){return s},U:function(){return a}});var r=t(9518),i=t(23831),l=t(73942),c=t(49125),a=r.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-m7tlau-0"})(["border-radius:","px;border-style:solid;border-width:2px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],l.TR,14*c.iI,c.cd*c.iI,c.cd*c.iI,40*c.iI,(function(e){return!e.selected&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.selected&&"\n border-color: ".concat((e.theme.interactive||i.Z.interactive).linkPrimary,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],l.n_,c.tr,(function(e){return"\n background-color: ".concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.absolute&&"\n position: absolute;\n z-index: 2;\n right: 0;\n top: ".concat(2.5*c.iI,"px;\n ")}),(function(e){return e.topPosition&&"\n top: -".concat(42*c.iI,"px;\n ")}))},43526:function(e,n,t){"use strict";t.d(n,{I7:function(){return r},IB:function(){return s},VV:function(){return l},_7:function(){return c},rn:function(){return a}});var r,i=t(66050),l="datetime",c="code",a=i.V;!function(e){e.SECOND="second",e.MINUTE="minute",e.HOUR="hour",e.DAY="day",e.WEEK="week",e.MONTH="month",e.YEAR="year",e.CUSTOM="custom"}(r||(r={}));var s=[r.SECOND,r.MINUTE,r.HOUR,r.DAY,r.WEEK,r.MONTH,r.YEAR,r.CUSTOM]},2713:function(e,n,t){"use strict";var r=t(82394),i=t(44495),l=t(67971),c=t(55378),a=t(86673),s=t(19711),o=t(18025),u=t(49125),d=t(24224),p=t(28598);function f(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 b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.selectedDate,t=e.selectedTime,r=e.setSelectedDate,f=e.setSelectedTime,v=e.topPosition;return(0,p.jsxs)(o.J,{absolute:!0,topPosition:v,children:[(0,p.jsx)(i.ZP,{onChange:r,value:n}),(0,p.jsx)(a.Z,{mb:2}),(0,p.jsxs)(l.Z,{alignItems:"center",children:[(0,p.jsx)(s.ZP,{default:!0,large:!0,children:"Time (UTC):"}),(0,p.jsx)(a.Z,{pr:2}),(0,p.jsx)(c.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return b(b({},n),{},{hour:e.target.value})}))},paddingRight:5*u.iI,placeholder:"HH",value:null===t||void 0===t?void 0:t.hour,children:(0,d.m5)(24,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,p.jsx)("option",{value:e,children:e},"hour_".concat(e))}))}),(0,p.jsx)(a.Z,{px:1,children:(0,p.jsx)(s.ZP,{bold:!0,large:!0,children:":"})}),(0,p.jsx)(c.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return b(b({},n),{},{minute:e.target.value})}))},paddingRight:5*u.iI,placeholder:"MM",value:null===t||void 0===t?void 0:t.minute,children:(0,d.m5)(60,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,p.jsx)("option",{value:e,children:e},"minute_".concat(e))}))})]})]})}},22673:function(e,n,t){"use strict";var r=t(82684),i=t(73199),l=t.n(i),c=t(71593),a=t(9518),s=t(65292),o=t(23831),u=t(2005),d=t(49125),p=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,i=e.showLineNumbers,f=e.small,b=e.source,v=e.wrapLines,h=(0,r.useContext)(a.ThemeContext);return(0,p.jsx)(l(),{source:b,renderers:{code:function(e){var r=e.value;return(0,p.jsx)(c.Z,{customStyle:{backgroundColor:(h.background||o.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:u.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,paddingBottom:2*d.iI,paddingTop:2*d.iI,maxWidth:t},lineNumberStyle:{color:(h.content||o.Z.content).muted},language:n,showLineNumbers:i,style:s._4,useInlineStyles:!0,wrapLines:v,children:r})}}})}},32316:function(e,n,t){"use strict";t.d(n,{Z:function(){return v}});var r=t(82684),i=t(60328),l=t(67971),c=t(882),a=t(86673),s=t(99994),o=t(9518),u=t(49125),d=t(37391),p=o.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],u.cd*u.iI,u.cd*u.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.allowScroll&&"\n overflow: auto;\n "}),d.w5),f=t(66653),b=t(28598);var v=function(e){var n=e.allowScroll,t=e.contained,o=e.noPadding,d=e.onClickTab,v=e.selectedTabUUID,h=e.small,m=e.tabs,j=(0,r.useMemo)((function(){var e=m.length,n=[];return m.forEach((function(t,r){var o=t.Icon,p=t.IconSelected,m=t.label,j=t.uuid,x=j===v,g=x&&p||o,Z=m?m():j,y=(0,b.jsxs)(l.Z,{alignItems:"center",children:[g&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(g,{default:!x,size:2*u.iI}),(0,b.jsx)(a.Z,{mr:1})]}),Z]});r>=1&&e>=2&&n.push((0,b.jsx)("div",{style:{marginLeft:1.5*u.iI}},"spacing-".concat(j))),x?n.push((0,b.jsx)(c.Z,{backgroundGradient:s.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:h,onClick:function(e){(0,f.j)(e),d(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:h,children:y},j)):n.push((0,b.jsx)("div",{style:{padding:4},children:(0,b.jsx)(i.Z,{borderLess:!0,compact:h,default:!0,onClick:function(e){(0,f.j)(e),d(t)},outline:!0,small:h,children:y},"button-tab-".concat(j))}))})),n}),[d,v,m]),x=(0,b.jsx)(l.Z,{alignItems:"center",children:j});return t?x:(0,b.jsx)(p,{allowScroll:n,noPadding:o,children:x})}},82944:function(e,n,t){"use strict";var r=t(82394),i=t(91835),l=t(82684),c=t(9518),a=t(69898),s=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 u(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}var d=c.default.input.withConfig({displayName:"TextInput__TextInputStyle",componentId:"sc-1ii4qtc-0"})(["",""],a.p),p=function(e,n){var t=(0,i.Z)({},e);return(0,s.jsx)(a.Z,u(u({},t),{},{input:(0,s.jsx)(d,u({},t)),ref:n}))};n.Z=l.forwardRef(p)},12625:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return te}});var r=t(75582),i=t(77837),l=t(82394),c=t(38860),a=t.n(c),s=t(82684),o=t(83455),u=t(34376),d=t(43526),p=t(60328),f=t(34744),b=t(67971),v=t(87372),h=t(51099),m=t(2626),j=t(97496),x=t(47409),g=t(55378),Z=t(86673),y=t(87815),O=t(19711),P=t(82531),_=t(56681),k=t(10503),I=t(2850),w=t(49125),S=t(59920),D=t(90211),C=t(58122),E=t(33766),N=t(7715),T=t(9736),M=t(96510),L=t(66653),F=t(59e3),U=t(28598);function A(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 R(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?A(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):A(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var H=function(e){var n=e.backfill,t=e.fetchBackfill,i=e.pipeline,l=e.variables,c=(0,T.Ct)(),a=(0,u.useRouter)(),A=n||{},H=A.block_uuid,B=A.end_datetime,V=A.id,z=A.interval_type,Y=A.interval_units,J=A.name,W=A.pipeline_run_dates,q=A.start_datetime,G=A.status,K=A.total_run_count,X=A.variables,Q=void 0===X?{}:X,$=i.uuid,ee=(0,F.iV)(),ne=(0,s.useState)(null),te=ne[0],re=ne[1],ie={_limit:40,_offset:40*(null!==ee&&void 0!==ee&&ee.page?ee.page:0)};null!==ee&&void 0!==ee&&ee.status&&(ie.status=ee.status);var le=P.ZP.pipeline_runs.list(R(R({},ie),{},{backfill_id:V,order_by:["id DESC"]}),{refreshInterval:3e3,revalidateOnFocus:!0},{pauseFetch:!V}),ce=le.data,ae=le.mutate,se=!(q&&B&&z&&Y),oe=!G,ue=(0,s.useMemo)((function(){return(oe?W:null===ce||void 0===ce?void 0:ce.pipeline_runs)||[]}),[ce,W,oe]),de=(0,s.useMemo)((function(){var e;return(null===ce||void 0===ce||null===(e=ce.metadata)||void 0===e?void 0:e.count)||[]}),[ce]),pe=(0,s.useState)(null),fe=pe[0],be=pe[1],ve=(0,s.useMemo)((function(){var e=null!==ee&&void 0!==ee&&ee.page?ee.page:0;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(j.Z,{disableRowSelect:oe,emptyMessage:null!==ee&&void 0!==ee&&ee.status?"No runs available":'No runs available. Please complete backfill configuration by clicking "Edit backfill" above.',fetchPipelineRuns:ae,onClickRow:function(e){return be((function(n){var t=ue[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:ue,selectedRun:fe}),(0,U.jsx)(Z.Z,{p:2,children:(0,U.jsx)(h.Z,{page:Number(e),maxPages:9,onUpdate:function(e){var n=Number(e),t=R(R({},ee),{},{page:n>=0?n:0});a.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat($,"/triggers/").concat(V,"?").concat((0,F.uM)(t)))},totalPages:Math.ceil(de/40)})})]})}),[ae,i,ue,fe]),he=(0,s.useState)(_.G[0]),me=he[0],je=he[1],xe=(0,o.Db)(P.ZP.backfills.useUpdate(V),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){t(),ae()},onErrorCallback:function(e,n){return re({errors:n,response:e})}})}}),ge=(0,r.Z)(xe,2),Ze=ge[0],ye=ge[1].isLoading,Oe=(0,s.useMemo)((function(){return!!G&&(d.rn.CANCELLED!==G&&d.rn.FAILED!==G)}),[G]),Pe=(0,s.useMemo)((function(){return G&&d.rn.CANCELLED!==G&&d.rn.FAILED!==G&&d.rn.INITIAL!==G&&d.rn.RUNNING!==G}),[G]),_e=(0,s.useMemo)((function(){var e={default:!0,size:1.5*w.iI},n=[[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(k.VW,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Backfill type"})]},"backfill_type_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:H?d._7:d.VV},"backfill_type")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(k.rs,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Status"})]},"backfill_status_label"),(0,U.jsx)(O.ZP,{danger:d.rn.CANCELLED===G||d.rn.FAILED==G,default:d.rn.INITIAL===G,monospace:!0,muted:!G,success:d.rn.RUNNING===G||d.rn.COMPLETED===G,children:G||"inactive"},"backfill_status")]];return H||n.push.apply(n,[[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(k.aw,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Start date and time"})]},"backfill_start_date_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:q},"backfill_start_date")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(k.aw,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"End date and time"})]},"backfill_end_date_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:B},"backfill_end_date")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(k.Pf,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Interval type"})]},"interval_type_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:z&&(0,D.kC)(z)},"interval_type")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(k.Pf,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Interval units"})]},"interval_units_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:Y},"interval_units")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(k.qZ,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Total runs"})]},"total_runs_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:K},"total_runs")]]),(0,U.jsx)(y.Z,{columnFlex:[null,1],rows:n})}),[H,B,z,Y,Oe,q,G]),ke=(0,s.useMemo)((function(){return Q||{}}),[Q]),Ie=(0,s.useMemo)((function(){var e,n=[];return(0,N.Qr)(ke)?n=(0,C.wx)(l,(function(e){return"global"===e.uuid})):Object.entries(ke).forEach((function(e){var t=(0,r.Z)(e,2),i=t[0],l=t[1];n.push({uuid:i,value:(0,C.FS)(l)})})),"undefined"!==typeof n&&null!==(e=n)&&void 0!==e&&e.length?(0,U.jsx)(y.Z,{columnFlex:[null,1],rows:n.map((function(e){var n=e.uuid,t=e.value;return[(0,U.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:n},"settings_variable_label_".concat(n)),(0,U.jsx)(O.ZP,{monospace:!0,small:!0,children:t},"settings_variable_".concat(n))]}))}):null}),[ke,l]);return(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)(m.Z,{afterHidden:!fe,before:(0,U.jsxs)(I.M,{children:[(0,U.jsxs)(Z.Z,{mb:w.HN,pt:w.cd,px:w.cd,children:[(0,U.jsx)(Z.Z,{mb:w.cd,children:(0,U.jsx)(k.yg,{size:5*w.iI})}),(0,U.jsx)(v.Z,{children:J})]}),(0,U.jsx)(Z.Z,{px:w.cd,children:(0,U.jsx)(v.Z,{level:5,children:"Settings"})}),(0,U.jsx)(f.Z,{light:!0,mt:1,short:!0}),_e,Ie&&(0,U.jsxs)(Z.Z,{my:w.HN,children:[(0,U.jsx)(Z.Z,{px:w.cd,children:(0,U.jsx)(v.Z,{level:5,children:"Runtime variables"})}),(0,U.jsx)(f.Z,{light:!0,mt:1,short:!0}),Ie]})]}),beforeWidth:34*w.iI,breadcrumbs:[{label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat($,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{label:function(){return J},linkProps:{as:"/pipelines/".concat($,"/backfills/").concat(V),href:"/pipelines/[pipeline]/backfills/[...slug]"}}],buildSidekick:function(e){return(0,_.Z)(R(R({},e),{},{selectedRun:fe,selectedTab:me,setSelectedTab:je}))},errors:te,pageName:S.M.BACKFILLS,pipeline:i,setErrors:re,subheader:(0,U.jsxs)(b.Z,{alignItems:"center",children:[!Pe&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(p.Z,{beforeIcon:Oe?(0,U.jsx)(k.dz,{size:2*w.iI}):(0,U.jsx)(k.Py,{inverted:!(d.rn.CANCELLED===G||d.rn.FAILED===G),size:2*w.iI}),danger:Oe,disabled:se,loading:ye,onClick:function(e){(0,L.j)(e),Ze({backfill:{status:Oe?d.rn.CANCELLED:d.rn.INITIAL}})},outline:!0,success:!Oe&&!(d.rn.CANCELLED===G||d.rn.FAILED===G)&&!se,children:Oe?"Cancel backfill":d.rn.CANCELLED===G||d.rn.FAILED===G?"Retry backfill":"Start backfill"}),(0,U.jsx)(Z.Z,{mr:w.cd})]}),!c&&(0,U.jsxs)(U.Fragment,{children:[G===x.V.COMPLETED?(0,U.jsx)(O.ZP,{bold:!0,default:!0,large:!0,children:"Filter runs by status:"}):(0,U.jsx)(p.Z,{linkProps:{as:"/pipelines/".concat($,"/backfills/").concat(V,"/edit"),href:"/pipelines/[pipeline]/backfills/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Edit backfill"}),(0,U.jsx)(Z.Z,{mr:w.cd})]}),!oe&&(0,U.jsxs)(g.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?a.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat($,"/backfills/").concat(V)):(0,E.u)({page:0,status:e.target.value})},paddingRight:4*w.iI,placeholder:"Select run status",value:(null===ee||void 0===ee?void 0:ee.status)||"all",children:[(0,U.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(x.V).map((function(e){return(0,U.jsx)("option",{value:e,children:x.D[e]},e)}))]})]}),title:function(){return J},uuid:"backfill/detail",children:[(0,U.jsx)(Z.Z,{mt:w.cd,px:w.cd,children:(0,U.jsx)(v.Z,{level:5,children:"Runs for this backfill"})}),(0,U.jsx)(f.Z,{light:!0,mt:w.cd,short:!0}),ve]})})},B=t(2713),V=t(47999),z=t(93461),Y=t(82944),J=[{label:function(){return"Date and time window"},description:function(){return"Backfill between a date and time range."},uuid:d.VV}],W=t(18025),q=t(19395);function G(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function K(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?G(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):G(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var X=function(e){var n=e.backfill,t=e.fetchBackfill,i=e.pipeline,l=(e.variables,(0,u.useRouter)()),c=(0,s.useState)(),a=c[0],h=c[1],j=a||{},x=j.block_uuid,_=j.id,I=j.interval_type,E=j.interval_units,T=(j.end_datetime,j.start_datetime,j.name),L=i.uuid,F=(0,s.useState)(null),A=F[0],R=F[1],H=(0,s.useState)({}),G=H[0],X=(H[1],(0,s.useState)(x?d._7:d.VV)),Q=X[0],$=X[1],ee=(0,s.useState)(!1),ne=ee[0],te=ee[1],re=(0,s.useState)(!1),ie=re[0],le=re[1],ce=(0,s.useState)(null),ae=ce[0],se=ce[1],oe=(0,s.useState)(null),ue=oe[0],de=oe[1],pe=(0,s.useState)({hour:"00",minute:"00"}),fe=pe[0],be=pe[1],ve=(0,s.useState)({hour:"00",minute:"00"}),he=ve[0],me=ve[1];(0,s.useEffect)((function(){if(n){h(n);var e=n.start_datetime;if(e){var t=e.split(" ")[1];de((0,q.eI)(e)),me({hour:t.substring(0,2),minute:t.substring(3,5)})}var r=n.end_datetime;if(r){var i=r.split(" ")[1];se((0,q.eI)(r)),be({hour:i.substring(0,2),minute:i.substring(3,5)})}}}),[n]);var je=(0,s.useMemo)((function(){var e=[[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(k.KJ,{default:!0,size:1.5*w.iI}),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Backfill name"})]},"model_name_detail"),(0,U.jsx)(Y.Z,{monospace:!0,onChange:function(e){e.preventDefault(),h((function(n){return K(K({},n),{},{name:e.target.value})}))},placeholder:"Name this backfill",value:T},"model_name_input_detail")]];return d.VV===Q&&e.push.apply(e,[[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(k.aw,{default:!0,size:1.5*w.iI}),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Start date and time"})]},"start_time"),(0,U.jsxs)("div",{style:{minHeight:"".concat(5.75*w.iI,"px")},children:[!ne&&(0,U.jsx)(Y.Z,{monospace:!0,onClick:function(){return te((function(e){return!e}))},onFocus:function(){return te(!0)},placeholder:"YYYY-MM-DD HH:MM",value:ue?"".concat(ue.toISOString().split("T")[0]," ").concat(null===he||void 0===he?void 0:he.hour,":").concat(null===he||void 0===he?void 0:he.minute):""}),(0,U.jsx)("div",{style:{width:"400px"},children:(0,U.jsx)(V.Z,{disableEscape:!0,onClickOutside:function(){return te(!1)},open:ne,style:{position:"relative"},children:(0,U.jsx)(B.Z,{selectedDate:ue,selectedTime:he,setSelectedDate:de,setSelectedTime:me,topPosition:!0})})})]},"start_time_input")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(k.aw,{default:!0,size:1.5*w.iI}),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"End date and time"})]},"end_time"),(0,U.jsxs)("div",{style:{minHeight:"".concat(5.75*w.iI,"px")},children:[!ie&&(0,U.jsx)(Y.Z,{monospace:!0,onClick:function(){return le((function(e){return!e}))},onFocus:function(){return le(!0)},placeholder:"YYYY-MM-DD HH:MM",value:ae?"".concat(ae.toISOString().split("T")[0]," ").concat(null===fe||void 0===fe?void 0:fe.hour,":").concat(null===fe||void 0===fe?void 0:fe.minute):""}),(0,U.jsx)("div",{style:{width:"400px"},children:(0,U.jsx)(V.Z,{disableEscape:!0,onClickOutside:function(){return le(!1)},open:ie,style:{position:"relative"},children:(0,U.jsx)(B.Z,{selectedDate:ae,selectedTime:fe,setSelectedDate:se,setSelectedTime:be,topPosition:!0})})})]},"end_time_input")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(k.Pf,{default:!0,size:1.5*w.iI}),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Interval type"})]},"interval_type"),(0,U.jsxs)(g.Z,{monospace:!0,onChange:function(e){e.preventDefault(),h((function(n){return K(K({},n),{},{interval_type:e.target.value})}))},placeholder:"Time spacing between each backfill",value:I,children:[!I&&(0,U.jsx)("option",{value:""}),d.IB.map((function(e){return(0,U.jsx)("option",{value:e,children:(0,D.kC)(e)},e)}))]},"interval_type_input")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(k.Pf,{default:!0,size:1.5*w.iI}),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Interval units"})]},"interval_units"),(0,U.jsx)(Y.Z,{disabled:!I,monospace:!0,onChange:function(e){e.preventDefault(),h((function(n){return K(K({},n),{},{interval_units:e.target.value})}))},placeholder:I?"Number of ".concat(I).concat(I!==d.I7.CUSTOM?"s":""," between each backfill"):"Interval type is required",type:"number",value:E},"interval_unit_input")]]),(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Z.Z,{mb:2,px:w.cd,children:(0,U.jsx)(v.Z,{children:"Settings"})}),(0,U.jsx)(f.Z,{light:!0,short:!0}),(0,U.jsx)(y.Z,{columnFlex:[null,1],rows:e})]})}),[ae,ue,I,E,T,Q,ne,ie,fe,he]),xe=(0,o.Db)(P.ZP.backfills.useUpdate(_),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){t(),l.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(L,"/backfills/").concat(_))},onErrorCallback:function(e,n){return R({errors:n,response:e})}})}}),ge=(0,r.Z)(xe,2),Ze=ge[0],ye=ge[1].isLoading,Oe=(0,s.useCallback)((function(){var e=K(K({},(0,N.GL)(a,["name"])),{},{end_datetime:null,interval_type:null,interval_units:null,start_datetime:null,variables:(0,C.e7)(G)});return d._7===Q||(e.interval_type=I,e.interval_units=E,e.end_datetime=ae&&null!==fe&&void 0!==fe&&fe.hour&&null!==fe&&void 0!==fe&&fe.minute?"".concat(ae.toISOString().split("T")[0]," ").concat(null===fe||void 0===fe?void 0:fe.hour,":").concat(null===fe||void 0===fe?void 0:fe.minute,":00"):null,e.start_datetime=ue&&null!==he&&void 0!==he&&he.hour&&null!==he&&void 0!==he&&he.minute?"".concat(ue.toISOString().split("T")[0]," ").concat(null===he||void 0===he?void 0:he.hour,":").concat(null===he||void 0===he?void 0:he.minute,":00"):null),Ze({backfill:e})}),[ae,ue,I,E,a,G,Q,fe,he]),Pe=(0,s.useMemo)((function(){return d._7===Q?!x:!(ae&&ue&&I&&E)}),[x,ae,ue,I,E,Q,fe,he]);return(0,U.jsxs)(m.Z,{breadcrumbs:[{label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(L,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{label:function(){return null===a||void 0===a?void 0:a.name},linkProps:{as:"/pipelines/".concat(L,"/backfills/").concat(_),href:"/pipelines/[pipeline]/backfills/[...slug]"}}],errors:A,pageName:S.M.BACKFILLS,pipeline:i,setErrors:R,subheader:(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(p.Z,{disabled:Pe,loading:ye,onClick:Oe,outline:!0,primary:!0,children:"Save changes"}),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(p.Z,{linkProps:{href:"/pipelines/[pipeline]/backfills/[...slug]",as:"/pipelines/".concat(L,"/backfills/").concat(_)},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel"})]}),title:function(){return"Edit ".concat(null===a||void 0===a?void 0:a.name)},uuid:"backfill/edit",children:[(0,U.jsxs)(Z.Z,{p:w.cd,children:[(0,U.jsxs)(Z.Z,{mb:2,children:[(0,U.jsx)(v.Z,{children:"Backfill type"}),(0,U.jsx)(O.ZP,{muted:!0,children:"How would you like this pipeline to be backfilled?"})]}),(0,U.jsx)(b.Z,{children:J.map((function(e){var n=e.label,t=e.description,r=e.uuid,i=Q===r,l=Q&&!i;return(0,U.jsx)(p.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){$(r)},children:(0,U.jsx)(W.U,{selected:i,children:(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(z.Z,{children:(0,U.jsx)("input",{checked:i,type:"radio"})}),(0,U.jsx)(Z.Z,{mr:w.cd}),(0,U.jsxs)(z.Z,{alignItems:"flex-start",flexDirection:"column",children:[(0,U.jsx)(v.Z,{bold:!0,default:!i&&!l,level:5,muted:!i&&l,children:n()}),(0,U.jsx)(O.ZP,{default:!i&&!l,leftAligned:!0,muted:l,children:t()})]})]})})},r)}))})]}),(0,U.jsx)(Z.Z,{mt:5,children:je})]})},Q=t(41788);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 ee(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,l.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}function ne(e){var n=e.backfillId,t=e.pipelineUUID,r=e.subpath,i=P.ZP.variables.pipelines.list(t).data,l=(0,s.useMemo)((function(){return null===i||void 0===i?void 0:i.variables}),[i]),c=P.ZP.pipelines.detail(t,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,a=(0,s.useMemo)((function(){return ee(ee({},null===c||void 0===c?void 0:c.pipeline),{},{uuid:t})}),[c,t]),o=P.ZP.backfills.detail(n,{include_preview_runs:!0}),u=o.data,d=o.mutate,p=(0,s.useMemo)((function(){return null===u||void 0===u?void 0:u.backfill}),[u]);return"edit"===r?(0,U.jsx)(X,{backfill:p,fetchBackfill:d,pipeline:a,variables:l}):(0,U.jsx)(H,{backfill:p,fetchBackfill:d,pipeline:a,variables:l})}ne.getInitialProps=function(){var e=(0,i.Z)(a().mark((function e(n){var t,i,l,c,s,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.query,i=t.pipeline,l=t.slug,!Array.isArray(l)){e.next=4;break}return c=(0,r.Z)(l,2),s=c[0],o=c[1],e.abrupt("return",{backfillId:s,pipelineUUID:i,subpath:o});case 4:return e.abrupt("return",{pipelineUUID:i});case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var te=(0,Q.Z)(ne)},53664:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/backfills/[...slug]",function(){return t(12625)}])}},function(e){e.O(0,[3850,2083,5896,4804,1774,5872,2524,4495,9767,3573,434,9898,1830,2626,4463,6532,1286,4846,9774,2888,179],(function(){return n=53664,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{19395:function(n,e,t){"use strict";t.d(e,{IJ:function(){return s},Vx:function(){return f},eI:function(){return d},gU:function(){return b},tL:function(){return p},vJ:function(){return m}});var r,i,o=t(82394),c=t(92083),l=t.n(c);function u(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function a(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?u(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function s(n){return null===n||void 0===n?void 0:n.reduce((function(n,e){var t=e.block_uuid,r=e.completed_at,i=e.started_at,c=e.status,u=null;i&&r&&(u=l()(r).valueOf()-l()(i).valueOf());return a(a({},n),{},(0,o.Z)({},t,{runtime:u,status:c}))}),{})}function d(n){if(!n)return null;var e=new Date(l()(n).valueOf()),t=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());return new Date(t)}function f(n){return d(n).toISOString().split(".")[0]}!function(n){n.DAY="day",n.HOUR="hour",n.MINUTE="minute",n.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 b(n){var e=i.SECOND,t=n;return n%86400===0?(t/=86400,e=i.DAY):n%3600===0?(t/=3600,e=i.HOUR):n%60===0&&(t/=60,e=i.MINUTE),{time:t,unit:e}}function m(n,e){return n*p[e]}},45838:function(n,e,t){"use strict";t.d(e,{GZ:function(){return d},Vq:function(){return a},cE:function(){return f},cl:function(){return l},kA:function(){return u}});var r=t(9518),i=t(23831),o=t(37391),c=t(49125),l=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," ",""],o.w5,(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),u=r.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),a=r.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||i.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||i.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),s=(0,r.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||i.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(n){return!n.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")})),d=r.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],s,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||i.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||i.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||i.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||i.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),f=r.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],s,(function(n){return n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")}),(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||i.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||i.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||i.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||i.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(n,e,t){"use strict";var r=t(82394),i=t(12691),o=t.n(i),c=t(82684),l=t(67971),u=t(10919),a=t(86673),s=t(19711),d=t(46261),f=t(45838),p=t(28598);function b(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function m(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?b(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}e.Z=function(n){var e=n.alignTop,t=n.borderCollapseSeparate,r=n.buildLinkProps,i=n.columnBorders,b=n.columnFlex,h=n.columnMaxWidth,v=n.columns,g=void 0===v?[]:v,w=n.compact,O=n.highlightRowOnHover,y=n.isSelectedRow,k=n.noBorder,x=n.noHeader,j=n.onClickRow,P=n.rows,Z=n.rowVerticalPadding,C=n.stickyFirstColumn,_=n.stickyHeader,E=n.uuid,D=n.wrapColumns,I=(0,c.useMemo)((function(){return b.reduce((function(n,e){return n+(e||0)}),0)}),b),N=(0,c.useCallback)((function(n){if(b[n]){var e=Math.round(b[n]/I*100);return"".concat(e,"%")}return null}),[]),S=(0,c.useMemo)((function(){return null===P||void 0===P?void 0:P.map((function(n,t){var l=null===r||void 0===r?void 0:r(t),a=n.map((function(r,o){return(0,p.jsx)(f.cE,{alignTop:e,columnBorders:i,compact:w,last:o===n.length-1,maxWidth:null===h||void 0===h?void 0:h(o),noBorder:k,rowVerticalPadding:Z,selected:null===y||void 0===y?void 0:y(t),stickyFirstColumn:C&&0===o,width:N(o),wrapColumns:D,children:r},"".concat(E,"-row-").concat(t,"-cell-").concat(o))})),s=(0,p.jsx)(f.Vq,{highlightOnHover:O,noHover:!(l||j),onClick:j?function(){return j(t)}:null,children:a},"".concat(E,"-row-").concat(t));return l?(0,c.createElement)(o(),m(m({},l),{},{key:"".concat(E,"-row-link-").concat(t),passHref:!0}),(0,p.jsx)(u.Z,{fullWidth:!0,noHoverUnderline:!0,noOutline:!0,style:{display:"table-row-group"},verticalAlignContent:!0,children:s})):s}))}),[e,r,N,h,g,w,y,k,j,P]);return(0,p.jsxs)(f.kA,{borderCollapseSeparate:t,columnBorders:i,children:[(null===g||void 0===g?void 0:g.length)>=1&&!x&&(0,p.jsx)(f.Vq,{noHover:!0,children:g.map((function(n,e){return(0,p.jsx)(f.GZ,{columnBorders:i,compact:w,last:e===g.length-1,noBorder:k,sticky:_,children:(0,p.jsxs)(l.Z,{alignItems:"center",children:[(0,p.jsx)(s.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,p.jsx)(a.Z,{ml:"4px",children:(0,p.jsx)(d.Z,{appearBefore:!0,label:(0,p.jsx)(s.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(E,"-col-").concat(n.uuid,"-").concat(e))}))}),S]})}},43526:function(n,e,t){"use strict";t.d(e,{I7:function(){return r},IB:function(){return u},VV:function(){return o},_7:function(){return c},rn:function(){return l}});var r,i=t(66050),o="datetime",c="code",l=i.V;!function(n){n.SECOND="second",n.MINUTE="minute",n.HOUR="hour",n.DAY="day",n.WEEK="week",n.MONTH="month",n.YEAR="year",n.CUSTOM="custom"}(r||(r={}));var u=[r.SECOND,r.MINUTE,r.HOUR,r.DAY,r.WEEK,r.MONTH,r.YEAR,r.CUSTOM]},66050:function(n,e,t){"use strict";var r;t.d(e,{V:function(){return r}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running"}(r||(r={}))},47409:function(n,e,t){"use strict";t.d(e,{D:function(){return c},V:function(){return o}});var r,i=t(82394),o=t(66050).V,c=(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)},30206:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return B}});var r=t(77837),i=t(75582),o=t(38860),c=t.n(o),l=t(82684),u=t(83455),a=t(34376),s=t(12691),d=t.n(s),f=t(43526),p=t(60328),b=t(10919),m=t(87815),h=t(19711),v=t(10503),g=t(47409),w=t(49125),O=t(19395),y=t(9736),k=t(28598);var x=function(n){var e=n.models,t=n.onClickRow,r=n.pipeline,i=n.selectedRow,o=(0,y.Ct)(),c=null===r||void 0===r?void 0:r.uuid,l=[{uuid:"Status"},{uuid:"Name"},{uuid:"Type"},{uuid:"Runs"},{uuid:"Backfill"},{uuid:"Started at"},{uuid:"Completed at"}];return o||l.push({label:function(){return""},uuid:"edit"}),(0,k.jsx)(m.Z,{columnFlex:[null,1,null,null,null,1,1,null],columns:l,isSelectedRow:function(n){return e[n].id===(null===i||void 0===i?void 0:i.id)},onClickRow:function(n){return t(e[n])},rows:e.map((function(n,e){var t=n.block_uuid,r=n.completed_at,i=n.end_datetime,l=n.id,u=n.name,a=n.start_datetime,s=n.started_at,m=n.status,y=n.total_run_count,x=[(0,k.jsx)(h.ZP,{default:!0,monospace:!0,children:m||"inactive"},"status"),(0,k.jsx)(d(),{as:"/pipelines/".concat(c,"/backfills/").concat(l),href:"/pipelines/[pipeline]/backfills/[...slug]",passHref:!0,children:(0,k.jsx)(b.Z,{bold:!0,sameColorAsText:!0,children:u})},"name"),(0,k.jsx)(h.ZP,{default:!0,monospace:!0,children:t?f._7:f.VV},"type"),(0,k.jsx)(h.ZP,{default:!0,monospace:!0,children:y||0},"runs"),(0,k.jsxs)(h.ZP,{default:!0,monospace:!0,children:[a&&i&&(0,k.jsxs)(k.Fragment,{children:[(0,O.Vx)(a),"\xa0-\xa0",(0,O.Vx)(i)]}),!(a&&i)&&"-"]},"backfill"),(0,k.jsx)(h.ZP,{default:!0,monospace:!0,children:s?(0,O.Vx)(s):"-"},"started_at"),(0,k.jsx)(h.ZP,{default:!0,monospace:!0,children:r?(0,O.Vx)(r):"-"},"completed_at")];return o||x.push((0,k.jsx)(p.Z,{default:!0,disabled:m===g.V.COMPLETED,iconOnly:!0,linkProps:{as:"/pipelines/".concat(c,"/backfills/").concat(l,"/edit"),href:"/pipelines/[pipeline]/backfills/[...slug]"},noBackground:!0,title:"Edit",children:(0,k.jsx)(v.I8,{default:!0,size:2*w.iI})},"".concat(e,"_edit_button"))),x})),uuid:"pipeline-runs"})},j=t(11135),P=t(2626),Z=t(41788),C=t(86673),_=t(82531),E=t(59920),D=t(33766),I=t(96510),N=t(59e3),S=t(90211);function T(n){var e=n.pipeline,t=(0,a.useRouter)(),r=e.uuid,o=_.ZP.backfills.list({_limit:20,_offset:0,include_run_count:!0,pipeline_uuid:r},{refreshInterval:6e4}),c=o.data,s=(o.mutate,(0,l.useMemo)((function(){return(null===c||void 0===c?void 0:c.backfills)||[]}),[c])),d=(0,N.iV)(),f=(0,l.useState)(null),p=f[0],b=f[1],m=(0,l.useState)(null),g=m[0],O=m[1];(0,l.useEffect)((function(){null!==d&&void 0!==d&&d.backfill_id?b(null===s||void 0===s?void 0:s.find((function(n){return n.id===Number(d.backfill_id)}))):p&&b(null)}),[s,d,p]);var y=(0,l.useMemo)((function(){var n="/pipelines/".concat(r,"/backfills"),e=[{label:function(){return"Backfills"},linkProps:p?{as:n,href:"/pipelines/[pipeline]/backfills"}:null}];return p&&e.push({label:function(){return p.name}}),e}),[p]),Z=(0,u.Db)(_.ZP.backfills.pipelines.useCreate(r),{onSuccess:function(n){return(0,I.wD)(n,{callback:function(n){var e=n.backfill.id;t.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(r,"/backfills/").concat(e,"/edit"))},onErrorCallback:function(n,e){return O({errors:e,response:n})}})}}),T=(0,i.Z)(Z,2),B=T[0],H=T[1].isLoading;return(0,k.jsxs)(P.Z,{breadcrumbs:y,errors:g,pageName:E.M.BACKFILLS,pipeline:e,setErrors:O,title:function(n){var e=n.name;return"".concat(e," backfills")},uuid:"".concat(E.M.BACKFILLS,"_").concat(r),children:[(0,k.jsx)(C.Z,{p:w.cd,children:(0,k.jsx)(j.ZP,{beforeElement:(0,k.jsx)(v.mm,{size:2.5*w.iI}),blackBorder:!0,inline:!0,loading:H,noHoverUnderline:!0,onClick:function(){return B({backfill:{name:(0,S.Y6)()}})},sameColorAsText:!0,uuid:"PipelineDetailPage/Backfills/add_new_backfill",children:"Create new backfill"})}),s&&0===s.length&&(0,k.jsx)(C.Z,{p:w.cd,children:(0,k.jsx)(h.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No backfills available"})}),(null===s||void 0===s?void 0:s.length)>=1&&(0,k.jsx)(x,{models:s,onClickRow:function(n){var e=n.id;return(0,D.u)({backfill_id:e})},pipeline:e,selectedRow:p})]})}T.getInitialProps=function(){var n=(0,r.Z)(c().mark((function n(e){var t;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.query.pipeline,n.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();var B=(0,Z.Z)(T)},33766:function(n,e,t){"use strict";t.d(e,{u:function(){return s}});var r=t(75582),i=t(82394),o=t(34376),c=t.n(o),l=t(59e3);function u(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function a(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?u(Object(t),!0).forEach((function(e){(0,i.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function s(n){var e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,o=t.pushHistory,u=i?{}:(0,l.iV)();e=window.location.pathname;var s=o?c().push:c().replace,d=a(a({},u),n);Object.entries(n).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],i=e[1];"undefined"!==typeof i&&null!==i||delete d[t]}));var f=(0,l.uM)(d);f.length>=1&&(f="?".concat(f));var p="".concat(e.split("?")[0]).concat(f);return s(c().router.pathname,p,{shallow:!0})}},37459:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/backfills",function(){return t(30206)}])}},function(n){n.O(0,[3850,2083,9767,3573,434,1830,2626,9774,2888,179],(function(){return e=37459,n(n.s=e);var e}));var e=n.O();_N_E=e}]);