PageSourceSearch

https://mayachi.com/cp/javascript/components/pages/HomePage.js?1f813b7c9db7d404ab80

js mayachi.com collected 2026-10-06 09:37:30 UTC 101,544 bytes, 2 lines download raw bytes

1(globalThis.webpackChunkPlesk||=[]).push([["components/pages/HomePage"],{1609(e,n,t){"use strict";t.r(n),t.d(n,{SORT_ASC:()=>l,SORT_DESC:()=>d,default:()=>h});var i=t(341),a=t(782),o=t.n(a),s=t(342);const r=t(95).Locale.getSection("components.list"),l="ASC",d="DESC",c="all",u={set(e,n){localStorage.setItem(e,JSON.stringify(n))},get(e){const n=localStorage.getItem(e);return JSON.parse(n)}},m=e=>`list-sort_${e}`,p=e=>`list-page_${e}`,f=({id:e,data:n,columns:t,itemsPerPage:a=25,itemsPerPageOptions:o=[10,25,100,c],sortColumn:d,sortDirection:f=l,searchField:h,locale:g={},emptyView:k,emptyFilteredView:v,toolbar:S,selection:x=[],onSelectionChange:b,searchBarInputProps:y,rowKey:j="key",useStorage:N=!0,...E})=>{const{sortColumn:T,sortDirection:w,setSortState:P}=((e,{sortColumn:n,sortDirection:t})=>{const[{sortColumn:a,sortDirection:o},s]=(0,i.useState)({sortColumn:u.get(m(e))?.sortColumn??n,sortDirection:u.get(m(e))?.sortDirection??t});return{sortColumn:a,sortDirection:o,setSortState:n=>{s(e=>({...e,...n})),u.set(m(e),{...u.get(m(e)),...n})}}})(e,{sortColumn:d??t.find(({sortable:e})=>e)?.key,sortDirection:f}),{page:F,itemsPerPage:_,searchPattern:R,setPageState:C}=((e,{itemsPerPage:n},t=!0)=>{const a=t?{page:u.get(p(e))?.page,itemsPerPage:u.get(p(e))?.itemsPerPage,searchPattern:u.get(p(e))?.searchPattern}:{},[{page:o,itemsPerPage:s,searchPattern:r},l]=(0,i.useState)({page:a.page??1,itemsPerPage:a.itemsPerPage??n,searchPattern:a.searchPattern??""});return{page:o,itemsPerPage:s,searchPattern:r,setPageState:n=>{l(e=>({...e,...n})),t&&u.set(p(e),{...u.get(p(e)),...n})}}})(e,{itemsPerPage:o.includes(a)?a:o[0]},N),D=(0,i.useMemo)(()=>R?v??(0,i.jsx)(s.ListEmptyView,{reason:"filtered","data-testid":"list-empty-view-filtered"}):k??(0,i.jsx)(s.ListEmptyView,{}),[R,k,v]),O=(0,i.useMemo)(()=>t.map(({sortDataField:e,...n})=>n),[t]),L=(0,i.useMemo)(()=>h&&R?n.filter(e=>(Array.isArray(h)?h:[h]).some(n=>e[n]&&String(e[n]).toLowerCase().includes(R.toLowerCase()))):n,[n,R,h]),I=(0,i.useMemo)(()=>{if(!T)return L;const e=t.find(({key:e})=>e===T)?.sortDataField??T,n=t.find(({key:e})=>e===T)?.sort??((n,t)=>n[e]<t[e]?-1:n[e]>t[e]?1:0);return[...L].sort((e,t)=>l===w?n(e,t):n(t,e))},[L,T,w,t]),q=(0,i.useMemo)(()=>{if(_===c)return I;const e=_*(F-1),n=e+_;return I.slice(e,n)},[F,I,_]),H=(0,i.useCallback)(e=>{C({searchPattern:e}),e!==R&&C({page:1})},[R]),B=(0,i.useCallback)(e=>{C({itemsPerPage:e});(e===c?1:Math.ceil(L.length/e))<F&&C({page:1})},[L.length,F]);return(0,i.useEffect)(()=>{if("function"==typeof b&&x.length){const e=L.map(e=>{return n=e,"function"==typeof(t=j)?t(n):n[t];var n,t}).filter(e=>x.includes(e));b(e)}},[L]),(0,i.jsx)(s.List,{pagination:(0,i.jsx)(s.Pagination,{current:F,total:_===c?1:Math.ceil(L.length/_),onSelect:e=>C({page:e}),itemsPerPage:_,itemsPerPageOptions:o,onItemsPerPageChange:B}),toolbar:(S||h)&&(0,i.jsxs)(s.Toolbar,{children:[S,h&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.ToolbarExpander,{}),(0,i.jsx)(s.ToolbarGroup,{title:"",children:(0,i.jsx)(s.SearchBar,{inputProps:{placeholder:r.lmsg("searchPlaceholder"),"data-testid":"list-searchbar",value:R,...y??{}},onTyping:H})})]})]}),totalRows:L.length,sortColumn:T,sortDirection:w,onSortChange:P,columns:O,data:q,filtered:!!R,locale:{totalRows:({totalRows:e})=>r.formatMessage("recordsTotal",{total:e}),...g},emptyView:D,onSelectionChange:b,selection:x,rowKey:j,...E})};f.propTypes={id:o().string.isRequired,data:o().array.isRequired,columns:o().array.isRequired,itemsPerPage:o().number,itemsPerPageOptions:o().array,sortColumn:o().string,sortDirection:o().string,searchField:o().oneOfType([o().string,o().arrayOf(o().string.isRequired)]),locale:o().object,emptyView:o().node,emptyFilteredView:o().node,toolbar:o().node,onSelectionChange:o().func,selection:o().array,rowKey:o().oneOfType([o().string,o().func]),searchBarInputProps:o().object,useStorage:o().bool};const h=f},2074(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>c});var i=t(782),a=t.n(i),o=t(342),s=t(1623),r=t(631),l=t(341);const d=({error:e})=>r.ServerError.is(e)&&400===e.statusCode?null:(0,l.jsx)(o.StatusMessage,{intent:"danger",children:(0,s.getGraphQlErrorMessage)(e)});d.propTypes={error:a().shape({message:a().string.isRequired,statusCode:a().number}).isRequired};const c=d},1647(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>r});var i=t(342),a=t(95),o=t(341);const s=a.Locale.getSection("components.buttons"),r=({id:e,content:n,icon:t="copy",className:a,tooltip:r=s.lmsg("copyToClipboard"),onCopy:l=()=>{},children:d})=>(0,o.jsx)(i.Button,{className:a,ghost:!0,icon:t,tooltip:r,tooltipAsLabel:!0,onClick:()=>{(0,i.copyToClipboard)(n),l()}
1,"data-action":"copy-to-clipboard"+(e?`-${e}`:""),children:d})},2073(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>s});var i=t(1255),a=t(1260),o=t(341);const s=({loading:e,fallback:n,children:t})=>(0,o.jsx)(a.default,{children:(0,o.jsx)(i.default,{classNames:"skeleton-wrapper",timeout:500,children:(0,o.jsx)("div",{children:e?n:t})},e.toString())})},1783(e,n,t){"use strict";t.r(n),t.d(n,{PERIOD_DAILY:()=>m,PERIOD_HOURLY:()=>u,PERIOD_MONTHLY:()=>f,PERIOD_WEEKLY:()=>p,PERIOD_YEARLY:()=>h,default:()=>k});var i=t(342),a=t(95),o=t(782),s=t.n(o),r=t(341);const l=a.Locale.getTranslate("components.forms.backup.schedule"),d=a.Locale.getSection("components.forms.backup.schedule"),c=a.Locale.getTranslate("smb.components.days-of-week"),u=3600,m=86400,p=604800,f=2592e3,h=31536e3,g=({showHourlyOption:e=!1,period:n,timezone:t=null,hidePeriod:a=!1,values:o,handleFieldChange:s})=>(0,r.jsx)(i.FormField,{label:(0,r.jsx)(l,{content:"backupPeriod"}),name:"schedule[period]",description:(0,r.jsx)(l,{content:"backupTimeDescription",params:{timezone:t??(0,r.jsx)(l,{content:"systemTimeZone"})}}),children:({isDisabled:t})=>(0,r.jsxs)(r.Fragment,{children:[!a&&(0,r.jsxs)(i.Select,{size:"sm",name:"schedule[backupPeriod]",id:"schedule-backupPeriod",value:n,onChange:e=>s("backupPeriod",e),disabled:t(),children:[(e||(0,i.getIn)(o,"backupPeriod")===u)&&(0,r.jsx)(i.SelectOption,{value:u,label:"hourly",children:(0,r.jsx)(l,{content:"hourly"})}),(0,r.jsx)(i.SelectOption,{value:m,label:"daily",children:(0,r.jsx)(l,{content:"daily"})}),(0,r.jsx)(i.SelectOption,{value:p,label:"weekly",children:(0,r.jsx)(l,{content:"weekly"})}),(0,r.jsx)(i.SelectOption,{value:f,label:"monthly",children:(0,r.jsx)(l,{content:"monthly"})})]}),n===p&&(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(l,{content:"on"})," ",(0,r.jsx)(i.Select,{size:"sm",name:"schedule[dayOfWeek]",id:"schedule-dayOfWeek",value:(0,i.getIn)(o,"dayOfWeek"),"aria-label":d.lmsg("weekDay"),onChange:e=>s("dayOfWeek",e),disabled:t(),children:[7,1,2,3,4,5,6].map(e=>(0,r.jsx)(i.SelectOption,{value:e,label:`${e}`,children:(0,r.jsx)(c,{content:Math.max((e+1)%8,1)})},e))})]}),n===f&&(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(l,{content:"on"})," ",(0,r.jsx)(i.Select,{size:"xs",name:"schedule[dayOfMonth]",id:"schedule-dayOfMonth",value:(0,i.getIn)(o,"dayOfMonth"),"aria-label":d.lmsg("monthDay"),onChange:e=>s("dayOfMonth",e),disabled:t(),children:Object.keys(new Array(31).fill(0)).map(e=>{const n=+e+1;return(0,r.jsx)(i.SelectOption,{value:n,label:`${n}`,children:1===n||31===n?(0,r.jsx)(l,{content:1===n?"first":"last"}):n},n)})})," ",(0,r.jsx)(l,{content:"dayOfMonth"})]}),n===u?(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(l,{content:"every"})," ",(0,r.jsx)(i.Select,{size:"xs",name:"schedule[hourPerDay]",id:"schedule-hourPerDay",value:(0,i.getIn)(o,"hourPerDay"),"aria-label":d.lmsg("hoursInterval"),onChange:e=>s("hourPerDay",e),disabled:t(),children:[1,2,3,4,6,8,12].map(e=>(0,r.jsx)(i.SelectOption,{value:e*u,label:`${e}`,children:e},e))})," ",d.formatMessage("hours",{period:(0,i.getIn)(o,"hourPerDay")/u})]}):(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(l,{content:"at"})," ",(0,r.jsx)(i.Select,{size:"xs",name:"schedule[hour]",id:"schedule-hour",value:(0,i.getIn)(o,"hour"),"aria-label":d.lmsg("backupHour"),onChange:e=>s("hour",e),disabled:t(),children:Object.keys(new Array(24).fill(0)).map(e=>{const n=+e;return(0,r.jsx)(i.SelectOption,{value:n,label:`${n}`,children:`${n<10?"0":""}${n}`},n)})})," : ",(0,r.jsx)(i.Select,{size:"xs",name:"schedule[minute]",id:"schedule-minute",value:(0,i.getIn)(o,"minute"),"aria-label":d.lmsg("backupMinute"),onChange:e=>s("minute",e),disabled:t(),children:[0,15,30,45].map(e=>(0,r.jsx)(i.SelectOption,{value:e,label:`${e}`,children:`${e<10?"0":""}${e}`},e))})]})]})});g.propTypes={showHourlyOption:s().bool,period:s().number.isRequired,timezone:s().string,hidePeriod:s().bool,values:s().object.isRequired,handleFieldChange:s().func.isRequired};const k=g},1790(e,n,t){"use strict";t.r(n),t.d(n,{TYPE_CONFIGURATION:()=>d,TYPE_DATABASE:()=>m,TYPE_FILES:()=>u,TYPE_MAIL:()=>c,default:()=>f});var i=t(342),a=t(95),o=t(782),s=t.n(o),r=t(341);const l=a.Locale.getTranslate("components.forms.backup.subform"),d="configuration",c="backup_content_mail",u="backup_content_file",m="backup_content_database",p=({isMailServiceSupported:e,values:n,handleFieldChange:t})=>{const a=(0,i.getIn)(n,"content[content_type]"),o=(e,n)=>t("content_type","content",n?[...a,e]:a.filter(n=>n!==e));
1return(0,r.jsxs)(i.FormField,{label:(0,r.jsx)(l,{content:"content"}),name:"backup[content][content_type]",children:[(0,r.jsx)(i.FormFieldCheckbox,{label:(0,r.jsx)(l,{content:"domainConfiguration"}),id:`backup-content-content_type-${d}`,disabled:!0,value:a.includes(d)}),e&&(0,r.jsx)(i.FormFieldCheckbox,{label:(0,r.jsx)(l,{content:"domainConfigurationMail"}),id:`backup-content-content_type-${c}`,value:a.includes(c),onChange:e=>o(c,e)}),(0,r.jsx)(i.FormFieldCheckbox,{label:(0,r.jsx)(l,{content:"domainConfigurationFile"}),id:`backup-content-content_type-${u}`,value:a.includes(u),onChange:e=>o(u,e)}),(0,r.jsx)(i.FormFieldCheckbox,{label:(0,r.jsx)(l,{content:"domainConfigurationDatabase"}),id:`backup-content-content_type-${m}`,value:a.includes(m),onChange:e=>o(m,e)})]})};p.propTypes={isMailServiceSupported:s().bool.isRequired,values:s().object.isRequired,handleFieldChange:s().func.isRequired};const f=p},1786(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>c});var i=t(342),a=t(95),o=t(782),s=t.n(o),r=t(341);const l=a.Locale.getTranslate("controllers.backup.schedule"),d=({showBuyLink:e,url:n,newWindow:t,onDetailsClick:a=null})=>e?(0,r.jsx)(i.Status,{icon:"dollar-filled",intent:"danger",children:(0,r.jsxs)(i.Text,{intent:"muted",fontSize:"sm",children:[(0,r.jsx)(l,{content:"cloudBackupRestrictionHintWithBuy"}),(0,r.jsx)("br",{}),a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Link,{"data-testid":"readMore",id:"promo-banner-read-more",onClick:()=>a(),children:(0,r.jsx)(l,{content:"showMoreButton"})}),"  "]}),(0,r.jsx)("a",{href:n,target:t?"_blank":null,rel:"noopener noreferrer",children:(0,r.jsx)(l,{content:"cloudBackupRestrictionBuyButton"})})]})}):(0,r.jsx)(i.Status,{intent:"warning",children:(0,r.jsxs)(i.Text,{intent:"muted",fontSize:"sm",children:[(0,r.jsx)(l,{content:"cloudBackupRestrictionHint"}),a&&(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(i.Link,{"data-testid":"readMore",onClick:a,id:"promo-banner-read-more",children:(0,r.jsx)(l,{content:"showMoreButton"})})]})]})});d.propTypes={showBuyLink:s().bool.isRequired,url:s().string.isRequired,newWindow:s().bool.isRequired,onDetailsClick:s().func};const c=d},1791(e,n,t){"use strict";t.r(n),t.d(n,{TYPE_BOTH:()=>p,TYPE_LOCAL:()=>u,default:()=>h});var i=t(341),a=t(342),o=t(1786),s=t(95),r=t(782),l=t.n(r);const d=s.Locale.getTranslate("components.forms.backup.subform"),c=s.Locale.getSection("components.forms.backup.subform"),u="local",m="ext",p="local-and-ext",f=({settings:{localEnabled:e,ftpEnabled:n,ftpConfigured:t,ftpActive:r,ftpServer:l,ftpBaseDir:f},showCloudStorages:h,cloudStorages:g,isAdmin:k,dumpsRepoDir:v,urls:{ftpSettings:S,remoteStorages:x},promo:b,showPromo:y,setShowPromo:j,values:N,handleFieldChange:E})=>{const T=e,w=n&&t&&r,P=n&&h,F=(0,a.getIn)(N,"content[repository]"),_=(0,a.getIn)(N,"content[remote_storage]"),R=(0,a.getIn)(N,"content[split_backup]"),C=(0,i.useMemo)(()=>{const e=f||"";return`${l||""}/${e.startsWith("/")?e.substring(1):e}`},[l,f]),D=(0,i.useMemo)(()=>[T?{repo:u,value:u,label:c.lmsg(k?"localRepositoryPath":"localRepository",{path:v})}:null,w?{repo:m,value:"ftp",label:(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:c.lmsg("ftpRepository",{uri:C,link:S})}}),name:c.lmsg("ftpRepositoryText",{uri:C})}:null,...P?g.map(({id:e,description:n})=>({repo:m,value:e,label:n,name:n})):[]].filter(Boolean),[T,w,P,k,C,S,v,g]),O=(0,i.useMemo)(()=>D.filter(({value:e})=>e!==u),[D]);return(0,i.useEffect)(()=>{j&&j(b&&"ftp"!==_&&F!==u)},[F,_,b,j]),(0,i.useEffect)(()=>{y&&s.UAT.dispatchAction("SHOWPROMO",{promo:"backup_scheduler",destination:_})},[y,_]),0===D.length?null:1===D.length?(0,i.jsx)(a.FormField,{label:(0,i.jsx)(d,{content:"repository"}),name:"backup[content][repository]",description:T&&n?(0,i.jsx)(d,{content:h?"configureRemoteDesc":"configureFtpDesc",params:{link:(0,i.jsx)("a",{href:h?x:S,children:(0,i.jsx)(d,{content:h?"configureRemoteLink":"configureFtpLink"})})}}):null,children:D[0].label}):(0,i.jsxs)(i.Fragment,{children:[T&&(0,i.jsx)(a.FormFieldRadioButtons,{label:(0,i.jsx)(d,{content:"repository"}),name:"backup[content][repository]",options:2===D.length?[...D.map(({repo:e,label:n})=>({value:e,label:n,description:F===e&&y&&(0,i.jsx)(o.default,{...b})})),{value:p,label:c.lmsg("localAndSpecialRepositoryBackup",{name:D[1].name}),description:F===p&&y&&(0,i.jsx)(o.default,{...b})}]:[D[0],{value:m,label:c.lmsg("remoteRepositoryOption")},{value:p,label:c.lmsg("localAndSpecialRepositoryBackup",{name:c.lmsg("remoteRepository")})}]}),O.length>1&&(F!==u||!T)&&(0,i.jsx)(a.FormFieldSelect,{label:(0,i.jsx)(d,{content:"remoteRepositoryText"}),name:"backup[content][remote_storage]",description:y&&(0,i.jsx)(o.default,{...b}),children:O.map(({value:e,name:n})=>(0,i.jsx)(a.SelectOption,{value:e,label:`${e}`,children:n},e))}),(F!==u||!T)&&(0,i.jsx)(a.FormField,{label:null,name:"backup[content][split_backup_size]",children:({isDisabled:e})=>(0,i.jsxs)("span",{style:{display:"flex",flexGrow:"1",gap:"4px",alignItems:"center"},children:[(0,i.jsx)(a.Checkbox,{id:"split_backup",checked:R,onChange:e=>E("split_backup","content",e),disabled:e(),children:(0,i.jsx)(d,{content:"splitSize"})}),(0,i.jsx)(a.Input,{id:"backup-content-split_backup_size",value:(0,a.getIn)(N,"content[split_backup_size]"),onChange:e=>E("split_backup_size","content",e.target.value),disabled:!R||e(),size:"sm"})]})})]})};f.propTypes={settings:l().shape({localEnabled:l().bool.isRequired,ftpEnabled:l().bool.isRequired,ftpConfigured:l().bool.isRequired,ftpActive:l().bool.isRequired,ftpServer:l().string,ftpBaseDir:l().string}).isRequired,showCloudStorages:l().bool.isRequired,cloudStorages:l().array.isRequired,isAdmin:l().bool.isRequired,dumpsRepoDir:l().string.isRequired,urls:l().shape({ftpSettings:l().string.isRequired,remoteStorages:l().string.isRequired}).isRequired,promo:l().object,showPromo:l().bool.isRequired,setShowPromo:l().func,values:l().object.isRequired,handleFieldChange:l().func.isRequired};const h=f},1797(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>N,renderSchedule:()=>x});var i=t(782),a=t(342),o=t(95),s=t(1609),r=t(341),l=t(1783),d=t(1790),c=t(1791),u=t(718);const m=o.Locale.getTranslate("components.lists.backup.schedule"),p=o.Locale.getSection("components.lists.backup.schedule"),f=o.Locale.getSection("smb.components.days-of-week"),h=o.Locale.getSection("components.forms.backup.subform"),g=e=>`${e<10?"0":""}${e}`,k=e=>f.lmsg(Math.max((e+1)%8,1)),v=e=>{switch(e){case 1:return p.lmsg("dayFirst");case 31:return p.lmsg("dayLast");default:return p.formatMessage("day",{day:e})}},S=({type:e})=>{switch(e){case l.PERIOD_HOURLY:return p.lmsg("periodHourly");case l.PERIOD_DAILY:return p.lmsg("periodDaily");case l.PERIOD_WEEKLY:return p.lmsg("periodWeekly");case l.PERIOD_MONTHLY:return p.lmsg("periodMonthly");default:return p.lmsg("periodCustom")}},x=({type:e,period:n,time:{hours:t,minutes:i}={},day:a})=>
1{switch(e){case l.PERIOD_HOURLY:return p.formatMessage("periodHourlySchedule",{period:Math.max(Math.round(n/3600),1)});case l.PERIOD_DAILY:return p.lmsg("periodDailySchedule",{hours:g(t),minutes:g(i)});case l.PERIOD_WEEKLY:return p.lmsg("periodWeeklySchedule",{hours:g(t),minutes:g(i),day:k(a)});case l.PERIOD_MONTHLY:return p.lmsg("periodMonthlySchedule",{hours:g(t),minutes:g(i),day:v(a)});default:return""}},b=({content:e})=>e[d.TYPE_MAIL]&&e[d.TYPE_FILES]&&e[d.TYPE_DATABASE]?h.lmsg("backupAll"):e[d.TYPE_MAIL]&&e[d.TYPE_FILES]?h.lmsg("backupMailFile"):e[d.TYPE_MAIL]&&e[d.TYPE_DATABASE]?h.lmsg("backupMailDatabase"):e[d.TYPE_FILES]&&e[d.TYPE_DATABASE]?h.lmsg("backupVhost"):e[d.TYPE_MAIL]?h.lmsg("backupMail"):e[d.TYPE_FILES]?h.lmsg("backupFile"):e[d.TYPE_DATABASE]?h.lmsg("backupDatabase"):h.lmsg("backupConfiguration"),y=({repository:e,remoteStorage:n})=>{switch(e){case c.TYPE_LOCAL:return p.lmsg("storageLocal");case c.TYPE_BOTH:return p.lmsg("storageBoth",{remoteStorage:n});default:return n}},j=({data:e,onEdit:n,deactivateUrl:t})=>{const[i,l]=(0,r.useState)([]),[d,c]=(0,r.useState)(e);(0,r.useEffect)(()=>c(e),[e]);const f=(0,r.useMemo)(()=>(d||[]).sort((e,n)=>e.period<n.period),[d]),h=async e=>{try{l(n=>[...n,e]);const{status:n,message:i}=await o.api.post(t,{period:e});"error"===n?(0,u.addToast)({intent:"danger",message:i}):(c(n=>n.map(n=>({...n,status:n.type!==e&&n.status}))),(0,u.addToast)({intent:"success",message:(0,r.jsx)(m,{content:"deactivateSuccess"})}))}finally{l(n=>n.filter(n=>n!==e))}};return(0,r.jsx)(s.default,{id:"backup-schedule-list",rowKey:"type",columns:[{key:"status",title:(0,r.jsx)(m,{content:"columnStatus"}),width:"1%",render:e=>(0,r.jsx)(a.Switch,{id:`toggle-${e.type}`,"aria-label":p.lmsg("toggleSchedule",{type:S(e)}),"data-status":e.status,checked:e.status,onChange:t=>(({type:e},t)=>{t?n(e,!0):h(e)})(e,t),loading:i.includes(e.type)})},{key:"schedule",title:(0,r.jsx)(m,{content:"columnSchedule"}),type:"title",render:e=>(0,r.jsxs)(a.Link,{id:`edit-${e.type}`,onClick:()=>n(e.type),children:[S(e),e.status&&(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(a.Text,{intent:"muted",children:`(${x(e)})`})]})]})},{key:"content",title:(0,r.jsx)(m,{content:"columnContent"}),render:b},{key:"storage",title:(0,r.jsx)(m,{content:"columnStorage"}),render:y}],data:f})};j.propTypes={data:i.PropTypes.array.isRequired,onEdit:i.PropTypes.func.isRequired,deactivateUrl:i.PropTypes.string.isRequired};const N=j},3195(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>h});var i=t(95),a=t(785),o=t(342),s=t(2073),r=t(2074),l=t(797),d=t(3196),c=t(3180),u=t(3197),m=t.n(u),p=t(341);const f=i.Locale.getTranslate("components.pages.Home.Backup"),h=(0,c.default)(()=>{const{data:e,loading:n,error:t}=(0,a.useQuery)(m(),{context:{noBatch:!0}});return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(o.Paragraph,{component:"div",children:(0,p.jsxs)(s.default,{loading:n,fallback:(0,p.jsx)(o.SkeletonText,{lines:2}),children:[t&&(0,p.jsx)(r.default,{error:t}),e&&(0,p.jsx)(d.default,{data:e})]})}),(0,p.jsxs)("div",{className:"home-page-panel-buttons",children:[(0,p.jsx)(o.Button,{id:"createBackup",intent:"primary",component:l.default,to:"/admin/backup/backup",children:(0,p.jsx)(f,{content:"create"})}),(0,p.jsx)(o.Button,{id:"scheduleBackup",component:l.default,to:"/admin/backup/schedule",children:(0,p.jsx)(f,{content:"schedule"})})]})]})})},3196(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>g});var i=t(341),a=t(782),o=t(95),s=t(797),r=t(1398),l=t(342),d=t(1797);const c=o.Locale.getTranslate("components.pages.Home.Backup"),u={PERIOD_HOURLY:3600,PERIOD_EVERY_2_HOURS:7200,PERIOD_EVERY_3_HOURS:10800,PERIOD_EVERY_4_HOURS:14400,PERIOD_EVERY_6_HOURS:21600,PERIOD_EVERY_8_HOURS:28800,PERIOD_EVERY_12_HOURS:43200,PERIOD_DAILY:86400,PERIOD_WEEKLY:604800,PERIOD_MONTHLY:2592e3,PERIOD_YEARLY:31536e3},m=({id:e})=>{const[n,t,i]=e.split(":");if("task"===n)return(0,r.buildUrl)("/admin/backup/task-details",{taskId:t});const a={type:n,dumpId:t};return i&&(a.storageName=i),(0,r.buildUrl)("/admin/backup/restore",a)},p=({status:e})=>["off","task-failed"].includes(e),f=({minutes:e,hours:n,period:t,type:a,day:o})=>(0,i.jsx)(c,{content:a.toLowerCase(),params:{schedule:(0,d.renderSchedule)({time:{minutes:e,hours:n},period:u[t],type:u[a],day:o})}}),h=({data:{viewer:{client:{backup:{schedules:e,dumps:{nodes:n}}}}}})=>{const t=(0,i.useMemo)(()=>n[0],[n]),a=(0,i.useMemo)(()=>e.filter(({isEnabled:e})=>e).sort((e,n)=>e.period<n.period),[e]);return(0,i.jsxs)(i.Fragment,{children:[t&&(0,i.jsxs)("div",{style:{marginBottom:"5px"},children:[p(t)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.Tooltip,{title:(0,i.jsx)(c,{content:`${t.status}Status`}),children:(0,i.jsx)(l.Icon,{name:"exclamation-mark-circle-filled",intent:"danger"})})," "]}),(0,i.jsx)(s.default,{id:"toLastBackup",to:m(t),children:t.dateString})]}),(0,i.jsxs)(l.Text,{intent:t?"muted":void 0,fontSize:t?"sm":"md",component:"div",children:[0===a.length&&(0,i.jsx)(c,{content:"noSchedule"}),1===a.length&&(0,i.jsx)(c,{content:"activeSchedule",params:{schedule:f(a[
10])}}),a.length>1&&(0,i.jsx)(c,{content:"activeSchedules",params:{schedules:(0,i.jsx)("ul",{children:a.map(e=>(0,i.jsx)("li",{children:f(e)},e.type))})}})]})]})};h.propTypes={data:a.PropTypes.object.isRequired};const g=h},3194(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(3195)},3232(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>v});var i=t(782),a=t(95),o=t(785),s=t(342),r=t(2073),l=t(2074),d=t(797),c=t(3233),u=t(3184),m=t(3180),p=t(3235),f=t.n(p),h=t(341);const g=a.Locale.getTranslate("components.pages.Home.ChangeLog"),k=({server:{productUpdates:{changeLogUrl:e}}})=>{const{data:n,loading:t,error:i}=(0,o.useQuery)(f(),{context:{noBatch:!0}});return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(r.default,{loading:t,fallback:(0,h.jsx)(s.SkeletonText,{lines:9}),children:[i&&(0,h.jsx)(l.default,{error:i}),n&&(0,h.jsx)(c.default,{data:n})]}),(0,h.jsx)(u.default,{children:(0,h.jsx)(s.Button,{ghost:!0,id:"toChangeLog",component:d.default,to:e,target:"_blank",icon:{name:"arrow-diagonal-out",style:{order:"1",marginInline:"4px 0"}},children:(0,h.jsx)(g,{content:"seeHistory"})})})]})};k.propTypes={server:i.PropTypes.object.isRequired};const v=(0,m.default)(k)},3233(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>c});var i=t(341),a=t(782),o=t(342),s=t(852),r=t(797);const l=({title:e,date:n})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.Text,{intent:"muted",component:"div",children:(0,s.formatDate)(n)}),(0,i.jsx)(o.Text,{fontSize:"md",component:"div",children:e})]});l.propTypes={title:a.PropTypes.string.isRequired,date:a.PropTypes.string.isRequired};const d=({data:{server:{productUpdates:{changeLogFeed:e}}}})=>{const n=(0,i.useMemo)(()=>{const n=e.find(({product:e,isPatch:n})=>"plesk"===e&&!n);return[n?{...n,isPrimary:!0}:null,...e.filter(({title:e})=>e!==n?.title)].filter(Boolean).slice(0,4)},[e]);return(0,i.jsx)("div",{className:"home-page-item-list-block",children:(0,i.jsx)(o.ItemList,{className:"home-page-item-list-block__list",children:n.map(({url:e,product:n,version:a,title:s,date:d,isPrimary:c})=>(0,i.jsx)(o.Item,{component:r.default,to:e,target:"_blank","data-type":`change-log-${n}-${a}`,hoverable:!c,className:c?"home-page-item-list-block__item--primary":null,children:c?(0,i.jsx)(o.Alert,{intent:"info",children:(0,i.jsx)(o.Media,{image:(0,i.jsx)(o.Icon,{style:{padding:"8px",borderRadius:"6px",backgroundColor:"#fff"},src:t(3234),size:"24"}),align:"center",imageAlign:"start",children:(0,i.jsx)(l,{title:s,date:d})})}):(0,i.jsx)(l,{title:s,date:d})},s))})})};d.propTypes={data:a.PropTypes.object.isRequired};const c=d},3231(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(3232)},3237(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>h});var i=t(95),a=t(785),o=t(3180),s=t(342),r=t(3184),l=t(797),d=t(2073),c=t(3238),u=t.n(c),m=t(2074),p=t(341);const f=i.Locale.getTranslate("components.pages.Home.CustomButtons"),h=(0,o.default)(()=>{const{data:e,loading:n,error:t}=(0,a.useQuery)(u(),{context:{noBatch:!0}});return(0,p.jsxs)(d.default,{loading:n,fallback:(0,p.jsx)(s.Media,{image:(0,p.jsx)(s.Skeleton,{width:32,height:32}),children:(0,p.jsx)(s.SkeletonText,{lines:2})}),children:[t?(0,p.jsx)(m.default,{error:t}):e?.viewer.home.customButtons.length?(0,p.jsx)("div",{className:"home-page-item-list-block",children:(0,p.jsx)(s.ItemList,{className:"home-page-item-list-block__list",children:e?.viewer.home.customButtons.map(({id:e,title:n,description:t,image:a,href:o,target:r})=>(0,p.jsx)(s.Item,{icon:(0,p.jsx)(s.Icon,{src:a}),title:n,description:t,"data-action":`custom-button-${e}`,onClick:()=>((e,n)=>{"_blank"===n?window.open(e,"_blank"):(0,i.redirect)(e)})(o,r)},e))})}):(0,p.jsx)(f,{content:"noButtons"}),e?.viewer.permissions.manageServerCustomButtons&&(0,p.jsx)(r.default,{children:(0,p.jsx)(s.Button,{ghost:!0,id:"addCustomButtons",icon:"plus",component:l.default,to:"/admin/custom-buttons/create",children:(0,p.jsx)(f,{content:"add"})})})]})})},3236(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(3237)},3250(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>h});var i=t(342),a=t(785),o=t(95),s=t(797),r=t(3251),l=t.n(r),d=t(3252),c=t.n(d),u=t(1455),m=t.
1n(u),p=t(341);const f=o.Locale.getTranslate("components.pages.Home.EmptyView"),h=()=>{const e=(0,a.useQuery)(m()),n=e.data?.viewer?.home?.locked;return(0,p.jsx)(i.ListEmptyView,{title:(0,p.jsx)(f,{content:n?"titleLocked":"title"}),image:(0,p.jsx)("img",{src:n?c():l(),height:"320",alt:"emptyView"}),actions:!n&&(0,p.jsx)(i.Button,{id:"emptyViewCustomize",intent:"primary",icon:"gear",component:s.default,to:"/cp/home/customize",children:(0,p.jsx)(f,{content:"customize"})})})}},3209(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>p});var i=t(782),a=t(785),o=t(342),s=t(2073),r=t(2074),l=t(3210),d=t(3211),c=t.n(d),u=t(341);const m=({name:e,skeletonSize:n})=>{const{data:t,loading:i,error:d}=(0,a.useQuery)(c(),{context:{noBatch:!0},variables:{name:e}});return(0,u.jsxs)(s.default,{loading:i,fallback:(0,u.jsx)(o.SkeletonText,{lines:n}),children:[d&&(0,u.jsx)(r.default,{error:d}),t&&(0,u.jsx)(l.default,{name:e,...t.viewer.home.extensionBlockContent})]})};m.propTypes={name:i.PropTypes.string.isRequired,skeletonSize:i.PropTypes.number.isRequired};const p=m},3210(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>l});var i=t(782),a=t(796),o=t(3184),s=t(341);const r=({name:e,content:n,footer:t})=>(0,s.jsxs)(s.Fragment,{children:[n&&(0,s.jsx)(a.default,{children:n},`${e}-content`),t&&(0,s.jsx)(o.default,{children:(0,s.jsx)(a.default,{children:t},`${e}-footer`)})]});r.propTypes={name:i.PropTypes.string.isRequired,content:i.PropTypes.string,footer:i.PropTypes.string};const l=r},3208(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>S});var i=t(782),a=t(95),o=t(796),s=t(3180),r=t(3183),l=t(3209),d=t(3210),c=t(1451),u=t.n(c),m=t(785),p=t(341);const f=a.Locale.getTranslate("components.pages.Home.Extension"),h=(e,{viewer:{home:{extensions:n=[]}={}}={}}={})=>n.find(n=>n.name===e)??{},g=({name:e})=>{const n=(0,m.useQuery)(u()),{title:t}=h(e,n?.data);return t?(0,p.jsx)(o.default,{children:t},`${e}-title`):(0,p.jsx)(f,{content:"title"})};g.propTypes={name:i.PropTypes.string.isRequired};const k=({name:e})=>{const n=(0,m.useQuery)(u()),{icon:t}=h(e,n?.data);return(0,p.jsx)(r.default,{icon:t,className:"home-page-dashboard__panel-heading-icon"})};k.propTypes={name:i.PropTypes.string.isRequired};const v=({name:e})=>{const n=(0,m.useQuery)(u()),{async:t,content:i,footer:a,skeletonSize:o}=h(e,n?.data);return t?(0,p.jsx)(l.default,{name:e,skeletonSize:o}):(0,p.jsx)(d.default,{name:e,content:i,footer:a})};v.propTypes={name:i.PropTypes.string.isRequired};const S=(0,s.default)(v,{title:(e,n)=>(0,p.jsx)(g,{name:n}),icon:(e,n)=>(0,p.jsx)(k,{name:n})})},3207(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(3208)},3168(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>O});var i=t(341),a=t(782),o=t(3169),s=t(1446),r=t(3177),l=t(3185),d=t(3194),c=t(3198),u=t(3201),m=t(3203),p=t(3207),f=t(3212),h=t(3217),g=t(3231),k=t(3236),v=t(3239),S=t(3246),x=(t(3249),t(811)),b=t(785),y=t(772),j=t(3250),N=t(1454),E=t(1455),T=t.n(E),w=t(3224),P=t.n(w),F=t(3253),_=t.n(F);const R={[s.SERVER_INFO]:r.default,[s.IP_BAN]:m.default,[s.OVERUSED_SUBSCRIPTIONS]:c.default,[s.UPDATES]:l.default,[s.BACKUP]:d.default,[s.MY_SUBSCRIPTIONS]:u.default,[s.MAIL_QUEUE]:f.default,[s.PROMO]:h.default,[s.CHANGE_LOG]:g.default,[s.CUSTOM_BUTTONS]:k.default,[s.PHP_STATUS]:S.default},C=({index:e,panels:n,data:t,systemMessages:a})=>(0,i.jsx)(o.Droppable,{droppableId:`${e}`,children:({innerRef:e,droppableProps:o,placeholder:r}={})=>(0,i.jsxs)("div",{className:"home-page-dashboard__section",ref:e,...o,children:[a,n.map((e,n)=>{const a=e.startsWith("ext:"),o=a?p.default:R[e];return o&&(0,i.jsx)(o,{data:t[a?s.EXTENSIONS:e],name:e,index:n},e)}),r]})});C.propTypes={index:a.PropTypes.number.isRequired,panels:a.PropTypes.array.isRequired,data:a.PropTypes.object.isRequired,systemMessages:a.PropTypes.node};const D=({data:e})=>{const n=(0,b.useQuery)(T()),[t,a]=(0,i.useState)([]),s=n.data?.viewer?.home?.systemMessages??[];(0,i.useEffect)(()=>{a(n.data?.viewer?.home?.layout??[])},[n]);const[r]=(0,x.useMutation)(_(),{refetchQueries:[{query:P()}]});return(0,i.jsxs)(i.Fragment,{children:[(0,N.default)(n)?(0,i.jsx)(j.default,{}):(0,i.jsx)(o.DragDropContext,{onDragEnd:({draggableId:e,source:n,destination:t})=>{t&&(n.droppableId===t.droppableId&&n.index===t.index||a(i=>{const a=i.map((i,a)=>{const o=[...i];return a===+n.droppableId&&o.splice(n.index,1),a===+t.droppableId&&o.splice(t.index,0,e),o}
1);return r({variables:{layout:a}}),a}))},children:(0,i.jsx)("div",{className:"home-page",children:(0,i.jsx)("div",{className:"home-page-dashboard",children:t.map((n,t)=>(0,i.jsx)(C,{index:t,panels:n,data:e,systemMessages:0===t&&!!s.length&&(0,i.jsx)(v.default,{systemMessages:s})},t))})})}),(0,i.jsx)(y.Outlet,{})]})};D.propTypes={data:a.PropTypes.object.isRequired};const O=D},3204(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>g});var i=t(95),a=t(785),o=t(3184),s=t(3205),r=t(342),l=t(2073),d=t(797),c=t(2074),u=t(3180),m=t(3206),p=t.n(m),f=t(341);const h=i.Locale.getTranslate("components.pages.Home.IpBan"),g=(0,u.default)(()=>{const{data:e,loading:n,error:t}=(0,a.useQuery)(p(),{context:{noBatch:!0}});return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(l.default,{loading:n,fallback:(0,f.jsx)(r.SkeletonText,{lines:2}),children:[t&&(0,f.jsx)(c.default,{error:t}),e&&(0,f.jsx)(s.default,{data:e})]}),(0,f.jsx)(o.default,{children:(0,f.jsx)(r.Button,{ghost:!0,id:"toIpBan",component:d.default,to:"/admin/server-protection",children:(0,f.jsx)(h,{content:"more"})})})]})})},3205(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>d});var i=t(782),a=t(95),o=t(3188),s=t(341);const r=a.Locale.getTranslate("components.pages.Home.IpBan"),l=({data:{server:{ipBan:{bannedIpsCount:e,trustedIpsCount:n}}}})=>(0,s.jsxs)("ul",{className:"home-page-panel-list home-page-panel-list--colums",children:[(0,s.jsxs)("li",{className:"home-page-panel-list__item",children:[(0,s.jsx)("span",{className:"home-page-panel-list__item-name",children:(0,s.jsx)(r,{content:"banned"})}),(0,s.jsx)(o.default,{id:"ipBanBanned",className:"home-page-panel-list__item-value",to:"/admin/server-protection/ban-list",children:e})]}),(0,s.jsxs)("li",{className:"home-page-panel-list__item",children:[(0,s.jsx)("span",{className:"home-page-panel-list__item-name",children:(0,s.jsx)(r,{content:"trusted"})}),(0,s.jsx)(o.default,{id:"ipBanTrusted",className:"home-page-panel-list__item-value",to:"/admin/server-protection/trusted-list",children:n})]})]});l.propTypes={data:i.PropTypes.object.isRequired};const d=l},3203(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(3204)},3213(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>b});var i=t(95),a=t(3180),o=t(342),s=t(3184),r=t(797),l=t(2073),d=t(811),c=t(785),u=t(628),m=t(3214),p=t(2074),f=t(718),h=t(3215),g=t.n(h),k=t(3216),v=t.n(k),S=t(341);const x=i.Locale.getTranslate("components.pages.Home.MailQueue"),b=(0,a.default)(()=>{const{data:e,loading:n,error:t}=(0,c.useQuery)(g(),{variables:{extLogBrowser:btoa("Extension:log-browser"),extRepairKit:btoa("Extension:repair-kit")},context:{noBatch:!0}}),[i,a]=(0,S.useState)(!1),[h,{loading:k}]=(0,d.useMutation)(v(),{onCompleted:()=>{(0,f.addToast)({intent:"success",message:(0,S.jsx)(x,{content:"queueCleaned"})})},onError:e=>{(u.CombinedGraphQLErrors.is(e)?e.errors:[]).forEach(({extensions:e,message:n})=>{(0,f.addToast)({intent:"danger",message:e?.debugMessage||n})})}}),b=e?.viewer.permissions.manageServerTroubleshootingEnable&&e?.extLog.isActive,y=e?.viewer.permissions.manageServerTroubleshootingEnable&&e?.extRepair.isActive;return(0,S.jsxs)("div",{className:"home-page-mail-queue",children:[(0,S.jsxs)(l.default,{loading:n,fallback:(0,S.jsx)(o.SkeletonText,{lines:3}),children:[t&&(0,S.jsx)(p.default,{error:t}),e?.serverMail?.queue&&(0,S.jsx)(m.default,{data:e})]}),(0,S.jsx)(l.default,{loading:n,fallback:(0,S.jsx)(o.SkeletonText,{lines:3}),children:(0,S.jsxs)("div",{className:"home-page-panel-block home-page-mail-queue__actions",children:[(0,S.jsxs)(o.Popover,{target:(0,S.jsx)(o.Button,{ghost:!0,id:"cleanMailQueue",icon:"clean",state:k?"loading":null,onClick:()=>a(!0),children:(0,S.jsx)(x,{content:"clean"})}),placement:"top-right",visible:i,onClose:()=>a(!1),children:[(0,S.jsx)(o.Paragraph,{children:(0,S.jsx)(x,{content:"cleanConfirmQuestion"})}),(0,S.jsx)(o.Button,{id:"cleanMailQueueYes",intent:"danger",onClick:()=>{a(!1),h()},children:(0,S.jsx)(x,{content:"cleanConfirmYes"})}),"  ",(0,S.jsx)(o.Button,{id:"cleanMailQueueNo",onClick:()=>a(!1),children:(0,S.jsx)(x,{content:"cleanConfirmNo"})})]}),b&&(0,S.jsx)(o.Button,{ghost:!0,id:"checkLogs",icon:"list",component:r.default,to:"/modules/log-browser/?tab=mail",children:(0,S.jsx)(x,{content:"checkLogs"})}),y&&(0,S.jsx)(o.Button,{ghost:!0,id:"repair",icon:"tools",component:r.default,to:"/modules/repair-kit/index.php/index",children:(0,S.jsx)(x,{content:"repair"})})]})}),(0,S.jsx)(s.default,{children:(0,S.jsx)(o.Button,{ghost:!0,id:"toMailQueue",component:r.default,to:"/admin/mail-sett
1ings/queue",children:(0,S.jsx)(x,{content:"more"})})})]})})},3214(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>d});var i=t(782),a=t(95),o=t(342),s=t(341);const r=a.Locale.getTranslate("components.pages.Home.MailQueue"),l=({data:{serverMail:{queue:{total:e,deferred:n,hold:t}}}})=>(0,s.jsxs)("ul",{className:"home-page-panel-list home-page-panel-list--colums",children:[(0,s.jsxs)("li",{className:"home-page-panel-list__item",children:[(0,s.jsx)("span",{className:"home-page-panel-list__item-name",children:(0,s.jsx)(r,{content:"total"})}),(0,s.jsx)(o.Label,{view:"light",size:"lg",className:"home-page-panel-list__item-value",children:e})]}),(0,s.jsxs)("li",{className:"home-page-panel-list__item",children:[(0,s.jsx)("span",{className:"home-page-panel-list__item-name",children:(0,s.jsx)(r,{content:"deferred"})}),(0,s.jsx)(o.Label,{view:"light",size:"lg",className:"home-page-panel-list__item-value",children:n})]}),(0,s.jsxs)("li",{className:"home-page-panel-list__item",children:[(0,s.jsx)("span",{className:"home-page-panel-list__item-name",children:(0,s.jsx)(r,{content:"held"})}),(0,s.jsx)(o.Label,{view:"light",size:"lg",className:"home-page-panel-list__item-value",children:t})]})]});l.propTypes={data:i.PropTypes.object.isRequired};const d=l},3212(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(3213)},3202(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>f});var i=t(782),a=t(95),o=t(3184),s=t(797),r=t(342),l=t(897),d=t(2993),c=t(3180),u=t(341);const m=a.Locale.getTranslate("components.pages.Home.Subscriptions"),p=({viewer:{permissions:{createDomains:e},client:{subscriptions:{nodes:n}}}})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("ul",{className:"home-page-panel-list",children:n.length?n.map(({status:e,mainDomain:{id:n,name:t}})=>(0,u.jsxs)("li",{className:"home-page-panel-list__item",children:["0"!==e&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(r.Tooltip,{title:(0,d.getSubscriptionStatusReason)(e),children:(0,u.jsx)(r.Icon,{name:"exclamation-mark-circle-filled",intent:"danger"})})," "]}),(0,u.jsx)(s.default,{to:`/admin/subscription/overview/id/${(0,l.getId)(n)}`,children:t})]},n)):(0,u.jsx)("li",{className:"home-page-panel-list__item",children:(0,u.jsx)(m,{content:"empty",params:{link:(0,u.jsx)(r.Link,{href:"/help.php?context=home.admin.mywebspaces",target:"_blank",rel:"noopener noreferrer",children:(0,u.jsx)(m,{content:"help"})})}})})}),e&&(0,u.jsx)(o.default,{children:(0,u.jsx)(r.Button,{ghost:!0,id:"addSubscription",icon:"plus",component:s.default,to:"/admin/subscription/create?context=subscriptions",children:(0,u.jsx)(m,{content:"add"})})})]});p.propTypes={viewer:i.PropTypes.object.isRequired};const f=(0,c.default)(p)},3201(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(3202)},3199(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>m});var i=t(782),a=t.n(i),o=t(95),s=t(3200),r=t(342),l=t(3180),d=t(341);const c=o.Locale.getTranslate("components.pages.Home.OverusedSubscriptions"),u=({viewer:{client:{subscriptions:{pageInfo:{total:e},nodes:n}}}})=>0===e?(0,d.jsx)(r.Status,{intent:"success",children:(0,d.jsx)(c,{content:"empty"})}):(0,d.jsx)(s.default,{subscriptions:n,total:e});u.propTypes={viewer:a().object.isRequired};const m=(0,l.default)(u)},3200(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>f});var i=t(782),a=t.n(i),o=t(95),s=t(3184),r=t(797),l=t(897),d=t(2993),c=t(342),u=t(341);const m=o.Locale.getTranslate("components.pages.Home.OverusedSubscriptions"),p=({subscriptions:e,total:n})=>(0,u.jsxs)(u.Fragment,{children:[e.map(({status:e,mainDomain:{id:n,name:t},limits:{all:i}})=>(0,u.jsxs)("div",{className:"home-page-panel-block",children:["0"!==e&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(c.Tooltip,{title:(0,d.getSubscriptionStatusReason)(e),children:(0,u.jsx)(c.Icon,{name:"exclamation-mark-circle-filled",intent:"danger"})})," "]}),(0,u.jsx)(r.default,{to:`/admin/subscription/overview/id/${(0,l.getId)(n)}`,children:t}),(0,u.jsx)(c.Cuttable,{style:{marginTop:"5px"},children:i.map(({name:e,...n})=>(0,u.jsxs)(c.Text,{intent:"muted",component:"div",children:[(0,u.jsx)(c.Text,{bold:!0,children:`${e}: `}),(0,u.jsx)(m,{content:"usage",params:n})]},e))})]},n)),(0,u.jsx)(s.default,{children:(0,u.jsx)(c.Button,{ghost:!0,component:r.default,id:"toOverusedSubscriptions",to:"/admin/subscription/list?context=subscriptions&force-show-search=true&searchFilter[resourceUsage][searchText]=true",children:(0,u.jsx)(m,{content:n>e.length?"more":"list",params:{total:n}})})})]});p.propTypes={subscriptions:a().array.isRequired,total:a().number.isRequired};const f=p},3198(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(3199)},3247(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>h});var i=t(95),a=t(785),o=t(341),s=t(342),r=t(2073),l=t(797),d=t(2074),
1c=t(3184),u=t(3180),m=t(3248),p=t.n(m);const f=i.Locale.getTranslate("components.pages.Home.PhpStatus"),h=(0,u.default)(()=>{const{data:e,loading:n,error:t}=(0,a.useQuery)(p(),{context:{noBatch:!0}}),u=e?.server?.phpStatus?.outdatedSitesCount??0,m=e?.server?.phpStatus?.ctaLink??"";return(0,o.useEffect)(()=>{u>0&&i.UAT.dispatchAction("TUXCARE-PHP-HOME-WIDGET-SHOWN")},[u]),(0,o.jsxs)(r.default,{loading:n,fallback:(0,o.jsx)(s.SkeletonText,{lines:3}),children:[t&&(0,o.jsx)(d.default,{error:t}),e&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("p",{children:[(0,o.jsx)(s.Icon,{name:"circle-exclamation-mark-filled",intent:"danger"})," ",(0,o.jsx)(f,{content:"outdatedCount",params:{count:u}})]}),(0,o.jsx)("p",{children:(0,o.jsx)(f,{content:"description"})}),(0,o.jsx)(c.default,{children:(0,o.jsx)(s.Button,{ghost:!0,id:"secureWithPhpEls",component:l.default,to:m,children:(0,o.jsx)(f,{content:"secureLink"})})})]})]})})},3246(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(3247)},3219(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>l});var i=t(341),a=t(803),o=t.n(a),s=t(95);t(3220);const r=s.Locale.getSection("components.pages.Home.Promo"),l=({children:e,autoplay:n,onSlide:t})=>{const a=i.Children.count(e),[s,l]=(0,i.useState)(0),d=e=>{l(e),t?.(e)},c=(0,i.useRef)(d);return c.current=d,(0,i.useEffect)(()=>{if(!n||a<=1)return;const e=setTimeout(()=>{const e=s===a-1?0:s+1;c.current(e)},15e3);return()=>clearTimeout(e)},[n,a,s]),(0,i.jsxs)("div",{className:"home-page-carousel",children:[a>1&&(0,i.jsx)("div",{className:"home-page-carousel__dots",children:i.Children.map(e,(e,n)=>(0,i.jsx)("button",{type:"button",className:o()("home-page-carousel__dot",n===s&&"home-page-carousel__dot--active"),onClick:()=>d(n),"aria-label":r.lmsg("viewSlide",{slideNumber:n+1})},n))}),i.Children.map(e,(e,n)=>(0,i.jsx)("div",{hidden:n!==s,className:o()("home-page-carousel__slide",n===s&&"home-page-carousel__slide--active"),children:e},n))]})}},3218(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>T});var i=t(341),a=t(803),o=t.n(a),s=t(342),r=t(811),l=t(785),d=t(628),c=t(3169),u=t(718),m=t(3219),p=t(95),f=(t(3221),t(3222)),h=t.n(f),g=t(3223),k=t.n(g),v=t(3224),S=t.n(v),x=t(1456),b=t.n(x),y=t(3225),j=t(3227),N=t(3230);const E=p.Locale.getSection("components.pages.Home.Promo"),T=()=>{const{data:{promos:e,viewer:{home:{showPuvPromo:n=!1,locked:t=!0}={}}={},config:{promos:{autoplay:a=!1}={}}={}}={}}=(0,l.useQuery)(h(),{context:{noBatch:!0}}),[p]=(0,r.useMutation)(k()),[f,g]=(0,i.useState)(0),[v,x]=(0,i.useState)(!1),T=async()=>{try{x(!0),await p({variables:{name:"promo",enable:!1},refetchQueries:[{query:b()},{query:S()}],awaitRefetchQueries:!0})}catch(e){(d.CombinedGraphQLErrors.is(e)?e.errors:[]).forEach(({message:e,extensions:n})=>{(0,u.addToast)({intent:"danger",message:n?.debugMessage||e})})}},w=e=>g(e),P=(0,i.useMemo)(()=>[(0,i.jsx)(y.default,{showCustomizeButton:!t},"customize"),n?(0,i.jsx)(j.default,{},"switchToPuv"):null,...(e??[]).filter(e=>e&&!/catalog\/$/.test(e.buttonUrl)).map((e,n)=>(0,i.jsx)(N.default,{...e,index:n},e.buttonUrl))].filter(Boolean).slice(0,6),[e,n,t]);return v?null:(0,i.jsx)(c.Draggable,{draggableId:"Promo",index:Number.MAX_SAFE_INTEGER,isDragDisabled:!0,children:({innerRef:e}={})=>(0,i.jsxs)("div",{className:o()(`home-page-dashboard__item home-page-promo home-page-promo--slide-${f}`,P.length>1&&"home-page-promo--with-dots"),ref:e,children:[(0,i.jsx)(m.default,{onSlide:w,autoplay:P.length>1&&a,children:P}),!t&&(0,i.jsx)(s.Button,{onClick:T,icon:"cross-mark",className:"home-page-promo__close-button","aria-label":E.lmsg("close")})]})})}},3226(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>d});var i=t(803),a=t.n(i),o=t(782),s=t.n(o),r=t(341);const l=({children:e,classNames:n=null})=>(0,r.jsx)("div",{className:a()("home-page-promo__block",n),children:e});l.propTypes={children:s().node.isRequired,classNames:s().string};const d=l},3228(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>d});var i=t(782),a=t.n(i),o=t(342),s=t(3226),r=t(341);const l=({title:e,content:n,action:t,iconUrl:i})=>(0,r.jsxs)(s.default,{children:[(0,r.jsx)(o.Icon,{className:"home-page-promo__header-icon",size:"48",src:i}),(0,r.jsx)(o.Heading,{level:4,className:"home-page-promo__title",children:e}),(0,r.jsx)("div",{className:"home-page-promo__content",children:n}),(0,r.jsx)("div",{className:"home-page-promo__action",children:t})]});l.propTypes={title:a().node.isRequired,content:a().node.isRequired,action:a().node.isRequired,iconUrl:a().string.isRequired};const d=l},3225(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>m});var i=t(342),a=t(782),o=t.n(a),s=t(95),r=t(797),l=t(3226),d=t(341);const c=s.Locale.getTranslate("components.pages.Home.Promo.Customize"),u=({showCustomizeButton:e=!1})=>(0,d.jsxs)(l.default,{className:"home-page-promo__block--renovate",children:[(0,d.jsx)(i.Heading,{level:4,className:"home-page-promo__title",children:(0,d.jsx)(c,{content:"title"})}),(0,d.jsxs)("div",{className:"home-page-promo__content",children:[(0,d.jsx)(i.Paragraph,{children:(0,d.jsx)(c,{content:"content"})}),(0,d.jsx)("div",{className:"home-page-promo__media",children:(0,d.jsxs)("video",{preload:"auto",autoPlay:!0,muted:!0,controls:!1,loop:!0,children:[(0,d.jsx)("source",{src:"/cp/theme/images/home-promo.webm",type:"video/webm"}),(0,d.jsx)("source",{src:"/cp/theme/images/home-promo.mp4",type:"video/mp4"})]})})]}),(0,d.jsx)("div",{className:"home-page-promo__action",children:e&&(0,d.jsx)(i.Button,{id:"promoCustomize",component:r.default,to:"customize",icon:"gear",children:(0,d.jsx)(c,{content:"action"})})})]});u.propTypes={showCustomizeButton:o().bool};const m=u},3230(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>d});var i=t(782),a=t.n(i),o=t(342),s=t(3228),r=t(341);const l=({title:e,buttonUrl:n,buttonText:t,buttonTarget:i=null,text:a,iconUrl:l,index:d}={})=>(0,r.jsx)(s.default,{title:e,iconUrl:l,content:a,action:(0,r.jsx)(o.Button,{id:`promo-action-${d}`,intent:"primary",component:"a",href:n,target:i,children:t})});l.propTypes={title:a().string.isRequired,iconUrl:a().string.isRequired,text:a().string.isRequired,buttonText:a().string.isRequired,buttonUrl:a().string.isRequired,buttonTarget:a().string,index:a().number.isRequired};const d=l},3227(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>l});var i=t(341),a=t(342),o=t(95),s=t(3228);const r=o.Locale.getTranslate("components.pages.Home.Promo.SwitchToPuv"),l=()=>{const[e,n]=(0,i.useState)(!1);return(0,i.jsx)(s.default,{title:(0,i.jsx)(r,{content:"title"}),content:(0,i.jsx)(r,{content:"content"}),action:(0,i.jsx)(a.Button,{id:"switchToPUV",intent:"primary",onClick:()=>{n(!0),o.api.post("/admin/home/hide-promo-puv"),o.api.post("/admin/index/change-view").then(e=>(0,o.redirect)(e.redirect))},state:e?"loading":null,children:(0,i.jsx)(r,{content:"action"})}),iconUrl:t(3229)})}},3217(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(3218)},3179(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>p});var i=t(782),a=t.n(i),o=t(803),s=t.n(o),r=t(342),l=t(95),d=t(1647),c=t(341);const u=l.Locale.getTranslate("components.pages.Home.ServerInfo"),m=({name:e,content:n,canCopy:t=!0,copyTooltip:i})=>(0,c.jsxs)("div",{className:"home-page-panel-block home-page-server-info-block",children:[(0,c.jsx)("div",{className:"home-page-server-info-block__title",children:(0,c.jsx)(r.Text,{intent:"muted",bold:!0,children:(0,c.jsx)(u,{content:e})})}),(0,c.jsxs)("div",{className:s()("home-page-server-info-block__content",{"home-page-server-info-block__content--copy":t}),children:[(0,c.jsx)("span",{className:"home-page-server-info-block__text",children:n}),t?(0,c.jsx)(d.default,{tooltip:i,className:"home-page-server-info-block__copy",id:e,content:n,icon:{name:"copy",size:12}}):null]})]});m.propTypes={name:a().string.isRequired,content:a().string.isRequired,canCopy:a().bool,copyTooltip:a().string};const p=m},3178(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>g});var i=t(782),a=t.n(i),o=t(95),s=t(3179),r=t(3180),l=t(3184),d=t(797),c=t(852),u=t(342),m=t(341);const p=o.Locale.getTranslate("components.pages.Home.ServerInfo"),f=o.Locale.getSection("components.pages.Home.ServerInfo"),h=({server:{defaultIpAddress:e,settings:{fullHostName:n},information:t},os:{name:i},viewer:{permissions:{manageServerInfo:a}}})=>(0,m.jsxs)(m.Fragment,{children:[n&&(0,m.jsx)(s.default,{name:"hostname",content:n,copyTooltip:f.lmsg("copyHostname")}
1),e?.ipAddress&&(0,m.jsx)(s.default,{name:"ipAddress",content:e.ipAddress,copyTooltip:f.lmsg("copyIpAddress")}),e?.publicIpAddress&&(0,m.jsx)(s.default,{name:"publicIpAddress",content:e.publicIpAddress,copyTooltip:f.lmsg("copyPublicIpAddress")}),i&&(0,m.jsx)(s.default,{name:"os",content:i,copyTooltip:f.lmsg("copyOs")}),t?.sysUptime&&(0,m.jsx)(s.default,{name:"uptime",content:f.formatMessage("uptimeValue",(0,c.toDatePeriod)(t.sysUptime)),canCopy:!1}),a&&(0,m.jsx)(l.default,{children:(0,m.jsx)(u.Button,{ghost:!0,component:d.default,id:"toServerInfo",to:"/cp/server/information/",children:(0,m.jsx)(p,{content:"more"})})})]});h.propTypes={server:a().object.isRequired,os:a().object.isRequired,viewer:a().object.isRequired};const g=(0,r.default)(h)},3177(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(3178)},3241(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>u});var i=t(342),a=t(782),o=t.n(a),s=t(95),r=t(3242),l=t(341);const d=s.Locale.getSection("components.pages.Home.Status"),c=({id:e,isHideable:n=!1,type:t,onClose:a=()=>{},children:o,...s})=>(0,l.jsxs)(i.Panel,{...s,className:`home-page-status__panel home-page-status__panel--${r.statusesMap[t]}`,children:[(0,l.jsxs)(i.Heading,{className:"home-page-dashboard__panel-heading",level:5,children:[(0,l.jsx)("span",{className:"home-page-dashboard__panel-title",children:(0,l.jsx)(i.Status,{intent:r.statusesMap[t],children:d.lmsg(t.toLowerCase())})}),n&&(0,l.jsx)(i.Button,{ghost:!0,icon:"cross-mark",id:`close-${e}`,className:"home-page-dashboard__panel-heading-control",onClick:a})]}),(0,l.jsx)(i.Text,{component:"div",children:o})]});c.propTypes={children:o().node.isRequired,id:o().string.isRequired,type:o().oneOf(Object.keys(r.statusesMap)).isRequired,isHideable:o().bool,onClose:o().func};const u=c},3240(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>v});var i=t(341),a=t(3169),o=t(782),s=t.n(o),r=t(811),l=t(718),d=t(3241),c=t(3242),u=t(3243),m=t.n(u),p=t(3244),f=t(3245);const h={WebserverConfigurationFailure:p.default,UpgradeFailureNotification:f.default},g={[c.ERROR]:0,[c.WARNING]:1},k=({systemMessages:e})=>{const[n,t]=(0,i.useState)([...e].sort((e,n)=>g[e.type]-g[n.type])),[o]=(0,r.useMutation)(m()),s=e=>{t(n.filter(({key:n})=>n!==e.key))},c=(e,n)=>{switch(e.component){case"WebserverConfigurationFailure":case"UpgradeFailureNotification":const t=h[e.component];return(0,i.jsx)(t,{id:e.key,message:e.content,type:e.type,params:e.params,isHideable:e.isHideable,onClose:()=>s(e)},n);default:return(0,i.jsx)(d.default,{id:e.key,isHideable:e.isHideable,type:e.type,onClose:()=>(e=>{o({variables:{input:{key:e.key}}}).catch(e=>{(0,l.addToast)({intent:"danger",message:e.toString()})}),s(e)})(e),children:(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:e.content}})},n)}};if(n.length)return(0,i.jsx)(a.Draggable,{draggableId:"Status",index:Number.MAX_SAFE_INTEGER,isDragDisabled:!0,children:({innerRef:e}={})=>(0,i.jsx)("div",{className:"home-page-dashboard__item home-page-status",ref:e,children:n.map(c)})})};k.propTypes={systemMessages:s().arrayOf(s().shape({type:s().oneOf(Object.keys(c.statusesMap)).isRequired,key:s().string.isRequired,isHideable:s().bool,content:s().string,component:s().string,params:s().string})).isRequired};const v=k},3245(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>m});var i=t(341),a=t(782),o=t.n(a),s=t(3184),r=t(3241),l=t(342),d=t(95);const c=d.Locale.getTranslate("components.upgrade-failure-notification"),u=({params:e,message:n,type:t,...a})=>{const o=(0,i.useRef)(),u=(0,i.useMemo)(()=>{try{return JSON.parse(e)}catch{return{}}},[e]),[m,p]=(0,i.useState)(u.isBootstrapRunning),f=(0,i.useCallback)(e=>{o.current=setTimeout(e,5e3)},[]),h=(0,i.useCallback)(()=>{d.api.get(u.bootstrapStatusUrl).finally(()=>{f(h)})},[u.bootstrapStatusUrl,f]);(0,i.useEffect)(()=>(u.isBootstrapRunning&&f(h),()=>clearTimeout(o.current)),[u.isBootstrapRunning,f,h]);return(0,i.jsx)(r.default,{type:t,...a,children:m?(0,i.jsx)(l.ContentLoader,{text:(0,i.jsx)(c,{content:"bootstrapInProgressMessage"})}):(0,i.jsxs)(i.Fragment,{children:[n,(0,i.jsx)(s.default,{children:(0,i.jsx)(l.Button,{ghost:!0,onClick:()=>{p(!0),d.api.post(u.bootstrapExecutionUrl).finally(()=>{f(h)})},id:"system-message-update-failure-bootstrap",children:(0,i.jsx)(c,{content:"bootstrapLinkTitle"})})})]})})};u.propTypes={params:o().string.isRequired,message:o().string.isRequired,type:o().string.isRequired};const m=u},3244(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>h});var i=t(341),a=t(342),o=t(3241),s=t(3184),r=t(95),l=t(782),d=t.n(l),c=t(3242);const u=r.Locale.getSection("components.webserver-configuration-failure"),m=r.Locale.getTranslate("components.webserver-configuration-failure"),p="system-message-webserver",f=({params:e="",message:n,type:t,...l})=>{const[d,f]=(0,i.useState)(t),[h,g]=(0,i.useState)(!1),[k,v]=(0,i.useState)(),S=(0,i.useMemo)(()=>{try{return JSON.parse(e)}catch{return{}}},[e]),x=async()=>{f(c.WARNING),v((0,i.jsx)(a.ContentLoader,{text:u.lmsg("messageInProgress")}));try{const e=await r.api.post("/admin/subscription/webserver-configuration-rebuild-all/");"success"===e.status?(f(c.INFO),v(u.lmsg("messageSuccess")),g(!0)):(f(c.ERROR),v((0,i.jsx)(a.Cuttable,{children:u.lmsg("messageFailure")+e.message})))}catch(e){""===window.location.port?(f(c.INFO),v(u.lmsg("messageSuccess"))):(f(c.ERROR),v((0,i.jsx)(a.Cuttable,{children:u.lmsg("messageFailure")+e})))}},b=()=>{(0,r.redirectPost)("/admin/subscription/webserver-configuration-rebuild/?returnUrl=/")};return(0,i.jsx)(o.default,{type:d,...l,isHideable:h,children:k??(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m,{content:"message",params:{error:(0,r.escapeHtml)(n),link:(0,i.jsx)(a.Link,{id:`${p}-rebuild-failed`,onClick:b,children:u.lmsg("link")}),linkAll:(0,i.jsx)(a.Link,{id:`${p}-rebuild-all`,onClick:x,children:u.lmsg("linkAll")}),howToFix:S.kbArticle?(0,i.jsx)(m,{content:"knownIssue",params:{kbArticle:(0,i.jsx)("a",{id:`${p}-go-to-kb-article`,href:S.kbArticle,target:"_blank",rel:"noreferrer",children:S.kbArticle})}}):""}}),S.moduleInstalled&&(0,i.jsx)(s.default,{children:(0,i.jsx)(a.Button,{ghost:!0,component:"a",href:"/modules/configurations-troubleshooter/",id:`${p}-go-to-troubleshooter`,children:(0,i.jsx)(m,{content:"moduleLink"})})})]})})};f.propTypes={message:d().string.isRequired,type:d().oneOf(Object.keys(c.statusesMap)).isRequired,params:d().string};const h=f},3242(e,n,t){"use strict";t.r(n),t.d(n,{ERROR:()=>i,INFO:()=>a,WARNING:()=>o,statusesMap:()=>s});const i="ERROR",a="INFO",o="WARNING",s={[i]:"danger",[a]:"success",[o]:"warning"}},3239(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(3240)},3189(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>l});var i=t(782),a=t(342),o=t(341);const s=({button:e,children:n})=>(0,o.jsxs)(a.Media,{children:[n&&(0,o.jsx)(a.MediaSection,{children:n}),e&&(0,o.jsx)(a.MediaSection,{children:e})]});s.propTypes={button:i.PropTypes.node,children:i.PropTypes.node};const r=({intent:e,...n})=>null!==e?(0,o.jsx)(a.Alert,{intent:e,children:(0,o.jsx)(s,{...n})}):(0,o.jsx)("div",{style:{marginBlock:"16px"},children:(0,o.jsx)(s,{...n})});
1r.propTypes={intent:i.PropTypes.string};const l=r},3187(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>S});var i=t(782),a=t(95),o=t(811),s=t(628),r=t(341),l=t(342),d=t(797),c=t(3188),u=t(3189),m=t(718),p=t(3190),f=t.n(p),h=t(3191),g=t.n(h);const k=a.Locale.getTranslate("components.pages.Home.Updates"),v=({currentVersion:e,updates:{isAutoupdateEnabled:n,...t},settingsLink:i})=>{const[p,h]=(0,r.useState)(t.availablePatch),[v,S]=(0,r.useState)(t.availableVersion),[x,b]=(0,r.useState)(t.lastCheckDate),[y,j]=(0,r.useState)(t.installingUpdatesTaskId),[N,{loading:E}]=(0,o.useMutation)(f(),{onCompleted:({checkProductUpdates:{productUpdates:{availablePatch:e,availableVersion:n,lastCheckDate:t}}})=>{h(e),S(n),b(t)},onError:e=>{(s.CombinedGraphQLErrors.is(e)?e.errors:[]).forEach(({extensions:e,message:n})=>{(0,m.addToast)({intent:"danger",message:e?.debugMessage||n})})}}),[T,{loading:w}]=(0,o.useMutation)(g(),{onCompleted:({updateComponents:{id:e}})=>{j(e)},onError:e=>{(s.CombinedGraphQLErrors.is(e)?e.errors:[]).forEach(({extensions:e,message:n})=>{(0,m.addToast)({intent:"danger",message:e?.debugMessage||n})})}});return(0,r.useEffect)(()=>{y&&a.Observer.append(({id:e})=>{+e===+y&&window.location.reload()},"plesk:taskComplete")},[y]),(0,r.jsxs)(r.Fragment,{children:[!n&&(0,r.jsx)(c.default,{intent:"warning",to:i,icon:"triangle-exclamation-mark-filled",children:(0,r.jsx)(k,{content:"enableAutoupdate"})}),(0,r.jsx)(u.default,{intent:x?void 0:null,button:(0,r.jsx)(l.Button,{id:"checkUpdates",onClick:N,state:E?"loading":void 0,children:(0,r.jsx)(k,{content:"checkUpdates"})}),children:x&&(0,r.jsx)(l.Text,{intent:"muted",children:(0,r.jsx)(k,{content:"lastChecked",params:{lastCheckDate:x}})})}),v&&(0,r.jsx)(u.default,{intent:"info",button:(0,r.jsx)(l.Button,{id:"installNewVersion",intent:"primary",component:d.default,target:"_blank",rel:"noopener noreferrer",to:"/admin/update/product",children:(0,r.jsx)(k,{content:"installNewVersion"})}),children:(0,r.jsx)(k,{content:"newVersionAvailable",params:{availableVersion:v}})}),p&&!n&&(0,r.jsx)(u.default,{intent:"info",button:(0,r.jsx)(l.Button,{id:"installPatch",intent:"primary",onClick:T,state:w||y?"loading":void 0,children:(0,r.jsx)(k,{content:"installPatch"})}),children:(0,r.jsx)(k,{content:e?"patchAvailableVersion":"patchAvailable",params:{currentVersion:e}})})]})};v.propTypes={currentVersion:i.PropTypes.string.isRequired,updates:i.PropTypes.object.isRequired,settingsLink:i.PropTypes.string.isRequired};const S=v},3192(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>h});var i=t(782),a=t(341),o=t(941),s=t(95),r=t(342),l=t(797),d=t(3189),c=t(718),u=t(3193),m=t.n(u);const p=s.Locale.getSection("components.pages.Home.Updates"),f=({updates:{nodes:e,pageInfo:{total:n}},installingUpdatesTaskId:t})=>{const[i,u]=(0,a.useState)(t),[f,{loading:h}]=(0,o.useLazyQuery)(m());return(0,a.useEffect)(()=>{i&&s.Observer.append(({id:e})=>{+e===+i&&window.location.reload()},"plesk:taskComplete")},[i]),e.length?(0,a.jsx)(d.default,{intent:"info",button:(0,a.jsx)(r.Button,{id:"installPumUpdates",intent:"primary",state:h||i?"loading":void 0,onClick:async()=>{const{data:e,error:n}=await f().catch(e=>({error:e}));if(n)return void(n.errors??[]).forEach(({extensions:e,message:n})=>{(0,c.addToast)({intent:"danger",message:e?.debugMessage||n})});const{server:{pum:{updates:{nodes:t}}}}=e,{PopupPackagesUpdate:i}=await Plesk.require("app/pum");new i({urls:{packageUpdateInfo:"/admin/pum/update-info",updatePackages:"/admin/pum/update"},packages:t.map(({isLocked:e,currentVersion:n,availableVersion:t,...i})=>({locked:e,version_from:n,version_to:t,...i})),onSuccess:({task:{id:e}})=>u(e)})},children:p.formatMessage("installUpdates",{total:n})}),children:p.formatMessage("pumUpdates",{total:n,package:(0,a.jsx)(l.default,{to:"/admin/pum/updates-list",children:1===n?p.lmsg("pumPackage",e[0]):p.formatMessage("pumPackages",{total:n})})})}):null};f.propTypes={updates:i.PropTypes.object.isRequired,installingUpdatesTaskId:i.PropTypes.number};const h=f},3186(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>h});var i=t(782),a=t(95),o=t(3187),s=t(3192),r=t(342),l=t(797),d=t(3180),c=t(3184),u=t(341);const m=a.Locale.getTranslate("components.pages.Home.Updates"),p=({server:{productVersion:{name:e,version:n,patch:t}},primaryKey:{editionName:i}})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(m,{component:"div",content:"version",params:{name:e,version:n&&t?(0,u.jsx)(m,{content:"patch",params:{version:n,patch:t}}):n}}),i]});p.propTypes={server:i.PropTypes.object.isRequired,primaryKey:i.PropTypes.object.isRequired};const f=({server:{productVersion:{version:e},productUpdates:{lastUpdateDate:n,...t},pum:i},config:{updates:{showControls:a}},mode:{isPumAllowed:d},viewer:{permissions:{manageServerUpdates:p}}})=>(0,u.jsxs)(u.Fragment,{children:[n&&(0,u.jsx)(r.Text,{"data-testid":"last-update-date",component:"p",intent:"muted",fontSize:"sm",children:(0,u.jsx)(m,{content:"lastUpdated",params:{lastUpdateDate:n}})}),p&&(0,u.jsxs)(u.Fragment,{children:[a&&(0,u.jsx)(o.default,{currentVersion:e,updates:t,settingsLink:d?"/admin/pum/settings":"/admin/update/settings"}),d&&(0,u.jsx)(s.default,{...i}),(0,u.jsx)(c.default,{children:(0,u.jsx)(r.Button,{ghost:!0,id:"toInstaller",component:l.default,to:"/admin/update/add-components",target:"_blank",icon:{name:"arrow-diagonal-out",style:{order:"1",marginInline:"4px 0"}},children:(0,u.jsx)(m,{content:"manageComponents"})})})]})]});f.propTypes={server:i.PropTypes.object.isRequired,config:i.PropTypes.object.isRequired,mode:i.PropTypes.object.isRequired,viewer:i.PropTypes.object.isRequired};const h=(0,d.default)(f,{title:e=>e?(0,u.jsx)(p,{...e}):(0,u.jsx)(m,{content:"title"})})},3185(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(3186)},3184(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>s});var i=t(782),a=t(341);const o=({children:e})=>(0,a.jsx)("div",{className:"home-page-dashboard__panel-footer",children:e});o.propTypes={children:i.PropTypes.node.isRequired};const s=o},3188(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>l});var i=t(782),a=t(342),o=t(797),s=t(341);const r=({children:e,...n})=>(0,s.jsx)(a.Label,{component:o.default,view:"light",size:"lg",...n,children:e});
1r.propTypes={children:i.PropTypes.node.isRequired};const l=r},3181(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>p});var i=t(342),a=t(3182),o=t(95),s=t(3183),r=t(782),l=t.n(r),d=t(341);const c=o.Locale.getTranslate("components.pages.Home.Customization"),u=o.Locale.getSection("components.pages.Home.Customization"),m=({name:e,title:n,icon:t,dragHandleProps:o={},children:r})=>(0,d.jsxs)(i.Panel,{className:"home-page-dashboard__panel","data-type":`panel-${e}`,children:[(0,d.jsxs)(i.Heading,{className:"home-page-dashboard__panel-heading",level:5,children:[t??(0,d.jsx)(s.default,{icon:a.default[e],className:"home-page-dashboard__panel-heading-icon"}),(0,d.jsx)("span",{className:"home-page-dashboard__panel-title",children:n??(0,d.jsx)(c,{content:e})}),(0,d.jsx)(i.Button,{className:"home-page-dashboard__panel-heading-control",component:"div","data-type":`handle-${e}`,ghost:!0,icon:(0,d.jsx)(i.Icon,{size:"12",children:(0,d.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 14",children:(0,d.jsx)("path",{d:"M0 0h2v2H0zm0 4h2v2H0zm0 4h2v2H0zm0 4h2v2H0zM4 0h2v2H4zm0 4h2v2H4zm0 4h2v2H4zm0 4h2v2H4z"})})}),"aria-label":u.lmsg("drag"),...o})]}),r]});m.propTypes={name:l().string.isRequired,title:l().node,icon:l().node,dragHandleProps:l().object,children:l().node};const p=m},3183(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>r});var i=t(782),a=t(342),o=t(341);const s=({icon:e="plugins",...n})=>(0,o.jsx)(a.Icon,{name:e?.includes(".")?void 0:e,src:e,intent:"inactive",...n});s.propTypes={icon:i.PropTypes.string};const r=s},3182(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>a});var i=t(1446);const a={[i.SERVER_INFO]:"server",[i.IP_BAN]:"security-check",[i.OVERUSED_SUBSCRIPTIONS]:"bar-chart-vertical-lock",[i.UPDATES]:"rocket",[i.BACKUP]:"backup2",[i.MY_SUBSCRIPTIONS]:"four-squares",[i.MAIL_QUEUE]:"mail",[i.PROMO]:"star",[i.CHANGE_LOG]:"web",[i.CUSTOM_BUTTONS]:"card-row",[i.PHP_STATUS]:"php"}},3180(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>u});var i=t(782),a=t(342),o=t(3169),s=t(3181),r=t(803),l=t.n(r),d=t(341);const c=({name:e,title:n,icon:t,children:i,...a})=>(0,d.jsx)(o.Draggable,{draggableId:e,...a,children:({innerRef:a,draggableProps:o,dragHandleProps:r}={},{isDragging:c}={})=>(0,d.jsx)("div",{ref:a,...o,className:l()("home-page-dashboard__item",c&&"home-page-dashboard__panel-is-dragged"),children:(0,d.jsx)(s.default,{name:e,title:n,icon:t,dragHandleProps:r,children:i})})});c.propTypes={name:i.PropTypes.string.isRequired,title:i.PropTypes.node,icon:i.PropTypes.node,children:i.PropTypes.node};const u=(e,{title:n,icon:t}={})=>{const o=({data:{data:i,errors:o=[]}={},name:s,...r})=>(0,d.jsx)(c,{name:s,title:"function"==typeof n?n(i,s):n,icon:"function"==typeof t?t(i,s):t,...r,children:o.length?o.map(e=>(0,d.jsx)(a.StatusMessage,{intent:"danger",children:e},e)):(0,d.jsx)(e,{name:s,...i})});return o.propTypes={data:i.PropTypes.object,name:i.PropTypes.string.isRequired},o.displayName=`withPanelLayout(${e.displayName||e.name||"Component"})`,o.WrappedComponent=e,o}},3167(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(3168)},1623(e,n,t){"use strict";t.r(n),t.d(n,{getGraphQlErrorMessage:()=>a});var i=t(628);const a=e=>{const{message:n}=e;if(i.CombinedGraphQLErrors.is(e)&&e.errors.length){const{message:n,extensions:t}=e.errors[0];return`${t?.debugMessage||n}`}return n}},2993(e,n,t){"use strict";t.r(n),t.d(n,{getClientStatusReason:()=>a,getDomainStatusReason:()=>o,getResellerStatusReason:()=>s,getSubscriptionStatusReason:()=>r});const i=t(95).Locale.getSection("components.status.reason"),a=e=>l(+e,"client"),o=e=>l(+e,"domain"),s=e=>l(+e,"reseller"),r=e=>"0"===e?i.lmsg("subscription.active"):256===parseInt(e)?i.lmsg("subscription.inactiveExpired"):i.lmsg("subscription.inactive"),l=(e,n)=>0===e?i.lmsg(`${n}.active`):16&e?i.lmsg(`${n}.inactiveByAdmin`):32&e?i.lmsg(`${n}.inactiveByReseller`):64&e?i.lmsg(`${n}.inactiveByClient`):2&e?i.lmsg(`${n}.inactiveWithParent`):256&e?i.lmsg(`${n}.inactiveExpired`):4&e?i.lmsg(`${n}.inactiveBackupRestore`):i.lmsg(`${n}.inactive`)},3252(e){e.exports=Jsw.skinUrl+"/images/home-empty-locked.png?52e070d1fbdced45508805a9f0e7ba2b"},3251(e){e.exports=Jsw.skinUrl+"/images/home-empty.png?7399f1d4c0cfd2e9fb9035098c85bc60"},3229(e){e.exports=Jsw.skinUrl+"/images/home-switch-to-puv.svg?ad32dc23b5d4ca9daad5ff5a8cc58793"},3234(e){e.exports=Jsw.skinUrl+"/images/rocket.svg?56fadbd90bfc0719c2796abfaa5c4369"},3197(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"HomeBackup"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewer"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"}},{kind:"Field",name:{kind:"Name",value:"client"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"backup"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"schedules"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"period"}},{kind:"Field",name:{kind:"Name",value:"isEnabled"}},{kind:"Field",name:{kind:"Name",value:"minutes"}},{kind:"Field",name:{kind:"Name",value:"hours"}},{kind:"Field",name:{kind:"Name",value:"day"}}]}},{kind:"Field",name:{kind:"Name",value:"dumps"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"pagination"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"page"},value:{kind:"IntValue",value:"1"}},{kind:"ObjectField",name:{kind:"Name",value:"itemsPerPage"},value:{kind:"IntValue",value:"1"}}]}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"dateString"}},{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:575}};n.loc.source={body:"query HomeBackup {\n    viewer {\n        login\n        client {\n            id\n            backup {\n                schedules {\n                    type\n                    period\n                    isEnabled\n                    minutes\n                    hours\n                    day\n                }\n                dumps(input: { pagination: { page: 1, itemsPerPage: 1 } }) {\n                    nodes {\n                        id\n                        dateString\n                        status\n                    }\n                }\n            }\n        }\n    }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);
1else 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 a(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.HomeBackup=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,s=new Set,r=new Set;for(o.forEach(function(e){r.add(e)});r.size>0;){var l=r;r=new Set,l.forEach(function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return s.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"HomeBackup")},3235(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"HomeChangeLog"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"server"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"productUpdates"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"changeLogFeed"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"product"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"version"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"isPatch"}}]}}]}}]}}]}}],loc:{start:0,end:255}};n.loc.source={body:"query HomeChangeLog {\n    server {\n        productUpdates {\n            changeLogFeed {\n                product\n                title\n                version\n                date\n                url\n                isPatch\n            }\n        }\n    }\n}\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 a(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.HomeChangeLog=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,s=new Set,r=new Set;for(o.forEach(function(e){r.add(e)});r.size>0;){var l=r;r=new Set,l.forEach(function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return s.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"HomeChangeLog")},3238(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"HomeCustomButtons"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewer"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"}},{kind:"Field",name:{kind:"Name",value:"permissions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"manageServerCustomButtons"}}]}},{kind:"Field",name:{kind:"Name",value:"home"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"customButtons"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"image"}},{kind:"Field",name:{kind:"Name",value:"href"}},{kind:"Field",name:{kind:"Name",value:"target"}}]}}]}}]}}]}}],loc:{start:0,end:333}};n.loc.source={body:"query HomeCustomButtons {\n    viewer {\n        login\n        permissions {\n            manageServerCustomButtons\n        }\n        home {\n            customButtons {\n                id\n                title\n                description\n                image\n                href\n                target\n            }\n        }\n    }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);
1else 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 a(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.HomeCustomButtons=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,s=new Set,r=new Set;for(o.forEach(function(e){r.add(e)});r.size>0;){var l=r;r=new Set,l.forEach(function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return s.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"HomeCustomButtons")},3211(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"HomeExtension"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewer"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"}},{kind:"Field",name:{kind:"Name",value:"home"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"extensionBlockContent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"}},{kind:"Field",name:{kind:"Name",value:"footer"}}]}}]}}]}}]}}],loc:{start:0,end:215}};n.loc.source={body:"query HomeExtension($name: ID!) {\n    viewer {\n        login\n        home {\n            extensionBlockContent (filter: {name: $name}) {\n                content\n                footer\n            }\n        }\n    }\n}\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 a(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.HomeExtension=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,s=new Set,r=new Set;for(o.forEach(function(e){r.add(e)});r.size>0;){var l=r;r=new Set,l.forEach(function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return s.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"HomeExtension")},3206(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"HomeIpBan"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"server"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ipBan"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bannedIpsCount"}},{kind:"Field",name:{kind:"Name",value:"trustedIpsCount"}}]}}]}}]}}],loc:{start:0,end:120}};n.loc.source={body:"query HomeIpBan {\n    server {\n        ipBan {\n            bannedIpsCount\n            trustedIpsCount\n        }\n    }\n}\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 a(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.HomeIpBan=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,s=new Set,r=new Set;
1for(o.forEach(function(e){r.add(e)});r.size>0;){var l=r;r=new Set,l.forEach(function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return s.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"HomeIpBan")},3216(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CleanQueue"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mailQueueClean"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"query"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"serverMail"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"queue"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"deferred"}},{kind:"Field",name:{kind:"Name",value:"hold"}}]}}]}}]}}]}}]}}],loc:{start:0,end:238}};n.loc.source={body:"mutation CleanQueue {\n    mailQueueClean {\n        query {\n            serverMail {\n                queue {\n                    total\n                    deferred\n                    hold\n                }\n            }\n        }\n    }\n}\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 a(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.CleanQueue=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,s=new Set,r=new Set;for(o.forEach(function(e){r.add(e)});r.size>0;){var l=r;r=new Set,l.forEach(function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return s.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"CleanQueue")},3215(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"HomeMailQueue"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"extLogBrowser"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"extRepairKit"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"serverMail"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"queue"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"deferred"}},{kind:"Field",name:{kind:"Name",value:"hold"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"viewer"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"}},{kind:"Field",name:{kind:"Name",value:"permissions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"manageServerTroubleshootingEnable"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"extLog"},name:{kind:"Name",value:"node"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"extLogBrowser"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Extension"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isActive"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"extRepair"},name:{kind:"Name",value:"node"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"extRepairKit"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Extension"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isActive"}}]}}]}}]}}],loc:{start:0,end:520}};n.loc.source={body:"query HomeMailQueue ($extLogBrowser: ID!, $extRepairKit: ID!) {\n    serverMail {\n        queue {\n            total\n            deferred\n            hold\n        }\n    }\n    viewer {\n        login\n        permissions {\n            manageServerTroubleshootingEnable\n        }\n    }\n    extLog: node(id: $extLogBrowser) {\n        ... on Extension {\n            id\n            isActive\n        }\n    }\n    extRepair: node(id: $extRepairKit) {\n        ... on Extension {\n            id\n            isActive\n        }\n    }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);
1else 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 a(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.HomeMailQueue=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,s=new Set,r=new Set;for(o.forEach(function(e){r.add(e)});r.size>0;){var l=r;r=new Set,l.forEach(function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return s.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"HomeMailQueue")},3248(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"HomePhpStatus"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"server"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"phpStatus"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"outdatedSitesCount"}},{kind:"Field",name:{kind:"Name",value:"ctaLink"}}]}}]}}]}}],loc:{start:0,end:124}};n.loc.source={body:"query HomePhpStatus {\n    server {\n        phpStatus {\n            outdatedSitesCount\n            ctaLink\n        }\n    }\n}\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 a(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.HomePhpStatus=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,s=new Set,r=new Set;for(o.forEach(function(e){r.add(e)});r.size>0;){var l=r;r=new Set,l.forEach(function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return s.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"HomePhpStatus")},3222(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"HomePromo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"promos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"buttonUrl"}},{kind:"Field",name:{kind:"Name",value:"buttonText"}},{kind:"Field",name:{kind:"Name",value:"buttonTarget"}},{kind:"Field",name:{kind:"Name",value:"text"}},{kind:"Field",name:{kind:"Name",value:"iconUrl"}}]}},{kind:"Field",name:{kind:"Name",value:"viewer"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"}},{kind:"Field",name:{kind:"Name",value:"home"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"showPuvPromo"}},{kind:"Field",name:{kind:"Name",value:"locked"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"config"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"promos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"autoplay"}}]}}]}}]}}],loc:{start:0,end:309}};n.loc.source={body:"query HomePromo {\n    promos {\n        title\n        buttonUrl\n        buttonText\n        buttonTarget\n        text\n        iconUrl\n    }\n    viewer {\n        login\n        home {\n            showPuvPromo\n            locked\n        }\n    }\n    config {\n        promos {\n            autoplay\n        }\n    }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);
1else 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 a(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.HomePromo=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,s=new Set,r=new Set;for(o.forEach(function(e){r.add(e)});r.size>0;){var l=r;r=new Set,l.forEach(function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return s.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"HomePromo")},3190(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CheckProductUpdates"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"checkProductUpdates"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"productUpdates"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"availablePatch"}},{kind:"Field",name:{kind:"Name",value:"availableVersion"}},{kind:"Field",name:{kind:"Name",value:"lastCheckDate"}}]}}]}}]}}],loc:{start:0,end:182}};n.loc.source={body:"mutation CheckProductUpdates {\n    checkProductUpdates {\n        productUpdates {\n            availablePatch\n            availableVersion\n            lastCheckDate\n        }\n    }\n}\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 a(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.CheckProductUpdates=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,s=new Set,r=new Set;for(o.forEach(function(e){r.add(e)});r.size>0;){var l=r;r=new Set,l.forEach(function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return s.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"CheckProductUpdates")},3191(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateComponents"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateComponents"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}],loc:{start:0,end:70}};n.loc.source={body:"mutation UpdateComponents {\n    updateComponents {\n        id\n    }\n}\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 a(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.UpdateComponents=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,s=new Set,r=new Set;for(o.forEach(function(e){r.add(e)});r.size>0;){var l=r;r=new Set,l.forEach(function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}
1return s.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"UpdateComponents")},3193(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PumUpdates"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"server"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pum"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updates"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"currentVersion"}},{kind:"Field",name:{kind:"Name",value:"availableVersion"}},{kind:"Field",name:{kind:"Name",value:"isLocked"}}]}}]}}]}}]}}]}}],loc:{start:0,end:268}};n.loc.source={body:"query PumUpdates {\n    server {\n        pum {\n            updates {\n                nodes {\n                    name\n                    currentVersion\n                    availableVersion\n                    isLocked\n                }\n            }\n        }\n    }\n}\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 a(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.PumUpdates=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,s=new Set,r=new Set;for(o.forEach(function(e){r.add(e)});r.size>0;){var l=r;r=new Set,l.forEach(function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return s.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"PumUpdates")},3243(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"HideSystemMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"HideSystemMessageInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hideSystemMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"query"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewer"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"}},{kind:"Field",name:{kind:"Name",value:"home"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"systemMessages"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"content"}},{kind:"Field",name:{kind:"Name",value:"isHideable"}},{kind:"Field",name:{kind:"Name",value:"component"}},{kind:"Field",name:{kind:"Name",value:"params"}}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:481}};n.loc.source={body:"mutation HideSystemMessage($input: HideSystemMessageInput!) {\n    hideSystemMessage(input: $input) {\n        query {\n            viewer {\n                login\n                home {\n                    systemMessages {\n                        type\n                        key\n                        content\n                        isHideable\n                        component\n                        params\n                    }\n                }\n            }\n        }\n    }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);
1else 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 a(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.HideSystemMessage=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,s=new Set,r=new Set;for(o.forEach(function(e){r.add(e)});r.size>0;){var l=r;r=new Set,l.forEach(function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return s.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"HideSystemMessage")},3224(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"HomeLayout"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewer"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"}},{kind:"Field",name:{kind:"Name",value:"home"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"layout"}}]}}]}}]}}],loc:{start:0,end:98}};n.loc.source={body:"query HomeLayout {\n    viewer {\n        login\n        home {\n            layout\n        }\n    }\n}\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 a(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.HomeLayout=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,s=new Set,r=new Set;for(o.forEach(function(e){r.add(e)});r.size>0;){var l=r;r=new Set,l.forEach(function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return s.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"HomeLayout")},3223(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ToggleHomeBlock"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"enable"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"toggleHomeBlock"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"enable"},value:{kind:"Variable",name:{kind:"Name",value:"enable"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"enable"}}]}}]}}],loc:{start:0,end:146}};n.loc.source={body:"mutation ToggleHomeBlock($name: ID!, $enable: Boolean!) {\n    toggleHomeBlock(name: $name, enable: $enable) {\n        name\n        enable\n    }\n}\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 a(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.ToggleHomeBlock=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,s=new Set,r=new Set;
1for(o.forEach(function(e){r.add(e)});r.size>0;){var l=r;r=new Set,l.forEach(function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return s.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"ToggleHomeBlock")},3253(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateHomeLayout"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"layout"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateHomeLayout"},arguments:[{kind:"Argument",name:{kind:"Name",value:"layout"},value:{kind:"Variable",name:{kind:"Name",value:"layout"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"layout"}}]}}]}}],loc:{start:0,end:115}};n.loc.source={body:"mutation UpdateHomeLayout($layout: [[String!]!]!) {\n    updateHomeLayout(layout: $layout) {\n        layout\n    }\n}\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 a(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.UpdateHomeLayout=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,s=new Set,r=new Set;for(o.forEach(function(e){r.add(e)});r.size>0;){var l=r;r=new Set,l.forEach(function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return s.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"UpdateHomeLayout")},3249(e,n,t){"use strict";t.r(n)},3220(e,n,t){"use strict";t.r(n)},3221(e,n,t){"use strict";t.r(n)}}]);
2//# sourceMappingURL=HomePage.js.map?1f813b7c9db7d404ab80

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.