mage-ai 0.8.91__py3-none-any.whl → 0.8.93__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/api/policies/BlockPolicy.py +1 -0
- mage_ai/api/policies/PipelinePolicy.py +6 -0
- mage_ai/api/presenters/BlockPresenter.py +1 -0
- mage_ai/api/presenters/PipelinePresenter.py +2 -0
- mage_ai/data_preparation/decorators.py +4 -0
- mage_ai/data_preparation/executors/block_executor.py +68 -3
- mage_ai/data_preparation/models/block/__init__.py +212 -67
- mage_ai/data_preparation/models/block/constants.py +3 -1
- mage_ai/data_preparation/models/constants.py +8 -8
- mage_ai/data_preparation/models/pipeline.py +83 -5
- mage_ai/data_preparation/repo_manager.py +5 -2
- mage_ai/data_preparation/shared/constants.py +2 -1
- mage_ai/data_preparation/templates/conditionals/base.jinja +11 -0
- mage_ai/data_preparation/templates/constants.py +7 -0
- mage_ai/io/mssql.py +11 -1
- mage_ai/io/sql.py +8 -1
- mage_ai/orchestration/db/migrations/versions/dfe49d040487_add_condition_failed_status_to_block_.py +39 -0
- mage_ai/orchestration/db/models/schedules.py +5 -1
- mage_ai/orchestration/pipeline_scheduler.py +27 -17
- mage_ai/server/api/downloads.py +64 -0
- mage_ai/server/constants.py +1 -1
- mage_ai/server/execution_manager.py +3 -2
- 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/chunks/1424-321c8c08a2b05c19.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2786-2b3ad2cf216fae42.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3714-3bd2a8c979d6d820.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3752-8f15fe0ca9c23cf4.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{4476-cdae7a65db573bb7.js → 4476-c1a62e69cd8e14d5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-8aaee96edc252aa3.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-88c03376d807012e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-915825c19bf42fa1.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-bf2d83dabe1bd25a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-f0940870ff5a17f6.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-8ee12ce8362ed576.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-a64f7a0aba0f481d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-3a3a115ab1a86e2f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-160881dab5ef66d8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-69d63c14abf8cf68.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-6092226e191dd720.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-549f4708f2912a7a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/zlCBBK90aKYZtPlYLj9_T/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/files.html +2 -2
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage/users/[user].html +2 -2
- mage_ai/server/frontend_dist/manage/users.html +2 -2
- mage_ai/server/frontend_dist/manage.html +2 -2
- mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +2 -2
- mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +2 -2
- mage_ai/server/frontend_dist/terminal.html +2 -2
- mage_ai/server/frontend_dist/test.html +2 -2
- mage_ai/server/frontend_dist/triggers.html +2 -2
- mage_ai/server/server.py +8 -0
- mage_ai/server/websocket_server.py +3 -2
- mage_ai/services/spark/config.py +8 -2
- mage_ai/services/spark/spark.py +64 -22
- mage_ai/shared/environments.py +4 -8
- mage_ai/tests/api/operations/test_syncs.py +1 -1
- mage_ai/tests/data_preparation/models/test_pipeline.py +11 -1
- {mage_ai-0.8.91.dist-info → mage_ai-0.8.93.dist-info}/METADATA +1 -1
- {mage_ai-0.8.91.dist-info → mage_ai-0.8.93.dist-info}/RECORD +87 -83
- mage_ai/server/frontend_dist/_next/static/chunks/1424-c6b0d89ffb4a10b9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3714-c70e815b08e3d9be.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3752-bd78037feb0a755f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-aa11738683e2250f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-06aa8a8f1ca2e8d8.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-3260a2dac8df672e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-f08b51d9dc56eab5.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-43e71712d3fc0299.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-264439be4f197741.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-91ba61b9030eff1f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-0bbae5456b0e6e82.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-86d1477c6671ea30.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-4b0c098074dd3e6d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-891c3d3f7a2b634b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-f4d470fe28b74de7.js +0 -1
- mage_ai/server/frontend_dist/_next/static/j-J6532RA0pcVgjHCeKSz/_buildManifest.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{j-J6532RA0pcVgjHCeKSz → zlCBBK90aKYZtPlYLj9_T}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist/_next/static/{j-J6532RA0pcVgjHCeKSz → zlCBBK90aKYZtPlYLj9_T}/_ssgManifest.js +0 -0
- {mage_ai-0.8.91.dist-info → mage_ai-0.8.93.dist-info}/LICENSE +0 -0
- {mage_ai-0.8.91.dist-info → mage_ai-0.8.93.dist-info}/WHEEL +0 -0
- {mage_ai-0.8.91.dist-info → mage_ai-0.8.93.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.8.91.dist-info → mage_ai-0.8.93.dist-info}/top_level.txt +0 -0
mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-264439be4f197741.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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 u=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 u.name="Invariant Violation",u}}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 x},Kf:function(){return s},Nk:function(){return p},PY:function(){return f},gE:function(){return v},jv:function(){return m},nz:function(){return h},oh:function(){return a},qn:function(){return d},t1:function(){return g},y9:function(){return b}});var r=t(9518),o=t(23831),i=t(86422),c=t(73942),u=t(49125),l=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,u=((null===n||void 0===n||null===(r=n.theme)||void 0===r?void 0:r.monotone)||o.Z.monotone).grey500,l=n||{},a=l.blockColor,d=l.isSelected,s=l.theme;return d?c=(s||o.Z).content.active:i.tf.TRANSFORMER===e||a===i.Lq.PURPLE?(c=(s||o.Z).accent.purple,u=(s||o.Z).accent.purpleLight):i.tf.DATA_EXPORTER===e||a===i.Lq.YELLOW?(c=(s||o.Z).accent.yellow,u=(s||o.Z).accent.yellowLight):i.tf.DATA_LOADER===e||a===i.Lq.BLUE?(c=(s||o.Z).accent.blue,u=(s||o.Z).accent.blueLight):i.tf.MARKDOWN===e?(c=(s||o.Z).accent.sky,u=(s||o.Z).accent.skyLight):i.tf.SENSOR===e||a===i.Lq.PINK?(c=(s||o.Z).accent.pink,u=(s||o.Z).accent.pinkLight):i.tf.DBT===e?(c=(s||o.Z).accent.dbt,u=(s||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,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).tealLight):i.tf.CALLBACK===e?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).rose,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).roseLight):(i.tf.SCRATCHPAD===e||a===i.Lq.GREY||i.tf.CUSTOM===e&&!a)&&(c=(s||o.Z).content.default,u=(s||o.Z).accent.contentDefaultTransparent),{accent:c,accentLight:u}}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||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__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],s,c.n_,c.M8,c.mP,(function(e){return"\n background-color: ".concat((e.theme||o.Z).background.content,";\n\n &:hover {\n border-color: ").concat(d(e.blockType,e).accent,";\n }\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-2"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," "," ",""],s,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,u.iI,(function(e){return"\n background-color: ".concat((e.theme||o.Z).background.content,";\n ")}),(function(e){return e.bottomBorder&&"\n border-bottom: ".concat(c.YF,"px ").concat(c.M8," ").concat((e.theme||o.Z).borders.medium2,";\n ")}),(function(e){return e.zIndex&&"\n z-index: ".concat(6+(e.zIndex||0),";\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-3"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],s,c.M8,c.mP,c.M8,c.mP,u.iI,u.iI,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(e){return e.lightBackground&&"\n background-color: ".concat((e.theme||o.Z).background.content,";\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 ")})),v=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-4"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*u.iI,.5*u.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 ")})),g=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-5"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*u.iI),b=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-6"})(["margin-bottom:","px;padding-bottom:","px;",""],1*u.iI,1*u.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n padding-left: ").concat(e.normalPadding?u.iI:a,"px;\n ")})),x=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-7"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,a)},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return c},W:function(){return i}});var r=t(9518),o=t(3055),i=34*t(49125).iI,c=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],o.Mz)},18025:function(e,n,t){"use strict";t.d(n,{J:function(){return l},U:function(){return u}});var r=t(9518),o=t(23831),i=t(73942),c=t(49125),u=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 ")})),l=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 ")}))},6753:function(e,n,t){"use strict";t.d(n,{AE:function(){return o},H3:function(){return i},mW:function(){return c},oE:function(){return u},yg:function(){return r}});var r="tabs[]",o="show_columns",i="column",c="Reports",u="Visualizations"},20567:function(e,n,t){"use strict";t.d(n,{o_:function(){return l}});var r=t(75582),o=t(34376),i=t(6753);t(82684),t(12691),t(60328),t(57639),t(93461),t(67971),t(10919),t(86673),t(19711),t(10503),t(28598);var c,u=t(59e3);!function(e){e.DATASETS="datasets",e.DATASET_DETAIL="dataset_detail",e.COLUMNS="features",e.COLUMN_DETAIL="feature_detail",e.EXPORT="export"}(c||(c={}));var l=function(e,n){var t=(0,o.useRouter)().query.slug,l=void 0===t?[]:t,a=(0,r.Z)(l,1)[0],d=(0,u.iV)(),s=d.show_columns,p=d.column,f="/".concat(c.DATASETS,"/").concat(a),h="".concat(i.H3,"=").concat(p||n),m="".concat(i.yg,"=").concat(e,"&").concat(h,"&").concat(i.AE,"=").concat(s||0);return"".concat(f,"?").concat(m)}},86422:function(e,n,t){"use strict";t.d(n,{$W:function(){return f},DA:function(){return p},HX:function(){return v},J8:function(){return m},L8:function(){return c},Lq:function(){return d},Qj:function(){return g},Ut:function(){return y},V4:function(){return j},VZ:function(){return h},dO:function(){return s},f2:function(){return x},iZ:function(){return b},t6:function(){return u},tf:function(){return a}});var r,o,i,c,u,l=t(82394);!function(e){e.DBT_SNAPSHOT="snapshot",e.DYNAMIC="dynamic",e.DYNAMIC_CHILD="dynamic_child",e.REDUCE_OUTPUT="reduce_output",e.REPLICA="replica"}(c||(c={})),function(e){e.MARKDOWN="markdown",e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(u||(u={}));var a,d,s=(r={},(0,l.Z)(r,u.MARKDOWN,"MD"),(0,l.Z)(r,u.PYTHON,"PY"),(0,l.Z)(r,u.R,"R"),(0,l.Z)(r,u.SQL,"SQL"),(0,l.Z)(r,u.YAML,"YAML"),r);!function(e){e.CALLBACK="callback",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.MARKDOWN="markdown",e.TRANSFORMER="transformer"}(a||(a={})),function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(d||(d={}));var p,f=[a.CHART,a.CUSTOM,a.DATA_EXPORTER,a.DATA_LOADER,a.SCRATCHPAD,a.SENSOR,a.MARKDOWN,a.TRANSFORMER],h=[a.DATA_EXPORTER,a.DATA_LOADER],m=[a.DATA_EXPORTER,a.DATA_LOADER,a.TRANSFORMER],v=[a.DATA_EXPORTER,a.DATA_LOADER,a.DBT,a.TRANSFORMER],g=[a.CHART,a.SCRATCHPAD,a.SENSOR,a.MARKDOWN],b=[a.CALLBACK,a.CHART,a.EXTENSION,a.SCRATCHPAD,a.MARKDOWN];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(p||(p={}));var x=[a.CUSTOM,a.DATA_EXPORTER,a.DATA_LOADER,a.TRANSFORMER],j=(o={},(0,l.Z)(o,a.EXTENSION,"Callback"),(0,l.Z)(o,a.CUSTOM,"Custom"),(0,l.Z)(o,a.DATA_EXPORTER,"Data exporter"),(0,l.Z)(o,a.DATA_LOADER,"Data loader"),(0,l.Z)(o,a.EXTENSION,"Extension"),(0,l.Z)(o,a.SCRATCHPAD,"Scratchpad"),(0,l.Z)(o,a.SENSOR,"Sensor"),(0,l.Z)(o,a.MARKDOWN,"Markdown"),(0,l.Z)(o,a.TRANSFORMER,"Transformer"),o),y=[a.DATA_LOADER,a.TRANSFORMER,a.DATA_EXPORTER,a.SENSOR];i={},(0,l.Z)(i,a.DATA_EXPORTER,"DE"),(0,l.Z)(i,a.DATA_LOADER,"DL"),(0,l.Z)(i,a.SCRATCHPAD,"SP"),(0,l.Z)(i,a.SENSOR,"SR"),(0,l.Z)(i,a.MARKDOWN,"MD"),(0,l.Z)(i,a.TRANSFORMER,"TF")},2713:function(e,n,t){"use strict";var r=t(82394),o=t(44495),i=t(67971),c=t(55378),u=t(86673),l=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)(u.Z,{mb:2}),(0,p.jsxs)(i.Z,{alignItems:"center",children:[(0,p.jsx)(l.ZP,{default:!0,large:!0,children:"Time (UTC):"}),(0,p.jsx)(u.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)(u.Z,{px:1,children:(0,p.jsx)(l.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))}))})]})]})}},19464:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return nn}});var r,o=t(77837),i=t(82394),c=t(38860),u=t.n(c),l=t(9518),a=t(4804),d=t(82684),s=t(86422),p=t(34744),f=t(60328),h=t(38341),m=t(16634),v=t(67971),g=t(86673),b=t(19711),x=t(2850),j=t(49125),y=l.default.div.withConfig({displayName:"indexstyle__FilterRowStyle",componentId:"sc-kvapsi-0"})(["padding-bottom:","px;padding-top:","px;"],j.iI/2,j.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 O,_=[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"}(O||(O={}));var Z=t(73942),A=t(73899);var P=(0,l.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,u=e.warning;return n?A.Zl:t?A.EG:r?A.hl:o?A.hM:i?A.gN:c?A.Wd:u?A.$R:"transparent"}(e),";\n ")})),S=l.default.div.withConfig({displayName:"indexstyle__LogLevelIndicatorStyle",componentId:"sc-1e2zh7m-0"})([""," border-radius:","px;height:12px;width:5px;"],P,Z.n_),T=t(90211),E=t(44162),D=t(33766),R=t(28598);function k(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?k(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n=e.blocks,t=e.query,r=(0,d.useContext)(l.ThemeContext),o=(0,d.useMemo)((function(){return t["level[]"]}),[t]),c=(0,d.useMemo)((function(){return t["block_type[]"]}),[t]),u=(0,d.useMemo)((function(){return t["block_uuid[]"]}),[t]),a=(0,d.useMemo)((function(){return t["pipeline_schedule_id[]"]}),[t]),p=(0,d.useMemo)((function(){return t["pipeline_run_id[]"]}),[t]),O=(0,d.useMemo)((function(){return t["block_run_id[]"]}),[t]);return(0,R.jsx)(x.M,{children:(0,R.jsxs)(g.Z,{p:j.cd,children:[(0,R.jsxs)(g.Z,{mb:3,children:[(0,R.jsx)(g.Z,{mb:1,children:(0,R.jsx)(b.ZP,{bold:!0,default:!0,large:!0,children:"Log level"})}),_.map((function(e){return(0,R.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,D.g_)(t,{level:e},{isList:!0})},children:(0,R.jsx)(y,{children:(0,R.jsxs)(v.Z,{alignItems:"center",children:[(0,R.jsx)(h.Z,{checked:Array.isArray(o)&&(null===o||void 0===o?void 0:o.includes(String(e)))}),(0,R.jsx)(g.Z,{mr:1}),(0,R.jsx)(S,C({},(0,i.Z)({},e.toLowerCase(),!0))),(0,R.jsx)(g.Z,{mr:1}),(0,R.jsx)(b.ZP,{disableWordBreak:!0,children:(0,T.kC)(e.toLowerCase())})]})})},e)}))]}),(0,R.jsxs)(g.Z,{mb:3,children:[(0,R.jsx)(g.Z,{mb:1,children:(0,R.jsx)(b.ZP,{bold:!0,default:!0,large:!0,children:"Block type"})}),[s.tf.DATA_LOADER,s.tf.TRANSFORMER,s.tf.DATA_EXPORTER].map((function(e){return(0,R.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,D.g_)(t,{block_type:e},{isList:!0})},children:(0,R.jsx)(y,{children:(0,R.jsxs)(v.Z,{alignItems:"center",children:[(0,R.jsx)(h.Z,{checked:Array.isArray(c)&&(null===c||void 0===c?void 0:c.includes(String(e)))}),(0,R.jsx)(g.Z,{mr:1}),(0,R.jsx)(m.Z,{color:(0,E.qn)(e,{theme:r}).accent,size:1.5*j.iI,square:!0}),(0,R.jsx)(g.Z,{mr:1}),(0,R.jsx)(b.ZP,{disableWordBreak:!0,muted:!0,monospace:!0,children:e})]})})},e)}))]}),(0,R.jsxs)(g.Z,{mb:3,children:[(0,R.jsx)(g.Z,{mb:1,children:(0,R.jsx)(b.ZP,{bold:!0,default:!0,large:!0,children:"Block"})}),n.filter((function(e){var n=e.type;return s.tf.SCRATCHPAD!==n})).map((function(e){return(0,R.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,D.g_)(t,{block_uuid:e.uuid},{isList:!0,resetLimitParams:!0})},children:(0,R.jsx)(y,{children:(0,R.jsxs)(v.Z,{alignItems:"center",children:[(0,R.jsx)(h.Z,{checked:Array.isArray(u)&&(null===u||void 0===u?void 0:u.includes(String(e.uuid)))}),(0,R.jsx)(g.Z,{mr:1}),(0,R.jsx)(m.Z,{color:(0,E.qn)(e.type,{blockColor:e.color,theme:r}).accent,size:1.5*j.iI,square:!0}),(0,R.jsx)(g.Z,{mr:1}),(0,R.jsx)(b.ZP,{disableWordBreak:!0,monospace:!0,muted:!0,children:e.uuid})]})})},e.uuid)}))]}),(null===a||void 0===a?void 0:a.length)&&(0,R.jsxs)(g.Z,{mb:3,children:[(0,R.jsx)(g.Z,{mb:1,children:(0,R.jsx)(b.ZP,{bold:!0,default:!0,large:!0,children:"Trigger"})}),a.map((function(e){return(0,R.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,D.g_)(t,{pipeline_schedule_id:e},{isList:!0})},children:(0,R.jsx)(y,{children:(0,R.jsxs)(v.Z,{alignItems:"center",children:[(0,R.jsx)(h.Z,{checked:Array.isArray(a)&&(null===a||void 0===a?void 0:a.includes(e))}),(0,R.jsx)(g.Z,{mr:1}),(0,R.jsx)(b.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"pipeline-schedule-".concat(e))}))]}),(null===p||void 0===p?void 0:p.length)&&(0,R.jsxs)(g.Z,{mb:3,children:[(0,R.jsx)(g.Z,{mb:1,children:(0,R.jsx)(b.ZP,{bold:!0,default:!0,large:!0,children:"Pipeline run"})}),p.map((function(e){return(0,R.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,D.g_)(t,{pipeline_run_id:e},{isList:!0})},children:(0,R.jsx)(y,{children:(0,R.jsxs)(v.Z,{alignItems:"center",children:[(0,R.jsx)(h.Z,{checked:Array.isArray(p)&&(null===p||void 0===p?void 0:p.includes(e))}),(0,R.jsx)(g.Z,{mr:1}),(0,R.jsx)(b.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"pipeline-run-".concat(e))}))]}),(null===O||void 0===O?void 0:O.length)&&(0,R.jsxs)(g.Z,{mb:3,children:[(0,R.jsx)(g.Z,{mb:1,children:(0,R.jsx)(b.ZP,{bold:!0,default:!0,large:!0,children:"Block run"})}),O.map((function(e){return(0,R.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,D.g_)(t,{block_run_id:e},{isList:!0})},children:(0,R.jsx)(y,{children:(0,R.jsxs)(v.Z,{alignItems:"center",children:[(0,R.jsx)(h.Z,{checked:Array.isArray(O)&&(null===O||void 0===O?void 0:O.includes(e))}),(0,R.jsx)(g.Z,{mr:1}),(0,R.jsx)(b.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"block-run-".concat(e))}))]})]})})},I=t(11135),L=t(75582),N=t(32316),M=t(93461),B=t(10919),Y=t(58180),H=l.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-1r43sbu-0"})([""," height:","px;width:100%;"],P,.5*j.iI),U=l.default.div.withConfig({displayName:"indexstyle__BadgeStyle",componentId:"sc-1r43sbu-1"})([""," border-radius:","px;display:inline-block;padding:","px ","px;"],P,Z.BG,.25*j.iI,.5*j.iI),W=t(10503),F=t(92083),X=t.n(F);function q(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 J(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?q(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):q(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var z=/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}$/,K=/([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}) (.+)/;function G(e){var n=e.content.trim().split(K),t=[],r=[];return n.forEach((function(e){var n=e.trim();z.test(e)?(r.length>=1&&t.push(r.join(" ").trim()),r=[e]):r.filter((function(e){return e})).length<=1&&n&&r.push(n)})),t.push(r.join(" ").trim()),t.map((function(n){return function(e){var n=e.content.trim().match(K),t=null===n||void 0===n?void 0:n[1],r=null===n||void 0===n?void 0:n[2],o={};return r&&(0,T.Pb)(r)&&(o=JSON.parse(r)),J(J({},e),{},{createdAt:t,data:o})}(J(J({},e),{},{content:n}))}))}function V(e){return e&&X().unix(e).utc().format("YYYY-MM-DD HH:mm:ss.SSS")}var Q=t(24224);function $(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ee(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?$(Object(t),!0).forEach((function(n){(0,i.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 ne=["error","error_stack","error_stacktrace"],te={uuid:"Details"},re={uuid:"Errors"};var oe=function(e){var n=e.log,t=e.onClose,r=(0,d.useState)(te),o=r[0],c=r[1],u=(0,d.useState)(!1),l=u[0],a=u[1],s=n.data,h=n.name,m=n.path,x=s||{},y=x.error,O=x.error_stack,_=x.error_stacktrace,Z=x.level,A=x.timestamp,P=(0,i.Z)({},Z.toLowerCase(),!0),S=(0,d.useMemo)((function(){var e=[["file name",h],["file path",m]];return Object.entries(s).forEach((function(n){var t=(0,L.Z)(n,2),r=t[0],o=t[1];ne.includes(r)||e.push([r,o])})),_&&e.push(["error",_]),(0,Q.YC)(e,(function(e){var n=(0,L.Z)(e,2),t=n[0];n[1];return t}))}),[s,_,h,m]),E=(0,d.useMemo)((function(){var e=[te];return y&&e.push(re),(0,R.jsx)(N.Z,{onClickTab:c,selectedTabUUID:null===o||void 0===o?void 0:o.uuid,tabs:e})}),[y,O,_,o,c]);return(0,R.jsxs)("div",{children:[(0,R.jsx)(H,ee({},P)),(0,R.jsx)(g.Z,{p:j.cd,children:(0,R.jsxs)(v.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,R.jsxs)(M.Z,{alignItems:"center",children:[(0,R.jsx)(U,ee(ee({},P),{},{children:(0,R.jsx)(b.ZP,{bold:!0,inverted:!0,monospace:!0,small:!0,children:Z})})),(0,R.jsx)(g.Z,{mr:j.cd}),(0,R.jsx)(b.ZP,{monospace:!0,children:V(A)})]}),(0,R.jsx)(f.Z,{iconOnly:!0,noBackground:!0,onClick:function(){return t()},children:(0,R.jsx)(W.x8,{size:1.5*j.iI})})]})}),(0,R.jsx)(p.Z,{medium:!0}),(0,R.jsx)(g.Z,{py:j.cd,children:E}),te.uuid===(null===o||void 0===o?void 0:o.uuid)&&(0,R.jsx)(Y.Z,{columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:null===S||void 0===S?void 0:S.map((function(e,n){var t=(0,L.Z)(e,2),r=t[0],o=t[1],i="message"===r,c="tags"===r,u=o,d=o;return c?d=u=(0,T.Pb)(o)?JSON.parse(JSON.stringify(o,null,2)):JSON.stringify(o,null,2):i&&l&&(0,T.Pb)(o)&&(d=JSON.stringify(JSON.parse(o),null,2),u=(0,R.jsx)("pre",{children:d})),[(0,R.jsx)(b.ZP,{monospace:!0,muted:!0,children:r},"".concat(r,"_").concat(n,"_key")),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(b.ZP,{monospace:!0,textOverflow:!0,title:d,whiteSpaceNormal:i&&l||c,wordBreak:i&&l||c,children:[!c&&u,c&&(0,R.jsx)("pre",{children:u})]},"".concat(r,"_").concat(n,"_val")),i&&(0,R.jsx)(B.Z,{muted:!0,onClick:function(){return a((function(e){return!e}))},children:l?"Click to hide log":"Click to show full log message"})]})]})),uuid:"LogDetail"}),re.uuid===(null===o||void 0===o?void 0:o.uuid)&&(0,R.jsxs)(g.Z,{mb:5,px:j.cd,children:[(0,R.jsx)(g.Z,{mb:1,children:(0,R.jsx)(b.ZP,{bold:!0,children:"Error"})}),null===y||void 0===y?void 0:y.map((function(e){return e.split("\n").map((function(e){return e.split("\\n").map((function(e){return(0,R.jsx)(b.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:e},e)}))}))})),O&&(0,R.jsxs)(g.Z,{mt:3,children:[(0,R.jsx)(g.Z,{mb:1,children:(0,R.jsx)(b.ZP,{bold:!0,children:"Stack trace"})}),null===O||void 0===O?void 0:O.map((function(e){return null===e||void 0===e?void 0:e.map((function(e){return(0,R.jsx)(b.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:e},e)}))}))]})]})]})},ie=t(60547),ce=t(98781),ue=t(41788),le=t(54283),ae=t(21831),de=t(89565),se=t.n(de),pe=t(12691),fe=t.n(pe),he=t(63068),me=t(3055),ve=t(23831),ge=t(37391),be=l.default.div.withConfig({displayName:"indexstyle__TableContainer",componentId:"sc-16j4vp6-0"})([".table_row > div{margin:","px ","px;}div{","}"],.5*j.iI,j.iI,ge.w5),xe=l.default.div.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-16j4vp6-1"})(["display:flex;align-items:center;overflow:hidden;",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme||ve.Z).borders.medium2,";\n ")})),je=l.default.div.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-16j4vp6-2"})(["display:flex;align-items:center;"," "," ",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme||ve.Z).borders.light,";\n\n &:hover {\n cursor: pointer;\n }\n ")}),(function(e){return!e.selected&&"\n &:hover {\n background: ".concat((e.theme.interactive||ve.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.interactive||ve.Z.interactive).activeBorder,";\n ")})),ye=t(62976),Oe=t(24141);function _e(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 Ze(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_e(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_e(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ae="log_uuid";var Pe,Se,Te,Ee=function(e){var n=e.blocksByUUID,t=e.logs,r=e.pipeline,o=e.query,c=e.setSelectedLog,u=e.themeContext,l=(0,Oe.i)().height,a=(0,d.useMemo)((function(){return ce.qL.INTEGRATION===(null===r||void 0===r?void 0:r.type)}),[r.type]),s=Object.keys(n||{});if(a){var p,f,h=((null===r||void 0===r||null===(p=r.data_integration)||void 0===p||null===(f=p.catalog)||void 0===f?void 0:f.streams)||[]).map((function(e){return e.tap_stream_id})),x=new Set;s.forEach((function(e){h.forEach((function(n){return x.add("".concat(e,":").concat(n,":0"))}))})),s=Array.from(x)}var y=Math.max.apply(Math,(0,ae.Z)(s.map((function(e){return e.length})))),O=Math.min(y*ye.r+12+8,50*j.iI),_=[{uuid:"_",width:28},{uuid:"Date",width:214},{uuid:"Block",width:O+16},{uuid:"Message"},{uuid:"_"}],Z=(0,d.useCallback)((function(e){var n,t,r,u=e.data,l=e.index,d=e.style,s=u.blocksByUUID,p=u.logs,f=(u.pipeline,u.themeContext),h=p[l],x=h.content,y=h.data,_=h.name,Z=y||{},A=Z.block_uuid,P=Z.level,T=Z.message,k=Z.pipeline_uuid,C=Z.timestamp,w=Z.uuid,I=A||_.split(".log")[0],L=I.split(":");a&&(I=L[0],t=L[1],r=L[2]);var N=s[I];if(N||(N=s[L[0]]),N){var Y=(0,E.qn)(N.type,{blockColor:N.color,theme:f}).accent;n=(0,R.jsx)(v.Z,{alignItems:"center",children:(0,R.jsx)(fe(),{as:"/pipelines/".concat(k,"/edit?block_uuid=").concat(I),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,R.jsxs)(B.Z,{block:!0,fullWidth:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,R.jsx)(m.Z,{color:Y,size:1.5*j.iI,square:!0}),(0,R.jsx)(g.Z,{mr:1}),(0,R.jsxs)(b.ZP,{disableWordBreak:!0,monospace:!0,noWrapping:!0,title:A,width:O-16,children:[I,t&&":",t&&(0,R.jsx)(b.ZP,{default:!0,inline:!0,monospace:!0,children:t}),r>=0&&":",r>=0&&(0,R.jsx)(b.ZP,{default:!0,inline:!0,monospace:!0,children:r})]})]})})})}return(0,R.jsxs)(je,{className:"table_row",onClick:function(){var e,n=p[l],t=null===(e=n.data)||void 0===e?void 0:e.uuid;o.log_uuid===t&&(t=null),(0,D.u7)((0,i.Z)({},Ae,t)),c(t?n:null)},selected:(null===o||void 0===o?void 0:o.log_uuid)&&(null===o||void 0===o?void 0:o.log_uuid)===w,style:Ze({},d),children:[(0,R.jsx)(M.Z,{alignItems:"center",justifyContent:"center",children:(0,R.jsx)(S,Ze({},(0,i.Z)({},null===P||void 0===P?void 0:P.toLowerCase(),!0)))},"log_type"),(0,R.jsx)(M.Z,{children:(0,R.jsx)(b.ZP,{default:!0,monospace:!0,noWrapping:!0,children:V(C)},"log_timestamp")}),(0,R.jsx)(M.Z,{style:{minWidth:O,width:O},children:n}),(0,R.jsx)(M.Z,{style:{overflow:"auto"},children:(0,R.jsx)(b.ZP,{monospace:!0,textOverflow:!0,title:T||x,children:(0,R.jsx)(se(),{children:T||x})},"log_message")}),(0,R.jsx)(M.Z,{flex:"1",justifyContent:"flex-end",children:(0,R.jsx)(W._Q,{default:!0,size:2*j.iI})},"chevron_right_icon")]})}),[O,a,o,c]);return(0,R.jsxs)(be,{children:[(0,R.jsx)(xe,{children:_.map((function(e,n){return(0,R.jsx)(M.Z,{alignItems:"center",style:{height:4*j.iI,minWidth:e.width||null,width:e.width||null},children:"_"!==e.uuid&&(0,R.jsx)(b.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:e.uuid})},"".concat(e,"_").concat(n))}))}),(0,R.jsx)(he.t7,{height:l-me.Mz-86-34-58,itemCount:t.length,itemData:{blocksByUUID:n,logs:t,pipeline:r,themeContext:u},itemSize:3.75*j.iI,width:"100%",children:Z})]})},De=t(2713),Re=t(47999),ke=t(55378),Ce=t(82944),we=t(66166),Ie="_limit",Le="_offset",Ne=20,Me=[O.LAST_HOUR,O.LAST_DAY,O.LAST_WEEK,O.LAST_30_DAYS],Be=(Pe={},(0,i.Z)(Pe,O.LAST_HOUR,3600),(0,i.Z)(Pe,O.LAST_DAY,86400),(0,i.Z)(Pe,O.LAST_WEEK,604800),(0,i.Z)(Pe,O.LAST_30_DAYS,2592e3),Pe),Ye=t(84779),He=t(42305),Ue=t(7715),We=t(59e3);function Fe(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 Xe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Fe(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Fe(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"}(Te||(Te={}));var qe=(Se={},(0,i.Z)(Se,Ie,Ne),(0,i.Z)(Se,Le,0),Se);var Je=function(e){var n=e.allPastLogsLoaded,t=e.loadNewerLogInterval,r=e.loadPastLogInterval,o=e.selectedRange,c=e.setSelectedRange,u=(0,d.useState)(null),l=u[0],a=u[1],s=(0,d.useState)(null),p=s[0],h=s[1],m=(0,d.useState)({hour:"00",minute:"00"}),x=m[0],y=m[1],_=(0,d.useState)(new Date),Z=_[0],A=_[1],P=(0,d.useState)({hour:(0,He.lJ)(String((new Date).getUTCHours())),minute:(0,He.lJ)(String((new Date).getUTCMinutes()))}),S=P[0],T=P[1],E=(0,We.iV)(),k=(0,we.Z)(E);return(0,d.useEffect)((function(){if(!(0,Ue.Xy)(E,k)){var e=E.start_timestamp,n=E.end_timestamp;if(e){var t=(0,He.Pc)(e),r=t.date,o=t.hour,i=t.minute;h(r),y({hour:(0,He.lJ)(o),minute:(0,He.lJ)(i)});var u=Math.ceil(Date.now()/1e3)-e;Math.abs(u-Be[O.LAST_DAY])<=60&&c(O.LAST_DAY)}if(n){var l=(0,He.Pc)(n),a=l.date,d=l.hour,s=l.minute;A(a),T({hour:(0,He.lJ)(d),minute:(0,He.lJ)(s)})}}}),[E,k]),(0,R.jsx)(g.Z,{py:1,children:(0,R.jsxs)(v.Z,{alignItems:"center",children:[(0,R.jsx)(I.ZP,{blackBorder:!0,disabled:n,inline:!0,onClick:r,paddingBottom:.75*j.iI,paddingTop:.75*j.iI,uuid:"logs/load_older_logs",children:n?"All past logs within range loaded":"Load older logs"}),(0,R.jsx)(g.Z,{mr:1}),(0,R.jsx)(I.ZP,{blackBorder:!0,disabled:(null===E||void 0===E?void 0:E._offset)<=0,inline:!0,onClick:t,paddingBottom:.75*j.iI,paddingTop:.75*j.iI,uuid:"logs/load_newer_logs",children:"Load newer logs"}),(0,R.jsx)(g.Z,{mr:2}),(0,R.jsx)(ke.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault();var n=e.target.value;if(c(n),Me.includes(n)){var t,r=(0,Ye.JI)(Be[n]);(0,D.u7)(Xe((t={},(0,i.Z)(t,Te.START,r),(0,i.Z)(t,Te.END,null),t),qe))}},paddingRight:4*j.iI,placeholder:"Select time range",value:o,children:Object.values(O).map((function(e){return(0,R.jsx)("option",{value:e,children:e},e)}))}),(0,R.jsx)(g.Z,{mr:1}),o===O.CUSTOM_RANGE&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Ce.Z,{compact:!0,defaultColor:!0,onClick:function(){return a(0)},paddingRight:0,placeholder:"Start",value:p?(0,He.AY)(p,null===x||void 0===x?void 0:x.hour,null===x||void 0===x?void 0:x.minute):""}),(0,R.jsx)(Re.Z,{onClickOutside:function(){return a(null)},open:0===l,style:{position:"relative"},children:(0,R.jsx)(De.Z,{selectedDate:p,selectedTime:x,setSelectedDate:h,setSelectedTime:y})}),(0,R.jsx)(g.Z,{px:1,children:(0,R.jsx)(b.ZP,{children:"to"})}),(0,R.jsx)(Ce.Z,{compact:!0,defaultColor:!0,onClick:function(){return a(1)},paddingRight:0,placeholder:"End",value:Z?(0,He.AY)(Z,null===S||void 0===S?void 0:S.hour,null===S||void 0===S?void 0:S.minute):""}),(0,R.jsx)(Re.Z,{onClickOutside:function(){return a(null)},open:1===l,style:{position:"relative"},children:(0,R.jsx)(De.Z,{selectedDate:Z,selectedTime:S,setSelectedDate:A,setSelectedTime:T})}),(0,R.jsx)(g.Z,{mr:1}),(0,R.jsx)(f.Z,{borderRadius:j.iI/2,onClick:function(){var e,n=(0,He.BP)(p,x.hour,x.minute),t=(0,He.BP)(Z,S.hour,S.minute);(0,D.u7)(Xe((e={},(0,i.Z)(e,Te.START,(0,He.A5)(n)),(0,i.Z)(e,Te.END,(0,He.A5)(t)),e),qe))},padding:"".concat(j.iI/2,"px"),primary:!0,children:"Search"})]})]})})},ze=t(82531),Ke=t(59920);function Ge(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 Ve(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ge(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ge(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Qe="pipeline_run_id[]",$e="block_run_id[]";function en(e){var n=e.pipeline,t=(0,d.useContext)(l.ThemeContext),r=(0,d.useRef)(null),o=n.uuid,c=(0,d.useState)(null),u=c[0],f=c[1],h=(0,d.useState)(null),m=h[0],v=h[1],x=(0,d.useState)(null),y=x[0],_=x[1],Z=(0,d.useState)(!1),A=Z[0],P=Z[1],S=(0,d.useState)(null),E=S[0],k=S[1],C=ze.ZP.pipelines.detail(o,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,L=(0,d.useMemo)((function(){return Ve(Ve({},null===C||void 0===C?void 0:C.pipeline),{},{uuid:o})}),[C,o]),N=(null===L||void 0===L?void 0:L.type)===ce.qL.INTEGRATION,M=(0,d.useMemo)((function(){return L.blocks||[]}),[L]),B=(0,d.useMemo)((function(){var e=(0,Q.HK)(M,(function(e){return e.uuid}));if(N){var n,t=(0,Q.sE)(M,(function(e){var n=e.type;return s.tf.DATA_LOADER===n})),r=t?(0,a.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 M.forEach((function(e){var n=e.uuid,o=e.type,i="".concat(n,":").concat(t);r[i]={type:o}})),Ve(Ve({},e),r)}),{});e=Ve(Ve({},o),e)}return e}),[M,N]),Y=(0,We.iV)(),H=!(null!==Y&&void 0!==Y&&Y.start_timestamp)&&!(null!==Y&&void 0!==Y&&Y.hasOwnProperty(Qe)||null!==Y&&void 0!==Y&&Y.hasOwnProperty($e)),U=(0,Ye.JI)(Be[O.LAST_DAY]),W=ze.ZP.logs.pipelines.list(u?o:null,(0,Ue.gR)(H?Ve(Ve({},u),{},{start_timestamp:U}):u,[Ae]),{refreshInterval:5e3}),F=W.data,X=W.mutate,q=!F,J=(0,d.useMemo)((function(){var e;if(null!==F&&void 0!==F&&null!==(e=F.logs)&&void 0!==e&&e[0]){var n,t=(null===(n=F.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}}),[F]),z=J.blockRunLogs,K=J.pipelineRunLogs,V=J.totalBlockRunLogCount,$=J.totalPipelineRunLogCount,ee=+(null===Y||void 0===Y?void 0:Y._limit)>=V&&+(null===Y||void 0===Y?void 0:Y._limit)>=$,ne=(0,d.useMemo)((function(){return(0,Q.YC)(z.concat(K).reduce((function(e,n){return e.concat(G(n))}),[]),(function(e){var n=e.data;return(null===n||void 0===n?void 0:n.timestamp)||0}))}),[z,K]),te=(0,d.useMemo)((function(){return ne.filter((function(e){var n=e.data,t=[];if(!u)return!0;if(u["level[]"]&&t.push(u["level[]"].includes(null===n||void 0===n?void 0:n.level)),u["block_type[]"]){var r,o,i=null===n||void 0===n?void 0:n.block_uuid;if(N)i=null===n||void 0===n||null===(o=n.block_uuid)||void 0===o?void 0:o.split(":").slice(0,2).join(":");t.push(u["block_type[]"].includes(null===(r=B[i])||void 0===r?void 0:r.type))}if(u["pipeline_run_id[]"]){var c=null===n||void 0===n?void 0:n.pipeline_run_id;t.push(u["pipeline_run_id[]"].includes(String(c)))}if(u["block_run_id[]"]){var l=null===n||void 0===n?void 0:n.block_run_id;t.push(u["block_run_id[]"].includes(String(l)))}return t.every((function(e){return e}))}))}),[B,N,ne,u]),re=te.length,ue=(0,we.Z)(Y);(0,d.useEffect)((function(){var e;H&&(0,D.u7)((e={},(0,i.Z)(e,Ie,Ne),(0,i.Z)(e,Le,0),(0,i.Z)(e,"start_timestamp",U),e))}),[H]),(0,d.useEffect)((function(){(0,Ue.Xy)(Y,ue)||f(Y)}),[Y,ue]);var ae=(0,we.Z)(m);(0,d.useEffect)((function(){var e=Y.log_uuid;!e||m||ae||v(ne.find((function(n){var t=n.data;return(null===t||void 0===t?void 0:t.uuid)===e})))}),[ne,Y,m,ae]),(0,d.useEffect)((function(){var e;A&&!q&&(null===r||void 0===r||null===(e=r.current)||void 0===e||e.scrollIntoView(),P(!1))}),[A,q]);var de=Y._limit,se=Y._offset,pe=+(de||0),fe=+(se||0),he=Math.max(V,$),me=(0,d.useCallback)((function(){var e,n=pe,t=fe;(V>pe||$>pe)&&(n=Math.min(he,pe+Ne),t=Math.min(fe+Ne,he-he%Ne),(0,D.u7)(Ve(Ve({},Y),{},(e={},(0,i.Z)(e,Ie,n),(0,i.Z)(e,Le,t),e))))}),[he,pe,fe,Y,V,$]),ve=(0,d.useCallback)((function(){var e,n=pe,t=fe;pe>=Ne&&(n=Math.max(Ne,pe-Ne),pe>=he&&he%Ne!==0&&(n=he-he%Ne),t=Math.max(0,fe-Ne),(0,D.u7)(Ve(Ve({},Y),{},(e={},(0,i.Z)(e,Ie,n),(0,i.Z)(e,Le,t),e))))}),[he,pe,fe,Y]),ge=(0,d.useMemo)((function(){return(0,R.jsx)(Ee,{blocksByUUID:B,logs:te,pipeline:L,query:u,setSelectedLog:v,themeContext:t})}),[B,te,L,u,t]);return(0,R.jsxs)(ie.Z,{after:m&&(0,R.jsx)(oe,{log:m,onClose:function(){(0,D.u7)((0,i.Z)({},Ae,null)),v(null)}}),afterHidden:!m,afterWidth:80*j.iI,before:(0,R.jsx)(w,{blocks:M,query:u}),beforeWidth:20*j.iI,breadcrumbs:[{label:function(){return"Logs"}}],errors:E,pageName:Ke.M.PIPELINE_LOGS,pipeline:L,setErrors:k,subheader:null,title:function(e){var n=e.name;return"".concat(n," logs")},uuid:"pipeline/logs",children:[(0,R.jsx)(g.Z,{px:j.cd,py:1,children:(0,R.jsxs)(b.ZP,{children:[!q&&(0,R.jsxs)(R.Fragment,{children:[(0,T.x6)(re)," logs found",(0,R.jsx)(Je,{allPastLogsLoaded:ee,loadNewerLogInterval:ve,loadPastLogInterval:me,selectedRange:y,setSelectedRange:_})]}),q&&"Searching..."]})}),(0,R.jsx)(p.Z,{light:!0}),q&&(0,R.jsx)(g.Z,{p:j.cd,children:(0,R.jsx)(le.Z,{})}),!q&&te.length>=1&&ge,(0,R.jsx)(g.Z,{p:"".concat(1.5*j.iI,"px"),ref:r,children:(0,R.jsx)(I.ZP,{blackBorder:!0,inline:!0,onClick:function(){P(!0),"0"===(null===Y||void 0===Y?void 0:Y._offset)&&(null===Y||void 0===Y?void 0:Y._limit)===String(Ne)?X(null):(0,D.u7)({_limit:Ne,_offset:0})},paddingBottom:.75*j.iI,paddingTop:.75*j.iI,uuid:"logs/toolbar/load_newest",children:"Load latest logs"})})]})}en.getInitialProps=function(){var e=(0,o.Z)(u().mark((function e(n){var t;return u().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 nn=(0,ue.Z)(en)},42305:function(e,n,t){"use strict";t.d(n,{A5:function(){return p},AY:function(){return f},BP:function(){return s},JX:function(){return d},OC:function(){return i},Pc:function(){return h},Tz:function(){return a},d$:function(){return l},lJ:function(){return m},n1:function(){return u}});var r=t(92083),o=t.n(r),i="YYYY-MM-DD HH:mm:ss",c="YYYY-MM-DD HH:mm",u="YYYY-MM-DD";function l(e,n){var t=n.dayAgo,r=n.includeSeconds,u=n.utcFormat,l=o()(e),a=c;return u&&(l=l.utc()),t&&(l=l.subtract(1,"days")),r&&(a=i),l.format(a)}function a(e){var n=l((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0});return null!==e&&void 0!==e&&e.dateObj?new Date(n):n}function d(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?i:c)}function s(e,n,t){return o()(e).utc().hours(+n).minutes(+t).format()}function p(e){return o()(e).unix()}function f(e,n,t,r){var o="".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t);return r?"".concat(o,":").concat(r):o}function h(e){var n=o().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function m(e){return e.padStart(2,"0")}},84779:function(e,n,t){"use strict";t.d(n,{DU:function(){return c},JI:function(){return u},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 u(e){var n=Math.floor(Date.now()/1e3);return e>0?n-e:n}},33766:function(e,n,t){"use strict";t.d(n,{O2:function(){return s},g_:function(){return f},u7:function(){return p}});var r=t(75582),o=t(82394),i=t(34376),c=t.n(i),u=t(59e3),l=t(24224);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function 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}var s="_offset";function p(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.preserveParams,o=n.pushHistory,i=n.replaceParams,l=(0,u.iV)(),a={};t&&t.forEach((function(e){l[e]&&(a[e]=l[e])}));var s,p=i?a:l;s=window.location.pathname;var f=o?c().push:c().replace,h=d(d({},p),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 h[t]}));var m=(0,u.uM)(h);m.length>=1&&(m="?".concat(m));var v="".concat(s.split("?")[0]).concat(m);return f(c().router.pathname,v,{shallow:!0})}function f(e,n,t){var o=t.addingMultipleValues,i=t.isList,c=t.itemsPerPage,u=t.pushHistory,a=void 0!==u&&u,f=t.resetLimitParams,h=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,"[]");h[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,"[]"),u=h[c];u&&Array.isArray(u)?(u=u.map(String)).includes(i)?h[c]=(0,l.Od)(u,(function(e){return e===i})):h[c]=u.concat(i):h[c]=[i]})):h=d(d({},h),n),f&&(h._limit=c||20,h[s]=0),p(h,{pushHistory:a})}},62453:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/logs",function(){return t(19464)}])}},function(e){e.O(0,[844,7607,4804,2125,4495,1424,1005,8180,547,4822,9774,2888,179],(function(){return n=62453,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5912],{44162:function(n,t,e){"use strict";e.d(t,{HC:function(){return T},Kf:function(){return s},Nk:function(){return p},PY:function(){return f},gE:function(){return m},jv:function(){return b},nz:function(){return A},oh:function(){return d},qn:function(){return l},t1:function(){return h},y9:function(){return R}});var r=e(9518),o=e(23831),i=e(86422),c=e(73942),u=e(49125),a=e(90880),d=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,a=t||{},d=a.blockColor,l=a.isSelected,s=a.theme;return l?c=(s||o.Z).content.active:i.tf.TRANSFORMER===n||d===i.Lq.PURPLE?(c=(s||o.Z).accent.purple,u=(s||o.Z).accent.purpleLight):i.tf.DATA_EXPORTER===n||d===i.Lq.YELLOW?(c=(s||o.Z).accent.yellow,u=(s||o.Z).accent.yellowLight):i.tf.DATA_LOADER===n||d===i.Lq.BLUE?(c=(s||o.Z).accent.blue,u=(s||o.Z).accent.blueLight):i.tf.MARKDOWN===n?(c=(s||o.Z).accent.sky,u=(s||o.Z).accent.skyLight):i.tf.SENSOR===n||d===i.Lq.PINK?(c=(s||o.Z).accent.pink,u=(s||o.Z).accent.pinkLight):i.tf.DBT===n?(c=(s||o.Z).accent.dbt,u=(s||o.Z).accent.dbtLight):i.tf.EXTENSION===n||d===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.CALLBACK===n?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).rose,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).roseLight):(i.tf.SCRATCHPAD===n||d===i.Lq.GREY||i.tf.CUSTOM===n&&!d)&&(c=(s||o.Z).content.default,u=(s||o.Z).accent.contentDefaultTransparent),{accent:c,accentLight:u}}var s=(0,r.css)([""," "," "," "," "," "," ",""],(0,a.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(l(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(l(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||o.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||o.Z.borders).danger,";\n ")}),(function(n){return n.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(n){return n.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),p=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),f=r.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],s,c.n_,c.M8,c.mP,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n\n &:hover {\n border-color: ").concat(l(n.blockType,n).accent,";\n }\n ")})),A=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-2"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," "," ",""],s,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,u.iI,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n ")}),(function(n){return n.bottomBorder&&"\n border-bottom: ".concat(c.YF,"px ").concat(c.M8," ").concat((n.theme||o.Z).borders.medium2,";\n ")}),(function(n){return n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")})),b=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-3"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],s,c.M8,c.mP,c.M8,c.mP,u.iI,u.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(n){return n.lightBackground&&"\n background-color: ".concat((n.theme||o.Z).background.content,";\n ")}),(function(n){return!n.hasOutput&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-4"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*u.iI,.5*u.iI,(function(n){return n.additionalZIndex>0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||o.Z.text).fileBrowser,";\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-5"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*u.iI),R=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-6"})(["margin-bottom:","px;padding-bottom:","px;",""],1*u.iI,1*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:d,"px;\n ")})),T=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-7"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,d)},43032:function(n,t,e){"use strict";e.d(t,{Cl:function(){return u},Nk:function(){return a},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,a=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 f},DA:function(){return p},HX:function(){return m},J8:function(){return b},L8:function(){return c},Lq:function(){return l},Qj:function(){return h},Ut:function(){return O},V4:function(){return E},VZ:function(){return A},dO:function(){return s},f2:function(){return T},iZ:function(){return R},t6:function(){return u},tf:function(){return d}});var r,o,i,c,u,a=e(82394);!function(n){n.DBT_SNAPSHOT="snapshot",n.DYNAMIC="dynamic",n.DYNAMIC_CHILD="dynamic_child",n.REDUCE_OUTPUT="reduce_output",n.REPLICA="replica"}(c||(c={})),function(n){n.MARKDOWN="markdown",n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(u||(u={}));var d,l,s=(r={},(0,a.Z)(r,u.MARKDOWN,"MD"),(0,a.Z)(r,u.PYTHON,"PY"),(0,a.Z)(r,u.R,"R"),(0,a.Z)(r,u.SQL,"SQL"),(0,a.Z)(r,u.YAML,"YAML"),r);!function(n){n.CALLBACK="callback",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.MARKDOWN="markdown",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"}(l||(l={}));var p,f=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN,d.TRANSFORMER],A=[d.DATA_EXPORTER,d.DATA_LOADER],b=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],m=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],h=[d.CHART,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN],R=[d.CALLBACK,d.CHART,d.EXTENSION,d.SCRATCHPAD,d.MARKDOWN];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(p||(p={}));var T=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],E=(o={},(0,a.Z)(o,d.EXTENSION,"Callback"),(0,a.Z)(o,d.CUSTOM,"Custom"),(0,a.Z)(o,d.DATA_EXPORTER,"Data exporter"),(0,a.Z)(o,d.DATA_LOADER,"Data loader"),(0,a.Z)(o,d.EXTENSION,"Extension"),(0,a.Z)(o,d.SCRATCHPAD,"Scratchpad"),(0,a.Z)(o,d.SENSOR,"Sensor"),(0,a.Z)(o,d.MARKDOWN,"Markdown"),(0,a.Z)(o,d.TRANSFORMER,"Transformer"),o),O=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER,d.SENSOR];i={},(0,a.Z)(i,d.DATA_EXPORTER,"DE"),(0,a.Z)(i,d.DATA_LOADER,"DL"),(0,a.Z)(i,d.SCRATCHPAD,"SP"),(0,a.Z)(i,d.SENSOR,"SR"),(0,a.Z)(i,d.MARKDOWN,"MD"),(0,a.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),a=e(82684),d=e(92083),l=e.n(d),s=e(9518),p=e(21679),f=e(16634),A=e(67971),b=e(87372),m=e(87465),h=e(41788),R=e(55378),T=e(86673),E=e(82531),O=e(23831),v=e(67400),_=e(43032),D=e(92953),Z=e(44162),g=e(24224),x=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 C(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 S(n){var t=n.pipeline,e=(0,a.useContext)(s.ThemeContext),r=(0,a.useState)(null),c=r[0],u=r[1],d=t.uuid,h=E.ZP.pipelines.detail(d,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,y=(0,a.useMemo)((function(){return C(C({},null===h||void 0===h?void 0:h.pipeline),{},{uuid:d})}),[h,d]),S=E.ZP.pipeline_schedules.pipelines.list(d).data,N=(0,a.useMemo)((function(){return null===S||void 0===S?void 0:S.pipeline_schedules}),[S]),L=(0,a.useMemo)((function(){return(0,g.HK)(null===y||void 0===y?void 0:y.blocks,(function(n){return n.uuid}))||{}}),[y]),P={pipeline_uuid:d};(c||0===c)&&(P.pipeline_schedule_id=Number(c));var k=E.ZP.monitor_stats.detail("block_run_count",P),M=k.data,I=k.mutate,w=((null===M||void 0===M?void 0:M.monitor_stat)||{}).stats,j=(0,a.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}),[]),B=(0,a.useMemo)((function(){if(w)return Object.entries(w).reduce((function(n,t){var e=(0,o.Z)(t,2),r=e[0],c=e[1].data,u=j.map((function(n){return C({date:n},c[n]||{})}));return C(C({},n),{},(0,i.Z)({},r,u))}),{})}),[j,w]),H=(0,a.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[]);return(0,x.jsx)(m.Z,{breadcrumbs:H,monitorType:D.a.BLOCK_RUNS,pipeline:y,subheader:(0,x.jsx)(A.Z,{children:(0,x.jsxs)(R.Z,{backgroundColor:O.Z.interactive.defaultBackground,label:"Trigger:",onChange:function(n){var t=n.target.value;"initial"!==t?(u(t),I(t)):(I(),u(null))},value:c||"initial",children:[(0,x.jsx)("option",{value:"initial",children:"All"}),N&&N.map((function(n){return(0,x.jsx)("option",{value:n.id,children:n.name},n.id)}))]})}),children:(0,x.jsx)(T.Z,{mx:2,children:B&&Object.entries(B).map((function(n){var t,r,i=(0,o.Z)(n,2),c=i[0],u=i[1];return(0,x.jsxs)(T.Z,{mt:3,children:[(0,x.jsxs)(A.Z,{alignItems:"center",children:[(0,x.jsx)(T.Z,{mx:1,children:(0,x.jsx)(f.Z,{color:(0,Z.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,x.jsx)(b.Z,{level:4,children:c})]}),(0,x.jsx)(T.Z,{mt:1,children:(0,x.jsx)(p.Z,{colors:v.BAR_STACK_COLORS,data:u,getXValue:function(n){return n.date},height:200,keys:v.BAR_STACK_STATUSES,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:D.C,xLabelFormat:function(n){return l()(n).format("MMM DD")}})})]},c)}))})})}S.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)(S)},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,[844,7607,5896,2714,1424,1005,547,7400,9774,2888,179],(function(){return t=83542,n(n.s=t);var t}));var t=n.O();_N_E=t}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4947],{44162:function(n,e,t){"use strict";t.d(e,{HC:function(){return y},Kf:function(){return s},Nk:function(){return f},PY:function(){return p},gE:function(){return v},jv:function(){return m},nz:function(){return h},oh:function(){return l},qn:function(){return d},t1:function(){return b},y9:function(){return g}});var r=t(9518),o=t(23831),i=t(86422),c=t(73942),u=t(49125),a=t(90880),l=68;function d(n,e){var t,r,c=((null===e||void 0===e||null===(t=e.theme)||void 0===t?void 0:t.borders)||o.Z.borders).light,u=((null===e||void 0===e||null===(r=e.theme)||void 0===r?void 0:r.monotone)||o.Z.monotone).grey500,a=e||{},l=a.blockColor,d=a.isSelected,s=a.theme;return d?c=(s||o.Z).content.active:i.tf.TRANSFORMER===n||l===i.Lq.PURPLE?(c=(s||o.Z).accent.purple,u=(s||o.Z).accent.purpleLight):i.tf.DATA_EXPORTER===n||l===i.Lq.YELLOW?(c=(s||o.Z).accent.yellow,u=(s||o.Z).accent.yellowLight):i.tf.DATA_LOADER===n||l===i.Lq.BLUE?(c=(s||o.Z).accent.blue,u=(s||o.Z).accent.blueLight):i.tf.MARKDOWN===n?(c=(s||o.Z).accent.sky,u=(s||o.Z).accent.skyLight):i.tf.SENSOR===n||l===i.Lq.PINK?(c=(s||o.Z).accent.pink,u=(s||o.Z).accent.pinkLight):i.tf.DBT===n?(c=(s||o.Z).accent.dbt,u=(s||o.Z).accent.dbtLight):i.tf.EXTENSION===n||l===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.CALLBACK===n?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).rose,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).roseLight):(i.tf.SCRATCHPAD===n||l===i.Lq.GREY||i.tf.CUSTOM===n&&!l)&&(c=(s||o.Z).content.default,u=(s||o.Z).accent.contentDefaultTransparent),{accent:c,accentLight:u}}var s=(0,r.css)([""," "," "," "," "," "," ",""],(0,a.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(d(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(d(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 "})),f=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),p=r.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],s,c.n_,c.M8,c.mP,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n\n &:hover {\n border-color: ").concat(d(n.blockType,n).accent,";\n }\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-2"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," "," ",""],s,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,u.iI,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n ")}),(function(n){return n.bottomBorder&&"\n border-bottom: ".concat(c.YF,"px ").concat(c.M8," ").concat((n.theme||o.Z).borders.medium2,";\n ")}),(function(n){return n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-3"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],s,c.M8,c.mP,c.M8,c.mP,u.iI,u.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(n){return n.lightBackground&&"\n background-color: ".concat((n.theme||o.Z).background.content,";\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 ")})),v=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-4"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*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 ")})),b=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-5"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*u.iI),g=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-6"})(["margin-bottom:","px;padding-bottom:","px;",""],1*u.iI,1*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:l,"px;\n ")})),y=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-7"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,l)},43032:function(n,e,t){"use strict";t.d(e,{Cl:function(){return u},Nk:function(){return a},ZG:function(){return c}});var r=t(9518),o=t(23831),i=t(49125),c=1.5*i.iI,u=1*c+i.iI/2,a=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 ")}))},92953:function(n,e,t){"use strict";var r;t.d(e,{C:function(){return o},a:function(){return r}}),function(n){n.BLOCK_RUNS="block_runs",n.BLOCK_RUNTIME="block_runtime",n.PIPELINE_RUNS="pipeline_runs"}(r||(r={}));var o=-50},87465:function(n,e,t){"use strict";t.d(e,{Z:function(){return v}});t(82684);var r=t(34376),o=t(87372),i=t(60547),c=t(86673),u=t(19711),a=t(2850),l=t(9518),d=t(23831),s=t(49125),f=l.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1in9sst-0"})(["padding:","px ","px;"," ",""],s.iI,s.tr,(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||d.Z.interactive).checked,";\n ")}),(function(n){return!n.selected&&"\n cursor: pointer;\n "})),p=t(92953),h=t(59920),m=t(28598);var v=function(n){var e=n.breadcrumbs,t=n.children,l=n.errors,d=n.monitorType,v=n.pipeline,b=n.setErrors,g=n.subheader,y=(0,r.useRouter)();return(0,m.jsx)(i.Z,{before:(0,m.jsxs)(a.M,{children:[(0,m.jsx)(c.Z,{p:s.cd,children:(0,m.jsx)(o.Z,{level:4,muted:!0,children:"Insights"})}),(0,m.jsx)(f,{onClick:function(n){n.preventDefault(),y.push("/pipelines/[pipeline]/monitors","/pipelines/".concat(null===v||void 0===v?void 0:v.uuid,"/monitors"))},selected:p.a.PIPELINE_RUNS==d,children:(0,m.jsx)(u.ZP,{children:"Pipeline runs"})}),(0,m.jsx)(f,{onClick:function(n){n.preventDefault(),y.push("/pipelines/[pipeline]/monitors/block-runs","/pipelines/".concat(null===v||void 0===v?void 0:v.uuid,"/monitors/block-runs"))},selected:p.a.BLOCK_RUNS==d,children:(0,m.jsx)(u.ZP,{children:"Block runs"})}),(0,m.jsx)(f,{onClick:function(n){n.preventDefault(),y.push("/pipelines/[pipeline]/monitors/block-runtime","/pipelines/".concat(null===v||void 0===v?void 0:v.uuid,"/monitors/block-runtime"))},selected:p.a.BLOCK_RUNTIME==d,children:(0,m.jsx)(u.ZP,{children:"Block runtime"})})]}),breadcrumbs:e,errors:l,pageName:h.M.MONITOR,pipeline:v,setErrors:b,subheader:g,uuid:"pipeline/monitor",children:t})}},2850:function(n,e,t){"use strict";t.d(e,{M:function(){return c},W:function(){return i}});var r=t(9518),o=t(3055),i=34*t(49125).iI,c=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],o.Mz)},45739:function(n,e,t){"use strict";t.d(e,{K:function(){return o}});var r=t(31969),o=function(n){var e=n||r.Z,t=e.brand,o=t.earth200,i=t.earth300,c=t.earth400,u=t.energy200,a=t.energy300,l=t.energy400,d=t.fire200,s=t.fire300,f=t.fire400,p=t.water200,h=t.water300,m=t.water400,v=t.wind200,b=t.wind300,g=t.wind400,y=e.chart;return[y.backgroundPrimary,y.backgroundSecondary,y.backgroundTertiary].concat([g,m,f,l,c,b,h,s,a,i,v,p,d,u,o])}},52359:function(n,e,t){"use strict";var r=t(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;"]);e.Z=r},344:function(n,e,t){"use strict";t.d(e,{P5:function(){return o},Vs:function(){return i}});t(90211);var r=Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:2});function o(n){return"number"!==typeof n?n:n>=1e4?r.format(n):n.toString()}function i(n,e,t){var r,o;if("undefined"===typeof n||"undefined"===typeof e)return 0;var i=null===n||void 0===n||null===(r=n(e,t))||void 0===r||null===(o=r.props)||void 0===o?void 0:o.children;return(Array.isArray(i)?i:[i]).join("").length}},86422:function(n,e,t){"use strict";t.d(e,{$W:function(){return p},DA:function(){return f},HX:function(){return v},J8:function(){return m},L8:function(){return c},Lq:function(){return d},Qj:function(){return b},Ut:function(){return R},V4:function(){return A},VZ:function(){return h},dO:function(){return s},f2:function(){return y},iZ:function(){return g},t6:function(){return u},tf:function(){return l}});var r,o,i,c,u,a=t(82394);!function(n){n.DBT_SNAPSHOT="snapshot",n.DYNAMIC="dynamic",n.DYNAMIC_CHILD="dynamic_child",n.REDUCE_OUTPUT="reduce_output",n.REPLICA="replica"}(c||(c={})),function(n){n.MARKDOWN="markdown",n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(u||(u={}));var l,d,s=(r={},(0,a.Z)(r,u.MARKDOWN,"MD"),(0,a.Z)(r,u.PYTHON,"PY"),(0,a.Z)(r,u.R,"R"),(0,a.Z)(r,u.SQL,"SQL"),(0,a.Z)(r,u.YAML,"YAML"),r);!function(n){n.CALLBACK="callback",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.MARKDOWN="markdown",n.TRANSFORMER="transformer"}(l||(l={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(d||(d={}));var f,p=[l.CHART,l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SCRATCHPAD,l.SENSOR,l.MARKDOWN,l.TRANSFORMER],h=[l.DATA_EXPORTER,l.DATA_LOADER],m=[l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],v=[l.DATA_EXPORTER,l.DATA_LOADER,l.DBT,l.TRANSFORMER],b=[l.CHART,l.SCRATCHPAD,l.SENSOR,l.MARKDOWN],g=[l.CALLBACK,l.CHART,l.EXTENSION,l.SCRATCHPAD,l.MARKDOWN];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(f||(f={}));var y=[l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],A=(o={},(0,a.Z)(o,l.EXTENSION,"Callback"),(0,a.Z)(o,l.CUSTOM,"Custom"),(0,a.Z)(o,l.DATA_EXPORTER,"Data exporter"),(0,a.Z)(o,l.DATA_LOADER,"Data loader"),(0,a.Z)(o,l.EXTENSION,"Extension"),(0,a.Z)(o,l.SCRATCHPAD,"Scratchpad"),(0,a.Z)(o,l.SENSOR,"Sensor"),(0,a.Z)(o,l.MARKDOWN,"Markdown"),(0,a.Z)(o,l.TRANSFORMER,"Transformer"),o),R=[l.DATA_LOADER,l.TRANSFORMER,l.DATA_EXPORTER,l.SENSOR];i={},(0,a.Z)(i,l.DATA_EXPORTER,"DE"),(0,a.Z)(i,l.DATA_LOADER,"DL"),(0,a.Z)(i,l.SCRATCHPAD,"SP"),(0,a.Z)(i,l.SENSOR,"SR"),(0,a.Z)(i,l.MARKDOWN,"MD"),(0,a.Z)(i,l.TRANSFORMER,"TF")},68805:function(n,e,t){"use strict";t.r(e);var r=t(77837),o=t(75582),i=t(82394),c=t(38860),u=t.n(c),a=t(82684),l=t(92083),d=t.n(l),s=t(16634),f=t(67971),p=t(87372),h=t(68735),m=t(87465),v=t(41788),b=t(86673),g=t(55378),y=t(19711),A=t(82531),R=t(23831),E=t(73942),x=t(43032),T=t(92953),O=t(9518),_=t(44162),Z=t(24224),k=t(28598);function w(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function C(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?w(Object(t),!0).forEach((function(e){(0,i.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function D(n){var e=n.pipeline,t=(0,a.useContext)(O.ThemeContext),r=(0,a.useState)(null),c=r[0],u=r[1],l=e.uuid,v=A.ZP.pipelines.detail(l,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,w=(0,a.useMemo)((function(){return C(C({},null===v||void 0===v?void 0:v.pipeline),{},{uuid:l})}),[v,l]),D=A.ZP.pipeline_schedules.pipelines.list(l).data,N=(0,a.useMemo)((function(){return null===D||void 0===D?void 0:D.pipeline_schedules}),[D]),S=(0,a.useMemo)((function(){return(0,Z.HK)(null===w||void 0===w?void 0:w.blocks,(function(n){return n.uuid}))||{}}),[w]),L={pipeline_uuid:l};(c||0===c)&&(L.pipeline_schedule_id=Number(c));var P=A.ZP.monitor_stats.detail("block_run_time",L),M=P.data,I=P.mutate;(0,a.useEffect)((function(){I(c)}),[I,c]);var j=((null===M||void 0===M?void 0:M.monitor_stat)||{}).stats,B=(0,a.useMemo)((function(){for(var n=new Date,e=[],t=0;t<90;t++)e.unshift(n.toISOString().split("T")[0]),n.setDate(n.getDate()-1);return e}),[]),U=(0,a.useMemo)((function(){if(j)return Object.entries(j).reduce((function(n,e){var t=(0,o.Z)(e,2),r=t[0],c=t[1].data;return C(C({},n),{},(0,i.Z)({},r,B.map((function(n){return{x:n,y:n in c?[c[n]]:null}}))))}),{})}),[j]),X=(0,a.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[w]);return(0,k.jsx)(m.Z,{breadcrumbs:X,monitorType:T.a.BLOCK_RUNTIME,pipeline:w,subheader:(0,k.jsx)(f.Z,{children:(0,k.jsxs)(g.Z,{backgroundColor:R.Z.interactive.defaultBackground,label:"Trigger:",onChange:function(n){var e=n.target.value;"initial"!==e?(u(e),I(e)):(I(),u(null))},value:c||"initial",children:[(0,k.jsx)("option",{value:"initial",children:"All"}),N&&N.map((function(n){return(0,k.jsx)("option",{value:n.id,children:n.name},n.id)}))]})}),children:(0,k.jsx)(b.Z,{mx:2,children:U&&Object.entries(U).map((function(n,e){var r,i,c=(0,o.Z)(n,2),u=c[0],a=c[1];return(0,k.jsxs)(b.Z,{mt:2,children:[(0,k.jsxs)(f.Z,{alignItems:"center",children:[(0,k.jsx)(b.Z,{mx:1,children:(0,k.jsx)(s.Z,{color:(0,_.qn)(null===(r=S[u])||void 0===r?void 0:r.type,{blockColor:null===(i=S[u])||void 0===i?void 0:i.color,theme:t}).accent,size:x.ZG,square:!0})}),(0,k.jsx)(p.Z,{level:4,children:u})]}),(0,k.jsx)("div",{style:{backgroundColor:R.Z.background.chartBlock,borderRadius:"".concat(E.TR,"px"),marginTop:"8px"},children:(0,k.jsx)(h.Z,{data:a,getX:function(n){return d()(n.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(n){return(0,k.jsx)(y.ZP,{center:!0,inverted:!0,small:!0,children:d()(n.x).format("MMM DD")})},renderYTooltipContent:function(n){var e,t=null===n||void 0===n||null===(e=n.y)||void 0===e?void 0:e[0];return void 0!==t&&(0,k.jsxs)(y.ZP,{center:!0,inverted:!0,small:!0,children:[t.toFixed?t.toFixed(3):t,"s"]})},thickStroke:!0,xLabelFormat:function(n){return d()(n).format("MMM DD")},xLabelRotate:!1})})]},"".concat(u,"_").concat(e))}))})})}D.getInitialProps=function(){var n=(0,r.Z)(u().mark((function n(e){var t;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.query.pipeline,n.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),e.default=(0,v.Z)(D)},90211:function(n,e,t){"use strict";t.d(e,{RA:function(){return d},kC:function(){return s},vg:function(){return g},kE:function(){return T},T3:function(){return R},Mp:function(){return f},Pb:function(){return a},HW:function(){return A},wX:function(){return p},x6:function(){return h},_6:function(){return m},zf:function(){return y},Y6:function(){return x},wE:function(){return O},J3:function(){return v},We:function(){return l},QV:function(){return E},C5:function(){return b}});var r=t(75582),o=t(17717),i=["aged","ancient","autumn","billowing","bitter","black","blue","bold","broken","cold","cool","crimson","damp","dark","dawn","delicate","divine","dry","empty","falling","floral","fragrant","frosty","green","hidden","holy","icy","late","lingering","little","lively","long","misty","morning","muddy","nameless","old","patient","polished","proud","purple","quiet","red","restless","rough","shy","silent","small","snowy","solitary","sparkling","spring","still","summer","throbbing","twilight","wandering","weathered","white","wild","winter","wispy","withered","young"],c=(t(92083),["bird","breeze","brook","bush","butterfly","cherry","cloud","darkness","dawn","dew","dream","dust","feather","field","fire","firefly","flower","fog","forest","frog","frost","glade","glitter","grass","haze","hill","lake","leaf","meadow","moon","morning","mountain","night","paper","pine","pond","rain","resonance","river","sea","shadow","shape","silence","sky","smoke","snow","snowflake","sound","star","sun","sun","sunset","surf","thunder","tree","violet","voice","water","water","waterfall","wave","wildflower","wind","wood"]),u=t(24224);function a(n){if(!n)return!1;try{JSON.parse(n)}catch(e){return!1}return!0}function l(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return n.split(" ").join(e)}function d(n){return n.split(" ").join("_")}function s(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}function f(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*n)}function p(n){return n.charAt(0).toLowerCase()+n.slice(1)}function h(n){if(null===n||"undefined"===typeof n)return"";var e=n.toString().split("."),t=(0,r.Z)(e,2),o=t[0],i=t[1],c=o.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return i?"".concat(c,".").concat(i):c}function m(n,e){var t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e,i=void 0!==o&&null!==o;if(i||(o=2),1===o)t=n;else{var c=n.length,u=n[c-1];t="y"===u&&"day"!==n?"".concat(n.slice(0,c-1),"ies"):"".concat(n,"s"===u?"es":"s")}if(i){var a=r?h(o):o;return"".concat(a," ").concat(t)}return t}function v(n){return null===n||void 0===n?void 0:n.replace(/_/g," ")}function b(n){var e=n.length;return"ies"===n.slice(e-3,e)?"".concat(n.slice(0,e-3),"y"):"es"===n.slice(e-2,e)&&"ces"!==n.slice(e-3,e)?n.slice(0,e-2):n.slice(0,e-1)}function g(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return s(v(n.toLowerCase()))}function y(n){var e,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(o,i){if(!e){var c=(0,r.Z)(o,2),u=c[0],a=c[1],l=t.slice(0,i).reduce((function(n,e){return n*Number(e[1])}),1);n<Number(a)*l&&(e=m(u,Math.round(n/l)))}})),e}function A(n){return!isNaN(n)}function R(n){return"".concat(h(function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Math.round((n||0)*Math.pow(100,e))/100}(n)),"%")}function E(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=Math.pow(10,e);return Math.round((n||0)*t)/t}function x(){return"".concat((0,u.mp)(i)," ").concat((0,u.mp)(c))}function T(n){return null===n||void 0===n?void 0:n.toLowerCase().replace(/\W+/g,"_")}function O(n){var e,t=n.split(o.sep),r=t[t.length-1].split(".");return e=1===r.length?r[0]:r.slice(0,-1).join("."),t.slice(0,t.length-1).concat(e).join(o.sep)}},76017:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors/block-runtime",function(){return t(68805)}])}},function(n){n.O(0,[3662,844,7607,5896,2714,9832,1424,1005,547,8735,9774,2888,179],(function(){return e=76017,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8662],{27125:function(e,n,t){"use strict";var i=t(82684),r=t(12691),o=t.n(r),u=t(34376),l=t.n(u),c=t(9518),s=t(66050),a=t(60328),d=t(16634),p=t(10919),f=t(98781),v=t(86673),b=t(58180),h=t(19711),g=t(10503),j=t(49125),O=t(44162),m=t(24224),x=t(28598);n.Z=function(e){var n=e.blockRuns,t=e.onClickRow,r=e.pipeline,u=e.selectedRun,y=(0,i.useContext)(c.ThemeContext),Z=(r||{}).uuid,P=(0,i.useMemo)((function(){return r.blocks||[]}),[r]),_=(0,i.useMemo)((function(){return(0,m.HK)(P,(function(e){return e.uuid}))}),[P]);return(0,x.jsx)(b.Z,{columnFlex:[null,1,3,2,null,null],columns:[{uuid:"Date"},{uuid:"Status"},{uuid:"Trigger"},{uuid:"Block"},{uuid:"Completed"},{uuid:"Logs"}],isSelectedRow:function(e){return n[e].id===(null===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,i,u,c=e.block_uuid,b=e.completed_at,m=e.created_at,P=e.id,w=e.pipeline_schedule_id,k=e.pipeline_schedule_name,D=e.status,E=c,T=E.split(":");f.qL.INTEGRATION===r.type&&(E=T[0],i=T[1],u=T[2]);var I=_[E];return I||(I=_[T[0]]),[(0,x.jsx)(h.ZP,{monospace:!0,default:!0,children:m}),(0,x.jsx)(h.ZP,{danger:s.V.FAILED===D,default:s.V.CANCELLED===D,info:s.V.INITIAL===D,monospace:!0,success:s.V.COMPLETED===D,warning:s.V.RUNNING===D,children:D}),(0,x.jsx)(o(),{as:"/pipelines/".concat(Z,"/triggers/").concat(w),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,x.jsx)(p.Z,{bold:!0,sameColorAsText:!0,children:k})}),(0,x.jsx)(o(),{as:"/pipelines/".concat(Z,"/edit?block_uuid=").concat(E),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,x.jsxs)(p.Z,{bold:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,x.jsx)(d.Z,{color:(0,O.qn)(null===(n=I)||void 0===n?void 0:n.type,{blockColor:null===(t=I)||void 0===t?void 0:t.color,theme:y}).accent,size:1.5*j.iI,square:!0}),(0,x.jsx)(v.Z,{mr:1}),(0,x.jsxs)(h.ZP,{monospace:!0,children:[E,i&&": ",i&&(0,x.jsx)(h.ZP,{default:!0,inline:!0,monospace:!0,children:i}),u>=0&&": ",u>=0&&(0,x.jsx)(h.ZP,{default:!0,inline:!0,monospace:!0,children:u})]})]})}),(0,x.jsx)(h.ZP,{monospace:!0,default:!0,children:b||"-"}),(0,x.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(Z,"/logs?block_run_id[]=").concat(P))},children:(0,x.jsx)(g.B4,{default:!0,size:2*j.iI})})]})),uuid:"block-runs"})}},56681:function(e,n,t){"use strict";t.d(n,{G7:function(){return y},ZP:function(){return Z},u$:function(){return O}});var i=t(75582),r=t(82394),o=t(26304),u=t(32316),l=t(22673),c=t(73752),s=t(86673),a=t(19711),d=t(58180),p=t(49125),f=t(19395),v=t(7715),b=t(28598),h=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function g(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 j(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?g(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var O=76,m={uuid:"Run details"},x={uuid:"Dependency tree"},y=[x,m];function Z(e){var n=e.height,t=e.heightOffset,r=e.pipeline,g=e.selectedRun,Z=e.selectedTab,P=e.setSelectedTab,_=j({},(0,o.Z)(e,h));g?_.blockStatus=(0,f.IJ)(null===g||void 0===g?void 0:g.block_runs):_.noStatus=!0;var w=(0,v.Kn)(null===g||void 0===g?void 0:g.variables)?j({},null===g||void 0===g?void 0:g.variables):(null===g||void 0===g?void 0:g.variables)||{},k=null===g||void 0===g?void 0:g.event_variables;if(k&&(0,v.Kn)(k)&&!(0,v.Qr)(k))if((0,v.Kn)(w)&&w.hasOwnProperty("event")){var D=(0,v.Kn)(w.event)?w.event:{};w.event=j(j({},D),k)}else w.event=j({},k);var E=[];w&&JSON.stringify(w,null,2).split("\n").forEach((function(e){E.push(" ".concat(e))}));var T=g&&[["Run ID",null===g||void 0===g?void 0:g.id],["Variables",(0,b.jsx)(l.Z,{language:"json",small:!0,source:E.join("\n")},"variable_value")]],I=g&&(0,b.jsx)(s.Z,{pb:p.cd,px:p.cd,children:(0,b.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:T.map((function(e,n){var t=(0,i.Z)(e,2),r=t[0],o=t[1];return[(0,b.jsx)(a.ZP,{monospace:!0,muted:!0,children:r},"key_".concat(n)),(0,b.jsx)(a.ZP,{monospace:!0,textOverflow:!0,children:o},"val_".concat(n))]})),uuid:"LogDetail"})}),C=Z&&P;return(0,b.jsxs)(b.Fragment,{children:[C&&(0,b.jsx)(s.Z,{py:p.cd,children:(0,b.jsx)(u.Z,{onClickTab:P,selectedTabUUID:null===Z||void 0===Z?void 0:Z.uuid,tabs:y})}),(!C||x.uuid===(null===Z||void 0===Z?void 0:Z.uuid))&&(0,b.jsx)(c.Z,j(j({},_),{},{height:n,heightOffset:(t||0)+(C?O:0),pipeline:r})),m.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&I]})}},64155:function(e,n,t){"use strict";t.d(n,{Eh:function(){return s},ht:function(){return d},t0:function(){return a}});var i=t(9518),r=t(82386),o=t(1286),u=t(31012),l=t(37391),c=t(49125),s=(c.iI,o.O$+3*c.iI+u.dN),a=i.default.div.withConfig({displayName:"indexstyle__SidekickContainerStyle",componentId:"sc-15ofupc-0"})([""," overflow:auto;position:absolute;width:100%;",""],l.w5,(function(e){return"\n height: calc(100vh - ".concat(r.uX,"px - ").concat(e.heightOffset,"px);\n ")})),d=i.default.div.withConfig({displayName:"indexstyle__PaddingContainerStyle",componentId:"sc-15ofupc-1"})(["padding:","px;",""],2*c.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}))},19395:function(e,n,t){"use strict";t.d(n,{IJ:function(){return a},Vx:function(){return p},eI:function(){return d},gU:function(){return v},tL:function(){return f},vJ:function(){return b}});var i,r,o=t(82394),u=t(92083),l=t.n(u);function c(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 s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,i=n.completed_at,r=n.started_at,u=n.status,c=null;r&&i&&(c=l()(i).valueOf()-l()(r).valueOf());return s(s({},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"string"!==typeof e?e:d(e.split("+")[0]).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(r||(r={}));var f=(i={},(0,o.Z)(i,r.DAY,86400),(0,o.Z)(i,r.HOUR,3600),(0,o.Z)(i,r.MINUTE,60),(0,o.Z)(i,r.SECOND,1),i);function v(e){var n=r.SECOND,t=e;return e%86400===0?(t/=86400,n=r.DAY):e%3600===0?(t/=3600,n=r.HOUR):e%60===0&&(t/=60,n=r.MINUTE),{time:t,unit:n}}function b(e,n){return e*f[n]}},47409:function(e,n,t){"use strict";t.d(n,{Az:function(){return l},BF:function(){return u},Do:function(){return s},VO:function(){return o},sZ:function(){return c}});var i,r=t(82394),o=t(66050).V,u=[o.INITIAL,o.RUNNING],l=[o.CANCELLED,o.COMPLETED,o.FAILED],c="__mage_variables",s=(i={},(0,r.Z)(i,o.CANCELLED,"Cancelled"),(0,r.Z)(i,o.COMPLETED,"Done"),(0,r.Z)(i,o.FAILED,"Failed"),(0,r.Z)(i,o.INITIAL,"Ready"),(0,r.Z)(i,o.RUNNING,"Running"),i)},22673:function(e,n,t){"use strict";var i=t(82684),r=t(68792),o=t(31811),u=t(9518),l=t(65292),c=t(23831),s=t(2005),a=t(49125),d=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,p=e.showLineNumbers,f=e.small,v=e.source,b=e.wrapLines,h=(0,i.useContext)(u.ThemeContext);function g(e){var i=e.value;return(0,d.jsx)(o.Z,{customStyle:{backgroundColor:(h.background||c.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:s.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,maxWidth:t,paddingBottom:2*a.iI,paddingTop:2*a.iI},language:n,lineNumberStyle:{color:(h.content||c.Z.content).muted},showLineNumbers:p,style:l._4,useInlineStyles:!0,wrapLines:b,children:i})}return(0,d.jsx)(r.D,{components:{code:function(e){var n=e.children;return(0,d.jsx)(g,{value:n})}},children:v})}},23588:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return z}});var i=t(77837),r=t(75582),o=t(82394),u=t(38860),l=t.n(u),c=t(82684),s=t(83455),a=t(27125),d=t(60328),p=t(34744),f=t(93461),v=t(67971),b=t(87372),h=t(60547),g=t(47409),j=t(98781),O=t(41788),m=t(86673),x=t(54283),y=t(19711),Z=t(82531),P=t(26304),_=t(32316),w=t(62976),k=t(73752),D=t(82635),E=t(49125),T=t(64155),I=t(56681),C=t(19395),N=t(90211),S=t(28598),R=["blockRuns","columns","dataType","height","heightOffset","loadingData","pipeline","renderColumnHeader","rows","selectedRun","selectedTab","setSelectedTab","textData"];function L(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 A(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?L(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var M={uuid:"Dependency tree"},U={uuid:"Block output"},B=[U,M];var F=t(59920),H=t(96510),V=t(66653);function G(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 q(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?G(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):G(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function J(e){var n,t=e.pipeline,i=e.pipelineRun,o=(0,c.useState)(null),u=o[0],l=o[1],O=(0,c.useState)(B[0]),L=O[0],G=O[1],J=(0,c.useState)(null),z=J[0],K=J[1],Y=t.uuid,W=Z.ZP.pipelines.detail(Y,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,X=(0,c.useMemo)((function(){return q(q({},null===W||void 0===W?void 0:W.pipeline),{},{uuid:Y})}),[W,Y]),$=Z.ZP.pipeline_runs.detail(i.id,{},{refreshInterval:3e3,revalidateOnFocus:!0}).data,Q=(0,c.useMemo)((function(){return(null===$||void 0===$?void 0:$.pipeline_run)||{}}),[$]),ee=Q.block_runs,ne=Q.execution_date,te=Q.id,ie=Q.status,re=(0,s.Db)(Z.ZP.pipeline_runs.useUpdate(te),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(){l(null)},onErrorCallback:function(e,n){return K({errors:n,response:e})}})}}),oe=(0,r.Z)(re,2),ue=oe[0],le=oe[1].isLoading,ce=Z.ZP.outputs.block_runs.list(null===u||void 0===u?void 0:u.id),se=ce.data,ae=ce.loading,de=(null===se||void 0===se||null===(n=se.outputs)||void 0===n?void 0:n[0])||{},pe=de.sample_data,fe=de.text_data,ve=de.type;(0,c.useEffect)((function(){u||(null===L||void 0===L?void 0:L.uuid)!==U.uuid||G(M)}),[u,null===L||void 0===L?void 0:L.uuid]);var be=(0,c.useMemo)((function(){return ee||[]}),[Q]),he=((null===pe||void 0===pe?void 0:pe.columns)||[]).slice(0,40),ge=(null===pe||void 0===pe?void 0:pe.rows)||[],je=(0,c.useMemo)((function(){return(0,S.jsx)(a.Z,{blockRuns:be,onClickRow:function(e){l((function(n){var t=be[e],i=(null===n||void 0===n?void 0:n.id)!==t.id?t:null;return i&&G((function(e){return e!==U?U:e})),i}))},pipeline:X,selectedRun:u})}),[be,X,u]),Oe=(null===X||void 0===X?void 0:X.type)!==j.qL.STREAMING&&ie&&ie!==g.VO.COMPLETED,me=((null===X||void 0===X?void 0:X.type)===j.qL.PYTHON||(null===X||void 0===X?void 0:X.type)===j.qL.INTEGRATION)&&u&&g.Az.includes(ie);return(0,S.jsxs)(h.Z,{breadcrumbs:[{label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(Y,"/runs"),href:"/pipelines/[pipeline]/runs"}},{label:function(){return ne}}],buildSidekick:function(e){return function(e){var n=e.blockRuns,t=e.columns,i=e.dataType,r=e.height,o=e.heightOffset,u=e.loadingData,l=e.pipeline,c=e.renderColumnHeader,s=e.rows,a=e.selectedRun,d=e.selectedTab,p=e.setSelectedTab,f=e.textData,b=A({},(0,P.Z)(e,R));b.blockStatus=(0,C.IJ)(n);var h=(0,S.jsx)(m.Z,{ml:2,children:(0,S.jsx)(y.ZP,{children:"This block run has no output."})}),g=s&&s.length>0?(0,S.jsx)(w.Z,{columnHeaderHeight:c?T.Eh:0,columns:t,height:r-o-90,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,renderColumnHeader:c,rows:s}):h,j=(0,N.Pb)(f)?JSON.stringify(JSON.parse(f),null,2):f,O=f?(0,S.jsx)(m.Z,{ml:2,children:(0,S.jsx)(y.ZP,{monospace:!0,children:(0,S.jsx)("pre",{children:j})})}):h,Z=d&&p;return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{style:{position:"fixed",top:"50px"},children:Z&&(0,S.jsx)(m.Z,{py:E.cd,children:(0,S.jsx)(_.Z,{onClickTab:p,selectedTabUUID:null===d||void 0===d?void 0:d.uuid,tabs:a?B:[M]})})}),(0,S.jsxs)("div",{style:{position:"relative",top:"75px"},children:[(!a||M.uuid===(null===d||void 0===d?void 0:d.uuid))&&(0,S.jsx)(k.Z,A(A({},b),{},{height:r,heightOffset:(o||0)+(Z?I.u$:0),pipeline:l})),a&&U.uuid===(null===d||void 0===d?void 0:d.uuid)&&(0,S.jsxs)(S.Fragment,{children:[u&&(0,S.jsx)(m.Z,{mt:2,children:(0,S.jsx)(v.Z,{alignItems:"center",fullWidth:!0,justifyContent:"center",children:(0,S.jsx)(x.Z,{color:"white",large:!0})})}),!u&&i===D.Gi.TABLE&&g,!u&&i!==D.Gi.TABLE&&O]})]})]})}(q(q({},e),{},{blockRuns:be,columns:he,dataType:ve,loadingData:ae,rows:ge,selectedRun:u,selectedTab:L,setSelectedTab:G,showDynamicBlocks:!0,textData:fe}))},errors:z,pageName:F.M.RUNS,pipeline:X,setErrors:K,subheader:(Oe||me)&&(0,S.jsxs)(v.Z,{alignItems:"center",children:[g.BF.includes(ie)&&(0,S.jsxs)(f.Z,{children:[(0,S.jsx)(y.ZP,{bold:!0,default:!0,large:!0,children:"Pipeline is running"}),(0,S.jsx)(m.Z,{mr:1}),(0,S.jsx)(x.Z,{inverted:!0}),(0,S.jsx)(m.Z,{mr:2})]}),Oe&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(d.Z,{danger:!0,loading:le,onClick:function(e){(0,V.j)(e),ue({pipeline_run:{pipeline_run_action:"retry_blocks"}})},outline:!0,children:"Retry incomplete blocks"}),(0,S.jsx)(m.Z,{mr:2})]}),me&&(0,S.jsxs)(d.Z,{loading:le,onClick:function(e){(0,V.j)(e),ue({pipeline_run:{from_block_uuid:u.block_uuid,pipeline_run_action:"retry_blocks"}})},outline:!0,primary:!0,children:["Retry from selected block (",u.block_uuid,")"]})]}),title:function(e){var n=e.name;return"".concat(n," runs")},uuid:"".concat(F.M.RUNS,"_").concat(Y,"_").concat(te),children:[(0,S.jsx)(m.Z,{mt:E.cd,px:E.cd,children:(0,S.jsx)(b.Z,{level:5,children:"Block runs"})}),(0,S.jsx)(p.Z,{light:!0,mt:E.cd,short:!0}),je]})}J.getInitialProps=function(){var e=(0,i.Z)(l().mark((function e(n){var t,i,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query,i=t.pipeline,r=t.run,e.abrupt("return",{pipeline:{uuid:i},pipelineRun:{id:r}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var z=(0,O.Z)(J)},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,[844,7607,5896,4804,1774,9350,5872,2125,1424,1005,8180,547,3714,3752,1286,4822,9774,2888,179],(function(){return n=39525,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-4b0c098074dd3e6d.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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 o(){}o.resetWarningCache=r,e.exports=function(){function e(e,n,t,r,o,u){if(u!==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:o,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),o=t.n(r),u=t(34376),l=t.n(u),s=t(9518),c=t(66050),a=t(60328),d=t(16634),p=t(10919),f=t(98781),v=t(86673),h=t(58180),g=t(19711),b=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,u=e.selectedRun,Z=(0,i.useContext)(s.ThemeContext),y=(r||{}).uuid,O=(0,i.useMemo)((function(){return r.blocks||[]}),[r]),w=(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===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,i,u,s=e.block_uuid,h=e.completed_at,j=e.created_at,O=e.id,C=e.pipeline_schedule_id,P=e.pipeline_schedule_name,k=e.status,S=s,I=S.split(":");f.qL.INTEGRATION===r.type&&(S=I[0],i=I[1],u=I[2]);var R=w[S];return R||(R=w[I[0]]),[(0,_.jsx)(g.ZP,{monospace:!0,default:!0,children:j}),(0,_.jsx)(g.ZP,{danger:c.V.FAILED===k,default:c.V.CANCELLED===k,info:c.V.INITIAL===k,monospace:!0,success:c.V.COMPLETED===k,warning:c.V.RUNNING===k,children:k}),(0,_.jsx)(o(),{as:"/pipelines/".concat(y,"/triggers/").concat(C),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,_.jsx)(p.Z,{bold:!0,sameColorAsText:!0,children:P})}),(0,_.jsx)(o(),{as:"/pipelines/".concat(y,"/edit?block_uuid=").concat(S),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=R)||void 0===n?void 0:n.type,{blockColor:null===(t=R)||void 0===t?void 0:t.color,theme:Z}).accent,size:1.5*m.iI,square:!0}),(0,_.jsx)(v.Z,{mr:1}),(0,_.jsxs)(g.ZP,{monospace:!0,children:[S,i&&": ",i&&(0,_.jsx)(g.ZP,{default:!0,inline:!0,monospace:!0,children:i}),u>=0&&": ",u>=0&&(0,_.jsx)(g.ZP,{default:!0,inline:!0,monospace:!0,children:u})]})]})}),(0,_.jsx)(g.ZP,{monospace:!0,default:!0,children:h||"-"}),(0,_.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(y,"/logs?block_run_id[]=").concat(O))},children:(0,_.jsx)(b.B4,{default:!0,size:2*m.iI})})]})),uuid:"block-runs"})}},56681:function(e,n,t){"use strict";t.d(n,{G7:function(){return Z},ZP:function(){return y},u$:function(){return x}});var i=t(75582),r=t(82394),o=t(26304),u=t(32316),l=t(22673),s=t(73752),c=t(86673),a=t(19711),d=t(58180),p=t(49125),f=t(19395),v=t(7715),h=t(28598),g=["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 m(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 x=76,j={uuid:"Run details"},_={uuid:"Dependency tree"},Z=[_,j];function y(e){var n=e.height,t=e.heightOffset,r=e.pipeline,b=e.selectedRun,y=e.selectedTab,O=e.setSelectedTab,w=m({},(0,o.Z)(e,g));b?w.blockStatus=(0,f.IJ)(null===b||void 0===b?void 0:b.block_runs):w.noStatus=!0;var C=(0,v.Kn)(null===b||void 0===b?void 0:b.variables)?m({},null===b||void 0===b?void 0:b.variables):(null===b||void 0===b?void 0:b.variables)||{},P=null===b||void 0===b?void 0:b.event_variables;if(P&&(0,v.Kn)(P)&&!(0,v.Qr)(P))if((0,v.Kn)(C)&&C.hasOwnProperty("event")){var k=(0,v.Kn)(C.event)?C.event:{};C.event=m(m({},k),P)}else C.event=m({},P);var S=[];C&&JSON.stringify(C,null,2).split("\n").forEach((function(e){S.push(" ".concat(e))}));var I=b&&[["Run ID",null===b||void 0===b?void 0:b.id],["Variables",(0,h.jsx)(l.Z,{language:"json",small:!0,source:S.join("\n")},"variable_value")]],R=b&&(0,h.jsx)(c.Z,{pb:p.cd,px:p.cd,children:(0,h.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:I.map((function(e,n){var t=(0,i.Z)(e,2),r=t[0],o=t[1];return[(0,h.jsx)(a.ZP,{monospace:!0,muted:!0,children:r},"key_".concat(n)),(0,h.jsx)(a.ZP,{monospace:!0,textOverflow:!0,children:o},"val_".concat(n))]})),uuid:"LogDetail"})}),T=y&&O;return(0,h.jsxs)(h.Fragment,{children:[T&&(0,h.jsx)(c.Z,{py:p.cd,children:(0,h.jsx)(u.Z,{onClickTab:O,selectedTabUUID:null===y||void 0===y?void 0:y.uuid,tabs:Z})}),(!T||_.uuid===(null===y||void 0===y?void 0:y.uuid))&&(0,h.jsx)(s.Z,m(m({},w),{},{height:n,heightOffset:(t||0)+(T?x:0),pipeline:r})),j.uuid===(null===y||void 0===y?void 0:y.uuid)&&R]})}},22673:function(e,n,t){"use strict";var i=t(82684),r=t(68792),o=t(31811),u=t(9518),l=t(65292),s=t(23831),c=t(2005),a=t(49125),d=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,p=e.showLineNumbers,f=e.small,v=e.source,h=e.wrapLines,g=(0,i.useContext)(u.ThemeContext);function b(e){var i=e.value;return(0,d.jsx)(o.Z,{customStyle:{backgroundColor:(g.background||s.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:c.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,maxWidth:t,paddingBottom:2*a.iI,paddingTop:2*a.iI},language:n,lineNumberStyle:{color:(g.content||s.Z.content).muted},showLineNumbers:p,style:l._4,useInlineStyles:!0,wrapLines:h,children:i})}return(0,d.jsx)(r.D,{components:{code:function(e){var n=e.children;return(0,d.jsx)(b,{value:n})}},children:v})}},32316:function(e,n,t){"use strict";t.d(n,{Z:function(){return g}});var i=t(82684),r=t(60328),o=t(67971),u=t(882),l=t(86673),s=t(19711),c=t(99994),a=t(9518),d=t(49125),p=t(37391),f=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 "}),p.w5),v=t(66653),h=t(28598);var g=function(e){var n=e.allowScroll,t=e.contained,a=e.noPadding,p=e.onClickTab,g=e.selectedTabUUID,b=e.small,m=e.tabs,x=(0,i.useMemo)((function(){var e=m.length,n=[];return m.forEach((function(t,i){var a=t.Icon,f=t.IconSelected,m=t.label,x=t.uuid,j=x===g,_=j&&f||a,Z=m?m():x,y=(0,h.jsxs)(o.Z,{alignItems:"center",children:[_&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(_,{default:!j,size:2*d.iI}),(0,h.jsx)(l.Z,{mr:1})]}),(0,h.jsx)(s.ZP,{bold:!0,default:!j,noWrapping:!0,small:!0,children:Z})]});i>=1&&e>=2&&n.push((0,h.jsx)("div",{style:{marginLeft:1.5*d.iI}},"spacing-".concat(x))),j?n.push((0,h.jsx)(u.Z,{backgroundGradient:c.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:b,onClick:function(e){(0,v.j)(e),p(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:b,children:y},x)):n.push((0,h.jsx)("div",{style:{padding:2},children:(0,h.jsx)(r.Z,{borderLess:!0,compact:b,default:!0,onClick:function(e){(0,v.j)(e),p(t)},outline:!0,small:b,children:y})},"button-tab-".concat(x)))})),n}),[p,g,b,m]),j=(0,h.jsx)(o.Z,{alignItems:"center",children:x});return t?j:(0,h.jsx)(f,{allowScroll:n,noPadding:a,children:j})}},21135:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return q}});var i=t(77837),r=t(75582),o=t(82394),u=t(38860),l=t.n(u),s=t(82684),c=t(83455),a=t(34376),d=t(28598);var p=function(e){var n=e.size;return(0,d.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 8.5H15.5V3.5H20.5V8.5ZM14 9V3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55229 21.5523 10 21 10H15C14.4477 10 14 9.55229 14 9ZM2 5V12.5V14V21.5C2 22.0523 2.44772 22.5 3 22.5H10.5H12H19.5C20.0523 22.5 20.5 22.0523 20.5 21.5V13.5C20.5 12.9477 20.0523 12.5 19.5 12.5H12V5C12 4.44772 11.5523 4 11 4H3C2.44772 4 2 4.44772 2 5ZM10.5 14V21H3.5V14H10.5ZM19 14V21H12V14H19ZM10.5 5.5V12.5H3.5V5.5H10.5Z",fill:"url(#paint0_linear_2842_55048)"}),(0,d.jsx)("defs",{children:(0,d.jsxs)("linearGradient",{id:"paint0_linear_2842_55048",x1:"2",y1:"12.25",x2:"22",y2:"12.25",gradientUnits:"userSpaceOnUse",children:[(0,d.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,d.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},f=t(27125),v=t(60328),h=t(32316),g=t(67971),b=t(9518),m=t(23831),x=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||m.Z.background).page,";\n border-bottom: 1px solid ").concat((e.theme.borders||m.Z.borders).medium,";\n ")})),j=t(51099),_=t(60547);var Z=function(e){var n=e.size;return(0,d.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("g",{"clip-path":"url(#clip0_3007_70027)",children:(0,d.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,d.jsxs)("defs",{children:[(0,d.jsxs)("linearGradient",{id:"paint0_linear_3007_70027",x1:"11.75",y1:".250001",x2:"11.75",y2:"23.1475",gradientUnits:"userSpaceOnUse",children:[(0,d.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,d.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,d.jsx)("clipPath",{id:"clip0_3007_70027",children:(0,d.jsx)("path",{fill:"#fff",transform:"matrix(0 1 1 0 0 0)",d:"M0 0h24v24H0z"})})]})]})},y=t(47409),O=t(97496),w=t(41788),C=t(55378),P=t(86673),k=t(54283),S=t(82531),I=t(56681),R=t(66166),T=t(10503),E=t(33766),H=t(59920),M=t(98781),N=t(66050),V=t(49125),D=t(7715),L=t(96510),U=t(59e3);function z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function A(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?z(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var F={Icon:T.mR,IconSelected:Z,label:function(){return"Pipeline runs"},uuid:"pipeline_runs"},B={Icon:T.Re,IconSelected:p,label:function(){return"Block runs"},uuid:"block_runs"},G=[F,B];function W(e){var n,t,i=e.pipeline,o=(0,a.useRouter)(),u=(0,s.useState)(null),l=u[0],p=u[1],b=(0,s.useState)(F),m=b[0],Z=b[1],w=(0,s.useState)(I.G7[0]),T=w[0],z=w[1],W=(0,s.useState)({}),q=W[0],K=W[1],X=(0,s.useState)(null),J=X[0],Q=X[1],Y=(0,s.useMemo)((function(){return F.uuid===(null===m||void 0===m?void 0:m.uuid)}),[null===m||void 0===m?void 0:m.uuid]),$=i.uuid,ee=S.ZP.pipelines.detail($,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,ne=(0,s.useMemo)((function(){return A(A({},null===ee||void 0===ee?void 0:ee.pipeline),{},{uuid:$})}),[ee,$]),te=(0,s.useState)(),ie=te[0],re=te[1],oe=(0,U.iV)(),ue=(0,R.Z)(oe),le=null!==oe&&void 0!==oe&&oe.page?oe.page:0;(0,s.useEffect)((function(){var e=oe.pipeline_run_id,n=oe.status;if(!(0,D.Xy)(oe,ue)){var t=A(A({},ue),oe);e?t.pipeline_run_id=e:t.pipeline_uuid=$,n?t.status=n:delete t.status,Q(t),K({})}}),[$,oe,ue]);var se={_limit:30,_offset:30*le,pipeline_uuid:$},ce=(0,D.gR)(A(A({},J),se),["tab","page"]);Y&&(ce=(0,D.gR)(ce,[E.O2]));var ae=S.ZP.block_runs.list(ce,{},{pauseFetch:!J}).data,de=(0,s.useMemo)((function(){return(null===ae||void 0===ae?void 0:ae.block_runs)||[]}),[ae]),pe=A({},se);null!==oe&&void 0!==oe&&oe.status&&(pe.status=oe.status),Y||(pe=(0,D.gR)(pe,[E.O2]));var fe=S.ZP.pipeline_runs.list(pe,{refreshInterval:5e3}),ve=fe.data,he=fe.mutate,ge=(0,s.useMemo)((function(){return(null===ve||void 0===ve?void 0:ve.pipeline_runs)||[]}),[ve]),be=(0,s.useMemo)((function(){var e,n;return Y?(null===ve||void 0===ve||null===(e=ve.metadata)||void 0===e?void 0:e.count)||[]:(null===ae||void 0===ae||null===(n=ae.metadata)||void 0===n?void 0:n.count)||[]}),[null===ae||void 0===ae||null===(n=ae.metadata)||void 0===n?void 0:n.count,null===ve||void 0===ve||null===(t=ve.metadata)||void 0===t?void 0:t.count,Y]),me=(0,s.useMemo)((function(){return ge.some((function(e){var n=e.status;return n===N.V.INITIAL||n===N.V.RUNNING}))}),[ge]),xe=(0,s.useMemo)((function(){return Object.values(q||{}).filter((function(e){return null!==e}))}),[q]),je=(0,c.Db)(S.ZP.pipelines.useUpdate($),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){K({}),he()},onErrorCallback:function(e,n){return p({errors:n,response:e})}})}}),_e=(0,r.Z)(je,2),Ze=_e[0],ye=_e[1].isLoading,Oe=(0,R.Z)(m);(0,s.useEffect)((function(){var e=oe.tab;e&&Z(G.find((function(n){return n.uuid===e})))}),[oe,m,Oe]);var we=(0,s.useMemo)((function(){return(0,d.jsx)(P.Z,{p:2,children:(0,d.jsx)(j.Z,{maxPages:9,onUpdate:function(e){var n=Number(e),t=A(A({},oe),{},{page:n>=0?n:0});o.push("/pipelines/[pipeline]/runs","/pipelines/".concat($,"/runs?").concat((0,U.uM)(t)))},page:Number(le),totalPages:Math.ceil(be/30)})})}),[le,$,oe,o,be]),Ce=(0,s.useMemo)((function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(O.Z,{allowBulkSelect:(null===ne||void 0===ne?void 0:ne.type)!==M.qL.STREAMING,fetchPipelineRuns:he,onClickRow:function(e){return re((function(n){var t=ge[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:ge,selectedRun:ie,selectedRuns:q,setErrors:p,setSelectedRuns:K}),we]})}),[he,we,null===ne||void 0===ne?void 0:ne.type,ge,ie,q]),Pe=(0,s.useMemo)((function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.Z,{blockRuns:de,pipeline:ne}),we]})}),[de,we,ne]);return(0,d.jsxs)(_.Z,{afterHidden:Y&&!ie,breadcrumbs:[{label:function(){return"Runs"}}],buildSidekick:Y?function(e){return(0,I.ZP)(A(A({},e),{},{selectedRun:ie,selectedTab:T,setSelectedTab:z}))}:function(e){return(0,I.ZP)(e)},errors:l,pageName:H.M.RUNS,pipeline:ne,setErrors:p,title:function(e){var n=e.name;return"".concat(n," runs")},uuid:"".concat(H.M.RUNS,"_").concat($),children:[(0,d.jsx)(x,{children:(0,d.jsx)(P.Z,{py:1,children:(0,d.jsxs)(g.Z,{alignItems:"center",children:[me&&Y&&(0,d.jsx)(P.Z,{pl:2,children:(0,d.jsx)(v.Z,{danger:!0,loading:ye,onClick:function(){Ze({pipeline:{status:N.V.CANCELLED}})},outline:!0,children:"Cancel running pipeline runs"})}),xe.length>0&&(0,d.jsx)(P.Z,{pl:2,children:(0,d.jsxs)(v.Z,{loading:ye,onClick:function(){Ze({pipeline:{pipeline_runs:xe,status:M.QK.RETRY}})},primary:!0,children:["Retry selected runs (",xe.length,")"]})}),(0,d.jsx)(h.Z,{onClickTab:function(e){var n=e.uuid;Q(null),(0,E.u7)({tab:n},{replaceParams:!0})},selectedTabUUID:null===m||void 0===m?void 0:m.uuid,tabs:G}),Y&&(0,d.jsxs)(C.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?(Q(null),(0,E.u7)({tab:F.uuid},{replaceParams:!0})):(0,E.u7)({page:0,status:e.target.value})},paddingRight:4*V.iI,placeholder:"Select run status",value:null===J||void 0===J?void 0:J.status,children:[(0,d.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(N.V).map((function(e){return(0,d.jsx)("option",{value:e,children:y.Do[e]},e)}))]})]})})}),ve||ae?(0,d.jsxs)(d.Fragment,{children:[Y&&Ce,B.uuid===(null===m||void 0===m?void 0:m.uuid)&&Pe]}):(0,d.jsx)(P.Z,{m:3,children:(0,d.jsx)(k.Z,{inverted:!0})})]})}W.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 q=(0,w.Z)(W)},79897:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs",function(){return t(21135)}])}},function(e){e.O(0,[844,7607,4804,1774,9350,1424,1005,8180,547,3714,3752,8312,9774,2888,179],(function(){return n=79897,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[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,{Az:function(){return c},BF:function(){return l},Do:function(){return s},VO:function(){return i},sZ:function(){return u}});var t,o=r(82394),i=r(66050).V,l=[i.INITIAL,i.RUNNING],c=[i.CANCELLED,i.COMPLETED,i.FAILED],u="__mage_variables",s=(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(60547),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),b=r(23831),x=r(10503),Z=r(9518),g=r(73942),y=r(2005),O=r(49125),_=r(31012),I=Z.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-15svh8z-0"})(["border-radius:","px;margin:","px;overflow:hidden;"," "," "," "," "," "," &:hover{"," "," "," "," ","}"],g.n_,O.cd*O.iI,(function(n){return"\n background-color: ".concat((n.theme.background||b.Z.background).panel,";\n border: 1px solid ").concat((n.theme.borders||b.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||b.Z.accent).negative,";\n ")}),(function(n){return n.selected&&n.primary&&"\n border-color: ".concat((n.theme.interactive||b.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.selected&&n.default&&"\n border-color: ".concat((n.theme.interactive||b.Z.interactive).focusBackground,";\n ")}),(function(n){return n.selected&&n.success&&"\n border-color: ".concat((n.theme.background||b.Z.background).success,";\n ")}),(function(n){return n.selected&&n.warning&&"\n border-color: ".concat((n.theme.accent||b.Z.accent).warning,";\n ")}),(function(n){return n.danger&&"\n border-color: ".concat((n.theme.accent||b.Z.accent).negative,";\n ")}),(function(n){return n.primary&&"\n border-color: ".concat((n.theme.interactive||b.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.default&&"\n border-color: ".concat((n.theme.interactive||b.Z.interactive).focusBackground,";\n ")}),(function(n){return n.success&&"\n border-color: ".concat((n.theme.background||b.Z.background).success,";\n ")}),(function(n){return n.warning&&"\n border-color: ".concat((n.theme.accent||b.Z.accent).warning,";\n ")})),k=(0,Z.css)([""," "," "," "," ",""],(function(n){return n.danger&&"\n background-color: ".concat((n.theme.accent||b.Z.accent).negative,";\n ")}),(function(n){return n.primary&&"\n background-color: ".concat((n.theme.interactive||b.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.default&&"\n background-color: ".concat((n.theme.interactive||b.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.success&&"\n background-color: ".concat((n.theme.background||b.Z.background).success,";\n ")}),(function(n){return n.warning&&"\n background-color: ".concat((n.theme.accent||b.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;"," "," "," "," "," ",""],k,_.iD,g.D7,y.ry,(function(n){return n.danger&&"\n color: ".concat((n.theme.content||b.Z.content).active,";\n ")}),(function(n){return n.primary&&"\n color: ".concat((n.theme.content||b.Z.content).active,";\n ")}),(function(n){return(n.default||n.success)&&"\n "}),(function(n){return n.default&&"\n color: ".concat((n.theme.content||b.Z.content).default,";\n ")}),(function(n){return n.success&&"\n color: ".concat((n.theme.content||b.Z.content).inverted,";\n ")}),(function(n){return n.warning&&"\n color: ".concat((n.theme.content||b.Z.content).inverted,";\n ")})),P=Z.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-15svh8z-2"})([""," display:flex;height:auto;width:3px;",""],k,(function(n){return n.default&&"\n background-color: ".concat((n.theme.interactive||b.Z.interactive).focusBackground,";\n ")})),E=r(90211),w=r(92083),M=r.n(w),L=r(66050),C=r(24224);function S(n){var e;return Object.keys((null===n||void 0===n||null===(e=n.metrics)||void 0===e?void 0:e.blocks)||{}).sort()}function A(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=D(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,b=p.sources,x=void 0===b?{records:null}:b,Z=v[a]||[];if(t&&t===a&&Z.every((function(n){var e=n.status;return L.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!==x&&void 0!==x&&x.records&&(null===o&&(o=0),o+=Number(x.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(L.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 D(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 V(n){var e=D(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 L.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 L.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.VO.CANCELLED,m.VO.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=D(n),u=V(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 L.V.COMPLETED===e})),b=(0,C.YC)(h,(function(n){return n.updated_at}),{ascending:!1})[0],x=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:b&&(i=null===b||void 0===b?void 0:b.updated_at);var Z=j?M().utc(t||i):M().utc(),g=M().utc(x);return{completed:v,completedAt:t,done:j,progress:p,runtime:o=Z.diff(g,"second"),startedAt:x,status:null===b||void 0===b?void 0:b.status,timeText:(0,E.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 A(r)}),[r]),_=y.errors,k=y.records,w=y.recordsProcessed,M=(0,l.useMemo)((function(){return T(r)}),[r]),L=(0,l.useMemo)((function(){return[m.VO.COMPLETED].includes(i)}),[i]),C=(0,l.useMemo)((function(){return{danger:m.VO.FAILED===i,default:m.VO.INITIAL===i,primary:m.VO.RUNNING===i,success:L,warning:m.VO.CANCELLED===i}}),[L,i]),S=(0,l.useMemo)((function(){if(r){var n=R(r);return(0,E.zf)(n)}}),[r]);return(0,F.jsx)(I,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)(P,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:[L&&(0,F.jsx)(x.Jr,{inverted:!0,size:2*O.iI}),[m.VO.INITIAL,m.VO.RUNNING].includes(i)&&(0,F.jsx)(h.Z,{color:m.VO.INITIAL!==i?b.Z.monotone.white:null,inverted:m.VO.INITIAL===i,small:!0}),"\xa0",m.VO.RUNNING===i&&(0,F.jsxs)(F.Fragment,{children:["\xa0",Math.round(100*M),"%"]}),![m.VO.INITIAL,m.VO.RUNNING].includes(i)&&m.Do[i],m.VO.INITIAL===i&&"Starting"]})}))}),Object.values(_).length>=1&&(0,F.jsx)(p.Z,{mt:1,children:Object.entries(_).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,E.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:k>=1&&k>=w?(0,E.x6)(k-w):"-"})]}),m.VO.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:S})]})]})}),(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,E.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||b.Z.accent).cyan,";\n ")}),(function(n){return n.even&&!n.fill&&"\n background-color: ".concat((n.theme.accent||b.Z.accent).cyanTransparent,";\n ")}),(function(n){return"\n height: ".concat((n.small?1:2)*O.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],b=(0,l.useMemo)((function(){return r?D(r):{}}),[r]),Z=(0,l.useMemo)((function(){return r?V(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]),_=(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]),I=(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:_>0&&Math.round(100*_)>=e},e)}))})}),[_]),k=(0,l.useMemo)((function(){if(t){var n=b[t]||[],e=n.every((function(n){var e=n.status;return L.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([L.V.CANCELLED,L.V.FAILED].includes(i))return m.Do[i];if(u&&s>=1){var a=Math.ceil(u*(s-c)/60);return"".concat((0,E._6)("minute",a,!0)," to completion")}return"Estimating time remaining for stream..."}if(m.VO.COMPLETED===(null===r||void 0===r?void 0:r.status))return"Sync complete";if(r){if([m.VO.CANCELLED,m.VO.FAILED].includes(null===r||void 0===r?void 0:r.status))return m.Do[null===r||void 0===r?void 0:r.status];if(m.VO.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,E._6)("minute",d,!0)," to completion")}return"Select a sync"}),[b,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 P=(0,l.useMemo)((function(){if(r){if(t)return null===N||void 0===N?void 0:N.timeText;var n=R(r);return(0,E.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?A(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?A(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,E.x6)(n)}];return null===e&&null===o?i.push({label:"Rows processed",value:null===r?"-":(0,E.x6)(r)}):null!==e?i.push({label:"Rows inserted",value:(0,E.x6)(e)}):null!==o&&i.push({label:"Rows updated",value:(0,E.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,P,w,status]),tn=(0,l.useMemo)((function(){if(!r)return(0,F.jsx)("div",{});var n=S(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:[L.V.INITIAL,L.V.RUNNING].includes(u)?"-":s},"runtime"),(0,F.jsxs)("div",{children:[i&&(0,F.jsx)(x.Jr,{default:!0,size:2*O.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)(x.B4,{default:!0,size:2*O.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)(x.Xd,{default:!0,size:1.5*O.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:k})}),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:I}),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&&[L.V.INITIAL,L.V.RUNNING].includes(null===N||void 0===N?void 0:N.status)&&M,t&&![L.V.INITIAL,L.V.RUNNING].includes(null===N||void 0===N?void 0:N.status)&&(null===N||void 0===N?void 0:N.timeText),!t&&[m.VO.INITIAL,m.VO.RUNNING].includes(null===r||void 0===r?void 0:r.status)&&w,!t&&![m.VO.INITIAL,m.VO.RUNNING].includes(null===r||void 0===r?void 0:r.status)&&P]})]}),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}).data,o=(0,l.useMemo)((function(){return(null===t||void 0===t?void 0:t.pipeline_runs)||[]}),[t]),i=(0,tn.iV)(),u=(0,l.useState)(null),s=u[0],a=u[1],d=(0,l.useState)(null),f=d[0],v=d[1],m=(0,l.useState)(null),p=m[0],h=m[1];(0,l.useEffect)((function(){null!==i&&void 0!==i&&i.pipeline_run_id?h(null===o||void 0===o?void 0:o.find((function(n){return n.id===Number(i.pipeline_run_id)}))):p&&h(null),null!==i&&void 0!==i&&i.stream?v(i.stream):f&&v(null)}),[o,i,p,f]);var j=(0,l.useCallback)((function(){var n=p?S(p):[];return(0,F.jsx)($,{onClickRow:function(e){var r=n[e];(0,rn.u7)({stream:f===r?null:r})},pipelineRun:p,selectedStream:f})}),[p,f]),b=(0,l.useMemo)((function(){var n="/pipelines/".concat(r,"/syncs");p&&(n="".concat(n,"?pipeline_run_id=").concat(p.id));var e=[{label:function(){return"Syncs"},linkProps:f?{as:n,href:"/pipelines/[pipeline]/syncs"}:null}];return f&&e.push({label:function(){return f}}),e}),[r,p,f]);return(0,F.jsx)(c.Z,{breadcrumbs:b,buildSidekick:j,errors:s,pageName:en.M.SYNCS,pipeline:e,setErrors:a,title:function(n){var e=n.name;return"".concat(e," syncs")},uuid:"".concat(en.M.SYNCS,"_").concat(r),children:o.map((function(n){var e=(null===p||void 0===p?void 0:p.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,{O2:function(){return d},g_:function(){return v},u7:function(){return f}});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}var d="_offset";function f(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.preserveParams,o=e.pushHistory,i=e.replaceParams,u=(0,c.iV)(),s={};r&&r.forEach((function(n){u[n]&&(s[n]=u[n])}));var d,f=i?s:u;d=window.location.pathname;var v=o?l().push:l().replace,m=a(a({},f),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 m[r]}));var p=(0,c.uM)(m);p.length>=1&&(p="?".concat(p));var h="".concat(d.split("?")[0]).concat(p);return v(l().router.pathname,h,{shallow:!0})}function v(n,e,r){var o=r.addingMultipleValues,i=r.isList,l=r.itemsPerPage,c=r.pushHistory,s=void 0!==c&&c,v=r.resetLimitParams,m=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,"[]");m[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=m[l];c&&Array.isArray(c)?(c=c.map(String)).includes(i)?m[l]=(0,u.Od)(c,(function(n){return n===i})):m[l]=c.concat(i):m[l]=[i]})):m=a(a({},m),e),v&&(m._limit=l||20,m[d]=0),f(m,{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,[844,7607,1424,1005,8180,547,9774,2888,179],(function(){return e=59416,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1221],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return P}});var i=t(82394),r=t(21831),o=t(82684),c=t(47999),u=t(49894),l=t(93461),a=t(57384),s=t(41424),d=t(72454),p=t(28598);function f(e,n){var t=e.children;return(0,p.jsx)(d.HS,{ref:n,children:t})}var h=o.forwardRef(f),m=t(32063),b=t(85019),g=t(82531),v=t(66166),x=t(3055),y=t(49125),j=t(91427),O=t(24141);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=function(e){var n,t=e.after,i=e.afterHidden,f=e.afterWidth,Z=e.afterWidthOverride,P=e.before,C=e.beforeWidth,k=e.breadcrumbs,E=e.children,S=e.errors,T=e.headerMenuItems,A=e.headerOffset,I=e.mainContainerHeader,R=e.navigationItems,_=e.setErrors,D=e.subheaderChildren,N=e.title,M=e.uuid,H=(0,O.i)().width,L="dashboard_after_width_".concat(M),B="dashboard_before_width_".concat(M),Y=(0,o.useRef)(null),W=(0,o.useState)(Z?f:(0,j.U2)(L,f)),V=W[0],z=W[1],U=(0,o.useState)(!1),F=U[0],G=U[1],K=(0,o.useState)(P?Math.max((0,j.U2)(B,C),13*y.iI):null),X=K[0],q=K[1],Q=(0,o.useState)(!1),J=Q[0],$=Q[1],ee=(0,o.useState)(null)[1],ne=g.ZP.projects.list({},{revalidateOnFocus:!1}).data,te=null===ne||void 0===ne?void 0:ne.projects,ie=[];k?ie.push.apply(ie,(0,r.Z)(k)):(null===te||void 0===te?void 0:te.length)>=1&&ie.push.apply(ie,[{label:function(){var e;return null===(e=te[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return N}}]),(0,o.useEffect)((function(){null===Y||void 0===Y||!Y.current||F||J||null===ee||void 0===ee||ee(Y.current.getBoundingClientRect().width)}),[F,V,J,X,Y,ee,H]),(0,o.useEffect)((function(){F||(0,j.t8)(L,V)}),[i,F,V,L]),(0,o.useEffect)((function(){J||(0,j.t8)(B,X)}),[J,X,B]);var re=(0,v.Z)(f);return(0,o.useEffect)((function(){Z&&re!==f&&z(f)}),[Z,f,re]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.Z,{title:N}),(0,p.jsx)(s.Z,{breadcrumbs:ie,menuItems:T,project:null===te||void 0===te?void 0:te[0],version:null===te||void 0===te||null===(n=te[0])||void 0===n?void 0:n.version}),(0,p.jsxs)(d.Nk,{children:[0!==(null===R||void 0===R?void 0:R.length)&&(0,p.jsx)(d.lm,{showMore:!0,children:(0,p.jsx)(b.Z,{navigationItems:R,showMore:!0})}),(0,p.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(m.Z,{after:t,afterHeightOffset:x.Mz,afterHidden:i,afterMousedownActive:F,afterWidth:V,before:P,beforeHeightOffset:x.Mz,beforeMousedownActive:J,beforeWidth:d.k1+(P?X:0),headerOffset:A,hideAfterCompletely:!0,leftOffset:P?d.k1:null,mainContainerHeader:I,mainContainerRef:Y,setAfterMousedownActive:G,setAfterWidth:z,setBeforeMousedownActive:$,setBeforeWidth:q,children:[D&&(0,p.jsx)(h,{children:D}),E]})})]}),S&&(0,p.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===_||void 0===_?void 0:_(null)},children:(0,p.jsx)(u.Z,w(w({},S),{},{onClose:function(){return null===_||void 0===_?void 0:_(null)}}))})]})}},86422:function(e,n,t){"use strict";t.d(n,{$W:function(){return f},DA:function(){return p},HX:function(){return b},J8:function(){return m},L8:function(){return c},Lq:function(){return s},Qj:function(){return g},Ut:function(){return j},V4:function(){return y},VZ:function(){return h},dO:function(){return d},f2:function(){return x},iZ:function(){return v},t6:function(){return u},tf:function(){return a}});var i,r,o,c,u,l=t(82394);!function(e){e.DBT_SNAPSHOT="snapshot",e.DYNAMIC="dynamic",e.DYNAMIC_CHILD="dynamic_child",e.REDUCE_OUTPUT="reduce_output",e.REPLICA="replica"}(c||(c={})),function(e){e.MARKDOWN="markdown",e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(u||(u={}));var a,s,d=(i={},(0,l.Z)(i,u.MARKDOWN,"MD"),(0,l.Z)(i,u.PYTHON,"PY"),(0,l.Z)(i,u.R,"R"),(0,l.Z)(i,u.SQL,"SQL"),(0,l.Z)(i,u.YAML,"YAML"),i);!function(e){e.CALLBACK="callback",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.MARKDOWN="markdown",e.TRANSFORMER="transformer"}(a||(a={})),function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(s||(s={}));var p,f=[a.CHART,a.CUSTOM,a.DATA_EXPORTER,a.DATA_LOADER,a.SCRATCHPAD,a.SENSOR,a.MARKDOWN,a.TRANSFORMER],h=[a.DATA_EXPORTER,a.DATA_LOADER],m=[a.DATA_EXPORTER,a.DATA_LOADER,a.TRANSFORMER],b=[a.DATA_EXPORTER,a.DATA_LOADER,a.DBT,a.TRANSFORMER],g=[a.CHART,a.SCRATCHPAD,a.SENSOR,a.MARKDOWN],v=[a.CALLBACK,a.CHART,a.EXTENSION,a.SCRATCHPAD,a.MARKDOWN];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(p||(p={}));var x=[a.CUSTOM,a.DATA_EXPORTER,a.DATA_LOADER,a.TRANSFORMER],y=(r={},(0,l.Z)(r,a.EXTENSION,"Callback"),(0,l.Z)(r,a.CUSTOM,"Custom"),(0,l.Z)(r,a.DATA_EXPORTER,"Data exporter"),(0,l.Z)(r,a.DATA_LOADER,"Data loader"),(0,l.Z)(r,a.EXTENSION,"Extension"),(0,l.Z)(r,a.SCRATCHPAD,"Scratchpad"),(0,l.Z)(r,a.SENSOR,"Sensor"),(0,l.Z)(r,a.MARKDOWN,"Markdown"),(0,l.Z)(r,a.TRANSFORMER,"Transformer"),r),j=[a.DATA_LOADER,a.TRANSFORMER,a.DATA_EXPORTER,a.SENSOR];o={},(0,l.Z)(o,a.DATA_EXPORTER,"DE"),(0,l.Z)(o,a.DATA_LOADER,"DL"),(0,l.Z)(o,a.SCRATCHPAD,"SP"),(0,l.Z)(o,a.SENSOR,"SR"),(0,l.Z)(o,a.MARKDOWN,"MD"),(0,l.Z)(o,a.TRANSFORMER,"TF")},93348:function(e,n,t){"use strict";t.d(n,{TR:function(){return d},U5:function(){return l},Xm:function(){return o},Z4:function(){return s},fq:function(){return u},kJ:function(){return a}});var i,r,o,c=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var u,l,a,s=(i={},(0,c.Z)(i,o.API,(function(){return"API"})),(0,c.Z)(i,o.EVENT,(function(){return"event"})),(0,c.Z)(i,o.TIME,(function(){return"schedule"})),i);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(u||(u={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(l||(l={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(a||(a={}));var d=(r={},(0,c.Z)(r,a.CREATED_AT,"Created at"),(0,c.Z)(r,a.NAME,"Name"),(0,c.Z)(r,a.PIPELINE,"Pipeline"),(0,c.Z)(r,a.STATUS,"Status"),(0,c.Z)(r,a.TYPE,"Type"),r)},98781:function(e,n,t){"use strict";t.d(n,{$1:function(){return l},G7:function(){return s},QK:function(){return u},a_:function(){return d},qL:function(){return o},r0:function(){return a}});var i,r,o,c=t(82394);!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(o||(o={}));var u,l,a,s=(i={},(0,c.Z)(i,o.INTEGRATION,"Integration"),(0,c.Z)(i,o.PYTHON,"Standard"),(0,c.Z)(i,o.PYSPARK,"PySpark"),(0,c.Z)(i,o.STREAMING,"Streaming"),i);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules",e.RETRY="retry"}(u||(u={})),function(e){e.GROUP="group_by",e.STATUS="status[]",e.TYPE="type[]"}(l||(l={})),function(e){e.STATUS="status",e.TYPE="type"}(a||(a={}));var d=(r={},(0,c.Z)(r,o.PYTHON,"python3"),(0,c.Z)(r,o.PYSPARK,"pysparkkernel"),r)},18283:function(e,n,t){"use strict";var i=t(82394),r=t(26304),o=(t(82684),t(9518)),c=t(23831),u=t(73942),l=t(2005),a=t(49125),s=t(31012),d=t(28598),p=["children"];function f(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 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,i.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}var m=o.default.p.withConfig({displayName:"Badge__BadgeStyle",componentId:"sc-tfqsp0-0"})(["border-radius:","px;display:inline;font-family:",";margin:0;",";"," "," ",";",";"," "," "," "," "," "," ",""],u.BG,l.ry,s.iD,(function(e){return e.small&&"\n ".concat(s.HC,";\n ")}),(function(e){return e.xxsmall&&"\n font-size: ".concat(s.VK,"px;\n line-height: ").concat(s.VK,"px;\n ")}),(function(e){return!e.regular&&"\n padding: 2px 4px;\n "}),(function(e){return e.regular&&"\n padding: ".concat(1*a.iI,"px ").concat(1.25*a.iI,"px;\n ")}),(function(e){return e.noVerticalPadding&&"\n padding-bottom: 0;\n padding-top: 0;\n "}),(function(e){return!e.disabled&&!e.inverted&&"\n background-color: ".concat((e.theme||c.Z).background.row,";\n color: ").concat((e.theme||c.Z).content.default,";\n ")}),(function(e){return!e.disabled&&e.inverted&&"\n background-color: ".concat((e.theme||c.Z).background.dark,";\n color: ").concat((e.theme||c.Z).content.inverted,";\n ")}),(function(e){return e.cyan&&"\n background-color: ".concat((e.theme||c.Z).accent.cyan,";\n color: ").concat((e.theme||c.Z).monotone.black,";\n ")}),(function(e){return e.disabled&&"\n background-color: ".concat((e.theme||c.Z).feature.disabled,";\n color: ").concat((e.theme||c.Z).content.disabled,";\n ")}),(function(e){return e.quantifier&&"\n border-radius: 34px;\n line-height: 10px;\n padding: 4px 6px;\n "}),(function(e){return e.monospace&&"\n font-family: ".concat(l.Vp,";\n word-break: break-all;\n ")}));n.Z=function(e){var n=e.children,t=(0,r.Z)(e,p);return(0,d.jsx)(m,h(h({},t),{},{children:n}))}},30264:function(e,n,t){"use strict";var i=t(82394),r=t(26304),o=(t(82684),t(47999)),c=t(62084),u=t(28598),l=["children","items","open","onClickCallback","onClickOutside","parentRef","uuid"];function a(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 s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.items,i=e.open,a=e.onClickCallback,d=e.onClickOutside,p=e.parentRef,f=e.uuid,h=(0,r.Z)(e,l),m=(0,u.jsxs)("div",{style:{position:"relative",zIndex:d?3:2},children:[(0,u.jsx)("div",{ref:p,children:n}),(0,u.jsx)(c.Z,s(s({},h),{},{items:t,onClickCallback:a,open:i,parentRef:p,uuid:f}))]});return d?(0,u.jsx)(o.Z,{onClickOutside:d,open:!0,children:m}):m}},29237:function(e,n,t){"use strict";var i=t(9518),r=t(67971),o=t(86673),c=t(19711),u=t(23831),l=t(73942),a=t(37391),s=t(49125),d=t(28598),p=(0,i.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*s.iI,1.5*s.iI,1.5*s.iI),f=i.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],l.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||u.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||u.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||u.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||u.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),h=i.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],l.n_,l.n_,(function(e){return"\n background-color: ".concat((e.theme.background||u.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),p,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),m=i.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*s.iI,a.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*s.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),b=i.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],l.M8,l.YF,1.75*s.iI);n.Z=function(e){var n=e.borderless,t=e.children,i=e.containerRef,u=e.contentContainerRef,l=e.dark,a=e.footer,s=e.fullHeight,p=void 0===s||s,g=e.fullWidth,v=void 0===g||g,x=e.header,y=e.headerHeight,j=e.headerIcon,O=e.headerPaddingVertical,Z=e.headerTitle,w=e.maxHeight,P=e.maxWidth,C=e.minWidth,k=e.noPadding,E=e.overflowVisible,S=e.subtitle,T=e.success;return(0,d.jsxs)(f,{borderless:n,dark:l,fullHeight:p,fullWidth:v,maxHeight:w,maxWidth:P,minWidth:C,overflowVisible:E,ref:i,success:T,children:[(x||Z)&&(0,d.jsxs)(h,{headerPaddingVertical:O,height:y,children:[x&&x,Z&&(0,d.jsx)(r.Z,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(r.Z,{alignItems:"center",children:[j&&j,(0,d.jsx)(o.Z,{ml:j?1:0,children:(0,d.jsx)(c.ZP,{bold:!0,default:!0,children:Z})})]})})]}),(0,d.jsxs)(m,{maxHeight:w,noPadding:k,overflowVisible:E,ref:u,children:[S&&(0,d.jsx)(o.Z,{mb:2,children:(0,d.jsx)(c.ZP,{default:!0,children:S})}),t]}),a&&(0,d.jsx)(b,{children:a})]})}},87372:function(e,n,t){"use strict";var i,r,o,c,u,l,a,s,d=t(82394),p=t(26304),f=t(26653),h=t(9518),m=t(33591),b=t(23831),g=t(2005),v=t(31012),x=t(19711),y=t(49125),j=t(86673),O=t(28598),Z=["children","condensed","inline","level","marketing","spacingBelow"];function w(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 P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],x.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||b.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(g.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(g.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(g.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(g.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(g.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),k=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||b.Z.content).active,";\n ")})),E=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],C,m.media.md(i||(i=(0,f.Z)(["\n ","\n "])),v.aQ),m.media.lg(r||(r=(0,f.Z)(["\n ","\n "])),v.aQ),m.media.xl(o||(o=(0,f.Z)(["\n ","\n "])),v.aQ)),S=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],C,v.MJ),T=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],C,m.media.xs(c||(c=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.sm(u||(u=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.md(l||(l=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.lg(a||(a=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.xl(s||(s=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI)),A=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],C,v.BL),I=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],C),R=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],C),_=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],C),D=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],C,(function(e){return 1===e.level&&"\n ".concat(v.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(v.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),N=function(e){var n,t=e.children,i=e.condensed,r=e.inline,o=e.level,c=e.marketing,u=e.spacingBelow,l=(0,p.Z)(e,Z);r?n=D:0===Number(o)?n=E:1===Number(o)?n=c?T:S:2===Number(o)?n=A:3===Number(o)?n=I:4===Number(o)?n=R:5===Number(o)&&(n=_);var a=(0,O.jsxs)(n,P(P({},l),{},{level:o,children:[u&&(0,O.jsx)(j.Z,{mb:i?2:3,children:t}),!u&&t]}));return r?a:(0,O.jsx)(k,{children:a})};N.defaultProps={level:3,weightStyle:6},n.Z=N},46614:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Ee}});var i=t(77837),r=t(75582),o=t(82394),c=t(38860),u=t.n(c),l=t(12691),a=t.n(l),s=t(83455),d=t(82684),p=t(34376),f=t(60328),h=t(1210),m=t(93461),b=t(67971),g=t(11135),v=t(29237),x=t(86673),y=t(19711),j=t(38435),O=t(82944),Z=t(28598);var w=function(e){var n=e.description,t=e.isLoading,i=e.maxWidth,r=e.minWidth,o=e.noEmptyValue,c=e.onClose,u=e.onSave,l=e.textArea,a=e.title,s=e.value,p=(0,d.useRef)(null),h=(0,d.useState)(s),m=h[0],w=h[1],P=l?j.Z:O.Z;return(0,d.useEffect)((function(){var e;null===p||void 0===p||null===(e=p.current)||void 0===e||e.focus()}),[]),(0,Z.jsxs)(v.Z,{maxWidth:i,minWidth:r,children:[(0,Z.jsx)(y.ZP,{bold:!0,children:a}),(0,Z.jsx)(x.Z,{mt:1,children:(0,Z.jsx)(P,{monospace:!0,onChange:function(e){return w(e.target.value)},ref:p,rows:l?7:null,value:m})}),n&&(0,Z.jsx)(x.Z,{mt:2,children:(0,Z.jsx)(y.ZP,{muted:!0,small:!0,children:n})}),(0,Z.jsx)(x.Z,{mt:3,children:(0,Z.jsxs)(b.Z,{children:[(0,Z.jsx)(g.ZP,{bold:!0,inline:!0,loading:t,onClick:function(){m===s||o&&!m?c():u(m)},outline:!0,primary:!0,uuid:"Inputs/InputModal/SaveInput",children:"Save"}),(0,Z.jsx)(x.Z,{ml:1}),(0,Z.jsx)(f.Z,{onClick:c,children:"Cancel"})]})})]})},P=t(87372),C=t(10919),k=t(98781),E=t(41788),S=t(54283),T=t(58180),A=t(70902),I=t(18283),R=t(47999),_=t(30264),D=t(62609),N=t(9518),M=t(23831),H=t(73942),L=t(37391),B=t(49125),Y=74*B.iI,W=48*B.iI,V=N.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-18n432u-0"})(["position:absolute;border-radius:","px;overflow:hidden;width:","px;display:none;"," "," "," "," ",""],H.n_,Y,(function(e){return"\n background-color: ".concat((e.theme||M.Z).background.panel,";\n border: ").concat(H.mP,"px ").concat(H.M8," ").concat((e.theme||M.Z).interactive.defaultBackground,";\n box-shadow: ").concat((e.theme.shadow||M.Z.shadow).window,";\n ")}),(function(e){return e.display&&"\n display: block;\n "}),(function(e){return e.compact&&"\n width: ".concat(.75*Y,"px;\n ")}),(function(e){return"undefined"!==typeof e.left&&"\n left: ".concat(e.left,"px;\n ")}),(function(e){return"undefined"!==typeof e.top&&"\n top: ".concat(e.top,"px;\n ")})),z=N.default.div.withConfig({displayName:"indexstyle__MainStyle",componentId:"sc-18n432u-1"})(["display:flex;border-radius:","px;overflow:hidden;height:","px;"," ",""],H.n_,W,(function(e){return"\n background-color: ".concat((e.theme||M.Z).background.content,";\n border: ").concat(H.YF,"px ").concat(H.M8," ").concat((e.theme||M.Z).interactive.defaultBackground,";\n ")}),(function(e){return e.compact&&"\n height: ".concat(W/2,"px;\n ")})),U=N.default.aside.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-18n432u-2"})(["width:100%;overflow:auto;"," ",""],L.w5,(function(e){return"\n border-right: ".concat(H.YF,"px ").concat(H.M8," ").concat((e.theme||M.Z).background.panel,";\n ")})),F=N.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-18n432u-3"})(["width:100%;overflow:auto;",""],L.w5),G=(0,N.css)(["display:flex;align-items:center;justify-content:space-between;padding:","px ","px;"],B.iI,2*B.iI),K=N.default.div.withConfig({displayName:"indexstyle__OptionStyle",componentId:"sc-18n432u-4"})([""," padding-top:","px;padding-bottom:","px;&:hover{cursor:pointer;","}",""],G,1.5*B.iI,1.5*B.iI,(function(e){return"\n background-color: ".concat((e.theme||M.Z).monotone.black,";\n ")}),(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme||M.Z).monotone.black,";\n ")})),X=N.default.div.withConfig({displayName:"indexstyle__ToggleValueStyle",componentId:"sc-18n432u-5"})([""," ",""],G,(function(e){return"\n border-bottom: ".concat(H.YF,"px ").concat(H.M8," ").concat((e.theme||M.Z).borders.medium2,";\n ")})),q=t(10503),Q=t(33766),J=t(90211);function $(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 ee(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?$(Object(t),!0).forEach((function(n){(0,o.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 ne,te=function(e){var n,t,i,c=e.children,u=e.compact,l=e.onClickCallback,a=e.onClickOutside,s=e.onSecondaryClick,p=e.open,h=e.options,g=void 0===h?{}:h,v=e.parentRef,j=e.query,O=e.setOpen,w=e.toggleValueMapping,P=(0,d.useState)(null),C=P[0],k=P[1],E=(0,d.useState)(g),S=E[0],T=E[1];(0,d.useEffect)((function(){T(g)}),[g]);var I=((null===v||void 0===v||null===(n=v.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).top,_=void 0===I?0:I,D=Object.keys(g);return(0,Z.jsxs)(R.Z,{onClickOutside:a,open:!0,children:[(0,Z.jsx)("div",{ref:v,children:c}),(0,Z.jsxs)(V,{compact:u,display:p,top:_-5,children:[(0,Z.jsxs)(z,{compact:u,children:[(0,Z.jsx)(m.Z,{flex:"1",children:(0,Z.jsx)(U,{children:D.map((function(e){return(0,Z.jsxs)(K,{highlighted:C===e,onMouseEnter:function(){return k(e)},children:[(0,Z.jsx)(y.ZP,{children:(0,J.kC)(e)}),(0,Z.jsx)(q._Q,{})]},e)}))})}),(0,Z.jsx)(m.Z,{flex:"2",children:(0,Z.jsx)(F,{children:C&&Object.entries((null===(i=S||g)||void 0===i?void 0:i[C])||{}).map((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];return(0,Z.jsxs)(X,{children:[(0,Z.jsx)(y.ZP,{children:(null===w||void 0===w?void 0:w[t])||(0,J.J3)((0,J.kC)(t))}),(0,Z.jsx)(A.Z,{checked:i,onCheck:function(){return T((function(e){return ee(ee({},e),{},(0,o.Z)({},C,ee(ee({},null===e||void 0===e?void 0:e[C]),{},(0,o.Z)({},t,!i))))}))}})]},t)}))})})]}),(0,Z.jsx)(x.Z,{m:1,children:(0,Z.jsxs)(b.Z,{children:[(0,Z.jsx)(f.Z,{onClick:function(){var e=Object.entries(S).reduce((function(e,n){var t=(0,r.Z)(n,2),i=t[0],o=t[1],c=[];return Object.entries(o).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0];return n[1]&&c.push(t)})),e[i]=c,e}),{});null===l||void 0===l||l(),(0,Q.g_)(j,e,{addingMultipleValues:!0,pushHistory:!0})},secondary:!0,children:"Apply"}),(0,Z.jsx)(x.Z,{mr:1}),(0,Z.jsx)(f.Z,{noBackground:!0,onClick:function(){O(!1),null===s||void 0===s||s()},children:"Defaults"})]})})]})]})},ie=t(46261),re=t(99994),oe="".concat(1.5*B.iI,"px"),ce=40*B.iI,ue={bold:!0,greyBorder:!0,paddingBottom:9,paddingTop:9};!function(e){e[e.SECONDARY=1]="SECONDARY",e[e.DELETE=2]="DELETE"}(ne||(ne={}));var le={autoHide:!0,size:null,widthFitContent:!0},ae=t(7715),se=t(9736);function de(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 pe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?de(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):de(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var fe=function(e){var n=e.addButtonProps,t=e.deleteRowProps,i=e.filterOptions,o=void 0===i?{}:i,c=e.filterValueLabelMapping,u=e.groupButtonProps,l=e.moreActionsMenuItems,a=e.query,s=void 0===a?{}:a,f=e.searchProps,h=e.secondaryActionButtonProps,v=e.selectedRowId,j=e.setSelectedRow,w=(0,se.Ct)(),P=(0,p.useRouter)(),C=(0,d.useRef)(null),k=(0,d.useRef)(null),E=(0,d.useRef)(null),S=(0,d.useRef)(null),T=(0,d.useRef)(null),A=(0,d.useState)(!1),N=A[0],M=A[1],L=(0,d.useState)(!1),Y=L[0],W=L[1],V=(0,d.useState)(!1),z=V[0],U=V[1],F=(0,d.useState)(!1),G=F[0],K=F[1],X=(0,d.useState)(null),Q=X[0],J=X[1],$=!v,ee=(0,d.useCallback)((function(){return M(!1)}),[]),de=(0,d.useCallback)((function(){return W(!1)}),[]),fe=(0,d.useCallback)((function(){return U(!1)}),[]),he=(0,d.useCallback)((function(){return K(null)}),[]),me=(0,d.useCallback)((function(){return J(null)}),[]),be=h||{},ge=be.Icon,ve=be.confirmationDescription,xe=be.confirmationMessage,ye=be.isLoading,je=be.label,Oe=be.onClick,Ze=be.openConfirmationDialogue,we=be.tooltip,Pe=t||{},Ce=Pe.confirmationMessage,ke=Pe.isLoading,Ee=Pe.item,Se=Pe.onDelete,Te=f||{},Ae=Te.placeholder,Ie=Te.onChange,Re=Te.value,_e=(0,d.useMemo)((function(){return Object.entries(o).reduce((function(e,n){var t=(0,r.Z)(n,2),i=t[0],o=t[1];return e[i]={},o.forEach((function(n){var t,r=(null===(t=s["".concat(i,"[]")])||void 0===t?void 0:t.includes(n))||!1;e[i][n]=r})),e}),{})}),[o,s]),De=n||{},Ne=De.label,Me=De.menuItems,He=De.isLoading,Le=(0,d.useMemo)((function(){return(0,Z.jsx)(_.Z,{disableKeyboardShortcuts:!0,items:Me,onClickCallback:ee,onClickOutside:ee,open:N,parentRef:C,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/NewItemMenu",children:(0,Z.jsx)(g.ZP,pe(pe({},ue),{},{background:re.eW,beforeElement:(0,Z.jsx)(q.mm,{size:2.5*B.iI}),loading:He,onClick:function(e){e.preventDefault(),M((function(e){return!e}))},uuid:"Table/Toolbar/AddButton",children:Ne}))})}),[Ne,Me,N,ee,He]),Be=(0,d.useMemo)((function(){return(0,ae.dw)(_e)}),[_e]),Ye=(0,d.useMemo)((function(){return(0,Z.jsx)(te,{compact:!0,onClickCallback:de,onClickOutside:de,onSecondaryClick:function(){return P.push("/pipelines")},open:Y,options:_e,parentRef:k,query:s,setOpen:W,toggleValueMapping:c,children:(0,Z.jsx)(g.ZP,pe(pe({},ue),{},{afterElement:Be>0?(0,Z.jsx)(I.Z,{cyan:!0,noVerticalPadding:!0,children:(0,Z.jsx)(y.ZP,{bold:!0,inverted:!0,children:Be})}):null,beforeElement:(0,Z.jsx)(q.wn,{size:2*B.iI}),onClick:function(){return W((function(e){return!e}))},uuid:"Table/Toolbar/FilterButton",children:"Filter"}))})}),[de,Y,_e,c,Be,s,P]),We=u||{},Ve=We.groupByLabel,ze=We.menuItems,Ue=(0,d.useMemo)((function(){return(0,Z.jsx)(_.Z,{disableKeyboardShortcuts:!0,items:ze,onClickCallback:fe,onClickOutside:fe,open:z,parentRef:E,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/GroupMenu",children:(0,Z.jsx)(g.ZP,pe(pe({},ue),{},{beforeElement:(0,Z.jsx)(q.ZA,{size:2.5*B.iI}),onClick:function(){U((function(e){return!e}))},uuid:"Table/Toolbar/GroupButton",children:Ve?"Grouped by ".concat(Ve):"Group"}))})}),[fe,z,ze]),Fe=(0,d.useMemo)((function(){return(0,Z.jsx)(_.Z,{disableKeyboardShortcuts:!0,items:l,onClickCallback:he,onClickOutside:he,open:G,parentRef:S,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/MoreActionsMenu",children:(0,Z.jsx)(ie.Z,pe(pe({},le),{},{label:"More actions",children:(0,Z.jsx)(g.ZP,{Icon:q.mH,bold:!0,disabled:$,greyBorder:!0,onClick:function(){return K((function(e){return!e}))},smallIcon:!0,uuid:"Table/Toolbar/MoreActionsButton"})}))})}),[he,$,G,l]);return(0,Z.jsxs)(b.Z,{alignItems:"center",children:[Le,(0,Z.jsx)(x.Z,{mr:oe}),Ye,(null===ze||void 0===ze?void 0:ze.length)>0&&(0,Z.jsx)(x.Z,{ml:oe,children:Ue}),!w&&Oe&&(0,Z.jsxs)(x.Z,{ml:oe,children:[(0,Z.jsx)(ie.Z,pe(pe({},le),{},{label:we,children:(0,Z.jsx)(g.ZP,{Icon:!ye&&ge,bold:!0,disabled:$,greyBorder:!0,loading:ye,onClick:Ze?function(){return J(ne.SECONDARY)}:Oe,smallIcon:!0,uuid:"Table/Toolbar/SecondaryActionButton",children:je})})),(0,Z.jsx)(R.Z,{onClickOutside:me,open:Q===ne.SECONDARY,children:(0,Z.jsx)(D.Z,{onCancel:me,onClick:function(){Oe(),me(),j(null)},subtitle:ve,title:xe,top:58,width:ce})})]}),!w&&Se&&(0,Z.jsxs)(x.Z,{ml:oe,children:[(0,Z.jsx)(ie.Z,pe(pe({},le),{},{label:"Delete ".concat(Ee),children:(0,Z.jsx)(g.ZP,{Icon:!ke&&q.rF,bold:!0,disabled:$,greyBorder:!0,loading:ke,onClick:function(){return J(ne.DELETE)},smallIcon:!0,uuid:"Table/Toolbar/DeleteButton"})})),(0,Z.jsx)(R.Z,{onClickOutside:me,open:Q===ne.DELETE,children:(0,Z.jsx)(D.Z,{danger:!0,onCancel:me,onClick:function(){Se(v),me(),j(null)},subtitle:Ce,title:"Are you sure you want to delete the ".concat(Ee," ").concat(v,"?"),top:58,width:ce})})]}),!w&&(null===l||void 0===l?void 0:l.length)>0&&(0,Z.jsx)(x.Z,{ml:oe,children:Fe}),Ie&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(x.Z,{ml:oe}),(0,Z.jsx)(m.Z,{flex:1,children:(0,Z.jsx)(O.Z,{afterIcon:Re?(0,Z.jsx)(q.x8,{}):null,afterIconClick:function(){var e;Ie(""),null===T||void 0===T||null===(e=T.current)||void 0===e||e.focus()},afterIconSize:1.5*B.iI,beforeIcon:(0,Z.jsx)(q.HN,{}),borderRadius:H.n_,defaultColor:!0,fullWidth:!0,greyBorder:!0,maxWidth:60*B.iI,onChange:function(e){return Ie(e.target.value)},paddingVertical:9,placeholder:Ae||null,ref:T,value:Re})})]})]})},he=t(82531),me=t(86422),be=t(93348),ge=t(3055),ve=t(45838),xe=t(96510),ye=t(59e3),je=t(66653),Oe=t(99497),Ze=t(9728);function we(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 Pe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?we(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):we(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ce={borderRadius:H.BG,iconOnly:!0,noBackground:!0,noBorder:!0,outline:!0,padding:"4px"};function ke(){var e=(0,p.useRouter)(),n=(0,d.useRef)(null),t=(0,d.useState)(null),i=t[0],c=t[1],u=(0,d.useState)(null),l=u[0],g=u[1],j=(0,d.useState)({}),O=j[0],E=j[1],I=(0,d.useState)(null),R=I[0],_=I[1],D=(0,ye.iV)(),N=(0,ye.DQ)(D,[k.$1.STATUS,k.$1.TYPE]),H=null===D||void 0===D?void 0:D[k.$1.GROUP],L=he.ZP.pipelines.list(Pe(Pe({},N),{},{include_schedules:1})),Y=L.data,W=L.mutate,V=(0,d.useMemo)((function(){var e=(null===Y||void 0===Y?void 0:Y.pipelines)||[];if(l){var n=l.toLowerCase();e=e.filter((function(e){var t=e.name,i=e.description,r=e.uuid;return(null===t||void 0===t?void 0:t.toLowerCase().includes(n))||(null===r||void 0===r?void 0:r.toLowerCase().includes(n))||(null===i||void 0===i?void 0:i.toLowerCase().includes(n))}))}return e}),[null===Y||void 0===Y?void 0:Y.pipelines,l]),z=he.ZP.projects.list(),U=z.data,F=z.mutate,G=(0,d.useMemo)((function(){var e;return null===U||void 0===U||null===(e=U.projects)||void 0===e?void 0:e[0]}),[U]);(0,d.useEffect)((function(){(0,xe.bB)(Y,_)}),[Y]);var K=function(e){return(0,s.Db)(he.ZP.pipelines.useCreate(),{onSuccess:function(n){return(0,xe.wD)(n,{callback:function(n){var t=n.pipeline.uuid;null===e||void 0===e||e(t)},onErrorCallback:function(e,n){return _({errors:n,response:e})}})}})},X=K((function(n){return e.push("/pipelines/[pipeline]/edit","/pipelines/".concat(n,"/edit"))})),$=(0,r.Z)(X,2),ee=$[0],ne=$[1].isLoading,te=K((function(){return null===W||void 0===W?void 0:W()})),ie=(0,r.Z)(te,2),re=ie[0],oe=ie[1].isLoading,ce=(0,s.Db)((function(e){return he.ZP.pipelines.useUpdate(e.uuid)({pipeline:e})}),{onSuccess:function(e){return(0,xe.wD)(e,{callback:function(e){var n=e.pipeline.uuid;E((function(e){return Pe(Pe({},e),{},(0,o.Z)({},n,!1))})),W(),null===Te||void 0===Te||Te(),c(null)},onErrorCallback:function(e,n){var t,i=null===e||void 0===e||null===(t=e.url_parameters)||void 0===t?void 0:t.pk;E((function(e){return Pe(Pe({},e),{},(0,o.Z)({},i,!1))})),_({errors:n,response:e})}})}}),ue=(0,r.Z)(ce,2),le=ue[0],ae=ue[1].isLoading,se=(0,s.Db)((function(e){return he.ZP.pipelines.useDelete(e)()}),{onSuccess:function(e){return(0,xe.wD)(e,{callback:function(){null===W||void 0===W||W()},onErrorCallback:function(e,n){return _({errors:n,response:e})}})}}),de=(0,r.Z)(se,2),pe=de[0],we=de[1].isLoading,ke=(0,Oe.dd)((function(e){var n=e.pipeline,t=e.pipelineDescription,r=e.pipelineName;return(0,Z.jsx)(w,{isLoading:ae,minWidth:55*B.iI,noEmptyValue:!!r,onClose:Te,onSave:function(e){var t=n||i;if(t){var c=t.uuid,u={uuid:c};r?u.name=e:u.description=e,E((function(e){return Pe(Pe({},e),{},(0,o.Z)({},c,!0))})),le(u)}},textArea:!r,title:r?"Rename pipeline":"Edit description",value:r||t})}),{},[ae,i],{background:!0,uuid:"rename_pipeline_and_save"}),Ee=(0,r.Z)(ke,2),Se=Ee[0],Te=Ee[1],Ae=(0,d.useMemo)((function(){return(0,Z.jsx)(fe,{addButtonProps:{isLoading:ne,label:"New",menuItems:[{label:function(){return"Standard (batch)"},onClick:function(){return ee({pipeline:{name:(0,J.Y6)()}})},uuid:"Pipelines/NewPipelineMenu/standard"},{label:function(){return"Data integration"},onClick:function(){return ee({pipeline:{name:(0,J.Y6)(),type:k.qL.INTEGRATION}})},uuid:"Pipelines/NewPipelineMenu/integration"},{label:function(){return"Streaming"},onClick:function(){return ee({pipeline:{name:(0,J.Y6)(),type:k.qL.STREAMING}})},uuid:"Pipelines/NewPipelineMenu/streaming"}]},deleteRowProps:{confirmationMessage:"This is irreversible and will immediately delete everything associated with the pipeline, including its blocks, triggers, runs, logs, and history.",isLoading:we,item:"pipeline",onDelete:function(){return pe(null===i||void 0===i?void 0:i.uuid)}},filterOptions:{status:Object.values(k.QK),type:Object.values(k.qL)},filterValueLabelMapping:k.G7,groupButtonProps:{groupByLabel:H,menuItems:[{beforeIcon:(0,Z.jsx)(q.Jr,{fill:H===k.r0.STATUS?M.Z.content.default:M.Z.interactive.transparent,size:2*B.iI}),label:function(){return(0,J.kC)(k.r0.STATUS)},onClick:function(){return(0,Q.u7)((0,o.Z)({},k.$1.GROUP,H===k.r0.STATUS?null:k.r0.STATUS),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Status"},{beforeIcon:(0,Z.jsx)(q.Jr,{fill:H===k.r0.TYPE?M.Z.content.default:M.Z.interactive.transparent,size:2*B.iI}),label:function(){return(0,J.kC)(k.r0.TYPE)},onClick:function(){return(0,Q.u7)((0,o.Z)({},k.$1.GROUP,H===k.r0.TYPE?null:k.r0.TYPE),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Type"}]},moreActionsMenuItems:[{label:function(){return"Rename pipeline"},onClick:function(){return Se({pipelineName:null===i||void 0===i?void 0:i.name})},uuid:"Pipelines/MoreActionsMenu/Rename"},{label:function(){return"Edit description"},onClick:function(){return Se({pipelineDescription:null===i||void 0===i?void 0:i.description})},uuid:"Pipelines/MoreActionsMenu/EditDescription"}],query:N,searchProps:{onChange:g,value:l},secondaryActionButtonProps:{Icon:q.oX,confirmationDescription:"Cloning the selected pipeline will create a new pipeline with the same configuration and code blocks. The blocks use the same block files as the original pipeline. Pipeline triggers, runs, backfills, and logs are not copied over to the new pipeline.",confirmationMessage:"Do you want to clone the pipeline ".concat(null===i||void 0===i?void 0:i.uuid,"?"),isLoading:oe,onClick:function(){return re({pipeline:{clone_pipeline_uuid:null===i||void 0===i?void 0:i.uuid}})},openConfirmationDialogue:!0,tooltip:"Clone pipeline"},selectedRowId:null===i||void 0===i?void 0:i.uuid,setSelectedRow:c})}),[re,ee,pe,H,oe,ne,we,N,l,null===i||void 0===i?void 0:i.description,null===i||void 0===i?void 0:i.name,null===i||void 0===i?void 0:i.uuid,Se]),Ie=(0,Ze.VI)(null,{},[],{uuid:"pipelines/list"}),Re=(0,r.Z)(Ie,1)[0],_e=(0,s.Db)(he.ZP.projects.useUpdate(null===G||void 0===G?void 0:G.name),{onSuccess:function(e){return(0,xe.wD)(e,{callback:function(){F()},onErrorCallback:function(e,n){return Re({errors:n,response:e})}})}}),De=(0,r.Z)(_e,2),Ne=De[0],Me=De[1].isLoading,He=(0,d.useCallback)((function(e){return Ne({project:e})}),[Ne]),Le=(0,Oe.dd)((function(){return(0,Z.jsxs)(v.Z,{maxWidth:60*B.iI,children:[(0,Z.jsx)(x.Z,{mb:1,children:(0,Z.jsx)(P.Z,{children:"Help improve Mage"})}),(0,Z.jsx)(x.Z,{mb:B.cd,children:(0,Z.jsx)(y.ZP,{default:!0,children:"Please contribute usage statistics to help improve the developer experience for you and everyone in the community \ud83e\udd1d."})}),(0,Z.jsx)(x.Z,{mb:B.cd,children:(0,Z.jsx)(v.Z,{success:!0,children:(0,Z.jsxs)(b.Z,{alignItems:"center",children:[(0,Z.jsx)(q.Yo,{size:5*B.iI,success:!0}),(0,Z.jsx)(x.Z,{mr:1}),(0,Z.jsx)(m.Z,{children:(0,Z.jsx)(y.ZP,{children:"All usage statistics are completely anonymous. It\u2019s impossible for Mage to know which statistics belongs to whom."})})]})})}),(0,Z.jsx)(x.Z,{mb:B.cd,children:(0,Z.jsxs)(y.ZP,{default:!0,children:["By opting into sending usage statistics to ",(0,Z.jsx)(C.Z,{href:"https://www.mage.ai",openNewWindow:!0,children:"Mage"}),", it\u2019ll help the team and community of contributors (",(0,Z.jsx)(C.Z,{href:"https://www.mage.ai/chat",openNewWindow:!0,children:"Magers"}),") learn what\u2019s going wrong with the tool and what improvements can be made."]})}),(0,Z.jsx)(x.Z,{mb:B.cd,children:(0,Z.jsx)(y.ZP,{default:!0,children:"In addition to helping reduce potential errors, you\u2019ll help inform which features are useful and which need work."})}),(0,Z.jsx)(x.Z,{mb:B.cd,children:(0,Z.jsxs)(b.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,Z.jsx)(y.ZP,{bold:!0,children:"I want to help make Mage more powerful for everyone"}),(0,Z.jsx)(x.Z,{mr:B.cd}),(0,Z.jsx)(A.Z,{checked:!0,onCheck:function(){window.confirm("Are you sure you don\u2019t want to help everyone in the community?")&&He({help_improve_mage:!1}).then((function(){return We()}))}})]})}),Me&&(0,Z.jsx)(x.Z,{mb:B.cd,children:(0,Z.jsx)(S.Z,{inverted:!0})}),(0,Z.jsx)(x.Z,{mb:B.cd,children:(0,Z.jsxs)(y.ZP,{muted:!0,small:!0,children:["To learn more about how this works, please check out the ",(0,Z.jsx)(C.Z,{href:"https://docs.mage.ai/contributing/statistics/overview",openNewWindow:!0,small:!0,children:"documentation"}),"."]})}),(0,Z.jsx)(f.Z,{onClick:function(){return He({help_improve_mage:!0}).then((function(){return We()}))},secondary:!0,children:"Close"})]})}),{},[G],{background:!0,hideCallback:function(){He({help_improve_mage:!0})},uuid:"help_mage"}),Be=(0,r.Z)(Le,2),Ye=Be[0],We=Be[1];return(0,d.useEffect)((function(){G&&null===(null===G||void 0===G?void 0:G.help_improve_mage)&&Ye()}),[G,Ye]),(0,Z.jsx)(h.Z,{errors:R,setErrors:_,subheaderChildren:Ae,title:"Pipelines",uuid:"pipelines/index",children:0===(null===V||void 0===V?void 0:V.length)?(0,Z.jsx)(x.Z,{px:3,py:1,children:Y?(0,Z.jsx)(y.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No pipelines available"}):(0,Z.jsx)(S.Z,{inverted:!0,large:!0})}):(0,Z.jsx)(ve.cl,{includePadding:!!H,maxHeight:"calc(100vh - ".concat(ge.Mz+74,"px)"),children:(0,Z.jsx)(T.Z,{columnFlex:[null,1,3,4,1,1,1,null],columns:[{label:function(){return""},uuid:"action"},{uuid:(0,J.kC)(k.r0.STATUS)},{uuid:"Name"},{uuid:"Description"},{uuid:(0,J.kC)(k.r0.TYPE)},{uuid:"Blocks"},{uuid:"Triggers"},{center:!0,uuid:"Actions"}],grouping:{column:(0,J.kC)(H),columnIndex:H===k.r0.STATUS?1:H===k.r0.TYPE?4:null,values:H===k.r0.STATUS?Object.values(k.QK).map((function(e){return(0,J.J3)(e)})):H===k.r0.TYPE?Object.values(k.qL).map((function(e){return k.G7[e]})):[]},isSelectedRow:function(e){var n;return(null===(n=V[e])||void 0===n?void 0:n.uuid)===(null===i||void 0===i?void 0:i.uuid)},onClickRow:function(e){return c((function(n){var t=V[e];return(null===n||void 0===n?void 0:n.uuid)!==(null===t||void 0===t?void 0:t.uuid)?t:null}))},onDoubleClickRow:function(n){e.push("/pipelines/[pipeline]/edit","/pipelines/".concat(V[n].uuid,"/edit"))},ref:n,renderRightClickMenuItems:function(e){var n=V[e];return[{label:function(){return"Edit description"},onClick:function(){return Se({pipeline:n,pipelineDescription:null===n||void 0===n?void 0:n.description})},uuid:"edit_description"},{label:function(){return"Rename"},onClick:function(){return Se({pipeline:n,pipelineName:null===n||void 0===n?void 0:n.name})},uuid:"rename"},{label:function(){return"Clone"},onClick:function(){return re({pipeline:{clone_pipeline_uuid:null===n||void 0===n?void 0:n.uuid}})},uuid:"clone"},{label:function(){return"Delete"},onClick:function(){return pe(null===n||void 0===n?void 0:n.uuid)},uuid:"delete"}]},rows:V.map((function(n,t){var i=n.blocks,r=n.description,c=n.schedules,u=n.type,l=n.uuid,s=i.filter((function(e){var n=e.type;return me.tf.SCRATCHPAD!==n})).length,d=c.length,p=c.find((function(e){var n=e.status;return be.fq.ACTIVE===n}));return[d>=1||O[l]?(0,Z.jsx)(f.Z,{iconOnly:!0,loading:!!O[l],noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(e){(0,je.j)(e),E((function(e){return Pe(Pe({},e),{},(0,o.Z)({},l,!0))})),le(Pe(Pe({},n),{},{status:p?be.fq.INACTIVE:be.fq.ACTIVE}))},children:p?(0,Z.jsx)(q.dz,{muted:!0,size:2*B.iI}):(0,Z.jsx)(q.Py,{default:!0,size:2*B.iI})}):null,(0,Z.jsx)(y.ZP,{default:!p,monospace:!0,success:!!p,children:p?be.fq.ACTIVE:d>=1?be.fq.INACTIVE:"no schedules"},"pipeline_status_".concat(t)),(0,Z.jsx)(a(),{as:"/pipelines/".concat(l),href:"/pipelines/[pipeline]",passHref:!0,children:(0,Z.jsx)(C.Z,{sameColorAsText:!0,children:l})},"pipeline_name_".concat(t)),(0,Z.jsx)(y.ZP,{default:!0,title:r,width:90*B.iI,children:r},"pipeline_description_".concat(t)),(0,Z.jsx)(y.ZP,{children:k.G7[u]},"pipeline_type_".concat(t)),(0,Z.jsx)(y.ZP,{default:0===s,monospace:!0,children:s},"pipeline_block_count_".concat(t)),(0,Z.jsx)(y.ZP,{default:0===d,monospace:!0,children:d},"pipeline_trigger_count_".concat(t)),(0,Z.jsxs)(m.Z,{flex:1,justifyContent:"flex-end",children:[(0,Z.jsx)(f.Z,Pe(Pe({},Ce),{},{onClick:function(){e.push("/pipelines/[pipeline]","/pipelines/".concat(l))},title:"Detail",children:(0,Z.jsx)(q.UY,{default:!0,size:2*B.iI})})),(0,Z.jsx)(x.Z,{mr:1}),(0,Z.jsx)(f.Z,Pe(Pe({},Ce),{},{onClick:function(){e.push("/pipelines/[pipeline]/logs","/pipelines/".concat(l,"/logs"))},title:"Logs",children:(0,Z.jsx)(q.$B,{default:!0,size:2*B.iI})}))]},"chevron_icon_".concat(t))]})),stickyHeader:!0})})})}ke.getInitialProps=(0,i.Z)(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var Ee=(0,E.Z)(ke)},33766:function(e,n,t){"use strict";t.d(n,{O2:function(){return d},g_:function(){return f},u7:function(){return p}});var i=t(75582),r=t(82394),o=t(34376),c=t.n(o),u=t(59e3),l=t(24224);function a(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 s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var d="_offset";function p(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.preserveParams,r=n.pushHistory,o=n.replaceParams,l=(0,u.iV)(),a={};t&&t.forEach((function(e){l[e]&&(a[e]=l[e])}));var d,p=o?a:l;d=window.location.pathname;var f=r?c().push:c().replace,h=s(s({},p),e);Object.entries(e).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];"undefined"!==typeof r&&null!==r||delete h[t]}));var m=(0,u.uM)(h);m.length>=1&&(m="?".concat(m));var b="".concat(d.split("?")[0]).concat(m);return f(c().router.pathname,b,{shallow:!0})}function f(e,n,t){var r=t.addingMultipleValues,o=t.isList,c=t.itemsPerPage,u=t.pushHistory,a=void 0!==u&&u,f=t.resetLimitParams,h=s({},e);r?Object.entries(n).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];if(Array.isArray(r)){var o="".concat(t,"[]");h[o]=r.map(String)}})):o?Object.entries(n).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1],o=String(r),c="".concat(t,"[]"),u=h[c];u&&Array.isArray(u)?(u=u.map(String)).includes(o)?h[c]=(0,l.Od)(u,(function(e){return e===o})):h[c]=u.concat(o):h[c]=[o]})):h=s(s({},h),n),f&&(h._limit=c||20,h[d]=0),p(h,{pushHistory:a})}},79274:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines",function(){return t(46614)}])}},function(e){e.O(0,[844,7607,1424,1005,8180,9774,2888,179],(function(){return n=79274,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
self.__BUILD_MANIFEST=function(s,e,i,n,c,p,t,a,l,u,r,g,k,f,d,b,h,j,o,_,m,E,w,O,A,B,L,D){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/datasets",destination:O},{source:"/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_",destination:O}],fallback:[]},"/":["static/chunks/pages/index-b6cd94a079629572.js"],"/_error":["static/chunks/pages/_error-235304e5badb19eb.js"],"/files":[s,n,j,o,e,i,c,a,_,A,"static/chunks/pages/files-62c95766fcf47143.js"],"/manage":[s,n,o,e,i,c,_,"static/chunks/pages/manage-06aa8a8f1ca2e8d8.js"],"/manage/users":[s,n,e,i,c,"static/chunks/pages/manage/users-430a971c087e6de4.js"],"/manage/users/[user]":[s,n,e,i,c,"static/chunks/pages/manage/users/[user]-8b2482416f3958b0.js"],"/pipeline-runs":[s,n,e,i,c,d,"static/chunks/pages/pipeline-runs-3260a2dac8df672e.js"],"/pipelines":[s,n,e,i,c,"static/chunks/pages/pipelines-f4d470fe28b74de7.js"],"/pipelines/[pipeline]":["static/chunks/pages/pipelines/[pipeline]-ca9457e1a6bced4b.js"],"/pipelines/[pipeline]/backfills":[s,n,e,i,c,p,"static/chunks/pages/pipelines/[pipeline]/backfills-f08b51d9dc56eab5.js"],"/pipelines/[pipeline]/backfills/[...slug]":[s,n,t,l,u,g,k,m,e,i,c,p,a,r,f,d,"static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-6342d4f39d7f2b5c.js"],"/pipelines/[pipeline]/edit":[B,s,n,t,l,u,g,k,b,E,j,o,"static/chunks/7107-b89772bb2a2669df.js",e,i,c,a,r,f,_,w,A,L,"static/chunks/pages/pipelines/[pipeline]/edit-43e71712d3fc0299.js"],"/pipelines/[pipeline]/logs":[s,n,l,E,m,e,i,c,p,w,"static/chunks/pages/pipelines/[pipeline]/logs-264439be4f197741.js"],"/pipelines/[pipeline]/monitors":[s,n,t,b,e,i,p,D,"static/chunks/pages/pipelines/[pipeline]/monitors-092f364100995ba6.js"],"/pipelines/[pipeline]/monitors/block-runs":[s,n,t,b,e,i,p,D,"static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-91ba61b9030eff1f.js"],"/pipelines/[pipeline]/monitors/block-runtime":[B,s,n,t,b,"static/chunks/9832-f97919376d52e3bf.js",e,i,p,L,"static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-0bbae5456b0e6e82.js"],"/pipelines/[pipeline]/runs":[s,n,l,u,g,e,i,c,p,a,r,d,"static/chunks/pages/pipelines/[pipeline]/runs-4b0c098074dd3e6d.js"],"/pipelines/[pipeline]/runs/[run]":[s,n,t,l,u,g,k,E,e,i,c,p,a,r,f,w,"static/chunks/pages/pipelines/[pipeline]/runs/[run]-86d1477c6671ea30.js"],"/pipelines/[pipeline]/settings":[s,n,e,i,p,"static/chunks/pages/pipelines/[pipeline]/settings-55748e7fcf738d91.js"],"/pipelines/[pipeline]/syncs":[s,n,e,i,c,p,"static/chunks/pages/pipelines/[pipeline]/syncs-891c3d3f7a2b634b.js"],"/pipelines/[pipeline]/triggers":[s,n,t,l,u,k,e,i,c,p,a,r,f,"static/chunks/pages/pipelines/[pipeline]/triggers-7990c5c7af475c5f.js"],"/pipelines/[pipeline]/triggers/[...slug]":[s,n,t,l,u,g,k,m,e,i,c,p,a,r,f,d,"static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-4acba123203d0a5d.js"],"/settings":["static/chunks/pages/settings-d594a66a568306da.js"],"/settings/account/profile":[s,e,i,h,"static/chunks/pages/settings/account/profile-bf83d167f46905c6.js"],"/settings/workspace/preferences":[s,e,i,h,"static/chunks/pages/settings/workspace/preferences-3b26db0dd0962783.js"],"/settings/workspace/sync-data":[s,e,i,h,"static/chunks/pages/settings/workspace/sync-data-b602fa9b6ffabd12.js"],"/settings/workspace/users":[s,n,e,i,c,h,"static/chunks/pages/settings/workspace/users-70cbb7d5cb54a84a.js"],"/sign-in":[s,e,"static/chunks/pages/sign-in-56fb21d1b7d55ca9.js"],"/terminal":[s,e,i,"static/chunks/pages/terminal-0d2260ad08dfe44a.js"],"/test":[j,"static/chunks/pages/test-bd801bde63db7c9e.js"],"/triggers":[s,n,e,i,c,"static/chunks/pages/triggers-d74d0f163157ba65.js"],sortedPages:["/","/_app","/_error","/files","/manage","/manage/users","/manage/users/[user]","/pipeline-runs","/pipelines","/pipelines/[pipeline]","/pipelines/[pipeline]/backfills","/pipelines/[pipeline]/backfills/[...slug]","/pipelines/[pipeline]/edit","/pipelines/[pipeline]/logs","/pipelines/[pipeline]/monitors","/pipelines/[pipeline]/monitors/block-runs","/pipelines/[pipeline]/monitors/block-runtime","/pipelines/[pipeline]/runs","/pipelines/[pipeline]/runs/[run]","/pipelines/[pipeline]/settings","/pipelines/[pipeline]/syncs","/pipelines/[pipeline]/triggers","/pipelines/[pipeline]/triggers/[...slug]","/settings","/settings/account/profile","/settings/workspace/preferences","/settings/workspace/sync-data","/settings/workspace/users","/sign-in","/terminal","/test","/triggers"]}}("static/chunks/844-1e171f361e63b36d.js","static/chunks/1424-c6b0d89ffb4a10b9.js","static/chunks/1005-5c88ae13680d7023.js","static/chunks/7607-324c3a1e4e7d0628.js","static/chunks/8180-0c53312021451bb7.js","static/chunks/547-f3f2ccd9dcde9459.js","static/chunks/5896-10a676bcc86978cc.js","static/chunks/3714-c70e815b08e3d9be.js","static/chunks/4804-01a10103ebe26ca8.js","static/chunks/1774-aa51ef1da7217ff9.js","static/chunks/3752-bd78037feb0a755f.js","static/chunks/9350-1ff50f1d7b9ee754.js","static/chunks/5872-1767c45ee6690ae5.js","static/chunks/1286-a62050b3f897c6be.js","static/chunks/8312-71137409aea5d028.js","static/chunks/2714-1e79e9f2e998b544.js","static/chunks/3077-5f598aed0c29fc0a.js","static/chunks/7011-81dd8269c4806d26.js","static/chunks/8789-4f858e520d46973b.js","static/chunks/9270-e35a5eb3dae4c3ca.js","static/chunks/4495-4f0340aa82e0c623.js","static/chunks/2125-e6ce3c9a08d9d3b1.js","static/chunks/4822-337f23e5783da975.js","/datasets","static/chunks/4476-cdae7a65db573bb7.js","static/chunks/29107295-989a0767a635d9d5.js","static/chunks/8735-1a3d39946add4aea.js","static/chunks/7400-e5e39ae07de554b2.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|