(self.webpackChunkvalidator_frontend=self.webpackChunkvalidator_frontend||[]).push([[54,686],{10:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(6540),i=n(884),a=n(1900),o=n(4803),s=n(4848);var c=function({endpoint:e,fileName:t}){const{request:n,data:c,error:l,status:u}=(0,o.A)();return(0,r.useEffect)(()=>{n(e,{headers:{"Content-Type":"application/xml"}})},[e,n]),(0,s.jsxs)(s.Fragment,{children:[u===o.I.Failure&&l&&(0,s.jsx)(a.A,{title:"An error occurred while fetching",children:(0,s.jsx)(i.A,{children:l.message})}),u===o.I.Success&&c&&(0,s.jsx)(i.A,{download:{fileName:t,mime:"application/xml"},enableCopy:!0,children:c})]})}},884:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(6540),i=n(1765),a=n(4586),o=n(4164),s=n(5419),c=n.n(s),l="codeblock_Yfbc",u="wrapper_DZPG",d="buttonWrapper_BACP",h="button_HbCM",m=n(4848);const f=()=>document.documentElement.dataset.theme||"light";var p=function({children:e,language:t="markup",enableCopy:n=!1,download:s}){const{siteConfig:p}=(0,a.A)(),v=function(){const[e,t]=(0,r.useState)(f);return(0,r.useEffect)(()=>{const e=new MutationObserver(()=>{t(f())});return e.observe(document.documentElement,{subtree:!1,attributeFilter:["data-theme"]}),()=>e.disconnect()}),e}(),b=p.themeConfig.prism.theme,g=p.themeConfig.prism.darkTheme,x="light"===v?b:g;return(0,m.jsxs)("div",{className:u,children:[(0,m.jsx)(i.f4,{code:e,language:t,theme:x,children:({className:e,style:t,tokens:n,getLineProps:r,getTokenProps:i})=>(0,m.jsx)("pre",{className:(0,o.A)(e,l),style:t,children:n.map((e,t)=>(0,m.jsx)("div",{...r({line:e,key:t}),children:e.map((e,t)=>(0,m.jsx)("span",{...i({token:e,key:t})}))}))})}),(n||s)&&(0,m.jsxs)("div",{className:d,children:[n&&(0,m.jsx)("button",{className:h,type:"button","aria-label":"Copy content",title:"Copy content",onClick:async()=>{try{navigator.clipboard.writeText(e)}catch{}},children:(0,m.jsx)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",children:(0,m.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"})})}),s&&(0,m.jsx)("button",{className:h,type:"button","aria-label":"Download content as file",title:"Download content as file",onClick:()=>{s&&s.fileName&&s.mime&&c()(e,s.fileName,s.mime)},children:(0,m.jsx)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",children:(0,m.jsx)("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"})})})]})]})}},1900:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});n(6540);var r="errorDisplay_QTmW",i="title_GCFt",a=n(4848);var o=function({title:e,children:t}){return(0,a.jsxs)("div",{role:"alert",className:r,children:[(0,a.jsx)("strong",{className:i,children:e}),t]})}},3756:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});n(6540);var r=n(1656),i="headline_fEIe",a=n(4848);var o=function({children:e,layoutDescription:t,description:n,title:o,headline:s}){return(0,a.jsx)(r.A,{description:t,title:o,children:(0,a.jsxs)("main",{className:"container padding-top--md padding-bottom--lg",children:[(0,a.jsx)("h1",{className:i,children:s}),(0,a.jsx)("p",{children:n}),e]})})}},4803:function(e,t,n){"use strict";n.d(t,{I:function(){return a}});var r=n(6540),i=n(4586);let a=function(e){return e.Idle="idle",e.Loading="loading",e.Success="success",e.Failure="failure",e}({});const o={status:a.Idle,data:null,error:null};t.A=function(){const[e,t]=(0,r.useState)(o),{siteConfig:n}=(0,i.A)(),s=n.customFields?.apiBase,c=(0,r.useRef)(!0);(0,r.useEffect)(()=>()=>{c.current=!1},[]);const l=(0,r.useCallback)((e,n)=>{t(e=>({...e,status:a.Loading})),fetch(function(e,t){return`/${t.split("/").concat(e.split("/")).filter(Boolean).join("/")}`}(e,s),n).then(e=>e.text().then(t=>({data:t,ok:e.ok,code:e.status}))).then(({data:e,ok:n,code:r})=>{c.current&&t(n?{status:a.Success,data:e,error:null}:t=>({...t,status:a.Failure,error:{code:r,message:e}}))}).catch(e=>{c.current&&t(t=>({...t,status:a.Failure,error:{code:0,message:e?.toString?.()||"An unknown error occurred"}}))})},[s]);return(0,r.useMemo)(()=>({...e,request:l}),[l,e])}},5419:function(e){e.exports=function(e,t,n,r){var i=new Blob(void 0!==r?[r,e]:[e],{type:n||"application/octet-stream"});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(i,t);else{var a=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(i):window.webkitURL.createObjectURL(i),o=document.createElement("a");o.style.display="none",o.href=a,o.setAttribute("download",t),void 0===o.download&&o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),setTimeout(function(){document.body.removeChild(o),window.URL.revokeObjectURL(a)},200)}}},6536:function(e,t,n){"use strict";n.r(t);n(6540);var r=n(3756),i=n(10),a=n(4848);t.default=function(){return(0,a.jsx)(r.A,{title:"Health information",layoutDescription:"Health and status information about the system",headline:"Server health information",description:"Information about health and status of the running system.",children:(0,a.jsx)(i.A,{endpoint:"/server/health",fileName:"health.xml"})})}},7361:function(e,t,n){"use strict";n.r(t);var r=n(6536);t.default=r.default}}]);