mage-ai 0.8.48__py3-none-any.whl → 0.8.49__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of mage-ai might be problematic. Click here for more details.

Files changed (71) hide show
  1. mage_ai/api/resources/DataProviderResource.py +12 -1
  2. mage_ai/data_preparation/models/block/sql/__init__.py +5 -7
  3. mage_ai/data_preparation/models/pipeline.py +36 -3
  4. mage_ai/data_preparation/templates/repo/io_config.yaml +6 -0
  5. mage_ai/io/sql.py +4 -1
  6. mage_ai/server/constants.py +1 -1
  7. mage_ai/server/frontend_dist/404.html +2 -2
  8. mage_ai/server/frontend_dist/404.html.html +2 -2
  9. mage_ai/server/frontend_dist/_next/static/{MxJEQAsVYkCzpf7Sf1BKY → I2bRLK9B7Lap2LvCicTKv}/_buildManifest.js +1 -1
  10. mage_ai/server/frontend_dist/_next/static/chunks/{2249-50d2156ae3ce5933.js → 2249-59feb0a0585ef7c1.js} +1 -1
  11. mage_ai/server/frontend_dist/_next/static/chunks/2407-35c362852abff411.js +1 -0
  12. mage_ai/server/frontend_dist/_next/static/chunks/{3014-26ba07eb6a78e31c.js → 3014-a01e16bc067500ad.js} +1 -1
  13. mage_ai/server/frontend_dist/_next/static/chunks/{4506-ce5fa63b65f6fa5f.js → 4506-a3c53b0033972626.js} +1 -1
  14. mage_ai/server/frontend_dist/_next/static/chunks/{4741-a90063795b0eae44.js → 4741-5fbecd08232ba3f9.js} +1 -1
  15. mage_ai/server/frontend_dist/_next/static/chunks/{5477-793cd2120261d023.js → 5477-b439f211b6146a11.js} +1 -1
  16. mage_ai/server/frontend_dist/_next/static/chunks/{5872-103815a4a043489b.js → 5872-1767c45ee6690ae5.js} +1 -1
  17. mage_ai/server/frontend_dist/_next/static/chunks/{5896-f84e336fb8877027.js → 5896-10a676bcc86978cc.js} +1 -1
  18. mage_ai/server/frontend_dist/_next/static/chunks/{7400-acab00d6265bd4dc.js → 7400-033fb12e7c46f62e.js} +1 -1
  19. mage_ai/server/frontend_dist/_next/static/chunks/{9832-c8b8970bb522f302.js → 9832-f97919376d52e3bf.js} +1 -1
  20. mage_ai/server/frontend_dist/_next/static/chunks/pages/{manage-68a4afe10fa0958c.js → manage-8a7b2b707c7038fb.js} +1 -1
  21. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-24c7b51521b5da92.js → [...slug]-c48a45cea6df6192.js} +1 -1
  22. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{backfills-f0f726599529789c.js → backfills-dd637dcb042ff771.js} +1 -1
  23. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-5541c3e13297ddbc.js +1 -0
  24. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{logs-a26b3d2b4806cb75.js → logs-caa9fade2bc783b9.js} +1 -1
  25. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-534e4fdf17255583.js → [run]-5f78885afc7758df.js} +1 -1
  26. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{runs-a9636cb88ec885bd.js → runs-43f2c1658cd3d03d.js} +1 -1
  27. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{settings-3719bc2024f5d031.js → settings-8fb53eb8dd0267e1.js} +1 -1
  28. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{syncs-93f1a008086f516a.js → syncs-c92351b1a81f7a13.js} +1 -1
  29. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-e9c39e78b4406d9b.js → [...slug]-ca76f5938bdff8a7.js} +1 -1
  30. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-57af43cc439b2b43.js → triggers-4e9518882c8730b1.js} +1 -1
  31. mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipelines-3156eaf5f09ebf39.js → pipelines-c46347f0308ab09a.js} +1 -1
  32. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{preferences-25735fdf80f95015.js → preferences-45c40fb24c8a5139.js} +1 -1
  33. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{sync-data-abfaa2b15eef72a0.js → sync-data-6e80afa0c9b90cdf.js} +1 -1
  34. mage_ai/server/frontend_dist/_next/static/chunks/pages/{terminal-24eb5df948cc9a7e.js → terminal-cc54b4d4e5295101.js} +1 -1
  35. mage_ai/server/frontend_dist/index.html +2 -2
  36. mage_ai/server/frontend_dist/manage.html +2 -2
  37. mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
  38. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
  39. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
  40. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  41. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
  42. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
  43. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
  44. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
  45. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
  46. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
  47. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +2 -2
  48. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
  49. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
  50. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
  51. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  52. mage_ai/server/frontend_dist/pipelines.html +2 -2
  53. mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
  54. mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
  55. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
  56. mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
  57. mage_ai/server/frontend_dist/settings.html +2 -2
  58. mage_ai/server/frontend_dist/sign-in.html +2 -2
  59. mage_ai/server/frontend_dist/terminal.html +2 -2
  60. mage_ai/server/frontend_dist/test.html +2 -2
  61. mage_ai/server/frontend_dist/triggers.html +2 -2
  62. {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/METADATA +1 -1
  63. {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/RECORD +69 -69
  64. mage_ai/server/frontend_dist/_next/static/chunks/4538-8a3c3e47be976ede.js +0 -1
  65. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-f68a5f454656d7a4.js +0 -1
  66. /mage_ai/server/frontend_dist/_next/static/{MxJEQAsVYkCzpf7Sf1BKY → I2bRLK9B7Lap2LvCicTKv}/_middlewareManifest.js +0 -0
  67. /mage_ai/server/frontend_dist/_next/static/{MxJEQAsVYkCzpf7Sf1BKY → I2bRLK9B7Lap2LvCicTKv}/_ssgManifest.js +0 -0
  68. {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/LICENSE +0 -0
  69. {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/WHEEL +0 -0
  70. {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/entry_points.txt +0 -0
  71. {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9832],{52136:function(t,n,e){e.d(n,{Z:function(){return p}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),l=e(5237),s=e(29989),a=e(81352),h=e(46119),f=e(88543),d=e(12765),y=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function _(){return _=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},_.apply(this,arguments)}function p(t){var n=t.top,e=void 0===n?0:n,i=t.left,r=void 0===i?0:i,u=t.scale,p=t.height,v=t.stroke,x=void 0===v?"#eaf0f6":v,m=t.strokeWidth,Z=void 0===m?1:m,g=t.strokeDasharray,b=t.className,O=t.numTicks,E=void 0===O?10:O,k=t.lineStyle,w=t.offset,T=t.tickValues,N=t.children,j=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,y),M=null!=T?T:(0,h.Z)(u,E),P=(null!=w?w:0)+(0,d.Z)(u)/2,R=M.map((function(t,n){var e,i=(null!=(e=(0,f.Z)(u(t)))?e:0)+P;return{index:n,from:new a.Z({x:i,y:0}),to:new a.Z({x:i,y:p})}}));return o.createElement(s.Z,{className:c()("visx-columns",b),top:e,left:r},N?N({lines:R}):R.map((function(t){var n=t.from,e=t.to,i=t.index;return o.createElement(l.Z,_({key:"column-line-"+i,from:n,to:e,stroke:x,strokeWidth:Z,strokeDasharray:g,style:k},j))})))}p.propTypes={tickValues:r().array,height:r().number.isRequired}},85587:function(t,n,e){e.d(n,{Z:function(){return s}});var i=e(82684),r=e(63588),o=e.n(r),u=e(39309),c=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return l=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},l.apply(this,arguments)}function s(t){var n=t.children,e=t.data,r=void 0===e?[]:e,s=t.x,a=t.y,h=t.fill,f=void 0===h?"transparent":h,d=t.className,y=t.curve,_=t.innerRef,p=t.defined,v=void 0===p?function(){return!0}:p,x=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,c),m=(0,u.jv)({x:s,y:a,defined:v,curve:y});return n?i.createElement(i.Fragment,null,n({path:m})):i.createElement("path",l({ref:_,className:o()("visx-linepath",d),d:m(r)||"",fill:f,strokeLinecap:"round"},x))}},39309:function(t,n,e){e.d(n,{SO:function(){return u},jv:function(){return c}});var i=e(48167),r=e(92201),o=e(49894);function u(t){var n=void 0===t?{}:t,e=n.x,r=n.x0,u=n.x1,c=n.y,l=n.y0,s=n.y1,a=n.defined,h=n.curve,f=(0,i.Z)();return e&&(0,o.Z)(f.x,e),r&&(0,o.Z)(f.x0,r),u&&(0,o.Z)(f.x1,u),c&&(0,o.Z)(f.y,c),l&&(0,o.Z)(f.y0,l),s&&(0,o.Z)(f.y1,s),a&&f.defined(a),h&&f.curve(h),f}function c(t){var n=void 0===t?{}:t,e=n.x,i=n.y,u=n.defined,c=n.curve,l=(0,r.Z)();return e&&(0,o.Z)(l.x,e),i&&(0,o.Z)(l.y,i),u&&l.defined(u),c&&l.curve(c),l}},98889:function(t,n,e){e.d(n,{Z:function(){return p}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),l=e(39309),s=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function a(){return a=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},a.apply(this,arguments)}function h(t){var n=t.children,e=t.x,i=t.x0,r=t.x1,u=t.y,h=t.y0,f=t.y1,d=t.data,y=void 0===d?[]:d,_=t.defined,p=void 0===_?function(){return!0}:_,v=t.className,x=t.curve,m=t.innerRef,Z=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,s),g=(0,l.SO)({x:e,x0:i,x1:r,y:u,y0:h,y1:f,defined:p,curve:x});return n?o.createElement(o.Fragment,null,n({path:g})):o.createElement("path",a({ref:m,className:c()("visx-area",v),d:g(y)||""},Z))}var f=["id","children"];function d(){return d=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},d.apply(this,arguments)}function y(t){var n=t.id,e=t.children,i=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,f);return o.createElement("defs",null,o.createElement("clipPath",d({id:n},i),e))}function _(){return _=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},_.apply(this,arguments)}function p(t){var n=t.className,e=t.curve,i=t.clipAboveTo,r=t.clipBelowTo,u=t.data,l=t.defined,s=t.x,a=t.y0,f=t.y1,d=t.aboveAreaProps,p=t.belowAreaProps,v=t.id,x=void 0===v?"":v;return o.createElement("g",{className:c()("visx-threshold",n)},o.createElement(h,{curve:e,data:u,x:s,y1:f,defined:l},(function(t){var n=t.path,e=null,c=null;return e=n.y0(r)(u),c=n.y0(i)(u),o.createElement("g",null,o.createElement(y,{id:"threshold-clip-below-"+x},o.createElement("path",{d:e||""})),o.createElement(y,{id:"threshold-clip-above-"+x},o.createElement("path",{d:c||""})))})),o.createElement(h,_({curve:e,data:u,defined:l,x:s,y0:a,y1:f,strokeWidth:0,clipPath:"url(#threshold-clip-below-"+x+")"},p)),o.createElement(h,_({curve:e,data:u,defined:l,x:s,y0:a,y1:f,strokeWidth:0,clipPath:"url(#threshold-clip-above-"+x+")"},d)))}y.propTypes={id:r().string.isRequired,children:r().node},p.propTypes={className:r().string,clipAboveTo:r().oneOfType([r().func,r().number]).isRequired,clipBelowTo:r().oneOfType([r().func,r().number]).isRequired,id:r().string.isRequired,data:r().array.isRequired,defined:r().func,x:r().oneOfType([r().func,r().number]).isRequired,y0:r().oneOfType([r().func,r().number]).isRequired,y1:r().oneOfType([r().func,r().number]).isRequired}},61655:function(t,n,e){e.d(n,{Z:function(){return u}});var i=e(82684),r=e(29179);function o(){return o=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},o.apply(this,arguments)}function u(t,n,e){void 0===n&&(n={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===e&&(e=function(t,n){return i.createElement("div",n,t)});return function(u){var c=(0,r.Z)();return e(i.createElement(t,o({},c,u)),n)}}},35681:function(t,n){var e=Math.PI,i=2*e,r=1e-6,o=i-r;function u(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function c(){return new u}u.prototype=c.prototype={constructor:u,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,i){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(t,n,e,i,r,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +i+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(t,n,i,o,u){t=+t,n=+n,i=+i,o=+o,u=+u;var c=this._x1,l=this._y1,s=i-t,a=o-n,h=c-t,f=l-n,d=h*h+f*f;if(u<0)throw new Error("negative radius: "+u);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(d>r)if(Math.abs(f*s-a*h)>r&&u){var y=i-c,_=o-l,p=s*s+a*a,v=y*y+_*_,x=Math.sqrt(p),m=Math.sqrt(d),Z=u*Math.tan((e-Math.acos((p+d-v)/(2*x*m)))/2),g=Z/m,b=Z/x;Math.abs(g-1)>r&&(this._+="L"+(t+g*h)+","+(n+g*f)),this._+="A"+u+","+u+",0,0,"+ +(f*y>h*_)+","+(this._x1=t+b*s)+","+(this._y1=n+b*a)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,u,c,l,s){t=+t,n=+n,s=!!s;var a=(u=+u)*Math.cos(c),h=u*Math.sin(c),f=t+a,d=n+h,y=1^s,_=s?c-l:l-c;if(u<0)throw new Error("negative radius: "+u);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>r||Math.abs(this._y1-d)>r)&&(this._+="L"+f+","+d),u&&(_<0&&(_=_%i+i),_>o?this._+="A"+u+","+u+",0,1,"+y+","+(t-a)+","+(n-h)+"A"+u+","+u+",0,1,"+y+","+(this._x1=f)+","+(this._y1=d):_>r&&(this._+="A"+u+","+u+",0,"+ +(_>=e)+","+y+","+(this._x1=t+u*Math.cos(l))+","+(this._y1=n+u*Math.sin(l))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}},n.Z=c},48167:function(t,n,e){e.d(n,{Z:function(){return l}});var i=e(35681),r=e(90875),o=e(23622),u=e(92201),c=e(98930);function l(){var t=c.x,n=null,e=(0,r.Z)(0),l=c.y,s=(0,r.Z)(!0),a=null,h=o.Z,f=null;function d(r){var o,u,c,d,y,_=r.length,p=!1,v=new Array(_),x=new Array(_);for(null==a&&(f=h(y=(0,i.Z)())),o=0;o<=_;++o){if(!(o<_&&s(d=r[o],o,r))===p)if(p=!p)u=o,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),c=o-1;c>=u;--c)f.point(v[c],x[c]);f.lineEnd(),f.areaEnd()}p&&(v[o]=+t(d,o,r),x[o]=+e(d,o,r),f.point(n?+n(d,o,r):v[o],l?+l(d,o,r):x[o]))}if(y)return f=null,y+""||null}function y(){return(0,u.Z)().defined(s).curve(h).context(a)}return d.x=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.Z)(+e),n=null,d):t},d.x0=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),d):t},d.x1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),d):n},d.y=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),l=null,d):e},d.y0=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),d):e},d.y1=function(t){return arguments.length?(l=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),d):l},d.lineX0=d.lineY0=function(){return y().x(t).y(e)},d.lineY1=function(){return y().x(t).y(l)},d.lineX1=function(){return y().x(n).y(e)},d.defined=function(t){return arguments.length?(s="function"===typeof t?t:(0,r.Z)(!!t),d):s},d.curve=function(t){return arguments.length?(h=t,null!=a&&(f=h(a)),d):h},d.context=function(t){return arguments.length?(null==t?a=f=null:f=h(a=t),d):a},d}},97745:function(t,n,e){function i(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function r(t){this._context=t}function o(t){return new r(t)}e.d(n,{ZP:function(){return o},fE:function(){return r},xm:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}}},23622:function(t,n,e){function i(t){this._context=t}function r(t){return new i(t)}e.d(n,{Z:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}}},92201:function(t,n,e){e.d(n,{Z:function(){return c}});var i=e(35681),r=e(90875),o=e(23622),u=e(98930);function c(){var t=u.x,n=u.y,e=(0,r.Z)(!0),c=null,l=o.Z,s=null;function a(r){var o,u,a,h=r.length,f=!1;for(null==c&&(s=l(a=(0,i.Z)())),o=0;o<=h;++o)!(o<h&&e(u=r[o],o,r))===f&&((f=!f)?s.lineStart():s.lineEnd()),f&&s.point(+t(u,o,r),+n(u,o,r));if(a)return s=null,a+""||null}return a.x=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),a):t},a.y=function(t){return arguments.length?(n="function"===typeof t?t:(0,r.Z)(+t),a):n},a.defined=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(!!t),a):e},a.curve=function(t){return arguments.length?(l=t,null!=c&&(s=l(c)),a):l},a.context=function(t){return arguments.length?(null==t?c=s=null:s=l(c=t),a):c},a}},98930:function(t,n,e){function i(t){return t[0]}function r(t){return t[1]}e.d(n,{x:function(){return i},y:function(){return r}})}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9832],{52136:function(t,n,e){e.d(n,{Z:function(){return p}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),l=e(5237),s=e(29989),a=e(81352),h=e(46119),f=e(88543),d=e(12765),y=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function _(){return _=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},_.apply(this,arguments)}function p(t){var n=t.top,e=void 0===n?0:n,i=t.left,r=void 0===i?0:i,u=t.scale,p=t.height,v=t.stroke,x=void 0===v?"#eaf0f6":v,m=t.strokeWidth,Z=void 0===m?1:m,g=t.strokeDasharray,b=t.className,O=t.numTicks,E=void 0===O?10:O,k=t.lineStyle,w=t.offset,T=t.tickValues,N=t.children,j=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,y),M=null!=T?T:(0,h.Z)(u,E),P=(null!=w?w:0)+(0,d.Z)(u)/2,R=M.map((function(t,n){var e,i=(null!=(e=(0,f.Z)(u(t)))?e:0)+P;return{index:n,from:new a.Z({x:i,y:0}),to:new a.Z({x:i,y:p})}}));return o.createElement(s.Z,{className:c()("visx-columns",b),top:e,left:r},N?N({lines:R}):R.map((function(t){var n=t.from,e=t.to,i=t.index;return o.createElement(l.Z,_({key:"column-line-"+i,from:n,to:e,stroke:x,strokeWidth:Z,strokeDasharray:g,style:k},j))})))}p.propTypes={tickValues:r().array,height:r().number.isRequired}},85587:function(t,n,e){e.d(n,{Z:function(){return s}});var i=e(82684),r=e(63588),o=e.n(r),u=e(39309),c=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return l=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},l.apply(this,arguments)}function s(t){var n=t.children,e=t.data,r=void 0===e?[]:e,s=t.x,a=t.y,h=t.fill,f=void 0===h?"transparent":h,d=t.className,y=t.curve,_=t.innerRef,p=t.defined,v=void 0===p?function(){return!0}:p,x=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,c),m=(0,u.jv)({x:s,y:a,defined:v,curve:y});return n?i.createElement(i.Fragment,null,n({path:m})):i.createElement("path",l({ref:_,className:o()("visx-linepath",d),d:m(r)||"",fill:f,strokeLinecap:"round"},x))}},39309:function(t,n,e){e.d(n,{SO:function(){return u},jv:function(){return c}});var i=e(48167),r=e(92201),o=e(13004);function u(t){var n=void 0===t?{}:t,e=n.x,r=n.x0,u=n.x1,c=n.y,l=n.y0,s=n.y1,a=n.defined,h=n.curve,f=(0,i.Z)();return e&&(0,o.Z)(f.x,e),r&&(0,o.Z)(f.x0,r),u&&(0,o.Z)(f.x1,u),c&&(0,o.Z)(f.y,c),l&&(0,o.Z)(f.y0,l),s&&(0,o.Z)(f.y1,s),a&&f.defined(a),h&&f.curve(h),f}function c(t){var n=void 0===t?{}:t,e=n.x,i=n.y,u=n.defined,c=n.curve,l=(0,r.Z)();return e&&(0,o.Z)(l.x,e),i&&(0,o.Z)(l.y,i),u&&l.defined(u),c&&l.curve(c),l}},98889:function(t,n,e){e.d(n,{Z:function(){return p}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),l=e(39309),s=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function a(){return a=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},a.apply(this,arguments)}function h(t){var n=t.children,e=t.x,i=t.x0,r=t.x1,u=t.y,h=t.y0,f=t.y1,d=t.data,y=void 0===d?[]:d,_=t.defined,p=void 0===_?function(){return!0}:_,v=t.className,x=t.curve,m=t.innerRef,Z=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,s),g=(0,l.SO)({x:e,x0:i,x1:r,y:u,y0:h,y1:f,defined:p,curve:x});return n?o.createElement(o.Fragment,null,n({path:g})):o.createElement("path",a({ref:m,className:c()("visx-area",v),d:g(y)||""},Z))}var f=["id","children"];function d(){return d=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},d.apply(this,arguments)}function y(t){var n=t.id,e=t.children,i=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,f);return o.createElement("defs",null,o.createElement("clipPath",d({id:n},i),e))}function _(){return _=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},_.apply(this,arguments)}function p(t){var n=t.className,e=t.curve,i=t.clipAboveTo,r=t.clipBelowTo,u=t.data,l=t.defined,s=t.x,a=t.y0,f=t.y1,d=t.aboveAreaProps,p=t.belowAreaProps,v=t.id,x=void 0===v?"":v;return o.createElement("g",{className:c()("visx-threshold",n)},o.createElement(h,{curve:e,data:u,x:s,y1:f,defined:l},(function(t){var n=t.path,e=null,c=null;return e=n.y0(r)(u),c=n.y0(i)(u),o.createElement("g",null,o.createElement(y,{id:"threshold-clip-below-"+x},o.createElement("path",{d:e||""})),o.createElement(y,{id:"threshold-clip-above-"+x},o.createElement("path",{d:c||""})))})),o.createElement(h,_({curve:e,data:u,defined:l,x:s,y0:a,y1:f,strokeWidth:0,clipPath:"url(#threshold-clip-below-"+x+")"},p)),o.createElement(h,_({curve:e,data:u,defined:l,x:s,y0:a,y1:f,strokeWidth:0,clipPath:"url(#threshold-clip-above-"+x+")"},d)))}y.propTypes={id:r().string.isRequired,children:r().node},p.propTypes={className:r().string,clipAboveTo:r().oneOfType([r().func,r().number]).isRequired,clipBelowTo:r().oneOfType([r().func,r().number]).isRequired,id:r().string.isRequired,data:r().array.isRequired,defined:r().func,x:r().oneOfType([r().func,r().number]).isRequired,y0:r().oneOfType([r().func,r().number]).isRequired,y1:r().oneOfType([r().func,r().number]).isRequired}},61655:function(t,n,e){e.d(n,{Z:function(){return u}});var i=e(82684),r=e(29179);function o(){return o=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},o.apply(this,arguments)}function u(t,n,e){void 0===n&&(n={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===e&&(e=function(t,n){return i.createElement("div",n,t)});return function(u){var c=(0,r.Z)();return e(i.createElement(t,o({},c,u)),n)}}},35681:function(t,n){var e=Math.PI,i=2*e,r=1e-6,o=i-r;function u(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function c(){return new u}u.prototype=c.prototype={constructor:u,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,i){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(t,n,e,i,r,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +i+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(t,n,i,o,u){t=+t,n=+n,i=+i,o=+o,u=+u;var c=this._x1,l=this._y1,s=i-t,a=o-n,h=c-t,f=l-n,d=h*h+f*f;if(u<0)throw new Error("negative radius: "+u);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(d>r)if(Math.abs(f*s-a*h)>r&&u){var y=i-c,_=o-l,p=s*s+a*a,v=y*y+_*_,x=Math.sqrt(p),m=Math.sqrt(d),Z=u*Math.tan((e-Math.acos((p+d-v)/(2*x*m)))/2),g=Z/m,b=Z/x;Math.abs(g-1)>r&&(this._+="L"+(t+g*h)+","+(n+g*f)),this._+="A"+u+","+u+",0,0,"+ +(f*y>h*_)+","+(this._x1=t+b*s)+","+(this._y1=n+b*a)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,u,c,l,s){t=+t,n=+n,s=!!s;var a=(u=+u)*Math.cos(c),h=u*Math.sin(c),f=t+a,d=n+h,y=1^s,_=s?c-l:l-c;if(u<0)throw new Error("negative radius: "+u);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>r||Math.abs(this._y1-d)>r)&&(this._+="L"+f+","+d),u&&(_<0&&(_=_%i+i),_>o?this._+="A"+u+","+u+",0,1,"+y+","+(t-a)+","+(n-h)+"A"+u+","+u+",0,1,"+y+","+(this._x1=f)+","+(this._y1=d):_>r&&(this._+="A"+u+","+u+",0,"+ +(_>=e)+","+y+","+(this._x1=t+u*Math.cos(l))+","+(this._y1=n+u*Math.sin(l))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}},n.Z=c},48167:function(t,n,e){e.d(n,{Z:function(){return l}});var i=e(35681),r=e(90875),o=e(23622),u=e(92201),c=e(98930);function l(){var t=c.x,n=null,e=(0,r.Z)(0),l=c.y,s=(0,r.Z)(!0),a=null,h=o.Z,f=null;function d(r){var o,u,c,d,y,_=r.length,p=!1,v=new Array(_),x=new Array(_);for(null==a&&(f=h(y=(0,i.Z)())),o=0;o<=_;++o){if(!(o<_&&s(d=r[o],o,r))===p)if(p=!p)u=o,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),c=o-1;c>=u;--c)f.point(v[c],x[c]);f.lineEnd(),f.areaEnd()}p&&(v[o]=+t(d,o,r),x[o]=+e(d,o,r),f.point(n?+n(d,o,r):v[o],l?+l(d,o,r):x[o]))}if(y)return f=null,y+""||null}function y(){return(0,u.Z)().defined(s).curve(h).context(a)}return d.x=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.Z)(+e),n=null,d):t},d.x0=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),d):t},d.x1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),d):n},d.y=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),l=null,d):e},d.y0=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),d):e},d.y1=function(t){return arguments.length?(l=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),d):l},d.lineX0=d.lineY0=function(){return y().x(t).y(e)},d.lineY1=function(){return y().x(t).y(l)},d.lineX1=function(){return y().x(n).y(e)},d.defined=function(t){return arguments.length?(s="function"===typeof t?t:(0,r.Z)(!!t),d):s},d.curve=function(t){return arguments.length?(h=t,null!=a&&(f=h(a)),d):h},d.context=function(t){return arguments.length?(null==t?a=f=null:f=h(a=t),d):a},d}},97745:function(t,n,e){function i(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function r(t){this._context=t}function o(t){return new r(t)}e.d(n,{ZP:function(){return o},fE:function(){return r},xm:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}}},23622:function(t,n,e){function i(t){this._context=t}function r(t){return new i(t)}e.d(n,{Z:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}}},92201:function(t,n,e){e.d(n,{Z:function(){return c}});var i=e(35681),r=e(90875),o=e(23622),u=e(98930);function c(){var t=u.x,n=u.y,e=(0,r.Z)(!0),c=null,l=o.Z,s=null;function a(r){var o,u,a,h=r.length,f=!1;for(null==c&&(s=l(a=(0,i.Z)())),o=0;o<=h;++o)!(o<h&&e(u=r[o],o,r))===f&&((f=!f)?s.lineStart():s.lineEnd()),f&&s.point(+t(u,o,r),+n(u,o,r));if(a)return s=null,a+""||null}return a.x=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),a):t},a.y=function(t){return arguments.length?(n="function"===typeof t?t:(0,r.Z)(+t),a):n},a.defined=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(!!t),a):e},a.curve=function(t){return arguments.length?(l=t,null!=c&&(s=l(c)),a):l},a.context=function(t){return arguments.length?(null==t?c=s=null:s=l(c=t),a):c},a}},98930:function(t,n,e){function i(t){return t[0]}function r(t){return t[1]}e.d(n,{x:function(){return i},y:function(){return r}})}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8867],{59739:function(e,n,t){"use strict";var r=t(56669);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,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 n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),a=t(28358),s=t(93461),u=t(57384),l=t(12344),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var h=o.forwardRef(p),m=t(32063),b=t(15270),x=t(82531),g=t(66166),v=t(3055),y=t(49125),O=t(91427),j=t(24141);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,Z=e.afterWidthOverride,w=e.before,E=e.beforeWidth,P=e.breadcrumbs,R=e.children,A=e.errors,_=e.headerMenuItems,T=e.navigationItems,k=e.setErrors,C=e.subheaderChildren,D=e.title,N=e.uuid,I=(0,j.i)().width,H="dashboard_after_width_".concat(N),M="dashboard_before_width_".concat(N),L=(0,o.useRef)(null),z=(0,o.useState)(Z?p:(0,O.U2)(H,p)),F=z[0],X=z[1],W=(0,o.useState)(!1),U=W[0],B=W[1],Y=(0,o.useState)(w?Math.max((0,O.U2)(M,E),13*y.iI):null),Q=Y[0],G=Y[1],q=(0,o.useState)(!1),V=q[0],J=q[1],$=(0,o.useState)(null)[1],K=x.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===K||void 0===K?void 0:K.projects,ne=[];P?ne.push.apply(ne,(0,i.Z)(P)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return D}}]),(0,o.useEffect)((function(){null===L||void 0===L||!L.current||U||V||null===$||void 0===$||$(L.current.getBoundingClientRect().width)}),[U,F,V,Q,L,$,I]),(0,o.useEffect)((function(){U||(0,O.t8)(H,F)}),[r,U,F,H]),(0,o.useEffect)((function(){V||(0,O.t8)(M,Q)}),[V,Q,M]);var te=(0,g.Z)(p);return(0,o.useEffect)((function(){Z&&te!==p&&X(p)}),[Z,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(u.Z,{title:D}),(0,f.jsx)(l.Z,{breadcrumbs:ne,menuItems:_,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===T||void 0===T?void 0:T.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(b.Z,{navigationItems:T})}),(0,f.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:t,afterHeightOffset:v.Mz,afterHidden:r,afterMousedownActive:U,afterWidth:F,before:w,beforeHeightOffset:v.Mz,beforeMousedownActive:V,beforeWidth:d.k1+(w?Q:0),hideAfterCompletely:!0,leftOffset:w?d.k1:null,mainContainerRef:L,setAfterMousedownActive:B,setAfterWidth:X,setBeforeMousedownActive:J,setBeforeWidth:G,children:[C&&(0,f.jsx)(h,{children:C}),R]})})]}),A&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===k||void 0===k?void 0:k(null)},children:(0,f.jsx)(a.Z,S(S({},A),{},{onClose:function(){return null===k||void 0===k?void 0:k(null)}}))})]})}},65597:function(e,n,t){"use strict";t.d(n,{f:function(){return a}});var r=t(9518),i=t(23831),o=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*o.iI,c.TR,2*o.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||i.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},86422:function(e,n,t){"use strict";t.d(n,{$W:function(){return f},DA:function(){return d},HX:function(){return m},J8:function(){return h},Lq:function(){return u},Qj:function(){return b},Ut:function(){return y},V4:function(){return v},VZ:function(){return p},dO:function(){return l},f2:function(){return g},iZ:function(){return x},t6:function(){return c},tf:function(){return s}});var r,i,o,c,a=t(82394);!function(e){e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(c||(c={}));var s,u,l=(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(e){e.CHART="chart",e.CUSTOM="custom",e.DATA_EXPORTER="data_exporter",e.DATA_LOADER="data_loader",e.DBT="dbt",e.EXTENSION="extension",e.SCRATCHPAD="scratchpad",e.SENSOR="sensor",e.TRANSFORMER="transformer"}(s||(s={})),function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(u||(u={}));var d,f=[s.CHART,s.CUSTOM,s.DATA_EXPORTER,s.DATA_LOADER,s.SCRATCHPAD,s.SENSOR,s.TRANSFORMER],p=[s.DATA_EXPORTER,s.DATA_LOADER],h=[s.DATA_EXPORTER,s.DATA_LOADER,s.TRANSFORMER],m=[s.DATA_EXPORTER,s.DATA_LOADER,s.DBT,s.TRANSFORMER],b=[s.CHART,s.SCRATCHPAD,s.SENSOR],x=[s.EXTENSION,s.SCRATCHPAD];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(d||(d={}));var g=[s.CUSTOM,s.DATA_EXPORTER,s.TRANSFORMER],v=(i={},(0,a.Z)(i,s.CUSTOM,"Custom"),(0,a.Z)(i,s.DATA_EXPORTER,"Data exporter"),(0,a.Z)(i,s.DATA_LOADER,"Data loader"),(0,a.Z)(i,s.EXTENSION,"Extension"),(0,a.Z)(i,s.SCRATCHPAD,"Scratchpad"),(0,a.Z)(i,s.SENSOR,"Sensor"),(0,a.Z)(i,s.TRANSFORMER,"Transformer"),i),y=[s.DATA_LOADER,s.TRANSFORMER,s.DATA_EXPORTER,s.SENSOR];o={},(0,a.Z)(o,s.DATA_EXPORTER,"DE"),(0,a.Z)(o,s.DATA_LOADER,"DL"),(0,a.Z)(o,s.SCRATCHPAD,"SP"),(0,a.Z)(o,s.SENSOR,"SR"),(0,a.Z)(o,s.TRANSFORMER,"TF")},87372:function(e,n,t){"use strict";var r,i,o,c,a,s,u,l,d=t(82394),f=t(26304),p=t(26653),h=t(9518),m=t(33591),b=t(23831),x=t(2005),g=t(31012),v=t(19711),y=t(49125),O=t(86673),j=t(28598),Z=["children","condensed","inline","level","marketing","spacingBelow"];function S(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?S(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var E=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],v.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||b.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(x.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(x.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(x.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(x.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(x.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),P=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||b.Z.content).active,";\n ")})),R=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],E,m.media.md(r||(r=(0,p.Z)(["\n ","\n "])),g.aQ),m.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),g.aQ),m.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),g.aQ)),A=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],E,g.MJ),_=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],E,m.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.sm(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.md(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.lg(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.xl(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI)),T=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],E,g.BL),k=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],E),C=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],E),D=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],E),N=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],E,(function(e){return 1===e.level&&"\n ".concat(g.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(g.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),I=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,c=e.marketing,a=e.spacingBelow,s=(0,f.Z)(e,Z);i?n=N:0===Number(o)?n=R:1===Number(o)?n=c?_:A:2===Number(o)?n=T:3===Number(o)?n=k:4===Number(o)?n=C:5===Number(o)&&(n=D);var u=(0,j.jsxs)(n,w(w({},s),{},{level:o,children:[a&&(0,j.jsx)(O.Z,{mb:r?2:3,children:t}),!a&&t]}));return i?u:(0,j.jsx)(P,{children:u})};I.defaultProps={level:3,weightStyle:6},n.Z=I},70902:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(9518),a=t(69898),s=t(23831),u=t(28598),l=["checked","disabled","onCheck"];function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var 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(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.disabled?s.Z.monotone.white:s.Z.monotone.black}),(function(e){return e.disabled&&"border: 1px solid ".concat(s.Z.monotone.grey200)}),(function(e){return!e.disabled&&'\n & input[type="checkbox"]:checked + span {\n background-color: #6AA1E0;\n }\n\n & input[type="checkbox"]:checked + span::before {\n background-color: '.concat(s.Z.monotone.white,";\n }\n ")})),h=function(e,n){var t=e.checked,r=e.disabled,o=e.onCheck,c=(0,i.Z)(e,l);return(0,u.jsx)(a.Z,f(f({},c),{},{disabled:r,input:(0,u.jsxs)(p,f(f({},c),{},{disabled:r,noBackground:!0,noBorder:!0,children:[(0,u.jsx)("input",{checked:t,type:"checkbox"}),(0,u.jsx)("span",{onClick:r?null:function(){return null===o||void 0===o?void 0:o((function(e){return!e}))}})]})),noBackground:!0,ref:n}))};n.Z=o.forwardRef(h)},48438:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return L}});var r=t(77837),i=t(75582),o=t(38860),c=t.n(o),a=t(82684),s=t(83455),u=t(60328),l=t(47999),d=t(57722),f=t(67971),p=t(87372),h=t(11135),m=t(86673),b=t(58180),x=t(19711),g=t(82944),v=t(70902),y=t(82531),O=t(10503),j=t(86422),Z=t(73899),S=t(99994),w=t(85307),E=t(49125),P=t(96510),R=t(90211),A=t(28598);var _=function(e){var n=e.fetchInstances,t=e.instanceType,r=(0,a.useState)(),o=r[0],c=r[1],u=(0,a.useState)(),l=u[0],_=u[1],T=(0,a.useState)(),k=T[0],C=T[1],D=(0,a.useState)(null),N=D[0],I=D[1],H=(0,a.useState)(),M=H[0],L=H[1],z=(0,a.useState)(),F=z[0],X=z[1],W=(0,s.Db)(y.ZP.instances.clusters.useCreate(t),{onSuccess:function(e){return(0,P.wD)(e,{callback:function(e){e.success?(n(),c(!1)):_(e.error_message)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;console.log(t,r)}})}}),U=(0,i.Z)(W,2),B=U[0],Y=U[1].isLoading,Q=[[(0,A.jsx)(x.ZP,{bold:!0,color:Z.cM,children:"Instance name"}),(0,A.jsx)(g.Z,{label:"ecs"===t?"Spaces will be replaced by underscores":"Spaces will be replaced by hyphens",monospace:!0,onChange:function(e){e.preventDefault(),L(e.target.value)},placeholder:"Name your new instance",value:M})]];return"k8s"===t&&Q.push([(0,A.jsx)(x.ZP,{bold:!0,color:Z.cM,children:"Service account name (optional)"}),(0,A.jsx)(g.Z,{label:"Name of service account to be attached to stateful set",monospace:!0,onChange:function(e){e.preventDefault(),X(e.target.value)},placeholder:"Service account name",value:F})]),(0,A.jsx)(A.Fragment,{children:o?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(p.Z,{default:!0,level:5,monospace:!0,children:"Configure new instance"}),(0,A.jsx)(b.Z,{columnFlex:[null,3],rows:Q}),"k8s"===t&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(m.Z,{mt:1,children:(0,A.jsxs)(f.Z,{alignItems:"center",children:[(0,A.jsx)(x.ZP,{default:!0,monospace:!0,children:"Configure container"}),(0,A.jsx)(m.Z,{ml:1}),(0,A.jsx)(v.Z,{checked:k,onCheck:function(){return C((function(e){return!e}))}})]})}),k&&(0,A.jsx)(m.Z,{mt:1,children:(0,A.jsx)(w.$W,{children:(0,A.jsx)(d.Z,{autoHeight:!0,language:j.t6.YAML,onChange:function(e){I(e)},tabSize:2,value:N||void 0,width:"100%"})})})]}),Y&&(0,A.jsx)(m.Z,{mt:1,children:(0,A.jsx)(x.ZP,{small:!0,warning:!0,children:"This may take up to a few minutes... Once the service is created, it may take another 5-10 minutes for the service to be accessible."})}),!Y&&l&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(m.Z,{mt:1,children:(0,A.jsx)(x.ZP,{small:!0,danger:!0,children:"Failed to create instance, see error below."})}),(0,A.jsx)(m.Z,{mt:1,children:(0,A.jsx)(x.ZP,{small:!0,danger:!0,children:l})})]}),(0,A.jsx)(m.Z,{my:2,children:(0,A.jsxs)(f.Z,{children:[(0,A.jsx)(h.ZP,{background:Z.a$,bold:!0,inline:!0,loading:Y,onClick:function(){return B({instance:{name:(e=M,"ecs"===t?(0,R.We)(e,"_"):(0,R.We)(e,"-")),service_account_name:F,container_config:k&&N}});var e},uuid:"EnvironmentListPage/new",children:"Create"}),(0,A.jsx)(m.Z,{ml:1}),(0,A.jsx)(h.ZP,{bold:!0,inline:!0,onClick:function(){return c(!1)},uuid:"EnvironmentListPage/cancel",children:"Cancel"})]})})]}):(0,A.jsx)(h.ZP,{background:S.eW,beforeElement:(0,A.jsx)(O.mm,{size:2.5*E.iI}),bold:!0,inline:!0,onClick:function(){L((0,R.Y6)()),c(!0)},uuid:"EnvironmentListPage/new_instance",children:"Create new instance"})})},T=t(1210),k=t(62084),C=t(41788),D=t(73942),N=t(65597),I=t(72454);function H(e){var n=e.fetchInstances,t=e.instance,r=e.instanceType,o=(0,a.useRef)(null),c=(0,a.useState)(),d=c[0],p=c[1],h=(0,a.useState)(),b=h[0],g=h[1],v=t.name,j=t.task_arn,Z={};j&&(Z.task_arn=j);var S=(0,s.Db)(y.ZP.instances.clusters.useUpdate(r,v),{onSuccess:function(e){return(0,P.wD)(e,{callback:function(){n(),p(!1)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;console.log(t,r)}})}}),w=(0,i.Z)(S,1)[0],R=(0,s.Db)(y.ZP.instances.clusters.useDelete(r,v,Z),{onSuccess:function(e){return(0,P.wD)(e,{callback:function(){n(),p(!1)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;console.log(t,r)}})}}),_=(0,i.Z)(R,1)[0],T=(0,a.useMemo)((function(){var e=t.status,n=[{label:function(){return(0,A.jsx)(x.ZP,{children:"Delete instance"})},onClick:function(){return g(!0)},uuid:"delete_instance"}];return"STOPPED"===e?n.unshift({label:function(){return(0,A.jsx)(x.ZP,{children:"Resume instance"})},onClick:function(){return w({instance:{action:"resume",name:t.name,task_arn:t.task_arn}})},uuid:"resume_instance"}):"RUNNING"===e&&n.unshift({label:function(){return(0,A.jsx)(x.ZP,{children:"Stop instance"})},onClick:function(){return w({instance:{action:"stop",name:t.name,task_arn:t.task_arn}})},uuid:"stop_instance"}),n}),[t]);return(0,A.jsx)(A.Fragment,{children:"ecs"===r&&(0,A.jsxs)("div",{ref:o,style:{position:"relative",zIndex:"1"},children:[(0,A.jsx)(u.Z,{iconOnly:!0,onClick:function(){return p(!d)},children:(0,A.jsx)(O.mH,{size:2*E.iI})}),(0,A.jsx)(l.Z,{disableEscape:!0,onClickOutside:function(){p(!1),g(!1)},open:d,children:b?(0,A.jsxs)(N.f,{leftOffset:30*-E.iI,topOffset:3*-E.iI,width:30*E.iI,children:[(0,A.jsx)(x.ZP,{children:"Are you sure you want to delete"}),(0,A.jsx)(x.ZP,{children:"this instance? You may not be"}),(0,A.jsx)(x.ZP,{children:"able to recover your data."}),(0,A.jsx)(m.Z,{mt:1}),(0,A.jsxs)(f.Z,{children:[(0,A.jsx)(u.Z,{danger:!0,onClick:_,children:"Confirm"}),(0,A.jsx)(m.Z,{ml:1}),(0,A.jsx)(u.Z,{default:!0,onClick:function(){return g(!1)},children:"Cancel"})]})]}):(0,A.jsx)(k.Z,{items:T,left:25*-E.iI,open:d,parentRef:o,topOffset:3*-E.iI,uuid:"Manage/more_actions",width:25*E.iI})})]})})}function M(){var e,n=(0,a.useState)(),t=(n[0],n[1],y.ZP.status.list().data),r=(null===t||void 0===t||null===(e=t.status)||void 0===e?void 0:e.instance_type)||"ecs",i=y.ZP.instances.clusters.list(r,{},{refreshInterval:3e3,revalidateOnFocus:!0}),o=i.data,c=i.mutate,s=(0,a.useMemo)((function(){var e;return null===o||void 0===o||null===(e=o.instances)||void 0===e?void 0:e.filter((function(e){return e.name}))}),[o]);return(0,A.jsx)(T.Z,{afterWidth:I.k1,beforeWidth:I.k1,breadcrumbs:[{bold:!0,label:function(){return"Manage (".concat(r,")")}}],navigationItems:[],subheaderChildren:(0,A.jsx)(_,{fetchInstances:c,instanceType:r}),title:"Manage",uuid:"Manage/index",children:(0,A.jsx)(b.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===s||void 0===s?void 0:s.map((function(e){var n=e.ip,t=e.name,i=e.status,o=e.type,a="http://".concat(n);return"ecs"===r&&(a="http://".concat(n,":6789")),[(0,A.jsx)(u.Z,{borderRadius:D.D7,danger:"STOPPED"===i,default:"PROVISIONING"===i,notClickable:!0,padding:"6px",primary:"RUNNING"===i,warning:"PENDING"===i,children:(0,R.vg)(i)}),(0,A.jsx)(x.ZP,{children:t}),(0,A.jsx)(x.ZP,{children:(0,R.vg)(o)}),(0,A.jsx)(x.ZP,{children:n}),(0,A.jsx)(u.Z,{iconOnly:!0,onClick:function(){return window.open(a)},children:(0,A.jsx)(O.M0,{size:2*E.iI})}),(0,A.jsx)(H,{fetchInstances:c,instance:e,instanceType:r})]}))})})}M.getInitialProps=(0,r.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var L=(0,C.Z)(M)},13157:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage",function(){return t(48438)}])}},function(e){e.O(0,[3850,5716,8789,2344,4506,6166,8180,6195,9774,2888,179],(function(){return n=13157,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8867],{59739:function(e,n,t){"use strict";var r=t(56669);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,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 n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),a=t(49894),s=t(93461),u=t(57384),l=t(12344),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var h=o.forwardRef(p),m=t(32063),b=t(15270),x=t(82531),g=t(66166),v=t(3055),y=t(49125),O=t(91427),j=t(24141);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,Z=e.afterWidthOverride,w=e.before,E=e.beforeWidth,P=e.breadcrumbs,R=e.children,A=e.errors,_=e.headerMenuItems,T=e.navigationItems,k=e.setErrors,C=e.subheaderChildren,D=e.title,N=e.uuid,I=(0,j.i)().width,H="dashboard_after_width_".concat(N),M="dashboard_before_width_".concat(N),L=(0,o.useRef)(null),z=(0,o.useState)(Z?p:(0,O.U2)(H,p)),F=z[0],X=z[1],W=(0,o.useState)(!1),U=W[0],B=W[1],Y=(0,o.useState)(w?Math.max((0,O.U2)(M,E),13*y.iI):null),Q=Y[0],G=Y[1],q=(0,o.useState)(!1),V=q[0],J=q[1],$=(0,o.useState)(null)[1],K=x.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===K||void 0===K?void 0:K.projects,ne=[];P?ne.push.apply(ne,(0,i.Z)(P)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return D}}]),(0,o.useEffect)((function(){null===L||void 0===L||!L.current||U||V||null===$||void 0===$||$(L.current.getBoundingClientRect().width)}),[U,F,V,Q,L,$,I]),(0,o.useEffect)((function(){U||(0,O.t8)(H,F)}),[r,U,F,H]),(0,o.useEffect)((function(){V||(0,O.t8)(M,Q)}),[V,Q,M]);var te=(0,g.Z)(p);return(0,o.useEffect)((function(){Z&&te!==p&&X(p)}),[Z,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(u.Z,{title:D}),(0,f.jsx)(l.Z,{breadcrumbs:ne,menuItems:_,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===T||void 0===T?void 0:T.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(b.Z,{navigationItems:T})}),(0,f.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:t,afterHeightOffset:v.Mz,afterHidden:r,afterMousedownActive:U,afterWidth:F,before:w,beforeHeightOffset:v.Mz,beforeMousedownActive:V,beforeWidth:d.k1+(w?Q:0),hideAfterCompletely:!0,leftOffset:w?d.k1:null,mainContainerRef:L,setAfterMousedownActive:B,setAfterWidth:X,setBeforeMousedownActive:J,setBeforeWidth:G,children:[C&&(0,f.jsx)(h,{children:C}),R]})})]}),A&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===k||void 0===k?void 0:k(null)},children:(0,f.jsx)(a.Z,S(S({},A),{},{onClose:function(){return null===k||void 0===k?void 0:k(null)}}))})]})}},65597:function(e,n,t){"use strict";t.d(n,{f:function(){return a}});var r=t(9518),i=t(23831),o=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*o.iI,c.TR,2*o.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||i.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},86422:function(e,n,t){"use strict";t.d(n,{$W:function(){return f},DA:function(){return d},HX:function(){return m},J8:function(){return h},Lq:function(){return u},Qj:function(){return b},Ut:function(){return y},V4:function(){return v},VZ:function(){return p},dO:function(){return l},f2:function(){return g},iZ:function(){return x},t6:function(){return c},tf:function(){return s}});var r,i,o,c,a=t(82394);!function(e){e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(c||(c={}));var s,u,l=(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(e){e.CHART="chart",e.CUSTOM="custom",e.DATA_EXPORTER="data_exporter",e.DATA_LOADER="data_loader",e.DBT="dbt",e.EXTENSION="extension",e.SCRATCHPAD="scratchpad",e.SENSOR="sensor",e.TRANSFORMER="transformer"}(s||(s={})),function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(u||(u={}));var d,f=[s.CHART,s.CUSTOM,s.DATA_EXPORTER,s.DATA_LOADER,s.SCRATCHPAD,s.SENSOR,s.TRANSFORMER],p=[s.DATA_EXPORTER,s.DATA_LOADER],h=[s.DATA_EXPORTER,s.DATA_LOADER,s.TRANSFORMER],m=[s.DATA_EXPORTER,s.DATA_LOADER,s.DBT,s.TRANSFORMER],b=[s.CHART,s.SCRATCHPAD,s.SENSOR],x=[s.EXTENSION,s.SCRATCHPAD];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(d||(d={}));var g=[s.CUSTOM,s.DATA_EXPORTER,s.TRANSFORMER],v=(i={},(0,a.Z)(i,s.CUSTOM,"Custom"),(0,a.Z)(i,s.DATA_EXPORTER,"Data exporter"),(0,a.Z)(i,s.DATA_LOADER,"Data loader"),(0,a.Z)(i,s.EXTENSION,"Extension"),(0,a.Z)(i,s.SCRATCHPAD,"Scratchpad"),(0,a.Z)(i,s.SENSOR,"Sensor"),(0,a.Z)(i,s.TRANSFORMER,"Transformer"),i),y=[s.DATA_LOADER,s.TRANSFORMER,s.DATA_EXPORTER,s.SENSOR];o={},(0,a.Z)(o,s.DATA_EXPORTER,"DE"),(0,a.Z)(o,s.DATA_LOADER,"DL"),(0,a.Z)(o,s.SCRATCHPAD,"SP"),(0,a.Z)(o,s.SENSOR,"SR"),(0,a.Z)(o,s.TRANSFORMER,"TF")},87372:function(e,n,t){"use strict";var r,i,o,c,a,s,u,l,d=t(82394),f=t(26304),p=t(26653),h=t(9518),m=t(33591),b=t(23831),x=t(2005),g=t(31012),v=t(19711),y=t(49125),O=t(86673),j=t(28598),Z=["children","condensed","inline","level","marketing","spacingBelow"];function S(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?S(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var E=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],v.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||b.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(x.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(x.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(x.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(x.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(x.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),P=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||b.Z.content).active,";\n ")})),R=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],E,m.media.md(r||(r=(0,p.Z)(["\n ","\n "])),g.aQ),m.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),g.aQ),m.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),g.aQ)),A=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],E,g.MJ),_=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],E,m.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.sm(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.md(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.lg(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.xl(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI)),T=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],E,g.BL),k=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],E),C=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],E),D=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],E),N=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],E,(function(e){return 1===e.level&&"\n ".concat(g.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(g.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),I=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,c=e.marketing,a=e.spacingBelow,s=(0,f.Z)(e,Z);i?n=N:0===Number(o)?n=R:1===Number(o)?n=c?_:A:2===Number(o)?n=T:3===Number(o)?n=k:4===Number(o)?n=C:5===Number(o)&&(n=D);var u=(0,j.jsxs)(n,w(w({},s),{},{level:o,children:[a&&(0,j.jsx)(O.Z,{mb:r?2:3,children:t}),!a&&t]}));return i?u:(0,j.jsx)(P,{children:u})};I.defaultProps={level:3,weightStyle:6},n.Z=I},70902:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(9518),a=t(69898),s=t(23831),u=t(28598),l=["checked","disabled","onCheck"];function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var 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(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.disabled?s.Z.monotone.white:s.Z.monotone.black}),(function(e){return e.disabled&&"border: 1px solid ".concat(s.Z.monotone.grey200)}),(function(e){return!e.disabled&&'\n & input[type="checkbox"]:checked + span {\n background-color: #6AA1E0;\n }\n\n & input[type="checkbox"]:checked + span::before {\n background-color: '.concat(s.Z.monotone.white,";\n }\n ")})),h=function(e,n){var t=e.checked,r=e.disabled,o=e.onCheck,c=(0,i.Z)(e,l);return(0,u.jsx)(a.Z,f(f({},c),{},{disabled:r,input:(0,u.jsxs)(p,f(f({},c),{},{disabled:r,noBackground:!0,noBorder:!0,children:[(0,u.jsx)("input",{checked:t,type:"checkbox"}),(0,u.jsx)("span",{onClick:r?null:function(){return null===o||void 0===o?void 0:o((function(e){return!e}))}})]})),noBackground:!0,ref:n}))};n.Z=o.forwardRef(h)},48438:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return L}});var r=t(77837),i=t(75582),o=t(38860),c=t.n(o),a=t(82684),s=t(83455),u=t(60328),l=t(47999),d=t(57722),f=t(67971),p=t(87372),h=t(11135),m=t(86673),b=t(58180),x=t(19711),g=t(82944),v=t(70902),y=t(82531),O=t(10503),j=t(86422),Z=t(73899),S=t(99994),w=t(85307),E=t(49125),P=t(96510),R=t(90211),A=t(28598);var _=function(e){var n=e.fetchInstances,t=e.instanceType,r=(0,a.useState)(),o=r[0],c=r[1],u=(0,a.useState)(),l=u[0],_=u[1],T=(0,a.useState)(),k=T[0],C=T[1],D=(0,a.useState)(null),N=D[0],I=D[1],H=(0,a.useState)(),M=H[0],L=H[1],z=(0,a.useState)(),F=z[0],X=z[1],W=(0,s.Db)(y.ZP.instances.clusters.useCreate(t),{onSuccess:function(e){return(0,P.wD)(e,{callback:function(e){e.success?(n(),c(!1)):_(e.error_message)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;console.log(t,r)}})}}),U=(0,i.Z)(W,2),B=U[0],Y=U[1].isLoading,Q=[[(0,A.jsx)(x.ZP,{bold:!0,color:Z.cM,children:"Instance name"}),(0,A.jsx)(g.Z,{label:"ecs"===t?"Spaces will be replaced by underscores":"Spaces will be replaced by hyphens",monospace:!0,onChange:function(e){e.preventDefault(),L(e.target.value)},placeholder:"Name your new instance",value:M})]];return"k8s"===t&&Q.push([(0,A.jsx)(x.ZP,{bold:!0,color:Z.cM,children:"Service account name (optional)"}),(0,A.jsx)(g.Z,{label:"Name of service account to be attached to stateful set",monospace:!0,onChange:function(e){e.preventDefault(),X(e.target.value)},placeholder:"Service account name",value:F})]),(0,A.jsx)(A.Fragment,{children:o?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(p.Z,{default:!0,level:5,monospace:!0,children:"Configure new instance"}),(0,A.jsx)(b.Z,{columnFlex:[null,3],rows:Q}),"k8s"===t&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(m.Z,{mt:1,children:(0,A.jsxs)(f.Z,{alignItems:"center",children:[(0,A.jsx)(x.ZP,{default:!0,monospace:!0,children:"Configure container"}),(0,A.jsx)(m.Z,{ml:1}),(0,A.jsx)(v.Z,{checked:k,onCheck:function(){return C((function(e){return!e}))}})]})}),k&&(0,A.jsx)(m.Z,{mt:1,children:(0,A.jsx)(w.$W,{children:(0,A.jsx)(d.Z,{autoHeight:!0,language:j.t6.YAML,onChange:function(e){I(e)},tabSize:2,value:N||void 0,width:"100%"})})})]}),Y&&(0,A.jsx)(m.Z,{mt:1,children:(0,A.jsx)(x.ZP,{small:!0,warning:!0,children:"This may take up to a few minutes... Once the service is created, it may take another 5-10 minutes for the service to be accessible."})}),!Y&&l&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(m.Z,{mt:1,children:(0,A.jsx)(x.ZP,{small:!0,danger:!0,children:"Failed to create instance, see error below."})}),(0,A.jsx)(m.Z,{mt:1,children:(0,A.jsx)(x.ZP,{small:!0,danger:!0,children:l})})]}),(0,A.jsx)(m.Z,{my:2,children:(0,A.jsxs)(f.Z,{children:[(0,A.jsx)(h.ZP,{background:Z.a$,bold:!0,inline:!0,loading:Y,onClick:function(){return B({instance:{name:(e=M,"ecs"===t?(0,R.We)(e,"_"):(0,R.We)(e,"-")),service_account_name:F,container_config:k&&N}});var e},uuid:"EnvironmentListPage/new",children:"Create"}),(0,A.jsx)(m.Z,{ml:1}),(0,A.jsx)(h.ZP,{bold:!0,inline:!0,onClick:function(){return c(!1)},uuid:"EnvironmentListPage/cancel",children:"Cancel"})]})})]}):(0,A.jsx)(h.ZP,{background:S.eW,beforeElement:(0,A.jsx)(O.mm,{size:2.5*E.iI}),bold:!0,inline:!0,onClick:function(){L((0,R.Y6)()),c(!0)},uuid:"EnvironmentListPage/new_instance",children:"Create new instance"})})},T=t(1210),k=t(62084),C=t(41788),D=t(73942),N=t(65597),I=t(72454);function H(e){var n=e.fetchInstances,t=e.instance,r=e.instanceType,o=(0,a.useRef)(null),c=(0,a.useState)(),d=c[0],p=c[1],h=(0,a.useState)(),b=h[0],g=h[1],v=t.name,j=t.task_arn,Z={};j&&(Z.task_arn=j);var S=(0,s.Db)(y.ZP.instances.clusters.useUpdate(r,v),{onSuccess:function(e){return(0,P.wD)(e,{callback:function(){n(),p(!1)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;console.log(t,r)}})}}),w=(0,i.Z)(S,1)[0],R=(0,s.Db)(y.ZP.instances.clusters.useDelete(r,v,Z),{onSuccess:function(e){return(0,P.wD)(e,{callback:function(){n(),p(!1)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;console.log(t,r)}})}}),_=(0,i.Z)(R,1)[0],T=(0,a.useMemo)((function(){var e=t.status,n=[{label:function(){return(0,A.jsx)(x.ZP,{children:"Delete instance"})},onClick:function(){return g(!0)},uuid:"delete_instance"}];return"STOPPED"===e?n.unshift({label:function(){return(0,A.jsx)(x.ZP,{children:"Resume instance"})},onClick:function(){return w({instance:{action:"resume",name:t.name,task_arn:t.task_arn}})},uuid:"resume_instance"}):"RUNNING"===e&&n.unshift({label:function(){return(0,A.jsx)(x.ZP,{children:"Stop instance"})},onClick:function(){return w({instance:{action:"stop",name:t.name,task_arn:t.task_arn}})},uuid:"stop_instance"}),n}),[t]);return(0,A.jsx)(A.Fragment,{children:"ecs"===r&&(0,A.jsxs)("div",{ref:o,style:{position:"relative",zIndex:"1"},children:[(0,A.jsx)(u.Z,{iconOnly:!0,onClick:function(){return p(!d)},children:(0,A.jsx)(O.mH,{size:2*E.iI})}),(0,A.jsx)(l.Z,{disableEscape:!0,onClickOutside:function(){p(!1),g(!1)},open:d,children:b?(0,A.jsxs)(N.f,{leftOffset:30*-E.iI,topOffset:3*-E.iI,width:30*E.iI,children:[(0,A.jsx)(x.ZP,{children:"Are you sure you want to delete"}),(0,A.jsx)(x.ZP,{children:"this instance? You may not be"}),(0,A.jsx)(x.ZP,{children:"able to recover your data."}),(0,A.jsx)(m.Z,{mt:1}),(0,A.jsxs)(f.Z,{children:[(0,A.jsx)(u.Z,{danger:!0,onClick:_,children:"Confirm"}),(0,A.jsx)(m.Z,{ml:1}),(0,A.jsx)(u.Z,{default:!0,onClick:function(){return g(!1)},children:"Cancel"})]})]}):(0,A.jsx)(k.Z,{items:T,left:25*-E.iI,open:d,parentRef:o,topOffset:3*-E.iI,uuid:"Manage/more_actions",width:25*E.iI})})]})})}function M(){var e,n=(0,a.useState)(),t=(n[0],n[1],y.ZP.status.list().data),r=(null===t||void 0===t||null===(e=t.status)||void 0===e?void 0:e.instance_type)||"ecs",i=y.ZP.instances.clusters.list(r,{},{refreshInterval:3e3,revalidateOnFocus:!0}),o=i.data,c=i.mutate,s=(0,a.useMemo)((function(){var e;return null===o||void 0===o||null===(e=o.instances)||void 0===e?void 0:e.filter((function(e){return e.name}))}),[o]);return(0,A.jsx)(T.Z,{afterWidth:I.k1,beforeWidth:I.k1,breadcrumbs:[{bold:!0,label:function(){return"Manage (".concat(r,")")}}],navigationItems:[],subheaderChildren:(0,A.jsx)(_,{fetchInstances:c,instanceType:r}),title:"Manage",uuid:"Manage/index",children:(0,A.jsx)(b.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===s||void 0===s?void 0:s.map((function(e){var n=e.ip,t=e.name,i=e.status,o=e.type,a="http://".concat(n);return"ecs"===r&&(a="http://".concat(n,":6789")),[(0,A.jsx)(u.Z,{borderRadius:D.D7,danger:"STOPPED"===i,default:"PROVISIONING"===i,notClickable:!0,padding:"6px",primary:"RUNNING"===i,warning:"PENDING"===i,children:(0,R.vg)(i)}),(0,A.jsx)(x.ZP,{children:t}),(0,A.jsx)(x.ZP,{children:(0,R.vg)(o)}),(0,A.jsx)(x.ZP,{children:n}),(0,A.jsx)(u.Z,{iconOnly:!0,onClick:function(){return window.open(a)},children:(0,A.jsx)(O.M0,{size:2*E.iI})}),(0,A.jsx)(H,{fetchInstances:c,instance:e,instanceType:r})]}))})})}M.getInitialProps=(0,r.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var L=(0,C.Z)(M)},13157:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage",function(){return t(48438)}])}},function(e){e.O(0,[3850,5716,8789,2344,4506,6166,8180,6195,9774,2888,179],(function(){return n=13157,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[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 ")}))},60547:function(e,n,t){"use strict";t.d(n,{Z:function(){return P}});var r=t(82394),i=t(21831),l=t(82684),c=t(47999),a=t(1210),s=t(34744),u=t(28358),o=t(67971),d=t(87372),p=t(86673),f=t(82531),b=t(9518),h=t(23831),m=t(73942),v=t(49125),j=b.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],m.n_,3*v.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||h.Z.shadow).small,";\n ")}),(function(e){return e.background&&"\n background: ".concat(e.background,";\n ")}),(function(e){return e.backgroundImage&&'\n background-image: url("'.concat(e.backgroundImage,'");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n ')})),g=t(3055),x=t(95354),Z=t(24141),y=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 k(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 P=function(e){var n=e.after,t=e.afterHidden,r=e.afterWidth,b=e.before,h=e.beforeWidth,m=e.breadcrumbs,O=e.buildSidekick,P=e.children,_=e.errors,I=e.headline,w=e.pageName,S=e.pipeline,D=e.setErrors,C=e.subheader,E=e.subheaderBackground,N=e.subheaderBackgroundImage,T=e.subheaderButton,M=e.subheaderText,L=e.title,F=e.uuid,U=(0,Z.i)().height,A=S.uuid,R=f.ZP.pipelines.detail(A,{includes_outputs:!1},{revalidateOnFocus:!1}).data,H=null===R||void 0===R?void 0:R.pipeline,B=(0,l.useMemo)((function(){return n||(O?O({height:U,heightOffset:g.Mz,pipeline:H}):null)}),[n,O,U,H]),V=r||(B?50*v.iI:null),z=(0,l.useMemo)((function(){var e=[];return H&&(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),m?(e.push({label:function(){return H.uuid},linkProps:{as:"/pipelines/".concat(A,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,i.Z)(m)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return H.name}})),e}),[m,H,A]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(a.Z,{after:B,afterHidden:t,afterWidth:V,before:b,beforeWidth:h,breadcrumbs:z,navigationItems:(0,x.H)(w,H),subheaderChildren:"undefined"!==typeof C&&C,title:H?L?L(H):H.name:null,uuid:F,children:[(T||M)&&(0,y.jsx)(p.Z,{mb:v.Mq,mt:v.cd,mx:v.cd,children:(0,y.jsx)(j,{background:E,backgroundImage:N,children:(0,y.jsxs)(o.Z,{alignItems:"center",children:[T,M&&(0,y.jsx)(p.Z,{ml:3}),M]})})}),I&&(0,y.jsx)(p.Z,{p:v.cd,children:(0,y.jsxs)(p.Z,{mt:v.cd,px:v.cd,children:[(0,y.jsx)(d.Z,{level:5,children:I}),(0,y.jsx)(s.Z,{light:!0,mt:v.cd,short:!0})]})}),P]}),_&&(0,y.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,y.jsx)(u.Z,k(k({},_),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}},56681:function(e,n,t){"use strict";t.d(n,{G:function(){return x},Z:function(){return Z}});var r=t(75582),i=t(82394),l=t(26304),c=t(32316),a=t(22673),s=t(86532),u=t(86673),o=t(19711),d=t(58180),p=t(49125),f=t(19395),b=t(28598),h=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function m(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 v(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?m(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var j={uuid:"Run details"},g={uuid:"Dependency tree"},x=[g,j];function Z(e){var n=e.height,t=e.heightOffset,i=e.pipeline,m=e.selectedRun,Z=e.selectedTab,y=e.setSelectedTab,O=v({},(0,l.Z)(e,h));m?O.blockStatus=(0,f.IJ)(null===m||void 0===m?void 0:m.block_runs):O.noStatus=!0;var k=(null===m||void 0===m?void 0:m.variables)||{};null!==m&&void 0!==m&&m.event_variables&&(k.event=m.event_variables);var P=[];k&&JSON.stringify(k,null,2).split("\n").forEach((function(e){P.push(" ".concat(e))}));var _=m&&[["Run ID",null===m||void 0===m?void 0:m.id],["Variables",(0,b.jsx)(a.Z,{language:"json",small:!0,source:P.join("\n")})]],I=m&&(0,b.jsx)(u.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:_.map((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];return[(0,b.jsx)(o.ZP,{monospace:!0,muted:!0,children:t}),(0,b.jsx)(o.ZP,{monospace:!0,textOverflow:!0,children:i})]})),uuid:"LogDetail"})}),w=Z&&y;return(0,b.jsxs)(b.Fragment,{children:[w&&(0,b.jsx)(u.Z,{py:p.cd,children:(0,b.jsx)(c.Z,{onClickTab:y,selectedTabUUID:null===Z||void 0===Z?void 0:Z.uuid,tabs:x})}),(!w||g.uuid===(null===Z||void 0===Z?void 0:Z.uuid))&&(0,b.jsx)(s.Z,v(v({},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 m},e7:function(){return v},v0:function(){return p},wx:function(){return h}});var r=t(75582),i=t(82394),l=t(43313),c=t(93348),a=t(1286),s=t(90211),u=t(84779);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 d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){(0,i.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}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],o=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,u.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[o]=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),u=c.length,o=[];o.push({name:"Column count",successDirection:l.oH.column_count,value:(0,s.x6)(u)}),i.forEach((function(e){if(l.Zu.includes(e)){var n=l.CC[e],t=r[e],i=l.OD[e];o.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 o.push({name:"Categorical Features",rate:p/u,value:(0,s.x6)(p)},{name:"Numerical Features",rate:b/u,value:(0,s.x6)(b)},{name:"Datetime Features",rate:f/u,value:(0,s.x6)(f)}),o}function b(e){return"string"===typeof e?e:JSON.stringify(e)}function h(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 m(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 v(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.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),u=t(18025),o=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,h=e.topPosition;return(0,p.jsxs)(u.J,{absolute:!0,topPosition:h,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*o.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*o.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),u=t(23831),o=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,h=e.wrapLines,m=(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:(m.background||u.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:o.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,paddingBottom:2*d.iI,paddingTop:2*d.iI,maxWidth:t},lineNumberStyle:{color:(m.content||u.Z.content).muted},language:n,showLineNumbers:i,style:s._4,useInlineStyles:!0,wrapLines:h,children:r})}}})}},32316:function(e,n,t){"use strict";t.d(n,{Z:function(){return h}});var r=t(82684),i=t(60328),l=t(67971),c=t(882),a=t(86673),s=t(99994),u=t(9518),o=t(49125),d=t(37391),p=u.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],o.cd*o.iI,o.cd*o.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 h=function(e){var n=e.allowScroll,t=e.contained,u=e.noPadding,d=e.onClickTab,h=e.selectedTabUUID,m=e.small,v=e.tabs,j=(0,r.useMemo)((function(){var e=v.length,n=[];return v.forEach((function(t,r){var u=t.Icon,p=t.IconSelected,v=t.label,j=t.uuid,g=j===h,x=g&&p||u,Z=v?v():j,y=(0,b.jsxs)(l.Z,{alignItems:"center",children:[x&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(x,{default:!g,size:2*o.iI}),(0,b.jsx)(a.Z,{mr:1})]}),Z]});r>=1&&e>=2&&n.push((0,b.jsx)("div",{style:{marginLeft:1.5*o.iI}},"spacing-".concat(j))),g?n.push((0,b.jsx)(c.Z,{backgroundGradient:s.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:m,onClick:function(e){(0,f.j)(e),d(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:m,children:y},j)):n.push((0,b.jsx)("div",{style:{padding:4},children:(0,b.jsx)(i.Z,{borderLess:!0,compact:m,default:!0,onClick:function(e){(0,f.j)(e),d(t)},outline:!0,small:m,children:y})},"button-tab-".concat(j)))})),n}),[d,h,m,v]),g=(0,b.jsx)(l.Z,{alignItems:"center",children:j});return t?g:(0,b.jsx)(p,{allowScroll:n,noPadding:u,children:g})}},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),u=t(83455),o=t(34376),d=t(43526),p=t(60328),f=t(34744),b=t(67971),h=t(87372),m=t(51099),v=t(60547),j=t(97496),g=t(47409),x=t(55378),Z=t(86673),y=t(58180),O=t(19711),k=t(82531),P=t(56681),_=t(10503),I=t(2850),w=t(49125),S=t(59920),D=t(90211),C=t(58122),E=t(19395),N=t(33766),T=t(7715),M=t(9736),L=t(96510),F=t(66653),U=t(59e3),A=t(28598);function R(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function H(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?R(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):R(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var B=function(e){var n=e.backfill,t=e.fetchBackfill,i=e.pipeline,l=e.variables,c=(0,M.Ct)(),a=(0,o.useRouter)(),R=n||{},B=R.block_uuid,V=R.end_datetime,z=R.id,W=R.interval_type,Y=R.interval_units,J=R.name,q=R.pipeline_run_dates,G=R.start_datetime,K=R.status,X=R.total_run_count,Q=R.variables,$=void 0===Q?{}:Q,ee=i.uuid,ne=(0,U.iV)(),te=(0,s.useState)(null),re=te[0],ie=te[1],le={_limit:40,_offset:40*(null!==ne&&void 0!==ne&&ne.page?ne.page:0)};null!==ne&&void 0!==ne&&ne.status&&(le.status=ne.status);var ce=k.ZP.pipeline_runs.list(H(H({},le),{},{backfill_id:z,order_by:["id DESC"]}),{refreshInterval:3e3,revalidateOnFocus:!0},{pauseFetch:!z}),ae=ce.data,se=ce.mutate,ue=!(G&&V&&W&&Y),oe=!K,de=(0,s.useMemo)((function(){return(oe?q:null===ae||void 0===ae?void 0:ae.pipeline_runs)||[]}),[ae,q,oe]),pe=(0,s.useMemo)((function(){var e;return(null===ae||void 0===ae||null===(e=ae.metadata)||void 0===e?void 0:e.count)||[]}),[ae]),fe=(0,s.useState)(null),be=fe[0],he=fe[1],me=(0,s.useMemo)((function(){var e=null!==ne&&void 0!==ne&&ne.page?ne.page:0;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(j.Z,{disableRowSelect:oe,emptyMessage:null!==ne&&void 0!==ne&&ne.status?"No runs available":'No runs available. Please complete backfill configuration by clicking "Edit backfill" above.',fetchPipelineRuns:se,onClickRow:function(e){return he((function(n){var t=de[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:de,selectedRun:be}),(0,A.jsx)(Z.Z,{p:2,children:(0,A.jsx)(m.Z,{page:Number(e),maxPages:9,onUpdate:function(e){var n=Number(e),t=H(H({},ne),{},{page:n>=0?n:0});a.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(ee,"/triggers/").concat(z,"?").concat((0,U.uM)(t)))},totalPages:Math.ceil(pe/40)})})]})}),[se,i,de,be]),ve=(0,s.useState)(P.G[0]),je=ve[0],ge=ve[1],xe=(0,u.Db)(k.ZP.backfills.useUpdate(z),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){t(),se()},onErrorCallback:function(e,n){return ie({errors:n,response:e})}})}}),Ze=(0,r.Z)(xe,2),ye=Ze[0],Oe=Ze[1].isLoading,ke=(0,s.useMemo)((function(){return!!K&&(d.rn.CANCELLED!==K&&d.rn.FAILED!==K)}),[K]),Pe=(0,s.useMemo)((function(){return K&&d.rn.CANCELLED!==K&&d.rn.FAILED!==K&&d.rn.INITIAL!==K&&d.rn.RUNNING!==K}),[K]),_e=(0,s.useMemo)((function(){var e={default:!0,size:1.5*w.iI},n=[[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.VW,H({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Backfill type"})]},"backfill_type_label"),(0,A.jsx)(O.ZP,{monospace:!0,children:B?d._7:d.VV},"backfill_type")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.rs,H({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Status"})]},"backfill_status_label"),(0,A.jsx)(O.ZP,{danger:d.rn.CANCELLED===K||d.rn.FAILED==K,default:d.rn.INITIAL===K,monospace:!0,muted:!K,success:d.rn.RUNNING===K||d.rn.COMPLETED===K,children:K||"inactive"},"backfill_status")]];return B||n.push.apply(n,[[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.aw,H({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Start date and time"})]},"backfill_start_date_label"),(0,A.jsx)(O.ZP,{monospace:!0,children:(0,E.Vx)(G)},"backfill_start_date")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.aw,H({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"End date and time"})]},"backfill_end_date_label"),(0,A.jsx)(O.ZP,{monospace:!0,children:(0,E.Vx)(V)},"backfill_end_date")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.Pf,H({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Interval type"})]},"interval_type_label"),(0,A.jsx)(O.ZP,{monospace:!0,children:W&&(0,D.kC)(W)},"interval_type")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.Pf,H({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Interval units"})]},"interval_units_label"),(0,A.jsx)(O.ZP,{monospace:!0,children:Y},"interval_units")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.qZ,H({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Total runs"})]},"total_runs_label"),(0,A.jsx)(O.ZP,{monospace:!0,children:X},"total_runs")]]),(0,A.jsx)(y.Z,{columnFlex:[null,1],rows:n})}),[B,V,W,Y,ke,G,K]),Ie=(0,s.useMemo)((function(){return $||{}}),[$]),we=(0,s.useMemo)((function(){var e,n=[];return(0,T.Qr)(Ie)?n=(0,C.wx)(l,(function(e){return"global"===e.uuid})):Object.entries(Ie).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,A.jsx)(y.Z,{columnFlex:[null,1],rows:n.map((function(e){var n=e.uuid,t=e.value;return[(0,A.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:n},"settings_variable_label_".concat(n)),(0,A.jsx)(O.ZP,{monospace:!0,small:!0,children:t},"settings_variable_".concat(n))]}))}):null}),[Ie,l]);return(0,A.jsx)(A.Fragment,{children:(0,A.jsxs)(v.Z,{afterHidden:!be,before:(0,A.jsxs)(I.M,{children:[(0,A.jsxs)(Z.Z,{mb:w.HN,pt:w.cd,px:w.cd,children:[(0,A.jsx)(Z.Z,{mb:w.cd,children:(0,A.jsx)(_.yg,{size:5*w.iI})}),(0,A.jsx)(h.Z,{children:J})]}),(0,A.jsx)(Z.Z,{px:w.cd,children:(0,A.jsx)(h.Z,{level:5,children:"Settings"})}),(0,A.jsx)(f.Z,{light:!0,mt:1,short:!0}),_e,we&&(0,A.jsxs)(Z.Z,{my:w.HN,children:[(0,A.jsx)(Z.Z,{px:w.cd,children:(0,A.jsx)(h.Z,{level:5,children:"Runtime variables"})}),(0,A.jsx)(f.Z,{light:!0,mt:1,short:!0}),we]})]}),beforeWidth:34*w.iI,breadcrumbs:[{label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(ee,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{label:function(){return J},linkProps:{as:"/pipelines/".concat(ee,"/backfills/").concat(z),href:"/pipelines/[pipeline]/backfills/[...slug]"}}],buildSidekick:function(e){return(0,P.Z)(H(H({},e),{},{selectedRun:be,selectedTab:je,setSelectedTab:ge}))},errors:re,pageName:S.M.BACKFILLS,pipeline:i,setErrors:ie,subheader:(0,A.jsxs)(b.Z,{alignItems:"center",children:[!Pe&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(p.Z,{beforeIcon:ke?(0,A.jsx)(_.dz,{size:2*w.iI}):(0,A.jsx)(_.Py,{inverted:!(d.rn.CANCELLED===K||d.rn.FAILED===K),size:2*w.iI}),danger:ke,disabled:ue,loading:Oe,onClick:function(e){(0,F.j)(e),ye({backfill:{status:ke?d.rn.CANCELLED:d.rn.INITIAL}})},outline:!0,success:!ke&&!(d.rn.CANCELLED===K||d.rn.FAILED===K)&&!ue,children:ke?"Cancel backfill":d.rn.CANCELLED===K||d.rn.FAILED===K?"Retry backfill":"Start backfill"}),(0,A.jsx)(Z.Z,{mr:w.cd})]}),!c&&(0,A.jsxs)(A.Fragment,{children:[K===g.V.COMPLETED?(0,A.jsx)(O.ZP,{bold:!0,default:!0,large:!0,children:"Filter runs by status:"}):(0,A.jsx)(p.Z,{linkProps:{as:"/pipelines/".concat(ee,"/backfills/").concat(z,"/edit"),href:"/pipelines/[pipeline]/backfills/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Edit backfill"}),(0,A.jsx)(Z.Z,{mr:w.cd})]}),!oe&&(0,A.jsxs)(x.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?a.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(ee,"/backfills/").concat(z)):(0,N.u7)({page:0,status:e.target.value})},paddingRight:4*w.iI,placeholder:"Select run status",value:(null===ne||void 0===ne?void 0:ne.status)||"all",children:[(0,A.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(g.V).map((function(e){return(0,A.jsx)("option",{value:e,children:g.D[e]},e)}))]})]}),title:function(){return J},uuid:"backfill/detail",children:[(0,A.jsx)(Z.Z,{mt:w.cd,px:w.cd,children:(0,A.jsx)(h.Z,{level:5,children:"Runs for this backfill"})}),(0,A.jsx)(f.Z,{light:!0,mt:w.cd,short:!0}),me]})})},V=t(2713),z=t(47999),W=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}],q=t(18025);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,o.useRouter)()),c=(0,s.useState)(),a=c[0],m=c[1],j=a||{},g=j.block_uuid,P=j.id,I=j.interval_type,N=j.interval_units,M=(j.end_datetime,j.start_datetime,j.name),F=i.uuid,U=(0,s.useState)(null),R=U[0],H=U[1],B=(0,s.useState)({}),G=B[0],X=(B[1],(0,s.useState)(g?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],ue=(0,s.useState)(null),oe=ue[0],de=ue[1],pe=(0,s.useState)({hour:"00",minute:"00"}),fe=pe[0],be=pe[1],he=(0,s.useState)({hour:"00",minute:"00"}),me=he[0],ve=he[1];(0,s.useEffect)((function(){if(n){m(n);var e=n.start_datetime;if(e){var t=e.split(" ")[1];de((0,E.eI)(e)),ve({hour:t.substring(0,2),minute:t.substring(3,5)})}var r=n.end_datetime;if(r){var i=r.split(" ")[1];se((0,E.eI)(r)),be({hour:i.substring(0,2),minute:i.substring(3,5)})}}}),[n]);var je=(0,s.useMemo)((function(){var e=[[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.KJ,{default:!0,size:1.5*w.iI}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Backfill name"})]},"model_name_detail"),(0,A.jsx)(Y.Z,{monospace:!0,onChange:function(e){e.preventDefault(),m((function(n){return K(K({},n),{},{name:e.target.value})}))},placeholder:"Name this backfill",value:M},"model_name_input_detail")]];return d.VV===Q&&e.push.apply(e,[[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.aw,{default:!0,size:1.5*w.iI}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Start date and time"})]},"start_time"),(0,A.jsxs)("div",{style:{minHeight:"".concat(5.75*w.iI,"px")},children:[!ne&&(0,A.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:oe?"".concat(oe.toISOString().split("T")[0]," ").concat(null===me||void 0===me?void 0:me.hour,":").concat(null===me||void 0===me?void 0:me.minute):""}),(0,A.jsx)("div",{style:{width:"400px"},children:(0,A.jsx)(z.Z,{disableEscape:!0,onClickOutside:function(){return te(!1)},open:ne,style:{position:"relative"},children:(0,A.jsx)(V.Z,{selectedDate:oe,selectedTime:me,setSelectedDate:de,setSelectedTime:ve,topPosition:!0})})})]},"start_time_input")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.aw,{default:!0,size:1.5*w.iI}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"End date and time"})]},"end_time"),(0,A.jsxs)("div",{style:{minHeight:"".concat(5.75*w.iI,"px")},children:[!ie&&(0,A.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,A.jsx)("div",{style:{width:"400px"},children:(0,A.jsx)(z.Z,{disableEscape:!0,onClickOutside:function(){return le(!1)},open:ie,style:{position:"relative"},children:(0,A.jsx)(V.Z,{selectedDate:ae,selectedTime:fe,setSelectedDate:se,setSelectedTime:be,topPosition:!0})})})]},"end_time_input")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.Pf,{default:!0,size:1.5*w.iI}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Interval type"})]},"interval_type"),(0,A.jsxs)(x.Z,{monospace:!0,onChange:function(e){e.preventDefault(),m((function(n){return K(K({},n),{},{interval_type:e.target.value})}))},placeholder:"Time spacing between each backfill",value:I,children:[!I&&(0,A.jsx)("option",{value:""}),d.IB.map((function(e){return(0,A.jsx)("option",{value:e,children:(0,D.kC)(e)},e)}))]},"interval_type_input")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.Pf,{default:!0,size:1.5*w.iI}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Interval units"})]},"interval_units"),(0,A.jsx)(Y.Z,{disabled:!I,monospace:!0,onChange:function(e){e.preventDefault(),m((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:N},"interval_unit_input")]]),(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Z.Z,{mb:2,px:w.cd,children:(0,A.jsx)(h.Z,{children:"Settings"})}),(0,A.jsx)(f.Z,{light:!0,short:!0}),(0,A.jsx)(y.Z,{columnFlex:[null,1],rows:e})]})}),[ae,oe,I,N,M,Q,ne,ie,fe,me]),ge=(0,u.Db)(k.ZP.backfills.useUpdate(P),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){t(),l.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(F,"/backfills/").concat(P))},onErrorCallback:function(e,n){return H({errors:n,response:e})}})}}),xe=(0,r.Z)(ge,2),Ze=xe[0],ye=xe[1].isLoading,Oe=(0,s.useCallback)((function(){var e=K(K({},(0,T.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=N,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=oe&&null!==me&&void 0!==me&&me.hour&&null!==me&&void 0!==me&&me.minute?"".concat(oe.toISOString().split("T")[0]," ").concat(null===me||void 0===me?void 0:me.hour,":").concat(null===me||void 0===me?void 0:me.minute,":00"):null),Ze({backfill:e})}),[ae,oe,I,N,a,G,Q,fe,me]),ke=(0,s.useMemo)((function(){return d._7===Q?!g:!(ae&&oe&&I&&N)}),[g,ae,oe,I,N,Q,fe,me]);return(0,A.jsxs)(v.Z,{breadcrumbs:[{label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(F,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{label:function(){return null===a||void 0===a?void 0:a.name},linkProps:{as:"/pipelines/".concat(F,"/backfills/").concat(P),href:"/pipelines/[pipeline]/backfills/[...slug]"}}],errors:R,pageName:S.M.BACKFILLS,pipeline:i,setErrors:H,subheader:(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(p.Z,{disabled:ke,loading:ye,onClick:Oe,outline:!0,primary:!0,children:"Save changes"}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(p.Z,{linkProps:{href:"/pipelines/[pipeline]/backfills/[...slug]",as:"/pipelines/".concat(F,"/backfills/").concat(P)},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,A.jsxs)(Z.Z,{p:w.cd,children:[(0,A.jsxs)(Z.Z,{mb:2,children:[(0,A.jsx)(h.Z,{children:"Backfill type"}),(0,A.jsx)(O.ZP,{muted:!0,children:"How would you like this pipeline to be backfilled?"})]}),(0,A.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,A.jsx)(p.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){$(r)},children:(0,A.jsx)(q.U,{selected:i,children:(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(W.Z,{children:(0,A.jsx)("input",{checked:i,type:"radio"})}),(0,A.jsx)(Z.Z,{mr:w.cd}),(0,A.jsxs)(W.Z,{alignItems:"flex-start",flexDirection:"column",children:[(0,A.jsx)(h.Z,{bold:!0,default:!i&&!l,level:5,muted:!i&&l,children:n()}),(0,A.jsx)(O.ZP,{default:!i&&!l,leftAligned:!0,muted:l,children:t()})]})]})})},r)}))})]}),(0,A.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=k.ZP.variables.pipelines.list(t).data,l=(0,s.useMemo)((function(){return null===i||void 0===i?void 0:i.variables}),[i]),c=k.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]),u=k.ZP.backfills.detail(n,{include_preview_runs:!0}),o=u.data,d=u.mutate,p=(0,s.useMemo)((function(){return null===o||void 0===o?void 0:o.backfill}),[o]);return"edit"===r?(0,A.jsx)(X,{backfill:p,fetchBackfill:d,pipeline:a,variables:l}):(0,A.jsx)(B,{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,u;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],u=c[1],e.abrupt("return",{backfillId:s,pipelineUUID:i,subpath:u});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,5716,5896,4804,1774,5872,2524,4495,2344,4506,6166,8180,6214,6532,1286,4741,9774,2888,179],(function(){return n=53664,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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 ")}))},60547:function(e,n,t){"use strict";t.d(n,{Z:function(){return P}});var r=t(82394),i=t(21831),l=t(82684),c=t(47999),a=t(1210),s=t(34744),u=t(49894),o=t(67971),d=t(87372),p=t(86673),f=t(82531),b=t(9518),h=t(23831),m=t(73942),v=t(49125),j=b.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],m.n_,3*v.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||h.Z.shadow).small,";\n ")}),(function(e){return e.background&&"\n background: ".concat(e.background,";\n ")}),(function(e){return e.backgroundImage&&'\n background-image: url("'.concat(e.backgroundImage,'");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n ')})),g=t(3055),x=t(95354),Z=t(24141),y=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 k(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 P=function(e){var n=e.after,t=e.afterHidden,r=e.afterWidth,b=e.before,h=e.beforeWidth,m=e.breadcrumbs,O=e.buildSidekick,P=e.children,_=e.errors,I=e.headline,w=e.pageName,S=e.pipeline,D=e.setErrors,C=e.subheader,E=e.subheaderBackground,N=e.subheaderBackgroundImage,T=e.subheaderButton,M=e.subheaderText,L=e.title,F=e.uuid,U=(0,Z.i)().height,A=S.uuid,R=f.ZP.pipelines.detail(A,{includes_outputs:!1},{revalidateOnFocus:!1}).data,H=null===R||void 0===R?void 0:R.pipeline,B=(0,l.useMemo)((function(){return n||(O?O({height:U,heightOffset:g.Mz,pipeline:H}):null)}),[n,O,U,H]),V=r||(B?50*v.iI:null),z=(0,l.useMemo)((function(){var e=[];return H&&(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),m?(e.push({label:function(){return H.uuid},linkProps:{as:"/pipelines/".concat(A,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,i.Z)(m)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return H.name}})),e}),[m,H,A]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(a.Z,{after:B,afterHidden:t,afterWidth:V,before:b,beforeWidth:h,breadcrumbs:z,navigationItems:(0,x.H)(w,H),subheaderChildren:"undefined"!==typeof C&&C,title:H?L?L(H):H.name:null,uuid:F,children:[(T||M)&&(0,y.jsx)(p.Z,{mb:v.Mq,mt:v.cd,mx:v.cd,children:(0,y.jsx)(j,{background:E,backgroundImage:N,children:(0,y.jsxs)(o.Z,{alignItems:"center",children:[T,M&&(0,y.jsx)(p.Z,{ml:3}),M]})})}),I&&(0,y.jsx)(p.Z,{p:v.cd,children:(0,y.jsxs)(p.Z,{mt:v.cd,px:v.cd,children:[(0,y.jsx)(d.Z,{level:5,children:I}),(0,y.jsx)(s.Z,{light:!0,mt:v.cd,short:!0})]})}),P]}),_&&(0,y.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,y.jsx)(u.Z,k(k({},_),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}},56681:function(e,n,t){"use strict";t.d(n,{G:function(){return x},Z:function(){return Z}});var r=t(75582),i=t(82394),l=t(26304),c=t(32316),a=t(22673),s=t(86532),u=t(86673),o=t(19711),d=t(58180),p=t(49125),f=t(19395),b=t(28598),h=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function m(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 v(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?m(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var j={uuid:"Run details"},g={uuid:"Dependency tree"},x=[g,j];function Z(e){var n=e.height,t=e.heightOffset,i=e.pipeline,m=e.selectedRun,Z=e.selectedTab,y=e.setSelectedTab,O=v({},(0,l.Z)(e,h));m?O.blockStatus=(0,f.IJ)(null===m||void 0===m?void 0:m.block_runs):O.noStatus=!0;var k=(null===m||void 0===m?void 0:m.variables)||{};null!==m&&void 0!==m&&m.event_variables&&(k.event=m.event_variables);var P=[];k&&JSON.stringify(k,null,2).split("\n").forEach((function(e){P.push(" ".concat(e))}));var _=m&&[["Run ID",null===m||void 0===m?void 0:m.id],["Variables",(0,b.jsx)(a.Z,{language:"json",small:!0,source:P.join("\n")})]],I=m&&(0,b.jsx)(u.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:_.map((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];return[(0,b.jsx)(o.ZP,{monospace:!0,muted:!0,children:t}),(0,b.jsx)(o.ZP,{monospace:!0,textOverflow:!0,children:i})]})),uuid:"LogDetail"})}),w=Z&&y;return(0,b.jsxs)(b.Fragment,{children:[w&&(0,b.jsx)(u.Z,{py:p.cd,children:(0,b.jsx)(c.Z,{onClickTab:y,selectedTabUUID:null===Z||void 0===Z?void 0:Z.uuid,tabs:x})}),(!w||g.uuid===(null===Z||void 0===Z?void 0:Z.uuid))&&(0,b.jsx)(s.Z,v(v({},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 m},e7:function(){return v},v0:function(){return p},wx:function(){return h}});var r=t(75582),i=t(82394),l=t(43313),c=t(93348),a=t(1286),s=t(90211),u=t(84779);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 d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){(0,i.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}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],o=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,u.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[o]=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),u=c.length,o=[];o.push({name:"Column count",successDirection:l.oH.column_count,value:(0,s.x6)(u)}),i.forEach((function(e){if(l.Zu.includes(e)){var n=l.CC[e],t=r[e],i=l.OD[e];o.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 o.push({name:"Categorical Features",rate:p/u,value:(0,s.x6)(p)},{name:"Numerical Features",rate:b/u,value:(0,s.x6)(b)},{name:"Datetime Features",rate:f/u,value:(0,s.x6)(f)}),o}function b(e){return"string"===typeof e?e:JSON.stringify(e)}function h(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 m(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 v(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.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),u=t(18025),o=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,h=e.topPosition;return(0,p.jsxs)(u.J,{absolute:!0,topPosition:h,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*o.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*o.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),u=t(23831),o=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,h=e.wrapLines,m=(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:(m.background||u.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:o.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,paddingBottom:2*d.iI,paddingTop:2*d.iI,maxWidth:t},lineNumberStyle:{color:(m.content||u.Z.content).muted},language:n,showLineNumbers:i,style:s._4,useInlineStyles:!0,wrapLines:h,children:r})}}})}},32316:function(e,n,t){"use strict";t.d(n,{Z:function(){return h}});var r=t(82684),i=t(60328),l=t(67971),c=t(882),a=t(86673),s=t(99994),u=t(9518),o=t(49125),d=t(37391),p=u.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],o.cd*o.iI,o.cd*o.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 h=function(e){var n=e.allowScroll,t=e.contained,u=e.noPadding,d=e.onClickTab,h=e.selectedTabUUID,m=e.small,v=e.tabs,j=(0,r.useMemo)((function(){var e=v.length,n=[];return v.forEach((function(t,r){var u=t.Icon,p=t.IconSelected,v=t.label,j=t.uuid,g=j===h,x=g&&p||u,Z=v?v():j,y=(0,b.jsxs)(l.Z,{alignItems:"center",children:[x&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(x,{default:!g,size:2*o.iI}),(0,b.jsx)(a.Z,{mr:1})]}),Z]});r>=1&&e>=2&&n.push((0,b.jsx)("div",{style:{marginLeft:1.5*o.iI}},"spacing-".concat(j))),g?n.push((0,b.jsx)(c.Z,{backgroundGradient:s.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:m,onClick:function(e){(0,f.j)(e),d(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:m,children:y},j)):n.push((0,b.jsx)("div",{style:{padding:4},children:(0,b.jsx)(i.Z,{borderLess:!0,compact:m,default:!0,onClick:function(e){(0,f.j)(e),d(t)},outline:!0,small:m,children:y})},"button-tab-".concat(j)))})),n}),[d,h,m,v]),g=(0,b.jsx)(l.Z,{alignItems:"center",children:j});return t?g:(0,b.jsx)(p,{allowScroll:n,noPadding:u,children:g})}},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),u=t(83455),o=t(34376),d=t(43526),p=t(60328),f=t(34744),b=t(67971),h=t(87372),m=t(51099),v=t(60547),j=t(97496),g=t(47409),x=t(55378),Z=t(86673),y=t(58180),O=t(19711),k=t(82531),P=t(56681),_=t(10503),I=t(2850),w=t(49125),S=t(59920),D=t(90211),C=t(58122),E=t(19395),N=t(33766),T=t(7715),M=t(9736),L=t(96510),F=t(66653),U=t(59e3),A=t(28598);function R(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function H(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?R(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):R(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var B=function(e){var n=e.backfill,t=e.fetchBackfill,i=e.pipeline,l=e.variables,c=(0,M.Ct)(),a=(0,o.useRouter)(),R=n||{},B=R.block_uuid,V=R.end_datetime,z=R.id,W=R.interval_type,Y=R.interval_units,J=R.name,q=R.pipeline_run_dates,G=R.start_datetime,K=R.status,X=R.total_run_count,Q=R.variables,$=void 0===Q?{}:Q,ee=i.uuid,ne=(0,U.iV)(),te=(0,s.useState)(null),re=te[0],ie=te[1],le={_limit:40,_offset:40*(null!==ne&&void 0!==ne&&ne.page?ne.page:0)};null!==ne&&void 0!==ne&&ne.status&&(le.status=ne.status);var ce=k.ZP.pipeline_runs.list(H(H({},le),{},{backfill_id:z,order_by:["id DESC"]}),{refreshInterval:3e3,revalidateOnFocus:!0},{pauseFetch:!z}),ae=ce.data,se=ce.mutate,ue=!(G&&V&&W&&Y),oe=!K,de=(0,s.useMemo)((function(){return(oe?q:null===ae||void 0===ae?void 0:ae.pipeline_runs)||[]}),[ae,q,oe]),pe=(0,s.useMemo)((function(){var e;return(null===ae||void 0===ae||null===(e=ae.metadata)||void 0===e?void 0:e.count)||[]}),[ae]),fe=(0,s.useState)(null),be=fe[0],he=fe[1],me=(0,s.useMemo)((function(){var e=null!==ne&&void 0!==ne&&ne.page?ne.page:0;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(j.Z,{disableRowSelect:oe,emptyMessage:null!==ne&&void 0!==ne&&ne.status?"No runs available":'No runs available. Please complete backfill configuration by clicking "Edit backfill" above.',fetchPipelineRuns:se,onClickRow:function(e){return he((function(n){var t=de[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:de,selectedRun:be}),(0,A.jsx)(Z.Z,{p:2,children:(0,A.jsx)(m.Z,{page:Number(e),maxPages:9,onUpdate:function(e){var n=Number(e),t=H(H({},ne),{},{page:n>=0?n:0});a.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(ee,"/triggers/").concat(z,"?").concat((0,U.uM)(t)))},totalPages:Math.ceil(pe/40)})})]})}),[se,i,de,be]),ve=(0,s.useState)(P.G[0]),je=ve[0],ge=ve[1],xe=(0,u.Db)(k.ZP.backfills.useUpdate(z),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){t(),se()},onErrorCallback:function(e,n){return ie({errors:n,response:e})}})}}),Ze=(0,r.Z)(xe,2),ye=Ze[0],Oe=Ze[1].isLoading,ke=(0,s.useMemo)((function(){return!!K&&(d.rn.CANCELLED!==K&&d.rn.FAILED!==K)}),[K]),Pe=(0,s.useMemo)((function(){return K&&d.rn.CANCELLED!==K&&d.rn.FAILED!==K&&d.rn.INITIAL!==K&&d.rn.RUNNING!==K}),[K]),_e=(0,s.useMemo)((function(){var e={default:!0,size:1.5*w.iI},n=[[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.VW,H({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Backfill type"})]},"backfill_type_label"),(0,A.jsx)(O.ZP,{monospace:!0,children:B?d._7:d.VV},"backfill_type")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.rs,H({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Status"})]},"backfill_status_label"),(0,A.jsx)(O.ZP,{danger:d.rn.CANCELLED===K||d.rn.FAILED==K,default:d.rn.INITIAL===K,monospace:!0,muted:!K,success:d.rn.RUNNING===K||d.rn.COMPLETED===K,children:K||"inactive"},"backfill_status")]];return B||n.push.apply(n,[[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.aw,H({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Start date and time"})]},"backfill_start_date_label"),(0,A.jsx)(O.ZP,{monospace:!0,children:(0,E.Vx)(G)},"backfill_start_date")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.aw,H({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"End date and time"})]},"backfill_end_date_label"),(0,A.jsx)(O.ZP,{monospace:!0,children:(0,E.Vx)(V)},"backfill_end_date")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.Pf,H({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Interval type"})]},"interval_type_label"),(0,A.jsx)(O.ZP,{monospace:!0,children:W&&(0,D.kC)(W)},"interval_type")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.Pf,H({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Interval units"})]},"interval_units_label"),(0,A.jsx)(O.ZP,{monospace:!0,children:Y},"interval_units")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.qZ,H({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Total runs"})]},"total_runs_label"),(0,A.jsx)(O.ZP,{monospace:!0,children:X},"total_runs")]]),(0,A.jsx)(y.Z,{columnFlex:[null,1],rows:n})}),[B,V,W,Y,ke,G,K]),Ie=(0,s.useMemo)((function(){return $||{}}),[$]),we=(0,s.useMemo)((function(){var e,n=[];return(0,T.Qr)(Ie)?n=(0,C.wx)(l,(function(e){return"global"===e.uuid})):Object.entries(Ie).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,A.jsx)(y.Z,{columnFlex:[null,1],rows:n.map((function(e){var n=e.uuid,t=e.value;return[(0,A.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:n},"settings_variable_label_".concat(n)),(0,A.jsx)(O.ZP,{monospace:!0,small:!0,children:t},"settings_variable_".concat(n))]}))}):null}),[Ie,l]);return(0,A.jsx)(A.Fragment,{children:(0,A.jsxs)(v.Z,{afterHidden:!be,before:(0,A.jsxs)(I.M,{children:[(0,A.jsxs)(Z.Z,{mb:w.HN,pt:w.cd,px:w.cd,children:[(0,A.jsx)(Z.Z,{mb:w.cd,children:(0,A.jsx)(_.yg,{size:5*w.iI})}),(0,A.jsx)(h.Z,{children:J})]}),(0,A.jsx)(Z.Z,{px:w.cd,children:(0,A.jsx)(h.Z,{level:5,children:"Settings"})}),(0,A.jsx)(f.Z,{light:!0,mt:1,short:!0}),_e,we&&(0,A.jsxs)(Z.Z,{my:w.HN,children:[(0,A.jsx)(Z.Z,{px:w.cd,children:(0,A.jsx)(h.Z,{level:5,children:"Runtime variables"})}),(0,A.jsx)(f.Z,{light:!0,mt:1,short:!0}),we]})]}),beforeWidth:34*w.iI,breadcrumbs:[{label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(ee,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{label:function(){return J},linkProps:{as:"/pipelines/".concat(ee,"/backfills/").concat(z),href:"/pipelines/[pipeline]/backfills/[...slug]"}}],buildSidekick:function(e){return(0,P.Z)(H(H({},e),{},{selectedRun:be,selectedTab:je,setSelectedTab:ge}))},errors:re,pageName:S.M.BACKFILLS,pipeline:i,setErrors:ie,subheader:(0,A.jsxs)(b.Z,{alignItems:"center",children:[!Pe&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(p.Z,{beforeIcon:ke?(0,A.jsx)(_.dz,{size:2*w.iI}):(0,A.jsx)(_.Py,{inverted:!(d.rn.CANCELLED===K||d.rn.FAILED===K),size:2*w.iI}),danger:ke,disabled:ue,loading:Oe,onClick:function(e){(0,F.j)(e),ye({backfill:{status:ke?d.rn.CANCELLED:d.rn.INITIAL}})},outline:!0,success:!ke&&!(d.rn.CANCELLED===K||d.rn.FAILED===K)&&!ue,children:ke?"Cancel backfill":d.rn.CANCELLED===K||d.rn.FAILED===K?"Retry backfill":"Start backfill"}),(0,A.jsx)(Z.Z,{mr:w.cd})]}),!c&&(0,A.jsxs)(A.Fragment,{children:[K===g.V.COMPLETED?(0,A.jsx)(O.ZP,{bold:!0,default:!0,large:!0,children:"Filter runs by status:"}):(0,A.jsx)(p.Z,{linkProps:{as:"/pipelines/".concat(ee,"/backfills/").concat(z,"/edit"),href:"/pipelines/[pipeline]/backfills/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Edit backfill"}),(0,A.jsx)(Z.Z,{mr:w.cd})]}),!oe&&(0,A.jsxs)(x.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?a.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(ee,"/backfills/").concat(z)):(0,N.u7)({page:0,status:e.target.value})},paddingRight:4*w.iI,placeholder:"Select run status",value:(null===ne||void 0===ne?void 0:ne.status)||"all",children:[(0,A.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(g.V).map((function(e){return(0,A.jsx)("option",{value:e,children:g.D[e]},e)}))]})]}),title:function(){return J},uuid:"backfill/detail",children:[(0,A.jsx)(Z.Z,{mt:w.cd,px:w.cd,children:(0,A.jsx)(h.Z,{level:5,children:"Runs for this backfill"})}),(0,A.jsx)(f.Z,{light:!0,mt:w.cd,short:!0}),me]})})},V=t(2713),z=t(47999),W=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}],q=t(18025);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,o.useRouter)()),c=(0,s.useState)(),a=c[0],m=c[1],j=a||{},g=j.block_uuid,P=j.id,I=j.interval_type,N=j.interval_units,M=(j.end_datetime,j.start_datetime,j.name),F=i.uuid,U=(0,s.useState)(null),R=U[0],H=U[1],B=(0,s.useState)({}),G=B[0],X=(B[1],(0,s.useState)(g?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],ue=(0,s.useState)(null),oe=ue[0],de=ue[1],pe=(0,s.useState)({hour:"00",minute:"00"}),fe=pe[0],be=pe[1],he=(0,s.useState)({hour:"00",minute:"00"}),me=he[0],ve=he[1];(0,s.useEffect)((function(){if(n){m(n);var e=n.start_datetime;if(e){var t=e.split(" ")[1];de((0,E.eI)(e)),ve({hour:t.substring(0,2),minute:t.substring(3,5)})}var r=n.end_datetime;if(r){var i=r.split(" ")[1];se((0,E.eI)(r)),be({hour:i.substring(0,2),minute:i.substring(3,5)})}}}),[n]);var je=(0,s.useMemo)((function(){var e=[[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.KJ,{default:!0,size:1.5*w.iI}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Backfill name"})]},"model_name_detail"),(0,A.jsx)(Y.Z,{monospace:!0,onChange:function(e){e.preventDefault(),m((function(n){return K(K({},n),{},{name:e.target.value})}))},placeholder:"Name this backfill",value:M},"model_name_input_detail")]];return d.VV===Q&&e.push.apply(e,[[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.aw,{default:!0,size:1.5*w.iI}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Start date and time"})]},"start_time"),(0,A.jsxs)("div",{style:{minHeight:"".concat(5.75*w.iI,"px")},children:[!ne&&(0,A.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:oe?"".concat(oe.toISOString().split("T")[0]," ").concat(null===me||void 0===me?void 0:me.hour,":").concat(null===me||void 0===me?void 0:me.minute):""}),(0,A.jsx)("div",{style:{width:"400px"},children:(0,A.jsx)(z.Z,{disableEscape:!0,onClickOutside:function(){return te(!1)},open:ne,style:{position:"relative"},children:(0,A.jsx)(V.Z,{selectedDate:oe,selectedTime:me,setSelectedDate:de,setSelectedTime:ve,topPosition:!0})})})]},"start_time_input")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.aw,{default:!0,size:1.5*w.iI}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"End date and time"})]},"end_time"),(0,A.jsxs)("div",{style:{minHeight:"".concat(5.75*w.iI,"px")},children:[!ie&&(0,A.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,A.jsx)("div",{style:{width:"400px"},children:(0,A.jsx)(z.Z,{disableEscape:!0,onClickOutside:function(){return le(!1)},open:ie,style:{position:"relative"},children:(0,A.jsx)(V.Z,{selectedDate:ae,selectedTime:fe,setSelectedDate:se,setSelectedTime:be,topPosition:!0})})})]},"end_time_input")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.Pf,{default:!0,size:1.5*w.iI}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Interval type"})]},"interval_type"),(0,A.jsxs)(x.Z,{monospace:!0,onChange:function(e){e.preventDefault(),m((function(n){return K(K({},n),{},{interval_type:e.target.value})}))},placeholder:"Time spacing between each backfill",value:I,children:[!I&&(0,A.jsx)("option",{value:""}),d.IB.map((function(e){return(0,A.jsx)("option",{value:e,children:(0,D.kC)(e)},e)}))]},"interval_type_input")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.Pf,{default:!0,size:1.5*w.iI}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Interval units"})]},"interval_units"),(0,A.jsx)(Y.Z,{disabled:!I,monospace:!0,onChange:function(e){e.preventDefault(),m((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:N},"interval_unit_input")]]),(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Z.Z,{mb:2,px:w.cd,children:(0,A.jsx)(h.Z,{children:"Settings"})}),(0,A.jsx)(f.Z,{light:!0,short:!0}),(0,A.jsx)(y.Z,{columnFlex:[null,1],rows:e})]})}),[ae,oe,I,N,M,Q,ne,ie,fe,me]),ge=(0,u.Db)(k.ZP.backfills.useUpdate(P),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){t(),l.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(F,"/backfills/").concat(P))},onErrorCallback:function(e,n){return H({errors:n,response:e})}})}}),xe=(0,r.Z)(ge,2),Ze=xe[0],ye=xe[1].isLoading,Oe=(0,s.useCallback)((function(){var e=K(K({},(0,T.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=N,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=oe&&null!==me&&void 0!==me&&me.hour&&null!==me&&void 0!==me&&me.minute?"".concat(oe.toISOString().split("T")[0]," ").concat(null===me||void 0===me?void 0:me.hour,":").concat(null===me||void 0===me?void 0:me.minute,":00"):null),Ze({backfill:e})}),[ae,oe,I,N,a,G,Q,fe,me]),ke=(0,s.useMemo)((function(){return d._7===Q?!g:!(ae&&oe&&I&&N)}),[g,ae,oe,I,N,Q,fe,me]);return(0,A.jsxs)(v.Z,{breadcrumbs:[{label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(F,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{label:function(){return null===a||void 0===a?void 0:a.name},linkProps:{as:"/pipelines/".concat(F,"/backfills/").concat(P),href:"/pipelines/[pipeline]/backfills/[...slug]"}}],errors:R,pageName:S.M.BACKFILLS,pipeline:i,setErrors:H,subheader:(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(p.Z,{disabled:ke,loading:ye,onClick:Oe,outline:!0,primary:!0,children:"Save changes"}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(p.Z,{linkProps:{href:"/pipelines/[pipeline]/backfills/[...slug]",as:"/pipelines/".concat(F,"/backfills/").concat(P)},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,A.jsxs)(Z.Z,{p:w.cd,children:[(0,A.jsxs)(Z.Z,{mb:2,children:[(0,A.jsx)(h.Z,{children:"Backfill type"}),(0,A.jsx)(O.ZP,{muted:!0,children:"How would you like this pipeline to be backfilled?"})]}),(0,A.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,A.jsx)(p.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){$(r)},children:(0,A.jsx)(q.U,{selected:i,children:(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(W.Z,{children:(0,A.jsx)("input",{checked:i,type:"radio"})}),(0,A.jsx)(Z.Z,{mr:w.cd}),(0,A.jsxs)(W.Z,{alignItems:"flex-start",flexDirection:"column",children:[(0,A.jsx)(h.Z,{bold:!0,default:!i&&!l,level:5,muted:!i&&l,children:n()}),(0,A.jsx)(O.ZP,{default:!i&&!l,leftAligned:!0,muted:l,children:t()})]})]})})},r)}))})]}),(0,A.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=k.ZP.variables.pipelines.list(t).data,l=(0,s.useMemo)((function(){return null===i||void 0===i?void 0:i.variables}),[i]),c=k.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]),u=k.ZP.backfills.detail(n,{include_preview_runs:!0}),o=u.data,d=u.mutate,p=(0,s.useMemo)((function(){return null===o||void 0===o?void 0:o.backfill}),[o]);return"edit"===r?(0,A.jsx)(X,{backfill:p,fetchBackfill:d,pipeline:a,variables:l}):(0,A.jsx)(B,{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,u;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],u=c[1],e.abrupt("return",{backfillId:s,pipelineUUID:i,subpath:u});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,5716,5896,4804,1774,5872,2524,4495,2344,4506,6166,8180,6214,6532,1286,4741,9774,2888,179],(function(){return n=53664,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(82394),i=t(21831),u=t(82684),o=t(47999),c=t(28358),l=t(93461),a=t(57384),s=t(12344),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var b=u.forwardRef(p),h=t(32063),v=t(15270),m=t(82531),O=t(66166),g=t(3055),j=t(49125),k=t(91427),y=t(24141);function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,x=e.afterWidthOverride,w=e.before,Z=e.beforeWidth,E=e.breadcrumbs,_=e.children,C=e.errors,D=e.headerMenuItems,I=e.navigationItems,S=e.setErrors,N=e.subheaderChildren,M=e.title,A=e.uuid,R=(0,y.i)().width,H="dashboard_after_width_".concat(A),T="dashboard_before_width_".concat(A),L=(0,u.useRef)(null),U=(0,u.useState)(x?p:(0,k.U2)(H,p)),V=U[0],B=U[1],W=(0,u.useState)(!1),F=W[0],Y=W[1],z=(0,u.useState)(w?Math.max((0,k.U2)(T,Z),13*j.iI):null),K=z[0],q=z[1],G=(0,u.useState)(!1),J=G[0],X=G[1],Q=(0,u.useState)(null)[1],$=m.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===$||void 0===$?void 0:$.projects,ne=[];E?ne.push.apply(ne,(0,i.Z)(E)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return M}}]),(0,u.useEffect)((function(){null===L||void 0===L||!L.current||F||J||null===Q||void 0===Q||Q(L.current.getBoundingClientRect().width)}),[F,V,J,K,L,Q,R]),(0,u.useEffect)((function(){F||(0,k.t8)(H,V)}),[r,F,V,H]),(0,u.useEffect)((function(){J||(0,k.t8)(T,K)}),[J,K,T]);var te=(0,O.Z)(p);return(0,u.useEffect)((function(){x&&te!==p&&B(p)}),[x,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Z,{title:M}),(0,f.jsx)(s.Z,{breadcrumbs:ne,menuItems:D,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===I||void 0===I?void 0:I.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(v.Z,{navigationItems:I})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:t,afterHeightOffset:g.Mz,afterHidden:r,afterMousedownActive:F,afterWidth:V,before:w,beforeHeightOffset:g.Mz,beforeMousedownActive:J,beforeWidth:d.k1+(w?K:0),hideAfterCompletely:!0,leftOffset:w?d.k1:null,mainContainerRef:L,setAfterMousedownActive:Y,setAfterWidth:B,setBeforeMousedownActive:X,setBeforeWidth:q,children:[N&&(0,f.jsx)(b,{children:N}),_]})})]}),C&&(0,f.jsx)(o.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===S||void 0===S?void 0:S(null)},children:(0,f.jsx)(c.Z,P(P({},C),{},{onClose:function(){return null===S||void 0===S?void 0:S(null)}}))})]})}},60547:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(82394),i=t(21831),u=t(82684),o=t(47999),c=t(1210),l=t(34744),a=t(28358),s=t(67971),d=t(87372),f=t(86673),p=t(82531),b=t(9518),h=t(23831),v=t(73942),m=t(49125),O=b.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],v.n_,3*m.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||h.Z.shadow).small,";\n ")}),(function(e){return e.background&&"\n background: ".concat(e.background,";\n ")}),(function(e){return e.backgroundImage&&'\n background-image: url("'.concat(e.backgroundImage,'");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n ')})),g=t(3055),j=t(95354),k=t(24141),y=t(28598);function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n=e.after,t=e.afterHidden,r=e.afterWidth,b=e.before,h=e.beforeWidth,v=e.breadcrumbs,x=e.buildSidekick,w=e.children,Z=e.errors,E=e.headline,_=e.pageName,C=e.pipeline,D=e.setErrors,I=e.subheader,S=e.subheaderBackground,N=e.subheaderBackgroundImage,M=e.subheaderButton,A=e.subheaderText,R=e.title,H=e.uuid,T=(0,k.i)().height,L=C.uuid,U=p.ZP.pipelines.detail(L,{includes_outputs:!1},{revalidateOnFocus:!1}).data,V=null===U||void 0===U?void 0:U.pipeline,B=(0,u.useMemo)((function(){return n||(x?x({height:T,heightOffset:g.Mz,pipeline:V}):null)}),[n,x,T,V]),W=r||(B?50*m.iI:null),F=(0,u.useMemo)((function(){var e=[];return V&&(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),v?(e.push({label:function(){return V.uuid},linkProps:{as:"/pipelines/".concat(L,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,i.Z)(v)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return V.name}})),e}),[v,V,L]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(c.Z,{after:B,afterHidden:t,afterWidth:W,before:b,beforeWidth:h,breadcrumbs:F,navigationItems:(0,j.H)(_,V),subheaderChildren:"undefined"!==typeof I&&I,title:V?R?R(V):V.name:null,uuid:H,children:[(M||A)&&(0,y.jsx)(f.Z,{mb:m.Mq,mt:m.cd,mx:m.cd,children:(0,y.jsx)(O,{background:S,backgroundImage:N,children:(0,y.jsxs)(s.Z,{alignItems:"center",children:[M,A&&(0,y.jsx)(f.Z,{ml:3}),A]})})}),E&&(0,y.jsx)(f.Z,{p:m.cd,children:(0,y.jsxs)(f.Z,{mt:m.cd,px:m.cd,children:[(0,y.jsx)(d.Z,{level:5,children:E}),(0,y.jsx)(l.Z,{light:!0,mt:m.cd,short:!0})]})}),w]}),Z&&(0,y.jsx)(o.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,y.jsx)(a.Z,P(P({},Z),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}},19395:function(e,n,t){"use strict";t.d(n,{IJ:function(){return s},Vx:function(){return f},eI:function(){return d},gU:function(){return b},tL:function(){return p},vJ:function(){return h}});var r,i,u=t(82394),o=t(92083),c=t.n(o);function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,r=n.completed_at,i=n.started_at,o=n.status,l=null;i&&r&&(l=c()(r).valueOf()-c()(i).valueOf());return a(a({},e),{},(0,u.Z)({},t,{runtime:l,status:o}))}),{})}function d(e){if(!e)return null;var n=new Date(c()(e).valueOf()),t=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());return new Date(t)}function f(e){return"string"!==typeof e?e:d(e.split("+")[0]).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(i||(i={}));var p=(r={},(0,u.Z)(r,i.DAY,86400),(0,u.Z)(r,i.HOUR,3600),(0,u.Z)(r,i.MINUTE,60),(0,u.Z)(r,i.SECOND,1),r);function b(e){var n=i.SECOND,t=e;return e%86400===0?(t/=86400,n=i.DAY):e%3600===0?(t/=3600,n=i.HOUR):e%60===0&&(t/=60,n=i.MINUTE),{time:t,unit:n}}function h(e,n){return e*p[n]}},43526:function(e,n,t){"use strict";t.d(n,{I7:function(){return r},IB:function(){return l},VV:function(){return u},_7:function(){return o},rn:function(){return c}});var r,i=t(66050),u="datetime",o="code",c=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 l=[r.MINUTE,r.HOUR,r.DAY,r.WEEK,r.MONTH,r.YEAR,r.CUSTOM]},66050:function(e,n,t){"use strict";var r;t.d(n,{V:function(){return r}}),function(e){e.CANCELLED="cancelled",e.COMPLETED="completed",e.FAILED="failed",e.INITIAL="initial",e.RUNNING="running"}(r||(r={}))},47409:function(e,n,t){"use strict";t.d(n,{D:function(){return o},V:function(){return u}});var r,i=t(82394),u=t(66050).V,o=(r={},(0,i.Z)(r,u.CANCELLED,"Cancelled"),(0,i.Z)(r,u.COMPLETED,"Done"),(0,i.Z)(r,u.FAILED,"Failed"),(0,i.Z)(r,u.INITIAL,"Ready"),(0,i.Z)(r,u.RUNNING,"Running"),r)},30206:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var r=t(77837),i=t(75582),u=t(38860),o=t.n(u),c=t(82684),l=t(83455),a=t(34376),s=t(12691),d=t.n(s),f=t(43526),p=t(60328),b=t(10919),h=t(58180),v=t(19711),m=t(10503),O=t(47409),g=t(49125),j=t(19395),k=t(9736),y=t(28598);var x=function(e){var n=e.models,t=e.onClickRow,r=e.pipeline,i=e.selectedRow,u=(0,k.Ct)(),o=null===r||void 0===r?void 0:r.uuid,c=[{uuid:"Status"},{uuid:"Name"},{uuid:"Type"},{uuid:"Runs"},{uuid:"Backfill"},{uuid:"Started at"},{uuid:"Completed at"}];return u||c.push({label:function(){return""},uuid:"edit"}),(0,y.jsx)(h.Z,{columnFlex:[null,1,null,null,null,1,1,null],columns:c,isSelectedRow:function(e){return n[e].id===(null===i||void 0===i?void 0:i.id)},onClickRow:function(e){return t(n[e])},rows:n.map((function(e,n){var t=e.block_uuid,r=e.completed_at,i=e.end_datetime,c=e.id,l=e.name,a=e.start_datetime,s=e.started_at,h=e.status,k=e.total_run_count,x=[(0,y.jsx)(v.ZP,{default:!0,monospace:!0,children:h||"inactive"},"status"),(0,y.jsx)(d(),{as:"/pipelines/".concat(o,"/backfills/").concat(c),href:"/pipelines/[pipeline]/backfills/[...slug]",passHref:!0,children:(0,y.jsx)(b.Z,{bold:!0,sameColorAsText:!0,children:l})},"name"),(0,y.jsx)(v.ZP,{default:!0,monospace:!0,children:t?f._7:f.VV},"type"),(0,y.jsx)(v.ZP,{default:!0,monospace:!0,children:k||0},"runs"),(0,y.jsxs)(v.ZP,{default:!0,monospace:!0,children:[a&&i&&(0,y.jsxs)(y.Fragment,{children:[(0,j.Vx)(a),"\xa0-\xa0",(0,j.Vx)(i)]}),!(a&&i)&&"-"]},"backfill"),(0,y.jsx)(v.ZP,{default:!0,monospace:!0,children:s?(0,j.Vx)(s):"-"},"started_at"),(0,y.jsx)(v.ZP,{default:!0,monospace:!0,children:r?(0,j.Vx)(r):"-"},"completed_at")];return u||x.push((0,y.jsx)(p.Z,{default:!0,disabled:h===O.V.COMPLETED,iconOnly:!0,linkProps:{as:"/pipelines/".concat(o,"/backfills/").concat(c,"/edit"),href:"/pipelines/[pipeline]/backfills/[...slug]"},noBackground:!0,title:"Edit",children:(0,y.jsx)(m.I8,{default:!0,size:2*g.iI})},"".concat(n,"_edit_button"))),x})),uuid:"pipeline-runs"})},P=t(11135),w=t(60547),Z=t(41788),E=t(86673),_=t(82531),C=t(59920),D=t(33766),I=t(96510),S=t(59e3),N=t(90211);function M(e){var n=e.pipeline,t=(0,a.useRouter)(),r=n.uuid,u=_.ZP.backfills.list({_limit:20,_offset:0,include_run_count:!0,pipeline_uuid:r},{refreshInterval:6e4}),o=u.data,s=(u.mutate,(0,c.useMemo)((function(){return(null===o||void 0===o?void 0:o.backfills)||[]}),[o])),d=(0,S.iV)(),f=(0,c.useState)(null),p=f[0],b=f[1],h=(0,c.useState)(null),O=h[0],j=h[1];(0,c.useEffect)((function(){null!==d&&void 0!==d&&d.backfill_id?b(null===s||void 0===s?void 0:s.find((function(e){return e.id===Number(d.backfill_id)}))):p&&b(null)}),[s,d,p]);var k=(0,c.useMemo)((function(){var e="/pipelines/".concat(r,"/backfills"),n=[{label:function(){return"Backfills"},linkProps:p?{as:e,href:"/pipelines/[pipeline]/backfills"}:null}];return p&&n.push({label:function(){return p.name}}),n}),[p]),Z=(0,l.Db)(_.ZP.backfills.pipelines.useCreate(r),{onSuccess:function(e){return(0,I.wD)(e,{callback:function(e){var n=e.backfill.id;t.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(r,"/backfills/").concat(n,"/edit"))},onErrorCallback:function(e,n){return j({errors:n,response:e})}})}}),M=(0,i.Z)(Z,2),A=M[0],R=M[1].isLoading;return(0,y.jsxs)(w.Z,{breadcrumbs:k,errors:O,pageName:C.M.BACKFILLS,pipeline:n,setErrors:j,title:function(e){var n=e.name;return"".concat(n," backfills")},uuid:"".concat(C.M.BACKFILLS,"_").concat(r),children:[(0,y.jsx)(E.Z,{p:g.cd,children:(0,y.jsx)(P.ZP,{beforeElement:(0,y.jsx)(m.mm,{size:2.5*g.iI}),blackBorder:!0,inline:!0,loading:R,noHoverUnderline:!0,onClick:function(){return A({backfill:{name:(0,N.Y6)()}})},sameColorAsText:!0,uuid:"PipelineDetailPage/Backfills/add_new_backfill",children:"Create new backfill"})}),s&&0===s.length&&(0,y.jsx)(E.Z,{p:g.cd,children:(0,y.jsx)(v.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No backfills available"})}),(null===s||void 0===s?void 0:s.length)>=1&&(0,y.jsx)(x,{models:s,onClickRow:function(e){var n=e.id;return(0,D.u7)({backfill_id:n})},pipeline:n,selectedRow:p})]})}M.getInitialProps=function(){var e=(0,r.Z)(o().mark((function e(n){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var A=(0,Z.Z)(M)},33766:function(e,n,t){"use strict";t.d(n,{g_:function(){return f},u7:function(){return d}});var r=t(75582),i=t(82394),u=t(34376),o=t.n(u),c=t(59e3),l=t(24224);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 s(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,i.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}function d(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,u=t.pushHistory,l=i?{}:(0,c.iV)();n=window.location.pathname;var a=u?o().push:o().replace,d=s(s({},l),e);Object.entries(e).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];"undefined"!==typeof i&&null!==i||delete d[t]}));var f=(0,c.uM)(d);f.length>=1&&(f="?".concat(f));var p="".concat(n.split("?")[0]).concat(f);return a(o().router.pathname,p,{shallow:!0})}function f(e,n,t){var i=t.addingMultipleValues,u=t.isList,o=t.itemsPerPage,c=t.pushHistory,a=void 0!==c&&c,f=t.resetLimitParams,p=s({},e);i?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];if(Array.isArray(i)){var u="".concat(t,"[]");p[u]=i.map(String)}})):u?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1],u=String(i),o="".concat(t,"[]"),c=p[o];c&&Array.isArray(c)?(c=c.map(String)).includes(u)?p[o]=(0,l.Od)(c,(function(e){return e===u})):p[o]=c.concat(u):p[o]=[u]})):p=s(s({},p),n),f&&(p._limit=o||20,p._offset=0),d(p,{pushHistory:a})}},37459:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/backfills",function(){return t(30206)}])}},function(e){e.O(0,[3850,5716,2344,4506,6166,8180,6214,9774,2888,179],(function(){return n=37459,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(82394),i=t(21831),u=t(82684),o=t(47999),c=t(49894),l=t(93461),a=t(57384),s=t(12344),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var b=u.forwardRef(p),h=t(32063),v=t(15270),m=t(82531),O=t(66166),g=t(3055),j=t(49125),k=t(91427),y=t(24141);function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,x=e.afterWidthOverride,w=e.before,Z=e.beforeWidth,E=e.breadcrumbs,_=e.children,C=e.errors,D=e.headerMenuItems,I=e.navigationItems,S=e.setErrors,N=e.subheaderChildren,M=e.title,A=e.uuid,R=(0,y.i)().width,H="dashboard_after_width_".concat(A),T="dashboard_before_width_".concat(A),L=(0,u.useRef)(null),U=(0,u.useState)(x?p:(0,k.U2)(H,p)),V=U[0],B=U[1],W=(0,u.useState)(!1),F=W[0],Y=W[1],z=(0,u.useState)(w?Math.max((0,k.U2)(T,Z),13*j.iI):null),K=z[0],q=z[1],G=(0,u.useState)(!1),J=G[0],X=G[1],Q=(0,u.useState)(null)[1],$=m.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===$||void 0===$?void 0:$.projects,ne=[];E?ne.push.apply(ne,(0,i.Z)(E)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return M}}]),(0,u.useEffect)((function(){null===L||void 0===L||!L.current||F||J||null===Q||void 0===Q||Q(L.current.getBoundingClientRect().width)}),[F,V,J,K,L,Q,R]),(0,u.useEffect)((function(){F||(0,k.t8)(H,V)}),[r,F,V,H]),(0,u.useEffect)((function(){J||(0,k.t8)(T,K)}),[J,K,T]);var te=(0,O.Z)(p);return(0,u.useEffect)((function(){x&&te!==p&&B(p)}),[x,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Z,{title:M}),(0,f.jsx)(s.Z,{breadcrumbs:ne,menuItems:D,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===I||void 0===I?void 0:I.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(v.Z,{navigationItems:I})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:t,afterHeightOffset:g.Mz,afterHidden:r,afterMousedownActive:F,afterWidth:V,before:w,beforeHeightOffset:g.Mz,beforeMousedownActive:J,beforeWidth:d.k1+(w?K:0),hideAfterCompletely:!0,leftOffset:w?d.k1:null,mainContainerRef:L,setAfterMousedownActive:Y,setAfterWidth:B,setBeforeMousedownActive:X,setBeforeWidth:q,children:[N&&(0,f.jsx)(b,{children:N}),_]})})]}),C&&(0,f.jsx)(o.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===S||void 0===S?void 0:S(null)},children:(0,f.jsx)(c.Z,P(P({},C),{},{onClose:function(){return null===S||void 0===S?void 0:S(null)}}))})]})}},60547:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(82394),i=t(21831),u=t(82684),o=t(47999),c=t(1210),l=t(34744),a=t(49894),s=t(67971),d=t(87372),f=t(86673),p=t(82531),b=t(9518),h=t(23831),v=t(73942),m=t(49125),O=b.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],v.n_,3*m.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||h.Z.shadow).small,";\n ")}),(function(e){return e.background&&"\n background: ".concat(e.background,";\n ")}),(function(e){return e.backgroundImage&&'\n background-image: url("'.concat(e.backgroundImage,'");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n ')})),g=t(3055),j=t(95354),k=t(24141),y=t(28598);function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n=e.after,t=e.afterHidden,r=e.afterWidth,b=e.before,h=e.beforeWidth,v=e.breadcrumbs,x=e.buildSidekick,w=e.children,Z=e.errors,E=e.headline,_=e.pageName,C=e.pipeline,D=e.setErrors,I=e.subheader,S=e.subheaderBackground,N=e.subheaderBackgroundImage,M=e.subheaderButton,A=e.subheaderText,R=e.title,H=e.uuid,T=(0,k.i)().height,L=C.uuid,U=p.ZP.pipelines.detail(L,{includes_outputs:!1},{revalidateOnFocus:!1}).data,V=null===U||void 0===U?void 0:U.pipeline,B=(0,u.useMemo)((function(){return n||(x?x({height:T,heightOffset:g.Mz,pipeline:V}):null)}),[n,x,T,V]),W=r||(B?50*m.iI:null),F=(0,u.useMemo)((function(){var e=[];return V&&(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),v?(e.push({label:function(){return V.uuid},linkProps:{as:"/pipelines/".concat(L,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,i.Z)(v)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return V.name}})),e}),[v,V,L]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(c.Z,{after:B,afterHidden:t,afterWidth:W,before:b,beforeWidth:h,breadcrumbs:F,navigationItems:(0,j.H)(_,V),subheaderChildren:"undefined"!==typeof I&&I,title:V?R?R(V):V.name:null,uuid:H,children:[(M||A)&&(0,y.jsx)(f.Z,{mb:m.Mq,mt:m.cd,mx:m.cd,children:(0,y.jsx)(O,{background:S,backgroundImage:N,children:(0,y.jsxs)(s.Z,{alignItems:"center",children:[M,A&&(0,y.jsx)(f.Z,{ml:3}),A]})})}),E&&(0,y.jsx)(f.Z,{p:m.cd,children:(0,y.jsxs)(f.Z,{mt:m.cd,px:m.cd,children:[(0,y.jsx)(d.Z,{level:5,children:E}),(0,y.jsx)(l.Z,{light:!0,mt:m.cd,short:!0})]})}),w]}),Z&&(0,y.jsx)(o.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,y.jsx)(a.Z,P(P({},Z),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}},19395:function(e,n,t){"use strict";t.d(n,{IJ:function(){return s},Vx:function(){return f},eI:function(){return d},gU:function(){return b},tL:function(){return p},vJ:function(){return h}});var r,i,u=t(82394),o=t(92083),c=t.n(o);function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,r=n.completed_at,i=n.started_at,o=n.status,l=null;i&&r&&(l=c()(r).valueOf()-c()(i).valueOf());return a(a({},e),{},(0,u.Z)({},t,{runtime:l,status:o}))}),{})}function d(e){if(!e)return null;var n=new Date(c()(e).valueOf()),t=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());return new Date(t)}function f(e){return"string"!==typeof e?e:d(e.split("+")[0]).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(i||(i={}));var p=(r={},(0,u.Z)(r,i.DAY,86400),(0,u.Z)(r,i.HOUR,3600),(0,u.Z)(r,i.MINUTE,60),(0,u.Z)(r,i.SECOND,1),r);function b(e){var n=i.SECOND,t=e;return e%86400===0?(t/=86400,n=i.DAY):e%3600===0?(t/=3600,n=i.HOUR):e%60===0&&(t/=60,n=i.MINUTE),{time:t,unit:n}}function h(e,n){return e*p[n]}},43526:function(e,n,t){"use strict";t.d(n,{I7:function(){return r},IB:function(){return l},VV:function(){return u},_7:function(){return o},rn:function(){return c}});var r,i=t(66050),u="datetime",o="code",c=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 l=[r.MINUTE,r.HOUR,r.DAY,r.WEEK,r.MONTH,r.YEAR,r.CUSTOM]},66050:function(e,n,t){"use strict";var r;t.d(n,{V:function(){return r}}),function(e){e.CANCELLED="cancelled",e.COMPLETED="completed",e.FAILED="failed",e.INITIAL="initial",e.RUNNING="running"}(r||(r={}))},47409:function(e,n,t){"use strict";t.d(n,{D:function(){return o},V:function(){return u}});var r,i=t(82394),u=t(66050).V,o=(r={},(0,i.Z)(r,u.CANCELLED,"Cancelled"),(0,i.Z)(r,u.COMPLETED,"Done"),(0,i.Z)(r,u.FAILED,"Failed"),(0,i.Z)(r,u.INITIAL,"Ready"),(0,i.Z)(r,u.RUNNING,"Running"),r)},30206:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var r=t(77837),i=t(75582),u=t(38860),o=t.n(u),c=t(82684),l=t(83455),a=t(34376),s=t(12691),d=t.n(s),f=t(43526),p=t(60328),b=t(10919),h=t(58180),v=t(19711),m=t(10503),O=t(47409),g=t(49125),j=t(19395),k=t(9736),y=t(28598);var x=function(e){var n=e.models,t=e.onClickRow,r=e.pipeline,i=e.selectedRow,u=(0,k.Ct)(),o=null===r||void 0===r?void 0:r.uuid,c=[{uuid:"Status"},{uuid:"Name"},{uuid:"Type"},{uuid:"Runs"},{uuid:"Backfill"},{uuid:"Started at"},{uuid:"Completed at"}];return u||c.push({label:function(){return""},uuid:"edit"}),(0,y.jsx)(h.Z,{columnFlex:[null,1,null,null,null,1,1,null],columns:c,isSelectedRow:function(e){return n[e].id===(null===i||void 0===i?void 0:i.id)},onClickRow:function(e){return t(n[e])},rows:n.map((function(e,n){var t=e.block_uuid,r=e.completed_at,i=e.end_datetime,c=e.id,l=e.name,a=e.start_datetime,s=e.started_at,h=e.status,k=e.total_run_count,x=[(0,y.jsx)(v.ZP,{default:!0,monospace:!0,children:h||"inactive"},"status"),(0,y.jsx)(d(),{as:"/pipelines/".concat(o,"/backfills/").concat(c),href:"/pipelines/[pipeline]/backfills/[...slug]",passHref:!0,children:(0,y.jsx)(b.Z,{bold:!0,sameColorAsText:!0,children:l})},"name"),(0,y.jsx)(v.ZP,{default:!0,monospace:!0,children:t?f._7:f.VV},"type"),(0,y.jsx)(v.ZP,{default:!0,monospace:!0,children:k||0},"runs"),(0,y.jsxs)(v.ZP,{default:!0,monospace:!0,children:[a&&i&&(0,y.jsxs)(y.Fragment,{children:[(0,j.Vx)(a),"\xa0-\xa0",(0,j.Vx)(i)]}),!(a&&i)&&"-"]},"backfill"),(0,y.jsx)(v.ZP,{default:!0,monospace:!0,children:s?(0,j.Vx)(s):"-"},"started_at"),(0,y.jsx)(v.ZP,{default:!0,monospace:!0,children:r?(0,j.Vx)(r):"-"},"completed_at")];return u||x.push((0,y.jsx)(p.Z,{default:!0,disabled:h===O.V.COMPLETED,iconOnly:!0,linkProps:{as:"/pipelines/".concat(o,"/backfills/").concat(c,"/edit"),href:"/pipelines/[pipeline]/backfills/[...slug]"},noBackground:!0,title:"Edit",children:(0,y.jsx)(m.I8,{default:!0,size:2*g.iI})},"".concat(n,"_edit_button"))),x})),uuid:"pipeline-runs"})},P=t(11135),w=t(60547),Z=t(41788),E=t(86673),_=t(82531),C=t(59920),D=t(33766),I=t(96510),S=t(59e3),N=t(90211);function M(e){var n=e.pipeline,t=(0,a.useRouter)(),r=n.uuid,u=_.ZP.backfills.list({_limit:20,_offset:0,include_run_count:!0,pipeline_uuid:r},{refreshInterval:6e4}),o=u.data,s=(u.mutate,(0,c.useMemo)((function(){return(null===o||void 0===o?void 0:o.backfills)||[]}),[o])),d=(0,S.iV)(),f=(0,c.useState)(null),p=f[0],b=f[1],h=(0,c.useState)(null),O=h[0],j=h[1];(0,c.useEffect)((function(){null!==d&&void 0!==d&&d.backfill_id?b(null===s||void 0===s?void 0:s.find((function(e){return e.id===Number(d.backfill_id)}))):p&&b(null)}),[s,d,p]);var k=(0,c.useMemo)((function(){var e="/pipelines/".concat(r,"/backfills"),n=[{label:function(){return"Backfills"},linkProps:p?{as:e,href:"/pipelines/[pipeline]/backfills"}:null}];return p&&n.push({label:function(){return p.name}}),n}),[p]),Z=(0,l.Db)(_.ZP.backfills.pipelines.useCreate(r),{onSuccess:function(e){return(0,I.wD)(e,{callback:function(e){var n=e.backfill.id;t.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(r,"/backfills/").concat(n,"/edit"))},onErrorCallback:function(e,n){return j({errors:n,response:e})}})}}),M=(0,i.Z)(Z,2),A=M[0],R=M[1].isLoading;return(0,y.jsxs)(w.Z,{breadcrumbs:k,errors:O,pageName:C.M.BACKFILLS,pipeline:n,setErrors:j,title:function(e){var n=e.name;return"".concat(n," backfills")},uuid:"".concat(C.M.BACKFILLS,"_").concat(r),children:[(0,y.jsx)(E.Z,{p:g.cd,children:(0,y.jsx)(P.ZP,{beforeElement:(0,y.jsx)(m.mm,{size:2.5*g.iI}),blackBorder:!0,inline:!0,loading:R,noHoverUnderline:!0,onClick:function(){return A({backfill:{name:(0,N.Y6)()}})},sameColorAsText:!0,uuid:"PipelineDetailPage/Backfills/add_new_backfill",children:"Create new backfill"})}),s&&0===s.length&&(0,y.jsx)(E.Z,{p:g.cd,children:(0,y.jsx)(v.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No backfills available"})}),(null===s||void 0===s?void 0:s.length)>=1&&(0,y.jsx)(x,{models:s,onClickRow:function(e){var n=e.id;return(0,D.u7)({backfill_id:n})},pipeline:n,selectedRow:p})]})}M.getInitialProps=function(){var e=(0,r.Z)(o().mark((function e(n){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var A=(0,Z.Z)(M)},33766:function(e,n,t){"use strict";t.d(n,{g_:function(){return f},u7:function(){return d}});var r=t(75582),i=t(82394),u=t(34376),o=t.n(u),c=t(59e3),l=t(24224);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 s(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,i.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}function d(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,u=t.pushHistory,l=i?{}:(0,c.iV)();n=window.location.pathname;var a=u?o().push:o().replace,d=s(s({},l),e);Object.entries(e).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];"undefined"!==typeof i&&null!==i||delete d[t]}));var f=(0,c.uM)(d);f.length>=1&&(f="?".concat(f));var p="".concat(n.split("?")[0]).concat(f);return a(o().router.pathname,p,{shallow:!0})}function f(e,n,t){var i=t.addingMultipleValues,u=t.isList,o=t.itemsPerPage,c=t.pushHistory,a=void 0!==c&&c,f=t.resetLimitParams,p=s({},e);i?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];if(Array.isArray(i)){var u="".concat(t,"[]");p[u]=i.map(String)}})):u?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1],u=String(i),o="".concat(t,"[]"),c=p[o];c&&Array.isArray(c)?(c=c.map(String)).includes(u)?p[o]=(0,l.Od)(c,(function(e){return e===u})):p[o]=c.concat(u):p[o]=[u]})):p=s(s({},p),n),f&&(p._limit=o||20,p._offset=0),d(p,{pushHistory:a})}},37459:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/backfills",function(){return t(30206)}])}},function(e){e.O(0,[3850,5716,2344,4506,6166,8180,6214,9774,2888,179],(function(){return n=37459,e(e.s=n);var n}));var n=e.O();_N_E=n}]);