mage-ai 0.8.47__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 (101) hide show
  1. mage_ai/api/resources/DataProviderResource.py +13 -1
  2. mage_ai/data_preparation/git/__init__.py +1 -1
  3. mage_ai/data_preparation/models/block/__init__.py +5 -0
  4. mage_ai/data_preparation/models/block/sql/__init__.py +68 -8
  5. mage_ai/data_preparation/models/block/sql/clickhouse.py +38 -0
  6. mage_ai/data_preparation/models/block/utils.py +4 -2
  7. mage_ai/data_preparation/models/file.py +4 -3
  8. mage_ai/data_preparation/models/pipeline.py +36 -3
  9. mage_ai/data_preparation/templates/repo/io_config.yaml +12 -0
  10. mage_ai/io/base.py +1 -0
  11. mage_ai/io/clickhouse.py +237 -0
  12. mage_ai/io/config.py +19 -0
  13. mage_ai/io/io_config.py +1 -0
  14. mage_ai/io/snowflake.py +0 -1
  15. mage_ai/io/sql.py +4 -1
  16. mage_ai/server/constants.py +1 -1
  17. mage_ai/server/frontend_dist/404.html +2 -2
  18. mage_ai/server/frontend_dist/404.html.html +2 -2
  19. mage_ai/server/frontend_dist/_next/static/I2bRLK9B7Lap2LvCicTKv/_buildManifest.js +1 -0
  20. mage_ai/server/frontend_dist/_next/static/chunks/{2249-50d2156ae3ce5933.js → 2249-59feb0a0585ef7c1.js} +1 -1
  21. mage_ai/server/frontend_dist/_next/static/chunks/2407-35c362852abff411.js +1 -0
  22. mage_ai/server/frontend_dist/_next/static/chunks/2524-ecbe3dd70d06cbe4.js +1 -0
  23. mage_ai/server/frontend_dist/_next/static/chunks/{3014-26ba07eb6a78e31c.js → 3014-a01e16bc067500ad.js} +1 -1
  24. mage_ai/server/frontend_dist/_next/static/chunks/{4506-ce5fa63b65f6fa5f.js → 4506-a3c53b0033972626.js} +1 -1
  25. mage_ai/server/frontend_dist/_next/static/chunks/4741-5fbecd08232ba3f9.js +1 -0
  26. mage_ai/server/frontend_dist/_next/static/chunks/{5477-793cd2120261d023.js → 5477-b439f211b6146a11.js} +1 -1
  27. mage_ai/server/frontend_dist/_next/static/chunks/5716-c5952e5ca9c8e139.js +1 -0
  28. mage_ai/server/frontend_dist/_next/static/chunks/{5872-103815a4a043489b.js → 5872-1767c45ee6690ae5.js} +1 -1
  29. mage_ai/server/frontend_dist/_next/static/chunks/{5896-f84e336fb8877027.js → 5896-10a676bcc86978cc.js} +1 -1
  30. mage_ai/server/frontend_dist/_next/static/chunks/{6166-5fc2768ef661e7da.js → 6166-97cb3cc7d00d645c.js} +1 -1
  31. mage_ai/server/frontend_dist/_next/static/chunks/{6532-b0fd357eb359c127.js → 6532-5f86e9e1f32adf3a.js} +1 -1
  32. mage_ai/server/frontend_dist/_next/static/chunks/{7400-acab00d6265bd4dc.js → 7400-033fb12e7c46f62e.js} +1 -1
  33. mage_ai/server/frontend_dist/_next/static/chunks/{9832-c8b8970bb522f302.js → 9832-f97919376d52e3bf.js} +1 -1
  34. mage_ai/server/frontend_dist/_next/static/chunks/pages/{manage-96c89b2a2689f80c.js → manage-8a7b2b707c7038fb.js} +1 -1
  35. mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipeline-runs-294eccc0163c80a1.js → pipeline-runs-832218136947bf56.js} +1 -1
  36. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-c48a45cea6df6192.js +1 -0
  37. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-dd637dcb042ff771.js +1 -0
  38. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-5541c3e13297ddbc.js +1 -0
  39. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{logs-0e6935a2b7f8e1ed.js → logs-caa9fade2bc783b9.js} +1 -1
  40. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-0e02bcdfcd533830.js → block-runs-1b44f28966826dbe.js} +1 -1
  41. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runtime-baf8bb6da01976db.js → block-runtime-44029312dc580504.js} +1 -1
  42. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-d42158676a75b451.js → monitors-9b46466e066d6372.js} +1 -1
  43. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-4049561456ea2314.js → [run]-5f78885afc7758df.js} +1 -1
  44. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{runs-bebeee2854c734fc.js → runs-43f2c1658cd3d03d.js} +1 -1
  45. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{settings-b95afd173fb265df.js → settings-8fb53eb8dd0267e1.js} +1 -1
  46. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{syncs-e46a9b03e0fff91a.js → syncs-c92351b1a81f7a13.js} +1 -1
  47. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-6a95567766a1d00e.js → [...slug]-ca76f5938bdff8a7.js} +1 -1
  48. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-c259bd9d385404fa.js → triggers-4e9518882c8730b1.js} +1 -1
  49. mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipelines-0900be641ce4e6ec.js → pipelines-c46347f0308ab09a.js} +1 -1
  50. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{preferences-25735fdf80f95015.js → preferences-45c40fb24c8a5139.js} +1 -1
  51. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{sync-data-abfaa2b15eef72a0.js → sync-data-6e80afa0c9b90cdf.js} +1 -1
  52. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-5d0c51213b9bba8e.js → users-12a90f932ff4fc9d.js} +1 -1
  53. mage_ai/server/frontend_dist/_next/static/chunks/pages/{terminal-24eb5df948cc9a7e.js → terminal-cc54b4d4e5295101.js} +1 -1
  54. mage_ai/server/frontend_dist/_next/static/chunks/pages/test-bd801bde63db7c9e.js +1 -0
  55. mage_ai/server/frontend_dist/_next/static/chunks/pages/{triggers-6ff85ea842bde8c2.js → triggers-08774e473ea4a96b.js} +1 -1
  56. mage_ai/server/frontend_dist/index.html +2 -2
  57. mage_ai/server/frontend_dist/manage.html +2 -2
  58. mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
  59. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
  60. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
  61. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  62. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
  63. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
  64. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
  65. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
  66. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
  67. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
  68. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +2 -2
  69. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
  70. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
  71. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
  72. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  73. mage_ai/server/frontend_dist/pipelines.html +2 -2
  74. mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
  75. mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
  76. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
  77. mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
  78. mage_ai/server/frontend_dist/settings.html +2 -2
  79. mage_ai/server/frontend_dist/sign-in.html +2 -2
  80. mage_ai/server/frontend_dist/terminal.html +2 -2
  81. mage_ai/server/frontend_dist/test.html +3 -3
  82. mage_ai/server/frontend_dist/triggers.html +2 -2
  83. mage_ai/server/utils/output_display.py +1 -3
  84. mage_ai/server/websocket_server.py +0 -1
  85. {mage_ai-0.8.47.dist-info → mage_ai-0.8.49.dist-info}/METADATA +4 -1
  86. {mage_ai-0.8.47.dist-info → mage_ai-0.8.49.dist-info}/RECORD +92 -90
  87. mage_ai/server/frontend_dist/_next/static/chunks/2083-78a438dbdc57d1e4.js +0 -1
  88. mage_ai/server/frontend_dist/_next/static/chunks/2524-6aeb9419acf5d1b4.js +0 -1
  89. mage_ai/server/frontend_dist/_next/static/chunks/4538-8a3c3e47be976ede.js +0 -1
  90. mage_ai/server/frontend_dist/_next/static/chunks/4741-acfe40cf3b06659e.js +0 -1
  91. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-e512333242e02c60.js +0 -1
  92. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-774dd41941497640.js +0 -1
  93. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-c6179a9e737009c9.js +0 -1
  94. mage_ai/server/frontend_dist/_next/static/chunks/pages/test-85cf18ae78ff535c.js +0 -1
  95. mage_ai/server/frontend_dist/_next/static/xTScbs8HLliQCDHzVPx5E/_buildManifest.js +0 -1
  96. /mage_ai/server/frontend_dist/_next/static/{xTScbs8HLliQCDHzVPx5E → I2bRLK9B7Lap2LvCicTKv}/_middlewareManifest.js +0 -0
  97. /mage_ai/server/frontend_dist/_next/static/{xTScbs8HLliQCDHzVPx5E → I2bRLK9B7Lap2LvCicTKv}/_ssgManifest.js +0 -0
  98. {mage_ai-0.8.47.dist-info → mage_ai-0.8.49.dist-info}/LICENSE +0 -0
  99. {mage_ai-0.8.47.dist-info → mage_ai-0.8.49.dist-info}/WHEEL +0 -0
  100. {mage_ai-0.8.47.dist-info → mage_ai-0.8.49.dist-info}/entry_points.txt +0 -0
  101. {mage_ai-0.8.47.dist-info → mage_ai-0.8.49.dist-info}/top_level.txt +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4538],{52136:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(47329),o=n.n(r),a=n(82684),i=n(63588),c=n.n(i),u=n(5237),l=n(29989),s=n(81352),f=n(46119),p=n(88543),d=n(12765),y=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function h(e){var t=e.top,n=void 0===t?0:t,r=e.left,o=void 0===r?0:r,i=e.scale,h=e.height,b=e.stroke,m=void 0===b?"#eaf0f6":b,g=e.strokeWidth,x=void 0===g?1:g,O=e.strokeDasharray,w=e.className,S=e.numTicks,j=void 0===S?10:S,k=e.lineStyle,E=e.offset,C=e.tickValues,P=e.children,R=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,y),Z=null!=C?C:(0,f.Z)(i,j),D=(null!=E?E:0)+(0,d.Z)(i)/2,N=Z.map((function(e,t){var n,r=(null!=(n=(0,p.Z)(i(e)))?n:0)+D;return{index:t,from:new s.Z({x:r,y:0}),to:new s.Z({x:r,y:h})}}));return a.createElement(l.Z,{className:c()("visx-columns",w),top:n,left:o},P?P({lines:N}):N.map((function(e){var t=e.from,n=e.to,r=e.index;return a.createElement(u.Z,v({key:"column-line-"+r,from:t,to:n,stroke:m,strokeWidth:x,strokeDasharray:O,style:k},R))})))}h.propTypes={tickValues:o().array,height:o().number.isRequired}},53655:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(47329),o=n.n(r),a=n(82684),i=n(63588),c=n.n(i),u=n(29989),l=["className","top","left","data","binWidth","binHeight","x0","gap","xScale","yScale","colorScale","opacityScale","bins","count","children"];function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function f(e){var t=e.className,n=e.top,r=e.left,o=e.data,i=void 0===o?[]:o,f=e.binWidth,p=void 0===f?6:f,d=e.binHeight,y=void 0===d?6:d,v=e.x0,h=void 0===v?0:v,b=e.gap,m=void 0===b?1:b,g=e.xScale,x=e.yScale,O=e.colorScale,w=void 0===O?function(){}:O,S=e.opacityScale,j=void 0===S?function(){return 1}:S,k=e.bins,E=void 0===k?function(e){return null==e?void 0:e.bins}:k,C=e.count,P=void 0===C?function(e){return null==e?void 0:e.count}:C,R=e.children,Z=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,l),D=p-m,N=y-m,T=i.map((function(e,t){var n=g(t);return E(e).map((function(r,o){var a=P(r);return{bin:r,row:o,column:t,datum:e,width:D,height:N,gap:m,count:a,x:n+h,y:x(o)+m,color:w(a),opacity:j(a)}}))}));return R?a.createElement(a.Fragment,null,R(T)):a.createElement(u.Z,{className:"visx-heatmap-rects",top:n,left:r},T.map((function(e){return e.map((function(e){return a.createElement("rect",s({key:"heatmap-tile-rect-"+e.row+"-"+e.column,className:c()("visx-heatmap-rect",t),width:e.width,height:e.height,x:e.x,y:e.y,fill:e.color,fillOpacity:e.opacity},Z))}))})))}f.propTypes={data:o().array,left:o().number,top:o().number,binWidth:o().number,binHeight:o().number,x0:o().number,gap:o().number,xScale:o().func.isRequired,yScale:o().func.isRequired,bins:o().func,count:o().func,className:o().string,children:o().func}},95422:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(82684),o=n(63588),a=n.n(o),i=n(29989),c=n(65743),u=n(53989),l=["data","className","top","left","x0","x0Scale","x1Scale","yScale","color","keys","height","children"];function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function f(e){var t=e.data,n=e.className,o=e.top,f=e.left,p=e.x0,d=e.x0Scale,y=e.x1Scale,v=e.yScale,h=e.color,b=e.keys,m=e.height,g=e.children,x=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,l),O=(0,u.Z)(y),w=t.map((function(e,t){return{index:t,x0:d(p(e)),bars:b.map((function(t,n){var r=e[t];return{index:n,key:t,value:r,width:O,x:y(t)||0,y:v(r)||0,color:h(t,n),height:m-(v(r)||0)}}))}}));return g?r.createElement(r.Fragment,null,g(w)):r.createElement(i.Z,{className:a()("visx-bar-group",n),top:o,left:f},w.map((function(e){return r.createElement(i.Z,{key:"bar-group-"+e.index+"-"+e.x0,left:e.x0},e.bars.map((function(t){return r.createElement(c.Z,s({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},x))})))})))}},39048:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(82684),o=n(63588),a=n.n(o),i=n(29989),c=n(65743),u=n(53989),l=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function f(e){var t=e.data,n=e.className,o=e.top,f=e.left,p=e.x,d=void 0===p?function(){return 0}:p,y=e.y0,v=e.y0Scale,h=e.y1Scale,b=e.xScale,m=e.color,g=e.keys,x=(e.width,e.children),O=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,l),w=(0,u.Z)(h),S=t.map((function(e,t){return{index:t,y0:v(y(e))||0,bars:g.map((function(t,n){var r=e[t];return{index:n,key:t,value:r,height:w,x:d(r)||0,y:h(t)||0,color:m(t,n),width:b(r)||0}}))}}));return x?r.createElement(r.Fragment,null,x(S)):r.createElement(i.Z,{className:a()("visx-bar-group-horizontal",n),top:o,left:f},S.map((function(e){return r.createElement(i.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map((function(t){return r.createElement(c.Z,s({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},O))})))})))}},85587:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(82684),o=n(63588),a=n.n(o),i=n(39309),c=["children","data","x","y","fill","className","curve","innerRef","defined"];function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function l(e){var t=e.children,n=e.data,o=void 0===n?[]:n,l=e.x,s=e.y,f=e.fill,p=void 0===f?"transparent":f,d=e.className,y=e.curve,v=e.innerRef,h=e.defined,b=void 0===h?function(){return!0}:h,m=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,c),g=(0,i.jv)({x:l,y:s,defined:b,curve:y});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",u({ref:v,className:a()("visx-linepath",d),d:g(o)||"",fill:p,strokeLinecap:"round"},m))}},39309:function(e,t,n){"use strict";n.d(t,{SO:function(){return i},jv:function(){return c}});var r=n(48167),o=n(92201),a=n(49894);function i(e){var t=void 0===e?{}:e,n=t.x,o=t.x0,i=t.x1,c=t.y,u=t.y0,l=t.y1,s=t.defined,f=t.curve,p=(0,r.Z)();return n&&(0,a.Z)(p.x,n),o&&(0,a.Z)(p.x0,o),i&&(0,a.Z)(p.x1,i),c&&(0,a.Z)(p.y,c),u&&(0,a.Z)(p.y0,u),l&&(0,a.Z)(p.y1,l),s&&p.defined(s),f&&p.curve(f),p}function c(e){var t=void 0===e?{}:e,n=t.x,r=t.y,i=t.defined,c=t.curve,u=(0,o.Z)();return n&&(0,a.Z)(u.x,n),r&&(0,a.Z)(u.y,r),i&&u.defined(i),c&&u.curve(c),u}},98889:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(47329),o=n.n(r),a=n(82684),i=n(63588),c=n.n(i),u=n(39309),l=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function f(e){var t=e.children,n=e.x,r=e.x0,o=e.x1,i=e.y,f=e.y0,p=e.y1,d=e.data,y=void 0===d?[]:d,v=e.defined,h=void 0===v?function(){return!0}:v,b=e.className,m=e.curve,g=e.innerRef,x=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,l),O=(0,u.SO)({x:n,x0:r,x1:o,y:i,y0:f,y1:p,defined:h,curve:m});return t?a.createElement(a.Fragment,null,t({path:O})):a.createElement("path",s({ref:g,className:c()("visx-area",b),d:O(y)||""},x))}var p=["id","children"];function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}function y(e){var t=e.id,n=e.children,r=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,p);return a.createElement("defs",null,a.createElement("clipPath",d({id:t},r),n))}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function h(e){var t=e.className,n=e.curve,r=e.clipAboveTo,o=e.clipBelowTo,i=e.data,u=e.defined,l=e.x,s=e.y0,p=e.y1,d=e.aboveAreaProps,h=e.belowAreaProps,b=e.id,m=void 0===b?"":b;return a.createElement("g",{className:c()("visx-threshold",t)},a.createElement(f,{curve:n,data:i,x:l,y1:p,defined:u},(function(e){var t=e.path,n=null,c=null;return n=t.y0(o)(i),c=t.y0(r)(i),a.createElement("g",null,a.createElement(y,{id:"threshold-clip-below-"+m},a.createElement("path",{d:n||""})),a.createElement(y,{id:"threshold-clip-above-"+m},a.createElement("path",{d:c||""})))})),a.createElement(f,v({curve:n,data:i,defined:u,x:l,y0:s,y1:p,strokeWidth:0,clipPath:"url(#threshold-clip-below-"+m+")"},h)),a.createElement(f,v({curve:n,data:i,defined:u,x:l,y0:s,y1:p,strokeWidth:0,clipPath:"url(#threshold-clip-above-"+m+")"},d)))}y.propTypes={id:o().string.isRequired,children:o().node},h.propTypes={className:o().string,clipAboveTo:o().oneOfType([o().func,o().number]).isRequired,clipBelowTo:o().oneOfType([o().func,o().number]).isRequired,id:o().string.isRequired,data:o().array.isRequired,defined:o().func,x:o().oneOfType([o().func,o().number]).isRequired,y0:o().oneOfType([o().func,o().number]).isRequired,y1:o().oneOfType([o().func,o().number]).isRequired}},90659:function(e,t,n){"use strict";var r=n(67403),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,i,c,u,l,s=!1;t||(t={}),n=t.debug||!1;try{if(i=r(),c=document.createRange(),u=document.getSelection(),(l=document.createElement("span")).textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=o[t.format]||o.default;window.clipboardData.setData(a,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(l),c.selectNodeContents(l),u.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");s=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(c):u.removeAllRanges()),l&&document.body.removeChild(l),i()}return s}},11984:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=c(n(82684)),a=c(n(90659)),i=["text","onCopy","options","children"];function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function y(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(u,e);var t,n,r,c=y(u);function u(){var e;f(this,u);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(h(e=c.call.apply(c,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,i=n.onCopy,c=n.children,u=n.options,l=o.default.Children.only(c),s=(0,a.default)(r,u);i&&i(r,s),l&&l.props&&"function"===typeof l.props.onClick&&l.props.onClick(t)})),e}return t=u,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=s(e,i),r=o.default.Children.only(t);return o.default.cloneElement(r,l(l({},n),{},{onClick:this.onClick}))}}])&&p(t.prototype,n),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.default.PureComponent);t.CopyToClipboard=g,m(g,"defaultProps",{onCopy:void 0,options:void 0})},64866:function(e,t,n){"use strict";var r=n(11984).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},44152:function(e,t,n){"use strict";n.d(t,{r:function(){return l}});var r=n(82684);const o=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"===typeof e?e(t):e;if(o!==t){const e=t;t=r?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,a={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,o,a),a};var a=n(81550);const{useSyncExternalStoreWithSelector:i}=a;const c=e=>{const t="function"===typeof e?(e=>e?o(e):o)(e):e,n=(e,n)=>function(e,t=e.getState,n){const o=i(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,r.useDebugValue)(o),o}(t,e,n);return Object.assign(n,t),n};var u=e=>e?c(e):c;const l=e=>{const t=u((()=>e)),n=(Object.keys(e),(e,n)=>{t.setState((t=>{return{[e]:(r=t[e],o=n,"function"==typeof o?o(r):o)};var r,o}))});return{useGlobalState:e=>{const o=(0,r.useCallback)((t=>t[e]),[e]);return[t(o),(0,r.useCallback)((t=>n(e,t)),[e])]},getGlobalState:e=>t.getState()[e],setGlobalState:n,subscribe:(e,n)=>{t.subscribe(((t,r)=>{t[e]!==r[e]&&n(t[e])}))}}}},67403:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},1589:function(e,t,n){"use strict";var r=n(82684);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=r.useState,i=r.useEffect,c=r.useLayoutEffect,u=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(r){return!0}}var s="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return c((function(){o.value=n,o.getSnapshot=t,l(o)&&s({inst:o})}),[e,n,t]),i((function(){return l(o)&&s({inst:o}),e((function(){l(o)&&s({inst:o})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:s},73847:function(e,t,n){"use strict";var r=n(82684),o=n(48216);var a="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=o.useSyncExternalStore,c=r.useRef,u=r.useEffect,l=r.useMemo,s=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=c(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=l((function(){function e(e){if(!u){if(u=!0,i=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return c=t}return c=e}if(t=c,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,c=n)}var i,c,u=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,o]);var d=i(e,f[0],f[1]);return u((function(){p.hasValue=!0,p.value=d}),[d]),s(d),d}},48216:function(e,t,n){"use strict";e.exports=n(1589)},81550:function(e,t,n){"use strict";e.exports=n(73847)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4741],{1210:function(e,n,t){t.d(n,{Z:function(){return E}});var r=t(82394),i=t(21831),o=t(82684),u=t(47999),c=t(28358),l=t(93461),s=t(57384),a=t(12344),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var h=o.forwardRef(p),j=t(32063),g=t(15270),v=t(82531),b=t(66166),m=t(3055),x=t(49125),Z=t(91427),O=t(24141);function _(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var E=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,_=e.afterWidthOverride,E=e.before,w=e.beforeWidth,y=e.breadcrumbs,I=e.children,P=e.errors,k=e.headerMenuItems,D=e.navigationItems,S=e.setErrors,A=e.subheaderChildren,N=e.title,R=e.uuid,T=(0,O.i)().width,L="dashboard_after_width_".concat(R),M="dashboard_before_width_".concat(R),V=(0,o.useRef)(null),H=(0,o.useState)(_?p:(0,Z.U2)(L,p)),U=H[0],Y=H[1],F=(0,o.useState)(!1),B=F[0],z=F[1],W=(0,o.useState)(E?Math.max((0,Z.U2)(M,w),13*x.iI):null),J=W[0],G=W[1],X=(0,o.useState)(!1),$=X[0],q=X[1],K=(0,o.useState)(null)[1],Q=v.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===Q||void 0===Q?void 0:Q.projects,ne=[];y?ne.push.apply(ne,(0,i.Z)(y)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return N}}]),(0,o.useEffect)((function(){null===V||void 0===V||!V.current||B||$||null===K||void 0===K||K(V.current.getBoundingClientRect().width)}),[B,U,$,J,V,K,T]),(0,o.useEffect)((function(){B||(0,Z.t8)(L,U)}),[r,B,U,L]),(0,o.useEffect)((function(){$||(0,Z.t8)(M,J)}),[$,J,M]);var te=(0,b.Z)(p);return(0,o.useEffect)((function(){_&&te!==p&&Y(p)}),[_,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:N}),(0,f.jsx)(a.Z,{breadcrumbs:ne,menuItems:k,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(g.Z,{navigationItems:D})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(j.Z,{after:t,afterHeightOffset:m.Mz,afterHidden:r,afterMousedownActive:B,afterWidth:U,before:E,beforeHeightOffset:m.Mz,beforeMousedownActive:$,beforeWidth:d.k1+(E?J:0),hideAfterCompletely:!0,leftOffset:E?d.k1:null,mainContainerRef:V,setAfterMousedownActive:z,setAfterWidth:Y,setBeforeMousedownActive:q,setBeforeWidth:G,children:[A&&(0,f.jsx)(h,{children:A}),I]})})]}),P&&(0,f.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===S||void 0===S?void 0:S(null)},children:(0,f.jsx)(c.Z,C(C({},P),{},{onClose:function(){return null===S||void 0===S?void 0:S(null)}}))})]})}},65597:function(e,n,t){t.d(n,{f:function(){return c}});var r=t(9518),i=t(23831),o=t(49125),u=t(73942),c=r.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*o.iI,u.TR,2*o.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||i.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},97496:function(e,n,t){var r=t(75582),i=t(12691),o=t.n(i),u=t(34376),c=t.n(u),l=t(82684),s=t(83455),a=t(60328),d=t(47999),f=t(93461),p=t(67971),h=t(10919),j=t(47409),g=t(86673),v=t(54283),b=t(58180),m=t(19711),x=t(82531),Z=t(23831),O=t(73942),_=t(10503),C=t(65597),E=t(93348),w=t(45838),y=t(49125),I=t(42305),P=t(19395),k=t(9736),D=t(96510),S=t(28598);function A(e){var n=e.cancelingRunId,t=e.disabled,i=e.isLoadingCancelPipeline,o=e.onCancel,u=e.onSuccess,c=e.pipelineRun,f=e.setCancelingRunId,h=e.setErrors,b=e.setShowConfirmationId,w=e.showConfirmationId,P=(0,k.Ct)(),A=c||{},N=A.id,R=A.pipeline_schedule_id,T=A.pipeline_schedule_token,L=A.pipeline_schedule_type,M=A.status,V=i&&N===n&&j.V.RUNNING===M,H=(0,s.Db)(E.Xm.API===L&&T?x.ZP.pipeline_runs.pipeline_schedules.useCreateWithParent(R,T):x.ZP.pipeline_runs.pipeline_schedules.useCreate(R),{onSuccess:function(e){return(0,D.wD)(e,{callback:function(){u()},onErrorCallback:function(e,n){return null===h||void 0===h?void 0:h({errors:n,response:e})}})}}),U=(0,r.Z)(H,1)[0],Y=(0,l.useCallback)((function(){b(null),U({pipeline_run:{execution_date:(0,I.d$)((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0}),pipeline_schedule_id:null===c||void 0===c?void 0:c.pipeline_schedule_id,pipeline_uuid:null===c||void 0===c?void 0:c.pipeline_uuid,variables:null===c||void 0===c?void 0:c.variables}})}),[U,c,b]),F=(0,l.useCallback)((function(){b(null),f(N),o({id:N,status:j.V.CANCELLED})}),[o,N,f,b]);return(0,S.jsxs)("div",{style:{position:"relative"},children:[(0,S.jsx)(a.Z,{backgroundColor:V&&Z.Z.accent.yellow,beforeIcon:j.V.INITIAL!==M&&!t&&(0,S.jsxs)(S.Fragment,{children:[j.V.COMPLETED===M&&(0,S.jsx)(_.Jr,{size:2*y.iI}),[j.V.FAILED,j.V.CANCELLED].includes(M)&&(0,S.jsx)(_.Py,{inverted:j.V.CANCELLED===M&&!P,size:2*y.iI}),[j.V.RUNNING].includes(M)&&(0,S.jsx)(v.Z,{color:V?Z.Z.status.negative:Z.Z.monotone.white,small:!0})]}),borderRadius:O.D7,danger:j.V.FAILED===M&&!P,default:j.V.INITIAL===M,disabled:t||P,loading:!c,onClick:function(){return b(N)},padding:"6px",primary:j.V.RUNNING===M&&!V&&!P,warning:j.V.CANCELLED===M&&!P,children:t?"Ready":V?"Canceling":j.D[M]}),(0,S.jsx)(d.Z,{onClickOutside:function(){return b(null)},open:w===N,children:(0,S.jsxs)(C.f,{children:[[j.V.RUNNING,j.V.INITIAL].includes(M)&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(m.ZP,{bold:!0,color:"#9ECBFF",children:"Run is in progress"}),(0,S.jsx)(g.Z,{mb:1}),(0,S.jsxs)(m.ZP,{children:["This pipeline run is currently ongoing. Retrying will cancel",(0,S.jsx)("br",{}),"the current pipeline run."]}),(0,S.jsx)(m.ZP,{}),(0,S.jsx)(g.Z,{mt:1,children:(0,S.jsxs)(p.Z,{children:[(0,S.jsx)(a.Z,{onClick:function(){F(),Y()},children:"Retry run"}),(0,S.jsx)(g.Z,{ml:1}),(0,S.jsx)(a.Z,{onClick:F,children:"Cancel run"})]})})]}),[j.V.CANCELLED,j.V.FAILED,j.V.COMPLETED].includes(M)&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(m.ZP,{bold:!0,color:"#9ECBFF",children:["Run ",M]}),(0,S.jsx)(g.Z,{mb:1}),(0,S.jsx)(m.ZP,{children:"Retry the run with changes you have made to the pipeline."}),(0,S.jsx)(g.Z,{mb:1}),(0,S.jsx)(a.Z,{onClick:Y,children:"Retry run"})]})]})})]})}n.Z=function(e){var n=e.disableRowSelect,t=e.emptyMessage,i=void 0===t?"No runs available":t,u=e.fetchPipelineRuns,d=e.onClickRow,v=e.pipelineRuns,Z=e.selectedRun,C=e.setErrors,E=(0,l.useState)(null),I=E[0],k=E[1],N=(0,l.useState)(null),R=N[0],T=N[1],L=(0,s.Db)((function(e){var n=e.id,t=e.status;return x.ZP.pipeline_runs.useUpdate(n)({pipeline_run:{status:t}})}),{onSuccess:function(e){return(0,D.wD)(e,{callback:function(){k(null),u()},onErrorCallback:function(e,n){k(null),null===C||void 0===C||C({errors:n,response:e})}})}}),M=(0,r.Z)(L,2),V=M[0],H=M[1].isLoading,U=[null,1,2,1,1,null],Y=[{uuid:"Status"},{uuid:"Pipeline UUID"},{uuid:"Date"},{uuid:"Trigger"},{uuid:"Block runs"},{uuid:"Completed"},{uuid:"Logs"}];return!n&&d&&(U.push(null),Y.push({label:function(){return""},uuid:"action"})),(0,S.jsx)(w.cl,{minHeight:30*y.iI,overflowVisible:!!R,children:0===(null===v||void 0===v?void 0:v.length)?(0,S.jsx)(g.Z,{px:3,py:1,children:(0,S.jsx)(m.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:i})}):(0,S.jsx)(b.Z,{columnFlex:U,columns:Y,isSelectedRow:function(e){return!n&&v[e].id===(null===Z||void 0===Z?void 0:Z.id)},onClickRow:n?null:d,rowVerticalPadding:6,rows:null===v||void 0===v?void 0:v.map((function(e,t){var r=e.block_runs_count,i=e.completed_at,l=e.execution_date,s=e.id,b=e.pipeline_schedule_id,x=e.pipeline_schedule_name,Z=e.pipeline_uuid,E=e.status,w=!s&&!E,D=[];return D=t>0&&v[t-1].execution_date===e.execution_date&&v[t-1].pipeline_schedule_id===e.pipeline_schedule_id?[(0,S.jsx)(g.Z,{ml:1,children:(0,S.jsxs)(p.Z,{alignItems:"center",children:[(0,S.jsx)(_.TT,{size:2*y.iI,useStroke:!0}),(0,S.jsx)(a.Z,{borderRadius:O.D7,notClickable:!0,padding:"6px",children:(0,S.jsx)(m.ZP,{muted:!0,children:j.D[E]})})]})},"row_status"),(0,S.jsx)(m.ZP,{default:!0,monospace:!0,muted:!0,children:Z},"row_pipeline_uuid"),(0,S.jsx)(m.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_date_retry"),(0,S.jsx)(m.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_trigger_retry"),(0,S.jsx)(o(),{as:"/pipelines/".concat(Z,"/runs/").concat(s),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,S.jsx)(h.Z,{bold:!0,muted:!0,children:"See block runs (".concat(r,")")})},"row_block_runs"),(0,S.jsx)(m.ZP,{monospace:!0,muted:!0,children:i&&(0,P.eI)(i).toISOString().split(".")[0]||"-"},"row_completed"),(0,S.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(Z,"/logs?pipeline_run_id[]=").concat(s))},children:(0,S.jsx)(_.B4,{default:!0,size:2*y.iI})},"row_logs")]:[(0,S.jsx)(A,{cancelingRunId:I,disabled:w,isLoadingCancelPipeline:H,onCancel:V,onSuccess:u,pipelineRun:e,setCancelingRunId:k,setErrors:C,setShowConfirmationId:T,showConfirmationId:R},"row_retry_button"),(0,S.jsx)(m.ZP,{default:!0,monospace:!0,children:Z},"row_pipeline_uuid"),(0,S.jsx)(m.ZP,{default:!0,monospace:!0,children:l&&(0,P.eI)(l).toISOString().split(".")[0]||"-"},"row_date"),(0,S.jsx)(o(),{as:"/pipelines/".concat(Z,"/triggers/").concat(b),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,S.jsx)(h.Z,{bold:!0,sameColorAsText:!0,children:x})},"row_trigger"),(0,S.jsx)(o(),{as:"/pipelines/".concat(Z,"/runs/").concat(s),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,S.jsx)(h.Z,{bold:!0,disabled:w,sameColorAsText:!0,children:w?"":"See block runs (".concat(r,")")})},"row_block_runs"),(0,S.jsx)(m.ZP,{default:!0,monospace:!0,children:i&&(0,P.eI)(i).toISOString().split(".")[0]||"-"},"row_completed"),(0,S.jsx)(a.Z,{default:!0,disabled:w,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(Z,"/logs?pipeline_run_id[]=").concat(s))},children:(0,S.jsx)(_.B4,{default:!0,size:2*y.iI})},"row_item_13")],!n&&d&&D.push((0,S.jsx)(f.Z,{flex:1,justifyContent:"flex-end",children:(0,S.jsx)(_._Q,{default:!0,size:2*y.iI})})),D})),uuid:"pipeline-runs"})})}},19395:function(e,n,t){t.d(n,{IJ:function(){return a},Vx:function(){return f},eI:function(){return d},gU:function(){return h},tL:function(){return p},vJ:function(){return j}});var r,i,o=t(82394),u=t(92083),c=t.n(u);function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,r=n.completed_at,i=n.started_at,u=n.status,l=null;i&&r&&(l=c()(r).valueOf()-c()(i).valueOf());return s(s({},e),{},(0,o.Z)({},t,{runtime:l,status:u}))}),{})}function d(e){if(!e)return null;var n=new Date(c()(e).valueOf()),t=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());return new Date(t)}function f(e){return d(e).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(i||(i={}));var p=(r={},(0,o.Z)(r,i.DAY,86400),(0,o.Z)(r,i.HOUR,3600),(0,o.Z)(r,i.MINUTE,60),(0,o.Z)(r,i.SECOND,1),r);function h(e){var n=i.SECOND,t=e;return e%86400===0?(t/=86400,n=i.DAY):e%3600===0?(t/=3600,n=i.HOUR):e%60===0&&(t/=60,n=i.MINUTE),{time:t,unit:n}}function j(e,n){return e*p[n]}},51099:function(e,n,t){t.d(n,{Q:function(){return a}});t(82684);var r=t(60328),i=t(67971),o=t(86673),u=t(10503),c=t(73899),l=t(49125),s=t(28598),a=22;n.Z=function(e){var n=e.page,t=e.maxPages,a=e.onUpdate,d=e.totalPages,f=[],p=t;if(p>d)f=Array.from({length:d},(function(e,n){return n}));else{var h=Math.floor(p/2),j=n-h;n+h>=d?(j=d-p+2,p-=2):n-h<=0?(j=0,p-=2):(p-=4,j=n-Math.floor(p/2)),f=Array.from({length:p},(function(e,n){return n+j}))}return(0,s.jsx)(s.Fragment,{children:d>0&&(0,s.jsxs)(i.Z,{alignItems:"center",children:[(0,s.jsx)(r.Z,{disabled:0===n,onClick:function(){return a(n-1)},children:(0,s.jsx)(u.Hd,{size:1.5*l.iI,stroke:"#AEAEAE"})}),!f.includes(0)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){return a(0)},borderLess:!0,noBackground:!0,children:1})},0),!f.includes(1)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0)]}),f.map((function(e){return(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){e!==n&&a(e)},notClickable:e===n,backgroundColor:e===n&&c.a$,borderLess:!0,noBackground:!0,children:e+1})},e)})),!f.includes(d-1)&&(0,s.jsxs)(s.Fragment,{children:[!f.includes(d-2)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0),(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){return a(d-1)},borderLess:!0,noBackground:!0,children:d})},d-1)]}),(0,s.jsx)(o.Z,{ml:1}),(0,s.jsx)(r.Z,{disabled:n===d-1,onClick:function(){return a(n+1)},children:(0,s.jsx)(u.Kw,{size:1.5*l.iI,stroke:"#AEAEAE"})})]})})}},47409:function(e,n,t){t.d(n,{D:function(){return u},V:function(){return o}});var r,i=t(82394),o=t(66050).V,u=(r={},(0,i.Z)(r,o.CANCELLED,"Cancelled"),(0,i.Z)(r,o.COMPLETED,"Done"),(0,i.Z)(r,o.FAILED,"Failed"),(0,i.Z)(r,o.INITIAL,"Ready"),(0,i.Z)(r,o.RUNNING,"Running"),r)},93348:function(e,n,t){t.d(n,{TR:function(){return d},U5:function(){return l},Xm:function(){return o},Z4:function(){return a},fq:function(){return c},kJ:function(){return s}});var r,i,o,u=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var c,l,s,a=(r={},(0,u.Z)(r,o.API,(function(){return"API"})),(0,u.Z)(r,o.EVENT,(function(){return"event"})),(0,u.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(c||(c={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(l||(l={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(s||(s={}));var d=(i={},(0,u.Z)(i,s.CREATED_AT,"Created at"),(0,u.Z)(i,s.NAME,"Name"),(0,u.Z)(i,s.PIPELINE,"Pipeline"),(0,u.Z)(i,s.STATUS,"Status"),(0,u.Z)(i,s.TYPE,"Type"),i)},42305:function(e,n,t){t.d(n,{A5:function(){return f},AY:function(){return p},BP:function(){return d},JX:function(){return a},OC:function(){return o},Pc:function(){return h},Tz:function(){return s},d$:function(){return l},lJ:function(){return j},n1:function(){return c}});var r=t(92083),i=t.n(r),o="YYYY-MM-DD HH:mm:ss",u="YYYY-MM-DD HH:mm",c="YYYY-MM-DD";function l(e,n){var t=n.dayAgo,r=n.includeSeconds,c=n.utcFormat,l=i()(e),s=u;return c&&(l=l.utc()),t&&(l=l.subtract(1,"days")),r&&(s=o),l.format(s)}function s(e){var n=l((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0});return null!==e&&void 0!==e&&e.dateObj?new Date(n):n}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?o:u)}function d(e,n,t){return i()(e).utc().hours(+n).minutes(+t).format()}function f(e){return i()(e).unix()}function p(e,n,t){return"".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t)}function h(e){var n=i().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function j(e){return e.padStart(2,"0")}},33766:function(e,n,t){t.d(n,{g_:function(){return f},u7:function(){return d}});var r=t(75582),i=t(82394),o=t(34376),u=t.n(o),c=t(59e3),l=t(24224);function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function d(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,o=t.pushHistory,l=i?{}:(0,c.iV)();n=window.location.pathname;var s=o?u().push:u().replace,d=a(a({},l),e);Object.entries(e).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];"undefined"!==typeof i&&null!==i||delete d[t]}));var f=(0,c.uM)(d);f.length>=1&&(f="?".concat(f));var p="".concat(n.split("?")[0]).concat(f);return s(u().router.pathname,p,{shallow:!0})}function f(e,n,t){var i=t.addingMultipleValues,o=t.isList,u=t.itemsPerPage,c=t.pushHistory,s=void 0!==c&&c,f=t.resetLimitParams,p=a({},e);i?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];if(Array.isArray(i)){var o="".concat(t,"[]");p[o]=i.map(String)}})):o?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1],o=String(i),u="".concat(t,"[]"),c=p[u];c&&Array.isArray(c)?(c=c.map(String)).includes(o)?p[u]=(0,l.Od)(c,(function(e){return e===o})):p[u]=c.concat(o):p[u]=[o]})):p=a(a({},p),n),f&&(p._limit=u||20,p._offset=0),d(p,{pushHistory:s})}}}]);
@@ -1 +0,0 @@
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.SECOND,r.MINUTE,r.HOUR,r.DAY,r.WEEK,r.MONTH,r.YEAR,r.CUSTOM]},2713:function(e,n,t){"use strict";var r=t(82394),i=t(44495),l=t(67971),c=t(55378),a=t(86673),s=t(19711),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(33766),N=t(7715),T=t(9736),M=t(96510),L=t(66653),F=t(59e3),U=t(28598);function A(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function R(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?A(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):A(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var H=function(e){var n=e.backfill,t=e.fetchBackfill,i=e.pipeline,l=e.variables,c=(0,T.Ct)(),a=(0,o.useRouter)(),A=n||{},H=A.block_uuid,B=A.end_datetime,V=A.id,z=A.interval_type,W=A.interval_units,Y=A.name,J=A.pipeline_run_dates,q=A.start_datetime,G=A.status,K=A.total_run_count,X=A.variables,Q=void 0===X?{}:X,$=i.uuid,ee=(0,F.iV)(),ne=(0,s.useState)(null),te=ne[0],re=ne[1],ie={_limit:40,_offset:40*(null!==ee&&void 0!==ee&&ee.page?ee.page:0)};null!==ee&&void 0!==ee&&ee.status&&(ie.status=ee.status);var le=k.ZP.pipeline_runs.list(R(R({},ie),{},{backfill_id:V,order_by:["id DESC"]}),{refreshInterval:3e3,revalidateOnFocus:!0},{pauseFetch:!V}),ce=le.data,ae=le.mutate,se=!(q&&B&&z&&W),ue=!G,oe=(0,s.useMemo)((function(){return(ue?J:null===ce||void 0===ce?void 0:ce.pipeline_runs)||[]}),[ce,J,ue]),de=(0,s.useMemo)((function(){var e;return(null===ce||void 0===ce||null===(e=ce.metadata)||void 0===e?void 0:e.count)||[]}),[ce]),pe=(0,s.useState)(null),fe=pe[0],be=pe[1],he=(0,s.useMemo)((function(){var e=null!==ee&&void 0!==ee&&ee.page?ee.page:0;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(j.Z,{disableRowSelect:ue,emptyMessage:null!==ee&&void 0!==ee&&ee.status?"No runs available":'No runs available. Please complete backfill configuration by clicking "Edit backfill" above.',fetchPipelineRuns:ae,onClickRow:function(e){return be((function(n){var t=oe[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:oe,selectedRun:fe}),(0,U.jsx)(Z.Z,{p:2,children:(0,U.jsx)(m.Z,{page:Number(e),maxPages:9,onUpdate:function(e){var n=Number(e),t=R(R({},ee),{},{page:n>=0?n:0});a.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat($,"/triggers/").concat(V,"?").concat((0,F.uM)(t)))},totalPages:Math.ceil(de/40)})})]})}),[ae,i,oe,fe]),me=(0,s.useState)(P.G[0]),ve=me[0],je=me[1],ge=(0,u.Db)(k.ZP.backfills.useUpdate(V),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){t(),ae()},onErrorCallback:function(e,n){return re({errors:n,response:e})}})}}),xe=(0,r.Z)(ge,2),Ze=xe[0],ye=xe[1].isLoading,Oe=(0,s.useMemo)((function(){return!!G&&(d.rn.CANCELLED!==G&&d.rn.FAILED!==G)}),[G]),ke=(0,s.useMemo)((function(){return G&&d.rn.CANCELLED!==G&&d.rn.FAILED!==G&&d.rn.INITIAL!==G&&d.rn.RUNNING!==G}),[G]),Pe=(0,s.useMemo)((function(){var e={default:!0,size:1.5*w.iI},n=[[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(_.VW,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Backfill type"})]},"backfill_type_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:H?d._7:d.VV},"backfill_type")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(_.rs,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Status"})]},"backfill_status_label"),(0,U.jsx)(O.ZP,{danger:d.rn.CANCELLED===G||d.rn.FAILED==G,default:d.rn.INITIAL===G,monospace:!0,muted:!G,success:d.rn.RUNNING===G||d.rn.COMPLETED===G,children:G||"inactive"},"backfill_status")]];return H||n.push.apply(n,[[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(_.aw,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Start date and time"})]},"backfill_start_date_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:q},"backfill_start_date")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(_.aw,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"End date and time"})]},"backfill_end_date_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:B},"backfill_end_date")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(_.Pf,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Interval type"})]},"interval_type_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:z&&(0,D.kC)(z)},"interval_type")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(_.Pf,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Interval units"})]},"interval_units_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:W},"interval_units")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(_.qZ,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Total runs"})]},"total_runs_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:K},"total_runs")]]),(0,U.jsx)(y.Z,{columnFlex:[null,1],rows:n})}),[H,B,z,W,Oe,q,G]),_e=(0,s.useMemo)((function(){return Q||{}}),[Q]),Ie=(0,s.useMemo)((function(){var e,n=[];return(0,N.Qr)(_e)?n=(0,C.wx)(l,(function(e){return"global"===e.uuid})):Object.entries(_e).forEach((function(e){var t=(0,r.Z)(e,2),i=t[0],l=t[1];n.push({uuid:i,value:(0,C.FS)(l)})})),"undefined"!==typeof n&&null!==(e=n)&&void 0!==e&&e.length?(0,U.jsx)(y.Z,{columnFlex:[null,1],rows:n.map((function(e){var n=e.uuid,t=e.value;return[(0,U.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:n},"settings_variable_label_".concat(n)),(0,U.jsx)(O.ZP,{monospace:!0,small:!0,children:t},"settings_variable_".concat(n))]}))}):null}),[_e,l]);return(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)(v.Z,{afterHidden:!fe,before:(0,U.jsxs)(I.M,{children:[(0,U.jsxs)(Z.Z,{mb:w.HN,pt:w.cd,px:w.cd,children:[(0,U.jsx)(Z.Z,{mb:w.cd,children:(0,U.jsx)(_.yg,{size:5*w.iI})}),(0,U.jsx)(h.Z,{children:Y})]}),(0,U.jsx)(Z.Z,{px:w.cd,children:(0,U.jsx)(h.Z,{level:5,children:"Settings"})}),(0,U.jsx)(f.Z,{light:!0,mt:1,short:!0}),Pe,Ie&&(0,U.jsxs)(Z.Z,{my:w.HN,children:[(0,U.jsx)(Z.Z,{px:w.cd,children:(0,U.jsx)(h.Z,{level:5,children:"Runtime variables"})}),(0,U.jsx)(f.Z,{light:!0,mt:1,short:!0}),Ie]})]}),beforeWidth:34*w.iI,breadcrumbs:[{label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat($,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{label:function(){return Y},linkProps:{as:"/pipelines/".concat($,"/backfills/").concat(V),href:"/pipelines/[pipeline]/backfills/[...slug]"}}],buildSidekick:function(e){return(0,P.Z)(R(R({},e),{},{selectedRun:fe,selectedTab:ve,setSelectedTab:je}))},errors:te,pageName:S.M.BACKFILLS,pipeline:i,setErrors:re,subheader:(0,U.jsxs)(b.Z,{alignItems:"center",children:[!ke&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(p.Z,{beforeIcon:Oe?(0,U.jsx)(_.dz,{size:2*w.iI}):(0,U.jsx)(_.Py,{inverted:!(d.rn.CANCELLED===G||d.rn.FAILED===G),size:2*w.iI}),danger:Oe,disabled:se,loading:ye,onClick:function(e){(0,L.j)(e),Ze({backfill:{status:Oe?d.rn.CANCELLED:d.rn.INITIAL}})},outline:!0,success:!Oe&&!(d.rn.CANCELLED===G||d.rn.FAILED===G)&&!se,children:Oe?"Cancel backfill":d.rn.CANCELLED===G||d.rn.FAILED===G?"Retry backfill":"Start backfill"}),(0,U.jsx)(Z.Z,{mr:w.cd})]}),!c&&(0,U.jsxs)(U.Fragment,{children:[G===g.V.COMPLETED?(0,U.jsx)(O.ZP,{bold:!0,default:!0,large:!0,children:"Filter runs by status:"}):(0,U.jsx)(p.Z,{linkProps:{as:"/pipelines/".concat($,"/backfills/").concat(V,"/edit"),href:"/pipelines/[pipeline]/backfills/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Edit backfill"}),(0,U.jsx)(Z.Z,{mr:w.cd})]}),!ue&&(0,U.jsxs)(x.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?a.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat($,"/backfills/").concat(V)):(0,E.u7)({page:0,status:e.target.value})},paddingRight:4*w.iI,placeholder:"Select run status",value:(null===ee||void 0===ee?void 0:ee.status)||"all",children:[(0,U.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(g.V).map((function(e){return(0,U.jsx)("option",{value:e,children:g.D[e]},e)}))]})]}),title:function(){return Y},uuid:"backfill/detail",children:[(0,U.jsx)(Z.Z,{mt:w.cd,px:w.cd,children:(0,U.jsx)(h.Z,{level:5,children:"Runs for this backfill"})}),(0,U.jsx)(f.Z,{light:!0,mt:w.cd,short:!0}),he]})})},B=t(2713),V=t(47999),z=t(93461),W=t(82944),Y=[{label:function(){return"Date and time window"},description:function(){return"Backfill between a date and time range."},uuid:d.VV}],J=t(18025),q=t(19395);function G(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function K(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?G(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):G(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var X=function(e){var n=e.backfill,t=e.fetchBackfill,i=e.pipeline,l=(e.variables,(0,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,E=j.interval_units,T=(j.end_datetime,j.start_datetime,j.name),L=i.uuid,F=(0,s.useState)(null),A=F[0],R=F[1],H=(0,s.useState)({}),G=H[0],X=(H[1],(0,s.useState)(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,q.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,q.eI)(r)),be({hour:i.substring(0,2),minute:i.substring(3,5)})}}}),[n]);var je=(0,s.useMemo)((function(){var e=[[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(_.KJ,{default:!0,size:1.5*w.iI}),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Backfill name"})]},"model_name_detail"),(0,U.jsx)(W.Z,{monospace:!0,onChange:function(e){e.preventDefault(),m((function(n){return K(K({},n),{},{name:e.target.value})}))},placeholder:"Name this backfill",value:T},"model_name_input_detail")]];return d.VV===Q&&e.push.apply(e,[[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(_.aw,{default:!0,size:1.5*w.iI}),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Start date and time"})]},"start_time"),(0,U.jsxs)("div",{style:{minHeight:"".concat(5.75*w.iI,"px")},children:[!ne&&(0,U.jsx)(W.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,U.jsx)("div",{style:{width:"400px"},children:(0,U.jsx)(V.Z,{disableEscape:!0,onClickOutside:function(){return te(!1)},open:ne,style:{position:"relative"},children:(0,U.jsx)(B.Z,{selectedDate:oe,selectedTime:me,setSelectedDate:de,setSelectedTime:ve,topPosition:!0})})})]},"start_time_input")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(_.aw,{default:!0,size:1.5*w.iI}),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"End date and time"})]},"end_time"),(0,U.jsxs)("div",{style:{minHeight:"".concat(5.75*w.iI,"px")},children:[!ie&&(0,U.jsx)(W.Z,{monospace:!0,onClick:function(){return le((function(e){return!e}))},onFocus:function(){return le(!0)},placeholder:"YYYY-MM-DD HH:MM",value:ae?"".concat(ae.toISOString().split("T")[0]," ").concat(null===fe||void 0===fe?void 0:fe.hour,":").concat(null===fe||void 0===fe?void 0:fe.minute):""}),(0,U.jsx)("div",{style:{width:"400px"},children:(0,U.jsx)(V.Z,{disableEscape:!0,onClickOutside:function(){return le(!1)},open:ie,style:{position:"relative"},children:(0,U.jsx)(B.Z,{selectedDate:ae,selectedTime:fe,setSelectedDate:se,setSelectedTime:be,topPosition:!0})})})]},"end_time_input")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(_.Pf,{default:!0,size:1.5*w.iI}),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Interval type"})]},"interval_type"),(0,U.jsxs)(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,U.jsx)("option",{value:""}),d.IB.map((function(e){return(0,U.jsx)("option",{value:e,children:(0,D.kC)(e)},e)}))]},"interval_type_input")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(_.Pf,{default:!0,size:1.5*w.iI}),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Interval units"})]},"interval_units"),(0,U.jsx)(W.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:E},"interval_unit_input")]]),(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Z.Z,{mb:2,px:w.cd,children:(0,U.jsx)(h.Z,{children:"Settings"})}),(0,U.jsx)(f.Z,{light:!0,short:!0}),(0,U.jsx)(y.Z,{columnFlex:[null,1],rows:e})]})}),[ae,oe,I,E,T,Q,ne,ie,fe,me]),ge=(0,u.Db)(k.ZP.backfills.useUpdate(P),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){t(),l.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(L,"/backfills/").concat(P))},onErrorCallback:function(e,n){return R({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,N.GL)(a,["name"])),{},{end_datetime:null,interval_type:null,interval_units:null,start_datetime:null,variables:(0,C.e7)(G)});return d._7===Q||(e.interval_type=I,e.interval_units=E,e.end_datetime=ae&&null!==fe&&void 0!==fe&&fe.hour&&null!==fe&&void 0!==fe&&fe.minute?"".concat(ae.toISOString().split("T")[0]," ").concat(null===fe||void 0===fe?void 0:fe.hour,":").concat(null===fe||void 0===fe?void 0:fe.minute,":00"):null,e.start_datetime=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,E,a,G,Q,fe,me]),ke=(0,s.useMemo)((function(){return d._7===Q?!g:!(ae&&oe&&I&&E)}),[g,ae,oe,I,E,Q,fe,me]);return(0,U.jsxs)(v.Z,{breadcrumbs:[{label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(L,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{label:function(){return null===a||void 0===a?void 0:a.name},linkProps:{as:"/pipelines/".concat(L,"/backfills/").concat(P),href:"/pipelines/[pipeline]/backfills/[...slug]"}}],errors:A,pageName:S.M.BACKFILLS,pipeline:i,setErrors:R,subheader:(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(p.Z,{disabled:ke,loading:ye,onClick:Oe,outline:!0,primary:!0,children:"Save changes"}),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(p.Z,{linkProps:{href:"/pipelines/[pipeline]/backfills/[...slug]",as:"/pipelines/".concat(L,"/backfills/").concat(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,U.jsxs)(Z.Z,{p:w.cd,children:[(0,U.jsxs)(Z.Z,{mb:2,children:[(0,U.jsx)(h.Z,{children:"Backfill type"}),(0,U.jsx)(O.ZP,{muted:!0,children:"How would you like this pipeline to be backfilled?"})]}),(0,U.jsx)(b.Z,{children:Y.map((function(e){var n=e.label,t=e.description,r=e.uuid,i=Q===r,l=Q&&!i;return(0,U.jsx)(p.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){$(r)},children:(0,U.jsx)(J.U,{selected:i,children:(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(z.Z,{children:(0,U.jsx)("input",{checked:i,type:"radio"})}),(0,U.jsx)(Z.Z,{mr:w.cd}),(0,U.jsxs)(z.Z,{alignItems:"flex-start",flexDirection:"column",children:[(0,U.jsx)(h.Z,{bold:!0,default:!i&&!l,level:5,muted:!i&&l,children:n()}),(0,U.jsx)(O.ZP,{default:!i&&!l,leftAligned:!0,muted:l,children:t()})]})]})})},r)}))})]}),(0,U.jsx)(Z.Z,{mt:5,children:je})]})},Q=t(41788);function $(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ee(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?$(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ne(e){var n=e.backfillId,t=e.pipelineUUID,r=e.subpath,i=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,U.jsx)(X,{backfill:p,fetchBackfill:d,pipeline:a,variables:l}):(0,U.jsx)(H,{backfill:p,fetchBackfill:d,pipeline:a,variables:l})}ne.getInitialProps=function(){var e=(0,i.Z)(a().mark((function e(n){var t,i,l,c,s,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,2083,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 +0,0 @@
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),O=t(82531),m=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],$=O.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,m.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),O=t(49125),m=b.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],v.n_,3*O.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*O.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:O.Mq,mt:O.cd,mx:O.cd,children:(0,y.jsx)(m,{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:O.cd,children:(0,y.jsxs)(f.Z,{mt:O.cd,px:O.cd,children:[(0,y.jsx)(d.Z,{level:5,children:E}),(0,y.jsx)(l.Z,{light:!0,mt:O.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 d(e).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.SECOND,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),O=t(10503),m=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===m.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)(O.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),m=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:m,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)(O.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,2083,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}]);