"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5521,7265],{5521:function(n,e,t){t.r(e),t.d(e,{INSTANCE_CONFIG_QUERY:function(){return N},InstanceConfigContent:function(){return I},InstanceConfigRoot:function(){return w}});var o=t(73235),i=t(52322);t(19757);var r=t(24432),s=t(89130),l=t(39013),c=t(14934),a=t(79106),u=t(35292),f=t(20156),d=t(74580),x=t(2784),h=t(35505),g=t(9108),m=t(77265),j=t(16336),p=t(69737),C=t(20171),v=t(34219);function b(){let n=(0,o._)(["\n  query InstanceConfigQuery {\n    version\n    instance {\n      id\n      info\n    }\n  }\n"]);return b=function(){return n},n}let y=(0,h.vJ)([".CodeMirror.cm-s-instance-config.cm-s-instance-config{background-color:",";box-shadow:0 1px 0 ",";color:",";height:100%;.config-highlight.config-highlight{background-color:",";}}"],l.v8(),l.wL(),l.Ep(),l.WA()),I=(0,x.memo)(()=>{(0,p.Px)(),(0,C.j)("Configuration");let n=(0,r.a)(N,{notifyOnNetworkStatusChange:!0});(0,v.Hu)(n,"InstanceConfigQuery");let e=(0,j.C4)(n,j.dT),{data:t}=n,o=null==t?void 0:t.instance.info,s=(0,x.useMemo)(()=>({onReady:n=>{let e=document.location.hash;if(e){let t=new RegExp("^".concat(e.slice(1),":")),o=n.getSearchCursor(t);o.findNext()&&(n.markText(o.from(),o.to(),{className:"config-highlight"}),n.scrollIntoView(o.from()))}}}),[]);return t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(y,{}),(0,i.jsxs)(c.x,{padding:{vertical:16,horizontal:24},border:"bottom",flex:{direction:"row",alignItems:"center",justifyContent:"space-between"},children:[(0,i.jsxs)(u.pm,{children:["Dagster version: ",(0,i.jsx)(u.EK,{style:{fontSize:"16px"},children:t.version})]}),(0,i.jsx)(j.xi,{refreshState:e})]}),(0,i.jsx)("div",{style:{flex:1,overflow:"hidden"},children:(0,i.jsx)(f.u,{value:o||"",options:{readOnly:!0,lineNumbers:!0,mode:"yaml"},handlers:s,theme:["instance-config"]})})]}):(0,i.jsx)(c.x,{padding:{vertical:64},children:(0,i.jsx)(a.$,{purpose:"section"})})}),w=()=>{let{pageTitle:n}=(0,x.useContext)(g.N);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.m,{title:(0,i.jsx)(u.X6,{children:n}),tabs:(0,i.jsx)(m.Z,{tab:"config"})}),(0,i.jsx)(I,{})]})};e.default=w;let N=(0,s.Ps)(b())},77265:function(n,e,t){t.d(e,{Z:function(){return C}});var o=t(52322),i=t(14934),r=t(73407),s=t(2784),l=t(9108),c=t(35232),a=t(16336),u=t(21993),f=t(39013),d=t(29185),x=t(83613);let h=(0,s.memo)(()=>{let{daemons:n}=(0,s.useContext)(x.Z);return n?(0,o.jsx)(d.a,{content:n.content,position:"bottom",modifiers:{offset:{enabled:!0,options:{offset:[0,28]}}},children:(0,o.jsx)(u.JO,{name:"warning",color:f.qr()})}):null});var g=t(35002),m=t(79106);let j=(0,s.memo)(n=>{let{placeholder:e}=n,{codeLocations:t}=(0,s.useContext)(x.Z);return t?"spinner"===t.type?(0,o.jsx)(g.u,{content:t.content,placement:"bottom",children:(0,o.jsx)(m.$,{purpose:"body-text",fillColor:f.md()})}):(0,o.jsx)(d.a,{content:t.content,position:"bottom",modifiers:{offset:{enabled:!0,options:{offset:[0,28]}}},children:(0,o.jsx)(u.JO,{name:"warning",color:f.qr()})}):e?(0,o.jsx)("div",{style:{width:"16px"}}):null});var p=t(89918);let C=n=>{let{refreshState:e,tab:t}=n,{healthTitle:u}=(0,s.useContext)(l.N),f=(0,c._)();return(0,o.jsxs)(i.x,{flex:{direction:"row",justifyContent:"space-between",alignItems:"flex-end"},children:[(0,o.jsxs)(r.mQ,{selectedTabId:t,children:[(0,o.jsx)(p.f,{id:"locations",title:"Code locations",to:"/locations",icon:(0,o.jsx)(j,{placeholder:!1})}),(0,o.jsx)(p.f,{id:"health",title:u,to:"/health",icon:(0,o.jsx)(h,{})}),f?(0,o.jsx)(p.f,{id:"concurrency",title:"Concurrency limits",to:"/concurrency"}):null,f?(0,o.jsx)(p.f,{id:"config",title:"Configuration",to:"/config"}):null]}),e?(0,o.jsx)(i.x,{padding:{bottom:8},children:(0,o.jsx)(a.xi,{refreshState:e})}):null]})}},35232:function(n,e,t){t.d(e,{_:function(){return c}});var o=t(73235),i=t(24432),r=t(89130),s=t(34219);function l(){let n=(0,o._)(["\n  query InstanceConfigHasInfo {\n    instance {\n      id\n      hasInfo\n    }\n  }\n"]);return l=function(){return n},n}let c=()=>{var n;let e=(0,i.a)(a);return(0,s.Hu)(e,"InstanceConfigHasInfoQuery"),!!(null===(n=e.data)||void 0===n?void 0:n.instance.hasInfo)},a=(0,r.Ps)(l())}}]);
//# sourceMappingURL=5521.a55cda6440c1d633.js.map