(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[676],{12595:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return w}});var s=t(1396),i=t(77336),r=t(41664),c=t(13275),u=t(43894),o=t(11163),l=t(67294),d=t(97142),a=t(23769),f=t(62949),h=t(21885),x=t(90846),m=t(32523),j=t(51235),g=t(85893),C=["Describe","Declare","Review"],y=function(n){var e=n.steps,t=n.currentStepIndex,i=n.onChange;return(0,g.jsx)(s.Kq,{pl:5,children:e.map((function(n,e){var s=e===t;return(0,g.jsx)(u.zx,{variant:"ghost",colorScheme:s?"complimentary":"ghost",width:"fit-content",disabled:e>t,onClick:function(){return i(e)},children:n},n)}))})},p=function(){var n=(0,o.useRouter)(),e=(0,d.T)(),t=(0,l.useState)(0),i=t[0],r=t[1],c=(0,d.C)(m.NC),u=function(){n.back(),e((0,m.db)(null))},p=function(n){r(i+1),e((0,m.db)(n))};return(0,g.jsxs)(s.rj,{templateColumns:"3fr 7fr",maxWidth:"70vw",children:[(0,g.jsx)(s.P4,{children:(0,g.jsxs)(s.Kq,{spacing:3,fontWeight:"semibold","data-testid":"settings",children:[(0,g.jsx)(s.xv,{children:"Configuration Settings"}),(0,g.jsx)(y,{steps:C,currentStepIndex:i,onChange:r})]})}),(0,g.jsxs)(s.P4,{w:"75%",children:[0===i?(0,g.jsx)(a.Z,{onSuccess:p,onCancel:u,initialValues:c?(0,f.wu)(c):void 0}):null,1===i&&c?(0,g.jsx)(h.Z,{system:c,onSuccess:p,onCancel:u}):null,2===i&&c?(0,g.jsx)(x.Z,{system:c,onCancel:u,onSuccess:function(){return r(i+1)}}):null,3===i&&c?(0,g.jsx)(j.Z,{system:c,onAddNextSystem:u,onContinue:function(){n.push("/system"),e((0,m.db)(null))}}):null]})]})},w=function(){return(0,g.jsxs)(c.Z,{title:"Systems",children:[(0,g.jsx)(s.X6,{mb:2,fontSize:"2xl",fontWeight:"semibold",children:"Configure your system"}),(0,g.jsx)(s.xu,{mb:8,children:(0,g.jsxs)(i.aG,{fontWeight:"medium",fontSize:"sm",color:"gray.600",children:[(0,g.jsx)(i.gN,{children:(0,g.jsx)(r.default,{href:"/system",children:"System Connections"})}),(0,g.jsx)(i.gN,{children:(0,g.jsx)(r.default,{href:"/system/new",children:"Create a new system"})}),(0,g.jsx)(i.gN,{children:(0,g.jsx)(r.default,{href:"#",children:"Configure your connection"})})]})}),(0,g.jsx)(p,{})]})}},38265:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/system/new/configure",function(){return t(12595)}])}},function(n){n.O(0,[731,785,636,437,906,175,853,589,157,467,275,80,329,774,888,179],(function(){return e=38265,n(n.s=e);var e}));var e=n.O();_N_E=e}]);