mage-ai 0.8.26__py3-none-any.whl → 0.8.27__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.
- mage_ai/data_preparation/executors/streaming_pipeline_executor.py +2 -1
- mage_ai/data_preparation/logging/logger_manager.py +7 -1
- mage_ai/data_preparation/models/block/__init__.py +60 -29
- mage_ai/data_preparation/models/block/sql/__init__.py +25 -8
- mage_ai/data_preparation/models/block/sql/utils/shared.py +49 -3
- mage_ai/data_preparation/models/variable.py +6 -1
- mage_ai/data_preparation/repo_manager.py +5 -2
- mage_ai/data_preparation/shared/secrets.py +6 -3
- mage_ai/data_preparation/templates/sensors/bigquery.py +32 -0
- mage_ai/data_preparation/templates/sensors/mysql.py +33 -0
- mage_ai/data_preparation/templates/sensors/postgres.py +33 -0
- mage_ai/data_preparation/templates/sensors/redshift.py +33 -0
- mage_ai/data_preparation/templates/sensors/s3.py +11 -7
- mage_ai/data_preparation/templates/sensors/snowflake.py +33 -0
- mage_ai/io/postgres.py +13 -1
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/404.html.html +2 -2
- mage_ai/server/frontend_dist/_next/static/WbTBCvyjQQ9UFFLZOU1E5/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2344-f8ae030d6a6863ae.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2626-e7fa4f83f8214c97.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{4178-663d9f70bffc7a47.js → 4178-a6d1bd2be4706f51.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4261-88b0103fad331620.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5141-57c3868a80196da8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/6166-705b4fdecaf11e63.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/6532-b1bd0b3f422abec8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8180-8de652170ea5ed93.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/839-15c54471a9a9bf2e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{9386-9d6a4e5836229264.js → 9386-d4cc11bab74eec8d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-624f87faa4b5ee9a.js → _app-5f3dbed367342a3d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-3046bc53d24917c7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-f6059e27e601627c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-123556bdfe2e194b.js → [...slug]-050ef37b6672100a.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-5f95bb4c3a2d7d46.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-270c0198eeef1542.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-c9f1df40e0aa6981.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-e0eb0098dcbf27ac.js → block-runs-d74850779dbe87b3.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-848544a58563dbec.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-204daac985c03b62.js → monitors-675171cfd7d7b346.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-44533e244974a422.js → [run]-b2955f0ff960894e.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{runs-2d41695001370abc.js → runs-219960b3cc4742e3.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-1767a2f57f887ef7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-0f373aaa7deb98c9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-181343d8eb894426.js → triggers-bea0439ca2a862ba.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-7446a70bdd8381a5.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-d72dfc596e943cc4.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-4c9ad80f8f9d1074.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-783b9526167f1249.js +1 -0
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage.html +4 -4
- mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +5 -5
- mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +9 -9
- mage_ai/server/frontend_dist/terminal.html +5 -5
- mage_ai/server/frontend_dist/test.html +3 -3
- mage_ai/server/frontend_dist/triggers.html +5 -5
- mage_ai/server/server.py +1 -6
- mage_ai/shared/security.py +9 -2
- mage_ai/shared/utils.py +7 -0
- mage_ai/tests/shared/test_security.py +6 -6
- {mage_ai-0.8.26.dist-info → mage_ai-0.8.27.dist-info}/METADATA +1 -1
- {mage_ai-0.8.26.dist-info → mage_ai-0.8.27.dist-info}/RECORD +86 -81
- mage_ai/server/frontend_dist/_next/static/chunks/1830-3882c19d710feadd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2344-a82a406b72fe782b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2626-30c0fab7c3926578.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3688-562e0f129b09d1cd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3699-dcc0946dd0709216.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4463-777e71000be29fc4.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6532-baf1818fbc89e6c1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6567-2488118bb39a9d99.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-c580ee38f5442bef.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-dd72d2f3375064cf.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-26974ca695994804.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-df603787c041cd8a.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-72011b08ef047531.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-3b17a6d28cdde471.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-c31fec2be1160dbe.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a60003fce7dfb93.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-ebb4a57934e4fa52.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-ff24167e21f2f0cf.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-be9eab29e8ed712b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-e9c1789f6d5a0429.js +0 -1
- mage_ai/server/frontend_dist/_next/static/kiWhqtXdRSgsbVPwfDLY4/_buildManifest.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{kiWhqtXdRSgsbVPwfDLY4 → WbTBCvyjQQ9UFFLZOU1E5}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist/_next/static/{kiWhqtXdRSgsbVPwfDLY4 → WbTBCvyjQQ9UFFLZOU1E5}/_ssgManifest.js +0 -0
- {mage_ai-0.8.26.dist-info → mage_ai-0.8.27.dist-info}/LICENSE +0 -0
- {mage_ai-0.8.26.dist-info → mage_ai-0.8.27.dist-info}/WHEEL +0 -0
- {mage_ai-0.8.26.dist-info → mage_ai-0.8.27.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.8.26.dist-info → mage_ai-0.8.27.dist-info}/top_level.txt +0 -0
mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-c9f1df40e0aa6981.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4794],{59739:function(e,n,t){"use strict";var r=t(56669);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,n,t,o,i,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:i,resetWarningCache:o};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 b},Kf:function(){return s},Nk:function(){return p},gE:function(){return m},jv:function(){return h},nz:function(){return f},oh:function(){return a},qn:function(){return d},t1:function(){return v},y9:function(){return g}});var r=t(9518),o=t(23831),i=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)||o.Z.borders).light,l=((null===n||void 0===n||null===(r=n.theme)||void 0===r?void 0:r.monotone)||o.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)||o.Z.content).active:i.tf.TRANSFORMER===e||a===i.Lq.PURPLE?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).purple,l=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).purpleLight):i.tf.DATA_EXPORTER===e||a===i.Lq.YELLOW?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).yellow,l=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).yellowLight):i.tf.DATA_LOADER===e||a===i.Lq.BLUE?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).blue,l=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).blueLight):i.tf.SENSOR===e||a===i.Lq.PINK?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).pink,l=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).pinkLight):i.tf.DBT===e?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).dbt,l=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).dbtLight):i.tf.EXTENSION===e||a===i.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).teal,l=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).tealLight):(i.tf.SCRATCHPAD===e||a===i.Lq.GREY||i.tf.CUSTOM===e&&!a)&&(c=((null===s||void 0===s?void 0:s.content)||o.Z.content).default,l=((null===s||void 0===s?void 0:s.accent)||o.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||o.Z.accent).negativeTransparent,";\n ")}),(function(e){return e.selected&&e.hasError&&"\n border-color: ".concat((e.theme.borders||o.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__BlockHeaderStyle",componentId:"sc-s5rj34-1"})([""," 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||o.Z).background.content,";\n ")}),(function(e){return e.zIndex&&"\n z-index: ".concat(6+(e.zIndex||0),";\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-2"})([""," 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||o.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 ")})),m=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-3"})(["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||o.Z.text).fileBrowser,";\n ")})),v=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-4"})(["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-5"})(["margin-bottom:","px;padding-bottom:","px;",""],l.cd*l.iI,l.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n padding-left: ").concat(e.normalPadding?l.iI:a,"px;\n ")})),b=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-6"})(["bottom:","px;left:","px;position:absolute;"],1*l.iI,a)},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return l},W:function(){return c}});var r=t(9518),o=t(23831),i=t(3055),c=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],i.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n ")}))},18025:function(e,n,t){"use strict";t.d(n,{J:function(){return u},U:function(){return l}});var r=t(9518),o=t(23831),i=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;"," ",""],i.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||o.Z.borders).light,";\n ")}),(function(e){return e.selected&&"\n border-color: ".concat((e.theme.interactive||o.Z.interactive).linkPrimary,";\n ")})),u=r.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],i.n_,c.tr,(function(e){return"\n background-color: ".concat((e.theme.interactive||o.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 v},Ut:function(){return j},V4:function(){return x},VZ:function(){return f},dO:function(){return d},f2:function(){return b},iZ:function(){return g},t6:function(){return c},tf:function(){return u}});var r,o,i,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],v=[u.CHART,u.SCRATCHPAD,u.SENSOR],g=[u.EXTENSION,u.SCRATCHPAD];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(s||(s={}));var b=[u.CUSTOM,u.DATA_EXPORTER,u.TRANSFORMER],x=(o={},(0,l.Z)(o,u.CUSTOM,"Custom"),(0,l.Z)(o,u.DATA_EXPORTER,"Data exporter"),(0,l.Z)(o,u.DATA_LOADER,"Data loader"),(0,l.Z)(o,u.EXTENSION,"Extension"),(0,l.Z)(o,u.SCRATCHPAD,"Scratchpad"),(0,l.Z)(o,u.SENSOR,"Sensor"),(0,l.Z)(o,u.TRANSFORMER,"Transformer"),o),j=[u.DATA_LOADER,u.TRANSFORMER,u.DATA_EXPORTER,u.SENSOR];i={},(0,l.Z)(i,u.DATA_EXPORTER,"DE"),(0,l.Z)(i,u.DATA_LOADER,"DL"),(0,l.Z)(i,u.SCRATCHPAD,"SP"),(0,l.Z)(i,u.SENSOR,"SR"),(0,l.Z)(i,u.TRANSFORMER,"TF")},2713:function(e,n,t){"use strict";var r=t(82394),o=t(44495),i=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)(o.ZP,{onChange:r,value:n}),(0,p.jsx)(l.Z,{mb:2}),(0,p.jsxs)(i.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),o=t(60328),i=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,v=e.small,g=e.tabs,b=(0,r.useMemo)((function(){var e=g.length,n=[];return g.forEach((function(t,r){var a=t.Icon,p=t.IconSelected,g=t.label,b=t.uuid,x=b===m,j=x&&p||a,y=g?g():b,O=(0,h.jsxs)(i.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})]}),y]});r>=1&&e>=2&&n.push((0,h.jsx)("div",{style:{marginLeft:1.5*d.iI}},"spacing-".concat(b))),x?n.push((0,h.jsx)(c.Z,{backgroundGradient:u.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:v,onClick:function(e){(0,f.j)(e),s(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:v,children:O},b)):n.push((0,h.jsx)("div",{style:{padding:4},children:(0,h.jsx)(o.Z,{borderLess:!0,compact:v,default:!0,onClick:function(e){(0,f.j)(e),s(t)},outline:!0,small:v,children:O},"button-tab-".concat(b))}))})),n}),[s,m,g]),x=(0,h.jsx)(i.Z,{alignItems:"center",children:b});return t?x:(0,h.jsx)(p,{allowScroll:n,noPadding:a,children:x})}},38341:function(e,n,t){"use strict";var r=t(21831),o=t(82394),i=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 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,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 b=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 ")})),y=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 ")})),O=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,o=e.disabled,c=e.errorMessage,d=e.label,p=e.labelDescription,v=e.large,Z=e.meta,_=e.monospace,P=void 0!==_&&_,S=e.onClick,k=e.required,A=e.small,E=void 0!==A&&A,T=e.warning,C=e.xsmall,R=void 0!==C&&C,w=(0,i.Z)(e,m),D=T||!!(c||Z&&Z.touched&&Z.error);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(O,{onClick:function(e){e.preventDefault(),S&&S(e)},children:[(0,h.jsxs)(b,{children:[(0,h.jsx)(j,g(g({},w),{},{disabled:o?"disabled":void 0,notClickable:o})),(0,h.jsx)(y,{checked:t,disabled:o,large:v,required:k,warning:D,children:(0,h.jsx)(s.Jr,{size:f.iI*(v?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:o,lineThrough:o,monospace:P,small:E,xsmall:R,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 He}});var r,o=t(77837),i=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),v=t(16634),g=t(34744),b=t(60328),x=t(38341),j=t(67971),y=t(86673),O=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 S,k=[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"}(S||(S={}));var A=t(73942),E=t(73899);var T=(0,p.css)(["",""],(function(e){return"\n background-color: ".concat(function(e){var n=e.critical,t=e.debug,r=e.error,o=e.exception,i=e.info,c=e.log,l=e.warning;return n?E.Zl:t?E.EG:r?E.hl:o?E.hM:i?E.gN:c?E.Wd:l?E.$R:"transparent"}(e),";\n ")})),C=p.default.div.withConfig({displayName:"indexstyle__LogLevelIndicatorStyle",componentId:"sc-1e2zh7m-0"})([""," border-radius:","px;height:12px;width:5px;"],T,A.n_),R=t(90211),w=t(44162),D=t(33766),I=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,i.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),o=(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,I.jsx)(Z.M,{children:(0,I.jsxs)(y.Z,{p:_.cd,children:[(0,I.jsxs)(y.Z,{mb:3,children:[(0,I.jsx)(y.Z,{mb:1,children:(0,I.jsx)(O.ZP,{bold:!0,default:!0,large:!0,children:"Log level"})}),k.map((function(e){return(0,I.jsx)(b.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,D.g_)(t,{level:e},{isList:!0})},children:(0,I.jsx)(P,{children:(0,I.jsxs)(j.Z,{alignItems:"center",children:[(0,I.jsx)(x.Z,{checked:Array.isArray(o)&&(null===o||void 0===o?void 0:o.includes(String(e)))}),(0,I.jsx)(y.Z,{mr:1}),(0,I.jsx)(C,N({},(0,i.Z)({},e.toLowerCase(),!0))),(0,I.jsx)(y.Z,{mr:1}),(0,I.jsx)(O.ZP,{disableWordBreak:!0,children:(0,R.kC)(e.toLowerCase())})]})})},e)}))]}),(0,I.jsxs)(y.Z,{mb:3,children:[(0,I.jsx)(y.Z,{mb:1,children:(0,I.jsx)(O.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,I.jsx)(b.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,D.g_)(t,{block_type:e},{isList:!0})},children:(0,I.jsx)(P,{children:(0,I.jsxs)(j.Z,{alignItems:"center",children:[(0,I.jsx)(x.Z,{checked:Array.isArray(c)&&(null===c||void 0===c?void 0:c.includes(String(e)))}),(0,I.jsx)(y.Z,{mr:1}),(0,I.jsx)(v.Z,{color:(0,w.qn)(e,{theme:r}).accent,size:1.5*_.iI,square:!0}),(0,I.jsx)(y.Z,{mr:1}),(0,I.jsx)(O.ZP,{disableWordBreak:!0,muted:!0,monospace:!0,children:e})]})})},e)}))]}),(0,I.jsxs)(y.Z,{mb:3,children:[(0,I.jsx)(y.Z,{mb:1,children:(0,I.jsx)(O.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,I.jsx)(b.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,D.g_)(t,{block_uuid:e.uuid},{isList:!0,resetLimitParams:!0})},children:(0,I.jsx)(P,{children:(0,I.jsxs)(j.Z,{alignItems:"center",children:[(0,I.jsx)(x.Z,{checked:Array.isArray(l)&&(null===l||void 0===l?void 0:l.includes(String(e.uuid)))}),(0,I.jsx)(y.Z,{mr:1}),(0,I.jsx)(v.Z,{color:(0,w.qn)(e.type,{blockColor:e.color,theme:r}).accent,size:1.5*_.iI,square:!0}),(0,I.jsx)(y.Z,{mr:1}),(0,I.jsx)(O.ZP,{disableWordBreak:!0,monospace:!0,muted:!0,children:e.uuid})]})})},e.uuid)}))]}),(null===u||void 0===u?void 0:u.length)&&(0,I.jsxs)(y.Z,{mb:3,children:[(0,I.jsx)(y.Z,{mb:1,children:(0,I.jsx)(O.ZP,{bold:!0,default:!0,large:!0,children:"Trigger"})}),u.map((function(e){return(0,I.jsx)(b.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,D.g_)(t,{pipeline_schedule_id:e},{isList:!0})},children:(0,I.jsx)(P,{children:(0,I.jsxs)(j.Z,{alignItems:"center",children:[(0,I.jsx)(x.Z,{checked:Array.isArray(u)&&(null===u||void 0===u?void 0:u.includes(e))}),(0,I.jsx)(y.Z,{mr:1}),(0,I.jsx)(O.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"pipeline-schedule-".concat(e))}))]}),(null===a||void 0===a?void 0:a.length)&&(0,I.jsxs)(y.Z,{mb:3,children:[(0,I.jsx)(y.Z,{mb:1,children:(0,I.jsx)(O.ZP,{bold:!0,default:!0,large:!0,children:"Pipeline run"})}),a.map((function(e){return(0,I.jsx)(b.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,D.g_)(t,{pipeline_run_id:e},{isList:!0})},children:(0,I.jsx)(P,{children:(0,I.jsxs)(j.Z,{alignItems:"center",children:[(0,I.jsx)(x.Z,{checked:Array.isArray(a)&&(null===a||void 0===a?void 0:a.includes(e))}),(0,I.jsx)(y.Z,{mr:1}),(0,I.jsx)(O.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"pipeline-run-".concat(e))}))]}),(null===d||void 0===d?void 0:d.length)&&(0,I.jsxs)(y.Z,{mb:3,children:[(0,I.jsx)(y.Z,{mb:1,children:(0,I.jsx)(O.ZP,{bold:!0,default:!0,large:!0,children:"Block run"})}),d.map((function(e){return(0,I.jsx)(b.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,D.g_)(t,{block_run_id:e},{isList:!0})},children:(0,I.jsx)(P,{children:(0,I.jsxs)(j.Z,{alignItems:"center",children:[(0,I.jsx)(x.Z,{checked:Array.isArray(d)&&(null===d||void 0===d?void 0:d.includes(e))}),(0,I.jsx)(y.Z,{mr:1}),(0,I.jsx)(O.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"block-run-".concat(e))}))]})]})})},B=t(93461),Y=t(11135),H=t(10919),U=t(75582),F=t(32316),q=t(58180),W=p.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-1r43sbu-0"})([""," height:","px;width:100%;"],T,.5*_.iI),X=p.default.div.withConfig({displayName:"indexstyle__BadgeStyle",componentId:"sc-1r43sbu-1"})([""," border-radius:","px;display:inline-block;padding:","px ","px;"],T,A.BG,.25*_.iI,.5*_.iI),J=t(10503),G=t(92083),z=t.n(G);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,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 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],o={};return r&&(0,R.Pb)(r)&&(o=JSON.parse(r)),K(K({},e),{},{createdAt:t,data:o})}(K(K({},e),{},{content:n}))}))}function ee(e){return e&&z().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,i.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 oe=["error","error_stack","error_stacktrace"],ie={uuid:"Details"},ce={uuid:"Errors"};var le,ue,ae,de=function(e){var n=e.log,t=e.onClose,r=(0,h.useState)(ie),o=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,v=f.error_stack,x=f.error_stacktrace,Z=f.level,P=f.timestamp,S=(0,i.Z)({},Z.toLowerCase(),!0),k=(0,h.useMemo)((function(){var e=[["file name",s],["file path",p]];return Object.entries(d).forEach((function(n){var t=(0,U.Z)(n,2),r=t[0],o=t[1];oe.includes(r)||e.push([r,o])})),x&&e.push(["error",x]),(0,ne.YC)(e,(function(e){var n=(0,U.Z)(e,2),t=n[0];n[1];return t}))}),[d,x,s,p]),A=(0,h.useMemo)((function(){var e=[ie];return m&&e.push(ce),(0,I.jsx)(F.Z,{onClickTab:c,selectedTabUUID:null===o||void 0===o?void 0:o.uuid,tabs:e})}),[m,v,x,o,c]);return(0,I.jsxs)("div",{children:[(0,I.jsx)(W,re({},S)),(0,I.jsx)(y.Z,{p:_.cd,children:(0,I.jsxs)(j.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,I.jsxs)(B.Z,{alignItems:"center",children:[(0,I.jsx)(X,re(re({},S),{},{children:(0,I.jsx)(O.ZP,{bold:!0,inverted:!0,monospace:!0,small:!0,children:Z})})),(0,I.jsx)(y.Z,{mr:_.cd}),(0,I.jsx)(O.ZP,{monospace:!0,children:ee(P)})]}),(0,I.jsx)(b.Z,{iconOnly:!0,noBackground:!0,onClick:function(){return t()},children:(0,I.jsx)(J.x8,{size:1.5*_.iI})})]})}),(0,I.jsx)(g.Z,{medium:!0}),(0,I.jsx)(y.Z,{py:_.cd,children:A}),ie.uuid===(null===o||void 0===o?void 0:o.uuid)&&(0,I.jsx)(q.Z,{columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:null===k||void 0===k?void 0:k.map((function(e,n){var t=(0,U.Z)(e,2),r=t[0],o=t[1],i="message"===r,c="tags"===r,l=o,d=o;return c?d=l=(0,R.Pb)(o)?JSON.parse(JSON.stringify(o,null,2)):JSON.stringify(o,null,2):i&&u&&(0,R.Pb)(o)&&(d=JSON.stringify(JSON.parse(o),null,2),l=(0,I.jsx)("pre",{children:d})),[(0,I.jsx)(O.ZP,{monospace:!0,muted:!0,children:r},"".concat(r,"_").concat(n,"_key")),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(O.ZP,{monospace:!0,textOverflow:!0,title:d,whiteSpaceNormal:i&&u||c,wordBreak:i&&u||c,children:[!c&&l,c&&(0,I.jsx)("pre",{children:l})]},"".concat(r,"_").concat(n,"_val")),i&&(0,I.jsx)(H.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===o||void 0===o?void 0:o.uuid)&&(0,I.jsxs)(y.Z,{mb:5,px:_.cd,children:[(0,I.jsx)(y.Z,{mb:1,children:(0,I.jsx)(O.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,I.jsx)(O.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:e},e)}))}))})),v&&(0,I.jsxs)(y.Z,{mt:3,children:[(0,I.jsx)(y.Z,{mb:1,children:(0,I.jsx)(O.ZP,{bold:!0,children:"Stack trace"})}),null===v||void 0===v?void 0:v.map((function(e){return null===e||void 0===e?void 0:e.map((function(e){return(0,I.jsx)(O.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:e},e)}))}))]})]})]})},se=t(2626),pe=t(98781),fe=t(41788),he=t(54283),me=t(2713),ve=t(47999),ge=t(55378),be=t(82944),xe=t(66166),je="_limit",ye="_offset",Oe=20,Ze=[S.LAST_HOUR,S.LAST_DAY,S.LAST_WEEK,S.LAST_30_DAYS],_e=(le={},(0,i.Z)(le,S.LAST_HOUR,3600),(0,i.Z)(le,S.LAST_DAY,86400),(0,i.Z)(le,S.LAST_WEEK,604800),(0,i.Z)(le,S.LAST_30_DAYS,2592e3),le),Pe=t(84779),Se=t(42305),ke=t(7715),Ae=t(59e3);function Ee(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 Te(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ee(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ee(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 Ce=(ue={},(0,i.Z)(ue,je,Oe),(0,i.Z)(ue,ye,0),ue);var Re=function(e){var n=e.allPastLogsLoaded,t=e.loadNewerLogInterval,r=e.loadPastLogInterval,o=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],v=f[1],g=(0,h.useState)(new Date),x=g[0],Z=g[1],P=(0,h.useState)({hour:(0,Se.lJ)(String((new Date).getUTCHours())),minute:(0,Se.lJ)(String((new Date).getUTCMinutes()))}),k=P[0],A=P[1],E=(0,Ae.iV)(),T=(0,xe.Z)(E);return(0,h.useEffect)((function(){if(!(0,ke.Xy)(E,T)){var e=E.start_timestamp,n=E.end_timestamp;if(e){var t=(0,Se.Pc)(e),r=t.date,o=t.hour,i=t.minute;p(r),v({hour:(0,Se.lJ)(o),minute:(0,Se.lJ)(i)});var l=Math.ceil(Date.now()/1e3)-e;Math.abs(l-_e[S.LAST_DAY])<=60&&c(S.LAST_DAY)}if(n){var u=(0,Se.Pc)(n),a=u.date,d=u.hour,s=u.minute;Z(a),A({hour:(0,Se.lJ)(d),minute:(0,Se.lJ)(s)})}}}),[E,T]),(0,I.jsx)(y.Z,{py:1,children:(0,I.jsxs)(j.Z,{alignItems:"center",children:[(0,I.jsx)(Y.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,I.jsx)(y.Z,{mr:1}),(0,I.jsx)(Y.ZP,{blackBorder:!0,disabled:(null===E||void 0===E?void 0:E._offset)<=0,inline:!0,onClick:t,paddingBottom:.75*_.iI,paddingTop:.75*_.iI,uuid:"logs/load_newer_logs",children:"Load newer logs"}),(0,I.jsx)(y.Z,{mr:2}),(0,I.jsx)(ge.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,D.u7)(Te((t={},(0,i.Z)(t,ae.START,r),(0,i.Z)(t,ae.END,null),t),Ce))}},paddingRight:4*_.iI,placeholder:"Select time range",value:o,children:Object.values(S).map((function(e){return(0,I.jsx)("option",{value:e,children:e},e)}))}),(0,I.jsx)(y.Z,{mr:1}),o===S.CUSTOM_RANGE&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(be.Z,{compact:!0,defaultColor:!0,onClick:function(){return a(0)},paddingRight:0,placeholder:"Start",value:s?(0,Se.AY)(s,null===m||void 0===m?void 0:m.hour,null===m||void 0===m?void 0:m.minute):""}),(0,I.jsx)(ve.Z,{onClickOutside:function(){return a(null)},open:0===u,style:{position:"relative"},children:(0,I.jsx)(me.Z,{selectedDate:s,selectedTime:m,setSelectedDate:p,setSelectedTime:v})}),(0,I.jsx)(y.Z,{px:1,children:(0,I.jsx)(O.ZP,{children:"to"})}),(0,I.jsx)(be.Z,{compact:!0,defaultColor:!0,onClick:function(){return a(1)},paddingRight:0,placeholder:"End",value:x?(0,Se.AY)(x,null===k||void 0===k?void 0:k.hour,null===k||void 0===k?void 0:k.minute):""}),(0,I.jsx)(ve.Z,{onClickOutside:function(){return a(null)},open:1===u,style:{position:"relative"},children:(0,I.jsx)(me.Z,{selectedDate:x,selectedTime:k,setSelectedDate:Z,setSelectedTime:A})}),(0,I.jsx)(y.Z,{mr:1}),(0,I.jsx)(b.Z,{borderRadius:_.iI/2,onClick:function(){var e,n=(0,Se.BP)(s,m.hour,m.minute),t=(0,Se.BP)(x,k.hour,k.minute);(0,D.u7)(Te((e={},(0,i.Z)(e,ae.START,(0,Se.A5)(n)),(0,i.Z)(e,ae.END,(0,Se.A5)(t)),e),Ce))},padding:"".concat(_.iI/2,"px"),primary:!0,children:"Search"})]})]})})},we=t(82531),De=t(59920);function Ie(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?Ie(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ie(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 Ye(e){var n=e.pipeline,t=(0,h.useContext)(p.ThemeContext),r=(0,h.useRef)(null),o=n.uuid,c=(0,h.useState)(null),l=c[0],u=c[1],d=(0,h.useState)(null),b=d[0],x=d[1],Z=(0,h.useState)(null),P=Z[0],k=Z[1],A=(0,h.useState)(!1),E=A[0],T=A[1],L=we.ZP.pipelines.detail(o,{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:o})}),[L,o]),U=(null===N||void 0===N?void 0:N.type)===pe.qL.INTEGRATION,F=(0,h.useMemo)((function(){return N.blocks||[]}),[N]),W=(0,h.useMemo)((function(){var e=(0,ne.HK)(F,(function(e){return e.uuid}));if(U){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):{},o=((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,o=e.type,i="".concat(n,":").concat(t);r[i]={type:o}})),Le(Le({},e),r)}),{});e=Le(Le({},o),e)}return e}),[F,U]),X=(0,Ae.iV)(),G=!(null!==X&&void 0!==X&&X.start_timestamp)&&!(null!==X&&void 0!==X&&X.hasOwnProperty(Me)||null!==X&&void 0!==X&&X.hasOwnProperty(Be)),z=(0,Pe.JI)(_e[S.LAST_DAY]),V=we.ZP.logs.pipelines.list(l?o:null,(0,ke.gR)(G?Le(Le({},l),{},{start_timestamp:z}):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]),oe=re.blockRunLogs,ie=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)(oe.concat(ie).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}))}),[oe,ie]),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,o,i=null===n||void 0===n?void 0:n.block_uuid;if(U)i=null===n||void 0===n||null===(o=n.block_uuid)||void 0===o?void 0:o.split(":").slice(0,2).join(":");t.push(l["block_type[]"].includes(null===(r=W[i])||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}))}))}),[W,U,ae,l]),me=fe.length,ve=(0,xe.Z)(X);(0,h.useEffect)((function(){var e;G&&(0,D.u7)((e={},(0,i.Z)(e,je,Oe),(0,i.Z)(e,ye,0),(0,i.Z)(e,"start_timestamp",z),e))}),[G]),(0,h.useEffect)((function(){(0,ke.Xy)(X,ve)||u(X)}),[X,ve]);var ge=(0,xe.Z)(b);(0,h.useEffect)((function(){var e=X.log_uuid;!e||b||ge||x(ae.find((function(n){var t=n.data;return(null===t||void 0===t?void 0:t.uuid)===e})))}),[ae,X,b,ge]),(0,h.useEffect)((function(){var e;E&&!te&&(null===r||void 0===r||null===(e=r.current)||void 0===e||e.scrollIntoView(),T(!1))}),[E,te]);var be=X._limit,Ze=X._offset,Se=+(be||0),Ee=+(Ze||0),Te=Math.max(ce,le),Ce=(0,h.useCallback)((function(){var e,n=Se,t=Ee;(ce>Se||le>Se)&&(n=Math.min(Te,Se+Oe),t=Math.min(Ee+Oe,Te-Te%Oe),(0,D.u7)(Le(Le({},X),{},(e={},(0,i.Z)(e,je,n),(0,i.Z)(e,ye,t),e))))}),[Te,Se,Ee,X,ce,le]),Ie=(0,h.useCallback)((function(){var e,n=Se,t=Ee;Se>=Oe&&(n=Math.max(Oe,Se-Oe),Se>=Te&&Te%Oe!==0&&(n=Te-Te%Oe),t=Math.max(0,Ee-Oe),(0,D.u7)(Le(Le({},X),{},(e={},(0,i.Z)(e,je,n),(0,i.Z)(e,ye,t),e))))}),[Te,Se,Ee,X]);return(0,I.jsxs)(se.Z,{after:b&&(0,I.jsx)(de,{log:b,onClose:function(){(0,D.u7)((0,i.Z)({},Ne,null)),x(null)}}),afterHidden:!b,afterWidth:80*_.iI,before:(0,I.jsx)(M,{blocks:F,query:l}),beforeWidth:20*_.iI,breadcrumbs:[{label:function(){return"Logs"}}],pageName:De.M.PIPELINE_LOGS,pipeline:N,subheader:null,title:function(e){var n=e.name;return"".concat(n," logs")},uuid:"pipeline/logs",children:[(0,I.jsx)(y.Z,{px:_.cd,py:1,children:(0,I.jsxs)(O.ZP,{children:[!te&&(0,I.jsxs)(I.Fragment,{children:[(0,R.x6)(me)," logs found",(0,I.jsx)(Re,{allPastLogsLoaded:ue,loadNewerLogInterval:Ie,loadPastLogInterval:Ce,selectedRange:P,setSelectedRange:k})]}),te&&"Searching..."]})}),(0,I.jsx)(g.Z,{light:!0}),te&&(0,I.jsx)(y.Z,{p:_.cd,children:(0,I.jsx)(he.Z,{})}),!te&&fe.length>=1&&(0,I.jsx)(q.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,D.u7)((0,i.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,g=(p.pipeline_uuid,p.timestamp),b=f||d.split(".log")[0],x=b.split(":");pe.qL.INTEGRATION===N.type&&(b=x[0],r=x[1],c=x[2]);var Z=W[b];if(Z||(Z=W[x[0]]),Z){var P=(0,w.qn)(Z.type,{blockColor:Z.color,theme:t}).accent;n=(0,I.jsx)(j.Z,{alignItems:"center",children:(0,I.jsx)(s(),{as:"/pipelines/".concat(o,"/edit?block_uuid=").concat(b),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,I.jsxs)(H.Z,{block:!0,fullWidth:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,I.jsx)(v.Z,{color:P,size:1.5*_.iI,square:!0}),(0,I.jsx)(y.Z,{mr:1}),(0,I.jsxs)(O.ZP,{monospace:!0,children:[b,r&&": ",r&&(0,I.jsx)(O.ZP,{default:!0,inline:!0,monospace:!0,children:r}),c>=0&&": ",c>=0&&(0,I.jsx)(O.ZP,{default:!0,inline:!0,monospace:!0,children:c})]})]})})})}return[(0,I.jsx)(B.Z,{alignItems:"center",justifyContent:"center",children:(0,I.jsx)(C,Le({},(0,i.Z)({},null===h||void 0===h?void 0:h.toLowerCase(),!0)))},"log_type"),(0,I.jsx)(O.ZP,{default:!0,monospace:!0,children:ee(g)},"log_timestamp"),n,(0,I.jsx)(O.ZP,{monospace:!0,preWrap:!0,textOverflow:!0,title:m||l,children:(0,I.jsx)(a(),{children:m||l})},"log_message"),(0,I.jsx)(B.Z,{flex:1,justifyContent:"flex-end",children:(0,I.jsx)(J._Q,{default:!0,size:2*_.iI})},"chevron_right_icon")]})),uuid:"logs"}),(0,I.jsx)(y.Z,{p:_.cd,ref:r,children:(0,I.jsx)(Y.ZP,{blackBorder:!0,inline:!0,onClick:function(){T(!0),"0"===(null===X||void 0===X?void 0:X._offset)&&(null===X||void 0===X?void 0:X._limit)===String(Oe)?Q(null):(0,D.u7)({_limit:Oe,_offset:0})},paddingBottom:.75*_.iI,paddingTop:.75*_.iI,uuid:"logs/toolbar/load_newest",children:"Load latest logs"})})]})}Ye.getInitialProps=function(){var e=(0,o.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 He=(0,fe.Z)(Ye)},42305:function(e,n,t){"use strict";t.d(n,{A5:function(){return s},AY:function(){return p},BP:function(){return d},JX:function(){return a},OC:function(){return i},Pc:function(){return f},d$:function(){return u},lJ:function(){return h},n1:function(){return l}});var r=t(92083),o=t.n(r),i="YYYY-MM-DD HH:mm:ss",c="YYYY-MM-DD HH:mm",l="YYYY-MM-DD";function u(e,n){var t=n.utcFormat,r=n.dayAgo,i=o()(e);return t&&(i=i.utc()),r&&(i=i.subtract(1,"days")),i.format(c)}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?i:c)}function d(e,n,t){return o()(e).utc().hours(+n).minutes(+t).format()}function s(e){return o()(e).unix()}function p(e,n,t){return"".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t)}function f(e){var n=o().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function h(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 i}});var r=t(75582),o=function(e){var n=String(e).split("."),t=(0,r.Z)(n,2),o=t[0],i=t[1];return"".concat(o.replace(/\B(?=(\d{3})+(?!\d))/g,",")).concat(i?".".concat(i):"")},i=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)),o(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),o=t(82394),i=t(34376),c=t.n(i),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,o.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]:{},o=t.replaceParams,i=t.pushHistory,u=o?{}:(0,l.iV)();n=window.location.pathname;var a=i?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],o=n[1];"undefined"!==typeof o&&null!==o||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 o=t.addingMultipleValues,i=t.isList,c=t.itemsPerPage,l=t.pushHistory,a=void 0!==l&&l,p=t.resetLimitParams,f=d({},e);o?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],o=n[1];if(Array.isArray(o)){var i="".concat(t,"[]");f[i]=o.map(String)}})):i?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],o=n[1],i=String(o),c="".concat(t,"[]"),l=f[c];l&&Array.isArray(l)?(l=l.map(String)).includes(i)?f[c]=(0,u.Od)(l,(function(e){return e===i})):f[c]=l.concat(i):f[c]=[i]})):f=d(d({},f),n),p&&(f._limit=c||20,f._offset=0),s(f,{pushHistory:a})}},62453:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/logs",function(){return t(44613)}])}},function(e){e.O(0,[3850,2083,4804,9565,4495,2344,9386,6166,8180,2626,9774,2888,179],(function(){return n=62453,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5912],{44162:function(n,t,e){"use strict";e.d(t,{HC:function(){return A},Kf:function(){return s},Nk:function(){return p},gE:function(){return b},jv:function(){return v},nz:function(){return f},oh:function(){return a},qn:function(){return l},t1:function(){return m},y9:function(){return h}});var r=e(9518),o=e(23831),i=e(86422),c=e(73942),u=e(49125),d=e(90880),a=68;function l(n,t){var e,r,c=((null===t||void 0===t||null===(e=t.theme)||void 0===e?void 0:e.borders)||o.Z.borders).light,u=((null===t||void 0===t||null===(r=t.theme)||void 0===r?void 0:r.monotone)||o.Z.monotone).grey500,d=t||{},a=d.blockColor,l=d.isSelected,s=d.theme;return l?c=((null===s||void 0===s?void 0:s.content)||o.Z.content).active:i.tf.TRANSFORMER===n||a===i.Lq.PURPLE?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).purple,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).purpleLight):i.tf.DATA_EXPORTER===n||a===i.Lq.YELLOW?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).yellow,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).yellowLight):i.tf.DATA_LOADER===n||a===i.Lq.BLUE?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).blue,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).blueLight):i.tf.SENSOR===n||a===i.Lq.PINK?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).pink,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).pinkLight):i.tf.DBT===n?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).dbt,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).dbtLight):i.tf.EXTENSION===n||a===i.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).teal,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).tealLight):(i.tf.SCRATCHPAD===n||a===i.Lq.GREY||i.tf.CUSTOM===n&&!a)&&(c=((null===s||void 0===s?void 0:s.content)||o.Z.content).default,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).contentDefaultTransparent),{accent:c,accentLight:u}}var s=(0,r.css)([""," "," "," "," "," "," ",""],(0,d.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(l(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(l(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||o.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||o.Z.borders).danger,";\n ")}),(function(n){return n.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(n){return n.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),p=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),f=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-1"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," ",""],s,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,u.iI,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n ")}),(function(n){return n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")})),v=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-2"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],s,c.M8,c.mP,c.M8,c.mP,u.iI,u.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(n){return!n.hasOutput&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n ")})),b=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-3"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*u.iI,.5*u.iI,(function(n){return n.additionalZIndex>0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||o.Z.text).fileBrowser,";\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-4"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*u.iI),h=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-5"})(["margin-bottom:","px;padding-bottom:","px;",""],u.cd*u.iI,u.iI,(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?u.iI:a,"px;\n ")})),A=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-6"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,a)},43032:function(n,t,e){"use strict";e.d(t,{Cl:function(){return u},Nk:function(){return d},ZG:function(){return c}});var r=e(9518),o=e(23831),i=e(49125),c=1.5*i.iI,u=1*c+i.iI/2,d=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(n){return"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}))},86422:function(n,t,e){"use strict";e.d(t,{$W:function(){return p},DA:function(){return s},HX:function(){return b},J8:function(){return v},Lq:function(){return a},Qj:function(){return m},Ut:function(){return E},V4:function(){return T},VZ:function(){return f},dO:function(){return l},f2:function(){return A},iZ:function(){return h},t6:function(){return c},tf:function(){return d}});var r,o,i,c,u=e(82394);!function(n){n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(c||(c={}));var d,a,l=(r={},(0,u.Z)(r,c.PYTHON,"PY"),(0,u.Z)(r,c.R,"R"),(0,u.Z)(r,c.SQL,"SQL"),(0,u.Z)(r,c.YAML,"YAML"),r);!function(n){n.CHART="chart",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.TRANSFORMER="transformer"}(d||(d={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(a||(a={}));var s,p=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.TRANSFORMER],f=[d.DATA_EXPORTER,d.DATA_LOADER],v=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],b=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],m=[d.CHART,d.SCRATCHPAD,d.SENSOR],h=[d.EXTENSION,d.SCRATCHPAD];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(s||(s={}));var A=[d.CUSTOM,d.DATA_EXPORTER,d.TRANSFORMER],T=(o={},(0,u.Z)(o,d.CUSTOM,"Custom"),(0,u.Z)(o,d.DATA_EXPORTER,"Data exporter"),(0,u.Z)(o,d.DATA_LOADER,"Data loader"),(0,u.Z)(o,d.EXTENSION,"Extension"),(0,u.Z)(o,d.SCRATCHPAD,"Scratchpad"),(0,u.Z)(o,d.SENSOR,"Sensor"),(0,u.Z)(o,d.TRANSFORMER,"Transformer"),o),E=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER];i={},(0,u.Z)(i,d.DATA_EXPORTER,"DE"),(0,u.Z)(i,d.DATA_LOADER,"DL"),(0,u.Z)(i,d.SCRATCHPAD,"SP"),(0,u.Z)(i,d.SENSOR,"SR"),(0,u.Z)(i,d.TRANSFORMER,"TF")},50094:function(n,t,e){"use strict";e.r(t);var r=e(77837),o=e(75582),i=e(82394),c=e(38860),u=e.n(c),d=e(82684),a=e(92083),l=e.n(a),s=e(9518),p=e(21679),f=e(16634),v=e(67971),b=e(87372),m=e(87465),h=e(41788),A=e(55378),T=e(86673),E=e(82531),R=e(23831),O=e(67400),_=e(43032),x=e(92953),g=e(44162),Z=e(24224),y=e(28598);function S(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function D(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?S(Object(e),!0).forEach((function(t){(0,i.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):S(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function C(n){var t=n.pipeline,e=(0,d.useContext)(s.ThemeContext),r=(0,d.useState)(null),c=r[0],u=r[1],a=t.uuid,h=E.ZP.pipelines.detail(a,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,S=(0,d.useMemo)((function(){return D(D({},null===h||void 0===h?void 0:h.pipeline),{},{uuid:a})}),[h,a]),C=E.ZP.pipeline_schedules.pipelines.list(a).data,P=(0,d.useMemo)((function(){return null===C||void 0===C?void 0:C.pipeline_schedules}),[C]),L=(0,d.useMemo)((function(){return(0,Z.HK)(null===S||void 0===S?void 0:S.blocks,(function(n){return n.uuid}))||{}}),[S]),N={pipeline_uuid:a};(c||0===c)&&(N.pipeline_schedule_id=Number(c));var k=E.ZP.monitor_stats.detail("block_run_count",N),j=k.data,w=k.mutate,I=((null===j||void 0===j?void 0:j.monitor_stat)||{}).stats,M=(0,d.useMemo)((function(){for(var n=new Date,t=[],e=0;e<90;e++)t.unshift(n.toISOString().split("T")[0]),n.setDate(n.getDate()-1);return t}),[]),X=(0,d.useMemo)((function(){if(I)return Object.entries(I).reduce((function(n,t){var e=(0,o.Z)(t,2),r=e[0],c=e[1].data,u=M.map((function(n){return D({date:n},c[n]||{})}));return D(D({},n),{},(0,i.Z)({},r,u))}),{})}),[M,I]),H=(0,d.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[S]);return(0,y.jsx)(m.Z,{breadcrumbs:H,monitorType:x.a.BLOCK_RUNS,pipeline:S,subheader:(0,y.jsx)(v.Z,{children:(0,y.jsxs)(A.Z,{backgroundColor:R.Z.interactive.defaultBackground,label:"Trigger:",onChange:function(n){var t=n.target.value;"initial"!==t?(u(t),w(t)):(w(),u(null))},value:c||"initial",children:[(0,y.jsx)("option",{value:"initial",children:"All"}),P&&P.map((function(n){return(0,y.jsx)("option",{value:n.id,children:n.name})}))]})}),children:(0,y.jsx)(T.Z,{mx:2,children:X&&Object.entries(X).map((function(n){var t,r,i=(0,o.Z)(n,2),c=i[0],u=i[1];return(0,y.jsxs)(T.Z,{mt:3,children:[(0,y.jsxs)(v.Z,{alignItems:"center",children:[(0,y.jsx)(T.Z,{mx:1,children:(0,y.jsx)(f.Z,{color:(0,g.qn)(null===(t=L[c])||void 0===t?void 0:t.type,{blockColor:null===(r=L[c])||void 0===r?void 0:r.color,theme:e}).accent,size:_.ZG,square:!0})}),(0,y.jsx)(b.Z,{level:4,children:c})]}),(0,y.jsx)(T.Z,{mt:1,children:(0,y.jsx)(p.Z,{colors:O.BAR_STACK_COLORS,data:u,getXValue:function(n){return n.date},height:200,keys:O.BAR_STACK_STATUSES,margin:{bottom:30,left:35,right:0,top:10},xLabelFormat:function(n){return l()(n).format("MMM DD")}})})]},c)}))})})}C.getInitialProps=function(){var n=(0,r.Z)(u().mark((function n(t){var e;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.query.pipeline,n.abrupt("return",{pipeline:{uuid:e}});case 2:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}(),t.default=(0,h.Z)(C)},83542:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors/block-runs",function(){return e(50094)}])}},function(n){n.O(0,[3850,2083,5896,2714,2344,9386,1830,2626,7400,9774,2888,179],(function(){return t=83542,n(n.s=t);var t}));var t=n.O();_N_E=t}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5912],{44162:function(n,t,e){"use strict";e.d(t,{HC:function(){return A},Kf:function(){return s},Nk:function(){return p},gE:function(){return b},jv:function(){return v},nz:function(){return f},oh:function(){return a},qn:function(){return l},t1:function(){return m},y9:function(){return h}});var r=e(9518),o=e(23831),i=e(86422),c=e(73942),u=e(49125),d=e(90880),a=68;function l(n,t){var e,r,c=((null===t||void 0===t||null===(e=t.theme)||void 0===e?void 0:e.borders)||o.Z.borders).light,u=((null===t||void 0===t||null===(r=t.theme)||void 0===r?void 0:r.monotone)||o.Z.monotone).grey500,d=t||{},a=d.blockColor,l=d.isSelected,s=d.theme;return l?c=((null===s||void 0===s?void 0:s.content)||o.Z.content).active:i.tf.TRANSFORMER===n||a===i.Lq.PURPLE?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).purple,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).purpleLight):i.tf.DATA_EXPORTER===n||a===i.Lq.YELLOW?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).yellow,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).yellowLight):i.tf.DATA_LOADER===n||a===i.Lq.BLUE?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).blue,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).blueLight):i.tf.SENSOR===n||a===i.Lq.PINK?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).pink,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).pinkLight):i.tf.DBT===n?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).dbt,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).dbtLight):i.tf.EXTENSION===n||a===i.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).teal,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).tealLight):(i.tf.SCRATCHPAD===n||a===i.Lq.GREY||i.tf.CUSTOM===n&&!a)&&(c=((null===s||void 0===s?void 0:s.content)||o.Z.content).default,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).contentDefaultTransparent),{accent:c,accentLight:u}}var s=(0,r.css)([""," "," "," "," "," "," ",""],(0,d.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(l(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(l(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||o.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||o.Z.borders).danger,";\n ")}),(function(n){return n.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(n){return n.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),p=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),f=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-1"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," ",""],s,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,u.iI,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n ")}),(function(n){return n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")})),v=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-2"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],s,c.M8,c.mP,c.M8,c.mP,u.iI,u.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(n){return!n.hasOutput&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n ")})),b=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-3"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*u.iI,.5*u.iI,(function(n){return n.additionalZIndex>0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||o.Z.text).fileBrowser,";\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-4"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*u.iI),h=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-5"})(["margin-bottom:","px;padding-bottom:","px;",""],u.cd*u.iI,u.iI,(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?u.iI:a,"px;\n ")})),A=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-6"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,a)},43032:function(n,t,e){"use strict";e.d(t,{Cl:function(){return u},Nk:function(){return d},ZG:function(){return c}});var r=e(9518),o=e(23831),i=e(49125),c=1.5*i.iI,u=1*c+i.iI/2,d=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(n){return"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}))},86422:function(n,t,e){"use strict";e.d(t,{$W:function(){return p},DA:function(){return s},HX:function(){return b},J8:function(){return v},Lq:function(){return a},Qj:function(){return m},Ut:function(){return E},V4:function(){return T},VZ:function(){return f},dO:function(){return l},f2:function(){return A},iZ:function(){return h},t6:function(){return c},tf:function(){return d}});var r,o,i,c,u=e(82394);!function(n){n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(c||(c={}));var d,a,l=(r={},(0,u.Z)(r,c.PYTHON,"PY"),(0,u.Z)(r,c.R,"R"),(0,u.Z)(r,c.SQL,"SQL"),(0,u.Z)(r,c.YAML,"YAML"),r);!function(n){n.CHART="chart",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.TRANSFORMER="transformer"}(d||(d={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(a||(a={}));var s,p=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.TRANSFORMER],f=[d.DATA_EXPORTER,d.DATA_LOADER],v=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],b=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],m=[d.CHART,d.SCRATCHPAD,d.SENSOR],h=[d.EXTENSION,d.SCRATCHPAD];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(s||(s={}));var A=[d.CUSTOM,d.DATA_EXPORTER,d.TRANSFORMER],T=(o={},(0,u.Z)(o,d.CUSTOM,"Custom"),(0,u.Z)(o,d.DATA_EXPORTER,"Data exporter"),(0,u.Z)(o,d.DATA_LOADER,"Data loader"),(0,u.Z)(o,d.EXTENSION,"Extension"),(0,u.Z)(o,d.SCRATCHPAD,"Scratchpad"),(0,u.Z)(o,d.SENSOR,"Sensor"),(0,u.Z)(o,d.TRANSFORMER,"Transformer"),o),E=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER,d.SENSOR];i={},(0,u.Z)(i,d.DATA_EXPORTER,"DE"),(0,u.Z)(i,d.DATA_LOADER,"DL"),(0,u.Z)(i,d.SCRATCHPAD,"SP"),(0,u.Z)(i,d.SENSOR,"SR"),(0,u.Z)(i,d.TRANSFORMER,"TF")},50094:function(n,t,e){"use strict";e.r(t);var r=e(77837),o=e(75582),i=e(82394),c=e(38860),u=e.n(c),d=e(82684),a=e(92083),l=e.n(a),s=e(9518),p=e(21679),f=e(16634),v=e(67971),b=e(87372),m=e(87465),h=e(41788),A=e(55378),T=e(86673),E=e(82531),R=e(23831),O=e(67400),_=e(43032),x=e(92953),g=e(44162),Z=e(24224),S=e(28598);function y(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function D(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?y(Object(e),!0).forEach((function(t){(0,i.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):y(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function C(n){var t=n.pipeline,e=(0,d.useContext)(s.ThemeContext),r=(0,d.useState)(null),c=r[0],u=r[1],a=t.uuid,h=E.ZP.pipelines.detail(a,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,y=(0,d.useMemo)((function(){return D(D({},null===h||void 0===h?void 0:h.pipeline),{},{uuid:a})}),[h,a]),C=E.ZP.pipeline_schedules.pipelines.list(a).data,P=(0,d.useMemo)((function(){return null===C||void 0===C?void 0:C.pipeline_schedules}),[C]),N=(0,d.useMemo)((function(){return(0,Z.HK)(null===y||void 0===y?void 0:y.blocks,(function(n){return n.uuid}))||{}}),[y]),L={pipeline_uuid:a};(c||0===c)&&(L.pipeline_schedule_id=Number(c));var k=E.ZP.monitor_stats.detail("block_run_count",L),j=k.data,w=k.mutate,I=((null===j||void 0===j?void 0:j.monitor_stat)||{}).stats,M=(0,d.useMemo)((function(){for(var n=new Date,t=[],e=0;e<90;e++)t.unshift(n.toISOString().split("T")[0]),n.setDate(n.getDate()-1);return t}),[]),X=(0,d.useMemo)((function(){if(I)return Object.entries(I).reduce((function(n,t){var e=(0,o.Z)(t,2),r=e[0],c=e[1].data,u=M.map((function(n){return D({date:n},c[n]||{})}));return D(D({},n),{},(0,i.Z)({},r,u))}),{})}),[M,I]),H=(0,d.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[y]);return(0,S.jsx)(m.Z,{breadcrumbs:H,monitorType:x.a.BLOCK_RUNS,pipeline:y,subheader:(0,S.jsx)(v.Z,{children:(0,S.jsxs)(A.Z,{backgroundColor:R.Z.interactive.defaultBackground,label:"Trigger:",onChange:function(n){var t=n.target.value;"initial"!==t?(u(t),w(t)):(w(),u(null))},value:c||"initial",children:[(0,S.jsx)("option",{value:"initial",children:"All"}),P&&P.map((function(n){return(0,S.jsx)("option",{value:n.id,children:n.name})}))]})}),children:(0,S.jsx)(T.Z,{mx:2,children:X&&Object.entries(X).map((function(n){var t,r,i=(0,o.Z)(n,2),c=i[0],u=i[1];return(0,S.jsxs)(T.Z,{mt:3,children:[(0,S.jsxs)(v.Z,{alignItems:"center",children:[(0,S.jsx)(T.Z,{mx:1,children:(0,S.jsx)(f.Z,{color:(0,g.qn)(null===(t=N[c])||void 0===t?void 0:t.type,{blockColor:null===(r=N[c])||void 0===r?void 0:r.color,theme:e}).accent,size:_.ZG,square:!0})}),(0,S.jsx)(b.Z,{level:4,children:c})]}),(0,S.jsx)(T.Z,{mt:1,children:(0,S.jsx)(p.Z,{colors:O.BAR_STACK_COLORS,data:u,getXValue:function(n){return n.date},height:200,keys:O.BAR_STACK_STATUSES,margin:{bottom:30,left:35,right:0,top:10},xLabelFormat:function(n){return l()(n).format("MMM DD")}})})]},c)}))})})}C.getInitialProps=function(){var n=(0,r.Z)(u().mark((function n(t){var e;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.query.pipeline,n.abrupt("return",{pipeline:{uuid:e}});case 2:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}(),t.default=(0,h.Z)(C)},83542:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors/block-runs",function(){return e(50094)}])}},function(n){n.O(0,[3850,2083,5896,2714,2344,9386,6166,2626,7400,9774,2888,179],(function(){return t=83542,n(n.s=t);var t}));var t=n.O();_N_E=t}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4947],{44162:function(e,t,n){"use strict";n.d(t,{HC:function(){return b},Kf:function(){return s},Nk:function(){return p},gE:function(){return m},jv:function(){return h},nz:function(){return f},oh:function(){return u},qn:function(){return d},t1:function(){return v},y9:function(){return x}});var r=n(9518),i=n(23831),o=n(86422),c=n(73942),a=n(49125),l=n(90880),u=68;function d(e,t){var n,r,c=((null===t||void 0===t||null===(n=t.theme)||void 0===n?void 0:n.borders)||i.Z.borders).light,a=((null===t||void 0===t||null===(r=t.theme)||void 0===r?void 0:r.monotone)||i.Z.monotone).grey500,l=t||{},u=l.blockColor,d=l.isSelected,s=l.theme;return d?c=((null===s||void 0===s?void 0:s.content)||i.Z.content).active:o.tf.TRANSFORMER===e||u===o.Lq.PURPLE?(c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).purple,a=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).purpleLight):o.tf.DATA_EXPORTER===e||u===o.Lq.YELLOW?(c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).yellow,a=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).yellowLight):o.tf.DATA_LOADER===e||u===o.Lq.BLUE?(c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).blue,a=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).blueLight):o.tf.SENSOR===e||u===o.Lq.PINK?(c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).pink,a=((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,a=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).dbtLight):o.tf.EXTENSION===e||u===o.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).teal,a=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).tealLight):(o.tf.SCRATCHPAD===e||u===o.Lq.GREY||o.tf.CUSTOM===e&&!u)&&(c=((null===s||void 0===s?void 0:s.content)||i.Z.content).default,a=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).contentDefaultTransparent),{accent:c,accentLight:a}}var s=(0,r.css)([""," "," "," "," "," "," ",""],(0,l.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__BlockHeaderStyle",componentId:"sc-s5rj34-1"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," ",""],s,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,a.iI,(function(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 ")})),h=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-2"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],s,c.M8,c.mP,c.M8,c.mP,a.iI,a.iI,(function(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 ")})),m=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-3"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*a.iI,.5*a.iI,(function(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-4"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*a.iI),x=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-5"})(["margin-bottom:","px;padding-bottom:","px;",""],a.cd*a.iI,a.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n padding-left: ").concat(e.normalPadding?a.iI:u,"px;\n ")})),b=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-6"})(["bottom:","px;left:","px;position:absolute;"],1*a.iI,u)},43032:function(e,t,n){"use strict";n.d(t,{Cl:function(){return a},Nk:function(){return l},ZG:function(){return c}});var r=n(9518),i=n(23831),o=n(49125),c=1.5*o.iI,a=1*c+o.iI/2,l=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(e){return"\n background-color: ".concat((e.theme.interactive||i.Z.interactive).hoverBackground,";\n ")}))},92953:function(e,t,n){"use strict";var r;n.d(t,{a:function(){return r}}),function(e){e.BLOCK_RUNS="block_runs",e.BLOCK_RUNTIME="block_runtime",e.PIPELINE_RUNS="pipeline_runs"}(r||(r={}))},87465:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});n(82684);var r=n(34376),i=n(87372),o=n(2626),c=n(86673),a=n(19711),l=n(2850),u=n(9518),d=n(23831),s=n(49125),p=u.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1in9sst-0"})(["padding:","px ","px;"," ",""],s.iI,s.tr,(function(e){return e.selected&&"\n background-color: ".concat((e.theme.interactive||d.Z.interactive).checked,";\n ")}),(function(e){return!e.selected&&"\n cursor: pointer;\n "})),f=n(92953),h=n(59920),m=n(28598);var v=function(e){var t=e.breadcrumbs,n=e.children,u=e.monitorType,d=e.pipeline,v=e.subheader,x=(0,r.useRouter)();return(0,m.jsx)(o.Z,{before:(0,m.jsxs)(l.M,{children:[(0,m.jsx)(c.Z,{p:s.cd,children:(0,m.jsx)(i.Z,{level:4,muted:!0,children:"Insights"})}),(0,m.jsx)(p,{onClick:function(e){e.preventDefault(),x.push("/pipelines/[pipeline]/monitors","/pipelines/".concat(null===d||void 0===d?void 0:d.uuid,"/monitors"))},selected:f.a.PIPELINE_RUNS==u,children:(0,m.jsx)(a.ZP,{children:"Pipeline runs"})}),(0,m.jsx)(p,{onClick:function(e){e.preventDefault(),x.push("/pipelines/[pipeline]/monitors/block-runs","/pipelines/".concat(null===d||void 0===d?void 0:d.uuid,"/monitors/block-runs"))},selected:f.a.BLOCK_RUNS==u,children:(0,m.jsx)(a.ZP,{children:"Block runs"})}),(0,m.jsx)(p,{onClick:function(e){e.preventDefault(),x.push("/pipelines/[pipeline]/monitors/block-runtime","/pipelines/".concat(null===d||void 0===d?void 0:d.uuid,"/monitors/block-runtime"))},selected:f.a.BLOCK_RUNTIME==u,children:(0,m.jsx)(a.ZP,{children:"Block runtime"})})]}),breadcrumbs:t,pageName:h.M.MONITOR,pipeline:d,subheader:v,uuid:"pipeline/monitor",children:n})}},2850:function(e,t,n){"use strict";n.d(t,{M:function(){return a},W:function(){return c}});var r=n(9518),i=n(23831),o=n(3055),c=34*n(49125).iI,a=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 ")}))},68735:function(e,t,n){"use strict";var r=n(26304),i=n(21831),o=n(82394),c=n(82684),a=n(26226),l=n(9518),u=n(90948),d=n(84969),s=n(65743),p=n(85587),f=n(79487),h=n(52136),m=n(67778),v=n(29989),x=n(17066),b=n(84482),y=n(76771),g=n(98889),E=n(65376),T=n(61655),O=n(97745),Z=n(48072),A=n(10103),R=n(84181),k=n(24903),_=n(67971),j=n(86673),L=n(19711),P=n(52359),D=n(23831),S=n(80906),C=n(73899),N=n(2005),M=n(31012),I=n(49125),w=n(24224),F=n(344),U=n(45739),X=n(28598),B=["areaBetweenLines","data","events","height","lineLegendNames","margin","width","xAxisLabel","xLabelFormat","yAxisLabel","yLabelFormat"];function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var q=Y(Y({},E.j),{},{backgroundColor:D.Z.background.muted,border:"none"}),z=(0,T.Z)((function(e){var t=e.areaBetweenLines,n=e.data,r=e.events,o=void 0!==r&&r,a=e.getX,T=e.getY,_=e.gridProps,j=void 0===_?{}:_,P=e.height,B=e.hideGridX,H=e.hideTooltip,z=e.increasedXTicks,K=e.lineLegendNames,W=e.margin,V=e.noCurve,G=e.numYTicks,J=e.renderXTooltipContent,Q=e.renderYTooltipContent,$=e.showTooltip,ee=e.thickStroke,te=e.tooltipData,ne=e.tooltipLeft,re=void 0===ne?0:ne,ie=e.tooltipTop,oe=void 0===ie?[]:ie,ce=e.width,ae=e.xLabelFormat,le=e.xLabelRotate,ue=void 0===le||le,de=e.yLabelFormat,se=(0,c.useContext)(l.ThemeContext),pe=a||function(e){return null===e||void 0===e?void 0:e.x},fe=T||function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null===e||void 0===e||null===(t=e.y)||void 0===t?void 0:t[n]},he=D.Z.monotone.gray,me=D.Z.brand.wind200,ve=D.Z.content.muted,xe=D.Z.monotone.gray,be=n.map((function(e){return Number(pe(e))}));if(ce<10)return null;var ye=ce-W.left-W.right,ge=P-W.top-W.bottom,Ee=ye/2,Te=Math.max.apply(Math,(0,i.Z)(n.map((function(e){var t=e.y;return(null===t||void 0===t?void 0:t.length)||0})))),Oe=(0,c.useMemo)((function(){return(0,R.Z)({domain:[Math.min.apply(Math,(0,i.Z)(be)),Math.max.apply(Math,(0,i.Z)(be))],range:[0,ye]})}),[ye,be]),Ze=Math.min.apply(Math,(0,i.Z)(n.map((function(e){var t=e.y;return Math.min.apply(Math,(0,i.Z)(t||[]))})))),Ae=Math.max.apply(Math,(0,i.Z)(n.map((function(e){var t=e.y;return Math.max.apply(Math,(0,i.Z)(t||[]))})))),Re=(0,c.useMemo)((function(){return(0,R.Z)({domain:[Ze,Ae],nice:!0,range:[ge,0]})}),[ge,Ae,Ze]),ke=ce>520?z?20:10:z?10:5,_e=(0,U.K)(se),je=ve,Le=_e.map((function(e){return{stroke:e}})),Pe=(0,k.Z)({domain:K||[],range:Le.map((function(e){return e.stroke}))}),De=(0,c.useCallback)((function(e){var t=((0,Z.Z)(e)||{x:0}).x,r=Oe.invert(t-W.left),i=(0,w.ry)(be,(function(e){return r>=e})),o=n[i-1],c=n[i],a=o;c&&(r-pe(o)>pe(c)-r?a=c:(a=o,i-=1));var l=(0,A.range)(0,Te).map((function(e){return Re(fe(a,e))}));fe(a)&&$({tooltipData:Y(Y({},a),{},{index:i}),tooltipLeft:t,tooltipTop:l})}),[n,pe,fe,W,$,Oe,Re]),Se={};return V||(Se.curve=O.ZP),(0,X.jsxs)(X.Fragment,{children:[K&&(0,X.jsx)("div",{style:{marginLeft:null===W||void 0===W?void 0:W.left},children:(0,X.jsx)(x.Z,{labelFormat:function(e){return e},scale:Pe,children:function(e){return(0,X.jsx)("div",{style:{display:"flex",flexDirection:S.qs.ROW},children:e.map((function(e,t){return(0,X.jsxs)(b.Z,{margin:"0 5px",onClick:function(){o&&alert("clicked: ".concat(JSON.stringify(e)))},children:[(0,X.jsx)("svg",{height:15,width:15,children:(0,X.jsx)("rect",{fill:e.value,height:15,width:15})}),(0,X.jsx)(y.Z,{align:"left",margin:"0 0 0 4px",children:(0,X.jsx)(L.ZP,{small:!0,children:e.text})})]},"legend-quantile-".concat(t))}))})}})}),(0,X.jsxs)("svg",{height:P,width:ce,children:[!t&&(0,X.jsx)(s.Z,{fill:"transparent",height:P,onMouseLeave:function(){return H()},onMouseMove:De,onTouchMove:De,onTouchStart:De,rx:14,width:ce-(W.left+W.right),x:W.left,y:0}),(0,X.jsxs)(v.Z,{left:W.left,top:W.top,children:[!B&&(0,X.jsx)(h.Z,Y({height:ge,pointerEvents:"none",scale:Oe,stroke:he,strokeDasharray:"3,3",strokeOpacity:.4,width:ye},j)),(0,X.jsx)(m.Z,Y({height:ge,pointerEvents:"none",scale:Re,stroke:he,strokeDasharray:"3,3",strokeOpacity:.4,width:ye},j)),(0,X.jsx)("line",{stroke:he,x1:ye,x2:ye,y1:0,y2:ge}),(0,X.jsx)(u.Z,{numTicks:ke,scale:Oe,stroke:je,tickFormat:function(e){return ae?ae(e):e},tickLabelProps:function(e){return{fill:ve,fontFamily:N.ry,fontSize:M.J5,textAnchor:"middle",transform:ue&&"rotate(-45, ".concat(Oe(e),", 0) translate(-32, 4)")}},tickStroke:je,top:ge}),(0,X.jsx)(d.Z,{hideTicks:!0,numTicks:G,scale:Re,stroke:je,tickFormat:function(e){return de?de(e):(0,F.P5)(e)},tickLabelProps:function(e){return{dx:String(e).length>4?3:0,fill:ve,fontFamily:N.ry,fontSize:M.J5,textAnchor:"end",transform:"translate(0,2.5)"}},tickStroke:je}),t&&t.map((function(e){var t=e[0],r=e[1];return(0,c.createElement)(g.Z,Y(Y({},Se),{},{aboveAreaProps:{fill:D.Z.brand.earth400,fillOpacity:.3},belowAreaProps:{fill:me,fillOpacity:.2},clipAboveTo:0,clipBelowTo:ge,data:n,id:"".concat(Math.random()),key:"".concat(t,"-").concat(r),x:function(e){return Oe(pe(e))},y0:function(e){return Re("undefined"===typeof r?Ze:fe(e,r))},y1:function(e){return Re(fe(e,t))}}))})),(0,A.range)(0,Te).map((function(e){return(0,c.createElement)(p.Z,Y(Y({},Se),{},{data:n.filter((function(e){return void 0!=e.y})),key:e,pointerEvents:"none",strokeWidth:ee?2:1,x:function(e){return Oe(pe(e))},y:function(t){return Re(t.y&&(e>=t.y.length?Ze:fe(t,e)))}},Le[e]))}))]}),te&&(0,X.jsxs)("g",{children:[(0,X.jsx)(f.Z,{from:{x:re,y:W.top},pointerEvents:"none",stroke:C.Ej,strokeDasharray:"5,2",strokeWidth:1,to:{x:re,y:ge+W.top}}),oe.map((function(e,t){return(0,X.jsx)("circle",{cx:re,cy:e+1+W.top,fill:Le[t].stroke,fillOpacity:.1,pointerEvents:"none",r:4,stroke:xe,strokeOpacity:.1,strokeWidth:1},t)})),oe.map((function(e,t){return(0,X.jsx)("circle",{cx:re,cy:e+W.top,fill:Le[t].stroke,pointerEvents:"none",r:4,stroke:Le[t].stroke,strokeWidth:2},t)}))]})]}),te&&(0,X.jsxs)("div",{children:[oe.map((function(e,t){var n=fe(te,t);return t>=1&&Math.abs(oe[t-1]-e)<5*I.iI&&(e+=3*I.iI),(0,X.jsxs)(E.Z,{left:re>Ee?re-(0,F.Vs)(Q,te,t)*I.iI:re+I.iI,style:q,top:e-2*I.iI,children:[Q&&Q(te,t),!Q&&(0,X.jsxs)(L.ZP,{center:!0,small:!0,children:[n.toFixed?n.toFixed(3):n," ",null===K||void 0===K?void 0:K[t]]})]},t)})),(0,X.jsxs)(E.Z,{left:re>Ee?re-4*(0,F.Vs)(J,te):re,style:Y(Y({},q),{},{transform:"translateX(-65%)"}),top:ge+W.top,children:[J&&J(te),!J&&(0,X.jsx)(L.ZP,{center:!0,small:!0,children:pe(te).toFixed(3)})]})]})]})}));t.Z=function(e){var t=e.areaBetweenLines,n=e.data,i=(e.events,e.height),o=e.lineLegendNames,c=e.margin,l=void 0===c?{}:c,u=e.width,d=e.xAxisLabel,s=e.xLabelFormat,p=e.yAxisLabel,f=e.yLabelFormat,h=(0,r.Z)(e,B),m=Y(Y({},{bottom:3*I.iI,left:5*I.iI,right:3*I.iI,top:3*I.iI}),l);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)("div",{style:{display:"flex",height:i,marginBottom:I.iI,width:"100%"},children:[p&&(0,X.jsx)(_.Z,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,X.jsx)(P.Z,{children:(0,X.jsx)(L.ZP,{center:!0,muted:!0,small:!0,children:p})})}),(0,X.jsx)(j.Z,{mr:1}),(0,X.jsx)("div",{style:{height:i,width:"undefined"===typeof u?"100%":u},children:(0,X.jsx)(a.Z,{children:function(e){var r=e.width,i=e.height;return(0,X.jsx)(z,Y(Y({},h),{},{areaBetweenLines:t,data:n,height:i,lineLegendNames:o,margin:m,width:r,xLabelFormat:s,yLabelFormat:f}))}})})]}),d&&(0,X.jsx)("div",{style:{paddingLeft:p?36:0,paddingTop:4},children:(0,X.jsx)(L.ZP,{center:!0,muted:!0,small:!0,children:d})})]})}},45739:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var r=n(31969),i=function(e){var t=e||r.Z,n=t.brand,i=n.earth200,o=n.earth300,c=n.earth400,a=n.energy200,l=n.energy300,u=n.energy400,d=n.fire200,s=n.fire300,p=n.fire400,f=n.water200,h=n.water300,m=n.water400,v=n.wind200,x=n.wind300,b=n.wind400,y=t.chart;return[y.backgroundPrimary,y.backgroundSecondary,y.backgroundTertiary].concat([b,m,p,u,c,x,h,s,l,o,v,f,d,a,i])}},52359:function(e,t,n){"use strict";var r=n(9518).default.div.withConfig({displayName:"YAxisLabelContainer",componentId:"sc-qwp21x-0"})(["-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);white-space:nowrap;"]);t.Z=r},344:function(e,t,n){"use strict";n.d(t,{P5:function(){return i},Vs:function(){return o}});n(90211);var r=Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:2});function i(e){return"number"!==typeof e?e:e>=1e4?r.format(e):e.toString()}function o(e,t,n){var r,i;if("undefined"===typeof e||"undefined"===typeof t)return 0;var o=null===e||void 0===e||null===(r=e(t,n))||void 0===r||null===(i=r.props)||void 0===i?void 0:i.children;return(Array.isArray(o)?o:[o]).join("").length}},80906:function(e,t,n){"use strict";var r,i,o,c;n.d(t,{Q0:function(){return r},qs:function(){return i}}),function(e){e.ADD="add",e.AVERAGE="average",e.CLEAN_COLUMN_NAME="clean_column_name",e.COUNT="count",e.COUNT_DISTINCT="count_distinct",e.CUSTOM="custom",e.DIFF="diff",e.DROP_DUPLICATE="drop_duplicate",e.EXPAND_COLUMN="expand_column",e.EXPLODE="explode",e.FILTER="filter",e.FIRST="first",e.FIX_SYNTAX_ERRORS="fix_syntax_errors",e.GROUP="group",e.IMPUTE="impute",e.JOIN="join",e.LAST="last",e.LIMIT="limit",e.MAX="max",e.MEDIAN="median",e.MIN="min",e.MODE="mode",e.NORMALIZE="normalize",e.REFORMAT="reformat",e.REMOVE="remove",e.REMOVE_OUTLIERS="remove_outliers",e.SCALE="scale",e.SELECT="select",e.SHIFT_DOWN="shift_down",e.SHIFT_UP="shift_up",e.SORT="sort",e.STANDARDIZE="standardize",e.SUM="sum",e.UNION="union",e.UPDATE_TYPE="update_type",e.UPDATE_VALUE="update_value"}(r||(r={})),function(e){e.COLUMN="column",e.ROW="row"}(i||(i={})),function(e){e.NOT_APPLIED="not_applied",e.COMPLETED="completed"}(o||(o={})),function(e){e.FEATURE="feature"}(c||(c={}))},86422:function(e,t,n){"use strict";n.d(t,{$W:function(){return p},DA:function(){return s},HX:function(){return m},J8:function(){return h},Lq:function(){return u},Qj:function(){return v},Ut:function(){return g},V4:function(){return y},VZ:function(){return f},dO:function(){return d},f2:function(){return b},iZ:function(){return x},t6:function(){return c},tf:function(){return l}});var r,i,o,c,a=n(82394);!function(e){e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(c||(c={}));var l,u,d=(r={},(0,a.Z)(r,c.PYTHON,"PY"),(0,a.Z)(r,c.R,"R"),(0,a.Z)(r,c.SQL,"SQL"),(0,a.Z)(r,c.YAML,"YAML"),r);!function(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"}(l||(l={})),function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(u||(u={}));var s,p=[l.CHART,l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SCRATCHPAD,l.SENSOR,l.TRANSFORMER],f=[l.DATA_EXPORTER,l.DATA_LOADER],h=[l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],m=[l.DATA_EXPORTER,l.DATA_LOADER,l.DBT,l.TRANSFORMER],v=[l.CHART,l.SCRATCHPAD,l.SENSOR],x=[l.EXTENSION,l.SCRATCHPAD];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(s||(s={}));var b=[l.CUSTOM,l.DATA_EXPORTER,l.TRANSFORMER],y=(i={},(0,a.Z)(i,l.CUSTOM,"Custom"),(0,a.Z)(i,l.DATA_EXPORTER,"Data exporter"),(0,a.Z)(i,l.DATA_LOADER,"Data loader"),(0,a.Z)(i,l.EXTENSION,"Extension"),(0,a.Z)(i,l.SCRATCHPAD,"Scratchpad"),(0,a.Z)(i,l.SENSOR,"Sensor"),(0,a.Z)(i,l.TRANSFORMER,"Transformer"),i),g=[l.DATA_LOADER,l.TRANSFORMER,l.DATA_EXPORTER,l.SENSOR];o={},(0,a.Z)(o,l.DATA_EXPORTER,"DE"),(0,a.Z)(o,l.DATA_LOADER,"DL"),(0,a.Z)(o,l.SCRATCHPAD,"SP"),(0,a.Z)(o,l.SENSOR,"SR"),(0,a.Z)(o,l.TRANSFORMER,"TF")},68805:function(e,t,n){"use strict";n.r(t);var r=n(77837),i=n(75582),o=n(82394),c=n(38860),a=n.n(c),l=n(82684),u=n(92083),d=n.n(u),s=n(16634),p=n(67971),f=n(87372),h=n(68735),m=n(87465),v=n(41788),x=n(86673),b=n(55378),y=n(19711),g=n(82531),E=n(23831),T=n(73942),O=n(43032),Z=n(92953),A=n(9518),R=n(44162),k=n(24224),_=n(28598);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e){var t=e.pipeline,n=(0,l.useContext)(A.ThemeContext),r=(0,l.useState)(null),c=r[0],a=r[1],u=t.uuid,v=g.ZP.pipelines.detail(u,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,j=(0,l.useMemo)((function(){return L(L({},null===v||void 0===v?void 0:v.pipeline),{},{uuid:u})}),[v,u]),P=g.ZP.pipeline_schedules.pipelines.list(u).data,D=(0,l.useMemo)((function(){return null===P||void 0===P?void 0:P.pipeline_schedules}),[P]),S=(0,l.useMemo)((function(){return(0,k.HK)(null===j||void 0===j?void 0:j.blocks,(function(e){return e.uuid}))||{}}),[j]),C={pipeline_uuid:u};(c||0===c)&&(C.pipeline_schedule_id=Number(c));var N=g.ZP.monitor_stats.detail("block_run_time",C),M=N.data,I=N.mutate;(0,l.useEffect)((function(){I(c)}),[I,c]);var w=((null===M||void 0===M?void 0:M.monitor_stat)||{}).stats,F=(0,l.useMemo)((function(){for(var e=new Date,t=[],n=0;n<90;n++)t.unshift(e.toISOString().split("T")[0]),e.setDate(e.getDate()-1);return t}),[]),U=(0,l.useMemo)((function(){if(w)return Object.entries(w).reduce((function(e,t){var n=(0,i.Z)(t,2),r=n[0],c=n[1].data;return L(L({},e),{},(0,o.Z)({},r,F.map((function(e){return{x:e,y:e in c?[c[e]]:null}}))))}),{})}),[w]),X=(0,l.useMemo)((function(){var e=[];return e.push({bold:!0,label:function(){return"Monitors"}}),e}),[j]);return(0,_.jsx)(m.Z,{breadcrumbs:X,monitorType:Z.a.BLOCK_RUNTIME,pipeline:j,subheader:(0,_.jsx)(p.Z,{children:(0,_.jsxs)(b.Z,{backgroundColor:E.Z.interactive.defaultBackground,label:"Trigger:",onChange:function(e){var t=e.target.value;"initial"!==t?(a(t),I(t)):(I(),a(null))},value:c||"initial",children:[(0,_.jsx)("option",{value:"initial",children:"All"}),D&&D.map((function(e){return(0,_.jsx)("option",{value:e.id,children:e.name},e.id)}))]})}),children:(0,_.jsx)(x.Z,{mx:2,children:U&&Object.entries(U).map((function(e,t){var r,o,c=(0,i.Z)(e,2),a=c[0],l=c[1];return(0,_.jsxs)(x.Z,{mt:2,children:[(0,_.jsxs)(p.Z,{alignItems:"center",children:[(0,_.jsx)(x.Z,{mx:1,children:(0,_.jsx)(s.Z,{color:(0,R.qn)(null===(r=S[a])||void 0===r?void 0:r.type,{blockColor:null===(o=S[a])||void 0===o?void 0:o.color,theme:n}).accent,size:O.ZG,square:!0})}),(0,_.jsx)(f.Z,{level:4,children:a})]}),(0,_.jsx)("div",{style:{backgroundColor:E.Z.background.chartBlock,borderRadius:"".concat(T.TR,"px"),marginTop:"8px"},children:(0,_.jsx)(h.Z,{data:l,getX:function(e){return d()(e.x).valueOf()},gridProps:{stroke:"black",strokeDasharray:null,strokeOpacity:.2},height:200,hideGridX:!0,margin:{top:10,bottom:30,left:35,right:-1},noCurve:!0,renderXTooltipContent:function(e){return(0,_.jsx)(y.ZP,{center:!0,inverted:!0,small:!0,children:d()(e.x).format("MMM DD")})},renderYTooltipContent:function(e){var t,n=null===e||void 0===e||null===(t=e.y)||void 0===t?void 0:t[0];return void 0!==n&&(0,_.jsxs)(y.ZP,{center:!0,inverted:!0,small:!0,children:[n.toFixed?n.toFixed(3):n,"s"]})},thickStroke:!0,xLabelFormat:function(e){return d()(e).format("MMM DD")},xLabelRotate:!1})})]},"".concat(a,"_").concat(t))}))})})}P.getInitialProps=function(){var e=(0,r.Z)(a().mark((function e(t){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.query.pipeline,e.abrupt("return",{pipeline:{uuid:n}});case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t.default=(0,v.Z)(P)},76017:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors/block-runtime",function(){return n(68805)}])}},function(e){e.O(0,[3662,3850,2083,5896,2714,9832,2344,9386,6166,2626,9774,2888,179],(function(){return t=76017,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7713],{89677:function(n,_,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors",function(){return i(67400)}])}},function(n){n.O(0,[3850,2083,5896,2714,2344,9386,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7713],{89677:function(n,_,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors",function(){return i(67400)}])}},function(n){n.O(0,[3850,2083,5896,2714,2344,9386,6166,2626,7400,9774,2888,179],(function(){return _=89677,n(n.s=_);var _}));var _=n.O();_N_E=_}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8662],{62976:function(e,n,t){"use strict";t.d(n,{Z:function(){return R}});var r=t(82394),i=t(21831),o=t(82684),u=t(10919),l=t(12691),c=t.n(l),a=t(34376),s=t.n(a),d=t(9518),p=t(63068),f=t(44628),h=t(6508),m=t(67971),v=t(19711),g=t(23831),b=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},x=t(2005),O=t(31012),j=t(37391),w=t(6753),Z=t(49125),P=t(20567),E=t(24224),k=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 D=2*Z.iI+O.dN,I=20*Z.iI,C=d.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 ")}),j.w5,(function(e){return!e.noBorderBottom&&"\n border-bottom: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderRight&&"\n border-right: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderTop&&"\n border-top: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return"\n color: ".concat((e.theme.content||b.Z.content).default,";\n ")}),(function(e){return"\n height: ".concat(e.columnHeaderHeight||D,"px;\n ")}),O.iD,x.ry,(function(e){return"\n background-color: ".concat((e.theme.background||b.Z.background).table,";\n border-bottom: 1px solid ").concat((e.theme.borders||b.Z.borders).medium,";\n border-right: 1px solid ").concat((e.theme.borders||b.Z.borders).medium,";\n ")}),1*Z.iI);function T(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/(I-2*Z.iI));return Math.max(r,1)*O.dN+2*Z.iI}function N(e){var n=e.columnHeaderHeight,t=e.columns,r=e.data,l=e.disableScrolling,a=e.height,j=e.index,_=e.invalidValues,C=e.maxHeight,N=e.numberOfIndexes,R=e.previewIndexes,H=e.renderColumnHeader,M=e.width,A=(0,o.useContext)(d.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 j&&r&&j.length===r.length}),[r,j]),V=(0,o.useMemo)((function(){var e=[];return(0,E.w6)(N).forEach((function(n,t){var o=8.7*String(null===r||void 0===r?void 0:r.length).length;if(U){var u=j.map((function(e){return N>=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,j,N,U]),F=t.map((function(e){return null===e||void 0===e?void 0:e.Header})).slice(1),G=(0,o.useMemo)((function(){return y()}),[]),X=(0,o.useMemo)((function(){var e=M-(Math.max.apply(Math,(0,i.Z)(V))+1.5*Z.iI+G),n=t.length-1,r=I;return r*n<e&&(r=e/n),{width:r}}),[t,V,G,M]),W=(0,f.useTable)({columns:t,data:r,defaultColumn:X},f.useBlockLayout,h.useSticky),q=W.getTableBodyProps,J=W.getTableProps,Y=W.headerGroups,z=W.prepareRow,K=W.rows,Q=s().query.slug,$=void 0===Q?[]:Q,ee=new Set((null===R||void 0===R?void 0:R.removedRows)||[]),ne=(0,o.useCallback)((function(e){var n=e.index,t=e.style,r=K[n];z(r);var i=r.original,l=ee.has(n);return(0,k.jsx)("div",S(S({},r.getRowProps({style:S(S({},t),{},{width:"auto"})})),{},{className:"tr",children:r.cells.map((function(e,t){var r,a=t<=N-1,s=e.getCellProps(),d=e.column.id,p=null===_||void 0===_||null===(r=_[d])||void 0===r?void 0:r.includes(n),f=S({},s.style);a&&(f.fontFamily=x.Vp,f.left=0,f.position="sticky",f.textAlign=j?"right":"center",f.width=V[t]);var h,g=i[t-N],y=F.indexOf(d);if(p&&(f.color=b.Z.interactive.dangerBorder),l&&(f.backgroundColor=b.Z.background.danger),Array.isArray(g)||"object"===typeof g)try{g=JSON.stringify(g)}catch(O){g="Error: cannot display value"}return a&&(U?(h=j[n],Array.isArray(h)&&(h=h[t])):h=e.render("Cell")),(0,o.createElement)("div",S(S({},s),{},{className:"td ".concat(a?"td-index-column":""),key:"".concat(t,"-").concat(g),style:f}),h,!a&&(0,k.jsxs)(m.Z,{justifyContent:"space-between",children:[(0,k.jsxs)(v.ZP,{danger:p,default:!0,wordBreak:!0,children:[!0===g&&"true",!1===g&&"false",(null===g||"null"===g)&&"null",!0!==g&&!1!==g&&null!==g&&"null"!==g&&g]}),p&&(0,k.jsx)(c(),{as:(0,P.o_)(w.mW,y),href:"/datasets/[...slug]",passHref:!0,children:(0,k.jsx)(u.Z,{danger:!0,children:"View all"})})]}))}))}))}),[j,_,V,N,z,K,$]),te=(0,o.useMemo)((function(){var e;return C?(e=(0,E.Sm)(K.map(T)),e+=n||D-O.dN):(e=a,e-=n||D),e}),[n,T,a,C,K]),re=(0,o.useMemo)((function(){return(0,k.jsx)(p.S_,{estimatedItemSize:D,height:te,itemCount:null===K||void 0===K?void 0:K.length,itemSize:function(e){return T(K[e])},outerRef:L,style:{maxHeight:C,pointerEvents:l?"none":null},children:ne})}),[te,L,ne,K]);return(0,k.jsx)("div",S(S({},J()),{},{className:"table sticky",style:{width:M},children:(0,k.jsxs)("div",S(S({},q()),{},{className:"body",children:[(0,k.jsx)("div",{className:"header",ref:B,children:Y.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<=N-1,i=e.getHeaderProps(),u=S({},i.style);return r?(u.fontFamily=x.Vp,u.left=0,u.position="sticky",u.textAlign="center",u.width=V[n],u.minWidth=V[n]):H?t=H(e,n-N,{width:X.width}):(t=e.render("Header"),u.color=(A||g.Z).content.default,u.padding=1*Z.iI,u.minWidth=X.width),(0,o.createElement)("div",S(S({},i),{},{className:"th",key:e.id,style:u,title:r?"Row number":void 0}),t)})))}))}),re]}))}))}var R=function(e){var n=e.columnHeaderHeight,t=e.columns,i=e.disableScrolling,u=e.height,l=e.index,c=e.invalidValues,a=e.maxHeight,s=e.noBorderBottom,d=e.noBorderLeft,p=e.noBorderRight,f=e.noBorderTop,h=e.previewIndexes,m=e.renderColumnHeader,v=e.rows,g=e.width,b=(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,E.w6)(b).map((function(e,n){return{Header:(0,E.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,b]);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,k.jsx)(C,{columnHeaderHeight:n,disableScrolling:i,height:u,maxHeight:(a||0)+37,noBorderBottom:s,noBorderLeft:d,noBorderRight:p,noBorderTop:f,children:(0,k.jsx)(N,{columnHeaderHeight:n,columns:y,data:v,disableScrolling:i,height:u,index:l,invalidValues:c,maxHeight:a,numberOfIndexes:b,previewIndexes:h,renderColumnHeader:m,width:g})})}},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),a=t(66050),s=t(60328),d=t(16634),p=t(10919),f=t(98781),h=t(86673),m=t(87815),v=t(19711),g=t(10503),b=t(49125),y=t(44162),x=t(24224),O=t(28598);n.Z=function(e){var n=e.blockRuns,t=e.onClickRow,i=e.pipeline,u=e.selectedRun,j=(0,r.useContext)(c.ThemeContext),w=(i||{}).uuid,Z=(0,r.useMemo)((function(){return i.blocks||[]}),[i]),P=(0,r.useMemo)((function(){return(0,x.HK)(Z,(function(e){return e.uuid}))}),[Z]);return(0,O.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,x=e.created_at,Z=e.id,E=e.pipeline_schedule_id,k=e.pipeline_schedule_name,_=e.status,S=c,D=S.split(":");f.qL.INTEGRATION===i.type&&(S=D[0],r=D[1],u=D[2]);var I=P[S];return I||(I=P[D[0]]),[(0,O.jsx)(v.ZP,{monospace:!0,default:!0,children:x}),(0,O.jsx)(v.ZP,{danger:a.V.FAILED===_,default:a.V.CANCELLED===_,info:a.V.INITIAL===_,monospace:!0,success:a.V.COMPLETED===_,warning:a.V.RUNNING===_,children:_}),(0,O.jsx)(o(),{as:"/pipelines/".concat(w,"/triggers/").concat(E),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,O.jsx)(p.Z,{bold:!0,sameColorAsText:!0,children:k})}),(0,O.jsx)(o(),{as:"/pipelines/".concat(w,"/edit?block_uuid=").concat(S),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,O.jsxs)(p.Z,{bold:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,O.jsx)(d.Z,{color:(0,y.qn)(null===(n=I)||void 0===n?void 0:n.type,{blockColor:null===(t=I)||void 0===t?void 0:t.color,theme:j}).accent,size:1.5*b.iI,square:!0}),(0,O.jsx)(h.Z,{mr:1}),(0,O.jsxs)(v.ZP,{monospace:!0,children:[S,r&&": ",r&&(0,O.jsx)(v.ZP,{default:!0,inline:!0,monospace:!0,children:r}),u>=0&&": ",u>=0&&(0,O.jsx)(v.ZP,{default:!0,inline:!0,monospace:!0,children:u})]})]})}),(0,O.jsx)(v.ZP,{monospace:!0,default:!0,children:m||"-"}),(0,O.jsx)(s.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(w,"/logs?block_run_id[]=").concat(Z))},children:(0,O.jsx)(g.B4,{default:!0,size:2*b.iI})})]})),uuid:"block-runs"})}},64155:function(e,n,t){"use strict";t.d(n,{Eh:function(){return c},ht:function(){return s},t0:function(){return a}});var r=t(9518),i=t(82386),o=t(1286),u=t(31012),l=t(49125),c=(l.iI,o.O$+3*l.iI+u.dN),a=r.default.div.withConfig({displayName:"indexstyle__SidekickContainerStyle",componentId:"sc-15ofupc-0"})(["position:relative;width:fit-content;"," ",""],(function(e){return"\n height: calc(100vh - ".concat(i.uX,"px - ").concat(e.heightOffset,"px);\n ")}),(function(e){return e.fullWidth&&"\n width: calc(100% - ".concat(e.widthOffset||0,"px);\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__PaddingContainerStyle",componentId:"sc-15ofupc-1"})(["padding:","px;",""],2*l.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}))},19395:function(e,n,t){"use strict";t.d(n,{IJ:function(){return s},Vx:function(){return p},eI:function(){return d},gU:function(){return h},tL:function(){return f},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 a(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 s(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,r=n.completed_at,i=n.started_at,u=n.status,c=null;i&&r&&(c=l()(r).valueOf()-l()(i).valueOf());return a(a({},e),{},(0,o.Z)({},t,{runtime:c,status:u}))}),{})}function d(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 p(e){return d(e).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(i||(i={}));var f=(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*f[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),a=t(83455),s=t(27125),d=t(60328),p=t(34744),f=t(87372),h=t(2626),m=t(47409),v=t(41788),g=t(86673),b=t(82531),y=t(26304),x=t(62976),O=t(86532),j=t(67971),w=t(54283),Z=t(19711),P=t(82635),E=t(64155),k=t(19395),_=t(90211),S=t(28598),D=["blockRuns","columns","dataType","height","heightOffset","loadingData","pipeline","renderColumnHeader","rows","selectedRun","textData"];function I(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?I(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var T=t(59920),N=t(49125),R=t(96510),H=t(66653);function M(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function A(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?M(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):M(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}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),I=v[0],M=v[1],B=t.uuid,L=b.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]),V=b.ZP.pipeline_runs.detail(r.id,{},{refreshInterval:3e3,revalidateOnFocus:!0}).data,F=(0,c.useMemo)((function(){return null===V||void 0===V?void 0:V.pipeline_run}),[V]),G=(0,a.Db)(b.ZP.pipeline_runs.useUpdate(null===F||void 0===F?void 0:F.id),{onSuccess:function(e){return(0,R.wD)(e,{onErrorCallback:function(e,n){return M({errors:n,response:e})}})}}),X=(0,i.Z)(G,2),W=X[0],q=X[1].isLoading,J=b.ZP.outputs.block_runs.list(null===u||void 0===u?void 0:u.id),Y=J.data,z=J.loading,K=(null===Y||void 0===Y||null===(n=Y.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)(s.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,a=e.rows,s=e.selectedRun,d=e.textData,p=C({},(0,y.Z)(e,D));p.blockStatus=(0,k.IJ)(n);var h=(0,S.jsx)(g.Z,{ml:2,children:(0,S.jsx)(Z.ZP,{children:"This block run has no output."})}),m=a&&a.length>0?(0,S.jsx)(x.Z,{columnHeaderHeight:c?E.Eh:0,columns:t,height:i-o-90,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,renderColumnHeader:c,rows:a}):h,v=(0,_.Pb)(d)?JSON.stringify(JSON.parse(d),null,2):d,b=d?(0,S.jsx)(g.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:[!s&&(0,S.jsx)(O.Z,C(C({},p),{},{height:i,heightOffset:o||0,pipeline:l})),s&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(g.Z,{pl:2,py:3,style:{position:"fixed"},children:(0,S.jsx)(f.Z,{level:4,muted:!0,children:"Block Output"})}),(0,S.jsxs)("div",{style:{position:"relative",top:"75px"},children:[u&&(0,S.jsx)(g.Z,{mt:2,children:(0,S.jsx)(j.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&&b]})]})]})}(A(A({},e),{},{blockRuns:ne,columns:te,dataType:ee,loadingData:z,rows:re,selectedRun:u,showDynamicBlocks:!0,textData:$}))},errors:I,pageName:T.M.RUNS,pipeline:U,setErrors:M,subheader:(null===F||void 0===F?void 0:F.status)&&F.status!==m.V.COMPLETED&&(0,S.jsx)(d.Z,{danger:!0,loading:q,onClick:function(e){(0,H.j)(e),W({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(T.M.RUNS,"_").concat(B,"_").concat(null===F||void 0===F?void 0:F.id),children:[(0,S.jsx)(g.Z,{mt:N.cd,px:N.cd,children:(0,S.jsx)(f.Z,{level:5,children:"Block runs"})}),(0,S.jsx)(p.Z,{light:!0,mt:N.cd,short:!0}),ie]})}B.getInitialProps=function(){var e=(0,r.Z)(l().mark((function e(n){var t,r,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query,r=t.pipeline,i=t.run,e.abrupt("return",{pipeline:{uuid:r},pipelineRun:{id:i}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var L=(0,v.Z)(B)},39525:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs/[run]",function(){return t(23588)}])}},function(e){e.O(0,[3850,2083,5896,4804,1774,5872,2125,2344,9386,1830,2626,4463,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],{62976:function(e,n,t){"use strict";t.d(n,{Z:function(){return R}});var r=t(82394),i=t(21831),o=t(82684),u=t(10919),l=t(12691),c=t.n(l),a=t(34376),s=t.n(a),d=t(9518),p=t(63068),f=t(44628),h=t(6508),m=t(67971),v=t(19711),g=t(23831),b=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},x=t(2005),O=t(31012),j=t(37391),w=t(6753),Z=t(49125),P=t(20567),E=t(24224),k=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 D=2*Z.iI+O.dN,I=20*Z.iI,C=d.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 ")}),j.w5,(function(e){return!e.noBorderBottom&&"\n border-bottom: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderRight&&"\n border-right: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderTop&&"\n border-top: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return"\n color: ".concat((e.theme.content||b.Z.content).default,";\n ")}),(function(e){return"\n height: ".concat(e.columnHeaderHeight||D,"px;\n ")}),O.iD,x.ry,(function(e){return"\n background-color: ".concat((e.theme.background||b.Z.background).table,";\n border-bottom: 1px solid ").concat((e.theme.borders||b.Z.borders).medium,";\n border-right: 1px solid ").concat((e.theme.borders||b.Z.borders).medium,";\n ")}),1*Z.iI);function T(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/(I-2*Z.iI));return Math.max(r,1)*O.dN+2*Z.iI}function N(e){var n=e.columnHeaderHeight,t=e.columns,r=e.data,l=e.disableScrolling,a=e.height,j=e.index,_=e.invalidValues,C=e.maxHeight,N=e.numberOfIndexes,R=e.previewIndexes,H=e.renderColumnHeader,M=e.width,A=(0,o.useContext)(d.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 j&&r&&j.length===r.length}),[r,j]),V=(0,o.useMemo)((function(){var e=[];return(0,E.w6)(N).forEach((function(n,t){var o=8.7*String(null===r||void 0===r?void 0:r.length).length;if(U){var u=j.map((function(e){return N>=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,j,N,U]),F=t.map((function(e){return null===e||void 0===e?void 0:e.Header})).slice(1),G=(0,o.useMemo)((function(){return y()}),[]),X=(0,o.useMemo)((function(){var e=M-(Math.max.apply(Math,(0,i.Z)(V))+1.5*Z.iI+G),n=t.length-1,r=I;return r*n<e&&(r=e/n),{width:r}}),[t,V,G,M]),W=(0,f.useTable)({columns:t,data:r,defaultColumn:X},f.useBlockLayout,h.useSticky),q=W.getTableBodyProps,J=W.getTableProps,Y=W.headerGroups,z=W.prepareRow,K=W.rows,Q=s().query.slug,$=void 0===Q?[]:Q,ee=new Set((null===R||void 0===R?void 0:R.removedRows)||[]),ne=(0,o.useCallback)((function(e){var n=e.index,t=e.style,r=K[n];z(r);var i=r.original,l=ee.has(n);return(0,k.jsx)("div",S(S({},r.getRowProps({style:S(S({},t),{},{width:"auto"})})),{},{className:"tr",children:r.cells.map((function(e,t){var r,a=t<=N-1,s=e.getCellProps(),d=e.column.id,p=null===_||void 0===_||null===(r=_[d])||void 0===r?void 0:r.includes(n),f=S({},s.style);a&&(f.fontFamily=x.Vp,f.left=0,f.position="sticky",f.textAlign=j?"right":"center",f.width=V[t]);var h,g=i[t-N],y=F.indexOf(d);if(p&&(f.color=b.Z.interactive.dangerBorder),l&&(f.backgroundColor=b.Z.background.danger),Array.isArray(g)||"object"===typeof g)try{g=JSON.stringify(g)}catch(O){g="Error: cannot display value"}return a&&(U?(h=j[n],Array.isArray(h)&&(h=h[t])):h=e.render("Cell")),(0,o.createElement)("div",S(S({},s),{},{className:"td ".concat(a?"td-index-column":""),key:"".concat(t,"-").concat(g),style:f}),h,!a&&(0,k.jsxs)(m.Z,{justifyContent:"space-between",children:[(0,k.jsxs)(v.ZP,{danger:p,default:!0,wordBreak:!0,children:[!0===g&&"true",!1===g&&"false",(null===g||"null"===g)&&"null",!0!==g&&!1!==g&&null!==g&&"null"!==g&&g]}),p&&(0,k.jsx)(c(),{as:(0,P.o_)(w.mW,y),href:"/datasets/[...slug]",passHref:!0,children:(0,k.jsx)(u.Z,{danger:!0,children:"View all"})})]}))}))}))}),[j,_,V,N,z,K,$]),te=(0,o.useMemo)((function(){var e;return C?(e=(0,E.Sm)(K.map(T)),e+=n||D-O.dN):(e=a,e-=n||D),e}),[n,T,a,C,K]),re=(0,o.useMemo)((function(){return(0,k.jsx)(p.S_,{estimatedItemSize:D,height:te,itemCount:null===K||void 0===K?void 0:K.length,itemSize:function(e){return T(K[e])},outerRef:L,style:{maxHeight:C,pointerEvents:l?"none":null},children:ne})}),[te,L,ne,K]);return(0,k.jsx)("div",S(S({},J()),{},{className:"table sticky",style:{width:M},children:(0,k.jsxs)("div",S(S({},q()),{},{className:"body",children:[(0,k.jsx)("div",{className:"header",ref:B,children:Y.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<=N-1,i=e.getHeaderProps(),u=S({},i.style);return r?(u.fontFamily=x.Vp,u.left=0,u.position="sticky",u.textAlign="center",u.width=V[n],u.minWidth=V[n]):H?t=H(e,n-N,{width:X.width}):(t=e.render("Header"),u.color=(A||g.Z).content.default,u.padding=1*Z.iI,u.minWidth=X.width),(0,o.createElement)("div",S(S({},i),{},{className:"th",key:e.id,style:u,title:r?"Row number":void 0}),t)})))}))}),re]}))}))}var R=function(e){var n=e.columnHeaderHeight,t=e.columns,i=e.disableScrolling,u=e.height,l=e.index,c=e.invalidValues,a=e.maxHeight,s=e.noBorderBottom,d=e.noBorderLeft,p=e.noBorderRight,f=e.noBorderTop,h=e.previewIndexes,m=e.renderColumnHeader,v=e.rows,g=e.width,b=(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,E.w6)(b).map((function(e,n){return{Header:(0,E.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,b]);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,k.jsx)(C,{columnHeaderHeight:n,disableScrolling:i,height:u,maxHeight:(a||0)+37,noBorderBottom:s,noBorderLeft:d,noBorderRight:p,noBorderTop:f,children:(0,k.jsx)(N,{columnHeaderHeight:n,columns:y,data:v,disableScrolling:i,height:u,index:l,invalidValues:c,maxHeight:a,numberOfIndexes:b,previewIndexes:h,renderColumnHeader:m,width:g})})}},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),a=t(66050),s=t(60328),d=t(16634),p=t(10919),f=t(98781),h=t(86673),m=t(58180),v=t(19711),g=t(10503),b=t(49125),y=t(44162),x=t(24224),O=t(28598);n.Z=function(e){var n=e.blockRuns,t=e.onClickRow,i=e.pipeline,u=e.selectedRun,j=(0,r.useContext)(c.ThemeContext),w=(i||{}).uuid,Z=(0,r.useMemo)((function(){return i.blocks||[]}),[i]),P=(0,r.useMemo)((function(){return(0,x.HK)(Z,(function(e){return e.uuid}))}),[Z]);return(0,O.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,x=e.created_at,Z=e.id,E=e.pipeline_schedule_id,k=e.pipeline_schedule_name,_=e.status,S=c,D=S.split(":");f.qL.INTEGRATION===i.type&&(S=D[0],r=D[1],u=D[2]);var I=P[S];return I||(I=P[D[0]]),[(0,O.jsx)(v.ZP,{monospace:!0,default:!0,children:x}),(0,O.jsx)(v.ZP,{danger:a.V.FAILED===_,default:a.V.CANCELLED===_,info:a.V.INITIAL===_,monospace:!0,success:a.V.COMPLETED===_,warning:a.V.RUNNING===_,children:_}),(0,O.jsx)(o(),{as:"/pipelines/".concat(w,"/triggers/").concat(E),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,O.jsx)(p.Z,{bold:!0,sameColorAsText:!0,children:k})}),(0,O.jsx)(o(),{as:"/pipelines/".concat(w,"/edit?block_uuid=").concat(S),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,O.jsxs)(p.Z,{bold:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,O.jsx)(d.Z,{color:(0,y.qn)(null===(n=I)||void 0===n?void 0:n.type,{blockColor:null===(t=I)||void 0===t?void 0:t.color,theme:j}).accent,size:1.5*b.iI,square:!0}),(0,O.jsx)(h.Z,{mr:1}),(0,O.jsxs)(v.ZP,{monospace:!0,children:[S,r&&": ",r&&(0,O.jsx)(v.ZP,{default:!0,inline:!0,monospace:!0,children:r}),u>=0&&": ",u>=0&&(0,O.jsx)(v.ZP,{default:!0,inline:!0,monospace:!0,children:u})]})]})}),(0,O.jsx)(v.ZP,{monospace:!0,default:!0,children:m||"-"}),(0,O.jsx)(s.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(w,"/logs?block_run_id[]=").concat(Z))},children:(0,O.jsx)(g.B4,{default:!0,size:2*b.iI})})]})),uuid:"block-runs"})}},64155:function(e,n,t){"use strict";t.d(n,{Eh:function(){return c},ht:function(){return s},t0:function(){return a}});var r=t(9518),i=t(82386),o=t(1286),u=t(31012),l=t(49125),c=(l.iI,o.O$+3*l.iI+u.dN),a=r.default.div.withConfig({displayName:"indexstyle__SidekickContainerStyle",componentId:"sc-15ofupc-0"})(["position:relative;width:fit-content;"," ",""],(function(e){return"\n height: calc(100vh - ".concat(i.uX,"px - ").concat(e.heightOffset,"px);\n ")}),(function(e){return e.fullWidth&&"\n width: calc(100% - ".concat(e.widthOffset||0,"px);\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__PaddingContainerStyle",componentId:"sc-15ofupc-1"})(["padding:","px;",""],2*l.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}))},19395:function(e,n,t){"use strict";t.d(n,{IJ:function(){return s},Vx:function(){return p},eI:function(){return d},gU:function(){return h},tL:function(){return f},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 a(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 s(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,r=n.completed_at,i=n.started_at,u=n.status,c=null;i&&r&&(c=l()(r).valueOf()-l()(i).valueOf());return a(a({},e),{},(0,o.Z)({},t,{runtime:c,status:u}))}),{})}function d(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 p(e){return d(e).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(i||(i={}));var f=(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*f[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),a=t(83455),s=t(27125),d=t(60328),p=t(34744),f=t(87372),h=t(2626),m=t(47409),v=t(41788),g=t(86673),b=t(82531),y=t(26304),x=t(62976),O=t(86532),j=t(67971),w=t(54283),Z=t(19711),P=t(82635),E=t(64155),k=t(19395),_=t(90211),S=t(28598),D=["blockRuns","columns","dataType","height","heightOffset","loadingData","pipeline","renderColumnHeader","rows","selectedRun","textData"];function I(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?I(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var T=t(59920),N=t(49125),R=t(96510),H=t(66653);function M(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function A(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?M(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):M(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}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),I=v[0],M=v[1],B=t.uuid,L=b.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]),V=b.ZP.pipeline_runs.detail(r.id,{},{refreshInterval:3e3,revalidateOnFocus:!0}).data,F=(0,c.useMemo)((function(){return null===V||void 0===V?void 0:V.pipeline_run}),[V]),G=(0,a.Db)(b.ZP.pipeline_runs.useUpdate(null===F||void 0===F?void 0:F.id),{onSuccess:function(e){return(0,R.wD)(e,{onErrorCallback:function(e,n){return M({errors:n,response:e})}})}}),X=(0,i.Z)(G,2),W=X[0],q=X[1].isLoading,J=b.ZP.outputs.block_runs.list(null===u||void 0===u?void 0:u.id),Y=J.data,z=J.loading,K=(null===Y||void 0===Y||null===(n=Y.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)(s.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,a=e.rows,s=e.selectedRun,d=e.textData,p=C({},(0,y.Z)(e,D));p.blockStatus=(0,k.IJ)(n);var h=(0,S.jsx)(g.Z,{ml:2,children:(0,S.jsx)(Z.ZP,{children:"This block run has no output."})}),m=a&&a.length>0?(0,S.jsx)(x.Z,{columnHeaderHeight:c?E.Eh:0,columns:t,height:i-o-90,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,renderColumnHeader:c,rows:a}):h,v=(0,_.Pb)(d)?JSON.stringify(JSON.parse(d),null,2):d,b=d?(0,S.jsx)(g.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:[!s&&(0,S.jsx)(O.Z,C(C({},p),{},{height:i,heightOffset:o||0,pipeline:l})),s&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(g.Z,{pl:2,py:3,style:{position:"fixed"},children:(0,S.jsx)(f.Z,{level:4,muted:!0,children:"Block Output"})}),(0,S.jsxs)("div",{style:{position:"relative",top:"75px"},children:[u&&(0,S.jsx)(g.Z,{mt:2,children:(0,S.jsx)(j.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&&b]})]})]})}(A(A({},e),{},{blockRuns:ne,columns:te,dataType:ee,loadingData:z,rows:re,selectedRun:u,showDynamicBlocks:!0,textData:$}))},errors:I,pageName:T.M.RUNS,pipeline:U,setErrors:M,subheader:(null===F||void 0===F?void 0:F.status)&&F.status!==m.V.COMPLETED&&(0,S.jsx)(d.Z,{danger:!0,loading:q,onClick:function(e){(0,H.j)(e),W({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(T.M.RUNS,"_").concat(B,"_").concat(null===F||void 0===F?void 0:F.id),children:[(0,S.jsx)(g.Z,{mt:N.cd,px:N.cd,children:(0,S.jsx)(f.Z,{level:5,children:"Block runs"})}),(0,S.jsx)(p.Z,{light:!0,mt:N.cd,short:!0}),ie]})}B.getInitialProps=function(){var e=(0,r.Z)(l().mark((function e(n){var t,r,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query,r=t.pipeline,i=t.run,e.abrupt("return",{pipeline:{uuid:r},pipelineRun:{id:i}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var L=(0,v.Z)(B)},39525:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs/[run]",function(){return t(23588)}])}},function(e){e.O(0,[3850,2083,5896,4804,1774,5872,2125,2344,9386,6166,8180,2626,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),s=t(9518),c=t(66050),a=t(60328),d=t(16634),p=t(10919),f=t(98781),v=t(86673),h=t(87815),b=t(19711),g=t(10503),m=t(49125),x=t(44162),j=t(24224),_=t(28598);n.Z=function(e){var n=e.blockRuns,t=e.onClickRow,r=e.pipeline,o=e.selectedRun,y=(0,i.useContext)(s.ThemeContext),Z=(r||{}).uuid,O=(0,i.useMemo)((function(){return r.blocks||[]}),[r]),k=(0,i.useMemo)((function(){return(0,j.HK)(O,(function(e){return e.uuid}))}),[O]);return(0,_.jsx)(h.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,s=e.block_uuid,h=e.completed_at,j=e.created_at,O=e.id,w=e.pipeline_schedule_id,P=e.pipeline_schedule_name,C=e.status,I=s,S=I.split(":");f.qL.INTEGRATION===r.type&&(I=S[0],i=S[1],o=S[2]);var T=k[I];return T||(T=k[S[0]]),[(0,_.jsx)(b.ZP,{monospace:!0,default:!0,children:j}),(0,_.jsx)(b.ZP,{danger:c.V.FAILED===C,default:c.V.CANCELLED===C,info:c.V.INITIAL===C,monospace:!0,success:c.V.COMPLETED===C,warning:c.V.RUNNING===C,children:C}),(0,_.jsx)(u(),{as:"/pipelines/".concat(Z,"/triggers/").concat(w),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,_.jsx)(p.Z,{bold:!0,sameColorAsText:!0,children:P})}),(0,_.jsx)(u(),{as:"/pipelines/".concat(Z,"/edit?block_uuid=").concat(I),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,_.jsxs)(p.Z,{bold:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,_.jsx)(d.Z,{color:(0,x.qn)(null===(n=T)||void 0===n?void 0:n.type,{blockColor:null===(t=T)||void 0===t?void 0:t.color,theme:y}).accent,size:1.5*m.iI,square:!0}),(0,_.jsx)(v.Z,{mr:1}),(0,_.jsxs)(b.ZP,{monospace:!0,children:[I,i&&": ",i&&(0,_.jsx)(b.ZP,{default:!0,inline:!0,monospace:!0,children:i}),o>=0&&": ",o>=0&&(0,_.jsx)(b.ZP,{default:!0,inline:!0,monospace:!0,children:o})]})]})}),(0,_.jsx)(b.ZP,{monospace:!0,default:!0,children:h||"-"}),(0,_.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(Z,"/logs?block_run_id[]=").concat(O))},children:(0,_.jsx)(g.B4,{default:!0,size:2*m.iI})})]})),uuid:"block-runs"})}},56681:function(e,n,t){"use strict";t.d(n,{G:function(){return j},Z:function(){return _}});var i=t(75582),r=t(82394),u=t(26304),o=t(32316),l=t(22673),s=t(86532),c=t(86673),a=t(19711),d=t(87815),p=t(49125),f=t(19395),v=t(28598),h=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function b(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?b(Object(t),!0).forEach((function(n){(0,r.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 m={uuid:"Run details"},x={uuid:"Dependency tree"},j=[x,m];function _(e){var n=e.height,t=e.heightOffset,r=e.pipeline,b=e.selectedRun,_=e.selectedTab,y=e.setSelectedTab,Z=g({},(0,u.Z)(e,h));b?Z.blockStatus=(0,f.IJ)(null===b||void 0===b?void 0:b.block_runs):Z.noStatus=!0;var O=(null===b||void 0===b?void 0:b.variables)||{};null!==b&&void 0!==b&&b.event_variables&&(O.event=b.event_variables);var k=[];O&&JSON.stringify(O,null,2).split("\n").forEach((function(e){k.push(" ".concat(e))}));var w=b&&[["Run ID",null===b||void 0===b?void 0:b.id],["Variables",(0,v.jsx)(l.Z,{language:"json",small:!0,source:k.join("\n")})]],P=b&&(0,v.jsx)(c.Z,{pb:p.cd,px:p.cd,children:(0,v.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:w.map((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];return[(0,v.jsx)(a.ZP,{monospace:!0,muted:!0,children:t}),(0,v.jsx)(a.ZP,{monospace:!0,textOverflow:!0,children:r})]})),uuid:"LogDetail"})}),C=_&&y;return(0,v.jsxs)(v.Fragment,{children:[C&&(0,v.jsx)(c.Z,{py:p.cd,children:(0,v.jsx)(o.Z,{onClickTab:y,selectedTabUUID:null===_||void 0===_?void 0:_.uuid,tabs:j})}),(!C||x.uuid===(null===_||void 0===_?void 0:_.uuid))&&(0,v.jsx)(s.Z,g(g({},Z),{},{height:n,heightOffset:(t||0)+(C?76:0),pipeline:r})),m.uuid===(null===_||void 0===_?void 0:_.uuid)&&P]})}},22673:function(e,n,t){"use strict";var i=t(82684),r=t(73199),u=t.n(r),o=t(71593),l=t(9518),s=t(65292),c=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,v=e.source,h=e.wrapLines,b=(0,i.useContext)(l.ThemeContext);return(0,p.jsx)(u(),{source:v,renderers:{code:function(e){var i=e.value;return(0,p.jsx)(o.Z,{customStyle:{backgroundColor:(b.background||c.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:(b.content||c.Z.content).muted},language:n,showLineNumbers:r,style:s._4,useInlineStyles:!0,wrapLines:h,children:i})}}})}},32316:function(e,n,t){"use strict";t.d(n,{Z:function(){return h}});var i=t(82684),r=t(60328),u=t(67971),o=t(882),l=t(86673),s=t(99994),c=t(9518),a=t(49125),d=t(37391),p=c.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),v=t(28598);var h=function(e){var n=e.allowScroll,t=e.contained,c=e.noPadding,d=e.onClickTab,h=e.selectedTabUUID,b=e.small,g=e.tabs,m=(0,i.useMemo)((function(){var e=g.length,n=[];return g.forEach((function(t,i){var c=t.Icon,p=t.IconSelected,g=t.label,m=t.uuid,x=m===h,j=x&&p||c,_=g?g():m,y=(0,v.jsxs)(u.Z,{alignItems:"center",children:[j&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(j,{default:!x,size:2*a.iI}),(0,v.jsx)(l.Z,{mr:1})]}),_]});i>=1&&e>=2&&n.push((0,v.jsx)("div",{style:{marginLeft:1.5*a.iI}},"spacing-".concat(m))),x?n.push((0,v.jsx)(o.Z,{backgroundGradient:s.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:b,onClick:function(e){(0,f.j)(e),d(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:b,children:y},m)):n.push((0,v.jsx)("div",{style:{padding:4},children:(0,v.jsx)(r.Z,{borderLess:!0,compact:b,default:!0,onClick:function(e){(0,f.j)(e),d(t)},outline:!0,small:b,children:y},"button-tab-".concat(m))}))})),n}),[d,h,g]),x=(0,v.jsx)(u.Z,{alignItems:"center",children:m});return t?x:(0,v.jsx)(p,{allowScroll:n,noPadding:c,children:x})}},77980:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return G}});var i=t(77837),r=t(75582),u=t(82394),o=t(38860),l=t.n(o),s=t(82684),c=t(83455),a=t(34376),d=t(16953),p=t(27125),f=t(60328),v=t(32316),h=t(67971),b=t(9518),g=t(23831),m=b.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 ")})),x=t(51099),j=t(2626),_=t(28598);var y=function(e){var n=e.size;return(0,_.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("g",{"clip-path":"url(#clip0_3007_70027)",children:(0,_.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,_.jsxs)("defs",{children:[(0,_.jsxs)("linearGradient",{id:"paint0_linear_3007_70027",x1:"11.75",y1:".250001",x2:"11.75",y2:"23.1475",gradientUnits:"userSpaceOnUse",children:[(0,_.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,_.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,_.jsx)("clipPath",{id:"clip0_3007_70027",children:(0,_.jsx)("path",{fill:"#fff",transform:"matrix(0 1 1 0 0 0)",d:"M0 0h24v24H0z"})})]})]})},Z=t(47409),O=t(97496),k=t(41788),w=t(55378),P=t(86673),C=t(82531),I=t(56681),S=t(66166),T=t(10503),R=t(59920),E=t(66050),N=t(49125),D=t(33766),L=t(7715),M=t(96510),U=t(59e3);function H(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 V(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?H(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):H(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var z={Icon:T.mR,IconSelected:y,label:function(){return"Pipeline runs"},uuid:"pipeline_runs"},A={Icon:T.Re,IconSelected:d.Z,label:function(){return"Block runs"},uuid:"block_runs"},F=[z,A];function B(e){var n=e.pipeline,t=(0,a.useRouter)(),i=(0,s.useState)(null),u=i[0],o=i[1],l=(0,s.useState)(z),d=l[0],b=l[1],g=(0,s.useState)(I.G[0]),y=g[0],k=g[1],T=(0,s.useState)(null),H=T[0],B=T[1],G=n.uuid,W=C.ZP.pipelines.detail(G,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,q=(0,s.useMemo)((function(){return V(V({},null===W||void 0===W?void 0:W.pipeline),{},{uuid:G})}),[W,G]),X=C.ZP.block_runs.list((0,L.gR)(H,["tab"]),{},{pauseFetch:!H}).data,J=(0,s.useMemo)((function(){return(null===X||void 0===X?void 0:X.block_runs)||[]}),[X]),K=(0,s.useState)(),Y=K[0],Q=K[1],$=(0,U.iV)(),ee=(0,S.Z)($);(0,s.useEffect)((function(){var e=$.pipeline_run_id,n=$.status;if(!(0,L.Xy)($,ee)){var t=V(V({},ee),$);e?t.pipeline_run_id=e:t.pipeline_uuid=G,n?t.status=n:delete t.status,B(t)}}),[G,$,ee]);var ne={_limit:25,_offset:25*(null!==$&&void 0!==$&&$.page?$.page:0),pipeline_uuid:G};null!==$&&void 0!==$&&$.status&&(ne.status=$.status);var te=C.ZP.pipeline_runs.list(ne,{refreshInterval:5e3}),ie=te.data,re=te.mutate,ue=(0,s.useMemo)((function(){return(null===ie||void 0===ie?void 0:ie.pipeline_runs)||[]}),[ie]),oe=(0,s.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===E.V.INITIAL||n===E.V.RUNNING})),se=(0,c.Db)(C.ZP.pipelines.useUpdate(G),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){re()},onErrorCallback:function(e,n){return o({errors:n,response:e})}})}}),ce=(0,r.Z)(se,2),ae=ce[0],de=ce[1].isLoading,pe=(0,S.Z)(d);(0,s.useEffect)((function(){var e=$.tab;e&&b(F.find((function(n){return n.uuid===e})))}),[$,d,pe]);var fe=(0,s.useMemo)((function(){var e=null!==$&&void 0!==$&&$.page?$.page:0;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(O.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,_.jsx)(P.Z,{p:2,children:(0,_.jsx)(x.Z,{maxPages:9,onUpdate:function(e){var n=Number(e),i=V(V({},$),{},{page:n>=0?n:0});t.push("/pipelines/[pipeline]/runs","/pipelines/".concat(G,"/runs?").concat((0,U.uM)(i)))},page:Number(e),totalPages:Math.ceil(oe/25)})})]})}),[re,q,ue,$,Y,oe]),ve=(0,s.useMemo)((function(){return(0,_.jsx)(p.Z,{blockRuns:J,pipeline:q})}),[J,q]);return(0,_.jsxs)(j.Z,{afterHidden:z.uuid===(null===d||void 0===d?void 0:d.uuid)&&!Y,breadcrumbs:[{label:function(){return"Runs"}}],buildSidekick:z.uuid===(null===d||void 0===d?void 0:d.uuid)?function(e){return(0,I.Z)(V(V({},e),{},{selectedRun:Y,selectedTab:y,setSelectedTab:k}))}:function(e){return(0,I.Z)(e)},errors:u,pageName:R.M.RUNS,pipeline:q,setErrors:o,title:function(e){var n=e.name;return"".concat(n," runs")},uuid:"".concat(R.M.RUNS,"_").concat(G),children:[(0,_.jsx)(m,{children:(0,_.jsx)(P.Z,{py:1,children:(0,_.jsxs)(h.Z,{alignItems:"center",children:[le&&z.uuid===(null===d||void 0===d?void 0:d.uuid)&&(0,_.jsx)(P.Z,{pl:2,children:(0,_.jsx)(f.Z,{danger:!0,loading:de,onClick:function(){ae({pipeline:{status:E.V.CANCELLED}})},outline:!0,children:"Cancel running pipeline runs"})}),(0,_.jsx)(v.Z,{onClickTab:function(e){var n=e.uuid;B(null),(0,D.u7)({tab:n},{replaceParams:!0})},selectedTabUUID:null===d||void 0===d?void 0:d.uuid,tabs:F}),z.uuid===(null===d||void 0===d?void 0:d.uuid)&&(0,_.jsxs)(w.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?(B(null),(0,D.u7)({tab:z.uuid},{replaceParams:!0})):(0,D.u7)({page:0,status:e.target.value})},paddingRight:4*N.iI,placeholder:"Select run status",value:null===H||void 0===H?void 0:H.status,children:[(0,_.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(E.V).map((function(e){return(0,_.jsx)("option",{value:e,children:Z.D[e]},e)}))]})]})})}),z.uuid===(null===d||void 0===d?void 0:d.uuid)&&fe,A.uuid===(null===d||void 0===d?void 0:d.uuid)&&ve]})}B.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 G=(0,k.Z)(B)},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,2083,4804,1774,2524,2344,9386,1830,2626,4463,6532,4178,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),s=t(9518),c=t(66050),a=t(60328),d=t(16634),p=t(10919),f=t(98781),v=t(86673),h=t(58180),b=t(19711),g=t(10503),m=t(49125),x=t(44162),j=t(24224),_=t(28598);n.Z=function(e){var n=e.blockRuns,t=e.onClickRow,r=e.pipeline,o=e.selectedRun,y=(0,i.useContext)(s.ThemeContext),Z=(r||{}).uuid,O=(0,i.useMemo)((function(){return r.blocks||[]}),[r]),k=(0,i.useMemo)((function(){return(0,j.HK)(O,(function(e){return e.uuid}))}),[O]);return(0,_.jsx)(h.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,s=e.block_uuid,h=e.completed_at,j=e.created_at,O=e.id,w=e.pipeline_schedule_id,P=e.pipeline_schedule_name,C=e.status,I=s,S=I.split(":");f.qL.INTEGRATION===r.type&&(I=S[0],i=S[1],o=S[2]);var T=k[I];return T||(T=k[S[0]]),[(0,_.jsx)(b.ZP,{monospace:!0,default:!0,children:j}),(0,_.jsx)(b.ZP,{danger:c.V.FAILED===C,default:c.V.CANCELLED===C,info:c.V.INITIAL===C,monospace:!0,success:c.V.COMPLETED===C,warning:c.V.RUNNING===C,children:C}),(0,_.jsx)(u(),{as:"/pipelines/".concat(Z,"/triggers/").concat(w),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,_.jsx)(p.Z,{bold:!0,sameColorAsText:!0,children:P})}),(0,_.jsx)(u(),{as:"/pipelines/".concat(Z,"/edit?block_uuid=").concat(I),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,_.jsxs)(p.Z,{bold:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,_.jsx)(d.Z,{color:(0,x.qn)(null===(n=T)||void 0===n?void 0:n.type,{blockColor:null===(t=T)||void 0===t?void 0:t.color,theme:y}).accent,size:1.5*m.iI,square:!0}),(0,_.jsx)(v.Z,{mr:1}),(0,_.jsxs)(b.ZP,{monospace:!0,children:[I,i&&": ",i&&(0,_.jsx)(b.ZP,{default:!0,inline:!0,monospace:!0,children:i}),o>=0&&": ",o>=0&&(0,_.jsx)(b.ZP,{default:!0,inline:!0,monospace:!0,children:o})]})]})}),(0,_.jsx)(b.ZP,{monospace:!0,default:!0,children:h||"-"}),(0,_.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(Z,"/logs?block_run_id[]=").concat(O))},children:(0,_.jsx)(g.B4,{default:!0,size:2*m.iI})})]})),uuid:"block-runs"})}},56681:function(e,n,t){"use strict";t.d(n,{G:function(){return j},Z:function(){return _}});var i=t(75582),r=t(82394),u=t(26304),o=t(32316),l=t(22673),s=t(86532),c=t(86673),a=t(19711),d=t(58180),p=t(49125),f=t(19395),v=t(28598),h=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function b(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?b(Object(t),!0).forEach((function(n){(0,r.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 m={uuid:"Run details"},x={uuid:"Dependency tree"},j=[x,m];function _(e){var n=e.height,t=e.heightOffset,r=e.pipeline,b=e.selectedRun,_=e.selectedTab,y=e.setSelectedTab,Z=g({},(0,u.Z)(e,h));b?Z.blockStatus=(0,f.IJ)(null===b||void 0===b?void 0:b.block_runs):Z.noStatus=!0;var O=(null===b||void 0===b?void 0:b.variables)||{};null!==b&&void 0!==b&&b.event_variables&&(O.event=b.event_variables);var k=[];O&&JSON.stringify(O,null,2).split("\n").forEach((function(e){k.push(" ".concat(e))}));var w=b&&[["Run ID",null===b||void 0===b?void 0:b.id],["Variables",(0,v.jsx)(l.Z,{language:"json",small:!0,source:k.join("\n")})]],P=b&&(0,v.jsx)(c.Z,{pb:p.cd,px:p.cd,children:(0,v.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:w.map((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];return[(0,v.jsx)(a.ZP,{monospace:!0,muted:!0,children:t}),(0,v.jsx)(a.ZP,{monospace:!0,textOverflow:!0,children:r})]})),uuid:"LogDetail"})}),C=_&&y;return(0,v.jsxs)(v.Fragment,{children:[C&&(0,v.jsx)(c.Z,{py:p.cd,children:(0,v.jsx)(o.Z,{onClickTab:y,selectedTabUUID:null===_||void 0===_?void 0:_.uuid,tabs:j})}),(!C||x.uuid===(null===_||void 0===_?void 0:_.uuid))&&(0,v.jsx)(s.Z,g(g({},Z),{},{height:n,heightOffset:(t||0)+(C?76:0),pipeline:r})),m.uuid===(null===_||void 0===_?void 0:_.uuid)&&P]})}},22673:function(e,n,t){"use strict";var i=t(82684),r=t(73199),u=t.n(r),o=t(71593),l=t(9518),s=t(65292),c=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,v=e.source,h=e.wrapLines,b=(0,i.useContext)(l.ThemeContext);return(0,p.jsx)(u(),{source:v,renderers:{code:function(e){var i=e.value;return(0,p.jsx)(o.Z,{customStyle:{backgroundColor:(b.background||c.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:(b.content||c.Z.content).muted},language:n,showLineNumbers:r,style:s._4,useInlineStyles:!0,wrapLines:h,children:i})}}})}},32316:function(e,n,t){"use strict";t.d(n,{Z:function(){return h}});var i=t(82684),r=t(60328),u=t(67971),o=t(882),l=t(86673),s=t(99994),c=t(9518),a=t(49125),d=t(37391),p=c.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),v=t(28598);var h=function(e){var n=e.allowScroll,t=e.contained,c=e.noPadding,d=e.onClickTab,h=e.selectedTabUUID,b=e.small,g=e.tabs,m=(0,i.useMemo)((function(){var e=g.length,n=[];return g.forEach((function(t,i){var c=t.Icon,p=t.IconSelected,g=t.label,m=t.uuid,x=m===h,j=x&&p||c,_=g?g():m,y=(0,v.jsxs)(u.Z,{alignItems:"center",children:[j&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(j,{default:!x,size:2*a.iI}),(0,v.jsx)(l.Z,{mr:1})]}),_]});i>=1&&e>=2&&n.push((0,v.jsx)("div",{style:{marginLeft:1.5*a.iI}},"spacing-".concat(m))),x?n.push((0,v.jsx)(o.Z,{backgroundGradient:s.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:b,onClick:function(e){(0,f.j)(e),d(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:b,children:y},m)):n.push((0,v.jsx)("div",{style:{padding:4},children:(0,v.jsx)(r.Z,{borderLess:!0,compact:b,default:!0,onClick:function(e){(0,f.j)(e),d(t)},outline:!0,small:b,children:y},"button-tab-".concat(m))}))})),n}),[d,h,g]),x=(0,v.jsx)(u.Z,{alignItems:"center",children:m});return t?x:(0,v.jsx)(p,{allowScroll:n,noPadding:c,children:x})}},77980:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return G}});var i=t(77837),r=t(75582),u=t(82394),o=t(38860),l=t.n(o),s=t(82684),c=t(83455),a=t(34376),d=t(16953),p=t(27125),f=t(60328),v=t(32316),h=t(67971),b=t(9518),g=t(23831),m=b.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 ")})),x=t(51099),j=t(2626),_=t(28598);var y=function(e){var n=e.size;return(0,_.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("g",{"clip-path":"url(#clip0_3007_70027)",children:(0,_.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,_.jsxs)("defs",{children:[(0,_.jsxs)("linearGradient",{id:"paint0_linear_3007_70027",x1:"11.75",y1:".250001",x2:"11.75",y2:"23.1475",gradientUnits:"userSpaceOnUse",children:[(0,_.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,_.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,_.jsx)("clipPath",{id:"clip0_3007_70027",children:(0,_.jsx)("path",{fill:"#fff",transform:"matrix(0 1 1 0 0 0)",d:"M0 0h24v24H0z"})})]})]})},Z=t(47409),O=t(97496),k=t(41788),w=t(55378),P=t(86673),C=t(82531),I=t(56681),S=t(66166),T=t(10503),R=t(59920),E=t(66050),N=t(49125),D=t(33766),L=t(7715),M=t(96510),U=t(59e3);function H(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 V(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?H(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):H(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var z={Icon:T.mR,IconSelected:y,label:function(){return"Pipeline runs"},uuid:"pipeline_runs"},A={Icon:T.Re,IconSelected:d.Z,label:function(){return"Block runs"},uuid:"block_runs"},F=[z,A];function B(e){var n=e.pipeline,t=(0,a.useRouter)(),i=(0,s.useState)(null),u=i[0],o=i[1],l=(0,s.useState)(z),d=l[0],b=l[1],g=(0,s.useState)(I.G[0]),y=g[0],k=g[1],T=(0,s.useState)(null),H=T[0],B=T[1],G=n.uuid,W=C.ZP.pipelines.detail(G,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,q=(0,s.useMemo)((function(){return V(V({},null===W||void 0===W?void 0:W.pipeline),{},{uuid:G})}),[W,G]),X=C.ZP.block_runs.list((0,L.gR)(H,["tab"]),{},{pauseFetch:!H}).data,J=(0,s.useMemo)((function(){return(null===X||void 0===X?void 0:X.block_runs)||[]}),[X]),K=(0,s.useState)(),Y=K[0],Q=K[1],$=(0,U.iV)(),ee=(0,S.Z)($);(0,s.useEffect)((function(){var e=$.pipeline_run_id,n=$.status;if(!(0,L.Xy)($,ee)){var t=V(V({},ee),$);e?t.pipeline_run_id=e:t.pipeline_uuid=G,n?t.status=n:delete t.status,B(t)}}),[G,$,ee]);var ne={_limit:25,_offset:25*(null!==$&&void 0!==$&&$.page?$.page:0),pipeline_uuid:G};null!==$&&void 0!==$&&$.status&&(ne.status=$.status);var te=C.ZP.pipeline_runs.list(ne,{refreshInterval:5e3}),ie=te.data,re=te.mutate,ue=(0,s.useMemo)((function(){return(null===ie||void 0===ie?void 0:ie.pipeline_runs)||[]}),[ie]),oe=(0,s.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===E.V.INITIAL||n===E.V.RUNNING})),se=(0,c.Db)(C.ZP.pipelines.useUpdate(G),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){re()},onErrorCallback:function(e,n){return o({errors:n,response:e})}})}}),ce=(0,r.Z)(se,2),ae=ce[0],de=ce[1].isLoading,pe=(0,S.Z)(d);(0,s.useEffect)((function(){var e=$.tab;e&&b(F.find((function(n){return n.uuid===e})))}),[$,d,pe]);var fe=(0,s.useMemo)((function(){var e=null!==$&&void 0!==$&&$.page?$.page:0;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(O.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,_.jsx)(P.Z,{p:2,children:(0,_.jsx)(x.Z,{maxPages:9,onUpdate:function(e){var n=Number(e),i=V(V({},$),{},{page:n>=0?n:0});t.push("/pipelines/[pipeline]/runs","/pipelines/".concat(G,"/runs?").concat((0,U.uM)(i)))},page:Number(e),totalPages:Math.ceil(oe/25)})})]})}),[re,q,ue,$,Y,oe]),ve=(0,s.useMemo)((function(){return(0,_.jsx)(p.Z,{blockRuns:J,pipeline:q})}),[J,q]);return(0,_.jsxs)(j.Z,{afterHidden:z.uuid===(null===d||void 0===d?void 0:d.uuid)&&!Y,breadcrumbs:[{label:function(){return"Runs"}}],buildSidekick:z.uuid===(null===d||void 0===d?void 0:d.uuid)?function(e){return(0,I.Z)(V(V({},e),{},{selectedRun:Y,selectedTab:y,setSelectedTab:k}))}:function(e){return(0,I.Z)(e)},errors:u,pageName:R.M.RUNS,pipeline:q,setErrors:o,title:function(e){var n=e.name;return"".concat(n," runs")},uuid:"".concat(R.M.RUNS,"_").concat(G),children:[(0,_.jsx)(m,{children:(0,_.jsx)(P.Z,{py:1,children:(0,_.jsxs)(h.Z,{alignItems:"center",children:[le&&z.uuid===(null===d||void 0===d?void 0:d.uuid)&&(0,_.jsx)(P.Z,{pl:2,children:(0,_.jsx)(f.Z,{danger:!0,loading:de,onClick:function(){ae({pipeline:{status:E.V.CANCELLED}})},outline:!0,children:"Cancel running pipeline runs"})}),(0,_.jsx)(v.Z,{onClickTab:function(e){var n=e.uuid;B(null),(0,D.u7)({tab:n},{replaceParams:!0})},selectedTabUUID:null===d||void 0===d?void 0:d.uuid,tabs:F}),z.uuid===(null===d||void 0===d?void 0:d.uuid)&&(0,_.jsxs)(w.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?(B(null),(0,D.u7)({tab:z.uuid},{replaceParams:!0})):(0,D.u7)({page:0,status:e.target.value})},paddingRight:4*N.iI,placeholder:"Select run status",value:null===H||void 0===H?void 0:H.status,children:[(0,_.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(E.V).map((function(e){return(0,_.jsx)("option",{value:e,children:Z.D[e]},e)}))]})]})})}),z.uuid===(null===d||void 0===d?void 0:d.uuid)&&fe,A.uuid===(null===d||void 0===d?void 0:d.uuid)&&ve]})}B.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 G=(0,k.Z)(B)},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,2083,4804,1774,2524,2344,9386,6166,8180,2626,6532,4178,9774,2888,179],(function(){return n=79897,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7803],{66050:function(n,e,r){"use strict";var t;r.d(e,{V:function(){return t}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running"}(t||(t={}))},47409:function(n,e,r){"use strict";r.d(e,{D:function(){return l},V:function(){return i}});var t,o=r(82394),i=r(66050).V,l=(t={},(0,o.Z)(t,i.CANCELLED,"Cancelled"),(0,o.Z)(t,i.COMPLETED,"Done"),(0,o.Z)(t,i.FAILED,"Failed"),(0,o.Z)(t,i.INITIAL,"Ready"),(0,o.Z)(t,i.RUNNING,"Running"),t)},89745:function(n,e,r){"use strict";r.r(e),r.d(e,{default:function(){return ln}});var t=r(77837),o=r(38860),i=r.n(o),l=r(82684),c=r(2626),u=r(41788),s=r(75582),a=r(82394),d=r(93461),f=r(67971),v=r(87372),m=r(47409),p=r(86673),h=r(54283),j=r(19711),x=r(23831),b=r(10503),Z=r(9518),g=r(73942),y=r(2005),_=r(49125),I=r(31012),k=Z.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-15svh8z-0"})(["border-radius:","px;margin:","px;overflow:hidden;"," "," "," "," "," "," &:hover{"," "," "," "," ","}"],g.n_,_.cd*_.iI,(function(n){return"\n background-color: ".concat((n.theme.background||x.Z.background).panel,";\n border: 1px solid ").concat((n.theme.borders||x.Z.borders).dark,";\n\n &:hover {\n cursor: pointer;\n }\n ")}),(function(n){return n.selected&&n.danger&&"\n border-color: ".concat((n.theme.accent||x.Z.accent).negative,";\n ")}),(function(n){return n.selected&&n.primary&&"\n border-color: ".concat((n.theme.interactive||x.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.selected&&n.default&&"\n border-color: ".concat((n.theme.interactive||x.Z.interactive).focusBackground,";\n ")}),(function(n){return n.selected&&n.success&&"\n border-color: ".concat((n.theme.background||x.Z.background).success,";\n ")}),(function(n){return n.selected&&n.warning&&"\n border-color: ".concat((n.theme.accent||x.Z.accent).warning,";\n ")}),(function(n){return n.danger&&"\n border-color: ".concat((n.theme.accent||x.Z.accent).negative,";\n ")}),(function(n){return n.primary&&"\n border-color: ".concat((n.theme.interactive||x.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.default&&"\n border-color: ".concat((n.theme.interactive||x.Z.interactive).focusBackground,";\n ")}),(function(n){return n.success&&"\n border-color: ".concat((n.theme.background||x.Z.background).success,";\n ")}),(function(n){return n.warning&&"\n border-color: ".concat((n.theme.accent||x.Z.accent).warning,";\n ")})),P=(0,Z.css)([""," "," "," "," ",""],(function(n){return n.danger&&"\n background-color: ".concat((n.theme.accent||x.Z.accent).negative,";\n ")}),(function(n){return n.primary&&"\n background-color: ".concat((n.theme.interactive||x.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.default&&"\n background-color: ".concat((n.theme.interactive||x.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.success&&"\n background-color: ".concat((n.theme.background||x.Z.background).success,";\n ")}),(function(n){return n.warning&&"\n background-color: ".concat((n.theme.accent||x.Z.accent).warning,";\n ")})),N=Z.default.div.withConfig({displayName:"indexstyle__StatusStyle",componentId:"sc-15svh8z-1"})([""," ",";border-radius:","px;display:inline-block;font-family:",";padding:6px;"," "," "," "," "," ",""],P,I.iD,g.D7,y.ry,(function(n){return n.danger&&"\n color: ".concat((n.theme.content||x.Z.content).active,";\n ")}),(function(n){return n.primary&&"\n color: ".concat((n.theme.content||x.Z.content).active,";\n ")}),(function(n){return(n.default||n.success)&&"\n "}),(function(n){return n.default&&"\n color: ".concat((n.theme.content||x.Z.content).default,";\n ")}),(function(n){return n.success&&"\n color: ".concat((n.theme.content||x.Z.content).inverted,";\n ")}),(function(n){return n.warning&&"\n color: ".concat((n.theme.content||x.Z.content).inverted,";\n ")})),E=Z.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-15svh8z-2"})([""," display:flex;height:auto;width:3px;",""],P,(function(n){return n.default&&"\n background-color: ".concat((n.theme.interactive||x.Z.interactive).focusBackground,";\n ")})),O=r(90211),w=r(92083),M=r.n(w),S=r(66050),C=r(24224);function L(n){var e;return Object.keys((null===n||void 0===n||null===(e=n.metrics)||void 0===e?void 0:e.blocks)||{}).sort()}function V(n){var e,r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=null,i=null,l=null,c=null,u={},a=(null===n||void 0===n?void 0:n.block_runs)||[],d=(null===n||void 0===n||null===(e=n.metrics)||void 0===e?void 0:e.blocks)||{},f=(null===n||void 0===n||null===(r=n.metrics)||void 0===r?void 0:r.pipeline)||{},v=A(n);return Object.entries(d).forEach((function(n){var e,r=(0,s.Z)(n,2),a=r[0],d=r[1];if(!t||t===a){var m,p=d||{},h=p.destinations,j=void 0===h?{records_affected:null,records_inserted:null,records_updated:null}:h,x=p.sources,b=void 0===x?{records:null}:x,Z=v[a]||[];if(t&&t===a&&Z.every((function(n){var e=n.status;return S.V.COMPLETED===e}))&&null===o&&(o=0),null!==f&&void 0!==f&&null!==(e=f[a])&&void 0!==e&&e.record_counts)null===o&&(o=0),o+=Number(null===f||void 0===f||null===(m=f[a])||void 0===m?void 0:m.record_counts);else null!==b&&void 0!==b&&b.records&&(null===o&&(o=0),o+=Number(b.records));null!==j&&void 0!==j&&j.records_updated?(null===l&&(l=0),l+=Number(j.records_updated),null===c&&(c=0),c+=Number(j.records_updated)):null!==j&&void 0!==j&&j.records_inserted?(null===l&&(l=0),l+=Number(j.records_inserted),null===i&&(i=0),i+=Number(j.records_inserted)):null!==j&&void 0!==j&&j.records_affected&&(null===l&&(l=0),l+=Number(j.records_affected)),["destinations","sources"].forEach((function(n){var e=d[n]||{};null!==e&&void 0!==e&&e.error&&(u[a]||(u[a]={}),u[a][n]={error:null===e||void 0===e?void 0:e.error,errors:null===e||void 0===e?void 0:e.errors,message:null===e||void 0===e?void 0:e.message})}))}})),null===a||void 0===a||a.forEach((function(n){var e=n.block_uuid,r=n.metrics,t=n.status;if(S.V.FAILED===t&&null!==r&&void 0!==r&&r.error&&e){var o=e.split(":"),i=(0,s.Z)(o,3),l=(i[0],i[1]);i[2];u[l]||(u[l]={}),u[l][""]=r.error}})),{errors:u,records:o,recordsInserted:i,recordsProcessed:l,recordsUpdated:c}}function A(n){var e=n.block_runs,r={};return null===e||void 0===e||e.forEach((function(n){var e=n.block_uuid.split(":"),t=(0,s.Z)(e,3),o=(t[0],t[1]);t[2];r[o]||(r[o]=[]),r[o].push(n)})),r}function D(n){var e=A(n),r={};return Object.entries(e).forEach((function(n){var e=(0,s.Z)(n,2),t=e[0],o=e[1],i=o.filter((function(n){var e=n.status;return S.V.COMPLETED===e})),l=i.map((function(n){var e=n.completed_at,r=n.started_at,t=M().utc(e),o=M().utc(r);return t.diff(o,"second")})),c=i.length,u=o.length;r[t]={completed:c,runtime:l.length>=1?(0,C.Sm)(l)/l.length:null,total:u}})),r}function T(n){var e=n.block_runs,r=(null===e||void 0===e?void 0:e.length)||1,t=function(n){var e=(null===n||void 0===n?void 0:n.block_runs)||[];return null===e||void 0===e?void 0:e.filter((function(n){var e=n.status;return S.V.COMPLETED===e}))}(n).length||0;return t/r}function R(n){var e=n.completed_at,r=n.block_runs,t=void 0===r?[]:r,o=n.status;if(null===t||void 0===t||!t.length)return 0;var i=M().utc();if(e)i=M().utc(e);else if([m.V.CANCELLED,m.V.FAILED].includes(o)){var l=(0,C.YC)(t,(function(n){return n.started_at}),{ascending:!1})[0];i=M().utc(l.updated_at)}var c=M().utc(n.created_at);return i.diff(c,"second")}function U(n,e){var r,t,o,i,l,c=A(n),u=D(n),s=(null===n||void 0===n?void 0:n.metrics)||{blocks:null,pipeline:null},a=s.blocks||{},d=s.pipeline||{},f=(a[e],d[e],u[e]||{completed:null,total:null}),v=f.completed,m=f.total,p=v&&m?v/m:0,h=c[e]||[],j=h.every((function(n){var e=n.status;return S.V.COMPLETED===e})),x=(0,C.YC)(h,(function(n){return n.updated_at}),{ascending:!1})[0],b=null===(r=(0,C.YC)(h,(function(n){return n.started_at}),{ascending:!0})[0])||void 0===r?void 0:r.started_at;j?t=null===(l=(0,C.YC)(h,(function(n){return n.completed_at}),{ascending:!1})[0])||void 0===l?void 0:l.completed_at:x&&(i=null===x||void 0===x?void 0:x.updated_at);var Z=j?M().utc(t||i):M().utc(),g=M().utc(b);return{completed:v,completedAt:t,done:j,progress:p,runtime:o=Z.diff(g,"second"),startedAt:b,status:null===x||void 0===x?void 0:x.status,timeText:(0,O.zf)(o),total:m,updatedAt:i}}var F=r(28598);function G(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function z(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?G(Object(r),!0).forEach((function(e){(0,a.Z)(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}))}return n}var B=function(n){var e=n.onSelect,r=n.pipelineRun,t=n.selected,o=(r.block_runs,r.created_at),i=r.status,c=(0,l.useMemo)((function(){return(null===r||void 0===r?void 0:r.metrics)||{blocks:{},destination:null,pipeline:{},source:null}}),[r]),u=((0,l.useMemo)((function(){return c.blocks||{}}),[c]),(0,l.useMemo)((function(){return c.pipeline||{}}),[c])),a=c.destination,Z=c.source,g=(0,l.useMemo)((function(){return Object.keys(u).length}),[u]),y=(0,l.useMemo)((function(){return V(r)}),[r]),I=y.errors,P=y.records,w=y.recordsProcessed,M=(0,l.useMemo)((function(){return T(r)}),[r]),S=(0,l.useMemo)((function(){return[m.V.COMPLETED].includes(i)}),[i]),C=(0,l.useMemo)((function(){return{danger:m.V.FAILED===i,default:m.V.INITIAL===i,primary:m.V.RUNNING===i,success:S,warning:m.V.CANCELLED===i}}),[S,i]),L=(0,l.useMemo)((function(){if(r){var n=R(r);return(0,O.zf)(n)}}),[r]);return(0,F.jsx)(k,z(z({},C),{},{onClick:function(){return e(t?null:r.id)},selected:t,children:(0,F.jsxs)(f.Z,{fullHeight:!0,justifyContent:"space-between",children:[(0,F.jsx)(E,z({},C)),(0,F.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,F.jsxs)(p.Z,{ml:3,py:3,children:[(0,F.jsx)(v.Z,{bold:!0,level:5,monospace:!0,children:o}),(0,F.jsx)(p.Z,{fullWidth:!1,mt:2,children:(0,F.jsx)(N,z(z({},C),{},{children:(0,F.jsxs)(f.Z,{alignItems:"center",children:[S&&(0,F.jsx)(b.Jr,{inverted:!0,size:2*_.iI}),[m.V.INITIAL,m.V.RUNNING].includes(i)&&(0,F.jsx)(h.Z,{color:m.V.INITIAL!==i?x.Z.monotone.white:null,inverted:m.V.INITIAL===i,small:!0}),"\xa0",m.V.RUNNING===i&&(0,F.jsxs)(F.Fragment,{children:["\xa0",Math.round(100*M),"%"]}),![m.V.INITIAL,m.V.RUNNING].includes(i)&&m.D[i],m.V.INITIAL===i&&"Starting"]})}))}),Object.values(I).length>=1&&(0,F.jsx)(p.Z,{mt:1,children:Object.entries(I).map((function(n,e){var r=(0,s.Z)(n,2),t=r[0];r[1];return(0,F.jsxs)(j.ZP,{monospace:!0,muted:!0,small:!0,children:[t," stream failed"]},t)}))})]})}),(0,F.jsxs)(d.Z,{flex:1,children:[(0,F.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,F.jsxs)(p.Z,{ml:3,py:3,children:[(0,F.jsxs)(p.Z,{mb:1,children:[(0,F.jsx)(j.ZP,{bold:!0,muted:!0,small:!0,children:"Rows processed"}),(0,F.jsx)(j.ZP,{monospace:!0,children:w>=1?(0,O.x6)(w):"-"})]}),(0,F.jsxs)(p.Z,{mb:1,children:[(0,F.jsx)(j.ZP,{bold:!0,muted:!0,small:!0,children:"Rows remaining"}),(0,F.jsx)(j.ZP,{monospace:!0,children:P>=1&&P>=w?(0,O.x6)(P-w):"-"})]}),m.V.RUNNING!==i&&(0,F.jsxs)(p.Z,{mb:1,children:[(0,F.jsx)(j.ZP,{bold:!0,muted:!0,small:!0,children:"Runtime"}),(0,F.jsx)(j.ZP,{monospace:!0,children:L})]})]})}),(0,F.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,F.jsxs)(p.Z,{ml:3,py:3,children:[(0,F.jsxs)(p.Z,{mb:1,children:[(0,F.jsx)(j.ZP,{bold:!0,muted:!0,small:!0,children:"Source"}),(0,F.jsx)(j.ZP,{monospace:!0,children:Z||"-"})]}),(0,F.jsxs)(p.Z,{mb:1,children:[(0,F.jsx)(j.ZP,{bold:!0,muted:!0,small:!0,children:"Destination"}),(0,F.jsx)(j.ZP,{monospace:!0,children:a||"-"})]}),(0,F.jsxs)(p.Z,{mb:1,children:[(0,F.jsx)(j.ZP,{bold:!0,muted:!0,small:!0,children:"Streams"}),(0,F.jsx)(j.ZP,{monospace:!0,children:g>=1?(0,O.x6)(g):"-"})]})]})})]})]})}))},Y=r(89565),H=r.n(Y),W=r(34376),J=r(60328),X=r(10919),q=r(58180),K=Z.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-1thr560-0"})(["display:flex;flex:1;"," "," ",""],(function(n){return n.even&&n.fill&&"\n background-color: ".concat((n.theme.accent||x.Z.accent).cyan,";\n ")}),(function(n){return n.even&&!n.fill&&"\n background-color: ".concat((n.theme.accent||x.Z.accent).cyanTransparent,";\n ")}),(function(n){return"\n height: ".concat((n.small?1:2)*_.iI,"px;\n ")})),Q=r(66653);var $=function(n){var e=n.onClickRow,r=n.pipelineRun,t=n.selectedStream,o=(0,W.useRouter)(),i=(0,l.useState)(null),c=i[0],u=i[1],a=(0,l.useState)(null),d=a[0],h=a[1],x=(0,l.useMemo)((function(){return r?A(r):{}}),[r]),Z=(0,l.useMemo)((function(){return r?D(r):{}}),[r]),g=(0,l.useMemo)((function(){var n=0,e=[],r=[];if(Object.entries(Z).forEach((function(t){var o=(0,s.Z)(t,2),i=(o[0],o[1]),l=i.completed,c=i.runtime,u=i.total;null===c?r.push(i):(e.push(c),n+=c*(u-l))})),0===e.length)return null;var t=(0,C.Sm)(e)/e.length;return r.forEach((function(e){var r=e.completed,o=e.total;n+=t*(o-r)})),n}),[Z]),y=(0,l.useMemo)((function(){return t?Z[t]:null}),[Z,t]),I=(0,l.useMemo)((function(){if(t&&Z){var n=Z[t]||{},e=n.completed,o=n.total;if(o>=1)return e/o}else if(r)return T(r);return 0}),[y,r,t]),k=(0,l.useMemo)((function(){return(0,F.jsx)(f.Z,{children:(0,C.w6)(101).map((function(n,e){return(0,F.jsx)(K,{even:e%2===0,fill:I>0&&Math.round(100*I)>=e},e)}))})}),[I]),P=(0,l.useMemo)((function(){if(t){var n=x[t]||[],e=n.every((function(n){var e=n.status;return S.V.COMPLETED===e})),o=(0,C.YC)(n,(function(n){return n.updated_at}),{ascending:!1})[0],i=null===o||void 0===o?void 0:o.status,l=y||{},c=l.completed,u=l.runtime,s=l.total;if(e)return"Sync complete for ".concat(t);if([S.V.CANCELLED,S.V.FAILED].includes(i))return m.D[i];if(u&&s>=1){var a=Math.ceil(u*(s-c)/60);return"".concat((0,O._6)("minute",a,!0)," to completion")}return"Estimating time remaining for stream..."}if(m.V.COMPLETED===(null===r||void 0===r?void 0:r.status))return"Sync complete";if(r){if([m.V.CANCELLED,m.V.FAILED].includes(null===r||void 0===r?void 0:r.status))return m.D[null===r||void 0===r?void 0:r.status];if(m.V.INITIAL===(null===r||void 0===r?void 0:r.status))return"Initializing sync (this can take several minutes)";if(null===g)return"Estimating time remaining...";var d=Math.ceil(g/60);return"".concat((0,O._6)("minute",d,!0)," to completion")}return"Select a sync"}),[x,g,y,r,t]),N=(0,l.useMemo)((function(){return r&&t?U(r,t):{completed:null,completedAt:null,done:null,progress:null,runtime:null,startedAt:null,status:null,timeText:null,total:null,updatedAt:null}}),[r,t]);(0,l.useEffect)((function(){var n;if(r){var e=R(r);u(e),n=setInterval((function(){return u((function(n){return n+1}))}),1e3)}return function(){return clearInterval(n)}}),[r]),(0,l.useEffect)((function(){var n;if(r&&t&&N){var e=(null===N||void 0===N?void 0:N.runtime)||0;h(e),n=setInterval((function(){return h((function(n){return n+1}))}),1e3)}return function(){return clearInterval(n)}}),[r,t,N]);var E=(0,l.useMemo)((function(){if(r){if(t)return null===N||void 0===N?void 0:N.timeText;var n=R(r);return(0,O.zf)(n)}}),[r,t,N]),w=(0,l.useMemo)((function(){var n=Math.floor(c%86400/3600),e=Math.floor(c%3600/60),r=Math.floor(c%60/1);return[n>=10?String(n):"0".concat(n),e>=10?String(e):"0".concat(e),r>=10?String(r):"0".concat(r)].join(":")}),[c]),M=(0,l.useMemo)((function(){var n=Math.floor(d%86400/3600),e=Math.floor(d%3600/60),r=Math.floor(d%60/1);return[n>=10?String(n):"0".concat(n),e>=10?String(e):"0".concat(e),r>=10?String(r):"0".concat(r)].join(":")}),[d]),G=(0,l.useMemo)((function(){return r?V(r):{errors:null,records:null,recordsInserted:null,recordsProcessed:null,recordsUpdated:null}}),[r]),z=G.errors,B=G.records,Y=G.recordsInserted,$=G.recordsProcessed,nn=G.recordsUpdated,en=(0,l.useMemo)((function(){return r&&t?V(r,t):{errors:null,records:null,recordsInserted:null,recordsProcessed:null,recordsUpdated:null}}),[r,t]),rn=(0,l.useMemo)((function(){var n=t?null===en||void 0===en?void 0:en.records:B,e=t?null===en||void 0===en?void 0:en.recordsInserted:Y,r=t?null===en||void 0===en?void 0:en.recordsProcessed:$,o=t?null===en||void 0===en?void 0:en.recordsUpdated:nn,i=[{label:"Rows fetched",value:null===n?"-":(0,O.x6)(n)}];return null===e&&null===o?i.push({label:"Rows processed",value:null===r?"-":(0,O.x6)(r)}):null!==e?i.push({label:"Rows inserted",value:(0,O.x6)(e)}):null!==o&&i.push({label:"Rows updated",value:(0,O.x6)(o)}),i.map((function(n){var e=n.label,r=n.value;return(0,F.jsxs)("div",{children:[(0,F.jsx)(j.ZP,{bold:!0,large:!0,muted:!0,children:e}),(0,F.jsx)(j.ZP,{headline:!0,children:r})]},e)}))}),[B,en,Y,$,nn,E,w,status]),tn=(0,l.useMemo)((function(){if(!r)return(0,F.jsx)("div",{});var n=L(r);return(0,F.jsx)(q.Z,{columnFlex:[null,null,null,null,null,null],columns:[{uuid:"Stream"},{uuid:"Start"},{uuid:"End"},{uuid:"Time"},{uuid:"Progress"},{uuid:"Logs"}],isSelectedRow:function(e){return t&&t===n[e]},onClickRow:e,rows:n.map((function(n){var e=U(r,n),t=(e.completed,e.completedAt),i=e.done,l=e.progress,c=e.startedAt,u=e.status,s=e.timeText,a=(e.total,!!z[n]);return[(0,F.jsx)(j.ZP,{danger:a,default:!a,monospace:!0,children:n},"stream"),(0,F.jsx)(j.ZP,{default:!0,monospace:!0,children:c?c.split(".")[0]:"-"},"started_at"),(0,F.jsx)(j.ZP,{default:!0,monospace:!0,children:t?t.split(".")[0]:"-"},"completed_at"),(0,F.jsx)(j.ZP,{default:!0,children:[S.V.INITIAL,S.V.RUNNING].includes(u)?"-":s},"runtime"),(0,F.jsxs)("div",{children:[i&&(0,F.jsx)(b.Jr,{default:!0,size:2*_.iI}),!i&&(0,F.jsx)(f.Z,{children:(0,C.w6)(51).map((function(n,e){return(0,F.jsx)(K,{fill:l>0&&Math.round(50*l)>=e,even:e%2===0,small:!0},e)}))})]},"progress"),(0,F.jsx)(J.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(n){o.push("/pipelines/".concat(r.pipeline_uuid,"/logs?pipeline_run_id[]=").concat(r.id)),(0,Q.j)(n)},children:(0,F.jsx)(b.B4,{default:!0,size:2*_.iI})},"logs")]})),uuid:"".concat(null===r||void 0===r?void 0:r.id,"-streams-table")})}),[z,Z,r,t]),on=(0,l.useMemo)((function(){var n,e,o,i,l,c,u,a;if(r&&t){var d=(null===r||void 0===r?void 0:r.metrics)||{blocks:null,destination:null,pipeline:null,source:null},f=null===d||void 0===d||null===(n=d.pipeline)||void 0===n||null===(e=n[t])||void 0===e||null===(o=e.bookmarks)||void 0===o?void 0:o[t],v=null===d||void 0===d||null===(i=d.blocks)||void 0===i||null===(l=i[t])||void 0===l||null===(c=l.destinations)||void 0===c||null===(u=c.state)||void 0===u||null===(a=u.bookmarks)||void 0===a?void 0:a[t];if(f||v){var m=Array.from(new Set(Object.keys(f||{}).concat(Object.keys(v||{})))).sort(),p=[];m.forEach((function(n){var e=[(0,F.jsx)(j.ZP,{bold:!0,monospace:!0,muted:!0,small:!0,children:n},n)];[f,v].forEach((function(r,t){r&&e.push((0,F.jsx)(j.ZP,{monospace:!0,small:!0,children:r[n]},"".concat(n,"-").concat(t)))})),p.push(e)}));var h=[{label:function(){return""},uuid:"column"}];return[[null===d||void 0===d?void 0:d.source,"source",f],[null===d||void 0===d?void 0:d.destination,"destination",v]].forEach((function(n){var e=(0,s.Z)(n,3),r=e[0],t=e[1];e[2]&&h.push({uuid:"".concat(r," (").concat(t,")")})})),(0,F.jsx)(q.Z,{columnFlex:[null,1,1],columns:h,rows:p,uuid:"".concat(t,"-bookmark-table")})}}}),[r,t]),ln=(0,l.useMemo)((function(){var n,e,o,i,l,c;if(r&&t){var u=(null===r||void 0===r?void 0:r.metrics)||{blocks:null,destination:null,pipeline:null,source:null},a=null===u||void 0===u||null===(n=u.blocks)||void 0===n||null===(e=n[t])||void 0===e||null===(o=e.sources)||void 0===o?void 0:o.record,d=null===u||void 0===u||null===(i=u.blocks)||void 0===i||null===(l=i[t])||void 0===l||null===(c=l.destinations)||void 0===c?void 0:c.record;if(a||d){var f=Object.keys(d||a||{}).sort(),v=[];f.forEach((function(n){var e=[(0,F.jsx)(j.ZP,{bold:!0,monospace:!0,muted:!0,small:!0,children:n},n)];[a,d].forEach((function(r,t){if(r){var o=r[n],i="object"===typeof o;e.push((0,F.jsxs)(j.ZP,{monospace:!0,small:!0,textOverflow:!0,whiteSpaceNormal:!0,wordBreak:!0,children:[i&&(0,F.jsx)("pre",{children:JSON.stringify(o,null,2)}),!i&&o]},"".concat(n,"-").concat(t)))}})),v.push(e)}));var m=[{label:function(){return""},uuid:"column"}];return[[null===u||void 0===u?void 0:u.source,"source",a],[null===u||void 0===u?void 0:u.destination,"destination",d]].forEach((function(n){var e=(0,s.Z)(n,3),r=e[0],t=e[1];e[2]&&m.push({uuid:"".concat(r," (").concat(t,")")})})),(0,F.jsx)(q.Z,{columnFlex:[null,1,1],columns:m,rows:v.map((function(n){return n.map((function(n){return(0,F.jsx)(j.ZP,{default:!0,monospace:!0,children:n},n)}))})),uuid:"".concat(t,"-bookmark-table")})}}}),[r,t]),cn=(0,l.useMemo)((function(){var n,e,o,i,l,c,u=null===r||void 0===r||null===(n=r.metrics)||void 0===n||null===(e=n.blocks)||void 0===e?void 0:e[t];return(null===u||void 0===u||null===(o=u.sources)||void 0===o||null===(i=o.block_tags)||void 0===i?void 0:i.destination_table)||(null===u||void 0===u||null===(l=u.destinations)||void 0===l||null===(c=l.block_tags)||void 0===c?void 0:c.destination_table)}),[r,t]);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(p.Z,{p:3,children:[t&&(0,F.jsx)(p.Z,{mb:3,children:(0,F.jsxs)(f.Z,{alignItems:"center",children:[(0,F.jsx)(X.Z,{block:!0,onClick:function(){return o.push("/pipelines/".concat(r.pipeline_uuid,"/syncs?pipeline_run_id=").concat(r.id))},preventDefault:!0,children:(0,F.jsxs)(f.Z,{alignItems:"center",children:[(0,F.jsx)(b.Xd,{default:!0,size:1.5*_.iI}),(0,F.jsx)(p.Z,{mr:1}),(0,F.jsx)(j.ZP,{default:!0,children:"Syncs"})]})}),(0,F.jsx)(p.Z,{mx:1,children:(0,F.jsx)(j.ZP,{default:!0,monospace:!0,children:"/"})}),(0,F.jsx)(j.ZP,{bold:!0,monospace:!0,children:t})]})}),(0,F.jsxs)(f.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,F.jsx)(p.Z,{mr:2,my:1,children:(0,F.jsx)(v.Z,{level:5,muted:!r,children:P})}),r&&(0,F.jsx)(J.Z,{onClick:function(){return o.push("/pipelines/".concat(r.pipeline_uuid,"/logs?pipeline_run_id[]=").concat(r.id))},small:!0,children:"Logs"})]}),(0,F.jsx)(p.Z,{mt:2,children:k}),r&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(p.Z,{mt:3,children:(0,F.jsxs)(f.Z,{justifyContent:"space-between",children:[(0,F.jsxs)("div",{children:[(0,F.jsx)(j.ZP,{bold:!0,large:!0,muted:!0,children:"Runtime"}),(0,F.jsxs)(j.ZP,{headline:!0,children:[t&&[S.V.INITIAL,S.V.RUNNING].includes(null===N||void 0===N?void 0:N.status)&&M,t&&![S.V.INITIAL,S.V.RUNNING].includes(null===N||void 0===N?void 0:N.status)&&(null===N||void 0===N?void 0:N.timeText),!t&&[m.V.INITIAL,m.V.RUNNING].includes(null===r||void 0===r?void 0:r.status)&&w,!t&&![m.V.INITIAL,m.V.RUNNING].includes(null===r||void 0===r?void 0:r.status)&&E]})]}),rn]})}),Object.values(z).length>=1&&(0,F.jsxs)(p.Z,{mt:3,children:[(0,F.jsx)(v.Z,{level:5,muted:!0,children:"Errors"}),Object.entries(z).map((function(n,e){var r=(0,s.Z)(n,2),o=r[0],i=r[1];return(!t||t===o)&&(0,F.jsx)(p.Z,{mt:e>=1?1:0,children:Object.entries(i).map((function(n){var e=(0,s.Z)(n,2),r=e[0],t=e[1],i=t.error,l=t.errors,c=t.message,u=Array.isArray(i)?i.join(" "):i;return(0,F.jsxs)("div",{children:[(0,F.jsx)(p.Z,{mb:c||(null===l||void 0===l?void 0:l.length)>=1?2:0,children:(0,F.jsxs)(j.ZP,{monospace:!0,preWrap:!0,textOverflow:!0,children:[o,!!r&&(0,F.jsxs)(j.ZP,{inline:!0,monospace:!0,muted:!0,children:["\xa0(",r,")"]}),": ",(0,F.jsx)(j.ZP,{default:!0,inline:!0,monospace:!0,children:u&&(0,F.jsx)(H(),{children:u})})]})}),(0,F.jsx)(j.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:c}),l.map((function(n){return(0,F.jsx)(j.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:n},n)}))]},"".concat(o,"-").concat(r))}))},o)}))]})]})]}),r&&!t&&(0,F.jsx)(p.Z,{my:3,children:tn}),r&&t&&(0,F.jsxs)(F.Fragment,{children:[cn&&(0,F.jsx)(p.Z,{my:3,children:(0,F.jsxs)(p.Z,{px:3,children:[(0,F.jsx)(v.Z,{level:5,children:"Table name"}),(0,F.jsx)(p.Z,{mt:1,children:(0,F.jsx)(j.ZP,{default:!0,monospace:!0,children:cn})})]})}),on&&(0,F.jsxs)(p.Z,{my:3,children:[(0,F.jsx)(p.Z,{px:3,children:(0,F.jsx)(v.Z,{level:5,children:"Bookmarks"})}),(0,F.jsx)(p.Z,{px:1,children:on})]}),ln&&(0,F.jsxs)(p.Z,{my:3,children:[(0,F.jsx)(p.Z,{px:3,children:(0,F.jsx)(v.Z,{level:5,children:"Sample row"})}),(0,F.jsx)(p.Z,{px:1,children:ln})]})]})]})},nn=r(82531),en=r(59920),rn=r(33766),tn=r(59e3);function on(n){var e=n.pipeline,r=e.uuid,t=nn.ZP.pipeline_runs.list({_limit:20,_offset:0,pipeline_uuid:r},{refreshInterval:5e3}),o=t.data,i=(t.mutate,(0,l.useMemo)((function(){return(null===o||void 0===o?void 0:o.pipeline_runs)||[]}),[o])),u=(0,tn.iV)(),s=(0,l.useState)(null),a=s[0],d=s[1],f=(0,l.useState)(null),v=f[0],m=f[1];(0,l.useEffect)((function(){null!==u&&void 0!==u&&u.pipeline_run_id?m(null===i||void 0===i?void 0:i.find((function(n){return n.id===Number(u.pipeline_run_id)}))):v&&m(null),null!==u&&void 0!==u&&u.stream?d(u.stream):a&&d(null)}),[i,u,v,a]);var p=(0,l.useCallback)((function(){var n=v?L(v):[];return(0,F.jsx)($,{onClickRow:function(e){var r=n[e];(0,rn.u7)({stream:a===r?null:r})},pipelineRun:v,selectedStream:a})}),[v,a]),h=(0,l.useMemo)((function(){var n="/pipelines/".concat(r,"/syncs");v&&(n="".concat(n,"?pipeline_run_id=").concat(v.id));var e=[{label:function(){return"Syncs"},linkProps:a?{as:n,href:"/pipelines/[pipeline]/syncs"}:null}];return a&&e.push({label:function(){return a}}),e}),[v,a]);return(0,F.jsx)(c.Z,{breadcrumbs:h,buildSidekick:p,pageName:en.M.SYNCS,pipeline:e,title:function(n){var e=n.name;return"".concat(e," syncs")},uuid:"".concat(en.M.SYNCS,"_").concat(r),children:i.map((function(n){var e=(null===v||void 0===v?void 0:v.id)===n.id;return(0,F.jsx)(B,{onSelect:function(n){return(0,rn.u7)({pipeline_run_id:n,stream:null})},pipelineRun:n,selected:e},n.id)}))})}on.getInitialProps=function(){var n=(0,t.Z)(i().mark((function n(e){var r;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.query.pipeline,n.abrupt("return",{pipeline:{uuid:r}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();var ln=(0,u.Z)(on)},33766:function(n,e,r){"use strict";r.d(e,{g_:function(){return f},u7:function(){return d}});var t=r(75582),o=r(82394),i=r(34376),l=r.n(i),c=r(59e3),u=r(24224);function s(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function a(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){(0,o.Z)(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}))}return n}function d(n){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.replaceParams,i=r.pushHistory,u=o?{}:(0,c.iV)();e=window.location.pathname;var s=i?l().push:l().replace,d=a(a({},u),n);Object.entries(n).forEach((function(n){var e=(0,t.Z)(n,2),r=e[0],o=e[1];"undefined"!==typeof o&&null!==o||delete d[r]}));var f=(0,c.uM)(d);f.length>=1&&(f="?".concat(f));var v="".concat(e.split("?")[0]).concat(f);return s(l().router.pathname,v,{shallow:!0})}function f(n,e,r){var o=r.addingMultipleValues,i=r.isList,l=r.itemsPerPage,c=r.pushHistory,s=void 0!==c&&c,f=r.resetLimitParams,v=a({},n);o?Object.entries(e).forEach((function(n){var e=(0,t.Z)(n,2),r=e[0],o=e[1];if(Array.isArray(o)){var i="".concat(r,"[]");v[i]=o.map(String)}})):i?Object.entries(e).forEach((function(n){var e=(0,t.Z)(n,2),r=e[0],o=e[1],i=String(o),l="".concat(r,"[]"),c=v[l];c&&Array.isArray(c)?(c=c.map(String)).includes(i)?v[l]=(0,u.Od)(c,(function(n){return n===i})):v[l]=c.concat(i):v[l]=[i]})):v=a(a({},v),e),f&&(v._limit=l||20,v._offset=0),d(v,{pushHistory:s})}},59416:function(n,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/syncs",function(){return r(89745)}])}},function(n){n.O(0,[3850,2083,9565,2344,9386,6166,8180,2626,9774,2888,179],(function(){return e=59416,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|