mage-ai 0.8.47__py3-none-any.whl → 0.8.49__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mage-ai might be problematic. Click here for more details.
- mage_ai/api/resources/DataProviderResource.py +13 -1
- mage_ai/data_preparation/git/__init__.py +1 -1
- mage_ai/data_preparation/models/block/__init__.py +5 -0
- mage_ai/data_preparation/models/block/sql/__init__.py +68 -8
- mage_ai/data_preparation/models/block/sql/clickhouse.py +38 -0
- mage_ai/data_preparation/models/block/utils.py +4 -2
- mage_ai/data_preparation/models/file.py +4 -3
- mage_ai/data_preparation/models/pipeline.py +36 -3
- mage_ai/data_preparation/templates/repo/io_config.yaml +12 -0
- mage_ai/io/base.py +1 -0
- mage_ai/io/clickhouse.py +237 -0
- mage_ai/io/config.py +19 -0
- mage_ai/io/io_config.py +1 -0
- mage_ai/io/snowflake.py +0 -1
- mage_ai/io/sql.py +4 -1
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/404.html.html +2 -2
- mage_ai/server/frontend_dist/_next/static/I2bRLK9B7Lap2LvCicTKv/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{2249-50d2156ae3ce5933.js → 2249-59feb0a0585ef7c1.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2407-35c362852abff411.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2524-ecbe3dd70d06cbe4.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{3014-26ba07eb6a78e31c.js → 3014-a01e16bc067500ad.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{4506-ce5fa63b65f6fa5f.js → 4506-a3c53b0033972626.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4741-5fbecd08232ba3f9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{5477-793cd2120261d023.js → 5477-b439f211b6146a11.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5716-c5952e5ca9c8e139.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{5872-103815a4a043489b.js → 5872-1767c45ee6690ae5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{5896-f84e336fb8877027.js → 5896-10a676bcc86978cc.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{6166-5fc2768ef661e7da.js → 6166-97cb3cc7d00d645c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{6532-b0fd357eb359c127.js → 6532-5f86e9e1f32adf3a.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{7400-acab00d6265bd4dc.js → 7400-033fb12e7c46f62e.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{9832-c8b8970bb522f302.js → 9832-f97919376d52e3bf.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{manage-96c89b2a2689f80c.js → manage-8a7b2b707c7038fb.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipeline-runs-294eccc0163c80a1.js → pipeline-runs-832218136947bf56.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-c48a45cea6df6192.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-dd637dcb042ff771.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-5541c3e13297ddbc.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{logs-0e6935a2b7f8e1ed.js → logs-caa9fade2bc783b9.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-0e02bcdfcd533830.js → block-runs-1b44f28966826dbe.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runtime-baf8bb6da01976db.js → block-runtime-44029312dc580504.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-d42158676a75b451.js → monitors-9b46466e066d6372.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-4049561456ea2314.js → [run]-5f78885afc7758df.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{runs-bebeee2854c734fc.js → runs-43f2c1658cd3d03d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{settings-b95afd173fb265df.js → settings-8fb53eb8dd0267e1.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{syncs-e46a9b03e0fff91a.js → syncs-c92351b1a81f7a13.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-6a95567766a1d00e.js → [...slug]-ca76f5938bdff8a7.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-c259bd9d385404fa.js → triggers-4e9518882c8730b1.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipelines-0900be641ce4e6ec.js → pipelines-c46347f0308ab09a.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{preferences-25735fdf80f95015.js → preferences-45c40fb24c8a5139.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{sync-data-abfaa2b15eef72a0.js → sync-data-6e80afa0c9b90cdf.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-5d0c51213b9bba8e.js → users-12a90f932ff4fc9d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{terminal-24eb5df948cc9a7e.js → terminal-cc54b4d4e5295101.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/test-bd801bde63db7c9e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{triggers-6ff85ea842bde8c2.js → triggers-08774e473ea4a96b.js} +1 -1
- mage_ai/server/frontend_dist/index.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 +3 -3
- mage_ai/server/frontend_dist/triggers.html +2 -2
- mage_ai/server/utils/output_display.py +1 -3
- mage_ai/server/websocket_server.py +0 -1
- {mage_ai-0.8.47.dist-info → mage_ai-0.8.49.dist-info}/METADATA +4 -1
- {mage_ai-0.8.47.dist-info → mage_ai-0.8.49.dist-info}/RECORD +92 -90
- mage_ai/server/frontend_dist/_next/static/chunks/2083-78a438dbdc57d1e4.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2524-6aeb9419acf5d1b4.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4538-8a3c3e47be976ede.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4741-acfe40cf3b06659e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-e512333242e02c60.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-774dd41941497640.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-c6179a9e737009c9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/test-85cf18ae78ff535c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/xTScbs8HLliQCDHzVPx5E/_buildManifest.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{xTScbs8HLliQCDHzVPx5E → I2bRLK9B7Lap2LvCicTKv}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist/_next/static/{xTScbs8HLliQCDHzVPx5E → I2bRLK9B7Lap2LvCicTKv}/_ssgManifest.js +0 -0
- {mage_ai-0.8.47.dist-info → mage_ai-0.8.49.dist-info}/LICENSE +0 -0
- {mage_ai-0.8.47.dist-info → mage_ai-0.8.49.dist-info}/WHEEL +0 -0
- {mage_ai-0.8.47.dist-info → mage_ai-0.8.49.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.8.47.dist-info → mage_ai-0.8.49.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6532],{44162:function(n,e,t){t.d(e,{HC:function(){return E},Kf:function(){return s},Nk:function(){return f},PY:function(){return p},gE:function(){return h},jv:function(){return m},nz:function(){return v},oh:function(){return l},qn:function(){return a},t1:function(){return b},y9:function(){return k}});var o=t(9518),r=t(23831),i=t(86422),c=t(73942),u=t(49125),d=t(90880),l=68;function a(n,e){var t,o,c=((null===e||void 0===e||null===(t=e.theme)||void 0===t?void 0:t.borders)||r.Z.borders).light,u=((null===e||void 0===e||null===(o=e.theme)||void 0===o?void 0:o.monotone)||r.Z.monotone).grey500,d=e||{},l=d.blockColor,a=d.isSelected,s=d.theme;return a?c=((null===s||void 0===s?void 0:s.content)||r.Z.content).active:i.tf.TRANSFORMER===n||l===i.Lq.PURPLE?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).purple,u=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).purpleLight):i.tf.DATA_EXPORTER===n||l===i.Lq.YELLOW?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).yellow,u=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).yellowLight):i.tf.DATA_LOADER===n||l===i.Lq.BLUE?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).blue,u=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).blueLight):i.tf.SENSOR===n||l===i.Lq.PINK?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).pink,u=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).pinkLight):i.tf.DBT===n?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).dbt,u=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).dbtLight):i.tf.EXTENSION===n||l===i.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).teal,u=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).tealLight):(i.tf.SCRATCHPAD===n||l===i.Lq.GREY||i.tf.CUSTOM===n&&!l)&&(c=((null===s||void 0===s?void 0:s.content)||r.Z.content).default,u=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).contentDefaultTransparent),{accent:c,accentLight:u}}var s=(0,o.css)([""," "," "," "," "," "," ",""],(0,d.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(a(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(a(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||r.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||r.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=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),p=o.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||r.Z).background.content,";\n\n &:hover {\n border-color: ").concat(a(n.blockType,n).accent,";\n }\n ")})),v=o.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||r.Z).background.content,";\n ")}),(function(n){return n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")})),m=o.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||r.Z.background).codeTextarea,";\n ")}),(function(n){return!n.hasOutput&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n ")})),h=o.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||r.Z.text).fileBrowser,";\n ")})),b=o.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),k=o.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-6"})(["margin-bottom:","px;padding-bottom:","px;",""],u.cd*u.iI,u.iI,(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||r.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?u.iI:l,"px;\n ")})),E=o.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-7"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,l)},86532:function(n,e,t){t.d(e,{Z:function(){return J}});var o,r=t(21831),i=t(82394),c=t(75582),u=t(77837),d=t(38860),l=t.n(d),a=t(51774),s=t.n(a),f=t(9518),p=t(4804),v=t(82684),m=t(83455),h=t(86422),b=t(67971),k=t(16634),E=t(86673),g=t(54283),x=t(19711),y=t(23831),A=t(10503),T=t(49125),R=(T.iI,{height:10,width:10}),O=[h.tf.DATA_EXPORTER,h.tf.SENSOR],C=[h.Lq.GREY,h.Lq.PINK,h.Lq.TEAL,h.Lq.YELLOW];!function(n){n.NORTH="NORTH",n.SOUTH="SOUTH"}(o||(o={}));var D=t(73942),S=t(37391),Z=f.default.div.withConfig({displayName:"indexstyle__GraphContainerStyle",componentId:"sc-bc2ei5-0"})(["div:only-child{","}",""],S.w5,(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")})),P=f.default.div.withConfig({displayName:"indexstyle__NodeStyle",componentId:"sc-bc2ei5-1"})(["border-radius:","px;border:1px solid transparent;min-width:fit-content;"," "," "," ",""],D.BG,(function(n){return n.selected&&"\n border-color: ".concat((n.theme.content||y.Z.content).active,";\n ")}),(function(n){return n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n ")}),(function(n){return(n.isCancelled||n.disabled)&&"\n // opacity doesn\u2019t work on Safari\n border-color: ".concat((n.theme.content||y.Z.content).active,";\n border-style: dashed;\n cursor: not-allowed;\n ")}),(function(n){return n.disabled&&"\n &:hover {\n cursor: not-allowed;\n }\n "})),_=f.default.div.withConfig({displayName:"indexstyle__RuntimeStyle",componentId:"sc-bc2ei5-2"})(["margin-right:","px;padding:12px 4px;height:100%;width:50px;background:rgba(0,0,0,0.2);background-blend-mode:soft-light;"],2*T.iI),N=t(44162),L=t(90211),I=function(n){var e=n/1e3,t=4-Math.floor(e).toString().length,o=(0,L.QV)(e,t>=0?t:0),r="s";return o>1e3&&(o=(0,L.QV)(o/60,0),r="m"),"".concat(o).concat(r)},w=function(n,e){var t=n||{},r=t.id,i=t.side,c=null===e||void 0===e?void 0:e.id;return i===o.NORTH?null===r||void 0===r?void 0:r.endsWith("".concat(c,"-to")):i===o.SOUTH&&(null===r||void 0===r?void 0:r.startsWith(c))},j=t(28598);var B=function(n){var e=n.block,t=n.children,o=n.disabled,r=n.hasFailed,i=n.hideStatus,c=n.isCancelled,u=n.isInProgress,d=n.isQueued,l=n.isSuccessful,a=(n.onClick,n.runtime),s=n.selected,p=(0,v.useContext)(f.ThemeContext),m=e.color,h=e.type,R=e.uuid,D=!(u||d||r||l||c),S=l&&!(u||d),Z=r&&!(u||d),L="";return D?L="No status":S?L="Successful execution":Z?L="Failed execution":u?L="Currently executiing":c&&(L="Cancelled execution"),(0,j.jsx)(P,{backgroundColor:(0,N.qn)(h,{blockColor:m,theme:p}).accent,disabled:o,isCancelled:c,selected:s,children:(0,j.jsxs)(b.Z,{alignItems:"center",children:[a&&(0,j.jsx)(_,{backgroundColor:(0,N.qn)(h,{blockColor:m,theme:p}).accent,children:(0,j.jsx)(b.Z,{justifyContent:"center",children:(0,j.jsx)(x.ZP,{inverted:O.includes(h)||C.includes(m),xsmall:!0,children:I(a)})})}),!a&&(0,j.jsx)(E.Z,{ml:2}),!i&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(b.Z,{alignItems:"center",justifyContent:"center",style:{height:2*T.iI,width:2*T.iI},title:L,children:[u&&(0,j.jsx)(g.Z,{color:(p||y.Z).content.active,small:!0}),S&&(0,j.jsx)(A.Jr,{size:2*T.iI,success:!0}),Z&&(0,j.jsx)(A.x8,{danger:!0,size:1.5*T.iI}),D&&(0,j.jsx)(k.Z,{borderSize:1,size:1*T.iI})]}),(0,j.jsx)(E.Z,{ml:1})]}),(0,j.jsx)(b.Z,{alignItems:"center",justifyContent:"center",style:{padding:"8px 0",height:"100%"},children:(0,j.jsx)(x.ZP,{inverted:O.includes(h)||C.includes(m),monospace:!0,small:!0,children:t})})]})},R)},M=t(11135),U=t(98781),H=t(82531),F=t(66050),X=t(24224),q=t(25958),G=t(96510),Y=t(87323);function z(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function Q(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?z(Object(t),!0).forEach((function(e){(0,i.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):z(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var V=s()((0,u.Z)(l().mark((function n(){var e;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(3873)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Canvas);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),K=s()((0,u.Z)(l().mark((function n(){var e;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(3873)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Node);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),W=s()((0,u.Z)(l().mark((function n(){var e;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(3873)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Edge);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),$=(s()((0,u.Z)(l().mark((function n(){var e;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(3873)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.MarkerArrow);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),s()((0,u.Z)(l().mark((function n(){var e;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(3873)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Port);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}));var J=function(n){var e=n.blockRefs,t=n.blockStatus,i=n.disabled,u=n.editingBlock,d=n.enablePorts,l=void 0!==d&&d,a=n.fetchPipeline,s=n.height,k=n.heightOffset,g=void 0===k?10*T.iI:k,y=n.noStatus,A=n.onClickNode,O=n.pannable,C=void 0===O||O,D=n.pipeline,S=n.runningBlocks,P=void 0===S?[]:S,_=n.selectedBlock,L=n.setEditingBlock,I=n.setErrors,z=n.setSelectedBlock,J=n.showDynamicBlocks,nn=void 0!==J&&J,en=n.zoomable,tn=void 0===en||en,on=(0,v.useContext)(f.ThemeContext),rn=(0,v.useState)([]),cn=rn[0],un=rn[1],dn=(0,v.useState)(!1),ln=dn[0],an=dn[1],sn=(0,v.useState)(null),fn=sn[0],pn=sn[1],vn=l&&ln,mn=(null===u||void 0===u?void 0:u.upstreamBlocks)||{},hn=mn.block,bn=mn.values,kn=void 0===bn?[]:bn,En=(0,v.useMemo)((function(){return kn.length}),[kn]),gn=(0,v.useMemo)((function(){var n;return(null===D||void 0===D||null===(n=D.blocks)||void 0===n?void 0:n.filter((function(n){var e=n.type;return h.tf.SCRATCHPAD!==e})))||[]}),[null===D||void 0===D?void 0:D.blocks]),xn=(0,X.HK)((0,Y.cU)(gn,gn),(function(n){return n.block.uuid})),yn=(0,v.useMemo)((function(){return gn}),[gn,nn]),An=(0,v.useMemo)((function(){return(0,X.HK)(yn,(function(n){return n.uuid}))}),[yn]),Tn=(0,v.useMemo)((function(){return(0,X.HK)(P,(function(n){return n.uuid}))}),[P]),Rn=(0,m.Db)(H.ZP.blocks.pipelines.useUpdate(null===D||void 0===D?void 0:D.uuid,encodeURIComponent(null===hn||void 0===hn?void 0:hn.uuid)),{onSuccess:function(n){return(0,G.wD)(n,{callback:function(){L({upstreamBlocks:null}),null===a||void 0===a||a()},onErrorCallback:function(n,e){return null===I||void 0===I?void 0:I({errors:e,response:n})}})}}),On=(0,c.Z)(Rn,2),Cn=On[0],Dn=On[1].isLoading,Sn=(0,m.Db)((function(n){var e=n.fromBlock,t=n.toBlock,o=n.removeDependency;return H.ZP.blocks.pipelines.useUpdate(null===D||void 0===D?void 0:D.uuid,encodeURIComponent(t.uuid))({block:Q(Q({},t),{},{upstream_blocks:o?t.upstream_blocks.filter((function(n){return n!==e.uuid})):t.upstream_blocks.concat(e.uuid)})})}),{onSuccess:function(n){return(0,G.wD)(n,{callback:function(){null===a||void 0===a||a()},onErrorCallback:function(n,e){return null===I||void 0===I?void 0:I({errors:e,response:n})}})}}),Zn=(0,c.Z)(Sn,1)[0],Pn=(0,v.useCallback)((function(n){var t=n.type,o=n.uuid;if(null===z||void 0===z||z(n),un([]),null!==e&&void 0!==e&&e.current){var r,i=e.current["".concat(t,"s/").concat(o,".py")];null===i||void 0===i||null===(r=i.current)||void 0===r||r.scrollIntoView()}}),[e,z]),_n=(0,v.useCallback)((function(n){un([]),L((function(e){var t=e.upstreamBlocks.values||[],o=t.findIndex((function(e){var t=e.uuid;return n.uuid===t}));return Q(Q({},e),{},{upstreamBlocks:Q(Q({},e.upstreamBlocks),{},{values:o>=0?(0,X.oM)(t,o):t.concat(n)})})}))}),[L]),Nn=(0,v.useMemo)((function(){var n={};return yn.forEach((function(e){e.upstream_blocks.forEach((function(t){n[t]||(n[t]=[]),n[t].push(e)}))})),n}),[yn]),Ln=(0,v.useCallback)((function(n){var e;if(U.qL.INTEGRATION===(null===D||void 0===D?void 0:D.type)&&h.tf.TRANSFORMER!==n.type){var t,o={};if(h.t6.YAML===n.language&&(o=(0,p.Qc)(n.content)),h.tf.DATA_LOADER===n.type)e="".concat(n.uuid,": ").concat(null===(t=o)||void 0===t?void 0:t.source);else if(h.tf.DATA_EXPORTER===n.type){var r;e="".concat(n.uuid,": ").concat(null===(r=o)||void 0===r?void 0:r.destination)}}else h.tf.DBT===n.type&&h.t6.SQL===n.language&&(e=(0,q.$)(n,{fullPath:!0}));var i=(null===xn||void 0===xn?void 0:xn[n.uuid])||{},c=i.dynamic,u=i.dynamicUpstreamBlock,d=(i.reduceOutput,i.reduceOutputUpstreamBlock);return e||(e=n.uuid,c?e="[dynamic] ".concat(e):u&&!d&&(e="[dynamic child] ".concat(e))),e}),[xn,D]),In=(0,v.useMemo)((function(){var n=[],e=[];return yn.forEach((function(c){var u,d=Ln(c),l=c.type,a=c.upstream_blocks,s=void 0===a?[]:a,f=c.uuid,p=Nn[f],v=[];p?v.push.apply(v,(0,r.Z)(p.map((function(n){return Q(Q({},R),{},{id:"".concat(f,"-").concat(n.uuid,"-from"),side:o.SOUTH})})))):l!==h.tf.DATA_EXPORTER&&v.push(Q(Q({},R),{},{id:"".concat(f,"-from"),side:o.SOUTH})),0===s.length&&l!==h.tf.DATA_LOADER&&v.push(Q(Q({},R),{},{id:"".concat(f,"-to"),side:o.NORTH})),null===s||void 0===s||s.forEach((function(n){v.push(Q(Q({},R),{},{id:"".concat(n,"-").concat(f,"-to"),side:o.NORTH})),e.push({from:n,fromPort:"".concat(n,"-").concat(f,"-from"),id:"".concat(n,"-").concat(f),to:f,toPort:"".concat(n,"-").concat(f,"-to")})})),n.push({data:{block:c},height:37,id:f,ports:v,width:d.length*T.KF+(i?0:5*T.iI)+((null===hn||void 0===hn?void 0:hn.uuid)===c.uuid?19*T.KF:0)+(null!==t&&void 0!==t&&null!==(u=t[c.uuid])&&void 0!==u&&u.runtime?50:0)})})),{edges:e,nodes:n}}),[null===hn||void 0===hn?void 0:hn.uuid,t,yn,i,Ln,Nn]),wn=In.edges,jn=In.nodes,Bn=(0,v.useCallback)((function(n){if(y)return{};if(t){var e=t[n.uuid]||{},o=e.status,r=e.runtime;return{hasFailed:F.V.FAILED===o,isCancelled:F.V.CANCELLED===o,isInProgress:F.V.RUNNING===o,isQueued:F.V.INITIAL===o,isSuccessful:F.V.COMPLETED===o,runtime:r}}var i;return{hasFailed:h.DA.FAILED===n.status,isInProgress:Tn[n.uuid],isQueued:Tn[n.uuid]&&(null===(i=P[0])||void 0===i?void 0:i.uuid)!==n.uuid,isSuccessful:h.DA.EXECUTED===n.status}}),[t,y,P,Tn]),Mn=(0,v.useMemo)((function(){var n=0;return s&&(n+=s),g&&(n-=g),Math.max(0,n)}),[s,g]);return(0,j.jsxs)(j.Fragment,{children:[hn&&(0,j.jsxs)(E.Z,{my:3,px:T.cd,children:[(0,j.jsxs)(E.Z,{mb:T.cd,children:[(0,j.jsxs)(x.ZP,{children:["Select parent block(s) for ",(0,j.jsx)(x.ZP,{color:(0,N.qn)(hn.type,{blockColor:hn.color,theme:on}).accent,inline:!0,monospace:!0,children:hn.uuid}),":"]}),(0,j.jsx)(E.Z,{mt:1,children:kn.map((function(n,e){var t,o,r=n.uuid;return(0,j.jsxs)(x.ZP,{color:(0,N.qn)(null===(t=An[r])||void 0===t?void 0:t.type,{blockColor:null===(o=An[r])||void 0===o?void 0:o.type,theme:on}).accent,inline:!0,monospace:!0,children:[r,En>=2&&e<=En-2?(0,j.jsx)(x.ZP,{inline:!0,children:",\xa0"}):null]},r)}))})]}),(0,j.jsxs)(b.Z,{alignItems:"center",children:[(0,j.jsx)(M.ZP,{compact:!0,inline:!0,loading:Dn,onClick:function(){return Cn({block:Q(Q({},hn),{},{upstream_blocks:kn.map((function(n){return n.uuid}))})})},uuid:"DependencyGraph/save_parents",children:"Save dependencies"}),(0,j.jsx)(E.Z,{ml:1}),(0,j.jsx)(M.ZP,{compact:!0,inline:!0,noBackground:!0,onClick:function(){un([]),L({upstreamBlocks:null})},uuid:"DependencyGraph/cancel_save_parents",children:"Cancel"})]})]}),(0,j.jsx)(Z,{height:Mn,children:(0,j.jsx)(V,{arrow:null,disabled:i,edge:function(n){var e,t=An[n.source];return(0,j.jsx)(W,Q(Q({},n),{},{onClick:function(n,e){pn(null),un([e.id])},onRemove:function(n,e){var t=An[e.from],o=An[e.to];Zn({fromBlock:t,removeDependency:!0,toBlock:o}),un([])},removable:l&&!(null!==u&&void 0!==u&&u.upstreamBlocks),style:{stroke:null===(e=(0,N.qn)(null===t||void 0===t?void 0:t.type,{blockColor:null===t||void 0===t?void 0:t.color,theme:on}))||void 0===e?void 0:e.accent}}))},edges:wn,fit:!0,maxHeight:1e4,maxWidth:1e4,node:function(n){var e,t,o,r,c,d;return(0,j.jsx)(K,Q(Q({},n),{},{dragType:"port",linkable:!0,onClick:function(n,e){var t=e.data.block;pn(null),(null===hn||void 0===hn?void 0:hn.uuid)===t.uuid||(hn?_n(t):(null===A||void 0===A||A({block:t}),setTimeout((function(){Pn(t)}),1)))},onEnter:function(){null!==u&&void 0!==u&&u.upstreamBlocks||an(!0)},onLeave:function(){return an(!1)},port:vn&&(null===fn||w(fn,n))?(0,j.jsx)($,{onDrag:function(){return an(!0)},onDragEnd:function(){an(!1),pn(null)},onDragStart:function(n,e,t){pn({id:null===t||void 0===t?void 0:t.id,side:null===t||void 0===t?void 0:t.side})},onEnter:function(){return an(!0)},rx:10,ry:10,style:{fill:(0,N.qn)(null===n||void 0===n||null===(e=n.properties)||void 0===e||null===(t=e.data)||void 0===t||null===(o=t.block)||void 0===o?void 0:o.type,{blockColor:null===n||void 0===n||null===(r=n.properties)||void 0===r||null===(c=r.data)||void 0===c||null===(d=c.block)||void 0===d?void 0:d.color,theme:on}).accent,stroke:"white",strokeWidth:"1px"}}):null,style:{fill:"transparent",stroke:"transparent",strokeWidth:0},children:function(n){var e=n.node.data.block,t=Bn(e);return(0,j.jsx)("foreignObject",{height:n.height,style:{pointerEvents:"none"},width:n.width,x:0,y:0,children:(0,j.jsxs)(B,Q(Q({block:e,disabled:(null===hn||void 0===hn?void 0:hn.uuid)===e.uuid,hideStatus:i,selected:hn?!!(0,X.sE)(kn,(function(n){return n.uuid===e.uuid})):(null===_||void 0===_?void 0:_.uuid)===e.uuid},t),{},{children:[Ln(e),(null===hn||void 0===hn?void 0:hn.uuid)===e.uuid&&" (editing)"]}),e.uuid)})}}))},nodes:jn,onNodeLink:function(n,e,t,o){var r,i=An[e.id],c=An[t.id],u=(null===D||void 0===D?void 0:D.type)===U.qL.INTEGRATION&&((null===i||void 0===i?void 0:i.type)===h.tf.DATA_EXPORTER||(null===i||void 0===i?void 0:i.type)===h.tf.DATA_LOADER&&(null===c||void 0===c?void 0:c.type)===h.tf.DATA_EXPORTER);null!==i&&void 0!==i&&null!==(r=i.upstream_blocks)&&void 0!==r&&r.includes(c.uuid)||e.id===t.id||u||Zn({fromBlock:i,toBlock:c})},onNodeLinkCheck:function(n,e,t){return!wn.some((function(n){return n.from===e.id&&n.to===t.id}))},pannable:C,selections:cn,zoomable:tn})})]})}},66050:function(n,e,t){var o;t.d(e,{V:function(){return o}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running"}(o||(o={}))},86422:function(n,e,t){t.d(e,{$W:function(){return f},DA:function(){return s},HX:function(){return m},J8:function(){return v},Lq:function(){return l},Qj:function(){return h},Ut:function(){return g},V4:function(){return E},VZ:function(){return p},dO:function(){return a},f2:function(){return k},iZ:function(){return b},t6:function(){return c},tf:function(){return d}});var o,r,i,c,u=t(82394);!function(n){n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(c||(c={}));var d,l,a=(o={},(0,u.Z)(o,c.PYTHON,"PY"),(0,u.Z)(o,c.R,"R"),(0,u.Z)(o,c.SQL,"SQL"),(0,u.Z)(o,c.YAML,"YAML"),o);!function(n){n.CHART="chart",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.TRANSFORMER="transformer"}(d||(d={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(l||(l={}));var s,f=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.TRANSFORMER],p=[d.DATA_EXPORTER,d.DATA_LOADER],v=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],m=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],h=[d.CHART,d.SCRATCHPAD,d.SENSOR],b=[d.EXTENSION,d.SCRATCHPAD];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(s||(s={}));var k=[d.CUSTOM,d.DATA_EXPORTER,d.TRANSFORMER],E=(r={},(0,u.Z)(r,d.CUSTOM,"Custom"),(0,u.Z)(r,d.DATA_EXPORTER,"Data exporter"),(0,u.Z)(r,d.DATA_LOADER,"Data loader"),(0,u.Z)(r,d.EXTENSION,"Extension"),(0,u.Z)(r,d.SCRATCHPAD,"Scratchpad"),(0,u.Z)(r,d.SENSOR,"Sensor"),(0,u.Z)(r,d.TRANSFORMER,"Transformer"),r),g=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER,d.SENSOR];i={},(0,u.Z)(i,d.DATA_EXPORTER,"DE"),(0,u.Z)(i,d.DATA_LOADER,"DL"),(0,u.Z)(i,d.SCRATCHPAD,"SP"),(0,u.Z)(i,d.SENSOR,"SR"),(0,u.Z)(i,d.TRANSFORMER,"TF")},87323:function(n,e,t){t.d(e,{cU:function(){return c}});var o=t(82684),r=t(24224);function i(n,e){return function(n,e,t){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{includeAllNodes:!1},i=(0,r.HK)(t,(function(n){return n.uuid})),c=(o||{}).includeAllNodes,u=[];function d(t){if(t){var o=(t[e]||[]).reduce((function(e,t){return n.uuid===t?e:e.concat(i[t])}),[]);(0===o.length||c&&n.uuid!==t.uuid)&&u.push(t),o.forEach((function(n){d(n)}))}}return d(n),u}(n,"upstream_blocks",e,{includeAllNodes:!0})}function c(n,e){return(0,o.useMemo)((function(){return n.map((function(n){var t=function(n,e){var t=i(n,e);return{dynamicUpstreamBlock:t.find((function(e){var t=e.configuration,o=e.uuid;return(null===t||void 0===t?void 0:t.dynamic)&&o!==(null===n||void 0===n?void 0:n.uuid)})),reduceOutputUpstreamBlock:t.find((function(e){var t=e.configuration,o=e.uuid;return(null===t||void 0===t?void 0:t.reduce_output)&&o!==(null===n||void 0===n?void 0:n.uuid)}))}}(n,e),o=t.dynamicUpstreamBlock,r=t.reduceOutputUpstreamBlock,c=(n||{}).configuration||{};return{block:n,dynamic:!!c.dynamic,dynamicUpstreamBlock:o,reduceOutput:!!c.reduce_output,reduceOutputUpstreamBlock:r}}))}),[e,null===e||void 0===e?void 0:e.map((function(n){var e=n.configuration;return null===e||void 0===e?void 0:e.dynamic})),null===e||void 0===e?void 0:e.map((function(n){var e=n.configuration;return null===e||void 0===e?void 0:e.reduce_output})),null===e||void 0===e?void 0:e.map((function(n){return n.upstream_blocks}))])}},25958:function(n,e,t){function o(n,e){var t,o=null===e||void 0===e?void 0:e.fullPath,r=null===n||void 0===n||null===(t=n.configuration)||void 0===t?void 0:t.file_path;if(o)return null===n||void 0===n?void 0:n.uuid;if(r){var i=r.split("/"),c=i[i.length-1].split(".");return c.pop(),c.join(".")}}t.d(e,{$:function(){return o}})}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6532],{44162:function(n,e,t){t.d(e,{HC:function(){return E},Kf:function(){return s},Nk:function(){return f},PY:function(){return p},gE:function(){return h},jv:function(){return m},nz:function(){return v},oh:function(){return l},qn:function(){return a},t1:function(){return b},y9:function(){return k}});var o=t(9518),r=t(23831),i=t(86422),c=t(73942),u=t(49125),d=t(90880),l=68;function a(n,e){var t,o,c=((null===e||void 0===e||null===(t=e.theme)||void 0===t?void 0:t.borders)||r.Z.borders).light,u=((null===e||void 0===e||null===(o=e.theme)||void 0===o?void 0:o.monotone)||r.Z.monotone).grey500,d=e||{},l=d.blockColor,a=d.isSelected,s=d.theme;return a?c=((null===s||void 0===s?void 0:s.content)||r.Z.content).active:i.tf.TRANSFORMER===n||l===i.Lq.PURPLE?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).purple,u=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).purpleLight):i.tf.DATA_EXPORTER===n||l===i.Lq.YELLOW?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).yellow,u=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).yellowLight):i.tf.DATA_LOADER===n||l===i.Lq.BLUE?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).blue,u=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).blueLight):i.tf.SENSOR===n||l===i.Lq.PINK?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).pink,u=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).pinkLight):i.tf.DBT===n?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).dbt,u=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).dbtLight):i.tf.EXTENSION===n||l===i.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).teal,u=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).tealLight):(i.tf.SCRATCHPAD===n||l===i.Lq.GREY||i.tf.CUSTOM===n&&!l)&&(c=((null===s||void 0===s?void 0:s.content)||r.Z.content).default,u=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).contentDefaultTransparent),{accent:c,accentLight:u}}var s=(0,o.css)([""," "," "," "," "," "," ",""],(0,d.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(a(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(a(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||r.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||r.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=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),p=o.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||r.Z).background.content,";\n\n &:hover {\n border-color: ").concat(a(n.blockType,n).accent,";\n }\n ")})),v=o.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||r.Z).background.content,";\n ")}),(function(n){return n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")})),m=o.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||r.Z.background).codeTextarea,";\n ")}),(function(n){return!n.hasOutput&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n ")})),h=o.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||r.Z.text).fileBrowser,";\n ")})),b=o.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),k=o.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-6"})(["margin-bottom:","px;padding-bottom:","px;",""],u.cd*u.iI,u.iI,(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||r.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?u.iI:l,"px;\n ")})),E=o.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-7"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,l)},86532:function(n,e,t){t.d(e,{Z:function(){return J}});var o,r=t(21831),i=t(82394),c=t(75582),u=t(77837),d=t(38860),l=t.n(d),a=t(51774),s=t.n(a),f=t(9518),p=t(4804),v=t(82684),m=t(83455),h=t(86422),b=t(67971),k=t(16634),E=t(86673),g=t(54283),x=t(19711),y=t(23831),A=t(10503),T=t(49125),R=(T.iI,{height:10,width:10}),O=[h.tf.DATA_EXPORTER,h.tf.SENSOR],C=[h.Lq.GREY,h.Lq.PINK,h.Lq.TEAL,h.Lq.YELLOW];!function(n){n.NORTH="NORTH",n.SOUTH="SOUTH"}(o||(o={}));var D=t(73942),S=t(37391),Z=f.default.div.withConfig({displayName:"indexstyle__GraphContainerStyle",componentId:"sc-bc2ei5-0"})(["div:only-child{","}",""],S.w5,(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")})),P=f.default.div.withConfig({displayName:"indexstyle__NodeStyle",componentId:"sc-bc2ei5-1"})(["border-radius:","px;border:1px solid transparent;min-width:fit-content;"," "," "," ",""],D.BG,(function(n){return n.selected&&"\n border-color: ".concat((n.theme.content||y.Z.content).active,";\n ")}),(function(n){return n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n ")}),(function(n){return(n.isCancelled||n.disabled)&&"\n // opacity doesn\u2019t work on Safari\n border-color: ".concat((n.theme.content||y.Z.content).active,";\n border-style: dashed;\n cursor: not-allowed;\n ")}),(function(n){return n.disabled&&"\n &:hover {\n cursor: not-allowed;\n }\n "})),_=f.default.div.withConfig({displayName:"indexstyle__RuntimeStyle",componentId:"sc-bc2ei5-2"})(["margin-right:","px;padding:12px 4px;height:100%;width:50px;background:rgba(0,0,0,0.2);background-blend-mode:soft-light;"],2*T.iI),N=t(44162),L=t(90211),I=function(n){var e=n/1e3,t=4-Math.floor(e).toString().length,o=(0,L.QV)(e,t>=0?t:0),r="s";return o>1e3&&(o=(0,L.QV)(o/60,0),r="m"),"".concat(o).concat(r)},w=function(n,e){var t=n||{},r=t.id,i=t.side,c=null===e||void 0===e?void 0:e.id;return i===o.NORTH?null===r||void 0===r?void 0:r.endsWith("".concat(c,"-to")):i===o.SOUTH&&(null===r||void 0===r?void 0:r.startsWith(c))},j=t(28598);var B=function(n){var e=n.block,t=n.children,o=n.disabled,r=n.hasFailed,i=n.hideStatus,c=n.isCancelled,u=n.isInProgress,d=n.isQueued,l=n.isSuccessful,a=(n.onClick,n.runtime),s=n.selected,p=(0,v.useContext)(f.ThemeContext),m=e.color,h=e.type,R=e.uuid,D=!(u||d||r||l||c),S=l&&!(u||d),Z=r&&!(u||d),L="";return D?L="No status":S?L="Successful execution":Z?L="Failed execution":u?L="Currently executiing":c&&(L="Cancelled execution"),(0,j.jsx)(P,{backgroundColor:(0,N.qn)(h,{blockColor:m,theme:p}).accent,disabled:o,isCancelled:c,selected:s,children:(0,j.jsxs)(b.Z,{alignItems:"center",children:[a&&(0,j.jsx)(_,{backgroundColor:(0,N.qn)(h,{blockColor:m,theme:p}).accent,children:(0,j.jsx)(b.Z,{justifyContent:"center",children:(0,j.jsx)(x.ZP,{inverted:O.includes(h)||C.includes(m),xsmall:!0,children:I(a)})})}),!a&&(0,j.jsx)(E.Z,{ml:2}),!i&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(b.Z,{alignItems:"center",justifyContent:"center",style:{height:2*T.iI,width:2*T.iI},title:L,children:[u&&(0,j.jsx)(g.Z,{color:(p||y.Z).content.active,small:!0}),S&&(0,j.jsx)(A.Jr,{size:2*T.iI,success:!0}),Z&&(0,j.jsx)(A.x8,{danger:!0,size:1.5*T.iI}),D&&(0,j.jsx)(k.Z,{borderSize:1,size:1*T.iI})]}),(0,j.jsx)(E.Z,{ml:1})]}),(0,j.jsx)(b.Z,{alignItems:"center",justifyContent:"center",style:{padding:"8px 0",height:"100%"},children:(0,j.jsx)(x.ZP,{inverted:O.includes(h)||C.includes(m),monospace:!0,small:!0,children:t})})]})},R)},M=t(11135),U=t(98781),H=t(82531),F=t(66050),X=t(24224),q=t(25958),G=t(96510),Y=t(87323);function z(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function Q(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?z(Object(t),!0).forEach((function(e){(0,i.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):z(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var V=s()((0,u.Z)(l().mark((function n(){var e;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(3873)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Canvas);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),K=s()((0,u.Z)(l().mark((function n(){var e;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(3873)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Node);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),W=s()((0,u.Z)(l().mark((function n(){var e;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(3873)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Edge);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),$=(s()((0,u.Z)(l().mark((function n(){var e;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(3873)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.MarkerArrow);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),s()((0,u.Z)(l().mark((function n(){var e;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(3873)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Port);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}));var J=function(n){var e=n.blockRefs,t=n.blockStatus,i=n.disabled,u=n.editingBlock,d=n.enablePorts,l=void 0!==d&&d,a=n.fetchPipeline,s=n.height,k=n.heightOffset,g=void 0===k?10*T.iI:k,y=n.noStatus,A=n.onClickNode,O=n.pannable,C=void 0===O||O,D=n.pipeline,S=n.runningBlocks,P=void 0===S?[]:S,_=n.selectedBlock,L=n.setEditingBlock,I=n.setErrors,z=n.setSelectedBlock,J=n.showDynamicBlocks,nn=void 0!==J&&J,en=n.zoomable,tn=void 0===en||en,on=(0,v.useContext)(f.ThemeContext),rn=(0,v.useState)([]),cn=rn[0],un=rn[1],dn=(0,v.useState)(!1),ln=dn[0],an=dn[1],sn=(0,v.useState)(null),fn=sn[0],pn=sn[1],vn=l&&ln,mn=(null===u||void 0===u?void 0:u.upstreamBlocks)||{},hn=mn.block,bn=mn.values,kn=void 0===bn?[]:bn,En=(0,v.useMemo)((function(){return kn.length}),[kn]),gn=(0,v.useMemo)((function(){var n;return(null===D||void 0===D||null===(n=D.blocks)||void 0===n?void 0:n.filter((function(n){var e=n.type;return h.tf.SCRATCHPAD!==e})))||[]}),[null===D||void 0===D?void 0:D.blocks]),xn=(0,X.HK)((0,Y.cU)(gn,gn),(function(n){return n.block.uuid})),yn=(0,v.useMemo)((function(){return gn}),[gn,nn]),An=(0,v.useMemo)((function(){return(0,X.HK)(yn,(function(n){return n.uuid}))}),[yn]),Tn=(0,v.useMemo)((function(){return(0,X.HK)(P,(function(n){return n.uuid}))}),[P]),Rn=(0,m.Db)(H.ZP.blocks.pipelines.useUpdate(null===D||void 0===D?void 0:D.uuid,encodeURIComponent(null===hn||void 0===hn?void 0:hn.uuid)),{onSuccess:function(n){return(0,G.wD)(n,{callback:function(){L({upstreamBlocks:null}),null===a||void 0===a||a()},onErrorCallback:function(n,e){return null===I||void 0===I?void 0:I({errors:e,response:n})}})}}),On=(0,c.Z)(Rn,2),Cn=On[0],Dn=On[1].isLoading,Sn=(0,m.Db)((function(n){var e=n.fromBlock,t=n.toBlock,o=n.removeDependency;return H.ZP.blocks.pipelines.useUpdate(null===D||void 0===D?void 0:D.uuid,encodeURIComponent(t.uuid))({block:Q(Q({},t),{},{upstream_blocks:o?t.upstream_blocks.filter((function(n){return n!==e.uuid})):t.upstream_blocks.concat(e.uuid)})})}),{onSuccess:function(n){return(0,G.wD)(n,{callback:function(){null===a||void 0===a||a()},onErrorCallback:function(n,e){return null===I||void 0===I?void 0:I({errors:e,response:n})}})}}),Zn=(0,c.Z)(Sn,1)[0],Pn=(0,v.useCallback)((function(n){var t=n.type,o=n.uuid;if(null===z||void 0===z||z(n),un([]),null!==e&&void 0!==e&&e.current){var r,i=e.current["".concat(t,"s/").concat(o,".py")];null===i||void 0===i||null===(r=i.current)||void 0===r||r.scrollIntoView()}}),[e,z]),_n=(0,v.useCallback)((function(n){un([]),L((function(e){var t=e.upstreamBlocks.values||[],o=t.findIndex((function(e){var t=e.uuid;return n.uuid===t}));return Q(Q({},e),{},{upstreamBlocks:Q(Q({},e.upstreamBlocks),{},{values:o>=0?(0,X.oM)(t,o):t.concat(n)})})}))}),[L]),Nn=(0,v.useMemo)((function(){var n={};return yn.forEach((function(e){e.upstream_blocks.forEach((function(t){n[t]||(n[t]=[]),n[t].push(e)}))})),n}),[yn]),Ln=(0,v.useCallback)((function(n){var e;if(U.qL.INTEGRATION===(null===D||void 0===D?void 0:D.type)&&h.tf.TRANSFORMER!==n.type){var t,o={};if(h.t6.YAML===n.language&&(o=(0,p.Qc)(n.content)),h.tf.DATA_LOADER===n.type)e="".concat(n.uuid,": ").concat(null===(t=o)||void 0===t?void 0:t.source);else if(h.tf.DATA_EXPORTER===n.type){var r;e="".concat(n.uuid,": ").concat(null===(r=o)||void 0===r?void 0:r.destination)}}else h.tf.DBT===n.type&&h.t6.SQL===n.language&&(e=(0,q.$)(n,{fullPath:!0}));var i=(null===xn||void 0===xn?void 0:xn[n.uuid])||{},c=i.dynamic,u=i.dynamicUpstreamBlock,d=(i.reduceOutput,i.reduceOutputUpstreamBlock);return e||(e=n.uuid,c?e="[dynamic] ".concat(e):u&&!d&&(e="[dynamic child] ".concat(e))),e}),[xn,D]),In=(0,v.useMemo)((function(){var n=[],e=[];return yn.forEach((function(c){var u,d=Ln(c),l=c.type,a=c.upstream_blocks,s=void 0===a?[]:a,f=c.uuid,p=Nn[f],v=[];p?v.push.apply(v,(0,r.Z)(p.map((function(n){return Q(Q({},R),{},{id:"".concat(f,"-").concat(n.uuid,"-from"),side:o.SOUTH})})))):l!==h.tf.DATA_EXPORTER&&v.push(Q(Q({},R),{},{id:"".concat(f,"-from"),side:o.SOUTH})),0===s.length&&l!==h.tf.DATA_LOADER&&v.push(Q(Q({},R),{},{id:"".concat(f,"-to"),side:o.NORTH})),null===s||void 0===s||s.forEach((function(n){v.push(Q(Q({},R),{},{id:"".concat(n,"-").concat(f,"-to"),side:o.NORTH})),e.push({from:n,fromPort:"".concat(n,"-").concat(f,"-from"),id:"".concat(n,"-").concat(f),to:f,toPort:"".concat(n,"-").concat(f,"-to")})})),n.push({data:{block:c},height:37,id:f,ports:v,width:d.length*T.KF+(i?0:5*T.iI)+((null===hn||void 0===hn?void 0:hn.uuid)===c.uuid?19*T.KF:0)+(null!==t&&void 0!==t&&null!==(u=t[c.uuid])&&void 0!==u&&u.runtime?50:0)})})),{edges:e,nodes:n}}),[null===hn||void 0===hn?void 0:hn.uuid,t,yn,i,Ln,Nn]),wn=In.edges,jn=In.nodes,Bn=(0,v.useCallback)((function(n){if(y)return{};if(t){var e=t[n.uuid]||{},o=e.status,r=e.runtime;return{hasFailed:F.V.FAILED===o,isCancelled:F.V.CANCELLED===o,isInProgress:F.V.RUNNING===o,isQueued:F.V.INITIAL===o,isSuccessful:F.V.COMPLETED===o,runtime:r}}var i;return{hasFailed:h.DA.FAILED===n.status,isInProgress:Tn[n.uuid],isQueued:Tn[n.uuid]&&(null===(i=P[0])||void 0===i?void 0:i.uuid)!==n.uuid,isSuccessful:h.DA.EXECUTED===n.status}}),[t,y,P,Tn]),Mn=(0,v.useMemo)((function(){var n=0;return s&&(n+=s),g&&(n-=g),Math.max(0,n)}),[s,g]);return(0,j.jsxs)(j.Fragment,{children:[hn&&(0,j.jsxs)(E.Z,{my:3,px:T.cd,children:[(0,j.jsxs)(E.Z,{mb:T.cd,children:[(0,j.jsxs)(x.ZP,{children:["Select parent block(s) for ",(0,j.jsx)(x.ZP,{color:(0,N.qn)(hn.type,{blockColor:hn.color,theme:on}).accent,inline:!0,monospace:!0,children:hn.uuid}),":"]}),(0,j.jsx)(E.Z,{mt:1,children:kn.map((function(n,e){var t,o,r=n.uuid;return(0,j.jsxs)(x.ZP,{color:(0,N.qn)(null===(t=An[r])||void 0===t?void 0:t.type,{blockColor:null===(o=An[r])||void 0===o?void 0:o.type,theme:on}).accent,inline:!0,monospace:!0,children:[r,En>=2&&e<=En-2?(0,j.jsx)(x.ZP,{inline:!0,children:",\xa0"}):null]},r)}))})]}),(0,j.jsxs)(b.Z,{alignItems:"center",children:[(0,j.jsx)(M.ZP,{compact:!0,inline:!0,loading:Dn,onClick:function(){return Cn({block:Q(Q({},hn),{},{upstream_blocks:kn.map((function(n){return n.uuid}))})})},uuid:"DependencyGraph/save_parents",children:"Save dependencies"}),(0,j.jsx)(E.Z,{ml:1}),(0,j.jsx)(M.ZP,{compact:!0,inline:!0,noBackground:!0,onClick:function(){un([]),L({upstreamBlocks:null})},uuid:"DependencyGraph/cancel_save_parents",children:"Cancel"})]})]}),(0,j.jsx)(Z,{height:Mn,children:(0,j.jsx)(V,{arrow:null,disabled:i,edge:function(n){var e,t=An[n.source];return(0,j.jsx)(W,Q(Q({},n),{},{onClick:function(n,e){pn(null),un([e.id])},onRemove:function(n,e){var t=An[e.from],o=An[e.to];Zn({fromBlock:t,removeDependency:!0,toBlock:o}),un([])},removable:l&&!(null!==u&&void 0!==u&&u.upstreamBlocks),style:{stroke:null===(e=(0,N.qn)(null===t||void 0===t?void 0:t.type,{blockColor:null===t||void 0===t?void 0:t.color,theme:on}))||void 0===e?void 0:e.accent}}))},edges:wn,fit:!0,maxHeight:1e4,maxWidth:1e4,node:function(n){var e,t,o,r,c,d;return(0,j.jsx)(K,Q(Q({},n),{},{dragType:"port",linkable:!0,onClick:function(n,e){var t=e.data.block;pn(null),(null===hn||void 0===hn?void 0:hn.uuid)===t.uuid||(hn?_n(t):(null===A||void 0===A||A({block:t}),setTimeout((function(){Pn(t)}),1)))},onEnter:function(){null!==u&&void 0!==u&&u.upstreamBlocks||an(!0)},onLeave:function(){return an(!1)},port:vn&&(null===fn||w(fn,n))?(0,j.jsx)($,{onDrag:function(){return an(!0)},onDragEnd:function(){an(!1),pn(null)},onDragStart:function(n,e,t){pn({id:null===t||void 0===t?void 0:t.id,side:null===t||void 0===t?void 0:t.side})},onEnter:function(){return an(!0)},rx:10,ry:10,style:{fill:(0,N.qn)(null===n||void 0===n||null===(e=n.properties)||void 0===e||null===(t=e.data)||void 0===t||null===(o=t.block)||void 0===o?void 0:o.type,{blockColor:null===n||void 0===n||null===(r=n.properties)||void 0===r||null===(c=r.data)||void 0===c||null===(d=c.block)||void 0===d?void 0:d.color,theme:on}).accent,stroke:"white",strokeWidth:"1px"}}):null,style:{fill:"transparent",stroke:"transparent",strokeWidth:0},children:function(n){var e=n.node.data.block,t=Bn(e);return(0,j.jsx)("foreignObject",{height:n.height,style:{pointerEvents:"none"},width:n.width,x:0,y:0,children:(0,j.jsxs)(B,Q(Q({block:e,disabled:(null===hn||void 0===hn?void 0:hn.uuid)===e.uuid,hideStatus:i,selected:hn?!!(0,X.sE)(kn,(function(n){return n.uuid===e.uuid})):(null===_||void 0===_?void 0:_.uuid)===e.uuid},t),{},{children:[Ln(e),(null===hn||void 0===hn?void 0:hn.uuid)===e.uuid&&" (editing)"]}),e.uuid)})}}))},nodes:jn,onNodeLink:function(n,e,t,o){var r,i=An[e.id],c=An[t.id],u=(null===D||void 0===D?void 0:D.type)===U.qL.INTEGRATION&&((null===i||void 0===i?void 0:i.type)===h.tf.DATA_EXPORTER||(null===i||void 0===i?void 0:i.type)===h.tf.DATA_LOADER&&(null===c||void 0===c?void 0:c.type)===h.tf.DATA_EXPORTER);null!==i&&void 0!==i&&null!==(r=i.upstream_blocks)&&void 0!==r&&r.includes(c.uuid)||e.id===t.id||u||Zn({fromBlock:i,toBlock:c})},onNodeLinkCheck:function(n,e,t){return!wn.some((function(n){return n.from===e.id&&n.to===t.id}))},pannable:C,selections:cn,zoomable:tn})})]})}},66050:function(n,e,t){var o;t.d(e,{V:function(){return o}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running"}(o||(o={}))},86422:function(n,e,t){t.d(e,{$W:function(){return f},DA:function(){return s},HX:function(){return m},J8:function(){return v},Lq:function(){return l},Qj:function(){return h},Ut:function(){return g},V4:function(){return E},VZ:function(){return p},dO:function(){return a},f2:function(){return k},iZ:function(){return b},t6:function(){return c},tf:function(){return d}});var o,r,i,c,u=t(82394);!function(n){n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(c||(c={}));var d,l,a=(o={},(0,u.Z)(o,c.PYTHON,"PY"),(0,u.Z)(o,c.R,"R"),(0,u.Z)(o,c.SQL,"SQL"),(0,u.Z)(o,c.YAML,"YAML"),o);!function(n){n.CHART="chart",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.TRANSFORMER="transformer"}(d||(d={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(l||(l={}));var s,f=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.TRANSFORMER],p=[d.DATA_EXPORTER,d.DATA_LOADER],v=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],m=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],h=[d.CHART,d.SCRATCHPAD,d.SENSOR],b=[d.EXTENSION,d.SCRATCHPAD];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(s||(s={}));var k=[d.CUSTOM,d.DATA_EXPORTER,d.TRANSFORMER],E=(r={},(0,u.Z)(r,d.CUSTOM,"Custom"),(0,u.Z)(r,d.DATA_EXPORTER,"Data exporter"),(0,u.Z)(r,d.DATA_LOADER,"Data loader"),(0,u.Z)(r,d.EXTENSION,"Extension"),(0,u.Z)(r,d.SCRATCHPAD,"Scratchpad"),(0,u.Z)(r,d.SENSOR,"Sensor"),(0,u.Z)(r,d.TRANSFORMER,"Transformer"),r),g=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER,d.SENSOR];i={},(0,u.Z)(i,d.DATA_EXPORTER,"DE"),(0,u.Z)(i,d.DATA_LOADER,"DL"),(0,u.Z)(i,d.SCRATCHPAD,"SP"),(0,u.Z)(i,d.SENSOR,"SR"),(0,u.Z)(i,d.TRANSFORMER,"TF")},87323:function(n,e,t){t.d(e,{cU:function(){return c}});var o=t(82684),r=t(24224);function i(n,e){return function(n,e,t){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{includeAllNodes:!1},i=(0,r.HK)(t,(function(n){return n.uuid})),c=(o||{}).includeAllNodes,u=[];function d(t){if(t){var o=(t[e]||[]).reduce((function(e,t){return n.uuid===t?e:e.concat(i[t])}),[]);(0===o.length||c&&n.uuid!==t.uuid)&&u.push(t),o.forEach((function(n){d(n)}))}}return d(n),u}(n,"upstream_blocks",e,{includeAllNodes:!0})}function c(n,e){return(0,o.useMemo)((function(){return n.map((function(n){var t=function(n,e){var t=i(n,e);return{dynamicUpstreamBlock:t.find((function(e){var t=e.configuration,o=e.uuid;return(null===t||void 0===t?void 0:t.dynamic)&&o!==(null===n||void 0===n?void 0:n.uuid)})),reduceOutputUpstreamBlock:t.find((function(e){var t=e.configuration,o=e.uuid;return(null===t||void 0===t?void 0:t.reduce_output)&&o!==(null===n||void 0===n?void 0:n.uuid)}))}}(n,e),o=t.dynamicUpstreamBlock,r=t.reduceOutputUpstreamBlock,c=(n||{}).configuration||{};return{block:n,dynamic:!!c.dynamic,dynamicUpstreamBlock:o,reduceOutput:!!c.reduce_output,reduceOutputUpstreamBlock:r}}))}),[e,null===e||void 0===e?void 0:e.map((function(n){var e=n.configuration;return null===e||void 0===e?void 0:e.dynamic})),null===e||void 0===e?void 0:e.map((function(n){var e=n.configuration;return null===e||void 0===e?void 0:e.reduce_output})),null===e||void 0===e?void 0:e.map((function(n){return n.upstream_blocks}))])}},25958:function(n,e,t){t.d(e,{$:function(){return r}});var o=t(17717);function r(n,e){var t,r=null===e||void 0===e?void 0:e.fullPath,i=null===n||void 0===n||null===(t=n.configuration)||void 0===t?void 0:t.file_path;if(r)return null===n||void 0===n?void 0:n.uuid;if(i){var c=i.split(o.sep),u=c[c.length-1].split(".");return u.pop(),u.join(".")}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7400],{98677:function(n,t,e){function r(n,t,e){n=+n,t=+t,e=(i=arguments.length)<2?(t=n,n=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((t-n)/e)),o=new Array(i);++r<i;)o[r]=n+r*e;return o}e.d(t,{Z:function(){return c}});var i=e(8208),o=e(8162);function u(){var n,t,e=(0,o.Z)().unknown(void 0),a=e.domain,c=e.range,l=0,f=1,d=!1,s=0,h=0,p=.5;function v(){var e=a().length,i=f<l,o=i?f:l,u=i?l:f;n=(u-o)/Math.max(1,e-s+2*h),d&&(n=Math.floor(n)),o+=(u-o-n*(e-s))*p,t=n*(1-s),d&&(o=Math.round(o),t=Math.round(t));var v=r(e).map((function(t){return o+n*t}));return c(i?v.reverse():v)}return delete e.unknown,e.domain=function(n){return arguments.length?(a(n),v()):a()},e.range=function(n){return arguments.length?([l,f]=n,l=+l,f=+f,v()):[l,f]},e.rangeRound=function(n){return[l,f]=n,l=+l,f=+f,d=!0,v()},e.bandwidth=function(){return t},e.step=function(){return n},e.round=function(n){return arguments.length?(d=!!n,v()):d},e.padding=function(n){return arguments.length?(s=Math.min(1,h=+n),v()):s},e.paddingInner=function(n){return arguments.length?(s=Math.min(1,n),v()):s},e.paddingOuter=function(n){return arguments.length?(h=+n,v()):h},e.align=function(n){return arguments.length?(p=Math.max(0,Math.min(1,n)),v()):p},e.copy=function(){return u(a(),[l,f]).round(d).paddingInner(s).paddingOuter(h).align(p)},i.o.apply(v(),arguments)}var a=(0,e(93342).Z)("domain","range","reverse","align","padding","round");function c(n){return a(u(),n)}},62072:function(n,t,e){function r(n){return null==n?void 0:n[0]}function i(n){return null==n?void 0:n[1]}e.d(t,{l8:function(){return r},xf:function(){return i}})},53989:function(n,t,e){function r(n){if("bandwidth"in n)return n.bandwidth();var t=n.range(),e=n.domain();return Math.abs(t[t.length-1]-t[0])/e.length}e.d(t,{Z:function(){return r}})},59309:function(n,t,e){e.d(t,{ZP:function(){return l}});var r=e(12759),i=e(27500),o=e(82610),u=e(34812),a=e(77944),c={expand:r.Z,diverging:i.Z,none:o.Z,silhouette:u.Z,wiggle:a.Z};Object.keys(c);function l(n){return n&&c[n]||c.none}},18246:function(n,t,e){e.d(t,{ZP:function(){return l}});var r=e(39586),i=e(25516),o=e(54164),u=e(8512),a=e(2010),c={ascending:r.Z,descending:i.Z,insideout:o.Z,none:u.Z,reverse:a.Z};Object.keys(c);function l(n){return n&&c[n]||c.none}},13946:function(n,t,e){e.d(t,{t:function(){return r}});var r=Array.prototype.slice},27500:function(n,t,e){function r(n,t){if((a=n.length)>0)for(var e,r,i,o,u,a,c=0,l=n[t[0]].length;c<l;++c)for(o=u=0,e=0;e<a;++e)(i=(r=n[t[e]][c])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=u,r[0]=u+=i):(r[0]=0,r[1]=i)}e.d(t,{Z:function(){return r}})},12759:function(n,t,e){e.d(t,{Z:function(){return i}});var r=e(82610);function i(n,t){if((i=n.length)>0){for(var e,i,o,u=0,a=n[0].length;u<a;++u){for(o=e=0;e<i;++e)o+=n[e][u][1]||0;if(o)for(e=0;e<i;++e)n[e][u][1]/=o}(0,r.Z)(n,t)}}},82610:function(n,t,e){function r(n,t){if((i=n.length)>1)for(var e,r,i,o=1,u=n[t[0]],a=u.length;o<i;++o)for(r=u,u=n[t[o]],e=0;e<a;++e)u[e][1]+=u[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]}e.d(t,{Z:function(){return r}})},34812:function(n,t,e){e.d(t,{Z:function(){return i}});var r=e(82610);function i(n,t){if((e=n.length)>0){for(var e,i=0,o=n[t[0]],u=o.length;i<u;++i){for(var a=0,c=0;a<e;++a)c+=n[a][i][1]||0;o[i][1]+=o[i][0]=-c/2}(0,r.Z)(n,t)}}},77944:function(n,t,e){e.d(t,{Z:function(){return i}});var r=e(82610);function i(n,t){if((o=n.length)>0&&(i=(e=n[t[0]]).length)>0){for(var e,i,o,u=0,a=1;a<i;++a){for(var c=0,l=0,f=0;c<o;++c){for(var d=n[t[c]],s=d[a][1]||0,h=(s-(d[a-1][1]||0))/2,p=0;p<c;++p){var v=n[t[p]];h+=(v[a][1]||0)-(v[a-1][1]||0)}l+=s,f+=h*s}e[a-1][1]+=e[a-1][0]=u,l&&(u-=f/l)}e[a-1][1]+=e[a-1][0]=u,(0,r.Z)(n,t)}}},34128:function(n,t,e){e.d(t,{Z:function(){return i}});var r=e(8512);function i(n){var t=n.map(o);return(0,r.Z)(n).sort((function(n,e){return t[n]-t[e]}))}function o(n){for(var t,e=-1,r=0,i=n.length,o=-1/0;++e<i;)(t=+n[e][1])>o&&(o=t,r=e);return r}},39586:function(n,t,e){e.d(t,{S:function(){return o},Z:function(){return i}});var r=e(8512);function i(n){var t=n.map(o);return(0,r.Z)(n).sort((function(n,e){return t[n]-t[e]}))}function o(n){for(var t,e=0,r=-1,i=n.length;++r<i;)(t=+n[r][1])&&(e+=t);return e}},25516:function(n,t,e){e.d(t,{Z:function(){return i}});var r=e(39586);function i(n){return(0,r.Z)(n).reverse()}},54164:function(n,t,e){e.d(t,{Z:function(){return o}});var r=e(34128),i=e(39586);function o(n){var t,e,o=n.length,u=n.map(i.S),a=(0,r.Z)(n),c=0,l=0,f=[],d=[];for(t=0;t<o;++t)e=a[t],c<l?(c+=u[e],f.push(e)):(l+=u[e],d.push(e));return d.reverse().concat(f)}},8512:function(n,t,e){function r(n){for(var t=n.length,e=new Array(t);--t>=0;)e[t]=t;return e}e.d(t,{Z:function(){return r}})},2010:function(n,t,e){e.d(t,{Z:function(){return i}});var r=e(8512);function i(n){return(0,r.Z)(n).reverse()}},75823:function(n,t,e){e.d(t,{Z:function(){return c}});var r=e(13946),i=e(90875),o=e(82610),u=e(8512);function a(n,t){return n[t]}function c(){var n=(0,i.Z)([]),t=u.Z,e=o.Z,c=a;function l(r){var i,o,u=n.apply(this,arguments),a=r.length,l=u.length,f=new Array(l);for(i=0;i<l;++i){for(var d,s=u[i],h=f[i]=new Array(a),p=0;p<a;++p)h[p]=d=[0,+c(r[p],s,p,r)],d.data=r[p];h.key=s}for(i=0,o=t(f);i<l;++i)f[o[i]].index=i;return e(f,o),f}return l.keys=function(t){return arguments.length?(n="function"===typeof t?t:(0,i.Z)(r.t.call(t)),l):n},l.value=function(n){return arguments.length?(c="function"===typeof n?n:(0,i.Z)(+n),l):c},l.order=function(n){return arguments.length?(t=null==n?u.Z:"function"===typeof n?n:(0,i.Z)(r.t.call(n)),l):t},l.offset=function(n){return arguments.length?(e=null==n?o.Z:n,l):e},l}},21679:function(n,t,e){e.d(t,{Z:function(){return B}});var r=e(26304),i=e(82394),o=e(21831),u=e(82684),a=e(84969),c=e(90948),l=e(63588),f=e.n(l),d=e(75823),s=e(29989),h=e(62072),p=e(53989),v=e(49894),g=e(18246),Z=e(59309),m=e(65743),y=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function x(){return x=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},x.apply(this,arguments)}function b(n){var t=n.data,e=n.className,r=n.top,i=n.left,o=n.x,a=n.y0,c=void 0===a?h.l8:a,l=n.y1,b=void 0===l?h.xf:l,j=n.xScale,O=n.yScale,k=n.color,w=n.keys,P=n.value,E=n.order,M=n.offset,T=n.children,A=function(n,t){if(null==n)return{};var e,r,i={},o=Object.keys(n);for(r=0;r<o.length;r++)e=o[r],t.indexOf(e)>=0||(i[e]=n[e]);return i}(n,y),S=(0,d.Z)();w&&S.keys(w),P&&(0,v.Z)(S.value,P),E&&S.order((0,g.ZP)(E)),M&&S.offset((0,Z.ZP)(M));var _=S(t),L=(0,p.Z)(j),I=_.map((function(n,t){var e=n.key;return{index:t,key:e,bars:n.map((function(t,r){var i=(O(c(t))||0)-(O(b(t))||0),u=O(b(t)),a="bandwidth"in j?j(o(t.data)):Math.max((j(o(t.data))||0)-L/2);return{bar:t,key:e,index:r,height:i,width:L,x:a||0,y:u||0,color:k(n.key,r)}}))}}));return T?u.createElement(u.Fragment,null,T(I)):u.createElement(s.Z,{className:f()("visx-bar-stack",e),top:r,left:i},I.map((function(n){return n.bars.map((function(t){return u.createElement(m.Z,x({key:"bar-stack-"+n.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},A))}))})))}var j=e(67778),O=e(17066),k=e(29179),w=e(65376),P=e(48072),E=e(98677),M=e(84181),T=e(24903),A=e(67971),S=e(26226),_=e(19711),L=e(52359),I=e(23831),N=e(73942),D=e(2005),C=e(49125),F=e(344),R=e(28598),V=["height","width","xAxisLabel","yAxisLabel"];function Y(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function U(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(e),!0).forEach((function(t){(0,i.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Y(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function z(n){var t=n.colors,e=n.data,r=n.getXValue,i=(n.getYValue,n.height),u=n.keys,l=n.margin,f=n.numYTicks,d=n.showLegend,h=n.tooltipLeftOffset,p=void 0===h?0:h,v=n.width,g=n.xLabelFormat,Z=n.yLabelFormat,m=(0,k.Z)(),y=m.hideTooltip,x=m.showTooltip,A=m.tooltipData,S=m.tooltipLeft,L=m.tooltipOpen,C=m.tooltipTop,V=v-(l.left+l.right),Y=i-(l.bottom+l.top),z=e.reduce((function(n,t){var e=t,r=u.reduce((function(n,t){return Number(e[t])&&(n+=Number(e[t])),n}),0);return n.push(r),n}),[]),B=(0,E.Z)({domain:e.map(r),padding:.4,range:[0,V],round:!1}),H=(0,M.Z)({domain:[0,Math.max.apply(Math,(0,o.Z)(z))],range:[Y,0],round:!0}),X=(0,T.Z)({domain:u,range:t});return(0,R.jsxs)("div",{style:{position:"relative"},children:[(0,R.jsxs)("svg",{height:i,width:v,children:[(0,R.jsx)("rect",{fill:"#2E3036",height:i,rx:14,width:v,x:0,y:0}),(0,R.jsx)(j.Z,{height:Y,left:l.left,scale:H,stroke:"black",strokeOpacity:.2,top:l.top,width:V}),(0,R.jsx)(s.Z,{top:l.top,children:(0,R.jsx)(b,{color:X,data:e,keys:u,value:function(n,t){return n[t]||0},x:r,xScale:B,yScale:H,children:function(n){return n.map((function(n){return n.bars.map((function(t){return(0,R.jsx)("rect",{fill:t.color,height:t.height,onMouseLeave:y,onMouseMove:function(n){var e=(0,P.Z)(n),r=t.x+t.width/2+p;x({tooltipData:t,tooltipLeft:r,tooltipTop:(null===e||void 0===e?void 0:e.y)+10})},width:t.width,x:t.x,y:t.y},"bar-stack-".concat(n.index,"-").concat(t.index))}))}))}})}),(0,R.jsx)(a.Z,{hideTicks:!0,left:l.left,numTicks:f,scale:H,stroke:I.Z.content.muted,tickFormat:function(n){return Z?Z(n):(0,F.P5)(n)},tickLabelProps:function(){return{fill:I.Z.content.muted,fontFamily:D.ry,fontSize:11,textAnchor:"end",transform:"translate(0,2.5)"}},top:l.top}),(0,R.jsx)(c.Z,{hideTicks:!0,left:l.left,scale:B,stroke:I.Z.content.muted,tickFormat:g,tickLabelProps:function(){return{fill:I.Z.content.muted,fontFamily:D.ry,fontSize:11,textAnchor:"middle"}},top:Y+l.top})]}),d&&(0,R.jsx)("div",{style:{display:"flex",fontSize:"14px",justifyContent:"center",position:"absolute",top:l.top/2-10,width:"100%"},children:(0,R.jsx)(O.Z,{direction:"row",labelMargin:"0 15px 0 0",scale:X})}),L&&A&&(0,R.jsxs)(w.Z,{left:S,style:U(U({},w.j),{},{backgroundColor:I.Z.background.page,borderRadius:"".concat(N.TR,"px"),padding:".3rem .4rem"}),top:C,children:[(0,R.jsx)(_.ZP,{bold:!0,color:X(A.key),children:A.key}),(0,R.jsx)(_.ZP,{children:A.bar.data[A.key]}),(0,R.jsx)(_.ZP,{children:r(A.bar.data)})]})]})}var B=function(n){var t=n.height,e=n.width,i=n.xAxisLabel,o=n.yAxisLabel,u=(0,r.Z)(n,V);return(0,R.jsx)(R.Fragment,{children:(0,R.jsxs)("div",{style:{height:t,marginBottom:C.iI,width:e},children:[o&&(0,R.jsx)(A.Z,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,R.jsx)(L.Z,{children:(0,R.jsx)(_.ZP,{center:!0,muted:!0,small:!0,children:o})})}),(0,R.jsx)("div",{style:{height:t,width:o?0===e?e:e-28:e},children:(0,R.jsx)(S.Z,{children:function(n){var t=n.height,e=n.width;return(0,R.jsx)(z,U(U({},u),{},{height:t,width:e}))}})}),i&&(0,R.jsx)("div",{style:{paddingLeft:o?36:0,paddingTop:4},children:(0,R.jsx)(_.ZP,{center:!0,muted:!0,small:!0,children:i})})]})})}},93348:function(n,t,e){e.d(t,{TR:function(){return d},U5:function(){return c},Xm:function(){return o},Z4:function(){return f},fq:function(){return a},kJ:function(){return l}});var r,i,o,u=e(82394);!function(n){n.API="api",n.EVENT="event",n.TIME="time"}(o||(o={}));var a,c,l,f=(r={},(0,u.Z)(r,o.API,(function(){return"API"})),(0,u.Z)(r,o.EVENT,(function(){return"event"})),(0,u.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive"}(a||(a={})),function(n){n.ONCE="@once",n.HOURLY="@hourly",n.DAILY="@daily",n.WEEKLY="@weekly",n.MONTHLY="@monthly"}(c||(c={})),function(n){n.CREATED_AT="created_at",n.NAME="name",n.PIPELINE="pipeline_uuid",n.STATUS="status",n.TYPE="schedule_type"}(l||(l={}));var d=(i={},(0,u.Z)(i,l.CREATED_AT,"Created at"),(0,u.Z)(i,l.NAME,"Name"),(0,u.Z)(i,l.PIPELINE,"Pipeline"),(0,u.Z)(i,l.STATUS,"Status"),(0,u.Z)(i,l.TYPE,"Type"),i)},67400:function(n,t,e){e.r(t),e.d(t,{BAR_STACK_COLORS:function(){return L},BAR_STACK_STATUSES:function(){return I}});var r=e(77837),i=e(75582),o=e(82394),u=e(38860),a=e.n(u),c=e(82684),l=e(12691),f=e.n(l),d=e(92083),s=e.n(d),h=e(9518),p=e(21679),v=e(67971),g=e(87372),Z=e(10919),m=e(87465),y=e(41788),x=e(86673),b=e(19711),j=e(82531),O=e(23831),k=e(10503),w=e(92953),P=e(93348),E=e(49125),M=e(90211),T=e(28598);function A(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 S(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?A(Object(e),!0).forEach((function(t){(0,o.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):A(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var _=h.default.div.withConfig({displayName:"monitors__GradientTextStyle",componentId:"sc-1is2m2l-0"})(["background:linear-gradient(90deg,#7D55EC 28.12%,#2AB2FE 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;"]),L=[O.Z.accent.warning,O.Z.background.success,O.Z.accent.negative,O.Z.content.active,O.Z.interactive.linkPrimary],I=["cancelled","completed","failed","initial","running"];function N(n){var t=n.pipeline.uuid,e=j.ZP.pipeline_schedules.pipelines.list(t).data,r=(0,c.useMemo)((function(){return null===e||void 0===e?void 0:e.pipeline_schedules}),[e]),u=(0,c.useMemo)((function(){return null===r||void 0===r?void 0:r.reduce((function(n,t){return S(S({},n),{},(0,o.Z)({},null===t||void 0===t?void 0:t.id,t))}),{})}),[r]),a=j.ZP.pipelines.detail(t,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,l=(0,c.useMemo)((function(){return S(S({},null===a||void 0===a?void 0:a.pipeline),{},{uuid:t})}),[a,t]),d=j.ZP.monitor_stats.detail("pipeline_run_count",{pipeline_uuid:null===l||void 0===l?void 0:l.uuid}).data,h=((null===d||void 0===d?void 0:d.monitor_stat)||{}).stats,y=(0,c.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}),[]),O=(0,c.useMemo)((function(){if(h){var n=Object.entries(h).reduce((function(n,t){var e=(0,i.Z)(t,2),r=(e[0],e[1].data),o={};return Object.entries(r).forEach((function(t){var e=(0,i.Z)(t,2),r=e[0],u=e[1],a={};r in n&&(a=n[r]);var c={};Object.entries(u).forEach((function(n){var t,e=(0,i.Z)(n,2),r=e[0],o=e[1],u=null!==(t=a)&&void 0!==t&&t[r]?a[r]:0;c[r]=u+o})),o[r]=S(S({},a),c)})),S(S({},n),o)}),{});return y.map((function(t){return S({date:t},n[t]||{})}))}return[]}),[y,h]),A=(0,c.useMemo)((function(){if(h)return Object.entries(h).reduce((function(n,t){var e=(0,i.Z)(t,2),r=e[0],u=e[1].data,a=y.map((function(n){return S({date:n},u[n]||{})}));return S(S({},n),{},(0,o.Z)({},r,a))}),{})}),[y,h]),N=(0,c.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[]);return(0,T.jsx)(m.Z,{breadcrumbs:N,monitorType:w.a.PIPELINE_RUNS,pipeline:l,children:(0,T.jsxs)(x.Z,{mt:2,mx:2,children:[(0,T.jsx)(x.Z,{ml:1,children:(0,T.jsx)(_,{children:(0,T.jsx)(g.Z,{children:"All pipeline runs"})})}),(0,T.jsx)(x.Z,{mt:1,children:(0,T.jsx)(p.Z,{colors:L,data:O,getXValue:function(n){return n.date},height:200,keys:I,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:w.C,xLabelFormat:function(n){return s()(n).format("MMM DD")}})}),A&&Object.entries(A).map((function(n){var e,r=(0,i.Z)(n,2),o=r[0],a=r[1],c=null===u||void 0===u?void 0:u[o];return(0,T.jsxs)(x.Z,{mt:3,children:[(0,T.jsxs)(v.Z,{alignItems:"center",children:[(0,T.jsx)(x.Z,{mx:1,children:(0,T.jsx)(_,{children:(0,T.jsx)(b.ZP,{bold:!0,large:!0,children:(0,M.kC)(null===(e=P.Z4[null===c||void 0===c?void 0:c.schedule_type])||void 0===e?void 0:e.call(P.Z4))})})}),(0,T.jsx)(f(),{as:"/pipelines/".concat(t,"/triggers/").concat(null===c||void 0===c?void 0:c.id),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,T.jsx)(Z.Z,{children:(0,T.jsxs)(v.Z,{alignItems:"center",children:[(0,T.jsx)(g.Z,{level:5,children:(null===c||void 0===c?void 0:c.name)||o}),(0,T.jsx)(x.Z,{ml:1}),(0,T.jsx)(k._Q,{default:!0,size:2*E.iI})]})})})]}),(0,T.jsx)(x.Z,{mt:1,children:(0,T.jsx)(p.Z,{colors:L,data:a,getXValue:function(n){return n.date},height:200,keys:I,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:w.C,xLabelFormat:function(n){return s()(n).format("MMM DD")}})})]},o)}))]})})}N.getInitialProps=function(){var n=(0,r.Z)(a().mark((function n(t){var e;return a().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,y.Z)(N)}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7400],{98677:function(n,t,e){function r(n,t,e){n=+n,t=+t,e=(i=arguments.length)<2?(t=n,n=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((t-n)/e)),o=new Array(i);++r<i;)o[r]=n+r*e;return o}e.d(t,{Z:function(){return c}});var i=e(8208),o=e(8162);function u(){var n,t,e=(0,o.Z)().unknown(void 0),a=e.domain,c=e.range,l=0,f=1,d=!1,s=0,h=0,p=.5;function v(){var e=a().length,i=f<l,o=i?f:l,u=i?l:f;n=(u-o)/Math.max(1,e-s+2*h),d&&(n=Math.floor(n)),o+=(u-o-n*(e-s))*p,t=n*(1-s),d&&(o=Math.round(o),t=Math.round(t));var v=r(e).map((function(t){return o+n*t}));return c(i?v.reverse():v)}return delete e.unknown,e.domain=function(n){return arguments.length?(a(n),v()):a()},e.range=function(n){return arguments.length?([l,f]=n,l=+l,f=+f,v()):[l,f]},e.rangeRound=function(n){return[l,f]=n,l=+l,f=+f,d=!0,v()},e.bandwidth=function(){return t},e.step=function(){return n},e.round=function(n){return arguments.length?(d=!!n,v()):d},e.padding=function(n){return arguments.length?(s=Math.min(1,h=+n),v()):s},e.paddingInner=function(n){return arguments.length?(s=Math.min(1,n),v()):s},e.paddingOuter=function(n){return arguments.length?(h=+n,v()):h},e.align=function(n){return arguments.length?(p=Math.max(0,Math.min(1,n)),v()):p},e.copy=function(){return u(a(),[l,f]).round(d).paddingInner(s).paddingOuter(h).align(p)},i.o.apply(v(),arguments)}var a=(0,e(93342).Z)("domain","range","reverse","align","padding","round");function c(n){return a(u(),n)}},62072:function(n,t,e){function r(n){return null==n?void 0:n[0]}function i(n){return null==n?void 0:n[1]}e.d(t,{l8:function(){return r},xf:function(){return i}})},53989:function(n,t,e){function r(n){if("bandwidth"in n)return n.bandwidth();var t=n.range(),e=n.domain();return Math.abs(t[t.length-1]-t[0])/e.length}e.d(t,{Z:function(){return r}})},59309:function(n,t,e){e.d(t,{ZP:function(){return l}});var r=e(12759),i=e(27500),o=e(82610),u=e(34812),a=e(77944),c={expand:r.Z,diverging:i.Z,none:o.Z,silhouette:u.Z,wiggle:a.Z};Object.keys(c);function l(n){return n&&c[n]||c.none}},18246:function(n,t,e){e.d(t,{ZP:function(){return l}});var r=e(39586),i=e(25516),o=e(54164),u=e(8512),a=e(2010),c={ascending:r.Z,descending:i.Z,insideout:o.Z,none:u.Z,reverse:a.Z};Object.keys(c);function l(n){return n&&c[n]||c.none}},13946:function(n,t,e){e.d(t,{t:function(){return r}});var r=Array.prototype.slice},27500:function(n,t,e){function r(n,t){if((a=n.length)>0)for(var e,r,i,o,u,a,c=0,l=n[t[0]].length;c<l;++c)for(o=u=0,e=0;e<a;++e)(i=(r=n[t[e]][c])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=u,r[0]=u+=i):(r[0]=0,r[1]=i)}e.d(t,{Z:function(){return r}})},12759:function(n,t,e){e.d(t,{Z:function(){return i}});var r=e(82610);function i(n,t){if((i=n.length)>0){for(var e,i,o,u=0,a=n[0].length;u<a;++u){for(o=e=0;e<i;++e)o+=n[e][u][1]||0;if(o)for(e=0;e<i;++e)n[e][u][1]/=o}(0,r.Z)(n,t)}}},82610:function(n,t,e){function r(n,t){if((i=n.length)>1)for(var e,r,i,o=1,u=n[t[0]],a=u.length;o<i;++o)for(r=u,u=n[t[o]],e=0;e<a;++e)u[e][1]+=u[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]}e.d(t,{Z:function(){return r}})},34812:function(n,t,e){e.d(t,{Z:function(){return i}});var r=e(82610);function i(n,t){if((e=n.length)>0){for(var e,i=0,o=n[t[0]],u=o.length;i<u;++i){for(var a=0,c=0;a<e;++a)c+=n[a][i][1]||0;o[i][1]+=o[i][0]=-c/2}(0,r.Z)(n,t)}}},77944:function(n,t,e){e.d(t,{Z:function(){return i}});var r=e(82610);function i(n,t){if((o=n.length)>0&&(i=(e=n[t[0]]).length)>0){for(var e,i,o,u=0,a=1;a<i;++a){for(var c=0,l=0,f=0;c<o;++c){for(var d=n[t[c]],s=d[a][1]||0,h=(s-(d[a-1][1]||0))/2,p=0;p<c;++p){var v=n[t[p]];h+=(v[a][1]||0)-(v[a-1][1]||0)}l+=s,f+=h*s}e[a-1][1]+=e[a-1][0]=u,l&&(u-=f/l)}e[a-1][1]+=e[a-1][0]=u,(0,r.Z)(n,t)}}},34128:function(n,t,e){e.d(t,{Z:function(){return i}});var r=e(8512);function i(n){var t=n.map(o);return(0,r.Z)(n).sort((function(n,e){return t[n]-t[e]}))}function o(n){for(var t,e=-1,r=0,i=n.length,o=-1/0;++e<i;)(t=+n[e][1])>o&&(o=t,r=e);return r}},39586:function(n,t,e){e.d(t,{S:function(){return o},Z:function(){return i}});var r=e(8512);function i(n){var t=n.map(o);return(0,r.Z)(n).sort((function(n,e){return t[n]-t[e]}))}function o(n){for(var t,e=0,r=-1,i=n.length;++r<i;)(t=+n[r][1])&&(e+=t);return e}},25516:function(n,t,e){e.d(t,{Z:function(){return i}});var r=e(39586);function i(n){return(0,r.Z)(n).reverse()}},54164:function(n,t,e){e.d(t,{Z:function(){return o}});var r=e(34128),i=e(39586);function o(n){var t,e,o=n.length,u=n.map(i.S),a=(0,r.Z)(n),c=0,l=0,f=[],d=[];for(t=0;t<o;++t)e=a[t],c<l?(c+=u[e],f.push(e)):(l+=u[e],d.push(e));return d.reverse().concat(f)}},8512:function(n,t,e){function r(n){for(var t=n.length,e=new Array(t);--t>=0;)e[t]=t;return e}e.d(t,{Z:function(){return r}})},2010:function(n,t,e){e.d(t,{Z:function(){return i}});var r=e(8512);function i(n){return(0,r.Z)(n).reverse()}},75823:function(n,t,e){e.d(t,{Z:function(){return c}});var r=e(13946),i=e(90875),o=e(82610),u=e(8512);function a(n,t){return n[t]}function c(){var n=(0,i.Z)([]),t=u.Z,e=o.Z,c=a;function l(r){var i,o,u=n.apply(this,arguments),a=r.length,l=u.length,f=new Array(l);for(i=0;i<l;++i){for(var d,s=u[i],h=f[i]=new Array(a),p=0;p<a;++p)h[p]=d=[0,+c(r[p],s,p,r)],d.data=r[p];h.key=s}for(i=0,o=t(f);i<l;++i)f[o[i]].index=i;return e(f,o),f}return l.keys=function(t){return arguments.length?(n="function"===typeof t?t:(0,i.Z)(r.t.call(t)),l):n},l.value=function(n){return arguments.length?(c="function"===typeof n?n:(0,i.Z)(+n),l):c},l.order=function(n){return arguments.length?(t=null==n?u.Z:"function"===typeof n?n:(0,i.Z)(r.t.call(n)),l):t},l.offset=function(n){return arguments.length?(e=null==n?o.Z:n,l):e},l}},21679:function(n,t,e){e.d(t,{Z:function(){return B}});var r=e(26304),i=e(82394),o=e(21831),u=e(82684),a=e(84969),c=e(90948),l=e(63588),f=e.n(l),d=e(75823),s=e(29989),h=e(62072),p=e(53989),v=e(13004),g=e(18246),Z=e(59309),m=e(65743),y=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function x(){return x=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},x.apply(this,arguments)}function b(n){var t=n.data,e=n.className,r=n.top,i=n.left,o=n.x,a=n.y0,c=void 0===a?h.l8:a,l=n.y1,b=void 0===l?h.xf:l,j=n.xScale,O=n.yScale,k=n.color,w=n.keys,P=n.value,E=n.order,M=n.offset,T=n.children,A=function(n,t){if(null==n)return{};var e,r,i={},o=Object.keys(n);for(r=0;r<o.length;r++)e=o[r],t.indexOf(e)>=0||(i[e]=n[e]);return i}(n,y),S=(0,d.Z)();w&&S.keys(w),P&&(0,v.Z)(S.value,P),E&&S.order((0,g.ZP)(E)),M&&S.offset((0,Z.ZP)(M));var _=S(t),L=(0,p.Z)(j),I=_.map((function(n,t){var e=n.key;return{index:t,key:e,bars:n.map((function(t,r){var i=(O(c(t))||0)-(O(b(t))||0),u=O(b(t)),a="bandwidth"in j?j(o(t.data)):Math.max((j(o(t.data))||0)-L/2);return{bar:t,key:e,index:r,height:i,width:L,x:a||0,y:u||0,color:k(n.key,r)}}))}}));return T?u.createElement(u.Fragment,null,T(I)):u.createElement(s.Z,{className:f()("visx-bar-stack",e),top:r,left:i},I.map((function(n){return n.bars.map((function(t){return u.createElement(m.Z,x({key:"bar-stack-"+n.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},A))}))})))}var j=e(67778),O=e(17066),k=e(29179),w=e(65376),P=e(48072),E=e(98677),M=e(84181),T=e(24903),A=e(67971),S=e(26226),_=e(19711),L=e(52359),I=e(23831),N=e(73942),D=e(2005),C=e(49125),F=e(344),R=e(28598),V=["height","width","xAxisLabel","yAxisLabel"];function Y(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function U(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(e),!0).forEach((function(t){(0,i.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Y(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function z(n){var t=n.colors,e=n.data,r=n.getXValue,i=(n.getYValue,n.height),u=n.keys,l=n.margin,f=n.numYTicks,d=n.showLegend,h=n.tooltipLeftOffset,p=void 0===h?0:h,v=n.width,g=n.xLabelFormat,Z=n.yLabelFormat,m=(0,k.Z)(),y=m.hideTooltip,x=m.showTooltip,A=m.tooltipData,S=m.tooltipLeft,L=m.tooltipOpen,C=m.tooltipTop,V=v-(l.left+l.right),Y=i-(l.bottom+l.top),z=e.reduce((function(n,t){var e=t,r=u.reduce((function(n,t){return Number(e[t])&&(n+=Number(e[t])),n}),0);return n.push(r),n}),[]),B=(0,E.Z)({domain:e.map(r),padding:.4,range:[0,V],round:!1}),H=(0,M.Z)({domain:[0,Math.max.apply(Math,(0,o.Z)(z))],range:[Y,0],round:!0}),X=(0,T.Z)({domain:u,range:t});return(0,R.jsxs)("div",{style:{position:"relative"},children:[(0,R.jsxs)("svg",{height:i,width:v,children:[(0,R.jsx)("rect",{fill:"#2E3036",height:i,rx:14,width:v,x:0,y:0}),(0,R.jsx)(j.Z,{height:Y,left:l.left,scale:H,stroke:"black",strokeOpacity:.2,top:l.top,width:V}),(0,R.jsx)(s.Z,{top:l.top,children:(0,R.jsx)(b,{color:X,data:e,keys:u,value:function(n,t){return n[t]||0},x:r,xScale:B,yScale:H,children:function(n){return n.map((function(n){return n.bars.map((function(t){return(0,R.jsx)("rect",{fill:t.color,height:t.height,onMouseLeave:y,onMouseMove:function(n){var e=(0,P.Z)(n),r=t.x+t.width/2+p;x({tooltipData:t,tooltipLeft:r,tooltipTop:(null===e||void 0===e?void 0:e.y)+10})},width:t.width,x:t.x,y:t.y},"bar-stack-".concat(n.index,"-").concat(t.index))}))}))}})}),(0,R.jsx)(a.Z,{hideTicks:!0,left:l.left,numTicks:f,scale:H,stroke:I.Z.content.muted,tickFormat:function(n){return Z?Z(n):(0,F.P5)(n)},tickLabelProps:function(){return{fill:I.Z.content.muted,fontFamily:D.ry,fontSize:11,textAnchor:"end",transform:"translate(0,2.5)"}},top:l.top}),(0,R.jsx)(c.Z,{hideTicks:!0,left:l.left,scale:B,stroke:I.Z.content.muted,tickFormat:g,tickLabelProps:function(){return{fill:I.Z.content.muted,fontFamily:D.ry,fontSize:11,textAnchor:"middle"}},top:Y+l.top})]}),d&&(0,R.jsx)("div",{style:{display:"flex",fontSize:"14px",justifyContent:"center",position:"absolute",top:l.top/2-10,width:"100%"},children:(0,R.jsx)(O.Z,{direction:"row",labelMargin:"0 15px 0 0",scale:X})}),L&&A&&(0,R.jsxs)(w.Z,{left:S,style:U(U({},w.j),{},{backgroundColor:I.Z.background.page,borderRadius:"".concat(N.TR,"px"),padding:".3rem .4rem"}),top:C,children:[(0,R.jsx)(_.ZP,{bold:!0,color:X(A.key),children:A.key}),(0,R.jsx)(_.ZP,{children:A.bar.data[A.key]}),(0,R.jsx)(_.ZP,{children:r(A.bar.data)})]})]})}var B=function(n){var t=n.height,e=n.width,i=n.xAxisLabel,o=n.yAxisLabel,u=(0,r.Z)(n,V);return(0,R.jsx)(R.Fragment,{children:(0,R.jsxs)("div",{style:{height:t,marginBottom:C.iI,width:e},children:[o&&(0,R.jsx)(A.Z,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,R.jsx)(L.Z,{children:(0,R.jsx)(_.ZP,{center:!0,muted:!0,small:!0,children:o})})}),(0,R.jsx)("div",{style:{height:t,width:o?0===e?e:e-28:e},children:(0,R.jsx)(S.Z,{children:function(n){var t=n.height,e=n.width;return(0,R.jsx)(z,U(U({},u),{},{height:t,width:e}))}})}),i&&(0,R.jsx)("div",{style:{paddingLeft:o?36:0,paddingTop:4},children:(0,R.jsx)(_.ZP,{center:!0,muted:!0,small:!0,children:i})})]})})}},93348:function(n,t,e){e.d(t,{TR:function(){return d},U5:function(){return c},Xm:function(){return o},Z4:function(){return f},fq:function(){return a},kJ:function(){return l}});var r,i,o,u=e(82394);!function(n){n.API="api",n.EVENT="event",n.TIME="time"}(o||(o={}));var a,c,l,f=(r={},(0,u.Z)(r,o.API,(function(){return"API"})),(0,u.Z)(r,o.EVENT,(function(){return"event"})),(0,u.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive"}(a||(a={})),function(n){n.ONCE="@once",n.HOURLY="@hourly",n.DAILY="@daily",n.WEEKLY="@weekly",n.MONTHLY="@monthly"}(c||(c={})),function(n){n.CREATED_AT="created_at",n.NAME="name",n.PIPELINE="pipeline_uuid",n.STATUS="status",n.TYPE="schedule_type"}(l||(l={}));var d=(i={},(0,u.Z)(i,l.CREATED_AT,"Created at"),(0,u.Z)(i,l.NAME,"Name"),(0,u.Z)(i,l.PIPELINE,"Pipeline"),(0,u.Z)(i,l.STATUS,"Status"),(0,u.Z)(i,l.TYPE,"Type"),i)},67400:function(n,t,e){e.r(t),e.d(t,{BAR_STACK_COLORS:function(){return L},BAR_STACK_STATUSES:function(){return I}});var r=e(77837),i=e(75582),o=e(82394),u=e(38860),a=e.n(u),c=e(82684),l=e(12691),f=e.n(l),d=e(92083),s=e.n(d),h=e(9518),p=e(21679),v=e(67971),g=e(87372),Z=e(10919),m=e(87465),y=e(41788),x=e(86673),b=e(19711),j=e(82531),O=e(23831),k=e(10503),w=e(92953),P=e(93348),E=e(49125),M=e(90211),T=e(28598);function A(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 S(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?A(Object(e),!0).forEach((function(t){(0,o.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):A(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var _=h.default.div.withConfig({displayName:"monitors__GradientTextStyle",componentId:"sc-1is2m2l-0"})(["background:linear-gradient(90deg,#7D55EC 28.12%,#2AB2FE 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;"]),L=[O.Z.accent.warning,O.Z.background.success,O.Z.accent.negative,O.Z.content.active,O.Z.interactive.linkPrimary],I=["cancelled","completed","failed","initial","running"];function N(n){var t=n.pipeline.uuid,e=j.ZP.pipeline_schedules.pipelines.list(t).data,r=(0,c.useMemo)((function(){return null===e||void 0===e?void 0:e.pipeline_schedules}),[e]),u=(0,c.useMemo)((function(){return null===r||void 0===r?void 0:r.reduce((function(n,t){return S(S({},n),{},(0,o.Z)({},null===t||void 0===t?void 0:t.id,t))}),{})}),[r]),a=j.ZP.pipelines.detail(t,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,l=(0,c.useMemo)((function(){return S(S({},null===a||void 0===a?void 0:a.pipeline),{},{uuid:t})}),[a,t]),d=j.ZP.monitor_stats.detail("pipeline_run_count",{pipeline_uuid:null===l||void 0===l?void 0:l.uuid}).data,h=((null===d||void 0===d?void 0:d.monitor_stat)||{}).stats,y=(0,c.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}),[]),O=(0,c.useMemo)((function(){if(h){var n=Object.entries(h).reduce((function(n,t){var e=(0,i.Z)(t,2),r=(e[0],e[1].data),o={};return Object.entries(r).forEach((function(t){var e=(0,i.Z)(t,2),r=e[0],u=e[1],a={};r in n&&(a=n[r]);var c={};Object.entries(u).forEach((function(n){var t,e=(0,i.Z)(n,2),r=e[0],o=e[1],u=null!==(t=a)&&void 0!==t&&t[r]?a[r]:0;c[r]=u+o})),o[r]=S(S({},a),c)})),S(S({},n),o)}),{});return y.map((function(t){return S({date:t},n[t]||{})}))}return[]}),[y,h]),A=(0,c.useMemo)((function(){if(h)return Object.entries(h).reduce((function(n,t){var e=(0,i.Z)(t,2),r=e[0],u=e[1].data,a=y.map((function(n){return S({date:n},u[n]||{})}));return S(S({},n),{},(0,o.Z)({},r,a))}),{})}),[y,h]),N=(0,c.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[]);return(0,T.jsx)(m.Z,{breadcrumbs:N,monitorType:w.a.PIPELINE_RUNS,pipeline:l,children:(0,T.jsxs)(x.Z,{mt:2,mx:2,children:[(0,T.jsx)(x.Z,{ml:1,children:(0,T.jsx)(_,{children:(0,T.jsx)(g.Z,{children:"All pipeline runs"})})}),(0,T.jsx)(x.Z,{mt:1,children:(0,T.jsx)(p.Z,{colors:L,data:O,getXValue:function(n){return n.date},height:200,keys:I,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:w.C,xLabelFormat:function(n){return s()(n).format("MMM DD")}})}),A&&Object.entries(A).map((function(n){var e,r=(0,i.Z)(n,2),o=r[0],a=r[1],c=null===u||void 0===u?void 0:u[o];return(0,T.jsxs)(x.Z,{mt:3,children:[(0,T.jsxs)(v.Z,{alignItems:"center",children:[(0,T.jsx)(x.Z,{mx:1,children:(0,T.jsx)(_,{children:(0,T.jsx)(b.ZP,{bold:!0,large:!0,children:(0,M.kC)(null===(e=P.Z4[null===c||void 0===c?void 0:c.schedule_type])||void 0===e?void 0:e.call(P.Z4))})})}),(0,T.jsx)(f(),{as:"/pipelines/".concat(t,"/triggers/").concat(null===c||void 0===c?void 0:c.id),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,T.jsx)(Z.Z,{children:(0,T.jsxs)(v.Z,{alignItems:"center",children:[(0,T.jsx)(g.Z,{level:5,children:(null===c||void 0===c?void 0:c.name)||o}),(0,T.jsx)(x.Z,{ml:1}),(0,T.jsx)(k._Q,{default:!0,size:2*E.iI})]})})})]}),(0,T.jsx)(x.Z,{mt:1,children:(0,T.jsx)(p.Z,{colors:L,data:a,getXValue:function(n){return n.date},height:200,keys:I,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:w.C,xLabelFormat:function(n){return s()(n).format("MMM DD")}})})]},o)}))]})})}N.getInitialProps=function(){var n=(0,r.Z)(a().mark((function n(t){var e;return a().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,y.Z)(N)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9832],{52136:function(t,n,e){e.d(n,{Z:function(){return p}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),l=e(5237),s=e(29989),a=e(81352),h=e(46119),f=e(88543),d=e(12765),y=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function _(){return _=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},_.apply(this,arguments)}function p(t){var n=t.top,e=void 0===n?0:n,i=t.left,r=void 0===i?0:i,u=t.scale,p=t.height,v=t.stroke,x=void 0===v?"#eaf0f6":v,m=t.strokeWidth,Z=void 0===m?1:m,g=t.strokeDasharray,b=t.className,O=t.numTicks,E=void 0===O?10:O,k=t.lineStyle,w=t.offset,T=t.tickValues,N=t.children,j=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,y),M=null!=T?T:(0,h.Z)(u,E),P=(null!=w?w:0)+(0,d.Z)(u)/2,R=M.map((function(t,n){var e,i=(null!=(e=(0,f.Z)(u(t)))?e:0)+P;return{index:n,from:new a.Z({x:i,y:0}),to:new a.Z({x:i,y:p})}}));return o.createElement(s.Z,{className:c()("visx-columns",b),top:e,left:r},N?N({lines:R}):R.map((function(t){var n=t.from,e=t.to,i=t.index;return o.createElement(l.Z,_({key:"column-line-"+i,from:n,to:e,stroke:x,strokeWidth:Z,strokeDasharray:g,style:k},j))})))}p.propTypes={tickValues:r().array,height:r().number.isRequired}},85587:function(t,n,e){e.d(n,{Z:function(){return s}});var i=e(82684),r=e(63588),o=e.n(r),u=e(39309),c=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return l=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},l.apply(this,arguments)}function s(t){var n=t.children,e=t.data,r=void 0===e?[]:e,s=t.x,a=t.y,h=t.fill,f=void 0===h?"transparent":h,d=t.className,y=t.curve,_=t.innerRef,p=t.defined,v=void 0===p?function(){return!0}:p,x=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,c),m=(0,u.jv)({x:s,y:a,defined:v,curve:y});return n?i.createElement(i.Fragment,null,n({path:m})):i.createElement("path",l({ref:_,className:o()("visx-linepath",d),d:m(r)||"",fill:f,strokeLinecap:"round"},x))}},39309:function(t,n,e){e.d(n,{SO:function(){return u},jv:function(){return c}});var i=e(48167),r=e(92201),o=e(49894);function u(t){var n=void 0===t?{}:t,e=n.x,r=n.x0,u=n.x1,c=n.y,l=n.y0,s=n.y1,a=n.defined,h=n.curve,f=(0,i.Z)();return e&&(0,o.Z)(f.x,e),r&&(0,o.Z)(f.x0,r),u&&(0,o.Z)(f.x1,u),c&&(0,o.Z)(f.y,c),l&&(0,o.Z)(f.y0,l),s&&(0,o.Z)(f.y1,s),a&&f.defined(a),h&&f.curve(h),f}function c(t){var n=void 0===t?{}:t,e=n.x,i=n.y,u=n.defined,c=n.curve,l=(0,r.Z)();return e&&(0,o.Z)(l.x,e),i&&(0,o.Z)(l.y,i),u&&l.defined(u),c&&l.curve(c),l}},98889:function(t,n,e){e.d(n,{Z:function(){return p}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),l=e(39309),s=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function a(){return a=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},a.apply(this,arguments)}function h(t){var n=t.children,e=t.x,i=t.x0,r=t.x1,u=t.y,h=t.y0,f=t.y1,d=t.data,y=void 0===d?[]:d,_=t.defined,p=void 0===_?function(){return!0}:_,v=t.className,x=t.curve,m=t.innerRef,Z=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,s),g=(0,l.SO)({x:e,x0:i,x1:r,y:u,y0:h,y1:f,defined:p,curve:x});return n?o.createElement(o.Fragment,null,n({path:g})):o.createElement("path",a({ref:m,className:c()("visx-area",v),d:g(y)||""},Z))}var f=["id","children"];function d(){return d=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},d.apply(this,arguments)}function y(t){var n=t.id,e=t.children,i=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,f);return o.createElement("defs",null,o.createElement("clipPath",d({id:n},i),e))}function _(){return _=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},_.apply(this,arguments)}function p(t){var n=t.className,e=t.curve,i=t.clipAboveTo,r=t.clipBelowTo,u=t.data,l=t.defined,s=t.x,a=t.y0,f=t.y1,d=t.aboveAreaProps,p=t.belowAreaProps,v=t.id,x=void 0===v?"":v;return o.createElement("g",{className:c()("visx-threshold",n)},o.createElement(h,{curve:e,data:u,x:s,y1:f,defined:l},(function(t){var n=t.path,e=null,c=null;return e=n.y0(r)(u),c=n.y0(i)(u),o.createElement("g",null,o.createElement(y,{id:"threshold-clip-below-"+x},o.createElement("path",{d:e||""})),o.createElement(y,{id:"threshold-clip-above-"+x},o.createElement("path",{d:c||""})))})),o.createElement(h,_({curve:e,data:u,defined:l,x:s,y0:a,y1:f,strokeWidth:0,clipPath:"url(#threshold-clip-below-"+x+")"},p)),o.createElement(h,_({curve:e,data:u,defined:l,x:s,y0:a,y1:f,strokeWidth:0,clipPath:"url(#threshold-clip-above-"+x+")"},d)))}y.propTypes={id:r().string.isRequired,children:r().node},p.propTypes={className:r().string,clipAboveTo:r().oneOfType([r().func,r().number]).isRequired,clipBelowTo:r().oneOfType([r().func,r().number]).isRequired,id:r().string.isRequired,data:r().array.isRequired,defined:r().func,x:r().oneOfType([r().func,r().number]).isRequired,y0:r().oneOfType([r().func,r().number]).isRequired,y1:r().oneOfType([r().func,r().number]).isRequired}},61655:function(t,n,e){e.d(n,{Z:function(){return u}});var i=e(82684),r=e(29179);function o(){return o=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},o.apply(this,arguments)}function u(t,n,e){void 0===n&&(n={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===e&&(e=function(t,n){return i.createElement("div",n,t)});return function(u){var c=(0,r.Z)();return e(i.createElement(t,o({},c,u)),n)}}},35681:function(t,n){var e=Math.PI,i=2*e,r=1e-6,o=i-r;function u(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function c(){return new u}u.prototype=c.prototype={constructor:u,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,i){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(t,n,e,i,r,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +i+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(t,n,i,o,u){t=+t,n=+n,i=+i,o=+o,u=+u;var c=this._x1,l=this._y1,s=i-t,a=o-n,h=c-t,f=l-n,d=h*h+f*f;if(u<0)throw new Error("negative radius: "+u);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(d>r)if(Math.abs(f*s-a*h)>r&&u){var y=i-c,_=o-l,p=s*s+a*a,v=y*y+_*_,x=Math.sqrt(p),m=Math.sqrt(d),Z=u*Math.tan((e-Math.acos((p+d-v)/(2*x*m)))/2),g=Z/m,b=Z/x;Math.abs(g-1)>r&&(this._+="L"+(t+g*h)+","+(n+g*f)),this._+="A"+u+","+u+",0,0,"+ +(f*y>h*_)+","+(this._x1=t+b*s)+","+(this._y1=n+b*a)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,u,c,l,s){t=+t,n=+n,s=!!s;var a=(u=+u)*Math.cos(c),h=u*Math.sin(c),f=t+a,d=n+h,y=1^s,_=s?c-l:l-c;if(u<0)throw new Error("negative radius: "+u);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>r||Math.abs(this._y1-d)>r)&&(this._+="L"+f+","+d),u&&(_<0&&(_=_%i+i),_>o?this._+="A"+u+","+u+",0,1,"+y+","+(t-a)+","+(n-h)+"A"+u+","+u+",0,1,"+y+","+(this._x1=f)+","+(this._y1=d):_>r&&(this._+="A"+u+","+u+",0,"+ +(_>=e)+","+y+","+(this._x1=t+u*Math.cos(l))+","+(this._y1=n+u*Math.sin(l))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}},n.Z=c},48167:function(t,n,e){e.d(n,{Z:function(){return l}});var i=e(35681),r=e(90875),o=e(23622),u=e(92201),c=e(98930);function l(){var t=c.x,n=null,e=(0,r.Z)(0),l=c.y,s=(0,r.Z)(!0),a=null,h=o.Z,f=null;function d(r){var o,u,c,d,y,_=r.length,p=!1,v=new Array(_),x=new Array(_);for(null==a&&(f=h(y=(0,i.Z)())),o=0;o<=_;++o){if(!(o<_&&s(d=r[o],o,r))===p)if(p=!p)u=o,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),c=o-1;c>=u;--c)f.point(v[c],x[c]);f.lineEnd(),f.areaEnd()}p&&(v[o]=+t(d,o,r),x[o]=+e(d,o,r),f.point(n?+n(d,o,r):v[o],l?+l(d,o,r):x[o]))}if(y)return f=null,y+""||null}function y(){return(0,u.Z)().defined(s).curve(h).context(a)}return d.x=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.Z)(+e),n=null,d):t},d.x0=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),d):t},d.x1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),d):n},d.y=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),l=null,d):e},d.y0=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),d):e},d.y1=function(t){return arguments.length?(l=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),d):l},d.lineX0=d.lineY0=function(){return y().x(t).y(e)},d.lineY1=function(){return y().x(t).y(l)},d.lineX1=function(){return y().x(n).y(e)},d.defined=function(t){return arguments.length?(s="function"===typeof t?t:(0,r.Z)(!!t),d):s},d.curve=function(t){return arguments.length?(h=t,null!=a&&(f=h(a)),d):h},d.context=function(t){return arguments.length?(null==t?a=f=null:f=h(a=t),d):a},d}},97745:function(t,n,e){function i(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function r(t){this._context=t}function o(t){return new r(t)}e.d(n,{ZP:function(){return o},fE:function(){return r},xm:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}}},23622:function(t,n,e){function i(t){this._context=t}function r(t){return new i(t)}e.d(n,{Z:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}}},92201:function(t,n,e){e.d(n,{Z:function(){return c}});var i=e(35681),r=e(90875),o=e(23622),u=e(98930);function c(){var t=u.x,n=u.y,e=(0,r.Z)(!0),c=null,l=o.Z,s=null;function a(r){var o,u,a,h=r.length,f=!1;for(null==c&&(s=l(a=(0,i.Z)())),o=0;o<=h;++o)!(o<h&&e(u=r[o],o,r))===f&&((f=!f)?s.lineStart():s.lineEnd()),f&&s.point(+t(u,o,r),+n(u,o,r));if(a)return s=null,a+""||null}return a.x=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),a):t},a.y=function(t){return arguments.length?(n="function"===typeof t?t:(0,r.Z)(+t),a):n},a.defined=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(!!t),a):e},a.curve=function(t){return arguments.length?(l=t,null!=c&&(s=l(c)),a):l},a.context=function(t){return arguments.length?(null==t?c=s=null:s=l(c=t),a):c},a}},98930:function(t,n,e){function i(t){return t[0]}function r(t){return t[1]}e.d(n,{x:function(){return i},y:function(){return r}})}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9832],{52136:function(t,n,e){e.d(n,{Z:function(){return p}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),l=e(5237),s=e(29989),a=e(81352),h=e(46119),f=e(88543),d=e(12765),y=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function _(){return _=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},_.apply(this,arguments)}function p(t){var n=t.top,e=void 0===n?0:n,i=t.left,r=void 0===i?0:i,u=t.scale,p=t.height,v=t.stroke,x=void 0===v?"#eaf0f6":v,m=t.strokeWidth,Z=void 0===m?1:m,g=t.strokeDasharray,b=t.className,O=t.numTicks,E=void 0===O?10:O,k=t.lineStyle,w=t.offset,T=t.tickValues,N=t.children,j=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,y),M=null!=T?T:(0,h.Z)(u,E),P=(null!=w?w:0)+(0,d.Z)(u)/2,R=M.map((function(t,n){var e,i=(null!=(e=(0,f.Z)(u(t)))?e:0)+P;return{index:n,from:new a.Z({x:i,y:0}),to:new a.Z({x:i,y:p})}}));return o.createElement(s.Z,{className:c()("visx-columns",b),top:e,left:r},N?N({lines:R}):R.map((function(t){var n=t.from,e=t.to,i=t.index;return o.createElement(l.Z,_({key:"column-line-"+i,from:n,to:e,stroke:x,strokeWidth:Z,strokeDasharray:g,style:k},j))})))}p.propTypes={tickValues:r().array,height:r().number.isRequired}},85587:function(t,n,e){e.d(n,{Z:function(){return s}});var i=e(82684),r=e(63588),o=e.n(r),u=e(39309),c=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return l=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},l.apply(this,arguments)}function s(t){var n=t.children,e=t.data,r=void 0===e?[]:e,s=t.x,a=t.y,h=t.fill,f=void 0===h?"transparent":h,d=t.className,y=t.curve,_=t.innerRef,p=t.defined,v=void 0===p?function(){return!0}:p,x=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,c),m=(0,u.jv)({x:s,y:a,defined:v,curve:y});return n?i.createElement(i.Fragment,null,n({path:m})):i.createElement("path",l({ref:_,className:o()("visx-linepath",d),d:m(r)||"",fill:f,strokeLinecap:"round"},x))}},39309:function(t,n,e){e.d(n,{SO:function(){return u},jv:function(){return c}});var i=e(48167),r=e(92201),o=e(13004);function u(t){var n=void 0===t?{}:t,e=n.x,r=n.x0,u=n.x1,c=n.y,l=n.y0,s=n.y1,a=n.defined,h=n.curve,f=(0,i.Z)();return e&&(0,o.Z)(f.x,e),r&&(0,o.Z)(f.x0,r),u&&(0,o.Z)(f.x1,u),c&&(0,o.Z)(f.y,c),l&&(0,o.Z)(f.y0,l),s&&(0,o.Z)(f.y1,s),a&&f.defined(a),h&&f.curve(h),f}function c(t){var n=void 0===t?{}:t,e=n.x,i=n.y,u=n.defined,c=n.curve,l=(0,r.Z)();return e&&(0,o.Z)(l.x,e),i&&(0,o.Z)(l.y,i),u&&l.defined(u),c&&l.curve(c),l}},98889:function(t,n,e){e.d(n,{Z:function(){return p}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),l=e(39309),s=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function a(){return a=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},a.apply(this,arguments)}function h(t){var n=t.children,e=t.x,i=t.x0,r=t.x1,u=t.y,h=t.y0,f=t.y1,d=t.data,y=void 0===d?[]:d,_=t.defined,p=void 0===_?function(){return!0}:_,v=t.className,x=t.curve,m=t.innerRef,Z=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,s),g=(0,l.SO)({x:e,x0:i,x1:r,y:u,y0:h,y1:f,defined:p,curve:x});return n?o.createElement(o.Fragment,null,n({path:g})):o.createElement("path",a({ref:m,className:c()("visx-area",v),d:g(y)||""},Z))}var f=["id","children"];function d(){return d=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},d.apply(this,arguments)}function y(t){var n=t.id,e=t.children,i=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,f);return o.createElement("defs",null,o.createElement("clipPath",d({id:n},i),e))}function _(){return _=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},_.apply(this,arguments)}function p(t){var n=t.className,e=t.curve,i=t.clipAboveTo,r=t.clipBelowTo,u=t.data,l=t.defined,s=t.x,a=t.y0,f=t.y1,d=t.aboveAreaProps,p=t.belowAreaProps,v=t.id,x=void 0===v?"":v;return o.createElement("g",{className:c()("visx-threshold",n)},o.createElement(h,{curve:e,data:u,x:s,y1:f,defined:l},(function(t){var n=t.path,e=null,c=null;return e=n.y0(r)(u),c=n.y0(i)(u),o.createElement("g",null,o.createElement(y,{id:"threshold-clip-below-"+x},o.createElement("path",{d:e||""})),o.createElement(y,{id:"threshold-clip-above-"+x},o.createElement("path",{d:c||""})))})),o.createElement(h,_({curve:e,data:u,defined:l,x:s,y0:a,y1:f,strokeWidth:0,clipPath:"url(#threshold-clip-below-"+x+")"},p)),o.createElement(h,_({curve:e,data:u,defined:l,x:s,y0:a,y1:f,strokeWidth:0,clipPath:"url(#threshold-clip-above-"+x+")"},d)))}y.propTypes={id:r().string.isRequired,children:r().node},p.propTypes={className:r().string,clipAboveTo:r().oneOfType([r().func,r().number]).isRequired,clipBelowTo:r().oneOfType([r().func,r().number]).isRequired,id:r().string.isRequired,data:r().array.isRequired,defined:r().func,x:r().oneOfType([r().func,r().number]).isRequired,y0:r().oneOfType([r().func,r().number]).isRequired,y1:r().oneOfType([r().func,r().number]).isRequired}},61655:function(t,n,e){e.d(n,{Z:function(){return u}});var i=e(82684),r=e(29179);function o(){return o=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},o.apply(this,arguments)}function u(t,n,e){void 0===n&&(n={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===e&&(e=function(t,n){return i.createElement("div",n,t)});return function(u){var c=(0,r.Z)();return e(i.createElement(t,o({},c,u)),n)}}},35681:function(t,n){var e=Math.PI,i=2*e,r=1e-6,o=i-r;function u(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function c(){return new u}u.prototype=c.prototype={constructor:u,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,i){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(t,n,e,i,r,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +i+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(t,n,i,o,u){t=+t,n=+n,i=+i,o=+o,u=+u;var c=this._x1,l=this._y1,s=i-t,a=o-n,h=c-t,f=l-n,d=h*h+f*f;if(u<0)throw new Error("negative radius: "+u);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(d>r)if(Math.abs(f*s-a*h)>r&&u){var y=i-c,_=o-l,p=s*s+a*a,v=y*y+_*_,x=Math.sqrt(p),m=Math.sqrt(d),Z=u*Math.tan((e-Math.acos((p+d-v)/(2*x*m)))/2),g=Z/m,b=Z/x;Math.abs(g-1)>r&&(this._+="L"+(t+g*h)+","+(n+g*f)),this._+="A"+u+","+u+",0,0,"+ +(f*y>h*_)+","+(this._x1=t+b*s)+","+(this._y1=n+b*a)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,u,c,l,s){t=+t,n=+n,s=!!s;var a=(u=+u)*Math.cos(c),h=u*Math.sin(c),f=t+a,d=n+h,y=1^s,_=s?c-l:l-c;if(u<0)throw new Error("negative radius: "+u);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>r||Math.abs(this._y1-d)>r)&&(this._+="L"+f+","+d),u&&(_<0&&(_=_%i+i),_>o?this._+="A"+u+","+u+",0,1,"+y+","+(t-a)+","+(n-h)+"A"+u+","+u+",0,1,"+y+","+(this._x1=f)+","+(this._y1=d):_>r&&(this._+="A"+u+","+u+",0,"+ +(_>=e)+","+y+","+(this._x1=t+u*Math.cos(l))+","+(this._y1=n+u*Math.sin(l))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}},n.Z=c},48167:function(t,n,e){e.d(n,{Z:function(){return l}});var i=e(35681),r=e(90875),o=e(23622),u=e(92201),c=e(98930);function l(){var t=c.x,n=null,e=(0,r.Z)(0),l=c.y,s=(0,r.Z)(!0),a=null,h=o.Z,f=null;function d(r){var o,u,c,d,y,_=r.length,p=!1,v=new Array(_),x=new Array(_);for(null==a&&(f=h(y=(0,i.Z)())),o=0;o<=_;++o){if(!(o<_&&s(d=r[o],o,r))===p)if(p=!p)u=o,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),c=o-1;c>=u;--c)f.point(v[c],x[c]);f.lineEnd(),f.areaEnd()}p&&(v[o]=+t(d,o,r),x[o]=+e(d,o,r),f.point(n?+n(d,o,r):v[o],l?+l(d,o,r):x[o]))}if(y)return f=null,y+""||null}function y(){return(0,u.Z)().defined(s).curve(h).context(a)}return d.x=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.Z)(+e),n=null,d):t},d.x0=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),d):t},d.x1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),d):n},d.y=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),l=null,d):e},d.y0=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),d):e},d.y1=function(t){return arguments.length?(l=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),d):l},d.lineX0=d.lineY0=function(){return y().x(t).y(e)},d.lineY1=function(){return y().x(t).y(l)},d.lineX1=function(){return y().x(n).y(e)},d.defined=function(t){return arguments.length?(s="function"===typeof t?t:(0,r.Z)(!!t),d):s},d.curve=function(t){return arguments.length?(h=t,null!=a&&(f=h(a)),d):h},d.context=function(t){return arguments.length?(null==t?a=f=null:f=h(a=t),d):a},d}},97745:function(t,n,e){function i(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function r(t){this._context=t}function o(t){return new r(t)}e.d(n,{ZP:function(){return o},fE:function(){return r},xm:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}}},23622:function(t,n,e){function i(t){this._context=t}function r(t){return new i(t)}e.d(n,{Z:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}}},92201:function(t,n,e){e.d(n,{Z:function(){return c}});var i=e(35681),r=e(90875),o=e(23622),u=e(98930);function c(){var t=u.x,n=u.y,e=(0,r.Z)(!0),c=null,l=o.Z,s=null;function a(r){var o,u,a,h=r.length,f=!1;for(null==c&&(s=l(a=(0,i.Z)())),o=0;o<=h;++o)!(o<h&&e(u=r[o],o,r))===f&&((f=!f)?s.lineStart():s.lineEnd()),f&&s.point(+t(u,o,r),+n(u,o,r));if(a)return s=null,a+""||null}return a.x=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),a):t},a.y=function(t){return arguments.length?(n="function"===typeof t?t:(0,r.Z)(+t),a):n},a.defined=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(!!t),a):e},a.curve=function(t){return arguments.length?(l=t,null!=c&&(s=l(c)),a):l},a.context=function(t){return arguments.length?(null==t?c=s=null:s=l(c=t),a):c},a}},98930:function(t,n,e){function i(t){return t[0]}function r(t){return t[1]}e.d(n,{x:function(){return i},y:function(){return r}})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8867],{59739:function(e,n,t){"use strict";var r=t(56669);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,c){if(c!==r){var a=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 a.name="Invariant Violation",a}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),a=t(28358),s=t(93461),u=t(57384),l=t(12344),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var h=o.forwardRef(p),m=t(32063),b=t(15270),x=t(82531),g=t(66166),v=t(3055),y=t(49125),O=t(91427),j=t(24141);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,Z=e.afterWidthOverride,w=e.before,E=e.beforeWidth,P=e.breadcrumbs,R=e.children,A=e.errors,_=e.headerMenuItems,T=e.navigationItems,k=e.setErrors,C=e.subheaderChildren,D=e.title,N=e.uuid,I=(0,j.i)().width,H="dashboard_after_width_".concat(N),M="dashboard_before_width_".concat(N),L=(0,o.useRef)(null),z=(0,o.useState)(Z?p:(0,O.U2)(H,p)),F=z[0],X=z[1],W=(0,o.useState)(!1),U=W[0],B=W[1],Y=(0,o.useState)(w?Math.max((0,O.U2)(M,E),13*y.iI):null),Q=Y[0],G=Y[1],q=(0,o.useState)(!1),V=q[0],J=q[1],$=(0,o.useState)(null)[1],K=x.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===K||void 0===K?void 0:K.projects,ne=[];P?ne.push.apply(ne,(0,i.Z)(P)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return D}}]),(0,o.useEffect)((function(){null===L||void 0===L||!L.current||U||V||null===$||void 0===$||$(L.current.getBoundingClientRect().width)}),[U,F,V,Q,L,$,I]),(0,o.useEffect)((function(){U||(0,O.t8)(H,F)}),[r,U,F,H]),(0,o.useEffect)((function(){V||(0,O.t8)(M,Q)}),[V,Q,M]);var te=(0,g.Z)(p);return(0,o.useEffect)((function(){Z&&te!==p&&X(p)}),[Z,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(u.Z,{title:D}),(0,f.jsx)(l.Z,{breadcrumbs:ne,menuItems:_,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===T||void 0===T?void 0:T.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(b.Z,{navigationItems:T})}),(0,f.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:t,afterHeightOffset:v.Mz,afterHidden:r,afterMousedownActive:U,afterWidth:F,before:w,beforeHeightOffset:v.Mz,beforeMousedownActive:V,beforeWidth:d.k1+(w?Q:0),hideAfterCompletely:!0,leftOffset:w?d.k1:null,mainContainerRef:L,setAfterMousedownActive:B,setAfterWidth:X,setBeforeMousedownActive:J,setBeforeWidth:G,children:[C&&(0,f.jsx)(h,{children:C}),R]})})]}),A&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===k||void 0===k?void 0:k(null)},children:(0,f.jsx)(a.Z,S(S({},A),{},{onClose:function(){return null===k||void 0===k?void 0:k(null)}}))})]})}},65597:function(e,n,t){"use strict";t.d(n,{f:function(){return a}});var r=t(9518),i=t(23831),o=t(49125),c=t(73942),a=r.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*o.iI,c.TR,2*o.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||i.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},86422:function(e,n,t){"use strict";t.d(n,{$W:function(){return f},DA:function(){return d},HX:function(){return m},J8:function(){return h},Lq:function(){return u},Qj:function(){return b},Ut:function(){return y},V4:function(){return v},VZ:function(){return p},dO:function(){return l},f2:function(){return g},iZ:function(){return x},t6:function(){return c},tf:function(){return s}});var r,i,o,c,a=t(82394);!function(e){e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(c||(c={}));var s,u,l=(r={},(0,a.Z)(r,c.PYTHON,"PY"),(0,a.Z)(r,c.R,"R"),(0,a.Z)(r,c.SQL,"SQL"),(0,a.Z)(r,c.YAML,"YAML"),r);!function(e){e.CHART="chart",e.CUSTOM="custom",e.DATA_EXPORTER="data_exporter",e.DATA_LOADER="data_loader",e.DBT="dbt",e.EXTENSION="extension",e.SCRATCHPAD="scratchpad",e.SENSOR="sensor",e.TRANSFORMER="transformer"}(s||(s={})),function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(u||(u={}));var d,f=[s.CHART,s.CUSTOM,s.DATA_EXPORTER,s.DATA_LOADER,s.SCRATCHPAD,s.SENSOR,s.TRANSFORMER],p=[s.DATA_EXPORTER,s.DATA_LOADER],h=[s.DATA_EXPORTER,s.DATA_LOADER,s.TRANSFORMER],m=[s.DATA_EXPORTER,s.DATA_LOADER,s.DBT,s.TRANSFORMER],b=[s.CHART,s.SCRATCHPAD,s.SENSOR],x=[s.EXTENSION,s.SCRATCHPAD];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(d||(d={}));var g=[s.CUSTOM,s.DATA_EXPORTER,s.TRANSFORMER],v=(i={},(0,a.Z)(i,s.CUSTOM,"Custom"),(0,a.Z)(i,s.DATA_EXPORTER,"Data exporter"),(0,a.Z)(i,s.DATA_LOADER,"Data loader"),(0,a.Z)(i,s.EXTENSION,"Extension"),(0,a.Z)(i,s.SCRATCHPAD,"Scratchpad"),(0,a.Z)(i,s.SENSOR,"Sensor"),(0,a.Z)(i,s.TRANSFORMER,"Transformer"),i),y=[s.DATA_LOADER,s.TRANSFORMER,s.DATA_EXPORTER,s.SENSOR];o={},(0,a.Z)(o,s.DATA_EXPORTER,"DE"),(0,a.Z)(o,s.DATA_LOADER,"DL"),(0,a.Z)(o,s.SCRATCHPAD,"SP"),(0,a.Z)(o,s.SENSOR,"SR"),(0,a.Z)(o,s.TRANSFORMER,"TF")},87372:function(e,n,t){"use strict";var r,i,o,c,a,s,u,l,d=t(82394),f=t(26304),p=t(26653),h=t(9518),m=t(33591),b=t(23831),x=t(2005),g=t(31012),v=t(19711),y=t(49125),O=t(86673),j=t(28598),Z=["children","condensed","inline","level","marketing","spacingBelow"];function S(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?S(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var E=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],v.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(x.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(x.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(x.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(x.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(x.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),P=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 ")})),R=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],E,m.media.md(r||(r=(0,p.Z)(["\n ","\n "])),g.aQ),m.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),g.aQ),m.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),g.aQ)),A=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],E,g.MJ),_=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],E,m.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.sm(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.md(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.lg(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.xl(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI)),T=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],E,g.BL),k=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],E),C=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],E),D=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],E),N=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],E,(function(e){return 1===e.level&&"\n ".concat(g.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(g.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 "})),I=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,c=e.marketing,a=e.spacingBelow,s=(0,f.Z)(e,Z);i?n=N:0===Number(o)?n=R:1===Number(o)?n=c?_:A:2===Number(o)?n=T:3===Number(o)?n=k:4===Number(o)?n=C:5===Number(o)&&(n=D);var u=(0,j.jsxs)(n,w(w({},s),{},{level:o,children:[a&&(0,j.jsx)(O.Z,{mb:r?2:3,children:t}),!a&&t]}));return i?u:(0,j.jsx)(P,{children:u})};I.defaultProps={level:3,weightStyle:6},n.Z=I},70902:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(9518),a=t(69898),s=t(23831),u=t(28598),l=["checked","disabled","onCheck"];function d(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 f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var p=c.default.label.withConfig({displayName:"ToggleSwitch__ToggleSwitchStyle",componentId:"sc-179r5zs-0"})([""," position:relative;display:inline-block;width:","px;min-width:","px;height:",'px;& input[type="checkbox"]{display:none;}& span{position:absolute;cursor:',";background-color:",";border-radius:13px;",';top:0;right:0;bottom:0;left:0;transition:background-color 0.2s ease;}& span::before{position:absolute;content:"";left:2px;top:2px;width:22px;height:22px;background-color:#787A85;border-radius:50%;transition:transform 0.3s ease;}& input[type="checkbox"]:checked + span::before{transform:translateX(20px);}',""],a.p,46,46,26,(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.disabled?s.Z.monotone.white:s.Z.monotone.black}),(function(e){return e.disabled&&"border: 1px solid ".concat(s.Z.monotone.grey200)}),(function(e){return!e.disabled&&'\n & input[type="checkbox"]:checked + span {\n background-color: #6AA1E0;\n }\n\n & input[type="checkbox"]:checked + span::before {\n background-color: '.concat(s.Z.monotone.white,";\n }\n ")})),h=function(e,n){var t=e.checked,r=e.disabled,o=e.onCheck,c=(0,i.Z)(e,l);return(0,u.jsx)(a.Z,f(f({},c),{},{disabled:r,input:(0,u.jsxs)(p,f(f({},c),{},{disabled:r,noBackground:!0,noBorder:!0,children:[(0,u.jsx)("input",{checked:t,type:"checkbox"}),(0,u.jsx)("span",{onClick:r?null:function(){return null===o||void 0===o?void 0:o((function(e){return!e}))}})]})),noBackground:!0,ref:n}))};n.Z=o.forwardRef(h)},48438:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return L}});var r=t(77837),i=t(75582),o=t(38860),c=t.n(o),a=t(82684),s=t(83455),u=t(60328),l=t(47999),d=t(57722),f=t(67971),p=t(87372),h=t(11135),m=t(86673),b=t(58180),x=t(19711),g=t(82944),v=t(70902),y=t(82531),O=t(10503),j=t(86422),Z=t(73899),S=t(99994),w=t(85307),E=t(49125),P=t(96510),R=t(90211),A=t(28598);var _=function(e){var n=e.fetchInstances,t=e.instanceType,r=(0,a.useState)(),o=r[0],c=r[1],u=(0,a.useState)(),l=u[0],_=u[1],T=(0,a.useState)(),k=T[0],C=T[1],D=(0,a.useState)(null),N=D[0],I=D[1],H=(0,a.useState)(),M=H[0],L=H[1],z=(0,a.useState)(),F=z[0],X=z[1],W=(0,s.Db)(y.ZP.instances.clusters.useCreate(t),{onSuccess:function(e){return(0,P.wD)(e,{callback:function(e){e.success?(n(),c(!1)):_(e.error_message)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;console.log(t,r)}})}}),U=(0,i.Z)(W,2),B=U[0],Y=U[1].isLoading,Q=[[(0,A.jsx)(x.ZP,{bold:!0,color:Z.cM,children:"Instance name"}),(0,A.jsx)(g.Z,{label:"ecs"===t?"Spaces will be replaced by underscores":"Spaces will be replaced by hyphens",monospace:!0,onChange:function(e){e.preventDefault(),L(e.target.value)},placeholder:"Name your new instance",value:M})]];return"k8s"===t&&Q.push([(0,A.jsx)(x.ZP,{bold:!0,color:Z.cM,children:"Service account name (optional)"}),(0,A.jsx)(g.Z,{label:"Name of service account to be attached to stateful set",monospace:!0,onChange:function(e){e.preventDefault(),X(e.target.value)},placeholder:"Service account name",value:F})]),(0,A.jsx)(A.Fragment,{children:o?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(p.Z,{default:!0,level:5,monospace:!0,children:"Configure new instance"}),(0,A.jsx)(b.Z,{columnFlex:[null,3],rows:Q}),"k8s"===t&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(m.Z,{mt:1,children:(0,A.jsxs)(f.Z,{alignItems:"center",children:[(0,A.jsx)(x.ZP,{default:!0,monospace:!0,children:"Configure container"}),(0,A.jsx)(m.Z,{ml:1}),(0,A.jsx)(v.Z,{checked:k,onCheck:function(){return C((function(e){return!e}))}})]})}),k&&(0,A.jsx)(m.Z,{mt:1,children:(0,A.jsx)(w.$W,{children:(0,A.jsx)(d.Z,{autoHeight:!0,language:j.t6.YAML,onChange:function(e){I(e)},tabSize:2,value:N||void 0,width:"100%"})})})]}),Y&&(0,A.jsx)(m.Z,{mt:1,children:(0,A.jsx)(x.ZP,{small:!0,warning:!0,children:"This may take up to a few minutes... Once the service is created, it may take another 5-10 minutes for the service to be accessible."})}),!Y&&l&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(m.Z,{mt:1,children:(0,A.jsx)(x.ZP,{small:!0,danger:!0,children:"Failed to create instance, see error below."})}),(0,A.jsx)(m.Z,{mt:1,children:(0,A.jsx)(x.ZP,{small:!0,danger:!0,children:l})})]}),(0,A.jsx)(m.Z,{my:2,children:(0,A.jsxs)(f.Z,{children:[(0,A.jsx)(h.ZP,{background:Z.a$,bold:!0,inline:!0,loading:Y,onClick:function(){return B({instance:{name:(e=M,"ecs"===t?(0,R.We)(e,"_"):(0,R.We)(e,"-")),service_account_name:F,container_config:k&&N}});var e},uuid:"EnvironmentListPage/new",children:"Create"}),(0,A.jsx)(m.Z,{ml:1}),(0,A.jsx)(h.ZP,{bold:!0,inline:!0,onClick:function(){return c(!1)},uuid:"EnvironmentListPage/cancel",children:"Cancel"})]})})]}):(0,A.jsx)(h.ZP,{background:S.eW,beforeElement:(0,A.jsx)(O.mm,{size:2.5*E.iI}),bold:!0,inline:!0,onClick:function(){L((0,R.Y6)()),c(!0)},uuid:"EnvironmentListPage/new_instance",children:"Create new instance"})})},T=t(1210),k=t(62084),C=t(41788),D=t(73942),N=t(65597),I=t(72454);function H(e){var n=e.fetchInstances,t=e.instance,r=e.instanceType,o=(0,a.useRef)(null),c=(0,a.useState)(),d=c[0],p=c[1],h=(0,a.useState)(),b=h[0],g=h[1],v=t.name,j=t.task_arn,Z={};j&&(Z.task_arn=j);var S=(0,s.Db)(y.ZP.instances.clusters.useUpdate(r,v),{onSuccess:function(e){return(0,P.wD)(e,{callback:function(){n(),p(!1)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;console.log(t,r)}})}}),w=(0,i.Z)(S,1)[0],R=(0,s.Db)(y.ZP.instances.clusters.useDelete(r,v,Z),{onSuccess:function(e){return(0,P.wD)(e,{callback:function(){n(),p(!1)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;console.log(t,r)}})}}),_=(0,i.Z)(R,1)[0],T=(0,a.useMemo)((function(){var e=t.status,n=[{label:function(){return(0,A.jsx)(x.ZP,{children:"Delete instance"})},onClick:function(){return g(!0)},uuid:"delete_instance"}];return"STOPPED"===e?n.unshift({label:function(){return(0,A.jsx)(x.ZP,{children:"Resume instance"})},onClick:function(){return w({instance:{action:"resume",name:t.name,task_arn:t.task_arn}})},uuid:"resume_instance"}):"RUNNING"===e&&n.unshift({label:function(){return(0,A.jsx)(x.ZP,{children:"Stop instance"})},onClick:function(){return w({instance:{action:"stop",name:t.name,task_arn:t.task_arn}})},uuid:"stop_instance"}),n}),[t]);return(0,A.jsx)(A.Fragment,{children:"ecs"===r&&(0,A.jsxs)("div",{ref:o,style:{position:"relative",zIndex:"1"},children:[(0,A.jsx)(u.Z,{iconOnly:!0,onClick:function(){return p(!d)},children:(0,A.jsx)(O.mH,{size:2*E.iI})}),(0,A.jsx)(l.Z,{disableEscape:!0,onClickOutside:function(){p(!1),g(!1)},open:d,children:b?(0,A.jsxs)(N.f,{leftOffset:30*-E.iI,topOffset:3*-E.iI,width:30*E.iI,children:[(0,A.jsx)(x.ZP,{children:"Are you sure you want to delete"}),(0,A.jsx)(x.ZP,{children:"this instance? You may not be"}),(0,A.jsx)(x.ZP,{children:"able to recover your data."}),(0,A.jsx)(m.Z,{mt:1}),(0,A.jsxs)(f.Z,{children:[(0,A.jsx)(u.Z,{danger:!0,onClick:_,children:"Confirm"}),(0,A.jsx)(m.Z,{ml:1}),(0,A.jsx)(u.Z,{default:!0,onClick:function(){return g(!1)},children:"Cancel"})]})]}):(0,A.jsx)(k.Z,{items:T,left:25*-E.iI,open:d,parentRef:o,topOffset:3*-E.iI,uuid:"Manage/more_actions",width:25*E.iI})})]})})}function M(){var e,n=(0,a.useState)(),t=(n[0],n[1],y.ZP.status.list().data),r=(null===t||void 0===t||null===(e=t.status)||void 0===e?void 0:e.instance_type)||"ecs",i=y.ZP.instances.clusters.list(r,{},{refreshInterval:3e3,revalidateOnFocus:!0}),o=i.data,c=i.mutate,s=(0,a.useMemo)((function(){var e;return null===o||void 0===o||null===(e=o.instances)||void 0===e?void 0:e.filter((function(e){return e.name}))}),[o]);return(0,A.jsx)(T.Z,{afterWidth:I.k1,beforeWidth:I.k1,breadcrumbs:[{bold:!0,label:function(){return"Manage (".concat(r,")")}}],navigationItems:[],subheaderChildren:(0,A.jsx)(_,{fetchInstances:c,instanceType:r}),title:"Manage",uuid:"Manage/index",children:(0,A.jsx)(b.Z,{columns:[{uuid:"Status"},{uuid:"Instance Name"},{uuid:"Type"},{uuid:"Public IP address"},{uuid:"Open"},{label:function(){return""},uuid:"Actions"}],columnFlex:[2,4,2,3,1,null],rows:null===s||void 0===s?void 0:s.map((function(e){var n=e.ip,t=e.name,i=e.status,o=e.type,a="http://".concat(n);return"ecs"===r&&(a="http://".concat(n,":6789")),[(0,A.jsx)(u.Z,{borderRadius:D.D7,danger:"STOPPED"===i,default:"PROVISIONING"===i,notClickable:!0,padding:"6px",primary:"RUNNING"===i,warning:"PENDING"===i,children:(0,R.vg)(i)}),(0,A.jsx)(x.ZP,{children:t}),(0,A.jsx)(x.ZP,{children:(0,R.vg)(o)}),(0,A.jsx)(x.ZP,{children:n}),(0,A.jsx)(u.Z,{iconOnly:!0,onClick:function(){return window.open(a)},children:(0,A.jsx)(O.M0,{size:2*E.iI})}),(0,A.jsx)(H,{fetchInstances:c,instance:e,instanceType:r})]}))})})}M.getInitialProps=(0,r.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var L=(0,C.Z)(M)},13157:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage",function(){return t(48438)}])}},function(e){e.O(0,[3850,2083,8789,2344,4506,6166,8180,6195,9774,2888,179],(function(){return n=13157,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8867],{59739:function(e,n,t){"use strict";var r=t(56669);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,c){if(c!==r){var a=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 a.name="Invariant Violation",a}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),a=t(49894),s=t(93461),u=t(57384),l=t(12344),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var h=o.forwardRef(p),m=t(32063),b=t(15270),x=t(82531),g=t(66166),v=t(3055),y=t(49125),O=t(91427),j=t(24141);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,Z=e.afterWidthOverride,w=e.before,E=e.beforeWidth,P=e.breadcrumbs,R=e.children,A=e.errors,_=e.headerMenuItems,T=e.navigationItems,k=e.setErrors,C=e.subheaderChildren,D=e.title,N=e.uuid,I=(0,j.i)().width,H="dashboard_after_width_".concat(N),M="dashboard_before_width_".concat(N),L=(0,o.useRef)(null),z=(0,o.useState)(Z?p:(0,O.U2)(H,p)),F=z[0],X=z[1],W=(0,o.useState)(!1),U=W[0],B=W[1],Y=(0,o.useState)(w?Math.max((0,O.U2)(M,E),13*y.iI):null),Q=Y[0],G=Y[1],q=(0,o.useState)(!1),V=q[0],J=q[1],$=(0,o.useState)(null)[1],K=x.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===K||void 0===K?void 0:K.projects,ne=[];P?ne.push.apply(ne,(0,i.Z)(P)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return D}}]),(0,o.useEffect)((function(){null===L||void 0===L||!L.current||U||V||null===$||void 0===$||$(L.current.getBoundingClientRect().width)}),[U,F,V,Q,L,$,I]),(0,o.useEffect)((function(){U||(0,O.t8)(H,F)}),[r,U,F,H]),(0,o.useEffect)((function(){V||(0,O.t8)(M,Q)}),[V,Q,M]);var te=(0,g.Z)(p);return(0,o.useEffect)((function(){Z&&te!==p&&X(p)}),[Z,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(u.Z,{title:D}),(0,f.jsx)(l.Z,{breadcrumbs:ne,menuItems:_,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===T||void 0===T?void 0:T.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(b.Z,{navigationItems:T})}),(0,f.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:t,afterHeightOffset:v.Mz,afterHidden:r,afterMousedownActive:U,afterWidth:F,before:w,beforeHeightOffset:v.Mz,beforeMousedownActive:V,beforeWidth:d.k1+(w?Q:0),hideAfterCompletely:!0,leftOffset:w?d.k1:null,mainContainerRef:L,setAfterMousedownActive:B,setAfterWidth:X,setBeforeMousedownActive:J,setBeforeWidth:G,children:[C&&(0,f.jsx)(h,{children:C}),R]})})]}),A&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===k||void 0===k?void 0:k(null)},children:(0,f.jsx)(a.Z,S(S({},A),{},{onClose:function(){return null===k||void 0===k?void 0:k(null)}}))})]})}},65597:function(e,n,t){"use strict";t.d(n,{f:function(){return a}});var r=t(9518),i=t(23831),o=t(49125),c=t(73942),a=r.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*o.iI,c.TR,2*o.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||i.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},86422:function(e,n,t){"use strict";t.d(n,{$W:function(){return f},DA:function(){return d},HX:function(){return m},J8:function(){return h},Lq:function(){return u},Qj:function(){return b},Ut:function(){return y},V4:function(){return v},VZ:function(){return p},dO:function(){return l},f2:function(){return g},iZ:function(){return x},t6:function(){return c},tf:function(){return s}});var r,i,o,c,a=t(82394);!function(e){e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(c||(c={}));var s,u,l=(r={},(0,a.Z)(r,c.PYTHON,"PY"),(0,a.Z)(r,c.R,"R"),(0,a.Z)(r,c.SQL,"SQL"),(0,a.Z)(r,c.YAML,"YAML"),r);!function(e){e.CHART="chart",e.CUSTOM="custom",e.DATA_EXPORTER="data_exporter",e.DATA_LOADER="data_loader",e.DBT="dbt",e.EXTENSION="extension",e.SCRATCHPAD="scratchpad",e.SENSOR="sensor",e.TRANSFORMER="transformer"}(s||(s={})),function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(u||(u={}));var d,f=[s.CHART,s.CUSTOM,s.DATA_EXPORTER,s.DATA_LOADER,s.SCRATCHPAD,s.SENSOR,s.TRANSFORMER],p=[s.DATA_EXPORTER,s.DATA_LOADER],h=[s.DATA_EXPORTER,s.DATA_LOADER,s.TRANSFORMER],m=[s.DATA_EXPORTER,s.DATA_LOADER,s.DBT,s.TRANSFORMER],b=[s.CHART,s.SCRATCHPAD,s.SENSOR],x=[s.EXTENSION,s.SCRATCHPAD];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(d||(d={}));var g=[s.CUSTOM,s.DATA_EXPORTER,s.TRANSFORMER],v=(i={},(0,a.Z)(i,s.CUSTOM,"Custom"),(0,a.Z)(i,s.DATA_EXPORTER,"Data exporter"),(0,a.Z)(i,s.DATA_LOADER,"Data loader"),(0,a.Z)(i,s.EXTENSION,"Extension"),(0,a.Z)(i,s.SCRATCHPAD,"Scratchpad"),(0,a.Z)(i,s.SENSOR,"Sensor"),(0,a.Z)(i,s.TRANSFORMER,"Transformer"),i),y=[s.DATA_LOADER,s.TRANSFORMER,s.DATA_EXPORTER,s.SENSOR];o={},(0,a.Z)(o,s.DATA_EXPORTER,"DE"),(0,a.Z)(o,s.DATA_LOADER,"DL"),(0,a.Z)(o,s.SCRATCHPAD,"SP"),(0,a.Z)(o,s.SENSOR,"SR"),(0,a.Z)(o,s.TRANSFORMER,"TF")},87372:function(e,n,t){"use strict";var r,i,o,c,a,s,u,l,d=t(82394),f=t(26304),p=t(26653),h=t(9518),m=t(33591),b=t(23831),x=t(2005),g=t(31012),v=t(19711),y=t(49125),O=t(86673),j=t(28598),Z=["children","condensed","inline","level","marketing","spacingBelow"];function S(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?S(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var E=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],v.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(x.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(x.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(x.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(x.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(x.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),P=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 ")})),R=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],E,m.media.md(r||(r=(0,p.Z)(["\n ","\n "])),g.aQ),m.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),g.aQ),m.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),g.aQ)),A=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],E,g.MJ),_=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],E,m.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.sm(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.md(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.lg(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.xl(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI)),T=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],E,g.BL),k=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],E),C=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],E),D=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],E),N=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],E,(function(e){return 1===e.level&&"\n ".concat(g.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(g.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 "})),I=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,c=e.marketing,a=e.spacingBelow,s=(0,f.Z)(e,Z);i?n=N:0===Number(o)?n=R:1===Number(o)?n=c?_:A:2===Number(o)?n=T:3===Number(o)?n=k:4===Number(o)?n=C:5===Number(o)&&(n=D);var u=(0,j.jsxs)(n,w(w({},s),{},{level:o,children:[a&&(0,j.jsx)(O.Z,{mb:r?2:3,children:t}),!a&&t]}));return i?u:(0,j.jsx)(P,{children:u})};I.defaultProps={level:3,weightStyle:6},n.Z=I},70902:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(9518),a=t(69898),s=t(23831),u=t(28598),l=["checked","disabled","onCheck"];function d(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 f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var p=c.default.label.withConfig({displayName:"ToggleSwitch__ToggleSwitchStyle",componentId:"sc-179r5zs-0"})([""," position:relative;display:inline-block;width:","px;min-width:","px;height:",'px;& input[type="checkbox"]{display:none;}& span{position:absolute;cursor:',";background-color:",";border-radius:13px;",';top:0;right:0;bottom:0;left:0;transition:background-color 0.2s ease;}& span::before{position:absolute;content:"";left:2px;top:2px;width:22px;height:22px;background-color:#787A85;border-radius:50%;transition:transform 0.3s ease;}& input[type="checkbox"]:checked + span::before{transform:translateX(20px);}',""],a.p,46,46,26,(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.disabled?s.Z.monotone.white:s.Z.monotone.black}),(function(e){return e.disabled&&"border: 1px solid ".concat(s.Z.monotone.grey200)}),(function(e){return!e.disabled&&'\n & input[type="checkbox"]:checked + span {\n background-color: #6AA1E0;\n }\n\n & input[type="checkbox"]:checked + span::before {\n background-color: '.concat(s.Z.monotone.white,";\n }\n ")})),h=function(e,n){var t=e.checked,r=e.disabled,o=e.onCheck,c=(0,i.Z)(e,l);return(0,u.jsx)(a.Z,f(f({},c),{},{disabled:r,input:(0,u.jsxs)(p,f(f({},c),{},{disabled:r,noBackground:!0,noBorder:!0,children:[(0,u.jsx)("input",{checked:t,type:"checkbox"}),(0,u.jsx)("span",{onClick:r?null:function(){return null===o||void 0===o?void 0:o((function(e){return!e}))}})]})),noBackground:!0,ref:n}))};n.Z=o.forwardRef(h)},48438:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return L}});var r=t(77837),i=t(75582),o=t(38860),c=t.n(o),a=t(82684),s=t(83455),u=t(60328),l=t(47999),d=t(57722),f=t(67971),p=t(87372),h=t(11135),m=t(86673),b=t(58180),x=t(19711),g=t(82944),v=t(70902),y=t(82531),O=t(10503),j=t(86422),Z=t(73899),S=t(99994),w=t(85307),E=t(49125),P=t(96510),R=t(90211),A=t(28598);var _=function(e){var n=e.fetchInstances,t=e.instanceType,r=(0,a.useState)(),o=r[0],c=r[1],u=(0,a.useState)(),l=u[0],_=u[1],T=(0,a.useState)(),k=T[0],C=T[1],D=(0,a.useState)(null),N=D[0],I=D[1],H=(0,a.useState)(),M=H[0],L=H[1],z=(0,a.useState)(),F=z[0],X=z[1],W=(0,s.Db)(y.ZP.instances.clusters.useCreate(t),{onSuccess:function(e){return(0,P.wD)(e,{callback:function(e){e.success?(n(),c(!1)):_(e.error_message)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;console.log(t,r)}})}}),U=(0,i.Z)(W,2),B=U[0],Y=U[1].isLoading,Q=[[(0,A.jsx)(x.ZP,{bold:!0,color:Z.cM,children:"Instance name"}),(0,A.jsx)(g.Z,{label:"ecs"===t?"Spaces will be replaced by underscores":"Spaces will be replaced by hyphens",monospace:!0,onChange:function(e){e.preventDefault(),L(e.target.value)},placeholder:"Name your new instance",value:M})]];return"k8s"===t&&Q.push([(0,A.jsx)(x.ZP,{bold:!0,color:Z.cM,children:"Service account name (optional)"}),(0,A.jsx)(g.Z,{label:"Name of service account to be attached to stateful set",monospace:!0,onChange:function(e){e.preventDefault(),X(e.target.value)},placeholder:"Service account name",value:F})]),(0,A.jsx)(A.Fragment,{children:o?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(p.Z,{default:!0,level:5,monospace:!0,children:"Configure new instance"}),(0,A.jsx)(b.Z,{columnFlex:[null,3],rows:Q}),"k8s"===t&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(m.Z,{mt:1,children:(0,A.jsxs)(f.Z,{alignItems:"center",children:[(0,A.jsx)(x.ZP,{default:!0,monospace:!0,children:"Configure container"}),(0,A.jsx)(m.Z,{ml:1}),(0,A.jsx)(v.Z,{checked:k,onCheck:function(){return C((function(e){return!e}))}})]})}),k&&(0,A.jsx)(m.Z,{mt:1,children:(0,A.jsx)(w.$W,{children:(0,A.jsx)(d.Z,{autoHeight:!0,language:j.t6.YAML,onChange:function(e){I(e)},tabSize:2,value:N||void 0,width:"100%"})})})]}),Y&&(0,A.jsx)(m.Z,{mt:1,children:(0,A.jsx)(x.ZP,{small:!0,warning:!0,children:"This may take up to a few minutes... Once the service is created, it may take another 5-10 minutes for the service to be accessible."})}),!Y&&l&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(m.Z,{mt:1,children:(0,A.jsx)(x.ZP,{small:!0,danger:!0,children:"Failed to create instance, see error below."})}),(0,A.jsx)(m.Z,{mt:1,children:(0,A.jsx)(x.ZP,{small:!0,danger:!0,children:l})})]}),(0,A.jsx)(m.Z,{my:2,children:(0,A.jsxs)(f.Z,{children:[(0,A.jsx)(h.ZP,{background:Z.a$,bold:!0,inline:!0,loading:Y,onClick:function(){return B({instance:{name:(e=M,"ecs"===t?(0,R.We)(e,"_"):(0,R.We)(e,"-")),service_account_name:F,container_config:k&&N}});var e},uuid:"EnvironmentListPage/new",children:"Create"}),(0,A.jsx)(m.Z,{ml:1}),(0,A.jsx)(h.ZP,{bold:!0,inline:!0,onClick:function(){return c(!1)},uuid:"EnvironmentListPage/cancel",children:"Cancel"})]})})]}):(0,A.jsx)(h.ZP,{background:S.eW,beforeElement:(0,A.jsx)(O.mm,{size:2.5*E.iI}),bold:!0,inline:!0,onClick:function(){L((0,R.Y6)()),c(!0)},uuid:"EnvironmentListPage/new_instance",children:"Create new instance"})})},T=t(1210),k=t(62084),C=t(41788),D=t(73942),N=t(65597),I=t(72454);function H(e){var n=e.fetchInstances,t=e.instance,r=e.instanceType,o=(0,a.useRef)(null),c=(0,a.useState)(),d=c[0],p=c[1],h=(0,a.useState)(),b=h[0],g=h[1],v=t.name,j=t.task_arn,Z={};j&&(Z.task_arn=j);var S=(0,s.Db)(y.ZP.instances.clusters.useUpdate(r,v),{onSuccess:function(e){return(0,P.wD)(e,{callback:function(){n(),p(!1)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;console.log(t,r)}})}}),w=(0,i.Z)(S,1)[0],R=(0,s.Db)(y.ZP.instances.clusters.useDelete(r,v,Z),{onSuccess:function(e){return(0,P.wD)(e,{callback:function(){n(),p(!1)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;console.log(t,r)}})}}),_=(0,i.Z)(R,1)[0],T=(0,a.useMemo)((function(){var e=t.status,n=[{label:function(){return(0,A.jsx)(x.ZP,{children:"Delete instance"})},onClick:function(){return g(!0)},uuid:"delete_instance"}];return"STOPPED"===e?n.unshift({label:function(){return(0,A.jsx)(x.ZP,{children:"Resume instance"})},onClick:function(){return w({instance:{action:"resume",name:t.name,task_arn:t.task_arn}})},uuid:"resume_instance"}):"RUNNING"===e&&n.unshift({label:function(){return(0,A.jsx)(x.ZP,{children:"Stop instance"})},onClick:function(){return w({instance:{action:"stop",name:t.name,task_arn:t.task_arn}})},uuid:"stop_instance"}),n}),[t]);return(0,A.jsx)(A.Fragment,{children:"ecs"===r&&(0,A.jsxs)("div",{ref:o,style:{position:"relative",zIndex:"1"},children:[(0,A.jsx)(u.Z,{iconOnly:!0,onClick:function(){return p(!d)},children:(0,A.jsx)(O.mH,{size:2*E.iI})}),(0,A.jsx)(l.Z,{disableEscape:!0,onClickOutside:function(){p(!1),g(!1)},open:d,children:b?(0,A.jsxs)(N.f,{leftOffset:30*-E.iI,topOffset:3*-E.iI,width:30*E.iI,children:[(0,A.jsx)(x.ZP,{children:"Are you sure you want to delete"}),(0,A.jsx)(x.ZP,{children:"this instance? You may not be"}),(0,A.jsx)(x.ZP,{children:"able to recover your data."}),(0,A.jsx)(m.Z,{mt:1}),(0,A.jsxs)(f.Z,{children:[(0,A.jsx)(u.Z,{danger:!0,onClick:_,children:"Confirm"}),(0,A.jsx)(m.Z,{ml:1}),(0,A.jsx)(u.Z,{default:!0,onClick:function(){return g(!1)},children:"Cancel"})]})]}):(0,A.jsx)(k.Z,{items:T,left:25*-E.iI,open:d,parentRef:o,topOffset:3*-E.iI,uuid:"Manage/more_actions",width:25*E.iI})})]})})}function M(){var e,n=(0,a.useState)(),t=(n[0],n[1],y.ZP.status.list().data),r=(null===t||void 0===t||null===(e=t.status)||void 0===e?void 0:e.instance_type)||"ecs",i=y.ZP.instances.clusters.list(r,{},{refreshInterval:3e3,revalidateOnFocus:!0}),o=i.data,c=i.mutate,s=(0,a.useMemo)((function(){var e;return null===o||void 0===o||null===(e=o.instances)||void 0===e?void 0:e.filter((function(e){return e.name}))}),[o]);return(0,A.jsx)(T.Z,{afterWidth:I.k1,beforeWidth:I.k1,breadcrumbs:[{bold:!0,label:function(){return"Manage (".concat(r,")")}}],navigationItems:[],subheaderChildren:(0,A.jsx)(_,{fetchInstances:c,instanceType:r}),title:"Manage",uuid:"Manage/index",children:(0,A.jsx)(b.Z,{columns:[{uuid:"Status"},{uuid:"Instance Name"},{uuid:"Type"},{uuid:"Public IP address"},{uuid:"Open"},{label:function(){return""},uuid:"Actions"}],columnFlex:[2,4,2,3,1,null],rows:null===s||void 0===s?void 0:s.map((function(e){var n=e.ip,t=e.name,i=e.status,o=e.type,a="http://".concat(n);return"ecs"===r&&(a="http://".concat(n,":6789")),[(0,A.jsx)(u.Z,{borderRadius:D.D7,danger:"STOPPED"===i,default:"PROVISIONING"===i,notClickable:!0,padding:"6px",primary:"RUNNING"===i,warning:"PENDING"===i,children:(0,R.vg)(i)}),(0,A.jsx)(x.ZP,{children:t}),(0,A.jsx)(x.ZP,{children:(0,R.vg)(o)}),(0,A.jsx)(x.ZP,{children:n}),(0,A.jsx)(u.Z,{iconOnly:!0,onClick:function(){return window.open(a)},children:(0,A.jsx)(O.M0,{size:2*E.iI})}),(0,A.jsx)(H,{fetchInstances:c,instance:e,instanceType:r})]}))})})}M.getInitialProps=(0,r.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var L=(0,C.Z)(M)},13157:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage",function(){return t(48438)}])}},function(e){e.O(0,[3850,5716,8789,2344,4506,6166,8180,6195,9774,2888,179],(function(){return n=13157,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1009],{66050:function(e,t,n){"use strict";var r;n.d(t,{V:function(){return r}}),function(e){e.CANCELLED="cancelled",e.COMPLETED="completed",e.FAILED="failed",e.INITIAL="initial",e.RUNNING="running"}(r||(r={}))},92597:function(e,t,n){"use strict";n.r(t);var r=n(77837),u=n(82394),i=n(38860),s=n.n(i),l=n(82684),a=n(34376),o=n(1210),c=n(67971),p=n(51099),f=n(97496),d=n(41788),v=n(55378),h=n(86673),g=n(19711),j=n(82531),b=n(47409),O=n(66050),m=n(49125),P=n(33766),_=n(59e3),x=n(28598);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){(0,u.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(){var e=(0,a.useRouter)(),t=(0,l.useState)(null),n=t[0],r=t[1],u=(0,_.iV)(),i=null!==u&&void 0!==u&&u.page?u.page:0,s={_limit:p.Q,_offset:i*p.Q};null!==u&&void 0!==u&&u.status&&(s.status=u.status);var d=j.ZP.pipeline_runs.list(s,{refreshInterval:3e3,revalidateOnFocus:!0}),w=d.data,y=d.mutate,Z=(0,l.useMemo)((function(){return(null===w||void 0===w?void 0:w.pipeline_runs)||[]}),[w]),N=(0,l.useMemo)((function(){var e;return(null===w||void 0===w||null===(e=w.metadata)||void 0===e?void 0:e.count)||[]}),[w]);return(0,x.jsxs)(o.Z,{errors:n,setErrors:r,title:"Pipeline runs",uuid:"pipeline_runs/index",children:[(0,x.jsx)(h.Z,{mx:2,my:1,children:(0,x.jsxs)(c.Z,{alignItems:"center",children:[(0,x.jsx)(g.ZP,{bold:!0,default:!0,large:!0,children:"Filter runs by status:"}),(0,x.jsx)(h.Z,{mr:1}),(0,x.jsxs)(v.Z,{compact:!0,defaultColor:!0,fitContent:!0,onChange:function(t){t.preventDefault(),"all"===t.target.value?e.push("/pipeline-runs"):(0,P.u7)({page:0,status:t.target.value})},paddingRight:4*m.iI,placeholder:"Select run status",value:(null===u||void 0===u?void 0:u.status)||"all",children:[(0,x.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(O.V).map((function(e){return(0,x.jsx)("option",{value:e,children:b.D[e]},e)}))]})]})}),(0,x.jsx)(f.Z,{fetchPipelineRuns:y,pipelineRuns:Z,setErrors:r}),(0,x.jsx)(h.Z,{p:2,children:(0,x.jsx)(p.Z,{maxPages:9,onUpdate:function(t){var n=Number(t),r=E(E({},u),{},{page:n>=0?n:0});e.push("/pipeline-runs","/pipeline-runs?".concat((0,_.uM)(r)))},page:Number(i),totalPages:Math.ceil(N/p.Q)})})]})}y.getInitialProps=(0,r.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),t.default=(0,d.Z)(y)},60710:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipeline-runs",function(){return n(92597)}])}},function(e){e.O(0,[3850,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1009],{66050:function(e,t,n){"use strict";var r;n.d(t,{V:function(){return r}}),function(e){e.CANCELLED="cancelled",e.COMPLETED="completed",e.FAILED="failed",e.INITIAL="initial",e.RUNNING="running"}(r||(r={}))},92597:function(e,t,n){"use strict";n.r(t);var r=n(77837),u=n(82394),i=n(38860),s=n.n(i),l=n(82684),a=n(34376),o=n(1210),c=n(67971),p=n(51099),f=n(97496),d=n(41788),v=n(55378),h=n(86673),g=n(19711),j=n(82531),b=n(47409),O=n(66050),m=n(49125),P=n(33766),_=n(59e3),x=n(28598);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){(0,u.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(){var e=(0,a.useRouter)(),t=(0,l.useState)(null),n=t[0],r=t[1],u=(0,_.iV)(),i=null!==u&&void 0!==u&&u.page?u.page:0,s={_limit:p.Q,_offset:i*p.Q};null!==u&&void 0!==u&&u.status&&(s.status=u.status);var d=j.ZP.pipeline_runs.list(s,{refreshInterval:3e3,revalidateOnFocus:!0}),w=d.data,y=d.mutate,Z=(0,l.useMemo)((function(){return(null===w||void 0===w?void 0:w.pipeline_runs)||[]}),[w]),N=(0,l.useMemo)((function(){var e;return(null===w||void 0===w||null===(e=w.metadata)||void 0===e?void 0:e.count)||[]}),[w]);return(0,x.jsxs)(o.Z,{errors:n,setErrors:r,title:"Pipeline runs",uuid:"pipeline_runs/index",children:[(0,x.jsx)(h.Z,{mx:2,my:1,children:(0,x.jsxs)(c.Z,{alignItems:"center",children:[(0,x.jsx)(g.ZP,{bold:!0,default:!0,large:!0,children:"Filter runs by status:"}),(0,x.jsx)(h.Z,{mr:1}),(0,x.jsxs)(v.Z,{compact:!0,defaultColor:!0,fitContent:!0,onChange:function(t){t.preventDefault(),"all"===t.target.value?e.push("/pipeline-runs"):(0,P.u7)({page:0,status:t.target.value})},paddingRight:4*m.iI,placeholder:"Select run status",value:(null===u||void 0===u?void 0:u.status)||"all",children:[(0,x.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(O.V).map((function(e){return(0,x.jsx)("option",{value:e,children:b.D[e]},e)}))]})]})}),(0,x.jsx)(f.Z,{fetchPipelineRuns:y,pipelineRuns:Z,setErrors:r}),(0,x.jsx)(h.Z,{p:2,children:(0,x.jsx)(p.Z,{maxPages:9,onUpdate:function(t){var n=Number(t),r=E(E({},u),{},{page:n>=0?n:0});e.push("/pipeline-runs","/pipeline-runs?".concat((0,_.uM)(r)))},page:Number(i),totalPages:Math.ceil(N/p.Q)})})]})}y.getInitialProps=(0,r.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),t.default=(0,d.Z)(y)},60710:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipeline-runs",function(){return n(92597)}])}},function(e){e.O(0,[3850,5716,2344,4506,6166,8180,4741,9774,2888,179],(function(){return t=60710,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6780],{2850:function(e,n,t){"use strict";t.d(n,{M:function(){return a},W:function(){return c}});var r=t(9518),i=t(23831),l=t(3055),c=34*t(49125).iI,a=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],l.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},60547:function(e,n,t){"use strict";t.d(n,{Z:function(){return P}});var r=t(82394),i=t(21831),l=t(82684),c=t(47999),a=t(1210),s=t(34744),u=t(49894),o=t(67971),d=t(87372),p=t(86673),f=t(82531),b=t(9518),h=t(23831),m=t(73942),v=t(49125),j=b.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],m.n_,3*v.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||h.Z.shadow).small,";\n ")}),(function(e){return e.background&&"\n background: ".concat(e.background,";\n ")}),(function(e){return e.backgroundImage&&'\n background-image: url("'.concat(e.backgroundImage,'");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n ')})),g=t(3055),x=t(95354),Z=t(24141),y=t(28598);function O(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?O(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=function(e){var n=e.after,t=e.afterHidden,r=e.afterWidth,b=e.before,h=e.beforeWidth,m=e.breadcrumbs,O=e.buildSidekick,P=e.children,_=e.errors,I=e.headline,w=e.pageName,S=e.pipeline,D=e.setErrors,C=e.subheader,E=e.subheaderBackground,N=e.subheaderBackgroundImage,T=e.subheaderButton,M=e.subheaderText,L=e.title,F=e.uuid,U=(0,Z.i)().height,A=S.uuid,R=f.ZP.pipelines.detail(A,{includes_outputs:!1},{revalidateOnFocus:!1}).data,H=null===R||void 0===R?void 0:R.pipeline,B=(0,l.useMemo)((function(){return n||(O?O({height:U,heightOffset:g.Mz,pipeline:H}):null)}),[n,O,U,H]),V=r||(B?50*v.iI:null),z=(0,l.useMemo)((function(){var e=[];return H&&(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),m?(e.push({label:function(){return H.uuid},linkProps:{as:"/pipelines/".concat(A,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,i.Z)(m)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return H.name}})),e}),[m,H,A]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(a.Z,{after:B,afterHidden:t,afterWidth:V,before:b,beforeWidth:h,breadcrumbs:z,navigationItems:(0,x.H)(w,H),subheaderChildren:"undefined"!==typeof C&&C,title:H?L?L(H):H.name:null,uuid:F,children:[(T||M)&&(0,y.jsx)(p.Z,{mb:v.Mq,mt:v.cd,mx:v.cd,children:(0,y.jsx)(j,{background:E,backgroundImage:N,children:(0,y.jsxs)(o.Z,{alignItems:"center",children:[T,M&&(0,y.jsx)(p.Z,{ml:3}),M]})})}),I&&(0,y.jsx)(p.Z,{p:v.cd,children:(0,y.jsxs)(p.Z,{mt:v.cd,px:v.cd,children:[(0,y.jsx)(d.Z,{level:5,children:I}),(0,y.jsx)(s.Z,{light:!0,mt:v.cd,short:!0})]})}),P]}),_&&(0,y.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,y.jsx)(u.Z,k(k({},_),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}},56681:function(e,n,t){"use strict";t.d(n,{G:function(){return x},Z:function(){return Z}});var r=t(75582),i=t(82394),l=t(26304),c=t(32316),a=t(22673),s=t(86532),u=t(86673),o=t(19711),d=t(58180),p=t(49125),f=t(19395),b=t(28598),h=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function m(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function v(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?m(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var j={uuid:"Run details"},g={uuid:"Dependency tree"},x=[g,j];function Z(e){var n=e.height,t=e.heightOffset,i=e.pipeline,m=e.selectedRun,Z=e.selectedTab,y=e.setSelectedTab,O=v({},(0,l.Z)(e,h));m?O.blockStatus=(0,f.IJ)(null===m||void 0===m?void 0:m.block_runs):O.noStatus=!0;var k=(null===m||void 0===m?void 0:m.variables)||{};null!==m&&void 0!==m&&m.event_variables&&(k.event=m.event_variables);var P=[];k&&JSON.stringify(k,null,2).split("\n").forEach((function(e){P.push(" ".concat(e))}));var _=m&&[["Run ID",null===m||void 0===m?void 0:m.id],["Variables",(0,b.jsx)(a.Z,{language:"json",small:!0,source:P.join("\n")})]],I=m&&(0,b.jsx)(u.Z,{pb:p.cd,px:p.cd,children:(0,b.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:_.map((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];return[(0,b.jsx)(o.ZP,{monospace:!0,muted:!0,children:t}),(0,b.jsx)(o.ZP,{monospace:!0,textOverflow:!0,children:i})]})),uuid:"LogDetail"})}),w=Z&&y;return(0,b.jsxs)(b.Fragment,{children:[w&&(0,b.jsx)(u.Z,{py:p.cd,children:(0,b.jsx)(c.Z,{onClickTab:y,selectedTabUUID:null===Z||void 0===Z?void 0:Z.uuid,tabs:x})}),(!w||g.uuid===(null===Z||void 0===Z?void 0:Z.uuid))&&(0,b.jsx)(s.Z,v(v({},O),{},{height:n,heightOffset:(t||0)+(w?76:0),pipeline:i})),j.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&I]})}},58122:function(e,n,t){"use strict";t.d(n,{CL:function(){return f},FS:function(){return b},JZ:function(){return m},e7:function(){return v},v0:function(){return p},wx:function(){return h}});var r=t(75582),i=t(82394),l=t(43313),c=t(93348),a=t(1286),s=t(90211),u=t(84779);function o(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?o(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function p(e){var n=e.statistics,t=Object.keys(n),r=Array(l.Dy.length).fill(0);return 0===t.length?null:(t.forEach((function(e){if(l.Dy.includes(e)){var t=l.CC[e],i=n[e],c=i,a=!1,s=[2,3],o=l.Ub[e],d=l.oH[e],p=l.OD[e];if(l.y_.includes(e))a=!0,s=[2,1,2];else if(e in l.Sq){i=(0,u.Jw)(i,0);var f=l.Sq[e];c=n[f]}var b={columnFlexNumbers:s,name:t,progress:a,rate:c,successDirection:d,warning:p};l.y_.includes(e)||(b.value=i),r[o]=b}})),r)}function f(e){var n=e.columnTypes,t=void 0===n?{}:n,r=e.statistics,i=Object.keys(r);if(0===i.length)return null;var c=Object.values(t),u=c.length,o=[];o.push({name:"Column count",successDirection:l.oH.column_count,value:(0,s.x6)(u)}),i.forEach((function(e){if(l.Zu.includes(e)){var n=l.CC[e],t=r[e],i=l.OD[e];o.push({name:n,successDirection:l.oH[e],value:(0,s.x6)(t),warning:i})}}));var d=(0,a.QO)(c),p=d.countCategory,f=d.countDatetime,b=d.countNumerical;return o.push({name:"Categorical Features",rate:p/u,value:(0,s.x6)(p)},{name:"Numerical Features",rate:b/u,value:(0,s.x6)(b)},{name:"Datetime Features",rate:f/u,value:(0,s.x6)(f)}),o}function b(e){return"string"===typeof e?e:JSON.stringify(e)}function h(e,n){var t,r;return null===e||void 0===e||null===(t=e.find((function(e){var t=e.block;return n(t)})))||void 0===t||null===(r=t.variables)||void 0===r?void 0:r.map((function(e){var n=e.value;return d(d({},e),{},{value:b(n)})}))}function m(e,n){return n===c.Xm.TIME?e.push({uuid:"execution_date",value:"<run datetime>"}):n===c.Xm.EVENT&&e.push({uuid:"event",value:"<trigger event>"}),e}function v(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,r.Z)(n,2),l=t[0],c=t[1],a=c;try{a=JSON.parse(c)}catch(s){}return d(d({},e),{},(0,i.Z)({},l,a))}),{}):e}},18025:function(e,n,t){"use strict";t.d(n,{J:function(){return s},U:function(){return a}});var r=t(9518),i=t(23831),l=t(73942),c=t(49125),a=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;"," ",""],l.TR,14*c.iI,c.cd*c.iI,c.cd*c.iI,40*c.iI,(function(e){return!e.selected&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.selected&&"\n border-color: ".concat((e.theme.interactive||i.Z.interactive).linkPrimary,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],l.n_,c.tr,(function(e){return"\n background-color: ".concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.absolute&&"\n position: absolute;\n z-index: 2;\n right: 0;\n top: ".concat(2.5*c.iI,"px;\n ")}),(function(e){return e.topPosition&&"\n top: -".concat(42*c.iI,"px;\n ")}))},43526:function(e,n,t){"use strict";t.d(n,{I7:function(){return r},IB:function(){return s},VV:function(){return l},_7:function(){return c},rn:function(){return a}});var r,i=t(66050),l="datetime",c="code",a=i.V;!function(e){e.SECOND="second",e.MINUTE="minute",e.HOUR="hour",e.DAY="day",e.WEEK="week",e.MONTH="month",e.YEAR="year",e.CUSTOM="custom"}(r||(r={}));var s=[r.MINUTE,r.HOUR,r.DAY,r.WEEK,r.MONTH,r.YEAR,r.CUSTOM]},2713:function(e,n,t){"use strict";var r=t(82394),i=t(44495),l=t(67971),c=t(55378),a=t(86673),s=t(19711),u=t(18025),o=t(49125),d=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 b(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,h=e.topPosition;return(0,p.jsxs)(u.J,{absolute:!0,topPosition:h,children:[(0,p.jsx)(i.ZP,{onChange:r,value:n}),(0,p.jsx)(a.Z,{mb:2}),(0,p.jsxs)(l.Z,{alignItems:"center",children:[(0,p.jsx)(s.ZP,{default:!0,large:!0,children:"Time (UTC):"}),(0,p.jsx)(a.Z,{pr:2}),(0,p.jsx)(c.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return b(b({},n),{},{hour:e.target.value})}))},paddingRight:5*o.iI,placeholder:"HH",value:null===t||void 0===t?void 0:t.hour,children:(0,d.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)(a.Z,{px:1,children:(0,p.jsx)(s.ZP,{bold:!0,large:!0,children:":"})}),(0,p.jsx)(c.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return b(b({},n),{},{minute:e.target.value})}))},paddingRight:5*o.iI,placeholder:"MM",value:null===t||void 0===t?void 0:t.minute,children:(0,d.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))}))})]})]})}},22673:function(e,n,t){"use strict";var r=t(82684),i=t(73199),l=t.n(i),c=t(71593),a=t(9518),s=t(65292),u=t(23831),o=t(2005),d=t(49125),p=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,i=e.showLineNumbers,f=e.small,b=e.source,h=e.wrapLines,m=(0,r.useContext)(a.ThemeContext);return(0,p.jsx)(l(),{source:b,renderers:{code:function(e){var r=e.value;return(0,p.jsx)(c.Z,{customStyle:{backgroundColor:(m.background||u.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:o.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,paddingBottom:2*d.iI,paddingTop:2*d.iI,maxWidth:t},lineNumberStyle:{color:(m.content||u.Z.content).muted},language:n,showLineNumbers:i,style:s._4,useInlineStyles:!0,wrapLines:h,children:r})}}})}},32316:function(e,n,t){"use strict";t.d(n,{Z:function(){return h}});var r=t(82684),i=t(60328),l=t(67971),c=t(882),a=t(86673),s=t(99994),u=t(9518),o=t(49125),d=t(37391),p=u.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],o.cd*o.iI,o.cd*o.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.allowScroll&&"\n overflow: auto;\n "}),d.w5),f=t(66653),b=t(28598);var h=function(e){var n=e.allowScroll,t=e.contained,u=e.noPadding,d=e.onClickTab,h=e.selectedTabUUID,m=e.small,v=e.tabs,j=(0,r.useMemo)((function(){var e=v.length,n=[];return v.forEach((function(t,r){var u=t.Icon,p=t.IconSelected,v=t.label,j=t.uuid,g=j===h,x=g&&p||u,Z=v?v():j,y=(0,b.jsxs)(l.Z,{alignItems:"center",children:[x&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(x,{default:!g,size:2*o.iI}),(0,b.jsx)(a.Z,{mr:1})]}),Z]});r>=1&&e>=2&&n.push((0,b.jsx)("div",{style:{marginLeft:1.5*o.iI}},"spacing-".concat(j))),g?n.push((0,b.jsx)(c.Z,{backgroundGradient:s.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:m,onClick:function(e){(0,f.j)(e),d(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:m,children:y},j)):n.push((0,b.jsx)("div",{style:{padding:4},children:(0,b.jsx)(i.Z,{borderLess:!0,compact:m,default:!0,onClick:function(e){(0,f.j)(e),d(t)},outline:!0,small:m,children:y})},"button-tab-".concat(j)))})),n}),[d,h,m,v]),g=(0,b.jsx)(l.Z,{alignItems:"center",children:j});return t?g:(0,b.jsx)(p,{allowScroll:n,noPadding:u,children:g})}},12625:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return te}});var r=t(75582),i=t(77837),l=t(82394),c=t(38860),a=t.n(c),s=t(82684),u=t(83455),o=t(34376),d=t(43526),p=t(60328),f=t(34744),b=t(67971),h=t(87372),m=t(51099),v=t(60547),j=t(97496),g=t(47409),x=t(55378),Z=t(86673),y=t(58180),O=t(19711),k=t(82531),P=t(56681),_=t(10503),I=t(2850),w=t(49125),S=t(59920),D=t(90211),C=t(58122),E=t(19395),N=t(33766),T=t(7715),M=t(9736),L=t(96510),F=t(66653),U=t(59e3),A=t(28598);function R(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function H(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?R(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):R(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var B=function(e){var n=e.backfill,t=e.fetchBackfill,i=e.pipeline,l=e.variables,c=(0,M.Ct)(),a=(0,o.useRouter)(),R=n||{},B=R.block_uuid,V=R.end_datetime,z=R.id,W=R.interval_type,Y=R.interval_units,J=R.name,q=R.pipeline_run_dates,G=R.start_datetime,K=R.status,X=R.total_run_count,Q=R.variables,$=void 0===Q?{}:Q,ee=i.uuid,ne=(0,U.iV)(),te=(0,s.useState)(null),re=te[0],ie=te[1],le={_limit:40,_offset:40*(null!==ne&&void 0!==ne&&ne.page?ne.page:0)};null!==ne&&void 0!==ne&&ne.status&&(le.status=ne.status);var ce=k.ZP.pipeline_runs.list(H(H({},le),{},{backfill_id:z,order_by:["id DESC"]}),{refreshInterval:3e3,revalidateOnFocus:!0},{pauseFetch:!z}),ae=ce.data,se=ce.mutate,ue=!(G&&V&&W&&Y),oe=!K,de=(0,s.useMemo)((function(){return(oe?q:null===ae||void 0===ae?void 0:ae.pipeline_runs)||[]}),[ae,q,oe]),pe=(0,s.useMemo)((function(){var e;return(null===ae||void 0===ae||null===(e=ae.metadata)||void 0===e?void 0:e.count)||[]}),[ae]),fe=(0,s.useState)(null),be=fe[0],he=fe[1],me=(0,s.useMemo)((function(){var e=null!==ne&&void 0!==ne&&ne.page?ne.page:0;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(j.Z,{disableRowSelect:oe,emptyMessage:null!==ne&&void 0!==ne&&ne.status?"No runs available":'No runs available. Please complete backfill configuration by clicking "Edit backfill" above.',fetchPipelineRuns:se,onClickRow:function(e){return he((function(n){var t=de[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:de,selectedRun:be}),(0,A.jsx)(Z.Z,{p:2,children:(0,A.jsx)(m.Z,{page:Number(e),maxPages:9,onUpdate:function(e){var n=Number(e),t=H(H({},ne),{},{page:n>=0?n:0});a.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(ee,"/triggers/").concat(z,"?").concat((0,U.uM)(t)))},totalPages:Math.ceil(pe/40)})})]})}),[se,i,de,be]),ve=(0,s.useState)(P.G[0]),je=ve[0],ge=ve[1],xe=(0,u.Db)(k.ZP.backfills.useUpdate(z),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){t(),se()},onErrorCallback:function(e,n){return ie({errors:n,response:e})}})}}),Ze=(0,r.Z)(xe,2),ye=Ze[0],Oe=Ze[1].isLoading,ke=(0,s.useMemo)((function(){return!!K&&(d.rn.CANCELLED!==K&&d.rn.FAILED!==K)}),[K]),Pe=(0,s.useMemo)((function(){return K&&d.rn.CANCELLED!==K&&d.rn.FAILED!==K&&d.rn.INITIAL!==K&&d.rn.RUNNING!==K}),[K]),_e=(0,s.useMemo)((function(){var e={default:!0,size:1.5*w.iI},n=[[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.VW,H({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Backfill type"})]},"backfill_type_label"),(0,A.jsx)(O.ZP,{monospace:!0,children:B?d._7:d.VV},"backfill_type")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.rs,H({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Status"})]},"backfill_status_label"),(0,A.jsx)(O.ZP,{danger:d.rn.CANCELLED===K||d.rn.FAILED==K,default:d.rn.INITIAL===K,monospace:!0,muted:!K,success:d.rn.RUNNING===K||d.rn.COMPLETED===K,children:K||"inactive"},"backfill_status")]];return B||n.push.apply(n,[[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.aw,H({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Start date and time"})]},"backfill_start_date_label"),(0,A.jsx)(O.ZP,{monospace:!0,children:(0,E.Vx)(G)},"backfill_start_date")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.aw,H({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"End date and time"})]},"backfill_end_date_label"),(0,A.jsx)(O.ZP,{monospace:!0,children:(0,E.Vx)(V)},"backfill_end_date")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.Pf,H({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Interval type"})]},"interval_type_label"),(0,A.jsx)(O.ZP,{monospace:!0,children:W&&(0,D.kC)(W)},"interval_type")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.Pf,H({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Interval units"})]},"interval_units_label"),(0,A.jsx)(O.ZP,{monospace:!0,children:Y},"interval_units")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.qZ,H({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Total runs"})]},"total_runs_label"),(0,A.jsx)(O.ZP,{monospace:!0,children:X},"total_runs")]]),(0,A.jsx)(y.Z,{columnFlex:[null,1],rows:n})}),[B,V,W,Y,ke,G,K]),Ie=(0,s.useMemo)((function(){return $||{}}),[$]),we=(0,s.useMemo)((function(){var e,n=[];return(0,T.Qr)(Ie)?n=(0,C.wx)(l,(function(e){return"global"===e.uuid})):Object.entries(Ie).forEach((function(e){var t=(0,r.Z)(e,2),i=t[0],l=t[1];n.push({uuid:i,value:(0,C.FS)(l)})})),"undefined"!==typeof n&&null!==(e=n)&&void 0!==e&&e.length?(0,A.jsx)(y.Z,{columnFlex:[null,1],rows:n.map((function(e){var n=e.uuid,t=e.value;return[(0,A.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:n},"settings_variable_label_".concat(n)),(0,A.jsx)(O.ZP,{monospace:!0,small:!0,children:t},"settings_variable_".concat(n))]}))}):null}),[Ie,l]);return(0,A.jsx)(A.Fragment,{children:(0,A.jsxs)(v.Z,{afterHidden:!be,before:(0,A.jsxs)(I.M,{children:[(0,A.jsxs)(Z.Z,{mb:w.HN,pt:w.cd,px:w.cd,children:[(0,A.jsx)(Z.Z,{mb:w.cd,children:(0,A.jsx)(_.yg,{size:5*w.iI})}),(0,A.jsx)(h.Z,{children:J})]}),(0,A.jsx)(Z.Z,{px:w.cd,children:(0,A.jsx)(h.Z,{level:5,children:"Settings"})}),(0,A.jsx)(f.Z,{light:!0,mt:1,short:!0}),_e,we&&(0,A.jsxs)(Z.Z,{my:w.HN,children:[(0,A.jsx)(Z.Z,{px:w.cd,children:(0,A.jsx)(h.Z,{level:5,children:"Runtime variables"})}),(0,A.jsx)(f.Z,{light:!0,mt:1,short:!0}),we]})]}),beforeWidth:34*w.iI,breadcrumbs:[{label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(ee,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{label:function(){return J},linkProps:{as:"/pipelines/".concat(ee,"/backfills/").concat(z),href:"/pipelines/[pipeline]/backfills/[...slug]"}}],buildSidekick:function(e){return(0,P.Z)(H(H({},e),{},{selectedRun:be,selectedTab:je,setSelectedTab:ge}))},errors:re,pageName:S.M.BACKFILLS,pipeline:i,setErrors:ie,subheader:(0,A.jsxs)(b.Z,{alignItems:"center",children:[!Pe&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(p.Z,{beforeIcon:ke?(0,A.jsx)(_.dz,{size:2*w.iI}):(0,A.jsx)(_.Py,{inverted:!(d.rn.CANCELLED===K||d.rn.FAILED===K),size:2*w.iI}),danger:ke,disabled:ue,loading:Oe,onClick:function(e){(0,F.j)(e),ye({backfill:{status:ke?d.rn.CANCELLED:d.rn.INITIAL}})},outline:!0,success:!ke&&!(d.rn.CANCELLED===K||d.rn.FAILED===K)&&!ue,children:ke?"Cancel backfill":d.rn.CANCELLED===K||d.rn.FAILED===K?"Retry backfill":"Start backfill"}),(0,A.jsx)(Z.Z,{mr:w.cd})]}),!c&&(0,A.jsxs)(A.Fragment,{children:[K===g.V.COMPLETED?(0,A.jsx)(O.ZP,{bold:!0,default:!0,large:!0,children:"Filter runs by status:"}):(0,A.jsx)(p.Z,{linkProps:{as:"/pipelines/".concat(ee,"/backfills/").concat(z,"/edit"),href:"/pipelines/[pipeline]/backfills/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Edit backfill"}),(0,A.jsx)(Z.Z,{mr:w.cd})]}),!oe&&(0,A.jsxs)(x.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?a.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(ee,"/backfills/").concat(z)):(0,N.u7)({page:0,status:e.target.value})},paddingRight:4*w.iI,placeholder:"Select run status",value:(null===ne||void 0===ne?void 0:ne.status)||"all",children:[(0,A.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(g.V).map((function(e){return(0,A.jsx)("option",{value:e,children:g.D[e]},e)}))]})]}),title:function(){return J},uuid:"backfill/detail",children:[(0,A.jsx)(Z.Z,{mt:w.cd,px:w.cd,children:(0,A.jsx)(h.Z,{level:5,children:"Runs for this backfill"})}),(0,A.jsx)(f.Z,{light:!0,mt:w.cd,short:!0}),me]})})},V=t(2713),z=t(47999),W=t(93461),Y=t(82944),J=[{label:function(){return"Date and time window"},description:function(){return"Backfill between a date and time range."},uuid:d.VV}],q=t(18025);function G(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?G(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):G(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var X=function(e){var n=e.backfill,t=e.fetchBackfill,i=e.pipeline,l=(e.variables,(0,o.useRouter)()),c=(0,s.useState)(),a=c[0],m=c[1],j=a||{},g=j.block_uuid,P=j.id,I=j.interval_type,N=j.interval_units,M=(j.end_datetime,j.start_datetime,j.name),F=i.uuid,U=(0,s.useState)(null),R=U[0],H=U[1],B=(0,s.useState)({}),G=B[0],X=(B[1],(0,s.useState)(g?d._7:d.VV)),Q=X[0],$=X[1],ee=(0,s.useState)(!1),ne=ee[0],te=ee[1],re=(0,s.useState)(!1),ie=re[0],le=re[1],ce=(0,s.useState)(null),ae=ce[0],se=ce[1],ue=(0,s.useState)(null),oe=ue[0],de=ue[1],pe=(0,s.useState)({hour:"00",minute:"00"}),fe=pe[0],be=pe[1],he=(0,s.useState)({hour:"00",minute:"00"}),me=he[0],ve=he[1];(0,s.useEffect)((function(){if(n){m(n);var e=n.start_datetime;if(e){var t=e.split(" ")[1];de((0,E.eI)(e)),ve({hour:t.substring(0,2),minute:t.substring(3,5)})}var r=n.end_datetime;if(r){var i=r.split(" ")[1];se((0,E.eI)(r)),be({hour:i.substring(0,2),minute:i.substring(3,5)})}}}),[n]);var je=(0,s.useMemo)((function(){var e=[[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.KJ,{default:!0,size:1.5*w.iI}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Backfill name"})]},"model_name_detail"),(0,A.jsx)(Y.Z,{monospace:!0,onChange:function(e){e.preventDefault(),m((function(n){return K(K({},n),{},{name:e.target.value})}))},placeholder:"Name this backfill",value:M},"model_name_input_detail")]];return d.VV===Q&&e.push.apply(e,[[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.aw,{default:!0,size:1.5*w.iI}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Start date and time"})]},"start_time"),(0,A.jsxs)("div",{style:{minHeight:"".concat(5.75*w.iI,"px")},children:[!ne&&(0,A.jsx)(Y.Z,{monospace:!0,onClick:function(){return te((function(e){return!e}))},onFocus:function(){return te(!0)},placeholder:"YYYY-MM-DD HH:MM",value:oe?"".concat(oe.toISOString().split("T")[0]," ").concat(null===me||void 0===me?void 0:me.hour,":").concat(null===me||void 0===me?void 0:me.minute):""}),(0,A.jsx)("div",{style:{width:"400px"},children:(0,A.jsx)(z.Z,{disableEscape:!0,onClickOutside:function(){return te(!1)},open:ne,style:{position:"relative"},children:(0,A.jsx)(V.Z,{selectedDate:oe,selectedTime:me,setSelectedDate:de,setSelectedTime:ve,topPosition:!0})})})]},"start_time_input")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.aw,{default:!0,size:1.5*w.iI}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"End date and time"})]},"end_time"),(0,A.jsxs)("div",{style:{minHeight:"".concat(5.75*w.iI,"px")},children:[!ie&&(0,A.jsx)(Y.Z,{monospace:!0,onClick:function(){return le((function(e){return!e}))},onFocus:function(){return le(!0)},placeholder:"YYYY-MM-DD HH:MM",value:ae?"".concat(ae.toISOString().split("T")[0]," ").concat(null===fe||void 0===fe?void 0:fe.hour,":").concat(null===fe||void 0===fe?void 0:fe.minute):""}),(0,A.jsx)("div",{style:{width:"400px"},children:(0,A.jsx)(z.Z,{disableEscape:!0,onClickOutside:function(){return le(!1)},open:ie,style:{position:"relative"},children:(0,A.jsx)(V.Z,{selectedDate:ae,selectedTime:fe,setSelectedDate:se,setSelectedTime:be,topPosition:!0})})})]},"end_time_input")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.Pf,{default:!0,size:1.5*w.iI}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Interval type"})]},"interval_type"),(0,A.jsxs)(x.Z,{monospace:!0,onChange:function(e){e.preventDefault(),m((function(n){return K(K({},n),{},{interval_type:e.target.value})}))},placeholder:"Time spacing between each backfill",value:I,children:[!I&&(0,A.jsx)("option",{value:""}),d.IB.map((function(e){return(0,A.jsx)("option",{value:e,children:(0,D.kC)(e)},e)}))]},"interval_type_input")],[(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(_.Pf,{default:!0,size:1.5*w.iI}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(O.ZP,{default:!0,children:"Interval units"})]},"interval_units"),(0,A.jsx)(Y.Z,{disabled:!I,monospace:!0,onChange:function(e){e.preventDefault(),m((function(n){return K(K({},n),{},{interval_units:e.target.value})}))},placeholder:I?"Number of ".concat(I).concat(I!==d.I7.CUSTOM?"s":""," between each backfill"):"Interval type is required",type:"number",value:N},"interval_unit_input")]]),(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Z.Z,{mb:2,px:w.cd,children:(0,A.jsx)(h.Z,{children:"Settings"})}),(0,A.jsx)(f.Z,{light:!0,short:!0}),(0,A.jsx)(y.Z,{columnFlex:[null,1],rows:e})]})}),[ae,oe,I,N,M,Q,ne,ie,fe,me]),ge=(0,u.Db)(k.ZP.backfills.useUpdate(P),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){t(),l.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(F,"/backfills/").concat(P))},onErrorCallback:function(e,n){return H({errors:n,response:e})}})}}),xe=(0,r.Z)(ge,2),Ze=xe[0],ye=xe[1].isLoading,Oe=(0,s.useCallback)((function(){var e=K(K({},(0,T.GL)(a,["name"])),{},{end_datetime:null,interval_type:null,interval_units:null,start_datetime:null,variables:(0,C.e7)(G)});return d._7===Q||(e.interval_type=I,e.interval_units=N,e.end_datetime=ae&&null!==fe&&void 0!==fe&&fe.hour&&null!==fe&&void 0!==fe&&fe.minute?"".concat(ae.toISOString().split("T")[0]," ").concat(null===fe||void 0===fe?void 0:fe.hour,":").concat(null===fe||void 0===fe?void 0:fe.minute,":00"):null,e.start_datetime=oe&&null!==me&&void 0!==me&&me.hour&&null!==me&&void 0!==me&&me.minute?"".concat(oe.toISOString().split("T")[0]," ").concat(null===me||void 0===me?void 0:me.hour,":").concat(null===me||void 0===me?void 0:me.minute,":00"):null),Ze({backfill:e})}),[ae,oe,I,N,a,G,Q,fe,me]),ke=(0,s.useMemo)((function(){return d._7===Q?!g:!(ae&&oe&&I&&N)}),[g,ae,oe,I,N,Q,fe,me]);return(0,A.jsxs)(v.Z,{breadcrumbs:[{label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(F,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{label:function(){return null===a||void 0===a?void 0:a.name},linkProps:{as:"/pipelines/".concat(F,"/backfills/").concat(P),href:"/pipelines/[pipeline]/backfills/[...slug]"}}],errors:R,pageName:S.M.BACKFILLS,pipeline:i,setErrors:H,subheader:(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(p.Z,{disabled:ke,loading:ye,onClick:Oe,outline:!0,primary:!0,children:"Save changes"}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(p.Z,{linkProps:{href:"/pipelines/[pipeline]/backfills/[...slug]",as:"/pipelines/".concat(F,"/backfills/").concat(P)},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel"})]}),title:function(){return"Edit ".concat(null===a||void 0===a?void 0:a.name)},uuid:"backfill/edit",children:[(0,A.jsxs)(Z.Z,{p:w.cd,children:[(0,A.jsxs)(Z.Z,{mb:2,children:[(0,A.jsx)(h.Z,{children:"Backfill type"}),(0,A.jsx)(O.ZP,{muted:!0,children:"How would you like this pipeline to be backfilled?"})]}),(0,A.jsx)(b.Z,{children:J.map((function(e){var n=e.label,t=e.description,r=e.uuid,i=Q===r,l=Q&&!i;return(0,A.jsx)(p.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){$(r)},children:(0,A.jsx)(q.U,{selected:i,children:(0,A.jsxs)(b.Z,{alignItems:"center",children:[(0,A.jsx)(W.Z,{children:(0,A.jsx)("input",{checked:i,type:"radio"})}),(0,A.jsx)(Z.Z,{mr:w.cd}),(0,A.jsxs)(W.Z,{alignItems:"flex-start",flexDirection:"column",children:[(0,A.jsx)(h.Z,{bold:!0,default:!i&&!l,level:5,muted:!i&&l,children:n()}),(0,A.jsx)(O.ZP,{default:!i&&!l,leftAligned:!0,muted:l,children:t()})]})]})})},r)}))})]}),(0,A.jsx)(Z.Z,{mt:5,children:je})]})},Q=t(41788);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,l.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}function ne(e){var n=e.backfillId,t=e.pipelineUUID,r=e.subpath,i=k.ZP.variables.pipelines.list(t).data,l=(0,s.useMemo)((function(){return null===i||void 0===i?void 0:i.variables}),[i]),c=k.ZP.pipelines.detail(t,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,a=(0,s.useMemo)((function(){return ee(ee({},null===c||void 0===c?void 0:c.pipeline),{},{uuid:t})}),[c,t]),u=k.ZP.backfills.detail(n,{include_preview_runs:!0}),o=u.data,d=u.mutate,p=(0,s.useMemo)((function(){return null===o||void 0===o?void 0:o.backfill}),[o]);return"edit"===r?(0,A.jsx)(X,{backfill:p,fetchBackfill:d,pipeline:a,variables:l}):(0,A.jsx)(B,{backfill:p,fetchBackfill:d,pipeline:a,variables:l})}ne.getInitialProps=function(){var e=(0,i.Z)(a().mark((function e(n){var t,i,l,c,s,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.query,i=t.pipeline,l=t.slug,!Array.isArray(l)){e.next=4;break}return c=(0,r.Z)(l,2),s=c[0],u=c[1],e.abrupt("return",{backfillId:s,pipelineUUID:i,subpath:u});case 4:return e.abrupt("return",{pipelineUUID:i});case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var te=(0,Q.Z)(ne)},53664:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/backfills/[...slug]",function(){return t(12625)}])}},function(e){e.O(0,[3850,5716,5896,4804,1774,5872,2524,4495,2344,4506,6166,8180,6214,6532,1286,4741,9774,2888,179],(function(){return n=53664,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([[8450],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(82394),i=t(21831),u=t(82684),o=t(47999),c=t(49894),l=t(93461),a=t(57384),s=t(12344),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var b=u.forwardRef(p),h=t(32063),v=t(15270),m=t(82531),O=t(66166),g=t(3055),j=t(49125),k=t(91427),y=t(24141);function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,x=e.afterWidthOverride,w=e.before,Z=e.beforeWidth,E=e.breadcrumbs,_=e.children,C=e.errors,D=e.headerMenuItems,I=e.navigationItems,S=e.setErrors,N=e.subheaderChildren,M=e.title,A=e.uuid,R=(0,y.i)().width,H="dashboard_after_width_".concat(A),T="dashboard_before_width_".concat(A),L=(0,u.useRef)(null),U=(0,u.useState)(x?p:(0,k.U2)(H,p)),V=U[0],B=U[1],W=(0,u.useState)(!1),F=W[0],Y=W[1],z=(0,u.useState)(w?Math.max((0,k.U2)(T,Z),13*j.iI):null),K=z[0],q=z[1],G=(0,u.useState)(!1),J=G[0],X=G[1],Q=(0,u.useState)(null)[1],$=m.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===$||void 0===$?void 0:$.projects,ne=[];E?ne.push.apply(ne,(0,i.Z)(E)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return M}}]),(0,u.useEffect)((function(){null===L||void 0===L||!L.current||F||J||null===Q||void 0===Q||Q(L.current.getBoundingClientRect().width)}),[F,V,J,K,L,Q,R]),(0,u.useEffect)((function(){F||(0,k.t8)(H,V)}),[r,F,V,H]),(0,u.useEffect)((function(){J||(0,k.t8)(T,K)}),[J,K,T]);var te=(0,O.Z)(p);return(0,u.useEffect)((function(){x&&te!==p&&B(p)}),[x,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Z,{title:M}),(0,f.jsx)(s.Z,{breadcrumbs:ne,menuItems:D,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===I||void 0===I?void 0:I.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(v.Z,{navigationItems:I})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:t,afterHeightOffset:g.Mz,afterHidden:r,afterMousedownActive:F,afterWidth:V,before:w,beforeHeightOffset:g.Mz,beforeMousedownActive:J,beforeWidth:d.k1+(w?K:0),hideAfterCompletely:!0,leftOffset:w?d.k1:null,mainContainerRef:L,setAfterMousedownActive:Y,setAfterWidth:B,setBeforeMousedownActive:X,setBeforeWidth:q,children:[N&&(0,f.jsx)(b,{children:N}),_]})})]}),C&&(0,f.jsx)(o.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===S||void 0===S?void 0:S(null)},children:(0,f.jsx)(c.Z,P(P({},C),{},{onClose:function(){return null===S||void 0===S?void 0:S(null)}}))})]})}},60547:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(82394),i=t(21831),u=t(82684),o=t(47999),c=t(1210),l=t(34744),a=t(49894),s=t(67971),d=t(87372),f=t(86673),p=t(82531),b=t(9518),h=t(23831),v=t(73942),m=t(49125),O=b.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],v.n_,3*m.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||h.Z.shadow).small,";\n ")}),(function(e){return e.background&&"\n background: ".concat(e.background,";\n ")}),(function(e){return e.backgroundImage&&'\n background-image: url("'.concat(e.backgroundImage,'");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n ')})),g=t(3055),j=t(95354),k=t(24141),y=t(28598);function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n=e.after,t=e.afterHidden,r=e.afterWidth,b=e.before,h=e.beforeWidth,v=e.breadcrumbs,x=e.buildSidekick,w=e.children,Z=e.errors,E=e.headline,_=e.pageName,C=e.pipeline,D=e.setErrors,I=e.subheader,S=e.subheaderBackground,N=e.subheaderBackgroundImage,M=e.subheaderButton,A=e.subheaderText,R=e.title,H=e.uuid,T=(0,k.i)().height,L=C.uuid,U=p.ZP.pipelines.detail(L,{includes_outputs:!1},{revalidateOnFocus:!1}).data,V=null===U||void 0===U?void 0:U.pipeline,B=(0,u.useMemo)((function(){return n||(x?x({height:T,heightOffset:g.Mz,pipeline:V}):null)}),[n,x,T,V]),W=r||(B?50*m.iI:null),F=(0,u.useMemo)((function(){var e=[];return V&&(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),v?(e.push({label:function(){return V.uuid},linkProps:{as:"/pipelines/".concat(L,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,i.Z)(v)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return V.name}})),e}),[v,V,L]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(c.Z,{after:B,afterHidden:t,afterWidth:W,before:b,beforeWidth:h,breadcrumbs:F,navigationItems:(0,j.H)(_,V),subheaderChildren:"undefined"!==typeof I&&I,title:V?R?R(V):V.name:null,uuid:H,children:[(M||A)&&(0,y.jsx)(f.Z,{mb:m.Mq,mt:m.cd,mx:m.cd,children:(0,y.jsx)(O,{background:S,backgroundImage:N,children:(0,y.jsxs)(s.Z,{alignItems:"center",children:[M,A&&(0,y.jsx)(f.Z,{ml:3}),A]})})}),E&&(0,y.jsx)(f.Z,{p:m.cd,children:(0,y.jsxs)(f.Z,{mt:m.cd,px:m.cd,children:[(0,y.jsx)(d.Z,{level:5,children:E}),(0,y.jsx)(l.Z,{light:!0,mt:m.cd,short:!0})]})}),w]}),Z&&(0,y.jsx)(o.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,y.jsx)(a.Z,P(P({},Z),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}},19395:function(e,n,t){"use strict";t.d(n,{IJ:function(){return s},Vx:function(){return f},eI:function(){return d},gU:function(){return b},tL:function(){return p},vJ:function(){return h}});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 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}function s(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,r=n.completed_at,i=n.started_at,o=n.status,l=null;i&&r&&(l=c()(r).valueOf()-c()(i).valueOf());return a(a({},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 f(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 p=(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 b(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 h(e,n){return e*p[n]}},43526:function(e,n,t){"use strict";t.d(n,{I7:function(){return r},IB:function(){return l},VV:function(){return u},_7:function(){return o},rn:function(){return c}});var r,i=t(66050),u="datetime",o="code",c=i.V;!function(e){e.SECOND="second",e.MINUTE="minute",e.HOUR="hour",e.DAY="day",e.WEEK="week",e.MONTH="month",e.YEAR="year",e.CUSTOM="custom"}(r||(r={}));var l=[r.MINUTE,r.HOUR,r.DAY,r.WEEK,r.MONTH,r.YEAR,r.CUSTOM]},66050:function(e,n,t){"use strict";var r;t.d(n,{V:function(){return r}}),function(e){e.CANCELLED="cancelled",e.COMPLETED="completed",e.FAILED="failed",e.INITIAL="initial",e.RUNNING="running"}(r||(r={}))},47409:function(e,n,t){"use strict";t.d(n,{D:function(){return o},V:function(){return u}});var r,i=t(82394),u=t(66050).V,o=(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)},30206:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var r=t(77837),i=t(75582),u=t(38860),o=t.n(u),c=t(82684),l=t(83455),a=t(34376),s=t(12691),d=t.n(s),f=t(43526),p=t(60328),b=t(10919),h=t(58180),v=t(19711),m=t(10503),O=t(47409),g=t(49125),j=t(19395),k=t(9736),y=t(28598);var x=function(e){var n=e.models,t=e.onClickRow,r=e.pipeline,i=e.selectedRow,u=(0,k.Ct)(),o=null===r||void 0===r?void 0:r.uuid,c=[{uuid:"Status"},{uuid:"Name"},{uuid:"Type"},{uuid:"Runs"},{uuid:"Backfill"},{uuid:"Started at"},{uuid:"Completed at"}];return u||c.push({label:function(){return""},uuid:"edit"}),(0,y.jsx)(h.Z,{columnFlex:[null,1,null,null,null,1,1,null],columns:c,isSelectedRow:function(e){return n[e].id===(null===i||void 0===i?void 0:i.id)},onClickRow:function(e){return t(n[e])},rows:n.map((function(e,n){var t=e.block_uuid,r=e.completed_at,i=e.end_datetime,c=e.id,l=e.name,a=e.start_datetime,s=e.started_at,h=e.status,k=e.total_run_count,x=[(0,y.jsx)(v.ZP,{default:!0,monospace:!0,children:h||"inactive"},"status"),(0,y.jsx)(d(),{as:"/pipelines/".concat(o,"/backfills/").concat(c),href:"/pipelines/[pipeline]/backfills/[...slug]",passHref:!0,children:(0,y.jsx)(b.Z,{bold:!0,sameColorAsText:!0,children:l})},"name"),(0,y.jsx)(v.ZP,{default:!0,monospace:!0,children:t?f._7:f.VV},"type"),(0,y.jsx)(v.ZP,{default:!0,monospace:!0,children:k||0},"runs"),(0,y.jsxs)(v.ZP,{default:!0,monospace:!0,children:[a&&i&&(0,y.jsxs)(y.Fragment,{children:[(0,j.Vx)(a),"\xa0-\xa0",(0,j.Vx)(i)]}),!(a&&i)&&"-"]},"backfill"),(0,y.jsx)(v.ZP,{default:!0,monospace:!0,children:s?(0,j.Vx)(s):"-"},"started_at"),(0,y.jsx)(v.ZP,{default:!0,monospace:!0,children:r?(0,j.Vx)(r):"-"},"completed_at")];return u||x.push((0,y.jsx)(p.Z,{default:!0,disabled:h===O.V.COMPLETED,iconOnly:!0,linkProps:{as:"/pipelines/".concat(o,"/backfills/").concat(c,"/edit"),href:"/pipelines/[pipeline]/backfills/[...slug]"},noBackground:!0,title:"Edit",children:(0,y.jsx)(m.I8,{default:!0,size:2*g.iI})},"".concat(n,"_edit_button"))),x})),uuid:"pipeline-runs"})},P=t(11135),w=t(60547),Z=t(41788),E=t(86673),_=t(82531),C=t(59920),D=t(33766),I=t(96510),S=t(59e3),N=t(90211);function M(e){var n=e.pipeline,t=(0,a.useRouter)(),r=n.uuid,u=_.ZP.backfills.list({_limit:20,_offset:0,include_run_count:!0,pipeline_uuid:r},{refreshInterval:6e4}),o=u.data,s=(u.mutate,(0,c.useMemo)((function(){return(null===o||void 0===o?void 0:o.backfills)||[]}),[o])),d=(0,S.iV)(),f=(0,c.useState)(null),p=f[0],b=f[1],h=(0,c.useState)(null),O=h[0],j=h[1];(0,c.useEffect)((function(){null!==d&&void 0!==d&&d.backfill_id?b(null===s||void 0===s?void 0:s.find((function(e){return e.id===Number(d.backfill_id)}))):p&&b(null)}),[s,d,p]);var k=(0,c.useMemo)((function(){var e="/pipelines/".concat(r,"/backfills"),n=[{label:function(){return"Backfills"},linkProps:p?{as:e,href:"/pipelines/[pipeline]/backfills"}:null}];return p&&n.push({label:function(){return p.name}}),n}),[p]),Z=(0,l.Db)(_.ZP.backfills.pipelines.useCreate(r),{onSuccess:function(e){return(0,I.wD)(e,{callback:function(e){var n=e.backfill.id;t.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(r,"/backfills/").concat(n,"/edit"))},onErrorCallback:function(e,n){return j({errors:n,response:e})}})}}),M=(0,i.Z)(Z,2),A=M[0],R=M[1].isLoading;return(0,y.jsxs)(w.Z,{breadcrumbs:k,errors:O,pageName:C.M.BACKFILLS,pipeline:n,setErrors:j,title:function(e){var n=e.name;return"".concat(n," backfills")},uuid:"".concat(C.M.BACKFILLS,"_").concat(r),children:[(0,y.jsx)(E.Z,{p:g.cd,children:(0,y.jsx)(P.ZP,{beforeElement:(0,y.jsx)(m.mm,{size:2.5*g.iI}),blackBorder:!0,inline:!0,loading:R,noHoverUnderline:!0,onClick:function(){return A({backfill:{name:(0,N.Y6)()}})},sameColorAsText:!0,uuid:"PipelineDetailPage/Backfills/add_new_backfill",children:"Create new backfill"})}),s&&0===s.length&&(0,y.jsx)(E.Z,{p:g.cd,children:(0,y.jsx)(v.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No backfills available"})}),(null===s||void 0===s?void 0:s.length)>=1&&(0,y.jsx)(x,{models:s,onClickRow:function(e){var n=e.id;return(0,D.u7)({backfill_id:n})},pipeline:n,selectedRow:p})]})}M.getInitialProps=function(){var e=(0,r.Z)(o().mark((function e(n){var t;return o().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 A=(0,Z.Z)(M)},33766:function(e,n,t){"use strict";t.d(n,{g_:function(){return f},u7:function(){return d}});var r=t(75582),i=t(82394),u=t(34376),o=t.n(u),c=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 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}function d(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,u=t.pushHistory,l=i?{}:(0,c.iV)();n=window.location.pathname;var a=u?o().push:o().replace,d=s(s({},l),e);Object.entries(e).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];"undefined"!==typeof i&&null!==i||delete d[t]}));var f=(0,c.uM)(d);f.length>=1&&(f="?".concat(f));var p="".concat(n.split("?")[0]).concat(f);return a(o().router.pathname,p,{shallow:!0})}function f(e,n,t){var i=t.addingMultipleValues,u=t.isList,o=t.itemsPerPage,c=t.pushHistory,a=void 0!==c&&c,f=t.resetLimitParams,p=s({},e);i?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];if(Array.isArray(i)){var u="".concat(t,"[]");p[u]=i.map(String)}})):u?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1],u=String(i),o="".concat(t,"[]"),c=p[o];c&&Array.isArray(c)?(c=c.map(String)).includes(u)?p[o]=(0,l.Od)(c,(function(e){return e===u})):p[o]=c.concat(u):p[o]=[u]})):p=s(s({},p),n),f&&(p._limit=o||20,p._offset=0),d(p,{pushHistory:a})}},37459:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/backfills",function(){return t(30206)}])}},function(e){e.O(0,[3850,5716,2344,4506,6166,8180,6214,9774,2888,179],(function(){return n=37459,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|