"use strict";(self.webpackChunk_dagster_io_dagit_app=self.webpackChunk_dagster_io_dagit_app||[]).push([[499],{76583:function(n,t,e){e.r(t),e.d(t,{InstanceConfig:function(){return b},INSTANCE_CONFIG_QUERY:function(){return C}});var o,i=e(99500),r=e(922),s=e(43913),a=(e(81452),e(73701)),c=e(7838),l=e(32030),d=e(34595),f=e(31112),u=e(12745),x=e(24818),h=e(325),m=e(19102),g=e(78093),p=(e(96560),e(25171)),j=e(8851),v=e(32289),w=(0,r.vJ)(o||(o=(0,i.Z)(["\n  .react-codemirror2 .CodeMirror.cm-s-instance-config {\n    box-shadow: 0 1px 0 ",";\n    height: 100%;\n  }\n\n  .react-codemirror2 .CodeMirror.cm-s-instance-config {\n    .config-highlight {\n      background-color: ",";\n    }\n"])),c.w.KeylineGray,c.w.Yellow200),b=h.memo((function(){(0,g.Px)();var n=h.useContext(p.N).pageTitle,t=(0,a.a)(C,{notifyOnNetworkStatusChange:!0}),e=(0,m.C4)(t,m.dT),o=t.data,i=null===o||void 0===o?void 0:o.instance.info;return o?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(w,{}),(0,v.jsx)(f.m,{title:(0,v.jsx)(u.X6,{children:n}),tabs:(0,v.jsx)(j.Z,{tab:"config",refreshState:e})}),(0,v.jsx)(l.x,{padding:{vertical:16,horizontal:24},border:{side:"bottom",width:1,color:c.w.KeylineGray},children:(0,v.jsxs)(u.pm,{children:["Dagster version: ",(0,v.jsx)(u.EK,{style:{fontSize:"16px"},children:o.version})]})}),(0,v.jsx)(x.NU,{editorDidMount:function(n){var t=document.location.hash;if(t){var e=new RegExp("^".concat(t.slice(1),":")),o=n.getSearchCursor(e);o.findNext()&&(n.markText(o.from(),o.to(),{className:"config-highlight"}),n.scrollIntoView(o.from()))}},value:i||"",options:{lineNumbers:!0,mode:"yaml"},theme:["instance-config"]})]}):(0,v.jsx)(l.x,{padding:{vertical:64},children:(0,v.jsx)(d.$,{purpose:"section"})})}));t.default=b;var C=s.kUw},8851:function(n,t,e){e.d(t,{Z:function(){return v}});var o=e(32030),i=e(31269),r=e(325),s=e(19102),a=e(24971),c=e(7838),l=e(13243),d=e(81081),f=e(32289),u=r.memo((function(){var n=r.useContext(l.Z).daemons;return n?(0,f.jsx)(d.a,{content:n.content,position:"bottom",modifiers:{offset:{enabled:!0,options:{offset:[0,28]}}},children:(0,f.jsx)(a.JO,{name:"warning",color:c.w.Yellow500})}):null})),x=e(11831),h=e(34595),m=r.memo((function(n){var t=n.placeholder,e=r.useContext(l.Z).codeLocations;return e?"spinner"===e.type?(0,f.jsx)(x.u,{content:e.content,placement:"bottom",children:(0,f.jsx)(h.$,{purpose:"body-text",fillColor:c.w.Gray300})}):(0,f.jsx)(d.a,{content:e.content,position:"bottom",modifiers:{offset:{enabled:!0,options:{offset:[0,28]}}},children:(0,f.jsx)(a.JO,{name:"warning",color:c.w.Yellow500})}):t?(0,f.jsx)("div",{style:{width:"16px"}}):null})),g=e(37286),p=e(25171),j=e(40515),v=function(n){var t=n.refreshState,e=n.tab,a=r.useContext(p.N).healthTitle,c=(0,j._)();return(0,f.jsxs)(o.x,{flex:{direction:"row",justifyContent:"space-between",alignItems:"flex-end"},children:[(0,f.jsxs)(i.mQ,{selectedTabId:e,children:[(0,f.jsx)(g.f,{id:"locations",title:"Code locations",to:"/locations",icon:(0,f.jsx)(m,{placeholder:!1})}),(0,f.jsx)(g.f,{id:"health",title:a,to:"/health",icon:(0,f.jsx)(u,{})}),c?(0,f.jsx)(g.f,{id:"config",title:"Configuration",to:"/config"}):null]}),t?(0,f.jsx)(o.x,{padding:{bottom:8},children:(0,f.jsx)(s.xi,{refreshState:t})}):null]})}},40515:function(n,t,e){e.d(t,{_:function(){return r}});var o=e(43913),i=e(73701),r=(e(96560),function(){var n=(0,i.a)(s).data;return!(null===n||void 0===n||!n.instance.hasInfo)}),s=o.WOV},37286:function(n,t,e){e.d(t,{f:function(){return d}});var o=e(95764),i=e(81034),r=e(922),s=e(31269),a=(e(325),e(74549)),c=e(32289),l=["to","title"],d=(0,r.ZP)((function(n){var t=n.to,e=n.title,r=(0,i.Z)(n,l),d=(0,s.xv)(n),f=(0,s.BY)(n),u="string"===typeof e?e:void 0;return(0,c.jsx)(a.rU,(0,o.Z)((0,o.Z)((0,o.Z)({to:t,title:u},d),r),{},{children:f}))})).withConfig({displayName:"TabLink",componentId:"sc-1rmmczd-0"})(["",""],s.gA)}}]);
//# sourceMappingURL=499.fe02e1a5.chunk.js.map