mage-ai 0.8.98__py3-none-any.whl → 0.8.99__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mage-ai might be problematic. Click here for more details.
- mage_ai/api/policies/OauthPolicy.py +15 -0
- mage_ai/api/policies/SessionPolicy.py +2 -0
- mage_ai/api/presenters/PipelinePresenter.py +1 -0
- mage_ai/api/presenters/SyncPresenter.py +1 -0
- mage_ai/api/resources/OauthResource.py +28 -2
- mage_ai/api/resources/PipelineResource.py +5 -1
- mage_ai/api/resources/SessionResource.py +18 -0
- mage_ai/api/resources/WorkspaceResource.py +3 -2
- mage_ai/authentication/oauth/active_directory.py +17 -0
- mage_ai/authentication/oauth/constants.py +9 -0
- mage_ai/cli/main.py +56 -49
- mage_ai/cluster_manager/kubernetes/workload_manager.py +46 -9
- mage_ai/data_preparation/git/__init__.py +1 -1
- mage_ai/data_preparation/models/block/dbt/utils/__init__.py +32 -0
- mage_ai/data_preparation/models/block/sql/__init__.py +3 -2
- mage_ai/data_preparation/models/pipeline.py +4 -1
- mage_ai/data_preparation/preferences.py +4 -2
- mage_ai/data_preparation/repo_manager.py +5 -1
- mage_ai/data_preparation/sync/__init__.py +1 -0
- mage_ai/data_preparation/sync/git_sync.py +2 -5
- mage_ai/data_preparation/templates/utils.py +2 -0
- mage_ai/orchestration/pipeline_scheduler.py +19 -8
- mage_ai/orchestration/queue/process_queue.py +15 -12
- mage_ai/server/api/clusters.py +1 -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/{-1TwyIVv18EeGuJPahFzG → WRxCTOtmZhTqQws_7OJZD}/_buildManifest.js +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{9350-1ff50f1d7b9ee754.js → 9350-5191c83a8d0cf454.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-1a7dd14f59bb82dc.js → _app-171846e16d26855a.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{manage-3f5032353f15dd3c.js → manage-af11f9cf94024ac0.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{sync-data-513e80a872b783a7.js → sync-data-90f8830890036eb2.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-a1871b8a537d823c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-48859b4e9c846212.js +1 -0
- mage_ai/server/frontend_dist/files.html +2 -2
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage/settings.html +2 -2
- mage_ai/server/frontend_dist/manage/users/[user].html +2 -2
- mage_ai/server/frontend_dist/manage/users/new.html +2 -2
- mage_ai/server/frontend_dist/manage/users.html +2 -2
- mage_ai/server/frontend_dist/manage.html +2 -2
- mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +2 -2
- mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +2 -2
- mage_ai/server/frontend_dist/terminal.html +2 -2
- mage_ai/server/frontend_dist/test.html +2 -2
- mage_ai/server/frontend_dist/triggers.html +2 -2
- mage_ai/server/frontend_dist/version-control.html +2 -2
- mage_ai/server/scheduler_manager.py +7 -2
- mage_ai/server/server.py +21 -0
- mage_ai/services/newrelic/__init__.py +21 -0
- mage_ai/settings/__init__.py +10 -1
- mage_ai/shared/hash.py +2 -0
- mage_ai/tests/data_preparation/models/test_pipeline.py +5 -0
- {mage_ai-0.8.98.dist-info → mage_ai-0.8.99.dist-info}/METADATA +4 -1
- {mage_ai-0.8.98.dist-info → mage_ai-0.8.99.dist-info}/RECORD +81 -79
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-2925c2c1b0c5559a.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-63fbd3334e4509d7.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{-1TwyIVv18EeGuJPahFzG → WRxCTOtmZhTqQws_7OJZD}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist/_next/static/{-1TwyIVv18EeGuJPahFzG → WRxCTOtmZhTqQws_7OJZD}/_ssgManifest.js +0 -0
- {mage_ai-0.8.98.dist-info → mage_ai-0.8.99.dist-info}/LICENSE +0 -0
- {mage_ai-0.8.98.dist-info → mage_ai-0.8.99.dist-info}/WHEEL +0 -0
- {mage_ai-0.8.98.dist-info → mage_ai-0.8.99.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.8.98.dist-info → mage_ai-0.8.99.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8867],{59739:function(e,n,t){"use strict";var r=t(56669);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,c){if(c!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),a=t(49894),u=t(93461),s=t(57384),l=t(41424),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var h=o.forwardRef(p),m=t(32063),b=t(85019),g=t(82531),v=t(66166),O=t(3055),x=t(49125),y=t(91427),j=t(24141);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 Z(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 w=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,S=e.afterWidthOverride,w=e.before,_=e.beforeWidth,C=e.breadcrumbs,A=e.children,R=e.errors,E=e.headerMenuItems,N=e.headerOffset,P=e.mainContainerHeader,T=e.navigationItems,k=e.setErrors,D=e.subheaderChildren,I=e.title,M=e.uuid,H=(0,j.i)().width,L="dashboard_after_width_".concat(M),W="dashboard_before_width_".concat(M),z=(0,o.useRef)(null),U=(0,o.useState)(S?p:(0,y.U2)(L,p)),F=U[0],B=U[1],K=(0,o.useState)(!1),X=K[0],Y=K[1],q=(0,o.useState)(w?Math.max((0,y.U2)(W,_),13*x.iI):null),G=q[0],Q=q[1],V=(0,o.useState)(!1),$=V[0],J=V[1],ee=(0,o.useState)(null)[1],ne=g.ZP.projects.list({},{revalidateOnFocus:!1}).data,te=null===ne||void 0===ne?void 0:ne.projects,re=[];C?re.push.apply(re,(0,i.Z)(C)):(null===te||void 0===te?void 0:te.length)>=1&&re.push.apply(re,[{label:function(){var e;return null===(e=te[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return I}}]),(0,o.useEffect)((function(){null===z||void 0===z||!z.current||X||$||null===ee||void 0===ee||ee(z.current.getBoundingClientRect().width)}),[X,F,$,G,z,ee,H]),(0,o.useEffect)((function(){X||(0,y.t8)(L,F)}),[r,X,F,L]),(0,o.useEffect)((function(){$||(0,y.t8)(W,G)}),[$,G,W]);var ie=(0,v.Z)(p);return(0,o.useEffect)((function(){S&&ie!==p&&B(p)}),[S,p,ie]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:I}),(0,f.jsx)(l.Z,{breadcrumbs:re,menuItems:E,project:null===te||void 0===te?void 0:te[0],version:null===te||void 0===te||null===(n=te[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===T||void 0===T?void 0:T.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(b.Z,{navigationItems:T,showMore:!0})}),(0,f.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:t,afterHeightOffset:O.Mz,afterHidden:r,afterMousedownActive:X,afterWidth:F,before:w,beforeHeightOffset:O.Mz,beforeMousedownActive:$,beforeWidth:d.k1+(w?G:0),headerOffset:N,hideAfterCompletely:!0,leftOffset:w?d.k1:null,mainContainerHeader:P,mainContainerRef:z,setAfterMousedownActive:Y,setAfterWidth:B,setBeforeMousedownActive:J,setBeforeWidth:Q,children:[D&&(0,f.jsx)(h,{children:D}),A]})})]}),R&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===k||void 0===k?void 0:k(null)},children:(0,f.jsx)(a.Z,Z(Z({},R),{},{onClose:function(){return null===k||void 0===k?void 0:k(null)}}))})]})}},85307:function(e,n,t){"use strict";t.d(n,{$W:function(){return s},cl:function(){return l},cv:function(){return d},dE:function(){return u}});var r=t(38626),i=t(23831),o=t(73942),c=t(49125),a=t(37391),u=r.default.div.withConfig({displayName:"indexstyle__SectionStyle",componentId:"sc-7a1uhf-0"})(["border-radius:","px;padding:","px;",""],o.n_,c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).popup,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__CodeEditorStyle",componentId:"sc-7a1uhf-1"})(["padding-top:","px;",""],c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeTextarea,";\n ")})),l=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-7a1uhf-2"})(["overflow:auto;max-height:90vh;width:100%;"," "," "," "," ",""],a.w5,(function(e){return e.hideHorizontalScrollbar&&"\n overflow-x: hidden;\n "}),(function(e){return e.width&&"\n width: ".concat(e.width,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,";\n ")}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")})),d=r.default.div.withConfig({displayName:"indexstyle__HeaderRowStyle",componentId:"sc-7a1uhf-3"})(["padding:","px;"," "," ",""],2*c.iI,(function(e){return"\n background-color: ".concat((e.theme||i.Z).interactive.defaultBackground,";\n border-bottom: ").concat(o.YF,"px ").concat(o.M8," ").concat((e.theme||i.Z).borders.medium,";\n ")}),(function(e){return e.padding&&"\n padding: ".concat(e.padding,"px;\n ")}),(function(e){return e.rounded&&"\n border-top-left-radius: ".concat(o.n_,"px;\n border-top-right-radius: ").concat(o.n_,"px;\n ")}))},65597:function(e,n,t){"use strict";t.d(n,{f:function(){return a}});var r=t(38626),i=t(23831),o=t(49125),c=t(73942),a=r.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*o.iI,c.TR,2*o.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||i.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},20103:function(e,n,t){"use strict";t.d(n,{L6:function(){return o},HF:function(){return a}});var r,i=t(81132);!function(e){e.MAIN="main",e.STANDALONE="standalone",e.SUB="sub"}(r||(r={}));var o,c=t(10503);function a(e,n,t){var a=e.owner,u=e.roles,s=[{Icon:c.Vz,id:o.WORKSPACES,isSelected:function(){return o.WORKSPACES===t},label:function(){return"Workspaces"},linkProps:{href:"/manage"}}];return(a||u===i.No.ADMIN)&&s.push({Icon:c.NO,id:o.USERS,isSelected:function(){return o.USERS===t},label:function(){return"Users"},linkProps:{href:"/manage/users"}}),n==r.MAIN&&s.push({Icon:c.Zr,id:o.SETTINGS,isSelected:function(){return o.SETTINGS===t},label:function(){return"Settings"},linkProps:{href:"/manage/settings"}}),s}!function(e){e.WORKSPACES="workspaces",e.USERS="users",e.SETTINGS="settings"}(o||(o={}))},3849:function(e,n,t){"use strict";var r=t(82684),i=t(1210),o=t(82531),c=t(49125),a=t(20103),u=t(9736),s=t(28598);n.Z=function(e){var n=e.before,t=e.breadcrumbs,l=void 0===t?[]:t,d=e.children,f=e.errors,p=e.pageName,h=e.subheaderChildren,m=o.ZP.statuses.list().data,b=(0,r.useMemo)((function(){var e,n;return null===m||void 0===m||null===(e=m.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.project_type}),[m]),g=(0,u.PR)()||{};return(0,s.jsx)(i.Z,{before:n,beforeWidth:n?50*c.iI:0,breadcrumbs:l,errors:f,navigationItems:(0,a.HF)(g,b,p),subheaderChildren:h,title:"Workspaces",uuid:"workspaces/index",children:d})}},86422:function(e,n,t){"use strict";t.d(n,{$W:function(){return h},DA:function(){return p},HX:function(){return g},J8:function(){return b},L8:function(){return c},Lq:function(){return d},M5:function(){return f},Qj:function(){return v},Ut:function(){return j},V4:function(){return y},VZ:function(){return m},dO:function(){return l},f2:function(){return x},iZ:function(){return O},t6:function(){return a},tf:function(){return s}});var r,i,o,c,a,u=t(82394);!function(e){e.CONDITION="condition",e.DBT_SNAPSHOT="snapshot",e.DYNAMIC="dynamic",e.DYNAMIC_CHILD="dynamic_child",e.REDUCE_OUTPUT="reduce_output",e.REPLICA="replica"}(c||(c={})),function(e){e.MARKDOWN="markdown",e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(a||(a={}));var s,l=(r={},(0,u.Z)(r,a.MARKDOWN,"MD"),(0,u.Z)(r,a.PYTHON,"PY"),(0,u.Z)(r,a.R,"R"),(0,u.Z)(r,a.SQL,"SQL"),(0,u.Z)(r,a.YAML,"YAML"),r);!function(e){e.CALLBACK="callback",e.CHART="chart",e.CONDITIONAL="conditional",e.CUSTOM="custom",e.DATA_EXPORTER="data_exporter",e.DATA_LOADER="data_loader",e.DBT="dbt",e.EXTENSION="extension",e.SCRATCHPAD="scratchpad",e.SENSOR="sensor",e.MARKDOWN="markdown",e.TRANSFORMER="transformer"}(s||(s={}));var d,f=[s.CALLBACK,s.CONDITIONAL,s.EXTENSION];!function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(d||(d={}));var p,h=[s.CHART,s.CUSTOM,s.DATA_EXPORTER,s.DATA_LOADER,s.SCRATCHPAD,s.SENSOR,s.MARKDOWN,s.TRANSFORMER],m=[s.DATA_EXPORTER,s.DATA_LOADER],b=[s.DATA_EXPORTER,s.DATA_LOADER,s.TRANSFORMER],g=[s.DATA_EXPORTER,s.DATA_LOADER,s.DBT,s.TRANSFORMER],v=[s.CHART,s.SCRATCHPAD,s.SENSOR,s.MARKDOWN],O=[s.CALLBACK,s.CHART,s.EXTENSION,s.SCRATCHPAD,s.MARKDOWN];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(p||(p={}));var x=[s.CUSTOM,s.DATA_EXPORTER,s.DATA_LOADER,s.TRANSFORMER],y=(i={},(0,u.Z)(i,s.CALLBACK,"Callback"),(0,u.Z)(i,s.CUSTOM,"Custom"),(0,u.Z)(i,s.DATA_EXPORTER,"Data exporter"),(0,u.Z)(i,s.DATA_LOADER,"Data loader"),(0,u.Z)(i,s.EXTENSION,"Extension"),(0,u.Z)(i,s.SCRATCHPAD,"Scratchpad"),(0,u.Z)(i,s.SENSOR,"Sensor"),(0,u.Z)(i,s.MARKDOWN,"Markdown"),(0,u.Z)(i,s.TRANSFORMER,"Transformer"),i),j=[s.DATA_LOADER,s.TRANSFORMER,s.DATA_EXPORTER,s.SENSOR];o={},(0,u.Z)(o,s.DATA_EXPORTER,"DE"),(0,u.Z)(o,s.DATA_LOADER,"DL"),(0,u.Z)(o,s.SCRATCHPAD,"SP"),(0,u.Z)(o,s.SENSOR,"SR"),(0,u.Z)(o,s.MARKDOWN,"MD"),(0,u.Z)(o,s.TRANSFORMER,"TF")},18776:function(e,n,t){"use strict";t.d(n,{Z:function(){return u}});var r=t(38626),i=t(23831),o=t(73942),c=r.default.div.withConfig({displayName:"indexstyle__PanelStyle",componentId:"sc-1rfr5wd-0"})(["border-radius:","px;"," ",""],o.n_,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n ")}),(function(e){return e.fullWidth&&"\n width: 100%;\n "})),a=t(28598);var u=function(e){var n=e.children,t=e.fullWidth,r=void 0===t||t;return(0,a.jsx)(c,{fullWidth:r,children:n})}},87372:function(e,n,t){"use strict";var r,i,o,c,a,u,s,l,d=t(82394),f=t(26304),p=t(26653),h=t(38626),m=t(33591),b=t(23831),g=t(2005),v=t(31012),O=t(19711),x=t(49125),y=t(86673),j=t(28598),S=["children","condensed","inline","level","marketing","spacingBelow"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],O.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||b.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(g.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(g.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(g.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(g.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(g.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),C=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||b.Z.content).active,";\n ")})),A=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],_,m.media.md(r||(r=(0,p.Z)(["\n ","\n "])),v.aQ),m.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),v.aQ),m.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),v.aQ)),R=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],_,v.MJ),E=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],_,m.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),m.media.sm(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),m.media.md(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),m.media.lg(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),m.media.xl(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI)),N=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],_,v.BL),P=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],_),T=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],_),k=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],_),D=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],_,(function(e){return 1===e.level&&"\n ".concat(v.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(v.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),I=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,c=e.marketing,a=e.spacingBelow,u=(0,f.Z)(e,S);i?n=D:0===Number(o)?n=A:1===Number(o)?n=c?E:R:2===Number(o)?n=N:3===Number(o)?n=P:4===Number(o)?n=T:5===Number(o)&&(n=k);var s=(0,j.jsxs)(n,w(w({},u),{},{level:o,children:[a&&(0,j.jsx)(y.Z,{mb:r?2:3,children:t}),!a&&t]}));return i?s:(0,j.jsx)(C,{children:s})};I.defaultProps={level:3,weightStyle:6},n.Z=I},27664:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return G}});var r,i=t(77837),o=t(75582),c=t(38860),a=t.n(c),u=t(82684),s=t(83455),l=t(60328),d=t(47999),f=t(82394),p=t(57722),h=t(67971),m=t(87372),b=t(11135),g=t(18776),v=t(55378),O=t(86673),x=t(19711),y=t(82944),j=t(70902),S=t(82531),Z=["ReadWriteOnce","ReadWriteMany","ReadOnlyMany"],w=[{label:"Workspace name",required:!0,uuid:"name"}],_=[{label:"Service account name",uuid:"service_account_name"},{label:"Storage class name",labelDescription:"Volume claim parameters",uuid:"storage_class_name"},{label:"Storage request size (in GB)",type:"number",uuid:"storage_request_size"}],C=t(86422);!function(e){e.K8S="k8s",e.ECS="ecs",e.CLOUD_RUN="cloud_run",e.EMR="emr"}(r||(r={}));var A=t(73899),R=t(85307),E=t(96510),N=t(90211),P=t(28598);function T(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?T(Object(t),!0).forEach((function(n){(0,f.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):T(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var D=function(e){var n=e.clusterType,t=e.onCancel,i=e.onCreate,c=(0,u.useState)(),a=c[0],l=c[1],d=(0,u.useState)(),T=d[0],D=d[1],I=(0,u.useState)(null),M=I[0],H=I[1],L=(0,s.Db)(S.ZP.workspaces.useCreate(),{onSuccess:function(e){return(0,E.wD)(e,{callback:function(e){e.error_message?l(e.error_message):i()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;l(r),console.log(t,r)}})}}),W=(0,o.Z)(L,2),z=W[0],U=W[1].isLoading,F=(0,u.useMemo)((function(){return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(m.Z,{level:5,children:"Kubernetes settings"}),_.map((function(e){var n=e.autoComplete,t=e.disabled,r=e.label,i=e.labelDescription,o=e.required,c=e.type,a=e.uuid;return(0,P.jsxs)(O.Z,{mt:1,children:[i&&(0,P.jsx)(O.Z,{mb:1,children:(0,P.jsx)(x.ZP,{small:!0,children:i})}),(0,P.jsx)(y.Z,{autoComplete:n,disabled:t,label:r,onChange:function(e){H((function(n){return k(k({},n),{},(0,f.Z)({},a,e.target.value))}))},primary:!0,required:o,setContentOnMount:!0,type:c,value:(null===M||void 0===M?void 0:M[a])||""})]},a)})),(0,P.jsx)(O.Z,{mt:1,children:(0,P.jsx)(v.Z,{label:"Access mode",onChange:function(e){e.preventDefault(),H((function(n){return k(k({},n),{},{storage_access_mode:e.target.value})}))},placeholder:"Access mode",value:null===M||void 0===M?void 0:M.storage_access_mode,children:Z.map((function(e){return(0,P.jsx)("option",{value:e,children:e},e)}))})}),(0,P.jsx)(O.Z,{mt:2,children:(0,P.jsxs)(h.Z,{alignItems:"center",children:[(0,P.jsx)(x.ZP,{default:!0,monospace:!0,small:!0,children:"Configure container"}),(0,P.jsx)(O.Z,{ml:1}),(0,P.jsx)(j.Z,{checked:T,onCheck:function(){return D((function(e){return!e}))}})]})}),T&&(0,P.jsx)(O.Z,{mt:1,children:(0,P.jsx)(R.$W,{children:(0,P.jsx)(p.Z,{autoHeight:!0,fontSize:12,language:C.t6.YAML,onChange:function(e){H((function(n){return k(k({},n),{},{container_config:e})}))},tabSize:2,value:null===M||void 0===M?void 0:M.container_config,width:"100%"})})})]})}),[T,M]);return(0,P.jsx)(g.Z,{children:(0,P.jsx)("div",{style:{width:"500px"},children:(0,P.jsxs)(O.Z,{p:2,children:[(0,P.jsx)(h.Z,{justifyContent:"center",children:(0,P.jsx)(m.Z,{level:4,children:"Create new workspace"})}),(0,P.jsxs)("form",{children:[w.map((function(e){var n=e.autoComplete,t=e.disabled,r=e.label,i=e.required,o=e.type,c=e.uuid;return(0,P.jsx)(O.Z,{mt:2,children:(0,P.jsx)(y.Z,{autoComplete:n,disabled:t,label:r,onChange:function(e){H((function(n){return k(k({},n),{},(0,f.Z)({},c,e.target.value))}))},primary:!0,required:i,setContentOnMount:!0,type:o,value:(null===M||void 0===M?void 0:M[c])||""})},c)})),n===r.K8S&&(0,P.jsx)(O.Z,{mt:2,children:F})]}),U&&(0,P.jsx)(O.Z,{mt:1,children:(0,P.jsx)(x.ZP,{small:!0,warning:!0,children:"This may take up to a few minutes... Once the service is created, it may take another 5-10 minutes for the service to be accessible."})}),!U&&a&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(O.Z,{mt:1,children:(0,P.jsx)(x.ZP,{danger:!0,small:!0,children:"Failed to create instance, see error below."})}),(0,P.jsx)(O.Z,{mt:1,children:(0,P.jsx)(x.ZP,{danger:!0,small:!0,children:a})})]}),(0,P.jsx)(O.Z,{my:2,children:(0,P.jsxs)(h.Z,{children:[(0,P.jsx)(b.ZP,{background:A.a$,bold:!0,inline:!0,loading:U,onClick:function(){var e=M||{},t=e.name,r=e.container_config;if(t){var i=k({},M);i.name=function(e){return"ecs"===n?(0,N.We)(e,"_"):(0,N.We)(e,"-")}(t),i.container_config=T&&r,z({workspace:k(k({},i),{},{cluster_type:n})})}else l("Please enter a valid name!")},uuid:"workspaces/create",children:"Create"}),(0,P.jsx)(O.Z,{ml:1}),(0,P.jsx)(b.ZP,{bold:!0,inline:!0,onClick:t,uuid:"workspaces/cancel",children:"Cancel"})]})})]})})})},I=t(62084),M=t(41788),H=t(87815),L=t(3849),W=t(10503),z=t(73942),U=t(99994),F=t(65597),B=t(49125),K=t(20103),X=t(99497);function Y(e){var n=e.fetchWorkspaces,t=e.instance,r=e.clusterType,i=(0,u.useRef)(null),c=(0,u.useState)(),a=c[0],f=c[1],p=(0,u.useState)(),m=p[0],b=p[1],g=t.name,v=(t.task_arn,{cluster_type:r}),y=(0,s.Db)(S.ZP.workspaces.useUpdate(g,v),{onSuccess:function(e){return(0,E.wD)(e,{callback:function(){n(),f(!1)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;console.log(t,r)}})}}),j=(0,o.Z)(y,1)[0],Z=(0,s.Db)(S.ZP.workspaces.useDelete(g,v),{onSuccess:function(e){return(0,E.wD)(e,{callback:function(){n(),f(!1)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;console.log(t,r)}})}}),w=(0,o.Z)(Z,1)[0],_=(0,u.useMemo)((function(){var e=t.status,n=[{label:function(){return(0,P.jsx)(x.ZP,{children:"Delete workspace"})},onClick:function(){return b(!0)},uuid:"delete_workspace"}];return"ecs"===r&&("STOPPED"===e?n.unshift({label:function(){return(0,P.jsx)(x.ZP,{children:"Resume instance"})},onClick:function(){return j({workspace:{action:"resume",cluster_type:r,name:t.name,task_arn:t.task_arn}})},uuid:"resume_instance"}):"RUNNING"===e&&n.unshift({label:function(){return(0,P.jsx)(x.ZP,{children:"Stop instance"})},onClick:function(){return j({workspace:{action:"stop",cluster_type:r,name:t.name,task_arn:t.task_arn}})},uuid:"stop_instance"})),n}),[r,t,j]);return(0,P.jsx)(P.Fragment,{children:["ecs","k8s"].includes(r)&&(0,P.jsxs)("div",{ref:i,style:{position:"relative",zIndex:"1"},children:[(0,P.jsx)(l.Z,{iconOnly:!0,onClick:function(){return f(!a)},children:(0,P.jsx)(W.mH,{size:2*B.iI})}),(0,P.jsx)(d.Z,{disableEscape:!0,onClickOutside:function(){f(!1),b(!1)},open:a,children:m?(0,P.jsxs)(F.f,{leftOffset:30*-B.iI,topOffset:3*-B.iI,width:30*B.iI,children:[(0,P.jsx)(x.ZP,{children:"Are you sure you want to delete"}),(0,P.jsx)(x.ZP,{children:"this instance? You may not be"}),(0,P.jsx)(x.ZP,{children:"able to recover your data."}),(0,P.jsx)(O.Z,{mt:1}),(0,P.jsxs)(h.Z,{children:[(0,P.jsx)(l.Z,{danger:!0,onClick:w,children:"Confirm"}),(0,P.jsx)(O.Z,{ml:1}),(0,P.jsx)(l.Z,{default:!0,onClick:function(){return b(!1)},children:"Cancel"})]})]}):(0,P.jsx)(I.Z,{items:_,left:25*-B.iI,open:a,parentRef:i,topOffset:3*-B.iI,uuid:"workspaces/more_actions",width:25*B.iI})})]})})}function q(){var e=S.ZP.statuses.list().data,n=(0,u.useMemo)((function(){var n,t;return(null===e||void 0===e||null===(n=e.statuses)||void 0===n||null===(t=n[0])||void 0===t?void 0:t.instance_type)||"ecs"}),[e]),t=S.ZP.workspaces.list({cluster_type:n},{refreshInterval:1e4,revalidateOnFocus:!0}),r=t.data,i=t.mutate,c=(0,u.useMemo)((function(){var e;return null===r||void 0===r||null===(e=r.workspaces)||void 0===e?void 0:e.filter((function(e){return e.name}))}),[r]),a=(0,X.dd)((function(){return(0,P.jsx)(D,{clusterType:n,onCancel:f,onCreate:function(){i(),f()}})}),{},[n,i],{background:!0,uuid:"configure_workspace"}),s=(0,o.Z)(a,2),d=s[0],f=s[1];return(0,P.jsx)(L.Z,{breadcrumbs:[{bold:!0,label:function(){return"Workspaces"}}],pageName:K.L6.WORKSPACES,subheaderChildren:(0,P.jsx)(b.ZP,{background:U.eW,beforeElement:(0,P.jsx)(W.mm,{size:2.5*B.iI}),bold:!0,inline:!0,onClick:function(){return d()},uuid:"workspaces/new",children:"Create new workspace"}),children:(0,P.jsx)(H.Z,{columnFlex:[2,4,2,3,1,null],columns:[{uuid:"Status"},{uuid:"Instance Name"},{uuid:"Type"},{uuid:"Public IP address"},{uuid:"Open"},{label:function(){return""},uuid:"Actions"}],rows:null===c||void 0===c?void 0:c.map((function(e){var t=e.instance,r=t.ip,o=t.name,c=t.status,a=t.type,u="http://".concat(r);return"ecs"===n&&(u="http://".concat(r,":6789")),[(0,P.jsx)(l.Z,{borderRadius:z.D7,danger:"STOPPED"===c,default:"PROVISIONING"===c,notClickable:!0,padding:"6px",primary:"RUNNING"===c,warning:"PENDING"===c,children:(0,N.vg)(c)},"status"),(0,P.jsx)(x.ZP,{children:o},"name"),(0,P.jsx)(x.ZP,{children:(0,N.vg)(a)},"type"),(0,P.jsx)(x.ZP,{children:r},"ip"),(0,P.jsx)(l.Z,{iconOnly:!0,onClick:function(){return window.open(u)},children:(0,P.jsx)(W.M0,{size:2*B.iI})},"open_button"),(0,P.jsx)(Y,{clusterType:n,fetchWorkspaces:i,instance:t},"more_actions")]}))})})}q.getInitialProps=(0,i.Z)(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var G=(0,M.Z)(q)},13157:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage",function(){return t(27664)}])}},function(e){e.O(0,[844,7607,8789,1424,1005,7815,7722,9774,2888,179],(function(){return n=13157,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8867],{59739:function(e,n,t){"use strict";var r=t(56669);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,c){if(c!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),a=t(49894),u=t(93461),s=t(57384),l=t(41424),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var h=o.forwardRef(p),m=t(32063),b=t(85019),g=t(82531),v=t(66166),O=t(3055),x=t(49125),y=t(91427),j=t(24141);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 Z(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 w=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,S=e.afterWidthOverride,w=e.before,_=e.beforeWidth,C=e.breadcrumbs,A=e.children,R=e.errors,E=e.headerMenuItems,N=e.headerOffset,P=e.mainContainerHeader,T=e.navigationItems,k=e.setErrors,D=e.subheaderChildren,I=e.title,M=e.uuid,H=(0,j.i)().width,L="dashboard_after_width_".concat(M),W="dashboard_before_width_".concat(M),z=(0,o.useRef)(null),U=(0,o.useState)(S?p:(0,y.U2)(L,p)),F=U[0],B=U[1],K=(0,o.useState)(!1),X=K[0],Y=K[1],q=(0,o.useState)(w?Math.max((0,y.U2)(W,_),13*x.iI):null),G=q[0],Q=q[1],V=(0,o.useState)(!1),$=V[0],J=V[1],ee=(0,o.useState)(null)[1],ne=g.ZP.projects.list({},{revalidateOnFocus:!1}).data,te=null===ne||void 0===ne?void 0:ne.projects,re=[];C?re.push.apply(re,(0,i.Z)(C)):(null===te||void 0===te?void 0:te.length)>=1&&re.push.apply(re,[{label:function(){var e;return null===(e=te[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return I}}]),(0,o.useEffect)((function(){null===z||void 0===z||!z.current||X||$||null===ee||void 0===ee||ee(z.current.getBoundingClientRect().width)}),[X,F,$,G,z,ee,H]),(0,o.useEffect)((function(){X||(0,y.t8)(L,F)}),[r,X,F,L]),(0,o.useEffect)((function(){$||(0,y.t8)(W,G)}),[$,G,W]);var ie=(0,v.Z)(p);return(0,o.useEffect)((function(){S&&ie!==p&&B(p)}),[S,p,ie]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:I}),(0,f.jsx)(l.Z,{breadcrumbs:re,menuItems:E,project:null===te||void 0===te?void 0:te[0],version:null===te||void 0===te||null===(n=te[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===T||void 0===T?void 0:T.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(b.Z,{navigationItems:T,showMore:!0})}),(0,f.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:t,afterHeightOffset:O.Mz,afterHidden:r,afterMousedownActive:X,afterWidth:F,before:w,beforeHeightOffset:O.Mz,beforeMousedownActive:$,beforeWidth:d.k1+(w?G:0),headerOffset:N,hideAfterCompletely:!0,leftOffset:w?d.k1:null,mainContainerHeader:P,mainContainerRef:z,setAfterMousedownActive:Y,setAfterWidth:B,setBeforeMousedownActive:J,setBeforeWidth:Q,children:[D&&(0,f.jsx)(h,{children:D}),A]})})]}),R&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===k||void 0===k?void 0:k(null)},children:(0,f.jsx)(a.Z,Z(Z({},R),{},{onClose:function(){return null===k||void 0===k?void 0:k(null)}}))})]})}},85307:function(e,n,t){"use strict";t.d(n,{$W:function(){return s},cl:function(){return l},cv:function(){return d},dE:function(){return u}});var r=t(38626),i=t(23831),o=t(73942),c=t(49125),a=t(37391),u=r.default.div.withConfig({displayName:"indexstyle__SectionStyle",componentId:"sc-7a1uhf-0"})(["border-radius:","px;padding:","px;",""],o.n_,c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).popup,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__CodeEditorStyle",componentId:"sc-7a1uhf-1"})(["padding-top:","px;",""],c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeTextarea,";\n ")})),l=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-7a1uhf-2"})(["overflow:auto;max-height:90vh;width:100%;"," "," "," "," ",""],a.w5,(function(e){return e.hideHorizontalScrollbar&&"\n overflow-x: hidden;\n "}),(function(e){return e.width&&"\n width: ".concat(e.width,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,";\n ")}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")})),d=r.default.div.withConfig({displayName:"indexstyle__HeaderRowStyle",componentId:"sc-7a1uhf-3"})(["padding:","px;"," "," ",""],2*c.iI,(function(e){return"\n background-color: ".concat((e.theme||i.Z).interactive.defaultBackground,";\n border-bottom: ").concat(o.YF,"px ").concat(o.M8," ").concat((e.theme||i.Z).borders.medium,";\n ")}),(function(e){return e.padding&&"\n padding: ".concat(e.padding,"px;\n ")}),(function(e){return e.rounded&&"\n border-top-left-radius: ".concat(o.n_,"px;\n border-top-right-radius: ").concat(o.n_,"px;\n ")}))},65597:function(e,n,t){"use strict";t.d(n,{f:function(){return a}});var r=t(38626),i=t(23831),o=t(49125),c=t(73942),a=r.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*o.iI,c.TR,2*o.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||i.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},20103:function(e,n,t){"use strict";t.d(n,{L6:function(){return o},HF:function(){return a}});var r,i=t(81132);!function(e){e.MAIN="main",e.STANDALONE="standalone",e.SUB="sub"}(r||(r={}));var o,c=t(10503);function a(e,n,t){var a=e.owner,u=e.roles,s=[{Icon:c.Vz,id:o.WORKSPACES,isSelected:function(){return o.WORKSPACES===t},label:function(){return"Workspaces"},linkProps:{href:"/manage"}}];return(a||u===i.No.ADMIN)&&s.push({Icon:c.NO,id:o.USERS,isSelected:function(){return o.USERS===t},label:function(){return"Users"},linkProps:{href:"/manage/users"}}),n==r.MAIN&&s.push({Icon:c.Zr,id:o.SETTINGS,isSelected:function(){return o.SETTINGS===t},label:function(){return"Settings"},linkProps:{href:"/manage/settings"}}),s}!function(e){e.WORKSPACES="workspaces",e.USERS="users",e.SETTINGS="settings"}(o||(o={}))},3849:function(e,n,t){"use strict";var r=t(82684),i=t(1210),o=t(82531),c=t(49125),a=t(20103),u=t(9736),s=t(28598);n.Z=function(e){var n=e.before,t=e.breadcrumbs,l=void 0===t?[]:t,d=e.children,f=e.errors,p=e.pageName,h=e.subheaderChildren,m=o.ZP.statuses.list().data,b=(0,r.useMemo)((function(){var e,n;return null===m||void 0===m||null===(e=m.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.project_type}),[m]),g=(0,u.PR)()||{};return(0,s.jsx)(i.Z,{before:n,beforeWidth:n?50*c.iI:0,breadcrumbs:l,errors:f,navigationItems:(0,a.HF)(g,b,p),subheaderChildren:h,title:"Workspaces",uuid:"workspaces/index",children:d})}},86422:function(e,n,t){"use strict";t.d(n,{$W:function(){return h},DA:function(){return p},HX:function(){return g},J8:function(){return b},L8:function(){return c},Lq:function(){return d},M5:function(){return f},Qj:function(){return v},Ut:function(){return j},V4:function(){return y},VZ:function(){return m},dO:function(){return l},f2:function(){return x},iZ:function(){return O},t6:function(){return a},tf:function(){return s}});var r,i,o,c,a,u=t(82394);!function(e){e.CONDITION="condition",e.DBT_SNAPSHOT="snapshot",e.DYNAMIC="dynamic",e.DYNAMIC_CHILD="dynamic_child",e.REDUCE_OUTPUT="reduce_output",e.REPLICA="replica"}(c||(c={})),function(e){e.MARKDOWN="markdown",e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(a||(a={}));var s,l=(r={},(0,u.Z)(r,a.MARKDOWN,"MD"),(0,u.Z)(r,a.PYTHON,"PY"),(0,u.Z)(r,a.R,"R"),(0,u.Z)(r,a.SQL,"SQL"),(0,u.Z)(r,a.YAML,"YAML"),r);!function(e){e.CALLBACK="callback",e.CHART="chart",e.CONDITIONAL="conditional",e.CUSTOM="custom",e.DATA_EXPORTER="data_exporter",e.DATA_LOADER="data_loader",e.DBT="dbt",e.EXTENSION="extension",e.SCRATCHPAD="scratchpad",e.SENSOR="sensor",e.MARKDOWN="markdown",e.TRANSFORMER="transformer"}(s||(s={}));var d,f=[s.CALLBACK,s.CONDITIONAL,s.EXTENSION];!function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(d||(d={}));var p,h=[s.CHART,s.CUSTOM,s.DATA_EXPORTER,s.DATA_LOADER,s.SCRATCHPAD,s.SENSOR,s.MARKDOWN,s.TRANSFORMER],m=[s.DATA_EXPORTER,s.DATA_LOADER],b=[s.DATA_EXPORTER,s.DATA_LOADER,s.TRANSFORMER],g=[s.DATA_EXPORTER,s.DATA_LOADER,s.DBT,s.TRANSFORMER],v=[s.CHART,s.SCRATCHPAD,s.SENSOR,s.MARKDOWN],O=[s.CALLBACK,s.CHART,s.EXTENSION,s.SCRATCHPAD,s.MARKDOWN];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(p||(p={}));var x=[s.CUSTOM,s.DATA_EXPORTER,s.DATA_LOADER,s.TRANSFORMER],y=(i={},(0,u.Z)(i,s.CALLBACK,"Callback"),(0,u.Z)(i,s.CUSTOM,"Custom"),(0,u.Z)(i,s.DATA_EXPORTER,"Data exporter"),(0,u.Z)(i,s.DATA_LOADER,"Data loader"),(0,u.Z)(i,s.EXTENSION,"Extension"),(0,u.Z)(i,s.SCRATCHPAD,"Scratchpad"),(0,u.Z)(i,s.SENSOR,"Sensor"),(0,u.Z)(i,s.MARKDOWN,"Markdown"),(0,u.Z)(i,s.TRANSFORMER,"Transformer"),i),j=[s.DATA_LOADER,s.TRANSFORMER,s.DATA_EXPORTER,s.SENSOR];o={},(0,u.Z)(o,s.DATA_EXPORTER,"DE"),(0,u.Z)(o,s.DATA_LOADER,"DL"),(0,u.Z)(o,s.SCRATCHPAD,"SP"),(0,u.Z)(o,s.SENSOR,"SR"),(0,u.Z)(o,s.MARKDOWN,"MD"),(0,u.Z)(o,s.TRANSFORMER,"TF")},18776:function(e,n,t){"use strict";t.d(n,{Z:function(){return u}});var r=t(38626),i=t(23831),o=t(73942),c=r.default.div.withConfig({displayName:"indexstyle__PanelStyle",componentId:"sc-1rfr5wd-0"})(["border-radius:","px;"," ",""],o.n_,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n ")}),(function(e){return e.fullWidth&&"\n width: 100%;\n "})),a=t(28598);var u=function(e){var n=e.children,t=e.fullWidth,r=void 0===t||t;return(0,a.jsx)(c,{fullWidth:r,children:n})}},87372:function(e,n,t){"use strict";var r,i,o,c,a,u,s,l,d=t(82394),f=t(26304),p=t(26653),h=t(38626),m=t(33591),b=t(23831),g=t(2005),v=t(31012),O=t(19711),x=t(49125),y=t(86673),j=t(28598),S=["children","condensed","inline","level","marketing","spacingBelow"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],O.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||b.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(g.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(g.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(g.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(g.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(g.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),C=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||b.Z.content).active,";\n ")})),A=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],_,m.media.md(r||(r=(0,p.Z)(["\n ","\n "])),v.aQ),m.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),v.aQ),m.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),v.aQ)),R=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],_,v.MJ),E=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],_,m.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),m.media.sm(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),m.media.md(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),m.media.lg(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),m.media.xl(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI)),N=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],_,v.BL),P=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],_),T=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],_),k=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],_),D=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],_,(function(e){return 1===e.level&&"\n ".concat(v.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(v.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),I=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,c=e.marketing,a=e.spacingBelow,u=(0,f.Z)(e,S);i?n=D:0===Number(o)?n=A:1===Number(o)?n=c?E:R:2===Number(o)?n=N:3===Number(o)?n=P:4===Number(o)?n=T:5===Number(o)&&(n=k);var s=(0,j.jsxs)(n,w(w({},u),{},{level:o,children:[a&&(0,j.jsx)(y.Z,{mb:r?2:3,children:t}),!a&&t]}));return i?s:(0,j.jsx)(C,{children:s})};I.defaultProps={level:3,weightStyle:6},n.Z=I},27664:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return G}});var r,i=t(77837),o=t(75582),c=t(38860),a=t.n(c),u=t(82684),s=t(83455),l=t(60328),d=t(47999),f=t(82394),p=t(57722),h=t(67971),m=t(87372),b=t(11135),g=t(18776),v=t(55378),O=t(86673),x=t(19711),y=t(82944),j=t(70902),S=t(82531),Z=["ReadWriteOnce","ReadWriteMany","ReadOnlyMany"],w=[{label:"Workspace name",required:!0,uuid:"name"}],_=[{label:"Service account name",uuid:"service_account_name"},{label:"Storage class name",labelDescription:"Volume claim parameters",uuid:"storage_class_name"},{label:"Storage request size (in GB)",type:"number",uuid:"storage_request_size"}],C=t(86422);!function(e){e.K8S="k8s",e.ECS="ecs",e.CLOUD_RUN="cloud_run",e.EMR="emr"}(r||(r={}));var A=t(73899),R=t(85307),E=t(96510),N=t(90211),P=t(28598);function T(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?T(Object(t),!0).forEach((function(n){(0,f.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):T(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var D=function(e){var n=e.clusterType,t=e.onCancel,i=e.onCreate,c=(0,u.useState)(),a=c[0],l=c[1],d=(0,u.useState)(),T=d[0],D=d[1],I=(0,u.useState)(null),M=I[0],H=I[1],L=(0,s.Db)(S.ZP.workspaces.useCreate(),{onSuccess:function(e){return(0,E.wD)(e,{callback:function(e){e.error_message?l(e.error_message):i()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;l(r),console.log(t,r)}})}}),W=(0,o.Z)(L,2),z=W[0],U=W[1].isLoading,F=(0,u.useMemo)((function(){return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(m.Z,{level:5,children:"Kubernetes settings"}),_.map((function(e){var n=e.autoComplete,t=e.disabled,r=e.label,i=e.labelDescription,o=e.required,c=e.type,a=e.uuid;return(0,P.jsxs)(O.Z,{mt:1,children:[i&&(0,P.jsx)(O.Z,{mb:1,children:(0,P.jsx)(x.ZP,{small:!0,children:i})}),(0,P.jsx)(y.Z,{autoComplete:n,disabled:t,label:r,onChange:function(e){H((function(n){return k(k({},n),{},(0,f.Z)({},a,e.target.value))}))},primary:!0,required:o,setContentOnMount:!0,type:c,value:(null===M||void 0===M?void 0:M[a])||""})]},a)})),(0,P.jsx)(O.Z,{mt:1,children:(0,P.jsx)(v.Z,{label:"Access mode",onChange:function(e){e.preventDefault(),H((function(n){return k(k({},n),{},{storage_access_mode:e.target.value})}))},placeholder:"Access mode",value:null===M||void 0===M?void 0:M.storage_access_mode,children:Z.map((function(e){return(0,P.jsx)("option",{value:e,children:e},e)}))})}),(0,P.jsx)(O.Z,{mt:2,children:(0,P.jsxs)(h.Z,{alignItems:"center",children:[(0,P.jsx)(x.ZP,{default:!0,monospace:!0,small:!0,children:"Configure container"}),(0,P.jsx)(O.Z,{ml:1}),(0,P.jsx)(j.Z,{checked:T,onCheck:function(){return D((function(e){return!e}))}})]})}),T&&(0,P.jsx)(O.Z,{mt:1,children:(0,P.jsx)(R.$W,{children:(0,P.jsx)(p.Z,{autoHeight:!0,fontSize:12,language:C.t6.YAML,onChange:function(e){H((function(n){return k(k({},n),{},{container_config:e})}))},tabSize:2,value:null===M||void 0===M?void 0:M.container_config,width:"100%"})})})]})}),[T,M]);return(0,P.jsx)(g.Z,{children:(0,P.jsx)("div",{style:{width:"500px"},children:(0,P.jsxs)(O.Z,{p:2,children:[(0,P.jsx)(h.Z,{justifyContent:"center",children:(0,P.jsx)(m.Z,{level:4,children:"Create new workspace"})}),(0,P.jsxs)("form",{children:[w.map((function(e){var n=e.autoComplete,t=e.disabled,r=e.label,i=e.required,o=e.type,c=e.uuid;return(0,P.jsx)(O.Z,{mt:2,children:(0,P.jsx)(y.Z,{autoComplete:n,disabled:t,label:r,onChange:function(e){H((function(n){return k(k({},n),{},(0,f.Z)({},c,e.target.value))}))},primary:!0,required:i,setContentOnMount:!0,type:o,value:(null===M||void 0===M?void 0:M[c])||""})},c)})),n===r.K8S&&(0,P.jsx)(O.Z,{mt:2,children:F})]}),U&&(0,P.jsx)(O.Z,{mt:1,children:(0,P.jsx)(x.ZP,{small:!0,warning:!0,children:"This may take up to a few minutes... Once the service is created, it may take another 5-10 minutes for the service to be accessible."})}),!U&&a&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(O.Z,{mt:1,children:(0,P.jsx)(x.ZP,{danger:!0,small:!0,children:"Failed to create instance, see error below."})}),(0,P.jsx)(O.Z,{mt:1,children:(0,P.jsx)(x.ZP,{danger:!0,small:!0,children:a})})]}),(0,P.jsx)(O.Z,{my:2,children:(0,P.jsxs)(h.Z,{children:[(0,P.jsx)(b.ZP,{background:A.a$,bold:!0,inline:!0,loading:U,onClick:function(){var e=M||{},t=e.name,r=e.container_config;if(t){var i=k({},M);i.name=function(e){return"ecs"===n?(0,N.We)(e,"_"):(0,N.We)(e,"-")}(t),i.container_config=T&&r,z({workspace:k(k({},i),{},{cluster_type:n})})}else l("Please enter a valid name!")},uuid:"workspaces/create",children:"Create"}),(0,P.jsx)(O.Z,{ml:1}),(0,P.jsx)(b.ZP,{bold:!0,inline:!0,onClick:t,uuid:"workspaces/cancel",children:"Cancel"})]})})]})})})},I=t(62084),M=t(41788),H=t(87815),L=t(3849),W=t(10503),z=t(73942),U=t(99994),F=t(65597),B=t(49125),K=t(20103),X=t(99497);function Y(e){var n=e.fetchWorkspaces,t=e.instance,r=e.clusterType,i=(0,u.useRef)(null),c=(0,u.useState)(),a=c[0],f=c[1],p=(0,u.useState)(),m=p[0],b=p[1],g=t.name,v=(t.task_arn,{cluster_type:r}),y=(0,s.Db)(S.ZP.workspaces.useUpdate(g,v),{onSuccess:function(e){return(0,E.wD)(e,{callback:function(){n(),f(!1)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;console.log(t,r)}})}}),j=(0,o.Z)(y,1)[0],Z=(0,s.Db)(S.ZP.workspaces.useDelete(g,v),{onSuccess:function(e){return(0,E.wD)(e,{callback:function(){n(),f(!1)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;console.log(t,r)}})}}),w=(0,o.Z)(Z,1)[0],_=(0,u.useMemo)((function(){var e=t.status,n=[{label:function(){return(0,P.jsx)(x.ZP,{children:"Delete workspace"})},onClick:function(){return b(!0)},uuid:"delete_workspace"}];return"ecs"===r&&("STOPPED"===e?n.unshift({label:function(){return(0,P.jsx)(x.ZP,{children:"Resume instance"})},onClick:function(){return j({workspace:{action:"resume",cluster_type:r,name:t.name,task_arn:t.task_arn}})},uuid:"resume_instance"}):"RUNNING"===e&&n.unshift({label:function(){return(0,P.jsx)(x.ZP,{children:"Stop instance"})},onClick:function(){return j({workspace:{action:"stop",cluster_type:r,name:t.name,task_arn:t.task_arn}})},uuid:"stop_instance"})),n}),[r,t,j]);return(0,P.jsx)(P.Fragment,{children:["ecs","k8s"].includes(r)&&(0,P.jsxs)("div",{ref:i,style:{position:"relative",zIndex:"1"},children:[(0,P.jsx)(l.Z,{iconOnly:!0,onClick:function(){return f(!a)},children:(0,P.jsx)(W.mH,{size:2*B.iI})}),(0,P.jsx)(d.Z,{disableEscape:!0,onClickOutside:function(){f(!1),b(!1)},open:a,children:m?(0,P.jsxs)(F.f,{leftOffset:30*-B.iI,topOffset:3*-B.iI,width:30*B.iI,children:[(0,P.jsx)(x.ZP,{children:"Are you sure you want to delete"}),(0,P.jsx)(x.ZP,{children:"this instance? You may not be"}),(0,P.jsx)(x.ZP,{children:"able to recover your data."}),(0,P.jsx)(O.Z,{mt:1}),(0,P.jsxs)(h.Z,{children:[(0,P.jsx)(l.Z,{danger:!0,onClick:w,children:"Confirm"}),(0,P.jsx)(O.Z,{ml:1}),(0,P.jsx)(l.Z,{default:!0,onClick:function(){return b(!1)},children:"Cancel"})]})]}):(0,P.jsx)(I.Z,{items:_,left:25*-B.iI,open:a,parentRef:i,topOffset:3*-B.iI,uuid:"workspaces/more_actions",width:25*B.iI})})]})})}function q(){var e=S.ZP.statuses.list().data,n=(0,u.useMemo)((function(){var n,t;return(null===e||void 0===e||null===(n=e.statuses)||void 0===n||null===(t=n[0])||void 0===t?void 0:t.instance_type)||"ecs"}),[e]),t=S.ZP.workspaces.list({cluster_type:n},{refreshInterval:1e4,revalidateOnFocus:!0}),r=t.data,i=t.mutate,c=(0,u.useMemo)((function(){var e;return null===r||void 0===r||null===(e=r.workspaces)||void 0===e?void 0:e.filter((function(e){return e.name}))}),[r]),a=(0,X.dd)((function(){return(0,P.jsx)(D,{clusterType:n,onCancel:f,onCreate:function(){i(),f()}})}),{},[n,i],{background:!0,uuid:"configure_workspace"}),s=(0,o.Z)(a,2),d=s[0],f=s[1];return(0,P.jsx)(L.Z,{breadcrumbs:[{bold:!0,label:function(){return"Workspaces"}}],pageName:K.L6.WORKSPACES,subheaderChildren:(0,P.jsx)(b.ZP,{background:U.eW,beforeElement:(0,P.jsx)(W.mm,{size:2.5*B.iI}),bold:!0,inline:!0,onClick:function(){return d()},uuid:"workspaces/new",children:"Create new workspace"}),children:(0,P.jsx)(H.Z,{columnFlex:[2,4,2,3,1,null],columns:[{uuid:"Status"},{uuid:"Instance Name"},{uuid:"Type"},{uuid:"Public IP address"},{uuid:"Open"},{label:function(){return""},uuid:"Actions"}],rows:null===c||void 0===c?void 0:c.map((function(e){var t=e.instance,r=t.ip,o=t.name,c=t.status,a=t.type,u="http://".concat(r);return"ecs"===n&&(u="http://".concat(r,":6789")),[(0,P.jsx)(l.Z,{borderRadius:z.D7,danger:"STOPPED"===c,default:"PROVISIONING"===c,notClickable:!0,padding:"6px",primary:"RUNNING"===c,warning:"PENDING"===c,children:(0,N.vg)(c)},"status"),(0,P.jsx)(x.ZP,{children:o},"name"),(0,P.jsx)(x.ZP,{children:(0,N.vg)(a)},"type"),(0,P.jsx)(x.ZP,{children:r},"ip"),(0,P.jsx)(l.Z,{disabled:!r,iconOnly:!0,onClick:function(){return window.open(u)},children:(0,P.jsx)(W.M0,{size:2*B.iI})},"open_button"),(0,P.jsx)(Y,{clusterType:n,fetchWorkspaces:i,instance:t},"more_actions")]}))})})}q.getInitialProps=(0,i.Z)(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var G=(0,M.Z)(q)},13157:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage",function(){return t(27664)}])}},function(e){e.O(0,[844,7607,8789,1424,1005,7815,7722,9774,2888,179],(function(){return n=13157,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2403],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return _}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),l=t(49894),s=t(93461),u=t(57384),a=t(41424),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var h=o.forwardRef(p),m=t(32063),y=t(85019),b=t(82531),v=t(66166),g=t(3055),j=t(49125),x=t(91427),w=t(24141);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,Z=e.afterWidthOverride,_=e.before,S=e.beforeWidth,k=e.breadcrumbs,P=e.children,C=e.errors,I=e.headerMenuItems,H=e.headerOffset,N=e.mainContainerHeader,M=e.navigationItems,D=e.setErrors,T=e.subheaderChildren,E=e.title,z=e.uuid,A=(0,w.i)().width,q="dashboard_after_width_".concat(z),W="dashboard_before_width_".concat(z),R=(0,o.useRef)(null),B=(0,o.useState)(Z?p:(0,x.U2)(q,p)),F=B[0],G=B[1],U=(0,o.useState)(!1),L=U[0],Y=U[1],Q=(0,o.useState)(_?Math.max((0,x.U2)(W,S),13*j.iI):null),X=Q[0],J=Q[1],K=(0,o.useState)(!1),V=K[0],$=K[1],ee=(0,o.useState)(null)[1],ne=b.ZP.projects.list({},{revalidateOnFocus:!1}).data,te=null===ne||void 0===ne?void 0:ne.projects,re=[];k?re.push.apply(re,(0,i.Z)(k)):(null===te||void 0===te?void 0:te.length)>=1&&re.push.apply(re,[{label:function(){var e;return null===(e=te[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return E}}]),(0,o.useEffect)((function(){null===R||void 0===R||!R.current||L||V||null===ee||void 0===ee||ee(R.current.getBoundingClientRect().width)}),[L,F,V,X,R,ee,A]),(0,o.useEffect)((function(){L||(0,x.t8)(q,F)}),[r,L,F,q]),(0,o.useEffect)((function(){V||(0,x.t8)(W,X)}),[V,X,W]);var ie=(0,v.Z)(p);return(0,o.useEffect)((function(){Z&&ie!==p&&G(p)}),[Z,p,ie]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(u.Z,{title:E}),(0,f.jsx)(a.Z,{breadcrumbs:re,menuItems:I,project:null===te||void 0===te?void 0:te[0],version:null===te||void 0===te||null===(n=te[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===M||void 0===M?void 0:M.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(y.Z,{navigationItems:M,showMore:!0})}),(0,f.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:t,afterHeightOffset:g.Mz,afterHidden:r,afterMousedownActive:L,afterWidth:F,before:_,beforeHeightOffset:g.Mz,beforeMousedownActive:V,beforeWidth:d.k1+(_?X:0),headerOffset:H,hideAfterCompletely:!0,leftOffset:_?d.k1:null,mainContainerHeader:N,mainContainerRef:R,setAfterMousedownActive:Y,setAfterWidth:G,setBeforeMousedownActive:$,setBeforeWidth:J,children:[T&&(0,f.jsx)(h,{children:T}),P]})})]}),C&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,f.jsx)(l.Z,O(O({},C),{},{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 c},W:function(){return o}});var r=t(38626),i=t(3055),o=34*t(49125).iI,c=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],i.Mz)},79585:function(e,n,t){"use strict";t.d(n,{DQ:function(){return a},HY:function(){return c},SA:function(){return d},WH:function(){return o},eC:function(){return s},fF:function(){return l},tC:function(){return u}});var r=t(81132),i=t(9736),o="Workspace",c="Preferences",l="Git settings",s="Users",u="Account",a="Profile",d=function(e){var n=e.owner,t=e.roles,d=e.project_access,f=[{linkProps:{href:"/settings/workspace/preferences"},uuid:c}];(n||t===r.No.ADMIN||0!==(2&d))&&f.push({linkProps:{href:"/settings/workspace/users"},uuid:s}),(!(0,i.YB)()||t<=r.No.EDITOR)&&f.push({linkProps:{href:"/settings/workspace/sync-data"},uuid:l});var p=[{items:f,uuid:o}];return(0,i.YB)()?p.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:a}],uuid:u}]):p}},30775:function(e,n,t){"use strict";t.d(n,{Z:function(){return O}});var r=t(1210),i=t(82394),o=t(12691),c=t.n(o),l=t(10919),s=t(86673),u=t(19711),a=t(38626),d=t(23831),f=t(49125),p=t(90880),h=(f.iI,a.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*f.iI,2.5*f.iI)),m=a.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||d.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),y=t(28598),b=t(82684);function v(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?v(Object(t),!0).forEach((function(n){(0,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 j=function(e){var n=e.isItemSelected,t=e.sections;return(0,y.jsx)(s.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,y.jsxs)(s.Z,{children:[(0,y.jsx)(h,{children:(0,y.jsx)(u.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,s=e.uuid,u=t?t():s,a=(0,y.jsx)(m,{selected:null===n||void 0===n?void 0:n(g(g({},e),{},{uuidWorkspace:i})),children:u});return r?(0,b.createElement)(c(),g(g({},r),{},{key:s,passHref:!0}),(0,y.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,sameColorAsText:!0,children:a})):(0,y.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:o,preventDefault:!0,sameColorAsText:!0,children:a},s)}))]},i)}))})},x=t(2850),w=t(79585),Z=t(9736);var O=function(e){var n=e.after,t=e.afterHidden,i=e.children,o=e.uuidItemSelected,c=e.uuidWorkspaceSelected,l=(0,Z.PR)()||{};return(0,y.jsx)(r.Z,{after:n,afterHidden:!n||t,afterWidth:n?50*f.iI:0,afterWidthOverride:!0,before:(0,y.jsx)(x.M,{children:(0,y.jsx)(j,{isItemSelected:function(e){var n=e.uuid,t=e.uuidWorkspace;return c===t&&o===n},sections:(0,w.SA)(l)})}),beforeWidth:x.W,title:"Settings",uuid:"settings/index",children:i})}},87372:function(e,n,t){"use strict";var r,i,o,c,l,s,u,a,d=t(82394),f=t(26304),p=t(26653),h=t(38626),m=t(33591),y=t(23831),b=t(2005),v=t(31012),g=t(19711),j=t(49125),x=t(86673),w=t(28598),Z=["children","condensed","inline","level","marketing","spacingBelow"];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 _(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,d.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 S=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],g.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||y.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(b.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),k=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||y.Z.content).active,";\n ")})),P=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],S,m.media.md(r||(r=(0,p.Z)(["\n ","\n "])),v.aQ),m.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),v.aQ),m.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),v.aQ)),C=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],S,v.MJ),I=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],S,m.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI),m.media.sm(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI),m.media.md(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI),m.media.lg(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI),m.media.xl(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI)),H=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],S,v.BL),N=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],S),M=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],S),D=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],S),T=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],S,(function(e){return 1===e.level&&"\n ".concat(v.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(v.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),E=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,c=e.marketing,l=e.spacingBelow,s=(0,f.Z)(e,Z);i?n=T:0===Number(o)?n=P:1===Number(o)?n=c?I:C:2===Number(o)?n=H:3===Number(o)?n=N:4===Number(o)?n=M:5===Number(o)&&(n=D);var u=(0,w.jsxs)(n,_(_({},s),{},{level:o,children:[l&&(0,w.jsx)(x.Z,{mb:r?2:3,children:t}),!l&&t]}));return i?u:(0,w.jsx)(k,{children:u})};E.defaultProps={level:3,weightStyle:6},n.Z=E},10831:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return T}});var r,i=t(77837),o=t(82394),c=t(75582),l=t(38860),s=t.n(l),u=t(82684),a=t(21764),d=t(83455),f=t(60328),p=t(38341),h=t(67971),m=t(87372),y=t(10919),b=t(41788),v=t(55378),g=t(30775),j=t(86673);!function(e){e.SSH="ssh",e.HTTPS="https"}(r||(r={}));var 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"}],w=[{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"}],Z=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",label:"Email",required:!0,uuid:"email"},{autoComplete:"access_token",label:"Access token",labelDescription:"Add your Git access token to authenticate with your provided username. The access token will be stored as a Mage secret.",required:!0,type:"password",uuid:"access_token"}],O=[{autoComplete:"branch",label:"Branch name",required:!0,uuid:"branch"}],_=t(19711),S=t(82944),k=t(82531),P=t(49125),C=t(79585),I=t(96510),H=t(28598);function N(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?N(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):N(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function D(){var e=k.ZP.syncs.list().data,n=(0,u.useState)(null),t=n[0],i=n[1],l=(0,u.useState)(null),s=l[0],b=l[1],N=(0,u.useState)(null),D=N[0],T=N[1],E=(0,u.useState)(null),z=E[0],A=E[1];(0,u.useEffect)((function(){if(e){var n,t=null===e||void 0===e||null===(n=e.syncs)||void 0===n?void 0:n[0];b(null===t||void 0===t?void 0:t.user_git_settings),i(t),A(!(null===t||void 0===t||!t.branch))}}),[e]);var q=(0,d.Db)(k.ZP.syncs.useCreate(),{onSuccess:function(e){return(0,I.wD)(e,{callback:function(e){var n=e.sync;n&&(i(n),window.location.reload(),a.Am.success("Sync saved",{position:a.Am.POSITION.BOTTOM_RIGHT,toastId:"data_sync_success"}))},onErrorCallback:function(e){var n=e.error.exception;return T(n)}})}}),W=(0,c.Z)(q,2),R=W[0],B=W[1].isLoading,F=(0,d.Db)(k.ZP.syncs.useUpdate("git"),{onSuccess:function(e){return(0,I.wD)(e,{callback:function(e){e.sync&&a.Am.success("Success!",{position:a.Am.POSITION.BOTTOM_RIGHT,toastId:"data_sync_success"})},onErrorCallback:function(e){var n=e.error.exception;return T(n)}})}}),G=(0,c.Z)(F,2),U=G[0],L=G[1].isLoading,Y=(0,u.useMemo)((function(){return(null===t||void 0===t?void 0:t.auth_type)||r.SSH}),[null===t||void 0===t?void 0:t.auth_type]),Q=(0,u.useMemo)((function(){return Y===r.HTTPS?Z:w}),[Y]),X=k.ZP.statuses.list().data,J=(0,u.useMemo)((function(){var e,n;return null===X||void 0===X||null===(e=X.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.require_user_authentication}),[X]),K=(0,u.useMemo)((function(){var e=i,n=t;return J&&(e=b,n=s),(0,H.jsx)("form",{children:Q.map((function(t){var r,i=t.autoComplete,c=t.disabled,l=t.label,s=t.labelDescription,u=t.required,a=t.type,d=t.uuid;return(0,H.jsxs)(j.Z,{mt:2,children:[s&&(0,H.jsx)(j.Z,{mb:1,children:(0,H.jsx)(_.ZP,{small:!0,children:s})}),(0,H.jsx)(S.Z,{autoComplete:i,disabled:c,label:l,onChange:function(n){e((function(e){return M(M({},e),{},(0,o.Z)({},d,n.target.value))}))},primary:!0,required:u,setContentOnMount:!0,type:a,value:(null===(r=n)||void 0===r?void 0:r[d])||""})]},d)}))})}),[Q,J,b,i,t,s]);return(0,H.jsx)(g.Z,{uuidItemSelected:C.fF,uuidWorkspaceSelected:C.WH,children:(0,H.jsxs)(j.Z,{p:P.cd,style:{width:"600px"},children:[(0,H.jsx)(m.Z,{children:"Git repository settings"}),(0,H.jsx)(j.Z,{mt:1,children:(0,H.jsx)(_.ZP,{bold:!0,children:"Authentication type"})}),(0,H.jsx)(j.Z,{mt:1,children:(0,H.jsx)(v.Z,{compact:!0,label:"Authentication type",onChange:function(e){var n=e.target.value;i((function(e){return M(M({},e),{},{auth_type:n})}))},value:Y,children:Object.entries(r).map((function(e){var n=(0,c.Z)(e,2),t=n[0],r=n[1];return(0,H.jsx)("option",{value:r,children:t},r)}))})}),(0,H.jsx)(j.Z,{mt:P.Mq,children:Y===r.SSH&&(0,H.jsxs)(_.ZP,{bold:!0,children:["You will need to ",(0,H.jsx)(y.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,H.jsx)("form",{children:x.map((function(e){var n=e.autoComplete,r=e.disabled,c=e.label,l=e.labelDescription,s=e.required,u=e.type,a=e.uuid;return(0,H.jsxs)(j.Z,{mt:2,children:[l&&(0,H.jsx)(j.Z,{mb:1,children:(0,H.jsx)(_.ZP,{small:!0,children:l})}),(0,H.jsx)(S.Z,{autoComplete:n,disabled:r,label:c,onChange:function(e){i((function(n){return M(M({},n),{},(0,o.Z)({},a,e.target.value))}))},primary:!0,required:s,setContentOnMount:!0,type:u,value:(null===t||void 0===t?void 0:t[a])||""})]},a)}))}),(0,H.jsx)(j.Z,{mt:P.Mq,children:(0,H.jsxs)(h.Z,{alignItems:"center",children:[(0,H.jsx)(j.Z,{mr:1,children:(0,H.jsx)(p.Z,{checked:!!z,onClick:function(){return A((function(e){var n=!e;return n||i((function(e){return M(M({},e),{},{branch:null,sync_on_pipeline_run:!1})})),n}))}})}),(0,H.jsxs)(_.ZP,{bold:!0,children:["Use ",(0,H.jsx)(y.Z,{bold:!0,href:"https://docs.mage.ai/production/data-sync/git#git-sync",openNewWindow:!0,children:"Git Sync"})," (Click link for more information)"]})]})}),z?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(j.Z,{mt:P.Mq,children:(0,H.jsx)(_.ZP,{bold:!0,children:"Sync with a specified branch when requested or on every trigger run. These settings will be saved at the project level."})}),(0,H.jsx)("form",{children:O.map((function(e){var n=e.autoComplete,r=e.disabled,c=e.label,l=e.required,s=e.type,u=e.uuid;return(0,H.jsx)(j.Z,{mt:2,children:(0,H.jsx)(S.Z,{autoComplete:n,disabled:r,label:c,onChange:function(e){i((function(n){return M(M({},n),{},(0,o.Z)({},u,e.target.value))}))},primary:!0,required:l,setContentOnMount:!0,type:s,value:(null===t||void 0===t?void 0:t[u])||""})},u)}))}),(0,H.jsx)(h.Z,{alignItems:"center",children:(0,H.jsx)(j.Z,{mt:2,children:(0,H.jsx)(p.Z,{checked:null===t||void 0===t?void 0:t.sync_on_pipeline_run,label:"Sync before each trigger run",onClick:function(){i((function(e){return M(M({},e),{},{sync_on_pipeline_run:!(null!==t&&void 0!==t&&t.sync_on_pipeline_run)})}))}})})}),(0,H.jsx)(j.Z,{mt:P.Mq,children:(0,H.jsx)(_.ZP,{bold:!0,children:"Configure the Git authentication credentials that will be used to sync with the specified Git repository."})}),(0,H.jsx)("form",{children:Q.map((function(e){var n=e.autoComplete,r=e.disabled,c=e.label,l=e.labelDescription,s=e.required,u=e.type,a=e.uuid;return(0,H.jsxs)(j.Z,{mt:2,children:[l&&(0,H.jsx)(j.Z,{mb:1,children:(0,H.jsx)(_.ZP,{small:!0,children:l})}),(0,H.jsx)(S.Z,{autoComplete:n,disabled:r,label:c,onChange:function(e){i((function(n){return M(M({},n),{},(0,o.Z)({},a,e.target.value))}))},primary:!0,required:s,setContentOnMount:!0,type:u,value:(null===t||void 0===t?void 0:t[a])||""})]},a)}))})]}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(j.Z,{mt:P.Mq,children:(0,H.jsx)(_.ZP,{bold:!0,children:"These fields are required to help Mage configure your Git settings. These settings will be specific to your user."})}),K]}),(0,H.jsx)(j.Z,{mt:2,children:(0,H.jsx)(f.Z,{loading:B,onClick:function(){return R({sync:M(M({},t),{},{user_git_settings:s})})},primary:!0,children:"Save repository settings"})}),D&&(0,H.jsx)(j.Z,{mt:1,children:(0,H.jsx)(_.ZP,{danger:!0,children:D})}),z&&(0,H.jsxs)(j.Z,{mt:P.HN,children:[(0,H.jsx)(m.Z,{children:"Synchronize code from remote repository"}),(0,H.jsxs)(j.Z,{mt:1,children:[(0,H.jsxs)(_.ZP,{children:["Running the sync from this page will run a one time sync with the remote repository.",(0,H.jsx)("br",{}),"This may ",(0,H.jsx)(_.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,H.jsx)(j.Z,{mt:2}),(0,H.jsxs)(_.ZP,{children:["Reset will tell Mage to try to clone your repository from remote. This will also ",(0,H.jsx)(_.ZP,{bold:!0,danger:!0,inline:!0,children:"overwrite"})," all your local changes and reset any settings you may have configured for your local Git repo. This may be helpful if you are having issues syncing your repository."]})]}),(0,H.jsx)(j.Z,{mt:2,children:(0,H.jsxs)(h.Z,{children:[(0,H.jsx)(f.Z,{loading:L,onClick:function(){return U({sync:{action_type:"sync_data"}})},warning:!0,children:"Synchronize code"}),(0,H.jsx)(j.Z,{ml:2}),(0,H.jsx)(f.Z,{danger:!0,loading:L,onClick:function(){return U({sync:{action_type:"reset"}})},children:"Reset repository"})]})})]})]})})}D.getInitialProps=(0,i.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var T=(0,b.Z)(D)},37056:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/sync-data",function(){return t(10831)}])},80022:function(e,n,t){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return r}})},15544:function(e,n,t){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}t.d(n,{Z:function(){return r}})},99177:function(e,n,t){"use strict";function r(e,n){return r=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},r(e,n)}function i(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&r(e,n)}t.d(n,{Z:function(){return i}})},93189:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var r=t(12539),i=t(80022);function o(e,n){if(n&&("object"===r(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}}},function(e){e.O(0,[844,1424,1005,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 O}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),s=t(49894),l=t(93461),u=t(57384),a=t(41424),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var h=o.forwardRef(p),m=t(32063),y=t(85019),b=t(82531),v=t(66166),g=t(3055),j=t(49125),x=t(91427),Z=t(24141);function w(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 _(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var O=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,w=e.afterWidthOverride,O=e.before,S=e.beforeWidth,k=e.breadcrumbs,P=e.children,C=e.errors,I=e.headerMenuItems,H=e.headerOffset,N=e.mainContainerHeader,M=e.navigationItems,D=e.setErrors,T=e.subheaderChildren,E=e.title,z=e.uuid,A=(0,Z.i)().width,W="dashboard_after_width_".concat(z),q="dashboard_before_width_".concat(z),R=(0,o.useRef)(null),B=(0,o.useState)(w?p:(0,x.U2)(W,p)),F=B[0],G=B[1],U=(0,o.useState)(!1),L=U[0],Y=U[1],Q=(0,o.useState)(O?Math.max((0,x.U2)(q,S),13*j.iI):null),X=Q[0],J=Q[1],K=(0,o.useState)(!1),V=K[0],$=K[1],ee=(0,o.useState)(null)[1],ne=b.ZP.projects.list({},{revalidateOnFocus:!1}).data,te=null===ne||void 0===ne?void 0:ne.projects,re=[];k?re.push.apply(re,(0,i.Z)(k)):(null===te||void 0===te?void 0:te.length)>=1&&re.push.apply(re,[{label:function(){var e;return null===(e=te[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return E}}]),(0,o.useEffect)((function(){null===R||void 0===R||!R.current||L||V||null===ee||void 0===ee||ee(R.current.getBoundingClientRect().width)}),[L,F,V,X,R,ee,A]),(0,o.useEffect)((function(){L||(0,x.t8)(W,F)}),[r,L,F,W]),(0,o.useEffect)((function(){V||(0,x.t8)(q,X)}),[V,X,q]);var ie=(0,v.Z)(p);return(0,o.useEffect)((function(){w&&ie!==p&&G(p)}),[w,p,ie]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(u.Z,{title:E}),(0,f.jsx)(a.Z,{breadcrumbs:re,menuItems:I,project:null===te||void 0===te?void 0:te[0],version:null===te||void 0===te||null===(n=te[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===M||void 0===M?void 0:M.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(y.Z,{navigationItems:M,showMore:!0})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:t,afterHeightOffset:g.Mz,afterHidden:r,afterMousedownActive:L,afterWidth:F,before:O,beforeHeightOffset:g.Mz,beforeMousedownActive:V,beforeWidth:d.k1+(O?X:0),headerOffset:H,hideAfterCompletely:!0,leftOffset:O?d.k1:null,mainContainerHeader:N,mainContainerRef:R,setAfterMousedownActive:Y,setAfterWidth:G,setBeforeMousedownActive:$,setBeforeWidth:J,children:[T&&(0,f.jsx)(h,{children:T}),P]})})]}),C&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,f.jsx)(s.Z,_(_({},C),{},{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 c},W:function(){return o}});var r=t(38626),i=t(3055),o=34*t(49125).iI,c=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],i.Mz)},79585:function(e,n,t){"use strict";t.d(n,{DQ:function(){return a},HY:function(){return c},SA:function(){return d},WH:function(){return o},eC:function(){return l},fF:function(){return s},tC:function(){return u}});var r=t(81132),i=t(9736),o="Workspace",c="Preferences",s="Git settings",l="Users",u="Account",a="Profile",d=function(e){var n=e.owner,t=e.roles,d=e.project_access,f=[{linkProps:{href:"/settings/workspace/preferences"},uuid:c}];(n||t===r.No.ADMIN||0!==(2&d))&&f.push({linkProps:{href:"/settings/workspace/users"},uuid:l}),(!(0,i.YB)()||t<=r.No.EDITOR)&&f.push({linkProps:{href:"/settings/workspace/sync-data"},uuid:s});var p=[{items:f,uuid:o}];return(0,i.YB)()?p.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:a}],uuid:u}]):p}},30775:function(e,n,t){"use strict";t.d(n,{Z:function(){return _}});var r=t(1210),i=t(82394),o=t(12691),c=t.n(o),s=t(10919),l=t(86673),u=t(19711),a=t(38626),d=t(23831),f=t(49125),p=t(90880),h=(f.iI,a.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*f.iI,2.5*f.iI)),m=a.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||d.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),y=t(28598),b=t(82684);function v(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?v(Object(t),!0).forEach((function(n){(0,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 j=function(e){var n=e.isItemSelected,t=e.sections;return(0,y.jsx)(l.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,y.jsxs)(l.Z,{children:[(0,y.jsx)(h,{children:(0,y.jsx)(u.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,l=e.uuid,u=t?t():l,a=(0,y.jsx)(m,{selected:null===n||void 0===n?void 0:n(g(g({},e),{},{uuidWorkspace:i})),children:u});return r?(0,b.createElement)(c(),g(g({},r),{},{key:l,passHref:!0}),(0,y.jsx)(s.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,sameColorAsText:!0,children:a})):(0,y.jsx)(s.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:o,preventDefault:!0,sameColorAsText:!0,children:a},l)}))]},i)}))})},x=t(2850),Z=t(79585),w=t(9736);var _=function(e){var n=e.after,t=e.afterHidden,i=e.children,o=e.uuidItemSelected,c=e.uuidWorkspaceSelected,s=(0,w.PR)()||{};return(0,y.jsx)(r.Z,{after:n,afterHidden:!n||t,afterWidth:n?50*f.iI:0,afterWidthOverride:!0,before:(0,y.jsx)(x.M,{children:(0,y.jsx)(j,{isItemSelected:function(e){var n=e.uuid,t=e.uuidWorkspace;return c===t&&o===n},sections:(0,Z.SA)(s)})}),beforeWidth:x.W,title:"Settings",uuid:"settings/index",children:i})}},87372:function(e,n,t){"use strict";var r,i,o,c,s,l,u,a,d=t(82394),f=t(26304),p=t(26653),h=t(38626),m=t(33591),y=t(23831),b=t(2005),v=t(31012),g=t(19711),j=t(49125),x=t(86673),Z=t(28598),w=["children","condensed","inline","level","marketing","spacingBelow"];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 O(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,d.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 S=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],g.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||y.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(b.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),k=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||y.Z.content).active,";\n ")})),P=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],S,m.media.md(r||(r=(0,p.Z)(["\n ","\n "])),v.aQ),m.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),v.aQ),m.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),v.aQ)),C=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],S,v.MJ),I=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],S,m.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI),m.media.sm(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI),m.media.md(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI),m.media.lg(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI),m.media.xl(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI)),H=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],S,v.BL),N=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],S),M=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],S),D=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],S),T=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],S,(function(e){return 1===e.level&&"\n ".concat(v.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(v.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),E=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,c=e.marketing,s=e.spacingBelow,l=(0,f.Z)(e,w);i?n=T:0===Number(o)?n=P:1===Number(o)?n=c?I:C:2===Number(o)?n=H:3===Number(o)?n=N:4===Number(o)?n=M:5===Number(o)&&(n=D);var u=(0,Z.jsxs)(n,O(O({},l),{},{level:o,children:[s&&(0,Z.jsx)(x.Z,{mb:r?2:3,children:t}),!s&&t]}));return i?u:(0,Z.jsx)(k,{children:u})};E.defaultProps={level:3,weightStyle:6},n.Z=E},10831:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return T}});var r,i=t(77837),o=t(82394),c=t(75582),s=t(38860),l=t.n(s),u=t(82684),a=t(21764),d=t(83455),f=t(60328),p=t(38341),h=t(67971),m=t(87372),y=t(10919),b=t(41788),v=t(55378),g=t(30775),j=t(86673);!function(e){e.SSH="ssh",e.HTTPS="https"}(r||(r={}));var 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"}],Z=[{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"}],w=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",label:"Email",required:!0,uuid:"email"},{autoComplete:"access_token",label:"Access token",labelDescription:"Add your Git access token to authenticate with your provided username. The access token will be stored as a Mage secret.",required:!0,type:"password",uuid:"access_token"}],_=[{autoComplete:"branch",label:"Branch name",required:!0,uuid:"branch"}],O=t(19711),S=t(82944),k=t(82531),P=t(49125),C=t(79585),I=t(96510),H=t(28598);function N(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?N(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):N(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function D(){var e=k.ZP.syncs.list().data,n=(0,u.useState)(null),t=n[0],i=n[1],s=(0,u.useState)(null),l=s[0],b=s[1],N=(0,u.useState)(null),D=N[0],T=N[1],E=(0,u.useState)(null),z=E[0],A=E[1];(0,u.useEffect)((function(){if(e){var n,t=null===e||void 0===e||null===(n=e.syncs)||void 0===n?void 0:n[0];b(null===t||void 0===t?void 0:t.user_git_settings),i(t),A(!(null===t||void 0===t||!t.branch))}}),[e]);var W=(0,d.Db)(k.ZP.syncs.useCreate(),{onSuccess:function(e){return(0,I.wD)(e,{callback:function(e){var n=e.sync;n&&(i(n),window.location.reload(),a.Am.success("Sync saved",{position:a.Am.POSITION.BOTTOM_RIGHT,toastId:"data_sync_success"}))},onErrorCallback:function(e){var n=e.error.exception;return T(n)}})}}),q=(0,c.Z)(W,2),R=q[0],B=q[1].isLoading,F=(0,d.Db)(k.ZP.syncs.useUpdate("git"),{onSuccess:function(e){return(0,I.wD)(e,{callback:function(e){e.sync&&a.Am.success("Success!",{position:a.Am.POSITION.BOTTOM_RIGHT,toastId:"data_sync_success"})},onErrorCallback:function(e){var n=e.error.exception;return T(n)}})}}),G=(0,c.Z)(F,2),U=G[0],L=G[1].isLoading,Y=(0,u.useMemo)((function(){return(null===t||void 0===t?void 0:t.auth_type)||r.SSH}),[null===t||void 0===t?void 0:t.auth_type]),Q=(0,u.useMemo)((function(){return Y===r.HTTPS?w:Z}),[Y]),X=k.ZP.statuses.list().data,J=(0,u.useMemo)((function(){var e,n;return null===X||void 0===X||null===(e=X.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.require_user_authentication}),[X]),K=(0,u.useMemo)((function(){var e=i,n=t;return J&&(e=b,n=l),(0,H.jsx)("form",{children:Q.map((function(t){var r,i=t.autoComplete,c=t.disabled,s=t.label,l=t.labelDescription,u=t.required,a=t.type,d=t.uuid;return(0,H.jsxs)(j.Z,{mt:2,children:[l&&(0,H.jsx)(j.Z,{mb:1,children:(0,H.jsx)(O.ZP,{small:!0,children:l})}),(0,H.jsx)(S.Z,{autoComplete:i,disabled:c,label:s,onChange:function(n){e((function(e){return M(M({},e),{},(0,o.Z)({},d,n.target.value))}))},primary:!0,required:u,setContentOnMount:!0,type:a,value:(null===(r=n)||void 0===r?void 0:r[d])||""})]},d)}))})}),[Q,J,b,i,t,l]);return(0,H.jsx)(g.Z,{uuidItemSelected:C.fF,uuidWorkspaceSelected:C.WH,children:(0,H.jsxs)(j.Z,{p:P.cd,style:{width:"600px"},children:[(0,H.jsx)(m.Z,{children:"Git repository settings"}),(0,H.jsx)(j.Z,{mt:1,children:(0,H.jsx)(O.ZP,{bold:!0,children:"Authentication type"})}),(0,H.jsx)(j.Z,{mt:1,children:(0,H.jsx)(v.Z,{compact:!0,label:"Authentication type",onChange:function(e){var n=e.target.value;i((function(e){return M(M({},e),{},{auth_type:n})}))},value:Y,children:Object.entries(r).map((function(e){var n=(0,c.Z)(e,2),t=n[0],r=n[1];return(0,H.jsx)("option",{value:r,children:t},r)}))})}),(0,H.jsx)(j.Z,{mt:P.Mq,children:Y===r.SSH&&(0,H.jsxs)(O.ZP,{bold:!0,children:["You will need to ",(0,H.jsx)(y.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,H.jsx)("form",{children:x.map((function(e){var n=e.autoComplete,r=e.disabled,c=e.label,s=e.labelDescription,l=e.required,u=e.type,a=e.uuid;return(0,H.jsxs)(j.Z,{mt:2,children:[s&&(0,H.jsx)(j.Z,{mb:1,children:(0,H.jsx)(O.ZP,{small:!0,children:s})}),(0,H.jsx)(S.Z,{autoComplete:n,disabled:r,label:c,onChange:function(e){i((function(n){return M(M({},n),{},(0,o.Z)({},a,e.target.value))}))},primary:!0,required:l,setContentOnMount:!0,type:u,value:(null===t||void 0===t?void 0:t[a])||""})]},a)}))}),(0,H.jsx)(j.Z,{mt:P.Mq,children:(0,H.jsxs)(h.Z,{alignItems:"center",children:[(0,H.jsx)(j.Z,{mr:1,children:(0,H.jsx)(p.Z,{checked:!!z,onClick:function(){return A((function(e){var n=!e;return n||i((function(e){return M(M({},e),{},{branch:null,sync_on_pipeline_run:!1,sync_on_start:!1})})),n}))}})}),(0,H.jsxs)(O.ZP,{bold:!0,children:["Use ",(0,H.jsx)(y.Z,{bold:!0,href:"https://docs.mage.ai/production/data-sync/git#git-sync",openNewWindow:!0,children:"Git Sync"})," (Click link for more information)"]})]})}),z?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(j.Z,{mt:P.Mq,children:(0,H.jsx)(O.ZP,{bold:!0,children:"Sync with a specified branch. These settings will be saved at the project level."})}),(0,H.jsx)("form",{children:_.map((function(e){var n=e.autoComplete,r=e.disabled,c=e.label,s=e.required,l=e.type,u=e.uuid;return(0,H.jsx)(j.Z,{mt:2,children:(0,H.jsx)(S.Z,{autoComplete:n,disabled:r,label:c,onChange:function(e){i((function(n){return M(M({},n),{},(0,o.Z)({},u,e.target.value))}))},primary:!0,required:s,setContentOnMount:!0,type:l,value:(null===t||void 0===t?void 0:t[u])||""})},u)}))}),(0,H.jsx)(h.Z,{alignItems:"center",children:(0,H.jsx)(j.Z,{mt:2,children:(0,H.jsx)(p.Z,{checked:null===t||void 0===t?void 0:t.sync_on_pipeline_run,label:"Sync before each trigger run",onClick:function(){i((function(e){return M(M({},e),{},{sync_on_pipeline_run:!(null!==t&&void 0!==t&&t.sync_on_pipeline_run)})}))}})})}),(0,H.jsx)(h.Z,{alignItems:"center",children:(0,H.jsx)(j.Z,{mt:2,children:(0,H.jsx)(p.Z,{checked:null===t||void 0===t?void 0:t.sync_on_start,label:"Sync on server start up",onClick:function(){i((function(e){return M(M({},e),{},{sync_on_start:!(null!==t&&void 0!==t&&t.sync_on_start)})}))}})})}),(0,H.jsx)(j.Z,{mt:P.Mq,children:(0,H.jsx)(O.ZP,{bold:!0,children:"Configure the Git authentication credentials that will be used to sync with the specified Git repository."})}),(0,H.jsx)("form",{children:Q.map((function(e){var n=e.autoComplete,r=e.disabled,c=e.label,s=e.labelDescription,l=e.required,u=e.type,a=e.uuid;return(0,H.jsxs)(j.Z,{mt:2,children:[s&&(0,H.jsx)(j.Z,{mb:1,children:(0,H.jsx)(O.ZP,{small:!0,children:s})}),(0,H.jsx)(S.Z,{autoComplete:n,disabled:r,label:c,onChange:function(e){i((function(n){return M(M({},n),{},(0,o.Z)({},a,e.target.value))}))},primary:!0,required:l,setContentOnMount:!0,type:u,value:(null===t||void 0===t?void 0:t[a])||""})]},a)}))})]}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(j.Z,{mt:P.Mq,children:(0,H.jsx)(O.ZP,{bold:!0,children:"These fields are required to help Mage configure your Git settings. These settings will be specific to your user."})}),K]}),(0,H.jsx)(j.Z,{mt:2,children:(0,H.jsx)(f.Z,{loading:B,onClick:function(){return R({sync:M(M({},t),{},{user_git_settings:l})})},primary:!0,children:"Save repository settings"})}),D&&(0,H.jsx)(j.Z,{mt:1,children:(0,H.jsx)(O.ZP,{danger:!0,children:D})}),z&&(0,H.jsxs)(j.Z,{mt:P.HN,children:[(0,H.jsx)(m.Z,{children:"Synchronize code from remote repository"}),(0,H.jsxs)(j.Z,{mt:1,children:[(0,H.jsxs)(O.ZP,{children:["Running the sync from this page will run a one time sync with the remote repository.",(0,H.jsx)("br",{}),"This may ",(0,H.jsx)(O.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,H.jsx)(j.Z,{mt:2}),(0,H.jsxs)(O.ZP,{children:["Reset will tell Mage to try to clone your repository from remote. This will also ",(0,H.jsx)(O.ZP,{bold:!0,danger:!0,inline:!0,children:"overwrite"})," all your local changes and reset any settings you may have configured for your local Git repo. This may be helpful if you are having issues syncing your repository."]})]}),(0,H.jsx)(j.Z,{mt:2,children:(0,H.jsxs)(h.Z,{children:[(0,H.jsx)(f.Z,{loading:L,onClick:function(){return U({sync:{action_type:"sync_data"}})},warning:!0,children:"Synchronize code"}),(0,H.jsx)(j.Z,{ml:2}),(0,H.jsx)(f.Z,{danger:!0,loading:L,onClick:function(){return U({sync:{action_type:"reset"}})},children:"Reset repository"})]})})]})]})})}D.getInitialProps=(0,i.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 T=(0,b.Z)(D)},37056:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/sync-data",function(){return t(10831)}])},80022:function(e,n,t){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return r}})},15544:function(e,n,t){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}t.d(n,{Z:function(){return r}})},99177:function(e,n,t){"use strict";function r(e,n){return r=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},r(e,n)}function i(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&r(e,n)}t.d(n,{Z:function(){return i}})},93189:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var r=t(12539),i=t(80022);function o(e,n){if(n&&("object"===r(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}}},function(e){e.O(0,[844,1424,1005,9774,2888,179],(function(){return n=37056,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1312],{76096:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=(t(82684),t(33591)),c=t(28598),l=["children","fullHeight","gutter","style"];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 u(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.fullHeight,r=e.gutter,a=e.style,s=void 0===a?{}:a,f=(0,i.Z)(e,l),d=u({},s);return r&&(d.paddingLeft=r,d.paddingRight=d.paddingLeft),t&&(d.height="100%"),(0,c.jsx)(o.Col,u(u({},f),{},{style:d,children:n}))}},97361:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(33591),l=t(28598),a=["children","fullHeight","gutter","justifyContent","style"];function u(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?u(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(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.fullHeight,r=e.gutter,u=e.justifyContent,f=e.style,d=void 0===f?{}:f,p=(0,i.Z)(e,a),h=s({},d);return r&&(h.marginLeft=-1*r,h.marginRight=h.marginLeft),t&&(h.height="100%"),(0,l.jsx)(c.Row,s(s({},p),{},{justifyContent:u,style:h,children:o.Children.map(n,(function(e,n){return e&&o.cloneElement(e,{gutter:r,key:n})}))}))}},55022:function(e,n,t){"use strict";var r;t.d(n,{G:function(){return r}}),function(e){e.ACTIVE_DIRECTORY="active_directory",e.GITHUB="github"}(r||(r={}))},87372:function(e,n,t){"use strict";var r,i,o,c,l,a,u,s,f=t(82394),d=t(26304),p=t(26653),h=t(38626),g=t(33591),m=t(23831),y=t(2005),b=t(31012),j=t(19711),O=t(49125),w=t(86673),x=t(28598),v=["children","condensed","inline","level","marketing","spacingBelow"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,f.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],j.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 "})),_=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 ")})),S=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],C,g.media.md(r||(r=(0,p.Z)(["\n ","\n "])),b.aQ),g.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),b.aQ),g.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),b.aQ)),I=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],C,b.MJ),k=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],C,g.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),g.media.sm(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),g.media.md(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),g.media.lg(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),g.media.xl(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI)),N=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],C,b.BL),z=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],C),H=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],C),D=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],C),E=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],C,(function(e){return 1===e.level&&"\n ".concat(b.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(b.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 "})),M=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,c=e.marketing,l=e.spacingBelow,a=(0,d.Z)(e,v);i?n=E:0===Number(o)?n=S:1===Number(o)?n=c?k:I:2===Number(o)?n=N:3===Number(o)?n=z:4===Number(o)?n=H:5===Number(o)&&(n=D);var u=(0,x.jsxs)(n,P(P({},a),{},{level:o,children:[l&&(0,x.jsx)(w.Z,{mb:r?2:3,children:t}),!l&&t]}));return i?u:(0,x.jsx)(_,{children:u})};M.defaultProps={level:3,weightStyle:6},n.Z=M},71208:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return $}});var r=t(77837),i=t(38860),o=t.n(i),c=t(82394),l=t(57384),a=t(41424),u=t(33591),s=t(86673),f=t(49125),d=t(28598);var p=function(e){var n=e.children,t=e.width,r=void 0===t?12:t;return(0,d.jsx)(s.Z,{px:f.zC,children:(0,d.jsx)(u.Row,{children:(0,d.jsx)(u.Col,{lg:r,md:Math.min(12,Math.round(1.5*(12-r))),sm:Math.min(12,Math.round(1.75*(12-r))),xs:12,children:n})})})},h=t(38626),g=t(3055),m=h.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-jcgu5l-0"})(["padding-top:","px;",""],g.Mz,(function(e){return e.fullHeight&&"\n height: calc(100vh);\n "}));function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var j=function(e){var n=e.children,t=e.headerProps,r=e.title;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(l.Z,{title:r}),(0,d.jsx)(a.Z,b({},t)),(0,d.jsx)(p,{children:(0,d.jsx)(m,{fullHeight:!0,children:n})})]})},O=t(75582),w=t(82684),x=t(83455),v=t(34376),Z=t(35490),P=t(67971),C=t(87372),_=t(11135),S=t(19711),I=t(82944),k=t(82531),N=t(23831),z=t(73942),H=h.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-641xul-0"})(["border-radius:","px;padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;width:100%;",""],z.TR,21*f.iI,f.Vj,f.Vj,f.Vj,(function(e){return"\n background-color: ".concat((e.theme.background||N.Z.background).panel,";\n ")})),D=h.default.div.withConfig({displayName:"indexstyle__BackgroundImageStyle",componentId:"sc-641xul-1"})(["border-radius:","px;font-size:0;overflow:hidden;",""],z.D7,(function(e){return e.src&&"\n background-image: url(".concat(e.src,");\n background-size: cover;\n background-repeat: no-repeat;\n height: 100%;\n width: 100%;\n ")})),E=t(76096),M=t(97361),R=E.Z,L=M.Z,T=t(16115),V=t(7715),F=t(96510),B=t(51504),G=t(59e3),U=t(9736),X=t(10503),A=t(55022);function Q(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Q(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Q(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var J="email",W="password";var q=function(e){var n=e.title,t=(0,v.useRouter)(),r=(0,w.useState)(null),i=r[0],o=r[1],l=(0,w.useState)({}),a=l[0],u=l[1],p=(0,x.Db)(k.ZP.sessions.useCreate(),{onSuccess:function(e){return(0,F.wD)(e,{callback:function(e){var n=e.session,r=n.token,i=n.user;(0,U.av)(i),Z.Z.storeToken(r,(function(){var e="/",n=(0,G.iV)(window.location.href);n.redirect_url&&(e="".concat(n.redirect_url,"?").concat((0,G.uM)((0,V.gR)(n,["redirect_url"])))),t.push(e)}))},onErrorCallback:function(e){var n=e.error;o(n)}})}}),h=(0,O.Z)(p,2),g=h[0],m=h[1].isLoading,y=(0,w.useCallback)((function(e){return Z.Z.logout((function(){return g(e)}))}),[g]),b=k.ZP.oauths.detail(A.G.ACTIVE_DIRECTORY,{redirect_uri:encodeURIComponent(window.location.href)}).data,j=(0,w.useMemo)((function(){var e;return null===b||void 0===b||null===(e=b.oauth)||void 0===e?void 0:e.url}),[b]),N=(0,G.iV)()||{},z=N.access_token,E=N.provider;return(0,w.useEffect)((function(){var e;z&&E&&y({session:(e={},(0,c.Z)(e,"provider",E),(0,c.Z)(e,"token",z),e)})}),[z,y,E]),(0,d.jsxs)(L,{fullHeight:!0,children:[(0,d.jsx)(R,{lg:6,md:12,children:(0,d.jsx)(P.Z,{flexDirection:"column",fullHeight:!0,fullWidth:!0,justifyContent:"center",children:(0,d.jsx)(s.Z,{px:{xl:5*f.zC,xs:f.zC},py:f.zC,children:(0,d.jsxs)(H,{children:[(0,d.jsx)(C.Z,{yellow:!0,children:n}),(0,d.jsxs)("form",{children:[(0,d.jsxs)(s.Z,{mt:3,children:[(0,d.jsx)(I.Z,{autoComplete:"username",label:"Email",large:!0,meta:{error:" ",touched:!!i},onChange:function(e){return u((function(n){return Y(Y({},n),{},(0,c.Z)({},J,e.target.value))}))},primary:!i,value:a.email}),(0,d.jsx)(s.Z,{mt:2,children:(0,d.jsx)(I.Z,{autoComplete:"current-password",label:"Password",large:!0,meta:{error:" ",touched:!!i},onChange:function(e){return u((function(n){return Y(Y({},n),{},(0,c.Z)({},W,e.target.value))}))},primary:!i,type:"password",value:a.password})})]}),i&&(0,d.jsx)(s.Z,{mt:2,children:(0,d.jsx)(S.ZP,{danger:!0,children:i.message})}),(0,d.jsx)(s.Z,{mt:3,children:(0,d.jsx)(_.ZP,{bold:!0,inline:!0,keyTextGroups:[[T.Lz]],keyboardShortcutValidation:function(e){var n=e.keyMapping;return(0,B.y)([T.Uq],n)},large:!0,loading:m,noHoverUnderline:!0,onClick:function(){return y({session:a})},selected:!0,uuid:"SignForm/action",wind:!0,children:"Sign into Mage"})}),j&&(0,d.jsx)(s.Z,{mt:4,children:(0,d.jsx)(_.ZP,{beforeElement:(0,d.jsx)(X.Dg,{size:2*f.iI}),bold:!0,inline:!0,onClick:function(){return t.push(j)},uuid:"SignForm/active_directory",children:"Sign in with Microsoft"})})]})]})})})}),(0,d.jsx)(R,{hiddenLgDown:!0,lg:6,style:{flex:1},children:(0,d.jsx)(s.Z,{fullHeight:!0,fullWidth:!0,px:f.zC,py:f.zC+8,children:(0,d.jsx)(D,{src:"/images/sessions/abstract.png",children:"Sign in abstract image"})})})]})};function K(){return(0,d.jsx)(j,{title:"Sign in",children:(0,d.jsx)(q,{title:"\ud83d\udc4b Sign in"})})}K.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)})));var $=K},6821:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/sign-in",function(){return t(71208)}])}},function(e){e.O(0,[844,1424,9774,2888,179],(function(){return n=6821,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2858],{1210:function(e,n,r){"use strict";r.d(n,{Z:function(){return k}});var o=r(82394),t=r(21831),i=r(82684),l=r(47999),c=r(49894),s=r(93461),d=r(57384),u=r(41424),a=r(72454),h=r(28598);function f(e,n){var r=e.children;return(0,h.jsx)(a.HS,{ref:n,children:r})}var m=i.forwardRef(f),v=r(32063),j=r(85019),x=r(82531),b=r(66166),g=r(3055),p=r(49125),Z=r(91427),w=r(24141);function C(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,o)}return r}function y(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?C(Object(r),!0).forEach((function(n){(0,o.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var k=function(e){var n,r=e.after,o=e.afterHidden,f=e.afterWidth,C=e.afterWidthOverride,k=e.before,P=e.beforeWidth,_=e.breadcrumbs,I=e.children,O=e.errors,S=e.headerMenuItems,M=e.headerOffset,D=e.mainContainerHeader,B=e.navigationItems,F=e.setErrors,E=e.subheaderChildren,H=e.title,N=e.uuid,U=(0,w.i)().width,A="dashboard_after_width_".concat(N),T="dashboard_before_width_".concat(N),R=(0,i.useRef)(null),G=(0,i.useState)(C?f:(0,Z.U2)(A,f)),q=G[0],V=G[1],z=(0,i.useState)(!1),L=z[0],W=z[1],Q=(0,i.useState)(k?Math.max((0,Z.U2)(T,P),13*p.iI):null),K=Q[0],X=Q[1],Y=(0,i.useState)(!1),J=Y[0],$=Y[1],ee=(0,i.useState)(null)[1],ne=x.ZP.projects.list({},{revalidateOnFocus:!1}).data,re=null===ne||void 0===ne?void 0:ne.projects,oe=[];_?oe.push.apply(oe,(0,t.Z)(_)):(null===re||void 0===re?void 0:re.length)>=1&&oe.push.apply(oe,[{label:function(){var e;return null===(e=re[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return H}}]),(0,i.useEffect)((function(){null===R||void 0===R||!R.current||L||J||null===ee||void 0===ee||ee(R.current.getBoundingClientRect().width)}),[L,q,J,K,R,ee,U]),(0,i.useEffect)((function(){L||(0,Z.t8)(A,q)}),[o,L,q,A]),(0,i.useEffect)((function(){J||(0,Z.t8)(T,K)}),[J,K,T]);var te=(0,b.Z)(f);return(0,i.useEffect)((function(){C&&te!==f&&V(f)}),[C,f,te]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(d.Z,{title:H}),(0,h.jsx)(u.Z,{breadcrumbs:oe,menuItems:S,project:null===re||void 0===re?void 0:re[0],version:null===re||void 0===re||null===(n=re[0])||void 0===n?void 0:n.version}),(0,h.jsxs)(a.Nk,{children:[0!==(null===B||void 0===B?void 0:B.length)&&(0,h.jsx)(a.lm,{showMore:!0,children:(0,h.jsx)(j.Z,{navigationItems:B,showMore:!0})}),(0,h.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,h.jsxs)(v.Z,{after:r,afterHeightOffset:g.Mz,afterHidden:o,afterMousedownActive:L,afterWidth:q,before:k,beforeHeightOffset:g.Mz,beforeMousedownActive:J,beforeWidth:a.k1+(k?K:0),headerOffset:M,hideAfterCompletely:!0,leftOffset:k?a.k1:null,mainContainerHeader:D,mainContainerRef:R,setAfterMousedownActive:W,setAfterWidth:V,setBeforeMousedownActive:$,setBeforeWidth:X,children:[E&&(0,h.jsx)(m,{children:E}),I]})})]}),O&&(0,h.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===F||void 0===F?void 0:F(null)},children:(0,h.jsx)(c.Z,y(y({},O),{},{onClose:function(){return null===F||void 0===F?void 0:F(null)}}))})]})}},55022:function(e,n,r){"use strict";var o;r.d(n,{G:function(){return o}}),function(e){e.ACTIVE_DIRECTORY="active_directory",e.GITHUB="github"}(o||(o={}))},32316:function(e,n,r){"use strict";r.d(n,{Z:function(){return j}});var o=r(82684),t=r(60328),i=r(67971),l=r(882),c=r(86673),s=r(19711),d=r(99994),u=r(38626),a=r(49125),h=r(37391),f=u.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],a.cd*a.iI,a.cd*a.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.allowScroll&&"\n overflow: auto;\n "}),h.w5),m=r(66653),v=r(28598);var j=function(e){var n=e.allowScroll,r=e.compact,u=e.contained,h=e.noPadding,j=e.onClickTab,x=e.selectedTabUUID,b=e.small,g=e.tabs,p=(0,o.useMemo)((function(){var e=g.length,n=[];return g.forEach((function(o,u){var h=o.Icon,f=o.IconSelected,g=o.label,p=o.uuid,Z=p===x,w=Z&&f||h,C=g?g():p,y=(0,v.jsxs)(i.Z,{alignItems:"center",children:[w&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(w,{default:!Z,size:2*a.iI}),(0,v.jsx)(c.Z,{mr:1})]}),(0,v.jsx)(s.ZP,{bold:!0,default:!Z,noWrapping:!0,small:!0,children:C})]});u>=1&&e>=2&&n.push((0,v.jsx)("div",{style:{marginLeft:1.5*a.iI}},"spacing-".concat(p))),Z?n.push((0,v.jsx)(l.Z,{backgroundGradient:d.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:r||b,onClick:function(e){(0,m.j)(e),j(o)},paddingUnitsHorizontal:1.75,paddingUnitsVertical:1.25,small:b,children:y},p)):n.push((0,v.jsx)("div",{style:{padding:2},children:(0,v.jsx)(t.Z,{borderLess:!0,compact:r||b,default:!0,onClick:function(e){(0,m.j)(e),j(o)},outline:!0,small:b,children:y})},"button-tab-".concat(p)))})),n}),[r,j,x,b,g]),Z=(0,v.jsx)(i.Z,{alignItems:"center",children:p});return u?Z:(0,v.jsx)(f,{allowScroll:n,noPadding:h,children:Z})}},92589:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return Pe}});var o=r(77837),t=r(38860),i=r.n(t),l=r(41788),c=r(82394),s=r(75582),d=r(54407),u=r.n(d),a=r(82684),h=r(83455),f=r(60328),m=r(34744),v=r(67971),j=r(87372),x=r(55378),b=r(86673),g=r(54283),p=r(19711),Z=r(38435),w=r(82944),C=r(46261),y=r(82531),k=r(10503),P="delete",_="merge",I="pull",O="push",S="rebase",M="git_remote_name",D="git_repository_name",B={uuid:"Branches"},F={uuid:"Files"},E={uuid:"Push"},H={uuid:"Setup"},N=[H,B,F,E],U=r(49125),A=r(90211),T=r(91427),R=r(96510),G=r(28598);var q=function(e){var n=e.branch,r=e.branches,o=e.fetchBranch,t=e.fetchBranches,i=e.remotes,l=e.showError,d=(0,a.useState)(""),u=d[0],I=d[1],O=(0,a.useState)(null),D=O[0],B=O[1],E=(0,a.useState)(null),N=E[0],q=E[1],V=(0,a.useState)((0,T.U2)(M,"")),z=V[0],L=V[1],W=(0,a.useCallback)((function(e){(0,T.t8)(M,e),L(e)}),[]),Q=(0,a.useState)(null),K=Q[0],X=Q[1],Y=(0,a.useState)(""),J=Y[0],$=Y[1],ee=(0,a.useMemo)((function(){return null===i||void 0===i?void 0:i.find((function(e){return e.name===z}))}),[z,i]),ne=(0,a.useMemo)((function(){return(null===r||void 0===r?void 0:r.concat((null===ee||void 0===ee?void 0:ee.refs)||[]))||[]}),[r,ee]),re=(0,h.Db)(y.ZP.git_branches.useCreate(),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){o(),t(),$("")},onErrorCallback:function(e,n){return l({errors:n,response:e})}})}}),oe=(0,s.Z)(re,2),te=oe[0],ie=oe[1].isLoading,le=(0,h.Db)(y.ZP.git_branches.useCreate(),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){o()},onErrorCallback:function(e,n){return l({errors:n,response:e})}})}}),ce=(0,s.Z)(le,2),se=ce[0],de=ce[1].isLoading,ue=(0,h.Db)(y.ZP.git_branches.useUpdate(null===n||void 0===n?void 0:n.name),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(e){var n=e.git_branch.progress;o(),I(""),B(""),q(n),X("")},onErrorCallback:function(e,n){return l({errors:n,response:e})}})}}),ae=(0,s.Z)(ue,2),he=ae[0],fe=ae[1].isLoading;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(b.Z,{mb:U.HN,children:[(0,G.jsxs)(j.Z,{children:["Branches",ne?" (".concat(null===ne||void 0===ne?void 0:ne.length,")"):""]}),(0,G.jsx)(b.Z,{mt:U.Mq,children:(0,G.jsxs)(v.Z,{children:[(0,G.jsxs)("div",{children:[(0,G.jsx)(b.Z,{mb:1,children:(0,G.jsx)(p.ZP,{bold:!0,muted:!0,children:"Remote"})}),(0,G.jsx)(x.Z,{beforeIcon:(0,G.jsx)(k.VW,{}),beforeIconSize:1.5*U.iI,monospace:!0,onChange:function(e){return W(e.target.value)},placeholder:"Choose a remote",value:z||"",children:null===i||void 0===i?void 0:i.map((function(e){var n=e.name;return(0,G.jsx)("option",{value:n,children:n},n)}))})]}),(0,G.jsx)(b.Z,{mr:1}),(0,G.jsxs)("div",{children:[(0,G.jsx)(b.Z,{mb:1,children:(0,G.jsx)(p.ZP,{bold:!0,muted:!0,children:"Current branch"})}),(0,G.jsxs)(v.Z,{alignItems:"center",children:[(0,G.jsx)(C.Z,{fullSize:!0,label:"Choose a different branch to switch branches",widthFitContent:!0,children:(0,G.jsx)(x.Z,{beforeIcon:(0,G.jsx)(k.I0,{muted:!1}),beforeIconSize:2*U.iI,monospace:!0,onChange:function(e){return se({git_branch:{name:e.target.value}})},value:null===n||void 0===n?void 0:n.name,children:(null===n||void 0===n?void 0:n.name)&&(null===ne||void 0===ne?void 0:ne.map((function(e){var n=e.name;return(0,G.jsx)("option",{value:n,children:n},n)})))})}),(0,G.jsx)(b.Z,{mr:U.cd}),de&&(0,G.jsx)(g.Z,{inverted:!0})]})]})]})}),(0,G.jsx)(b.Z,{mt:U.Mq,children:(0,G.jsxs)(v.Z,{alignItems:"center",children:[(0,G.jsx)(w.Z,{label:"New branch name",monospace:!0,onChange:function(e){var n;return $(null===e||void 0===e||null===(n=e.target)||void 0===n?void 0:n.value)},value:J||""}),(0,G.jsx)(b.Z,{mr:1}),(0,G.jsx)(f.Z,{beforeIcon:(0,G.jsx)(k.mm,{size:2*U.iI}),disabled:!J,loading:ie,onClick:function(){te({git_branch:{name:J}})},primary:!0,children:"Create new branch"})]})})]}),(0,G.jsxs)(b.Z,{mb:U.HN,children:[(0,G.jsx)(j.Z,{children:"Actions"}),(0,G.jsxs)(b.Z,{mt:U.Mq,children:[(0,G.jsxs)(b.Z,{mb:U.Mq,children:[(0,G.jsx)(b.Z,{mb:1,children:(0,G.jsx)(p.ZP,{bold:!0,muted:!0,children:"Compare branch"})}),(null===n||void 0===n?void 0:n.name)&&(0,G.jsx)(p.ZP,{monospace:!0,children:null===n||void 0===n?void 0:n.name})]}),(0,G.jsxs)(v.Z,{alignItems:"center",children:[(0,G.jsxs)("div",{children:[(0,G.jsx)(b.Z,{mb:1,children:(0,G.jsx)(p.ZP,{bold:!0,muted:!0,children:"Base branch"})}),(0,G.jsx)(x.Z,{beforeIcon:(0,G.jsx)(k.I0,{}),beforeIconSize:1.5*U.iI,monospace:!0,onChange:function(e){return X(e.target.value)},placeholder:"Choose a branch",value:K,children:null===ne||void 0===ne?void 0:ne.map((function(e){var n=e.name;return(0,G.jsx)("option",{value:n,children:n},n)}))})]}),(0,G.jsx)(b.Z,{mr:1}),(0,G.jsxs)("div",{children:[(0,G.jsx)(b.Z,{mb:1,children:(0,G.jsx)(p.ZP,{bold:!0,muted:!0,children:"Action"})}),(0,G.jsxs)(x.Z,{onChange:function(e){return B(e.target.value)},placeholder:"Choose action",value:D||"",children:[(0,G.jsx)("option",{value:_,children:(0,A.vg)(_)}),(0,G.jsx)("option",{value:S,children:(0,A.vg)(S)}),(0,G.jsx)("option",{value:P,children:(0,A.vg)(P)})]})]})]}),D&&[_,S].includes(D)&&(0,G.jsxs)(b.Z,{mt:U.cd,children:[(0,G.jsx)(b.Z,{mb:1,children:(0,G.jsxs)(p.ZP,{bold:!0,muted:!0,children:["Message for ",D]})}),(0,G.jsx)(Z.Z,{monospace:!0,onChange:function(e){return I(e.target.value)},value:u||""})]}),(0,G.jsxs)(b.Z,{mt:U.cd,children:[(0,G.jsx)(f.Z,{beforeIcon:(0,G.jsx)(k.Bf,{size:2*U.iI}),disabled:!D||!K,loading:fe,onClick:function(){(P!==D||"undefined"!==typeof location&&window.confirm("Are you sure you want to delete branch ".concat(K,"?")))&&he({git_branch:(0,c.Z)({action_type:D,message:u},D,{base_branch:K})})},primary:!0,children:D?(0,A.vg)(D):"Execute action"}),N&&(0,G.jsx)(b.Z,{mt:U.cd,children:(0,G.jsx)(p.ZP,{default:!0,monospace:!0,preWrap:!0,children:N})})]})]})]}),(0,G.jsxs)(b.Z,{mb:U.HN,children:[(0,G.jsx)(b.Z,{mb:U.HN,children:(0,G.jsx)(m.Z,{light:!0})}),(0,G.jsxs)(v.Z,{children:[(0,G.jsx)(f.Z,{beforeIcon:(0,G.jsx)(k.Hd,{}),linkProps:{href:"/version-control?tab=".concat(H.uuid)},noBackground:!0,noHoverUnderline:!0,sameColorAsText:!0,children:H.uuid}),(0,G.jsx)(b.Z,{mr:1}),(0,G.jsxs)(f.Z,{afterIcon:(0,G.jsx)(k.Kw,{}),linkProps:{href:"/version-control?tab=".concat(F.uuid)},noHoverUnderline:!0,sameColorAsText:!0,secondary:!0,children:["Next: ",F.uuid]})]})]})]})},V=r(32316),z=r(44182),L=r(25880),W=r(10919),Q=r(87815),K=r(24224);function X(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,o)}return r}function Y(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?X(Object(r),!0).forEach((function(n){(0,c.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var J={base_branch:null,body:null,compare_branch:null,repository:null,title:null};var $=function(e){var n=e.branch,r=e.branches,o=e.fetchBranch,t=e.loading,i=e.remotes,l=e.showError,d=(0,a.useState)((null===n||void 0===n?void 0:n.name)||""),u=d[0],C=d[1],P=(0,a.useState)(null),_=P[0],I=P[1],S=(0,a.useState)(null),B=S[0],E=S[1],H=(0,a.useState)((0,T.U2)(M,"")),N=H[0],q=H[1],V=(0,a.useCallback)((function(e){(0,T.t8)(M,e),q(e)}),[]),X=(0,a.useState)(J),$=X[0],ee=X[1],ne=(0,a.useState)((0,T.U2)(D,"")),re=ne[0],oe=ne[1],te=(0,a.useCallback)((function(e){(0,T.t8)(D,e),oe(e)}),[]),ie=(0,h.Db)(y.ZP.git_branches.useUpdate(null===n||void 0===n?void 0:n.name),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(e){var n=e.git_branch,r=n.error,t=n.progress;r?(I(r),E(null)):(o(),I(null),E(t))},onErrorCallback:function(e,n){return l({errors:n,response:e})}})}}),le=(0,s.Z)(ie,2),ce=le[0],se=le[1].isLoading,de=(0,a.useMemo)((function(){return(0,K.Tw)(i.reduce((function(e,n){var r;return e.concat((null===n||void 0===n||null===(r=n.repository_names)||void 0===r?void 0:r.map((function(e){var r;return{name:e,url:null===n||void 0===n||null===(r=n.urls)||void 0===r?void 0:r[0]}})))||[])}),[]),(function(e){return e.name}))}),[i]),ue=y.ZP.pull_requests.list({repository:re},{},{pauseFetch:!re}),ae=ue.data,he=ue.mutate,fe=(0,a.useMemo)((function(){return(null===ae||void 0===ae?void 0:ae.pull_requests)||[]}),[ae]),me=(0,a.useMemo)((function(){return(0,G.jsx)(Q.Z,{columnFlex:[null,null,null,null],columns:[{uuid:"Title"},{uuid:"Author"},{uuid:"Created"},{uuid:"Last modified"}],onClickRow:function(e){var n,r=null===fe||void 0===fe||null===(n=fe[e])||void 0===n?void 0:n.url;r&&window.open(r,"_blank")},rows:null===fe||void 0===fe?void 0:fe.map((function(e){var n=e.created_at,r=e.last_modified,o=e.title,t=e.url,i=e.user;return[(0,G.jsx)(W.Z,{default:!0,href:t,monospace:!0,openNewWindow:!0,small:!0,children:o},"title"),(0,G.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:i},"user"),(0,G.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:n},"createdAt"),(0,G.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:r||"-"},"lastModified")]})),uuid:"pull-requests"})}),[fe]),ve=y.ZP.git_branches.list({repository:re},{},{pauseFetch:!re}).data,je=(0,a.useMemo)((function(){return(null===ve||void 0===ve?void 0:ve.git_branches)||[]}),[ve]);(0,a.useEffect)((function(){null!==$&&void 0!==$&&$.compare_branch||null===je||void 0===je||!je.find((function(e){return e.name===(null===n||void 0===n?void 0:n.name)}))||ee((function(e){return Y(Y({},e),{},{compare_branch:null===n||void 0===n?void 0:n.name})}))}),[n,je,$]);var xe=(0,h.Db)(y.ZP.pull_requests.useCreate(),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){he(),ee(J)},onErrorCallback:function(e,n){return l({errors:n,response:e})}})}}),be=(0,s.Z)(xe,2),ge=be[0],pe=be[1].isLoading;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(b.Z,{mb:U.HN,children:[(0,G.jsx)(b.Z,{mb:1,children:(0,G.jsx)(j.Z,{children:(0,A.vg)(O)})}),(0,G.jsxs)(b.Z,{mt:U.Mq,children:[(0,G.jsxs)(v.Z,{children:[(0,G.jsxs)("div",{children:[(0,G.jsx)(b.Z,{mb:1,children:(0,G.jsx)(p.ZP,{bold:!0,muted:!0,children:"Remote"})}),t&&(0,G.jsx)(g.Z,{inverted:!0}),!t&&(0,G.jsx)(x.Z,{beforeIcon:(0,G.jsx)(k.VW,{}),beforeIconSize:1.5*U.iI,monospace:!0,onChange:function(e){return V(e.target.value)},placeholder:"Choose remote",value:N||"",children:null===i||void 0===i?void 0:i.map((function(e){var n=e.name;return(0,G.jsx)("option",{value:n,children:n},n)}))})]}),(0,G.jsx)(b.Z,{mr:1}),(0,G.jsxs)("div",{children:[(0,G.jsx)(b.Z,{mb:1,children:(0,G.jsx)(p.ZP,{bold:!0,muted:!0,children:"Branch"})}),(0,G.jsxs)(x.Z,{beforeIcon:(0,G.jsx)(k.I0,{}),beforeIconSize:1.5*U.iI,monospace:!0,onChange:function(e){return C(e.target.value)},placeholder:"Choose branch",value:u||"",children:[(0,G.jsx)("option",{value:""}),null===r||void 0===r?void 0:r.map((function(e){var n=e.name;return(0,G.jsx)("option",{value:n,children:n},n)}))]})]})]}),(0,G.jsx)(b.Z,{mt:U.cd,children:(0,G.jsxs)(f.Z,{beforeIcon:(0,G.jsx)(k.Bf,{size:2*U.iI}),disabled:!N||!u,loading:se,onClick:function(){E(null),ce({git_branch:(0,c.Z)({action_type:O},O,{branch:u,remote:N})})},primary:!0,children:[(0,A.vg)(O)," ",N," ",N&&u]})}),(B||_)&&(0,G.jsx)(b.Z,{mt:U.cd,children:(0,G.jsx)(p.ZP,{danger:!!_,default:!!B,monospace:!0,preWrap:!0,children:B||_})})]})]}),(0,G.jsxs)(b.Z,{mb:U.HN,children:[(0,G.jsx)(b.Z,{mb:1,children:(0,G.jsx)(j.Z,{children:"Create pull request"})}),(0,G.jsxs)(b.Z,{mt:U.Mq,children:[t&&(0,G.jsx)(g.Z,{inverted:!0}),!t&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(v.Z,{children:[(0,G.jsxs)("div",{children:[(0,G.jsx)(b.Z,{mb:1,children:(0,G.jsx)(p.ZP,{bold:!0,muted:!0,children:"Repository"})}),(0,G.jsx)(x.Z,{beforeIcon:(0,G.jsx)(k.fy,{}),beforeIconSize:1.5*U.iI,monospace:!0,onChange:function(e){return te(e.target.value)},placeholder:"Choose repository",value:re||"",children:null===de||void 0===de?void 0:de.map((function(e){var n=e.name;return(0,G.jsx)("option",{value:n,children:n},n)}))})]}),(0,G.jsx)(b.Z,{mr:1}),(0,G.jsxs)("div",{children:[(0,G.jsx)(b.Z,{mb:1,children:(0,G.jsx)(p.ZP,{bold:!0,muted:!0,children:"Base branch"})}),re&&!ve&&(0,G.jsx)(g.Z,{inverted:!0}),(!re||ve)&&(0,G.jsx)(x.Z,{beforeIcon:(0,G.jsx)(k.I0,{}),beforeIconSize:1.5*U.iI,disabled:!re,monospace:!0,onChange:function(e){return ee((function(n){return Y(Y({},n),{},{base_branch:e.target.value})}))},placeholder:"Choose branch",value:(null===$||void 0===$?void 0:$.base_branch)||"",children:null===je||void 0===je?void 0:je.map((function(e){var n=e.name;return(0,G.jsx)("option",{value:n,children:n},n)}))})]}),(0,G.jsx)(b.Z,{mr:1}),(0,G.jsxs)("div",{children:[(0,G.jsx)(b.Z,{mb:1,children:(0,G.jsx)(p.ZP,{bold:!0,muted:!0,children:"Compare branch"})}),re&&!ve&&(0,G.jsx)(g.Z,{inverted:!0}),(!re||ve||(null===$||void 0===$?void 0:$.compare_branch))&&(0,G.jsxs)(x.Z,{beforeIcon:(0,G.jsx)(k.I0,{}),beforeIconSize:1.5*U.iI,disabled:!re,monospace:!0,onChange:function(e){return ee((function(n){return Y(Y({},n),{},{compare_branch:e.target.value})}))},placeholder:"Choose branch",value:(null===$||void 0===$?void 0:$.compare_branch)||"",children:[!(null!==je&&void 0!==je&&je.length)&&(null===$||void 0===$?void 0:$.compare_branch)&&(0,G.jsx)("option",{value:null===$||void 0===$?void 0:$.compare_branch,children:null===$||void 0===$?void 0:$.compare_branch}),null===je||void 0===je?void 0:je.map((function(e){var n=e.name;return(0,G.jsx)("option",{value:n,children:n},n)}))]})]})]}),(0,G.jsx)(b.Z,{mt:1,children:(0,G.jsx)(w.Z,{label:"Title",monospace:!0,onChange:function(e){return ee((function(n){return Y(Y({},n),{},{title:e.target.value})}))},value:(null===$||void 0===$?void 0:$.title)||""})}),(0,G.jsx)(b.Z,{mt:1,children:(0,G.jsx)(Z.Z,{label:"Description",monospace:!0,onChange:function(e){return ee((function(n){return Y(Y({},n),{},{body:e.target.value})}))},value:(null===$||void 0===$?void 0:$.body)||""})}),(0,G.jsx)(b.Z,{mt:U.cd,children:(0,G.jsx)(f.Z,{beforeIcon:(0,G.jsx)(k.Bf,{size:2*U.iI}),disabled:!re||!(null!==$&&void 0!==$&&$.title)||!(null!==$&&void 0!==$&&$.base_branch)||!(null!==$&&void 0!==$&&$.compare_branch),loading:pe,onClick:function(){ge({pull_request:Y(Y({},$),{},{repository:re})})},primary:!0,children:"Create new pull request"})})]})]}),(0,G.jsx)(b.Z,{mt:U.Mq,children:(0,G.jsx)(z.Z,{visibleMapping:{0:!re},children:(0,G.jsxs)(L.Z,{noPaddingContent:!0,title:ae?"Pull requests (".concat(null===fe||void 0===fe?void 0:fe.length,")"):"Pull requests",children:[!re&&(0,G.jsx)(b.Z,{p:U.cd,children:(0,G.jsx)(p.ZP,{muted:!0,children:"Please select a repository to view open pull requests."})}),re&&(0,G.jsxs)(G.Fragment,{children:[!ae&&(0,G.jsx)(b.Z,{p:U.cd,children:(0,G.jsx)(g.Z,{inverted:!0})}),ae&&me]})]})})})]}),(0,G.jsxs)(b.Z,{mb:U.HN,children:[(0,G.jsx)(b.Z,{mb:U.HN,children:(0,G.jsx)(m.Z,{light:!0})}),(0,G.jsx)(v.Z,{children:(0,G.jsx)(f.Z,{beforeIcon:(0,G.jsx)(k.Hd,{}),linkProps:{href:"/version-control?tab=".concat(F.uuid)},noBackground:!0,noHoverUnderline:!0,sameColorAsText:!0,children:F.uuid})})]})]})},ee=r(1210),ne=r(46299),re=r(38341),oe=r(93461),te=r(38626),ie=te.default.div.withConfig({displayName:"indexstyle__SpacingStyle",componentId:"sc-el09vr-0"})(["margin-top:","px;"],.5*U.iI),le=r(7715);function ce(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,o)}return r}function se(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ce(Object(r),!0).forEach((function(n){(0,c.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ce(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var de=function(e){var n=e.branch,r=e.fetchBranch,o=e.modifiedFiles,t=e.setSelectedFilePath,i=e.showError,l=e.stagedFiles,c=e.untrackedFiles,d=(0,a.useRef)(null),u=(0,a.useState)(""),x=u[0],w=u[1],C=(0,a.useState)({}),P=C[0],_=C[1],I=(0,a.useState)({}),O=I[0],S=I[1],M=(0,a.useMemo)((function(){return Object.keys(o).concat(Object.keys(c)).sort()}),[o,c]),D=(0,a.useMemo)((function(){return Object.keys(l||{})}),[l]),F=(0,a.useMemo)((function(){return D.length}),[D]),H=(0,a.useMemo)((function(){return Object.keys(P).length===(null===M||void 0===M?void 0:M.length)}),[P,M]),N=(0,a.useMemo)((function(){return Object.keys(O).length===(null===D||void 0===D?void 0:D.length)}),[O,D]),T=(0,a.useMemo)((function(){return{onErrorCallback:function(e,n){return i({errors:n,response:e})}}}),[i]),q=(0,a.useMemo)((function(){return{onSuccess:function(e){return(0,R.wD)(e,se({callback:function(){r(),_({})}},T))}}}),[r,T]),V=(0,a.useMemo)((function(){return y.ZP.git_branches.useUpdate(null===n||void 0===n?void 0:n.name)}),[n]),K=(0,h.Db)(V,q),X=(0,s.Z)(K,2),Y=X[0],J=X[1].isLoading,$=(0,h.Db)(V,q),ee=(0,s.Z)($,2),ne=ee[0],te=ee[1].isLoading,ce=(0,h.Db)(V,{onSuccess:function(e){return(0,R.wD)(e,se({callback:function(){r(),S({})}},T))}}),de=(0,s.Z)(ce,2),ue=de[0],ae=de[1].isLoading,he=(0,a.useCallback)((function(e,n,r,o,t){var i=(null===e||void 0===e?void 0:e.length)>=1;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(W.Z,{block:!0,noHoverUnderline:!0,onClick:function(){r(t?{}:o)},preventDefault:!0,children:(0,G.jsxs)(v.Z,{alignItems:"center",flexDirection:"row",children:[(0,G.jsx)(re.Z,{checked:i&&t,disabled:!i}),(0,G.jsx)(b.Z,{mr:1}),(0,G.jsx)(p.ZP,{bold:!0,children:i&&t?"Unselect all":"Select all"})]})}),e.map((function(e){return(0,G.jsx)(ie,{children:(0,G.jsx)(W.Z,{block:!0,noHoverUnderline:!0,onClick:function(){return r((function(n){var r=se({},n);return!(null!==r&&void 0!==r&&r[e])?r[e]=!0:delete r[e],r}))},preventDefault:!0,children:(0,G.jsxs)(v.Z,{alignItems:"center",flexDirection:"row",children:[(0,G.jsx)(re.Z,{checked:!(null===n||void 0===n||!n[e])}),(0,G.jsx)(b.Z,{mr:1}),(0,G.jsx)(p.ZP,{default:!0,monospace:!0,children:e})]})})},e)}))]})}),[]),fe=(0,a.useMemo)((function(){return(0,le.Qr)(P)}),[P]),me=y.ZP.git_branches.detail("with_logs",{_format:"with_logs"}),ve=me.data,je=me.mutate,xe=(0,a.useMemo)((function(){var e;return(null===ve||void 0===ve||null===(e=ve.git_branch)||void 0===e?void 0:e.logs)||[]}),[ve]),be=(0,h.Db)(y.ZP.git_branches.useUpdate(null===n||void 0===n?void 0:n.name),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){je(),r(),w("")},onErrorCallback:function(e,n){return i({errors:n,response:e})}})}}),ge=(0,s.Z)(be,2),pe=ge[0],Ze=ge[1].isLoading,we=(0,a.useMemo)((function(){return(0,G.jsx)(Q.Z,{columnFlex:[1,1,1],columns:[{uuid:"Author"},{uuid:"Date"},{uuid:"Message"}],rows:xe.map((function(e){var n=e.author,r=e.date,o=e.message;return[(0,G.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:null===n||void 0===n?void 0:n.name},"author"),(0,G.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:r},"date"),(0,G.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:o},"message")]})),uuid:"git-branch-logs"})}),[xe]);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(b.Z,{mb:U.HN,children:(0,G.jsxs)(v.Z,{children:[(0,G.jsxs)(oe.Z,{flex:1,flexDirection:"column",children:[(0,G.jsxs)(j.Z,{children:["Not staged ",(null===M||void 0===M?void 0:M.length)>=1&&"(".concat(null===M||void 0===M?void 0:M.length,")")]}),(0,G.jsx)(b.Z,{my:U.cd,children:(0,G.jsx)(m.Z,{light:!0})}),(0,G.jsx)(b.Z,{mb:U.cd,children:(0,G.jsxs)(v.Z,{flexDirection:"row",children:[(0,G.jsx)(f.Z,{compact:!0,disabled:fe||ae||te,loading:J,onClick:function(){Y({git_branch:{action_type:"add",files:Object.keys(P)}}).then((function(e){var n,r=e.data;null!==r&&void 0!==r&&r.git_branch&&(null===d||void 0===d||null===(n=d.current)||void 0===n||n.focus())}))},primary:!0,children:"Add files"}),(0,G.jsx)(b.Z,{mr:1}),(0,G.jsx)(f.Z,{compact:!0,disabled:fe||J||ae,loading:te,noBackground:!0,onClick:function(){"undefined"!==typeof location&&window.confirm("Are you sure you want to undo all changes in the selected files?")&&ne({git_branch:{action_type:"checkout",files:Object.keys(P)}})},children:"Checkout files"})]})}),he(M,P,_,se(se({},o),c),H)]}),(0,G.jsx)(b.Z,{mr:U.cd}),(0,G.jsxs)(oe.Z,{flex:1,flexDirection:"column",children:[(0,G.jsxs)(j.Z,{children:["Staged files ",(null===D||void 0===D?void 0:D.length)>=1&&"(".concat(null===D||void 0===D?void 0:D.length,")")]}),(0,G.jsx)(b.Z,{my:U.cd,children:(0,G.jsx)(m.Z,{light:!0})}),(0,G.jsx)(b.Z,{mb:U.cd,children:(0,G.jsx)(v.Z,{flexDirection:"row",children:(0,G.jsx)(f.Z,{compact:!0,disabled:(0,le.Qr)(O)||J||te,loading:ae,onClick:function(){ue({git_branch:{action_type:"reset",files:Object.keys(O)}})},secondary:!0,children:"Reset files"})})}),he(D,O,S,l,N)]})]})}),(0,G.jsxs)(b.Z,{mb:U.HN,children:[(0,G.jsx)(b.Z,{mb:1,children:(0,G.jsx)(j.Z,{children:"Commit"})}),(0,G.jsx)(b.Z,{mb:U.cd,children:(0,G.jsx)(z.Z,{children:(0,G.jsx)(L.Z,{noPaddingContent:!0,title:F>=1?"Staged files (".concat(F,")"):"No staged files",children:null===D||void 0===D?void 0:D.map((function(e){return(0,G.jsx)(b.Z,{my:1,px:U.cd,children:(0,G.jsxs)(v.Z,{justifyContent:"space-between",children:[(0,G.jsx)(W.Z,{default:!0,monospace:!0,onClick:function(){return t((function(n){return n===e?null:e}))},warning:null===o||void 0===o?void 0:o[e],children:e}),(0,G.jsx)(b.Z,{mr:1}),(null===o||void 0===o?void 0:o[e])&&(0,G.jsx)(p.ZP,{warning:!0,children:"Modified after staging"})]})},e)}))})})}),(0,G.jsx)(Z.Z,{label:"Commit message",monospace:!0,onChange:function(e){return w(e.target.value)},ref:d,value:x||""}),(0,G.jsx)(b.Z,{mt:U.cd,children:(0,G.jsxs)(v.Z,{alignItems:"center",children:[(0,G.jsxs)(f.Z,{disabled:0===F||!((null===x||void 0===x?void 0:x.length)>=1),loading:Ze,onClick:function(){pe({git_branch:{action_type:"commit",files:D,message:x}})},primary:!0,children:["Commit ",(0,A._6)("file",F,!0)," with message"]}),0===F&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(b.Z,{mr:1}),(0,G.jsx)(p.ZP,{danger:!0,small:!0,children:"Please stage at least 1 file before committing."})]})]})})]}),(0,G.jsx)(b.Z,{mb:U.HN,children:(0,G.jsx)(z.Z,{children:(0,G.jsxs)(L.Z,{noPaddingContent:!0,title:"Logs",children:[!ve&&(0,G.jsx)(b.Z,{p:U.cd,children:(0,G.jsx)(g.Z,{inverted:!0})}),ve&&we]})})}),(0,G.jsxs)(b.Z,{mb:U.HN,children:[(0,G.jsx)(b.Z,{mb:U.HN,children:(0,G.jsx)(m.Z,{light:!0})}),(0,G.jsxs)(v.Z,{children:[(0,G.jsx)(f.Z,{beforeIcon:(0,G.jsx)(k.Hd,{}),linkProps:{href:"/version-control?tab=".concat(B.uuid)},noBackground:!0,noHoverUnderline:!0,sameColorAsText:!0,children:B.uuid}),(0,G.jsx)(b.Z,{mr:1}),(0,G.jsxs)(f.Z,{afterIcon:(0,G.jsx)(k.Kw,{}),linkProps:fe?{href:"/version-control?tab=".concat(E.uuid)}:null,noHoverUnderline:!0,primary:fe,sameColorAsText:!0,secondary:!fe,children:["Next: ",E.uuid]})]})]})]})},ue=r(12691),ae=r.n(ue),he=r(34376),fe=r(55022),me=r(59e3);var ve=function(e){var n=e.branch,r=e.fetchBranch,o=e.loading,t=e.remotes,i=e.showError,l=(0,he.useRouter)(),c=(0,a.useRef)(null),d=(0,a.useState)(null),u=d[0],Z=d[1],C=(0,a.useState)(null),P=C[0],_=C[1],O=(0,a.useState)(null),S=O[0],D=O[1],F=(0,a.useState)(null),E=F[0],H=F[1],N=(0,a.useState)((0,T.U2)(M,"")),q=N[0],V=N[1],K=(0,a.useCallback)((function(e){(0,T.t8)(M,e),V(e)}),[]),X=(0,a.useState)(!1),Y=X[0],J=X[1],$=(0,a.useState)(null),ee=$[0],ne=$[1],re=(0,a.useState)(""),te=re[0],ie=re[1],le=(0,a.useState)(""),ce=le[0],se=le[1],de=(0,a.useState)(null),ue=de[0],ve=de[1];(0,a.useEffect)((function(){var e,r;null!==n&&void 0!==n&&null!==(e=n.sync_config)&&void 0!==e&&e.repo_path&&null===ue&&ve(null===n||void 0===n||null===(r=n.sync_config)||void 0===r?void 0:r.repo_path)}),[n,ue]);var je=(0,a.useMemo)((function(){var e,n;return null===t||void 0===t||null===(e=t.find((function(e){return e.name===q})))||void 0===e||null===(n=e.refs)||void 0===n?void 0:n.map((function(e){var n=e.name.split("/");return{name:n[n.length-1]}}))}),[q,t]),xe=(0,h.Db)(y.ZP.syncs.useCreate(),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){r(),J(!1)},onErrorCallback:function(e,n){return i({errors:n,response:e})}})}}),be=(0,s.Z)(xe,2),ge=be[0],pe=be[1].isLoading,Ze=(0,h.Db)(y.ZP.git_branches.useUpdate(null===n||void 0===n?void 0:n.name),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(e){var n=e.git_branch,o=n.error,t=n.progress;o?(_(o),H(null)):(r(),Z(null),_(null),D(null),H(t))},onErrorCallback:function(e,n){return i({errors:n,response:e})}})}}),we=(0,s.Z)(Ze,2),Ce=we[0],ye=we[1].isLoading,ke=(0,h.Db)(y.ZP.git_branches.useUpdate(null===n||void 0===n?void 0:n.name),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){r(),ie(""),se("")},onErrorCallback:function(e,n){return i({errors:n,response:e})}})}}),Pe=(0,s.Z)(ke,2),_e=Pe[0],Ie=Pe[1].isLoading,Oe=(0,h.Db)(y.ZP.git_branches.useUpdate(null===n||void 0===n?void 0:n.name),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){r(),ne(null)},onErrorCallback:function(e,n){ne(null),i({errors:n,response:e})}})}}),Se=(0,s.Z)(Oe,2),Me=Se[0],De=Se[1].isLoading,Be=y.ZP.oauths.detail(fe.G.GITHUB,{redirect_uri:encodeURIComponent(window.location.href)}),Fe=Be.data,Ee=Be.mutate,He=(0,a.useMemo)((function(){return(null===Fe||void 0===Fe?void 0:Fe.oauth)||{}}),[Fe]),Ne=(0,h.Db)(y.ZP.oauths.useCreate(),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){Ee()},onErrorCallback:function(e,n){i({errors:n,response:e})}})}}),Ue=(0,s.Z)(Ne,2),Ae=Ue[0],Te=Ue[1].isLoading,Re=((0,me.iV)()||{}).access_token;(0,a.useEffect)((function(){!He||null!==He&&void 0!==He&&He.authenticated||!Re||Ae({oauth:{provider:fe.G.GITHUB,token:Re}})}),[Re,Ae,He]);var Ge=(0,a.useMemo)((function(){return null===t||void 0===t?void 0:t.map((function(e){var n=e.name,r=e.refs,o=e.urls;return(0,G.jsxs)(b.Z,{mt:U.Mq,children:[(0,G.jsx)(b.Z,{mb:1,children:(0,G.jsxs)(v.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,G.jsxs)(oe.Z,{alignItems:"center",children:[(0,G.jsx)(p.ZP,{bold:!0,children:n}),(0,G.jsx)(b.Z,{mx:1,children:(0,G.jsx)(k._Q,{muted:!0})}),null===o||void 0===o?void 0:o.map((function(e){return(0,G.jsx)(b.Z,{mr:1,children:(0,G.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:e})},e)}))]}),(0,G.jsx)(b.Z,{mr:1}),(0,G.jsx)(f.Z,{compact:!0,disabled:De&&ee!==n,iconOnly:!0,loading:De&&ee===n,noBackground:!0,onClick:function(){"undefined"!==typeof location&&window.confirm("Are you sure you want to remove remote ".concat(n,"?"))&&(ne(n),Me({git_branch:{action_type:"remove_remote",remote:{name:n}}}).then((function(){q===n&&K(null)})))},small:!0,title:"Remote remote ".concat(n),children:(0,G.jsx)(k.rF,{})})]})}),(0,G.jsx)(z.Z,{children:(0,G.jsxs)(L.Z,{noPaddingContent:!0,smallTitle:!0,title:"Refs (".concat(null===r||void 0===r?void 0:r.length,")"),children:[0===(null===r||void 0===r?void 0:r.length)&&(0,G.jsx)(b.Z,{p:U.cd,children:(0,G.jsx)(p.ZP,{muted:!0,children:"This remote has no refs."})}),(null===r||void 0===r?void 0:r.length)>=1&&(0,G.jsx)(Q.Z,{columnFlex:[1,1,1],columns:[{uuid:"Ref"},{uuid:"Author"},{uuid:"Date"},{uuid:"Message"}],rows:r.map((function(e){var n,r=e.commit,o=e.name;return[(0,G.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:o},"ref-name"),(0,G.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:null===r||void 0===r||null===(n=r.author)||void 0===n?void 0:n.name},"author"),(0,G.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:null===r||void 0===r?void 0:r.date},"date"),(0,G.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:null===r||void 0===r?void 0:r.message},"message")]})),uuid:"git-branch-remotes-refs"})]})}),(0,G.jsx)(b.Z,{mt:U.Mq,children:(0,G.jsx)(m.Z,{light:!0})})]},n)}))}),[De,ee,t,Me]);return(0,G.jsxs)(G.Fragment,{children:[Fe&&(0,G.jsxs)(b.Z,{mb:U.HN,children:[(null===He||void 0===He?void 0:He.authenticated)&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(f.Z,{beforeIcon:(0,G.jsx)(k.fy,{size:2*U.iI}),disabled:!0,children:"Successfully authenticated with GitHub"}),(0,G.jsx)(b.Z,{mt:1,children:(0,G.jsx)(p.ZP,{muted:!0,children:"You can pull, push, and create pull requests on GitHub."})})]}),!(null!==He&&void 0!==He&&He.authenticated)&&(null===He||void 0===He?void 0:He.url)&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(f.Z,{beforeIcon:(0,G.jsx)(k.fy,{size:2*U.iI}),loading:Te,onClick:function(){return l.push(null===He||void 0===He?void 0:He.url)},primary:!0,children:"Authenticate with GitHub"}),(0,G.jsx)(b.Z,{mt:1,children:(0,G.jsx)(p.ZP,{muted:!0,children:"Authenticating with GitHub will allow you to pull, push, and create pull requests on GitHub."})})]})]}),(0,G.jsxs)(b.Z,{mb:U.HN,children:[(0,G.jsx)(j.Z,{children:"Setup"}),(0,G.jsxs)(b.Z,{mt:U.Mq,children:[(0,G.jsxs)(b.Z,{mb:1,children:[(0,G.jsx)(p.ZP,{bold:!0,large:!0,children:"Git init directory"}),(0,G.jsxs)(p.ZP,{muted:!0,children:["If the directory below is blank, then the current working directory will be used to initialize git.",(0,G.jsx)("br",{}),"If git hasn\u2019t been initialized in the directory below, Mage will automatically run git init for you."]})]}),(0,G.jsxs)(v.Z,{alignItems:"center",children:[(0,G.jsx)(w.Z,{disabled:!Y,label:"Git directory",monospace:!0,onChange:function(e){return ve(e.target.value)},ref:c,value:ue||""}),(0,G.jsx)(b.Z,{mr:1}),Y&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(f.Z,{compact:!0,loading:pe,onClick:function(){ge({sync:{repo_path:ue}})},primary:!0,small:!0,children:"Save"}),(0,G.jsx)(b.Z,{mr:1}),(0,G.jsx)(W.Z,{onClick:function(){return J(!1)},preventDefault:!0,sameColorAsText:!0,small:!0,children:"Cancel"})]}),!Y&&(0,G.jsx)(W.Z,{onClick:function(){J(!0),setTimeout((function(){var e;return null===c||void 0===c||null===(e=c.current)||void 0===e?void 0:e.focus()}),1)},preventDefault:!0,sameColorAsText:!0,small:!0,children:"Edit"})]})]})]}),(0,G.jsxs)(b.Z,{mb:U.HN,children:[(0,G.jsxs)(j.Z,{children:["Remotes",!o&&t?" (".concat(null===t||void 0===t?void 0:t.length,")"):""]}),o&&(0,G.jsx)(b.Z,{mt:U.Mq,children:(0,G.jsx)(g.Z,{inverted:!0})}),!o&&Ge,(0,G.jsx)(b.Z,{mt:U.Mq,children:(0,G.jsxs)(v.Z,{alignItems:"flex-start",children:[(0,G.jsx)(w.Z,{label:"New remote name",monospace:!0,onChange:function(e){var n;return ie(null===e||void 0===e||null===(n=e.target)||void 0===n?void 0:n.value)},value:te||""}),(0,G.jsx)(b.Z,{mr:1}),(0,G.jsxs)(v.Z,{flexDirection:"column",children:[(0,G.jsx)(w.Z,{label:"Remote URL",monospace:!0,onChange:function(e){var n;return se(null===e||void 0===e||null===(n=e.target)||void 0===n?void 0:n.value)},value:ce||""}),(0,G.jsx)(b.Z,{mt:1,children:(0,G.jsxs)(p.ZP,{muted:!0,small:!0,children:["Use the https URL if you",(0,G.jsx)("br",{}),"authenticated with GitHub above."]})})]}),(0,G.jsx)(b.Z,{mr:1}),(0,G.jsx)(f.Z,{beforeIcon:(0,G.jsx)(k.mm,{size:2*U.iI}),disabled:!te||!ce,loading:Ie,onClick:function(){_e({git_branch:{action_type:"add_remote",remote:{name:te,url:ce}}})},primary:!0,children:"Create new remote"})]})})]}),(0,G.jsxs)(b.Z,{mb:U.HN,children:[(0,G.jsx)(j.Z,{children:"Actions"}),(0,G.jsxs)(b.Z,{mt:U.Mq,children:[(0,G.jsxs)(b.Z,{mb:U.Mq,children:[(0,G.jsx)(b.Z,{mb:1,children:(0,G.jsx)(p.ZP,{bold:!0,muted:!0,children:"Current branch"})}),(null===n||void 0===n?void 0:n.name)&&(0,G.jsxs)(v.Z,{alignItems:"center",children:[(0,G.jsx)(p.ZP,{monospace:!0,children:null===n||void 0===n?void 0:n.name}),(0,G.jsx)(b.Z,{mr:U.cd}),(0,G.jsx)(ae(),{href:"/version-control?tab=".concat(B.uuid),passHref:!0,children:(0,G.jsx)(W.Z,{small:!0,children:"Switch branch"})})]})]}),(0,G.jsxs)(v.Z,{children:[(0,G.jsx)(x.Z,{onChange:function(e){return D(e.target.value)},placeholder:"Action",value:S||"",children:(0,G.jsx)("option",{value:I,children:(0,A.vg)(I)})}),(0,G.jsx)(b.Z,{mr:1}),(0,G.jsx)(x.Z,{beforeIcon:(0,G.jsx)(k.VW,{}),beforeIconSize:1.5*U.iI,monospace:!0,onChange:function(e){return K(e.target.value)},placeholder:"Remote",value:q||"",children:null===t||void 0===t?void 0:t.map((function(e){var n=e.name;return(0,G.jsx)("option",{value:n,children:n},n)}))}),(0,G.jsx)(b.Z,{mr:1}),(0,G.jsxs)(x.Z,{beforeIcon:(0,G.jsx)(k.I0,{}),beforeIconSize:1.5*U.iI,monospace:!0,onChange:function(e){return Z(e.target.value)},value:u||"",children:[(0,G.jsx)("option",{value:"",children:"All branches"}),null===je||void 0===je?void 0:je.map((function(e){var n=e.name;return(0,G.jsx)("option",{value:n,children:n},n)}))]})]}),(0,G.jsxs)(b.Z,{mt:U.cd,children:[(0,G.jsx)(f.Z,{beforeIcon:(0,G.jsx)(k.Bf,{size:2*U.iI}),disabled:!S||!q,loading:ye,onClick:function(){H(null),Ce({git_branch:{action_type:S,pull:{branch:u,remote:q}}})},primary:!0,children:S?(0,A.vg)(S):"Execute action"}),(E||P)&&(0,G.jsx)(b.Z,{mt:U.cd,children:(0,G.jsx)(p.ZP,{danger:!!P,default:!!E,monospace:!0,preWrap:!0,children:E||P})})]})]})]}),(0,G.jsxs)(b.Z,{mb:U.HN,children:[(0,G.jsx)(b.Z,{mb:U.HN,children:(0,G.jsx)(m.Z,{light:!0})}),(0,G.jsx)(v.Z,{children:(0,G.jsxs)(f.Z,{afterIcon:(0,G.jsx)(k.Kw,{}),linkProps:{href:"/version-control?tab=".concat(B.uuid)},noHoverUnderline:!0,sameColorAsText:!0,secondary:!0,children:["Next: ",B.uuid]})})]})]})},je=r(2005),xe=te.default.div.withConfig({displayName:"indexstyle__DiffContainerStyle",componentId:"sc-1fo4nus-0"})(["pre{font-family:",";}"],je.Vp),be={codeFoldGutter:{},content:{},contentText:{},diffAdded:{},diffContainer:{},diffRemoved:{},emptyGutter:{},emptyLine:{},gutter:{},highlightedGutter:{},highlightedLine:{},line:{},lineNumber:{},marker:{},splitView:{},titleBlock:{},variables:{dark:{addedBackground:"#044B53",addedColor:"white",addedGutterBackground:"#034148",addedGutterColor:"#8c8c8c",codeFoldBackground:"#262831",codeFoldContentColor:"#555a7b",codeFoldGutterBackground:"#21232b",diffViewerBackground:"#2e303c",diffViewerColor:"#FFF",diffViewerTitleBackground:"#2f323e",diffViewerTitleBorderColor:"#353846",diffViewerTitleColor:"#555a7b",emptyLineBackground:"#363946",gutterBackground:"#2c2f3a",gutterBackgroundDark:"#262933",gutterColor:"#464c67",highlightBackground:"#2a3967",highlightGutterBackground:"#2d4077",removedBackground:"#632F34",removedColor:"white",removedGutterBackground:"#632b30",removedGutterColor:"#8c8c8c",wordAddedBackground:"#055d67",wordRemovedBackground:"#7d383f"},light:{addedBackground:"#e6ffed",addedColor:"#24292e",addedGutterBackground:"#cdffd8",addedGutterColor:"#212529",codeFoldBackground:"#f1f8ff",codeFoldContentColor:"#212529",codeFoldGutterBackground:"#dbedff",diffViewerBackground:"#fff",diffViewerColor:"212529",diffViewerTitleBackground:"#fafbfc",diffViewerTitleBorderColor:"#eee",diffViewerTitleColor:"#212529",emptyLineBackground:"#fafbfc",gutterBackground:"#f7f7f7",gutterBackgroundDark:"#f3f1f1",gutterColor:"#212529",highlightBackground:"#fffbdd",highlightGutterBackground:"#fff5b1",removedBackground:"#ffeef0",removedColor:"#24292e",removedGutterBackground:"#ffdce0",removedGutterColor:"#212529",wordAddedBackground:"#acf2bd",wordRemovedBackground:"#fdb8c0"}},wordAdded:{},wordDiff:{},wordRemoved:{}},ge=r(32821),pe=r(33766),Ze=r(9728);function we(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,o)}return r}function Ce(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?we(Object(r),!0).forEach((function(n){(0,c.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):we(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var ye=function(){var e=(0,a.useRef)(null),n=(0,a.useRef)(null),r=(0,Ze.VI)(null,{},[],{uuid:"VersionControlPage"}),o=(0,s.Z)(r,1)[0],t=(0,a.useState)(null),i=t[0],l=t[1],h=(0,a.useState)(null),f=h[0],v=h[1],j=(0,a.useState)(N[0]),Z=j[0],w=j[1],k=(0,me.iV)();(0,a.useEffect)((function(){null!==k&&void 0!==k&&k.tab&&w(N.find((function(e){return e.uuid===(null===k||void 0===k?void 0:k.tab)})))}),[k]);var P=y.ZP.git_branches.list({include_remote_branches:1}),_=P.data,I=P.mutate,O=(0,a.useMemo)((function(){return null===_||void 0===_?void 0:_.git_branches}),[_]),S=y.ZP.git_branches.detail("current"),M=S.data,D=S.mutate,A=(0,a.useMemo)((function(){return(null===M||void 0===M?void 0:M.git_branch)||{}}),[M]),T=(0,a.useMemo)((function(){return(null===A||void 0===A?void 0:A.files)||[]}),[A]),R=y.ZP.git_branches.detail("with_remotes",{_format:"with_remotes"}),z=R.data,L=R.mutate,W=(0,a.useMemo)((function(){return null===z||void 0===z?void 0:z.git_branch}),[z]),Q=(0,a.useMemo)((function(){return(null===W||void 0===W?void 0:W.remotes)||[]}),[W]),K=y.ZP.git_files.detail(f?encodeURIComponent(f):null,{base_branch:i}),X=K.data,Y=K.mutate,J=(0,a.useMemo)((function(){return null===X||void 0===X?void 0:X.git_file}),[X]);(0,a.useEffect)((function(){i&&Y()}),[i,Y]),(0,a.useEffect)((function(){null!==X&&void 0!==X&&X.error&&o({errors:null===X||void 0===X?void 0:X.error,response:X})}),[X,o]);var re=(0,a.useMemo)((function(){var e,n,r;return{modifiedFiles:null===A||void 0===A||null===(e=A.modified_files)||void 0===e?void 0:e.reduce((function(e,n){return Ce(Ce({},e),{},(0,c.Z)({},n,!0))}),{}),stagedFiles:null===A||void 0===A||null===(n=A.staged_files)||void 0===n?void 0:n.reduce((function(e,n){return Ce(Ce({},e),{},(0,c.Z)({},n,!0))}),{}),untrackedFiles:null===A||void 0===A||null===(r=A.untracked_files)||void 0===r?void 0:r.reduce((function(e,n){return Ce(Ce({},e),{},(0,c.Z)({},n,!0))}),{})}}),[A]),oe=re.modifiedFiles,te=void 0===oe?{}:oe,ie=re.stagedFiles,ce=void 0===ie?{}:ie,se=re.untrackedFiles,ue=void 0===se?{}:se;(0,a.useEffect)((function(){f&&(0,le.Qr)(te)&&(0,le.Qr)(ce)&&(0,le.Qr)(ue)&&v(null)}),[te,f,ce,ue]);var ae=(0,a.useMemo)((function(){return(null===T||void 0===T?void 0:T.length)>=1?(0,G.jsx)(ne.Z,{allowEmptyFolders:!0,disableContextMenu:!0,fetchFileTree:D,files:T,isFileDisabled:function(){return!1},onClickFile:function(e){v((function(r){if(!r||r!==e){var o;if(!i)null===n||void 0===n||null===(o=n.current)||void 0===o||o.focus();return e}return null}))},ref:e,renderAfterContent:function(e){var n,r,o=e.children,t=(null===o||void 0===o?void 0:o.length)>=1,i=(0,ge.a9)(e);t&&(i="".concat(i,"/"));var l={};return null!==te&&void 0!==te&&te[i]?(n="M",r="Modified",l.warning=!0):null!==ue&&void 0!==ue&&ue[i]?(n="U",r="Untracked",l.danger=!0):null!==ce&&void 0!==ce&&ce[i]&&(n="S",r="Staged",l.success=!0),t&&!n?null:(0,G.jsx)(b.Z,{mx:1,children:(0,G.jsx)(C.Z,{appearBefore:!0,label:r,widthFitContent:!0,children:(0,G.jsx)(p.ZP,Ce(Ce({},l),{},{monospace:!0,rightAligned:!0,small:!0,children:n}))})})},useRootFolder:!0}):(0,G.jsx)(b.Z,{p:U.cd,children:(0,G.jsx)(p.ZP,{monospace:!0,muted:!0,children:"No files modified"})})}),[i,D,e,T,te,n,v,ce,ue]),he=(0,a.useMemo)((function(){return!X||!J||f&&(null===J||void 0===J?void 0:J.filename)!==f}),[X,J,f]),fe=(0,a.useMemo)((function(){if(!f)return null;var e=J||{},n=e.content,r=e.content_from_base;return(0,G.jsxs)(xe,{children:[!i&&(0,G.jsx)(b.Z,{p:U.cd,children:(0,G.jsx)(p.ZP,{muted:!0,children:"Please select a base branch to see the file diffs."})}),(null===J||void 0===J?void 0:J.error)&&(0,G.jsx)(b.Z,{p:U.cd,children:(0,G.jsx)(p.ZP,{danger:!0,monospace:!0,preWrap:!0,children:null===J||void 0===J?void 0:J.error})}),i&&!(null!==J&&void 0!==J&&J.error)&&(0,G.jsxs)(G.Fragment,{children:[he&&(0,G.jsx)(b.Z,{p:U.cd,children:(0,G.jsx)(g.Z,{inverted:!0})}),!he&&(0,G.jsx)(u(),{compareMethod:d.DiffMethod.WORDS,newValue:n||"",oldValue:r||"",renderContent:function(e){return(0,G.jsx)(p.ZP,{monospace:!0,children:e})},splitView:!0,styles:be,useDarkTheme:!0})]})]})}),[i,J,he,f]),je=(0,a.useMemo)((function(){return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)("div",{style:{marginBottom:.5*U.iI,marginTop:.5*U.iI},children:(0,G.jsx)(V.Z,{compact:!0,onClickTab:function(e){var n=e.uuid;(0,pe.u7)({tab:n})},selectedTabUUID:null===Z||void 0===Z?void 0:Z.uuid,tabs:N})}),(0,G.jsx)(m.Z,{light:!0})]})}),[Z]),we=(0,a.useMemo)((function(){return(0,G.jsx)(ve,{branch:A,fetchBranch:L,loading:!z,remotes:Q,showError:o})}),[A,z,L,Q,o]),ye=(0,a.useMemo)((function(){return(0,G.jsx)(q,{branch:A,branches:O,fetchBranch:D,fetchBranches:I,remotes:Q,showError:o})}),[A,O,D,I,Q,o]),ke=(0,a.useMemo)((function(){return(0,G.jsx)(de,{branch:A,fetchBranch:D,modifiedFiles:te,setSelectedFilePath:v,showError:o,stagedFiles:ce,untrackedFiles:ue})}),[A,D,te,v,o,ce,ue]),Pe=(0,a.useMemo)((function(){return(0,G.jsx)($,{branch:A,branches:O,fetchBranch:D,loading:!z,modifiedFiles:te,remotes:Q,showError:o,stagedFiles:ce})}),[A,O,z,D,te,Q,o,ce]);return(0,G.jsx)(ee.Z,{after:fe,afterHidden:!f,afterWidth:40*U.iI,before:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(b.Z,{p:1,children:(0,G.jsx)(x.Z,{compact:!0,label:"Base branch",onChange:function(e){return l(e.target.value)},ref:n,small:!0,value:i||"",children:null===O||void 0===O?void 0:O.map((function(e){var n=e.name;return(0,G.jsx)("option",{value:n,children:n},n)}))})}),ae]}),mainContainerHeader:je,title:"Version control",uuid:"Version control/index",children:(0,G.jsxs)(b.Z,{p:U.cd,children:[!M&&(0,G.jsx)(g.Z,{inverted:!0}),M&&(0,G.jsxs)(G.Fragment,{children:[H.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&we,B.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&ye,F.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&ke,E.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&Pe]})]})})};function ke(){return(0,G.jsx)(ye,{})}ke.getInitialProps=(0,o.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var Pe=(0,l.Z)(ke)},75302:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/version-control",function(){return r(92589)}])}},function(e){e.O(0,[844,7607,7011,4407,1424,1005,7815,6694,551,9774,2888,179],(function(){return n=75302,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=0" name="viewport"/><title>Files | Mage</title><meta name="next-head-count" content="3"/><link href="/favicon.ico" rel="icon"/><link rel="preload" href="/_next/static/css/d1e8e64d0b07af2f.css" as="style"/><link rel="stylesheet" href="/_next/static/css/d1e8e64d0b07af2f.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/_next/static/chunks/webpack-8f51011a10b384a1.js" defer=""></script><script src="/_next/static/chunks/framework-7c365855dab1bf41.js" defer=""></script><script src="/_next/static/chunks/main-bb0dd5375146d7fd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=0" name="viewport"/><title>Files | Mage</title><meta name="next-head-count" content="3"/><link href="/favicon.ico" rel="icon"/><link rel="preload" href="/_next/static/css/d1e8e64d0b07af2f.css" as="style"/><link rel="stylesheet" href="/_next/static/css/d1e8e64d0b07af2f.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/_next/static/chunks/webpack-8f51011a10b384a1.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-171846e16d26855a.js" defer=""></script><script src="/_next/static/chunks/844-1e171f361e63b36d.js" defer=""></script><script src="/_next/static/chunks/7607-324c3a1e4e7d0628.js" defer=""></script><script src="/_next/static/chunks/7011-81dd8269c4806d26.js" defer=""></script><script src="/_next/static/chunks/8789-4f858e520d46973b.js" defer=""></script><script src="/_next/static/chunks/1424-90c0f66ba2f86b88.js" defer=""></script><script src="/_next/static/chunks/1005-d364db1eba919edd.js" defer=""></script><script src="/_next/static/chunks/7815-6eb7d2c7b62e0b18.js" defer=""></script><script src="/_next/static/chunks/6694-c8f2a68074420906.js" defer=""></script><script src="/_next/static/chunks/7722-a74e6f977993e75e.js" defer=""></script><script src="/_next/static/chunks/551-506f3e09bb4033e2.js" defer=""></script><script src="/_next/static/chunks/4127-3b7aa3d094304e35.js" defer=""></script><script src="/_next/static/chunks/pages/files-e4e778f8f5e1bf2e.js" defer=""></script><script src="/_next/static/WRxCTOtmZhTqQws_7OJZD/_buildManifest.js" defer=""></script><script src="/_next/static/WRxCTOtmZhTqQws_7OJZD/_ssgManifest.js" defer=""></script><script src="/_next/static/WRxCTOtmZhTqQws_7OJZD/_middlewareManifest.js" defer=""></script><style data-styled="" data-styled-version="5.3.6">html{-webkit-box-sizing:border-box;box-sizing:border-box;-ms-overflow-style:scrollbar;}/*!sc*/
|
|
2
2
|
*,*::before,*::after{-webkit-box-sizing:inherit;box-sizing:inherit;}/*!sc*/
|
|
3
3
|
data-styled.g4[id="sc-global-czSCUT1"]{content:"sc-global-czSCUT1,"}/*!sc*/
|
|
4
4
|
.kOVcuR .Toastify__toast-container{margin-top:24px;padding:0 !important;width:500px !important;}/*!sc*/
|
|
@@ -21,4 +21,4 @@ data-styled.g72[id="indexstyle__ContainerStyle-sc-ecogjt-0"]{content:"ijwRXz,"}/
|
|
|
21
21
|
@-webkit-keyframes animate-in{0%{width:168px;}100%{width:272px;}}/*!sc*/
|
|
22
22
|
@keyframes animate-in{0%{width:168px;}100%{width:272px;}}/*!sc*/
|
|
23
23
|
data-styled.g73[id="indexstyle__VerticalNavigationStyleComponent-sc-ecogjt-1"]{content:"jQArIy,"}/*!sc*/
|
|
24
|
-
</style></head><body><div id="__next"><div class="" style="position:fixed;top:0;left:0;height:2px;background:transparent;z-index:99999999999;width:100%"><div class="" style="height:100%;background:#FF144D;transition:all 500ms ease;width:0%"><div style="box-shadow:0 0 10px #FF144D, 0 0 10px #FF144D;width:5%;opacity:1;position:absolute;height:100%;transition:all 500ms ease;transform:rotate(3deg) translate(0px, -4px);left:-10rem"></div></div></div><div class="indexstyle__HeaderStyle-sc-1bk8irg-0 gbXfes"><div></div></div><div class="indexstyle__ContainerStyle-sc-ecogjt-0 ijwRXz"><div class="indexstyle__VerticalNavigationStyleComponent-sc-ecogjt-1 jQArIy"><div class="Spacing__SpacingStyle-sc-1mpmtgj-0 hDBiHu"><div></div></div></div><div class="Flex-sc-sgfnl9-0 dKQluW"><div></div></div></div><div></div><div></div><div></div><div class="ToastWrapper-sc-1a33ph1-0 kOVcuR"><div class="Toastify"></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"auth":{"decodedToken":{"expires":0,"token":null}}},"currentTheme":{"accent":{"alert":"#F6540B","blue":"#4877FF","blueLight":"rgba(72, 119, 255, 0.5)","contentDefaultTransparent":"rgba(174, 174, 174, 0.5)","cyan":"#65E3FF","cyanLight":"rgba(101, 227, 255, 0.3)","cyanTransparent":"rgba(101, 227, 255, 0.12)","dbt":"#fc6949","dbtLight":"rgba(252, 105, 73, 0.5)","info":"#00ABFF","infoTransparent":"rgba(0, 171, 255, 0.5)","negative":"#FF1E59","negativeTransparent":"rgba(255, 30, 89, 0.3)","pink":"#FF4FF8","pinkLight":"rgb(255, 79, 248, 0.5)","positive":"#00A81A","primaryTransparent":"rgba(155, 108, 167, 0.5)","purple":"#7D55EC","purpleLight":"rgba(125, 85, 236, 0.5)","rose":"#D1A2AB","roseLight":"rgba(209, 162, 171, 0.5)","sky":"#6AA1E0","skyLight":"rgba(106, 161, 224, 0.05)","teal":"#00B4CC","tealLight":"rgba(0, 180, 204, 0.5)","warning":"#DD9900","warningTransparent":"rgba(221, 153, 0, 0.5)","yellow":"#FFCC19","yellowLight":"rgba(255, 204, 25, 0.5)"},"background":{"chartBlock":"#2E3036","codeArea":"#1E1F24","codeTextarea":"#000000","content":"#1B1C20","danger":"#FFD0DB","dark":"#B1B8C3","header":"#1B1B1B","menu":"#0F4CFF","muted":"#F9FAFC","navigation":"#EDEDED","output":"#2E3036","page":"#1E1F24","panel":"#232429","popup":"#27292E","row":"#2C2C2C","row2":"#51535C","scrollbarThumb":"rgba(100, 100, 100, 0.5)","scrollbarThumbHover":"rgba(255, 255, 255, 0.3)","scrollbarTrack":"#2E3036","success":"#8ADE00","successLight":"rgb(138, 222, 0, 0.3)","table":"#292A2F"},"borders":{"button":"#454850","contrast":"#FFFFFF","danger":"#FF144D","dark":"#000000","info":"#FFCC19","light":"#2F3034","medium":"#1C1C1C","medium2":"#141414","success":"#2FCB52"},"brand":{"earth100":"#C6EEDB","earth200":"#9DDFBF","earth300":"#6BBF96","earth400":"#37A46F","earth400Transparent":"rgba(55, 164, 111, 0.4)","earth500":"#00954C","energy100":"#FFF4BA","energy200":"#FFED92","energy300":"#FFE662","energy400":"#FFDA19","energy400Transparent":"rgba(255, 218, 25, 0.04)","energy500":"#F6C000","fire100":"#FFD7E0","fire200":"#FFA3B9","fire300":"#FF547D","fire400":"#FF144D","fire400Transparent":"rgba(255, 20, 77, 0.4)","fire500":"#EB0032","stone100":"#F3E6D7","stone200":"#E3D4C2","stone400":"#BFA78B","stone500":"#AF8859","water100":"#BDCEFF","water200":"#81A1FF","water300":"#517DFF","water400":"#2A60FE","water400Transparent":"rgba(42, 96, 254, 0.4)","water500":"#0F4CFF","wind100":"#EEEAFF","wind200":"#CCC1F4","wind300":"#A698DD","wind400":"#6B50D7","wind400SuperTransparent":"rgba(107, 80, 215, 0.12)","wind400Transparent":"rgba(107, 80, 215, 0.4)","wind500":"#4E32BC"},"chart":{"backgroundPrimary":"#7D55EC","backgroundSecondary":"#FF144D","backgroundTertiary":"#86E2FF","button1":"#4877FF","button2":"#FFCC19","button3":"#8ADE00","button4":"#FF4FF8","button5":"#B98D95","lines":"#9B6CA7","primary":"#6B50D7","secondary":"#FF144D","tertiary":"#2A60FE"},"content":{"active":"#FFFFFF","default":"#AEAEAE","disabled":"rgba(255, 255, 255, 0.3)","inverted":"#2C2C2C","muted":"#787A85"},"elevation":{"visualizationAccent":"#996CFF","visualizationAccentAlt":"#C1ACF7"},"feature":{"active":"rgba(250, 248, 254, 0.14)","disabled":"rgba(201, 206, 218, 0.12)"},"icons":{"neutral":"#787878"},"interactive":{"activeBorder":"#060606","checked":"#060606","dangerBorder":"#FF144D","defaultBackground":"#36383F","defaultBorder":"#2E3036","disabledBorder":"#B1B8C3","focusBackground":"#B1B8C3","focusBorder":"#86E2FF","hoverBackground":"#4E4E4E","hoverBorder":"#B9BFCA","hoverOverlay":"rgba(255, 255, 255, 0.1)","linkPrimary":"#1752FF","linkPrimaryHover":"#4877FF","linkPrimaryLight":"#5982ff","linkSecondary":"#6B50D7","linkSecondaryDisabled":"#C4B9EF","linkText":"#6AA1E0","rowHoverBackground":"rgba(0, 0, 0, 0.1)","transparent":"rgba(255, 255, 255, 0)"},"loader":{"color":"#EB0032","colorInverted":"#8ADE00"},"logo":{"color":"#FFFFFF"},"monotone":{"black":"#060606","blackTransparent":"rgba(0, 0, 0, 0.6)","gray":"#B1B8C3","grey100":"#F2F2F2","grey200":"#D5D7DC","grey300":"#B4B8C0","grey400":"#70747C","grey500":"#51535C","purple":"#6B50D7","white":"#FFFFFF"},"neutral":{"n100":"#E7E8EA","n200":"#D8DADE","n300":"#CBCCD0","n400":"#BCBEC4","n500":"#AEB0B6"},"progress":{"negative":"#FF144D","positive":"#6B50D7"},"shadow":{"base":"12px 40px 120px rgba(106, 117, 139, 0.4)","frame":"0px 10px 40px rgba(0, 0, 0, 0.26)","menu":"4px 10px 20px rgba(6, 6, 6, 0.12)","popup":"10px 20px 40px rgba(0, 0, 0, 0.2)","small":"0px, 4px, rgba(0, 0, 0, 0.25)","window":"0px 10px 60px rgba(0, 0, 0, 0.7)"},"status":{"negative":"#FF144D","positive":"#24B400"},"text":{"fileBrowser":"#787A85"}}},"page":"/files","query":{},"buildId":"
|
|
24
|
+
</style></head><body><div id="__next"><div class="" style="position:fixed;top:0;left:0;height:2px;background:transparent;z-index:99999999999;width:100%"><div class="" style="height:100%;background:#FF144D;transition:all 500ms ease;width:0%"><div style="box-shadow:0 0 10px #FF144D, 0 0 10px #FF144D;width:5%;opacity:1;position:absolute;height:100%;transition:all 500ms ease;transform:rotate(3deg) translate(0px, -4px);left:-10rem"></div></div></div><div class="indexstyle__HeaderStyle-sc-1bk8irg-0 gbXfes"><div></div></div><div class="indexstyle__ContainerStyle-sc-ecogjt-0 ijwRXz"><div class="indexstyle__VerticalNavigationStyleComponent-sc-ecogjt-1 jQArIy"><div class="Spacing__SpacingStyle-sc-1mpmtgj-0 hDBiHu"><div></div></div></div><div class="Flex-sc-sgfnl9-0 dKQluW"><div></div></div></div><div></div><div></div><div></div><div class="ToastWrapper-sc-1a33ph1-0 kOVcuR"><div class="Toastify"></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"auth":{"decodedToken":{"expires":0,"token":null}}},"currentTheme":{"accent":{"alert":"#F6540B","blue":"#4877FF","blueLight":"rgba(72, 119, 255, 0.5)","contentDefaultTransparent":"rgba(174, 174, 174, 0.5)","cyan":"#65E3FF","cyanLight":"rgba(101, 227, 255, 0.3)","cyanTransparent":"rgba(101, 227, 255, 0.12)","dbt":"#fc6949","dbtLight":"rgba(252, 105, 73, 0.5)","info":"#00ABFF","infoTransparent":"rgba(0, 171, 255, 0.5)","negative":"#FF1E59","negativeTransparent":"rgba(255, 30, 89, 0.3)","pink":"#FF4FF8","pinkLight":"rgb(255, 79, 248, 0.5)","positive":"#00A81A","primaryTransparent":"rgba(155, 108, 167, 0.5)","purple":"#7D55EC","purpleLight":"rgba(125, 85, 236, 0.5)","rose":"#D1A2AB","roseLight":"rgba(209, 162, 171, 0.5)","sky":"#6AA1E0","skyLight":"rgba(106, 161, 224, 0.05)","teal":"#00B4CC","tealLight":"rgba(0, 180, 204, 0.5)","warning":"#DD9900","warningTransparent":"rgba(221, 153, 0, 0.5)","yellow":"#FFCC19","yellowLight":"rgba(255, 204, 25, 0.5)"},"background":{"chartBlock":"#2E3036","codeArea":"#1E1F24","codeTextarea":"#000000","content":"#1B1C20","danger":"#FFD0DB","dark":"#B1B8C3","header":"#1B1B1B","menu":"#0F4CFF","muted":"#F9FAFC","navigation":"#EDEDED","output":"#2E3036","page":"#1E1F24","panel":"#232429","popup":"#27292E","row":"#2C2C2C","row2":"#51535C","scrollbarThumb":"rgba(100, 100, 100, 0.5)","scrollbarThumbHover":"rgba(255, 255, 255, 0.3)","scrollbarTrack":"#2E3036","success":"#8ADE00","successLight":"rgb(138, 222, 0, 0.3)","table":"#292A2F"},"borders":{"button":"#454850","contrast":"#FFFFFF","danger":"#FF144D","dark":"#000000","info":"#FFCC19","light":"#2F3034","medium":"#1C1C1C","medium2":"#141414","success":"#2FCB52"},"brand":{"earth100":"#C6EEDB","earth200":"#9DDFBF","earth300":"#6BBF96","earth400":"#37A46F","earth400Transparent":"rgba(55, 164, 111, 0.4)","earth500":"#00954C","energy100":"#FFF4BA","energy200":"#FFED92","energy300":"#FFE662","energy400":"#FFDA19","energy400Transparent":"rgba(255, 218, 25, 0.04)","energy500":"#F6C000","fire100":"#FFD7E0","fire200":"#FFA3B9","fire300":"#FF547D","fire400":"#FF144D","fire400Transparent":"rgba(255, 20, 77, 0.4)","fire500":"#EB0032","stone100":"#F3E6D7","stone200":"#E3D4C2","stone400":"#BFA78B","stone500":"#AF8859","water100":"#BDCEFF","water200":"#81A1FF","water300":"#517DFF","water400":"#2A60FE","water400Transparent":"rgba(42, 96, 254, 0.4)","water500":"#0F4CFF","wind100":"#EEEAFF","wind200":"#CCC1F4","wind300":"#A698DD","wind400":"#6B50D7","wind400SuperTransparent":"rgba(107, 80, 215, 0.12)","wind400Transparent":"rgba(107, 80, 215, 0.4)","wind500":"#4E32BC"},"chart":{"backgroundPrimary":"#7D55EC","backgroundSecondary":"#FF144D","backgroundTertiary":"#86E2FF","button1":"#4877FF","button2":"#FFCC19","button3":"#8ADE00","button4":"#FF4FF8","button5":"#B98D95","lines":"#9B6CA7","primary":"#6B50D7","secondary":"#FF144D","tertiary":"#2A60FE"},"content":{"active":"#FFFFFF","default":"#AEAEAE","disabled":"rgba(255, 255, 255, 0.3)","inverted":"#2C2C2C","muted":"#787A85"},"elevation":{"visualizationAccent":"#996CFF","visualizationAccentAlt":"#C1ACF7"},"feature":{"active":"rgba(250, 248, 254, 0.14)","disabled":"rgba(201, 206, 218, 0.12)"},"icons":{"neutral":"#787878"},"interactive":{"activeBorder":"#060606","checked":"#060606","dangerBorder":"#FF144D","defaultBackground":"#36383F","defaultBorder":"#2E3036","disabledBorder":"#B1B8C3","focusBackground":"#B1B8C3","focusBorder":"#86E2FF","hoverBackground":"#4E4E4E","hoverBorder":"#B9BFCA","hoverOverlay":"rgba(255, 255, 255, 0.1)","linkPrimary":"#1752FF","linkPrimaryHover":"#4877FF","linkPrimaryLight":"#5982ff","linkSecondary":"#6B50D7","linkSecondaryDisabled":"#C4B9EF","linkText":"#6AA1E0","rowHoverBackground":"rgba(0, 0, 0, 0.1)","transparent":"rgba(255, 255, 255, 0)"},"loader":{"color":"#EB0032","colorInverted":"#8ADE00"},"logo":{"color":"#FFFFFF"},"monotone":{"black":"#060606","blackTransparent":"rgba(0, 0, 0, 0.6)","gray":"#B1B8C3","grey100":"#F2F2F2","grey200":"#D5D7DC","grey300":"#B4B8C0","grey400":"#70747C","grey500":"#51535C","purple":"#6B50D7","white":"#FFFFFF"},"neutral":{"n100":"#E7E8EA","n200":"#D8DADE","n300":"#CBCCD0","n400":"#BCBEC4","n500":"#AEB0B6"},"progress":{"negative":"#FF144D","positive":"#6B50D7"},"shadow":{"base":"12px 40px 120px rgba(106, 117, 139, 0.4)","frame":"0px 10px 40px rgba(0, 0, 0, 0.26)","menu":"4px 10px 20px rgba(6, 6, 6, 0.12)","popup":"10px 20px 40px rgba(0, 0, 0, 0.2)","small":"0px, 4px, rgba(0, 0, 0, 0.25)","window":"0px 10px 60px rgba(0, 0, 0, 0.7)"},"status":{"negative":"#FF144D","positive":"#24B400"},"text":{"fileBrowser":"#787A85"}}},"page":"/files","query":{},"buildId":"WRxCTOtmZhTqQws_7OJZD","nextExport":true,"isFallback":false,"gip":true,"appGip":true,"scriptLoader":[]}</script></body></html>
|
|
@@ -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-8f51011a10b384a1.js" defer=""></script><script src="/_next/static/chunks/framework-7c365855dab1bf41.js" defer=""></script><script src="/_next/static/chunks/main-bb0dd5375146d7fd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><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-8f51011a10b384a1.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-171846e16d26855a.js" defer=""></script><script src="/_next/static/chunks/pages/index-b6cd94a079629572.js" defer=""></script><script src="/_next/static/WRxCTOtmZhTqQws_7OJZD/_buildManifest.js" defer=""></script><script src="/_next/static/WRxCTOtmZhTqQws_7OJZD/_ssgManifest.js" defer=""></script><script src="/_next/static/WRxCTOtmZhTqQws_7OJZD/_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></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","cyanLight":"rgba(101, 227, 255, 0.3)","cyanTransparent":"rgba(101, 227, 255, 0.12)","dbt":"#fc6949","dbtLight":"rgba(252, 105, 73, 0.5)","info":"#00ABFF","infoTransparent":"rgba(0, 171, 255, 0.5)","negative":"#FF1E59","negativeTransparent":"rgba(255, 30, 89, 0.3)","pink":"#FF4FF8","pinkLight":"rgb(255, 79, 248, 0.5)","positive":"#00A81A","primaryTransparent":"rgba(155, 108, 167, 0.5)","purple":"#7D55EC","purpleLight":"rgba(125, 85, 236, 0.5)","rose":"#D1A2AB","roseLight":"rgba(209, 162, 171, 0.5)","sky":"#6AA1E0","skyLight":"rgba(106, 161, 224, 0.05)","teal":"#00B4CC","tealLight":"rgba(0, 180, 204, 0.5)","warning":"#DD9900","warningTransparent":"rgba(221, 153, 0, 0.5)","yellow":"#FFCC19","yellowLight":"rgba(255, 204, 25, 0.5)"},"background":{"chartBlock":"#2E3036","codeArea":"#1E1F24","codeTextarea":"#000000","content":"#1B1C20","danger":"#FFD0DB","dark":"#B1B8C3","header":"#1B1B1B","menu":"#0F4CFF","muted":"#F9FAFC","navigation":"#EDEDED","output":"#2E3036","page":"#1E1F24","panel":"#232429","popup":"#27292E","row":"#2C2C2C","row2":"#51535C","scrollbarThumb":"rgba(100, 100, 100, 0.5)","scrollbarThumbHover":"rgba(255, 255, 255, 0.3)","scrollbarTrack":"#2E3036","success":"#8ADE00","successLight":"rgb(138, 222, 0, 0.3)","table":"#292A2F"},"borders":{"button":"#454850","contrast":"#FFFFFF","danger":"#FF144D","dark":"#000000","info":"#FFCC19","light":"#2F3034","medium":"#1C1C1C","medium2":"#141414","success":"#2FCB52"},"brand":{"earth100":"#C6EEDB","earth200":"#9DDFBF","earth300":"#6BBF96","earth400":"#37A46F","earth400Transparent":"rgba(55, 164, 111, 0.4)","earth500":"#00954C","energy100":"#FFF4BA","energy200":"#FFED92","energy300":"#FFE662","energy400":"#FFDA19","energy400Transparent":"rgba(255, 218, 25, 0.04)","energy500":"#F6C000","fire100":"#FFD7E0","fire200":"#FFA3B9","fire300":"#FF547D","fire400":"#FF144D","fire400Transparent":"rgba(255, 20, 77, 0.4)","fire500":"#EB0032","stone100":"#F3E6D7","stone200":"#E3D4C2","stone400":"#BFA78B","stone500":"#AF8859","water100":"#BDCEFF","water200":"#81A1FF","water300":"#517DFF","water400":"#2A60FE","water400Transparent":"rgba(42, 96, 254, 0.4)","water500":"#0F4CFF","wind100":"#EEEAFF","wind200":"#CCC1F4","wind300":"#A698DD","wind400":"#6B50D7","wind400SuperTransparent":"rgba(107, 80, 215, 0.12)","wind400Transparent":"rgba(107, 80, 215, 0.4)","wind500":"#4E32BC"},"chart":{"backgroundPrimary":"#7D55EC","backgroundSecondary":"#FF144D","backgroundTertiary":"#86E2FF","button1":"#4877FF","button2":"#FFCC19","button3":"#8ADE00","button4":"#FF4FF8","button5":"#B98D95","lines":"#9B6CA7","primary":"#6B50D7","secondary":"#FF144D","tertiary":"#2A60FE"},"content":{"active":"#FFFFFF","default":"#AEAEAE","disabled":"rgba(255, 255, 255, 0.3)","inverted":"#2C2C2C","muted":"#787A85"},"elevation":{"visualizationAccent":"#996CFF","visualizationAccentAlt":"#C1ACF7"},"feature":{"active":"rgba(250, 248, 254, 0.14)","disabled":"rgba(201, 206, 218, 0.12)"},"icons":{"neutral":"#787878"},"interactive":{"activeBorder":"#060606","checked":"#060606","dangerBorder":"#FF144D","defaultBackground":"#36383F","defaultBorder":"#2E3036","disabledBorder":"#B1B8C3","focusBackground":"#B1B8C3","focusBorder":"#86E2FF","hoverBackground":"#4E4E4E","hoverBorder":"#B9BFCA","hoverOverlay":"rgba(255, 255, 255, 0.1)","linkPrimary":"#1752FF","linkPrimaryHover":"#4877FF","linkPrimaryLight":"#5982ff","linkSecondary":"#6B50D7","linkSecondaryDisabled":"#C4B9EF","linkText":"#6AA1E0","rowHoverBackground":"rgba(0, 0, 0, 0.1)","transparent":"rgba(255, 255, 255, 0)"},"loader":{"color":"#EB0032","colorInverted":"#8ADE00"},"logo":{"color":"#FFFFFF"},"monotone":{"black":"#060606","blackTransparent":"rgba(0, 0, 0, 0.6)","gray":"#B1B8C3","grey100":"#F2F2F2","grey200":"#D5D7DC","grey300":"#B4B8C0","grey400":"#70747C","grey500":"#51535C","purple":"#6B50D7","white":"#FFFFFF"},"neutral":{"n100":"#E7E8EA","n200":"#D8DADE","n300":"#CBCCD0","n400":"#BCBEC4","n500":"#AEB0B6"},"progress":{"negative":"#FF144D","positive":"#6B50D7"},"shadow":{"base":"12px 40px 120px rgba(106, 117, 139, 0.4)","frame":"0px 10px 40px rgba(0, 0, 0, 0.26)","menu":"4px 10px 20px rgba(6, 6, 6, 0.12)","popup":"10px 20px 40px rgba(0, 0, 0, 0.2)","small":"0px, 4px, rgba(0, 0, 0, 0.25)","window":"0px 10px 60px rgba(0, 0, 0, 0.7)"},"status":{"negative":"#FF144D","positive":"#24B400"},"text":{"fileBrowser":"#787A85"}}},"page":"/","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></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","cyanLight":"rgba(101, 227, 255, 0.3)","cyanTransparent":"rgba(101, 227, 255, 0.12)","dbt":"#fc6949","dbtLight":"rgba(252, 105, 73, 0.5)","info":"#00ABFF","infoTransparent":"rgba(0, 171, 255, 0.5)","negative":"#FF1E59","negativeTransparent":"rgba(255, 30, 89, 0.3)","pink":"#FF4FF8","pinkLight":"rgb(255, 79, 248, 0.5)","positive":"#00A81A","primaryTransparent":"rgba(155, 108, 167, 0.5)","purple":"#7D55EC","purpleLight":"rgba(125, 85, 236, 0.5)","rose":"#D1A2AB","roseLight":"rgba(209, 162, 171, 0.5)","sky":"#6AA1E0","skyLight":"rgba(106, 161, 224, 0.05)","teal":"#00B4CC","tealLight":"rgba(0, 180, 204, 0.5)","warning":"#DD9900","warningTransparent":"rgba(221, 153, 0, 0.5)","yellow":"#FFCC19","yellowLight":"rgba(255, 204, 25, 0.5)"},"background":{"chartBlock":"#2E3036","codeArea":"#1E1F24","codeTextarea":"#000000","content":"#1B1C20","danger":"#FFD0DB","dark":"#B1B8C3","header":"#1B1B1B","menu":"#0F4CFF","muted":"#F9FAFC","navigation":"#EDEDED","output":"#2E3036","page":"#1E1F24","panel":"#232429","popup":"#27292E","row":"#2C2C2C","row2":"#51535C","scrollbarThumb":"rgba(100, 100, 100, 0.5)","scrollbarThumbHover":"rgba(255, 255, 255, 0.3)","scrollbarTrack":"#2E3036","success":"#8ADE00","successLight":"rgb(138, 222, 0, 0.3)","table":"#292A2F"},"borders":{"button":"#454850","contrast":"#FFFFFF","danger":"#FF144D","dark":"#000000","info":"#FFCC19","light":"#2F3034","medium":"#1C1C1C","medium2":"#141414","success":"#2FCB52"},"brand":{"earth100":"#C6EEDB","earth200":"#9DDFBF","earth300":"#6BBF96","earth400":"#37A46F","earth400Transparent":"rgba(55, 164, 111, 0.4)","earth500":"#00954C","energy100":"#FFF4BA","energy200":"#FFED92","energy300":"#FFE662","energy400":"#FFDA19","energy400Transparent":"rgba(255, 218, 25, 0.04)","energy500":"#F6C000","fire100":"#FFD7E0","fire200":"#FFA3B9","fire300":"#FF547D","fire400":"#FF144D","fire400Transparent":"rgba(255, 20, 77, 0.4)","fire500":"#EB0032","stone100":"#F3E6D7","stone200":"#E3D4C2","stone400":"#BFA78B","stone500":"#AF8859","water100":"#BDCEFF","water200":"#81A1FF","water300":"#517DFF","water400":"#2A60FE","water400Transparent":"rgba(42, 96, 254, 0.4)","water500":"#0F4CFF","wind100":"#EEEAFF","wind200":"#CCC1F4","wind300":"#A698DD","wind400":"#6B50D7","wind400SuperTransparent":"rgba(107, 80, 215, 0.12)","wind400Transparent":"rgba(107, 80, 215, 0.4)","wind500":"#4E32BC"},"chart":{"backgroundPrimary":"#7D55EC","backgroundSecondary":"#FF144D","backgroundTertiary":"#86E2FF","button1":"#4877FF","button2":"#FFCC19","button3":"#8ADE00","button4":"#FF4FF8","button5":"#B98D95","lines":"#9B6CA7","primary":"#6B50D7","secondary":"#FF144D","tertiary":"#2A60FE"},"content":{"active":"#FFFFFF","default":"#AEAEAE","disabled":"rgba(255, 255, 255, 0.3)","inverted":"#2C2C2C","muted":"#787A85"},"elevation":{"visualizationAccent":"#996CFF","visualizationAccentAlt":"#C1ACF7"},"feature":{"active":"rgba(250, 248, 254, 0.14)","disabled":"rgba(201, 206, 218, 0.12)"},"icons":{"neutral":"#787878"},"interactive":{"activeBorder":"#060606","checked":"#060606","dangerBorder":"#FF144D","defaultBackground":"#36383F","defaultBorder":"#2E3036","disabledBorder":"#B1B8C3","focusBackground":"#B1B8C3","focusBorder":"#86E2FF","hoverBackground":"#4E4E4E","hoverBorder":"#B9BFCA","hoverOverlay":"rgba(255, 255, 255, 0.1)","linkPrimary":"#1752FF","linkPrimaryHover":"#4877FF","linkPrimaryLight":"#5982ff","linkSecondary":"#6B50D7","linkSecondaryDisabled":"#C4B9EF","linkText":"#6AA1E0","rowHoverBackground":"rgba(0, 0, 0, 0.1)","transparent":"rgba(255, 255, 255, 0)"},"loader":{"color":"#EB0032","colorInverted":"#8ADE00"},"logo":{"color":"#FFFFFF"},"monotone":{"black":"#060606","blackTransparent":"rgba(0, 0, 0, 0.6)","gray":"#B1B8C3","grey100":"#F2F2F2","grey200":"#D5D7DC","grey300":"#B4B8C0","grey400":"#70747C","grey500":"#51535C","purple":"#6B50D7","white":"#FFFFFF"},"neutral":{"n100":"#E7E8EA","n200":"#D8DADE","n300":"#CBCCD0","n400":"#BCBEC4","n500":"#AEB0B6"},"progress":{"negative":"#FF144D","positive":"#6B50D7"},"shadow":{"base":"12px 40px 120px rgba(106, 117, 139, 0.4)","frame":"0px 10px 40px rgba(0, 0, 0, 0.26)","menu":"4px 10px 20px rgba(6, 6, 6, 0.12)","popup":"10px 20px 40px rgba(0, 0, 0, 0.2)","small":"0px, 4px, rgba(0, 0, 0, 0.25)","window":"0px 10px 60px rgba(0, 0, 0, 0.7)"},"status":{"negative":"#FF144D","positive":"#24B400"},"text":{"fileBrowser":"#787A85"}}},"page":"/","query":{},"buildId":"WRxCTOtmZhTqQws_7OJZD","nextExport":true,"isFallback":false,"appGip":true,"scriptLoader":[]}</script></body></html>
|