(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/admin/websites-diagnostic/ManualPage"],{1250:(e,n,t)=>{"use strict";t.r(n);var i=t(209),s=t(88),o=t(210),r=t.n(o),a=t(208),l=t(255),d=t(361);const c=s.Locale.getTranslate("admin.controllers.websites-diagnostic.new-check"),m=l.gql`
    mutation RunWebsitesDiagnostic($period: Int!, $domainIds: [ID!]!, ) {
        runWebsitesDiagnostic(input: { period: $period, domainIds: $domainIds }) {
            id
        }
    }
`,u=(e,n)=>e.filter((({id:e})=>n.some((({domains:n})=>n.find((n=>n.id===e)))))),p=({isOpen:e,onClose:n,onTaskStart:t,manualCheckReport:s})=>{const[o,r]=(0,a.useState)({}),[p,b]=(0,a.useState)(""),[h,g]=(0,a.useState)([]),[k,v]=(0,a.useState)(null),[f]=(0,d.useMutation)(m,{onCompleted:({runWebsitesDiagnostic:e})=>{t(e.id)}}),x=(0,i.useTranslate)("admin.controllers.websites-diagnostic.new-check"),j=s?.problems??[],{loading:S,data:y={}}=(0,d.useQuery)(l.gql`
        query GetReportByWebsitesRowBodyData {
            server {
                websitesDiagnostic {
                    settings {
                        checkedDomains {
                            id
                            name(idn: false)
                        }
                        skippedDomains {
                            id
                            name(idn: false)
                        }
                    }
                    regularCheckReport {
                        problems {
                            domains {
                                id
                            }
                        }
                    }
                }
            }
        }
    `,{skip:!e}),{server:{websitesDiagnostic:{settings:{checkedDomains:C=[],skippedDomains:R=[]}={},regularCheckReport:T={}}={}}={}}=y,D=T?.problems??[],w=u([...C,...R],j),E=u([...C,...R],D),P=C.length+R.length;(0,a.useEffect)((()=>{e&&(v(null),r({depth:1,all:!R.length,withManualCheckProblems:w.every((({id:e})=>C.find((n=>n.id===e)))),withRegularCheckProblems:E.every((({id:e})=>C.find((n=>n.id===e)))),...C.reduce(((e,{id:n})=>({...e,[n]:!0})),{}),...R.reduce(((e,{id:n})=>({...e,[n]:!1})),{})}),b(""),g([...C,...R]))}),[e,C,R]),(0,a.useEffect)((()=>{g([...C,...R].filter((({name:e})=>e.toLowerCase().includes(p.toLowerCase()))))}),[p]);const I=()=>"submit"!==k&&n(),L=(e,n)=>{switch(r((t=>(0,i.setIn)(t,e,n))),e){case"withManualCheckProblems":w.forEach((({id:e})=>L(e,n)));break;case"withRegularCheckProblems":E.forEach((({id:e})=>L(e,n)));break;case"all":[...C,...R].forEach((({id:e})=>L(e,n)));break;default:n?(t=e,[...C,...R].every((({id:e})=>e===t||o[e]))&&r((e=>(0,i.setIn)(e,"all",!0))),w.every((({id:e})=>e===t||o[e]))&&r((e=>(0,i.setIn)(e,"withManualCheckProblems",!0))),E.every((({id:e})=>e===t||o[e]))&&r((e=>(0,i.setIn)(e,"withRegularCheckProblems",!0)))):(e=>{r((e=>(0,i.setIn)(e,"all",!1))),w.find((({id:n})=>n===e))&&r((e=>(0,i.setIn)(e,"withManualCheckProblems",!1))),E.find((({id:n})=>n===e))&&r((e=>(0,i.setIn)(e,"withRegularCheckProblems",!1)))})(e)}var t};return(0,a.jsx)(i.Drawer,{"data-type":"websites-diagnostic-new-check",title:(0,a.jsx)(c,{content:"title"}),subtitle:(0,a.jsx)(c,{content:"description",params:{total:P,selected:[...C,...R].filter((({id:e})=>(0,i.getIn)(o,e))).length}}),size:"sm",isOpen:e,onClose:I,form:{state:k,applyButton:!1,onFieldChange:L,submitButton:{id:"btn-send",name:"send",children:(0,a.jsx)(c,{content:"buttonSave"}),onClick:async()=>{v("submit"),await f({variables:{period:+o.depth,domainIds:[...C,...R].filter((({id:e})=>o[e])).map((({id:e})=>e))}}),v(null),I()}},cancelButton:{id:"btn-cancel",name:"cancel",children:(0,a.jsx)(c,{content:"buttonCancel"}),onClick:I},values:o},children:S?(0,a.jsx)(i.ContentLoader,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{children:(0,a.jsx)(i.Heading,{level:4,children:(0,a.jsx)(c,{content:"depth"})})}),(0,a.jsx)(i.FormField,{label:null,name:"depth",children:({getValue:e,setValue:n})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.InputNumber,{min:1,max:24,value:e(),onChange:n})," ",(0,a.jsx)(c,{content:"hours"})]})}),P?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("br",{}),(0,a.jsx)("p",{children:(0,a.jsx)(i.Heading,{level:4,children:(0,a.jsx)(c,{content:"websites"})})}),(0,a.jsx)(i.SearchBar,{inputProps:{placeholder:x("search")},onTyping:e=>b(e.trim())}),(0,a.jsx)("br",{}),w.length?(0,a.jsx)(i.FormFieldCheckbox,{label:(0,a.jsx)(i.Text,{bold:!0,children:(0,a.jsx)(c,{content:"manualCheckProblems"})}),name:"withManualCheckProblems"}):null,E.length?(0,a.jsx)(i.FormFieldCheckbox,{label:(0,a.jsx)(i.Text,{bold:!0,children:(0,a.jsx)(c,{content:"regularCheckProblems"})}),name:"withRegularCheckProblems"}):null,(0,a.jsx)(i.FormFieldCheckbox,{label:(0,a.jsx)(i.Text,{bold:!0,children:(0,a.jsx)(c,{content:"allWebsites"})}),name:"all"}),(0,a.jsx)(i.MenuDivider,{}),h.sort((({name:e},{name:n})=>e<=n?-1:1)).map((({id:e,name:n})=>(0,a.jsx)(i.FormFieldCheckbox,{label:n,name:e},e)))]}):null]})})};p.propTypes={isOpen:r().bool,onClose:r().func.isRequired,onTaskStart:r().func.isRequired,manualCheckReport:r().shape({problems:r().array.isRequired})},p.defaultProps={isOpen:!1,manualCheckReport:void 0},n.default=p},1247:(e,n,t)=>{"use strict";t.r(n);var i=t(208),s=t(678),o=t(210),r=t.n(o),a=t(209),l=t(88),d=t(1248),c=t(1249),m=t(1250),u=t(1251),p=t(1252);const b=l.Locale.getTranslate("admin.controllers.websites-diagnostic"),h=({tabs:e,settings:{isPromoShown:n,documentationLink:t,taskId:o},manualCheckReport:r})=>{const[c,h]=(0,i.useState)(!1),[g,k]=(0,i.useState)(o),v=(0,s.useHistory)();return(0,i.useEffect)((()=>{g&&l.Observer.append((({id:e})=>{+e==+g&&(v.replace(window.location.pathname,{reload:!0}),k(null))}),"plesk:taskComplete")}),[g]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.default,{tabs:e}),(0,i.jsx)(m.default,{isOpen:c,onClose:()=>h(!1),onTaskStart:k,manualCheckReport:r}),(0,i.jsx)(u.default,{isPromoShown:n,documentationLink:t,checkReport:r,checkType:p.CheckType.MANUAL,children:(0,i.jsxs)(a.Item,{view:"card",children:[(0,i.jsx)(a.Button,{intent:"primary",icon:"start-circle",size:"lg",onClick:()=>h(!0),state:g?"loading":void 0,children:(0,i.jsx)(b,{content:"buttonRun"})}),(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),(0,i.jsx)("p",{children:(0,i.jsx)(b,{content:"buttonRunDescription"})})]})})]})};h.propTypes={tabs:r().array,settings:r().shape({isPromoShown:r().bool.isRequired,documentationLink:r().string,taskId:r().number}).isRequired,manualCheckReport:r().shape({date:r().string.isRequired,duration:r().number.isRequired,domains:r().array.isRequired,problems:r().array.isRequired})},h.defaultProps={tabs:void 0,manualCheckReport:void 0},n.default=(0,c.default)(h,"manual")},1253:(e,n,t)=>{"use strict";t.r(n);var i=t(209),s=t(208),o=t(255),r=t(361),a=t(88),l=t(210),d=t.n(l);const c=a.Locale.getTranslate("admin.controllers.websites-diagnostic"),m=o.gql`
    mutation CloseWebsitesDiagnosticPromo {
        updateWebsitesDiagnosticSettings(input: { isPromoShown: false }) {
            settings {
                isPromoShown
            }
        }
    }
`,u=({documentationLink:e})=>{const[n,o]=(0,s.useState)(!0),[a]=(0,r.useMutation)(m,{onCompleted:({updateWebsitesDiagnosticSettings:{settings:{isPromoShown:e}}})=>{o(e)}});return n?(0,s.jsx)(i.Panel,{title:(0,s.jsx)(i.Heading,{level:4,children:(0,s.jsx)(c,{content:"promoTitle"})}),extra:(0,s.jsx)(i.Button,{ghost:!0,icon:"remove",onClick:a}),children:(0,s.jsxs)(i.Media,{image:(0,s.jsx)(i.Icon,{src:t(1254),size:"128"}),children:[(0,s.jsx)(i.MediaSection,{children:(0,s.jsx)(c,{content:"promoDescription"})}),e&&(0,s.jsx)(i.MediaSection,{children:(0,s.jsx)("a",{target:"_blank",href:e,rel:"noopener noreferrer",children:(0,s.jsx)(c,{content:"promoMore"})})}),(0,s.jsx)(i.MediaSection,{children:(0,s.jsx)(i.Button,{onClick:a,children:(0,s.jsx)(c,{content:"promoButton"})})})]})}):null};u.propTypes={documentationLink:d().string},u.defaultProps={documentationLink:void 0},n.default=u},1260:(e,n,t)=>{"use strict";t.r(n);var i=t(209),s=t(88),o=t(210),r=t.n(o),a=t(208);const l=s.Locale.getSection("admin.controllers.websites-diagnostic.report"),d=({title:e,problems:n,onOpenWebsiteProblemDetails:t})=>n.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("br",{}),(0,a.jsx)(i.Heading,{level:4,children:l.formatMessage(e,{count:n.length})}),(0,a.jsx)("ul",{children:n.map((({code:e,name:n,domains:i})=>(0,a.jsx)("li",{children:(0,a.jsx)("a",{onClick:()=>t({code:e,name:n,domains:i}),children:n})},e)))})]}):null;d.propTypes={title:r().string.isRequired,problems:r().array.isRequired,onOpenWebsiteProblemDetails:r().func.isRequired},n.default=d},1256:(e,n,t)=>{"use strict";t.r(n);var i=t(210),s=t.n(i),o=t(209),r=t(88),a=t(1257),l=t(1252),d=t(208);const c="admin.controllers.websites-diagnostic.report",m=r.Locale.getTranslate(c),u=r.Locale.getSection(c),p=({toolbar:e,problems:n,websitesCount:i,onOpenProblemDetails:s})=>{const r=(0,o.useTranslate)(c);return(0,d.jsxs)(d.Fragment,{children:[n.length?null:e,(0,d.jsx)(a.default,{columns:[{key:"name",title:(0,d.jsx)(m,{content:"columnProblem"}),type:"title",sortable:!0,render:({name:e,domains:n,code:t})=>{const i=0===n.length?l.ReportTypes.SERVERWIDE:l.ReportTypes.CUMULATIVE;return(0,d.jsx)("a",{onClick:()=>s(i)({code:t,domains:n,name:e}),children:(0,d.jsx)(o.Text,{bold:!0,children:e})})}},{key:"appearedOn",title:(0,d.jsx)(m,{content:"columnAppearedOn"}),sortable:!0,sort:({domains:e},{domains:n})=>(e.length||Number.MAX_SAFE_INTEGER)<(n.length||Number.MAX_SAFE_INTEGER)?-1:1,render:({domains:e})=>u.formatMessage(e.length?"appearedOn":"serverWide",{count:e.length})}],data:n,sortColumn:"appearedOn",sortDirection:a.SORT_DESC,searchField:"name",searchPlaceholder:r("searchProblem"),locale:{totalRows:e=>u.formatMessage("groupByProblemsTotal",{...e,websitesCount:i})},emptyView:(0,d.jsx)(o.ListEmptyView,{image:(0,d.jsx)(o.Icon,{src:t(1254),size:"192"}),title:u.formatMessage("noProblemsTitle",{websitesCount:i}),description:(0,d.jsx)(m,{content:"noProblemsDescription"})}),toolbar:e})]})};p.propTypes={toolbar:s().node,problems:s().array.isRequired,websitesCount:s().number.isRequired,onOpenProblemDetails:s().func.isRequired},p.defaultProps={toolbar:void 0},n.default=p},1258:(e,n,t)=>{"use strict";t.r(n);var i=t(209),s=t(88),o=t(1257),r=t(1259),a=t(1262),l=t(210),d=t.n(l),c=t(1252),m=t(208);const u="admin.controllers.websites-diagnostic.report",p=s.Locale.getTranslate(u),b=s.Locale.getSection(u),h="server-wide",g=({key:e})=>e===h,k=({toolbar:e,problems:n,checkedDomains:t,onOpenProblemDetails:l})=>{const d=(0,i.useTranslate)(u),k=t.map((({id:e,name:t})=>({key:e,id:e,name:t,problems:n.filter((({domains:n})=>n.some((n=>e===n.id))))}))),v=n.filter((({domains:e})=>0===e.length));v.length&&k.push({key:h,id:h,name:d("serverWideName"),problems:v});return(0,m.jsxs)(m.Fragment,{children:[k.length?null:e,(0,m.jsx)(o.default,{columns:[{key:"name",title:(0,m.jsx)(p,{content:"columnWebsite"}),type:"title",sortable:!0,sort:(e,n)=>g(e)?-1:g(n)?1:e.name<n.name?-1:e.name>n.name?1:0,render:e=>(0,m.jsxs)(m.Fragment,{children:[g(e)&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(i.Icon,{name:"server"})," "]}),(0,m.jsx)(i.Text,{bold:!0,children:e.name})]})},{key:"problems",title:(0,m.jsx)(p,{content:"columnStatus"}),sortable:!0,sort:(e,n)=>g(e)?1:g(n)||e.problems<n.problems?-1:e.problems>n.problems?1:0,render:({problems:e})=>e.length?(0,m.jsx)(i.Label,{intent:"danger",children:b.formatMessage("statusProblems",{count:e.length})}):(0,m.jsx)(i.Status,{icon:(0,m.jsx)(i.Icon,{name:"check-mark"}),intent:"success",children:(0,m.jsx)(p,{content:"statusSuccess"})})}],data:k,renderRowBody:e=>g(e)?(0,m.jsx)(a.default,{...e,onOpenProblemDetails:l(c.ReportTypes.SERVERWIDE)}):(0,m.jsx)(r.default,{...e,onOpenProblemDetails:l(c.ReportTypes.DOMAIN)}),sortColumn:"problems",sortDirection:o.SORT_DESC,searchField:"name",searchPlaceholder:d("searchWebsite"),locale:{totalRows:e=>b.formatMessage("groupByWebsitesTotal",e)},toolbar:e,onExpandedRowsChange:e=>{s.UAT.dispatchAction("EXPAND_ROWS",{expanded:e.join(";")})}})]})};k.propTypes={toolbar:d().node,problems:d().array.isRequired,checkedDomains:d().array.isRequired,onOpenProblemDetails:d().func.isRequired},k.defaultProps={toolbar:void 0},n.default=k},1259:(e,n,t)=>{"use strict";t.r(n);var i=t(209),s=t(88),o=t(361),r=t(255),a=t(1145),l=t(489),d=t(210),c=t.n(d),m=t(1260),u=t(1261),p=t(208);const b=s.Locale.getTranslate("admin.controllers.websites-diagnostic.report"),h=({problems:e,id:n,onOpenProblemDetails:t})=>{const{loading:s,data:d}=(0,o.useQuery)(r.gql`
        query GetReportByWebsitesRowBodyData($id: ID!, $hasProblems: Boolean!) {
            node(id: $id) {
                id
                ... on Domain {
                    baseDomain {
                        id
                    }
                    previewUrl @include(if: $hasProblems)
                }
            }
        }
    `,{variables:{id:n,hasProblems:!!e.length}});if(s)return(0,p.jsx)(i.ContentLoader,{});const{node:{baseDomain:c,previewUrl:h}}=d,g=(0,u.getId)(n),k=(0,u.getId)(c?.id||n),v=e.length&&h;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(i.Columns,{gap:"sm",children:[v?(0,p.jsx)(i.Column,{children:(0,p.jsx)(i.Action,{icon:"web",href:h,target:"_blank",rel:"noopener noreferrer",children:(0,p.jsx)(b,{content:"actionPreview"})})}):null,(0,p.jsx)(i.Column,{children:(0,p.jsx)(i.Action,{component:l.default,icon:v?"web-settings":"web",to:(0,a.getContextUrl)(k,`/smb/web/overview/id/${g}/type/domain`),children:(0,p.jsx)(b,{content:"actionManage"})})}),(0,p.jsx)(i.Column,{children:(0,p.jsx)(i.Action,{icon:"list",href:(0,a.getContextUrl)(k,`/smb/log-file/browser/id/${g}`),children:(0,p.jsx)(b,{content:"actionLogs"})})})]}),(0,p.jsx)(m.default,{title:"problemsList",problems:e,onOpenWebsiteProblemDetails:e=>t(e,n)})]})};h.propTypes={problems:c().array.isRequired,id:c().string.isRequired,onOpenProblemDetails:c().func.isRequired},n.default=h},1262:(e,n,t)=>{"use strict";t.r(n);var i=t(88),s=t(210),o=t.n(s),r=t(1260),a=t(208);const l=i.Locale.getTranslate("admin.controllers.websites-diagnostic.report"),d=({problems:e,onOpenProblemDetails:n})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{children:(0,a.jsx)(l,{content:"serverWideDescription"})}),(0,a.jsx)(r.default,{title:"serverWideProblemsList",onOpenWebsiteProblemDetails:n,problems:e})]});d.propTypes={problems:o().array.isRequired,onOpenProblemDetails:o().func.isRequired},n.default=d},1255:(e,n,t)=>{"use strict";t.r(n);var i=t(210),s=t.n(i),o=t(209),r=t(88),a=t(1252),l=t(1256),d=t(1258),c=t(208);const m=r.Locale.getTranslate("admin.controllers.websites-diagnostic.report"),u=({problems:e,groupBy:n,onGroupByChange:t,checkedDomains:i,onOpenProblemDetails:s})=>{const r=(0,c.jsx)(o.SegmentedControl,{buttons:[{value:a.GroupBy.WEBSITES,title:(0,c.jsx)(m,{content:"groupByWebsites"}),"data-action":"group-by-websites"},{value:a.GroupBy.PROBLEMS,title:(0,c.jsx)(m,{content:"groupByProblems"}),"data-action":"group-by-problems"}],selected:n,onChange:t});return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{children:(0,c.jsx)(o.Heading,{level:3,children:(0,c.jsx)(m,{content:"title"})})}),n===a.GroupBy.WEBSITES?(0,c.jsx)(d.default,{toolbar:r,problems:e,checkedDomains:i,onOpenProblemDetails:s}):(0,c.jsx)(l.default,{toolbar:r,problems:e,websitesCount:i.length,onOpenProblemDetails:s})]})};u.propTypes={problems:s().array.isRequired,groupBy:s().string.isRequired,onGroupByChange:s().func.isRequired,onOpenProblemDetails:s().func.isRequired,checkedDomains:s().array.isRequired},n.default=u},1251:(e,n,t)=>{"use strict";t.r(n),t.d(n,{getTime:()=>b});var i=t(208),s=t(210),o=t.n(s),r=t(209),a=t(88),l=t(1252),d=t(1253),c=t(1255),m=t(1263);const u=a.Locale.getTranslate("admin.controllers.websites-diagnostic"),p=a.Locale.getSection("admin.controllers.websites-diagnostic"),b=e=>`${`0${e.getHours()}`.slice(-2)}:${`0${e.getMinutes()}`.slice(-2)}`,h=({isPromoShown:e,documentationLink:n,checkReport:t,children:s,checkType:o})=>{const[a,h]=(0,i.useState)(!1),[g,k]=(0,i.useState)(void 0),[v,f]=(0,i.useState)(void 0),[x,j]=(0,i.useState)({}),{date:S,duration:y,domains:C,problems:R}=t||{},T=S?new Date(S):null,D=new Set((R||[]).reduce(((e,{domains:n})=>[...e,...n.map((({id:e})=>e))]),[])).size,[w,E]=(0,i.useState)(l.GroupBy.WEBSITES);(0,i.useEffect)((()=>{E(D?l.GroupBy.WEBSITES:l.GroupBy.PROBLEMS)}),[D]);const P=(0,i.useCallback)((e=>(n,t)=>{f(e),j(n),k(t),h(!0)}),[]),I=(0,i.useCallback)((()=>{h(!1),f(void 0),k(void 0),j({})}),[]);return(0,i.jsxs)(i.Fragment,{children:[e&&(0,i.jsx)(d.default,{documentationLink:n}),(0,i.jsxs)(r.ItemList,{gap:"md",stretchable:!0,xs:1,sm:2,md:3,hoverable:!1,children:[s,t&&(0,i.jsxs)(r.Item,{title:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(r.Columns,{gap:"xs",vertical:!1,style:{flex:1},children:[(0,i.jsx)(r.Column,{fill:!0,children:(0,i.jsx)(r.Heading,{level:"3",children:(0,i.jsx)(u,{content:"lastCheckTitle"})})}),(0,i.jsx)(r.Column,{children:(0,i.jsx)(r.Icon,{name:R.length?"exclamation-mark-circle-filled":"check-mark-circle-filled",intent:R.length?"danger":"success",size:"24"})})]})}),view:"card",children:[(0,i.jsx)("p",{children:(0,i.jsx)(u,{content:"lastCheckDescription",params:{date:(0,i.jsx)(u,{content:`month${T.getMonth()}`,params:{date:T.getDate()}}),time:b(T),duration:+(y/60).toFixed(1)||(0,i.jsx)(u,{content:"durationLess"})}})}),(0,i.jsx)("p",{children:R.length?(0,i.jsx)(u,{content:D?"lastCheckError":"lastCheckErrorServerWide",params:{problems:(0,i.jsx)("a",{onClick:()=>E(l.GroupBy.PROBLEMS),"data-action":"report-by-problems",children:p.formatMessage("lastCheckProblems",{count:R.length})}),websites:(0,i.jsx)("a",{onClick:()=>E(l.GroupBy.WEBSITES),"data-action":"report-by-websites",children:p.formatMessage("lastCheckWebsites",{count:D})})}}):(0,i.jsx)(u,{content:"lastCheckSuccess"})})]}),t&&(0,i.jsx)(r.Item,{title:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(r.Columns,{gap:"xs",vertical:!1,style:{flex:1},children:[(0,i.jsx)(r.Column,{fill:!0,children:(0,i.jsx)(r.Heading,{level:"3",children:(0,i.jsx)(u,{content:"exportTitle"})})}),(0,i.jsx)(r.Column,{children:(0,i.jsx)(r.Icon,{name:"info-circle",intent:"info",size:"24"})})]})}),view:"card",children:(0,i.jsx)("p",{children:(0,i.jsx)(u,{content:"exportDescription"})})})]}),(0,i.jsx)(m.ProblemReport,{checkType:o,isOpen:a,reportType:v,problemData:x,chosenDomainId:g,onCloseReport:I,onChangeReportType:f,onSetChosenDomainId:k}),t&&(0,i.jsx)(c.default,{problems:R,groupBy:w,onGroupByChange:E,checkedDomains:C,onOpenProblemDetails:P})]})};h.propTypes={isPromoShown:o().bool.isRequired,documentationLink:o().string,checkReport:o().shape({date:o().string.isRequired,duration:o().number.isRequired,domains:o().array.isRequired,problems:o().array.isRequired}),children:o().node,checkType:o().oneOf(Object.values(l.CheckType)).isRequired},h.defaultProps={documentationLink:void 0,checkReport:void 0,children:void 0},n.default=h},1266:(e,n,t)=>{"use strict";t.r(n),t.d(n,{AffectedWebsites:()=>l});var i=t(210),s=t.n(i),o=t(209),r=t(1257),a=t(208);const l=({data:e,onGotoDomain:n})=>{const t=(0,o.useTranslate)("admin.controllers.websites-diagnostic.affected-websites"),i=[{key:"name",title:t("websites"),type:"title",sortable:!0},{key:"links",render:e=>(0,a.jsx)(o.Button,{ghost:!0,onClick:()=>n(e.id),children:(0,a.jsx)(o.Icon,{name:"bar-chart-vertical"})}),align:"right"}];return(0,a.jsx)(r.default,{data:e,columns:i,searchField:"name",itemsPerPage:5,searchPlaceholder:t("searchForWebsite")})};l.propTypes={data:s().array.isRequired,onGotoDomain:s().func.isRequired}},1264:(e,n,t)=>{"use strict";t.r(n),t.d(n,{CumulativeReport:()=>v});var i=t(210),s=t.n(i),o=t(209),r=t(1265),a=t(1266),l=t(88),d=t(1252),c=t(361),m=t(1267),u=t.n(m),p=t(1268),b=t.n(p),h=t(208);const g=l.Locale.getTranslate("admin.controllers.websites-diagnostic.tabs"),k={[d.ReportTabs.PROBLEM_DETAILS]:1,[d.ReportTabs.AFFECTED_WEBSITES]:2},v=({checkType:e,problemCode:n,chosenDomainId:t,activeTab:i,reportType:s,onActivateTab:l,onGotoDomain:m})=>{const{data:p,loading:v}=(0,c.useQuery)(e===d.CheckType.REGULAR?u():b());if(!n)return null;if(v)return(0,h.jsx)(o.ContentLoader,{});const{problems:f}=p.server.websitesDiagnostic[e],x=f.find((({code:e})=>e===n));return s!==d.ReportTypes.CUMULATIVE?(0,h.jsx)(r.ProblemDetails,{data:x,chosenDomainId:t,isServerWide:s===d.ReportTypes.SERVERWIDE,onGotoCumulativeReport:l(d.ReportTabs.PROBLEM_DETAILS)}):(0,h.jsxs)(o.Tabs,{active:k[i],children:[(0,h.jsx)(o.Tab,{title:(0,h.jsx)(g,{content:"problemDetails"}),onActivate:l(d.ReportTabs.PROBLEM_DETAILS),children:(0,h.jsx)(r.ProblemDetails,{data:x,chosenDomainId:t,onGotoCumulativeReport:l(d.ReportTabs.PROBLEM_DETAILS),isCumulative:!0})}),(0,h.jsx)(o.Tab,{title:(0,h.jsx)(g,{content:"affectedWebsites"}),onActivate:l(d.ReportTabs.AFFECTED_WEBSITES),children:(0,h.jsx)(a.AffectedWebsites,{data:x.domains,onGotoDomain:m})})]})};v.defaultProps={problemCode:void 0},v.propTypes={problemCode:s().string,chosenDomainId:s().string.isRequired,activeTab:s().oneOf(Object.values(d.ReportTabs)).isRequired,reportType:s().oneOf(Object.values(d.ReportTypes)).isRequired,checkType:s().oneOf(Object.values(d.CheckType)).isRequired,onActivateTab:s().func.isRequired,onGotoDomain:s().func.isRequired}},1265:(e,n,t)=>{"use strict";t.r(n),t.d(n,{ProblemDetails:()=>u});var i=t(208),s=t(210),o=t.n(s),r=t(209),a=t(88),l=t(1261),d=t(1145);const c=a.Locale.getTranslate("admin.controllers.websites-diagnostic.problem-report"),m=a.Locale.getSection("admin.controllers.websites-diagnostic.problem-report"),u=({isCumulative:e,isServerWide:n,chosenDomainId:t,data:s,onGotoCumulativeReport:o})=>{const a=[{key:"path",title:(0,i.jsx)(c,{content:"logFile"}),type:"title"},{key:"line",title:(0,i.jsx)(c,{content:"logEntry"}),type:"title"}],u=(0,i.useMemo)((()=>{if(!t)return"";const{id:e,baseDomain:n}=s.domains.find((({id:e})=>e===t)),i=(0,l.getId)(e),o=(0,l.getId)(n?.id||e);return(0,d.getContextUrl)(o,`/smb/log-file/browser/id/${i}`)}),[s,t]);return(0,i.jsxs)(i.Fragment,{children:[!e&&!n&&(0,i.jsxs)(r.StatusMessage,{intent:"info",children:[m.formatMessage("problemAppearsOn",{count:s.domains.length})," ",(0,i.jsx)(r.Link,{onClick:o,children:(0,i.jsx)(r.Text,{bold:!0,children:(0,i.jsx)(c,{content:"seeTheConsolidatedReport"})})})]}),n&&(0,i.jsx)(r.Section,{children:(0,i.jsx)(c,{content:"thisIsServerWideProblem"})}),(0,i.jsx)(r.Section,{children:(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:s.description}})}),(0,i.jsx)(r.Section,{title:(0,i.jsx)(r.Heading,{level:4,children:(0,i.jsx)(c,{content:"cause"})}),children:(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:s.cause}})}),s.solutions.map(((e,n,t)=>(0,i.jsx)(r.Section,{title:(0,i.jsx)(r.Heading,{level:4,children:(0,i.jsx)(c,{content:1===t.length?"possibleSolution":"possibleSolutionNumber",params:{number:n}})}),children:(0,i.jsx)("p",{dangerouslySetInnerHTML:{__html:e}})},n))),(0,i.jsxs)(r.Section,{title:(0,i.jsx)(c,{content:"logEntries"}),children:[(0,i.jsx)(c,{content:"pleaseKeepInMind"}),(0,i.jsx)(r.List,{columns:a,data:s.examples}),!e&&!n&&(0,i.jsx)(r.Link,{href:u,target:"_blank",children:(0,i.jsx)(c,{content:"openWebsiteLogs"})})]})]})};u.defaultProps={isCumulative:!1,isServerWide:!1,chosenDomainId:void 0},u.propTypes={isCumulative:o().bool,isServerWide:o().bool,chosenDomainId:o().string,data:o().shape({examples:o().arrayOf(o().shape({line:o().string,path:o().string})),solutions:o().arrayOf(o().string),domains:o().array,description:o().string,cause:o().string,domain:o().shape({id:o().string,name:o().string,baseDomain:o().shape({id:o().string})}),plotItems:o().arrayOf(o().shape({timestamp:o().string,errorsCount:o().number,requestsCount:o().number}))}).isRequired,onGotoCumulativeReport:o().func.isRequired}},1263:(e,n,t)=>{"use strict";t.r(n),t.d(n,{ProblemReport:()=>u});var i=t(208),s=t(210),o=t.n(s),r=t(209),a=t(88),l=t(1264),d=t(1252);const c=a.Locale.getTranslate("admin.controllers.websites-diagnostic.problem-report"),m=a.Locale.getSection("admin.controllers.websites-diagnostic.problem-report"),u=({isOpen:e,checkType:n,reportType:t,problemData:s,chosenDomainId:o,onCloseReport:a,onChangeReportType:u,onSetChosenDomainId:p})=>{const[b,h]=(0,i.useState)(d.ReportTabs.PROBLEM_DETAILS);(0,i.useEffect)((()=>{e&&h(d.ReportTabs.PROBLEM_DETAILS)}),[e]);const g=(0,i.useMemo)((()=>{switch(t){case d.ReportTypes.CUMULATIVE:return b===d.ReportTabs.PROBLEM_DETAILS?m.formatMessage("cumulativeTitle",{count:s.domains?.length}):(0,i.jsx)(c,{content:"commonTitle"});case d.ReportTypes.DOMAIN:{const e=s.domains?.find((({id:e})=>o===e));return(0,i.jsx)(c,{content:"domainTitle",params:{domain:(0,i.jsx)(r.Text,{bold:!0,children:e?.name})}})}case d.ReportTypes.SERVERWIDE:return(0,i.jsx)(c,{content:"serverWideTitle"})}}),[b,t,s,o]),k=(0,i.useCallback)((e=>()=>{t!==d.ReportTypes.CUMULATIVE&&u(d.ReportTypes.CUMULATIVE),h(e)}),[t,u]),v=(0,i.useCallback)((e=>{u(d.ReportTypes.DOMAIN),p(e)}),[u,p]);return(0,i.jsx)(r.Drawer,{"data-type":"problem-report",title:g,subtitle:s.name,isOpen:e,onClose:a,children:(0,i.jsx)(l.CumulativeReport,{checkType:n,chosenDomainId:o,problemCode:s.code,activeTab:b,reportType:t,onActivateTab:k,onGotoDomain:v})})};u.defaultProps={isOpen:!1,reportType:void 0,chosenDomainId:void 0},u.propTypes={isOpen:o().bool,chosenDomainId:o().string,problemData:o().shape({code:o().string,name:o().string,domains:o().array,domainId:o().string}).isRequired,reportType:o().oneOf(Object.values(d.ReportTypes)),checkType:o().oneOf(Object.values(d.CheckType)).isRequired,onCloseReport:o().func.isRequired,onSetChosenDomainId:o().func.isRequired,onChangeReportType:o().func.isRequired}},1248:(e,n,t)=>{"use strict";t.r(n);var i=t(209),s=t(678),o=t(210),r=t.n(o),a=t(208);const l=({tabs:e})=>{const n=(0,s.useHistory)(),t=e.find((({containerCls:e})=>"active"===e))?.key;return(0,a.jsx)(i.Tabs,{active:e.findIndex((({key:e})=>e===t))+1,children:e.map((({key:e,title:s,href:o})=>(0,a.jsx)(i.Tab,{title:s,onActivate:()=>t!==e&&n.push(o,{reload:!0})},e)))})};l.propTypes={tabs:r().array},l.defaultProps={tabs:void 0},n.default=l},1252:(e,n,t)=>{"use strict";t.r(n),t.d(n,{CheckType:()=>a,GroupBy:()=>r,ReportTabs:()=>o,ReportTypes:()=>s,Timezones:()=>l,USER_TIMEZONE:()=>i});const i=-(new Date).getTimezoneOffset()/60,s={DOMAIN:"DOMAIN",CUMULATIVE:"CUMULATIVE",SERVERWIDE:"SERVERWIDE"},o={PROBLEM_DETAILS:"PROBLEM_DETAILS",AFFECTED_WEBSITES:"AFFECTED_WEBSITES"},r={WEBSITES:"groupByWebsites",PROBLEMS:"groupByProblems"},a={REGULAR:"regularCheckReport",MANUAL:"manualCheckReport"},l={SERVER:"SERVER",CLIENT:"CLIENT"}},1249:(e,n,t)=>{"use strict";t.r(n);var i=t(748),s=t(88),o=t(254);n.default=(e,n)=>(0,i.withPageLayout)(e,(({server:{websitesDiagnostic:e}})=>{const{logo:t,showFrames:i,pageHeader:r,pageSidebar:a}=(0,o.default)(),l=[a?.isPowerUserPanel?null:{title:s.Locale.getSection("admin.controllers.home.admin").lmsg("title"),href:"/admin/home"},{title:s.Locale.getSection("admin.controllers.server.tools").lmsg("title"),href:"/admin/server/tools"},{title:s.Locale.getSection("admin.controllers.websites-diagnostic").lmsg("title"),href:"/cp/websites-diagnostic"},{title:s.Locale.getSection("admin.controllers.websites-diagnostic").lmsg(`${n}Check`),href:`/cp/websites-diagnostic/${n}`}].filter(Boolean),d=[{key:"regular",title:s.Locale.getSection("admin.controllers.websites-diagnostic").lmsg("regularCheck"),href:"/cp/websites-diagnostic/regular",containerCls:"regular"===n?"active":""},{key:"manual",title:s.Locale.getSection("admin.controllers.websites-diagnostic").lmsg("manualCheck"),href:"/cp/websites-diagnostic/manual",containerCls:"manual"===n?"active":""}];return{...e,logo:t,tabs:d,showFrames:i,pageHeader:r,pageSidebar:a,pageContentHeader:{breadcrumbs:l,tabs:d,tabsHasRootPage:!0},pageTitle:l[l.length-2].title}}))},1145:(e,n,t)=>{"use strict";t.r(n),t.d(n,{getContextUrl:()=>i});const i=(e,n)=>`/smb/account/switch/id/${e}?hideNotice=1&returnUrl=${encodeURIComponent(n)}`},1261:(e,n,t)=>{"use strict";t.r(n),t.d(n,{getId:()=>i});const i=e=>e?Number(atob(e).split(":")[1]):null},1257:(e,n,t)=>{"use strict";t.r(n),t.d(n,{SORT_ASC:()=>d,SORT_DESC:()=>c});var i=t(209),s=t(208),o=t(88),r=t(210),a=t.n(r);const l=o.Locale.getTranslate("components.list.List"),d="ASC",c="DESC",m=({data:e,columns:n,itemsPerPage:t,itemsPerPageOptions:o,sortColumn:r,sortDirection:a,searchField:c,searchPlaceholder:m,locale:u,emptyView:p,toolbar:b,...h})=>{const[g,k]=(0,s.useState)(1),[v,f]=(0,s.useState)([]),[x,j]=(0,s.useState)([]),[S,y]=(0,s.useState)([]),[C,R]=(0,s.useState)(r??n.find((({sortable:e})=>e))?.key),[T,D]=(0,s.useState)(a),[w,E]=(0,s.useState)(t??o[0]),[P,I]=(0,s.useState)("");return(0,s.useEffect)((()=>{k(1),j(c?e.filter((({[c]:e})=>e.toLowerCase().includes(P.toLowerCase()))):e)}),[e,P,c]),(0,s.useEffect)((()=>{if(!C)return void y(x);const e=n.find((({key:e})=>e===C)).sort??((e,n)=>e[C]<n[C]?-1:e[C]>n[C]?1:0),t=[...x].sort(((n,t)=>d===T?e(n,t):e(t,n)));y(t)}),[x,C,T,n]),(0,s.useEffect)((()=>{const e=w*(g-1),n=e+w;f(S.slice(e,n))}),[g,S,w]),(0,s.jsx)(i.List,{pagination:(0,s.jsx)(i.Pagination,{current:g,total:Math.ceil(e.length/w),onSelect:e=>k(e),itemsPerPage:w,itemsPerPageOptions:o,onItemsPerPageChange:E}),toolbar:(b||c)&&(0,s.jsxs)(i.Toolbar,{children:[b,c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.ToolbarExpander,{}),(0,s.jsx)(i.SearchBar,{inputProps:{placeholder:m??""},onTyping:I})]})]}),totalRows:x.length,sortColumn:C,sortDirection:T,onSortChange:({sortColumn:e,sortDirection:n})=>{R(e),D(n)},columns:n,data:v,filtered:!!P,locale:{totalRows:e=>(0,s.jsx)(l,{content:"totalRows",params:e}),...u},emptyView:P?(0,s.jsx)(i.ListEmptyView,{title:(0,s.jsx)(l,{content:"emptyViewFilteredTitle"}),description:(0,s.jsx)(l,{content:"emptyViewFilteredDescription"})}):p??(0,s.jsx)(i.ListEmptyView,{title:(0,s.jsx)(l,{content:"emptyViewTitle"})}),...h})};m.propTypes={data:a().array.isRequired,columns:a().array.isRequired,itemsPerPage:a().number,itemsPerPageOptions:a().array,sortColumn:a().string,sortDirection:a().string,searchField:a().string,searchPlaceholder:a().string,locale:a().object,emptyView:a().node,toolbar:a().node},m.defaultProps={itemsPerPage:void 0,itemsPerPageOptions:[10,25,100,"all"],sortColumn:void 0,sortDirection:d,searchField:void 0,searchPlaceholder:void 0,locale:{},emptyView:void 0,toolbar:void 0},n.default=m},1254:e=>{e.exports=Jsw.skinUrl+"/images/websites-diagnostic.svg?ae65b6a8442e3e52813568264550a6f5"},1268:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"WebsitesDiagnosticProblem"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"server"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"websitesDiagnostic"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"manualCheckReport"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"problems"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cause"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"solutions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"examples"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"line"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"domains"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[{kind:"Argument",name:{kind:"Name",value:"idn"},value:{kind:"BooleanValue",value:!1}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"baseDomain"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"plotItems"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"timestamp"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"errorsCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"requestsCount"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:841}};n.loc.source={body:"query WebsitesDiagnosticProblem {\r\n    server {\r\n        websitesDiagnostic {\r\n            manualCheckReport {\r\n                problems {\r\n                    cause\r\n                    code\r\n                    description\r\n                    name\r\n                    solutions\r\n                    examples {\r\n                        line\r\n                        path\r\n                    }\r\n                    domains {\r\n                        id\r\n                        name(idn: false)\r\n                        baseDomain {\r\n                            id\r\n                        }\r\n                    }\r\n                    plotItems {\r\n                        timestamp\r\n                        errorsCount\r\n                        requestsCount\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    }\r\n}\r\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){t(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){t(e,n)})),e.definitions&&e.definitions.forEach((function(e){t(e,n)}))}var i={};function s(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}n.definitions.forEach((function(e){if(e.name){var n=new Set;t(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.WebsitesDiagnosticProblem=function(e,n){var t={kind:e.kind,definitions:[s(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,r=new Set,a=new Set;for(o.forEach((function(e){a.add(e)}));a.size>0;){var l=a;a=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){a.add(e)})))}))}return r.forEach((function(n){var i=s(e,n);i&&t.definitions.push(i)})),t}(n,"WebsitesDiagnosticProblem")},1267:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"WebsitesDiagnosticProblem"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"server"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"websitesDiagnostic"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"regularCheckReport"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"problems"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cause"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"solutions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"examples"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"line"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"domains"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[{kind:"Argument",name:{kind:"Name",value:"idn"},value:{kind:"BooleanValue",value:!1}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"baseDomain"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"plotItems"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"timestamp"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"errorsCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"requestsCount"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:842}};n.loc.source={body:"query WebsitesDiagnosticProblem {\r\n    server {\r\n        websitesDiagnostic {\r\n            regularCheckReport {\r\n                problems {\r\n                    cause\r\n                    code\r\n                    description\r\n                    name\r\n                    solutions\r\n                    examples {\r\n                        line\r\n                        path\r\n                    }\r\n                    domains {\r\n                        id\r\n                        name(idn: false)\r\n                        baseDomain {\r\n                            id\r\n                        }\r\n                    }\r\n                    plotItems {\r\n                        timestamp\r\n                        errorsCount\r\n                        requestsCount\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    }\r\n}\r\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){t(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){t(e,n)})),e.definitions&&e.definitions.forEach((function(e){t(e,n)}))}var i={};function s(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}n.definitions.forEach((function(e){if(e.name){var n=new Set;t(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.WebsitesDiagnosticProblem=function(e,n){var t={kind:e.kind,definitions:[s(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,r=new Set,a=new Set;for(o.forEach((function(e){a.add(e)}));a.size>0;){var l=a;a=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){a.add(e)})))}))}return r.forEach((function(n){var i=s(e,n);i&&t.definitions.push(i)})),t}(n,"WebsitesDiagnosticProblem")}}]);
//# sourceMappingURL=ManualPage.js.map?3d75ba9cc7341bed15e7