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 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4794],{59739:function(e,n,t){"use strict";var r=t(56669);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,c){if(c!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},44162:function(e,n,t){"use strict";t.d(n,{HC:function(){return x},Kf:function(){return s},Nk:function(){return p},PY:function(){return f},gE:function(){return b},jv:function(){return m},nz:function(){return h},oh:function(){return a},qn:function(){return d},t1:function(){return v},y9:function(){return g}});var r=t(9518),i=t(23831),o=t(86422),c=t(73942),l=t(49125),u=t(90880),a=68;function d(e,n){var t,r,c=((null===n||void 0===n||null===(t=n.theme)||void 0===t?void 0:t.borders)||i.Z.borders).light,l=((null===n||void 0===n||null===(r=n.theme)||void 0===r?void 0:r.monotone)||i.Z.monotone).grey500,u=n||{},a=u.blockColor,d=u.isSelected,s=u.theme;return d?c=((null===s||void 0===s?void 0:s.content)||i.Z.content).active:o.tf.TRANSFORMER===e||a===o.Lq.PURPLE?(c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).purple,l=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).purpleLight):o.tf.DATA_EXPORTER===e||a===o.Lq.YELLOW?(c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).yellow,l=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).yellowLight):o.tf.DATA_LOADER===e||a===o.Lq.BLUE?(c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).blue,l=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).blueLight):o.tf.SENSOR===e||a===o.Lq.PINK?(c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).pink,l=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).pinkLight):o.tf.DBT===e?(c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).dbt,l=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).dbtLight):o.tf.EXTENSION===e||a===o.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).teal,l=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).tealLight):(o.tf.SCRATCHPAD===e||a===o.Lq.GREY||o.tf.CUSTOM===e&&!a)&&(c=((null===s||void 0===s?void 0:s.content)||i.Z.content).default,l=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).contentDefaultTransparent),{accent:c,accentLight:l}}var s=(0,r.css)([""," "," "," "," "," "," ",""],(0,u.eR)(),(function(e){return!e.selected&&!e.hasError&&"\n border-color: ".concat(d(e.blockType,e).accentLight,";\n ")}),(function(e){return e.selected&&!e.hasError&&"\n border-color: ".concat(d(e.blockType,e).accent,";\n ")}),(function(e){return!e.selected&&e.hasError&&"\n border-color: ".concat((e.theme.accent||i.Z.accent).negativeTransparent,";\n ")}),(function(e){return e.selected&&e.hasError&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).danger,";\n ")}),(function(e){return e.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(e){return e.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),p=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),f=r.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],s,c.n_,c.M8,c.mP,(function(e){return"\n background-color: ".concat((e.theme||i.Z).background.content,";\n\n &:hover {\n border-color: ").concat(d(e.blockType,e).accent,";\n }\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-2"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," ",""],s,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,l.iI,(function(e){return"\n background-color: ".concat((e.theme||i.Z).background.content,";\n ")}),(function(e){return e.zIndex&&"\n z-index: ".concat(6+(e.zIndex||0),";\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-3"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],s,c.M8,c.mP,c.M8,c.mP,l.iI,l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeTextarea,";\n ")}),(function(e){return!e.hasOutput&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n ")})),b=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-4"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*l.iI,.5*l.iI,(function(e){return e.additionalZIndex>0&&"\n z-index: ".concat(8+e.additionalZIndex,";\n ")}),(function(e){return"\n background-color: ".concat((e.theme.text||i.Z.text).fileBrowser,";\n ")})),v=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-5"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*l.iI),g=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-6"})(["margin-bottom:","px;padding-bottom:","px;",""],l.cd*l.iI,l.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n padding-left: ").concat(e.normalPadding?l.iI:a,"px;\n ")})),x=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-7"})(["bottom:","px;left:","px;position:absolute;"],1*l.iI,a)},1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return P}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),l=t(28358),u=t(93461),a=t(57384),d=t(12344),s=t(72454),p=t(28598);function f(e,n){var t=e.children;return(0,p.jsx)(s.HS,{ref:n,children:t})}var h=o.forwardRef(f),m=t(32063),b=t(15270),v=t(82531),g=t(66166),x=t(3055),j=t(49125),O=t(91427),y=t(24141);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function _(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=function(e){var n,t=e.after,r=e.afterHidden,f=e.afterWidth,Z=e.afterWidthOverride,P=e.before,k=e.beforeWidth,S=e.breadcrumbs,w=e.children,C=e.errors,A=e.headerMenuItems,E=e.navigationItems,T=e.setErrors,I=e.subheaderChildren,R=e.title,D=e.uuid,L=(0,y.i)().width,N="dashboard_after_width_".concat(D),M="dashboard_before_width_".concat(D),B=(0,o.useRef)(null),H=(0,o.useState)(Z?f:(0,O.U2)(N,f)),Y=H[0],W=H[1],F=(0,o.useState)(!1),U=F[0],q=F[1],X=(0,o.useState)(P?Math.max((0,O.U2)(M,k),13*j.iI):null),z=X[0],J=X[1],G=(0,o.useState)(!1),V=G[0],K=G[1],Q=(0,o.useState)(null)[1],$=v.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===$||void 0===$?void 0:$.projects,ne=[];S?ne.push.apply(ne,(0,i.Z)(S)):(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 R}}]),(0,o.useEffect)((function(){null===B||void 0===B||!B.current||U||V||null===Q||void 0===Q||Q(B.current.getBoundingClientRect().width)}),[U,Y,V,z,B,Q,L]),(0,o.useEffect)((function(){U||(0,O.t8)(N,Y)}),[r,U,Y,N]),(0,o.useEffect)((function(){V||(0,O.t8)(M,z)}),[V,z,M]);var te=(0,g.Z)(f);return(0,o.useEffect)((function(){Z&&te!==f&&W(f)}),[Z,f,te]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.Z,{title:R}),(0,p.jsx)(d.Z,{breadcrumbs:ne,menuItems:A,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,p.jsxs)(s.Nk,{children:[0!==(null===E||void 0===E?void 0:E.length)&&(0,p.jsx)(s.lm,{children:(0,p.jsx)(b.Z,{navigationItems:E})}),(0,p.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(m.Z,{after:t,afterHeightOffset:x.Mz,afterHidden:r,afterMousedownActive:U,afterWidth:Y,before:P,beforeHeightOffset:x.Mz,beforeMousedownActive:V,beforeWidth:s.k1+(P?z:0),hideAfterCompletely:!0,leftOffset:P?s.k1:null,mainContainerRef:B,setAfterMousedownActive:q,setAfterWidth:W,setBeforeMousedownActive:K,setBeforeWidth:J,children:[I&&(0,p.jsx)(h,{children:I}),w]})})]}),C&&(0,p.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===T||void 0===T?void 0:T(null)},children:(0,p.jsx)(l.Z,_(_({},C),{},{onClose:function(){return null===T||void 0===T?void 0:T(null)}}))})]})}},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return l},W:function(){return c}});var r=t(9518),i=t(23831),o=t(3055),c=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},60547:function(e,n,t){"use strict";t.d(n,{Z:function(){return P}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),l=t(1210),u=t(34744),a=t(28358),d=t(67971),s=t(87372),p=t(86673),f=t(82531),h=t(9518),m=t(23831),b=t(73942),v=t(49125),g=h.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],b.n_,3*v.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||m.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 ')})),x=t(3055),j=t(95354),O=t(24141),y=t(28598);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function _(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=function(e){var n=e.after,t=e.afterHidden,r=e.afterWidth,h=e.before,m=e.beforeWidth,b=e.breadcrumbs,Z=e.buildSidekick,P=e.children,k=e.errors,S=e.headline,w=e.pageName,C=e.pipeline,A=e.setErrors,E=e.subheader,T=e.subheaderBackground,I=e.subheaderBackgroundImage,R=e.subheaderButton,D=e.subheaderText,L=e.title,N=e.uuid,M=(0,O.i)().height,B=C.uuid,H=f.ZP.pipelines.detail(B,{includes_outputs:!1},{revalidateOnFocus:!1}).data,Y=null===H||void 0===H?void 0:H.pipeline,W=(0,o.useMemo)((function(){return n||(Z?Z({height:M,heightOffset:x.Mz,pipeline:Y}):null)}),[n,Z,M,Y]),F=r||(W?50*v.iI:null),U=(0,o.useMemo)((function(){var e=[];return Y&&(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),b?(e.push({label:function(){return Y.uuid},linkProps:{as:"/pipelines/".concat(B,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,i.Z)(b)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return Y.name}})),e}),[b,Y,B]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(l.Z,{after:W,afterHidden:t,afterWidth:F,before:h,beforeWidth:m,breadcrumbs:U,navigationItems:(0,j.H)(w,Y),subheaderChildren:"undefined"!==typeof E&&E,title:Y?L?L(Y):Y.name:null,uuid:N,children:[(R||D)&&(0,y.jsx)(p.Z,{mb:v.Mq,mt:v.cd,mx:v.cd,children:(0,y.jsx)(g,{background:T,backgroundImage:I,children:(0,y.jsxs)(d.Z,{alignItems:"center",children:[R,D&&(0,y.jsx)(p.Z,{ml:3}),D]})})}),S&&(0,y.jsx)(p.Z,{p:v.cd,children:(0,y.jsxs)(p.Z,{mt:v.cd,px:v.cd,children:[(0,y.jsx)(s.Z,{level:5,children:S}),(0,y.jsx)(u.Z,{light:!0,mt:v.cd,short:!0})]})}),P]}),k&&(0,y.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===A||void 0===A?void 0:A(null)},children:(0,y.jsx)(a.Z,_(_({},k),{},{onClose:function(){return null===A||void 0===A?void 0:A(null)}}))})]})}},18025:function(e,n,t){"use strict";t.d(n,{J:function(){return u},U:function(){return l}});var r=t(9518),i=t(23831),o=t(73942),c=t(49125),l=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;"," ",""],o.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 ")})),u=r.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],o.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 ")}))},86422:function(e,n,t){"use strict";t.d(n,{$W:function(){return p},DA:function(){return s},HX:function(){return m},J8:function(){return h},Lq:function(){return a},Qj:function(){return b},Ut:function(){return j},V4:function(){return x},VZ:function(){return f},dO:function(){return d},f2:function(){return g},iZ:function(){return v},t6:function(){return c},tf:function(){return u}});var r,i,o,c,l=t(82394);!function(e){e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(c||(c={}));var u,a,d=(r={},(0,l.Z)(r,c.PYTHON,"PY"),(0,l.Z)(r,c.R,"R"),(0,l.Z)(r,c.SQL,"SQL"),(0,l.Z)(r,c.YAML,"YAML"),r);!function(e){e.CHART="chart",e.CUSTOM="custom",e.DATA_EXPORTER="data_exporter",e.DATA_LOADER="data_loader",e.DBT="dbt",e.EXTENSION="extension",e.SCRATCHPAD="scratchpad",e.SENSOR="sensor",e.TRANSFORMER="transformer"}(u||(u={})),function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(a||(a={}));var s,p=[u.CHART,u.CUSTOM,u.DATA_EXPORTER,u.DATA_LOADER,u.SCRATCHPAD,u.SENSOR,u.TRANSFORMER],f=[u.DATA_EXPORTER,u.DATA_LOADER],h=[u.DATA_EXPORTER,u.DATA_LOADER,u.TRANSFORMER],m=[u.DATA_EXPORTER,u.DATA_LOADER,u.DBT,u.TRANSFORMER],b=[u.CHART,u.SCRATCHPAD,u.SENSOR],v=[u.EXTENSION,u.SCRATCHPAD];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(s||(s={}));var g=[u.CUSTOM,u.DATA_EXPORTER,u.TRANSFORMER],x=(i={},(0,l.Z)(i,u.CUSTOM,"Custom"),(0,l.Z)(i,u.DATA_EXPORTER,"Data exporter"),(0,l.Z)(i,u.DATA_LOADER,"Data loader"),(0,l.Z)(i,u.EXTENSION,"Extension"),(0,l.Z)(i,u.SCRATCHPAD,"Scratchpad"),(0,l.Z)(i,u.SENSOR,"Sensor"),(0,l.Z)(i,u.TRANSFORMER,"Transformer"),i),j=[u.DATA_LOADER,u.TRANSFORMER,u.DATA_EXPORTER,u.SENSOR];o={},(0,l.Z)(o,u.DATA_EXPORTER,"DE"),(0,l.Z)(o,u.DATA_LOADER,"DL"),(0,l.Z)(o,u.SCRATCHPAD,"SP"),(0,l.Z)(o,u.SENSOR,"SR"),(0,l.Z)(o,u.TRANSFORMER,"TF")},2713:function(e,n,t){"use strict";var r=t(82394),i=t(44495),o=t(67971),c=t(55378),l=t(86673),u=t(19711),a=t(18025),d=t(49125),s=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 h(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,m=e.topPosition;return(0,p.jsxs)(a.J,{absolute:!0,topPosition:m,children:[(0,p.jsx)(i.ZP,{onChange:r,value:n}),(0,p.jsx)(l.Z,{mb:2}),(0,p.jsxs)(o.Z,{alignItems:"center",children:[(0,p.jsx)(u.ZP,{default:!0,large:!0,children:"Time (UTC):"}),(0,p.jsx)(l.Z,{pr:2}),(0,p.jsx)(c.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return h(h({},n),{},{hour:e.target.value})}))},paddingRight:5*d.iI,placeholder:"HH",value:null===t||void 0===t?void 0:t.hour,children:(0,s.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)(l.Z,{px:1,children:(0,p.jsx)(u.ZP,{bold:!0,large:!0,children:":"})}),(0,p.jsx)(c.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return h(h({},n),{},{minute:e.target.value})}))},paddingRight:5*d.iI,placeholder:"MM",value:null===t||void 0===t?void 0:t.minute,children:(0,s.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))}))})]})]})}},32316:function(e,n,t){"use strict";t.d(n,{Z:function(){return m}});var r=t(82684),i=t(60328),o=t(67971),c=t(882),l=t(86673),u=t(99994),a=t(9518),d=t(49125),s=t(37391),p=a.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],d.cd*d.iI,d.cd*d.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.allowScroll&&"\n overflow: auto;\n "}),s.w5),f=t(66653),h=t(28598);var m=function(e){var n=e.allowScroll,t=e.contained,a=e.noPadding,s=e.onClickTab,m=e.selectedTabUUID,b=e.small,v=e.tabs,g=(0,r.useMemo)((function(){var e=v.length,n=[];return v.forEach((function(t,r){var a=t.Icon,p=t.IconSelected,v=t.label,g=t.uuid,x=g===m,j=x&&p||a,O=v?v():g,y=(0,h.jsxs)(o.Z,{alignItems:"center",children:[j&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(j,{default:!x,size:2*d.iI}),(0,h.jsx)(l.Z,{mr:1})]}),O]});r>=1&&e>=2&&n.push((0,h.jsx)("div",{style:{marginLeft:1.5*d.iI}},"spacing-".concat(g))),x?n.push((0,h.jsx)(c.Z,{backgroundGradient:u.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:b,onClick:function(e){(0,f.j)(e),s(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:b,children:y},g)):n.push((0,h.jsx)("div",{style:{padding:4},children:(0,h.jsx)(i.Z,{borderLess:!0,compact:b,default:!0,onClick:function(e){(0,f.j)(e),s(t)},outline:!0,small:b,children:y})},"button-tab-".concat(g)))})),n}),[s,m,b,v]),x=(0,h.jsx)(o.Z,{alignItems:"center",children:g});return t?x:(0,h.jsx)(p,{allowScroll:n,noPadding:a,children:x})}},38341:function(e,n,t){"use strict";var r=t(21831),i=t(82394),o=t(26304),c=(t(82684),t(9518)),l=t(67971),u=t(86673),a=t(19711),d=t(23831),s=t(10503),p=t(73942),f=t(49125),h=t(28598),m=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];function b(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?b(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=c.default.div.withConfig({displayName:"Checkbox__CheckboxContainer",componentId:"sc-ujqx42-0"})(["display:inline-block;vertical-align:middle;cursor:pointer;"]),x=c.default.div.withConfig({displayName:"Checkbox__ErrorContainer",componentId:"sc-ujqx42-1"})(["margin-top:4px;"]),j=c.default.input.withConfig({displayName:"Checkbox__HiddenCheckbox",componentId:"sc-ujqx42-2"})(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;",""],(function(e){return e.notClickable&&"\n background-color: ".concat((e.theme.content||d.Z.content).disabled,"\n border-color: ").concat((e.theme.content||d.Z.content).disabled,"\n\n &:hover {\n cursor: not-allowed;\n }\n ")})),O=c.default.div.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-ujqx42-3"})(["border-radius:","px;height:","px;transition:all 150ms;width:","px;svg{position:relative;visibility:",";}"," "," "," "," input[disabled]{cursor:default;}"," ",""],.5*f.iI,2*f.iI,2*f.iI,(function(e){return e.checked||e.required?"visible":"hidden"}),(function(e){return e.large&&"\n svg {\n left: -4px;\n top: -8px;\n }\n "}),(function(e){return!e.checked&&"\n background-color: ".concat((e.theme.background||d.Z.background).popup,";\n border: ").concat(p.PV,"px ").concat(p.M8," ").concat((e.theme.content||d.Z.content).muted,";\n ")}),(function(e){return e.checked&&"\n background-color: ".concat((e.theme.interactive||d.Z.interactive).checked,";\n border: ").concat(p.YF,"px ").concat(p.M8," transparent;\n ")}),(function(e){return e.required&&"\n background-color: ".concat((e.theme.content||d.Z.content).disabled,";\n border: ").concat(p.YF,"px ").concat(p.M8," transparent;\n ")}),(function(e){return e.disabled&&"\n background-color: ".concat((e.theme.content||d.Z.content).disabled,";\n border-color: ").concat((e.theme.content||d.Z.content).disabled,";\n\n &:hover {\n cursor: not-allowed;\n }\n ")}),(function(e){return e.warning&&"\n background-color: ".concat((e.theme.accent||d.Z.accent).warning,";\n border-color: ").concat((e.theme.interactive||d.Z.interactive).defaultBorder,"\n ")})),y=c.default.label.withConfig({displayName:"Checkbox__LabelStyle",componentId:"sc-ujqx42-4"})(["-ms-flex-direction:column;align-items:center;display:flex;flex-direction:column;flex-direction:row;&:hover{cursor:pointer;}"]);n.Z=function(e){var n=e.beforeIcon,t=e.checked,i=e.disabled,c=e.errorMessage,d=e.label,p=e.labelDescription,b=e.large,Z=e.meta,_=e.monospace,P=void 0!==_&&_,k=e.onClick,S=e.required,w=e.small,C=void 0!==w&&w,A=e.warning,E=e.xsmall,T=void 0!==E&&E,I=(0,o.Z)(e,m),R=A||!!(c||Z&&Z.touched&&Z.error);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(y,{onClick:function(e){e.preventDefault(),k&&!i&&k(e)},children:[(0,h.jsxs)(g,{children:[(0,h.jsx)(j,v(v({},I),{},{disabled:i?"disabled":void 0,notClickable:i})),(0,h.jsx)(O,{checked:t,disabled:i,large:b,required:S,warning:R,children:(0,h.jsx)(s.Jr,{size:f.iI*(b?3:2)})})]}),n&&(0,h.jsx)(u.Z,{ml:1,children:(0,h.jsx)(l.Z,{children:n})}),d&&(0,h.jsxs)(u.Z,{pl:1,children:["string"===typeof d&&(0,h.jsx)(a.ZP,{disabled:i,lineThrough:i,monospace:P,small:C,xsmall:T,children:d}),"string"!==typeof d&&d,p&&(0,h.jsx)(a.ZP,{muted:!0,small:!0,children:p})]})]}),(c||Z&&Z.touched&&Z.error)&&(0,h.jsx)(x,{children:(0,h.jsx)(a.ZP,{small:!0,warning:!0,children:c?(0,r.Z)(c):Z.error})})]})}},44613:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Ye}});var r,i=t(77837),o=t(82394),c=t(38860),l=t.n(c),u=t(89565),a=t.n(u),d=t(12691),s=t.n(d),p=t(9518),f=t(4804),h=t(82684),m=t(86422),b=t(16634),v=t(34744),g=t(60328),x=t(38341),j=t(67971),O=t(86673),y=t(19711),Z=t(2850),_=t(49125),P=p.default.div.withConfig({displayName:"indexstyle__FilterRowStyle",componentId:"sc-kvapsi-0"})(["padding-bottom:","px;padding-top:","px;"],_.iI/2,_.iI/2);!function(e){e.CRITICAL="CRITICAL",e.DEBUG="DEBUG",e.ERROR="ERROR",e.EXCEPTION="EXCEPTION",e.INFO="INFO",e.LOG="LOG",e.WARNING="WARNING"}(r||(r={}));var k,S=[r.CRITICAL,r.DEBUG,r.ERROR,r.EXCEPTION,r.INFO,r.LOG,r.WARNING];!function(e){e.LAST_HOUR="Last hour",e.LAST_DAY="Last day",e.LAST_WEEK="Last week",e.LAST_30_DAYS="Last 30 days",e.CUSTOM_RANGE="Custom range"}(k||(k={}));var w=t(73942),C=t(73899);var A=(0,p.css)(["",""],(function(e){return"\n background-color: ".concat(function(e){var n=e.critical,t=e.debug,r=e.error,i=e.exception,o=e.info,c=e.log,l=e.warning;return n?C.Zl:t?C.EG:r?C.hl:i?C.hM:o?C.gN:c?C.Wd:l?C.$R:"transparent"}(e),";\n ")})),E=p.default.div.withConfig({displayName:"indexstyle__LogLevelIndicatorStyle",componentId:"sc-1e2zh7m-0"})([""," border-radius:","px;height:12px;width:5px;"],A,w.n_),T=t(90211),I=t(44162),R=t(33766),D=t(28598);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 N(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}var M=function(e){var n=e.blocks,t=e.query,r=(0,h.useContext)(p.ThemeContext),i=(0,h.useMemo)((function(){return t["level[]"]}),[t]),c=(0,h.useMemo)((function(){return t["block_type[]"]}),[t]),l=(0,h.useMemo)((function(){return t["block_uuid[]"]}),[t]),u=(0,h.useMemo)((function(){return t["pipeline_schedule_id[]"]}),[t]),a=(0,h.useMemo)((function(){return t["pipeline_run_id[]"]}),[t]),d=(0,h.useMemo)((function(){return t["block_run_id[]"]}),[t]);return(0,D.jsx)(Z.M,{children:(0,D.jsxs)(O.Z,{p:_.cd,children:[(0,D.jsxs)(O.Z,{mb:3,children:[(0,D.jsx)(O.Z,{mb:1,children:(0,D.jsx)(y.ZP,{bold:!0,default:!0,large:!0,children:"Log level"})}),S.map((function(e){return(0,D.jsx)(g.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,R.g_)(t,{level:e},{isList:!0})},children:(0,D.jsx)(P,{children:(0,D.jsxs)(j.Z,{alignItems:"center",children:[(0,D.jsx)(x.Z,{checked:Array.isArray(i)&&(null===i||void 0===i?void 0:i.includes(String(e)))}),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsx)(E,N({},(0,o.Z)({},e.toLowerCase(),!0))),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsx)(y.ZP,{disableWordBreak:!0,children:(0,T.kC)(e.toLowerCase())})]})})},e)}))]}),(0,D.jsxs)(O.Z,{mb:3,children:[(0,D.jsx)(O.Z,{mb:1,children:(0,D.jsx)(y.ZP,{bold:!0,default:!0,large:!0,children:"Block type"})}),[m.tf.DATA_LOADER,m.tf.TRANSFORMER,m.tf.DATA_EXPORTER].map((function(e){return(0,D.jsx)(g.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,R.g_)(t,{block_type:e},{isList:!0})},children:(0,D.jsx)(P,{children:(0,D.jsxs)(j.Z,{alignItems:"center",children:[(0,D.jsx)(x.Z,{checked:Array.isArray(c)&&(null===c||void 0===c?void 0:c.includes(String(e)))}),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsx)(b.Z,{color:(0,I.qn)(e,{theme:r}).accent,size:1.5*_.iI,square:!0}),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsx)(y.ZP,{disableWordBreak:!0,muted:!0,monospace:!0,children:e})]})})},e)}))]}),(0,D.jsxs)(O.Z,{mb:3,children:[(0,D.jsx)(O.Z,{mb:1,children:(0,D.jsx)(y.ZP,{bold:!0,default:!0,large:!0,children:"Block"})}),n.filter((function(e){var n=e.type;return m.tf.SCRATCHPAD!==n})).map((function(e){return(0,D.jsx)(g.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,R.g_)(t,{block_uuid:e.uuid},{isList:!0,resetLimitParams:!0})},children:(0,D.jsx)(P,{children:(0,D.jsxs)(j.Z,{alignItems:"center",children:[(0,D.jsx)(x.Z,{checked:Array.isArray(l)&&(null===l||void 0===l?void 0:l.includes(String(e.uuid)))}),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsx)(b.Z,{color:(0,I.qn)(e.type,{blockColor:e.color,theme:r}).accent,size:1.5*_.iI,square:!0}),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsx)(y.ZP,{disableWordBreak:!0,monospace:!0,muted:!0,children:e.uuid})]})})},e.uuid)}))]}),(null===u||void 0===u?void 0:u.length)&&(0,D.jsxs)(O.Z,{mb:3,children:[(0,D.jsx)(O.Z,{mb:1,children:(0,D.jsx)(y.ZP,{bold:!0,default:!0,large:!0,children:"Trigger"})}),u.map((function(e){return(0,D.jsx)(g.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,R.g_)(t,{pipeline_schedule_id:e},{isList:!0})},children:(0,D.jsx)(P,{children:(0,D.jsxs)(j.Z,{alignItems:"center",children:[(0,D.jsx)(x.Z,{checked:Array.isArray(u)&&(null===u||void 0===u?void 0:u.includes(e))}),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsx)(y.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"pipeline-schedule-".concat(e))}))]}),(null===a||void 0===a?void 0:a.length)&&(0,D.jsxs)(O.Z,{mb:3,children:[(0,D.jsx)(O.Z,{mb:1,children:(0,D.jsx)(y.ZP,{bold:!0,default:!0,large:!0,children:"Pipeline run"})}),a.map((function(e){return(0,D.jsx)(g.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,R.g_)(t,{pipeline_run_id:e},{isList:!0})},children:(0,D.jsx)(P,{children:(0,D.jsxs)(j.Z,{alignItems:"center",children:[(0,D.jsx)(x.Z,{checked:Array.isArray(a)&&(null===a||void 0===a?void 0:a.includes(e))}),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsx)(y.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"pipeline-run-".concat(e))}))]}),(null===d||void 0===d?void 0:d.length)&&(0,D.jsxs)(O.Z,{mb:3,children:[(0,D.jsx)(O.Z,{mb:1,children:(0,D.jsx)(y.ZP,{bold:!0,default:!0,large:!0,children:"Block run"})}),d.map((function(e){return(0,D.jsx)(g.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,R.g_)(t,{block_run_id:e},{isList:!0})},children:(0,D.jsx)(P,{children:(0,D.jsxs)(j.Z,{alignItems:"center",children:[(0,D.jsx)(x.Z,{checked:Array.isArray(d)&&(null===d||void 0===d?void 0:d.includes(e))}),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsx)(y.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"block-run-".concat(e))}))]})]})})},B=t(93461),H=t(11135),Y=t(10919),W=t(75582),F=t(32316),U=t(58180),q=p.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-1r43sbu-0"})([""," height:","px;width:100%;"],A,.5*_.iI),X=p.default.div.withConfig({displayName:"indexstyle__BadgeStyle",componentId:"sc-1r43sbu-1"})([""," border-radius:","px;display:inline-block;padding:","px ","px;"],A,w.BG,.25*_.iI,.5*_.iI),z=t(10503),J=t(92083),G=t.n(J);function V(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?V(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):V(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Q=/([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}) (.+)/;function $(e){var n=e.content.trim().split(Q),t=[],r=[];return n.forEach((function(e){"\n"===e?(r.length>=1&&t.push(r.join(" ").trim()),r=[]):r.filter((function(e){return e})).length<=1&&r.push(e.trim())})),t.push(r.join(" ").trim()),t.map((function(n){return function(e){var n=e.content.trim().match(Q),t=null===n||void 0===n?void 0:n[1],r=null===n||void 0===n?void 0:n[2],i={};return r&&(0,T.Pb)(r)&&(i=JSON.parse(r)),K(K({},e),{},{createdAt:t,data:i})}(K(K({},e),{},{content:n}))}))}function ee(e){return e&&G().unix(e).utc().format("YYYY-MM-DD HH:mm:ss.SSS")}var ne=t(24224);function te(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 re(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?te(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):te(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ie=["error","error_stack","error_stacktrace"],oe={uuid:"Details"},ce={uuid:"Errors"};var le,ue,ae,de=function(e){var n=e.log,t=e.onClose,r=(0,h.useState)(oe),i=r[0],c=r[1],l=(0,h.useState)(!1),u=l[0],a=l[1],d=n.data,s=n.name,p=n.path,f=d||{},m=f.error,b=f.error_stack,x=f.error_stacktrace,Z=f.level,P=f.timestamp,k=(0,o.Z)({},Z.toLowerCase(),!0),S=(0,h.useMemo)((function(){var e=[["file name",s],["file path",p]];return Object.entries(d).forEach((function(n){var t=(0,W.Z)(n,2),r=t[0],i=t[1];ie.includes(r)||e.push([r,i])})),x&&e.push(["error",x]),(0,ne.YC)(e,(function(e){var n=(0,W.Z)(e,2),t=n[0];n[1];return t}))}),[d,x,s,p]),w=(0,h.useMemo)((function(){var e=[oe];return m&&e.push(ce),(0,D.jsx)(F.Z,{onClickTab:c,selectedTabUUID:null===i||void 0===i?void 0:i.uuid,tabs:e})}),[m,b,x,i,c]);return(0,D.jsxs)("div",{children:[(0,D.jsx)(q,re({},k)),(0,D.jsx)(O.Z,{p:_.cd,children:(0,D.jsxs)(j.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,D.jsxs)(B.Z,{alignItems:"center",children:[(0,D.jsx)(X,re(re({},k),{},{children:(0,D.jsx)(y.ZP,{bold:!0,inverted:!0,monospace:!0,small:!0,children:Z})})),(0,D.jsx)(O.Z,{mr:_.cd}),(0,D.jsx)(y.ZP,{monospace:!0,children:ee(P)})]}),(0,D.jsx)(g.Z,{iconOnly:!0,noBackground:!0,onClick:function(){return t()},children:(0,D.jsx)(z.x8,{size:1.5*_.iI})})]})}),(0,D.jsx)(v.Z,{medium:!0}),(0,D.jsx)(O.Z,{py:_.cd,children:w}),oe.uuid===(null===i||void 0===i?void 0:i.uuid)&&(0,D.jsx)(U.Z,{columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:null===S||void 0===S?void 0:S.map((function(e,n){var t=(0,W.Z)(e,2),r=t[0],i=t[1],o="message"===r,c="tags"===r,l=i,d=i;return c?d=l=(0,T.Pb)(i)?JSON.parse(JSON.stringify(i,null,2)):JSON.stringify(i,null,2):o&&u&&(0,T.Pb)(i)&&(d=JSON.stringify(JSON.parse(i),null,2),l=(0,D.jsx)("pre",{children:d})),[(0,D.jsx)(y.ZP,{monospace:!0,muted:!0,children:r},"".concat(r,"_").concat(n,"_key")),(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(y.ZP,{monospace:!0,textOverflow:!0,title:d,whiteSpaceNormal:o&&u||c,wordBreak:o&&u||c,children:[!c&&l,c&&(0,D.jsx)("pre",{children:l})]},"".concat(r,"_").concat(n,"_val")),o&&(0,D.jsx)(Y.Z,{muted:!0,onClick:function(){return a((function(e){return!e}))},children:u?"Click to hide log":"Click to show full log message"})]})]})),uuid:"LogDetail"}),ce.uuid===(null===i||void 0===i?void 0:i.uuid)&&(0,D.jsxs)(O.Z,{mb:5,px:_.cd,children:[(0,D.jsx)(O.Z,{mb:1,children:(0,D.jsx)(y.ZP,{bold:!0,children:"Error"})}),null===m||void 0===m?void 0:m.map((function(e){return e.split("\n").map((function(e){return e.split("\\n").map((function(e){return(0,D.jsx)(y.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:e},e)}))}))})),b&&(0,D.jsxs)(O.Z,{mt:3,children:[(0,D.jsx)(O.Z,{mb:1,children:(0,D.jsx)(y.ZP,{bold:!0,children:"Stack trace"})}),null===b||void 0===b?void 0:b.map((function(e){return null===e||void 0===e?void 0:e.map((function(e){return(0,D.jsx)(y.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:e},e)}))}))]})]})]})},se=t(60547),pe=t(98781),fe=t(41788),he=t(54283),me=t(2713),be=t(47999),ve=t(55378),ge=t(82944),xe=t(66166),je="_limit",Oe="_offset",ye=20,Ze=[k.LAST_HOUR,k.LAST_DAY,k.LAST_WEEK,k.LAST_30_DAYS],_e=(le={},(0,o.Z)(le,k.LAST_HOUR,3600),(0,o.Z)(le,k.LAST_DAY,86400),(0,o.Z)(le,k.LAST_WEEK,604800),(0,o.Z)(le,k.LAST_30_DAYS,2592e3),le),Pe=t(84779),ke=t(42305),Se=t(7715),we=t(59e3);function Ce(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 Ae(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ce(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ce(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}!function(e){e.START="start_timestamp",e.END="end_timestamp"}(ae||(ae={}));var Ee=(ue={},(0,o.Z)(ue,je,ye),(0,o.Z)(ue,Oe,0),ue);var Te=function(e){var n=e.allPastLogsLoaded,t=e.loadNewerLogInterval,r=e.loadPastLogInterval,i=e.selectedRange,c=e.setSelectedRange,l=(0,h.useState)(null),u=l[0],a=l[1],d=(0,h.useState)(null),s=d[0],p=d[1],f=(0,h.useState)({hour:"00",minute:"00"}),m=f[0],b=f[1],v=(0,h.useState)(new Date),x=v[0],Z=v[1],P=(0,h.useState)({hour:(0,ke.lJ)(String((new Date).getUTCHours())),minute:(0,ke.lJ)(String((new Date).getUTCMinutes()))}),S=P[0],w=P[1],C=(0,we.iV)(),A=(0,xe.Z)(C);return(0,h.useEffect)((function(){if(!(0,Se.Xy)(C,A)){var e=C.start_timestamp,n=C.end_timestamp;if(e){var t=(0,ke.Pc)(e),r=t.date,i=t.hour,o=t.minute;p(r),b({hour:(0,ke.lJ)(i),minute:(0,ke.lJ)(o)});var l=Math.ceil(Date.now()/1e3)-e;Math.abs(l-_e[k.LAST_DAY])<=60&&c(k.LAST_DAY)}if(n){var u=(0,ke.Pc)(n),a=u.date,d=u.hour,s=u.minute;Z(a),w({hour:(0,ke.lJ)(d),minute:(0,ke.lJ)(s)})}}}),[C,A]),(0,D.jsx)(O.Z,{py:1,children:(0,D.jsxs)(j.Z,{alignItems:"center",children:[(0,D.jsx)(H.ZP,{blackBorder:!0,disabled:n,inline:!0,onClick:r,paddingBottom:.75*_.iI,paddingTop:.75*_.iI,uuid:"logs/load_older_logs",children:n?"All past logs within range loaded":"Load older logs"}),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsx)(H.ZP,{blackBorder:!0,disabled:(null===C||void 0===C?void 0:C._offset)<=0,inline:!0,onClick:t,paddingBottom:.75*_.iI,paddingTop:.75*_.iI,uuid:"logs/load_newer_logs",children:"Load newer logs"}),(0,D.jsx)(O.Z,{mr:2}),(0,D.jsx)(ve.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault();var n=e.target.value;if(c(n),Ze.includes(n)){var t,r=(0,Pe.JI)(_e[n]);(0,R.u7)(Ae((t={},(0,o.Z)(t,ae.START,r),(0,o.Z)(t,ae.END,null),t),Ee))}},paddingRight:4*_.iI,placeholder:"Select time range",value:i,children:Object.values(k).map((function(e){return(0,D.jsx)("option",{value:e,children:e},e)}))}),(0,D.jsx)(O.Z,{mr:1}),i===k.CUSTOM_RANGE&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(ge.Z,{compact:!0,defaultColor:!0,onClick:function(){return a(0)},paddingRight:0,placeholder:"Start",value:s?(0,ke.AY)(s,null===m||void 0===m?void 0:m.hour,null===m||void 0===m?void 0:m.minute):""}),(0,D.jsx)(be.Z,{onClickOutside:function(){return a(null)},open:0===u,style:{position:"relative"},children:(0,D.jsx)(me.Z,{selectedDate:s,selectedTime:m,setSelectedDate:p,setSelectedTime:b})}),(0,D.jsx)(O.Z,{px:1,children:(0,D.jsx)(y.ZP,{children:"to"})}),(0,D.jsx)(ge.Z,{compact:!0,defaultColor:!0,onClick:function(){return a(1)},paddingRight:0,placeholder:"End",value:x?(0,ke.AY)(x,null===S||void 0===S?void 0:S.hour,null===S||void 0===S?void 0:S.minute):""}),(0,D.jsx)(be.Z,{onClickOutside:function(){return a(null)},open:1===u,style:{position:"relative"},children:(0,D.jsx)(me.Z,{selectedDate:x,selectedTime:S,setSelectedDate:Z,setSelectedTime:w})}),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsx)(g.Z,{borderRadius:_.iI/2,onClick:function(){var e,n=(0,ke.BP)(s,m.hour,m.minute),t=(0,ke.BP)(x,S.hour,S.minute);(0,R.u7)(Ae((e={},(0,o.Z)(e,ae.START,(0,ke.A5)(n)),(0,o.Z)(e,ae.END,(0,ke.A5)(t)),e),Ee))},padding:"".concat(_.iI/2,"px"),primary:!0,children:"Search"})]})]})})},Ie=t(82531),Re=t(59920);function De(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 Le(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?De(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):De(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ne="log_uuid",Me="pipeline_run_id[]",Be="block_run_id[]";function He(e){var n=e.pipeline,t=(0,h.useContext)(p.ThemeContext),r=(0,h.useRef)(null),i=n.uuid,c=(0,h.useState)(null),l=c[0],u=c[1],d=(0,h.useState)(null),g=d[0],x=d[1],Z=(0,h.useState)(null),P=Z[0],S=Z[1],w=(0,h.useState)(!1),C=w[0],A=w[1],L=Ie.ZP.pipelines.detail(i,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,N=(0,h.useMemo)((function(){return Le(Le({},null===L||void 0===L?void 0:L.pipeline),{},{uuid:i})}),[L,i]),W=(null===N||void 0===N?void 0:N.type)===pe.qL.INTEGRATION,F=(0,h.useMemo)((function(){return N.blocks||[]}),[N]),q=(0,h.useMemo)((function(){var e=(0,ne.HK)(F,(function(e){return e.uuid}));if(W){var n,t=(0,ne.sE)(F,(function(e){var n=e.type;return m.tf.DATA_LOADER===n})),r=t?(0,f.Qc)(t.content):{},i=((null===r||void 0===r||null===(n=r.catalog)||void 0===n?void 0:n.streams)||[]).reduce((function(e,n){var t=n.tap_stream_id,r={};return F.forEach((function(e){var n=e.uuid,i=e.type,o="".concat(n,":").concat(t);r[o]={type:i}})),Le(Le({},e),r)}),{});e=Le(Le({},i),e)}return e}),[F,W]),X=(0,we.iV)(),J=!(null!==X&&void 0!==X&&X.start_timestamp)&&!(null!==X&&void 0!==X&&X.hasOwnProperty(Me)||null!==X&&void 0!==X&&X.hasOwnProperty(Be)),G=(0,Pe.JI)(_e[k.LAST_DAY]),V=Ie.ZP.logs.pipelines.list(l?i:null,(0,Se.gR)(J?Le(Le({},l),{},{start_timestamp:G}):l,[Ne]),{refreshInterval:5e3}),K=V.data,Q=V.mutate,te=!K,re=(0,h.useMemo)((function(){var e;if(null!==K&&void 0!==K&&null!==(e=K.logs)&&void 0!==e&&e[0]){var n,t=(null===(n=K.logs)||void 0===n?void 0:n[0])||{};return{blockRunLogs:t.block_run_logs,pipelineRunLogs:t.pipeline_run_logs,totalBlockRunLogCount:t.total_block_run_log_count,totalPipelineRunLogCount:t.total_pipeline_run_log_count}}return{blockRunLogs:[],pipelineRunLogs:[],totalBlockRunLogCount:0,totalPipelineRunLogCount:0}}),[K]),ie=re.blockRunLogs,oe=re.pipelineRunLogs,ce=re.totalBlockRunLogCount,le=re.totalPipelineRunLogCount,ue=+(null===X||void 0===X?void 0:X._limit)>=ce&&+(null===X||void 0===X?void 0:X._limit)>=le,ae=(0,h.useMemo)((function(){return(0,ne.YC)(ie.concat(oe).reduce((function(e,n){return e.concat($(n))}),[]),(function(e){var n=e.data;return(null===n||void 0===n?void 0:n.timestamp)||0}))}),[ie,oe]),fe=(0,h.useMemo)((function(){return ae.filter((function(e){var n=e.data,t=[];if(!l)return!0;if(l["level[]"]&&t.push(l["level[]"].includes(null===n||void 0===n?void 0:n.level)),l["block_type[]"]){var r,i,o=null===n||void 0===n?void 0:n.block_uuid;if(W)o=null===n||void 0===n||null===(i=n.block_uuid)||void 0===i?void 0:i.split(":").slice(0,2).join(":");t.push(l["block_type[]"].includes(null===(r=q[o])||void 0===r?void 0:r.type))}if(l["pipeline_run_id[]"]){var c=null===n||void 0===n?void 0:n.pipeline_run_id;t.push(l["pipeline_run_id[]"].includes(String(c)))}if(l["block_run_id[]"]){var u=null===n||void 0===n?void 0:n.block_run_id;t.push(l["block_run_id[]"].includes(String(u)))}return t.every((function(e){return e}))}))}),[q,W,ae,l]),me=fe.length,be=(0,xe.Z)(X);(0,h.useEffect)((function(){var e;J&&(0,R.u7)((e={},(0,o.Z)(e,je,ye),(0,o.Z)(e,Oe,0),(0,o.Z)(e,"start_timestamp",G),e))}),[J]),(0,h.useEffect)((function(){(0,Se.Xy)(X,be)||u(X)}),[X,be]);var ve=(0,xe.Z)(g);(0,h.useEffect)((function(){var e=X.log_uuid;!e||g||ve||x(ae.find((function(n){var t=n.data;return(null===t||void 0===t?void 0:t.uuid)===e})))}),[ae,X,g,ve]),(0,h.useEffect)((function(){var e;C&&!te&&(null===r||void 0===r||null===(e=r.current)||void 0===e||e.scrollIntoView(),A(!1))}),[C,te]);var ge=X._limit,Ze=X._offset,ke=+(ge||0),Ce=+(Ze||0),Ae=Math.max(ce,le),Ee=(0,h.useCallback)((function(){var e,n=ke,t=Ce;(ce>ke||le>ke)&&(n=Math.min(Ae,ke+ye),t=Math.min(Ce+ye,Ae-Ae%ye),(0,R.u7)(Le(Le({},X),{},(e={},(0,o.Z)(e,je,n),(0,o.Z)(e,Oe,t),e))))}),[Ae,ke,Ce,X,ce,le]),De=(0,h.useCallback)((function(){var e,n=ke,t=Ce;ke>=ye&&(n=Math.max(ye,ke-ye),ke>=Ae&&Ae%ye!==0&&(n=Ae-Ae%ye),t=Math.max(0,Ce-ye),(0,R.u7)(Le(Le({},X),{},(e={},(0,o.Z)(e,je,n),(0,o.Z)(e,Oe,t),e))))}),[Ae,ke,Ce,X]);return(0,D.jsxs)(se.Z,{after:g&&(0,D.jsx)(de,{log:g,onClose:function(){(0,R.u7)((0,o.Z)({},Ne,null)),x(null)}}),afterHidden:!g,afterWidth:80*_.iI,before:(0,D.jsx)(M,{blocks:F,query:l}),beforeWidth:20*_.iI,breadcrumbs:[{label:function(){return"Logs"}}],pageName:Re.M.PIPELINE_LOGS,pipeline:N,subheader:null,title:function(e){var n=e.name;return"".concat(n," logs")},uuid:"pipeline/logs",children:[(0,D.jsx)(O.Z,{px:_.cd,py:1,children:(0,D.jsxs)(y.ZP,{children:[!te&&(0,D.jsxs)(D.Fragment,{children:[(0,T.x6)(me)," logs found",(0,D.jsx)(Te,{allPastLogsLoaded:ue,loadNewerLogInterval:De,loadPastLogInterval:Ee,selectedRange:P,setSelectedRange:S})]}),te&&"Searching..."]})}),(0,D.jsx)(v.Z,{light:!0}),te&&(0,D.jsx)(O.Z,{p:_.cd,children:(0,D.jsx)(he.Z,{})}),!te&&fe.length>=1&&(0,D.jsx)(U.Z,{columnFlex:[null,null,1,9,null],columnMaxWidth:function(e){return 3===e?"100px":null},columns:[{label:function(){return""},uuid:"!"},{uuid:"Date"},{uuid:"Block"},{uuid:"Message"},{label:function(){return""},uuid:">"}],compact:!0,onClickRow:function(e){var n,t=fe[e],r=null===(n=t.data)||void 0===n?void 0:n.uuid;l.log_uuid===r&&(r=null),(0,R.u7)((0,o.Z)({},Ne,r)),x(r?t:null)},rows:null===fe||void 0===fe?void 0:fe.map((function(e){var n,r,c,l=e.content,u=(e.createdAt,e.data),d=e.name,p=u||{},f=p.block_uuid,h=p.level,m=p.message,v=(p.pipeline_uuid,p.timestamp),g=f||d.split(".log")[0],x=g.split(":");pe.qL.INTEGRATION===N.type&&(g=x[0],r=x[1],c=x[2]);var Z=q[g];if(Z||(Z=q[x[0]]),Z){var P=(0,I.qn)(Z.type,{blockColor:Z.color,theme:t}).accent;n=(0,D.jsx)(j.Z,{alignItems:"center",children:(0,D.jsx)(s(),{as:"/pipelines/".concat(i,"/edit?block_uuid=").concat(g),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,D.jsxs)(Y.Z,{block:!0,fullWidth:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,D.jsx)(b.Z,{color:P,size:1.5*_.iI,square:!0}),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsxs)(y.ZP,{monospace:!0,children:[g,r&&": ",r&&(0,D.jsx)(y.ZP,{default:!0,inline:!0,monospace:!0,children:r}),c>=0&&": ",c>=0&&(0,D.jsx)(y.ZP,{default:!0,inline:!0,monospace:!0,children:c})]})]})})})}return[(0,D.jsx)(B.Z,{alignItems:"center",justifyContent:"center",children:(0,D.jsx)(E,Le({},(0,o.Z)({},null===h||void 0===h?void 0:h.toLowerCase(),!0)))},"log_type"),(0,D.jsx)(y.ZP,{default:!0,monospace:!0,children:ee(v)},"log_timestamp"),n,(0,D.jsx)(y.ZP,{monospace:!0,preWrap:!0,textOverflow:!0,title:m||l,children:(0,D.jsx)(a(),{children:m||l})},"log_message"),(0,D.jsx)(B.Z,{flex:1,justifyContent:"flex-end",children:(0,D.jsx)(z._Q,{default:!0,size:2*_.iI})},"chevron_right_icon")]})),uuid:"logs"}),(0,D.jsx)(O.Z,{p:_.cd,ref:r,children:(0,D.jsx)(H.ZP,{blackBorder:!0,inline:!0,onClick:function(){A(!0),"0"===(null===X||void 0===X?void 0:X._offset)&&(null===X||void 0===X?void 0:X._limit)===String(ye)?Q(null):(0,R.u7)({_limit:ye,_offset:0})},paddingBottom:.75*_.iI,paddingTop:.75*_.iI,uuid:"logs/toolbar/load_newest",children:"Load latest logs"})})]})}He.getInitialProps=function(){var e=(0,i.Z)(l().mark((function e(n){var t;return l().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 Ye=(0,fe.Z)(He)},42305:function(e,n,t){"use strict";t.d(n,{A5:function(){return p},AY:function(){return f},BP:function(){return s},JX:function(){return d},OC:function(){return o},Pc:function(){return h},Tz:function(){return a},d$:function(){return u},lJ:function(){return m},n1:function(){return l}});var r=t(92083),i=t.n(r),o="YYYY-MM-DD HH:mm:ss",c="YYYY-MM-DD HH:mm",l="YYYY-MM-DD";function u(e,n){var t=n.dayAgo,r=n.includeSeconds,l=n.utcFormat,u=i()(e),a=c;return l&&(u=u.utc()),t&&(u=u.subtract(1,"days")),r&&(a=o),u.format(a)}function a(e){var n=u((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0});return null!==e&&void 0!==e&&e.dateObj?new Date(n):n}function d(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:c)}function s(e,n,t){return i()(e).utc().hours(+n).minutes(+t).format()}function p(e){return i()(e).unix()}function f(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 m(e){return e.padStart(2,"0")}},84779:function(e,n,t){"use strict";t.d(n,{DU:function(){return c},JI:function(){return l},Jw:function(){return o}});var r=t(75582),i=function(e){var n=String(e).split("."),t=(0,r.Z)(n,2),i=t[0],o=t[1];return"".concat(i.replace(/\B(?=(\d{3})+(?!\d))/g,",")).concat(o?".".concat(o):"")},o=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=parseFloat(e).toFixed(n);return 0===e&&(t=parseFloat(e).toFixed(0)),i(t)};function c(e){if(void 0===e)return"";var n=1===e||0===e?100*e:(100*e).toFixed(2);return"".concat(n,"%")}function l(e){var n=Math.floor(Date.now()/1e3);return e>0?n-e:n}},33766:function(e,n,t){"use strict";t.d(n,{g_:function(){return p},u7:function(){return s}});var r=t(75582),i=t(82394),o=t(34376),c=t.n(o),l=t(59e3),u=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 d(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 s(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,o=t.pushHistory,u=i?{}:(0,l.iV)();n=window.location.pathname;var a=o?c().push:c().replace,s=d(d({},u),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 s[t]}));var p=(0,l.uM)(s);p.length>=1&&(p="?".concat(p));var f="".concat(n.split("?")[0]).concat(p);return a(c().router.pathname,f,{shallow:!0})}function p(e,n,t){var i=t.addingMultipleValues,o=t.isList,c=t.itemsPerPage,l=t.pushHistory,a=void 0!==l&&l,p=t.resetLimitParams,f=d({},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,"[]");f[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),c="".concat(t,"[]"),l=f[c];l&&Array.isArray(l)?(l=l.map(String)).includes(o)?f[c]=(0,u.Od)(l,(function(e){return e===o})):f[c]=l.concat(o):f[c]=[o]})):f=d(d({},f),n),p&&(f._limit=c||20,f._offset=0),s(f,{pushHistory:a})}},62453:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/logs",function(){return t(44613)}])}},function(e){e.O(0,[3850,2083,4804,9565,4495,2344,4506,6166,8180,6214,9774,2888,179],(function(){return n=62453,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4794],{59739:function(e,n,t){"use strict";var r=t(56669);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,c){if(c!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},44162:function(e,n,t){"use strict";t.d(n,{HC:function(){return x},Kf:function(){return s},Nk:function(){return p},PY:function(){return f},gE:function(){return b},jv:function(){return m},nz:function(){return h},oh:function(){return a},qn:function(){return d},t1:function(){return v},y9:function(){return g}});var r=t(9518),i=t(23831),o=t(86422),c=t(73942),l=t(49125),u=t(90880),a=68;function d(e,n){var t,r,c=((null===n||void 0===n||null===(t=n.theme)||void 0===t?void 0:t.borders)||i.Z.borders).light,l=((null===n||void 0===n||null===(r=n.theme)||void 0===r?void 0:r.monotone)||i.Z.monotone).grey500,u=n||{},a=u.blockColor,d=u.isSelected,s=u.theme;return d?c=((null===s||void 0===s?void 0:s.content)||i.Z.content).active:o.tf.TRANSFORMER===e||a===o.Lq.PURPLE?(c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).purple,l=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).purpleLight):o.tf.DATA_EXPORTER===e||a===o.Lq.YELLOW?(c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).yellow,l=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).yellowLight):o.tf.DATA_LOADER===e||a===o.Lq.BLUE?(c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).blue,l=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).blueLight):o.tf.SENSOR===e||a===o.Lq.PINK?(c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).pink,l=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).pinkLight):o.tf.DBT===e?(c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).dbt,l=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).dbtLight):o.tf.EXTENSION===e||a===o.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).teal,l=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).tealLight):(o.tf.SCRATCHPAD===e||a===o.Lq.GREY||o.tf.CUSTOM===e&&!a)&&(c=((null===s||void 0===s?void 0:s.content)||i.Z.content).default,l=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).contentDefaultTransparent),{accent:c,accentLight:l}}var s=(0,r.css)([""," "," "," "," "," "," ",""],(0,u.eR)(),(function(e){return!e.selected&&!e.hasError&&"\n border-color: ".concat(d(e.blockType,e).accentLight,";\n ")}),(function(e){return e.selected&&!e.hasError&&"\n border-color: ".concat(d(e.blockType,e).accent,";\n ")}),(function(e){return!e.selected&&e.hasError&&"\n border-color: ".concat((e.theme.accent||i.Z.accent).negativeTransparent,";\n ")}),(function(e){return e.selected&&e.hasError&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).danger,";\n ")}),(function(e){return e.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(e){return e.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),p=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),f=r.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],s,c.n_,c.M8,c.mP,(function(e){return"\n background-color: ".concat((e.theme||i.Z).background.content,";\n\n &:hover {\n border-color: ").concat(d(e.blockType,e).accent,";\n }\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-2"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," ",""],s,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,l.iI,(function(e){return"\n background-color: ".concat((e.theme||i.Z).background.content,";\n ")}),(function(e){return e.zIndex&&"\n z-index: ".concat(6+(e.zIndex||0),";\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-3"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],s,c.M8,c.mP,c.M8,c.mP,l.iI,l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeTextarea,";\n ")}),(function(e){return!e.hasOutput&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n ")})),b=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-4"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*l.iI,.5*l.iI,(function(e){return e.additionalZIndex>0&&"\n z-index: ".concat(8+e.additionalZIndex,";\n ")}),(function(e){return"\n background-color: ".concat((e.theme.text||i.Z.text).fileBrowser,";\n ")})),v=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-5"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*l.iI),g=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-6"})(["margin-bottom:","px;padding-bottom:","px;",""],l.cd*l.iI,l.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n padding-left: ").concat(e.normalPadding?l.iI:a,"px;\n ")})),x=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-7"})(["bottom:","px;left:","px;position:absolute;"],1*l.iI,a)},1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return P}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),l=t(49894),u=t(93461),a=t(57384),d=t(12344),s=t(72454),p=t(28598);function f(e,n){var t=e.children;return(0,p.jsx)(s.HS,{ref:n,children:t})}var h=o.forwardRef(f),m=t(32063),b=t(15270),v=t(82531),g=t(66166),x=t(3055),j=t(49125),O=t(91427),y=t(24141);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function _(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=function(e){var n,t=e.after,r=e.afterHidden,f=e.afterWidth,Z=e.afterWidthOverride,P=e.before,k=e.beforeWidth,S=e.breadcrumbs,w=e.children,C=e.errors,A=e.headerMenuItems,E=e.navigationItems,T=e.setErrors,I=e.subheaderChildren,R=e.title,D=e.uuid,L=(0,y.i)().width,N="dashboard_after_width_".concat(D),M="dashboard_before_width_".concat(D),B=(0,o.useRef)(null),H=(0,o.useState)(Z?f:(0,O.U2)(N,f)),Y=H[0],W=H[1],F=(0,o.useState)(!1),U=F[0],q=F[1],X=(0,o.useState)(P?Math.max((0,O.U2)(M,k),13*j.iI):null),z=X[0],J=X[1],G=(0,o.useState)(!1),V=G[0],K=G[1],Q=(0,o.useState)(null)[1],$=v.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===$||void 0===$?void 0:$.projects,ne=[];S?ne.push.apply(ne,(0,i.Z)(S)):(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 R}}]),(0,o.useEffect)((function(){null===B||void 0===B||!B.current||U||V||null===Q||void 0===Q||Q(B.current.getBoundingClientRect().width)}),[U,Y,V,z,B,Q,L]),(0,o.useEffect)((function(){U||(0,O.t8)(N,Y)}),[r,U,Y,N]),(0,o.useEffect)((function(){V||(0,O.t8)(M,z)}),[V,z,M]);var te=(0,g.Z)(f);return(0,o.useEffect)((function(){Z&&te!==f&&W(f)}),[Z,f,te]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.Z,{title:R}),(0,p.jsx)(d.Z,{breadcrumbs:ne,menuItems:A,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,p.jsxs)(s.Nk,{children:[0!==(null===E||void 0===E?void 0:E.length)&&(0,p.jsx)(s.lm,{children:(0,p.jsx)(b.Z,{navigationItems:E})}),(0,p.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(m.Z,{after:t,afterHeightOffset:x.Mz,afterHidden:r,afterMousedownActive:U,afterWidth:Y,before:P,beforeHeightOffset:x.Mz,beforeMousedownActive:V,beforeWidth:s.k1+(P?z:0),hideAfterCompletely:!0,leftOffset:P?s.k1:null,mainContainerRef:B,setAfterMousedownActive:q,setAfterWidth:W,setBeforeMousedownActive:K,setBeforeWidth:J,children:[I&&(0,p.jsx)(h,{children:I}),w]})})]}),C&&(0,p.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===T||void 0===T?void 0:T(null)},children:(0,p.jsx)(l.Z,_(_({},C),{},{onClose:function(){return null===T||void 0===T?void 0:T(null)}}))})]})}},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return l},W:function(){return c}});var r=t(9518),i=t(23831),o=t(3055),c=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},60547:function(e,n,t){"use strict";t.d(n,{Z:function(){return P}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),l=t(1210),u=t(34744),a=t(49894),d=t(67971),s=t(87372),p=t(86673),f=t(82531),h=t(9518),m=t(23831),b=t(73942),v=t(49125),g=h.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],b.n_,3*v.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||m.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 ')})),x=t(3055),j=t(95354),O=t(24141),y=t(28598);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function _(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=function(e){var n=e.after,t=e.afterHidden,r=e.afterWidth,h=e.before,m=e.beforeWidth,b=e.breadcrumbs,Z=e.buildSidekick,P=e.children,k=e.errors,S=e.headline,w=e.pageName,C=e.pipeline,A=e.setErrors,E=e.subheader,T=e.subheaderBackground,I=e.subheaderBackgroundImage,R=e.subheaderButton,D=e.subheaderText,L=e.title,N=e.uuid,M=(0,O.i)().height,B=C.uuid,H=f.ZP.pipelines.detail(B,{includes_outputs:!1},{revalidateOnFocus:!1}).data,Y=null===H||void 0===H?void 0:H.pipeline,W=(0,o.useMemo)((function(){return n||(Z?Z({height:M,heightOffset:x.Mz,pipeline:Y}):null)}),[n,Z,M,Y]),F=r||(W?50*v.iI:null),U=(0,o.useMemo)((function(){var e=[];return Y&&(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),b?(e.push({label:function(){return Y.uuid},linkProps:{as:"/pipelines/".concat(B,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,i.Z)(b)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return Y.name}})),e}),[b,Y,B]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(l.Z,{after:W,afterHidden:t,afterWidth:F,before:h,beforeWidth:m,breadcrumbs:U,navigationItems:(0,j.H)(w,Y),subheaderChildren:"undefined"!==typeof E&&E,title:Y?L?L(Y):Y.name:null,uuid:N,children:[(R||D)&&(0,y.jsx)(p.Z,{mb:v.Mq,mt:v.cd,mx:v.cd,children:(0,y.jsx)(g,{background:T,backgroundImage:I,children:(0,y.jsxs)(d.Z,{alignItems:"center",children:[R,D&&(0,y.jsx)(p.Z,{ml:3}),D]})})}),S&&(0,y.jsx)(p.Z,{p:v.cd,children:(0,y.jsxs)(p.Z,{mt:v.cd,px:v.cd,children:[(0,y.jsx)(s.Z,{level:5,children:S}),(0,y.jsx)(u.Z,{light:!0,mt:v.cd,short:!0})]})}),P]}),k&&(0,y.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===A||void 0===A?void 0:A(null)},children:(0,y.jsx)(a.Z,_(_({},k),{},{onClose:function(){return null===A||void 0===A?void 0:A(null)}}))})]})}},18025:function(e,n,t){"use strict";t.d(n,{J:function(){return u},U:function(){return l}});var r=t(9518),i=t(23831),o=t(73942),c=t(49125),l=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;"," ",""],o.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 ")})),u=r.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],o.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 ")}))},86422:function(e,n,t){"use strict";t.d(n,{$W:function(){return p},DA:function(){return s},HX:function(){return m},J8:function(){return h},Lq:function(){return a},Qj:function(){return b},Ut:function(){return j},V4:function(){return x},VZ:function(){return f},dO:function(){return d},f2:function(){return g},iZ:function(){return v},t6:function(){return c},tf:function(){return u}});var r,i,o,c,l=t(82394);!function(e){e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(c||(c={}));var u,a,d=(r={},(0,l.Z)(r,c.PYTHON,"PY"),(0,l.Z)(r,c.R,"R"),(0,l.Z)(r,c.SQL,"SQL"),(0,l.Z)(r,c.YAML,"YAML"),r);!function(e){e.CHART="chart",e.CUSTOM="custom",e.DATA_EXPORTER="data_exporter",e.DATA_LOADER="data_loader",e.DBT="dbt",e.EXTENSION="extension",e.SCRATCHPAD="scratchpad",e.SENSOR="sensor",e.TRANSFORMER="transformer"}(u||(u={})),function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(a||(a={}));var s,p=[u.CHART,u.CUSTOM,u.DATA_EXPORTER,u.DATA_LOADER,u.SCRATCHPAD,u.SENSOR,u.TRANSFORMER],f=[u.DATA_EXPORTER,u.DATA_LOADER],h=[u.DATA_EXPORTER,u.DATA_LOADER,u.TRANSFORMER],m=[u.DATA_EXPORTER,u.DATA_LOADER,u.DBT,u.TRANSFORMER],b=[u.CHART,u.SCRATCHPAD,u.SENSOR],v=[u.EXTENSION,u.SCRATCHPAD];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(s||(s={}));var g=[u.CUSTOM,u.DATA_EXPORTER,u.TRANSFORMER],x=(i={},(0,l.Z)(i,u.CUSTOM,"Custom"),(0,l.Z)(i,u.DATA_EXPORTER,"Data exporter"),(0,l.Z)(i,u.DATA_LOADER,"Data loader"),(0,l.Z)(i,u.EXTENSION,"Extension"),(0,l.Z)(i,u.SCRATCHPAD,"Scratchpad"),(0,l.Z)(i,u.SENSOR,"Sensor"),(0,l.Z)(i,u.TRANSFORMER,"Transformer"),i),j=[u.DATA_LOADER,u.TRANSFORMER,u.DATA_EXPORTER,u.SENSOR];o={},(0,l.Z)(o,u.DATA_EXPORTER,"DE"),(0,l.Z)(o,u.DATA_LOADER,"DL"),(0,l.Z)(o,u.SCRATCHPAD,"SP"),(0,l.Z)(o,u.SENSOR,"SR"),(0,l.Z)(o,u.TRANSFORMER,"TF")},2713:function(e,n,t){"use strict";var r=t(82394),i=t(44495),o=t(67971),c=t(55378),l=t(86673),u=t(19711),a=t(18025),d=t(49125),s=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 h(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,m=e.topPosition;return(0,p.jsxs)(a.J,{absolute:!0,topPosition:m,children:[(0,p.jsx)(i.ZP,{onChange:r,value:n}),(0,p.jsx)(l.Z,{mb:2}),(0,p.jsxs)(o.Z,{alignItems:"center",children:[(0,p.jsx)(u.ZP,{default:!0,large:!0,children:"Time (UTC):"}),(0,p.jsx)(l.Z,{pr:2}),(0,p.jsx)(c.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return h(h({},n),{},{hour:e.target.value})}))},paddingRight:5*d.iI,placeholder:"HH",value:null===t||void 0===t?void 0:t.hour,children:(0,s.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)(l.Z,{px:1,children:(0,p.jsx)(u.ZP,{bold:!0,large:!0,children:":"})}),(0,p.jsx)(c.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return h(h({},n),{},{minute:e.target.value})}))},paddingRight:5*d.iI,placeholder:"MM",value:null===t||void 0===t?void 0:t.minute,children:(0,s.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))}))})]})]})}},32316:function(e,n,t){"use strict";t.d(n,{Z:function(){return m}});var r=t(82684),i=t(60328),o=t(67971),c=t(882),l=t(86673),u=t(99994),a=t(9518),d=t(49125),s=t(37391),p=a.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],d.cd*d.iI,d.cd*d.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.allowScroll&&"\n overflow: auto;\n "}),s.w5),f=t(66653),h=t(28598);var m=function(e){var n=e.allowScroll,t=e.contained,a=e.noPadding,s=e.onClickTab,m=e.selectedTabUUID,b=e.small,v=e.tabs,g=(0,r.useMemo)((function(){var e=v.length,n=[];return v.forEach((function(t,r){var a=t.Icon,p=t.IconSelected,v=t.label,g=t.uuid,x=g===m,j=x&&p||a,O=v?v():g,y=(0,h.jsxs)(o.Z,{alignItems:"center",children:[j&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(j,{default:!x,size:2*d.iI}),(0,h.jsx)(l.Z,{mr:1})]}),O]});r>=1&&e>=2&&n.push((0,h.jsx)("div",{style:{marginLeft:1.5*d.iI}},"spacing-".concat(g))),x?n.push((0,h.jsx)(c.Z,{backgroundGradient:u.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:b,onClick:function(e){(0,f.j)(e),s(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:b,children:y},g)):n.push((0,h.jsx)("div",{style:{padding:4},children:(0,h.jsx)(i.Z,{borderLess:!0,compact:b,default:!0,onClick:function(e){(0,f.j)(e),s(t)},outline:!0,small:b,children:y})},"button-tab-".concat(g)))})),n}),[s,m,b,v]),x=(0,h.jsx)(o.Z,{alignItems:"center",children:g});return t?x:(0,h.jsx)(p,{allowScroll:n,noPadding:a,children:x})}},38341:function(e,n,t){"use strict";var r=t(21831),i=t(82394),o=t(26304),c=(t(82684),t(9518)),l=t(67971),u=t(86673),a=t(19711),d=t(23831),s=t(10503),p=t(73942),f=t(49125),h=t(28598),m=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];function b(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?b(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=c.default.div.withConfig({displayName:"Checkbox__CheckboxContainer",componentId:"sc-ujqx42-0"})(["display:inline-block;vertical-align:middle;cursor:pointer;"]),x=c.default.div.withConfig({displayName:"Checkbox__ErrorContainer",componentId:"sc-ujqx42-1"})(["margin-top:4px;"]),j=c.default.input.withConfig({displayName:"Checkbox__HiddenCheckbox",componentId:"sc-ujqx42-2"})(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;",""],(function(e){return e.notClickable&&"\n background-color: ".concat((e.theme.content||d.Z.content).disabled,"\n border-color: ").concat((e.theme.content||d.Z.content).disabled,"\n\n &:hover {\n cursor: not-allowed;\n }\n ")})),O=c.default.div.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-ujqx42-3"})(["border-radius:","px;height:","px;transition:all 150ms;width:","px;svg{position:relative;visibility:",";}"," "," "," "," input[disabled]{cursor:default;}"," ",""],.5*f.iI,2*f.iI,2*f.iI,(function(e){return e.checked||e.required?"visible":"hidden"}),(function(e){return e.large&&"\n svg {\n left: -4px;\n top: -8px;\n }\n "}),(function(e){return!e.checked&&"\n background-color: ".concat((e.theme.background||d.Z.background).popup,";\n border: ").concat(p.PV,"px ").concat(p.M8," ").concat((e.theme.content||d.Z.content).muted,";\n ")}),(function(e){return e.checked&&"\n background-color: ".concat((e.theme.interactive||d.Z.interactive).checked,";\n border: ").concat(p.YF,"px ").concat(p.M8," transparent;\n ")}),(function(e){return e.required&&"\n background-color: ".concat((e.theme.content||d.Z.content).disabled,";\n border: ").concat(p.YF,"px ").concat(p.M8," transparent;\n ")}),(function(e){return e.disabled&&"\n background-color: ".concat((e.theme.content||d.Z.content).disabled,";\n border-color: ").concat((e.theme.content||d.Z.content).disabled,";\n\n &:hover {\n cursor: not-allowed;\n }\n ")}),(function(e){return e.warning&&"\n background-color: ".concat((e.theme.accent||d.Z.accent).warning,";\n border-color: ").concat((e.theme.interactive||d.Z.interactive).defaultBorder,"\n ")})),y=c.default.label.withConfig({displayName:"Checkbox__LabelStyle",componentId:"sc-ujqx42-4"})(["-ms-flex-direction:column;align-items:center;display:flex;flex-direction:column;flex-direction:row;&:hover{cursor:pointer;}"]);n.Z=function(e){var n=e.beforeIcon,t=e.checked,i=e.disabled,c=e.errorMessage,d=e.label,p=e.labelDescription,b=e.large,Z=e.meta,_=e.monospace,P=void 0!==_&&_,k=e.onClick,S=e.required,w=e.small,C=void 0!==w&&w,A=e.warning,E=e.xsmall,T=void 0!==E&&E,I=(0,o.Z)(e,m),R=A||!!(c||Z&&Z.touched&&Z.error);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(y,{onClick:function(e){e.preventDefault(),k&&!i&&k(e)},children:[(0,h.jsxs)(g,{children:[(0,h.jsx)(j,v(v({},I),{},{disabled:i?"disabled":void 0,notClickable:i})),(0,h.jsx)(O,{checked:t,disabled:i,large:b,required:S,warning:R,children:(0,h.jsx)(s.Jr,{size:f.iI*(b?3:2)})})]}),n&&(0,h.jsx)(u.Z,{ml:1,children:(0,h.jsx)(l.Z,{children:n})}),d&&(0,h.jsxs)(u.Z,{pl:1,children:["string"===typeof d&&(0,h.jsx)(a.ZP,{disabled:i,lineThrough:i,monospace:P,small:C,xsmall:T,children:d}),"string"!==typeof d&&d,p&&(0,h.jsx)(a.ZP,{muted:!0,small:!0,children:p})]})]}),(c||Z&&Z.touched&&Z.error)&&(0,h.jsx)(x,{children:(0,h.jsx)(a.ZP,{small:!0,warning:!0,children:c?(0,r.Z)(c):Z.error})})]})}},44613:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Ye}});var r,i=t(77837),o=t(82394),c=t(38860),l=t.n(c),u=t(89565),a=t.n(u),d=t(12691),s=t.n(d),p=t(9518),f=t(4804),h=t(82684),m=t(86422),b=t(16634),v=t(34744),g=t(60328),x=t(38341),j=t(67971),O=t(86673),y=t(19711),Z=t(2850),_=t(49125),P=p.default.div.withConfig({displayName:"indexstyle__FilterRowStyle",componentId:"sc-kvapsi-0"})(["padding-bottom:","px;padding-top:","px;"],_.iI/2,_.iI/2);!function(e){e.CRITICAL="CRITICAL",e.DEBUG="DEBUG",e.ERROR="ERROR",e.EXCEPTION="EXCEPTION",e.INFO="INFO",e.LOG="LOG",e.WARNING="WARNING"}(r||(r={}));var k,S=[r.CRITICAL,r.DEBUG,r.ERROR,r.EXCEPTION,r.INFO,r.LOG,r.WARNING];!function(e){e.LAST_HOUR="Last hour",e.LAST_DAY="Last day",e.LAST_WEEK="Last week",e.LAST_30_DAYS="Last 30 days",e.CUSTOM_RANGE="Custom range"}(k||(k={}));var w=t(73942),C=t(73899);var A=(0,p.css)(["",""],(function(e){return"\n background-color: ".concat(function(e){var n=e.critical,t=e.debug,r=e.error,i=e.exception,o=e.info,c=e.log,l=e.warning;return n?C.Zl:t?C.EG:r?C.hl:i?C.hM:o?C.gN:c?C.Wd:l?C.$R:"transparent"}(e),";\n ")})),E=p.default.div.withConfig({displayName:"indexstyle__LogLevelIndicatorStyle",componentId:"sc-1e2zh7m-0"})([""," border-radius:","px;height:12px;width:5px;"],A,w.n_),T=t(90211),I=t(44162),R=t(33766),D=t(28598);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 N(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}var M=function(e){var n=e.blocks,t=e.query,r=(0,h.useContext)(p.ThemeContext),i=(0,h.useMemo)((function(){return t["level[]"]}),[t]),c=(0,h.useMemo)((function(){return t["block_type[]"]}),[t]),l=(0,h.useMemo)((function(){return t["block_uuid[]"]}),[t]),u=(0,h.useMemo)((function(){return t["pipeline_schedule_id[]"]}),[t]),a=(0,h.useMemo)((function(){return t["pipeline_run_id[]"]}),[t]),d=(0,h.useMemo)((function(){return t["block_run_id[]"]}),[t]);return(0,D.jsx)(Z.M,{children:(0,D.jsxs)(O.Z,{p:_.cd,children:[(0,D.jsxs)(O.Z,{mb:3,children:[(0,D.jsx)(O.Z,{mb:1,children:(0,D.jsx)(y.ZP,{bold:!0,default:!0,large:!0,children:"Log level"})}),S.map((function(e){return(0,D.jsx)(g.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,R.g_)(t,{level:e},{isList:!0})},children:(0,D.jsx)(P,{children:(0,D.jsxs)(j.Z,{alignItems:"center",children:[(0,D.jsx)(x.Z,{checked:Array.isArray(i)&&(null===i||void 0===i?void 0:i.includes(String(e)))}),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsx)(E,N({},(0,o.Z)({},e.toLowerCase(),!0))),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsx)(y.ZP,{disableWordBreak:!0,children:(0,T.kC)(e.toLowerCase())})]})})},e)}))]}),(0,D.jsxs)(O.Z,{mb:3,children:[(0,D.jsx)(O.Z,{mb:1,children:(0,D.jsx)(y.ZP,{bold:!0,default:!0,large:!0,children:"Block type"})}),[m.tf.DATA_LOADER,m.tf.TRANSFORMER,m.tf.DATA_EXPORTER].map((function(e){return(0,D.jsx)(g.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,R.g_)(t,{block_type:e},{isList:!0})},children:(0,D.jsx)(P,{children:(0,D.jsxs)(j.Z,{alignItems:"center",children:[(0,D.jsx)(x.Z,{checked:Array.isArray(c)&&(null===c||void 0===c?void 0:c.includes(String(e)))}),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsx)(b.Z,{color:(0,I.qn)(e,{theme:r}).accent,size:1.5*_.iI,square:!0}),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsx)(y.ZP,{disableWordBreak:!0,muted:!0,monospace:!0,children:e})]})})},e)}))]}),(0,D.jsxs)(O.Z,{mb:3,children:[(0,D.jsx)(O.Z,{mb:1,children:(0,D.jsx)(y.ZP,{bold:!0,default:!0,large:!0,children:"Block"})}),n.filter((function(e){var n=e.type;return m.tf.SCRATCHPAD!==n})).map((function(e){return(0,D.jsx)(g.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,R.g_)(t,{block_uuid:e.uuid},{isList:!0,resetLimitParams:!0})},children:(0,D.jsx)(P,{children:(0,D.jsxs)(j.Z,{alignItems:"center",children:[(0,D.jsx)(x.Z,{checked:Array.isArray(l)&&(null===l||void 0===l?void 0:l.includes(String(e.uuid)))}),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsx)(b.Z,{color:(0,I.qn)(e.type,{blockColor:e.color,theme:r}).accent,size:1.5*_.iI,square:!0}),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsx)(y.ZP,{disableWordBreak:!0,monospace:!0,muted:!0,children:e.uuid})]})})},e.uuid)}))]}),(null===u||void 0===u?void 0:u.length)&&(0,D.jsxs)(O.Z,{mb:3,children:[(0,D.jsx)(O.Z,{mb:1,children:(0,D.jsx)(y.ZP,{bold:!0,default:!0,large:!0,children:"Trigger"})}),u.map((function(e){return(0,D.jsx)(g.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,R.g_)(t,{pipeline_schedule_id:e},{isList:!0})},children:(0,D.jsx)(P,{children:(0,D.jsxs)(j.Z,{alignItems:"center",children:[(0,D.jsx)(x.Z,{checked:Array.isArray(u)&&(null===u||void 0===u?void 0:u.includes(e))}),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsx)(y.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"pipeline-schedule-".concat(e))}))]}),(null===a||void 0===a?void 0:a.length)&&(0,D.jsxs)(O.Z,{mb:3,children:[(0,D.jsx)(O.Z,{mb:1,children:(0,D.jsx)(y.ZP,{bold:!0,default:!0,large:!0,children:"Pipeline run"})}),a.map((function(e){return(0,D.jsx)(g.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,R.g_)(t,{pipeline_run_id:e},{isList:!0})},children:(0,D.jsx)(P,{children:(0,D.jsxs)(j.Z,{alignItems:"center",children:[(0,D.jsx)(x.Z,{checked:Array.isArray(a)&&(null===a||void 0===a?void 0:a.includes(e))}),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsx)(y.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"pipeline-run-".concat(e))}))]}),(null===d||void 0===d?void 0:d.length)&&(0,D.jsxs)(O.Z,{mb:3,children:[(0,D.jsx)(O.Z,{mb:1,children:(0,D.jsx)(y.ZP,{bold:!0,default:!0,large:!0,children:"Block run"})}),d.map((function(e){return(0,D.jsx)(g.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,R.g_)(t,{block_run_id:e},{isList:!0})},children:(0,D.jsx)(P,{children:(0,D.jsxs)(j.Z,{alignItems:"center",children:[(0,D.jsx)(x.Z,{checked:Array.isArray(d)&&(null===d||void 0===d?void 0:d.includes(e))}),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsx)(y.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"block-run-".concat(e))}))]})]})})},B=t(93461),H=t(11135),Y=t(10919),W=t(75582),F=t(32316),U=t(58180),q=p.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-1r43sbu-0"})([""," height:","px;width:100%;"],A,.5*_.iI),X=p.default.div.withConfig({displayName:"indexstyle__BadgeStyle",componentId:"sc-1r43sbu-1"})([""," border-radius:","px;display:inline-block;padding:","px ","px;"],A,w.BG,.25*_.iI,.5*_.iI),z=t(10503),J=t(92083),G=t.n(J);function V(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?V(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):V(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Q=/([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}) (.+)/;function $(e){var n=e.content.trim().split(Q),t=[],r=[];return n.forEach((function(e){"\n"===e?(r.length>=1&&t.push(r.join(" ").trim()),r=[]):r.filter((function(e){return e})).length<=1&&r.push(e.trim())})),t.push(r.join(" ").trim()),t.map((function(n){return function(e){var n=e.content.trim().match(Q),t=null===n||void 0===n?void 0:n[1],r=null===n||void 0===n?void 0:n[2],i={};return r&&(0,T.Pb)(r)&&(i=JSON.parse(r)),K(K({},e),{},{createdAt:t,data:i})}(K(K({},e),{},{content:n}))}))}function ee(e){return e&&G().unix(e).utc().format("YYYY-MM-DD HH:mm:ss.SSS")}var ne=t(24224);function te(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 re(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?te(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):te(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ie=["error","error_stack","error_stacktrace"],oe={uuid:"Details"},ce={uuid:"Errors"};var le,ue,ae,de=function(e){var n=e.log,t=e.onClose,r=(0,h.useState)(oe),i=r[0],c=r[1],l=(0,h.useState)(!1),u=l[0],a=l[1],d=n.data,s=n.name,p=n.path,f=d||{},m=f.error,b=f.error_stack,x=f.error_stacktrace,Z=f.level,P=f.timestamp,k=(0,o.Z)({},Z.toLowerCase(),!0),S=(0,h.useMemo)((function(){var e=[["file name",s],["file path",p]];return Object.entries(d).forEach((function(n){var t=(0,W.Z)(n,2),r=t[0],i=t[1];ie.includes(r)||e.push([r,i])})),x&&e.push(["error",x]),(0,ne.YC)(e,(function(e){var n=(0,W.Z)(e,2),t=n[0];n[1];return t}))}),[d,x,s,p]),w=(0,h.useMemo)((function(){var e=[oe];return m&&e.push(ce),(0,D.jsx)(F.Z,{onClickTab:c,selectedTabUUID:null===i||void 0===i?void 0:i.uuid,tabs:e})}),[m,b,x,i,c]);return(0,D.jsxs)("div",{children:[(0,D.jsx)(q,re({},k)),(0,D.jsx)(O.Z,{p:_.cd,children:(0,D.jsxs)(j.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,D.jsxs)(B.Z,{alignItems:"center",children:[(0,D.jsx)(X,re(re({},k),{},{children:(0,D.jsx)(y.ZP,{bold:!0,inverted:!0,monospace:!0,small:!0,children:Z})})),(0,D.jsx)(O.Z,{mr:_.cd}),(0,D.jsx)(y.ZP,{monospace:!0,children:ee(P)})]}),(0,D.jsx)(g.Z,{iconOnly:!0,noBackground:!0,onClick:function(){return t()},children:(0,D.jsx)(z.x8,{size:1.5*_.iI})})]})}),(0,D.jsx)(v.Z,{medium:!0}),(0,D.jsx)(O.Z,{py:_.cd,children:w}),oe.uuid===(null===i||void 0===i?void 0:i.uuid)&&(0,D.jsx)(U.Z,{columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:null===S||void 0===S?void 0:S.map((function(e,n){var t=(0,W.Z)(e,2),r=t[0],i=t[1],o="message"===r,c="tags"===r,l=i,d=i;return c?d=l=(0,T.Pb)(i)?JSON.parse(JSON.stringify(i,null,2)):JSON.stringify(i,null,2):o&&u&&(0,T.Pb)(i)&&(d=JSON.stringify(JSON.parse(i),null,2),l=(0,D.jsx)("pre",{children:d})),[(0,D.jsx)(y.ZP,{monospace:!0,muted:!0,children:r},"".concat(r,"_").concat(n,"_key")),(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(y.ZP,{monospace:!0,textOverflow:!0,title:d,whiteSpaceNormal:o&&u||c,wordBreak:o&&u||c,children:[!c&&l,c&&(0,D.jsx)("pre",{children:l})]},"".concat(r,"_").concat(n,"_val")),o&&(0,D.jsx)(Y.Z,{muted:!0,onClick:function(){return a((function(e){return!e}))},children:u?"Click to hide log":"Click to show full log message"})]})]})),uuid:"LogDetail"}),ce.uuid===(null===i||void 0===i?void 0:i.uuid)&&(0,D.jsxs)(O.Z,{mb:5,px:_.cd,children:[(0,D.jsx)(O.Z,{mb:1,children:(0,D.jsx)(y.ZP,{bold:!0,children:"Error"})}),null===m||void 0===m?void 0:m.map((function(e){return e.split("\n").map((function(e){return e.split("\\n").map((function(e){return(0,D.jsx)(y.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:e},e)}))}))})),b&&(0,D.jsxs)(O.Z,{mt:3,children:[(0,D.jsx)(O.Z,{mb:1,children:(0,D.jsx)(y.ZP,{bold:!0,children:"Stack trace"})}),null===b||void 0===b?void 0:b.map((function(e){return null===e||void 0===e?void 0:e.map((function(e){return(0,D.jsx)(y.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:e},e)}))}))]})]})]})},se=t(60547),pe=t(98781),fe=t(41788),he=t(54283),me=t(2713),be=t(47999),ve=t(55378),ge=t(82944),xe=t(66166),je="_limit",Oe="_offset",ye=20,Ze=[k.LAST_HOUR,k.LAST_DAY,k.LAST_WEEK,k.LAST_30_DAYS],_e=(le={},(0,o.Z)(le,k.LAST_HOUR,3600),(0,o.Z)(le,k.LAST_DAY,86400),(0,o.Z)(le,k.LAST_WEEK,604800),(0,o.Z)(le,k.LAST_30_DAYS,2592e3),le),Pe=t(84779),ke=t(42305),Se=t(7715),we=t(59e3);function Ce(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 Ae(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ce(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ce(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}!function(e){e.START="start_timestamp",e.END="end_timestamp"}(ae||(ae={}));var Ee=(ue={},(0,o.Z)(ue,je,ye),(0,o.Z)(ue,Oe,0),ue);var Te=function(e){var n=e.allPastLogsLoaded,t=e.loadNewerLogInterval,r=e.loadPastLogInterval,i=e.selectedRange,c=e.setSelectedRange,l=(0,h.useState)(null),u=l[0],a=l[1],d=(0,h.useState)(null),s=d[0],p=d[1],f=(0,h.useState)({hour:"00",minute:"00"}),m=f[0],b=f[1],v=(0,h.useState)(new Date),x=v[0],Z=v[1],P=(0,h.useState)({hour:(0,ke.lJ)(String((new Date).getUTCHours())),minute:(0,ke.lJ)(String((new Date).getUTCMinutes()))}),S=P[0],w=P[1],C=(0,we.iV)(),A=(0,xe.Z)(C);return(0,h.useEffect)((function(){if(!(0,Se.Xy)(C,A)){var e=C.start_timestamp,n=C.end_timestamp;if(e){var t=(0,ke.Pc)(e),r=t.date,i=t.hour,o=t.minute;p(r),b({hour:(0,ke.lJ)(i),minute:(0,ke.lJ)(o)});var l=Math.ceil(Date.now()/1e3)-e;Math.abs(l-_e[k.LAST_DAY])<=60&&c(k.LAST_DAY)}if(n){var u=(0,ke.Pc)(n),a=u.date,d=u.hour,s=u.minute;Z(a),w({hour:(0,ke.lJ)(d),minute:(0,ke.lJ)(s)})}}}),[C,A]),(0,D.jsx)(O.Z,{py:1,children:(0,D.jsxs)(j.Z,{alignItems:"center",children:[(0,D.jsx)(H.ZP,{blackBorder:!0,disabled:n,inline:!0,onClick:r,paddingBottom:.75*_.iI,paddingTop:.75*_.iI,uuid:"logs/load_older_logs",children:n?"All past logs within range loaded":"Load older logs"}),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsx)(H.ZP,{blackBorder:!0,disabled:(null===C||void 0===C?void 0:C._offset)<=0,inline:!0,onClick:t,paddingBottom:.75*_.iI,paddingTop:.75*_.iI,uuid:"logs/load_newer_logs",children:"Load newer logs"}),(0,D.jsx)(O.Z,{mr:2}),(0,D.jsx)(ve.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault();var n=e.target.value;if(c(n),Ze.includes(n)){var t,r=(0,Pe.JI)(_e[n]);(0,R.u7)(Ae((t={},(0,o.Z)(t,ae.START,r),(0,o.Z)(t,ae.END,null),t),Ee))}},paddingRight:4*_.iI,placeholder:"Select time range",value:i,children:Object.values(k).map((function(e){return(0,D.jsx)("option",{value:e,children:e},e)}))}),(0,D.jsx)(O.Z,{mr:1}),i===k.CUSTOM_RANGE&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(ge.Z,{compact:!0,defaultColor:!0,onClick:function(){return a(0)},paddingRight:0,placeholder:"Start",value:s?(0,ke.AY)(s,null===m||void 0===m?void 0:m.hour,null===m||void 0===m?void 0:m.minute):""}),(0,D.jsx)(be.Z,{onClickOutside:function(){return a(null)},open:0===u,style:{position:"relative"},children:(0,D.jsx)(me.Z,{selectedDate:s,selectedTime:m,setSelectedDate:p,setSelectedTime:b})}),(0,D.jsx)(O.Z,{px:1,children:(0,D.jsx)(y.ZP,{children:"to"})}),(0,D.jsx)(ge.Z,{compact:!0,defaultColor:!0,onClick:function(){return a(1)},paddingRight:0,placeholder:"End",value:x?(0,ke.AY)(x,null===S||void 0===S?void 0:S.hour,null===S||void 0===S?void 0:S.minute):""}),(0,D.jsx)(be.Z,{onClickOutside:function(){return a(null)},open:1===u,style:{position:"relative"},children:(0,D.jsx)(me.Z,{selectedDate:x,selectedTime:S,setSelectedDate:Z,setSelectedTime:w})}),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsx)(g.Z,{borderRadius:_.iI/2,onClick:function(){var e,n=(0,ke.BP)(s,m.hour,m.minute),t=(0,ke.BP)(x,S.hour,S.minute);(0,R.u7)(Ae((e={},(0,o.Z)(e,ae.START,(0,ke.A5)(n)),(0,o.Z)(e,ae.END,(0,ke.A5)(t)),e),Ee))},padding:"".concat(_.iI/2,"px"),primary:!0,children:"Search"})]})]})})},Ie=t(82531),Re=t(59920);function De(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 Le(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?De(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):De(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ne="log_uuid",Me="pipeline_run_id[]",Be="block_run_id[]";function He(e){var n=e.pipeline,t=(0,h.useContext)(p.ThemeContext),r=(0,h.useRef)(null),i=n.uuid,c=(0,h.useState)(null),l=c[0],u=c[1],d=(0,h.useState)(null),g=d[0],x=d[1],Z=(0,h.useState)(null),P=Z[0],S=Z[1],w=(0,h.useState)(!1),C=w[0],A=w[1],L=Ie.ZP.pipelines.detail(i,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,N=(0,h.useMemo)((function(){return Le(Le({},null===L||void 0===L?void 0:L.pipeline),{},{uuid:i})}),[L,i]),W=(null===N||void 0===N?void 0:N.type)===pe.qL.INTEGRATION,F=(0,h.useMemo)((function(){return N.blocks||[]}),[N]),q=(0,h.useMemo)((function(){var e=(0,ne.HK)(F,(function(e){return e.uuid}));if(W){var n,t=(0,ne.sE)(F,(function(e){var n=e.type;return m.tf.DATA_LOADER===n})),r=t?(0,f.Qc)(t.content):{},i=((null===r||void 0===r||null===(n=r.catalog)||void 0===n?void 0:n.streams)||[]).reduce((function(e,n){var t=n.tap_stream_id,r={};return F.forEach((function(e){var n=e.uuid,i=e.type,o="".concat(n,":").concat(t);r[o]={type:i}})),Le(Le({},e),r)}),{});e=Le(Le({},i),e)}return e}),[F,W]),X=(0,we.iV)(),J=!(null!==X&&void 0!==X&&X.start_timestamp)&&!(null!==X&&void 0!==X&&X.hasOwnProperty(Me)||null!==X&&void 0!==X&&X.hasOwnProperty(Be)),G=(0,Pe.JI)(_e[k.LAST_DAY]),V=Ie.ZP.logs.pipelines.list(l?i:null,(0,Se.gR)(J?Le(Le({},l),{},{start_timestamp:G}):l,[Ne]),{refreshInterval:5e3}),K=V.data,Q=V.mutate,te=!K,re=(0,h.useMemo)((function(){var e;if(null!==K&&void 0!==K&&null!==(e=K.logs)&&void 0!==e&&e[0]){var n,t=(null===(n=K.logs)||void 0===n?void 0:n[0])||{};return{blockRunLogs:t.block_run_logs,pipelineRunLogs:t.pipeline_run_logs,totalBlockRunLogCount:t.total_block_run_log_count,totalPipelineRunLogCount:t.total_pipeline_run_log_count}}return{blockRunLogs:[],pipelineRunLogs:[],totalBlockRunLogCount:0,totalPipelineRunLogCount:0}}),[K]),ie=re.blockRunLogs,oe=re.pipelineRunLogs,ce=re.totalBlockRunLogCount,le=re.totalPipelineRunLogCount,ue=+(null===X||void 0===X?void 0:X._limit)>=ce&&+(null===X||void 0===X?void 0:X._limit)>=le,ae=(0,h.useMemo)((function(){return(0,ne.YC)(ie.concat(oe).reduce((function(e,n){return e.concat($(n))}),[]),(function(e){var n=e.data;return(null===n||void 0===n?void 0:n.timestamp)||0}))}),[ie,oe]),fe=(0,h.useMemo)((function(){return ae.filter((function(e){var n=e.data,t=[];if(!l)return!0;if(l["level[]"]&&t.push(l["level[]"].includes(null===n||void 0===n?void 0:n.level)),l["block_type[]"]){var r,i,o=null===n||void 0===n?void 0:n.block_uuid;if(W)o=null===n||void 0===n||null===(i=n.block_uuid)||void 0===i?void 0:i.split(":").slice(0,2).join(":");t.push(l["block_type[]"].includes(null===(r=q[o])||void 0===r?void 0:r.type))}if(l["pipeline_run_id[]"]){var c=null===n||void 0===n?void 0:n.pipeline_run_id;t.push(l["pipeline_run_id[]"].includes(String(c)))}if(l["block_run_id[]"]){var u=null===n||void 0===n?void 0:n.block_run_id;t.push(l["block_run_id[]"].includes(String(u)))}return t.every((function(e){return e}))}))}),[q,W,ae,l]),me=fe.length,be=(0,xe.Z)(X);(0,h.useEffect)((function(){var e;J&&(0,R.u7)((e={},(0,o.Z)(e,je,ye),(0,o.Z)(e,Oe,0),(0,o.Z)(e,"start_timestamp",G),e))}),[J]),(0,h.useEffect)((function(){(0,Se.Xy)(X,be)||u(X)}),[X,be]);var ve=(0,xe.Z)(g);(0,h.useEffect)((function(){var e=X.log_uuid;!e||g||ve||x(ae.find((function(n){var t=n.data;return(null===t||void 0===t?void 0:t.uuid)===e})))}),[ae,X,g,ve]),(0,h.useEffect)((function(){var e;C&&!te&&(null===r||void 0===r||null===(e=r.current)||void 0===e||e.scrollIntoView(),A(!1))}),[C,te]);var ge=X._limit,Ze=X._offset,ke=+(ge||0),Ce=+(Ze||0),Ae=Math.max(ce,le),Ee=(0,h.useCallback)((function(){var e,n=ke,t=Ce;(ce>ke||le>ke)&&(n=Math.min(Ae,ke+ye),t=Math.min(Ce+ye,Ae-Ae%ye),(0,R.u7)(Le(Le({},X),{},(e={},(0,o.Z)(e,je,n),(0,o.Z)(e,Oe,t),e))))}),[Ae,ke,Ce,X,ce,le]),De=(0,h.useCallback)((function(){var e,n=ke,t=Ce;ke>=ye&&(n=Math.max(ye,ke-ye),ke>=Ae&&Ae%ye!==0&&(n=Ae-Ae%ye),t=Math.max(0,Ce-ye),(0,R.u7)(Le(Le({},X),{},(e={},(0,o.Z)(e,je,n),(0,o.Z)(e,Oe,t),e))))}),[Ae,ke,Ce,X]);return(0,D.jsxs)(se.Z,{after:g&&(0,D.jsx)(de,{log:g,onClose:function(){(0,R.u7)((0,o.Z)({},Ne,null)),x(null)}}),afterHidden:!g,afterWidth:80*_.iI,before:(0,D.jsx)(M,{blocks:F,query:l}),beforeWidth:20*_.iI,breadcrumbs:[{label:function(){return"Logs"}}],pageName:Re.M.PIPELINE_LOGS,pipeline:N,subheader:null,title:function(e){var n=e.name;return"".concat(n," logs")},uuid:"pipeline/logs",children:[(0,D.jsx)(O.Z,{px:_.cd,py:1,children:(0,D.jsxs)(y.ZP,{children:[!te&&(0,D.jsxs)(D.Fragment,{children:[(0,T.x6)(me)," logs found",(0,D.jsx)(Te,{allPastLogsLoaded:ue,loadNewerLogInterval:De,loadPastLogInterval:Ee,selectedRange:P,setSelectedRange:S})]}),te&&"Searching..."]})}),(0,D.jsx)(v.Z,{light:!0}),te&&(0,D.jsx)(O.Z,{p:_.cd,children:(0,D.jsx)(he.Z,{})}),!te&&fe.length>=1&&(0,D.jsx)(U.Z,{columnFlex:[null,null,1,9,null],columnMaxWidth:function(e){return 3===e?"100px":null},columns:[{label:function(){return""},uuid:"!"},{uuid:"Date"},{uuid:"Block"},{uuid:"Message"},{label:function(){return""},uuid:">"}],compact:!0,onClickRow:function(e){var n,t=fe[e],r=null===(n=t.data)||void 0===n?void 0:n.uuid;l.log_uuid===r&&(r=null),(0,R.u7)((0,o.Z)({},Ne,r)),x(r?t:null)},rows:null===fe||void 0===fe?void 0:fe.map((function(e){var n,r,c,l=e.content,u=(e.createdAt,e.data),d=e.name,p=u||{},f=p.block_uuid,h=p.level,m=p.message,v=(p.pipeline_uuid,p.timestamp),g=f||d.split(".log")[0],x=g.split(":");pe.qL.INTEGRATION===N.type&&(g=x[0],r=x[1],c=x[2]);var Z=q[g];if(Z||(Z=q[x[0]]),Z){var P=(0,I.qn)(Z.type,{blockColor:Z.color,theme:t}).accent;n=(0,D.jsx)(j.Z,{alignItems:"center",children:(0,D.jsx)(s(),{as:"/pipelines/".concat(i,"/edit?block_uuid=").concat(g),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,D.jsxs)(Y.Z,{block:!0,fullWidth:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,D.jsx)(b.Z,{color:P,size:1.5*_.iI,square:!0}),(0,D.jsx)(O.Z,{mr:1}),(0,D.jsxs)(y.ZP,{monospace:!0,children:[g,r&&": ",r&&(0,D.jsx)(y.ZP,{default:!0,inline:!0,monospace:!0,children:r}),c>=0&&": ",c>=0&&(0,D.jsx)(y.ZP,{default:!0,inline:!0,monospace:!0,children:c})]})]})})})}return[(0,D.jsx)(B.Z,{alignItems:"center",justifyContent:"center",children:(0,D.jsx)(E,Le({},(0,o.Z)({},null===h||void 0===h?void 0:h.toLowerCase(),!0)))},"log_type"),(0,D.jsx)(y.ZP,{default:!0,monospace:!0,children:ee(v)},"log_timestamp"),n,(0,D.jsx)(y.ZP,{monospace:!0,preWrap:!0,textOverflow:!0,title:m||l,children:(0,D.jsx)(a(),{children:m||l})},"log_message"),(0,D.jsx)(B.Z,{flex:1,justifyContent:"flex-end",children:(0,D.jsx)(z._Q,{default:!0,size:2*_.iI})},"chevron_right_icon")]})),uuid:"logs"}),(0,D.jsx)(O.Z,{p:_.cd,ref:r,children:(0,D.jsx)(H.ZP,{blackBorder:!0,inline:!0,onClick:function(){A(!0),"0"===(null===X||void 0===X?void 0:X._offset)&&(null===X||void 0===X?void 0:X._limit)===String(ye)?Q(null):(0,R.u7)({_limit:ye,_offset:0})},paddingBottom:.75*_.iI,paddingTop:.75*_.iI,uuid:"logs/toolbar/load_newest",children:"Load latest logs"})})]})}He.getInitialProps=function(){var e=(0,i.Z)(l().mark((function e(n){var t;return l().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 Ye=(0,fe.Z)(He)},42305:function(e,n,t){"use strict";t.d(n,{A5:function(){return p},AY:function(){return f},BP:function(){return s},JX:function(){return d},OC:function(){return o},Pc:function(){return h},Tz:function(){return a},d$:function(){return u},lJ:function(){return m},n1:function(){return l}});var r=t(92083),i=t.n(r),o="YYYY-MM-DD HH:mm:ss",c="YYYY-MM-DD HH:mm",l="YYYY-MM-DD";function u(e,n){var t=n.dayAgo,r=n.includeSeconds,l=n.utcFormat,u=i()(e),a=c;return l&&(u=u.utc()),t&&(u=u.subtract(1,"days")),r&&(a=o),u.format(a)}function a(e){var n=u((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0});return null!==e&&void 0!==e&&e.dateObj?new Date(n):n}function d(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:c)}function s(e,n,t){return i()(e).utc().hours(+n).minutes(+t).format()}function p(e){return i()(e).unix()}function f(e,n,t,r){var i="".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t);return r?"".concat(i,":").concat(r):i}function h(e){var n=i().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function m(e){return e.padStart(2,"0")}},84779:function(e,n,t){"use strict";t.d(n,{DU:function(){return c},JI:function(){return l},Jw:function(){return o}});var r=t(75582),i=function(e){var n=String(e).split("."),t=(0,r.Z)(n,2),i=t[0],o=t[1];return"".concat(i.replace(/\B(?=(\d{3})+(?!\d))/g,",")).concat(o?".".concat(o):"")},o=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=parseFloat(e).toFixed(n);return 0===e&&(t=parseFloat(e).toFixed(0)),i(t)};function c(e){if(void 0===e)return"";var n=1===e||0===e?100*e:(100*e).toFixed(2);return"".concat(n,"%")}function l(e){var n=Math.floor(Date.now()/1e3);return e>0?n-e:n}},33766:function(e,n,t){"use strict";t.d(n,{g_:function(){return p},u7:function(){return s}});var r=t(75582),i=t(82394),o=t(34376),c=t.n(o),l=t(59e3),u=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 d(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 s(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,o=t.pushHistory,u=i?{}:(0,l.iV)();n=window.location.pathname;var a=o?c().push:c().replace,s=d(d({},u),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 s[t]}));var p=(0,l.uM)(s);p.length>=1&&(p="?".concat(p));var f="".concat(n.split("?")[0]).concat(p);return a(c().router.pathname,f,{shallow:!0})}function p(e,n,t){var i=t.addingMultipleValues,o=t.isList,c=t.itemsPerPage,l=t.pushHistory,a=void 0!==l&&l,p=t.resetLimitParams,f=d({},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,"[]");f[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),c="".concat(t,"[]"),l=f[c];l&&Array.isArray(l)?(l=l.map(String)).includes(o)?f[c]=(0,u.Od)(l,(function(e){return e===o})):f[c]=l.concat(o):f[c]=[o]})):f=d(d({},f),n),p&&(f._limit=c||20,f._offset=0),s(f,{pushHistory:a})}},62453:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/logs",function(){return t(44613)}])}},function(e){e.O(0,[3850,5716,4804,9565,4495,2344,4506,6166,8180,6214,9774,2888,179],(function(){return n=62453,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5912],{44162:function(n,t,e){"use strict";e.d(t,{HC:function(){return A},Kf:function(){return s},Nk:function(){return p},PY:function(){return f},gE:function(){return m},jv:function(){return b},nz:function(){return v},oh:function(){return a},qn:function(){return l},t1:function(){return h},y9:function(){return T}});var r=e(9518),o=e(23831),i=e(86422),c=e(73942),u=e(49125),d=e(90880),a=68;function l(n,t){var e,r,c=((null===t||void 0===t||null===(e=t.theme)||void 0===e?void 0:e.borders)||o.Z.borders).light,u=((null===t||void 0===t||null===(r=t.theme)||void 0===r?void 0:r.monotone)||o.Z.monotone).grey500,d=t||{},a=d.blockColor,l=d.isSelected,s=d.theme;return l?c=((null===s||void 0===s?void 0:s.content)||o.Z.content).active:i.tf.TRANSFORMER===n||a===i.Lq.PURPLE?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).purple,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).purpleLight):i.tf.DATA_EXPORTER===n||a===i.Lq.YELLOW?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).yellow,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).yellowLight):i.tf.DATA_LOADER===n||a===i.Lq.BLUE?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).blue,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).blueLight):i.tf.SENSOR===n||a===i.Lq.PINK?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).pink,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).pinkLight):i.tf.DBT===n?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).dbt,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).dbtLight):i.tf.EXTENSION===n||a===i.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).teal,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).tealLight):(i.tf.SCRATCHPAD===n||a===i.Lq.GREY||i.tf.CUSTOM===n&&!a)&&(c=((null===s||void 0===s?void 0:s.content)||o.Z.content).default,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).contentDefaultTransparent),{accent:c,accentLight:u}}var s=(0,r.css)([""," "," "," "," "," "," ",""],(0,d.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(l(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(l(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||o.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||o.Z.borders).danger,";\n ")}),(function(n){return n.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(n){return n.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),p=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),f=r.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],s,c.n_,c.M8,c.mP,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n\n &:hover {\n border-color: ").concat(l(n.blockType,n).accent,";\n }\n ")})),v=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-2"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," ",""],s,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,u.iI,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n ")}),(function(n){return n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")})),b=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-3"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],s,c.M8,c.mP,c.M8,c.mP,u.iI,u.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(n){return!n.hasOutput&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-4"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*u.iI,.5*u.iI,(function(n){return n.additionalZIndex>0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||o.Z.text).fileBrowser,";\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-5"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*u.iI),T=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-6"})(["margin-bottom:","px;padding-bottom:","px;",""],u.cd*u.iI,u.iI,(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?u.iI:a,"px;\n ")})),A=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-7"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,a)},43032:function(n,t,e){"use strict";e.d(t,{Cl:function(){return u},Nk:function(){return d},ZG:function(){return c}});var r=e(9518),o=e(23831),i=e(49125),c=1.5*i.iI,u=1*c+i.iI/2,d=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(n){return"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}))},86422:function(n,t,e){"use strict";e.d(t,{$W:function(){return p},DA:function(){return s},HX:function(){return b},J8:function(){return v},Lq:function(){return a},Qj:function(){return m},Ut:function(){return E},V4:function(){return A},VZ:function(){return f},dO:function(){return l},f2:function(){return T},iZ:function(){return h},t6:function(){return c},tf:function(){return d}});var r,o,i,c,u=e(82394);!function(n){n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(c||(c={}));var d,a,l=(r={},(0,u.Z)(r,c.PYTHON,"PY"),(0,u.Z)(r,c.R,"R"),(0,u.Z)(r,c.SQL,"SQL"),(0,u.Z)(r,c.YAML,"YAML"),r);!function(n){n.CHART="chart",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.TRANSFORMER="transformer"}(d||(d={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(a||(a={}));var s,p=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.TRANSFORMER],f=[d.DATA_EXPORTER,d.DATA_LOADER],v=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],b=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],m=[d.CHART,d.SCRATCHPAD,d.SENSOR],h=[d.EXTENSION,d.SCRATCHPAD];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(s||(s={}));var T=[d.CUSTOM,d.DATA_EXPORTER,d.TRANSFORMER],A=(o={},(0,u.Z)(o,d.CUSTOM,"Custom"),(0,u.Z)(o,d.DATA_EXPORTER,"Data exporter"),(0,u.Z)(o,d.DATA_LOADER,"Data loader"),(0,u.Z)(o,d.EXTENSION,"Extension"),(0,u.Z)(o,d.SCRATCHPAD,"Scratchpad"),(0,u.Z)(o,d.SENSOR,"Sensor"),(0,u.Z)(o,d.TRANSFORMER,"Transformer"),o),E=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER,d.SENSOR];i={},(0,u.Z)(i,d.DATA_EXPORTER,"DE"),(0,u.Z)(i,d.DATA_LOADER,"DL"),(0,u.Z)(i,d.SCRATCHPAD,"SP"),(0,u.Z)(i,d.SENSOR,"SR"),(0,u.Z)(i,d.TRANSFORMER,"TF")},50094:function(n,t,e){"use strict";e.r(t);var r=e(77837),o=e(75582),i=e(82394),c=e(38860),u=e.n(c),d=e(82684),a=e(92083),l=e.n(a),s=e(9518),p=e(21679),f=e(16634),v=e(67971),b=e(87372),m=e(87465),h=e(41788),T=e(55378),A=e(86673),E=e(82531),R=e(23831),O=e(67400),_=e(43032),x=e(92953),g=e(44162),y=e(24224),Z=e(28598);function S(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function D(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?S(Object(e),!0).forEach((function(t){(0,i.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):S(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function C(n){var t=n.pipeline,e=(0,d.useContext)(s.ThemeContext),r=(0,d.useState)(null),c=r[0],u=r[1],a=t.uuid,h=E.ZP.pipelines.detail(a,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,S=(0,d.useMemo)((function(){return D(D({},null===h||void 0===h?void 0:h.pipeline),{},{uuid:a})}),[h,a]),C=E.ZP.pipeline_schedules.pipelines.list(a).data,P=(0,d.useMemo)((function(){return null===C||void 0===C?void 0:C.pipeline_schedules}),[C]),N=(0,d.useMemo)((function(){return(0,y.HK)(null===S||void 0===S?void 0:S.blocks,(function(n){return n.uuid}))||{}}),[S]),L={pipeline_uuid:a};(c||0===c)&&(L.pipeline_schedule_id=Number(c));var k=E.ZP.monitor_stats.detail("block_run_count",L),j=k.data,w=k.mutate,I=((null===j||void 0===j?void 0:j.monitor_stat)||{}).stats,M=(0,d.useMemo)((function(){for(var n=new Date,t=[],e=0;e<90;e++)t.unshift(n.toISOString().split("T")[0]),n.setDate(n.getDate()-1);return t}),[]),X=(0,d.useMemo)((function(){if(I)return Object.entries(I).reduce((function(n,t){var e=(0,o.Z)(t,2),r=e[0],c=e[1].data,u=M.map((function(n){return D({date:n},c[n]||{})}));return D(D({},n),{},(0,i.Z)({},r,u))}),{})}),[M,I]),H=(0,d.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[]);return(0,Z.jsx)(m.Z,{breadcrumbs:H,monitorType:x.a.BLOCK_RUNS,pipeline:S,subheader:(0,Z.jsx)(v.Z,{children:(0,Z.jsxs)(T.Z,{backgroundColor:R.Z.interactive.defaultBackground,label:"Trigger:",onChange:function(n){var t=n.target.value;"initial"!==t?(u(t),w(t)):(w(),u(null))},value:c||"initial",children:[(0,Z.jsx)("option",{value:"initial",children:"All"}),P&&P.map((function(n){return(0,Z.jsx)("option",{value:n.id,children:n.name},n.id)}))]})}),children:(0,Z.jsx)(A.Z,{mx:2,children:X&&Object.entries(X).map((function(n){var t,r,i=(0,o.Z)(n,2),c=i[0],u=i[1];return(0,Z.jsxs)(A.Z,{mt:3,children:[(0,Z.jsxs)(v.Z,{alignItems:"center",children:[(0,Z.jsx)(A.Z,{mx:1,children:(0,Z.jsx)(f.Z,{color:(0,g.qn)(null===(t=N[c])||void 0===t?void 0:t.type,{blockColor:null===(r=N[c])||void 0===r?void 0:r.color,theme:e}).accent,size:_.ZG,square:!0})}),(0,Z.jsx)(b.Z,{level:4,children:c})]}),(0,Z.jsx)(A.Z,{mt:1,children:(0,Z.jsx)(p.Z,{colors:O.BAR_STACK_COLORS,data:u,getXValue:function(n){return n.date},height:200,keys:O.BAR_STACK_STATUSES,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:x.C,xLabelFormat:function(n){return l()(n).format("MMM DD")}})})]},c)}))})})}C.getInitialProps=function(){var n=(0,r.Z)(u().mark((function n(t){var e;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.query.pipeline,n.abrupt("return",{pipeline:{uuid:e}});case 2:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}(),t.default=(0,h.Z)(C)},83542:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors/block-runs",function(){return e(50094)}])}},function(n){n.O(0,[3850,2083,5896,2714,2344,4506,6166,6214,2249,7400,9774,2888,179],(function(){return t=83542,n(n.s=t);var t}));var t=n.O();_N_E=t}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5912],{44162:function(n,t,e){"use strict";e.d(t,{HC:function(){return A},Kf:function(){return s},Nk:function(){return p},PY:function(){return f},gE:function(){return m},jv:function(){return b},nz:function(){return v},oh:function(){return a},qn:function(){return l},t1:function(){return h},y9:function(){return T}});var r=e(9518),o=e(23831),i=e(86422),c=e(73942),u=e(49125),d=e(90880),a=68;function l(n,t){var e,r,c=((null===t||void 0===t||null===(e=t.theme)||void 0===e?void 0:e.borders)||o.Z.borders).light,u=((null===t||void 0===t||null===(r=t.theme)||void 0===r?void 0:r.monotone)||o.Z.monotone).grey500,d=t||{},a=d.blockColor,l=d.isSelected,s=d.theme;return l?c=((null===s||void 0===s?void 0:s.content)||o.Z.content).active:i.tf.TRANSFORMER===n||a===i.Lq.PURPLE?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).purple,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).purpleLight):i.tf.DATA_EXPORTER===n||a===i.Lq.YELLOW?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).yellow,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).yellowLight):i.tf.DATA_LOADER===n||a===i.Lq.BLUE?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).blue,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).blueLight):i.tf.SENSOR===n||a===i.Lq.PINK?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).pink,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).pinkLight):i.tf.DBT===n?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).dbt,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).dbtLight):i.tf.EXTENSION===n||a===i.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).teal,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).tealLight):(i.tf.SCRATCHPAD===n||a===i.Lq.GREY||i.tf.CUSTOM===n&&!a)&&(c=((null===s||void 0===s?void 0:s.content)||o.Z.content).default,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).contentDefaultTransparent),{accent:c,accentLight:u}}var s=(0,r.css)([""," "," "," "," "," "," ",""],(0,d.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(l(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(l(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||o.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||o.Z.borders).danger,";\n ")}),(function(n){return n.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(n){return n.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),p=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),f=r.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],s,c.n_,c.M8,c.mP,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n\n &:hover {\n border-color: ").concat(l(n.blockType,n).accent,";\n }\n ")})),v=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-2"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," ",""],s,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,u.iI,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n ")}),(function(n){return n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")})),b=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-3"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],s,c.M8,c.mP,c.M8,c.mP,u.iI,u.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(n){return!n.hasOutput&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-4"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*u.iI,.5*u.iI,(function(n){return n.additionalZIndex>0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||o.Z.text).fileBrowser,";\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-5"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*u.iI),T=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-6"})(["margin-bottom:","px;padding-bottom:","px;",""],u.cd*u.iI,u.iI,(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?u.iI:a,"px;\n ")})),A=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-7"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,a)},43032:function(n,t,e){"use strict";e.d(t,{Cl:function(){return u},Nk:function(){return d},ZG:function(){return c}});var r=e(9518),o=e(23831),i=e(49125),c=1.5*i.iI,u=1*c+i.iI/2,d=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(n){return"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}))},86422:function(n,t,e){"use strict";e.d(t,{$W:function(){return p},DA:function(){return s},HX:function(){return b},J8:function(){return v},Lq:function(){return a},Qj:function(){return m},Ut:function(){return E},V4:function(){return A},VZ:function(){return f},dO:function(){return l},f2:function(){return T},iZ:function(){return h},t6:function(){return c},tf:function(){return d}});var r,o,i,c,u=e(82394);!function(n){n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(c||(c={}));var d,a,l=(r={},(0,u.Z)(r,c.PYTHON,"PY"),(0,u.Z)(r,c.R,"R"),(0,u.Z)(r,c.SQL,"SQL"),(0,u.Z)(r,c.YAML,"YAML"),r);!function(n){n.CHART="chart",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.TRANSFORMER="transformer"}(d||(d={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(a||(a={}));var s,p=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.TRANSFORMER],f=[d.DATA_EXPORTER,d.DATA_LOADER],v=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],b=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],m=[d.CHART,d.SCRATCHPAD,d.SENSOR],h=[d.EXTENSION,d.SCRATCHPAD];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(s||(s={}));var T=[d.CUSTOM,d.DATA_EXPORTER,d.TRANSFORMER],A=(o={},(0,u.Z)(o,d.CUSTOM,"Custom"),(0,u.Z)(o,d.DATA_EXPORTER,"Data exporter"),(0,u.Z)(o,d.DATA_LOADER,"Data loader"),(0,u.Z)(o,d.EXTENSION,"Extension"),(0,u.Z)(o,d.SCRATCHPAD,"Scratchpad"),(0,u.Z)(o,d.SENSOR,"Sensor"),(0,u.Z)(o,d.TRANSFORMER,"Transformer"),o),E=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER,d.SENSOR];i={},(0,u.Z)(i,d.DATA_EXPORTER,"DE"),(0,u.Z)(i,d.DATA_LOADER,"DL"),(0,u.Z)(i,d.SCRATCHPAD,"SP"),(0,u.Z)(i,d.SENSOR,"SR"),(0,u.Z)(i,d.TRANSFORMER,"TF")},50094:function(n,t,e){"use strict";e.r(t);var r=e(77837),o=e(75582),i=e(82394),c=e(38860),u=e.n(c),d=e(82684),a=e(92083),l=e.n(a),s=e(9518),p=e(21679),f=e(16634),v=e(67971),b=e(87372),m=e(87465),h=e(41788),T=e(55378),A=e(86673),E=e(82531),R=e(23831),O=e(67400),_=e(43032),x=e(92953),g=e(44162),y=e(24224),Z=e(28598);function S(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function D(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?S(Object(e),!0).forEach((function(t){(0,i.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):S(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function C(n){var t=n.pipeline,e=(0,d.useContext)(s.ThemeContext),r=(0,d.useState)(null),c=r[0],u=r[1],a=t.uuid,h=E.ZP.pipelines.detail(a,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,S=(0,d.useMemo)((function(){return D(D({},null===h||void 0===h?void 0:h.pipeline),{},{uuid:a})}),[h,a]),C=E.ZP.pipeline_schedules.pipelines.list(a).data,P=(0,d.useMemo)((function(){return null===C||void 0===C?void 0:C.pipeline_schedules}),[C]),N=(0,d.useMemo)((function(){return(0,y.HK)(null===S||void 0===S?void 0:S.blocks,(function(n){return n.uuid}))||{}}),[S]),L={pipeline_uuid:a};(c||0===c)&&(L.pipeline_schedule_id=Number(c));var k=E.ZP.monitor_stats.detail("block_run_count",L),j=k.data,w=k.mutate,I=((null===j||void 0===j?void 0:j.monitor_stat)||{}).stats,M=(0,d.useMemo)((function(){for(var n=new Date,t=[],e=0;e<90;e++)t.unshift(n.toISOString().split("T")[0]),n.setDate(n.getDate()-1);return t}),[]),X=(0,d.useMemo)((function(){if(I)return Object.entries(I).reduce((function(n,t){var e=(0,o.Z)(t,2),r=e[0],c=e[1].data,u=M.map((function(n){return D({date:n},c[n]||{})}));return D(D({},n),{},(0,i.Z)({},r,u))}),{})}),[M,I]),H=(0,d.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[]);return(0,Z.jsx)(m.Z,{breadcrumbs:H,monitorType:x.a.BLOCK_RUNS,pipeline:S,subheader:(0,Z.jsx)(v.Z,{children:(0,Z.jsxs)(T.Z,{backgroundColor:R.Z.interactive.defaultBackground,label:"Trigger:",onChange:function(n){var t=n.target.value;"initial"!==t?(u(t),w(t)):(w(),u(null))},value:c||"initial",children:[(0,Z.jsx)("option",{value:"initial",children:"All"}),P&&P.map((function(n){return(0,Z.jsx)("option",{value:n.id,children:n.name},n.id)}))]})}),children:(0,Z.jsx)(A.Z,{mx:2,children:X&&Object.entries(X).map((function(n){var t,r,i=(0,o.Z)(n,2),c=i[0],u=i[1];return(0,Z.jsxs)(A.Z,{mt:3,children:[(0,Z.jsxs)(v.Z,{alignItems:"center",children:[(0,Z.jsx)(A.Z,{mx:1,children:(0,Z.jsx)(f.Z,{color:(0,g.qn)(null===(t=N[c])||void 0===t?void 0:t.type,{blockColor:null===(r=N[c])||void 0===r?void 0:r.color,theme:e}).accent,size:_.ZG,square:!0})}),(0,Z.jsx)(b.Z,{level:4,children:c})]}),(0,Z.jsx)(A.Z,{mt:1,children:(0,Z.jsx)(p.Z,{colors:O.BAR_STACK_COLORS,data:u,getXValue:function(n){return n.date},height:200,keys:O.BAR_STACK_STATUSES,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:x.C,xLabelFormat:function(n){return l()(n).format("MMM DD")}})})]},c)}))})})}C.getInitialProps=function(){var n=(0,r.Z)(u().mark((function n(t){var e;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.query.pipeline,n.abrupt("return",{pipeline:{uuid:e}});case 2:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}(),t.default=(0,h.Z)(C)},83542:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors/block-runs",function(){return e(50094)}])}},function(n){n.O(0,[3850,5716,5896,2714,2344,4506,6166,6214,2249,7400,9774,2888,179],(function(){return t=83542,n(n.s=t);var t}));var t=n.O();_N_E=t}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4947],{44162:function(t,e,n){"use strict";n.d(e,{HC:function(){return y},Kf:function(){return s},Nk:function(){return p},PY:function(){return f},gE:function(){return v},jv:function(){return m},nz:function(){return h},oh:function(){return u},qn:function(){return d},t1:function(){return x},y9:function(){return b}});var r=n(9518),o=n(23831),i=n(86422),c=n(73942),a=n(49125),l=n(90880),u=68;function d(t,e){var n,r,c=((null===e||void 0===e||null===(n=e.theme)||void 0===n?void 0:n.borders)||o.Z.borders).light,a=((null===e||void 0===e||null===(r=e.theme)||void 0===r?void 0:r.monotone)||o.Z.monotone).grey500,l=e||{},u=l.blockColor,d=l.isSelected,s=l.theme;return d?c=((null===s||void 0===s?void 0:s.content)||o.Z.content).active:i.tf.TRANSFORMER===t||u===i.Lq.PURPLE?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).purple,a=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).purpleLight):i.tf.DATA_EXPORTER===t||u===i.Lq.YELLOW?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).yellow,a=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).yellowLight):i.tf.DATA_LOADER===t||u===i.Lq.BLUE?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).blue,a=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).blueLight):i.tf.SENSOR===t||u===i.Lq.PINK?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).pink,a=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).pinkLight):i.tf.DBT===t?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).dbt,a=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).dbtLight):i.tf.EXTENSION===t||u===i.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).teal,a=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).tealLight):(i.tf.SCRATCHPAD===t||u===i.Lq.GREY||i.tf.CUSTOM===t&&!u)&&(c=((null===s||void 0===s?void 0:s.content)||o.Z.content).default,a=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).contentDefaultTransparent),{accent:c,accentLight:a}}var s=(0,r.css)([""," "," "," "," "," "," ",""],(0,l.eR)(),(function(t){return!t.selected&&!t.hasError&&"\n border-color: ".concat(d(t.blockType,t).accentLight,";\n ")}),(function(t){return t.selected&&!t.hasError&&"\n border-color: ".concat(d(t.blockType,t).accent,";\n ")}),(function(t){return!t.selected&&t.hasError&&"\n border-color: ".concat((t.theme.accent||o.Z.accent).negativeTransparent,";\n ")}),(function(t){return t.selected&&t.hasError&&"\n border-color: ".concat((t.theme.borders||o.Z.borders).danger,";\n ")}),(function(t){return t.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(t){return t.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),p=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),f=r.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],s,c.n_,c.M8,c.mP,(function(t){return"\n background-color: ".concat((t.theme||o.Z).background.content,";\n\n &:hover {\n border-color: ").concat(d(t.blockType,t).accent,";\n }\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-2"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," ",""],s,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,a.iI,(function(t){return"\n background-color: ".concat((t.theme||o.Z).background.content,";\n ")}),(function(t){return t.zIndex&&"\n z-index: ".concat(6+(t.zIndex||0),";\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-3"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],s,c.M8,c.mP,c.M8,c.mP,a.iI,a.iI,(function(t){return"\n background-color: ".concat((t.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(t){return!t.hasOutput&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n ")})),v=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-4"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*a.iI,.5*a.iI,(function(t){return t.additionalZIndex>0&&"\n z-index: ".concat(8+t.additionalZIndex,";\n ")}),(function(t){return"\n background-color: ".concat((t.theme.text||o.Z.text).fileBrowser,";\n ")})),x=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-5"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*a.iI),b=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-6"})(["margin-bottom:","px;padding-bottom:","px;",""],a.cd*a.iI,a.iI,(function(t){return"\n border-bottom: 1px solid ".concat((t.theme.borders||o.Z.borders).medium,";\n padding-left: ").concat(t.normalPadding?a.iI:u,"px;\n ")})),y=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-7"})(["bottom:","px;left:","px;position:absolute;"],1*a.iI,u)},43032:function(t,e,n){"use strict";n.d(e,{Cl:function(){return a},Nk:function(){return l},ZG:function(){return c}});var r=n(9518),o=n(23831),i=n(49125),c=1.5*i.iI,a=1*c+i.iI/2,l=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(t){return"\n background-color: ".concat((t.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}))},68735:function(t,e,n){"use strict";var r=n(26304),o=n(21831),i=n(82394),c=n(82684),a=n(26226),l=n(9518),u=n(90948),d=n(84969),s=n(65743),p=n(85587),f=n(79487),h=n(52136),m=n(67778),v=n(29989),x=n(17066),b=n(84482),y=n(76771),g=n(98889),T=n(65376),E=n(61655),O=n(97745),Z=n(48072),A=n(10103),R=n(84181),k=n(24903),_=n(67971),j=n(86673),D=n(19711),L=n(52359),P=n(23831),S=n(80906),C=n(73899),M=n(2005),w=n(31012),N=n(49125),I=n(24224),F=n(344),X=n(45739),U=n(28598),B=["areaBetweenLines","data","events","height","lineLegendNames","margin","width","xAxisLabel","xLabelFormat","yAxisLabel","yLabelFormat"];function H(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?H(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var q=Y(Y({},T.j),{},{backgroundColor:P.Z.background.muted,border:"none"}),z=(0,E.Z)((function(t){var e=t.areaBetweenLines,n=t.data,r=t.events,i=void 0!==r&&r,a=t.getX,E=t.getY,_=t.gridProps,j=void 0===_?{}:_,L=t.height,B=t.hideGridX,H=t.hideTooltip,z=t.increasedXTicks,W=t.lineLegendNames,G=t.margin,V=t.noCurve,K=t.numYTicks,J=t.renderXTooltipContent,Q=t.renderYTooltipContent,$=t.showTooltip,tt=t.thickStroke,et=t.tooltipData,nt=t.tooltipLeft,rt=void 0===nt?0:nt,ot=t.tooltipTop,it=void 0===ot?[]:ot,ct=t.width,at=t.xLabelFormat,lt=t.xLabelRotate,ut=void 0===lt||lt,dt=t.yLabelFormat,st=(0,c.useContext)(l.ThemeContext),pt=a||function(t){return null===t||void 0===t?void 0:t.x},ft=E||function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null===t||void 0===t||null===(e=t.y)||void 0===e?void 0:e[n]},ht=P.Z.monotone.gray,mt=P.Z.brand.wind200,vt=P.Z.content.muted,xt=P.Z.monotone.gray,bt=n.map((function(t){return Number(pt(t))}));if(ct<10)return null;var yt=ct-G.left-G.right,gt=L-G.top-G.bottom,Tt=yt/2,Et=Math.max.apply(Math,(0,o.Z)(n.map((function(t){var e=t.y;return(null===e||void 0===e?void 0:e.length)||0})))),Ot=(0,c.useMemo)((function(){return(0,R.Z)({domain:[Math.min.apply(Math,(0,o.Z)(bt)),Math.max.apply(Math,(0,o.Z)(bt))],range:[0,yt]})}),[yt,bt]),Zt=Math.min.apply(Math,(0,o.Z)(n.map((function(t){var e=t.y;return Math.min.apply(Math,(0,o.Z)(e||[]))})))),At=Math.max.apply(Math,(0,o.Z)(n.map((function(t){var e=t.y;return Math.max.apply(Math,(0,o.Z)(e||[]))})))),Rt=(0,c.useMemo)((function(){return(0,R.Z)({domain:[Zt,At],nice:!0,range:[gt,0]})}),[gt,At,Zt]),kt=ct>520?z?20:10:z?10:5,_t=(0,X.K)(st),jt=vt,Dt=_t.map((function(t){return{stroke:t}})),Lt=(0,k.Z)({domain:W||[],range:Dt.map((function(t){return t.stroke}))}),Pt=(0,c.useCallback)((function(t){var e=((0,Z.Z)(t)||{x:0}).x,r=Ot.invert(e-G.left),o=(0,I.ry)(bt,(function(t){return r>=t})),i=n[o-1],c=n[o],a=i;c&&(r-pt(i)>pt(c)-r?a=c:(a=i,o-=1));var l=(0,A.range)(0,Et).map((function(t){return Rt(ft(a,t))}));ft(a)&&$({tooltipData:Y(Y({},a),{},{index:o}),tooltipLeft:e,tooltipTop:l})}),[n,pt,ft,G,$,Ot,Rt]),St={};return V||(St.curve=O.ZP),(0,U.jsxs)(U.Fragment,{children:[W&&(0,U.jsx)("div",{style:{marginLeft:null===G||void 0===G?void 0:G.left},children:(0,U.jsx)(x.Z,{labelFormat:function(t){return t},scale:Lt,children:function(t){return(0,U.jsx)("div",{style:{display:"flex",flexDirection:S.qs.ROW},children:t.map((function(t,e){return(0,U.jsxs)(b.Z,{margin:"0 5px",onClick:function(){i&&alert("clicked: ".concat(JSON.stringify(t)))},children:[(0,U.jsx)("svg",{height:15,width:15,children:(0,U.jsx)("rect",{fill:t.value,height:15,width:15})}),(0,U.jsx)(y.Z,{align:"left",margin:"0 0 0 4px",children:(0,U.jsx)(D.ZP,{small:!0,children:t.text})})]},"legend-quantile-".concat(e))}))})}})}),(0,U.jsxs)("svg",{height:L,width:ct,children:[!e&&(0,U.jsx)(s.Z,{fill:"transparent",height:L,onMouseLeave:function(){return H()},onMouseMove:Pt,onTouchMove:Pt,onTouchStart:Pt,rx:14,width:ct-(G.left+G.right),x:G.left,y:0}),(0,U.jsxs)(v.Z,{left:G.left,top:G.top,children:[!B&&(0,U.jsx)(h.Z,Y({height:gt,pointerEvents:"none",scale:Ot,stroke:ht,strokeDasharray:"3,3",strokeOpacity:.4,width:yt},j)),(0,U.jsx)(m.Z,Y({height:gt,pointerEvents:"none",scale:Rt,stroke:ht,strokeDasharray:"3,3",strokeOpacity:.4,width:yt},j)),(0,U.jsx)("line",{stroke:ht,x1:yt,x2:yt,y1:0,y2:gt}),(0,U.jsx)(u.Z,{numTicks:kt,scale:Ot,stroke:jt,tickFormat:function(t){return at?at(t):t},tickLabelProps:function(t){return{fill:vt,fontFamily:M.ry,fontSize:w.J5,textAnchor:"middle",transform:ut&&"rotate(-45, ".concat(Ot(t),", 0) translate(-32, 4)")}},tickStroke:jt,top:gt}),(0,U.jsx)(d.Z,{hideTicks:!0,numTicks:K,scale:Rt,stroke:jt,tickFormat:function(t){return dt?dt(t):(0,F.P5)(t)},tickLabelProps:function(t){return{dx:String(t).length>4?3:0,fill:vt,fontFamily:M.ry,fontSize:w.J5,textAnchor:"end",transform:"translate(0,2.5)"}},tickStroke:jt}),e&&e.map((function(t){var e=t[0],r=t[1];return(0,c.createElement)(g.Z,Y(Y({},St),{},{aboveAreaProps:{fill:P.Z.brand.earth400,fillOpacity:.3},belowAreaProps:{fill:mt,fillOpacity:.2},clipAboveTo:0,clipBelowTo:gt,data:n,id:"".concat(Math.random()),key:"".concat(e,"-").concat(r),x:function(t){return Ot(pt(t))},y0:function(t){return Rt("undefined"===typeof r?Zt:ft(t,r))},y1:function(t){return Rt(ft(t,e))}}))})),(0,A.range)(0,Et).map((function(t){return(0,c.createElement)(p.Z,Y(Y({},St),{},{data:n.filter((function(t){return void 0!=t.y})),key:t,pointerEvents:"none",strokeWidth:tt?2:1,x:function(t){return Ot(pt(t))},y:function(e){return Rt(e.y&&(t>=e.y.length?Zt:ft(e,t)))}},Dt[t]))}))]}),et&&(0,U.jsxs)("g",{children:[(0,U.jsx)(f.Z,{from:{x:rt,y:G.top},pointerEvents:"none",stroke:C.Ej,strokeDasharray:"5,2",strokeWidth:1,to:{x:rt,y:gt+G.top}}),it.map((function(t,e){return(0,U.jsx)("circle",{cx:rt,cy:t+1+G.top,fill:Dt[e].stroke,fillOpacity:.1,pointerEvents:"none",r:4,stroke:xt,strokeOpacity:.1,strokeWidth:1},e)})),it.map((function(t,e){return(0,U.jsx)("circle",{cx:rt,cy:t+G.top,fill:Dt[e].stroke,pointerEvents:"none",r:4,stroke:Dt[e].stroke,strokeWidth:2},e)}))]})]}),et&&(0,U.jsxs)("div",{children:[it.map((function(t,e){var n=ft(et,e);return e>=1&&Math.abs(it[e-1]-t)<5*N.iI&&(t+=3*N.iI),(0,U.jsxs)(T.Z,{left:rt>Tt?rt-(0,F.Vs)(Q,et,e)*N.iI:rt+N.iI,style:q,top:t-2*N.iI,children:[Q&&Q(et,e),!Q&&(0,U.jsxs)(D.ZP,{center:!0,small:!0,children:[n.toFixed?n.toFixed(3):n," ",null===W||void 0===W?void 0:W[e]]})]},e)})),(0,U.jsxs)(T.Z,{left:rt>Tt?rt-4*(0,F.Vs)(J,et):rt,style:Y(Y({},q),{},{transform:"translateX(-65%)"}),top:gt+G.top,children:[J&&J(et),!J&&(0,U.jsx)(D.ZP,{center:!0,small:!0,children:pt(et).toFixed(3)})]})]})]})}));e.Z=function(t){var e=t.areaBetweenLines,n=t.data,o=(t.events,t.height),i=t.lineLegendNames,c=t.margin,l=void 0===c?{}:c,u=t.width,d=t.xAxisLabel,s=t.xLabelFormat,p=t.yAxisLabel,f=t.yLabelFormat,h=(0,r.Z)(t,B),m=Y(Y({},{bottom:3*N.iI,left:5*N.iI,right:3*N.iI,top:3*N.iI}),l);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)("div",{style:{display:"flex",height:o,marginBottom:N.iI,width:"100%"},children:[p&&(0,U.jsx)(_.Z,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,U.jsx)(L.Z,{children:(0,U.jsx)(D.ZP,{center:!0,muted:!0,small:!0,children:p})})}),(0,U.jsx)(j.Z,{mr:1}),(0,U.jsx)("div",{style:{height:o,width:"undefined"===typeof u?"100%":u},children:(0,U.jsx)(a.Z,{children:function(t){var r=t.width,o=t.height;return(0,U.jsx)(z,Y(Y({},h),{},{areaBetweenLines:e,data:n,height:o,lineLegendNames:i,margin:m,width:r,xLabelFormat:s,yLabelFormat:f}))}})})]}),d&&(0,U.jsx)("div",{style:{paddingLeft:p?36:0,paddingTop:4},children:(0,U.jsx)(D.ZP,{center:!0,muted:!0,small:!0,children:d})})]})}},45739:function(t,e,n){"use strict";n.d(e,{K:function(){return o}});var r=n(31969),o=function(t){var e=t||r.Z,n=e.brand,o=n.earth200,i=n.earth300,c=n.earth400,a=n.energy200,l=n.energy300,u=n.energy400,d=n.fire200,s=n.fire300,p=n.fire400,f=n.water200,h=n.water300,m=n.water400,v=n.wind200,x=n.wind300,b=n.wind400,y=e.chart;return[y.backgroundPrimary,y.backgroundSecondary,y.backgroundTertiary].concat([b,m,p,u,c,x,h,s,l,i,v,f,d,a,o])}},80906:function(t,e,n){"use strict";var r,o,i,c;n.d(e,{Q0:function(){return r},qs:function(){return o}}),function(t){t.ADD="add",t.AVERAGE="average",t.CLEAN_COLUMN_NAME="clean_column_name",t.COUNT="count",t.COUNT_DISTINCT="count_distinct",t.CUSTOM="custom",t.DIFF="diff",t.DROP_DUPLICATE="drop_duplicate",t.EXPAND_COLUMN="expand_column",t.EXPLODE="explode",t.FILTER="filter",t.FIRST="first",t.FIX_SYNTAX_ERRORS="fix_syntax_errors",t.GROUP="group",t.IMPUTE="impute",t.JOIN="join",t.LAST="last",t.LIMIT="limit",t.MAX="max",t.MEDIAN="median",t.MIN="min",t.MODE="mode",t.NORMALIZE="normalize",t.REFORMAT="reformat",t.REMOVE="remove",t.REMOVE_OUTLIERS="remove_outliers",t.SCALE="scale",t.SELECT="select",t.SHIFT_DOWN="shift_down",t.SHIFT_UP="shift_up",t.SORT="sort",t.STANDARDIZE="standardize",t.SUM="sum",t.UNION="union",t.UPDATE_TYPE="update_type",t.UPDATE_VALUE="update_value"}(r||(r={})),function(t){t.COLUMN="column",t.ROW="row"}(o||(o={})),function(t){t.NOT_APPLIED="not_applied",t.COMPLETED="completed"}(i||(i={})),function(t){t.FEATURE="feature"}(c||(c={}))},86422:function(t,e,n){"use strict";n.d(e,{$W:function(){return p},DA:function(){return s},HX:function(){return m},J8:function(){return h},Lq:function(){return u},Qj:function(){return v},Ut:function(){return g},V4:function(){return y},VZ:function(){return f},dO:function(){return d},f2:function(){return b},iZ:function(){return x},t6:function(){return c},tf:function(){return l}});var r,o,i,c,a=n(82394);!function(t){t.PYTHON="python",t.R="r",t.SQL="sql",t.YAML="yaml"}(c||(c={}));var l,u,d=(r={},(0,a.Z)(r,c.PYTHON,"PY"),(0,a.Z)(r,c.R,"R"),(0,a.Z)(r,c.SQL,"SQL"),(0,a.Z)(r,c.YAML,"YAML"),r);!function(t){t.CHART="chart",t.CUSTOM="custom",t.DATA_EXPORTER="data_exporter",t.DATA_LOADER="data_loader",t.DBT="dbt",t.EXTENSION="extension",t.SCRATCHPAD="scratchpad",t.SENSOR="sensor",t.TRANSFORMER="transformer"}(l||(l={})),function(t){t.BLUE="blue",t.GREY="grey",t.PINK="pink",t.PURPLE="purple",t.TEAL="teal",t.YELLOW="yellow"}(u||(u={}));var s,p=[l.CHART,l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SCRATCHPAD,l.SENSOR,l.TRANSFORMER],f=[l.DATA_EXPORTER,l.DATA_LOADER],h=[l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],m=[l.DATA_EXPORTER,l.DATA_LOADER,l.DBT,l.TRANSFORMER],v=[l.CHART,l.SCRATCHPAD,l.SENSOR],x=[l.EXTENSION,l.SCRATCHPAD];!function(t){t.EXECUTED="executed",t.FAILED="failed",t.NOT_EXECUTED="not_executed",t.UPDATED="updated"}(s||(s={}));var b=[l.CUSTOM,l.DATA_EXPORTER,l.TRANSFORMER],y=(o={},(0,a.Z)(o,l.CUSTOM,"Custom"),(0,a.Z)(o,l.DATA_EXPORTER,"Data exporter"),(0,a.Z)(o,l.DATA_LOADER,"Data loader"),(0,a.Z)(o,l.EXTENSION,"Extension"),(0,a.Z)(o,l.SCRATCHPAD,"Scratchpad"),(0,a.Z)(o,l.SENSOR,"Sensor"),(0,a.Z)(o,l.TRANSFORMER,"Transformer"),o),g=[l.DATA_LOADER,l.TRANSFORMER,l.DATA_EXPORTER,l.SENSOR];i={},(0,a.Z)(i,l.DATA_EXPORTER,"DE"),(0,a.Z)(i,l.DATA_LOADER,"DL"),(0,a.Z)(i,l.SCRATCHPAD,"SP"),(0,a.Z)(i,l.SENSOR,"SR"),(0,a.Z)(i,l.TRANSFORMER,"TF")},68805:function(t,e,n){"use strict";n.r(e);var r=n(77837),o=n(75582),i=n(82394),c=n(38860),a=n.n(c),l=n(82684),u=n(92083),d=n.n(u),s=n(16634),p=n(67971),f=n(87372),h=n(68735),m=n(87465),v=n(41788),x=n(86673),b=n(55378),y=n(19711),g=n(82531),T=n(23831),E=n(73942),O=n(43032),Z=n(92953),A=n(9518),R=n(44162),k=n(24224),_=n(28598);function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function D(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function L(t){var e=t.pipeline,n=(0,l.useContext)(A.ThemeContext),r=(0,l.useState)(null),c=r[0],a=r[1],u=e.uuid,v=g.ZP.pipelines.detail(u,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,j=(0,l.useMemo)((function(){return D(D({},null===v||void 0===v?void 0:v.pipeline),{},{uuid:u})}),[v,u]),L=g.ZP.pipeline_schedules.pipelines.list(u).data,P=(0,l.useMemo)((function(){return null===L||void 0===L?void 0:L.pipeline_schedules}),[L]),S=(0,l.useMemo)((function(){return(0,k.HK)(null===j||void 0===j?void 0:j.blocks,(function(t){return t.uuid}))||{}}),[j]),C={pipeline_uuid:u};(c||0===c)&&(C.pipeline_schedule_id=Number(c));var M=g.ZP.monitor_stats.detail("block_run_time",C),w=M.data,N=M.mutate;(0,l.useEffect)((function(){N(c)}),[N,c]);var I=((null===w||void 0===w?void 0:w.monitor_stat)||{}).stats,F=(0,l.useMemo)((function(){for(var t=new Date,e=[],n=0;n<90;n++)e.unshift(t.toISOString().split("T")[0]),t.setDate(t.getDate()-1);return e}),[]),X=(0,l.useMemo)((function(){if(I)return Object.entries(I).reduce((function(t,e){var n=(0,o.Z)(e,2),r=n[0],c=n[1].data;return D(D({},t),{},(0,i.Z)({},r,F.map((function(t){return{x:t,y:t in c?[c[t]]:null}}))))}),{})}),[I]),U=(0,l.useMemo)((function(){var t=[];return t.push({bold:!0,label:function(){return"Monitors"}}),t}),[j]);return(0,_.jsx)(m.Z,{breadcrumbs:U,monitorType:Z.a.BLOCK_RUNTIME,pipeline:j,subheader:(0,_.jsx)(p.Z,{children:(0,_.jsxs)(b.Z,{backgroundColor:T.Z.interactive.defaultBackground,label:"Trigger:",onChange:function(t){var e=t.target.value;"initial"!==e?(a(e),N(e)):(N(),a(null))},value:c||"initial",children:[(0,_.jsx)("option",{value:"initial",children:"All"}),P&&P.map((function(t){return(0,_.jsx)("option",{value:t.id,children:t.name},t.id)}))]})}),children:(0,_.jsx)(x.Z,{mx:2,children:X&&Object.entries(X).map((function(t,e){var r,i,c=(0,o.Z)(t,2),a=c[0],l=c[1];return(0,_.jsxs)(x.Z,{mt:2,children:[(0,_.jsxs)(p.Z,{alignItems:"center",children:[(0,_.jsx)(x.Z,{mx:1,children:(0,_.jsx)(s.Z,{color:(0,R.qn)(null===(r=S[a])||void 0===r?void 0:r.type,{blockColor:null===(i=S[a])||void 0===i?void 0:i.color,theme:n}).accent,size:O.ZG,square:!0})}),(0,_.jsx)(f.Z,{level:4,children:a})]}),(0,_.jsx)("div",{style:{backgroundColor:T.Z.background.chartBlock,borderRadius:"".concat(E.TR,"px"),marginTop:"8px"},children:(0,_.jsx)(h.Z,{data:l,getX:function(t){return d()(t.x).valueOf()},gridProps:{stroke:"black",strokeDasharray:null,strokeOpacity:.2},height:200,hideGridX:!0,margin:{top:10,bottom:30,left:35,right:-1},noCurve:!0,renderXTooltipContent:function(t){return(0,_.jsx)(y.ZP,{center:!0,inverted:!0,small:!0,children:d()(t.x).format("MMM DD")})},renderYTooltipContent:function(t){var e,n=null===t||void 0===t||null===(e=t.y)||void 0===e?void 0:e[0];return void 0!==n&&(0,_.jsxs)(y.ZP,{center:!0,inverted:!0,small:!0,children:[n.toFixed?n.toFixed(3):n,"s"]})},thickStroke:!0,xLabelFormat:function(t){return d()(t).format("MMM DD")},xLabelRotate:!1})})]},"".concat(a,"_").concat(e))}))})})}L.getInitialProps=function(){var t=(0,r.Z)(a().mark((function t(e){var n;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.query.pipeline,t.abrupt("return",{pipeline:{uuid:n}});case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.default=(0,v.Z)(L)},76017:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors/block-runtime",function(){return n(68805)}])}},function(t){t.O(0,[3662,3850,2083,5896,2714,9832,2344,4506,6166,6214,2249,9774,2888,179],(function(){return e=76017,t(t.s=e);var e}));var e=t.O();_N_E=e}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4947],{44162:function(t,e,n){"use strict";n.d(e,{HC:function(){return y},Kf:function(){return s},Nk:function(){return p},PY:function(){return f},gE:function(){return v},jv:function(){return m},nz:function(){return h},oh:function(){return u},qn:function(){return d},t1:function(){return x},y9:function(){return b}});var r=n(9518),o=n(23831),i=n(86422),c=n(73942),a=n(49125),l=n(90880),u=68;function d(t,e){var n,r,c=((null===e||void 0===e||null===(n=e.theme)||void 0===n?void 0:n.borders)||o.Z.borders).light,a=((null===e||void 0===e||null===(r=e.theme)||void 0===r?void 0:r.monotone)||o.Z.monotone).grey500,l=e||{},u=l.blockColor,d=l.isSelected,s=l.theme;return d?c=((null===s||void 0===s?void 0:s.content)||o.Z.content).active:i.tf.TRANSFORMER===t||u===i.Lq.PURPLE?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).purple,a=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).purpleLight):i.tf.DATA_EXPORTER===t||u===i.Lq.YELLOW?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).yellow,a=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).yellowLight):i.tf.DATA_LOADER===t||u===i.Lq.BLUE?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).blue,a=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).blueLight):i.tf.SENSOR===t||u===i.Lq.PINK?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).pink,a=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).pinkLight):i.tf.DBT===t?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).dbt,a=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).dbtLight):i.tf.EXTENSION===t||u===i.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).teal,a=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).tealLight):(i.tf.SCRATCHPAD===t||u===i.Lq.GREY||i.tf.CUSTOM===t&&!u)&&(c=((null===s||void 0===s?void 0:s.content)||o.Z.content).default,a=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).contentDefaultTransparent),{accent:c,accentLight:a}}var s=(0,r.css)([""," "," "," "," "," "," ",""],(0,l.eR)(),(function(t){return!t.selected&&!t.hasError&&"\n border-color: ".concat(d(t.blockType,t).accentLight,";\n ")}),(function(t){return t.selected&&!t.hasError&&"\n border-color: ".concat(d(t.blockType,t).accent,";\n ")}),(function(t){return!t.selected&&t.hasError&&"\n border-color: ".concat((t.theme.accent||o.Z.accent).negativeTransparent,";\n ")}),(function(t){return t.selected&&t.hasError&&"\n border-color: ".concat((t.theme.borders||o.Z.borders).danger,";\n ")}),(function(t){return t.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(t){return t.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),p=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),f=r.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],s,c.n_,c.M8,c.mP,(function(t){return"\n background-color: ".concat((t.theme||o.Z).background.content,";\n\n &:hover {\n border-color: ").concat(d(t.blockType,t).accent,";\n }\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-2"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," ",""],s,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,a.iI,(function(t){return"\n background-color: ".concat((t.theme||o.Z).background.content,";\n ")}),(function(t){return t.zIndex&&"\n z-index: ".concat(6+(t.zIndex||0),";\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-3"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],s,c.M8,c.mP,c.M8,c.mP,a.iI,a.iI,(function(t){return"\n background-color: ".concat((t.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(t){return!t.hasOutput&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n ")})),v=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-4"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*a.iI,.5*a.iI,(function(t){return t.additionalZIndex>0&&"\n z-index: ".concat(8+t.additionalZIndex,";\n ")}),(function(t){return"\n background-color: ".concat((t.theme.text||o.Z.text).fileBrowser,";\n ")})),x=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-5"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*a.iI),b=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-6"})(["margin-bottom:","px;padding-bottom:","px;",""],a.cd*a.iI,a.iI,(function(t){return"\n border-bottom: 1px solid ".concat((t.theme.borders||o.Z.borders).medium,";\n padding-left: ").concat(t.normalPadding?a.iI:u,"px;\n ")})),y=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-7"})(["bottom:","px;left:","px;position:absolute;"],1*a.iI,u)},43032:function(t,e,n){"use strict";n.d(e,{Cl:function(){return a},Nk:function(){return l},ZG:function(){return c}});var r=n(9518),o=n(23831),i=n(49125),c=1.5*i.iI,a=1*c+i.iI/2,l=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(t){return"\n background-color: ".concat((t.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}))},68735:function(t,e,n){"use strict";var r=n(26304),o=n(21831),i=n(82394),c=n(82684),a=n(26226),l=n(9518),u=n(90948),d=n(84969),s=n(65743),p=n(85587),f=n(79487),h=n(52136),m=n(67778),v=n(29989),x=n(17066),b=n(84482),y=n(76771),g=n(98889),T=n(65376),E=n(61655),O=n(97745),Z=n(48072),A=n(10103),R=n(84181),k=n(24903),_=n(67971),j=n(86673),D=n(19711),L=n(52359),P=n(23831),S=n(80906),C=n(73899),M=n(2005),w=n(31012),N=n(49125),I=n(24224),F=n(344),X=n(45739),U=n(28598),B=["areaBetweenLines","data","events","height","lineLegendNames","margin","width","xAxisLabel","xLabelFormat","yAxisLabel","yLabelFormat"];function H(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?H(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var q=Y(Y({},T.j),{},{backgroundColor:P.Z.background.muted,border:"none"}),z=(0,E.Z)((function(t){var e=t.areaBetweenLines,n=t.data,r=t.events,i=void 0!==r&&r,a=t.getX,E=t.getY,_=t.gridProps,j=void 0===_?{}:_,L=t.height,B=t.hideGridX,H=t.hideTooltip,z=t.increasedXTicks,W=t.lineLegendNames,G=t.margin,V=t.noCurve,K=t.numYTicks,J=t.renderXTooltipContent,Q=t.renderYTooltipContent,$=t.showTooltip,tt=t.thickStroke,et=t.tooltipData,nt=t.tooltipLeft,rt=void 0===nt?0:nt,ot=t.tooltipTop,it=void 0===ot?[]:ot,ct=t.width,at=t.xLabelFormat,lt=t.xLabelRotate,ut=void 0===lt||lt,dt=t.yLabelFormat,st=(0,c.useContext)(l.ThemeContext),pt=a||function(t){return null===t||void 0===t?void 0:t.x},ft=E||function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null===t||void 0===t||null===(e=t.y)||void 0===e?void 0:e[n]},ht=P.Z.monotone.gray,mt=P.Z.brand.wind200,vt=P.Z.content.muted,xt=P.Z.monotone.gray,bt=n.map((function(t){return Number(pt(t))}));if(ct<10)return null;var yt=ct-G.left-G.right,gt=L-G.top-G.bottom,Tt=yt/2,Et=Math.max.apply(Math,(0,o.Z)(n.map((function(t){var e=t.y;return(null===e||void 0===e?void 0:e.length)||0})))),Ot=(0,c.useMemo)((function(){return(0,R.Z)({domain:[Math.min.apply(Math,(0,o.Z)(bt)),Math.max.apply(Math,(0,o.Z)(bt))],range:[0,yt]})}),[yt,bt]),Zt=Math.min.apply(Math,(0,o.Z)(n.map((function(t){var e=t.y;return Math.min.apply(Math,(0,o.Z)(e||[]))})))),At=Math.max.apply(Math,(0,o.Z)(n.map((function(t){var e=t.y;return Math.max.apply(Math,(0,o.Z)(e||[]))})))),Rt=(0,c.useMemo)((function(){return(0,R.Z)({domain:[Zt,At],nice:!0,range:[gt,0]})}),[gt,At,Zt]),kt=ct>520?z?20:10:z?10:5,_t=(0,X.K)(st),jt=vt,Dt=_t.map((function(t){return{stroke:t}})),Lt=(0,k.Z)({domain:W||[],range:Dt.map((function(t){return t.stroke}))}),Pt=(0,c.useCallback)((function(t){var e=((0,Z.Z)(t)||{x:0}).x,r=Ot.invert(e-G.left),o=(0,I.ry)(bt,(function(t){return r>=t})),i=n[o-1],c=n[o],a=i;c&&(r-pt(i)>pt(c)-r?a=c:(a=i,o-=1));var l=(0,A.range)(0,Et).map((function(t){return Rt(ft(a,t))}));ft(a)&&$({tooltipData:Y(Y({},a),{},{index:o}),tooltipLeft:e,tooltipTop:l})}),[n,pt,ft,G,$,Ot,Rt]),St={};return V||(St.curve=O.ZP),(0,U.jsxs)(U.Fragment,{children:[W&&(0,U.jsx)("div",{style:{marginLeft:null===G||void 0===G?void 0:G.left},children:(0,U.jsx)(x.Z,{labelFormat:function(t){return t},scale:Lt,children:function(t){return(0,U.jsx)("div",{style:{display:"flex",flexDirection:S.qs.ROW},children:t.map((function(t,e){return(0,U.jsxs)(b.Z,{margin:"0 5px",onClick:function(){i&&alert("clicked: ".concat(JSON.stringify(t)))},children:[(0,U.jsx)("svg",{height:15,width:15,children:(0,U.jsx)("rect",{fill:t.value,height:15,width:15})}),(0,U.jsx)(y.Z,{align:"left",margin:"0 0 0 4px",children:(0,U.jsx)(D.ZP,{small:!0,children:t.text})})]},"legend-quantile-".concat(e))}))})}})}),(0,U.jsxs)("svg",{height:L,width:ct,children:[!e&&(0,U.jsx)(s.Z,{fill:"transparent",height:L,onMouseLeave:function(){return H()},onMouseMove:Pt,onTouchMove:Pt,onTouchStart:Pt,rx:14,width:ct-(G.left+G.right),x:G.left,y:0}),(0,U.jsxs)(v.Z,{left:G.left,top:G.top,children:[!B&&(0,U.jsx)(h.Z,Y({height:gt,pointerEvents:"none",scale:Ot,stroke:ht,strokeDasharray:"3,3",strokeOpacity:.4,width:yt},j)),(0,U.jsx)(m.Z,Y({height:gt,pointerEvents:"none",scale:Rt,stroke:ht,strokeDasharray:"3,3",strokeOpacity:.4,width:yt},j)),(0,U.jsx)("line",{stroke:ht,x1:yt,x2:yt,y1:0,y2:gt}),(0,U.jsx)(u.Z,{numTicks:kt,scale:Ot,stroke:jt,tickFormat:function(t){return at?at(t):t},tickLabelProps:function(t){return{fill:vt,fontFamily:M.ry,fontSize:w.J5,textAnchor:"middle",transform:ut&&"rotate(-45, ".concat(Ot(t),", 0) translate(-32, 4)")}},tickStroke:jt,top:gt}),(0,U.jsx)(d.Z,{hideTicks:!0,numTicks:K,scale:Rt,stroke:jt,tickFormat:function(t){return dt?dt(t):(0,F.P5)(t)},tickLabelProps:function(t){return{dx:String(t).length>4?3:0,fill:vt,fontFamily:M.ry,fontSize:w.J5,textAnchor:"end",transform:"translate(0,2.5)"}},tickStroke:jt}),e&&e.map((function(t){var e=t[0],r=t[1];return(0,c.createElement)(g.Z,Y(Y({},St),{},{aboveAreaProps:{fill:P.Z.brand.earth400,fillOpacity:.3},belowAreaProps:{fill:mt,fillOpacity:.2},clipAboveTo:0,clipBelowTo:gt,data:n,id:"".concat(Math.random()),key:"".concat(e,"-").concat(r),x:function(t){return Ot(pt(t))},y0:function(t){return Rt("undefined"===typeof r?Zt:ft(t,r))},y1:function(t){return Rt(ft(t,e))}}))})),(0,A.range)(0,Et).map((function(t){return(0,c.createElement)(p.Z,Y(Y({},St),{},{data:n.filter((function(t){return void 0!=t.y})),key:t,pointerEvents:"none",strokeWidth:tt?2:1,x:function(t){return Ot(pt(t))},y:function(e){return Rt(e.y&&(t>=e.y.length?Zt:ft(e,t)))}},Dt[t]))}))]}),et&&(0,U.jsxs)("g",{children:[(0,U.jsx)(f.Z,{from:{x:rt,y:G.top},pointerEvents:"none",stroke:C.Ej,strokeDasharray:"5,2",strokeWidth:1,to:{x:rt,y:gt+G.top}}),it.map((function(t,e){return(0,U.jsx)("circle",{cx:rt,cy:t+1+G.top,fill:Dt[e].stroke,fillOpacity:.1,pointerEvents:"none",r:4,stroke:xt,strokeOpacity:.1,strokeWidth:1},e)})),it.map((function(t,e){return(0,U.jsx)("circle",{cx:rt,cy:t+G.top,fill:Dt[e].stroke,pointerEvents:"none",r:4,stroke:Dt[e].stroke,strokeWidth:2},e)}))]})]}),et&&(0,U.jsxs)("div",{children:[it.map((function(t,e){var n=ft(et,e);return e>=1&&Math.abs(it[e-1]-t)<5*N.iI&&(t+=3*N.iI),(0,U.jsxs)(T.Z,{left:rt>Tt?rt-(0,F.Vs)(Q,et,e)*N.iI:rt+N.iI,style:q,top:t-2*N.iI,children:[Q&&Q(et,e),!Q&&(0,U.jsxs)(D.ZP,{center:!0,small:!0,children:[n.toFixed?n.toFixed(3):n," ",null===W||void 0===W?void 0:W[e]]})]},e)})),(0,U.jsxs)(T.Z,{left:rt>Tt?rt-4*(0,F.Vs)(J,et):rt,style:Y(Y({},q),{},{transform:"translateX(-65%)"}),top:gt+G.top,children:[J&&J(et),!J&&(0,U.jsx)(D.ZP,{center:!0,small:!0,children:pt(et).toFixed(3)})]})]})]})}));e.Z=function(t){var e=t.areaBetweenLines,n=t.data,o=(t.events,t.height),i=t.lineLegendNames,c=t.margin,l=void 0===c?{}:c,u=t.width,d=t.xAxisLabel,s=t.xLabelFormat,p=t.yAxisLabel,f=t.yLabelFormat,h=(0,r.Z)(t,B),m=Y(Y({},{bottom:3*N.iI,left:5*N.iI,right:3*N.iI,top:3*N.iI}),l);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)("div",{style:{display:"flex",height:o,marginBottom:N.iI,width:"100%"},children:[p&&(0,U.jsx)(_.Z,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,U.jsx)(L.Z,{children:(0,U.jsx)(D.ZP,{center:!0,muted:!0,small:!0,children:p})})}),(0,U.jsx)(j.Z,{mr:1}),(0,U.jsx)("div",{style:{height:o,width:"undefined"===typeof u?"100%":u},children:(0,U.jsx)(a.Z,{children:function(t){var r=t.width,o=t.height;return(0,U.jsx)(z,Y(Y({},h),{},{areaBetweenLines:e,data:n,height:o,lineLegendNames:i,margin:m,width:r,xLabelFormat:s,yLabelFormat:f}))}})})]}),d&&(0,U.jsx)("div",{style:{paddingLeft:p?36:0,paddingTop:4},children:(0,U.jsx)(D.ZP,{center:!0,muted:!0,small:!0,children:d})})]})}},45739:function(t,e,n){"use strict";n.d(e,{K:function(){return o}});var r=n(31969),o=function(t){var e=t||r.Z,n=e.brand,o=n.earth200,i=n.earth300,c=n.earth400,a=n.energy200,l=n.energy300,u=n.energy400,d=n.fire200,s=n.fire300,p=n.fire400,f=n.water200,h=n.water300,m=n.water400,v=n.wind200,x=n.wind300,b=n.wind400,y=e.chart;return[y.backgroundPrimary,y.backgroundSecondary,y.backgroundTertiary].concat([b,m,p,u,c,x,h,s,l,i,v,f,d,a,o])}},80906:function(t,e,n){"use strict";var r,o,i,c;n.d(e,{Q0:function(){return r},qs:function(){return o}}),function(t){t.ADD="add",t.AVERAGE="average",t.CLEAN_COLUMN_NAME="clean_column_name",t.COUNT="count",t.COUNT_DISTINCT="count_distinct",t.CUSTOM="custom",t.DIFF="diff",t.DROP_DUPLICATE="drop_duplicate",t.EXPAND_COLUMN="expand_column",t.EXPLODE="explode",t.FILTER="filter",t.FIRST="first",t.FIX_SYNTAX_ERRORS="fix_syntax_errors",t.GROUP="group",t.IMPUTE="impute",t.JOIN="join",t.LAST="last",t.LIMIT="limit",t.MAX="max",t.MEDIAN="median",t.MIN="min",t.MODE="mode",t.NORMALIZE="normalize",t.REFORMAT="reformat",t.REMOVE="remove",t.REMOVE_OUTLIERS="remove_outliers",t.SCALE="scale",t.SELECT="select",t.SHIFT_DOWN="shift_down",t.SHIFT_UP="shift_up",t.SORT="sort",t.STANDARDIZE="standardize",t.SUM="sum",t.UNION="union",t.UPDATE_TYPE="update_type",t.UPDATE_VALUE="update_value"}(r||(r={})),function(t){t.COLUMN="column",t.ROW="row"}(o||(o={})),function(t){t.NOT_APPLIED="not_applied",t.COMPLETED="completed"}(i||(i={})),function(t){t.FEATURE="feature"}(c||(c={}))},86422:function(t,e,n){"use strict";n.d(e,{$W:function(){return p},DA:function(){return s},HX:function(){return m},J8:function(){return h},Lq:function(){return u},Qj:function(){return v},Ut:function(){return g},V4:function(){return y},VZ:function(){return f},dO:function(){return d},f2:function(){return b},iZ:function(){return x},t6:function(){return c},tf:function(){return l}});var r,o,i,c,a=n(82394);!function(t){t.PYTHON="python",t.R="r",t.SQL="sql",t.YAML="yaml"}(c||(c={}));var l,u,d=(r={},(0,a.Z)(r,c.PYTHON,"PY"),(0,a.Z)(r,c.R,"R"),(0,a.Z)(r,c.SQL,"SQL"),(0,a.Z)(r,c.YAML,"YAML"),r);!function(t){t.CHART="chart",t.CUSTOM="custom",t.DATA_EXPORTER="data_exporter",t.DATA_LOADER="data_loader",t.DBT="dbt",t.EXTENSION="extension",t.SCRATCHPAD="scratchpad",t.SENSOR="sensor",t.TRANSFORMER="transformer"}(l||(l={})),function(t){t.BLUE="blue",t.GREY="grey",t.PINK="pink",t.PURPLE="purple",t.TEAL="teal",t.YELLOW="yellow"}(u||(u={}));var s,p=[l.CHART,l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SCRATCHPAD,l.SENSOR,l.TRANSFORMER],f=[l.DATA_EXPORTER,l.DATA_LOADER],h=[l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],m=[l.DATA_EXPORTER,l.DATA_LOADER,l.DBT,l.TRANSFORMER],v=[l.CHART,l.SCRATCHPAD,l.SENSOR],x=[l.EXTENSION,l.SCRATCHPAD];!function(t){t.EXECUTED="executed",t.FAILED="failed",t.NOT_EXECUTED="not_executed",t.UPDATED="updated"}(s||(s={}));var b=[l.CUSTOM,l.DATA_EXPORTER,l.TRANSFORMER],y=(o={},(0,a.Z)(o,l.CUSTOM,"Custom"),(0,a.Z)(o,l.DATA_EXPORTER,"Data exporter"),(0,a.Z)(o,l.DATA_LOADER,"Data loader"),(0,a.Z)(o,l.EXTENSION,"Extension"),(0,a.Z)(o,l.SCRATCHPAD,"Scratchpad"),(0,a.Z)(o,l.SENSOR,"Sensor"),(0,a.Z)(o,l.TRANSFORMER,"Transformer"),o),g=[l.DATA_LOADER,l.TRANSFORMER,l.DATA_EXPORTER,l.SENSOR];i={},(0,a.Z)(i,l.DATA_EXPORTER,"DE"),(0,a.Z)(i,l.DATA_LOADER,"DL"),(0,a.Z)(i,l.SCRATCHPAD,"SP"),(0,a.Z)(i,l.SENSOR,"SR"),(0,a.Z)(i,l.TRANSFORMER,"TF")},68805:function(t,e,n){"use strict";n.r(e);var r=n(77837),o=n(75582),i=n(82394),c=n(38860),a=n.n(c),l=n(82684),u=n(92083),d=n.n(u),s=n(16634),p=n(67971),f=n(87372),h=n(68735),m=n(87465),v=n(41788),x=n(86673),b=n(55378),y=n(19711),g=n(82531),T=n(23831),E=n(73942),O=n(43032),Z=n(92953),A=n(9518),R=n(44162),k=n(24224),_=n(28598);function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function D(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function L(t){var e=t.pipeline,n=(0,l.useContext)(A.ThemeContext),r=(0,l.useState)(null),c=r[0],a=r[1],u=e.uuid,v=g.ZP.pipelines.detail(u,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,j=(0,l.useMemo)((function(){return D(D({},null===v||void 0===v?void 0:v.pipeline),{},{uuid:u})}),[v,u]),L=g.ZP.pipeline_schedules.pipelines.list(u).data,P=(0,l.useMemo)((function(){return null===L||void 0===L?void 0:L.pipeline_schedules}),[L]),S=(0,l.useMemo)((function(){return(0,k.HK)(null===j||void 0===j?void 0:j.blocks,(function(t){return t.uuid}))||{}}),[j]),C={pipeline_uuid:u};(c||0===c)&&(C.pipeline_schedule_id=Number(c));var M=g.ZP.monitor_stats.detail("block_run_time",C),w=M.data,N=M.mutate;(0,l.useEffect)((function(){N(c)}),[N,c]);var I=((null===w||void 0===w?void 0:w.monitor_stat)||{}).stats,F=(0,l.useMemo)((function(){for(var t=new Date,e=[],n=0;n<90;n++)e.unshift(t.toISOString().split("T")[0]),t.setDate(t.getDate()-1);return e}),[]),X=(0,l.useMemo)((function(){if(I)return Object.entries(I).reduce((function(t,e){var n=(0,o.Z)(e,2),r=n[0],c=n[1].data;return D(D({},t),{},(0,i.Z)({},r,F.map((function(t){return{x:t,y:t in c?[c[t]]:null}}))))}),{})}),[I]),U=(0,l.useMemo)((function(){var t=[];return t.push({bold:!0,label:function(){return"Monitors"}}),t}),[j]);return(0,_.jsx)(m.Z,{breadcrumbs:U,monitorType:Z.a.BLOCK_RUNTIME,pipeline:j,subheader:(0,_.jsx)(p.Z,{children:(0,_.jsxs)(b.Z,{backgroundColor:T.Z.interactive.defaultBackground,label:"Trigger:",onChange:function(t){var e=t.target.value;"initial"!==e?(a(e),N(e)):(N(),a(null))},value:c||"initial",children:[(0,_.jsx)("option",{value:"initial",children:"All"}),P&&P.map((function(t){return(0,_.jsx)("option",{value:t.id,children:t.name},t.id)}))]})}),children:(0,_.jsx)(x.Z,{mx:2,children:X&&Object.entries(X).map((function(t,e){var r,i,c=(0,o.Z)(t,2),a=c[0],l=c[1];return(0,_.jsxs)(x.Z,{mt:2,children:[(0,_.jsxs)(p.Z,{alignItems:"center",children:[(0,_.jsx)(x.Z,{mx:1,children:(0,_.jsx)(s.Z,{color:(0,R.qn)(null===(r=S[a])||void 0===r?void 0:r.type,{blockColor:null===(i=S[a])||void 0===i?void 0:i.color,theme:n}).accent,size:O.ZG,square:!0})}),(0,_.jsx)(f.Z,{level:4,children:a})]}),(0,_.jsx)("div",{style:{backgroundColor:T.Z.background.chartBlock,borderRadius:"".concat(E.TR,"px"),marginTop:"8px"},children:(0,_.jsx)(h.Z,{data:l,getX:function(t){return d()(t.x).valueOf()},gridProps:{stroke:"black",strokeDasharray:null,strokeOpacity:.2},height:200,hideGridX:!0,margin:{top:10,bottom:30,left:35,right:-1},noCurve:!0,renderXTooltipContent:function(t){return(0,_.jsx)(y.ZP,{center:!0,inverted:!0,small:!0,children:d()(t.x).format("MMM DD")})},renderYTooltipContent:function(t){var e,n=null===t||void 0===t||null===(e=t.y)||void 0===e?void 0:e[0];return void 0!==n&&(0,_.jsxs)(y.ZP,{center:!0,inverted:!0,small:!0,children:[n.toFixed?n.toFixed(3):n,"s"]})},thickStroke:!0,xLabelFormat:function(t){return d()(t).format("MMM DD")},xLabelRotate:!1})})]},"".concat(a,"_").concat(e))}))})})}L.getInitialProps=function(){var t=(0,r.Z)(a().mark((function t(e){var n;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.query.pipeline,t.abrupt("return",{pipeline:{uuid:n}});case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.default=(0,v.Z)(L)},76017:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors/block-runtime",function(){return n(68805)}])}},function(t){t.O(0,[3662,3850,5716,5896,2714,9832,2344,4506,6166,6214,2249,9774,2888,179],(function(){return e=76017,t(t.s=e);var e}));var e=t.O();_N_E=e}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7713],{89677:function(n,_,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors",function(){return i(67400)}])}},function(n){n.O(0,[3850,2083,5896,2714,2344,4506,6166,6214,2249,7400,9774,2888,179],(function(){return _=89677,n(n.s=_);var _}));var _=n.O();_N_E=_}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7713],{89677:function(n,_,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors",function(){return i(67400)}])}},function(n){n.O(0,[3850,5716,5896,2714,2344,4506,6166,6214,2249,7400,9774,2888,179],(function(){return _=89677,n(n.s=_);var _}));var _=n.O();_N_E=_}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8662],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return P}});var r=t(82394),i=t(21831),o=t(82684),u=t(47999),l=t(28358),c=t(93461),s=t(57384),d=t(12344),a=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(a.HS,{ref:n,children:t})}var h=o.forwardRef(p),m=t(32063),v=t(15270),b=t(82531),g=t(66166),y=t(3055),O=t(49125),j=t(91427),x=t(24141);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,w=e.afterWidthOverride,P=e.before,k=e.beforeWidth,E=e.breadcrumbs,_=e.children,S=e.errors,I=e.headerMenuItems,C=e.navigationItems,D=e.setErrors,N=e.subheaderChildren,M=e.title,T=e.uuid,H=(0,x.i)().width,R="dashboard_after_width_".concat(T),A="dashboard_before_width_".concat(T),B=(0,o.useRef)(null),L=(0,o.useState)(w?p:(0,j.U2)(R,p)),U=L[0],W=L[1],F=(0,o.useState)(!1),V=F[0],G=F[1],z=(0,o.useState)(P?Math.max((0,j.U2)(A,k),13*O.iI):null),X=z[0],q=z[1],J=(0,o.useState)(!1),Y=J[0],K=J[1],Q=(0,o.useState)(null)[1],$=b.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,o.useEffect)((function(){null===B||void 0===B||!B.current||V||Y||null===Q||void 0===Q||Q(B.current.getBoundingClientRect().width)}),[V,U,Y,X,B,Q,H]),(0,o.useEffect)((function(){V||(0,j.t8)(R,U)}),[r,V,U,R]),(0,o.useEffect)((function(){Y||(0,j.t8)(A,X)}),[Y,X,A]);var te=(0,g.Z)(p);return(0,o.useEffect)((function(){w&&te!==p&&W(p)}),[w,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:M}),(0,f.jsx)(d.Z,{breadcrumbs:ne,menuItems:I,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)(a.Nk,{children:[0!==(null===C||void 0===C?void 0:C.length)&&(0,f.jsx)(a.lm,{children:(0,f.jsx)(v.Z,{navigationItems:C})}),(0,f.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:t,afterHeightOffset:y.Mz,afterHidden:r,afterMousedownActive:V,afterWidth:U,before:P,beforeHeightOffset:y.Mz,beforeMousedownActive:Y,beforeWidth:a.k1+(P?X:0),hideAfterCompletely:!0,leftOffset:P?a.k1:null,mainContainerRef:B,setAfterMousedownActive:G,setAfterWidth:W,setBeforeMousedownActive:K,setBeforeWidth:q,children:[N&&(0,f.jsx)(h,{children:N}),_]})})]}),S&&(0,f.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,f.jsx)(l.Z,Z(Z({},S),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}},62976:function(e,n,t){"use strict";t.d(n,{Z:function(){return T}});var r=t(82394),i=t(21831),o=t(82684),u=t(10919),l=t(12691),c=t.n(l),s=t(34376),d=t.n(s),a=t(9518),f=t(63068),p=t(44628),h=t(6508),m=t(67971),v=t(19711),b=t(23831),g=t(31969),y=function(){var e=document.createElement("div");e.setAttribute("style","width: 100px; height: 100px; overflow: scroll; position:absolute; top:-9999px;"),document.body.appendChild(e);var n=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),n},O=t(2005),j=t(31012),x=t(37391),w=t(6753),Z=t(49125),P=t(20567),k=t(24224),E=t(28598);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 S(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 I=2*Z.iI+j.dN,C=20*Z.iI,D=a.default.div.withConfig({displayName:"DataTable__Styles",componentId:"sc-1arr863-0"})([""," "," "," .body > div{","}.table{border-spacing:0;display:inline-block;"," "," "," "," .tr{.td.td-index-column{","}}.th{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;","}.th,.td{"," font-family:",";margin:0;","}.td{padding:","px;}&.sticky{overflow:auto;}.header{overflow:hidden;}}"],(function(e){return e.disableScrolling&&"\n overflow: hidden;\n "}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,"px;\n ")}),x.w5,(function(e){return!e.noBorderBottom&&"\n border-bottom: 1px solid ".concat((e.theme.borders||g.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||g.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderRight&&"\n border-right: 1px solid ".concat((e.theme.borders||g.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderTop&&"\n border-top: 1px solid ".concat((e.theme.borders||g.Z.borders).medium,";\n ")}),(function(e){return"\n color: ".concat((e.theme.content||g.Z.content).default,";\n ")}),(function(e){return"\n height: ".concat(e.columnHeaderHeight||I,"px;\n ")}),j.iD,O.ry,(function(e){return"\n background-color: ".concat((e.theme.background||g.Z.background).table,";\n border-bottom: 1px solid ").concat((e.theme.borders||g.Z.borders).medium,";\n border-right: 1px solid ").concat((e.theme.borders||g.Z.borders).medium,";\n ")}),1*Z.iI);function N(e){var n=e.original,t=8.5*Math.max.apply(Math,(0,i.Z)(n.map((function(e){return(null===e||void 0===e?void 0:e.length)||0})))),r=Math.ceil(t/(C-2*Z.iI));return Math.max(r,1)*j.dN+2*Z.iI}function M(e){var n=e.columnHeaderHeight,t=e.columns,r=e.data,l=e.disableScrolling,s=e.height,x=e.index,_=e.invalidValues,D=e.maxHeight,M=e.numberOfIndexes,T=e.previewIndexes,H=e.renderColumnHeader,R=e.width,A=(0,o.useContext)(a.ThemeContext),B=(0,o.useRef)(null),L=(0,o.useRef)(null);(0,o.useEffect)((function(){var e=function(e){var n;null===B||void 0===B||null===(n=B.current)||void 0===n||n.scroll(e.target.scrollLeft,0)};return L&&L.current.addEventListener("scroll",e),function(){var n;null===L||void 0===L||null===(n=L.current)||void 0===n||n.removeEventListener("scroll",e)}}),[B,L]);var U=(0,o.useMemo)((function(){return x&&r&&x.length===r.length}),[r,x]),W=(0,o.useMemo)((function(){var e=[];return(0,k.w6)(M).forEach((function(n,t){var o=8.7*String(null===r||void 0===r?void 0:r.length).length;if(U){var u=x.map((function(e){return M>=2?String(e[t]).length:String(e).length}));o=8.7*Math.max.apply(Math,(0,i.Z)(u))}e.push(o+2*Z.iI)})),e}),[r,x,M,U]),F=t.map((function(e){return null===e||void 0===e?void 0:e.Header})).slice(1),V=(0,o.useMemo)((function(){return y()}),[]),G=(0,o.useMemo)((function(){var e=R-(Math.max.apply(Math,(0,i.Z)(W))+1.5*Z.iI+V),n=t.length-1,r=C;return r*n<e&&(r=e/n),{width:r}}),[t,W,V,R]),z=(0,p.useTable)({columns:t,data:r,defaultColumn:G},p.useBlockLayout,h.useSticky),X=z.getTableBodyProps,q=z.getTableProps,J=z.headerGroups,Y=z.prepareRow,K=z.rows,Q=d().query.slug,$=void 0===Q?[]:Q,ee=new Set((null===T||void 0===T?void 0:T.removedRows)||[]),ne=(0,o.useCallback)((function(e){var n=e.index,t=e.style,r=K[n];Y(r);var i=r.original,l=ee.has(n);return(0,E.jsx)("div",S(S({},r.getRowProps({style:S(S({},t),{},{width:"auto"})})),{},{className:"tr",children:r.cells.map((function(e,t){var r,s=t<=M-1,d=e.getCellProps(),a=e.column.id,f=null===_||void 0===_||null===(r=_[a])||void 0===r?void 0:r.includes(n),p=S({},d.style);s&&(p.fontFamily=O.Vp,p.left=0,p.position="sticky",p.textAlign=x?"right":"center",p.width=W[t]);var h,b=i[t-M],y=F.indexOf(a);if(f&&(p.color=g.Z.interactive.dangerBorder),l&&(p.backgroundColor=g.Z.background.danger),Array.isArray(b)||"object"===typeof b)try{b=JSON.stringify(b)}catch(j){b="Error: cannot display value"}return s&&(U?(h=x[n],Array.isArray(h)&&(h=h[t])):h=e.render("Cell")),(0,o.createElement)("div",S(S({},d),{},{className:"td ".concat(s?"td-index-column":""),key:"".concat(t,"-").concat(b),style:p}),h,!s&&(0,E.jsxs)(m.Z,{justifyContent:"space-between",children:[(0,E.jsxs)(v.ZP,{danger:f,default:!0,wordBreak:!0,children:[!0===b&&"true",!1===b&&"false",(null===b||"null"===b)&&"null",!0!==b&&!1!==b&&null!==b&&"null"!==b&&b]}),f&&(0,E.jsx)(c(),{as:(0,P.o_)(w.mW,y),href:"/datasets/[...slug]",passHref:!0,children:(0,E.jsx)(u.Z,{danger:!0,children:"View all"})})]}))}))}))}),[x,_,W,M,Y,K,$]),te=(0,o.useMemo)((function(){var e;return D?(e=(0,k.Sm)(K.map(N)),e+=n||I-j.dN):(e=s,e-=n||I),e}),[n,N,s,D,K]),re=(0,o.useMemo)((function(){return(0,E.jsx)(f.S_,{estimatedItemSize:I,height:te,itemCount:null===K||void 0===K?void 0:K.length,itemSize:function(e){return N(K[e])},outerRef:L,style:{maxHeight:D,pointerEvents:l?"none":null},children:ne})}),[te,L,ne,K]);return(0,E.jsx)("div",S(S({},q()),{},{className:"table sticky",style:{width:R},children:(0,E.jsxs)("div",S(S({},X()),{},{className:"body",children:[(0,E.jsx)("div",{className:"header",ref:B,children:J.map((function(e,n){return(0,o.createElement)("div",S(S({},e.getHeaderGroupProps()),{},{className:"tr",key:"".concat(e.id,"_").concat(n)}),e.headers.map((function(e,n){var t,r=n<=M-1,i=e.getHeaderProps(),u=S({},i.style);return r?(u.fontFamily=O.Vp,u.left=0,u.position="sticky",u.textAlign="center",u.width=W[n],u.minWidth=W[n]):H?t=H(e,n-M,{width:G.width}):(t=e.render("Header"),u.color=(A||b.Z).content.default,u.padding=1*Z.iI,u.minWidth=G.width),(0,o.createElement)("div",S(S({},i),{},{className:"th",key:e.id,style:u,title:r?"Row number":void 0}),t)})))}))}),re]}))}))}var T=function(e){var n=e.columnHeaderHeight,t=e.columns,i=e.disableScrolling,u=e.height,l=e.index,c=e.invalidValues,s=e.maxHeight,d=e.noBorderBottom,a=e.noBorderLeft,f=e.noBorderRight,p=e.noBorderTop,h=e.previewIndexes,m=e.renderColumnHeader,v=e.rows,b=e.width,g=(0,o.useMemo)((function(){return null!==l&&void 0!==l&&l.length&&Array.isArray(l[0])?l[0].length:1}),[l]),y=(0,o.useMemo)((function(){return(0,k.w6)(g).map((function(e,n){return{Header:(0,k.w6)(n+1).map((function(){return" "})).join(" "),accessor:function(e,n){return n},sticky:"left"}})).concat(null===t||void 0===t?void 0:t.map((function(e){return{Header:String(e),accessor:String(e)}})))}),[t,g]);return(0,o.useMemo)((function(){return null===v||void 0===v?void 0:v.map((function(e){return e.reduce((function(e,n,i){return S(S({},e),{},(0,r.Z)({},t[i],n))}),{})}))}),[t,v]),(0,E.jsx)(D,{columnHeaderHeight:n,disableScrolling:i,height:u,maxHeight:(s||0)+37,noBorderBottom:d,noBorderLeft:a,noBorderRight:f,noBorderTop:p,children:(0,E.jsx)(M,{columnHeaderHeight:n,columns:y,data:v,disableScrolling:i,height:u,index:l,invalidValues:c,maxHeight:s,numberOfIndexes:g,previewIndexes:h,renderColumnHeader:m,width:b})})}},27125:function(e,n,t){"use strict";var r=t(82684),i=t(12691),o=t.n(i),u=t(34376),l=t.n(u),c=t(9518),s=t(66050),d=t(60328),a=t(16634),f=t(10919),p=t(98781),h=t(86673),m=t(58180),v=t(19711),b=t(10503),g=t(49125),y=t(44162),O=t(24224),j=t(28598);n.Z=function(e){var n=e.blockRuns,t=e.onClickRow,i=e.pipeline,u=e.selectedRun,x=(0,r.useContext)(c.ThemeContext),w=(i||{}).uuid,Z=(0,r.useMemo)((function(){return i.blocks||[]}),[i]),P=(0,r.useMemo)((function(){return(0,O.HK)(Z,(function(e){return e.uuid}))}),[Z]);return(0,j.jsx)(m.Z,{columnFlex:[null,1,3,2,null,null],columns:[{uuid:"Date"},{uuid:"Status"},{uuid:"Trigger"},{uuid:"Block"},{uuid:"Completed"},{uuid:"Logs"}],isSelectedRow:function(e){return n[e].id===(null===u||void 0===u?void 0:u.id)},onClickRow:t,rows:null===n||void 0===n?void 0:n.map((function(e){var n,t,r,u,c=e.block_uuid,m=e.completed_at,O=e.created_at,Z=e.id,k=e.pipeline_schedule_id,E=e.pipeline_schedule_name,_=e.status,S=c,I=S.split(":");p.qL.INTEGRATION===i.type&&(S=I[0],r=I[1],u=I[2]);var C=P[S];return C||(C=P[I[0]]),[(0,j.jsx)(v.ZP,{monospace:!0,default:!0,children:O}),(0,j.jsx)(v.ZP,{danger:s.V.FAILED===_,default:s.V.CANCELLED===_,info:s.V.INITIAL===_,monospace:!0,success:s.V.COMPLETED===_,warning:s.V.RUNNING===_,children:_}),(0,j.jsx)(o(),{as:"/pipelines/".concat(w,"/triggers/").concat(k),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,j.jsx)(f.Z,{bold:!0,sameColorAsText:!0,children:E})}),(0,j.jsx)(o(),{as:"/pipelines/".concat(w,"/edit?block_uuid=").concat(S),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,j.jsxs)(f.Z,{bold:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,j.jsx)(a.Z,{color:(0,y.qn)(null===(n=C)||void 0===n?void 0:n.type,{blockColor:null===(t=C)||void 0===t?void 0:t.color,theme:x}).accent,size:1.5*g.iI,square:!0}),(0,j.jsx)(h.Z,{mr:1}),(0,j.jsxs)(v.ZP,{monospace:!0,children:[S,r&&": ",r&&(0,j.jsx)(v.ZP,{default:!0,inline:!0,monospace:!0,children:r}),u>=0&&": ",u>=0&&(0,j.jsx)(v.ZP,{default:!0,inline:!0,monospace:!0,children:u})]})]})}),(0,j.jsx)(v.ZP,{monospace:!0,default:!0,children:m||"-"}),(0,j.jsx)(d.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(w,"/logs?block_run_id[]=").concat(Z))},children:(0,j.jsx)(b.B4,{default:!0,size:2*g.iI})})]})),uuid:"block-runs"})}},60547:function(e,n,t){"use strict";t.d(n,{Z:function(){return P}});var r=t(82394),i=t(21831),o=t(82684),u=t(47999),l=t(1210),c=t(34744),s=t(28358),d=t(67971),a=t(87372),f=t(86673),p=t(82531),h=t(9518),m=t(23831),v=t(73942),b=t(49125),g=h.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],v.n_,3*b.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||m.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 ')})),y=t(3055),O=t(95354),j=t(24141),x=t(28598);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(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,h=e.before,m=e.beforeWidth,v=e.breadcrumbs,w=e.buildSidekick,P=e.children,k=e.errors,E=e.headline,_=e.pageName,S=e.pipeline,I=e.setErrors,C=e.subheader,D=e.subheaderBackground,N=e.subheaderBackgroundImage,M=e.subheaderButton,T=e.subheaderText,H=e.title,R=e.uuid,A=(0,j.i)().height,B=S.uuid,L=p.ZP.pipelines.detail(B,{includes_outputs:!1},{revalidateOnFocus:!1}).data,U=null===L||void 0===L?void 0:L.pipeline,W=(0,o.useMemo)((function(){return n||(w?w({height:A,heightOffset:y.Mz,pipeline:U}):null)}),[n,w,A,U]),F=r||(W?50*b.iI:null),V=(0,o.useMemo)((function(){var e=[];return U&&(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),v?(e.push({label:function(){return U.uuid},linkProps:{as:"/pipelines/".concat(B,"/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 U.name}})),e}),[v,U,B]);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(l.Z,{after:W,afterHidden:t,afterWidth:F,before:h,beforeWidth:m,breadcrumbs:V,navigationItems:(0,O.H)(_,U),subheaderChildren:"undefined"!==typeof C&&C,title:U?H?H(U):U.name:null,uuid:R,children:[(M||T)&&(0,x.jsx)(f.Z,{mb:b.Mq,mt:b.cd,mx:b.cd,children:(0,x.jsx)(g,{background:D,backgroundImage:N,children:(0,x.jsxs)(d.Z,{alignItems:"center",children:[M,T&&(0,x.jsx)(f.Z,{ml:3}),T]})})}),E&&(0,x.jsx)(f.Z,{p:b.cd,children:(0,x.jsxs)(f.Z,{mt:b.cd,px:b.cd,children:[(0,x.jsx)(a.Z,{level:5,children:E}),(0,x.jsx)(c.Z,{light:!0,mt:b.cd,short:!0})]})}),P]}),k&&(0,x.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===I||void 0===I?void 0:I(null)},children:(0,x.jsx)(s.Z,Z(Z({},k),{},{onClose:function(){return null===I||void 0===I?void 0:I(null)}}))})]})}},64155:function(e,n,t){"use strict";t.d(n,{Eh:function(){return s},ht:function(){return a},t0:function(){return d}});var r=t(9518),i=t(82386),o=t(1286),u=t(31012),l=t(37391),c=t(49125),s=(c.iI,o.O$+3*c.iI+u.dN),d=r.default.div.withConfig({displayName:"indexstyle__SidekickContainerStyle",componentId:"sc-15ofupc-0"})([""," overflow:auto;position:absolute;width:100%;",""],l.w5,(function(e){return"\n height: calc(100vh - ".concat(i.uX,"px - ").concat(e.heightOffset,"px);\n ")})),a=r.default.div.withConfig({displayName:"indexstyle__PaddingContainerStyle",componentId:"sc-15ofupc-1"})(["padding:","px;",""],2*c.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}))},19395:function(e,n,t){"use strict";t.d(n,{IJ:function(){return d},Vx:function(){return f},eI:function(){return a},gU:function(){return h},tL:function(){return p},vJ:function(){return m}});var r,i,o=t(82394),u=t(92083),l=t.n(u);function c(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?c(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function d(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,c=null;i&&r&&(c=l()(r).valueOf()-l()(i).valueOf());return s(s({},e),{},(0,o.Z)({},t,{runtime:c,status:u}))}),{})}function a(e){if(!e)return null;var n=new Date(l()(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 a(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 m(e,n){return e*p[n]}},82635:function(e,n,t){"use strict";var r,i;t.d(n,{Gi:function(){return i},jU:function(){return u},uF:function(){return r}}),function(e){e.BUSY="busy",e.IDLE="idle",e.QUEUED="queued"}(r||(r={})),function(e){e.IMAGE_PNG="image/png",e.PROGRESS="progress",e.TABLE="table",e.TEXT="text",e.TEXT_HTML="text/html",e.TEXT_PLAIN="text/plain"}(i||(i={}));var o,u=[i.TEXT,i.TEXT_PLAIN];!function(e){e.DISPLAY_DATA="display_data",e.STATUS="status",e.STREAM="stream",e.STREAM_PIPELINE="stream_pipeline"}(o||(o={}))},47409:function(e,n,t){"use strict";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)},23588:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return L}});var r=t(77837),i=t(75582),o=t(82394),u=t(38860),l=t.n(u),c=t(82684),s=t(83455),d=t(27125),a=t(60328),f=t(34744),p=t(87372),h=t(60547),m=t(47409),v=t(41788),b=t(86673),g=t(82531),y=t(26304),O=t(62976),j=t(86532),x=t(67971),w=t(54283),Z=t(19711),P=t(82635),k=t(64155),E=t(19395),_=t(90211),S=t(28598),I=["blockRuns","columns","dataType","height","heightOffset","loadingData","pipeline","renderColumnHeader","rows","selectedRun","textData"];function C(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?C(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):C(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var N=t(59920),M=t(49125),T=t(96510),H=t(66653);function R(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function A(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?R(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):R(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function B(e){var n,t=e.pipeline,r=e.pipelineRun,o=(0,c.useState)(),u=o[0],l=o[1],v=(0,c.useState)(null),C=v[0],R=v[1],B=t.uuid,L=g.ZP.pipelines.detail(B,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,U=(0,c.useMemo)((function(){return A(A({},null===L||void 0===L?void 0:L.pipeline),{},{uuid:B})}),[L,B]),W=g.ZP.pipeline_runs.detail(r.id,{},{refreshInterval:3e3,revalidateOnFocus:!0}).data,F=(0,c.useMemo)((function(){return null===W||void 0===W?void 0:W.pipeline_run}),[W]),V=(0,s.Db)(g.ZP.pipeline_runs.useUpdate(null===F||void 0===F?void 0:F.id),{onSuccess:function(e){return(0,T.wD)(e,{onErrorCallback:function(e,n){return R({errors:n,response:e})}})}}),G=(0,i.Z)(V,2),z=G[0],X=G[1].isLoading,q=g.ZP.outputs.block_runs.list(null===u||void 0===u?void 0:u.id),J=q.data,Y=q.loading,K=(null===J||void 0===J||null===(n=J.outputs)||void 0===n?void 0:n[0])||{},Q=K.sample_data,$=K.text_data,ee=K.type,ne=(0,c.useMemo)((function(){return null===F||void 0===F?void 0:F.block_runs}),[F]),te=((null===Q||void 0===Q?void 0:Q.columns)||[]).slice(0,40),re=(null===Q||void 0===Q?void 0:Q.rows)||[],ie=(0,c.useMemo)((function(){return(0,S.jsx)(d.Z,{blockRuns:ne,onClickRow:function(e){return l((function(n){var t=ne[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipeline:U,selectedRun:u})}),[ne,U,u]);return(0,S.jsxs)(h.Z,{breadcrumbs:[{label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(B,"/runs"),href:"/pipelines/[pipeline]/runs"}},{label:function(){return null===F||void 0===F?void 0:F.execution_date}}],buildSidekick:function(e){return function(e){var n=e.blockRuns,t=e.columns,r=e.dataType,i=e.height,o=e.heightOffset,u=e.loadingData,l=e.pipeline,c=e.renderColumnHeader,s=e.rows,d=e.selectedRun,a=e.textData,f=D({},(0,y.Z)(e,I));f.blockStatus=(0,E.IJ)(n);var h=(0,S.jsx)(b.Z,{ml:2,children:(0,S.jsx)(Z.ZP,{children:"This block run has no output."})}),m=s&&s.length>0?(0,S.jsx)(O.Z,{columnHeaderHeight:c?k.Eh:0,columns:t,height:i-o-90,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,renderColumnHeader:c,rows:s}):h,v=(0,_.Pb)(a)?JSON.stringify(JSON.parse(a),null,2):a,g=a?(0,S.jsx)(b.Z,{ml:2,children:(0,S.jsx)(Z.ZP,{monospace:!0,children:(0,S.jsx)("pre",{children:v})})}):h;return(0,S.jsxs)(S.Fragment,{children:[!d&&(0,S.jsx)(j.Z,D(D({},f),{},{height:i,heightOffset:o||0,pipeline:l})),d&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(b.Z,{pl:2,py:3,style:{position:"fixed"},children:(0,S.jsx)(p.Z,{level:4,muted:!0,children:"Block Output"})}),(0,S.jsxs)("div",{style:{position:"relative",top:"75px"},children:[u&&(0,S.jsx)(b.Z,{mt:2,children:(0,S.jsx)(x.Z,{alignItems:"center",fullWidth:!0,justifyContent:"center",children:(0,S.jsx)(w.Z,{color:"white",large:!0})})}),!u&&r===P.Gi.TABLE&&m,!u&&r!==P.Gi.TABLE&&g]})]})]})}(A(A({},e),{},{blockRuns:ne,columns:te,dataType:ee,loadingData:Y,rows:re,selectedRun:u,showDynamicBlocks:!0,textData:$}))},errors:C,pageName:N.M.RUNS,pipeline:U,setErrors:R,subheader:(null===F||void 0===F?void 0:F.status)&&F.status!==m.V.COMPLETED&&(0,S.jsx)(a.Z,{danger:!0,loading:X,onClick:function(e){(0,H.j)(e),z({pipeline_run:{pipeline_run_action:"retry_blocks"}})},outline:!0,children:"Retry incomplete blocks"}),title:function(e){var n=e.name;return"".concat(n," runs")},uuid:"".concat(N.M.RUNS,"_").concat(B,"_").concat(null===F||void 0===F?void 0:F.id),children:[(0,S.jsx)(b.Z,{mt:M.cd,px:M.cd,children:(0,S.jsx)(p.Z,{level:5,children:"Block runs"})}),(0,S.jsx)(f.Z,{light:!0,mt:M.cd,short:!0}),ie]})}B.getInitialProps=function(){var e=(0,r.Z)(l().mark((function e(n){var t,r,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query,r=t.pipeline,i=t.run,e.abrupt("return",{pipeline:{uuid:r},pipelineRun:{id:i}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var L=(0,v.Z)(B)},39525:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs/[run]",function(){return t(23588)}])}},function(e){e.O(0,[3850,2083,5896,4804,1774,5872,2125,2344,4506,6166,8180,6214,6532,1286,9774,2888,179],(function(){return n=39525,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8662],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return P}});var r=t(82394),i=t(21831),o=t(82684),u=t(47999),l=t(49894),c=t(93461),s=t(57384),d=t(12344),a=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(a.HS,{ref:n,children:t})}var h=o.forwardRef(p),m=t(32063),v=t(15270),b=t(82531),g=t(66166),y=t(3055),O=t(49125),j=t(91427),x=t(24141);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,w=e.afterWidthOverride,P=e.before,k=e.beforeWidth,E=e.breadcrumbs,_=e.children,S=e.errors,I=e.headerMenuItems,C=e.navigationItems,D=e.setErrors,N=e.subheaderChildren,M=e.title,T=e.uuid,H=(0,x.i)().width,R="dashboard_after_width_".concat(T),A="dashboard_before_width_".concat(T),B=(0,o.useRef)(null),L=(0,o.useState)(w?p:(0,j.U2)(R,p)),U=L[0],W=L[1],F=(0,o.useState)(!1),V=F[0],G=F[1],z=(0,o.useState)(P?Math.max((0,j.U2)(A,k),13*O.iI):null),X=z[0],q=z[1],J=(0,o.useState)(!1),Y=J[0],K=J[1],Q=(0,o.useState)(null)[1],$=b.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,o.useEffect)((function(){null===B||void 0===B||!B.current||V||Y||null===Q||void 0===Q||Q(B.current.getBoundingClientRect().width)}),[V,U,Y,X,B,Q,H]),(0,o.useEffect)((function(){V||(0,j.t8)(R,U)}),[r,V,U,R]),(0,o.useEffect)((function(){Y||(0,j.t8)(A,X)}),[Y,X,A]);var te=(0,g.Z)(p);return(0,o.useEffect)((function(){w&&te!==p&&W(p)}),[w,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:M}),(0,f.jsx)(d.Z,{breadcrumbs:ne,menuItems:I,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)(a.Nk,{children:[0!==(null===C||void 0===C?void 0:C.length)&&(0,f.jsx)(a.lm,{children:(0,f.jsx)(v.Z,{navigationItems:C})}),(0,f.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:t,afterHeightOffset:y.Mz,afterHidden:r,afterMousedownActive:V,afterWidth:U,before:P,beforeHeightOffset:y.Mz,beforeMousedownActive:Y,beforeWidth:a.k1+(P?X:0),hideAfterCompletely:!0,leftOffset:P?a.k1:null,mainContainerRef:B,setAfterMousedownActive:G,setAfterWidth:W,setBeforeMousedownActive:K,setBeforeWidth:q,children:[N&&(0,f.jsx)(h,{children:N}),_]})})]}),S&&(0,f.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,f.jsx)(l.Z,Z(Z({},S),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}},62976:function(e,n,t){"use strict";t.d(n,{Z:function(){return T}});var r=t(82394),i=t(21831),o=t(82684),u=t(10919),l=t(12691),c=t.n(l),s=t(34376),d=t.n(s),a=t(9518),f=t(63068),p=t(44628),h=t(6508),m=t(67971),v=t(19711),b=t(23831),g=t(31969),y=function(){var e=document.createElement("div");e.setAttribute("style","width: 100px; height: 100px; overflow: scroll; position:absolute; top:-9999px;"),document.body.appendChild(e);var n=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),n},O=t(2005),j=t(31012),x=t(37391),w=t(6753),Z=t(49125),P=t(20567),k=t(24224),E=t(28598);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 S(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 I=2*Z.iI+j.dN,C=20*Z.iI,D=a.default.div.withConfig({displayName:"DataTable__Styles",componentId:"sc-1arr863-0"})([""," "," "," .body > div{","}.table{border-spacing:0;display:inline-block;"," "," "," "," .tr{.td.td-index-column{","}}.th{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;","}.th,.td{"," font-family:",";margin:0;","}.td{padding:","px;}&.sticky{overflow:auto;}.header{overflow:hidden;}}"],(function(e){return e.disableScrolling&&"\n overflow: hidden;\n "}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,"px;\n ")}),x.w5,(function(e){return!e.noBorderBottom&&"\n border-bottom: 1px solid ".concat((e.theme.borders||g.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||g.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderRight&&"\n border-right: 1px solid ".concat((e.theme.borders||g.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderTop&&"\n border-top: 1px solid ".concat((e.theme.borders||g.Z.borders).medium,";\n ")}),(function(e){return"\n color: ".concat((e.theme.content||g.Z.content).default,";\n ")}),(function(e){return"\n height: ".concat(e.columnHeaderHeight||I,"px;\n ")}),j.iD,O.ry,(function(e){return"\n background-color: ".concat((e.theme.background||g.Z.background).table,";\n border-bottom: 1px solid ").concat((e.theme.borders||g.Z.borders).medium,";\n border-right: 1px solid ").concat((e.theme.borders||g.Z.borders).medium,";\n ")}),1*Z.iI);function N(e){var n=e.original,t=8.5*Math.max.apply(Math,(0,i.Z)(n.map((function(e){return(null===e||void 0===e?void 0:e.length)||0})))),r=Math.ceil(t/(C-2*Z.iI));return Math.max(r,1)*j.dN+2*Z.iI}function M(e){var n=e.columnHeaderHeight,t=e.columns,r=e.data,l=e.disableScrolling,s=e.height,x=e.index,_=e.invalidValues,D=e.maxHeight,M=e.numberOfIndexes,T=e.previewIndexes,H=e.renderColumnHeader,R=e.width,A=(0,o.useContext)(a.ThemeContext),B=(0,o.useRef)(null),L=(0,o.useRef)(null);(0,o.useEffect)((function(){var e=function(e){var n;null===B||void 0===B||null===(n=B.current)||void 0===n||n.scroll(e.target.scrollLeft,0)};return L&&L.current.addEventListener("scroll",e),function(){var n;null===L||void 0===L||null===(n=L.current)||void 0===n||n.removeEventListener("scroll",e)}}),[B,L]);var U=(0,o.useMemo)((function(){return x&&r&&x.length===r.length}),[r,x]),W=(0,o.useMemo)((function(){var e=[];return(0,k.w6)(M).forEach((function(n,t){var o=8.7*String(null===r||void 0===r?void 0:r.length).length;if(U){var u=x.map((function(e){return M>=2?String(e[t]).length:String(e).length}));o=8.7*Math.max.apply(Math,(0,i.Z)(u))}e.push(o+2*Z.iI)})),e}),[r,x,M,U]),F=t.map((function(e){return null===e||void 0===e?void 0:e.Header})).slice(1),V=(0,o.useMemo)((function(){return y()}),[]),G=(0,o.useMemo)((function(){var e=R-(Math.max.apply(Math,(0,i.Z)(W))+1.5*Z.iI+V),n=t.length-1,r=C;return r*n<e&&(r=e/n),{width:r}}),[t,W,V,R]),z=(0,p.useTable)({columns:t,data:r,defaultColumn:G},p.useBlockLayout,h.useSticky),X=z.getTableBodyProps,q=z.getTableProps,J=z.headerGroups,Y=z.prepareRow,K=z.rows,Q=d().query.slug,$=void 0===Q?[]:Q,ee=new Set((null===T||void 0===T?void 0:T.removedRows)||[]),ne=(0,o.useCallback)((function(e){var n=e.index,t=e.style,r=K[n];Y(r);var i=r.original,l=ee.has(n);return(0,E.jsx)("div",S(S({},r.getRowProps({style:S(S({},t),{},{width:"auto"})})),{},{className:"tr",children:r.cells.map((function(e,t){var r,s=t<=M-1,d=e.getCellProps(),a=e.column.id,f=null===_||void 0===_||null===(r=_[a])||void 0===r?void 0:r.includes(n),p=S({},d.style);s&&(p.fontFamily=O.Vp,p.left=0,p.position="sticky",p.textAlign=x?"right":"center",p.width=W[t]);var h,b=i[t-M],y=F.indexOf(a);if(f&&(p.color=g.Z.interactive.dangerBorder),l&&(p.backgroundColor=g.Z.background.danger),Array.isArray(b)||"object"===typeof b)try{b=JSON.stringify(b)}catch(j){b="Error: cannot display value"}return s&&(U?(h=x[n],Array.isArray(h)&&(h=h[t])):h=e.render("Cell")),(0,o.createElement)("div",S(S({},d),{},{className:"td ".concat(s?"td-index-column":""),key:"".concat(t,"-").concat(b),style:p}),h,!s&&(0,E.jsxs)(m.Z,{justifyContent:"space-between",children:[(0,E.jsxs)(v.ZP,{danger:f,default:!0,wordBreak:!0,children:[!0===b&&"true",!1===b&&"false",(null===b||"null"===b)&&"null",!0!==b&&!1!==b&&null!==b&&"null"!==b&&b]}),f&&(0,E.jsx)(c(),{as:(0,P.o_)(w.mW,y),href:"/datasets/[...slug]",passHref:!0,children:(0,E.jsx)(u.Z,{danger:!0,children:"View all"})})]}))}))}))}),[x,_,W,M,Y,K,$]),te=(0,o.useMemo)((function(){var e;return D?(e=(0,k.Sm)(K.map(N)),e+=n||I-j.dN):(e=s,e-=n||I),e}),[n,N,s,D,K]),re=(0,o.useMemo)((function(){return(0,E.jsx)(f.S_,{estimatedItemSize:I,height:te,itemCount:null===K||void 0===K?void 0:K.length,itemSize:function(e){return N(K[e])},outerRef:L,style:{maxHeight:D,pointerEvents:l?"none":null},children:ne})}),[te,L,ne,K]);return(0,E.jsx)("div",S(S({},q()),{},{className:"table sticky",style:{width:R},children:(0,E.jsxs)("div",S(S({},X()),{},{className:"body",children:[(0,E.jsx)("div",{className:"header",ref:B,children:J.map((function(e,n){return(0,o.createElement)("div",S(S({},e.getHeaderGroupProps()),{},{className:"tr",key:"".concat(e.id,"_").concat(n)}),e.headers.map((function(e,n){var t,r=n<=M-1,i=e.getHeaderProps(),u=S({},i.style);return r?(u.fontFamily=O.Vp,u.left=0,u.position="sticky",u.textAlign="center",u.width=W[n],u.minWidth=W[n]):H?t=H(e,n-M,{width:G.width}):(t=e.render("Header"),u.color=(A||b.Z).content.default,u.padding=1*Z.iI,u.minWidth=G.width),(0,o.createElement)("div",S(S({},i),{},{className:"th",key:e.id,style:u,title:r?"Row number":void 0}),t)})))}))}),re]}))}))}var T=function(e){var n=e.columnHeaderHeight,t=e.columns,i=e.disableScrolling,u=e.height,l=e.index,c=e.invalidValues,s=e.maxHeight,d=e.noBorderBottom,a=e.noBorderLeft,f=e.noBorderRight,p=e.noBorderTop,h=e.previewIndexes,m=e.renderColumnHeader,v=e.rows,b=e.width,g=(0,o.useMemo)((function(){return null!==l&&void 0!==l&&l.length&&Array.isArray(l[0])?l[0].length:1}),[l]),y=(0,o.useMemo)((function(){return(0,k.w6)(g).map((function(e,n){return{Header:(0,k.w6)(n+1).map((function(){return" "})).join(" "),accessor:function(e,n){return n},sticky:"left"}})).concat(null===t||void 0===t?void 0:t.map((function(e){return{Header:String(e),accessor:String(e)}})))}),[t,g]);return(0,o.useMemo)((function(){return null===v||void 0===v?void 0:v.map((function(e){return e.reduce((function(e,n,i){return S(S({},e),{},(0,r.Z)({},t[i],n))}),{})}))}),[t,v]),(0,E.jsx)(D,{columnHeaderHeight:n,disableScrolling:i,height:u,maxHeight:(s||0)+37,noBorderBottom:d,noBorderLeft:a,noBorderRight:f,noBorderTop:p,children:(0,E.jsx)(M,{columnHeaderHeight:n,columns:y,data:v,disableScrolling:i,height:u,index:l,invalidValues:c,maxHeight:s,numberOfIndexes:g,previewIndexes:h,renderColumnHeader:m,width:b})})}},27125:function(e,n,t){"use strict";var r=t(82684),i=t(12691),o=t.n(i),u=t(34376),l=t.n(u),c=t(9518),s=t(66050),d=t(60328),a=t(16634),f=t(10919),p=t(98781),h=t(86673),m=t(58180),v=t(19711),b=t(10503),g=t(49125),y=t(44162),O=t(24224),j=t(28598);n.Z=function(e){var n=e.blockRuns,t=e.onClickRow,i=e.pipeline,u=e.selectedRun,x=(0,r.useContext)(c.ThemeContext),w=(i||{}).uuid,Z=(0,r.useMemo)((function(){return i.blocks||[]}),[i]),P=(0,r.useMemo)((function(){return(0,O.HK)(Z,(function(e){return e.uuid}))}),[Z]);return(0,j.jsx)(m.Z,{columnFlex:[null,1,3,2,null,null],columns:[{uuid:"Date"},{uuid:"Status"},{uuid:"Trigger"},{uuid:"Block"},{uuid:"Completed"},{uuid:"Logs"}],isSelectedRow:function(e){return n[e].id===(null===u||void 0===u?void 0:u.id)},onClickRow:t,rows:null===n||void 0===n?void 0:n.map((function(e){var n,t,r,u,c=e.block_uuid,m=e.completed_at,O=e.created_at,Z=e.id,k=e.pipeline_schedule_id,E=e.pipeline_schedule_name,_=e.status,S=c,I=S.split(":");p.qL.INTEGRATION===i.type&&(S=I[0],r=I[1],u=I[2]);var C=P[S];return C||(C=P[I[0]]),[(0,j.jsx)(v.ZP,{monospace:!0,default:!0,children:O}),(0,j.jsx)(v.ZP,{danger:s.V.FAILED===_,default:s.V.CANCELLED===_,info:s.V.INITIAL===_,monospace:!0,success:s.V.COMPLETED===_,warning:s.V.RUNNING===_,children:_}),(0,j.jsx)(o(),{as:"/pipelines/".concat(w,"/triggers/").concat(k),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,j.jsx)(f.Z,{bold:!0,sameColorAsText:!0,children:E})}),(0,j.jsx)(o(),{as:"/pipelines/".concat(w,"/edit?block_uuid=").concat(S),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,j.jsxs)(f.Z,{bold:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,j.jsx)(a.Z,{color:(0,y.qn)(null===(n=C)||void 0===n?void 0:n.type,{blockColor:null===(t=C)||void 0===t?void 0:t.color,theme:x}).accent,size:1.5*g.iI,square:!0}),(0,j.jsx)(h.Z,{mr:1}),(0,j.jsxs)(v.ZP,{monospace:!0,children:[S,r&&": ",r&&(0,j.jsx)(v.ZP,{default:!0,inline:!0,monospace:!0,children:r}),u>=0&&": ",u>=0&&(0,j.jsx)(v.ZP,{default:!0,inline:!0,monospace:!0,children:u})]})]})}),(0,j.jsx)(v.ZP,{monospace:!0,default:!0,children:m||"-"}),(0,j.jsx)(d.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(w,"/logs?block_run_id[]=").concat(Z))},children:(0,j.jsx)(b.B4,{default:!0,size:2*g.iI})})]})),uuid:"block-runs"})}},60547:function(e,n,t){"use strict";t.d(n,{Z:function(){return P}});var r=t(82394),i=t(21831),o=t(82684),u=t(47999),l=t(1210),c=t(34744),s=t(49894),d=t(67971),a=t(87372),f=t(86673),p=t(82531),h=t(9518),m=t(23831),v=t(73942),b=t(49125),g=h.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],v.n_,3*b.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||m.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 ')})),y=t(3055),O=t(95354),j=t(24141),x=t(28598);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(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,h=e.before,m=e.beforeWidth,v=e.breadcrumbs,w=e.buildSidekick,P=e.children,k=e.errors,E=e.headline,_=e.pageName,S=e.pipeline,I=e.setErrors,C=e.subheader,D=e.subheaderBackground,N=e.subheaderBackgroundImage,M=e.subheaderButton,T=e.subheaderText,H=e.title,R=e.uuid,A=(0,j.i)().height,B=S.uuid,L=p.ZP.pipelines.detail(B,{includes_outputs:!1},{revalidateOnFocus:!1}).data,U=null===L||void 0===L?void 0:L.pipeline,W=(0,o.useMemo)((function(){return n||(w?w({height:A,heightOffset:y.Mz,pipeline:U}):null)}),[n,w,A,U]),F=r||(W?50*b.iI:null),V=(0,o.useMemo)((function(){var e=[];return U&&(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),v?(e.push({label:function(){return U.uuid},linkProps:{as:"/pipelines/".concat(B,"/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 U.name}})),e}),[v,U,B]);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(l.Z,{after:W,afterHidden:t,afterWidth:F,before:h,beforeWidth:m,breadcrumbs:V,navigationItems:(0,O.H)(_,U),subheaderChildren:"undefined"!==typeof C&&C,title:U?H?H(U):U.name:null,uuid:R,children:[(M||T)&&(0,x.jsx)(f.Z,{mb:b.Mq,mt:b.cd,mx:b.cd,children:(0,x.jsx)(g,{background:D,backgroundImage:N,children:(0,x.jsxs)(d.Z,{alignItems:"center",children:[M,T&&(0,x.jsx)(f.Z,{ml:3}),T]})})}),E&&(0,x.jsx)(f.Z,{p:b.cd,children:(0,x.jsxs)(f.Z,{mt:b.cd,px:b.cd,children:[(0,x.jsx)(a.Z,{level:5,children:E}),(0,x.jsx)(c.Z,{light:!0,mt:b.cd,short:!0})]})}),P]}),k&&(0,x.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===I||void 0===I?void 0:I(null)},children:(0,x.jsx)(s.Z,Z(Z({},k),{},{onClose:function(){return null===I||void 0===I?void 0:I(null)}}))})]})}},64155:function(e,n,t){"use strict";t.d(n,{Eh:function(){return s},ht:function(){return a},t0:function(){return d}});var r=t(9518),i=t(82386),o=t(1286),u=t(31012),l=t(37391),c=t(49125),s=(c.iI,o.O$+3*c.iI+u.dN),d=r.default.div.withConfig({displayName:"indexstyle__SidekickContainerStyle",componentId:"sc-15ofupc-0"})([""," overflow:auto;position:absolute;width:100%;",""],l.w5,(function(e){return"\n height: calc(100vh - ".concat(i.uX,"px - ").concat(e.heightOffset,"px);\n ")})),a=r.default.div.withConfig({displayName:"indexstyle__PaddingContainerStyle",componentId:"sc-15ofupc-1"})(["padding:","px;",""],2*c.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}))},19395:function(e,n,t){"use strict";t.d(n,{IJ:function(){return d},Vx:function(){return f},eI:function(){return a},gU:function(){return h},tL:function(){return p},vJ:function(){return m}});var r,i,o=t(82394),u=t(92083),l=t.n(u);function c(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?c(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function d(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,c=null;i&&r&&(c=l()(r).valueOf()-l()(i).valueOf());return s(s({},e),{},(0,o.Z)({},t,{runtime:c,status:u}))}),{})}function a(e){if(!e)return null;var n=new Date(l()(e).valueOf()),t=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());return new Date(t)}function f(e){return"string"!==typeof e?e:a(e.split("+")[0]).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(i||(i={}));var p=(r={},(0,o.Z)(r,i.DAY,86400),(0,o.Z)(r,i.HOUR,3600),(0,o.Z)(r,i.MINUTE,60),(0,o.Z)(r,i.SECOND,1),r);function h(e){var n=i.SECOND,t=e;return e%86400===0?(t/=86400,n=i.DAY):e%3600===0?(t/=3600,n=i.HOUR):e%60===0&&(t/=60,n=i.MINUTE),{time:t,unit:n}}function m(e,n){return e*p[n]}},82635:function(e,n,t){"use strict";var r,i;t.d(n,{Gi:function(){return i},jU:function(){return u},uF:function(){return r}}),function(e){e.BUSY="busy",e.IDLE="idle",e.QUEUED="queued"}(r||(r={})),function(e){e.IMAGE_PNG="image/png",e.PROGRESS="progress",e.TABLE="table",e.TEXT="text",e.TEXT_HTML="text/html",e.TEXT_PLAIN="text/plain"}(i||(i={}));var o,u=[i.TEXT,i.TEXT_PLAIN];!function(e){e.DISPLAY_DATA="display_data",e.STATUS="status",e.STREAM="stream",e.STREAM_PIPELINE="stream_pipeline"}(o||(o={}))},47409:function(e,n,t){"use strict";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)},23588:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return L}});var r=t(77837),i=t(75582),o=t(82394),u=t(38860),l=t.n(u),c=t(82684),s=t(83455),d=t(27125),a=t(60328),f=t(34744),p=t(87372),h=t(60547),m=t(47409),v=t(41788),b=t(86673),g=t(82531),y=t(26304),O=t(62976),j=t(86532),x=t(67971),w=t(54283),Z=t(19711),P=t(82635),k=t(64155),E=t(19395),_=t(90211),S=t(28598),I=["blockRuns","columns","dataType","height","heightOffset","loadingData","pipeline","renderColumnHeader","rows","selectedRun","textData"];function C(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?C(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):C(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var N=t(59920),M=t(49125),T=t(96510),H=t(66653);function R(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function A(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?R(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):R(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function B(e){var n,t=e.pipeline,r=e.pipelineRun,o=(0,c.useState)(),u=o[0],l=o[1],v=(0,c.useState)(null),C=v[0],R=v[1],B=t.uuid,L=g.ZP.pipelines.detail(B,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,U=(0,c.useMemo)((function(){return A(A({},null===L||void 0===L?void 0:L.pipeline),{},{uuid:B})}),[L,B]),W=g.ZP.pipeline_runs.detail(r.id,{},{refreshInterval:3e3,revalidateOnFocus:!0}).data,F=(0,c.useMemo)((function(){return null===W||void 0===W?void 0:W.pipeline_run}),[W]),V=(0,s.Db)(g.ZP.pipeline_runs.useUpdate(null===F||void 0===F?void 0:F.id),{onSuccess:function(e){return(0,T.wD)(e,{onErrorCallback:function(e,n){return R({errors:n,response:e})}})}}),G=(0,i.Z)(V,2),z=G[0],X=G[1].isLoading,q=g.ZP.outputs.block_runs.list(null===u||void 0===u?void 0:u.id),J=q.data,Y=q.loading,K=(null===J||void 0===J||null===(n=J.outputs)||void 0===n?void 0:n[0])||{},Q=K.sample_data,$=K.text_data,ee=K.type,ne=(0,c.useMemo)((function(){return null===F||void 0===F?void 0:F.block_runs}),[F]),te=((null===Q||void 0===Q?void 0:Q.columns)||[]).slice(0,40),re=(null===Q||void 0===Q?void 0:Q.rows)||[],ie=(0,c.useMemo)((function(){return(0,S.jsx)(d.Z,{blockRuns:ne,onClickRow:function(e){return l((function(n){var t=ne[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipeline:U,selectedRun:u})}),[ne,U,u]);return(0,S.jsxs)(h.Z,{breadcrumbs:[{label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(B,"/runs"),href:"/pipelines/[pipeline]/runs"}},{label:function(){return null===F||void 0===F?void 0:F.execution_date}}],buildSidekick:function(e){return function(e){var n=e.blockRuns,t=e.columns,r=e.dataType,i=e.height,o=e.heightOffset,u=e.loadingData,l=e.pipeline,c=e.renderColumnHeader,s=e.rows,d=e.selectedRun,a=e.textData,f=D({},(0,y.Z)(e,I));f.blockStatus=(0,E.IJ)(n);var h=(0,S.jsx)(b.Z,{ml:2,children:(0,S.jsx)(Z.ZP,{children:"This block run has no output."})}),m=s&&s.length>0?(0,S.jsx)(O.Z,{columnHeaderHeight:c?k.Eh:0,columns:t,height:i-o-90,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,renderColumnHeader:c,rows:s}):h,v=(0,_.Pb)(a)?JSON.stringify(JSON.parse(a),null,2):a,g=a?(0,S.jsx)(b.Z,{ml:2,children:(0,S.jsx)(Z.ZP,{monospace:!0,children:(0,S.jsx)("pre",{children:v})})}):h;return(0,S.jsxs)(S.Fragment,{children:[!d&&(0,S.jsx)(j.Z,D(D({},f),{},{height:i,heightOffset:o||0,pipeline:l})),d&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(b.Z,{pl:2,py:3,style:{position:"fixed"},children:(0,S.jsx)(p.Z,{level:4,muted:!0,children:"Block Output"})}),(0,S.jsxs)("div",{style:{position:"relative",top:"75px"},children:[u&&(0,S.jsx)(b.Z,{mt:2,children:(0,S.jsx)(x.Z,{alignItems:"center",fullWidth:!0,justifyContent:"center",children:(0,S.jsx)(w.Z,{color:"white",large:!0})})}),!u&&r===P.Gi.TABLE&&m,!u&&r!==P.Gi.TABLE&&g]})]})]})}(A(A({},e),{},{blockRuns:ne,columns:te,dataType:ee,loadingData:Y,rows:re,selectedRun:u,showDynamicBlocks:!0,textData:$}))},errors:C,pageName:N.M.RUNS,pipeline:U,setErrors:R,subheader:(null===F||void 0===F?void 0:F.status)&&F.status!==m.V.COMPLETED&&(0,S.jsx)(a.Z,{danger:!0,loading:X,onClick:function(e){(0,H.j)(e),z({pipeline_run:{pipeline_run_action:"retry_blocks"}})},outline:!0,children:"Retry incomplete blocks"}),title:function(e){var n=e.name;return"".concat(n," runs")},uuid:"".concat(N.M.RUNS,"_").concat(B,"_").concat(null===F||void 0===F?void 0:F.id),children:[(0,S.jsx)(b.Z,{mt:M.cd,px:M.cd,children:(0,S.jsx)(p.Z,{level:5,children:"Block runs"})}),(0,S.jsx)(f.Z,{light:!0,mt:M.cd,short:!0}),ie]})}B.getInitialProps=function(){var e=(0,r.Z)(l().mark((function e(n){var t,r,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query,r=t.pipeline,i=t.run,e.abrupt("return",{pipeline:{uuid:r},pipelineRun:{id:i}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var L=(0,v.Z)(B)},39525:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs/[run]",function(){return t(23588)}])}},function(e){e.O(0,[3850,5716,5896,4804,1774,5872,2125,2344,4506,6166,8180,6214,6532,1286,9774,2888,179],(function(){return n=39525,e(e.s=n);var n}));var n=e.O();_N_E=n}]);