mage-ai 0.8.48__py3-none-any.whl → 0.8.49__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mage-ai might be problematic. Click here for more details.
- mage_ai/api/resources/DataProviderResource.py +12 -1
- mage_ai/data_preparation/models/block/sql/__init__.py +5 -7
- mage_ai/data_preparation/models/pipeline.py +36 -3
- mage_ai/data_preparation/templates/repo/io_config.yaml +6 -0
- 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/{MxJEQAsVYkCzpf7Sf1BKY → I2bRLK9B7Lap2LvCicTKv}/_buildManifest.js +1 -1
- 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/{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-a90063795b0eae44.js → 4741-5fbecd08232ba3f9.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{5477-793cd2120261d023.js → 5477-b439f211b6146a11.js} +1 -1
- 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/{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-68a4afe10fa0958c.js → manage-8a7b2b707c7038fb.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-24c7b51521b5da92.js → [...slug]-c48a45cea6df6192.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{backfills-f0f726599529789c.js → backfills-dd637dcb042ff771.js} +1 -1
- 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-a26b3d2b4806cb75.js → logs-caa9fade2bc783b9.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-534e4fdf17255583.js → [run]-5f78885afc7758df.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{runs-a9636cb88ec885bd.js → runs-43f2c1658cd3d03d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{settings-3719bc2024f5d031.js → settings-8fb53eb8dd0267e1.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{syncs-93f1a008086f516a.js → syncs-c92351b1a81f7a13.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-e9c39e78b4406d9b.js → [...slug]-ca76f5938bdff8a7.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-57af43cc439b2b43.js → triggers-4e9518882c8730b1.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipelines-3156eaf5f09ebf39.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/{terminal-24eb5df948cc9a7e.js → terminal-cc54b4d4e5295101.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 +2 -2
- mage_ai/server/frontend_dist/triggers.html +2 -2
- {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/METADATA +1 -1
- {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/RECORD +69 -69
- mage_ai/server/frontend_dist/_next/static/chunks/4538-8a3c3e47be976ede.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-f68a5f454656d7a4.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{MxJEQAsVYkCzpf7Sf1BKY → I2bRLK9B7Lap2LvCicTKv}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist/_next/static/{MxJEQAsVYkCzpf7Sf1BKY → I2bRLK9B7Lap2LvCicTKv}/_ssgManifest.js +0 -0
- {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/LICENSE +0 -0
- {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/WHEEL +0 -0
- {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.8.48.dist-info → mage_ai-0.8.49.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1221],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return k}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),u=t(28358),l=t(93461),a=t(57384),d=t(12344),s=t(72454),p=t(28598);function f(e,n){var t=e.children;return(0,p.jsx)(s.HS,{ref:n,children:t})}var h=o.forwardRef(f),b=t(32063),g=t(15270),v=t(82531),m=t(66166),O=t(3055),j=t(49125),x=t(91427),y=t(24141);function P(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?P(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var k=function(e){var n,t=e.after,r=e.afterHidden,f=e.afterWidth,P=e.afterWidthOverride,k=e.before,w=e.beforeWidth,E=e.breadcrumbs,C=e.children,T=e.errors,S=e.headerMenuItems,A=e.navigationItems,R=e.setErrors,D=e.subheaderChildren,I=e.title,_=e.uuid,N=(0,y.i)().width,M="dashboard_after_width_".concat(_),L="dashboard_before_width_".concat(_),H=(0,o.useRef)(null),B=(0,o.useState)(P?f:(0,x.U2)(M,f)),Y=B[0],V=B[1],U=(0,o.useState)(!1),W=U[0],F=U[1],G=(0,o.useState)(k?Math.max((0,x.U2)(L,w),13*j.iI):null),X=G[0],q=G[1],z=(0,o.useState)(!1),K=z[0],Q=z[1],$=(0,o.useState)(null)[1],J=v.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===J||void 0===J?void 0:J.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 I}}]),(0,o.useEffect)((function(){null===H||void 0===H||!H.current||W||K||null===$||void 0===$||$(H.current.getBoundingClientRect().width)}),[W,Y,K,X,H,$,N]),(0,o.useEffect)((function(){W||(0,x.t8)(M,Y)}),[r,W,Y,M]),(0,o.useEffect)((function(){K||(0,x.t8)(L,X)}),[K,X,L]);var te=(0,m.Z)(f);return(0,o.useEffect)((function(){P&&te!==f&&V(f)}),[P,f,te]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.Z,{title:I}),(0,p.jsx)(d.Z,{breadcrumbs:ne,menuItems:S,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,p.jsxs)(s.Nk,{children:[0!==(null===A||void 0===A?void 0:A.length)&&(0,p.jsx)(s.lm,{children:(0,p.jsx)(g.Z,{navigationItems:A})}),(0,p.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(b.Z,{after:t,afterHeightOffset:O.Mz,afterHidden:r,afterMousedownActive:W,afterWidth:Y,before:k,beforeHeightOffset:O.Mz,beforeMousedownActive:K,beforeWidth:s.k1+(k?X:0),hideAfterCompletely:!0,leftOffset:k?s.k1:null,mainContainerRef:H,setAfterMousedownActive:F,setAfterWidth:V,setBeforeMousedownActive:Q,setBeforeWidth:q,children:[D&&(0,p.jsx)(h,{children:D}),C]})})]}),T&&(0,p.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===R||void 0===R?void 0:R(null)},children:(0,p.jsx)(u.Z,Z(Z({},T),{},{onClose:function(){return null===R||void 0===R?void 0:R(null)}}))})]})}},86422:function(e,n,t){"use strict";t.d(n,{$W:function(){return p},DA:function(){return s},HX:function(){return b},J8:function(){return h},Lq:function(){return a},Qj:function(){return g},Ut:function(){return j},V4:function(){return O},VZ:function(){return f},dO:function(){return d},f2:function(){return m},iZ:function(){return v},t6:function(){return c},tf:function(){return l}});var r,i,o,c,u=t(82394);!function(e){e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(c||(c={}));var l,a,d=(r={},(0,u.Z)(r,c.PYTHON,"PY"),(0,u.Z)(r,c.R,"R"),(0,u.Z)(r,c.SQL,"SQL"),(0,u.Z)(r,c.YAML,"YAML"),r);!function(e){e.CHART="chart",e.CUSTOM="custom",e.DATA_EXPORTER="data_exporter",e.DATA_LOADER="data_loader",e.DBT="dbt",e.EXTENSION="extension",e.SCRATCHPAD="scratchpad",e.SENSOR="sensor",e.TRANSFORMER="transformer"}(l||(l={})),function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(a||(a={}));var s,p=[l.CHART,l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SCRATCHPAD,l.SENSOR,l.TRANSFORMER],f=[l.DATA_EXPORTER,l.DATA_LOADER],h=[l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],b=[l.DATA_EXPORTER,l.DATA_LOADER,l.DBT,l.TRANSFORMER],g=[l.CHART,l.SCRATCHPAD,l.SENSOR],v=[l.EXTENSION,l.SCRATCHPAD];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(s||(s={}));var m=[l.CUSTOM,l.DATA_EXPORTER,l.TRANSFORMER],O=(i={},(0,u.Z)(i,l.CUSTOM,"Custom"),(0,u.Z)(i,l.DATA_EXPORTER,"Data exporter"),(0,u.Z)(i,l.DATA_LOADER,"Data loader"),(0,u.Z)(i,l.EXTENSION,"Extension"),(0,u.Z)(i,l.SCRATCHPAD,"Scratchpad"),(0,u.Z)(i,l.SENSOR,"Sensor"),(0,u.Z)(i,l.TRANSFORMER,"Transformer"),i),j=[l.DATA_LOADER,l.TRANSFORMER,l.DATA_EXPORTER,l.SENSOR];o={},(0,u.Z)(o,l.DATA_EXPORTER,"DE"),(0,u.Z)(o,l.DATA_LOADER,"DL"),(0,u.Z)(o,l.SCRATCHPAD,"SP"),(0,u.Z)(o,l.SENSOR,"SR"),(0,u.Z)(o,l.TRANSFORMER,"TF")},93348:function(e,n,t){"use strict";t.d(n,{TR:function(){return s},U5:function(){return l},Xm:function(){return o},Z4:function(){return d},fq:function(){return u},kJ:function(){return a}});var r,i,o,c=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var u,l,a,d=(r={},(0,c.Z)(r,o.API,(function(){return"API"})),(0,c.Z)(r,o.EVENT,(function(){return"event"})),(0,c.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(u||(u={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(l||(l={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(a||(a={}));var s=(i={},(0,c.Z)(i,a.CREATED_AT,"Created at"),(0,c.Z)(i,a.NAME,"Name"),(0,c.Z)(i,a.PIPELINE,"Pipeline"),(0,c.Z)(i,a.STATUS,"Status"),(0,c.Z)(i,a.TYPE,"Type"),i)},98781:function(e,n,t){"use strict";t.d(n,{$1:function(){return l},G7:function(){return d},QK:function(){return u},a_:function(){return s},qL:function(){return o},r0:function(){return a}});var r,i,o,c=t(82394);!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(o||(o={}));var u,l,a,d=(r={},(0,c.Z)(r,o.INTEGRATION,"Integration"),(0,c.Z)(r,o.PYTHON,"Standard"),(0,c.Z)(r,o.PYSPARK,"PySpark"),(0,c.Z)(r,o.STREAMING,"Streaming"),r);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules"}(u||(u={})),function(e){e.GROUP="group_by",e.STATUS="status[]",e.TYPE="type[]"}(l||(l={})),function(e){e.STATUS="status",e.TYPE="type"}(a||(a={}));var s=(i={},(0,c.Z)(i,o.PYTHON,"python3"),(0,c.Z)(i,o.PYSPARK,"pysparkkernel"),i)},18283:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=(t(82684),t(9518)),c=t(23831),u=t(73942),l=t(2005),a=t(49125),d=t(31012),s=t(28598),p=["children"];function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function h(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var b=o.default.p.withConfig({displayName:"Badge__BadgeStyle",componentId:"sc-tfqsp0-0"})(["border-radius:","px;display:inline;font-family:",";margin:0;",";"," ",";",";"," "," "," "," "," ",""],u.BG,l.ry,d.iD,(function(e){return e.small&&"\n ".concat(d.HC,";\n ")}),(function(e){return!e.regular&&"\n padding: 2px 4px;\n "}),(function(e){return e.regular&&"\n padding: ".concat(1*a.iI,"px ").concat(1.25*a.iI,"px;\n ")}),(function(e){return e.noVerticalPadding&&"\n padding-bottom: 0;\n padding-top: 0;\n "}),(function(e){return!e.disabled&&"\n background-color: ".concat((e.theme||c.Z).background.row,";\n color: ").concat((e.theme||c.Z).content.muted,";\n ")}),(function(e){return e.cyan&&"\n background-color: ".concat((e.theme||c.Z).accent.cyan,";\n color: ").concat((e.theme||c.Z).monotone.black,";\n ")}),(function(e){return e.disabled&&"\n background-color: ".concat((e.theme||c.Z).feature.disabled,";\n color: ").concat((e.theme||c.Z).content.disabled,";\n ")}),(function(e){return e.quantifier&&"\n border-radius: 34px;\n line-height: 10px;\n padding: 4px 6px;\n "}),(function(e){return e.monospace&&"\n font-family: ".concat(l.Vp,";\n word-break: break-all;\n ")}));n.Z=function(e){var n=e.children,t=(0,i.Z)(e,p);return(0,s.jsx)(b,h(h({},t),{},{children:n}))}},30264:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=(t(82684),t(47999)),c=t(62084),u=t(28598),l=["children","items","open","onClickCallback","onClickOutside","parentRef","uuid"];function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.items,r=e.open,a=e.onClickCallback,s=e.onClickOutside,p=e.parentRef,f=e.uuid,h=(0,i.Z)(e,l),b=(0,u.jsxs)("div",{style:{position:"relative",zIndex:s?3:2},children:[(0,u.jsx)("div",{ref:p,children:n}),(0,u.jsx)(c.Z,d(d({},h),{},{items:t,onClickCallback:a,open:r,parentRef:p,uuid:f}))]});return s?(0,u.jsx)(o.Z,{onClickOutside:s,open:!0,children:b}):b}},29237:function(e,n,t){"use strict";var r=t(9518),i=t(67971),o=t(86673),c=t(19711),u=t(23831),l=t(73942),a=t(37391),d=t(49125),s=t(28598),p=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*d.iI,1.5*d.iI,1.5*d.iI),f=r.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," ",""],l.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return"\n border: 1px solid ".concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return!e.dark&&"\n background-color: ".concat((e.theme.background||u.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||u.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),h=r.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],l.n_,l.n_,(function(e){return"\n background-color: ".concat((e.theme.background||u.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),p,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),b=r.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*d.iI,a.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*d.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),g=r.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],l.M8,l.YF,1.75*d.iI);n.Z=function(e){var n=e.borderless,t=e.children,r=e.containerRef,u=e.contentContainerRef,l=e.dark,a=e.footer,d=e.fullHeight,p=void 0===d||d,v=e.fullWidth,m=void 0===v||v,O=e.header,j=e.headerHeight,x=e.headerIcon,y=e.headerPaddingVertical,P=e.headerTitle,Z=e.maxHeight,k=e.maxWidth,w=e.minWidth,E=e.noPadding,C=e.overflowVisible,T=e.subtitle;return(0,s.jsxs)(f,{borderless:n,dark:l,fullHeight:p,fullWidth:m,maxHeight:Z,maxWidth:k,minWidth:w,overflowVisible:C,ref:r,children:[(O||P)&&(0,s.jsxs)(h,{headerPaddingVertical:y,height:j,children:[O&&O,P&&(0,s.jsx)(i.Z,{alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(i.Z,{alignItems:"center",children:[x&&x,(0,s.jsx)(o.Z,{ml:x?1:0,children:(0,s.jsx)(c.ZP,{bold:!0,default:!0,children:P})})]})})]}),(0,s.jsxs)(b,{maxHeight:Z,noPadding:E,overflowVisible:C,ref:u,children:[T&&(0,s.jsx)(o.Z,{mb:2,children:(0,s.jsx)(c.ZP,{default:!0,children:T})}),t]}),a&&(0,s.jsx)(g,{children:a})]})}},38435:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(9518),u=t(69898),l=t(28598),a=["rows"];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 s(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.textarea.withConfig({displayName:"TextArea__TextInputStyle",componentId:"sc-112wx63-0"})(["",""],u.p),f=function(e,n){var t=e.rows,r=void 0===t?3:t,o=(0,i.Z)(e,a);return(0,l.jsx)(u.Z,s(s({},o),{},{input:(0,l.jsx)(p,s({rows:r},o)),ref:n}))};n.Z=o.forwardRef(f)},70902:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(9518),u=t(69898),l=t(23831),a=t(28598),d=["checked","disabled","onCheck"];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 p(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,r.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 f=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);}',""],u.p,46,46,26,(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.disabled?l.Z.monotone.white:l.Z.monotone.black}),(function(e){return e.disabled&&"border: 1px solid ".concat(l.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(l.Z.monotone.white,";\n }\n ")})),h=function(e,n){var t=e.checked,r=e.disabled,o=e.onCheck,c=(0,i.Z)(e,d);return(0,a.jsx)(u.Z,p(p({},c),{},{disabled:r,input:(0,a.jsxs)(f,p(p({},c),{},{disabled:r,noBackground:!0,noBorder:!0,children:[(0,a.jsx)("input",{checked:t,type:"checkbox"}),(0,a.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)},46614:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return we}});var r=t(77837),i=t(75582),o=t(82394),c=t(38860),u=t.n(c),l=t(12691),a=t.n(l),d=t(83455),s=t(82684),p=t(34376),f=t(60328),h=t(1210),b=t(93461),g=t(67971),v=t(11135),m=t(29237),O=t(86673),j=t(19711),x=t(38435),y=t(82944),P=t(28598);var Z=function(e){var n=e.description,t=e.isLoading,r=e.maxWidth,i=e.minWidth,o=e.noEmptyValue,c=e.onClose,u=e.onSave,l=e.textArea,a=e.title,d=e.value,p=(0,s.useRef)(null),h=(0,s.useState)(d),b=h[0],Z=h[1],k=l?x.Z:y.Z;return(0,s.useEffect)((function(){var e;null===p||void 0===p||null===(e=p.current)||void 0===e||e.focus()}),[]),(0,P.jsxs)(m.Z,{maxWidth:r,minWidth:i,children:[(0,P.jsx)(j.ZP,{bold:!0,children:a}),(0,P.jsx)(O.Z,{mt:1,children:(0,P.jsx)(k,{monospace:!0,onChange:function(e){return Z(e.target.value)},ref:p,rows:l?7:null,value:b})}),n&&(0,P.jsx)(O.Z,{mt:2,children:(0,P.jsx)(j.ZP,{muted:!0,small:!0,children:n})}),(0,P.jsx)(O.Z,{mt:3,children:(0,P.jsxs)(g.Z,{children:[(0,P.jsx)(v.ZP,{bold:!0,inline:!0,loading:t,onClick:function(){b===d||o&&!b?c():u(b)},outline:!0,primary:!0,uuid:"Inputs/InputModal/SaveInput",children:"Save"}),(0,P.jsx)(O.Z,{ml:1}),(0,P.jsx)(f.Z,{onClick:c,children:"Cancel"})]})})]})},k=t(10919),w=t(98781),E=t(41788),C=t(54283),T=t(58180),S=t(18283),A=t(47999),R=t(30264),D=t(62609),I=t(70902),_=t(9518),N=t(23831),M=t(73942),L=t(37391),H=t(49125),B=74*H.iI,Y=48*H.iI,V=_.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-18n432u-0"})(["position:absolute;border-radius:","px;overflow:hidden;width:","px;display:none;"," "," "," "," ",""],M.n_,B,(function(e){return"\n background-color: ".concat((e.theme||N.Z).background.panel,";\n border: ").concat(M.mP,"px ").concat(M.M8," ").concat((e.theme||N.Z).interactive.defaultBackground,";\n box-shadow: ").concat((e.theme.shadow||N.Z.shadow).window,";\n ")}),(function(e){return e.display&&"\n display: block;\n "}),(function(e){return e.compact&&"\n width: ".concat(.75*B,"px;\n ")}),(function(e){return"undefined"!==typeof e.left&&"\n left: ".concat(e.left,"px;\n ")}),(function(e){return"undefined"!==typeof e.top&&"\n top: ".concat(e.top,"px;\n ")})),U=_.default.div.withConfig({displayName:"indexstyle__MainStyle",componentId:"sc-18n432u-1"})(["display:flex;border-radius:","px;overflow:hidden;height:","px;"," ",""],M.n_,Y,(function(e){return"\n background-color: ".concat((e.theme||N.Z).background.content,";\n border: ").concat(M.YF,"px ").concat(M.M8," ").concat((e.theme||N.Z).interactive.defaultBackground,";\n ")}),(function(e){return e.compact&&"\n height: ".concat(Y/2,"px;\n ")})),W=_.default.aside.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-18n432u-2"})(["width:100%;overflow:auto;"," ",""],L.w5,(function(e){return"\n border-right: ".concat(M.YF,"px ").concat(M.M8," ").concat((e.theme||N.Z).background.panel,";\n ")})),F=_.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-18n432u-3"})(["width:100%;overflow:auto;",""],L.w5),G=(0,_.css)(["display:flex;align-items:center;justify-content:space-between;padding:","px ","px;"],H.iI,2*H.iI),X=_.default.div.withConfig({displayName:"indexstyle__OptionStyle",componentId:"sc-18n432u-4"})([""," padding-top:","px;padding-bottom:","px;&:hover{cursor:pointer;","}",""],G,1.5*H.iI,1.5*H.iI,(function(e){return"\n background-color: ".concat((e.theme||N.Z).monotone.black,";\n ")}),(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme||N.Z).monotone.black,";\n ")})),q=_.default.div.withConfig({displayName:"indexstyle__ToggleValueStyle",componentId:"sc-18n432u-5"})([""," ",""],G,(function(e){return"\n border-bottom: ".concat(M.YF,"px ").concat(M.M8," ").concat((e.theme||N.Z).borders.medium2,";\n ")})),z=t(10503),K=t(33766),Q=t(90211);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 J(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?$(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ee,ne=function(e){var n,t,r,c=e.children,u=e.compact,l=e.onClickCallback,a=e.onClickOutside,d=e.onSecondaryClick,p=e.open,h=e.options,v=void 0===h?{}:h,m=e.parentRef,x=e.query,y=e.setOpen,Z=e.toggleValueMapping,k=(0,s.useState)(null),w=k[0],E=k[1],C=(0,s.useState)(v),T=C[0],S=C[1];(0,s.useEffect)((function(){S(v)}),[v]);var R=((null===m||void 0===m||null===(n=m.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).top,D=void 0===R?0:R,_=Object.keys(v);return(0,P.jsxs)(A.Z,{onClickOutside:a,open:!0,children:[(0,P.jsx)("div",{ref:m,children:c}),(0,P.jsxs)(V,{compact:u,display:p,top:D-5,children:[(0,P.jsxs)(U,{compact:u,children:[(0,P.jsx)(b.Z,{flex:"1",children:(0,P.jsx)(W,{children:_.map((function(e){return(0,P.jsxs)(X,{highlighted:w===e,onMouseEnter:function(){return E(e)},children:[(0,P.jsx)(j.ZP,{children:(0,Q.kC)(e)}),(0,P.jsx)(z._Q,{})]},e)}))})}),(0,P.jsx)(b.Z,{flex:"2",children:(0,P.jsx)(F,{children:w&&Object.entries((null===(r=T||v)||void 0===r?void 0:r[w])||{}).map((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];return(0,P.jsxs)(q,{children:[(0,P.jsx)(j.ZP,{children:(null===Z||void 0===Z?void 0:Z[t])||(0,Q.J3)((0,Q.kC)(t))}),(0,P.jsx)(I.Z,{checked:r,onCheck:function(){return S((function(e){return J(J({},e),{},(0,o.Z)({},w,J(J({},null===e||void 0===e?void 0:e[w]),{},(0,o.Z)({},t,!r))))}))}})]},t)}))})})]}),(0,P.jsx)(O.Z,{m:1,children:(0,P.jsxs)(g.Z,{children:[(0,P.jsx)(f.Z,{onClick:function(){var e=Object.entries(T).reduce((function(e,n){var t=(0,i.Z)(n,2),r=t[0],o=t[1],c=[];return Object.entries(o).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0];return n[1]&&c.push(t)})),e[r]=c,e}),{});null===l||void 0===l||l(),(0,K.g_)(x,e,{addingMultipleValues:!0,pushHistory:!0})},secondary:!0,children:"Apply"}),(0,P.jsx)(O.Z,{mr:1}),(0,P.jsx)(f.Z,{noBackground:!0,onClick:function(){y(!1),null===d||void 0===d||d()},children:"Defaults"})]})})]})]})},te=t(46261),re=t(99994),ie="".concat(1.5*H.iI,"px"),oe=40*H.iI,ce={bold:!0,greyBorder:!0,paddingBottom:9,paddingTop:9};!function(e){e[e.SECONDARY=1]="SECONDARY",e[e.DELETE=2]="DELETE"}(ee||(ee={}));var ue={autoHide:!0,size:null,widthFitContent:!0},le=t(7715),ae=t(9736);function de(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function se(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?de(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):de(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var pe=function(e){var n=e.addButtonProps,t=e.deleteRowProps,r=e.filterOptions,o=void 0===r?{}:r,c=e.filterValueLabelMapping,u=e.groupButtonProps,l=e.moreActionsMenuItems,a=e.query,d=void 0===a?{}:a,f=e.searchProps,h=e.secondaryActionButtonProps,m=e.selectedRowId,x=e.setSelectedRow,Z=(0,ae.Ct)(),k=(0,p.useRouter)(),w=(0,s.useRef)(null),E=(0,s.useRef)(null),C=(0,s.useRef)(null),T=(0,s.useRef)(null),I=(0,s.useRef)(null),_=(0,s.useState)(!1),N=_[0],L=_[1],B=(0,s.useState)(!1),Y=B[0],V=B[1],U=(0,s.useState)(!1),W=U[0],F=U[1],G=(0,s.useState)(!1),X=G[0],q=G[1],K=(0,s.useState)(null),Q=K[0],$=K[1],J=!m,de=(0,s.useCallback)((function(){return L(!1)}),[]),pe=(0,s.useCallback)((function(){return V(!1)}),[]),fe=(0,s.useCallback)((function(){return F(!1)}),[]),he=(0,s.useCallback)((function(){return q(null)}),[]),be=(0,s.useCallback)((function(){return $(null)}),[]),ge=h||{},ve=ge.Icon,me=ge.confirmationDescription,Oe=ge.confirmationMessage,je=ge.isLoading,xe=ge.label,ye=ge.onClick,Pe=ge.openConfirmationDialogue,Ze=ge.tooltip,ke=t||{},we=ke.confirmationMessage,Ee=ke.isLoading,Ce=ke.item,Te=ke.onDelete,Se=f||{},Ae=Se.placeholder,Re=Se.onChange,De=Se.value,Ie=(0,s.useMemo)((function(){return Object.entries(o).reduce((function(e,n){var t=(0,i.Z)(n,2),r=t[0],o=t[1];return e[r]={},o.forEach((function(n){var t,i=(null===(t=d["".concat(r,"[]")])||void 0===t?void 0:t.includes(n))||!1;e[r][n]=i})),e}),{})}),[o,d]),_e=n||{},Ne=_e.label,Me=_e.menuItems,Le=_e.isLoading,He=(0,s.useMemo)((function(){return(0,P.jsx)(R.Z,{disableKeyboardShortcuts:!0,items:Me,onClickCallback:de,onClickOutside:de,open:N,parentRef:w,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/NewItemMenu",children:(0,P.jsx)(v.ZP,se(se({},ce),{},{background:re.eW,beforeElement:(0,P.jsx)(z.mm,{size:2.5*H.iI}),loading:Le,onClick:function(e){e.preventDefault(),L((function(e){return!e}))},uuid:"Table/Toolbar/AddButton",children:Ne}))})}),[Ne,Me,N,de,Le]),Be=(0,s.useMemo)((function(){return(0,le.dw)(Ie)}),[Ie]),Ye=(0,s.useMemo)((function(){return(0,P.jsx)(ne,{compact:!0,onClickCallback:pe,onClickOutside:pe,onSecondaryClick:function(){return k.push("/pipelines")},open:Y,options:Ie,parentRef:E,query:d,setOpen:V,toggleValueMapping:c,children:(0,P.jsx)(v.ZP,se(se({},ce),{},{afterElement:Be>0?(0,P.jsx)(S.Z,{cyan:!0,noVerticalPadding:!0,children:(0,P.jsx)(j.ZP,{bold:!0,inverted:!0,children:Be})}):null,beforeElement:(0,P.jsx)(z.wn,{size:2*H.iI}),onClick:function(){return V((function(e){return!e}))},uuid:"Table/Toolbar/FilterButton",children:"Filter"}))})}),[pe,Y,Ie,c,Be,d,k]),Ve=u||{},Ue=Ve.groupByLabel,We=Ve.menuItems,Fe=(0,s.useMemo)((function(){return(0,P.jsx)(R.Z,{disableKeyboardShortcuts:!0,items:We,onClickCallback:fe,onClickOutside:fe,open:W,parentRef:C,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/GroupMenu",children:(0,P.jsx)(v.ZP,se(se({},ce),{},{beforeElement:(0,P.jsx)(z.ZA,{size:2.5*H.iI}),onClick:function(){F((function(e){return!e}))},uuid:"Table/Toolbar/GroupButton",children:Ue?"Grouped by ".concat(Ue):"Group"}))})}),[fe,W,We]),Ge=(0,s.useMemo)((function(){return(0,P.jsx)(R.Z,{disableKeyboardShortcuts:!0,items:l,onClickCallback:he,onClickOutside:he,open:X,parentRef:T,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/MoreActionsMenu",children:(0,P.jsx)(te.Z,se(se({},ue),{},{label:"More actions",children:(0,P.jsx)(v.ZP,{Icon:z.mH,bold:!0,disabled:J,greyBorder:!0,onClick:function(){return q((function(e){return!e}))},smallIcon:!0,uuid:"Table/Toolbar/MoreActionsButton"})}))})}),[he,J,X,l]);return(0,P.jsxs)(g.Z,{alignItems:"center",children:[He,(0,P.jsx)(O.Z,{mr:ie}),Ye,(null===We||void 0===We?void 0:We.length)>0&&(0,P.jsx)(O.Z,{ml:ie,children:Fe}),!Z&&ye&&(0,P.jsxs)(O.Z,{ml:ie,children:[(0,P.jsx)(te.Z,se(se({},ue),{},{label:Ze,children:(0,P.jsx)(v.ZP,{Icon:!je&&ve,bold:!0,disabled:J,greyBorder:!0,loading:je,onClick:Pe?function(){return $(ee.SECONDARY)}:ye,smallIcon:!0,uuid:"Table/Toolbar/SecondaryActionButton",children:xe})})),(0,P.jsx)(A.Z,{onClickOutside:be,open:Q===ee.SECONDARY,children:(0,P.jsx)(D.Z,{onCancel:be,onClick:function(){ye(),be(),x(null)},subtitle:me,title:Oe,top:58,width:oe})})]}),!Z&&Te&&(0,P.jsxs)(O.Z,{ml:ie,children:[(0,P.jsx)(te.Z,se(se({},ue),{},{label:"Delete ".concat(Ce),children:(0,P.jsx)(v.ZP,{Icon:!Ee&&z.rF,bold:!0,disabled:J,greyBorder:!0,loading:Ee,onClick:function(){return $(ee.DELETE)},smallIcon:!0,uuid:"Table/Toolbar/DeleteButton"})})),(0,P.jsx)(A.Z,{onClickOutside:be,open:Q===ee.DELETE,children:(0,P.jsx)(D.Z,{danger:!0,onCancel:be,onClick:function(){Te(m),be(),x(null)},subtitle:we,title:"Are you sure you want to delete the ".concat(Ce," ").concat(m,"?"),top:58,width:oe})})]}),!Z&&(null===l||void 0===l?void 0:l.length)>0&&(0,P.jsx)(O.Z,{ml:ie,children:Ge}),Re&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(O.Z,{ml:ie}),(0,P.jsx)(b.Z,{flex:1,children:(0,P.jsx)(y.Z,{afterIcon:De?(0,P.jsx)(z.x8,{}):null,afterIconClick:function(){var e;Re(""),null===I||void 0===I||null===(e=I.current)||void 0===e||e.focus()},afterIconSize:1.5*H.iI,beforeIcon:(0,P.jsx)(z.HN,{}),borderRadius:M.n_,defaultColor:!0,fullWidth:!0,greyBorder:!0,maxWidth:60*H.iI,onChange:function(e){return Re(e.target.value)},paddingVertical:9,placeholder:Ae||null,ref:I,value:De})})]})]})},fe=t(82531),he=t(86422),be=t(93348),ge=t(3055),ve=t(45838),me=t(59e3),Oe=t(96510),je=t(66653),xe=t(83608);function ye(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 Pe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ye(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ye(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ze={borderRadius:M.BG,iconOnly:!0,noBackground:!0,noBorder:!0,outline:!0,padding:"4px"};function ke(){var e=(0,p.useRouter)(),n=(0,s.useState)(null),t=n[0],r=n[1],c=(0,s.useState)(null),u=c[0],l=c[1],g=(0,s.useState)({}),v=g[0],m=g[1],x=(0,s.useState)(null),y=x[0],E=x[1],S=(0,me.iV)(),A=(0,me.DQ)(S,[w.$1.STATUS,w.$1.TYPE]),R=null===S||void 0===S?void 0:S[w.$1.GROUP],D=fe.ZP.pipelines.list(Pe(Pe({},A),{},{include_schedules:1})),I=D.data,_=D.mutate,M=(0,s.useMemo)((function(){var e=(null===I||void 0===I?void 0:I.pipelines)||[];if(u){var n=u.toLowerCase();e=e.filter((function(e){var t=e.name,r=e.description,i=e.uuid;return(null===t||void 0===t?void 0:t.toLowerCase().includes(n))||(null===i||void 0===i?void 0:i.toLowerCase().includes(n))||(null===r||void 0===r?void 0:r.toLowerCase().includes(n))}))}return e}),[null===I||void 0===I?void 0:I.pipelines,u]),L=function(e){return(0,d.Db)(fe.ZP.pipelines.useCreate(),{onSuccess:function(n){return(0,Oe.wD)(n,{callback:function(n){var t=n.pipeline.uuid;null===e||void 0===e||e(t)},onErrorCallback:function(e,n){return E({errors:n,response:e})}})}})},B=L((function(n){return e.push("/pipelines/[pipeline]/edit","/pipelines/".concat(n,"/edit"))})),Y=(0,i.Z)(B,2),V=Y[0],U=Y[1].isLoading,W=L((function(){return null===_||void 0===_?void 0:_()})),F=(0,i.Z)(W,2),G=F[0],X=F[1].isLoading,q=(0,d.Db)((function(e){return fe.ZP.pipelines.useUpdate(e.uuid)({pipeline:e})}),{onSuccess:function(e){return(0,Oe.wD)(e,{callback:function(e){var n=e.pipeline.uuid;m((function(e){return Pe(Pe({},e),{},(0,o.Z)({},n,!1))})),_(),null===le||void 0===le||le(),r(null)},onErrorCallback:function(e,n){var t,r=null===e||void 0===e||null===(t=e.url_parameters)||void 0===t?void 0:t.pk;m((function(e){return Pe(Pe({},e),{},(0,o.Z)({},r,!1))})),E({errors:n,response:e})}})}}),$=(0,i.Z)(q,2),J=$[0],ee=$[1].isLoading,ne=(0,d.Db)((function(e){return fe.ZP.pipelines.useDelete(e)()}),{onSuccess:function(e){return(0,Oe.wD)(e,{callback:function(){null===_||void 0===_||_()},onErrorCallback:function(e,n){return E({errors:n,response:e})}})}}),te=(0,i.Z)(ne,2),re=te[0],ie=te[1].isLoading,oe=(0,xe.dd)((function(e){var n=e.pipelineDescription,r=e.pipelineName;return(0,P.jsx)(Z,{isLoading:ee,minWidth:55*H.iI,noEmptyValue:!!r,onClose:le,onSave:function(e){if(t){var n=t.uuid,i={uuid:n};r?i.name=e:i.description=e,m((function(e){return Pe(Pe({},e),{},(0,o.Z)({},n,!0))})),J(i)}},textArea:!r,title:r?"Rename pipeline":"Edit description",value:r||n})}),{},[ee,t],{background:!0,uuid:"rename_pipeline_and_save"}),ce=(0,i.Z)(oe,2),ue=ce[0],le=ce[1],ae=(0,s.useMemo)((function(){return(0,P.jsx)(pe,{addButtonProps:{isLoading:U,label:"New",menuItems:[{label:function(){return"Standard (batch)"},onClick:function(){return V({pipeline:{name:(0,Q.Y6)()}})},uuid:"Pipelines/NewPipelineMenu/standard"},{label:function(){return"Data integration"},onClick:function(){return V({pipeline:{name:(0,Q.Y6)(),type:w.qL.INTEGRATION}})},uuid:"Pipelines/NewPipelineMenu/integration"},{label:function(){return"Streaming"},onClick:function(){return V({pipeline:{name:(0,Q.Y6)(),type:w.qL.STREAMING}})},uuid:"Pipelines/NewPipelineMenu/streaming"}]},deleteRowProps:{confirmationMessage:"This is irreversible and will immediately delete everything associated with the pipeline, including its blocks, triggers, runs, logs, and history.",isLoading:ie,item:"pipeline",onDelete:function(){return re(null===t||void 0===t?void 0:t.uuid)}},filterOptions:{status:Object.values(w.QK),type:Object.values(w.qL)},filterValueLabelMapping:w.G7,groupButtonProps:{groupByLabel:R,menuItems:[{beforeIcon:(0,P.jsx)(z.Jr,{fill:R===w.r0.STATUS?N.Z.content.default:N.Z.interactive.transparent,size:2*H.iI}),label:function(){return(0,Q.kC)(w.r0.STATUS)},onClick:function(){return(0,K.u7)((0,o.Z)({},w.$1.GROUP,R===w.r0.STATUS?null:w.r0.STATUS),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Status"},{beforeIcon:(0,P.jsx)(z.Jr,{fill:R===w.r0.TYPE?N.Z.content.default:N.Z.interactive.transparent,size:2*H.iI}),label:function(){return(0,Q.kC)(w.r0.TYPE)},onClick:function(){return(0,K.u7)((0,o.Z)({},w.$1.GROUP,R===w.r0.TYPE?null:w.r0.TYPE),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Type"}]},moreActionsMenuItems:[{label:function(){return"Rename pipeline"},onClick:function(){return ue({pipelineName:null===t||void 0===t?void 0:t.name})},uuid:"Pipelines/MoreActionsMenu/Rename"},{label:function(){return"Edit description"},onClick:function(){return ue({pipelineDescription:null===t||void 0===t?void 0:t.description})},uuid:"Pipelines/MoreActionsMenu/EditDescription"}],query:A,searchProps:{onChange:l,value:u},secondaryActionButtonProps:{Icon:z.oX,confirmationDescription:"Cloning the selected pipeline will create a new pipeline with the same configuration and code blocks. The blocks use the same block files as the original pipeline. Pipeline triggers, runs, backfills, and logs are not copied over to the new pipeline.",confirmationMessage:"Do you want to clone the pipeline ".concat(null===t||void 0===t?void 0:t.uuid,"?"),isLoading:X,onClick:function(){return G({pipeline:{clone_pipeline_uuid:null===t||void 0===t?void 0:t.uuid}})},openConfirmationDialogue:!0,tooltip:"Clone pipeline"},selectedRowId:null===t||void 0===t?void 0:t.uuid,setSelectedRow:r})}),[G,V,re,R,X,U,ie,A,u,null===t||void 0===t?void 0:t.description,null===t||void 0===t?void 0:t.name,null===t||void 0===t?void 0:t.uuid,ue]);return(0,P.jsx)(h.Z,{errors:y,setErrors:E,subheaderChildren:ae,title:"Pipelines",uuid:"pipelines/index",children:0===(null===M||void 0===M?void 0:M.length)?(0,P.jsx)(O.Z,{px:3,py:1,children:I?(0,P.jsx)(j.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No pipelines available"}):(0,P.jsx)(C.Z,{inverted:!0,large:!0})}):(0,P.jsx)(ve.cl,{includePadding:!!R,maxHeight:"calc(100vh - ".concat(ge.Mz+74,"px)"),children:(0,P.jsx)(T.Z,{columnFlex:[null,1,3,4,1,1,1,null],columns:[{label:function(){return""},uuid:"action"},{uuid:(0,Q.kC)(w.r0.STATUS)},{uuid:"Name"},{uuid:"Description"},{uuid:(0,Q.kC)(w.r0.TYPE)},{uuid:"Blocks"},{uuid:"Triggers"},{center:!0,uuid:"Actions"}],grouping:{column:(0,Q.kC)(R),columnIndex:R===w.r0.STATUS?1:R===w.r0.TYPE?4:null,values:R===w.r0.STATUS?Object.values(w.QK).map((function(e){return(0,Q.J3)(e)})):R===w.r0.TYPE?Object.values(w.qL).map((function(e){return w.G7[e]})):[]},isSelectedRow:function(e){var n;return(null===(n=M[e])||void 0===n?void 0:n.uuid)===(null===t||void 0===t?void 0:t.uuid)},onClickRow:function(e){return r((function(n){var t=M[e];return(null===n||void 0===n?void 0:n.uuid)!==(null===t||void 0===t?void 0:t.uuid)?t:null}))},onDoubleClickRow:function(n){e.push("/pipelines/[pipeline]","/pipelines/".concat(M[n].uuid))},rows:M.map((function(n,t){var r=n.blocks,i=n.description,c=n.schedules,u=n.type,l=n.uuid,d=r.filter((function(e){var n=e.type;return he.tf.SCRATCHPAD!==n})).length,s=c.length,p=c.find((function(e){var n=e.status;return be.fq.ACTIVE===n}));return[s>=1||v[l]?(0,P.jsx)(f.Z,{iconOnly:!0,loading:!!v[l],noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(e){(0,je.j)(e),m((function(e){return Pe(Pe({},e),{},(0,o.Z)({},l,!0))})),J(Pe(Pe({},n),{},{status:p?be.fq.INACTIVE:be.fq.ACTIVE}))},children:p?(0,P.jsx)(z.dz,{muted:!0,size:2*H.iI}):(0,P.jsx)(z.Py,{default:!0,size:2*H.iI})}):null,(0,P.jsx)(j.ZP,{default:!p,monospace:!0,success:!!p,children:p?be.fq.ACTIVE:s>=1?be.fq.INACTIVE:"no schedules"},"pipeline_status_".concat(t)),(0,P.jsx)(a(),{as:"/pipelines/".concat(l),href:"/pipelines/[pipeline]",passHref:!0,children:(0,P.jsx)(k.Z,{sameColorAsText:!0,children:l})},"pipeline_name_".concat(t)),(0,P.jsx)(j.ZP,{default:!0,title:i,width:90*H.iI,children:i},"pipeline_description_".concat(t)),(0,P.jsx)(j.ZP,{children:w.G7[u]},"pipeline_type_".concat(t)),(0,P.jsx)(j.ZP,{default:0===d,monospace:!0,children:d},"pipeline_block_count_".concat(t)),(0,P.jsx)(j.ZP,{default:0===s,monospace:!0,children:s},"pipeline_trigger_count_".concat(t)),(0,P.jsxs)(b.Z,{flex:1,justifyContent:"flex-end",children:[(0,P.jsx)(f.Z,Pe(Pe({},Ze),{},{onClick:function(){e.push("/pipelines/[pipeline]","/pipelines/".concat(l))},title:"Detail",children:(0,P.jsx)(z.UY,{default:!0,size:2*H.iI})})),(0,P.jsx)(O.Z,{mr:1}),(0,P.jsx)(f.Z,Pe(Pe({},Ze),{},{onClick:function(){e.push("/pipelines/[pipeline]/logs","/pipelines/".concat(l,"/logs"))},title:"Logs",children:(0,P.jsx)(z.$B,{default:!0,size:2*H.iI})}))]},"chevron_icon_".concat(t))]})),stickyHeader:!0})})})}ke.getInitialProps=(0,r.Z)(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var we=(0,E.Z)(ke)},33766:function(e,n,t){"use strict";t.d(n,{g_:function(){return p},u7:function(){return s}});var r=t(75582),i=t(82394),o=t(34376),c=t.n(o),u=t(59e3),l=t(24224);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,o=t.pushHistory,l=i?{}:(0,u.iV)();n=window.location.pathname;var a=o?c().push:c().replace,s=d(d({},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 s[t]}));var p=(0,u.uM)(s);p.length>=1&&(p="?".concat(p));var f="".concat(n.split("?")[0]).concat(p);return a(c().router.pathname,f,{shallow:!0})}function p(e,n,t){var i=t.addingMultipleValues,o=t.isList,c=t.itemsPerPage,u=t.pushHistory,a=void 0!==u&&u,p=t.resetLimitParams,f=d({},e);i?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];if(Array.isArray(i)){var o="".concat(t,"[]");f[o]=i.map(String)}})):o?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1],o=String(i),c="".concat(t,"[]"),u=f[c];u&&Array.isArray(u)?(u=u.map(String)).includes(o)?f[c]=(0,l.Od)(u,(function(e){return e===o})):f[c]=u.concat(o):f[c]=[o]})):f=d(d({},f),n),p&&(f._limit=c||20,f._offset=0),s(f,{pushHistory:a})}},79274:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines",function(){return t(46614)}])}},function(e){e.O(0,[3850,5716,2344,4506,6166,8180,9774,2888,179],(function(){return n=79274,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1221],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return k}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),u=t(49894),l=t(93461),a=t(57384),d=t(12344),s=t(72454),p=t(28598);function f(e,n){var t=e.children;return(0,p.jsx)(s.HS,{ref:n,children:t})}var h=o.forwardRef(f),b=t(32063),g=t(15270),v=t(82531),m=t(66166),O=t(3055),j=t(49125),x=t(91427),y=t(24141);function P(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?P(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var k=function(e){var n,t=e.after,r=e.afterHidden,f=e.afterWidth,P=e.afterWidthOverride,k=e.before,w=e.beforeWidth,E=e.breadcrumbs,C=e.children,T=e.errors,S=e.headerMenuItems,A=e.navigationItems,R=e.setErrors,D=e.subheaderChildren,I=e.title,_=e.uuid,N=(0,y.i)().width,M="dashboard_after_width_".concat(_),L="dashboard_before_width_".concat(_),H=(0,o.useRef)(null),B=(0,o.useState)(P?f:(0,x.U2)(M,f)),Y=B[0],V=B[1],U=(0,o.useState)(!1),W=U[0],F=U[1],G=(0,o.useState)(k?Math.max((0,x.U2)(L,w),13*j.iI):null),X=G[0],q=G[1],z=(0,o.useState)(!1),K=z[0],Q=z[1],$=(0,o.useState)(null)[1],J=v.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===J||void 0===J?void 0:J.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 I}}]),(0,o.useEffect)((function(){null===H||void 0===H||!H.current||W||K||null===$||void 0===$||$(H.current.getBoundingClientRect().width)}),[W,Y,K,X,H,$,N]),(0,o.useEffect)((function(){W||(0,x.t8)(M,Y)}),[r,W,Y,M]),(0,o.useEffect)((function(){K||(0,x.t8)(L,X)}),[K,X,L]);var te=(0,m.Z)(f);return(0,o.useEffect)((function(){P&&te!==f&&V(f)}),[P,f,te]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.Z,{title:I}),(0,p.jsx)(d.Z,{breadcrumbs:ne,menuItems:S,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,p.jsxs)(s.Nk,{children:[0!==(null===A||void 0===A?void 0:A.length)&&(0,p.jsx)(s.lm,{children:(0,p.jsx)(g.Z,{navigationItems:A})}),(0,p.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(b.Z,{after:t,afterHeightOffset:O.Mz,afterHidden:r,afterMousedownActive:W,afterWidth:Y,before:k,beforeHeightOffset:O.Mz,beforeMousedownActive:K,beforeWidth:s.k1+(k?X:0),hideAfterCompletely:!0,leftOffset:k?s.k1:null,mainContainerRef:H,setAfterMousedownActive:F,setAfterWidth:V,setBeforeMousedownActive:Q,setBeforeWidth:q,children:[D&&(0,p.jsx)(h,{children:D}),C]})})]}),T&&(0,p.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===R||void 0===R?void 0:R(null)},children:(0,p.jsx)(u.Z,Z(Z({},T),{},{onClose:function(){return null===R||void 0===R?void 0:R(null)}}))})]})}},86422:function(e,n,t){"use strict";t.d(n,{$W:function(){return p},DA:function(){return s},HX:function(){return b},J8:function(){return h},Lq:function(){return a},Qj:function(){return g},Ut:function(){return j},V4:function(){return O},VZ:function(){return f},dO:function(){return d},f2:function(){return m},iZ:function(){return v},t6:function(){return c},tf:function(){return l}});var r,i,o,c,u=t(82394);!function(e){e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(c||(c={}));var l,a,d=(r={},(0,u.Z)(r,c.PYTHON,"PY"),(0,u.Z)(r,c.R,"R"),(0,u.Z)(r,c.SQL,"SQL"),(0,u.Z)(r,c.YAML,"YAML"),r);!function(e){e.CHART="chart",e.CUSTOM="custom",e.DATA_EXPORTER="data_exporter",e.DATA_LOADER="data_loader",e.DBT="dbt",e.EXTENSION="extension",e.SCRATCHPAD="scratchpad",e.SENSOR="sensor",e.TRANSFORMER="transformer"}(l||(l={})),function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(a||(a={}));var s,p=[l.CHART,l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SCRATCHPAD,l.SENSOR,l.TRANSFORMER],f=[l.DATA_EXPORTER,l.DATA_LOADER],h=[l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],b=[l.DATA_EXPORTER,l.DATA_LOADER,l.DBT,l.TRANSFORMER],g=[l.CHART,l.SCRATCHPAD,l.SENSOR],v=[l.EXTENSION,l.SCRATCHPAD];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(s||(s={}));var m=[l.CUSTOM,l.DATA_EXPORTER,l.TRANSFORMER],O=(i={},(0,u.Z)(i,l.CUSTOM,"Custom"),(0,u.Z)(i,l.DATA_EXPORTER,"Data exporter"),(0,u.Z)(i,l.DATA_LOADER,"Data loader"),(0,u.Z)(i,l.EXTENSION,"Extension"),(0,u.Z)(i,l.SCRATCHPAD,"Scratchpad"),(0,u.Z)(i,l.SENSOR,"Sensor"),(0,u.Z)(i,l.TRANSFORMER,"Transformer"),i),j=[l.DATA_LOADER,l.TRANSFORMER,l.DATA_EXPORTER,l.SENSOR];o={},(0,u.Z)(o,l.DATA_EXPORTER,"DE"),(0,u.Z)(o,l.DATA_LOADER,"DL"),(0,u.Z)(o,l.SCRATCHPAD,"SP"),(0,u.Z)(o,l.SENSOR,"SR"),(0,u.Z)(o,l.TRANSFORMER,"TF")},93348:function(e,n,t){"use strict";t.d(n,{TR:function(){return s},U5:function(){return l},Xm:function(){return o},Z4:function(){return d},fq:function(){return u},kJ:function(){return a}});var r,i,o,c=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var u,l,a,d=(r={},(0,c.Z)(r,o.API,(function(){return"API"})),(0,c.Z)(r,o.EVENT,(function(){return"event"})),(0,c.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(u||(u={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(l||(l={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(a||(a={}));var s=(i={},(0,c.Z)(i,a.CREATED_AT,"Created at"),(0,c.Z)(i,a.NAME,"Name"),(0,c.Z)(i,a.PIPELINE,"Pipeline"),(0,c.Z)(i,a.STATUS,"Status"),(0,c.Z)(i,a.TYPE,"Type"),i)},98781:function(e,n,t){"use strict";t.d(n,{$1:function(){return l},G7:function(){return d},QK:function(){return u},a_:function(){return s},qL:function(){return o},r0:function(){return a}});var r,i,o,c=t(82394);!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(o||(o={}));var u,l,a,d=(r={},(0,c.Z)(r,o.INTEGRATION,"Integration"),(0,c.Z)(r,o.PYTHON,"Standard"),(0,c.Z)(r,o.PYSPARK,"PySpark"),(0,c.Z)(r,o.STREAMING,"Streaming"),r);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules"}(u||(u={})),function(e){e.GROUP="group_by",e.STATUS="status[]",e.TYPE="type[]"}(l||(l={})),function(e){e.STATUS="status",e.TYPE="type"}(a||(a={}));var s=(i={},(0,c.Z)(i,o.PYTHON,"python3"),(0,c.Z)(i,o.PYSPARK,"pysparkkernel"),i)},18283:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=(t(82684),t(9518)),c=t(23831),u=t(73942),l=t(2005),a=t(49125),d=t(31012),s=t(28598),p=["children"];function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function h(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var b=o.default.p.withConfig({displayName:"Badge__BadgeStyle",componentId:"sc-tfqsp0-0"})(["border-radius:","px;display:inline;font-family:",";margin:0;",";"," ",";",";"," "," "," "," "," ",""],u.BG,l.ry,d.iD,(function(e){return e.small&&"\n ".concat(d.HC,";\n ")}),(function(e){return!e.regular&&"\n padding: 2px 4px;\n "}),(function(e){return e.regular&&"\n padding: ".concat(1*a.iI,"px ").concat(1.25*a.iI,"px;\n ")}),(function(e){return e.noVerticalPadding&&"\n padding-bottom: 0;\n padding-top: 0;\n "}),(function(e){return!e.disabled&&"\n background-color: ".concat((e.theme||c.Z).background.row,";\n color: ").concat((e.theme||c.Z).content.muted,";\n ")}),(function(e){return e.cyan&&"\n background-color: ".concat((e.theme||c.Z).accent.cyan,";\n color: ").concat((e.theme||c.Z).monotone.black,";\n ")}),(function(e){return e.disabled&&"\n background-color: ".concat((e.theme||c.Z).feature.disabled,";\n color: ").concat((e.theme||c.Z).content.disabled,";\n ")}),(function(e){return e.quantifier&&"\n border-radius: 34px;\n line-height: 10px;\n padding: 4px 6px;\n "}),(function(e){return e.monospace&&"\n font-family: ".concat(l.Vp,";\n word-break: break-all;\n ")}));n.Z=function(e){var n=e.children,t=(0,i.Z)(e,p);return(0,s.jsx)(b,h(h({},t),{},{children:n}))}},30264:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=(t(82684),t(47999)),c=t(62084),u=t(28598),l=["children","items","open","onClickCallback","onClickOutside","parentRef","uuid"];function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.items,r=e.open,a=e.onClickCallback,s=e.onClickOutside,p=e.parentRef,f=e.uuid,h=(0,i.Z)(e,l),b=(0,u.jsxs)("div",{style:{position:"relative",zIndex:s?3:2},children:[(0,u.jsx)("div",{ref:p,children:n}),(0,u.jsx)(c.Z,d(d({},h),{},{items:t,onClickCallback:a,open:r,parentRef:p,uuid:f}))]});return s?(0,u.jsx)(o.Z,{onClickOutside:s,open:!0,children:b}):b}},29237:function(e,n,t){"use strict";var r=t(9518),i=t(67971),o=t(86673),c=t(19711),u=t(23831),l=t(73942),a=t(37391),d=t(49125),s=t(28598),p=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*d.iI,1.5*d.iI,1.5*d.iI),f=r.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," ",""],l.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return"\n border: 1px solid ".concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return!e.dark&&"\n background-color: ".concat((e.theme.background||u.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||u.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),h=r.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],l.n_,l.n_,(function(e){return"\n background-color: ".concat((e.theme.background||u.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),p,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),b=r.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*d.iI,a.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*d.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),g=r.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],l.M8,l.YF,1.75*d.iI);n.Z=function(e){var n=e.borderless,t=e.children,r=e.containerRef,u=e.contentContainerRef,l=e.dark,a=e.footer,d=e.fullHeight,p=void 0===d||d,v=e.fullWidth,m=void 0===v||v,O=e.header,j=e.headerHeight,x=e.headerIcon,y=e.headerPaddingVertical,P=e.headerTitle,Z=e.maxHeight,k=e.maxWidth,w=e.minWidth,E=e.noPadding,C=e.overflowVisible,T=e.subtitle;return(0,s.jsxs)(f,{borderless:n,dark:l,fullHeight:p,fullWidth:m,maxHeight:Z,maxWidth:k,minWidth:w,overflowVisible:C,ref:r,children:[(O||P)&&(0,s.jsxs)(h,{headerPaddingVertical:y,height:j,children:[O&&O,P&&(0,s.jsx)(i.Z,{alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(i.Z,{alignItems:"center",children:[x&&x,(0,s.jsx)(o.Z,{ml:x?1:0,children:(0,s.jsx)(c.ZP,{bold:!0,default:!0,children:P})})]})})]}),(0,s.jsxs)(b,{maxHeight:Z,noPadding:E,overflowVisible:C,ref:u,children:[T&&(0,s.jsx)(o.Z,{mb:2,children:(0,s.jsx)(c.ZP,{default:!0,children:T})}),t]}),a&&(0,s.jsx)(g,{children:a})]})}},38435:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(9518),u=t(69898),l=t(28598),a=["rows"];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 s(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.textarea.withConfig({displayName:"TextArea__TextInputStyle",componentId:"sc-112wx63-0"})(["",""],u.p),f=function(e,n){var t=e.rows,r=void 0===t?3:t,o=(0,i.Z)(e,a);return(0,l.jsx)(u.Z,s(s({},o),{},{input:(0,l.jsx)(p,s({rows:r},o)),ref:n}))};n.Z=o.forwardRef(f)},70902:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(9518),u=t(69898),l=t(23831),a=t(28598),d=["checked","disabled","onCheck"];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 p(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,r.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 f=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);}',""],u.p,46,46,26,(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.disabled?l.Z.monotone.white:l.Z.monotone.black}),(function(e){return e.disabled&&"border: 1px solid ".concat(l.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(l.Z.monotone.white,";\n }\n ")})),h=function(e,n){var t=e.checked,r=e.disabled,o=e.onCheck,c=(0,i.Z)(e,d);return(0,a.jsx)(u.Z,p(p({},c),{},{disabled:r,input:(0,a.jsxs)(f,p(p({},c),{},{disabled:r,noBackground:!0,noBorder:!0,children:[(0,a.jsx)("input",{checked:t,type:"checkbox"}),(0,a.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)},46614:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return we}});var r=t(77837),i=t(75582),o=t(82394),c=t(38860),u=t.n(c),l=t(12691),a=t.n(l),d=t(83455),s=t(82684),p=t(34376),f=t(60328),h=t(1210),b=t(93461),g=t(67971),v=t(11135),m=t(29237),O=t(86673),j=t(19711),x=t(38435),y=t(82944),P=t(28598);var Z=function(e){var n=e.description,t=e.isLoading,r=e.maxWidth,i=e.minWidth,o=e.noEmptyValue,c=e.onClose,u=e.onSave,l=e.textArea,a=e.title,d=e.value,p=(0,s.useRef)(null),h=(0,s.useState)(d),b=h[0],Z=h[1],k=l?x.Z:y.Z;return(0,s.useEffect)((function(){var e;null===p||void 0===p||null===(e=p.current)||void 0===e||e.focus()}),[]),(0,P.jsxs)(m.Z,{maxWidth:r,minWidth:i,children:[(0,P.jsx)(j.ZP,{bold:!0,children:a}),(0,P.jsx)(O.Z,{mt:1,children:(0,P.jsx)(k,{monospace:!0,onChange:function(e){return Z(e.target.value)},ref:p,rows:l?7:null,value:b})}),n&&(0,P.jsx)(O.Z,{mt:2,children:(0,P.jsx)(j.ZP,{muted:!0,small:!0,children:n})}),(0,P.jsx)(O.Z,{mt:3,children:(0,P.jsxs)(g.Z,{children:[(0,P.jsx)(v.ZP,{bold:!0,inline:!0,loading:t,onClick:function(){b===d||o&&!b?c():u(b)},outline:!0,primary:!0,uuid:"Inputs/InputModal/SaveInput",children:"Save"}),(0,P.jsx)(O.Z,{ml:1}),(0,P.jsx)(f.Z,{onClick:c,children:"Cancel"})]})})]})},k=t(10919),w=t(98781),E=t(41788),C=t(54283),T=t(58180),S=t(18283),A=t(47999),R=t(30264),D=t(62609),I=t(70902),_=t(9518),N=t(23831),M=t(73942),L=t(37391),H=t(49125),B=74*H.iI,Y=48*H.iI,V=_.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-18n432u-0"})(["position:absolute;border-radius:","px;overflow:hidden;width:","px;display:none;"," "," "," "," ",""],M.n_,B,(function(e){return"\n background-color: ".concat((e.theme||N.Z).background.panel,";\n border: ").concat(M.mP,"px ").concat(M.M8," ").concat((e.theme||N.Z).interactive.defaultBackground,";\n box-shadow: ").concat((e.theme.shadow||N.Z.shadow).window,";\n ")}),(function(e){return e.display&&"\n display: block;\n "}),(function(e){return e.compact&&"\n width: ".concat(.75*B,"px;\n ")}),(function(e){return"undefined"!==typeof e.left&&"\n left: ".concat(e.left,"px;\n ")}),(function(e){return"undefined"!==typeof e.top&&"\n top: ".concat(e.top,"px;\n ")})),U=_.default.div.withConfig({displayName:"indexstyle__MainStyle",componentId:"sc-18n432u-1"})(["display:flex;border-radius:","px;overflow:hidden;height:","px;"," ",""],M.n_,Y,(function(e){return"\n background-color: ".concat((e.theme||N.Z).background.content,";\n border: ").concat(M.YF,"px ").concat(M.M8," ").concat((e.theme||N.Z).interactive.defaultBackground,";\n ")}),(function(e){return e.compact&&"\n height: ".concat(Y/2,"px;\n ")})),W=_.default.aside.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-18n432u-2"})(["width:100%;overflow:auto;"," ",""],L.w5,(function(e){return"\n border-right: ".concat(M.YF,"px ").concat(M.M8," ").concat((e.theme||N.Z).background.panel,";\n ")})),F=_.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-18n432u-3"})(["width:100%;overflow:auto;",""],L.w5),G=(0,_.css)(["display:flex;align-items:center;justify-content:space-between;padding:","px ","px;"],H.iI,2*H.iI),X=_.default.div.withConfig({displayName:"indexstyle__OptionStyle",componentId:"sc-18n432u-4"})([""," padding-top:","px;padding-bottom:","px;&:hover{cursor:pointer;","}",""],G,1.5*H.iI,1.5*H.iI,(function(e){return"\n background-color: ".concat((e.theme||N.Z).monotone.black,";\n ")}),(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme||N.Z).monotone.black,";\n ")})),q=_.default.div.withConfig({displayName:"indexstyle__ToggleValueStyle",componentId:"sc-18n432u-5"})([""," ",""],G,(function(e){return"\n border-bottom: ".concat(M.YF,"px ").concat(M.M8," ").concat((e.theme||N.Z).borders.medium2,";\n ")})),z=t(10503),K=t(33766),Q=t(90211);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 J(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?$(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ee,ne=function(e){var n,t,r,c=e.children,u=e.compact,l=e.onClickCallback,a=e.onClickOutside,d=e.onSecondaryClick,p=e.open,h=e.options,v=void 0===h?{}:h,m=e.parentRef,x=e.query,y=e.setOpen,Z=e.toggleValueMapping,k=(0,s.useState)(null),w=k[0],E=k[1],C=(0,s.useState)(v),T=C[0],S=C[1];(0,s.useEffect)((function(){S(v)}),[v]);var R=((null===m||void 0===m||null===(n=m.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).top,D=void 0===R?0:R,_=Object.keys(v);return(0,P.jsxs)(A.Z,{onClickOutside:a,open:!0,children:[(0,P.jsx)("div",{ref:m,children:c}),(0,P.jsxs)(V,{compact:u,display:p,top:D-5,children:[(0,P.jsxs)(U,{compact:u,children:[(0,P.jsx)(b.Z,{flex:"1",children:(0,P.jsx)(W,{children:_.map((function(e){return(0,P.jsxs)(X,{highlighted:w===e,onMouseEnter:function(){return E(e)},children:[(0,P.jsx)(j.ZP,{children:(0,Q.kC)(e)}),(0,P.jsx)(z._Q,{})]},e)}))})}),(0,P.jsx)(b.Z,{flex:"2",children:(0,P.jsx)(F,{children:w&&Object.entries((null===(r=T||v)||void 0===r?void 0:r[w])||{}).map((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];return(0,P.jsxs)(q,{children:[(0,P.jsx)(j.ZP,{children:(null===Z||void 0===Z?void 0:Z[t])||(0,Q.J3)((0,Q.kC)(t))}),(0,P.jsx)(I.Z,{checked:r,onCheck:function(){return S((function(e){return J(J({},e),{},(0,o.Z)({},w,J(J({},null===e||void 0===e?void 0:e[w]),{},(0,o.Z)({},t,!r))))}))}})]},t)}))})})]}),(0,P.jsx)(O.Z,{m:1,children:(0,P.jsxs)(g.Z,{children:[(0,P.jsx)(f.Z,{onClick:function(){var e=Object.entries(T).reduce((function(e,n){var t=(0,i.Z)(n,2),r=t[0],o=t[1],c=[];return Object.entries(o).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0];return n[1]&&c.push(t)})),e[r]=c,e}),{});null===l||void 0===l||l(),(0,K.g_)(x,e,{addingMultipleValues:!0,pushHistory:!0})},secondary:!0,children:"Apply"}),(0,P.jsx)(O.Z,{mr:1}),(0,P.jsx)(f.Z,{noBackground:!0,onClick:function(){y(!1),null===d||void 0===d||d()},children:"Defaults"})]})})]})]})},te=t(46261),re=t(99994),ie="".concat(1.5*H.iI,"px"),oe=40*H.iI,ce={bold:!0,greyBorder:!0,paddingBottom:9,paddingTop:9};!function(e){e[e.SECONDARY=1]="SECONDARY",e[e.DELETE=2]="DELETE"}(ee||(ee={}));var ue={autoHide:!0,size:null,widthFitContent:!0},le=t(7715),ae=t(9736);function de(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function se(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?de(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):de(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var pe=function(e){var n=e.addButtonProps,t=e.deleteRowProps,r=e.filterOptions,o=void 0===r?{}:r,c=e.filterValueLabelMapping,u=e.groupButtonProps,l=e.moreActionsMenuItems,a=e.query,d=void 0===a?{}:a,f=e.searchProps,h=e.secondaryActionButtonProps,m=e.selectedRowId,x=e.setSelectedRow,Z=(0,ae.Ct)(),k=(0,p.useRouter)(),w=(0,s.useRef)(null),E=(0,s.useRef)(null),C=(0,s.useRef)(null),T=(0,s.useRef)(null),I=(0,s.useRef)(null),_=(0,s.useState)(!1),N=_[0],L=_[1],B=(0,s.useState)(!1),Y=B[0],V=B[1],U=(0,s.useState)(!1),W=U[0],F=U[1],G=(0,s.useState)(!1),X=G[0],q=G[1],K=(0,s.useState)(null),Q=K[0],$=K[1],J=!m,de=(0,s.useCallback)((function(){return L(!1)}),[]),pe=(0,s.useCallback)((function(){return V(!1)}),[]),fe=(0,s.useCallback)((function(){return F(!1)}),[]),he=(0,s.useCallback)((function(){return q(null)}),[]),be=(0,s.useCallback)((function(){return $(null)}),[]),ge=h||{},ve=ge.Icon,me=ge.confirmationDescription,Oe=ge.confirmationMessage,je=ge.isLoading,xe=ge.label,ye=ge.onClick,Pe=ge.openConfirmationDialogue,Ze=ge.tooltip,ke=t||{},we=ke.confirmationMessage,Ee=ke.isLoading,Ce=ke.item,Te=ke.onDelete,Se=f||{},Ae=Se.placeholder,Re=Se.onChange,De=Se.value,Ie=(0,s.useMemo)((function(){return Object.entries(o).reduce((function(e,n){var t=(0,i.Z)(n,2),r=t[0],o=t[1];return e[r]={},o.forEach((function(n){var t,i=(null===(t=d["".concat(r,"[]")])||void 0===t?void 0:t.includes(n))||!1;e[r][n]=i})),e}),{})}),[o,d]),_e=n||{},Ne=_e.label,Me=_e.menuItems,Le=_e.isLoading,He=(0,s.useMemo)((function(){return(0,P.jsx)(R.Z,{disableKeyboardShortcuts:!0,items:Me,onClickCallback:de,onClickOutside:de,open:N,parentRef:w,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/NewItemMenu",children:(0,P.jsx)(v.ZP,se(se({},ce),{},{background:re.eW,beforeElement:(0,P.jsx)(z.mm,{size:2.5*H.iI}),loading:Le,onClick:function(e){e.preventDefault(),L((function(e){return!e}))},uuid:"Table/Toolbar/AddButton",children:Ne}))})}),[Ne,Me,N,de,Le]),Be=(0,s.useMemo)((function(){return(0,le.dw)(Ie)}),[Ie]),Ye=(0,s.useMemo)((function(){return(0,P.jsx)(ne,{compact:!0,onClickCallback:pe,onClickOutside:pe,onSecondaryClick:function(){return k.push("/pipelines")},open:Y,options:Ie,parentRef:E,query:d,setOpen:V,toggleValueMapping:c,children:(0,P.jsx)(v.ZP,se(se({},ce),{},{afterElement:Be>0?(0,P.jsx)(S.Z,{cyan:!0,noVerticalPadding:!0,children:(0,P.jsx)(j.ZP,{bold:!0,inverted:!0,children:Be})}):null,beforeElement:(0,P.jsx)(z.wn,{size:2*H.iI}),onClick:function(){return V((function(e){return!e}))},uuid:"Table/Toolbar/FilterButton",children:"Filter"}))})}),[pe,Y,Ie,c,Be,d,k]),Ve=u||{},Ue=Ve.groupByLabel,We=Ve.menuItems,Fe=(0,s.useMemo)((function(){return(0,P.jsx)(R.Z,{disableKeyboardShortcuts:!0,items:We,onClickCallback:fe,onClickOutside:fe,open:W,parentRef:C,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/GroupMenu",children:(0,P.jsx)(v.ZP,se(se({},ce),{},{beforeElement:(0,P.jsx)(z.ZA,{size:2.5*H.iI}),onClick:function(){F((function(e){return!e}))},uuid:"Table/Toolbar/GroupButton",children:Ue?"Grouped by ".concat(Ue):"Group"}))})}),[fe,W,We]),Ge=(0,s.useMemo)((function(){return(0,P.jsx)(R.Z,{disableKeyboardShortcuts:!0,items:l,onClickCallback:he,onClickOutside:he,open:X,parentRef:T,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/MoreActionsMenu",children:(0,P.jsx)(te.Z,se(se({},ue),{},{label:"More actions",children:(0,P.jsx)(v.ZP,{Icon:z.mH,bold:!0,disabled:J,greyBorder:!0,onClick:function(){return q((function(e){return!e}))},smallIcon:!0,uuid:"Table/Toolbar/MoreActionsButton"})}))})}),[he,J,X,l]);return(0,P.jsxs)(g.Z,{alignItems:"center",children:[He,(0,P.jsx)(O.Z,{mr:ie}),Ye,(null===We||void 0===We?void 0:We.length)>0&&(0,P.jsx)(O.Z,{ml:ie,children:Fe}),!Z&&ye&&(0,P.jsxs)(O.Z,{ml:ie,children:[(0,P.jsx)(te.Z,se(se({},ue),{},{label:Ze,children:(0,P.jsx)(v.ZP,{Icon:!je&&ve,bold:!0,disabled:J,greyBorder:!0,loading:je,onClick:Pe?function(){return $(ee.SECONDARY)}:ye,smallIcon:!0,uuid:"Table/Toolbar/SecondaryActionButton",children:xe})})),(0,P.jsx)(A.Z,{onClickOutside:be,open:Q===ee.SECONDARY,children:(0,P.jsx)(D.Z,{onCancel:be,onClick:function(){ye(),be(),x(null)},subtitle:me,title:Oe,top:58,width:oe})})]}),!Z&&Te&&(0,P.jsxs)(O.Z,{ml:ie,children:[(0,P.jsx)(te.Z,se(se({},ue),{},{label:"Delete ".concat(Ce),children:(0,P.jsx)(v.ZP,{Icon:!Ee&&z.rF,bold:!0,disabled:J,greyBorder:!0,loading:Ee,onClick:function(){return $(ee.DELETE)},smallIcon:!0,uuid:"Table/Toolbar/DeleteButton"})})),(0,P.jsx)(A.Z,{onClickOutside:be,open:Q===ee.DELETE,children:(0,P.jsx)(D.Z,{danger:!0,onCancel:be,onClick:function(){Te(m),be(),x(null)},subtitle:we,title:"Are you sure you want to delete the ".concat(Ce," ").concat(m,"?"),top:58,width:oe})})]}),!Z&&(null===l||void 0===l?void 0:l.length)>0&&(0,P.jsx)(O.Z,{ml:ie,children:Ge}),Re&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(O.Z,{ml:ie}),(0,P.jsx)(b.Z,{flex:1,children:(0,P.jsx)(y.Z,{afterIcon:De?(0,P.jsx)(z.x8,{}):null,afterIconClick:function(){var e;Re(""),null===I||void 0===I||null===(e=I.current)||void 0===e||e.focus()},afterIconSize:1.5*H.iI,beforeIcon:(0,P.jsx)(z.HN,{}),borderRadius:M.n_,defaultColor:!0,fullWidth:!0,greyBorder:!0,maxWidth:60*H.iI,onChange:function(e){return Re(e.target.value)},paddingVertical:9,placeholder:Ae||null,ref:I,value:De})})]})]})},fe=t(82531),he=t(86422),be=t(93348),ge=t(3055),ve=t(45838),me=t(59e3),Oe=t(96510),je=t(66653),xe=t(83608);function ye(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 Pe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ye(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ye(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ze={borderRadius:M.BG,iconOnly:!0,noBackground:!0,noBorder:!0,outline:!0,padding:"4px"};function ke(){var e=(0,p.useRouter)(),n=(0,s.useState)(null),t=n[0],r=n[1],c=(0,s.useState)(null),u=c[0],l=c[1],g=(0,s.useState)({}),v=g[0],m=g[1],x=(0,s.useState)(null),y=x[0],E=x[1],S=(0,me.iV)(),A=(0,me.DQ)(S,[w.$1.STATUS,w.$1.TYPE]),R=null===S||void 0===S?void 0:S[w.$1.GROUP],D=fe.ZP.pipelines.list(Pe(Pe({},A),{},{include_schedules:1})),I=D.data,_=D.mutate,M=(0,s.useMemo)((function(){var e=(null===I||void 0===I?void 0:I.pipelines)||[];if(u){var n=u.toLowerCase();e=e.filter((function(e){var t=e.name,r=e.description,i=e.uuid;return(null===t||void 0===t?void 0:t.toLowerCase().includes(n))||(null===i||void 0===i?void 0:i.toLowerCase().includes(n))||(null===r||void 0===r?void 0:r.toLowerCase().includes(n))}))}return e}),[null===I||void 0===I?void 0:I.pipelines,u]),L=function(e){return(0,d.Db)(fe.ZP.pipelines.useCreate(),{onSuccess:function(n){return(0,Oe.wD)(n,{callback:function(n){var t=n.pipeline.uuid;null===e||void 0===e||e(t)},onErrorCallback:function(e,n){return E({errors:n,response:e})}})}})},B=L((function(n){return e.push("/pipelines/[pipeline]/edit","/pipelines/".concat(n,"/edit"))})),Y=(0,i.Z)(B,2),V=Y[0],U=Y[1].isLoading,W=L((function(){return null===_||void 0===_?void 0:_()})),F=(0,i.Z)(W,2),G=F[0],X=F[1].isLoading,q=(0,d.Db)((function(e){return fe.ZP.pipelines.useUpdate(e.uuid)({pipeline:e})}),{onSuccess:function(e){return(0,Oe.wD)(e,{callback:function(e){var n=e.pipeline.uuid;m((function(e){return Pe(Pe({},e),{},(0,o.Z)({},n,!1))})),_(),null===le||void 0===le||le(),r(null)},onErrorCallback:function(e,n){var t,r=null===e||void 0===e||null===(t=e.url_parameters)||void 0===t?void 0:t.pk;m((function(e){return Pe(Pe({},e),{},(0,o.Z)({},r,!1))})),E({errors:n,response:e})}})}}),$=(0,i.Z)(q,2),J=$[0],ee=$[1].isLoading,ne=(0,d.Db)((function(e){return fe.ZP.pipelines.useDelete(e)()}),{onSuccess:function(e){return(0,Oe.wD)(e,{callback:function(){null===_||void 0===_||_()},onErrorCallback:function(e,n){return E({errors:n,response:e})}})}}),te=(0,i.Z)(ne,2),re=te[0],ie=te[1].isLoading,oe=(0,xe.dd)((function(e){var n=e.pipelineDescription,r=e.pipelineName;return(0,P.jsx)(Z,{isLoading:ee,minWidth:55*H.iI,noEmptyValue:!!r,onClose:le,onSave:function(e){if(t){var n=t.uuid,i={uuid:n};r?i.name=e:i.description=e,m((function(e){return Pe(Pe({},e),{},(0,o.Z)({},n,!0))})),J(i)}},textArea:!r,title:r?"Rename pipeline":"Edit description",value:r||n})}),{},[ee,t],{background:!0,uuid:"rename_pipeline_and_save"}),ce=(0,i.Z)(oe,2),ue=ce[0],le=ce[1],ae=(0,s.useMemo)((function(){return(0,P.jsx)(pe,{addButtonProps:{isLoading:U,label:"New",menuItems:[{label:function(){return"Standard (batch)"},onClick:function(){return V({pipeline:{name:(0,Q.Y6)()}})},uuid:"Pipelines/NewPipelineMenu/standard"},{label:function(){return"Data integration"},onClick:function(){return V({pipeline:{name:(0,Q.Y6)(),type:w.qL.INTEGRATION}})},uuid:"Pipelines/NewPipelineMenu/integration"},{label:function(){return"Streaming"},onClick:function(){return V({pipeline:{name:(0,Q.Y6)(),type:w.qL.STREAMING}})},uuid:"Pipelines/NewPipelineMenu/streaming"}]},deleteRowProps:{confirmationMessage:"This is irreversible and will immediately delete everything associated with the pipeline, including its blocks, triggers, runs, logs, and history.",isLoading:ie,item:"pipeline",onDelete:function(){return re(null===t||void 0===t?void 0:t.uuid)}},filterOptions:{status:Object.values(w.QK),type:Object.values(w.qL)},filterValueLabelMapping:w.G7,groupButtonProps:{groupByLabel:R,menuItems:[{beforeIcon:(0,P.jsx)(z.Jr,{fill:R===w.r0.STATUS?N.Z.content.default:N.Z.interactive.transparent,size:2*H.iI}),label:function(){return(0,Q.kC)(w.r0.STATUS)},onClick:function(){return(0,K.u7)((0,o.Z)({},w.$1.GROUP,R===w.r0.STATUS?null:w.r0.STATUS),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Status"},{beforeIcon:(0,P.jsx)(z.Jr,{fill:R===w.r0.TYPE?N.Z.content.default:N.Z.interactive.transparent,size:2*H.iI}),label:function(){return(0,Q.kC)(w.r0.TYPE)},onClick:function(){return(0,K.u7)((0,o.Z)({},w.$1.GROUP,R===w.r0.TYPE?null:w.r0.TYPE),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Type"}]},moreActionsMenuItems:[{label:function(){return"Rename pipeline"},onClick:function(){return ue({pipelineName:null===t||void 0===t?void 0:t.name})},uuid:"Pipelines/MoreActionsMenu/Rename"},{label:function(){return"Edit description"},onClick:function(){return ue({pipelineDescription:null===t||void 0===t?void 0:t.description})},uuid:"Pipelines/MoreActionsMenu/EditDescription"}],query:A,searchProps:{onChange:l,value:u},secondaryActionButtonProps:{Icon:z.oX,confirmationDescription:"Cloning the selected pipeline will create a new pipeline with the same configuration and code blocks. The blocks use the same block files as the original pipeline. Pipeline triggers, runs, backfills, and logs are not copied over to the new pipeline.",confirmationMessage:"Do you want to clone the pipeline ".concat(null===t||void 0===t?void 0:t.uuid,"?"),isLoading:X,onClick:function(){return G({pipeline:{clone_pipeline_uuid:null===t||void 0===t?void 0:t.uuid}})},openConfirmationDialogue:!0,tooltip:"Clone pipeline"},selectedRowId:null===t||void 0===t?void 0:t.uuid,setSelectedRow:r})}),[G,V,re,R,X,U,ie,A,u,null===t||void 0===t?void 0:t.description,null===t||void 0===t?void 0:t.name,null===t||void 0===t?void 0:t.uuid,ue]);return(0,P.jsx)(h.Z,{errors:y,setErrors:E,subheaderChildren:ae,title:"Pipelines",uuid:"pipelines/index",children:0===(null===M||void 0===M?void 0:M.length)?(0,P.jsx)(O.Z,{px:3,py:1,children:I?(0,P.jsx)(j.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No pipelines available"}):(0,P.jsx)(C.Z,{inverted:!0,large:!0})}):(0,P.jsx)(ve.cl,{includePadding:!!R,maxHeight:"calc(100vh - ".concat(ge.Mz+74,"px)"),children:(0,P.jsx)(T.Z,{columnFlex:[null,1,3,4,1,1,1,null],columns:[{label:function(){return""},uuid:"action"},{uuid:(0,Q.kC)(w.r0.STATUS)},{uuid:"Name"},{uuid:"Description"},{uuid:(0,Q.kC)(w.r0.TYPE)},{uuid:"Blocks"},{uuid:"Triggers"},{center:!0,uuid:"Actions"}],grouping:{column:(0,Q.kC)(R),columnIndex:R===w.r0.STATUS?1:R===w.r0.TYPE?4:null,values:R===w.r0.STATUS?Object.values(w.QK).map((function(e){return(0,Q.J3)(e)})):R===w.r0.TYPE?Object.values(w.qL).map((function(e){return w.G7[e]})):[]},isSelectedRow:function(e){var n;return(null===(n=M[e])||void 0===n?void 0:n.uuid)===(null===t||void 0===t?void 0:t.uuid)},onClickRow:function(e){return r((function(n){var t=M[e];return(null===n||void 0===n?void 0:n.uuid)!==(null===t||void 0===t?void 0:t.uuid)?t:null}))},onDoubleClickRow:function(n){e.push("/pipelines/[pipeline]","/pipelines/".concat(M[n].uuid))},rows:M.map((function(n,t){var r=n.blocks,i=n.description,c=n.schedules,u=n.type,l=n.uuid,d=r.filter((function(e){var n=e.type;return he.tf.SCRATCHPAD!==n})).length,s=c.length,p=c.find((function(e){var n=e.status;return be.fq.ACTIVE===n}));return[s>=1||v[l]?(0,P.jsx)(f.Z,{iconOnly:!0,loading:!!v[l],noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(e){(0,je.j)(e),m((function(e){return Pe(Pe({},e),{},(0,o.Z)({},l,!0))})),J(Pe(Pe({},n),{},{status:p?be.fq.INACTIVE:be.fq.ACTIVE}))},children:p?(0,P.jsx)(z.dz,{muted:!0,size:2*H.iI}):(0,P.jsx)(z.Py,{default:!0,size:2*H.iI})}):null,(0,P.jsx)(j.ZP,{default:!p,monospace:!0,success:!!p,children:p?be.fq.ACTIVE:s>=1?be.fq.INACTIVE:"no schedules"},"pipeline_status_".concat(t)),(0,P.jsx)(a(),{as:"/pipelines/".concat(l),href:"/pipelines/[pipeline]",passHref:!0,children:(0,P.jsx)(k.Z,{sameColorAsText:!0,children:l})},"pipeline_name_".concat(t)),(0,P.jsx)(j.ZP,{default:!0,title:i,width:90*H.iI,children:i},"pipeline_description_".concat(t)),(0,P.jsx)(j.ZP,{children:w.G7[u]},"pipeline_type_".concat(t)),(0,P.jsx)(j.ZP,{default:0===d,monospace:!0,children:d},"pipeline_block_count_".concat(t)),(0,P.jsx)(j.ZP,{default:0===s,monospace:!0,children:s},"pipeline_trigger_count_".concat(t)),(0,P.jsxs)(b.Z,{flex:1,justifyContent:"flex-end",children:[(0,P.jsx)(f.Z,Pe(Pe({},Ze),{},{onClick:function(){e.push("/pipelines/[pipeline]","/pipelines/".concat(l))},title:"Detail",children:(0,P.jsx)(z.UY,{default:!0,size:2*H.iI})})),(0,P.jsx)(O.Z,{mr:1}),(0,P.jsx)(f.Z,Pe(Pe({},Ze),{},{onClick:function(){e.push("/pipelines/[pipeline]/logs","/pipelines/".concat(l,"/logs"))},title:"Logs",children:(0,P.jsx)(z.$B,{default:!0,size:2*H.iI})}))]},"chevron_icon_".concat(t))]})),stickyHeader:!0})})})}ke.getInitialProps=(0,r.Z)(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var we=(0,E.Z)(ke)},33766:function(e,n,t){"use strict";t.d(n,{g_:function(){return p},u7:function(){return s}});var r=t(75582),i=t(82394),o=t(34376),c=t.n(o),u=t(59e3),l=t(24224);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,o=t.pushHistory,l=i?{}:(0,u.iV)();n=window.location.pathname;var a=o?c().push:c().replace,s=d(d({},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 s[t]}));var p=(0,u.uM)(s);p.length>=1&&(p="?".concat(p));var f="".concat(n.split("?")[0]).concat(p);return a(c().router.pathname,f,{shallow:!0})}function p(e,n,t){var i=t.addingMultipleValues,o=t.isList,c=t.itemsPerPage,u=t.pushHistory,a=void 0!==u&&u,p=t.resetLimitParams,f=d({},e);i?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];if(Array.isArray(i)){var o="".concat(t,"[]");f[o]=i.map(String)}})):o?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1],o=String(i),c="".concat(t,"[]"),u=f[c];u&&Array.isArray(u)?(u=u.map(String)).includes(o)?f[c]=(0,l.Od)(u,(function(e){return e===o})):f[c]=u.concat(o):f[c]=[o]})):f=d(d({},f),n),p&&(f._limit=c||20,f._offset=0),s(f,{pushHistory:a})}},79274:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines",function(){return t(46614)}])}},function(e){e.O(0,[3850,5716,2344,4506,6166,8180,9774,2888,179],(function(){return n=79274,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([[3853],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),l=t(28358),u=t(93461),d=t(57384),s=t(12344),a=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(a.HS,{ref:n,children:t})}var h=o.forwardRef(p),b=t(32063),v=t(15270),m=t(82531),g=t(66166),x=t(3055),j=t(49125),k=t(91427),y=t(24141);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 w(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 Z=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,O=e.afterWidthOverride,Z=e.before,_=e.beforeWidth,P=e.breadcrumbs,C=e.children,I=e.errors,S=e.headerMenuItems,D=e.navigationItems,E=e.setErrors,W=e.subheaderChildren,H=e.title,M=e.uuid,N=(0,y.i)().width,A="dashboard_after_width_".concat(M),q="dashboard_before_width_".concat(M),Y=(0,o.useRef)(null),T=(0,o.useState)(O?p:(0,k.U2)(A,p)),B=T[0],R=T[1],F=(0,o.useState)(!1),U=F[0],z=F[1],G=(0,o.useState)(Z?Math.max((0,k.U2)(q,_),13*j.iI):null),X=G[0],J=G[1],L=(0,o.useState)(!1),Q=L[0],V=L[1],K=(0,o.useState)(null)[1],$=m.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===$||void 0===$?void 0:$.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 H}}]),(0,o.useEffect)((function(){null===Y||void 0===Y||!Y.current||U||Q||null===K||void 0===K||K(Y.current.getBoundingClientRect().width)}),[U,B,Q,X,Y,K,N]),(0,o.useEffect)((function(){U||(0,k.t8)(A,B)}),[r,U,B,A]),(0,o.useEffect)((function(){Q||(0,k.t8)(q,X)}),[Q,X,q]);var te=(0,g.Z)(p);return(0,o.useEffect)((function(){O&&te!==p&&R(p)}),[O,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(d.Z,{title:H}),(0,f.jsx)(s.Z,{breadcrumbs:ne,menuItems:S,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(a.Nk,{children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,f.jsx)(a.lm,{children:(0,f.jsx)(v.Z,{navigationItems:D})}),(0,f.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(b.Z,{after:t,afterHeightOffset:x.Mz,afterHidden:r,afterMousedownActive:U,afterWidth:B,before:Z,beforeHeightOffset:x.Mz,beforeMousedownActive:Q,beforeWidth:a.k1+(Z?X:0),hideAfterCompletely:!0,leftOffset:Z?a.k1:null,mainContainerRef:Y,setAfterMousedownActive:z,setAfterWidth:R,setBeforeMousedownActive:V,setBeforeWidth:J,children:[W&&(0,f.jsx)(h,{children:W}),C]})})]}),I&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===E||void 0===E?void 0:E(null)},children:(0,f.jsx)(l.Z,w(w({},I),{},{onClose:function(){return null===E||void 0===E?void 0:E(null)}}))})]})}},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return l},W:function(){return c}});var r=t(9518),i=t(23831),o=t(3055),c=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},79585:function(e,n,t){"use strict";t.d(n,{DQ:function(){return s},HY:function(){return c},SA:function(){return a},WH:function(){return o},eC:function(){return u},fF:function(){return l},tC:function(){return d}});var r=t(81132),i=t(9736),o="Workspace",c="Preferences",l="Git settings",u="Users",d="Account",s="Profile",a=function(e){var n=e.owner,t=e.roles,a=[{linkProps:{href:"/settings/workspace/preferences"},uuid:c}];n&&a.push({linkProps:{href:"/settings/workspace/users"},uuid:u}),(!(0,i.YB)()||t<=r.No.EDITOR)&&a.push({linkProps:{href:"/settings/workspace/sync-data"},uuid:l});var f=[{items:a,uuid:o}];return(0,i.YB)()?f.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:s}],uuid:d}]):f}},30775:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(1210),i=t(82394),o=t(12691),c=t.n(o),l=t(10919),u=t(86673),d=t(19711),s=t(9518),a=t(23831),f=t(49125),p=t(90880),h=(f.iI,s.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*f.iI,2.5*f.iI)),b=s.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,p.eR)(),1.5*f.iI,2.5*f.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||a.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||a.Z.background).codeTextarea,";\n ")})),v=t(28598),m=t(82684);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 x(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,i.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 j=function(e){var n=e.isItemSelected,t=e.sections;return(0,v.jsx)(u.Z,{py:f.Gg,children:null===t||void 0===t?void 0:t.map((function(e){var t=e.items,r=e.title,i=e.uuid;return(0,v.jsxs)(u.Z,{children:[(0,v.jsx)(h,{children:(0,v.jsx)(d.ZP,{bold:!0,muted:!0,small:!0,uppercase:!0,children:r?r():i})}),null===t||void 0===t?void 0:t.map((function(e){var t=e.label,r=e.linkProps,o=e.onClick,u=e.uuid,d=t?t():u,s=(0,v.jsx)(b,{selected:null===n||void 0===n?void 0:n(x(x({},e),{},{uuidWorkspace:i})),children:d});return r?(0,m.createElement)(c(),x(x({},r),{},{key:u,passHref:!0}),(0,v.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,sameColorAsText:!0,children:s})):(0,v.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:o,preventDefault:!0,sameColorAsText:!0,children:s},u)}))]},i)}))})},k=t(2850),y=t(79585),O=t(9736);var w=function(e){var n=e.after,t=e.afterHidden,i=e.children,o=e.uuidItemSelected,c=e.uuidWorkspaceSelected,l=(0,O.PR)()||{};return(0,v.jsx)(r.Z,{after:n,afterHidden:!n||t,afterWidth:n?50*f.iI:0,afterWidthOverride:!0,before:(0,v.jsx)(k.M,{children:(0,v.jsx)(j,{isItemSelected:function(e){var n=e.uuid,t=e.uuidWorkspace;return c===t&&o===n},sections:(0,y.SA)(l)})}),beforeWidth:k.W,title:"Settings",uuid:"settings/index",children:i})}},38341:function(e,n,t){"use strict";var r=t(21831),i=t(82394),o=t(26304),c=(t(82684),t(9518)),l=t(67971),u=t(86673),d=t(19711),s=t(23831),a=t(10503),f=t(73942),p=t(49125),h=t(28598),b=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];function v(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function m(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?v(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=c.default.div.withConfig({displayName:"Checkbox__CheckboxContainer",componentId:"sc-ujqx42-0"})(["display:inline-block;vertical-align:middle;cursor:pointer;"]),x=c.default.div.withConfig({displayName:"Checkbox__ErrorContainer",componentId:"sc-ujqx42-1"})(["margin-top:4px;"]),j=c.default.input.withConfig({displayName:"Checkbox__HiddenCheckbox",componentId:"sc-ujqx42-2"})(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;",""],(function(e){return e.notClickable&&"\n background-color: ".concat((e.theme.content||s.Z.content).disabled,"\n border-color: ").concat((e.theme.content||s.Z.content).disabled,"\n\n &:hover {\n cursor: not-allowed;\n }\n ")})),k=c.default.div.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-ujqx42-3"})(["border-radius:","px;height:","px;transition:all 150ms;width:","px;svg{position:relative;visibility:",";}"," "," "," "," input[disabled]{cursor:default;}"," ",""],.5*p.iI,2*p.iI,2*p.iI,(function(e){return e.checked||e.required?"visible":"hidden"}),(function(e){return e.large&&"\n svg {\n left: -4px;\n top: -8px;\n }\n "}),(function(e){return!e.checked&&"\n background-color: ".concat((e.theme.background||s.Z.background).popup,";\n border: ").concat(f.PV,"px ").concat(f.M8," ").concat((e.theme.content||s.Z.content).muted,";\n ")}),(function(e){return e.checked&&"\n background-color: ".concat((e.theme.interactive||s.Z.interactive).checked,";\n border: ").concat(f.YF,"px ").concat(f.M8," transparent;\n ")}),(function(e){return e.required&&"\n background-color: ".concat((e.theme.content||s.Z.content).disabled,";\n border: ").concat(f.YF,"px ").concat(f.M8," transparent;\n ")}),(function(e){return e.disabled&&"\n background-color: ".concat((e.theme.content||s.Z.content).disabled,";\n border-color: ").concat((e.theme.content||s.Z.content).disabled,";\n\n &:hover {\n cursor: not-allowed;\n }\n ")}),(function(e){return e.warning&&"\n background-color: ".concat((e.theme.accent||s.Z.accent).warning,";\n border-color: ").concat((e.theme.interactive||s.Z.interactive).defaultBorder,"\n ")})),y=c.default.label.withConfig({displayName:"Checkbox__LabelStyle",componentId:"sc-ujqx42-4"})(["-ms-flex-direction:column;align-items:center;display:flex;flex-direction:column;flex-direction:row;&:hover{cursor:pointer;}"]);n.Z=function(e){var n=e.beforeIcon,t=e.checked,i=e.disabled,c=e.errorMessage,s=e.label,f=e.labelDescription,v=e.large,O=e.meta,w=e.monospace,Z=void 0!==w&&w,_=e.onClick,P=e.required,C=e.small,I=void 0!==C&&C,S=e.warning,D=e.xsmall,E=void 0!==D&&D,W=(0,o.Z)(e,b),H=S||!!(c||O&&O.touched&&O.error);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(y,{onClick:function(e){e.preventDefault(),_&&!i&&_(e)},children:[(0,h.jsxs)(g,{children:[(0,h.jsx)(j,m(m({},W),{},{disabled:i?"disabled":void 0,notClickable:i})),(0,h.jsx)(k,{checked:t,disabled:i,large:v,required:P,warning:H,children:(0,h.jsx)(a.Jr,{size:p.iI*(v?3:2)})})]}),n&&(0,h.jsx)(u.Z,{ml:1,children:(0,h.jsx)(l.Z,{children:n})}),s&&(0,h.jsxs)(u.Z,{pl:1,children:["string"===typeof s&&(0,h.jsx)(d.ZP,{disabled:i,lineThrough:i,monospace:Z,small:I,xsmall:E,children:s}),"string"!==typeof s&&s,f&&(0,h.jsx)(d.ZP,{muted:!0,small:!0,children:f})]})]}),(c||O&&O.touched&&O.error)&&(0,h.jsx)(x,{children:(0,h.jsx)(d.ZP,{small:!0,warning:!0,children:c?(0,r.Z)(c):O.error})})]})}},42949:function(e,n,t){"use strict";t.r(n);var r=t(77837),i=t(38860),o=t.n(i),c=t(82684),l=t(38341),u=t(67971),d=t(41788),s=t(30775),a=t(86673),f=t(11366),p=t(49125),h=t(79585),b=t(91427),v=t(28598);function m(){var e=(0,c.useState)(!!(0,b.U2)(f.kY)),n=e[0],t=e[1];return(0,v.jsx)(s.Z,{uuidItemSelected:h.HY,uuidWorkspaceSelected:h.WH,children:(0,v.jsx)(a.Z,{p:p.cd,children:(0,v.jsx)(u.Z,{alignItems:"center",children:(0,v.jsx)(l.Z,{checked:n,label:"Automatically use randomly generated name for blocks created in the future",onClick:function(){t(!n),(0,b.t8)(f.kY,!n)}})})})})}m.getInitialProps=(0,r.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,d.Z)(m)},11366:function(e,n,t){"use strict";t.d(n,{H8:function(){return i},g6:function(){return o},kY:function(){return r}});var r="automatically_name_blocks",i="pipeline_edit_before_tab_selected",o="pipeline_edit_hidden_blocks"},33323:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/preferences",function(){return t(42949)}])}},function(e){e.O(0,[3850,2344,4506,9774,2888,179],(function(){return n=33323,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3853],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),l=t(49894),u=t(93461),d=t(57384),s=t(12344),a=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(a.HS,{ref:n,children:t})}var h=o.forwardRef(p),b=t(32063),v=t(15270),m=t(82531),g=t(66166),x=t(3055),j=t(49125),k=t(91427),y=t(24141);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 w(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 Z=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,O=e.afterWidthOverride,Z=e.before,_=e.beforeWidth,P=e.breadcrumbs,C=e.children,I=e.errors,S=e.headerMenuItems,D=e.navigationItems,E=e.setErrors,W=e.subheaderChildren,H=e.title,M=e.uuid,N=(0,y.i)().width,A="dashboard_after_width_".concat(M),q="dashboard_before_width_".concat(M),Y=(0,o.useRef)(null),T=(0,o.useState)(O?p:(0,k.U2)(A,p)),B=T[0],R=T[1],F=(0,o.useState)(!1),U=F[0],z=F[1],G=(0,o.useState)(Z?Math.max((0,k.U2)(q,_),13*j.iI):null),X=G[0],J=G[1],L=(0,o.useState)(!1),Q=L[0],V=L[1],K=(0,o.useState)(null)[1],$=m.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===$||void 0===$?void 0:$.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 H}}]),(0,o.useEffect)((function(){null===Y||void 0===Y||!Y.current||U||Q||null===K||void 0===K||K(Y.current.getBoundingClientRect().width)}),[U,B,Q,X,Y,K,N]),(0,o.useEffect)((function(){U||(0,k.t8)(A,B)}),[r,U,B,A]),(0,o.useEffect)((function(){Q||(0,k.t8)(q,X)}),[Q,X,q]);var te=(0,g.Z)(p);return(0,o.useEffect)((function(){O&&te!==p&&R(p)}),[O,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(d.Z,{title:H}),(0,f.jsx)(s.Z,{breadcrumbs:ne,menuItems:S,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(a.Nk,{children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,f.jsx)(a.lm,{children:(0,f.jsx)(v.Z,{navigationItems:D})}),(0,f.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(b.Z,{after:t,afterHeightOffset:x.Mz,afterHidden:r,afterMousedownActive:U,afterWidth:B,before:Z,beforeHeightOffset:x.Mz,beforeMousedownActive:Q,beforeWidth:a.k1+(Z?X:0),hideAfterCompletely:!0,leftOffset:Z?a.k1:null,mainContainerRef:Y,setAfterMousedownActive:z,setAfterWidth:R,setBeforeMousedownActive:V,setBeforeWidth:J,children:[W&&(0,f.jsx)(h,{children:W}),C]})})]}),I&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===E||void 0===E?void 0:E(null)},children:(0,f.jsx)(l.Z,w(w({},I),{},{onClose:function(){return null===E||void 0===E?void 0:E(null)}}))})]})}},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return l},W:function(){return c}});var r=t(9518),i=t(23831),o=t(3055),c=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},79585:function(e,n,t){"use strict";t.d(n,{DQ:function(){return s},HY:function(){return c},SA:function(){return a},WH:function(){return o},eC:function(){return u},fF:function(){return l},tC:function(){return d}});var r=t(81132),i=t(9736),o="Workspace",c="Preferences",l="Git settings",u="Users",d="Account",s="Profile",a=function(e){var n=e.owner,t=e.roles,a=[{linkProps:{href:"/settings/workspace/preferences"},uuid:c}];n&&a.push({linkProps:{href:"/settings/workspace/users"},uuid:u}),(!(0,i.YB)()||t<=r.No.EDITOR)&&a.push({linkProps:{href:"/settings/workspace/sync-data"},uuid:l});var f=[{items:a,uuid:o}];return(0,i.YB)()?f.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:s}],uuid:d}]):f}},30775:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(1210),i=t(82394),o=t(12691),c=t.n(o),l=t(10919),u=t(86673),d=t(19711),s=t(9518),a=t(23831),f=t(49125),p=t(90880),h=(f.iI,s.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*f.iI,2.5*f.iI)),b=s.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,p.eR)(),1.5*f.iI,2.5*f.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||a.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||a.Z.background).codeTextarea,";\n ")})),v=t(28598),m=t(82684);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 x(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,i.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 j=function(e){var n=e.isItemSelected,t=e.sections;return(0,v.jsx)(u.Z,{py:f.Gg,children:null===t||void 0===t?void 0:t.map((function(e){var t=e.items,r=e.title,i=e.uuid;return(0,v.jsxs)(u.Z,{children:[(0,v.jsx)(h,{children:(0,v.jsx)(d.ZP,{bold:!0,muted:!0,small:!0,uppercase:!0,children:r?r():i})}),null===t||void 0===t?void 0:t.map((function(e){var t=e.label,r=e.linkProps,o=e.onClick,u=e.uuid,d=t?t():u,s=(0,v.jsx)(b,{selected:null===n||void 0===n?void 0:n(x(x({},e),{},{uuidWorkspace:i})),children:d});return r?(0,m.createElement)(c(),x(x({},r),{},{key:u,passHref:!0}),(0,v.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,sameColorAsText:!0,children:s})):(0,v.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:o,preventDefault:!0,sameColorAsText:!0,children:s},u)}))]},i)}))})},k=t(2850),y=t(79585),O=t(9736);var w=function(e){var n=e.after,t=e.afterHidden,i=e.children,o=e.uuidItemSelected,c=e.uuidWorkspaceSelected,l=(0,O.PR)()||{};return(0,v.jsx)(r.Z,{after:n,afterHidden:!n||t,afterWidth:n?50*f.iI:0,afterWidthOverride:!0,before:(0,v.jsx)(k.M,{children:(0,v.jsx)(j,{isItemSelected:function(e){var n=e.uuid,t=e.uuidWorkspace;return c===t&&o===n},sections:(0,y.SA)(l)})}),beforeWidth:k.W,title:"Settings",uuid:"settings/index",children:i})}},38341:function(e,n,t){"use strict";var r=t(21831),i=t(82394),o=t(26304),c=(t(82684),t(9518)),l=t(67971),u=t(86673),d=t(19711),s=t(23831),a=t(10503),f=t(73942),p=t(49125),h=t(28598),b=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];function v(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function m(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?v(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=c.default.div.withConfig({displayName:"Checkbox__CheckboxContainer",componentId:"sc-ujqx42-0"})(["display:inline-block;vertical-align:middle;cursor:pointer;"]),x=c.default.div.withConfig({displayName:"Checkbox__ErrorContainer",componentId:"sc-ujqx42-1"})(["margin-top:4px;"]),j=c.default.input.withConfig({displayName:"Checkbox__HiddenCheckbox",componentId:"sc-ujqx42-2"})(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;",""],(function(e){return e.notClickable&&"\n background-color: ".concat((e.theme.content||s.Z.content).disabled,"\n border-color: ").concat((e.theme.content||s.Z.content).disabled,"\n\n &:hover {\n cursor: not-allowed;\n }\n ")})),k=c.default.div.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-ujqx42-3"})(["border-radius:","px;height:","px;transition:all 150ms;width:","px;svg{position:relative;visibility:",";}"," "," "," "," input[disabled]{cursor:default;}"," ",""],.5*p.iI,2*p.iI,2*p.iI,(function(e){return e.checked||e.required?"visible":"hidden"}),(function(e){return e.large&&"\n svg {\n left: -4px;\n top: -8px;\n }\n "}),(function(e){return!e.checked&&"\n background-color: ".concat((e.theme.background||s.Z.background).popup,";\n border: ").concat(f.PV,"px ").concat(f.M8," ").concat((e.theme.content||s.Z.content).muted,";\n ")}),(function(e){return e.checked&&"\n background-color: ".concat((e.theme.interactive||s.Z.interactive).checked,";\n border: ").concat(f.YF,"px ").concat(f.M8," transparent;\n ")}),(function(e){return e.required&&"\n background-color: ".concat((e.theme.content||s.Z.content).disabled,";\n border: ").concat(f.YF,"px ").concat(f.M8," transparent;\n ")}),(function(e){return e.disabled&&"\n background-color: ".concat((e.theme.content||s.Z.content).disabled,";\n border-color: ").concat((e.theme.content||s.Z.content).disabled,";\n\n &:hover {\n cursor: not-allowed;\n }\n ")}),(function(e){return e.warning&&"\n background-color: ".concat((e.theme.accent||s.Z.accent).warning,";\n border-color: ").concat((e.theme.interactive||s.Z.interactive).defaultBorder,"\n ")})),y=c.default.label.withConfig({displayName:"Checkbox__LabelStyle",componentId:"sc-ujqx42-4"})(["-ms-flex-direction:column;align-items:center;display:flex;flex-direction:column;flex-direction:row;&:hover{cursor:pointer;}"]);n.Z=function(e){var n=e.beforeIcon,t=e.checked,i=e.disabled,c=e.errorMessage,s=e.label,f=e.labelDescription,v=e.large,O=e.meta,w=e.monospace,Z=void 0!==w&&w,_=e.onClick,P=e.required,C=e.small,I=void 0!==C&&C,S=e.warning,D=e.xsmall,E=void 0!==D&&D,W=(0,o.Z)(e,b),H=S||!!(c||O&&O.touched&&O.error);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(y,{onClick:function(e){e.preventDefault(),_&&!i&&_(e)},children:[(0,h.jsxs)(g,{children:[(0,h.jsx)(j,m(m({},W),{},{disabled:i?"disabled":void 0,notClickable:i})),(0,h.jsx)(k,{checked:t,disabled:i,large:v,required:P,warning:H,children:(0,h.jsx)(a.Jr,{size:p.iI*(v?3:2)})})]}),n&&(0,h.jsx)(u.Z,{ml:1,children:(0,h.jsx)(l.Z,{children:n})}),s&&(0,h.jsxs)(u.Z,{pl:1,children:["string"===typeof s&&(0,h.jsx)(d.ZP,{disabled:i,lineThrough:i,monospace:Z,small:I,xsmall:E,children:s}),"string"!==typeof s&&s,f&&(0,h.jsx)(d.ZP,{muted:!0,small:!0,children:f})]})]}),(c||O&&O.touched&&O.error)&&(0,h.jsx)(x,{children:(0,h.jsx)(d.ZP,{small:!0,warning:!0,children:c?(0,r.Z)(c):O.error})})]})}},42949:function(e,n,t){"use strict";t.r(n);var r=t(77837),i=t(38860),o=t.n(i),c=t(82684),l=t(38341),u=t(67971),d=t(41788),s=t(30775),a=t(86673),f=t(11366),p=t(49125),h=t(79585),b=t(91427),v=t(28598);function m(){var e=(0,c.useState)(!!(0,b.U2)(f.kY)),n=e[0],t=e[1];return(0,v.jsx)(s.Z,{uuidItemSelected:h.HY,uuidWorkspaceSelected:h.WH,children:(0,v.jsx)(a.Z,{p:p.cd,children:(0,v.jsx)(u.Z,{alignItems:"center",children:(0,v.jsx)(l.Z,{checked:n,label:"Automatically use randomly generated name for blocks created in the future",onClick:function(){t(!n),(0,b.t8)(f.kY,!n)}})})})})}m.getInitialProps=(0,r.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,d.Z)(m)},11366:function(e,n,t){"use strict";t.d(n,{H8:function(){return i},g6:function(){return o},kY:function(){return r}});var r="automatically_name_blocks",i="pipeline_edit_before_tab_selected",o="pipeline_edit_hidden_blocks"},33323:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/preferences",function(){return t(42949)}])}},function(e){e.O(0,[3850,2344,4506,9774,2888,179],(function(){return n=33323,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([[2403],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var r=t(82394),o=t(21831),i=t(82684),c=t(47999),l=t(28358),a=t(93461),s=t(57384),u=t(12344),d=t(72454),p=t(28598);function f(e,n){var t=e.children;return(0,p.jsx)(d.HS,{ref:n,children:t})}var h=i.forwardRef(f),b=t(32063),m=t(15270),y=t(82531),g=t(66166),x=t(3055),v=t(49125),j=t(91427),w=t(24141);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 Z=function(e){var n,t=e.after,r=e.afterHidden,f=e.afterWidth,O=e.afterWidthOverride,Z=e.before,_=e.beforeWidth,P=e.breadcrumbs,C=e.children,S=e.errors,I=e.headerMenuItems,N=e.navigationItems,D=e.setErrors,H=e.subheaderChildren,E=e.title,M=e.uuid,z=(0,w.i)().width,T="dashboard_after_width_".concat(M),A="dashboard_before_width_".concat(M),W=(0,i.useRef)(null),q=(0,i.useState)(O?f:(0,j.U2)(T,f)),B=q[0],F=q[1],R=(0,i.useState)(!1),L=R[0],G=R[1],Y=(0,i.useState)(Z?Math.max((0,j.U2)(A,_),13*v.iI):null),U=Y[0],X=Y[1],Q=(0,i.useState)(!1),J=Q[0],V=Q[1],K=(0,i.useState)(null)[1],$=y.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===$||void 0===$?void 0:$.projects,ne=[];P?ne.push.apply(ne,(0,o.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 E}}]),(0,i.useEffect)((function(){null===W||void 0===W||!W.current||L||J||null===K||void 0===K||K(W.current.getBoundingClientRect().width)}),[L,B,J,U,W,K,z]),(0,i.useEffect)((function(){L||(0,j.t8)(T,B)}),[r,L,B,T]),(0,i.useEffect)((function(){J||(0,j.t8)(A,U)}),[J,U,A]);var te=(0,g.Z)(f);return(0,i.useEffect)((function(){O&&te!==f&&F(f)}),[O,f,te]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(s.Z,{title:E}),(0,p.jsx)(u.Z,{breadcrumbs:ne,menuItems:I,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,p.jsxs)(d.Nk,{children:[0!==(null===N||void 0===N?void 0:N.length)&&(0,p.jsx)(d.lm,{children:(0,p.jsx)(m.Z,{navigationItems:N})}),(0,p.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(b.Z,{after:t,afterHeightOffset:x.Mz,afterHidden:r,afterMousedownActive:L,afterWidth:B,before:Z,beforeHeightOffset:x.Mz,beforeMousedownActive:J,beforeWidth:d.k1+(Z?U:0),hideAfterCompletely:!0,leftOffset:Z?d.k1:null,mainContainerRef:W,setAfterMousedownActive:G,setAfterWidth:F,setBeforeMousedownActive:V,setBeforeWidth:X,children:[H&&(0,p.jsx)(h,{children:H}),C]})})]}),S&&(0,p.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,p.jsx)(l.Z,k(k({},S),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return l},W:function(){return c}});var r=t(9518),o=t(23831),i=t(3055),c=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],i.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n ")}))},79585:function(e,n,t){"use strict";t.d(n,{DQ:function(){return u},HY:function(){return c},SA:function(){return d},WH:function(){return i},eC:function(){return a},fF:function(){return l},tC:function(){return s}});var r=t(81132),o=t(9736),i="Workspace",c="Preferences",l="Git settings",a="Users",s="Account",u="Profile",d=function(e){var n=e.owner,t=e.roles,d=[{linkProps:{href:"/settings/workspace/preferences"},uuid:c}];n&&d.push({linkProps:{href:"/settings/workspace/users"},uuid:a}),(!(0,o.YB)()||t<=r.No.EDITOR)&&d.push({linkProps:{href:"/settings/workspace/sync-data"},uuid:l});var p=[{items:d,uuid:i}];return(0,o.YB)()?p.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:u}],uuid:s}]):p}},30775:function(e,n,t){"use strict";t.d(n,{Z:function(){return k}});var r=t(1210),o=t(82394),i=t(12691),c=t.n(i),l=t(10919),a=t(86673),s=t(19711),u=t(9518),d=t(23831),p=t(49125),f=t(90880),h=(p.iI,u.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*p.iI,2.5*p.iI)),b=u.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,f.eR)(),1.5*p.iI,2.5*p.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||d.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),m=t(28598),y=t(82684);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 x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?g(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var v=function(e){var n=e.isItemSelected,t=e.sections;return(0,m.jsx)(a.Z,{py:p.Gg,children:null===t||void 0===t?void 0:t.map((function(e){var t=e.items,r=e.title,o=e.uuid;return(0,m.jsxs)(a.Z,{children:[(0,m.jsx)(h,{children:(0,m.jsx)(s.ZP,{bold:!0,muted:!0,small:!0,uppercase:!0,children:r?r():o})}),null===t||void 0===t?void 0:t.map((function(e){var t=e.label,r=e.linkProps,i=e.onClick,a=e.uuid,s=t?t():a,u=(0,m.jsx)(b,{selected:null===n||void 0===n?void 0:n(x(x({},e),{},{uuidWorkspace:o})),children:s});return r?(0,y.createElement)(c(),x(x({},r),{},{key:a,passHref:!0}),(0,m.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,sameColorAsText:!0,children:u})):(0,m.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:i,preventDefault:!0,sameColorAsText:!0,children:u},a)}))]},o)}))})},j=t(2850),w=t(79585),O=t(9736);var k=function(e){var n=e.after,t=e.afterHidden,o=e.children,i=e.uuidItemSelected,c=e.uuidWorkspaceSelected,l=(0,O.PR)()||{};return(0,m.jsx)(r.Z,{after:n,afterHidden:!n||t,afterWidth:n?50*p.iI:0,afterWidthOverride:!0,before:(0,m.jsx)(j.M,{children:(0,m.jsx)(v,{isItemSelected:function(e){var n=e.uuid,t=e.uuidWorkspace;return c===t&&i===n},sections:(0,w.SA)(l)})}),beforeWidth:j.W,title:"Settings",uuid:"settings/index",children:o})}},38341:function(e,n,t){"use strict";var r=t(21831),o=t(82394),i=t(26304),c=(t(82684),t(9518)),l=t(67971),a=t(86673),s=t(19711),u=t(23831),d=t(10503),p=t(73942),f=t(49125),h=t(28598),b=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];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 y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?m(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=c.default.div.withConfig({displayName:"Checkbox__CheckboxContainer",componentId:"sc-ujqx42-0"})(["display:inline-block;vertical-align:middle;cursor:pointer;"]),x=c.default.div.withConfig({displayName:"Checkbox__ErrorContainer",componentId:"sc-ujqx42-1"})(["margin-top:4px;"]),v=c.default.input.withConfig({displayName:"Checkbox__HiddenCheckbox",componentId:"sc-ujqx42-2"})(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;",""],(function(e){return e.notClickable&&"\n background-color: ".concat((e.theme.content||u.Z.content).disabled,"\n border-color: ").concat((e.theme.content||u.Z.content).disabled,"\n\n &:hover {\n cursor: not-allowed;\n }\n ")})),j=c.default.div.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-ujqx42-3"})(["border-radius:","px;height:","px;transition:all 150ms;width:","px;svg{position:relative;visibility:",";}"," "," "," "," input[disabled]{cursor:default;}"," ",""],.5*f.iI,2*f.iI,2*f.iI,(function(e){return e.checked||e.required?"visible":"hidden"}),(function(e){return e.large&&"\n svg {\n left: -4px;\n top: -8px;\n }\n "}),(function(e){return!e.checked&&"\n background-color: ".concat((e.theme.background||u.Z.background).popup,";\n border: ").concat(p.PV,"px ").concat(p.M8," ").concat((e.theme.content||u.Z.content).muted,";\n ")}),(function(e){return e.checked&&"\n background-color: ".concat((e.theme.interactive||u.Z.interactive).checked,";\n border: ").concat(p.YF,"px ").concat(p.M8," transparent;\n ")}),(function(e){return e.required&&"\n background-color: ".concat((e.theme.content||u.Z.content).disabled,";\n border: ").concat(p.YF,"px ").concat(p.M8," transparent;\n ")}),(function(e){return e.disabled&&"\n background-color: ".concat((e.theme.content||u.Z.content).disabled,";\n border-color: ").concat((e.theme.content||u.Z.content).disabled,";\n\n &:hover {\n cursor: not-allowed;\n }\n ")}),(function(e){return e.warning&&"\n background-color: ".concat((e.theme.accent||u.Z.accent).warning,";\n border-color: ").concat((e.theme.interactive||u.Z.interactive).defaultBorder,"\n ")})),w=c.default.label.withConfig({displayName:"Checkbox__LabelStyle",componentId:"sc-ujqx42-4"})(["-ms-flex-direction:column;align-items:center;display:flex;flex-direction:column;flex-direction:row;&:hover{cursor:pointer;}"]);n.Z=function(e){var n=e.beforeIcon,t=e.checked,o=e.disabled,c=e.errorMessage,u=e.label,p=e.labelDescription,m=e.large,O=e.meta,k=e.monospace,Z=void 0!==k&&k,_=e.onClick,P=e.required,C=e.small,S=void 0!==C&&C,I=e.warning,N=e.xsmall,D=void 0!==N&&N,H=(0,i.Z)(e,b),E=I||!!(c||O&&O.touched&&O.error);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(w,{onClick:function(e){e.preventDefault(),_&&!o&&_(e)},children:[(0,h.jsxs)(g,{children:[(0,h.jsx)(v,y(y({},H),{},{disabled:o?"disabled":void 0,notClickable:o})),(0,h.jsx)(j,{checked:t,disabled:o,large:m,required:P,warning:E,children:(0,h.jsx)(d.Jr,{size:f.iI*(m?3:2)})})]}),n&&(0,h.jsx)(a.Z,{ml:1,children:(0,h.jsx)(l.Z,{children:n})}),u&&(0,h.jsxs)(a.Z,{pl:1,children:["string"===typeof u&&(0,h.jsx)(s.ZP,{disabled:o,lineThrough:o,monospace:Z,small:S,xsmall:D,children:u}),"string"!==typeof u&&u,p&&(0,h.jsx)(s.ZP,{muted:!0,small:!0,children:p})]})]}),(c||O&&O.touched&&O.error)&&(0,h.jsx)(x,{children:(0,h.jsx)(s.ZP,{small:!0,warning:!0,children:c?(0,r.Z)(c):O.error})})]})}},87372:function(e,n,t){"use strict";var r,o,i,c,l,a,s,u,d=t(82394),p=t(26304),f=t(26653),h=t(9518),b=t(33591),m=t(23831),y=t(2005),g=t(31012),x=t(19711),v=t(49125),j=t(86673),w=t(28598),O=["children","condensed","inline","level","marketing","spacingBelow"];function k(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?k(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],x.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||m.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(y.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(y.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(y.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(y.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(y.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(y.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||m.Z.content).active,";\n ")})),C=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],_,b.media.md(r||(r=(0,f.Z)(["\n ","\n "])),g.aQ),b.media.lg(o||(o=(0,f.Z)(["\n ","\n "])),g.aQ),b.media.xl(i||(i=(0,f.Z)(["\n ","\n "])),g.aQ)),S=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],_,g.MJ),I=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],_,b.media.xs(c||(c=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*v.iI,7*v.iI),b.media.sm(l||(l=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*v.iI,7*v.iI),b.media.md(a||(a=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*v.iI,7*v.iI),b.media.lg(s||(s=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*v.iI,7*v.iI),b.media.xl(u||(u=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*v.iI,7*v.iI)),N=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],_,g.BL),D=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],_),H=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],_),E=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],_),M=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],_,(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 "})),z=function(e){var n,t=e.children,r=e.condensed,o=e.inline,i=e.level,c=e.marketing,l=e.spacingBelow,a=(0,p.Z)(e,O);o?n=M:0===Number(i)?n=C:1===Number(i)?n=c?I:S:2===Number(i)?n=N:3===Number(i)?n=D:4===Number(i)?n=H:5===Number(i)&&(n=E);var s=(0,w.jsxs)(n,Z(Z({},a),{},{level:i,children:[l&&(0,w.jsx)(j.Z,{mb:r?2:3,children:t}),!l&&t]}));return o?s:(0,w.jsx)(P,{children:s})};z.defaultProps={level:3,weightStyle:6},n.Z=z},70902:function(e,n,t){"use strict";var r=t(82394),o=t(26304),i=t(82684),c=t(9518),l=t(69898),a=t(23831),s=t(28598),u=["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 p(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 f=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);}',""],l.p,46,46,26,(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.disabled?a.Z.monotone.white:a.Z.monotone.black}),(function(e){return e.disabled&&"border: 1px solid ".concat(a.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(a.Z.monotone.white,";\n }\n ")})),h=function(e,n){var t=e.checked,r=e.disabled,i=e.onCheck,c=(0,o.Z)(e,u);return(0,s.jsx)(l.Z,p(p({},c),{},{disabled:r,input:(0,s.jsxs)(f,p(p({},c),{},{disabled:r,noBackground:!0,noBorder:!0,children:[(0,s.jsx)("input",{checked:t,type:"checkbox"}),(0,s.jsx)("span",{onClick:r?null:function(){return null===i||void 0===i?void 0:i((function(e){return!e}))}})]})),noBackground:!0,ref:n}))};n.Z=i.forwardRef(h)},10831:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return H}});var r=t(77837),o=t(82394),i=t(75582),c=t(38860),l=t.n(c),a=t(82684),s=t(21764),u=t(83455),d=t(60328),p=t(38341),f=t(67971),h=t(87372),b=t(10919),m=t(41788),y=t(30775),g=t(86673),x=[{autoComplete:"remote_repo_link",label:"Remote repo url",required:!0,uuid:"remote_repo_link"},{autoComplete:"repo_path",label:"Local directory path",labelDescription:"Defaults to Python's os.getcwd() if omitted. Mage will create this local directory if it doesn't already exist.",uuid:"repo_path"}],v=[{autoComplete:"username",label:"Username",uuid:"username"},{autoComplete:"email",label:"Email",uuid:"email"},{autoComplete:"ssh_public_key",label:"SSH public key in base64",labelDescription:'Run "cat ~/.ssh/id_rsa.pub | base64 | tr -d \\\\n && echo" in terminal to get base64 encoded public key and paste the result here. The key will be stored as a Mage secret.',type:"password",uuid:"ssh_public_key"},{autoComplete:"ssh_private_key",label:"SSH private key in base64",labelDescription:'Follow same steps as the public key, but run "cat ~/.ssh/id_rsa | base64 | tr -d \\\\n && echo" instead. The key will be stored as a Mage secret.',type:"password",uuid:"ssh_private_key"}],j=[{autoComplete:"branch",label:"Branch name",required:!0,uuid:"branch"}],w=t(19711),O=t(82944),k=t(70902),Z=t(82531),_=t(49125),P=t(79585),C=t(96510),S=t(28598);function I(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function N(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?I(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function D(){var e=Z.ZP.syncs.list().data,n=(0,a.useState)(null),t=n[0],r=n[1],c=(0,a.useState)(null),l=c[0],m=c[1],I=(0,a.useState)(null),D=I[0],H=I[1];(0,a.useEffect)((function(){if(e){var n,t=null===e||void 0===e||null===(n=e.syncs)||void 0===n?void 0:n[0];r(t),H(!(null===t||void 0===t||!t.branch))}}),[e]);var E=(0,u.Db)(Z.ZP.syncs.useCreate(),{onSuccess:function(e){return(0,C.wD)(e,{callback:function(e){var n=e.sync;n&&(r(n),window.location.reload(),s.Am.success("Sync saved",{position:s.Am.POSITION.BOTTOM_RIGHT,toastId:"data_sync_success"}))},onErrorCallback:function(e){var n=e.error,t=n.exception;n.message;return m(t)}})}}),M=(0,i.Z)(E,2),z=M[0],T=M[1].isLoading,A=(0,u.Db)(Z.ZP.syncs.useUpdate("git"),{onSuccess:function(e){return(0,C.wD)(e,{callback:function(e){e.sync&&s.Am.success("Data synced!",{position:s.Am.POSITION.BOTTOM_RIGHT,toastId:"data_sync_success"})},onErrorCallback:function(e){var n=e.error,t=n.exception;n.message;return m(t)}})}}),W=(0,i.Z)(A,2),q=W[0],B=W[1].isLoading;return(0,S.jsx)(y.Z,{uuidItemSelected:P.fF,uuidWorkspaceSelected:P.WH,children:(0,S.jsxs)(g.Z,{p:_.cd,style:{width:"600px"},children:[(0,S.jsx)(h.Z,{children:"Git repository settings"}),(0,S.jsx)(g.Z,{mt:1,children:(0,S.jsxs)(w.ZP,{bold:!0,children:["You can enable the Git integration by supplying the url for your remote repository. ",(0,S.jsxs)(w.ZP,{bold:!0,inline:!0,children:["You will need to ",(0,S.jsx)(b.Z,{href:"https://docs.mage.ai/developing-in-the-cloud/setting-up-git",openNewWindow:!0,children:"set up your SSH key"})," if you have not done so already."]})]})}),(0,S.jsx)("form",{children:x.map((function(e){var n=e.autoComplete,i=e.disabled,c=e.label,l=e.labelDescription,a=e.required,s=e.type,u=e.uuid;return(0,S.jsxs)(g.Z,{mt:2,children:[l&&(0,S.jsx)(g.Z,{mb:1,children:(0,S.jsx)(w.ZP,{small:!0,children:l})}),(0,S.jsx)(O.Z,{autoComplete:n,disabled:i,label:c,onChange:function(e){r((function(n){return N(N({},n),{},(0,o.Z)({},u,e.target.value))}))},primary:!0,required:a,setContentOnMount:!0,type:s,value:(null===t||void 0===t?void 0:t[u])||""})]},u)}))}),(0,S.jsx)(g.Z,{mt:_.Mq,children:(0,S.jsx)(w.ZP,{bold:!0,children:"(OPTIONAL) These fields are recommended if your Git and SSH settings can be reset unexpectedly. Filling out these fields will allow Mage to continue to connect to the remote Git repository."})}),(0,S.jsx)("form",{children:v.map((function(e){var n=e.autoComplete,i=e.disabled,c=e.label,l=e.labelDescription,a=e.required,s=e.type,u=e.uuid;return(0,S.jsxs)(g.Z,{mt:2,children:[l&&(0,S.jsx)(g.Z,{mb:1,children:(0,S.jsx)(w.ZP,{small:!0,children:l})}),(0,S.jsx)(O.Z,{autoComplete:n,disabled:i,label:c,onChange:function(e){r((function(n){return N(N({},n),{},(0,o.Z)({},u,e.target.value))}))},primary:!0,required:a,setContentOnMount:!0,type:s,value:(null===t||void 0===t?void 0:t[u])||""})]},u)}))}),(0,S.jsx)(g.Z,{mt:_.Mq,children:(0,S.jsxs)(f.Z,{alignItems:"center",children:[(0,S.jsx)(g.Z,{mr:2,children:(0,S.jsx)(k.Z,{checked:!!D,onCheck:function(){return H((function(e){var n=!e;return n||r((function(e){return N(N({},e),{},{branch:null,sync_on_pipeline_run:!1})})),n}))}})}),(0,S.jsxs)(w.ZP,{bold:!0,large:!0,children:["Use ",(0,S.jsx)(b.Z,{bold:!0,href:"https://docs.mage.ai/production/data-sync/git#git-sync",large:!0,openNewWindow:!0,children:"Git Sync"})]})]})}),D&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(g.Z,{mt:1,children:(0,S.jsx)(w.ZP,{bold:!0,children:"(OPTIONAL) You can also set up your project to only sync with a specified branch."})}),(0,S.jsx)("form",{children:j.map((function(e){var n=e.autoComplete,i=e.disabled,c=e.label,l=e.required,a=e.type,s=e.uuid;return(0,S.jsx)(g.Z,{mt:2,children:(0,S.jsx)(O.Z,{autoComplete:n,disabled:i,label:c,onChange:function(e){r((function(n){return N(N({},n),{},(0,o.Z)({},s,e.target.value))}))},primary:!0,required:l,setContentOnMount:!0,type:a,value:(null===t||void 0===t?void 0:t[s])||""})},s)}))}),(0,S.jsx)(f.Z,{alignItems:"center",children:(0,S.jsx)(g.Z,{mt:2,children:(0,S.jsx)(p.Z,{checked:null===t||void 0===t?void 0:t.sync_on_pipeline_run,label:"Sync before each trigger run",onClick:function(){r((function(e){return N(N({},e),{},{sync_on_pipeline_run:!(null!==t&&void 0!==t&&t.sync_on_pipeline_run)})}))}})})})]}),(0,S.jsx)(g.Z,{mt:2,children:(0,S.jsx)(d.Z,{loading:T,onClick:function(){return z({sync:t})},primary:!0,children:"Save repository settings"})}),l&&(0,S.jsx)(g.Z,{mt:1,children:(0,S.jsx)(w.ZP,{danger:!0,children:l})}),D&&(0,S.jsxs)(g.Z,{mt:_.HN,children:[(0,S.jsx)(h.Z,{children:"Synchronize code from remote repository"}),(0,S.jsx)(g.Z,{mt:1,children:(0,S.jsxs)(w.ZP,{children:["Running the sync from this page will run a one time sync with the remote repository.",(0,S.jsx)("br",{}),"This may ",(0,S.jsx)(w.ZP,{bold:!0,danger:!0,inline:!0,children:"overwrite"})," your existing data, so make sure you\u2019ve committed or backed up your current changes."]})}),(0,S.jsx)(g.Z,{mt:2,children:(0,S.jsx)(d.Z,{loading:B,onClick:function(){return q({sync:{action_type:"sync_data"}})},warning:!0,children:"Synchronize code"})})]})]})})}D.getInitialProps=(0,r.Z)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var H=(0,m.Z)(D)},37056:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/sync-data",function(){return t(10831)}])}},function(e){e.O(0,[3850,2344,4506,9774,2888,179],(function(){return n=37056,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2403],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var r=t(82394),o=t(21831),i=t(82684),c=t(47999),l=t(49894),a=t(93461),s=t(57384),u=t(12344),d=t(72454),p=t(28598);function f(e,n){var t=e.children;return(0,p.jsx)(d.HS,{ref:n,children:t})}var h=i.forwardRef(f),b=t(32063),m=t(15270),y=t(82531),g=t(66166),x=t(3055),v=t(49125),j=t(91427),w=t(24141);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 Z=function(e){var n,t=e.after,r=e.afterHidden,f=e.afterWidth,O=e.afterWidthOverride,Z=e.before,_=e.beforeWidth,P=e.breadcrumbs,C=e.children,S=e.errors,I=e.headerMenuItems,N=e.navigationItems,D=e.setErrors,H=e.subheaderChildren,E=e.title,M=e.uuid,z=(0,w.i)().width,T="dashboard_after_width_".concat(M),A="dashboard_before_width_".concat(M),W=(0,i.useRef)(null),q=(0,i.useState)(O?f:(0,j.U2)(T,f)),B=q[0],F=q[1],R=(0,i.useState)(!1),L=R[0],G=R[1],Y=(0,i.useState)(Z?Math.max((0,j.U2)(A,_),13*v.iI):null),U=Y[0],X=Y[1],Q=(0,i.useState)(!1),J=Q[0],V=Q[1],K=(0,i.useState)(null)[1],$=y.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===$||void 0===$?void 0:$.projects,ne=[];P?ne.push.apply(ne,(0,o.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 E}}]),(0,i.useEffect)((function(){null===W||void 0===W||!W.current||L||J||null===K||void 0===K||K(W.current.getBoundingClientRect().width)}),[L,B,J,U,W,K,z]),(0,i.useEffect)((function(){L||(0,j.t8)(T,B)}),[r,L,B,T]),(0,i.useEffect)((function(){J||(0,j.t8)(A,U)}),[J,U,A]);var te=(0,g.Z)(f);return(0,i.useEffect)((function(){O&&te!==f&&F(f)}),[O,f,te]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(s.Z,{title:E}),(0,p.jsx)(u.Z,{breadcrumbs:ne,menuItems:I,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,p.jsxs)(d.Nk,{children:[0!==(null===N||void 0===N?void 0:N.length)&&(0,p.jsx)(d.lm,{children:(0,p.jsx)(m.Z,{navigationItems:N})}),(0,p.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(b.Z,{after:t,afterHeightOffset:x.Mz,afterHidden:r,afterMousedownActive:L,afterWidth:B,before:Z,beforeHeightOffset:x.Mz,beforeMousedownActive:J,beforeWidth:d.k1+(Z?U:0),hideAfterCompletely:!0,leftOffset:Z?d.k1:null,mainContainerRef:W,setAfterMousedownActive:G,setAfterWidth:F,setBeforeMousedownActive:V,setBeforeWidth:X,children:[H&&(0,p.jsx)(h,{children:H}),C]})})]}),S&&(0,p.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,p.jsx)(l.Z,k(k({},S),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return l},W:function(){return c}});var r=t(9518),o=t(23831),i=t(3055),c=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],i.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n ")}))},79585:function(e,n,t){"use strict";t.d(n,{DQ:function(){return u},HY:function(){return c},SA:function(){return d},WH:function(){return i},eC:function(){return a},fF:function(){return l},tC:function(){return s}});var r=t(81132),o=t(9736),i="Workspace",c="Preferences",l="Git settings",a="Users",s="Account",u="Profile",d=function(e){var n=e.owner,t=e.roles,d=[{linkProps:{href:"/settings/workspace/preferences"},uuid:c}];n&&d.push({linkProps:{href:"/settings/workspace/users"},uuid:a}),(!(0,o.YB)()||t<=r.No.EDITOR)&&d.push({linkProps:{href:"/settings/workspace/sync-data"},uuid:l});var p=[{items:d,uuid:i}];return(0,o.YB)()?p.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:u}],uuid:s}]):p}},30775:function(e,n,t){"use strict";t.d(n,{Z:function(){return k}});var r=t(1210),o=t(82394),i=t(12691),c=t.n(i),l=t(10919),a=t(86673),s=t(19711),u=t(9518),d=t(23831),p=t(49125),f=t(90880),h=(p.iI,u.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*p.iI,2.5*p.iI)),b=u.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,f.eR)(),1.5*p.iI,2.5*p.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||d.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),m=t(28598),y=t(82684);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 x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?g(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var v=function(e){var n=e.isItemSelected,t=e.sections;return(0,m.jsx)(a.Z,{py:p.Gg,children:null===t||void 0===t?void 0:t.map((function(e){var t=e.items,r=e.title,o=e.uuid;return(0,m.jsxs)(a.Z,{children:[(0,m.jsx)(h,{children:(0,m.jsx)(s.ZP,{bold:!0,muted:!0,small:!0,uppercase:!0,children:r?r():o})}),null===t||void 0===t?void 0:t.map((function(e){var t=e.label,r=e.linkProps,i=e.onClick,a=e.uuid,s=t?t():a,u=(0,m.jsx)(b,{selected:null===n||void 0===n?void 0:n(x(x({},e),{},{uuidWorkspace:o})),children:s});return r?(0,y.createElement)(c(),x(x({},r),{},{key:a,passHref:!0}),(0,m.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,sameColorAsText:!0,children:u})):(0,m.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:i,preventDefault:!0,sameColorAsText:!0,children:u},a)}))]},o)}))})},j=t(2850),w=t(79585),O=t(9736);var k=function(e){var n=e.after,t=e.afterHidden,o=e.children,i=e.uuidItemSelected,c=e.uuidWorkspaceSelected,l=(0,O.PR)()||{};return(0,m.jsx)(r.Z,{after:n,afterHidden:!n||t,afterWidth:n?50*p.iI:0,afterWidthOverride:!0,before:(0,m.jsx)(j.M,{children:(0,m.jsx)(v,{isItemSelected:function(e){var n=e.uuid,t=e.uuidWorkspace;return c===t&&i===n},sections:(0,w.SA)(l)})}),beforeWidth:j.W,title:"Settings",uuid:"settings/index",children:o})}},38341:function(e,n,t){"use strict";var r=t(21831),o=t(82394),i=t(26304),c=(t(82684),t(9518)),l=t(67971),a=t(86673),s=t(19711),u=t(23831),d=t(10503),p=t(73942),f=t(49125),h=t(28598),b=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];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 y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?m(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=c.default.div.withConfig({displayName:"Checkbox__CheckboxContainer",componentId:"sc-ujqx42-0"})(["display:inline-block;vertical-align:middle;cursor:pointer;"]),x=c.default.div.withConfig({displayName:"Checkbox__ErrorContainer",componentId:"sc-ujqx42-1"})(["margin-top:4px;"]),v=c.default.input.withConfig({displayName:"Checkbox__HiddenCheckbox",componentId:"sc-ujqx42-2"})(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;",""],(function(e){return e.notClickable&&"\n background-color: ".concat((e.theme.content||u.Z.content).disabled,"\n border-color: ").concat((e.theme.content||u.Z.content).disabled,"\n\n &:hover {\n cursor: not-allowed;\n }\n ")})),j=c.default.div.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-ujqx42-3"})(["border-radius:","px;height:","px;transition:all 150ms;width:","px;svg{position:relative;visibility:",";}"," "," "," "," input[disabled]{cursor:default;}"," ",""],.5*f.iI,2*f.iI,2*f.iI,(function(e){return e.checked||e.required?"visible":"hidden"}),(function(e){return e.large&&"\n svg {\n left: -4px;\n top: -8px;\n }\n "}),(function(e){return!e.checked&&"\n background-color: ".concat((e.theme.background||u.Z.background).popup,";\n border: ").concat(p.PV,"px ").concat(p.M8," ").concat((e.theme.content||u.Z.content).muted,";\n ")}),(function(e){return e.checked&&"\n background-color: ".concat((e.theme.interactive||u.Z.interactive).checked,";\n border: ").concat(p.YF,"px ").concat(p.M8," transparent;\n ")}),(function(e){return e.required&&"\n background-color: ".concat((e.theme.content||u.Z.content).disabled,";\n border: ").concat(p.YF,"px ").concat(p.M8," transparent;\n ")}),(function(e){return e.disabled&&"\n background-color: ".concat((e.theme.content||u.Z.content).disabled,";\n border-color: ").concat((e.theme.content||u.Z.content).disabled,";\n\n &:hover {\n cursor: not-allowed;\n }\n ")}),(function(e){return e.warning&&"\n background-color: ".concat((e.theme.accent||u.Z.accent).warning,";\n border-color: ").concat((e.theme.interactive||u.Z.interactive).defaultBorder,"\n ")})),w=c.default.label.withConfig({displayName:"Checkbox__LabelStyle",componentId:"sc-ujqx42-4"})(["-ms-flex-direction:column;align-items:center;display:flex;flex-direction:column;flex-direction:row;&:hover{cursor:pointer;}"]);n.Z=function(e){var n=e.beforeIcon,t=e.checked,o=e.disabled,c=e.errorMessage,u=e.label,p=e.labelDescription,m=e.large,O=e.meta,k=e.monospace,Z=void 0!==k&&k,_=e.onClick,P=e.required,C=e.small,S=void 0!==C&&C,I=e.warning,N=e.xsmall,D=void 0!==N&&N,H=(0,i.Z)(e,b),E=I||!!(c||O&&O.touched&&O.error);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(w,{onClick:function(e){e.preventDefault(),_&&!o&&_(e)},children:[(0,h.jsxs)(g,{children:[(0,h.jsx)(v,y(y({},H),{},{disabled:o?"disabled":void 0,notClickable:o})),(0,h.jsx)(j,{checked:t,disabled:o,large:m,required:P,warning:E,children:(0,h.jsx)(d.Jr,{size:f.iI*(m?3:2)})})]}),n&&(0,h.jsx)(a.Z,{ml:1,children:(0,h.jsx)(l.Z,{children:n})}),u&&(0,h.jsxs)(a.Z,{pl:1,children:["string"===typeof u&&(0,h.jsx)(s.ZP,{disabled:o,lineThrough:o,monospace:Z,small:S,xsmall:D,children:u}),"string"!==typeof u&&u,p&&(0,h.jsx)(s.ZP,{muted:!0,small:!0,children:p})]})]}),(c||O&&O.touched&&O.error)&&(0,h.jsx)(x,{children:(0,h.jsx)(s.ZP,{small:!0,warning:!0,children:c?(0,r.Z)(c):O.error})})]})}},87372:function(e,n,t){"use strict";var r,o,i,c,l,a,s,u,d=t(82394),p=t(26304),f=t(26653),h=t(9518),b=t(33591),m=t(23831),y=t(2005),g=t(31012),x=t(19711),v=t(49125),j=t(86673),w=t(28598),O=["children","condensed","inline","level","marketing","spacingBelow"];function k(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?k(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],x.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||m.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(y.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(y.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(y.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(y.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(y.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(y.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||m.Z.content).active,";\n ")})),C=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],_,b.media.md(r||(r=(0,f.Z)(["\n ","\n "])),g.aQ),b.media.lg(o||(o=(0,f.Z)(["\n ","\n "])),g.aQ),b.media.xl(i||(i=(0,f.Z)(["\n ","\n "])),g.aQ)),S=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],_,g.MJ),I=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],_,b.media.xs(c||(c=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*v.iI,7*v.iI),b.media.sm(l||(l=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*v.iI,7*v.iI),b.media.md(a||(a=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*v.iI,7*v.iI),b.media.lg(s||(s=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*v.iI,7*v.iI),b.media.xl(u||(u=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*v.iI,7*v.iI)),N=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],_,g.BL),D=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],_),H=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],_),E=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],_),M=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],_,(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 "})),z=function(e){var n,t=e.children,r=e.condensed,o=e.inline,i=e.level,c=e.marketing,l=e.spacingBelow,a=(0,p.Z)(e,O);o?n=M:0===Number(i)?n=C:1===Number(i)?n=c?I:S:2===Number(i)?n=N:3===Number(i)?n=D:4===Number(i)?n=H:5===Number(i)&&(n=E);var s=(0,w.jsxs)(n,Z(Z({},a),{},{level:i,children:[l&&(0,w.jsx)(j.Z,{mb:r?2:3,children:t}),!l&&t]}));return o?s:(0,w.jsx)(P,{children:s})};z.defaultProps={level:3,weightStyle:6},n.Z=z},70902:function(e,n,t){"use strict";var r=t(82394),o=t(26304),i=t(82684),c=t(9518),l=t(69898),a=t(23831),s=t(28598),u=["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 p(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 f=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);}',""],l.p,46,46,26,(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.disabled?a.Z.monotone.white:a.Z.monotone.black}),(function(e){return e.disabled&&"border: 1px solid ".concat(a.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(a.Z.monotone.white,";\n }\n ")})),h=function(e,n){var t=e.checked,r=e.disabled,i=e.onCheck,c=(0,o.Z)(e,u);return(0,s.jsx)(l.Z,p(p({},c),{},{disabled:r,input:(0,s.jsxs)(f,p(p({},c),{},{disabled:r,noBackground:!0,noBorder:!0,children:[(0,s.jsx)("input",{checked:t,type:"checkbox"}),(0,s.jsx)("span",{onClick:r?null:function(){return null===i||void 0===i?void 0:i((function(e){return!e}))}})]})),noBackground:!0,ref:n}))};n.Z=i.forwardRef(h)},10831:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return H}});var r=t(77837),o=t(82394),i=t(75582),c=t(38860),l=t.n(c),a=t(82684),s=t(21764),u=t(83455),d=t(60328),p=t(38341),f=t(67971),h=t(87372),b=t(10919),m=t(41788),y=t(30775),g=t(86673),x=[{autoComplete:"remote_repo_link",label:"Remote repo url",required:!0,uuid:"remote_repo_link"},{autoComplete:"repo_path",label:"Local directory path",labelDescription:"Defaults to Python's os.getcwd() if omitted. Mage will create this local directory if it doesn't already exist.",uuid:"repo_path"}],v=[{autoComplete:"username",label:"Username",uuid:"username"},{autoComplete:"email",label:"Email",uuid:"email"},{autoComplete:"ssh_public_key",label:"SSH public key in base64",labelDescription:'Run "cat ~/.ssh/id_rsa.pub | base64 | tr -d \\\\n && echo" in terminal to get base64 encoded public key and paste the result here. The key will be stored as a Mage secret.',type:"password",uuid:"ssh_public_key"},{autoComplete:"ssh_private_key",label:"SSH private key in base64",labelDescription:'Follow same steps as the public key, but run "cat ~/.ssh/id_rsa | base64 | tr -d \\\\n && echo" instead. The key will be stored as a Mage secret.',type:"password",uuid:"ssh_private_key"}],j=[{autoComplete:"branch",label:"Branch name",required:!0,uuid:"branch"}],w=t(19711),O=t(82944),k=t(70902),Z=t(82531),_=t(49125),P=t(79585),C=t(96510),S=t(28598);function I(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function N(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?I(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function D(){var e=Z.ZP.syncs.list().data,n=(0,a.useState)(null),t=n[0],r=n[1],c=(0,a.useState)(null),l=c[0],m=c[1],I=(0,a.useState)(null),D=I[0],H=I[1];(0,a.useEffect)((function(){if(e){var n,t=null===e||void 0===e||null===(n=e.syncs)||void 0===n?void 0:n[0];r(t),H(!(null===t||void 0===t||!t.branch))}}),[e]);var E=(0,u.Db)(Z.ZP.syncs.useCreate(),{onSuccess:function(e){return(0,C.wD)(e,{callback:function(e){var n=e.sync;n&&(r(n),window.location.reload(),s.Am.success("Sync saved",{position:s.Am.POSITION.BOTTOM_RIGHT,toastId:"data_sync_success"}))},onErrorCallback:function(e){var n=e.error,t=n.exception;n.message;return m(t)}})}}),M=(0,i.Z)(E,2),z=M[0],T=M[1].isLoading,A=(0,u.Db)(Z.ZP.syncs.useUpdate("git"),{onSuccess:function(e){return(0,C.wD)(e,{callback:function(e){e.sync&&s.Am.success("Data synced!",{position:s.Am.POSITION.BOTTOM_RIGHT,toastId:"data_sync_success"})},onErrorCallback:function(e){var n=e.error,t=n.exception;n.message;return m(t)}})}}),W=(0,i.Z)(A,2),q=W[0],B=W[1].isLoading;return(0,S.jsx)(y.Z,{uuidItemSelected:P.fF,uuidWorkspaceSelected:P.WH,children:(0,S.jsxs)(g.Z,{p:_.cd,style:{width:"600px"},children:[(0,S.jsx)(h.Z,{children:"Git repository settings"}),(0,S.jsx)(g.Z,{mt:1,children:(0,S.jsxs)(w.ZP,{bold:!0,children:["You can enable the Git integration by supplying the url for your remote repository. ",(0,S.jsxs)(w.ZP,{bold:!0,inline:!0,children:["You will need to ",(0,S.jsx)(b.Z,{href:"https://docs.mage.ai/developing-in-the-cloud/setting-up-git",openNewWindow:!0,children:"set up your SSH key"})," if you have not done so already."]})]})}),(0,S.jsx)("form",{children:x.map((function(e){var n=e.autoComplete,i=e.disabled,c=e.label,l=e.labelDescription,a=e.required,s=e.type,u=e.uuid;return(0,S.jsxs)(g.Z,{mt:2,children:[l&&(0,S.jsx)(g.Z,{mb:1,children:(0,S.jsx)(w.ZP,{small:!0,children:l})}),(0,S.jsx)(O.Z,{autoComplete:n,disabled:i,label:c,onChange:function(e){r((function(n){return N(N({},n),{},(0,o.Z)({},u,e.target.value))}))},primary:!0,required:a,setContentOnMount:!0,type:s,value:(null===t||void 0===t?void 0:t[u])||""})]},u)}))}),(0,S.jsx)(g.Z,{mt:_.Mq,children:(0,S.jsx)(w.ZP,{bold:!0,children:"(OPTIONAL) These fields are recommended if your Git and SSH settings can be reset unexpectedly. Filling out these fields will allow Mage to continue to connect to the remote Git repository."})}),(0,S.jsx)("form",{children:v.map((function(e){var n=e.autoComplete,i=e.disabled,c=e.label,l=e.labelDescription,a=e.required,s=e.type,u=e.uuid;return(0,S.jsxs)(g.Z,{mt:2,children:[l&&(0,S.jsx)(g.Z,{mb:1,children:(0,S.jsx)(w.ZP,{small:!0,children:l})}),(0,S.jsx)(O.Z,{autoComplete:n,disabled:i,label:c,onChange:function(e){r((function(n){return N(N({},n),{},(0,o.Z)({},u,e.target.value))}))},primary:!0,required:a,setContentOnMount:!0,type:s,value:(null===t||void 0===t?void 0:t[u])||""})]},u)}))}),(0,S.jsx)(g.Z,{mt:_.Mq,children:(0,S.jsxs)(f.Z,{alignItems:"center",children:[(0,S.jsx)(g.Z,{mr:2,children:(0,S.jsx)(k.Z,{checked:!!D,onCheck:function(){return H((function(e){var n=!e;return n||r((function(e){return N(N({},e),{},{branch:null,sync_on_pipeline_run:!1})})),n}))}})}),(0,S.jsxs)(w.ZP,{bold:!0,large:!0,children:["Use ",(0,S.jsx)(b.Z,{bold:!0,href:"https://docs.mage.ai/production/data-sync/git#git-sync",large:!0,openNewWindow:!0,children:"Git Sync"})]})]})}),D&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(g.Z,{mt:1,children:(0,S.jsx)(w.ZP,{bold:!0,children:"(OPTIONAL) You can also set up your project to only sync with a specified branch."})}),(0,S.jsx)("form",{children:j.map((function(e){var n=e.autoComplete,i=e.disabled,c=e.label,l=e.required,a=e.type,s=e.uuid;return(0,S.jsx)(g.Z,{mt:2,children:(0,S.jsx)(O.Z,{autoComplete:n,disabled:i,label:c,onChange:function(e){r((function(n){return N(N({},n),{},(0,o.Z)({},s,e.target.value))}))},primary:!0,required:l,setContentOnMount:!0,type:a,value:(null===t||void 0===t?void 0:t[s])||""})},s)}))}),(0,S.jsx)(f.Z,{alignItems:"center",children:(0,S.jsx)(g.Z,{mt:2,children:(0,S.jsx)(p.Z,{checked:null===t||void 0===t?void 0:t.sync_on_pipeline_run,label:"Sync before each trigger run",onClick:function(){r((function(e){return N(N({},e),{},{sync_on_pipeline_run:!(null!==t&&void 0!==t&&t.sync_on_pipeline_run)})}))}})})})]}),(0,S.jsx)(g.Z,{mt:2,children:(0,S.jsx)(d.Z,{loading:T,onClick:function(){return z({sync:t})},primary:!0,children:"Save repository settings"})}),l&&(0,S.jsx)(g.Z,{mt:1,children:(0,S.jsx)(w.ZP,{danger:!0,children:l})}),D&&(0,S.jsxs)(g.Z,{mt:_.HN,children:[(0,S.jsx)(h.Z,{children:"Synchronize code from remote repository"}),(0,S.jsx)(g.Z,{mt:1,children:(0,S.jsxs)(w.ZP,{children:["Running the sync from this page will run a one time sync with the remote repository.",(0,S.jsx)("br",{}),"This may ",(0,S.jsx)(w.ZP,{bold:!0,danger:!0,inline:!0,children:"overwrite"})," your existing data, so make sure you\u2019ve committed or backed up your current changes."]})}),(0,S.jsx)(g.Z,{mt:2,children:(0,S.jsx)(d.Z,{loading:B,onClick:function(){return q({sync:{action_type:"sync_data"}})},warning:!0,children:"Synchronize code"})})]})]})})}D.getInitialProps=(0,r.Z)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var H=(0,m.Z)(D)},37056:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/sync-data",function(){return t(10831)}])}},function(e){e.O(0,[3850,2344,4506,9774,2888,179],(function(){return n=37056,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([[4841],{1210:function(n,e,t){"use strict";t.d(e,{Z:function(){return T}});var r=t(82394),i=t(21831),o=t(82684),a=t(47999),u=t(28358),c=t(93461),s=t(57384),l=t(12344),d=t(72454),f=t(28598);function p(n,e){var t=n.children;return(0,f.jsx)(d.HS,{ref:e,children:t})}var h=o.forwardRef(p),g=t(32063),v=t(15270),y=t(82531),b=t(66166),m=t(3055),S=t(49125),x=t(91427),w=t(24141);function P(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function j(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?P(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var T=function(n){var e,t=n.after,r=n.afterHidden,p=n.afterWidth,P=n.afterWidthOverride,T=n.before,O=n.beforeWidth,k=n.breadcrumbs,E=n.children,_=n.errors,I=n.headerMenuItems,A=n.navigationItems,C=n.setErrors,Z=n.subheaderChildren,N=n.title,M=n.uuid,R=(0,w.i)().width,D="dashboard_after_width_".concat(M),U="dashboard_before_width_".concat(M),X=(0,o.useRef)(null),F=(0,o.useState)(P?p:(0,x.U2)(D,p)),G=F[0],H=F[1],Y=(0,o.useState)(!1),L=Y[0],K=Y[1],B=(0,o.useState)(T?Math.max((0,x.U2)(U,O),13*S.iI):null),Q=B[0],W=B[1],z=(0,o.useState)(!1),q=z[0],J=z[1],V=(0,o.useState)(null)[1],$=y.ZP.projects.list({},{revalidateOnFocus:!1}).data,nn=null===$||void 0===$?void 0:$.projects,en=[];k?en.push.apply(en,(0,i.Z)(k)):(null===nn||void 0===nn?void 0:nn.length)>=1&&en.push.apply(en,[{label:function(){var n;return null===(n=nn[0])||void 0===n?void 0:n.name},linkProps:{href:"/"}},{bold:!0,label:function(){return N}}]),(0,o.useEffect)((function(){null===X||void 0===X||!X.current||L||q||null===V||void 0===V||V(X.current.getBoundingClientRect().width)}),[L,G,q,Q,X,V,R]),(0,o.useEffect)((function(){L||(0,x.t8)(D,G)}),[r,L,G,D]),(0,o.useEffect)((function(){q||(0,x.t8)(U,Q)}),[q,Q,U]);var tn=(0,b.Z)(p);return(0,o.useEffect)((function(){P&&tn!==p&&H(p)}),[P,p,tn]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:N}),(0,f.jsx)(l.Z,{breadcrumbs:en,menuItems:I,project:null===nn||void 0===nn?void 0:nn[0],version:null===nn||void 0===nn||null===(e=nn[0])||void 0===e?void 0:e.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===A||void 0===A?void 0:A.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(v.Z,{navigationItems:A})}),(0,f.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(g.Z,{after:t,afterHeightOffset:m.Mz,afterHidden:r,afterMousedownActive:L,afterWidth:G,before:T,beforeHeightOffset:m.Mz,beforeMousedownActive:q,beforeWidth:d.k1+(T?Q:0),hideAfterCompletely:!0,leftOffset:T?d.k1:null,mainContainerRef:X,setAfterMousedownActive:K,setAfterWidth:H,setBeforeMousedownActive:J,setBeforeWidth:W,children:[Z&&(0,f.jsx)(h,{children:Z}),E]})})]}),_&&(0,f.jsx)(a.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===C||void 0===C?void 0:C(null)},children:(0,f.jsx)(u.Z,j(j({},_),{},{onClose:function(){return null===C||void 0===C?void 0:C(null)}}))})]})}},33699:function(n,e,t){"use strict";t.d(e,{Z:function(){return O}});var r=t(89565),i=t.n(r),o=t(82684),a=t(47999),u=t(82635),c=t(19711),s=t(9518),l=t(23831),d=t(49125),f=t(37391),p=(0,s.css)([""," ",""],(function(n){return!n.width&&"\n width: 100%;\n "}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")})),h=s.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-11d4rgl-0"})([""," "," height:100%;overflow:auto;position:absolute;",""],p,f.w5,(function(n){return"\n background-color: ".concat((n.theme.background||l.Z.background).codeTextarea,";\n ")})),g=s.default.div.withConfig({displayName:"indexstyle__InnerStyle",componentId:"sc-11d4rgl-1"})([""," padding:","px;"],p,d.cd*d.iI),v=(s.default.div.withConfig({displayName:"indexstyle__LineStyle",componentId:"sc-11d4rgl-2"})(["height:","px;"],20),(0,s.css)(["@keyframes cursor-blink{0%{opacity:0;}}::before{","}::after{","}"],(function(n){return n.focusBeginning&&"\n position: absolute;\n background-color: ".concat((n.theme.accent||l.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(d.iI,"px;\n opacity: 0.3;\n ")}),(function(n){return n.focused&&"\n background-color: ".concat((n.theme.accent||l.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(d.iI,"px;\n opacity: 0.3;\n ")}))),y=s.default.div.withConfig({displayName:"indexstyle__InputStyle",componentId:"sc-11d4rgl-3"})(["align-items:center;display:flex;gap:2px;",""],v),b=s.default.span.withConfig({displayName:"indexstyle__CharacterStyle",componentId:"sc-11d4rgl-4"})([""," ::after{","}"],v,(function(n){return n.focused&&"\n position: absolute;\n "})),m=t(16115),S=t(51504),x=t(66653),w=t(41150),P=t(28598);function j(n,e){var t="undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=function(n,e){if(!n)return;if("string"===typeof n)return T(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(n);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return T(n,e)}(n))||e&&n&&"number"===typeof n.length){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return a=n.done,n},e:function(n){u=!0,o=n},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function T(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}var O=function(n){var e=n.interruptKernel,t=n.lastMessage,r=n.onFocus,s=n.sendMessage,l=n.uuid,d=void 0===l?"terminal":l,f=n.width,p=(0,o.useRef)(null),v=(0,o.useRef)(null),T=(0,o.useState)(""),O=T[0],k=T[1],E=(0,o.useState)(0),_=E[0],I=E[1],A=(0,o.useState)(0),C=A[0],Z=A[1],N=(0,o.useState)([]),M=N[0],R=N[1],D=(0,o.useState)(!1),U=D[0],X=D[1],F=(0,o.useState)([]),G=(F[0],F[1]),H=(0,o.useState)(),Y=H[0],L=H[1];(0,o.useEffect)((function(){if(t){var n=JSON.parse(t.data);L((function(e){var t=e||"";return"stdout"===n[0]?t+n[1]:t}))}}),[t]);var K=(0,o.useMemo)((function(){return Y?Y.split("\n").filter((function(n){return!n.includes("# Mage terminal settings command")})).map((function(n){return{data:n,type:u.Gi.TEXT}})):[]}),[Y]);(0,o.useEffect)((function(){if(p.current&&v.current){var n=v.current.getBoundingClientRect().height;p.current.scrollTo(0,n)}}),[O,K,p,v]);var B=(0,w.y)(),Q=B.registerOnKeyDown,W=B.setDisableGlobalKeyboardShortcuts,z=B.unregisterOnKeyDown;(0,o.useEffect)((function(){return function(){z(d)}}),[z,d]);var q=(0,o.useCallback)((function(){Z((function(n){return n>0?n-1:n}))}),[]),J=(0,o.useCallback)((function(){Z((function(n){return n<O.length?n+1:n}))}),[O]),V=(0,o.useCallback)((function(n){s(JSON.stringify(["stdin",n])),s(JSON.stringify(["stdin","\r"])),(null===n||void 0===n?void 0:n.length)>=2&&(I(M.length+1),R((function(e){return e.concat(n)})),Z(0)),k("")}),[M,s,k,R,I,Z]),$=(0,o.useCallback)((function(n){var e=(null===n||void 0===n?void 0:n.split(/\n/))||[];if(e.length>1){var t=e.slice(0,-1);V(O+t.join("\n"));var r=(e.slice(-1)[0]||"").trim();k(r),Z(r.length)}else k((function(e){return e+n})),Z(O.length+n.length)}),[O,V,k,Z]);Q(d,(function(n,e,t){var r=n.code,i=n.key;if(U)if((0,x.j)(n),(0,S.y)([m.PQ,m.VS],e))(null===O||void 0===O?void 0:O.length)>=0&&(s(JSON.stringify(["stdin",O])),s(JSON.stringify(["stdin","\x03"])),Z(0)),k("");else if(m.Qj!==r||e[m.zX])if((0,S.y)([m.QK],e))q();else if((0,S.y)([m.DY],e))J();else if((0,S.y)([m.Bu],e)){if(M.length>=1){var o,a=Math.max(0,_-1);k(M[a]),I(a),Z((null===(o=M[a])||void 0===o?void 0:o.length)||0)}}else if((0,S.y)([m.kD],e)){if(M.length>=1){var u=Math.min(M.length,_+1),c=M[u]||"";k(c),I(u),Z(c.length)}}else if((0,S.y)([m.Uq],e))V(O);else if((0,S.y)([m.zX,m.VS],e))navigator.clipboard.writeText(window.getSelection().toString());else if((0,S.y)([m.zX,m.Pd],e)||(0,S.y)([m.PQ,m.Pd],e)){var l,d,f,p,h;"undefined"===typeof(null===(l=navigator)||void 0===l?void 0:l.clipboard)?alert('Clipboard pasting is not allowed in insecure contexts. If your Mage deployment is not secure but you still want to use clipboard paste, you can override this setting (which should only be done temporarily) on Chrome browsers by going to "chrome://flags/#unsafely-treat-insecure-origin-as-secure", adding your origin to "Insecure origins treated as secure", and enabling that setting.'):null!==(d=navigator)&&void 0!==d&&null!==(f=d.clipboard)&&void 0!==f&&f.readText?navigator.clipboard.readText().then($).catch((function(n){return alert("".concat(n,'\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.'))})):null!==(p=navigator)&&void 0!==p&&null!==(h=p.clipboard)&&void 0!==h&&h.read?navigator.clipboard.read().then((function(n){var e,t=j(n);try{for(t.s();!(e=t.n()).done;){var r,i=e.value,o=j(i.types);try{for(o.s();!(r=o.n()).done;){var a=r.value;if("text/plain"===a)return i.getType(a)}}catch(u){o.e(u)}finally{o.f()}}}catch(u){t.e(u)}finally{t.f()}})).then((function(n){return n.text()})).then($).catch((function(n){return alert("".concat(n,'\n For Firefox, users need to allow clipboard paste by setting the "dom.events.asyncClipboard.read" preference in "about:config" to "true" and clicking "Paste" in the context menu that appears.'))})):alert('If pasting is not working properly, you may need to adjust some settings in your browser.\n\n For Firefox, users need to allow clipboard paste by setting both the "dom.events.asyncClipboard.clipboardItem" and "dom.events.asyncClipboard.read" preferences in "about:config" to "true" and clicking "Paste" in the context menu that appears.\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.\n')}else e[m.zX]||e[m.PQ]||1!==i.length||(k((function(n){return n.slice(0,C)+i+n.slice(C)})),Z((function(n){return n+1})));else{var g=Math.max(0,C-1);k((function(n){return n.slice(0,g)+n.slice(C)})),Z((function(n){return Math.max(0,n-1)}))}}),[O,M,_,U,e,k,R,I,G,d]);var nn=(0,o.useMemo)((function(){var n;return null===(n=K[K.length-1])||void 0===n?void 0:n.data}),[K]);return(0,P.jsx)(h,{ref:p,width:f,children:(0,P.jsx)(a.Z,{isOpen:!0,onClick:function(){null===r||void 0===r||r(),X(!0),W(!0)},onClickOutside:function(){X(!1),W(!1)},style:{minHeight:"100%"},children:(0,P.jsxs)(g,{ref:v,width:f,children:[null===K||void 0===K?void 0:K.reduce((function(n,e,t){if(t==K.length-1)return n;var r=e||{},o=r.command,a=r.data,s=r.type,l=[];l=(l=Array.isArray(a)?a:[a]).filter((function(n){return n}));var d=[];return l.forEach((function(n,e){var r;if(u.jU.includes(s)&&(r=(0,P.jsx)(c.ZP,{monospace:!0,preWrap:!0,children:n&&(0,P.jsx)(i(),{children:n})})),r){var a="command-".concat(t,"-").concat(e,"-").concat(n);o||d.push((0,P.jsx)("div",{children:r},a))}})),n.concat(d)}),[]),(0,P.jsx)(y,{focused:U&&0===(null===O||void 0===O?void 0:O.length),children:(0,P.jsxs)(c.ZP,{monospace:!0,children:[(0,P.jsx)(c.ZP,{inline:!0,monospace:!0,children:nn&&(0,P.jsx)(i(),{children:nn})}),null===O||void 0===O?void 0:O.split("").map((function(n,e,t){return(0,P.jsxs)(b,{focusBeginning:U&&0===C&&0===e,focused:U&&(C===e+1||C>=t.length&&e===t.length-1),children:[" "===n&&(0,P.jsx)(P.Fragment,{children:"\xa0"}),"\n"===n&&(0,P.jsx)("br",{})," "!==n&&n]},"command-".concat(e,"-").concat(n))}))]})})]})})})}},82635:function(n,e,t){"use strict";var r,i;t.d(e,{Gi:function(){return i},jU:function(){return a},uF:function(){return r}}),function(n){n.BUSY="busy",n.IDLE="idle",n.QUEUED="queued"}(r||(r={})),function(n){n.IMAGE_PNG="image/png",n.PROGRESS="progress",n.TABLE="table",n.TEXT="text",n.TEXT_HTML="text/html",n.TEXT_PLAIN="text/plain"}(i||(i={}));var o,a=[i.TEXT,i.TEXT_PLAIN];!function(n){n.DISPLAY_DATA="display_data",n.STATUS="status",n.STREAM="stream",n.STREAM_PIPELINE="stream_pipeline"}(o||(o={}))},98781:function(n,e,t){"use strict";t.d(e,{$1:function(){return c},G7:function(){return l},QK:function(){return u},a_:function(){return d},qL:function(){return o},r0:function(){return s}});var r,i,o,a=t(82394);!function(n){n.INTEGRATION="integration",n.PYTHON="python",n.PYSPARK="pyspark",n.STREAMING="streaming"}(o||(o={}));var u,c,s,l=(r={},(0,a.Z)(r,o.INTEGRATION,"Integration"),(0,a.Z)(r,o.PYTHON,"Standard"),(0,a.Z)(r,o.PYSPARK,"PySpark"),(0,a.Z)(r,o.STREAMING,"Streaming"),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive",n.NO_SCHEDULES="no_schedules"}(u||(u={})),function(n){n.GROUP="group_by",n.STATUS="status[]",n.TYPE="type[]"}(c||(c={})),function(n){n.STATUS="status",n.TYPE="type"}(s||(s={}));var d=(i={},(0,a.Z)(i,o.PYTHON,"python3"),(0,a.Z)(i,o.PYSPARK,"pysparkkernel"),i)},72433:function(n,e,t){"use strict";t.r(e);var r=t(77837),i=t(75582),o=t(38860),a=t.n(o),u=t(82684),c=t(56085),s=t(83455),l=t(35490),d=t(1210),f=t(41788),p=t(33699),h=t(82531),g=t(94353),v=t(98781),y=t(28799),b=t(96510),m=t(28598);function S(){var n=(0,s.Db)(h.ZP.kernels.useUpdate(v.a_[v.qL.PYTHON]),{onSuccess:function(n){return(0,b.wD)(n,{onErrorCallback:function(n,e){console.log(n),alert(e)}})}}),e=(0,i.Z)(n,1)[0],t=(0,u.useCallback)((function(){return e({kernel:{action_type:"interrupt"}})}),[e]),r=(0,u.useMemo)((function(){return new l.Z}),[]),o=(0,u.useMemo)((function(){return{api_key:g.l,token:r.decodedToken.token}}),[r]),a=(0,c.ZP)((0,y.Ib)("terminal"),{shouldReconnect:function(){return!0},queryParams:o}),f=a.lastMessage,S=a.sendMessage;return(0,m.jsx)(d.Z,{title:"Terminal",uuid:"terminal/index",children:(0,m.jsx)(p.Z,{interruptKernel:t,lastMessage:f,sendMessage:S})})}S.getInitialProps=(0,r.Z)(a().mark((function n(){return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{});case 1:case"end":return n.stop()}}),n)}))),e.default=(0,f.Z)(S)},51504:function(n,e,t){"use strict";t.d(e,{y:function(){return o}});var r=t(75582),i=t(16115);function o(n,e){var t=n.map((function(n){return String(n)})),o=n.includes(i.PQ),a=n.includes(i.zX),u=n.includes(i.XR),c=i.xU.map((function(n){return String(n)})),s=i.vk.map((function(n){return String(n)})),l=i.Tr.map((function(n){return String(n)})),d=Object.entries(e).find((function(n){var e=(0,r.Z)(n,2),i=e[0];return e[1]&&!t.includes(String(i))&&(!a||!s.includes(String(i)))&&(!o||!c.includes(String(i)))&&(!u||!l.includes(String(i)))}));return n.every((function(n){return e[n]}))&&!d}},27271:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/terminal",function(){return t(72433)}])}},function(n){n.O(0,[3850,9565,6085,2344,4506,9774,2888,179],(function(){return e=27271,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4841],{1210:function(n,e,t){"use strict";t.d(e,{Z:function(){return T}});var r=t(82394),i=t(21831),o=t(82684),a=t(47999),u=t(49894),c=t(93461),s=t(57384),l=t(12344),d=t(72454),f=t(28598);function p(n,e){var t=n.children;return(0,f.jsx)(d.HS,{ref:e,children:t})}var h=o.forwardRef(p),g=t(32063),v=t(15270),y=t(82531),b=t(66166),m=t(3055),S=t(49125),x=t(91427),w=t(24141);function P(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function j(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?P(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var T=function(n){var e,t=n.after,r=n.afterHidden,p=n.afterWidth,P=n.afterWidthOverride,T=n.before,O=n.beforeWidth,k=n.breadcrumbs,E=n.children,_=n.errors,I=n.headerMenuItems,A=n.navigationItems,C=n.setErrors,Z=n.subheaderChildren,N=n.title,M=n.uuid,R=(0,w.i)().width,D="dashboard_after_width_".concat(M),U="dashboard_before_width_".concat(M),X=(0,o.useRef)(null),F=(0,o.useState)(P?p:(0,x.U2)(D,p)),G=F[0],H=F[1],Y=(0,o.useState)(!1),L=Y[0],K=Y[1],B=(0,o.useState)(T?Math.max((0,x.U2)(U,O),13*S.iI):null),Q=B[0],W=B[1],z=(0,o.useState)(!1),q=z[0],J=z[1],V=(0,o.useState)(null)[1],$=y.ZP.projects.list({},{revalidateOnFocus:!1}).data,nn=null===$||void 0===$?void 0:$.projects,en=[];k?en.push.apply(en,(0,i.Z)(k)):(null===nn||void 0===nn?void 0:nn.length)>=1&&en.push.apply(en,[{label:function(){var n;return null===(n=nn[0])||void 0===n?void 0:n.name},linkProps:{href:"/"}},{bold:!0,label:function(){return N}}]),(0,o.useEffect)((function(){null===X||void 0===X||!X.current||L||q||null===V||void 0===V||V(X.current.getBoundingClientRect().width)}),[L,G,q,Q,X,V,R]),(0,o.useEffect)((function(){L||(0,x.t8)(D,G)}),[r,L,G,D]),(0,o.useEffect)((function(){q||(0,x.t8)(U,Q)}),[q,Q,U]);var tn=(0,b.Z)(p);return(0,o.useEffect)((function(){P&&tn!==p&&H(p)}),[P,p,tn]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:N}),(0,f.jsx)(l.Z,{breadcrumbs:en,menuItems:I,project:null===nn||void 0===nn?void 0:nn[0],version:null===nn||void 0===nn||null===(e=nn[0])||void 0===e?void 0:e.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===A||void 0===A?void 0:A.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(v.Z,{navigationItems:A})}),(0,f.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(g.Z,{after:t,afterHeightOffset:m.Mz,afterHidden:r,afterMousedownActive:L,afterWidth:G,before:T,beforeHeightOffset:m.Mz,beforeMousedownActive:q,beforeWidth:d.k1+(T?Q:0),hideAfterCompletely:!0,leftOffset:T?d.k1:null,mainContainerRef:X,setAfterMousedownActive:K,setAfterWidth:H,setBeforeMousedownActive:J,setBeforeWidth:W,children:[Z&&(0,f.jsx)(h,{children:Z}),E]})})]}),_&&(0,f.jsx)(a.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===C||void 0===C?void 0:C(null)},children:(0,f.jsx)(u.Z,j(j({},_),{},{onClose:function(){return null===C||void 0===C?void 0:C(null)}}))})]})}},33699:function(n,e,t){"use strict";t.d(e,{Z:function(){return O}});var r=t(89565),i=t.n(r),o=t(82684),a=t(47999),u=t(82635),c=t(19711),s=t(9518),l=t(23831),d=t(49125),f=t(37391),p=(0,s.css)([""," ",""],(function(n){return!n.width&&"\n width: 100%;\n "}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")})),h=s.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-11d4rgl-0"})([""," "," height:100%;overflow:auto;position:absolute;",""],p,f.w5,(function(n){return"\n background-color: ".concat((n.theme.background||l.Z.background).codeTextarea,";\n ")})),g=s.default.div.withConfig({displayName:"indexstyle__InnerStyle",componentId:"sc-11d4rgl-1"})([""," padding:","px;"],p,d.cd*d.iI),v=(s.default.div.withConfig({displayName:"indexstyle__LineStyle",componentId:"sc-11d4rgl-2"})(["height:","px;"],20),(0,s.css)(["@keyframes cursor-blink{0%{opacity:0;}}::before{","}::after{","}"],(function(n){return n.focusBeginning&&"\n position: absolute;\n background-color: ".concat((n.theme.accent||l.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(d.iI,"px;\n opacity: 0.3;\n ")}),(function(n){return n.focused&&"\n background-color: ".concat((n.theme.accent||l.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(d.iI,"px;\n opacity: 0.3;\n ")}))),y=s.default.div.withConfig({displayName:"indexstyle__InputStyle",componentId:"sc-11d4rgl-3"})(["align-items:center;display:flex;gap:2px;",""],v),b=s.default.span.withConfig({displayName:"indexstyle__CharacterStyle",componentId:"sc-11d4rgl-4"})([""," ::after{","}"],v,(function(n){return n.focused&&"\n position: absolute;\n "})),m=t(16115),S=t(51504),x=t(66653),w=t(41150),P=t(28598);function j(n,e){var t="undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=function(n,e){if(!n)return;if("string"===typeof n)return T(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(n);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return T(n,e)}(n))||e&&n&&"number"===typeof n.length){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return a=n.done,n},e:function(n){u=!0,o=n},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function T(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}var O=function(n){var e=n.interruptKernel,t=n.lastMessage,r=n.onFocus,s=n.sendMessage,l=n.uuid,d=void 0===l?"terminal":l,f=n.width,p=(0,o.useRef)(null),v=(0,o.useRef)(null),T=(0,o.useState)(""),O=T[0],k=T[1],E=(0,o.useState)(0),_=E[0],I=E[1],A=(0,o.useState)(0),C=A[0],Z=A[1],N=(0,o.useState)([]),M=N[0],R=N[1],D=(0,o.useState)(!1),U=D[0],X=D[1],F=(0,o.useState)([]),G=(F[0],F[1]),H=(0,o.useState)(),Y=H[0],L=H[1];(0,o.useEffect)((function(){if(t){var n=JSON.parse(t.data);L((function(e){var t=e||"";return"stdout"===n[0]?t+n[1]:t}))}}),[t]);var K=(0,o.useMemo)((function(){return Y?Y.split("\n").filter((function(n){return!n.includes("# Mage terminal settings command")})).map((function(n){return{data:n,type:u.Gi.TEXT}})):[]}),[Y]);(0,o.useEffect)((function(){if(p.current&&v.current){var n=v.current.getBoundingClientRect().height;p.current.scrollTo(0,n)}}),[O,K,p,v]);var B=(0,w.y)(),Q=B.registerOnKeyDown,W=B.setDisableGlobalKeyboardShortcuts,z=B.unregisterOnKeyDown;(0,o.useEffect)((function(){return function(){z(d)}}),[z,d]);var q=(0,o.useCallback)((function(){Z((function(n){return n>0?n-1:n}))}),[]),J=(0,o.useCallback)((function(){Z((function(n){return n<O.length?n+1:n}))}),[O]),V=(0,o.useCallback)((function(n){s(JSON.stringify(["stdin",n])),s(JSON.stringify(["stdin","\r"])),(null===n||void 0===n?void 0:n.length)>=2&&(I(M.length+1),R((function(e){return e.concat(n)})),Z(0)),k("")}),[M,s,k,R,I,Z]),$=(0,o.useCallback)((function(n){var e=(null===n||void 0===n?void 0:n.split(/\n/))||[];if(e.length>1){var t=e.slice(0,-1);V(O+t.join("\n"));var r=(e.slice(-1)[0]||"").trim();k(r),Z(r.length)}else k((function(e){return e+n})),Z(O.length+n.length)}),[O,V,k,Z]);Q(d,(function(n,e,t){var r=n.code,i=n.key;if(U)if((0,x.j)(n),(0,S.y)([m.PQ,m.VS],e))(null===O||void 0===O?void 0:O.length)>=0&&(s(JSON.stringify(["stdin",O])),s(JSON.stringify(["stdin","\x03"])),Z(0)),k("");else if(m.Qj!==r||e[m.zX])if((0,S.y)([m.QK],e))q();else if((0,S.y)([m.DY],e))J();else if((0,S.y)([m.Bu],e)){if(M.length>=1){var o,a=Math.max(0,_-1);k(M[a]),I(a),Z((null===(o=M[a])||void 0===o?void 0:o.length)||0)}}else if((0,S.y)([m.kD],e)){if(M.length>=1){var u=Math.min(M.length,_+1),c=M[u]||"";k(c),I(u),Z(c.length)}}else if((0,S.y)([m.Uq],e))V(O);else if((0,S.y)([m.zX,m.VS],e))navigator.clipboard.writeText(window.getSelection().toString());else if((0,S.y)([m.zX,m.Pd],e)||(0,S.y)([m.PQ,m.Pd],e)){var l,d,f,p,h;"undefined"===typeof(null===(l=navigator)||void 0===l?void 0:l.clipboard)?alert('Clipboard pasting is not allowed in insecure contexts. If your Mage deployment is not secure but you still want to use clipboard paste, you can override this setting (which should only be done temporarily) on Chrome browsers by going to "chrome://flags/#unsafely-treat-insecure-origin-as-secure", adding your origin to "Insecure origins treated as secure", and enabling that setting.'):null!==(d=navigator)&&void 0!==d&&null!==(f=d.clipboard)&&void 0!==f&&f.readText?navigator.clipboard.readText().then($).catch((function(n){return alert("".concat(n,'\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.'))})):null!==(p=navigator)&&void 0!==p&&null!==(h=p.clipboard)&&void 0!==h&&h.read?navigator.clipboard.read().then((function(n){var e,t=j(n);try{for(t.s();!(e=t.n()).done;){var r,i=e.value,o=j(i.types);try{for(o.s();!(r=o.n()).done;){var a=r.value;if("text/plain"===a)return i.getType(a)}}catch(u){o.e(u)}finally{o.f()}}}catch(u){t.e(u)}finally{t.f()}})).then((function(n){return n.text()})).then($).catch((function(n){return alert("".concat(n,'\n For Firefox, users need to allow clipboard paste by setting the "dom.events.asyncClipboard.read" preference in "about:config" to "true" and clicking "Paste" in the context menu that appears.'))})):alert('If pasting is not working properly, you may need to adjust some settings in your browser.\n\n For Firefox, users need to allow clipboard paste by setting both the "dom.events.asyncClipboard.clipboardItem" and "dom.events.asyncClipboard.read" preferences in "about:config" to "true" and clicking "Paste" in the context menu that appears.\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.\n')}else e[m.zX]||e[m.PQ]||1!==i.length||(k((function(n){return n.slice(0,C)+i+n.slice(C)})),Z((function(n){return n+1})));else{var g=Math.max(0,C-1);k((function(n){return n.slice(0,g)+n.slice(C)})),Z((function(n){return Math.max(0,n-1)}))}}),[O,M,_,U,e,k,R,I,G,d]);var nn=(0,o.useMemo)((function(){var n;return null===(n=K[K.length-1])||void 0===n?void 0:n.data}),[K]);return(0,P.jsx)(h,{ref:p,width:f,children:(0,P.jsx)(a.Z,{isOpen:!0,onClick:function(){null===r||void 0===r||r(),X(!0),W(!0)},onClickOutside:function(){X(!1),W(!1)},style:{minHeight:"100%"},children:(0,P.jsxs)(g,{ref:v,width:f,children:[null===K||void 0===K?void 0:K.reduce((function(n,e,t){if(t==K.length-1)return n;var r=e||{},o=r.command,a=r.data,s=r.type,l=[];l=(l=Array.isArray(a)?a:[a]).filter((function(n){return n}));var d=[];return l.forEach((function(n,e){var r;if(u.jU.includes(s)&&(r=(0,P.jsx)(c.ZP,{monospace:!0,preWrap:!0,children:n&&(0,P.jsx)(i(),{children:n})})),r){var a="command-".concat(t,"-").concat(e,"-").concat(n);o||d.push((0,P.jsx)("div",{children:r},a))}})),n.concat(d)}),[]),(0,P.jsx)(y,{focused:U&&0===(null===O||void 0===O?void 0:O.length),children:(0,P.jsxs)(c.ZP,{monospace:!0,children:[(0,P.jsx)(c.ZP,{inline:!0,monospace:!0,children:nn&&(0,P.jsx)(i(),{children:nn})}),null===O||void 0===O?void 0:O.split("").map((function(n,e,t){return(0,P.jsxs)(b,{focusBeginning:U&&0===C&&0===e,focused:U&&(C===e+1||C>=t.length&&e===t.length-1),children:[" "===n&&(0,P.jsx)(P.Fragment,{children:"\xa0"}),"\n"===n&&(0,P.jsx)("br",{})," "!==n&&n]},"command-".concat(e,"-").concat(n))}))]})})]})})})}},82635:function(n,e,t){"use strict";var r,i;t.d(e,{Gi:function(){return i},jU:function(){return a},uF:function(){return r}}),function(n){n.BUSY="busy",n.IDLE="idle",n.QUEUED="queued"}(r||(r={})),function(n){n.IMAGE_PNG="image/png",n.PROGRESS="progress",n.TABLE="table",n.TEXT="text",n.TEXT_HTML="text/html",n.TEXT_PLAIN="text/plain"}(i||(i={}));var o,a=[i.TEXT,i.TEXT_PLAIN];!function(n){n.DISPLAY_DATA="display_data",n.STATUS="status",n.STREAM="stream",n.STREAM_PIPELINE="stream_pipeline"}(o||(o={}))},98781:function(n,e,t){"use strict";t.d(e,{$1:function(){return c},G7:function(){return l},QK:function(){return u},a_:function(){return d},qL:function(){return o},r0:function(){return s}});var r,i,o,a=t(82394);!function(n){n.INTEGRATION="integration",n.PYTHON="python",n.PYSPARK="pyspark",n.STREAMING="streaming"}(o||(o={}));var u,c,s,l=(r={},(0,a.Z)(r,o.INTEGRATION,"Integration"),(0,a.Z)(r,o.PYTHON,"Standard"),(0,a.Z)(r,o.PYSPARK,"PySpark"),(0,a.Z)(r,o.STREAMING,"Streaming"),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive",n.NO_SCHEDULES="no_schedules"}(u||(u={})),function(n){n.GROUP="group_by",n.STATUS="status[]",n.TYPE="type[]"}(c||(c={})),function(n){n.STATUS="status",n.TYPE="type"}(s||(s={}));var d=(i={},(0,a.Z)(i,o.PYTHON,"python3"),(0,a.Z)(i,o.PYSPARK,"pysparkkernel"),i)},72433:function(n,e,t){"use strict";t.r(e);var r=t(77837),i=t(75582),o=t(38860),a=t.n(o),u=t(82684),c=t(56085),s=t(83455),l=t(35490),d=t(1210),f=t(41788),p=t(33699),h=t(82531),g=t(94353),v=t(98781),y=t(28799),b=t(96510),m=t(28598);function S(){var n=(0,s.Db)(h.ZP.kernels.useUpdate(v.a_[v.qL.PYTHON]),{onSuccess:function(n){return(0,b.wD)(n,{onErrorCallback:function(n,e){console.log(n),alert(e)}})}}),e=(0,i.Z)(n,1)[0],t=(0,u.useCallback)((function(){return e({kernel:{action_type:"interrupt"}})}),[e]),r=(0,u.useMemo)((function(){return new l.Z}),[]),o=(0,u.useMemo)((function(){return{api_key:g.l,token:r.decodedToken.token}}),[r]),a=(0,c.ZP)((0,y.Ib)("terminal"),{shouldReconnect:function(){return!0},queryParams:o}),f=a.lastMessage,S=a.sendMessage;return(0,m.jsx)(d.Z,{title:"Terminal",uuid:"terminal/index",children:(0,m.jsx)(p.Z,{interruptKernel:t,lastMessage:f,sendMessage:S})})}S.getInitialProps=(0,r.Z)(a().mark((function n(){return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{});case 1:case"end":return n.stop()}}),n)}))),e.default=(0,f.Z)(S)},51504:function(n,e,t){"use strict";t.d(e,{y:function(){return o}});var r=t(75582),i=t(16115);function o(n,e){var t=n.map((function(n){return String(n)})),o=n.includes(i.PQ),a=n.includes(i.zX),u=n.includes(i.XR),c=i.xU.map((function(n){return String(n)})),s=i.vk.map((function(n){return String(n)})),l=i.Tr.map((function(n){return String(n)})),d=Object.entries(e).find((function(n){var e=(0,r.Z)(n,2),i=e[0];return e[1]&&!t.includes(String(i))&&(!a||!s.includes(String(i)))&&(!o||!c.includes(String(i)))&&(!u||!l.includes(String(i)))}));return n.every((function(n){return e[n]}))&&!d}},27271:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/terminal",function(){return t(72433)}])}},function(n){n.O(0,[3850,9565,6085,2344,4506,9774,2888,179],(function(){return e=27271,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><title>Mage</title><meta content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=0" name="viewport"/><meta name="next-head-count" content="3"/><link href="/favicon.ico" rel="icon"/><link rel="preload" href="/_next/static/css/d1e8e64d0b07af2f.css" as="style"/><link rel="stylesheet" href="/_next/static/css/d1e8e64d0b07af2f.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/_next/static/chunks/webpack-bc5e4eb2c1ff587c.js" defer=""></script><script src="/_next/static/chunks/framework-7c365855dab1bf41.js" defer=""></script><script src="/_next/static/chunks/main-bb0dd5375146d7fd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-eb08d8e4cfb01405.js" defer=""></script><script src="/_next/static/chunks/pages/index-e34a68d2f6fe16f2.js" defer=""></script><script src="/_next/static/
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><title>Mage</title><meta content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=0" name="viewport"/><meta name="next-head-count" content="3"/><link href="/favicon.ico" rel="icon"/><link rel="preload" href="/_next/static/css/d1e8e64d0b07af2f.css" as="style"/><link rel="stylesheet" href="/_next/static/css/d1e8e64d0b07af2f.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/_next/static/chunks/webpack-bc5e4eb2c1ff587c.js" defer=""></script><script src="/_next/static/chunks/framework-7c365855dab1bf41.js" defer=""></script><script src="/_next/static/chunks/main-bb0dd5375146d7fd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-eb08d8e4cfb01405.js" defer=""></script><script src="/_next/static/chunks/pages/index-e34a68d2f6fe16f2.js" defer=""></script><script src="/_next/static/I2bRLK9B7Lap2LvCicTKv/_buildManifest.js" defer=""></script><script src="/_next/static/I2bRLK9B7Lap2LvCicTKv/_ssgManifest.js" defer=""></script><script src="/_next/static/I2bRLK9B7Lap2LvCicTKv/_middlewareManifest.js" defer=""></script><style data-styled="" data-styled-version="5.3.6">html{-webkit-box-sizing:border-box;box-sizing:border-box;-ms-overflow-style:scrollbar;}/*!sc*/
|
|
2
2
|
*,*::before,*::after{-webkit-box-sizing:inherit;box-sizing:inherit;}/*!sc*/
|
|
3
3
|
data-styled.g4[id="sc-global-czSCUT1"]{content:"sc-global-czSCUT1,"}/*!sc*/
|
|
4
4
|
.kOVcuR .Toastify__toast-container{margin-top:24px;padding:0 !important;width:500px !important;}/*!sc*/
|
|
@@ -9,4 +9,4 @@ data-styled.g4[id="sc-global-czSCUT1"]{content:"sc-global-czSCUT1,"}/*!sc*/
|
|
|
9
9
|
.kOVcuR .Toastify__toast--success{background:#00A81A !important;color:#FFFFFF !important;}/*!sc*/
|
|
10
10
|
.kOVcuR .Toastify__toast--warning{background:#DD9900 !important;color:#FFFFFF !important;}/*!sc*/
|
|
11
11
|
data-styled.g5[id="ToastWrapper-sc-1a33ph1-0"]{content:"kOVcuR,"}/*!sc*/
|
|
12
|
-
</style></head><body><div id="__next"><div class="" style="position:fixed;top:0;left:0;height:2px;background:transparent;z-index:99999999999;width:100%"><div class="" style="height:100%;background:#FF144D;transition:all 500ms ease;width:0%"><div style="box-shadow:0 0 10px #FF144D, 0 0 10px #FF144D;width:5%;opacity:1;position:absolute;height:100%;transition:all 500ms ease;transform:rotate(3deg) translate(0px, -4px);left:-10rem"></div></div></div><div></div><div></div><div class="ToastWrapper-sc-1a33ph1-0 kOVcuR"><div class="Toastify"></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{},"currentTheme":{"accent":{"alert":"#F6540B","blue":"#4877FF","blueLight":"rgba(72, 119, 255, 0.5)","contentDefaultTransparent":"rgba(174, 174, 174, 0.5)","cyan":"#65E3FF","cyanTransparent":"rgba(101, 227, 255, 0.12)","dbt":"#fc6949","dbtLight":"rgba(252, 105, 73, 0.5)","info":"#00ABFF","infoTransparent":"rgba(0, 171, 255, 0.5)","negative":"#FF1E59","negativeTransparent":"rgba(255, 30, 89, 0.3)","pink":"#FF4FF8","pinkLight":"rgb(255, 79, 248, 0.5)","positive":"#00A81A","primaryTransparent":"rgba(155, 108, 167, 0.5)","purple":"#7D55EC","purpleLight":"rgba(125, 85, 236, 0.5)","teal":"#00B4CC","tealLight":"rgba(0, 180, 204, 0.5)","warning":"#DD9900","warningTransparent":"rgba(221, 153, 0, 0.5)","yellow":"#FFCC19","yellowLight":"rgba(255, 204, 25, 0.5)"},"background":{"chartBlock":"#2E3036","codeArea":"#1E1F24","codeTextarea":"#000000","content":"#1B1C20","danger":"#FFD0DB","dark":"#B1B8C3","header":"#1B1B1B","menu":"#0F4CFF","muted":"#F9FAFC","navigation":"#EDEDED","output":"#2E3036","page":"#1E1F24","panel":"#232429","popup":"#27292E","row":"#2C2C2C","row2":"#51535C","scrollbarThumb":"rgba(100, 100, 100, 0.5)","scrollbarThumbHover":"rgba(255, 255, 255, 0.3)","scrollbarTrack":"#2E3036","success":"#8ADE00","table":"#292A2F"},"borders":{"button":"#454850","contrast":"#FFFFFF","danger":"#FF144D","dark":"#000000","info":"#FFCC19","light":"#2F3034","medium":"#1C1C1C","medium2":"#141414","success":"#2FCB52"},"brand":{"earth100":"#C6EEDB","earth200":"#9DDFBF","earth300":"#6BBF96","earth400":"#37A46F","earth400Transparent":"rgba(55, 164, 111, 0.4)","earth500":"#00954C","energy100":"#FFF4BA","energy200":"#FFED92","energy300":"#FFE662","energy400":"#FFDA19","energy400Transparent":"rgba(255, 218, 25, 0.04)","energy500":"#F6C000","fire100":"#FFD7E0","fire200":"#FFA3B9","fire300":"#FF547D","fire400":"#FF144D","fire400Transparent":"rgba(255, 20, 77, 0.4)","fire500":"#EB0032","stone100":"#F3E6D7","stone200":"#E3D4C2","stone400":"#BFA78B","stone500":"#AF8859","water100":"#BDCEFF","water200":"#81A1FF","water300":"#517DFF","water400":"#2A60FE","water400Transparent":"rgba(42, 96, 254, 0.4)","water500":"#0F4CFF","wind100":"#EEEAFF","wind200":"#CCC1F4","wind300":"#A698DD","wind400":"#6B50D7","wind400SuperTransparent":"rgba(107, 80, 215, 0.12)","wind400Transparent":"rgba(107, 80, 215, 0.4)","wind500":"#4E32BC"},"chart":{"backgroundPrimary":"#7D55EC","backgroundSecondary":"#FF144D","backgroundTertiary":"#86E2FF","button1":"#4877FF","button2":"#FFCC19","button3":"#8ADE00","button4":"#FF4FF8","button5":"#B98D95","lines":"#9B6CA7","primary":"#6B50D7","secondary":"#FF144D","tertiary":"#2A60FE"},"content":{"active":"#FFFFFF","default":"#AEAEAE","disabled":"rgba(255, 255, 255, 0.3)","inverted":"#2C2C2C","muted":"#787A85"},"elevation":{"visualizationAccent":"#996CFF","visualizationAccentAlt":"#C1ACF7"},"feature":{"active":"rgba(250, 248, 254, 0.14)","disabled":"rgba(201, 206, 218, 0.12)"},"icons":{"neutral":"#787878"},"interactive":{"activeBorder":"#060606","checked":"#060606","dangerBorder":"#FF144D","defaultBackground":"#36383F","defaultBorder":"#2E3036","disabledBorder":"#B1B8C3","focusBackground":"#B1B8C3","focusBorder":"#86E2FF","hoverBackground":"#4E4E4E","hoverBorder":"#B9BFCA","hoverOverlay":"rgba(255, 255, 255, 0.1)","linkPrimary":"#1752FF","linkPrimaryHover":"#4877FF","linkPrimaryLight":"#5982ff","linkSecondary":"#6B50D7","linkSecondaryDisabled":"#C4B9EF","linkText":"#6AA1E0","rowHoverBackground":"rgba(0, 0, 0, 0.1)","transparent":"rgba(255, 255, 255, 0)"},"loader":{"color":"#EB0032","colorInverted":"#8ADE00"},"logo":{"color":"#FFFFFF"},"monotone":{"black":"#060606","blackTransparent":"rgba(0, 0, 0, 0.6)","gray":"#B1B8C3","grey100":"#F2F2F2","grey200":"#D5D7DC","grey300":"#B4B8C0","grey400":"#70747C","grey500":"#51535C","purple":"#6B50D7","white":"#FFFFFF"},"neutral":{"n100":"#E7E8EA","n200":"#D8DADE","n300":"#CBCCD0","n400":"#BCBEC4","n500":"#AEB0B6"},"progress":{"negative":"#FF144D","positive":"#6B50D7"},"shadow":{"base":"12px 40px 120px rgba(106, 117, 139, 0.4)","frame":"0px 10px 40px rgba(0, 0, 0, 0.26)","menu":"4px 10px 20px rgba(6, 6, 6, 0.12)","popup":"10px 20px 40px rgba(0, 0, 0, 0.2)","small":"0px, 4px, rgba(0, 0, 0, 0.25)","window":"0px 10px 60px rgba(0, 0, 0, 0.7)"},"status":{"negative":"#FF144D","positive":"#24B400"},"text":{"fileBrowser":"#787A85"}}},"page":"/","query":{},"buildId":"
|
|
12
|
+
</style></head><body><div id="__next"><div class="" style="position:fixed;top:0;left:0;height:2px;background:transparent;z-index:99999999999;width:100%"><div class="" style="height:100%;background:#FF144D;transition:all 500ms ease;width:0%"><div style="box-shadow:0 0 10px #FF144D, 0 0 10px #FF144D;width:5%;opacity:1;position:absolute;height:100%;transition:all 500ms ease;transform:rotate(3deg) translate(0px, -4px);left:-10rem"></div></div></div><div></div><div></div><div class="ToastWrapper-sc-1a33ph1-0 kOVcuR"><div class="Toastify"></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{},"currentTheme":{"accent":{"alert":"#F6540B","blue":"#4877FF","blueLight":"rgba(72, 119, 255, 0.5)","contentDefaultTransparent":"rgba(174, 174, 174, 0.5)","cyan":"#65E3FF","cyanTransparent":"rgba(101, 227, 255, 0.12)","dbt":"#fc6949","dbtLight":"rgba(252, 105, 73, 0.5)","info":"#00ABFF","infoTransparent":"rgba(0, 171, 255, 0.5)","negative":"#FF1E59","negativeTransparent":"rgba(255, 30, 89, 0.3)","pink":"#FF4FF8","pinkLight":"rgb(255, 79, 248, 0.5)","positive":"#00A81A","primaryTransparent":"rgba(155, 108, 167, 0.5)","purple":"#7D55EC","purpleLight":"rgba(125, 85, 236, 0.5)","teal":"#00B4CC","tealLight":"rgba(0, 180, 204, 0.5)","warning":"#DD9900","warningTransparent":"rgba(221, 153, 0, 0.5)","yellow":"#FFCC19","yellowLight":"rgba(255, 204, 25, 0.5)"},"background":{"chartBlock":"#2E3036","codeArea":"#1E1F24","codeTextarea":"#000000","content":"#1B1C20","danger":"#FFD0DB","dark":"#B1B8C3","header":"#1B1B1B","menu":"#0F4CFF","muted":"#F9FAFC","navigation":"#EDEDED","output":"#2E3036","page":"#1E1F24","panel":"#232429","popup":"#27292E","row":"#2C2C2C","row2":"#51535C","scrollbarThumb":"rgba(100, 100, 100, 0.5)","scrollbarThumbHover":"rgba(255, 255, 255, 0.3)","scrollbarTrack":"#2E3036","success":"#8ADE00","table":"#292A2F"},"borders":{"button":"#454850","contrast":"#FFFFFF","danger":"#FF144D","dark":"#000000","info":"#FFCC19","light":"#2F3034","medium":"#1C1C1C","medium2":"#141414","success":"#2FCB52"},"brand":{"earth100":"#C6EEDB","earth200":"#9DDFBF","earth300":"#6BBF96","earth400":"#37A46F","earth400Transparent":"rgba(55, 164, 111, 0.4)","earth500":"#00954C","energy100":"#FFF4BA","energy200":"#FFED92","energy300":"#FFE662","energy400":"#FFDA19","energy400Transparent":"rgba(255, 218, 25, 0.04)","energy500":"#F6C000","fire100":"#FFD7E0","fire200":"#FFA3B9","fire300":"#FF547D","fire400":"#FF144D","fire400Transparent":"rgba(255, 20, 77, 0.4)","fire500":"#EB0032","stone100":"#F3E6D7","stone200":"#E3D4C2","stone400":"#BFA78B","stone500":"#AF8859","water100":"#BDCEFF","water200":"#81A1FF","water300":"#517DFF","water400":"#2A60FE","water400Transparent":"rgba(42, 96, 254, 0.4)","water500":"#0F4CFF","wind100":"#EEEAFF","wind200":"#CCC1F4","wind300":"#A698DD","wind400":"#6B50D7","wind400SuperTransparent":"rgba(107, 80, 215, 0.12)","wind400Transparent":"rgba(107, 80, 215, 0.4)","wind500":"#4E32BC"},"chart":{"backgroundPrimary":"#7D55EC","backgroundSecondary":"#FF144D","backgroundTertiary":"#86E2FF","button1":"#4877FF","button2":"#FFCC19","button3":"#8ADE00","button4":"#FF4FF8","button5":"#B98D95","lines":"#9B6CA7","primary":"#6B50D7","secondary":"#FF144D","tertiary":"#2A60FE"},"content":{"active":"#FFFFFF","default":"#AEAEAE","disabled":"rgba(255, 255, 255, 0.3)","inverted":"#2C2C2C","muted":"#787A85"},"elevation":{"visualizationAccent":"#996CFF","visualizationAccentAlt":"#C1ACF7"},"feature":{"active":"rgba(250, 248, 254, 0.14)","disabled":"rgba(201, 206, 218, 0.12)"},"icons":{"neutral":"#787878"},"interactive":{"activeBorder":"#060606","checked":"#060606","dangerBorder":"#FF144D","defaultBackground":"#36383F","defaultBorder":"#2E3036","disabledBorder":"#B1B8C3","focusBackground":"#B1B8C3","focusBorder":"#86E2FF","hoverBackground":"#4E4E4E","hoverBorder":"#B9BFCA","hoverOverlay":"rgba(255, 255, 255, 0.1)","linkPrimary":"#1752FF","linkPrimaryHover":"#4877FF","linkPrimaryLight":"#5982ff","linkSecondary":"#6B50D7","linkSecondaryDisabled":"#C4B9EF","linkText":"#6AA1E0","rowHoverBackground":"rgba(0, 0, 0, 0.1)","transparent":"rgba(255, 255, 255, 0)"},"loader":{"color":"#EB0032","colorInverted":"#8ADE00"},"logo":{"color":"#FFFFFF"},"monotone":{"black":"#060606","blackTransparent":"rgba(0, 0, 0, 0.6)","gray":"#B1B8C3","grey100":"#F2F2F2","grey200":"#D5D7DC","grey300":"#B4B8C0","grey400":"#70747C","grey500":"#51535C","purple":"#6B50D7","white":"#FFFFFF"},"neutral":{"n100":"#E7E8EA","n200":"#D8DADE","n300":"#CBCCD0","n400":"#BCBEC4","n500":"#AEB0B6"},"progress":{"negative":"#FF144D","positive":"#6B50D7"},"shadow":{"base":"12px 40px 120px rgba(106, 117, 139, 0.4)","frame":"0px 10px 40px rgba(0, 0, 0, 0.26)","menu":"4px 10px 20px rgba(6, 6, 6, 0.12)","popup":"10px 20px 40px rgba(0, 0, 0, 0.2)","small":"0px, 4px, rgba(0, 0, 0, 0.25)","window":"0px 10px 60px rgba(0, 0, 0, 0.7)"},"status":{"negative":"#FF144D","positive":"#24B400"},"text":{"fileBrowser":"#787A85"}}},"page":"/","query":{},"buildId":"I2bRLK9B7Lap2LvCicTKv","nextExport":true,"isFallback":false,"appGip":true,"scriptLoader":[]}</script></body></html>
|