PageSourceSearch

https://cancerfoundationofgeorgia.org/cp/javascript/views/admin/home/admin.js?ee863fa4a579f83617a1

js cancerfoundationofgeorgia.org collected 2026-10-05 22:35:21 UTC 28,549 bytes, 16 lines download raw bytes

1(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/admin/home/admin"],{984:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var s=t(244),i=t.n(s),a=t(90),r=t(769),o=t(967),l=t(242);const c=a.Locale.getTranslate("admin.controllers.home.admin"),d=({buttons:e})=>(0,l.jsx)(o.default,{className:"bp-custom-buttons",icon:t(985),title:(0,l.jsx)(c,{content:"panelCustomButtons"}),children:(0,l.jsx)(r.default,{children:()=>new a.Container({tag:"ul",cls:"tools-list",items:e})})});d.propTypes={buttons:i().array.isRequired};const u=d},965:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>b});var s=t(244),i=t.n(s),a=t(243),r=t(730),o=t(736),l=t(966),c=t(979),d=t(981),u=t(984),m=t(986),p=t(987),h=t(988),x=t.n(h),f=t(989),g=t.n(f),j=t(242);const v=({customButtonsList:e,showPromoPuv:n,...t})=>{const{data:{viewer:s}={}}=(0,r.useQuery)(x()),{data:{promos:i}={promos:[]}}=(0,r.useQuery)(g());return s?(0,j.jsxs)(j.Fragment,{children:[i.length?(0,j.jsx)(m.default,{className:"home-promo-block",items:i}):null,(0,j.jsxs)(a.Grid,{sm:2,gap:"md",children:[(0,j.jsxs)(a.GridCol,{children:["ADMIN"===s.type?(0,j.jsx)(l.default,{...t}):(0,j.jsx)(c.default,{...t}),e.length?(0,j.jsx)(u.default,{buttons:e}):null]}),(0,j.jsxs)(a.GridCol,{children:[n?(0,j.jsx)(p.default,{}):null,(0,j.jsx)(d.default,{...t})]})]})]}):null};v.propTypes={customButtonsList:i().array,mySubscriptions:i().array,isClassicMode:i().bool,showPromoPuv:i().bool},v.defaultProps={customButtonsList:[],mySubscriptions:[],isClassicMode:!1,showPromoPuv:!1};const b=(0,o.withPageLayout)(v)},967:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var s=t(682),i=t.n(s),a=t(244),r=t.n(a),o=t(243),l=t(242);const c=({baseClassName:e,className:n,icon:t,title:s,children:a})=>(0,l.jsx)(o.Panel,{className:i()(e,n),title:(0,l.jsx)(o.Heading,{className:"home-panel__title",level:3,icon:{src:t},children:s}),children:a});c.propTypes={baseClassName:r().string,className:r().string,icon:r().string.isRequired,title:r().node.isRequired,children:r().node.isRequired},c.defaultProps={baseClassName:"home-panel",className:void 0};const d=c},981:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>p});var s=t(244),i=t.n(s),a=t(730),r=t(453),o=t(90),l=t(243),c=t(772),d=t(967),u=t(242);const m=({mySubscriptions:e,mySubscriptionsTotal:n,createNoPermission:s})=>{const{data:{viewer:i}={}}=(0,a.useQuery)(r.gql`
2        {
3            viewer {
4                login
5                type
6                pname
7            }
8        }
9    `);if(!i)return null;
9const m="ADMIN"===i.type?o.Locale.getTranslate("admin.controllers.home.admin"):o.Locale.getTranslate("admin.controllers.home.reseller");return(0,u.jsxs)(d.default,{className:"bp-webspaces",icon:t(982),title:(0,u.jsx)(m,{content:"panelMyWebspaces"}),children:[e.length?(0,u.jsxs)(l.Section,{children:[e.map((({id:e,name:n})=>(0,u.jsx)(l.SectionItem,{children:(0,u.jsx)(c.default,{to:`/admin/subscription/overview/id/${e}`,children:n})},e))),n>e.length?(0,u.jsx)(l.SectionItem,{children:(0,u.jsxs)(c.default,{to:`/admin/subscription/list?context=subscriptions&force-show-search=true&searchFilter[subscriberName][searchText]=${encodeURIComponent(i.pname)}`,children:[(0,u.jsx)(m,{content:"panelMyWebspacesMore"})," >>"]})}):null]}):(0,u.jsx)(l.Section,{children:(0,u.jsx)(l.SectionItem,{children:(0,u.jsx)(m,{content:"panelMyWebspacesDescription",params:{link:(0,u.jsx)("a",{href:"/help.php?context=home.admin.mywebspaces",target:"_blank",rel:"noopener noreferrer",children:(0,u.jsx)(m,{content:"panelMyWebspacesHelpLink"})})}})})}),s?null:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("hr",{}),(0,u.jsx)(l.Action,{"data-action-name":"addSubscription",component:c.default,to:"/admin/subscription/create?context=subscriptions",icon:{src:t(983)}
9,children:(0,u.jsx)(m,{content:"ADMIN"===i.type?"panelMyWebspacesCreate":"panelMyWebspacesNew"})})]})]})};m.propTypes={mySubscriptions:i().arrayOf(i().shape({id:i().number.isRequired,name:i().string.isRequired})),mySubscriptionsTotal:i().number,createNoPermission:i().bool},m.defaultProps={mySubscriptions:[],mySubscriptionsTotal:0,createNoPermission:!1};const p=m},979:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>p});var s=t(967),i=t(974),a=t(244),r=t.n(a),o=t(90),l=t(243),c=t(242);const d=o.Locale.getTranslate("admin.controllers.home.reseller"),u=o.Locale.getTranslate("admin.controllers.home._shared"),m=({creationDate:e,servicePlan:n,diskSpace:a,traffic:r,ownerId:o,resourceUsage:m})=>(0,c.jsxs)(s.default,{className:"bp-overview",icon:t(977),title:(0,c.jsx)(d,{content:"panelOverview"}),children:[(0,c.jsxs)(l.Section,{children:[(0,c.jsx)(l.SectionItem,{title:(0,c.jsx)(d,{content:"setupDate"}),children:e}),(0,c.jsx)(l.SectionItem,{title:(0,c.jsx)(d,{content:"servicePlan"}),children:n?(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:n}}):(0,c.jsx)(d,{content:"servicePlanCustom"})}),(0,c.jsx)(l.SectionItem,{title:(0,c.jsx)(d,{content:"diskSpace"}),children:(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:a}})}),(0,c.jsx)(l.SectionItem,{title:(0,c.jsx)(d,{content:"traffic"}),children:(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})}),(0,c.jsx)(l.SectionItem,{children:(0,c.jsx)(l.Action,{href:`/plesk/reseller@${o}/report/`,icon:{src:t(978)},children:(0,c.jsx)(u,{content:"linkDetailedReport"})})}),(0,c.jsx)(l.SectionItem,{children:(0,c.jsx)(l.Action,{href:"/admin/reseller-self/subscription-overview/",icon:{src:t(980)},children:(0,c.jsx)(u,{content:"myResourcesOverview"})})})]}),(0,c.jsx)("hr",{}),(0,c.jsx)(i.default,{resourceUsage:m})]});m.propTypes={creationDate:r().string.isRequired,servicePlan:r().string.isRequired,diskSpace:r().str
9ing.isRequired,traffic:r().string.isRequired,ownerId:r().string.isRequired,resourceUsage:r().array.isRequired};const p=m},986:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var s=t(242),i=t(244),a=t.n(i),r=t(682),o=t.n(r),l=t(243),c=t(90);const d=c.Locale.getTranslate("admin.controllers.home.admin"),u=({className:e,baseClassName:n,...t})=>{const[i,a]=(0,s.useState)(t.items),[r,u]=(0,s.useState)(1),[m,p]=(0,s.useState)(0),h=Math.ceil(i.length/r);m*r>=i.length&&p(h-1);const x=(e,n)=>{const{buttonUrl:t,buttonTarget:r,buttonText:o,iconUrl:d,title:u,text:m,hideText:p}=e;return(0,s.jsxs)(l.Item,{icon:(0,s.jsx)(l.Icon,{src:d,size:"24"}),title:(0,s.jsx)(l.Heading,{component:"h3",level:"5",children:u}),children:[(0,s.jsx)("p",{children:m}),(0,s.jsxs)("div",{children:[(0,s.jsx)(l.Button,{component:"a",href:t,target:r,children:o}),"   ",(0,s.jsx)(l.Button,{ghost:!0,onClick:()=>{return n=e,a(i.filter((e=>e!==n))),void(n.hideUrl&&c.api.post(n.hideUrl));var n},children:p})]})]},n)},f=m*r,g=i.slice(f,f+r);return g.length?(0,s.jsxs)(l.Alert,{className:o()(n,e),children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{children:(0,s.jsx)(d,{content:"promosTitle"})}),(0,s.jsx)(l.ItemList,{minColumnWidth:300,onColumnsChange:e=>{r!==e&&u(e)},gap:"md",hoverable:!1,children:g.map(((e,n)=>x(e,n)))})]}),h>1&&(0,s.jsxs)(l.Columns,{gap:"md",vertical:!1,children:[(0,s.jsx)(l.Column,{fill:!0,children:(0,s.jsx)(l.Button,{ghost:!0,"data-action-name":"promosPrevPage",onClick:()=>{p(m-1<0?h-1:m-1)},children:(0,s.jsx)(d,{content:"promosPrev"})})}),(0,s.jsx)(l.Column,{children:(0,s.jsx)(l.Button,{ghost:!0,"data-action-name":"promosNextPage",onClick:()=>{p(m+1>h-1?0:m+1)},children:(0,s.jsx)(d,{content:"promosNext"})})})]})]}):null};u.propTypes={items:a().array.isRequired,baseClassName:a().string,className:a().string},u.defaultProps={baseClassName:"admin-home-promo",className:null};const m=u},987:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>l});var s=t(243),i=t(772),a=t(90),r=t(242);const o=a.Locale.getTranslate("admin.controllers.home.admin"),l=()=>{const[e,n]=(0,r.useState)(!0);return e?(0,r.jsx)(s.Alert,{intent:"info",onClose:()=>{n(!1),a.UAT.dispatchAction("CLOSE-INVITATION-TO-PUV"),a.api.post("/admin/home/hide-promo-puv")},children:(0,r.jsxs)(s.Media,{image:(0,r.jsx)(s.Icon,{size:"32",children:(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:[(0,r.jsx)("path",{fill:"#673b72",d:"M48 41.1v2.8c0 1.2-.9 2.1-2.1 2.1H2.1C1 46 0 45.1 0 43.8v-2.7h48z"}),(0,r.jsx)("path",{fill:"#8d629c",d:"M0 9.8V4.1C0 3 .9 2 2.1 2h43.8C47 2 48 2.9 48 4.1v5.8L0 9.8z"}),(0,r.jsx)("path",{fill:"#b485bb",d:"M0 8v33.9C0 43 .9 44 2.1 44h43.8c1.2 0 2.1-1 2.1-2.1V8H0z"}),(0,r.jsx)("path",{fill:"#e4e6ed",d:"M43 19H5a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1h38a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1z"}),(0,r.jsx)("path",{fill:"#fff",d:"M43 40H5a1 1 0 0 1-1-1V16h40v23a1 1 0 0 1-1 1z"}),(0,r.jsx)("path",{fill:"#54bce7",d:"M6 18h16v10H6z"}),(0,r.jsx)("path",{fill:"#d1d3dd",d:"M24 18h8v20h-8zM34 18h8v20h-8z"})]})}),title:(0,r.jsx)("b",{children:(0,r.jsx)(o,{content:"promoPuvTitle"})}),children:[(0,r.jsx)(s.MediaSection,{children:(0,r.jsx)(o,{content:"promoPuvDescription",params:{accent:(0,r.jsx)("b",{children:(0,r.jsx)(o,{content:"promoPuvDescriptionAccent"})})}})}),(0,r.jsx)(s.MediaSection,{children:(0,r.jsx)(s.Button,{intent:"primary","data-action":"TO-POWER-USER",onClick:()=>{n(!1),a.api.post("/admin/home/hide-promo-puv"),a.api.post("/admin/index/change-view").then((e=>(0,a.redirect)(e.redirect)))},children:(0,r.jsx)(o,{content:"promoPuvButton"})})}),(0,r.jsx)(s.MediaSection,{children:(0,r.jsx)(s.Hint,{children:(0,r.jsx)(o,{content:"promoPuvHint",params:{link:(0,r.jsx)(i.default,{to:"/cp/settings-ui/edit-interface-view",children:(0,r.jsx)("b",{children:(0,r.jsx)(o,{content:"promoPuvHintLink"})})})}})})})]})}):null}},973:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var s=t(243),i=t(244),a=t.n(i),r=t(90),o=t(970),l=t(242);const c=r.Locale.getTranslate("admin.controllers.home.admin"),d=({compact:e,updates:n,lastChecked:t})=>(0,l.jsxs)(o.default,{compact:e,title:n.length>1?(0,l.jsx)(c,{content:"updatesForPackagesAreAvailable",params:{packages:(0,l.jsx)(s.Link,{href:"/admin/pum/updates-list",children:(0,l.jsx)(c,{content:"packages",params:{count:n.length}})})}}):(0,l.jsx)(c,{content:"updatesForPackageIsAvailable",params:{package:`${n[0].name} ${n[0].version_to}`}}),hint:t?(0,l.jsx)(c,{content:"updatesLastChecked",params:{date:t}}):null,children:[(0,l.jsx)(s.Button,{onClick:async()=>{const{PopupPackagesUpdate:e}=await Plesk.require("app/pum");new e({urls:{packageUpdateInfo:"/admin/pum/update-info",updatePackages:"/admin/pum/update"},packages:n})},intent:"primary",children:n.length>1?(0,l.jsx)(c,{content:"updateAll"}):(0,l.jsx)(c,{content:"updateNow"})}),"    ",(0,l.jsx)(s.Link,{href:"/admin/pum/updates-list",children:(0,l.jsx)(c,{content:"showDetail
9s"})})]});d.propTypes={compact:a().bool,updates:a().array,lastChecked:a().string},d.defaultProps={compact:!1,updates:[],lastChecked:null};const u=d},974:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var s=t(244),i=t.n(s),a=t(90),r=t(243),o=t(772),l=t(242);const c=a.Locale.getTranslate("admin.controllers.home._shared"),d=({resourceUsage:e})=>(0,l.jsx)("table",{className:"form-table",width:"100%",cellSpacing:"0","data-name":"resourceUsage",children:(0,l.jsx)("tbody",{children:e.map((({iconUrl:e,title:n,listUrl:t,total:s,createUrl:i,overuseUrl:a,overuse:d})=>(0,l.jsxs)("tr",{className:"form-row",children:[(0,l.jsx)("td",{className:"field-name",children:(0,l.jsx)(r.Text,{bold:!0,component:r.Status,icon:{src:e},children:(0,l.jsx)(c,{content:n})})}),(0,l.jsx)("td",{className:"number t-r",children:(0,l.jsx)(o.default,{to:t,children:(0,l.jsx)(c,{content:"totalItems",params:{value:s}})})}),(0,l.jsx)("td",{children:i?(0,l.jsx)(r.AuxiliaryActions,{children:(0,l.jsx)(o.default,{to:i,children:(0,l.jsx)(c,{content:"linkAddNew"})})}):(0,l.jsx)("span",{children:" "})}),(0,l.jsx)("td",{children:a?(0,l.jsx)(o.default,{to:a,children:(0,l.jsx)(c,{content:"overuseItems",params:{value:d}})}):(0,l.jsx)("span",{children:" "})})]},n)))})});d.propTypes={resourceUsage:i().arrayOf(i().shape({iconUrl:i().string.isRequired,title:i().string.isRequired,listUrl:i().string.isRequired,total:i().number.isRequired,createUrl:i().string,overuseUrl:i().string,overuse:i().number})).isRequired};const u=d},975:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var s=t(244),i=t.n(s),a=t(90),r=t(243),o=t(242);const l=a.Locale.getTranslate("admin.controllers.home.admin"),c=({isOutgoingMessagesLimitEnabled:e,isOutgoingMessagesExceedingForConfiguredPeriod:n,outgoingMailUrl:t,serverProtectionSettingsUrl:s,fail2banStatus:i,banListUrl:a,isFail2banAvailable:c,isModSecurityAvailable:d,modSecurityState:u,modSecurityChangeSettingsLink:m,webAppFirewallUrl:p})=>{const h=()=>{if(!c)return null;let e=(0,o.jsx)(r.Status,{intent:"inactive",children:(0,o.jsx)(l,{content:"fail2banInactive"})}),n=(0,o.jsx)(r.Link,{href:s,children:(0,o.jsx)(l,{content:"fail2banChangeSettings"})});return"on"===i?(e=(0,o.jsx)(r.Status,{intent:"success",children:(0,o.jsx)(l,{content:"fail2banActive"})}),n=(0,o.jsx)(r.Link,{href:a,children:(0,o.jsx)(l,{content:"fail2banBannedIps"})})):"failed"===i&&(e=(0,o.jsx)(l,{content:"fail2banError"})),(0,o.jsxs)(r.SectionItem,{title:(0,o.jsx)(l,{content:"fail2banTitle"}),children:[e,(0,o.jsx)("br",{}),n]})};return e||c||d?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("hr",{}),(0,o.jsxs)(r.Section,{children:[e?(0,o.jsx)(r.SectionItem,{title:(0,o.jsx)(l,{content:"outgoingAntispamTitle"}),children:n?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(r.Status,{intent:"warning",children:(0,o.jsx)(l,{content:"outgoingAntispamStatusAttention"})}),(0,o.jsx)("br",{}),(0,o.jsx)(r.Link,{href:t,children:(0,o.jsx)(l,{content:"outgoingAntispamStatusAttentionLink"})})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(r.Status,{intent:"success",children:(0,o.jsx)(l,{content:"outgoingAntispamStatusOk"})}),(0,o.jsx)("br",{}),(0,o.jsx)(r.Link,{href:t,children:(0,o.jsx)(l,{content:"outgoingAntispamStatusOkLink"})})]})}):null,h(),d?(0,o.jsx)(r.SectionItem,{title:(0,o.jsx)(l,{content:"modSecurityTitle"}),children:"On"===u?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(r.Status,{intent:"success",children:(0,o.jsx)(l,{content:`modSecurityState${u}`})}),(0,o.jsx)("br",{}),(0,o.jsx)(r.Link,{href:p,children:(0,o.jsx)(l,{content:"modSecurityManagement"})})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(r.Status,{intent:"inactive",children:(0,o.jsx)(l,{content:`modSecurityState${u}`})}),(0,o.jsx)("br",{}),m,(0,o.jsx)(r.Link,{href:p,children:(0,o.jsx)(l,{content:"modSecurityChangeSettings"})})]})}):null]})]}):null};c.propTypes={isOutgoingMessagesLimitEnabled:i().bool,isOutgoingMessagesExceedingForConfiguredPeriod:i().bool,outgoingMailUrl:i().string.isRequired,serverProtectionSettingsUrl:i().string.isRequired,fail2banStatus:i().string.isRequired,banListUrl:i().string.isRequired,isFail2banAvailable:i().bool,isModSecurityAvailable:i().bool,modSecurityState:i().string.isRequired,modSecurityChangeSettingsLink:i().string,webAppFirewallUrl:i().string.isRequired},c.defaultProps={isOutgoingMessagesLimitEnabled:!1,isOutgoingMessagesExceedingForConfiguredPeriod:!1,isModSecurityAvailable:!1,isFail2banAvailable:!1,modSecurityChangeSettingsLink:null};const d=c},968:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var s=t(244),i=t.n(s),a=t(243),r=t(90),o=t(242);const l=r.Locale.getTranslate("admin.controllers.home.admin"),c=({hostName:e,ipAddress:n,os:t,productName:s,panelVersion:i,installedPatch:r,lastUpdate:c})=>(0,o.jsxs)(a.Section,{"data-name":"systemInfo",children:[(0,o.jsx)(a.SectionItem,{title:(0,o.jsx)(l,{c
9ontent:"hostname"}),children:e}),(0,o.jsx)(a.SectionItem,{title:(0,o.jsx)(l,{content:"ipAddress"}),children:n}),(0,o.jsx)(a.SectionItem,{title:(0,o.jsx)(l,{content:"os"}),children:t}),(0,o.jsxs)(a.SectionItem,{title:(0,o.jsx)(l,{content:"product"}),children:[s,(0,o.jsx)("br",{}),(0,o.jsxs)(a.Hint,{children:[(0,o.jsx)(l,{content:"panelVersion"})," ",i,r?(0,o.jsxs)(o.Fragment,{children:[" ",(0,o.jsx)(l,{content:"installedPatchVersion",params:{installedPatch:r}})]}):null,c?(0,o.jsx)(l,{content:"lastUpdateDate",params:{lastUpdate:c}}):null]})]})]});c.propTypes={hostName:i().string.isRequired,ipAddress:i().string.isRequired,os:i().string.isRequired,productName:i().string.isRequired,panelVersion:i().string.isRequired,installedPatch:i().string,lastUpdate:i().string},c.defaultProps={installedPatch:null,lastUpdate:null};const d=c},966:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>k});var s=t(730),i=t(90),a=t(243),r=t(967),o=t(968),l=t(969),c=t(972),d=t(973),u=t(974),m=t(975),p=t(244),h=t.n(p),x=t(976),f=t.n(x),g=t(242);const j=i.Locale.getTranslate("admin.controllers.home.admin"),v=i.Locale.getTranslate("admin.controllers.home._shared"),b=({updates:e,pum:n,systemInfo:i,upgrade:p,securityInfo:h,resourceUsage:x,isClassicMode:b})=>{const{data:{config:k}={}}=(0,s.useQuery)(f());return(0,g.jsxs)(r.default,{className:"bp-system-overview",icon:t(977),title:(0,g.jsx)(j,{content:"panelSystemOverview"}),children:[(0,g.jsx)(o.default,{...i}),k?.updates?.showControls?(0,g.jsx)(l.default,{...p,isClassicMode:b}):null,k?.updates?.showControls&&e?(0,g.jsx)(c.default,{...e}):null,n?(0,g.jsx)(d.default,{...n}):null,(0,g.jsx)(m.default,{...h}),(0,g.jsx)("hr",{}),(0,g.jsx)(u.default,{resourceUsage:x}),(0,g.jsx)("hr",{}),(0,g.jsx)(a.Action,{href:"/cp/server/summary-report",icon:{src:t(978)},children:(0,g.jsx)(v,{content:"linkDetailedReport"})})]})};b.propTypes={updates:h().object,pum:h().shape(d.default.propTypes),systemInfo:h().object.isRequired,isAutoupdatesDisabled:h().bool,upgrade:h().object,securityInfo:h().object.isRequired,resourceUsage:h().array.isRequired,isClassicMode:h().bool.isRequired},b.defaultProps={updates:void 0,pum:void 0,upgrade:void 0,isAutoupdatesDisabled:!1};const k=b},970:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>l});var s=t(243),i=t(244),a=t.n(i),r=t(242);const o=({compact:e,title:n,hint:i,children:a})=>{const o=(0,r.jsx)(s.Icon,{src:t(971),size:"16"});return(0,r.jsx)(s.Alert,{intent:"info",children:e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("p",{children:[o," ",n]}),(0,r.jsx)("p",{children:a}),i?(0,r.jsx)("p",{children:(0,r.jsx)(s.Text,{intent:"muted",children:i})}):null]}):(0,r.jsxs)(s.Media,{image:o,children:[(0,r.jsx)(s.MediaSection,{children:n}),(0,r.jsx)(s.MediaSection,{children:a}),i?(0,r.jsx)(s.MediaSection,{children:(0,r.jsx)(s.Text,{intent:"muted",children:i})}):null]})})};o.propTypes={compact:a().bool,title:a().any.isRequired,children:a().any.isRequired,hint:a().any},o.defaultProps={compact:!1,hint:null};const l=o},972:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>h});var s=t(243),i=t(242),a=t(244),r=t.n(a),o=t(453),l=t(759),c=t(90),d=t(970);const u=c.Locale.getTranslate("admin.controllers.home.admin"),m=o.gql`
10    mutation UpdateComponents {
11        updateComponents {
12            id
13        }
14    }
15`,p=({compact:e,availablePatch:n,updateWhatsNewUrl:t,runningTaskId:a})=>{const[r,o]=(0,i.useState)(a),[p,{loading:h}]=(0,l.useMutation)(m,{onCompleted:({updateComponents:e})=>{o(e.id)}});return(0,i.useEffect)((()=>{r&&c.Observer.append((({id:e})=>{+e==+r&&window.location.reload()}),"plesk:taskComplete")}
15),[r]),(0,i.jsxs)(d.default,{compact:e,title:(0,i.jsx)(u,{content:"updatesAvailable",params:{version:n}}),children:[(0,i.jsx)(s.Button,{intent:"primary",onClick:async()=>{(0,c.clearStatusMessages)();try{await p()}catch({message:e}){(0,c.addStatusMessage)("warning",e)}},state:h||r?"loading":null,children:(0,i.jsx)(u,{content:"installNow"})}),"    ",(0,i.jsx)(s.Link,{href:"/admin/update",target:"_blank",children:(0,i.jsx)(u,{content:"installShow"})}),"    ",(0,i.jsx)(s.Link,{href:t,target:"_blank",children:(0,i.jsx)(u,{content:"seeWhatsNew"})})]})};p.propTypes={compact:r().bool,availablePatch:r().string.isRequired,updateWhatsNewUrl:r().string.isRequired,runningTaskId:r().string},p.defaultProps={compact:!1,runningTaskId:void 0};const h=p},969:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var s=t(243),i=t(242),a=t(90),r=t(244),o=t.n(r),l=t(970);const c=a.Locale.getTranslate("admin.controllers.home.admin"),d=({isClassicMode:e,isAutoupdatesDisabled:n,updateSettingsUrl:t,changelogUrl:r,availableUpgrade:o,upgradeWhatsNewUrl:d,...u})=>{const[m,p]=(0,i.useState)(!1),[h,x]=(0,i.useState)(o),[f,g]=(0,i.useState)(d),[j,v]=(0,i.useState)(u.lastChecked);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.Heading,{component:"div",level:5,children:m?(0,i.jsx)(s.Status,{progress:!0,children:(0,i.jsx)(c,{content:"waitMessage"})}):(0,i.jsx)(s.Link,{onClick:async()=>{let e;p(!0),(0,a.clearStatusMessages)();try{e=await a.api.post("/admin/home/check-for-updates")}catch(e){return void(0,a.addStatusMessage)("error",e.message)}finally{p(!1)}const{status:n,lastChecked:t,statusMessages:s,newVersion:i,whatsNewUrl:r}=e;"error"!==n?(x(i),g(r),v(t)):s.forEach((({status:e,content:n})=>{(0,a.addStatusMessage)(e,n)}))},"data-name":"checkForUpdates",children:(0,i.jsx)(c,{content:"checkForUpdates"})})}),j?(0,i.jsx)("p",{children:(0,i.jsx)(s.Text,{intent:"muted","data-name":"lastCheckedDate",children:(0,i.jsx)(c,{content:"checkedAt",params:{lastChecked:j}})})}):null,e?(0,i.jsxs)("p",{children:[(0,i.jsx)(s.Link,{href:r,target:"_blank",children:(0,i.jsx)(c,{content:"seeChangelog"})}),(0,i.jsx)("span",{className:"delimiter",children:" | "}),(0,i.jsx)(s.Link,{href:"/admin/update/add-components/",target:"_blank",children:(0,i.jsx)(c,{content:"addComponents"})})]}):null,e&&n?(0,i.jsx)(s.Status,{intent:"warning",children:(0,i.jsx)(s.Link,{href:t,children:(0,i.jsx)(c,{content:"enableAutoupdate"})})}):null,h?(0,i.jsxs)(l.default,{compact:!e,title:(0,i.jsx)(c,{content:"updateIsAvailable",params:{product:h}}),children:[(0,i.jsx)(s.Button,{intent:"primary",component:"a",href:"/admin/update/product",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)(c,{content:"installNow"})}),"    ",(0,i.jsx)(s.Link,{href:f,target:"_blank",children:(0,i.jsx)(c,{content:"seeWhatsNew"})})]}):null]})};d.propTypes={isClassicMode:o().bool,availableUpgrade:o().string,upgradeWhatsNewUrl:o().string,lastChecked:o().string.isRequired,changelogUrl:o().string.isRequired,updateSettingsUrl:o().string.isRequired,isAutoupdatesDisabled:o().bool.isRequired},d.defaultProps={isClassicMode:!1,availableUpgrade:null,upgradeWhatsNewUrl:null};const u=d},964:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s.default});var s=t(965)},983:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/open-webspace.png?eacf27c9d2806ff2c2e196b3e611f4e4"},980:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/resources.png?aca573a2ea3c713332e0319fe62f99ac"},978:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/stats.png?6a39051adc0633466df48a83a804028c"},971:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/update-light.png?74fefb9b3ca4a30e8fb17619678aa233"},985:e=>{e.exports=Jsw.skinUrl+"/icons/32/plesk/custom-buttons.png?7cf218aebaf85599ee9d8db8e1a3ee91"},977:e=>{e.exports=Jsw.skinUrl+"/icons/32/plesk/system-overview.png?6ef318b83eea9b5c63f530e457fed0af"},982:e=>{e.exports=Jsw.skinUrl+"/icons/32/plesk/webspaces.png?33a8ec192f24d9bbfbc60969b75b1841"},988:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"HomePage"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:71}};n.loc.source={body:"query HomePage {\r\n    viewer {\r\n        login\r\n        type\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);
15else if("VariableDefinition"===e.kind){var s=e.type;"NamedType"===s.kind&&n.add(s.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 s={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var s=e.definitions[t];if(s.name&&s.name.value==n)return s}}n.definitions.forEach((function(e){if(e.name){var n=new Set;t(e,n),s[e.name.value]=n}})),e.exports=n,e.exports.HomePage=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=s[n]||new Set,r=new Set,o=new Set;for(a.forEach((function(e){o.add(e)}));o.size>0;){var l=o;o=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(s[e]||new Set).forEach((function(e){o.add(e)})))}))}return r.forEach((function(n){var s=i(e,n);s&&t.definitions.push(s)})),t}(n,"HomePage")},989:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Promos"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"promos"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"buttonUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"buttonText"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"buttonTarget"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hideUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hideText"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"text"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"iconUrl"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:182}};n.loc.source={body:"query Promos {\r\n    promos {\r\n        title\r\n        buttonUrl\r\n        buttonText\r\n        buttonTarget\r\n        hideUrl\r\n        hideText\r\n        text\r\n        iconUrl\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 s=e.type;"NamedType"===s.kind&&n.add(s.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 s={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var s=e.definitions[t];if(s.name&&s.name.value==n)return s}}n.definitions.forEach((function(e){if(e.name){var n=new Set;t(e,n),s[e.name.value]=n}})),e.exports=n,e.exports.Promos=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=s[n]||new Set,r=new Set,o=new Set;for(a.forEach((function(e){o.add(e)}));o.size>0;){var l=o;o=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(s[e]||new Set).forEach((function(e){o.add(e)})))}))}return r.forEach((function(n){var s=i(e,n);s&&t.definitions.push(s)})),t}(n,"Promos")},976:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Updates"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"config"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updates"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"showControls"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:97}};n.loc.source={body:"query Updates {\r\n    config {\r\n        updates {\r\n            showControls\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 s=e.type;"NamedType"===s.kind&&n.add(s.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 s={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var s=e.definitions[t];if(s.name&&s.name.value==n)return s}}n.definitions.forEach((function(e){if(e.name){var n=new Set;t(e,n),s[e.name.value]=n}})),e.exports=n,e.exports.Updates=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=s[n]||new Set,r=new Set,o=new Set;
15for(a.forEach((function(e){o.add(e)}));o.size>0;){var l=o;o=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(s[e]||new Set).forEach((function(e){o.add(e)})))}))}return r.forEach((function(n){var s=i(e,n);s&&t.definitions.push(s)})),t}(n,"Updates")}}]);
16//# sourceMappingURL=admin.js.map?ee863fa4a579f83617a1

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.