(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/admin/home/admin"],{755:(e,t,n)=>{"use strict";n.r(t);var a=n(154),l=n(261),r=n.n(l),s=n(144),c=n(576),i=n(739);const o=s.Locale.getTranslate("admin.controllers.home.admin"),m=({buttons:e})=>(0,a.createElement)(i.default,{className:"bp-custom-buttons",icon:n(756),title:(0,a.createElement)(o,{content:"panelCustomButtons"})},(0,a.createElement)(c.default,null,(()=>new s.Container({tag:"ul",cls:"tools-list",items:e}))));m.propTypes={buttons:r().array.isRequired},t.default=m},736:(e,t,n)=>{"use strict";n.r(t);var a=n(154),l=n(261),r=n.n(l),s=n(155),c=n(405),i=n(302),o=n(737),m=n(750),u=n(752),d=n(755),p=n(757),E=n(602),g=n(648);const f=({customButtonsList:e,...t})=>{const{data:{viewer:n}={}}=(0,c.useQuery)(i.gql`
        {
            viewer {
                type
            }
        }
    `),{data:{promos:l}={promos:[]}}=(0,c.useQuery)(i.gql`
        {
            promos {
                title
                buttonUrl
                buttonText
                buttonTarget
                hideUrl
                hideText
                text
                iconUrl
            }
        }
    `);return n?(0,a.createElement)(a.Fragment,null,l.length?(0,a.createElement)(p.default,{className:"home-promo-block",items:l}):null,(0,a.createElement)(s.Grid,{sm:2,gap:"md"},(0,a.createElement)(s.GridCol,null,"ADMIN"===n.type?(0,a.createElement)(o.default,t):(0,a.createElement)(m.default,t),e.length?(0,a.createElement)(d.default,{buttons:e}):null),(0,a.createElement)(s.GridCol,null,(0,a.createElement)(u.default,t)))):null};f.propTypes={customButtonsList:r().array,mySubscriptions:r().array,isClassicMode:r().bool},f.defaultProps={customButtonsList:[],mySubscriptions:[],isClassicMode:!1},t.default=(0,E.withPageLayout)((0,g.withPageContent)(f))},739:(e,t,n)=>{"use strict";n.r(t);var a=n(154),l=n(578),r=n.n(l),s=n(261),c=n.n(s),i=n(155);const o=({baseClassName:e,className:t,icon:n,title:l,children:s})=>(0,a.createElement)(i.Panel,{className:r()(e,t),title:(0,a.createElement)(i.Heading,{className:"home-panel__title",level:3,icon:{src:n}},l)},s);o.propTypes={baseClassName:c().string,className:c().string,icon:c().string.isRequired,title:c().node.isRequired,children:c().node.isRequired},o.defaultProps={baseClassName:"home-panel",className:void 0},t.default=o},752:(e,t,n)=>{"use strict";n.r(t);var a=n(738),l=n.n(a),r=n(154),s=n(739),c=n(261),i=n.n(c),o=n(405),m=n(302),u=n(144),d=n(155),p=n(582);function E(){const e=l()(["\n        {\n            viewer {\n                type\n                pname\n            }\n        }\n    "]);return E=function(){return e},e}const g=({mySubscriptions:e,mySubscriptionsTotal:t,createNoPermission:a})=>{const{data:{viewer:l}={}}=(0,o.useQuery)((0,m.gql)(E()));if(!l)return null;const c="ADMIN"===l.type?u.Locale.getTranslate("admin.controllers.home.admin"):u.Locale.getTranslate("admin.controllers.home.reseller");return(0,r.createElement)(s.default,{className:"bp-webspaces",icon:n(753),title:(0,r.createElement)(c,{content:"panelMyWebspaces"})},e.length?(0,r.createElement)(d.Section,null,e.map((({id:e,name:t})=>(0,r.createElement)(d.SectionItem,{key:e},(0,r.createElement)(p.default,{to:"/admin/subscription/overview/id/".concat(e)},t)))),t>e.length?(0,r.createElement)(d.SectionItem,null,(0,r.createElement)(p.default,{to:"/admin/subscription/list?context=subscriptions&force-show-search=true&searchFilter[subscriberName][searchText]=".concat(encodeURIComponent(l.pname))},(0,r.createElement)(c,{content:"panelMyWebspacesMore"})," >>")):null):(0,r.createElement)(d.Section,null,(0,r.createElement)(d.SectionItem,null,(0,r.createElement)(c,{content:"panelMyWebspacesDescription",params:{link:(0,r.createElement)(p.default,{onClick:()=>OpenHelpWindow("home.admin.mywebspaces")},(0,r.createElement)(c,{content:"panelMyWebspacesHelpLink"}))}}))),a?null:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("hr",null),(0,r.createElement)(d.Action,{"data-action-name":"addSubscription",component:p.default,to:"/admin/subscription/create?context=subscriptions",icon:{src:n(754)}},(0,r.createElement)(c,{content:"ADMIN"===l.type?"panelMyWebspacesCreate":"panelMyWebspacesNew"}))))};g.propTypes={mySubscriptions:i().arrayOf(i().shape({id:i().number.isRequired,name:i().string.isRequired})),mySubscriptionsTotal:i().number,createNoPermission:i().bool},g.defaultProps={mySubscriptions:[],mySubscriptionsTotal:0,createNoPermission:!1},t.default=g},750:(e,t,n)=>{"use strict";n.r(t);var a=n(154),l=n(739),r=n(746),s=n(261),c=n.n(s),i=n(144),o=n(155);const m=i.Locale.getTranslate("admin.controllers.home.reseller"),u=i.Locale.getTranslate("admin.controllers.home._shared"),d=({creationDate:e,servicePlan:t,diskSpace:s,traffic:c,ownerId:i,resourceUsage:d})=>(0,a.createElement)(l.default,{className:"bp-overview",icon:n(748),title:(0,a.createElement)(m,{content:"panelOverview"})},(0,a.createElement)(o.Section,null,(0,a.createElement)(o.SectionItem,{title:(0,a.createElement)(m,{content:"setupDate"})},e),(0,a.createElement)(o.SectionItem,{title:(0,a.createElement)(m,{content:"servicePlan"})},t?(0,a.createElement)("div",{dangerouslySetInnerHTML:{__html:t}}):(0,a.createElement)(m,{content:"servicePlanCustom"})),(0,a.createElement)(o.SectionItem,{title:(0,a.createElement)(m,{content:"diskSpace"})},(0,a.createElement)("div",{dangerouslySetInnerHTML:{__html:s}})),(0,a.createElement)(o.SectionItem,{title:(0,a.createElement)(m,{content:"traffic"})},(0,a.createElement)("div",{dangerouslySetInnerHTML:{__html:c}})),(0,a.createElement)(o.SectionItem,null,(0,a.createElement)(o.Action,{href:"/plesk/reseller@".concat(i,"/report/"),icon:{src:n(749)}},(0,a.createElement)(u,{content:"linkDetailedReport"}))),(0,a.createElement)(o.SectionItem,null,(0,a.createElement)(o.Action,{href:"/admin/reseller-self/subscription-overview/",icon:{src:n(751)}},(0,a.createElement)(u,{content:"myResourcesOverview"})))),(0,a.createElement)("hr",null),(0,a.createElement)(r.default,{resourceUsage:d}));d.propTypes={creationDate:c().string.isRequired,servicePlan:c().string.isRequired,diskSpace:c().string.isRequired,traffic:c().string.isRequired,ownerId:c().string.isRequired,resourceUsage:c().array.isRequired},t.default=d},757:(e,t,n)=>{"use strict";n.r(t);var a=n(154),l=n(261),r=n.n(l),s=n(578),c=n.n(s),i=n(155),o=n(144);const m=o.Locale.getTranslate("admin.controllers.home.admin"),u=({className:e,baseClassName:t,...n})=>{const[l,r]=(0,a.useState)(n.items),[s,u]=(0,a.useState)(1),[d,p]=(0,a.useState)(0),E=Math.ceil(l.length/s);d*s>=l.length&&p(E-1);const g=(e,t)=>{const{buttonUrl:n,buttonTarget:s,buttonText:c,iconUrl:m,title:u,text:d,hideText:p}=e;return(0,a.createElement)(i.Item,{key:t,icon:(0,a.createElement)(i.Icon,{src:m,size:"24"}),title:(0,a.createElement)(i.Heading,{component:"h3",level:"5"},u)},(0,a.createElement)("p",null,d),(0,a.createElement)("div",null,(0,a.createElement)(i.Button,{component:"a",href:n,target:s},c),"   ",(0,a.createElement)(i.Button,{ghost:!0,onClick:()=>{return t=e,r(l.filter((e=>e!==t))),void(t.hideUrl&&o.api.post(t.hideUrl));var t}},p)))},f=d*s,b=l.slice(f,f+s);return b.length?(0,a.createElement)(i.Alert,{className:c()(t,e)},(0,a.createElement)("div",null,(0,a.createElement)("p",null,(0,a.createElement)(m,{content:"promosTitle"})),(0,a.createElement)(i.ItemList,{minColumnWidth:300,onColumnsChange:e=>{s!==e&&u(e)},gap:"md",hoverable:!1},b.map(((e,t)=>g(e,t))))),E>1&&(0,a.createElement)(i.Columns,{gap:"md",vertical:!1},(0,a.createElement)(i.Column,{fill:!0},(0,a.createElement)(i.Button,{ghost:!0,"data-action-name":"promosPrevPage",onClick:()=>{p(d-1<0?E-1:d-1)}},(0,a.createElement)(m,{content:"promosPrev"}))),(0,a.createElement)(i.Column,null,(0,a.createElement)(i.Button,{ghost:!0,"data-action-name":"promosNextPage",onClick:()=>{p(d+1>E-1?0:d+1)}},(0,a.createElement)(m,{content:"promosNext"}))))):null};u.propTypes={items:r().array.isRequired,baseClassName:r().string,className:r().string},u.defaultProps={baseClassName:"admin-home-promo",className:null},t.default=u},745:(e,t,n)=>{"use strict";n.r(t);var a=n(155),l=n(154),r=n(261),s=n.n(r),c=n(144),i=n(742);const o=c.Locale.getTranslate("admin.controllers.home.admin"),m=({compact:e,updates:t,lastChecked:n})=>(0,l.createElement)(i.default,{compact:e,title:t.length>1?(0,l.createElement)(o,{content:"updatesForPackagesAreAvailable",params:{packages:(0,l.createElement)(a.Link,{href:"/admin/pum/updates-list"},(0,l.createElement)(o,{content:"packages",params:{count:t.length}}))}}):(0,l.createElement)(o,{content:"updatesForPackageIsAvailable",params:{package:"".concat(t[0].name," ").concat(t[0].version_to)}}),hint:n?(0,l.createElement)(o,{content:"updatesLastChecked",params:{date:n}}):null},(0,l.createElement)(a.Button,{onClick:async()=>{const{PopupPackagesUpdate:e}=await Plesk.require("app/pum");new e({urls:{packageUpdateInfo:"/admin/pum/update-info",updatePackages:"/admin/pum/update"},packages:t})},intent:"primary"},t.length>1?(0,l.createElement)(o,{content:"updateAll"}):(0,l.createElement)(o,{content:"updateNow"})),"    ",(0,l.createElement)(a.Link,{href:"/admin/pum/updates-list"},(0,l.createElement)(o,{content:"showDetails"})));m.propTypes={compact:s().bool,updates:s().array,lastChecked:s().string},m.defaultProps={compact:!1,updates:[],lastChecked:null},t.default=m},746:(e,t,n)=>{"use strict";n.r(t);var a=n(154),l=n(261),r=n.n(l),s=n(144),c=n(155),i=n(582);const o=s.Locale.getTranslate("admin.controllers.home._shared"),m=({resourceUsage:e})=>(0,a.createElement)("table",{className:"form-table",width:"100%",cellSpacing:"0","data-name":"resourceUsage"},(0,a.createElement)("tbody",null,e.map((({iconUrl:e,title:t,listUrl:n,total:l,createUrl:r,overuseUrl:s,overuse:m})=>(0,a.createElement)("tr",{className:"form-row",key:t},(0,a.createElement)("td",{className:"field-name"},(0,a.createElement)(c.Text,{bold:!0,component:c.Status,icon:{src:e}},(0,a.createElement)(o,{content:t}))),(0,a.createElement)("td",{className:"number t-r"},(0,a.createElement)(i.default,{to:n},(0,a.createElement)(o,{content:"totalItems",params:{value:l}}))),(0,a.createElement)("td",null,r?(0,a.createElement)(c.AuxiliaryActions,null,(0,a.createElement)(i.default,{to:r},(0,a.createElement)(o,{content:"linkAddNew"}))):(0,a.createElement)("span",null," ")),(0,a.createElement)("td",null,s?(0,a.createElement)(i.default,{to:s},(0,a.createElement)(o,{content:"overuseItems",params:{value:m}})):(0,a.createElement)("span",null," ")))))));m.propTypes={resourceUsage:r().arrayOf(r().shape({iconUrl:r().string.isRequired,title:r().string.isRequired,listUrl:r().string.isRequired,total:r().number.isRequired,createUrl:r().string,overuseUrl:r().string,overuse:r().number})).isRequired},t.default=m},747:(e,t,n)=>{"use strict";n.r(t);var a=n(154),l=n(261),r=n.n(l),s=n(144),c=n(155);const i=s.Locale.getTranslate("admin.controllers.home.admin"),o=({isOutgoingMessagesLimitEnabled:e,isOutgoingMessagesExceedingForConfiguredPeriod:t,outgoingMailUrl:n,serverProtectionSettingsUrl:l,fail2banStatus:r,banListUrl:s,isFail2banAvailable:o,isModSecurityAvailable:m,modSecurityState:u,modSecurityChangeSettingsLink:d,webAppFirewallUrl:p})=>e||o||m?(0,a.createElement)(a.Fragment,null,(0,a.createElement)("hr",null),(0,a.createElement)(c.Section,null,e?(0,a.createElement)(c.SectionItem,{title:(0,a.createElement)(i,{content:"outgoingAntispamTitle"})},t?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(c.Status,{intent:"warning"},(0,a.createElement)(i,{content:"outgoingAntispamStatusAttention"})),(0,a.createElement)("br",null),(0,a.createElement)(c.Link,{href:n},(0,a.createElement)(i,{content:"outgoingAntispamStatusAttentionLink"}))):(0,a.createElement)(a.Fragment,null,(0,a.createElement)(c.Status,{intent:"success"},(0,a.createElement)(i,{content:"outgoingAntispamStatusOk"})),(0,a.createElement)("br",null),(0,a.createElement)(c.Link,{href:n},(0,a.createElement)(i,{content:"outgoingAntispamStatusOkLink"})))):null,(()=>{if(!o)return null;let e=(0,a.createElement)(c.Status,{intent:"inactive"},(0,a.createElement)(i,{content:"fail2banInactive"})),t=(0,a.createElement)(c.Link,{href:l},(0,a.createElement)(i,{content:"fail2banChangeSettings"}));return"on"===r?(e=(0,a.createElement)(c.Status,{intent:"success"},(0,a.createElement)(i,{content:"fail2banActive"})),t=(0,a.createElement)(c.Link,{href:s},(0,a.createElement)(i,{content:"fail2banBannedIps"}))):"failed"===r&&(e=(0,a.createElement)(i,{content:"fail2banError"})),(0,a.createElement)(c.SectionItem,{title:(0,a.createElement)(i,{content:"fail2banTitle"})},e,(0,a.createElement)("br",null),t)})(),m?(0,a.createElement)(c.SectionItem,{title:(0,a.createElement)(i,{content:"modSecurityTitle"})},"On"===u?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(c.Status,{intent:"success"},(0,a.createElement)(i,{content:"modSecurityState".concat(u)})),(0,a.createElement)("br",null),(0,a.createElement)(c.Link,{href:p},(0,a.createElement)(i,{content:"modSecurityManagement"}))):(0,a.createElement)(a.Fragment,null,(0,a.createElement)(c.Status,{intent:"inactive"},(0,a.createElement)(i,{content:"modSecurityState".concat(u)})),(0,a.createElement)("br",null),d,(0,a.createElement)(c.Link,{href:p},(0,a.createElement)(i,{content:"modSecurityChangeSettings"})))):null)):null;o.propTypes={isOutgoingMessagesLimitEnabled:r().bool,isOutgoingMessagesExceedingForConfiguredPeriod:r().bool,outgoingMailUrl:r().string.isRequired,serverProtectionSettingsUrl:r().string.isRequired,fail2banStatus:r().string.isRequired,banListUrl:r().string.isRequired,isFail2banAvailable:r().bool,isModSecurityAvailable:r().bool,modSecurityState:r().string.isRequired,modSecurityChangeSettingsLink:r().string,webAppFirewallUrl:r().string.isRequired},o.defaultProps={isOutgoingMessagesLimitEnabled:!1,isOutgoingMessagesExceedingForConfiguredPeriod:!1,isModSecurityAvailable:!1,isFail2banAvailable:!1,modSecurityChangeSettingsLink:null},t.default=o},740:(e,t,n)=>{"use strict";n.r(t);var a=n(154),l=n(261),r=n.n(l),s=n(155);const c=n(144).Locale.getTranslate("admin.controllers.home.admin"),i=({hostName:e,ipAddress:t,os:n,productName:l,panelVersion:r,installedPatch:i,lastUpdate:o})=>(0,a.createElement)(s.Section,{"data-name":"systemInfo"},(0,a.createElement)(s.SectionItem,{title:(0,a.createElement)(c,{content:"hostname"})},e),(0,a.createElement)(s.SectionItem,{title:(0,a.createElement)(c,{content:"ipAddress"})},t),(0,a.createElement)(s.SectionItem,{title:(0,a.createElement)(c,{content:"os"})},n),(0,a.createElement)(s.SectionItem,{title:(0,a.createElement)(c,{content:"product"})},l,(0,a.createElement)("br",null),(0,a.createElement)(s.Hint,null,(0,a.createElement)(c,{content:"panelVersion"})," ",r,i?(0,a.createElement)(a.Fragment,null," ",(0,a.createElement)(c,{content:"installedPatchVersion",params:{installedPatch:i}})):null,o?(0,a.createElement)(c,{content:"lastUpdateDate",params:{lastUpdate:o}}):null)));i.propTypes={hostName:r().string.isRequired,ipAddress:r().string.isRequired,os:r().string.isRequired,productName:r().string.isRequired,panelVersion:r().string.isRequired,installedPatch:r().string,lastUpdate:r().string},i.defaultProps={installedPatch:null,lastUpdate:null},t.default=i},737:(e,t,n)=>{"use strict";n.r(t);var a=n(153),l=n.n(a),r=n(738),s=n.n(r),c=n(154),i=n(405),o=n(302),m=n(144),u=n(155),d=n(739),p=n(740),E=n(741),g=n(744),f=n(745),b=n(746),h=n(747),k=n(261),S=n.n(k);function v(){const e=s()(["\n        {\n            config {\n                updates {\n                    showControls\n                }\n            }\n        }\n    "]);return v=function(){return e},e}const y=m.Locale.getTranslate("admin.controllers.home.admin"),w=m.Locale.getTranslate("admin.controllers.home._shared"),C=({updates:e,pum:t,systemInfo:a,upgrade:r,securityInfo:s,resourceUsage:m,isClassicMode:k})=>{var S,C;const{data:{config:U}={}}=(0,i.useQuery)((0,o.gql)(v()));return(0,c.createElement)(d.default,{className:"bp-system-overview",icon:n(748),title:(0,c.createElement)(y,{content:"panelSystemOverview"})},(0,c.createElement)(p.default,a),null!=U&&null!==(S=U.updates)&&void 0!==S&&S.showControls?(0,c.createElement)(E.default,l()({},r,{isClassicMode:k})):null,null!=U&&null!==(C=U.updates)&&void 0!==C&&C.showControls&&e?(0,c.createElement)(g.default,e):null,t?(0,c.createElement)(f.default,t):null,(0,c.createElement)(h.default,s),(0,c.createElement)("hr",null),(0,c.createElement)(b.default,{resourceUsage:m}),(0,c.createElement)("hr",null),(0,c.createElement)(u.Action,{href:"/plesk/admin/report",icon:{src:n(749)}},(0,c.createElement)(w,{content:"linkDetailedReport"})))};C.propTypes={updates:S().object,pum:S().shape(f.default.propTypes),systemInfo:S().object.isRequired,isAutoupdatesDisabled:S().bool,upgrade:S().object,securityInfo:S().object.isRequired,resourceUsage:S().array.isRequired,isClassicMode:S().bool.isRequired},C.defaultProps={updates:void 0,pum:void 0,upgrade:void 0,isAutoupdatesDisabled:!1},t.default=C},742:(e,t,n)=>{"use strict";n.r(t);var a=n(154),l=n(155),r=n(261),s=n.n(r);const c=({compact:e,title:t,hint:r,children:s})=>{const c=(0,a.createElement)(l.Icon,{src:n(743),size:"16"});return(0,a.createElement)(l.Alert,{intent:"info"},e?(0,a.createElement)(a.Fragment,null,(0,a.createElement)("p",null,c," ",t),(0,a.createElement)("p",null,s),r?(0,a.createElement)("p",null,(0,a.createElement)(l.Text,{intent:"muted"},r)):null):(0,a.createElement)(l.Media,{image:c},(0,a.createElement)(l.MediaSection,null,t),(0,a.createElement)(l.MediaSection,null,s),r?(0,a.createElement)(l.MediaSection,null,(0,a.createElement)(l.Text,{intent:"muted"},r)):null))};c.propTypes={compact:s().bool,title:s().any.isRequired,children:s().any.isRequired,hint:s().any},c.defaultProps={compact:!1,hint:null},t.default=c},744:(e,t,n)=>{"use strict";n.r(t);var a=n(738),l=n.n(a),r=n(155),s=n(154),c=n(261),i=n.n(c),o=n(302),m=n(405),u=n(144),d=n(742);function p(){const e=l()(["\n    mutation UpdateComponents {\n        updateComponents {\n            id\n        }\n    }\n"]);return p=function(){return e},e}const E=u.Locale.getTranslate("admin.controllers.home.admin"),g=(0,o.gql)(p()),f=({compact:e,availablePatch:t,updateWhatsNewUrl:n,runningTaskId:a})=>{const[l,c]=(0,s.useState)(a),[i,{loading:o}]=(0,m.useMutation)(g,{onCompleted:({updateComponents:e})=>{c(e.id)}});return(0,s.useEffect)((()=>{l&&u.Observer.append((({id:e})=>{+e==+l&&window.location.reload()}),"plesk:taskComplete")}),[l]),(0,s.createElement)(d.default,{compact:e,title:(0,s.createElement)(E,{content:"updatesAvailable",params:{version:t}})},(0,s.createElement)(r.Button,{intent:"primary",onClick:async()=>{(0,u.clearStatusMessages)();try{await i()}catch({message:e}){(0,u.addStatusMessage)("warning",e)}},state:o||l?"loading":null},(0,s.createElement)(E,{content:"installNow"})),"    ",(0,s.createElement)(r.Link,{href:"/admin/update",target:"_blank"},(0,s.createElement)(E,{content:"installShow"})),"    ",(0,s.createElement)(r.Link,{href:n,target:"_blank"},(0,s.createElement)(E,{content:"seeWhatsNew"})))};f.propTypes={compact:i().bool,availablePatch:i().string.isRequired,updateWhatsNewUrl:i().string.isRequired,runningTaskId:i().string},f.defaultProps={compact:!1,runningTaskId:void 0},t.default=f},741:(e,t,n)=>{"use strict";n.r(t);var a=n(155),l=n(154),r=n(144),s=n(261),c=n.n(s),i=n(742);const o=r.Locale.getTranslate("admin.controllers.home.admin"),m=({isClassicMode:e,isAutoupdatesDisabled:t,updateSettingsUrl:n,changelogUrl:s,availableUpgrade:c,upgradeWhatsNewUrl:m,...u})=>{const[d,p]=(0,l.useState)(!1),[E,g]=(0,l.useState)(c),[f,b]=(0,l.useState)(m),[h,k]=(0,l.useState)(u.lastChecked);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(a.Heading,{component:"div",level:5},d?(0,l.createElement)(a.Status,{progress:!0},(0,l.createElement)(o,{content:"waitMessage"})):(0,l.createElement)(a.Link,{onClick:async()=>{p(!0),(0,r.clearStatusMessages)();const{status:e,lastChecked:t,statusMessages:n,newVersion:a,whatsNewUrl:l}=await r.api.post("/admin/home/check-for-updates");p(!1),"error"!==e?(g(a),b(l),k(t)):n.forEach((({status:e,content:t})=>{(0,r.addStatusMessage)(e,t)}))},"data-name":"checkForUpdates"},(0,l.createElement)(o,{content:"checkForUpdates"}))),h?(0,l.createElement)("p",null,(0,l.createElement)(a.Text,{intent:"muted","data-name":"lastCheckedDate"},(0,l.createElement)(o,{content:"checkedAt",params:{lastChecked:h}}))):null,e?(0,l.createElement)("p",null,(0,l.createElement)(a.Link,{href:s,target:"_blank"},(0,l.createElement)(o,{content:"seeChangelog"})),(0,l.createElement)("span",{className:"delimiter"}," | "),(0,l.createElement)(a.Link,{href:"/admin/update/add-components/",target:"_blank"},(0,l.createElement)(o,{content:"addComponents"}))):null,e&&t?(0,l.createElement)(a.Status,{intent:"warning"},(0,l.createElement)(a.Link,{href:n},(0,l.createElement)(o,{content:"enableAutoupdate"}))):null,E?(0,l.createElement)(i.default,{compact:!e,title:(0,l.createElement)(o,{content:"updateIsAvailable",params:{product:E}})},(0,l.createElement)(a.Button,{intent:"primary",component:"a",href:"/admin/update/product",target:"_blank",rel:"noopener noreferrer"},(0,l.createElement)(o,{content:"installNow"})),"    ",(0,l.createElement)(a.Link,{href:f,target:"_blank"},(0,l.createElement)(o,{content:"seeWhatsNew"}))):null)};m.propTypes={isClassicMode:c().bool,availableUpgrade:c().string,upgradeWhatsNewUrl:c().string,lastChecked:c().string.isRequired,changelogUrl:c().string.isRequired,updateSettingsUrl:c().string.isRequired,isAutoupdatesDisabled:c().bool.isRequired},m.defaultProps={isClassicMode:!1,availableUpgrade:null,upgradeWhatsNewUrl:null},t.default=m},735:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a.default});var a=n(736)},754:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/open-webspace.png?eacf27c9d2806ff2c2e196b3e611f4e4"},751:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/resources.png?aca573a2ea3c713332e0319fe62f99ac"},749:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/stats.png?6a39051adc0633466df48a83a804028c"},743:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/update-light.png?74fefb9b3ca4a30e8fb17619678aa233"},756:e=>{e.exports=Jsw.skinUrl+"/icons/32/plesk/custom-buttons.png?7cf218aebaf85599ee9d8db8e1a3ee91"},748:e=>{e.exports=Jsw.skinUrl+"/icons/32/plesk/system-overview.png?6ef318b83eea9b5c63f530e457fed0af"},753:e=>{e.exports=Jsw.skinUrl+"/icons/32/plesk/webspaces.png?33a8ec192f24d9bbfbc60969b75b1841"}}]);
//# sourceMappingURL=admin.js.map?60ff4315d0cbfeeb6269