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-8ee12ce8362ed576.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4794],{59739:function(e,n,t){"use strict";var r=t(56669);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,n,t,o,i,c){if(c!==r){var 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.CONDITIONAL===e||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 h},DA:function(){return f},HX:function(){return g},J8:function(){return v},L8:function(){return c},Lq:function(){return s},M5:function(){return p},Qj:function(){return b},Ut:function(){return y},V4:function(){return O},VZ:function(){return m},dO:function(){return d},f2:function(){return j},iZ:function(){return x},t6:function(){return u},tf:function(){return a}});var r,o,i,c,u,l=t(82394);!function(e){e.CONDITION="condition",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=(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.CONDITIONAL="conditional",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={}));var s,p=[a.CALLBACK,a.CONDITIONAL,a.EXTENSION];!function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(s||(s={}));var f,h=[a.CHART,a.CUSTOM,a.DATA_EXPORTER,a.DATA_LOADER,a.SCRATCHPAD,a.SENSOR,a.MARKDOWN,a.TRANSFORMER],m=[a.DATA_EXPORTER,a.DATA_LOADER],v=[a.DATA_EXPORTER,a.DATA_LOADER,a.TRANSFORMER],g=[a.DATA_EXPORTER,a.DATA_LOADER,a.DBT,a.TRANSFORMER],b=[a.CHART,a.SCRATCHPAD,a.SENSOR,a.MARKDOWN],x=[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"}(f||(f={}));var j=[a.CUSTOM,a.DATA_EXPORTER,a.DATA_LOADER,a.TRANSFORMER],O=(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),O=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 y,_=[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"}(y||(y={}));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 C(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function k(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,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):C(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var 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]),y=(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)(O,{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,k({},(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)(O,{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)(O,{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)(O,{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)(O,{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===y||void 0===y?void 0:y.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"})}),y.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)(O,{children:(0,R.jsxs)(v.Z,{alignItems:"center",children:[(0,R.jsx)(h.Z,{checked:Array.isArray(y)&&(null===y||void 0===y?void 0:y.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 K=/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}$/,z=/([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(z),t=[],r=[];return n.forEach((function(e){var n=e.trim();K.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(z),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||{},O=x.error,y=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 O&&e.push(re),(0,R.jsx)(N.Z,{onClickTab:c,selectedTabUUID:null===o||void 0===o?void 0:o.uuid,tabs:e})}),[O,y,_,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===O||void 0===O?void 0:O.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)}))}))})),y&&(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===y||void 0===y?void 0:y.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 ")})),Oe=t(62976),ye=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,ye.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 O=Math.max.apply(Math,(0,ae.Z)(s.map((function(e){return e.length})))),y=Math.min(O*Oe.r+12+8,50*j.iI),_=[{uuid:"_",width:28},{uuid:"Date",width:214},{uuid:"Block",width:y+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,O=h.data,_=h.name,Z=O||{},A=Z.block_uuid,P=Z.level,T=Z.message,C=Z.pipeline_uuid,k=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(C,"/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:y-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(k)},"log_timestamp")}),(0,R.jsx)(M.Z,{style:{minWidth:y,width:y},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")]})}),[y,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),Ce=t(55378),ke=t(82944),we=t(66166),Ie="_limit",Le="_offset",Ne=20,Me=[y.LAST_HOUR,y.LAST_DAY,y.LAST_WEEK,y.LAST_30_DAYS],Be=(Pe={},(0,i.Z)(Pe,y.LAST_HOUR,3600),(0,i.Z)(Pe,y.LAST_DAY,86400),(0,i.Z)(Pe,y.LAST_WEEK,604800),(0,i.Z)(Pe,y.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],O=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)(),C=(0,we.Z)(E);return(0,d.useEffect)((function(){if(!(0,Ue.Xy)(E,C)){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),O({hour:(0,He.lJ)(o),minute:(0,He.lJ)(i)});var u=Math.ceil(Date.now()/1e3)-e;Math.abs(u-Be[y.LAST_DAY])<=60&&c(y.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,C]),(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)(Ce.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(y).map((function(e){return(0,R.jsx)("option",{value:e,children:e},e)}))}),(0,R.jsx)(g.Z,{mr:1}),o===y.CUSTOM_RANGE&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(ke.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:O})}),(0,R.jsx)(g.Z,{px:1,children:(0,R.jsx)(b.ZP,{children:"to"})}),(0,R.jsx)(ke.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"})]})]})})},Ke=t(82531),ze=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),O=x[0],_=x[1],Z=(0,d.useState)(!1),A=Z[0],P=Z[1],S=(0,d.useState)(null),E=S[0],C=S[1],k=Ke.ZP.pipelines.detail(o,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,L=(0,d.useMemo)((function(){return Ve(Ve({},null===k||void 0===k?void 0:k.pipeline),{},{uuid:o})}),[k,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[y.LAST_DAY]),W=Ke.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]),K=J.blockRunLogs,z=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)(K.concat(z).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}))}),[K,z]),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:ze.M.PIPELINE_LOGS,pipeline:L,setErrors:C,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:O,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}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5912],{44162:function(n,t,e){"use strict";e.d(t,{HC:function(){return 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 O}});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.CONDITIONAL===n||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),O=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 A},DA:function(){return f},HX:function(){return h},J8:function(){return m},L8:function(){return c},Lq:function(){return s},M5:function(){return p},Qj:function(){return O},Ut:function(){return v},V4:function(){return E},VZ:function(){return b},dO:function(){return l},f2:function(){return R},iZ:function(){return T},t6:function(){return u},tf:function(){return d}});var r,o,i,c,u,a=e(82394);!function(n){n.CONDITION="condition",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=(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.CONDITIONAL="conditional",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={}));var s,p=[d.CALLBACK,d.CONDITIONAL,d.EXTENSION];!function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(s||(s={}));var f,A=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN,d.TRANSFORMER],b=[d.DATA_EXPORTER,d.DATA_LOADER],m=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],h=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],O=[d.CHART,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN],T=[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"}(f||(f={}));var R=[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),v=[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),O=e(55378),T=e(86673),R=e(82531),E=e(23831),v=e(67400),D=e(43032),_=e(92953),Z=e(44162),g=e(24224),C=e(28598);function x(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 y(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?x(Object(e),!0).forEach((function(t){(0,i.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):x(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function N(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=R.ZP.pipelines.detail(d,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,x=(0,a.useMemo)((function(){return y(y({},null===h||void 0===h?void 0:h.pipeline),{},{uuid:d})}),[h,d]),N=R.ZP.pipeline_schedules.pipelines.list(d).data,S=(0,a.useMemo)((function(){return null===N||void 0===N?void 0:N.pipeline_schedules}),[N]),L=(0,a.useMemo)((function(){return(0,g.HK)(null===x||void 0===x?void 0:x.blocks,(function(n){return n.uuid}))||{}}),[x]),P={pipeline_uuid:d};(c||0===c)&&(P.pipeline_schedule_id=Number(c));var k=R.ZP.monitor_stats.detail("block_run_count",P),I=k.data,M=k.mutate,w=((null===I||void 0===I?void 0:I.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 y({date:n},c[n]||{})}));return y(y({},n),{},(0,i.Z)({},r,u))}),{})}),[j,w]),X=(0,a.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[]);return(0,C.jsx)(m.Z,{breadcrumbs:X,monitorType:_.a.BLOCK_RUNS,pipeline:x,subheader:(0,C.jsx)(A.Z,{children:(0,C.jsxs)(O.Z,{backgroundColor:E.Z.interactive.defaultBackground,label:"Trigger:",onChange:function(n){var t=n.target.value;"initial"!==t?(u(t),M(t)):(M(),u(null))},value:c||"initial",children:[(0,C.jsx)("option",{value:"initial",children:"All"}),S&&S.map((function(n){return(0,C.jsx)("option",{value:n.id,children:n.name},n.id)}))]})}),children:(0,C.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,C.jsxs)(T.Z,{mt:3,children:[(0,C.jsxs)(A.Z,{alignItems:"center",children:[(0,C.jsx)(T.Z,{mx:1,children:(0,C.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:D.ZG,square:!0})}),(0,C.jsx)(b.Z,{level:4,children:c})]}),(0,C.jsx)(T.Z,{mt:1,children:(0,C.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:_.C,xLabelFormat:function(n){return l()(n).format("MMM DD")}})})]},c)}))})})}N.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)(N)},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}]);
|
|
@@ -0,0 +1 @@
|
|
|
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.CONDITIONAL===n||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 h},DA:function(){return p},HX:function(){return b},J8:function(){return v},L8:function(){return c},Lq:function(){return s},M5:function(){return f},Qj:function(){return g},Ut:function(){return T},V4:function(){return R},VZ:function(){return m},dO:function(){return d},f2:function(){return A},iZ:function(){return y},t6:function(){return u},tf:function(){return l}});var r,o,i,c,u,a=t(82394);!function(n){n.CONDITION="condition",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=(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.CONDITIONAL="conditional",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={}));var s,f=[l.CALLBACK,l.CONDITIONAL,l.EXTENSION];!function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(s||(s={}));var p,h=[l.CHART,l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SCRATCHPAD,l.SENSOR,l.MARKDOWN,l.TRANSFORMER],m=[l.DATA_EXPORTER,l.DATA_LOADER],v=[l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],b=[l.DATA_EXPORTER,l.DATA_LOADER,l.DBT,l.TRANSFORMER],g=[l.CHART,l.SCRATCHPAD,l.SENSOR,l.MARKDOWN],y=[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"}(p||(p={}));var A=[l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],R=(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),T=[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),T=t(73942),E=t(43032),O=t(92953),x=t(9518),_=t(44162),C=t(24224),Z=t(28598);function k(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 D(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?k(Object(t),!0).forEach((function(e){(0,i.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function N(n){var e=n.pipeline,t=(0,a.useContext)(x.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,k=(0,a.useMemo)((function(){return D(D({},null===v||void 0===v?void 0:v.pipeline),{},{uuid:l})}),[v,l]),N=A.ZP.pipeline_schedules.pipelines.list(l).data,w=(0,a.useMemo)((function(){return null===N||void 0===N?void 0:N.pipeline_schedules}),[N]),S=(0,a.useMemo)((function(){return(0,C.HK)(null===k||void 0===k?void 0:k.blocks,(function(n){return n.uuid}))||{}}),[k]),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 D(D({},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}),[k]);return(0,Z.jsx)(m.Z,{breadcrumbs:X,monitorType:O.a.BLOCK_RUNTIME,pipeline:k,subheader:(0,Z.jsx)(f.Z,{children:(0,Z.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,Z.jsx)("option",{value:"initial",children:"All"}),w&&w.map((function(n){return(0,Z.jsx)("option",{value:n.id,children:n.name},n.id)}))]})}),children:(0,Z.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,Z.jsxs)(b.Z,{mt:2,children:[(0,Z.jsxs)(f.Z,{alignItems:"center",children:[(0,Z.jsx)(b.Z,{mx:1,children:(0,Z.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:E.ZG,square:!0})}),(0,Z.jsx)(p.Z,{level:4,children:u})]}),(0,Z.jsx)("div",{style:{backgroundColor:R.Z.background.chartBlock,borderRadius:"".concat(T.TR,"px"),marginTop:"8px"},children:(0,Z.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,Z.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,Z.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))}))})})}N.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)(N)},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 O},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 E},wE:function(){return x},J3:function(){return v},We:function(){return l},QV:function(){return T},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 T(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 E(){return"".concat((0,u.mp)(i)," ").concat((0,u.mp)(c))}function O(n){return null===n||void 0===n?void 0:n.toLowerCase().replace(/\W+/g,"_")}function x(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}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8662],{64155:function(e,n,t){"use strict";t.d(n,{Eh:function(){return s},ht:function(){return d},t0:function(){return a}});var r=t(9518),i=t(82386),u=t(1286),o=t(31012),c=t(37391),l=t(49125),s=(l.iI,u.O$+3*l.iI+o.dN),a=r.default.div.withConfig({displayName:"indexstyle__SidekickContainerStyle",componentId:"sc-15ofupc-0"})([""," overflow:auto;position:absolute;width:100%;",""],c.w5,(function(e){return"\n height: calc(100vh - ".concat(i.uX,"px - ").concat(e.heightOffset,"px);\n ")})),d=r.default.div.withConfig({displayName:"indexstyle__PaddingContainerStyle",componentId:"sc-15ofupc-1"})(["padding:","px;",""],2*l.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}))},19395:function(e,n,t){"use strict";t.d(n,{IJ:function(){return a},Vx:function(){return p},eI:function(){return d},gU:function(){return v},tL:function(){return f},vJ:function(){return b}});var r,i,u=t(82394),o=t(92083),c=t.n(o);function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,r=n.completed_at,i=n.started_at,o=n.status,l=null;i&&r&&(l=c()(r).valueOf()-c()(i).valueOf());return s(s({},e),{},(0,u.Z)({},t,{runtime:l,status:o}))}),{})}function d(e){if(!e)return null;var n=new Date(c()(e).valueOf()),t=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());return new Date(t)}function 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"}(i||(i={}));var f=(r={},(0,u.Z)(r,i.DAY,86400),(0,u.Z)(r,i.HOUR,3600),(0,u.Z)(r,i.MINUTE,60),(0,u.Z)(r,i.SECOND,1),r);function v(e){var n=i.SECOND,t=e;return e%86400===0?(t/=86400,n=i.DAY):e%3600===0?(t/=3600,n=i.HOUR):e%60===0&&(t/=60,n=i.MINUTE),{time:t,unit:n}}function b(e,n){return e*f[n]}},47409:function(e,n,t){"use strict";t.d(n,{Az:function(){return c},BF:function(){return o},Do:function(){return s},VO:function(){return u},sZ:function(){return l}});var r,i=t(82394),u=t(66050).V,o=[u.INITIAL,u.RUNNING],c=[u.CANCELLED,u.COMPLETED,u.FAILED],l="__mage_variables",s=(r={},(0,i.Z)(r,u.CANCELLED,"Cancelled"),(0,i.Z)(r,u.COMPLETED,"Done"),(0,i.Z)(r,u.FAILED,"Failed"),(0,i.Z)(r,u.INITIAL,"Ready"),(0,i.Z)(r,u.RUNNING,"Running"),r)},23588:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return V}});var r=t(77837),i=t(75582),u=t(82394),o=t(38860),c=t.n(o),l=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),O=t(47409),g=t(98781),j=t(41788),y=t(86673),m=t(54283),x=t(19711),Z=t(82531),_=t(26304),P=t(32316),w=t(62976),D=t(73752),E=t(82635),k=t(49125),N=t(64155),I=t(56681),S=t(19395),T=t(90211),C=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 r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function A(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?L(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var M={uuid:"Dependency tree"},U={uuid:"Block output"},B=[U,M];var F=t(59920),H=t(96510),G=t(66653);function J(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?J(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):J(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function q(e){var n,t=e.pipeline,r=e.pipelineRun,u=(0,l.useState)(null),o=u[0],c=u[1],j=(0,l.useState)(B[0]),L=j[0],J=j[1],q=(0,l.useState)(null),V=q[0],X=q[1],z=t.uuid,$=Z.ZP.pipelines.detail(z,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,W=(0,l.useMemo)((function(){return Y(Y({},null===$||void 0===$?void 0:$.pipeline),{},{uuid:z})}),[$,z]),K=Z.ZP.pipeline_runs.detail(r.id,{},{refreshInterval:3e3,revalidateOnFocus:!0}).data,Q=(0,l.useMemo)((function(){return(null===K||void 0===K?void 0:K.pipeline_run)||{}}),[K]),ee=Q.block_runs,ne=Q.execution_date,te=Q.id,re=Q.status,ie=(0,s.Db)(Z.ZP.pipeline_runs.useUpdate(te),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(){c(null)},onErrorCallback:function(e,n){return X({errors:n,response:e})}})}}),ue=(0,i.Z)(ie,2),oe=ue[0],ce=ue[1].isLoading,le=Z.ZP.outputs.block_runs.list(null===o||void 0===o?void 0:o.id),se=le.data,ae=le.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,l.useEffect)((function(){o||(null===L||void 0===L?void 0:L.uuid)!==U.uuid||J(M)}),[o,null===L||void 0===L?void 0:L.uuid]);var be=(0,l.useMemo)((function(){return ee||[]}),[Q]),he=((null===pe||void 0===pe?void 0:pe.columns)||[]).slice(0,40),Oe=(null===pe||void 0===pe?void 0:pe.rows)||[],ge=(0,l.useMemo)((function(){return(0,C.jsx)(a.Z,{blockRuns:be,onClickRow:function(e){c((function(n){var t=be[e],r=(null===n||void 0===n?void 0:n.id)!==t.id?t:null;return r&&J((function(e){return e!==U?U:e})),r}))},pipeline:W,selectedRun:o,setErrors:X})}),[be,W,o]),je=(null===W||void 0===W?void 0:W.type)!==g.qL.STREAMING&&re&&re!==O.VO.COMPLETED,ye=((null===W||void 0===W?void 0:W.type)===g.qL.PYTHON||(null===W||void 0===W?void 0:W.type)===g.qL.INTEGRATION)&&o&&O.Az.includes(re);return(0,C.jsxs)(h.Z,{breadcrumbs:[{label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(z,"/runs"),href:"/pipelines/[pipeline]/runs"}},{label:function(){return ne}}],buildSidekick:function(e){return function(e){var n=e.blockRuns,t=e.columns,r=e.dataType,i=e.height,u=e.heightOffset,o=e.loadingData,c=e.pipeline,l=e.renderColumnHeader,s=e.rows,a=e.selectedRun,d=e.selectedTab,p=e.setSelectedTab,f=e.textData,b=A({},(0,_.Z)(e,R));b.blockStatus=(0,S.IJ)(n);var h=(0,C.jsx)(y.Z,{ml:2,children:(0,C.jsx)(x.ZP,{children:"This block run has no output."})}),O=s&&s.length>0?(0,C.jsx)(w.Z,{columnHeaderHeight:l?N.Eh:0,columns:t,height:i-u-90,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,renderColumnHeader:l,rows:s}):h,g=(0,T.Pb)(f)?JSON.stringify(JSON.parse(f),null,2):f,j=f?(0,C.jsx)(y.Z,{ml:2,children:(0,C.jsx)(x.ZP,{monospace:!0,children:(0,C.jsx)("pre",{children:g})})}):h,Z=d&&p;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{style:{position:"fixed",top:"50px"},children:Z&&(0,C.jsx)(y.Z,{py:k.cd,children:(0,C.jsx)(P.Z,{onClickTab:p,selectedTabUUID:null===d||void 0===d?void 0:d.uuid,tabs:a?B:[M]})})}),(0,C.jsxs)("div",{style:{position:"relative",top:"75px"},children:[(!a||M.uuid===(null===d||void 0===d?void 0:d.uuid))&&(0,C.jsx)(D.Z,A(A({},b),{},{height:i,heightOffset:(u||0)+(Z?I.u$:0),pipeline:c})),a&&U.uuid===(null===d||void 0===d?void 0:d.uuid)&&(0,C.jsxs)(C.Fragment,{children:[o&&(0,C.jsx)(y.Z,{mt:2,children:(0,C.jsx)(v.Z,{alignItems:"center",fullWidth:!0,justifyContent:"center",children:(0,C.jsx)(m.Z,{color:"white",large:!0})})}),!o&&r===E.Gi.TABLE&&O,!o&&r!==E.Gi.TABLE&&j]})]})]})}(Y(Y({},e),{},{blockRuns:be,columns:he,dataType:ve,loadingData:ae,rows:Oe,selectedRun:o,selectedTab:L,setSelectedTab:J,showDynamicBlocks:!0,textData:fe}))},errors:V,pageName:F.M.RUNS,pipeline:W,setErrors:X,subheader:(je||ye)&&(0,C.jsxs)(v.Z,{alignItems:"center",children:[O.BF.includes(re)&&(0,C.jsxs)(f.Z,{children:[(0,C.jsx)(x.ZP,{bold:!0,default:!0,large:!0,children:"Pipeline is running"}),(0,C.jsx)(y.Z,{mr:1}),(0,C.jsx)(m.Z,{inverted:!0}),(0,C.jsx)(y.Z,{mr:2})]}),je&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(d.Z,{danger:!0,loading:ce,onClick:function(e){(0,G.j)(e),oe({pipeline_run:{pipeline_run_action:"retry_blocks"}})},outline:!0,children:"Retry incomplete blocks"}),(0,C.jsx)(y.Z,{mr:2})]}),ye&&(0,C.jsxs)(d.Z,{loading:ce,onClick:function(e){(0,G.j)(e),oe({pipeline_run:{from_block_uuid:o.block_uuid,pipeline_run_action:"retry_blocks"}})},outline:!0,primary:!0,children:["Retry from selected block (",o.block_uuid,")"]})]}),title:function(e){var n=e.name;return"".concat(n," runs")},uuid:"".concat(F.M.RUNS,"_").concat(z,"_").concat(te),children:[(0,C.jsx)(y.Z,{mt:k.cd,px:k.cd,children:(0,C.jsx)(b.Z,{level:5,children:"Block runs"})}),(0,C.jsx)(p.Z,{light:!0,mt:k.cd,short:!0}),ge]})}q.getInitialProps=function(){var e=(0,r.Z)(c().mark((function e(n){var t,r,i;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query,r=t.pipeline,i=t.run,e.abrupt("return",{pipeline:{uuid:r},pipelineRun:{id:i}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var V=(0,j.Z)(q)},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,2786,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-69d63c14abf8cf68.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[244],{59739:function(e,n,t){"use strict";var i=t(56669);function r(){}function u(){}u.resetWarningCache=r,e.exports=function(){function e(e,n,t,r,u,o){if(o!==i){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:u,resetWarningCache:r};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},32316:function(e,n,t){"use strict";t.d(n,{Z:function(){return g}});var i=t(82684),r=t(60328),u=t(67971),o=t(882),l=t(86673),s=t(19711),a=t(99994),c=t(9518),d=t(49125),p=t(37391),f=c.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,c=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 c=t.Icon,f=t.IconSelected,m=t.label,x=t.uuid,j=x===g,_=j&&f||c,y=m?m():x,Z=(0,h.jsxs)(u.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:y})]});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)(o.Z,{backgroundGradient:a.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:Z},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:Z})},"button-tab-".concat(x)))})),n}),[p,g,b,m]),j=(0,h.jsx)(u.Z,{alignItems:"center",children:x});return t?j:(0,h.jsx)(f,{allowScroll:n,noPadding:c,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),u=t(82394),o=t(38860),l=t.n(o),s=t(82684),a=t(83455),c=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 y=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"})})]})]})},Z=t(47409),C=t(97496),w=t(41788),P=t(55378),O=t(86673),k=t(54283),R=t(82531),S=t(56681),H=t(66166),I=t(10503),E=t(33766),M=t(59920),V=t(98781),T=t(66050),N=t(49125),U=t(7715),D=t(96510),z=t(59e3);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 F(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?L(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var A={Icon:I.mR,IconSelected:y,label:function(){return"Pipeline runs"},uuid:"pipeline_runs"},B={Icon:I.Re,IconSelected:p,label:function(){return"Block runs"},uuid:"block_runs"},G=[A,B];function W(e){var n,t,i=e.pipeline,u=(0,c.useRouter)(),o=(0,s.useState)(null),l=o[0],p=o[1],b=(0,s.useState)(A),m=b[0],y=b[1],w=(0,s.useState)(S.G7[0]),I=w[0],L=w[1],W=(0,s.useState)({}),q=W[0],X=W[1],Y=(0,s.useState)(null),K=Y[0],Q=Y[1],J=(0,s.useMemo)((function(){return A.uuid===(null===m||void 0===m?void 0:m.uuid)}),[null===m||void 0===m?void 0:m.uuid]),$=i.uuid,ee=R.ZP.pipelines.detail($,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,ne=(0,s.useMemo)((function(){return F(F({},null===ee||void 0===ee?void 0:ee.pipeline),{},{uuid:$})}),[ee,$]),te=(0,s.useState)(),ie=te[0],re=te[1],ue=(0,z.iV)(),oe=(0,H.Z)(ue),le=null!==ue&&void 0!==ue&&ue.page?ue.page:0;(0,s.useEffect)((function(){var e=ue.pipeline_run_id,n=ue.status;if(!(0,U.Xy)(ue,oe)){var t=F(F({},oe),ue);e?t.pipeline_run_id=e:t.pipeline_uuid=$,n?t.status=n:delete t.status,Q(t),X({})}}),[$,ue,oe]);var se={_limit:30,_offset:30*le,pipeline_uuid:$},ae=(0,U.gR)(F(F({},K),se),["tab","page"]);J&&(ae=(0,U.gR)(ae,[E.O2]));var ce=R.ZP.block_runs.list(ae,{},{pauseFetch:!K}).data,de=(0,s.useMemo)((function(){return(null===ce||void 0===ce?void 0:ce.block_runs)||[]}),[ce]),pe=F({},se);null!==ue&&void 0!==ue&&ue.status&&(pe.status=ue.status),J||(pe=(0,U.gR)(pe,[E.O2]));var fe=R.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 J?(null===ve||void 0===ve||null===(e=ve.metadata)||void 0===e?void 0:e.count)||[]:(null===ce||void 0===ce||null===(n=ce.metadata)||void 0===n?void 0:n.count)||[]}),[null===ce||void 0===ce||null===(n=ce.metadata)||void 0===n?void 0:n.count,null===ve||void 0===ve||null===(t=ve.metadata)||void 0===t?void 0:t.count,J]),me=(0,s.useMemo)((function(){return ge.some((function(e){var n=e.status;return n===T.V.INITIAL||n===T.V.RUNNING}))}),[ge]),xe=(0,s.useMemo)((function(){return Object.values(q||{}).filter((function(e){return null!==e}))}),[q]),je=(0,a.Db)(R.ZP.pipelines.useUpdate($),{onSuccess:function(e){return(0,D.wD)(e,{callback:function(){X({}),he()},onErrorCallback:function(e,n){return p({errors:n,response:e})}})}}),_e=(0,r.Z)(je,2),ye=_e[0],Ze=_e[1].isLoading,Ce=(0,H.Z)(m);(0,s.useEffect)((function(){var e=ue.tab;e&&y(G.find((function(n){return n.uuid===e})))}),[ue,m,Ce]);var we=(0,s.useMemo)((function(){return(0,d.jsx)(O.Z,{p:2,children:(0,d.jsx)(j.Z,{maxPages:9,onUpdate:function(e){var n=Number(e),t=F(F({},ue),{},{page:n>=0?n:0});u.push("/pipelines/[pipeline]/runs","/pipelines/".concat($,"/runs?").concat((0,z.uM)(t)))},page:Number(le),totalPages:Math.ceil(be/30)})})}),[le,$,ue,u,be]),Pe=(0,s.useMemo)((function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(C.Z,{allowBulkSelect:(null===ne||void 0===ne?void 0:ne.type)!==V.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:X}),we]})}),[he,we,null===ne||void 0===ne?void 0:ne.type,ge,ie,q]),Oe=(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:J&&!ie,breadcrumbs:[{label:function(){return"Runs"}}],buildSidekick:J?function(e){return(0,S.ZP)(F(F({},e),{},{selectedRun:ie,selectedTab:I,setSelectedTab:L}))}:function(e){return(0,S.ZP)(e)},errors:l,pageName:M.M.RUNS,pipeline:ne,setErrors:p,title:function(e){var n=e.name;return"".concat(n," runs")},uuid:"".concat(M.M.RUNS,"_").concat($),children:[(0,d.jsx)(x,{children:(0,d.jsx)(O.Z,{py:1,children:(0,d.jsxs)(g.Z,{alignItems:"center",children:[me&&J&&(0,d.jsx)(O.Z,{pl:2,children:(0,d.jsx)(v.Z,{danger:!0,loading:Ze,onClick:function(){ye({pipeline:{status:T.V.CANCELLED}})},outline:!0,children:"Cancel running pipeline runs"})}),xe.length>0&&(0,d.jsx)(O.Z,{pl:2,children:(0,d.jsxs)(v.Z,{loading:Ze,onClick:function(){ye({pipeline:{pipeline_runs:xe,status:V.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}),J&&(0,d.jsxs)(P.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?(Q(null),(0,E.u7)({tab:A.uuid},{replaceParams:!0})):(0,E.u7)({page:0,status:e.target.value})},paddingRight:4*N.iI,placeholder:"Select run status",value:null===K||void 0===K?void 0:K.status,children:[(0,d.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(T.V).map((function(e){return(0,d.jsx)("option",{value:e,children:Z.Do[e]},e)}))]})]})})}),ve||ce?(0,d.jsxs)(d.Fragment,{children:[J&&Pe,B.uuid===(null===m||void 0===m?void 0:m.uuid)&&Oe]}):(0,d.jsx)(O.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,2786,9774,2888,179],(function(){return n=79897,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7803],{66050:function(n,e,r){"use strict";var t;r.d(e,{V:function(){return t}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running",n.UPSTREAM_FAILED="upstream_failed",n.CONDITION_FAILED="condition_failed"}(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),_=r(2005),y=r(49125),I=r(31012),O=Z.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-15svh8z-0"})(["border-radius:","px;margin:","px;overflow:hidden;"," "," "," "," "," "," &:hover{"," "," "," "," ","}"],g.n_,y.cd*y.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,I.iD,g.D7,_.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 F(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 U=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]),_=(0,l.useMemo)((function(){return A(r)}),[r]),I=_.errors,k=_.records,w=_.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,U.jsx)(O,z(z({},C),{},{onClick:function(){return e(t?null:r.id)},selected:t,children:(0,U.jsxs)(f.Z,{fullHeight:!0,justifyContent:"space-between",children:[(0,U.jsx)(P,z({},C)),(0,U.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,U.jsxs)(p.Z,{ml:3,py:3,children:[(0,U.jsx)(v.Z,{bold:!0,level:5,monospace:!0,children:o}),(0,U.jsx)(p.Z,{fullWidth:!1,mt:2,children:(0,U.jsx)(N,z(z({},C),{},{children:(0,U.jsxs)(f.Z,{alignItems:"center",children:[L&&(0,U.jsx)(x.Jr,{inverted:!0,size:2*y.iI}),[m.VO.INITIAL,m.VO.RUNNING].includes(i)&&(0,U.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,U.jsxs)(U.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(I).length>=1&&(0,U.jsx)(p.Z,{mt:1,children:Object.entries(I).map((function(n,e){var r=(0,s.Z)(n,2),t=r[0];r[1];return(0,U.jsxs)(j.ZP,{monospace:!0,muted:!0,small:!0,children:[t," stream failed"]},t)}))})]})}),(0,U.jsxs)(d.Z,{flex:1,children:[(0,U.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,U.jsxs)(p.Z,{ml:3,py:3,children:[(0,U.jsxs)(p.Z,{mb:1,children:[(0,U.jsx)(j.ZP,{bold:!0,muted:!0,small:!0,children:"Rows processed"}),(0,U.jsx)(j.ZP,{monospace:!0,children:w>=1?(0,E.x6)(w):"-"})]}),(0,U.jsxs)(p.Z,{mb:1,children:[(0,U.jsx)(j.ZP,{bold:!0,muted:!0,small:!0,children:"Rows remaining"}),(0,U.jsx)(j.ZP,{monospace:!0,children:k>=1&&k>=w?(0,E.x6)(k-w):"-"})]}),m.VO.RUNNING!==i&&(0,U.jsxs)(p.Z,{mb:1,children:[(0,U.jsx)(j.ZP,{bold:!0,muted:!0,small:!0,children:"Runtime"}),(0,U.jsx)(j.ZP,{monospace:!0,children:S})]})]})}),(0,U.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,U.jsxs)(p.Z,{ml:3,py:3,children:[(0,U.jsxs)(p.Z,{mb:1,children:[(0,U.jsx)(j.ZP,{bold:!0,muted:!0,small:!0,children:"Source"}),(0,U.jsx)(j.ZP,{monospace:!0,children:Z||"-"})]}),(0,U.jsxs)(p.Z,{mb:1,children:[(0,U.jsx)(j.ZP,{bold:!0,muted:!0,small:!0,children:"Destination"}),(0,U.jsx)(j.ZP,{monospace:!0,children:a||"-"})]}),(0,U.jsxs)(p.Z,{mb:1,children:[(0,U.jsx)(j.ZP,{bold:!0,muted:!0,small:!0,children:"Streams"}),(0,U.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)*y.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]),_=(0,l.useMemo)((function(){return t?Z[t]:null}),[Z,t]),I=(0,l.useMemo)((function(){if(t&&Z){var n=Z[t]||{},e=n.completed,o=n.total;if(o>=1)return e/o}else if(r)return T(r);return 0}),[_,r,t]),O=(0,l.useMemo)((function(){return(0,U.jsx)(f.Z,{children:(0,C.w6)(101).map((function(n,e){return(0,U.jsx)(K,{even:e%2===0,fill:I>0&&Math.round(100*I)>=e},e)}))})}),[I]),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=_||{},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,_,r,t]),N=(0,l.useMemo)((function(){return r&&t?F(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,U.jsxs)("div",{children:[(0,U.jsx)(j.ZP,{bold:!0,large:!0,muted:!0,children:e}),(0,U.jsx)(j.ZP,{headline:!0,children:r})]},e)}))}),[B,en,Y,$,nn,P,w,status]),tn=(0,l.useMemo)((function(){if(!r)return(0,U.jsx)("div",{});var n=S(r);return(0,U.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=F(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,U.jsx)(j.ZP,{danger:a,default:!a,monospace:!0,children:n},"stream"),(0,U.jsx)(j.ZP,{default:!0,monospace:!0,children:c?c.split(".")[0]:"-"},"started_at"),(0,U.jsx)(j.ZP,{default:!0,monospace:!0,children:t?t.split(".")[0]:"-"},"completed_at"),(0,U.jsx)(j.ZP,{default:!0,children:[L.V.INITIAL,L.V.RUNNING].includes(u)?"-":s},"runtime"),(0,U.jsxs)("div",{children:[i&&(0,U.jsx)(x.Jr,{default:!0,size:2*y.iI}),!i&&(0,U.jsx)(f.Z,{children:(0,C.w6)(51).map((function(n,e){return(0,U.jsx)(K,{fill:l>0&&Math.round(50*l)>=e,even:e%2===0,small:!0},e)}))})]},"progress"),(0,U.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,U.jsx)(x.B4,{default:!0,size:2*y.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,U.jsx)(j.ZP,{bold:!0,monospace:!0,muted:!0,small:!0,children:n},n)];[f,v].forEach((function(r,t){r&&e.push((0,U.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,U.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,U.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,U.jsxs)(j.ZP,{monospace:!0,small:!0,textOverflow:!0,whiteSpaceNormal:!0,wordBreak:!0,children:[i&&(0,U.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,U.jsx)(q.Z,{columnFlex:[null,1,1],columns:m,rows:v.map((function(n){return n.map((function(n){return(0,U.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,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(p.Z,{p:3,children:[t&&(0,U.jsx)(p.Z,{mb:3,children:(0,U.jsxs)(f.Z,{alignItems:"center",children:[(0,U.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,U.jsxs)(f.Z,{alignItems:"center",children:[(0,U.jsx)(x.Xd,{default:!0,size:1.5*y.iI}),(0,U.jsx)(p.Z,{mr:1}),(0,U.jsx)(j.ZP,{default:!0,children:"Syncs"})]})}),(0,U.jsx)(p.Z,{mx:1,children:(0,U.jsx)(j.ZP,{default:!0,monospace:!0,children:"/"})}),(0,U.jsx)(j.ZP,{bold:!0,monospace:!0,children:t})]})}),(0,U.jsxs)(f.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,U.jsx)(p.Z,{mr:2,my:1,children:(0,U.jsx)(v.Z,{level:5,muted:!r,children:k})}),r&&(0,U.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,U.jsx)(p.Z,{mt:2,children:O}),r&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(p.Z,{mt:3,children:(0,U.jsxs)(f.Z,{justifyContent:"space-between",children:[(0,U.jsxs)("div",{children:[(0,U.jsx)(j.ZP,{bold:!0,large:!0,muted:!0,children:"Runtime"}),(0,U.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,U.jsxs)(p.Z,{mt:3,children:[(0,U.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,U.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,U.jsxs)("div",{children:[(0,U.jsx)(p.Z,{mb:c||(null===l||void 0===l?void 0:l.length)>=1?2:0,children:(0,U.jsxs)(j.ZP,{monospace:!0,preWrap:!0,textOverflow:!0,children:[o,!!r&&(0,U.jsxs)(j.ZP,{inline:!0,monospace:!0,muted:!0,children:["\xa0(",r,")"]}),": ",(0,U.jsx)(j.ZP,{default:!0,inline:!0,monospace:!0,children:u&&(0,U.jsx)(H(),{children:u})})]})}),(0,U.jsx)(j.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:c}),l.map((function(n){return(0,U.jsx)(j.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:n},n)}))]},"".concat(o,"-").concat(r))}))},o)}))]})]})]}),r&&!t&&(0,U.jsx)(p.Z,{my:3,children:tn}),r&&t&&(0,U.jsxs)(U.Fragment,{children:[cn&&(0,U.jsx)(p.Z,{my:3,children:(0,U.jsxs)(p.Z,{px:3,children:[(0,U.jsx)(v.Z,{level:5,children:"Table name"}),(0,U.jsx)(p.Z,{mt:1,children:(0,U.jsx)(j.ZP,{default:!0,monospace:!0,children:cn})})]})}),on&&(0,U.jsxs)(p.Z,{my:3,children:[(0,U.jsx)(p.Z,{px:3,children:(0,U.jsx)(v.Z,{level:5,children:"Bookmarks"})}),(0,U.jsx)(p.Z,{px:1,children:on})]}),ln&&(0,U.jsxs)(p.Z,{my:3,children:[(0,U.jsx)(p.Z,{px:3,children:(0,U.jsx)(v.Z,{level:5,children:"Sample row"})}),(0,U.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,U.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,U.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,U.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}]);
|
|
@@ -0,0 +1 @@
|
|
|
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,E=e.breadcrumbs,k=e.children,S=e.errors,T=e.headerMenuItems,A=e.headerOffset,I=e.mainContainerHeader,R=e.navigationItems,D=e.setErrors,_=e.subheaderChildren,N=e.title,M=e.uuid,L=(0,O.i)().width,H="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)(H,f)),V=W[0],z=W[1],U=(0,o.useState)(!1),F=U[0],K=U[1],G=(0,o.useState)(P?Math.max((0,j.U2)(B,C),13*y.iI):null),X=G[0],q=G[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=[];E?ie.push.apply(ie,(0,r.Z)(E)):(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,L]),(0,o.useEffect)((function(){F||(0,j.t8)(H,V)}),[i,F,V,H]),(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:K,setAfterWidth:z,setBeforeMousedownActive:$,setBeforeWidth:q,children:[_&&(0,p.jsx)(h,{children:_}),k]})})]}),S&&(0,p.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,p.jsx)(u.Z,w(w({},S),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}},86422:function(e,n,t){"use strict";t.d(n,{$W:function(){return h},DA:function(){return f},HX:function(){return g},J8:function(){return b},L8:function(){return c},Lq:function(){return d},M5:function(){return p},Qj:function(){return v},Ut:function(){return O},V4:function(){return j},VZ:function(){return m},dO:function(){return s},f2:function(){return y},iZ:function(){return x},t6:function(){return u},tf:function(){return a}});var i,r,o,c,u,l=t(82394);!function(e){e.CONDITION="condition",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=(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.CONDITIONAL="conditional",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={}));var d,p=[a.CALLBACK,a.CONDITIONAL,a.EXTENSION];!function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(d||(d={}));var f,h=[a.CHART,a.CUSTOM,a.DATA_EXPORTER,a.DATA_LOADER,a.SCRATCHPAD,a.SENSOR,a.MARKDOWN,a.TRANSFORMER],m=[a.DATA_EXPORTER,a.DATA_LOADER],b=[a.DATA_EXPORTER,a.DATA_LOADER,a.TRANSFORMER],g=[a.DATA_EXPORTER,a.DATA_LOADER,a.DBT,a.TRANSFORMER],v=[a.CHART,a.SCRATCHPAD,a.SENSOR,a.MARKDOWN],x=[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"}(f||(f={}));var y=[a.CUSTOM,a.DATA_EXPORTER,a.DATA_LOADER,a.TRANSFORMER],j=(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),O=[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,E=e.noPadding,k=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:k,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:E,overflowVisible:k,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 "})),E=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 ")})),k=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),D=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],C),_=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=_:0===Number(o)?n=k: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=D);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)(E,{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 ke}});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),E=t(98781),k=t(41788),S=t(54283),T=t(58180),A=t(70902),I=t(18283),R=t(47999),D=t(30264),_=t(62609),N=t(9518),M=t(23831),L=t(73942),H=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;"," "," "," "," ",""],L.n_,Y,(function(e){return"\n background-color: ".concat((e.theme||M.Z).background.panel,";\n border: ").concat(L.mP,"px ").concat(L.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;"," ",""],L.n_,W,(function(e){return"\n background-color: ".concat((e.theme||M.Z).background.content,";\n border: ").concat(L.YF,"px ").concat(L.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;"," ",""],H.w5,(function(e){return"\n border-right: ".concat(L.YF,"px ").concat(L.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;",""],H.w5),K=(0,N.css)(["display:flex;align-items:center;justify-content:space-between;padding:","px ","px;"],B.iI,2*B.iI),G=N.default.div.withConfig({displayName:"indexstyle__OptionStyle",componentId:"sc-18n432u-4"})([""," padding-top:","px;padding-bottom:","px;&:hover{cursor:pointer;","}",""],K,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"})([""," ",""],K,(function(e){return"\n border-bottom: ".concat(L.YF,"px ").concat(L.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],E=P[1],k=(0,d.useState)(g),S=k[0],T=k[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,D=void 0===I?0:I,_=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:D-5,children:[(0,Z.jsxs)(z,{compact:u,children:[(0,Z.jsx)(m.Z,{flex:"1",children:(0,Z.jsx)(U,{children:_.map((function(e){return(0,Z.jsxs)(G,{highlighted:C===e,onMouseEnter:function(){return E(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),E=(0,d.useRef)(null),k=(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],H=(0,d.useState)(!1),Y=H[0],W=H[1],V=(0,d.useState)(!1),z=V[0],U=V[1],F=(0,d.useState)(!1),K=F[0],G=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 G(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,Ee=Pe.isLoading,ke=Pe.item,Se=Pe.onDelete,Te=f||{},Ae=Te.placeholder,Ie=Te.onChange,Re=Te.value,De=(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]),_e=n||{},Ne=_e.label,Me=_e.menuItems,Le=_e.isLoading,He=(0,d.useMemo)((function(){return(0,Z.jsx)(D.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:Le,onClick:function(e){e.preventDefault(),M((function(e){return!e}))},uuid:"Table/Toolbar/AddButton",children:Ne}))})}),[Ne,Me,N,ee,Le]),Be=(0,d.useMemo)((function(){return(0,ae.dw)(De)}),[De]),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:De,parentRef:E,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,De,c,Be,s,P]),We=u||{},Ve=We.groupByLabel,ze=We.menuItems,Ue=(0,d.useMemo)((function(){return(0,Z.jsx)(D.Z,{disableKeyboardShortcuts:!0,items:ze,onClickCallback:fe,onClickOutside:fe,open:z,parentRef:k,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)(D.Z,{disableKeyboardShortcuts:!0,items:l,onClickCallback:he,onClickOutside:he,open:K,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 G((function(e){return!e}))},smallIcon:!0,uuid:"Table/Toolbar/MoreActionsButton"})}))})}),[he,$,K,l]);return(0,Z.jsxs)(b.Z,{alignItems:"center",children:[He,(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)(_.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(ke),children:(0,Z.jsx)(g.ZP,{Icon:!Ee&&q.rF,bold:!0,disabled:$,greyBorder:!0,loading:Ee,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)(_.Z,{danger:!0,onCancel:me,onClick:function(){Se(v),me(),j(null)},subtitle:Ce,title:"Are you sure you want to delete the ".concat(ke," ").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:L.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:L.BG,iconOnly:!0,noBackground:!0,noBorder:!0,outline:!0,padding:"4px"};function Ee(){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],k=j[1],I=(0,d.useState)(null),R=I[0],D=I[1],_=(0,ye.iV)(),N=(0,ye.DQ)(_,[E.$1.STATUS,E.$1.TYPE]),L=null===_||void 0===_?void 0:_[E.$1.GROUP],H=he.ZP.pipelines.list(Pe(Pe({},N),{},{include_schedules:1})),Y=H.data,W=H.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,K=(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,D)}),[Y]);var G=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 D({errors:n,response:e})}})}})},X=G((function(n){return e.push("/pipelines/[pipeline]/edit","/pipelines/".concat(n,"/edit"))})),$=(0,r.Z)(X,2),ee=$[0],ne=$[1].isLoading,te=G((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;k((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;k((function(e){return Pe(Pe({},e),{},(0,o.Z)({},i,!1))})),D({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 D({errors:n,response:e})}})}}),de=(0,r.Z)(se,2),pe=de[0],we=de[1].isLoading,Ee=(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,k((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"}),ke=(0,r.Z)(Ee,2),Se=ke[0],Te=ke[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:E.qL.INTEGRATION}})},uuid:"Pipelines/NewPipelineMenu/integration"},{label:function(){return"Streaming"},onClick:function(){return ee({pipeline:{name:(0,J.Y6)(),type:E.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(E.QK),type:Object.values(E.qL)},filterValueLabelMapping:E.G7,groupButtonProps:{groupByLabel:L,menuItems:[{beforeIcon:(0,Z.jsx)(q.Jr,{fill:L===E.r0.STATUS?M.Z.content.default:M.Z.interactive.transparent,size:2*B.iI}),label:function(){return(0,J.kC)(E.r0.STATUS)},onClick:function(){return(0,Q.u7)((0,o.Z)({},E.$1.GROUP,L===E.r0.STATUS?null:E.r0.STATUS),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Status"},{beforeIcon:(0,Z.jsx)(q.Jr,{fill:L===E.r0.TYPE?M.Z.content.default:M.Z.interactive.transparent,size:2*B.iI}),label:function(){return(0,J.kC)(E.r0.TYPE)},onClick:function(){return(0,Q.u7)((0,o.Z)({},E.$1.GROUP,L===E.r0.TYPE?null:E.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,L,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],De=(0,s.Db)(he.ZP.projects.useUpdate(null===K||void 0===K?void 0:K.name),{onSuccess:function(e){return(0,xe.wD)(e,{callback:function(){F()},onErrorCallback:function(e,n){return Re({errors:n,response:e})}})}}),_e=(0,r.Z)(De,2),Ne=_e[0],Me=_e[1].isLoading,Le=(0,d.useCallback)((function(e){return Ne({project:e})}),[Ne]),He=(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?")&&Le({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 Le({help_improve_mage:!0}).then((function(){return We()}))},secondary:!0,children:"Close"})]})}),{},[K],{background:!0,hideCallback:function(){Le({help_improve_mage:!0})},uuid:"help_mage"}),Be=(0,r.Z)(He,2),Ye=Be[0],We=Be[1];return(0,d.useEffect)((function(){K&&null===(null===K||void 0===K?void 0:K.help_improve_mage)&&Ye()}),[K,Ye]),(0,Z.jsx)(h.Z,{errors:R,setErrors:D,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:!!L,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)(E.r0.STATUS)},{uuid:"Name"},{uuid:"Description"},{uuid:(0,J.kC)(E.r0.TYPE)},{uuid:"Blocks"},{uuid:"Triggers"},{center:!0,uuid:"Actions"}],grouping:{column:(0,J.kC)(L),columnIndex:L===E.r0.STATUS?1:L===E.r0.TYPE?4:null,values:L===E.r0.STATUS?Object.values(E.QK).map((function(e){return(0,J.J3)(e)})):L===E.r0.TYPE?Object.values(E.qL).map((function(e){return E.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),k((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:E.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})})})}Ee.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 ke=(0,k.Z)(Ee)},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}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
self.__BUILD_MANIFEST=function(s,e,i,n,p,c,t,a,l,u,r,g,k,f,b,d,h,j,o,_,m,E,w,O,A,B,L,D,T){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,p,a,_,A,"static/chunks/pages/files-62c95766fcf47143.js"],"/manage":[s,n,o,e,i,p,_,"static/chunks/pages/manage-88c03376d807012e.js"],"/manage/users":[s,n,e,i,p,"static/chunks/pages/manage/users-430a971c087e6de4.js"],"/manage/users/[user]":[s,n,e,i,p,"static/chunks/pages/manage/users/[user]-8b2482416f3958b0.js"],"/pipeline-runs":[s,n,e,i,p,b,"static/chunks/pages/pipeline-runs-915825c19bf42fa1.js"],"/pipelines":[s,n,e,i,p,"static/chunks/pages/pipelines-549f4708f2912a7a.js"],"/pipelines/[pipeline]":["static/chunks/pages/pipelines/[pipeline]-ca9457e1a6bced4b.js"],"/pipelines/[pipeline]/backfills":[s,n,e,i,p,c,"static/chunks/pages/pipelines/[pipeline]/backfills-bf2d83dabe1bd25a.js"],"/pipelines/[pipeline]/backfills/[...slug]":[s,n,t,l,u,g,k,m,e,i,p,c,a,r,f,b,"static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-6342d4f39d7f2b5c.js"],"/pipelines/[pipeline]/edit":[B,s,n,t,l,u,g,k,d,E,j,o,"static/chunks/7107-b89772bb2a2669df.js",e,i,p,a,r,f,_,w,A,L,"static/chunks/pages/pipelines/[pipeline]/edit-f0940870ff5a17f6.js"],"/pipelines/[pipeline]/logs":[s,n,l,E,m,e,i,p,c,w,"static/chunks/pages/pipelines/[pipeline]/logs-8ee12ce8362ed576.js"],"/pipelines/[pipeline]/monitors":[s,n,t,d,e,i,c,D,"static/chunks/pages/pipelines/[pipeline]/monitors-092f364100995ba6.js"],"/pipelines/[pipeline]/monitors/block-runs":[s,n,t,d,e,i,c,D,"static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-a64f7a0aba0f481d.js"],"/pipelines/[pipeline]/monitors/block-runtime":[B,s,n,t,d,"static/chunks/9832-f97919376d52e3bf.js",e,i,c,L,"static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-3a3a115ab1a86e2f.js"],"/pipelines/[pipeline]/runs":[s,n,l,u,g,e,i,p,c,a,r,b,T,"static/chunks/pages/pipelines/[pipeline]/runs-69d63c14abf8cf68.js"],"/pipelines/[pipeline]/runs/[run]":[s,n,t,l,u,g,k,E,e,i,p,c,a,r,f,w,T,"static/chunks/pages/pipelines/[pipeline]/runs/[run]-160881dab5ef66d8.js"],"/pipelines/[pipeline]/settings":[s,n,e,i,c,"static/chunks/pages/pipelines/[pipeline]/settings-55748e7fcf738d91.js"],"/pipelines/[pipeline]/syncs":[s,n,e,i,p,c,"static/chunks/pages/pipelines/[pipeline]/syncs-6092226e191dd720.js"],"/pipelines/[pipeline]/triggers":[s,n,t,l,u,k,e,i,p,c,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,p,c,a,r,f,b,"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,p,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,p,"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-321c8c08a2b05c19.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-3bd2a8c979d6d820.js","static/chunks/4804-01a10103ebe26ca8.js","static/chunks/1774-aa51ef1da7217ff9.js","static/chunks/3752-8f15fe0ca9c23cf4.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-c1a62e69cd8e14d5.js","static/chunks/29107295-989a0767a635d9d5.js","static/chunks/8735-1a3d39946add4aea.js","static/chunks/7400-e5e39ae07de554b2.js","static/chunks/2786-2b3ad2cf216fae42.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=0" name="viewport"/><title>Files | Mage</title><meta name="next-head-count" content="3"/><link href="/favicon.ico" rel="icon"/><link rel="preload" href="/_next/static/css/d1e8e64d0b07af2f.css" as="style"/><link rel="stylesheet" href="/_next/static/css/d1e8e64d0b07af2f.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/_next/static/chunks/webpack-bc5e4eb2c1ff587c.js" defer=""></script><script src="/_next/static/chunks/framework-7c365855dab1bf41.js" defer=""></script><script src="/_next/static/chunks/main-bb0dd5375146d7fd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=0" name="viewport"/><title>Files | Mage</title><meta name="next-head-count" content="3"/><link href="/favicon.ico" rel="icon"/><link rel="preload" href="/_next/static/css/d1e8e64d0b07af2f.css" as="style"/><link rel="stylesheet" href="/_next/static/css/d1e8e64d0b07af2f.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/_next/static/chunks/webpack-bc5e4eb2c1ff587c.js" defer=""></script><script src="/_next/static/chunks/framework-7c365855dab1bf41.js" defer=""></script><script src="/_next/static/chunks/main-bb0dd5375146d7fd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-8aaee96edc252aa3.js" defer=""></script><script src="/_next/static/chunks/844-1e171f361e63b36d.js" defer=""></script><script src="/_next/static/chunks/7607-324c3a1e4e7d0628.js" defer=""></script><script src="/_next/static/chunks/7011-81dd8269c4806d26.js" defer=""></script><script src="/_next/static/chunks/8789-4f858e520d46973b.js" defer=""></script><script src="/_next/static/chunks/1424-321c8c08a2b05c19.js" defer=""></script><script src="/_next/static/chunks/1005-5c88ae13680d7023.js" defer=""></script><script src="/_next/static/chunks/8180-0c53312021451bb7.js" defer=""></script><script src="/_next/static/chunks/3714-3bd2a8c979d6d820.js" defer=""></script><script src="/_next/static/chunks/9270-e35a5eb3dae4c3ca.js" defer=""></script><script src="/_next/static/chunks/4476-c1a62e69cd8e14d5.js" defer=""></script><script src="/_next/static/chunks/pages/files-62c95766fcf47143.js" defer=""></script><script src="/_next/static/zlCBBK90aKYZtPlYLj9_T/_buildManifest.js" defer=""></script><script src="/_next/static/zlCBBK90aKYZtPlYLj9_T/_ssgManifest.js" defer=""></script><script src="/_next/static/zlCBBK90aKYZtPlYLj9_T/_middlewareManifest.js" defer=""></script><style data-styled="" data-styled-version="5.3.6">html{-webkit-box-sizing:border-box;box-sizing:border-box;-ms-overflow-style:scrollbar;}/*!sc*/
|
|
2
2
|
*,*::before,*::after{-webkit-box-sizing:inherit;box-sizing:inherit;}/*!sc*/
|
|
3
3
|
data-styled.g4[id="sc-global-czSCUT1"]{content:"sc-global-czSCUT1,"}/*!sc*/
|
|
4
4
|
.kOVcuR .Toastify__toast-container{margin-top:24px;padding:0 !important;width:500px !important;}/*!sc*/
|
|
@@ -21,4 +21,4 @@ data-styled.g72[id="indexstyle__ContainerStyle-sc-ecogjt-0"]{content:"ijwRXz,"}/
|
|
|
21
21
|
@-webkit-keyframes animate-in{0%{width:168px;}100%{width:272px;}}/*!sc*/
|
|
22
22
|
@keyframes animate-in{0%{width:168px;}100%{width:272px;}}/*!sc*/
|
|
23
23
|
data-styled.g73[id="indexstyle__VerticalNavigationStyleComponent-sc-ecogjt-1"]{content:"idxFus,"}/*!sc*/
|
|
24
|
-
</style></head><body><div id="__next"><div class="" style="position:fixed;top:0;left:0;height:2px;background:transparent;z-index:99999999999;width:100%"><div class="" style="height:100%;background:#FF144D;transition:all 500ms ease;width:0%"><div style="box-shadow:0 0 10px #FF144D, 0 0 10px #FF144D;width:5%;opacity:1;position:absolute;height:100%;transition:all 500ms ease;transform:rotate(3deg) translate(0px, -4px);left:-10rem"></div></div></div><div class="indexstyle__HeaderStyle-sc-1bk8irg-0 gbXfes"><div></div></div><div class="indexstyle__ContainerStyle-sc-ecogjt-0 ijwRXz"><div class="indexstyle__VerticalNavigationStyleComponent-sc-ecogjt-1 idxFus"><div class="Spacing__SpacingStyle-sc-1mpmtgj-0 hDBiHu"><div></div></div></div><div class="Flex-sc-sgfnl9-0 dKQluW"><div></div></div></div><div></div><div></div><div></div><div class="ToastWrapper-sc-1a33ph1-0 kOVcuR"><div class="Toastify"></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"auth":{"decodedToken":{"expires":0,"token":null}}},"currentTheme":{"accent":{"alert":"#F6540B","blue":"#4877FF","blueLight":"rgba(72, 119, 255, 0.5)","contentDefaultTransparent":"rgba(174, 174, 174, 0.5)","cyan":"#65E3FF","cyanLight":"rgba(101, 227, 255, 0.3)","cyanTransparent":"rgba(101, 227, 255, 0.12)","dbt":"#fc6949","dbtLight":"rgba(252, 105, 73, 0.5)","info":"#00ABFF","infoTransparent":"rgba(0, 171, 255, 0.5)","negative":"#FF1E59","negativeTransparent":"rgba(255, 30, 89, 0.3)","pink":"#FF4FF8","pinkLight":"rgb(255, 79, 248, 0.5)","positive":"#00A81A","primaryTransparent":"rgba(155, 108, 167, 0.5)","purple":"#7D55EC","purpleLight":"rgba(125, 85, 236, 0.5)","rose":"#D1A2AB","roseLight":"rgba(209, 162, 171, 0.5)","sky":"#6AA1E0","skyLight":"rgba(106, 161, 224, 0.05)","teal":"#00B4CC","tealLight":"rgba(0, 180, 204, 0.5)","warning":"#DD9900","warningTransparent":"rgba(221, 153, 0, 0.5)","yellow":"#FFCC19","yellowLight":"rgba(255, 204, 25, 0.5)"},"background":{"chartBlock":"#2E3036","codeArea":"#1E1F24","codeTextarea":"#000000","content":"#1B1C20","danger":"#FFD0DB","dark":"#B1B8C3","header":"#1B1B1B","menu":"#0F4CFF","muted":"#F9FAFC","navigation":"#EDEDED","output":"#2E3036","page":"#1E1F24","panel":"#232429","popup":"#27292E","row":"#2C2C2C","row2":"#51535C","scrollbarThumb":"rgba(100, 100, 100, 0.5)","scrollbarThumbHover":"rgba(255, 255, 255, 0.3)","scrollbarTrack":"#2E3036","success":"#8ADE00","successLight":"rgb(138, 222, 0, 0.3)","table":"#292A2F"},"borders":{"button":"#454850","contrast":"#FFFFFF","danger":"#FF144D","dark":"#000000","info":"#FFCC19","light":"#2F3034","medium":"#1C1C1C","medium2":"#141414","success":"#2FCB52"},"brand":{"earth100":"#C6EEDB","earth200":"#9DDFBF","earth300":"#6BBF96","earth400":"#37A46F","earth400Transparent":"rgba(55, 164, 111, 0.4)","earth500":"#00954C","energy100":"#FFF4BA","energy200":"#FFED92","energy300":"#FFE662","energy400":"#FFDA19","energy400Transparent":"rgba(255, 218, 25, 0.04)","energy500":"#F6C000","fire100":"#FFD7E0","fire200":"#FFA3B9","fire300":"#FF547D","fire400":"#FF144D","fire400Transparent":"rgba(255, 20, 77, 0.4)","fire500":"#EB0032","stone100":"#F3E6D7","stone200":"#E3D4C2","stone400":"#BFA78B","stone500":"#AF8859","water100":"#BDCEFF","water200":"#81A1FF","water300":"#517DFF","water400":"#2A60FE","water400Transparent":"rgba(42, 96, 254, 0.4)","water500":"#0F4CFF","wind100":"#EEEAFF","wind200":"#CCC1F4","wind300":"#A698DD","wind400":"#6B50D7","wind400SuperTransparent":"rgba(107, 80, 215, 0.12)","wind400Transparent":"rgba(107, 80, 215, 0.4)","wind500":"#4E32BC"},"chart":{"backgroundPrimary":"#7D55EC","backgroundSecondary":"#FF144D","backgroundTertiary":"#86E2FF","button1":"#4877FF","button2":"#FFCC19","button3":"#8ADE00","button4":"#FF4FF8","button5":"#B98D95","lines":"#9B6CA7","primary":"#6B50D7","secondary":"#FF144D","tertiary":"#2A60FE"},"content":{"active":"#FFFFFF","default":"#AEAEAE","disabled":"rgba(255, 255, 255, 0.3)","inverted":"#2C2C2C","muted":"#787A85"},"elevation":{"visualizationAccent":"#996CFF","visualizationAccentAlt":"#C1ACF7"},"feature":{"active":"rgba(250, 248, 254, 0.14)","disabled":"rgba(201, 206, 218, 0.12)"},"icons":{"neutral":"#787878"},"interactive":{"activeBorder":"#060606","checked":"#060606","dangerBorder":"#FF144D","defaultBackground":"#36383F","defaultBorder":"#2E3036","disabledBorder":"#B1B8C3","focusBackground":"#B1B8C3","focusBorder":"#86E2FF","hoverBackground":"#4E4E4E","hoverBorder":"#B9BFCA","hoverOverlay":"rgba(255, 255, 255, 0.1)","linkPrimary":"#1752FF","linkPrimaryHover":"#4877FF","linkPrimaryLight":"#5982ff","linkSecondary":"#6B50D7","linkSecondaryDisabled":"#C4B9EF","linkText":"#6AA1E0","rowHoverBackground":"rgba(0, 0, 0, 0.1)","transparent":"rgba(255, 255, 255, 0)"},"loader":{"color":"#EB0032","colorInverted":"#8ADE00"},"logo":{"color":"#FFFFFF"},"monotone":{"black":"#060606","blackTransparent":"rgba(0, 0, 0, 0.6)","gray":"#B1B8C3","grey100":"#F2F2F2","grey200":"#D5D7DC","grey300":"#B4B8C0","grey400":"#70747C","grey500":"#51535C","purple":"#6B50D7","white":"#FFFFFF"},"neutral":{"n100":"#E7E8EA","n200":"#D8DADE","n300":"#CBCCD0","n400":"#BCBEC4","n500":"#AEB0B6"},"progress":{"negative":"#FF144D","positive":"#6B50D7"},"shadow":{"base":"12px 40px 120px rgba(106, 117, 139, 0.4)","frame":"0px 10px 40px rgba(0, 0, 0, 0.26)","menu":"4px 10px 20px rgba(6, 6, 6, 0.12)","popup":"10px 20px 40px rgba(0, 0, 0, 0.2)","small":"0px, 4px, rgba(0, 0, 0, 0.25)","window":"0px 10px 60px rgba(0, 0, 0, 0.7)"},"status":{"negative":"#FF144D","positive":"#24B400"},"text":{"fileBrowser":"#787A85"}}},"page":"/files","query":{},"buildId":"
|
|
24
|
+
</style></head><body><div id="__next"><div class="" style="position:fixed;top:0;left:0;height:2px;background:transparent;z-index:99999999999;width:100%"><div class="" style="height:100%;background:#FF144D;transition:all 500ms ease;width:0%"><div style="box-shadow:0 0 10px #FF144D, 0 0 10px #FF144D;width:5%;opacity:1;position:absolute;height:100%;transition:all 500ms ease;transform:rotate(3deg) translate(0px, -4px);left:-10rem"></div></div></div><div class="indexstyle__HeaderStyle-sc-1bk8irg-0 gbXfes"><div></div></div><div class="indexstyle__ContainerStyle-sc-ecogjt-0 ijwRXz"><div class="indexstyle__VerticalNavigationStyleComponent-sc-ecogjt-1 idxFus"><div class="Spacing__SpacingStyle-sc-1mpmtgj-0 hDBiHu"><div></div></div></div><div class="Flex-sc-sgfnl9-0 dKQluW"><div></div></div></div><div></div><div></div><div></div><div class="ToastWrapper-sc-1a33ph1-0 kOVcuR"><div class="Toastify"></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"auth":{"decodedToken":{"expires":0,"token":null}}},"currentTheme":{"accent":{"alert":"#F6540B","blue":"#4877FF","blueLight":"rgba(72, 119, 255, 0.5)","contentDefaultTransparent":"rgba(174, 174, 174, 0.5)","cyan":"#65E3FF","cyanLight":"rgba(101, 227, 255, 0.3)","cyanTransparent":"rgba(101, 227, 255, 0.12)","dbt":"#fc6949","dbtLight":"rgba(252, 105, 73, 0.5)","info":"#00ABFF","infoTransparent":"rgba(0, 171, 255, 0.5)","negative":"#FF1E59","negativeTransparent":"rgba(255, 30, 89, 0.3)","pink":"#FF4FF8","pinkLight":"rgb(255, 79, 248, 0.5)","positive":"#00A81A","primaryTransparent":"rgba(155, 108, 167, 0.5)","purple":"#7D55EC","purpleLight":"rgba(125, 85, 236, 0.5)","rose":"#D1A2AB","roseLight":"rgba(209, 162, 171, 0.5)","sky":"#6AA1E0","skyLight":"rgba(106, 161, 224, 0.05)","teal":"#00B4CC","tealLight":"rgba(0, 180, 204, 0.5)","warning":"#DD9900","warningTransparent":"rgba(221, 153, 0, 0.5)","yellow":"#FFCC19","yellowLight":"rgba(255, 204, 25, 0.5)"},"background":{"chartBlock":"#2E3036","codeArea":"#1E1F24","codeTextarea":"#000000","content":"#1B1C20","danger":"#FFD0DB","dark":"#B1B8C3","header":"#1B1B1B","menu":"#0F4CFF","muted":"#F9FAFC","navigation":"#EDEDED","output":"#2E3036","page":"#1E1F24","panel":"#232429","popup":"#27292E","row":"#2C2C2C","row2":"#51535C","scrollbarThumb":"rgba(100, 100, 100, 0.5)","scrollbarThumbHover":"rgba(255, 255, 255, 0.3)","scrollbarTrack":"#2E3036","success":"#8ADE00","successLight":"rgb(138, 222, 0, 0.3)","table":"#292A2F"},"borders":{"button":"#454850","contrast":"#FFFFFF","danger":"#FF144D","dark":"#000000","info":"#FFCC19","light":"#2F3034","medium":"#1C1C1C","medium2":"#141414","success":"#2FCB52"},"brand":{"earth100":"#C6EEDB","earth200":"#9DDFBF","earth300":"#6BBF96","earth400":"#37A46F","earth400Transparent":"rgba(55, 164, 111, 0.4)","earth500":"#00954C","energy100":"#FFF4BA","energy200":"#FFED92","energy300":"#FFE662","energy400":"#FFDA19","energy400Transparent":"rgba(255, 218, 25, 0.04)","energy500":"#F6C000","fire100":"#FFD7E0","fire200":"#FFA3B9","fire300":"#FF547D","fire400":"#FF144D","fire400Transparent":"rgba(255, 20, 77, 0.4)","fire500":"#EB0032","stone100":"#F3E6D7","stone200":"#E3D4C2","stone400":"#BFA78B","stone500":"#AF8859","water100":"#BDCEFF","water200":"#81A1FF","water300":"#517DFF","water400":"#2A60FE","water400Transparent":"rgba(42, 96, 254, 0.4)","water500":"#0F4CFF","wind100":"#EEEAFF","wind200":"#CCC1F4","wind300":"#A698DD","wind400":"#6B50D7","wind400SuperTransparent":"rgba(107, 80, 215, 0.12)","wind400Transparent":"rgba(107, 80, 215, 0.4)","wind500":"#4E32BC"},"chart":{"backgroundPrimary":"#7D55EC","backgroundSecondary":"#FF144D","backgroundTertiary":"#86E2FF","button1":"#4877FF","button2":"#FFCC19","button3":"#8ADE00","button4":"#FF4FF8","button5":"#B98D95","lines":"#9B6CA7","primary":"#6B50D7","secondary":"#FF144D","tertiary":"#2A60FE"},"content":{"active":"#FFFFFF","default":"#AEAEAE","disabled":"rgba(255, 255, 255, 0.3)","inverted":"#2C2C2C","muted":"#787A85"},"elevation":{"visualizationAccent":"#996CFF","visualizationAccentAlt":"#C1ACF7"},"feature":{"active":"rgba(250, 248, 254, 0.14)","disabled":"rgba(201, 206, 218, 0.12)"},"icons":{"neutral":"#787878"},"interactive":{"activeBorder":"#060606","checked":"#060606","dangerBorder":"#FF144D","defaultBackground":"#36383F","defaultBorder":"#2E3036","disabledBorder":"#B1B8C3","focusBackground":"#B1B8C3","focusBorder":"#86E2FF","hoverBackground":"#4E4E4E","hoverBorder":"#B9BFCA","hoverOverlay":"rgba(255, 255, 255, 0.1)","linkPrimary":"#1752FF","linkPrimaryHover":"#4877FF","linkPrimaryLight":"#5982ff","linkSecondary":"#6B50D7","linkSecondaryDisabled":"#C4B9EF","linkText":"#6AA1E0","rowHoverBackground":"rgba(0, 0, 0, 0.1)","transparent":"rgba(255, 255, 255, 0)"},"loader":{"color":"#EB0032","colorInverted":"#8ADE00"},"logo":{"color":"#FFFFFF"},"monotone":{"black":"#060606","blackTransparent":"rgba(0, 0, 0, 0.6)","gray":"#B1B8C3","grey100":"#F2F2F2","grey200":"#D5D7DC","grey300":"#B4B8C0","grey400":"#70747C","grey500":"#51535C","purple":"#6B50D7","white":"#FFFFFF"},"neutral":{"n100":"#E7E8EA","n200":"#D8DADE","n300":"#CBCCD0","n400":"#BCBEC4","n500":"#AEB0B6"},"progress":{"negative":"#FF144D","positive":"#6B50D7"},"shadow":{"base":"12px 40px 120px rgba(106, 117, 139, 0.4)","frame":"0px 10px 40px rgba(0, 0, 0, 0.26)","menu":"4px 10px 20px rgba(6, 6, 6, 0.12)","popup":"10px 20px 40px rgba(0, 0, 0, 0.2)","small":"0px, 4px, rgba(0, 0, 0, 0.25)","window":"0px 10px 60px rgba(0, 0, 0, 0.7)"},"status":{"negative":"#FF144D","positive":"#24B400"},"text":{"fileBrowser":"#787A85"}}},"page":"/files","query":{},"buildId":"zlCBBK90aKYZtPlYLj9_T","nextExport":true,"isFallback":false,"gip":true,"appGip":true,"scriptLoader":[]}</script></body></html>
|