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

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

Potentially problematic release.


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

Files changed (71) hide show
  1. mage_ai/api/resources/DataProviderResource.py +12 -1
  2. mage_ai/data_preparation/models/block/sql/__init__.py +5 -7
  3. mage_ai/data_preparation/models/pipeline.py +36 -3
  4. mage_ai/data_preparation/templates/repo/io_config.yaml +6 -0
  5. mage_ai/io/sql.py +4 -1
  6. mage_ai/server/constants.py +1 -1
  7. mage_ai/server/frontend_dist/404.html +2 -2
  8. mage_ai/server/frontend_dist/404.html.html +2 -2
  9. mage_ai/server/frontend_dist/_next/static/{MxJEQAsVYkCzpf7Sf1BKY → I2bRLK9B7Lap2LvCicTKv}/_buildManifest.js +1 -1
  10. mage_ai/server/frontend_dist/_next/static/chunks/{2249-50d2156ae3ce5933.js → 2249-59feb0a0585ef7c1.js} +1 -1
  11. mage_ai/server/frontend_dist/_next/static/chunks/2407-35c362852abff411.js +1 -0
  12. mage_ai/server/frontend_dist/_next/static/chunks/{3014-26ba07eb6a78e31c.js → 3014-a01e16bc067500ad.js} +1 -1
  13. mage_ai/server/frontend_dist/_next/static/chunks/{4506-ce5fa63b65f6fa5f.js → 4506-a3c53b0033972626.js} +1 -1
  14. mage_ai/server/frontend_dist/_next/static/chunks/{4741-a90063795b0eae44.js → 4741-5fbecd08232ba3f9.js} +1 -1
  15. mage_ai/server/frontend_dist/_next/static/chunks/{5477-793cd2120261d023.js → 5477-b439f211b6146a11.js} +1 -1
  16. mage_ai/server/frontend_dist/_next/static/chunks/{5872-103815a4a043489b.js → 5872-1767c45ee6690ae5.js} +1 -1
  17. mage_ai/server/frontend_dist/_next/static/chunks/{5896-f84e336fb8877027.js → 5896-10a676bcc86978cc.js} +1 -1
  18. mage_ai/server/frontend_dist/_next/static/chunks/{7400-acab00d6265bd4dc.js → 7400-033fb12e7c46f62e.js} +1 -1
  19. mage_ai/server/frontend_dist/_next/static/chunks/{9832-c8b8970bb522f302.js → 9832-f97919376d52e3bf.js} +1 -1
  20. mage_ai/server/frontend_dist/_next/static/chunks/pages/{manage-68a4afe10fa0958c.js → manage-8a7b2b707c7038fb.js} +1 -1
  21. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-24c7b51521b5da92.js → [...slug]-c48a45cea6df6192.js} +1 -1
  22. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{backfills-f0f726599529789c.js → backfills-dd637dcb042ff771.js} +1 -1
  23. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-5541c3e13297ddbc.js +1 -0
  24. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{logs-a26b3d2b4806cb75.js → logs-caa9fade2bc783b9.js} +1 -1
  25. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-534e4fdf17255583.js → [run]-5f78885afc7758df.js} +1 -1
  26. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{runs-a9636cb88ec885bd.js → runs-43f2c1658cd3d03d.js} +1 -1
  27. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{settings-3719bc2024f5d031.js → settings-8fb53eb8dd0267e1.js} +1 -1
  28. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{syncs-93f1a008086f516a.js → syncs-c92351b1a81f7a13.js} +1 -1
  29. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-e9c39e78b4406d9b.js → [...slug]-ca76f5938bdff8a7.js} +1 -1
  30. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-57af43cc439b2b43.js → triggers-4e9518882c8730b1.js} +1 -1
  31. mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipelines-3156eaf5f09ebf39.js → pipelines-c46347f0308ab09a.js} +1 -1
  32. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{preferences-25735fdf80f95015.js → preferences-45c40fb24c8a5139.js} +1 -1
  33. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{sync-data-abfaa2b15eef72a0.js → sync-data-6e80afa0c9b90cdf.js} +1 -1
  34. mage_ai/server/frontend_dist/_next/static/chunks/pages/{terminal-24eb5df948cc9a7e.js → terminal-cc54b4d4e5295101.js} +1 -1
  35. mage_ai/server/frontend_dist/index.html +2 -2
  36. mage_ai/server/frontend_dist/manage.html +2 -2
  37. mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
  38. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
  39. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
  40. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  41. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
  42. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
  43. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
  44. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
  45. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
  46. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
  47. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +2 -2
  48. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
  49. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
  50. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
  51. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  52. mage_ai/server/frontend_dist/pipelines.html +2 -2
  53. mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
  54. mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
  55. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
  56. mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
  57. mage_ai/server/frontend_dist/settings.html +2 -2
  58. mage_ai/server/frontend_dist/sign-in.html +2 -2
  59. mage_ai/server/frontend_dist/terminal.html +2 -2
  60. mage_ai/server/frontend_dist/test.html +2 -2
  61. mage_ai/server/frontend_dist/triggers.html +2 -2
  62. {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/METADATA +1 -1
  63. {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/RECORD +69 -69
  64. mage_ai/server/frontend_dist/_next/static/chunks/4538-8a3c3e47be976ede.js +0 -1
  65. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-f68a5f454656d7a4.js +0 -1
  66. /mage_ai/server/frontend_dist/_next/static/{MxJEQAsVYkCzpf7Sf1BKY → I2bRLK9B7Lap2LvCicTKv}/_middlewareManifest.js +0 -0
  67. /mage_ai/server/frontend_dist/_next/static/{MxJEQAsVYkCzpf7Sf1BKY → I2bRLK9B7Lap2LvCicTKv}/_ssgManifest.js +0 -0
  68. {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/LICENSE +0 -0
  69. {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/WHEEL +0 -0
  70. {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/entry_points.txt +0 -0
  71. {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
1
- (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,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
+ (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([[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"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}]);
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}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[244],{59739:function(e,n,t){"use strict";var i=t(56669);function r(){}function u(){}u.resetWarningCache=r,e.exports=function(){function e(e,n,t,r,u,o){if(o!==i){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:u,resetWarningCache:r};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"},27125:function(e,n,t){"use strict";var i=t(82684),r=t(12691),u=t.n(r),o=t(34376),l=t.n(o),c=t(9518),s=t(66050),a=t(60328),d=t(16634),p=t(10919),f=t(98781),h=t(86673),b=t(58180),v=t(19711),g=t(10503),m=t(49125),j=t(44162),x=t(24224),y=t(28598);n.Z=function(e){var n=e.blockRuns,t=e.onClickRow,r=e.pipeline,o=e.selectedRun,O=(0,i.useContext)(c.ThemeContext),Z=(r||{}).uuid,k=(0,i.useMemo)((function(){return r.blocks||[]}),[r]),_=(0,i.useMemo)((function(){return(0,x.HK)(k,(function(e){return e.uuid}))}),[k]);return(0,y.jsx)(b.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===o||void 0===o?void 0:o.id)},onClickRow:t,rows:null===n||void 0===n?void 0:n.map((function(e){var n,t,i,o,c=e.block_uuid,b=e.completed_at,x=e.created_at,k=e.id,P=e.pipeline_schedule_id,w=e.pipeline_schedule_name,I=e.status,C=c,S=C.split(":");f.qL.INTEGRATION===r.type&&(C=S[0],i=S[1],o=S[2]);var T=_[C];return T||(T=_[S[0]]),[(0,y.jsx)(v.ZP,{monospace:!0,default:!0,children:x}),(0,y.jsx)(v.ZP,{danger:s.V.FAILED===I,default:s.V.CANCELLED===I,info:s.V.INITIAL===I,monospace:!0,success:s.V.COMPLETED===I,warning:s.V.RUNNING===I,children:I}),(0,y.jsx)(u(),{as:"/pipelines/".concat(Z,"/triggers/").concat(P),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,y.jsx)(p.Z,{bold:!0,sameColorAsText:!0,children:w})}),(0,y.jsx)(u(),{as:"/pipelines/".concat(Z,"/edit?block_uuid=").concat(C),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,y.jsxs)(p.Z,{bold:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,y.jsx)(d.Z,{color:(0,j.qn)(null===(n=T)||void 0===n?void 0:n.type,{blockColor:null===(t=T)||void 0===t?void 0:t.color,theme:O}).accent,size:1.5*m.iI,square:!0}),(0,y.jsx)(h.Z,{mr:1}),(0,y.jsxs)(v.ZP,{monospace:!0,children:[C,i&&": ",i&&(0,y.jsx)(v.ZP,{default:!0,inline:!0,monospace:!0,children:i}),o>=0&&": ",o>=0&&(0,y.jsx)(v.ZP,{default:!0,inline:!0,monospace:!0,children:o})]})]})}),(0,y.jsx)(v.ZP,{monospace:!0,default:!0,children:b||"-"}),(0,y.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(Z,"/logs?block_run_id[]=").concat(k))},children:(0,y.jsx)(g.B4,{default:!0,size:2*m.iI})})]})),uuid:"block-runs"})}},60547:function(e,n,t){"use strict";t.d(n,{Z:function(){return _}});var i=t(82394),r=t(21831),u=t(82684),o=t(47999),l=t(1210),c=t(34744),s=t(28358),a=t(67971),d=t(87372),p=t(86673),f=t(82531),h=t(9518),b=t(23831),v=t(73942),g=t(49125),m=h.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],v.n_,3*g.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||b.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 ')})),j=t(3055),x=t(95354),y=t(24141),O=t(28598);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function k(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,i.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 _=function(e){var n=e.after,t=e.afterHidden,i=e.afterWidth,h=e.before,b=e.beforeWidth,v=e.breadcrumbs,Z=e.buildSidekick,_=e.children,P=e.errors,w=e.headline,I=e.pageName,C=e.pipeline,S=e.setErrors,T=e.subheader,E=e.subheaderBackground,R=e.subheaderBackgroundImage,N=e.subheaderButton,D=e.subheaderText,M=e.title,L=e.uuid,H=(0,y.i)().height,U=C.uuid,z=f.ZP.pipelines.detail(U,{includes_outputs:!1},{revalidateOnFocus:!1}).data,V=null===z||void 0===z?void 0:z.pipeline,B=(0,u.useMemo)((function(){return n||(Z?Z({height:H,heightOffset:j.Mz,pipeline:V}):null)}),[n,Z,H,V]),F=i||(B?50*g.iI:null),A=(0,u.useMemo)((function(){var e=[];return V&&(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),v?(e.push({label:function(){return V.uuid},linkProps:{as:"/pipelines/".concat(U,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,r.Z)(v)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return V.name}})),e}),[v,V,U]);return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(l.Z,{after:B,afterHidden:t,afterWidth:F,before:h,beforeWidth:b,breadcrumbs:A,navigationItems:(0,x.H)(I,V),subheaderChildren:"undefined"!==typeof T&&T,title:V?M?M(V):V.name:null,uuid:L,children:[(N||D)&&(0,O.jsx)(p.Z,{mb:g.Mq,mt:g.cd,mx:g.cd,children:(0,O.jsx)(m,{background:E,backgroundImage:R,children:(0,O.jsxs)(a.Z,{alignItems:"center",children:[N,D&&(0,O.jsx)(p.Z,{ml:3}),D]})})}),w&&(0,O.jsx)(p.Z,{p:g.cd,children:(0,O.jsxs)(p.Z,{mt:g.cd,px:g.cd,children:[(0,O.jsx)(d.Z,{level:5,children:w}),(0,O.jsx)(c.Z,{light:!0,mt:g.cd,short:!0})]})}),_]}),P&&(0,O.jsx)(o.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===S||void 0===S?void 0:S(null)},children:(0,O.jsx)(s.Z,k(k({},P),{},{onClose:function(){return null===S||void 0===S?void 0:S(null)}}))})]})}},56681:function(e,n,t){"use strict";t.d(n,{G:function(){return x},Z:function(){return y}});var i=t(75582),r=t(82394),u=t(26304),o=t(32316),l=t(22673),c=t(86532),s=t(86673),a=t(19711),d=t(58180),p=t(49125),f=t(19395),h=t(28598),b=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function v(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function g(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,r.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 m={uuid:"Run details"},j={uuid:"Dependency tree"},x=[j,m];function y(e){var n=e.height,t=e.heightOffset,r=e.pipeline,v=e.selectedRun,y=e.selectedTab,O=e.setSelectedTab,Z=g({},(0,u.Z)(e,b));v?Z.blockStatus=(0,f.IJ)(null===v||void 0===v?void 0:v.block_runs):Z.noStatus=!0;var k=(null===v||void 0===v?void 0:v.variables)||{};null!==v&&void 0!==v&&v.event_variables&&(k.event=v.event_variables);var _=[];k&&JSON.stringify(k,null,2).split("\n").forEach((function(e){_.push(" ".concat(e))}));var P=v&&[["Run ID",null===v||void 0===v?void 0:v.id],["Variables",(0,h.jsx)(l.Z,{language:"json",small:!0,source:_.join("\n")})]],w=v&&(0,h.jsx)(s.Z,{pb:p.cd,px:p.cd,children:(0,h.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:P.map((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];return[(0,h.jsx)(a.ZP,{monospace:!0,muted:!0,children:t}),(0,h.jsx)(a.ZP,{monospace:!0,textOverflow:!0,children:r})]})),uuid:"LogDetail"})}),I=y&&O;return(0,h.jsxs)(h.Fragment,{children:[I&&(0,h.jsx)(s.Z,{py:p.cd,children:(0,h.jsx)(o.Z,{onClickTab:O,selectedTabUUID:null===y||void 0===y?void 0:y.uuid,tabs:x})}),(!I||j.uuid===(null===y||void 0===y?void 0:y.uuid))&&(0,h.jsx)(c.Z,g(g({},Z),{},{height:n,heightOffset:(t||0)+(I?76:0),pipeline:r})),m.uuid===(null===y||void 0===y?void 0:y.uuid)&&w]})}},22673:function(e,n,t){"use strict";var i=t(82684),r=t(73199),u=t.n(r),o=t(71593),l=t(9518),c=t(65292),s=t(23831),a=t(2005),d=t(49125),p=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,r=e.showLineNumbers,f=e.small,h=e.source,b=e.wrapLines,v=(0,i.useContext)(l.ThemeContext);return(0,p.jsx)(u(),{source:h,renderers:{code:function(e){var i=e.value;return(0,p.jsx)(o.Z,{customStyle:{backgroundColor:(v.background||s.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:a.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,paddingBottom:2*d.iI,paddingTop:2*d.iI,maxWidth:t},lineNumberStyle:{color:(v.content||s.Z.content).muted},language:n,showLineNumbers:r,style:c._4,useInlineStyles:!0,wrapLines:b,children:i})}}})}},32316:function(e,n,t){"use strict";t.d(n,{Z:function(){return b}});var i=t(82684),r=t(60328),u=t(67971),o=t(882),l=t(86673),c=t(99994),s=t(9518),a=t(49125),d=t(37391),p=s.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],a.cd*a.iI,a.cd*a.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.allowScroll&&"\n overflow: auto;\n "}),d.w5),f=t(66653),h=t(28598);var b=function(e){var n=e.allowScroll,t=e.contained,s=e.noPadding,d=e.onClickTab,b=e.selectedTabUUID,v=e.small,g=e.tabs,m=(0,i.useMemo)((function(){var e=g.length,n=[];return g.forEach((function(t,i){var s=t.Icon,p=t.IconSelected,g=t.label,m=t.uuid,j=m===b,x=j&&p||s,y=g?g():m,O=(0,h.jsxs)(u.Z,{alignItems:"center",children:[x&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(x,{default:!j,size:2*a.iI}),(0,h.jsx)(l.Z,{mr:1})]}),y]});i>=1&&e>=2&&n.push((0,h.jsx)("div",{style:{marginLeft:1.5*a.iI}},"spacing-".concat(m))),j?n.push((0,h.jsx)(o.Z,{backgroundGradient:c.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:v,onClick:function(e){(0,f.j)(e),d(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:v,children:O},m)):n.push((0,h.jsx)("div",{style:{padding:4},children:(0,h.jsx)(r.Z,{borderLess:!0,compact:v,default:!0,onClick:function(e){(0,f.j)(e),d(t)},outline:!0,small:v,children:O})},"button-tab-".concat(m)))})),n}),[d,b,v,g]),j=(0,h.jsx)(u.Z,{alignItems:"center",children:m});return t?j:(0,h.jsx)(p,{allowScroll:n,noPadding:s,children:j})}},77980:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return W}});var i=t(77837),r=t(75582),u=t(82394),o=t(38860),l=t.n(o),c=t(82684),s=t(83455),a=t(34376),d=t(16953),p=t(27125),f=t(60328),h=t(32316),b=t(67971),v=t(9518),g=t(23831),m=v.default.div.withConfig({displayName:"PageSectionHeader",componentId:"sc-1wznrcv-0"})(["left:0;position:sticky;top:0;width:100%;z-index:2;",""],(function(e){return"\n background-color: ".concat(e.backgroundColor||(e.theme.background||g.Z.background).page,";\n border-bottom: 1px solid ").concat((e.theme.borders||g.Z.borders).medium,";\n ")})),j=t(51099),x=t(60547),y=t(28598);var O=function(e){var n=e.size;return(0,y.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,y.jsx)("g",{"clip-path":"url(#clip0_3007_70027)",children:(0,y.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.75 6.6859C1.75 3.95988 3.95988 1.75 6.6859 1.75h.98788c-.23022.41608-.36128.89466-.36128 1.40385s.13106.98777.36128 1.40384h-.71224c-1.32761 0-2.40385 1.07624-2.40385 2.40385 0 1.32761 1.07624 2.40385 2.40385 2.40385H15.609c3.3916 0 6.141 2.74941 6.141 6.14101 0 3.3916-2.7494 6.141-6.141 6.141H9.55584c.23019-.416.36123-.8946.36123-1.4037 0-.5092-.13108-.9879-.36134-1.404H15.609c1.8409 0 3.3333-1.4923 3.3333-3.3333 0-1.8409-1.4924-3.3333-3.3333-3.3333H6.96154C4.08329 12.1731 1.75 9.83979 1.75 6.96154V6.6859zM10.2163.25H6.6859C3.13145.25.25 3.13145.25 6.6859v.27564c0 3.70666 3.00486 6.71156 6.71154 6.71156H15.609c1.0125 0 1.8333.8208 1.8333 1.8333s-.8208 1.8333-1.8333 1.8333H7.01282c-1.60375 0-2.90385 1.3001-2.90385 2.9039 0 1.3248.88713 2.4423 2.09974 2.7911.06039.0173.12158.0328.18352.0463.20007.0436.40785.0665.62099.0665l.02449-.0001H15.609c4.22 0 7.641-3.421 7.641-7.641 0-4.22-3.421-7.64101-7.641-7.64101H6.96154c-.49918 0-.90385-.40467-.90385-.90385 0-.49918.40467-.90385.90385-.90385h3.25636c1.6038 0 2.9039-1.30009 2.9039-2.90384 0-1.60375-1.3001-2.903849-2.9039-2.90385h-.0016zm0 4.30769c-.77528 0-1.4038-.62852-1.4038-1.40384 0-.77505.62808-1.4034 1.403-1.40385h.0017c.7749.00045 1.403.6288 1.403 1.40385 0 .77532-.6285 1.40384-1.4039 1.40384zM7.01282 21.6474c-.10108 0-.19967-.0106-.29469-.0309-.03025-.0065-.06014-.0139-.08963-.0223-.58829-.1673-1.01912-.7086-1.01912-1.3505 0-.7753.62852-1.4039 1.40384-1.4039s1.40385.6286 1.40385 1.4039c0 .7696-.61935 1.3946-1.38683 1.4037h-.01742z",fill:"url(#paint0_linear_3007_70027)"})}),(0,y.jsxs)("defs",{children:[(0,y.jsxs)("linearGradient",{id:"paint0_linear_3007_70027",x1:"11.75",y1:".250001",x2:"11.75",y2:"23.1475",gradientUnits:"userSpaceOnUse",children:[(0,y.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,y.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,y.jsx)("clipPath",{id:"clip0_3007_70027",children:(0,y.jsx)("path",{fill:"#fff",transform:"matrix(0 1 1 0 0 0)",d:"M0 0h24v24H0z"})})]})]})},Z=t(47409),k=t(97496),_=t(41788),P=t(55378),w=t(86673),I=t(82531),C=t(56681),S=t(66166),T=t(10503),E=t(59920),R=t(66050),N=t(49125),D=t(33766),M=t(7715),L=t(96510),H=t(59e3);function U(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?U(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):U(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var V={Icon:T.mR,IconSelected:O,label:function(){return"Pipeline runs"},uuid:"pipeline_runs"},B={Icon:T.Re,IconSelected:d.Z,label:function(){return"Block runs"},uuid:"block_runs"},F=[V,B];function A(e){var n=e.pipeline,t=(0,a.useRouter)(),i=(0,c.useState)(null),u=i[0],o=i[1],l=(0,c.useState)(V),d=l[0],v=l[1],g=(0,c.useState)(C.G[0]),O=g[0],_=g[1],T=(0,c.useState)(null),U=T[0],A=T[1],W=n.uuid,G=I.ZP.pipelines.detail(W,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,q=(0,c.useMemo)((function(){return z(z({},null===G||void 0===G?void 0:G.pipeline),{},{uuid:W})}),[G,W]),X=I.ZP.block_runs.list((0,M.gR)(U,["tab"]),{},{pauseFetch:!U}).data,J=(0,c.useMemo)((function(){return(null===X||void 0===X?void 0:X.block_runs)||[]}),[X]),K=(0,c.useState)(),Y=K[0],Q=K[1],$=(0,H.iV)(),ee=(0,S.Z)($);(0,c.useEffect)((function(){var e=$.pipeline_run_id,n=$.status;if(!(0,M.Xy)($,ee)){var t=z(z({},ee),$);e?t.pipeline_run_id=e:t.pipeline_uuid=W,n?t.status=n:delete t.status,A(t)}}),[W,$,ee]);var ne={_limit:25,_offset:25*(null!==$&&void 0!==$&&$.page?$.page:0),pipeline_uuid:W};null!==$&&void 0!==$&&$.status&&(ne.status=$.status);var te=I.ZP.pipeline_runs.list(ne,{refreshInterval:5e3}),ie=te.data,re=te.mutate,ue=(0,c.useMemo)((function(){return(null===ie||void 0===ie?void 0:ie.pipeline_runs)||[]}),[ie]),oe=(0,c.useMemo)((function(){var e;return(null===ie||void 0===ie||null===(e=ie.metadata)||void 0===e?void 0:e.count)||[]}),[ie]),le=ue.some((function(e){var n=e.status;return n===R.V.INITIAL||n===R.V.RUNNING})),ce=(0,s.Db)(I.ZP.pipelines.useUpdate(W),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){re()},onErrorCallback:function(e,n){return o({errors:n,response:e})}})}}),se=(0,r.Z)(ce,2),ae=se[0],de=se[1].isLoading,pe=(0,S.Z)(d);(0,c.useEffect)((function(){var e=$.tab;e&&v(F.find((function(n){return n.uuid===e})))}),[$,d,pe]);var fe=(0,c.useMemo)((function(){var e=null!==$&&void 0!==$&&$.page?$.page:0;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(k.Z,{fetchPipelineRuns:re,onClickRow:function(e){return Q((function(n){var t=ue[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:ue,selectedRun:Y,setErrors:o}),(0,y.jsx)(w.Z,{p:2,children:(0,y.jsx)(j.Z,{maxPages:9,onUpdate:function(e){var n=Number(e),i=z(z({},$),{},{page:n>=0?n:0});t.push("/pipelines/[pipeline]/runs","/pipelines/".concat(W,"/runs?").concat((0,H.uM)(i)))},page:Number(e),totalPages:Math.ceil(oe/25)})})]})}),[re,q,ue,$,Y,oe]),he=(0,c.useMemo)((function(){return(0,y.jsx)(p.Z,{blockRuns:J,pipeline:q})}),[J,q]);return(0,y.jsxs)(x.Z,{afterHidden:V.uuid===(null===d||void 0===d?void 0:d.uuid)&&!Y,breadcrumbs:[{label:function(){return"Runs"}}],buildSidekick:V.uuid===(null===d||void 0===d?void 0:d.uuid)?function(e){return(0,C.Z)(z(z({},e),{},{selectedRun:Y,selectedTab:O,setSelectedTab:_}))}:function(e){return(0,C.Z)(e)},errors:u,pageName:E.M.RUNS,pipeline:q,setErrors:o,title:function(e){var n=e.name;return"".concat(n," runs")},uuid:"".concat(E.M.RUNS,"_").concat(W),children:[(0,y.jsx)(m,{children:(0,y.jsx)(w.Z,{py:1,children:(0,y.jsxs)(b.Z,{alignItems:"center",children:[le&&V.uuid===(null===d||void 0===d?void 0:d.uuid)&&(0,y.jsx)(w.Z,{pl:2,children:(0,y.jsx)(f.Z,{danger:!0,loading:de,onClick:function(){ae({pipeline:{status:R.V.CANCELLED}})},outline:!0,children:"Cancel running pipeline runs"})}),(0,y.jsx)(h.Z,{onClickTab:function(e){var n=e.uuid;A(null),(0,D.u7)({tab:n},{replaceParams:!0})},selectedTabUUID:null===d||void 0===d?void 0:d.uuid,tabs:F}),V.uuid===(null===d||void 0===d?void 0:d.uuid)&&(0,y.jsxs)(P.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?(A(null),(0,D.u7)({tab:V.uuid},{replaceParams:!0})):(0,D.u7)({page:0,status:e.target.value})},paddingRight:4*N.iI,placeholder:"Select run status",value:null===U||void 0===U?void 0:U.status,children:[(0,y.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(R.V).map((function(e){return(0,y.jsx)("option",{value:e,children:Z.D[e]},e)}))]})]})})}),V.uuid===(null===d||void 0===d?void 0:d.uuid)&&fe,B.uuid===(null===d||void 0===d?void 0:d.uuid)&&he]})}A.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 W=(0,_.Z)(A)},79897:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs",function(){return t(77980)}])}},function(e){e.O(0,[3850,5716,4804,1774,2524,2344,4506,6166,8180,6214,6532,4741,9774,2888,179],(function(){return n=79897,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[244],{59739:function(e,n,t){"use strict";var i=t(56669);function r(){}function u(){}u.resetWarningCache=r,e.exports=function(){function e(e,n,t,r,u,o){if(o!==i){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:u,resetWarningCache:r};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"},27125:function(e,n,t){"use strict";var i=t(82684),r=t(12691),u=t.n(r),o=t(34376),l=t.n(o),c=t(9518),s=t(66050),a=t(60328),d=t(16634),p=t(10919),f=t(98781),h=t(86673),b=t(58180),v=t(19711),g=t(10503),m=t(49125),j=t(44162),x=t(24224),y=t(28598);n.Z=function(e){var n=e.blockRuns,t=e.onClickRow,r=e.pipeline,o=e.selectedRun,O=(0,i.useContext)(c.ThemeContext),Z=(r||{}).uuid,k=(0,i.useMemo)((function(){return r.blocks||[]}),[r]),_=(0,i.useMemo)((function(){return(0,x.HK)(k,(function(e){return e.uuid}))}),[k]);return(0,y.jsx)(b.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===o||void 0===o?void 0:o.id)},onClickRow:t,rows:null===n||void 0===n?void 0:n.map((function(e){var n,t,i,o,c=e.block_uuid,b=e.completed_at,x=e.created_at,k=e.id,P=e.pipeline_schedule_id,w=e.pipeline_schedule_name,I=e.status,C=c,S=C.split(":");f.qL.INTEGRATION===r.type&&(C=S[0],i=S[1],o=S[2]);var T=_[C];return T||(T=_[S[0]]),[(0,y.jsx)(v.ZP,{monospace:!0,default:!0,children:x}),(0,y.jsx)(v.ZP,{danger:s.V.FAILED===I,default:s.V.CANCELLED===I,info:s.V.INITIAL===I,monospace:!0,success:s.V.COMPLETED===I,warning:s.V.RUNNING===I,children:I}),(0,y.jsx)(u(),{as:"/pipelines/".concat(Z,"/triggers/").concat(P),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,y.jsx)(p.Z,{bold:!0,sameColorAsText:!0,children:w})}),(0,y.jsx)(u(),{as:"/pipelines/".concat(Z,"/edit?block_uuid=").concat(C),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,y.jsxs)(p.Z,{bold:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,y.jsx)(d.Z,{color:(0,j.qn)(null===(n=T)||void 0===n?void 0:n.type,{blockColor:null===(t=T)||void 0===t?void 0:t.color,theme:O}).accent,size:1.5*m.iI,square:!0}),(0,y.jsx)(h.Z,{mr:1}),(0,y.jsxs)(v.ZP,{monospace:!0,children:[C,i&&": ",i&&(0,y.jsx)(v.ZP,{default:!0,inline:!0,monospace:!0,children:i}),o>=0&&": ",o>=0&&(0,y.jsx)(v.ZP,{default:!0,inline:!0,monospace:!0,children:o})]})]})}),(0,y.jsx)(v.ZP,{monospace:!0,default:!0,children:b||"-"}),(0,y.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(Z,"/logs?block_run_id[]=").concat(k))},children:(0,y.jsx)(g.B4,{default:!0,size:2*m.iI})})]})),uuid:"block-runs"})}},60547:function(e,n,t){"use strict";t.d(n,{Z:function(){return _}});var i=t(82394),r=t(21831),u=t(82684),o=t(47999),l=t(1210),c=t(34744),s=t(49894),a=t(67971),d=t(87372),p=t(86673),f=t(82531),h=t(9518),b=t(23831),v=t(73942),g=t(49125),m=h.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],v.n_,3*g.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||b.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 ')})),j=t(3055),x=t(95354),y=t(24141),O=t(28598);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function k(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,i.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 _=function(e){var n=e.after,t=e.afterHidden,i=e.afterWidth,h=e.before,b=e.beforeWidth,v=e.breadcrumbs,Z=e.buildSidekick,_=e.children,P=e.errors,w=e.headline,I=e.pageName,C=e.pipeline,S=e.setErrors,T=e.subheader,E=e.subheaderBackground,R=e.subheaderBackgroundImage,N=e.subheaderButton,D=e.subheaderText,M=e.title,L=e.uuid,H=(0,y.i)().height,U=C.uuid,z=f.ZP.pipelines.detail(U,{includes_outputs:!1},{revalidateOnFocus:!1}).data,V=null===z||void 0===z?void 0:z.pipeline,B=(0,u.useMemo)((function(){return n||(Z?Z({height:H,heightOffset:j.Mz,pipeline:V}):null)}),[n,Z,H,V]),F=i||(B?50*g.iI:null),A=(0,u.useMemo)((function(){var e=[];return V&&(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),v?(e.push({label:function(){return V.uuid},linkProps:{as:"/pipelines/".concat(U,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,r.Z)(v)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return V.name}})),e}),[v,V,U]);return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(l.Z,{after:B,afterHidden:t,afterWidth:F,before:h,beforeWidth:b,breadcrumbs:A,navigationItems:(0,x.H)(I,V),subheaderChildren:"undefined"!==typeof T&&T,title:V?M?M(V):V.name:null,uuid:L,children:[(N||D)&&(0,O.jsx)(p.Z,{mb:g.Mq,mt:g.cd,mx:g.cd,children:(0,O.jsx)(m,{background:E,backgroundImage:R,children:(0,O.jsxs)(a.Z,{alignItems:"center",children:[N,D&&(0,O.jsx)(p.Z,{ml:3}),D]})})}),w&&(0,O.jsx)(p.Z,{p:g.cd,children:(0,O.jsxs)(p.Z,{mt:g.cd,px:g.cd,children:[(0,O.jsx)(d.Z,{level:5,children:w}),(0,O.jsx)(c.Z,{light:!0,mt:g.cd,short:!0})]})}),_]}),P&&(0,O.jsx)(o.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===S||void 0===S?void 0:S(null)},children:(0,O.jsx)(s.Z,k(k({},P),{},{onClose:function(){return null===S||void 0===S?void 0:S(null)}}))})]})}},56681:function(e,n,t){"use strict";t.d(n,{G:function(){return x},Z:function(){return y}});var i=t(75582),r=t(82394),u=t(26304),o=t(32316),l=t(22673),c=t(86532),s=t(86673),a=t(19711),d=t(58180),p=t(49125),f=t(19395),h=t(28598),b=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function v(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function g(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,r.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 m={uuid:"Run details"},j={uuid:"Dependency tree"},x=[j,m];function y(e){var n=e.height,t=e.heightOffset,r=e.pipeline,v=e.selectedRun,y=e.selectedTab,O=e.setSelectedTab,Z=g({},(0,u.Z)(e,b));v?Z.blockStatus=(0,f.IJ)(null===v||void 0===v?void 0:v.block_runs):Z.noStatus=!0;var k=(null===v||void 0===v?void 0:v.variables)||{};null!==v&&void 0!==v&&v.event_variables&&(k.event=v.event_variables);var _=[];k&&JSON.stringify(k,null,2).split("\n").forEach((function(e){_.push(" ".concat(e))}));var P=v&&[["Run ID",null===v||void 0===v?void 0:v.id],["Variables",(0,h.jsx)(l.Z,{language:"json",small:!0,source:_.join("\n")})]],w=v&&(0,h.jsx)(s.Z,{pb:p.cd,px:p.cd,children:(0,h.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:P.map((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];return[(0,h.jsx)(a.ZP,{monospace:!0,muted:!0,children:t}),(0,h.jsx)(a.ZP,{monospace:!0,textOverflow:!0,children:r})]})),uuid:"LogDetail"})}),I=y&&O;return(0,h.jsxs)(h.Fragment,{children:[I&&(0,h.jsx)(s.Z,{py:p.cd,children:(0,h.jsx)(o.Z,{onClickTab:O,selectedTabUUID:null===y||void 0===y?void 0:y.uuid,tabs:x})}),(!I||j.uuid===(null===y||void 0===y?void 0:y.uuid))&&(0,h.jsx)(c.Z,g(g({},Z),{},{height:n,heightOffset:(t||0)+(I?76:0),pipeline:r})),m.uuid===(null===y||void 0===y?void 0:y.uuid)&&w]})}},22673:function(e,n,t){"use strict";var i=t(82684),r=t(73199),u=t.n(r),o=t(71593),l=t(9518),c=t(65292),s=t(23831),a=t(2005),d=t(49125),p=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,r=e.showLineNumbers,f=e.small,h=e.source,b=e.wrapLines,v=(0,i.useContext)(l.ThemeContext);return(0,p.jsx)(u(),{source:h,renderers:{code:function(e){var i=e.value;return(0,p.jsx)(o.Z,{customStyle:{backgroundColor:(v.background||s.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:a.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,paddingBottom:2*d.iI,paddingTop:2*d.iI,maxWidth:t},lineNumberStyle:{color:(v.content||s.Z.content).muted},language:n,showLineNumbers:r,style:c._4,useInlineStyles:!0,wrapLines:b,children:i})}}})}},32316:function(e,n,t){"use strict";t.d(n,{Z:function(){return b}});var i=t(82684),r=t(60328),u=t(67971),o=t(882),l=t(86673),c=t(99994),s=t(9518),a=t(49125),d=t(37391),p=s.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],a.cd*a.iI,a.cd*a.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.allowScroll&&"\n overflow: auto;\n "}),d.w5),f=t(66653),h=t(28598);var b=function(e){var n=e.allowScroll,t=e.contained,s=e.noPadding,d=e.onClickTab,b=e.selectedTabUUID,v=e.small,g=e.tabs,m=(0,i.useMemo)((function(){var e=g.length,n=[];return g.forEach((function(t,i){var s=t.Icon,p=t.IconSelected,g=t.label,m=t.uuid,j=m===b,x=j&&p||s,y=g?g():m,O=(0,h.jsxs)(u.Z,{alignItems:"center",children:[x&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(x,{default:!j,size:2*a.iI}),(0,h.jsx)(l.Z,{mr:1})]}),y]});i>=1&&e>=2&&n.push((0,h.jsx)("div",{style:{marginLeft:1.5*a.iI}},"spacing-".concat(m))),j?n.push((0,h.jsx)(o.Z,{backgroundGradient:c.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:v,onClick:function(e){(0,f.j)(e),d(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:v,children:O},m)):n.push((0,h.jsx)("div",{style:{padding:4},children:(0,h.jsx)(r.Z,{borderLess:!0,compact:v,default:!0,onClick:function(e){(0,f.j)(e),d(t)},outline:!0,small:v,children:O})},"button-tab-".concat(m)))})),n}),[d,b,v,g]),j=(0,h.jsx)(u.Z,{alignItems:"center",children:m});return t?j:(0,h.jsx)(p,{allowScroll:n,noPadding:s,children:j})}},77980:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return W}});var i=t(77837),r=t(75582),u=t(82394),o=t(38860),l=t.n(o),c=t(82684),s=t(83455),a=t(34376),d=t(16953),p=t(27125),f=t(60328),h=t(32316),b=t(67971),v=t(9518),g=t(23831),m=v.default.div.withConfig({displayName:"PageSectionHeader",componentId:"sc-1wznrcv-0"})(["left:0;position:sticky;top:0;width:100%;z-index:2;",""],(function(e){return"\n background-color: ".concat(e.backgroundColor||(e.theme.background||g.Z.background).page,";\n border-bottom: 1px solid ").concat((e.theme.borders||g.Z.borders).medium,";\n ")})),j=t(51099),x=t(60547),y=t(28598);var O=function(e){var n=e.size;return(0,y.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,y.jsx)("g",{"clip-path":"url(#clip0_3007_70027)",children:(0,y.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.75 6.6859C1.75 3.95988 3.95988 1.75 6.6859 1.75h.98788c-.23022.41608-.36128.89466-.36128 1.40385s.13106.98777.36128 1.40384h-.71224c-1.32761 0-2.40385 1.07624-2.40385 2.40385 0 1.32761 1.07624 2.40385 2.40385 2.40385H15.609c3.3916 0 6.141 2.74941 6.141 6.14101 0 3.3916-2.7494 6.141-6.141 6.141H9.55584c.23019-.416.36123-.8946.36123-1.4037 0-.5092-.13108-.9879-.36134-1.404H15.609c1.8409 0 3.3333-1.4923 3.3333-3.3333 0-1.8409-1.4924-3.3333-3.3333-3.3333H6.96154C4.08329 12.1731 1.75 9.83979 1.75 6.96154V6.6859zM10.2163.25H6.6859C3.13145.25.25 3.13145.25 6.6859v.27564c0 3.70666 3.00486 6.71156 6.71154 6.71156H15.609c1.0125 0 1.8333.8208 1.8333 1.8333s-.8208 1.8333-1.8333 1.8333H7.01282c-1.60375 0-2.90385 1.3001-2.90385 2.9039 0 1.3248.88713 2.4423 2.09974 2.7911.06039.0173.12158.0328.18352.0463.20007.0436.40785.0665.62099.0665l.02449-.0001H15.609c4.22 0 7.641-3.421 7.641-7.641 0-4.22-3.421-7.64101-7.641-7.64101H6.96154c-.49918 0-.90385-.40467-.90385-.90385 0-.49918.40467-.90385.90385-.90385h3.25636c1.6038 0 2.9039-1.30009 2.9039-2.90384 0-1.60375-1.3001-2.903849-2.9039-2.90385h-.0016zm0 4.30769c-.77528 0-1.4038-.62852-1.4038-1.40384 0-.77505.62808-1.4034 1.403-1.40385h.0017c.7749.00045 1.403.6288 1.403 1.40385 0 .77532-.6285 1.40384-1.4039 1.40384zM7.01282 21.6474c-.10108 0-.19967-.0106-.29469-.0309-.03025-.0065-.06014-.0139-.08963-.0223-.58829-.1673-1.01912-.7086-1.01912-1.3505 0-.7753.62852-1.4039 1.40384-1.4039s1.40385.6286 1.40385 1.4039c0 .7696-.61935 1.3946-1.38683 1.4037h-.01742z",fill:"url(#paint0_linear_3007_70027)"})}),(0,y.jsxs)("defs",{children:[(0,y.jsxs)("linearGradient",{id:"paint0_linear_3007_70027",x1:"11.75",y1:".250001",x2:"11.75",y2:"23.1475",gradientUnits:"userSpaceOnUse",children:[(0,y.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,y.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,y.jsx)("clipPath",{id:"clip0_3007_70027",children:(0,y.jsx)("path",{fill:"#fff",transform:"matrix(0 1 1 0 0 0)",d:"M0 0h24v24H0z"})})]})]})},Z=t(47409),k=t(97496),_=t(41788),P=t(55378),w=t(86673),I=t(82531),C=t(56681),S=t(66166),T=t(10503),E=t(59920),R=t(66050),N=t(49125),D=t(33766),M=t(7715),L=t(96510),H=t(59e3);function U(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?U(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):U(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var V={Icon:T.mR,IconSelected:O,label:function(){return"Pipeline runs"},uuid:"pipeline_runs"},B={Icon:T.Re,IconSelected:d.Z,label:function(){return"Block runs"},uuid:"block_runs"},F=[V,B];function A(e){var n=e.pipeline,t=(0,a.useRouter)(),i=(0,c.useState)(null),u=i[0],o=i[1],l=(0,c.useState)(V),d=l[0],v=l[1],g=(0,c.useState)(C.G[0]),O=g[0],_=g[1],T=(0,c.useState)(null),U=T[0],A=T[1],W=n.uuid,G=I.ZP.pipelines.detail(W,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,q=(0,c.useMemo)((function(){return z(z({},null===G||void 0===G?void 0:G.pipeline),{},{uuid:W})}),[G,W]),X=I.ZP.block_runs.list((0,M.gR)(U,["tab"]),{},{pauseFetch:!U}).data,J=(0,c.useMemo)((function(){return(null===X||void 0===X?void 0:X.block_runs)||[]}),[X]),K=(0,c.useState)(),Y=K[0],Q=K[1],$=(0,H.iV)(),ee=(0,S.Z)($);(0,c.useEffect)((function(){var e=$.pipeline_run_id,n=$.status;if(!(0,M.Xy)($,ee)){var t=z(z({},ee),$);e?t.pipeline_run_id=e:t.pipeline_uuid=W,n?t.status=n:delete t.status,A(t)}}),[W,$,ee]);var ne={_limit:25,_offset:25*(null!==$&&void 0!==$&&$.page?$.page:0),pipeline_uuid:W};null!==$&&void 0!==$&&$.status&&(ne.status=$.status);var te=I.ZP.pipeline_runs.list(ne,{refreshInterval:5e3}),ie=te.data,re=te.mutate,ue=(0,c.useMemo)((function(){return(null===ie||void 0===ie?void 0:ie.pipeline_runs)||[]}),[ie]),oe=(0,c.useMemo)((function(){var e;return(null===ie||void 0===ie||null===(e=ie.metadata)||void 0===e?void 0:e.count)||[]}),[ie]),le=ue.some((function(e){var n=e.status;return n===R.V.INITIAL||n===R.V.RUNNING})),ce=(0,s.Db)(I.ZP.pipelines.useUpdate(W),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){re()},onErrorCallback:function(e,n){return o({errors:n,response:e})}})}}),se=(0,r.Z)(ce,2),ae=se[0],de=se[1].isLoading,pe=(0,S.Z)(d);(0,c.useEffect)((function(){var e=$.tab;e&&v(F.find((function(n){return n.uuid===e})))}),[$,d,pe]);var fe=(0,c.useMemo)((function(){var e=null!==$&&void 0!==$&&$.page?$.page:0;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(k.Z,{fetchPipelineRuns:re,onClickRow:function(e){return Q((function(n){var t=ue[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:ue,selectedRun:Y,setErrors:o}),(0,y.jsx)(w.Z,{p:2,children:(0,y.jsx)(j.Z,{maxPages:9,onUpdate:function(e){var n=Number(e),i=z(z({},$),{},{page:n>=0?n:0});t.push("/pipelines/[pipeline]/runs","/pipelines/".concat(W,"/runs?").concat((0,H.uM)(i)))},page:Number(e),totalPages:Math.ceil(oe/25)})})]})}),[re,q,ue,$,Y,oe]),he=(0,c.useMemo)((function(){return(0,y.jsx)(p.Z,{blockRuns:J,pipeline:q})}),[J,q]);return(0,y.jsxs)(x.Z,{afterHidden:V.uuid===(null===d||void 0===d?void 0:d.uuid)&&!Y,breadcrumbs:[{label:function(){return"Runs"}}],buildSidekick:V.uuid===(null===d||void 0===d?void 0:d.uuid)?function(e){return(0,C.Z)(z(z({},e),{},{selectedRun:Y,selectedTab:O,setSelectedTab:_}))}:function(e){return(0,C.Z)(e)},errors:u,pageName:E.M.RUNS,pipeline:q,setErrors:o,title:function(e){var n=e.name;return"".concat(n," runs")},uuid:"".concat(E.M.RUNS,"_").concat(W),children:[(0,y.jsx)(m,{children:(0,y.jsx)(w.Z,{py:1,children:(0,y.jsxs)(b.Z,{alignItems:"center",children:[le&&V.uuid===(null===d||void 0===d?void 0:d.uuid)&&(0,y.jsx)(w.Z,{pl:2,children:(0,y.jsx)(f.Z,{danger:!0,loading:de,onClick:function(){ae({pipeline:{status:R.V.CANCELLED}})},outline:!0,children:"Cancel running pipeline runs"})}),(0,y.jsx)(h.Z,{onClickTab:function(e){var n=e.uuid;A(null),(0,D.u7)({tab:n},{replaceParams:!0})},selectedTabUUID:null===d||void 0===d?void 0:d.uuid,tabs:F}),V.uuid===(null===d||void 0===d?void 0:d.uuid)&&(0,y.jsxs)(P.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?(A(null),(0,D.u7)({tab:V.uuid},{replaceParams:!0})):(0,D.u7)({page:0,status:e.target.value})},paddingRight:4*N.iI,placeholder:"Select run status",value:null===U||void 0===U?void 0:U.status,children:[(0,y.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(R.V).map((function(e){return(0,y.jsx)("option",{value:e,children:Z.D[e]},e)}))]})]})})}),V.uuid===(null===d||void 0===d?void 0:d.uuid)&&fe,B.uuid===(null===d||void 0===d?void 0:d.uuid)&&he]})}A.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 W=(0,_.Z)(A)},79897:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs",function(){return t(77980)}])}},function(e){e.O(0,[3850,5716,4804,1774,2524,2344,4506,6166,8180,6214,6532,4741,9774,2888,179],(function(){return n=79897,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([[8170],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});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 b=o.forwardRef(f),h=t(32063),v=t(15270),g=t(82531),m=t(66166),j=t(3055),O=t(49125),x=t(91427),y=t(24141);function k(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?k(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Z=function(e){var n,t=e.after,r=e.afterHidden,f=e.afterWidth,k=e.afterWidthOverride,Z=e.before,P=e.beforeWidth,_=e.breadcrumbs,C=e.children,S=e.errors,I=e.headerMenuItems,D=e.navigationItems,E=e.setErrors,M=e.subheaderChildren,N=e.title,q=e.uuid,H=(0,y.i)().width,W="dashboard_after_width_".concat(q),B="dashboard_before_width_".concat(q),T=(0,o.useRef)(null),A=(0,o.useState)(k?f:(0,x.U2)(W,f)),F=A[0],U=A[1],z=(0,o.useState)(!1),R=z[0],J=z[1],Y=(0,o.useState)(Z?Math.max((0,x.U2)(B,P),13*O.iI):null),G=Y[0],L=Y[1],X=(0,o.useState)(!1),V=X[0],K=X[1],Q=(0,o.useState)(null)[1],$=g.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===$||void 0===$?void 0:$.projects,ne=[];_?ne.push.apply(ne,(0,i.Z)(_)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return N}}]),(0,o.useEffect)((function(){null===T||void 0===T||!T.current||R||V||null===Q||void 0===Q||Q(T.current.getBoundingClientRect().width)}),[R,F,V,G,T,Q,H]),(0,o.useEffect)((function(){R||(0,x.t8)(W,F)}),[r,R,F,W]),(0,o.useEffect)((function(){V||(0,x.t8)(B,G)}),[V,G,B]);var te=(0,m.Z)(f);return(0,o.useEffect)((function(){k&&te!==f&&U(f)}),[k,f,te]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.Z,{title:N}),(0,p.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,p.jsxs)(s.Nk,{children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,p.jsx)(s.lm,{children:(0,p.jsx)(v.Z,{navigationItems:D})}),(0,p.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(h.Z,{after:t,afterHeightOffset:j.Mz,afterHidden:r,afterMousedownActive:R,afterWidth:F,before:Z,beforeHeightOffset:j.Mz,beforeMousedownActive:V,beforeWidth:s.k1+(Z?G:0),hideAfterCompletely:!0,leftOffset:Z?s.k1:null,mainContainerRef:T,setAfterMousedownActive:J,setAfterWidth:U,setBeforeMousedownActive:K,setBeforeWidth:L,children:[M&&(0,p.jsx)(b,{children:M}),C]})})]}),S&&(0,p.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===E||void 0===E?void 0:E(null)},children:(0,p.jsx)(l.Z,w(w({},S),{},{onClose:function(){return null===E||void 0===E?void 0:E(null)}}))})]})}},60547:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});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),b=t(9518),h=t(23831),v=t(73942),g=t(49125),m=b.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],v.n_,3*g.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||h.Z.shadow).small,";\n ")}),(function(e){return e.background&&"\n background: ".concat(e.background,";\n ")}),(function(e){return e.backgroundImage&&'\n background-image: url("'.concat(e.backgroundImage,'");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n ')})),j=t(3055),O=t(95354),x=t(24141),y=t(28598);function k(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?k(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Z=function(e){var n=e.after,t=e.afterHidden,r=e.afterWidth,b=e.before,h=e.beforeWidth,v=e.breadcrumbs,k=e.buildSidekick,Z=e.children,P=e.errors,_=e.headline,C=e.pageName,S=e.pipeline,I=e.setErrors,D=e.subheader,E=e.subheaderBackground,M=e.subheaderBackgroundImage,N=e.subheaderButton,q=e.subheaderText,H=e.title,W=e.uuid,B=(0,x.i)().height,T=S.uuid,A=f.ZP.pipelines.detail(T,{includes_outputs:!1},{revalidateOnFocus:!1}).data,F=null===A||void 0===A?void 0:A.pipeline,U=(0,o.useMemo)((function(){return n||(k?k({height:B,heightOffset:j.Mz,pipeline:F}):null)}),[n,k,B,F]),z=r||(U?50*g.iI:null),R=(0,o.useMemo)((function(){var e=[];return F&&(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),v?(e.push({label:function(){return F.uuid},linkProps:{as:"/pipelines/".concat(T,"/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 F.name}})),e}),[v,F,T]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(l.Z,{after:U,afterHidden:t,afterWidth:z,before:b,beforeWidth:h,breadcrumbs:R,navigationItems:(0,O.H)(C,F),subheaderChildren:"undefined"!==typeof D&&D,title:F?H?H(F):F.name:null,uuid:W,children:[(N||q)&&(0,y.jsx)(p.Z,{mb:g.Mq,mt:g.cd,mx:g.cd,children:(0,y.jsx)(m,{background:E,backgroundImage:M,children:(0,y.jsxs)(d.Z,{alignItems:"center",children:[N,q&&(0,y.jsx)(p.Z,{ml:3}),q]})})}),_&&(0,y.jsx)(p.Z,{p:g.cd,children:(0,y.jsxs)(p.Z,{mt:g.cd,px:g.cd,children:[(0,y.jsx)(s.Z,{level:5,children:_}),(0,y.jsx)(u.Z,{light:!0,mt:g.cd,short:!0})]})}),Z]}),P&&(0,y.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===I||void 0===I?void 0:I(null)},children:(0,y.jsx)(a.Z,w(w({},P),{},{onClose:function(){return null===I||void 0===I?void 0:I(null)}}))})]})}},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),b=t(28598),h=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];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 g(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,i.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 m=c.default.div.withConfig({displayName:"Checkbox__CheckboxContainer",componentId:"sc-ujqx42-0"})(["display:inline-block;vertical-align:middle;cursor:pointer;"]),j=c.default.div.withConfig({displayName:"Checkbox__ErrorContainer",componentId:"sc-ujqx42-1"})(["margin-top:4px;"]),O=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 ")})),x=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,v=e.large,k=e.meta,w=e.monospace,Z=void 0!==w&&w,P=e.onClick,_=e.required,C=e.small,S=void 0!==C&&C,I=e.warning,D=e.xsmall,E=void 0!==D&&D,M=(0,o.Z)(e,h),N=I||!!(c||k&&k.touched&&k.error);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(y,{onClick:function(e){e.preventDefault(),P&&!i&&P(e)},children:[(0,b.jsxs)(m,{children:[(0,b.jsx)(O,g(g({},M),{},{disabled:i?"disabled":void 0,notClickable:i})),(0,b.jsx)(x,{checked:t,disabled:i,large:v,required:_,warning:N,children:(0,b.jsx)(s.Jr,{size:f.iI*(v?3:2)})})]}),n&&(0,b.jsx)(u.Z,{ml:1,children:(0,b.jsx)(l.Z,{children:n})}),d&&(0,b.jsxs)(u.Z,{pl:1,children:["string"===typeof d&&(0,b.jsx)(a.ZP,{disabled:i,lineThrough:i,monospace:Z,small:S,xsmall:E,children:d}),"string"!==typeof d&&d,p&&(0,b.jsx)(a.ZP,{muted:!0,small:!0,children:p})]})]}),(c||k&&k.touched&&k.error)&&(0,b.jsx)(j,{children:(0,b.jsx)(a.ZP,{small:!0,warning:!0,children:c?(0,r.Z)(c):k.error})})]})}},70814:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return D}});var r=t(77837),i=t(75582),o=t(82394),c=t(38860),l=t.n(c),u=t(60547),a=t(41788),d=t(82684),s=t(60328),p=t(38341),f=t(67971),b=t(86673),h=t(82944),v=t(11366),g=t(49125),m=t(91427),j=t(90211),O=t(28598);function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var k=function(e){var n=e.isPipelineUpdating,t=e.pipeline,r=e.updatePipeline,i=null===t||void 0===t?void 0:t.uuid,c=(0,d.useMemo)((function(){return(null===t||void 0===t?void 0:t.blocks)||[]}),[t]),l=(0,d.useState)((null===t||void 0===t?void 0:t.name)||""),u=l[0],a=l[1],x="".concat(v.g6,"_").concat(i),k=(0,d.useState)({}),w=k[0],Z=k[1],P=(0,d.useCallback)((function(e){Z((function(n){var t=e(n);return(0,m.t8)(x,JSON.stringify(t)),t}))}),[x,Z]);(0,d.useEffect)((function(){var e=(0,m.U2)(x);e&&(0,j.Pb)(e)&&Z(JSON.parse(e))}),[x,Z]);var _=(0,d.useMemo)((function(){return(null===c||void 0===c?void 0:c.filter((function(e){var n=e.uuid;return!(null===w||void 0===w||!w[n])}))).length===c.length}),[c,w]);return(0,O.jsxs)(b.Z,{p:g.cd,children:[(0,O.jsx)(h.Z,{label:"Pipeline name",onChange:function(e){return a(e.target.value)},primary:!0,required:!0,setContentOnMount:!0,value:u}),(0,O.jsx)(b.Z,{mt:5,children:(0,O.jsx)(f.Z,{children:(0,O.jsx)(s.Z,{disabled:u===(null===t||void 0===t?void 0:t.name),loading:n,onClick:function(){return r({name:u})},primary:!0,children:"Save pipeline settings"})})}),(0,O.jsx)(b.Z,{mt:5,children:(0,O.jsx)(p.Z,{checked:_,label:"Hide all blocks in notebook",onClick:function(){return P((function(){return _?{}:null===c||void 0===c?void 0:c.reduce((function(e,n){var t=n.uuid;return y(y({},e),{},(0,o.Z)({},t,!0))}),{})}))}})})]})},w=t(82531),Z=t(59920),P=t(83455),_=t(96510);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 I(e){var n=e.pipeline,t=null===n||void 0===n?void 0:n.uuid,r=w.ZP.pipelines.detail(t).data,o=S(S({},null===r||void 0===r?void 0:r.pipeline),n),c=(0,P.Db)(w.ZP.pipelines.useUpdate(t,{update_content:!0}),{onSuccess:function(e){return(0,_.wD)(e,{callback:function(e){if(null!==e&&void 0!==e&&e.pipeline){var n=e.pipeline.uuid;t!==n&&(window.location.href="/pipelines/".concat(n,"/settings"))}},onErrorCallback:function(e,n){return console.log({errors:n,response:e})}})}}),l=(0,i.Z)(c,2),a=l[0],d=l[1].isLoading;return(0,O.jsx)(u.Z,{breadcrumbs:[{label:function(){return"Settings"}}],pageName:Z.M.SETTINGS,pipeline:o,title:function(e){var n=e.name;return"".concat(n," settings")},uuid:"".concat(Z.M.SETTINGS,"_").concat(t),children:r&&(0,O.jsx)(k,{isPipelineUpdating:d,pipeline:o,updatePipeline:function(e){return a({pipeline:e})}})})}I.getInitialProps=function(){var e=(0,r.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 D=(0,a.Z)(I)},11366:function(e,n,t){"use strict";t.d(n,{H8:function(){return i},g6:function(){return o},kY:function(){return r}});var r="automatically_name_blocks",i="pipeline_edit_before_tab_selected",o="pipeline_edit_hidden_blocks"},59606:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/settings",function(){return t(70814)}])}},function(e){e.O(0,[3850,5716,2344,4506,6166,6214,9774,2888,179],(function(){return n=59606,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8170],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});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 b=o.forwardRef(f),h=t(32063),v=t(15270),g=t(82531),m=t(66166),j=t(3055),O=t(49125),x=t(91427),y=t(24141);function k(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?k(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Z=function(e){var n,t=e.after,r=e.afterHidden,f=e.afterWidth,k=e.afterWidthOverride,Z=e.before,P=e.beforeWidth,_=e.breadcrumbs,C=e.children,S=e.errors,I=e.headerMenuItems,D=e.navigationItems,E=e.setErrors,M=e.subheaderChildren,N=e.title,q=e.uuid,H=(0,y.i)().width,W="dashboard_after_width_".concat(q),B="dashboard_before_width_".concat(q),T=(0,o.useRef)(null),A=(0,o.useState)(k?f:(0,x.U2)(W,f)),F=A[0],U=A[1],z=(0,o.useState)(!1),R=z[0],J=z[1],Y=(0,o.useState)(Z?Math.max((0,x.U2)(B,P),13*O.iI):null),G=Y[0],L=Y[1],X=(0,o.useState)(!1),V=X[0],K=X[1],Q=(0,o.useState)(null)[1],$=g.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===$||void 0===$?void 0:$.projects,ne=[];_?ne.push.apply(ne,(0,i.Z)(_)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return N}}]),(0,o.useEffect)((function(){null===T||void 0===T||!T.current||R||V||null===Q||void 0===Q||Q(T.current.getBoundingClientRect().width)}),[R,F,V,G,T,Q,H]),(0,o.useEffect)((function(){R||(0,x.t8)(W,F)}),[r,R,F,W]),(0,o.useEffect)((function(){V||(0,x.t8)(B,G)}),[V,G,B]);var te=(0,m.Z)(f);return(0,o.useEffect)((function(){k&&te!==f&&U(f)}),[k,f,te]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.Z,{title:N}),(0,p.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,p.jsxs)(s.Nk,{children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,p.jsx)(s.lm,{children:(0,p.jsx)(v.Z,{navigationItems:D})}),(0,p.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(h.Z,{after:t,afterHeightOffset:j.Mz,afterHidden:r,afterMousedownActive:R,afterWidth:F,before:Z,beforeHeightOffset:j.Mz,beforeMousedownActive:V,beforeWidth:s.k1+(Z?G:0),hideAfterCompletely:!0,leftOffset:Z?s.k1:null,mainContainerRef:T,setAfterMousedownActive:J,setAfterWidth:U,setBeforeMousedownActive:K,setBeforeWidth:L,children:[M&&(0,p.jsx)(b,{children:M}),C]})})]}),S&&(0,p.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===E||void 0===E?void 0:E(null)},children:(0,p.jsx)(l.Z,w(w({},S),{},{onClose:function(){return null===E||void 0===E?void 0:E(null)}}))})]})}},60547:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});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),b=t(9518),h=t(23831),v=t(73942),g=t(49125),m=b.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],v.n_,3*g.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||h.Z.shadow).small,";\n ")}),(function(e){return e.background&&"\n background: ".concat(e.background,";\n ")}),(function(e){return e.backgroundImage&&'\n background-image: url("'.concat(e.backgroundImage,'");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n ')})),j=t(3055),O=t(95354),x=t(24141),y=t(28598);function k(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?k(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Z=function(e){var n=e.after,t=e.afterHidden,r=e.afterWidth,b=e.before,h=e.beforeWidth,v=e.breadcrumbs,k=e.buildSidekick,Z=e.children,P=e.errors,_=e.headline,C=e.pageName,S=e.pipeline,I=e.setErrors,D=e.subheader,E=e.subheaderBackground,M=e.subheaderBackgroundImage,N=e.subheaderButton,q=e.subheaderText,H=e.title,W=e.uuid,B=(0,x.i)().height,T=S.uuid,A=f.ZP.pipelines.detail(T,{includes_outputs:!1},{revalidateOnFocus:!1}).data,F=null===A||void 0===A?void 0:A.pipeline,U=(0,o.useMemo)((function(){return n||(k?k({height:B,heightOffset:j.Mz,pipeline:F}):null)}),[n,k,B,F]),z=r||(U?50*g.iI:null),R=(0,o.useMemo)((function(){var e=[];return F&&(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),v?(e.push({label:function(){return F.uuid},linkProps:{as:"/pipelines/".concat(T,"/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 F.name}})),e}),[v,F,T]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(l.Z,{after:U,afterHidden:t,afterWidth:z,before:b,beforeWidth:h,breadcrumbs:R,navigationItems:(0,O.H)(C,F),subheaderChildren:"undefined"!==typeof D&&D,title:F?H?H(F):F.name:null,uuid:W,children:[(N||q)&&(0,y.jsx)(p.Z,{mb:g.Mq,mt:g.cd,mx:g.cd,children:(0,y.jsx)(m,{background:E,backgroundImage:M,children:(0,y.jsxs)(d.Z,{alignItems:"center",children:[N,q&&(0,y.jsx)(p.Z,{ml:3}),q]})})}),_&&(0,y.jsx)(p.Z,{p:g.cd,children:(0,y.jsxs)(p.Z,{mt:g.cd,px:g.cd,children:[(0,y.jsx)(s.Z,{level:5,children:_}),(0,y.jsx)(u.Z,{light:!0,mt:g.cd,short:!0})]})}),Z]}),P&&(0,y.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===I||void 0===I?void 0:I(null)},children:(0,y.jsx)(a.Z,w(w({},P),{},{onClose:function(){return null===I||void 0===I?void 0:I(null)}}))})]})}},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),b=t(28598),h=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];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 g(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,i.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 m=c.default.div.withConfig({displayName:"Checkbox__CheckboxContainer",componentId:"sc-ujqx42-0"})(["display:inline-block;vertical-align:middle;cursor:pointer;"]),j=c.default.div.withConfig({displayName:"Checkbox__ErrorContainer",componentId:"sc-ujqx42-1"})(["margin-top:4px;"]),O=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 ")})),x=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,v=e.large,k=e.meta,w=e.monospace,Z=void 0!==w&&w,P=e.onClick,_=e.required,C=e.small,S=void 0!==C&&C,I=e.warning,D=e.xsmall,E=void 0!==D&&D,M=(0,o.Z)(e,h),N=I||!!(c||k&&k.touched&&k.error);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(y,{onClick:function(e){e.preventDefault(),P&&!i&&P(e)},children:[(0,b.jsxs)(m,{children:[(0,b.jsx)(O,g(g({},M),{},{disabled:i?"disabled":void 0,notClickable:i})),(0,b.jsx)(x,{checked:t,disabled:i,large:v,required:_,warning:N,children:(0,b.jsx)(s.Jr,{size:f.iI*(v?3:2)})})]}),n&&(0,b.jsx)(u.Z,{ml:1,children:(0,b.jsx)(l.Z,{children:n})}),d&&(0,b.jsxs)(u.Z,{pl:1,children:["string"===typeof d&&(0,b.jsx)(a.ZP,{disabled:i,lineThrough:i,monospace:Z,small:S,xsmall:E,children:d}),"string"!==typeof d&&d,p&&(0,b.jsx)(a.ZP,{muted:!0,small:!0,children:p})]})]}),(c||k&&k.touched&&k.error)&&(0,b.jsx)(j,{children:(0,b.jsx)(a.ZP,{small:!0,warning:!0,children:c?(0,r.Z)(c):k.error})})]})}},70814:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return D}});var r=t(77837),i=t(75582),o=t(82394),c=t(38860),l=t.n(c),u=t(60547),a=t(41788),d=t(82684),s=t(60328),p=t(38341),f=t(67971),b=t(86673),h=t(82944),v=t(11366),g=t(49125),m=t(91427),j=t(90211),O=t(28598);function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var k=function(e){var n=e.isPipelineUpdating,t=e.pipeline,r=e.updatePipeline,i=null===t||void 0===t?void 0:t.uuid,c=(0,d.useMemo)((function(){return(null===t||void 0===t?void 0:t.blocks)||[]}),[t]),l=(0,d.useState)((null===t||void 0===t?void 0:t.name)||""),u=l[0],a=l[1],x="".concat(v.g6,"_").concat(i),k=(0,d.useState)({}),w=k[0],Z=k[1],P=(0,d.useCallback)((function(e){Z((function(n){var t=e(n);return(0,m.t8)(x,JSON.stringify(t)),t}))}),[x,Z]);(0,d.useEffect)((function(){var e=(0,m.U2)(x);e&&(0,j.Pb)(e)&&Z(JSON.parse(e))}),[x,Z]);var _=(0,d.useMemo)((function(){return(null===c||void 0===c?void 0:c.filter((function(e){var n=e.uuid;return!(null===w||void 0===w||!w[n])}))).length===c.length}),[c,w]);return(0,O.jsxs)(b.Z,{p:g.cd,children:[(0,O.jsx)(h.Z,{label:"Pipeline name",onChange:function(e){return a(e.target.value)},primary:!0,required:!0,setContentOnMount:!0,value:u}),(0,O.jsx)(b.Z,{mt:5,children:(0,O.jsx)(f.Z,{children:(0,O.jsx)(s.Z,{disabled:u===(null===t||void 0===t?void 0:t.name),loading:n,onClick:function(){return r({name:u})},primary:!0,children:"Save pipeline settings"})})}),(0,O.jsx)(b.Z,{mt:5,children:(0,O.jsx)(p.Z,{checked:_,label:"Hide all blocks in notebook",onClick:function(){return P((function(){return _?{}:null===c||void 0===c?void 0:c.reduce((function(e,n){var t=n.uuid;return y(y({},e),{},(0,o.Z)({},t,!0))}),{})}))}})})]})},w=t(82531),Z=t(59920),P=t(83455),_=t(96510);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 I(e){var n=e.pipeline,t=null===n||void 0===n?void 0:n.uuid,r=w.ZP.pipelines.detail(t).data,o=S(S({},null===r||void 0===r?void 0:r.pipeline),n),c=(0,P.Db)(w.ZP.pipelines.useUpdate(t,{update_content:!0}),{onSuccess:function(e){return(0,_.wD)(e,{callback:function(e){if(null!==e&&void 0!==e&&e.pipeline){var n=e.pipeline.uuid;t!==n&&(window.location.href="/pipelines/".concat(n,"/settings"))}},onErrorCallback:function(e,n){return console.log({errors:n,response:e})}})}}),l=(0,i.Z)(c,2),a=l[0],d=l[1].isLoading;return(0,O.jsx)(u.Z,{breadcrumbs:[{label:function(){return"Settings"}}],pageName:Z.M.SETTINGS,pipeline:o,title:function(e){var n=e.name;return"".concat(n," settings")},uuid:"".concat(Z.M.SETTINGS,"_").concat(t),children:r&&(0,O.jsx)(k,{isPipelineUpdating:d,pipeline:o,updatePipeline:function(e){return a({pipeline:e})}})})}I.getInitialProps=function(){var e=(0,r.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 D=(0,a.Z)(I)},11366:function(e,n,t){"use strict";t.d(n,{H8:function(){return i},g6:function(){return o},kY:function(){return r}});var r="automatically_name_blocks",i="pipeline_edit_before_tab_selected",o="pipeline_edit_hidden_blocks"},59606:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/settings",function(){return t(70814)}])}},function(e){e.O(0,[3850,5716,2344,4506,6166,6214,9774,2888,179],(function(){return n=59606,e(e.s=n);var n}));var n=e.O();_N_E=n}]);