"use strict";(self.webpackChunk_dagster_io_dagit_app=self.webpackChunk_dagster_io_dagit_app||[]).push([[499],{76583:function(n,e,t){t.r(e),t.d(e,{InstanceConfig:function(){return C},INSTANCE_CONFIG_QUERY:function(){return b}});var o,i=t(99500),r=t(922),s=(t(81452),t(73701)),a=t(7838),c=t(32030),l=t(34595),d=t(31112),f=t(12745),u=t(24818),h=t(325),x=t(19102),m=t(78093),g=t(96560),p=t(25171),j=t(8851),v=t(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"])),a.w.KeylineGray,a.w.Yellow200),C=h.memo((function(){(0,m.Px)();var n=h.useContext(p.N).pageTitle,e=(0,s.a)(b,{fetchPolicy:"cache-and-network",notifyOnNetworkStatusChange:!0}),t=(0,x.C4)(e,x.dT),o=e.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)(d.m,{title:(0,v.jsx)(f.X6,{children:n}),tabs:(0,v.jsx)(j.Z,{tab:"config",refreshState:t})}),(0,v.jsx)(c.x,{padding:{vertical:16,horizontal:24},border:{side:"bottom",width:1,color:a.w.KeylineGray},children:(0,v.jsxs)(f.pm,{children:["Dagster version: ",(0,v.jsx)(f.EK,{style:{fontSize:"16px"},children:o.version})]})}),(0,v.jsx)(u.NU,{editorDidMount:function(n){var e=document.location.hash;if(e){var 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()))}},value:i||"",options:{lineNumbers:!0,mode:"yaml"},theme:["instance-config"]})]}):(0,v.jsx)(c.x,{padding:{vertical:64},children:(0,v.jsx)(l.$,{purpose:"section"})})}));e.default=C;var b=(0,g.B)("\n  query InstanceConfigQuery {\n    version\n    instance {\n      info\n    }\n  }\n")},8851:function(n,e,t){t.d(e,{Z:function(){return v}});var o=t(32030),i=t(31269),r=t(325),s=t(19102),a=t(24971),c=t(7838),l=t(13243),d=t(81081),f=t(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})),h=t(11831),x=t(34595),m=r.memo((function(n){var e=n.placeholder,t=r.useContext(l.Z).codeLocations;return t?"spinner"===t.type?(0,f.jsx)(h.u,{content:t.content,placement:"bottom",children:(0,f.jsx)(x.$,{purpose:"body-text",fillColor:c.w.Gray300})}):(0,f.jsx)(d.a,{content:t.content,position:"bottom",modifiers:{offset:{enabled:!0,options:{offset:[0,28]}}},children:(0,f.jsx)(a.JO,{name:"warning",color:c.w.Yellow500})}):e?(0,f.jsx)("div",{style:{width:"16px"}}):null})),g=t(37286),p=t(25171),j=t(40515),v=function(n){var e=n.refreshState,t=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:t,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]}),e?(0,f.jsx)(o.x,{padding:{bottom:8},children:(0,f.jsx)(s.xi,{refreshState:e})}):null]})}},40515:function(n,e,t){t.d(e,{_:function(){return r}});var o=t(73701),i=t(96560),r=function(){var n=(0,o.a)(s).data;return!(null===n||void 0===n||!n.instance.hasInfo)},s=(0,i.B)("\n  query InstanceConfigHasInfo {\n    instance {\n      hasInfo\n    }\n  }\n")},37286:function(n,e,t){t.d(e,{f:function(){return d}});var o=t(95764),i=t(81034),r=t(922),s=t(31269),a=(t(325),t(74549)),c=t(32289),l=["to","title"],d=(0,r.ZP)((function(n){var e=n.to,t=n.title,r=(0,i.Z)(n,l),d=(0,s.xv)(n),f=(0,s.BY)(n),u="string"===typeof t?t:void 0;return(0,c.jsx)(a.rU,(0,o.Z)((0,o.Z)((0,o.Z)({to:e,title:u},d),r),{},{children:f}))})).withConfig({displayName:"TabLink",componentId:"sc-1rmmczd-0"})(["",""],s.gA)}}]);
//# sourceMappingURL=499.c891be7f.chunk.js.map