PageSourceSearch

https://acscontrol.com/cp/javascript/components/common/ServerMailAntivirusPromo.js?d8df02745e28aa45f8ec

js acscontrol.com collected 2026-10-06 05:31:00 UTC 5,472 bytes, 2 lines download raw bytes

1(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["components/common/ServerMailAntivirusPromo"],{2162:(e,n,i)=>{"use strict";i.r(n),i.d(n,{default:()=>p});var t=i(244),r=i.n(t),s=i(734),a=i(243),o=i(90),l=i(775),c=(i(2163),i(2164)),d=i.n(c),m=i(242);const u=o.Locale.getSection("components.common.ServerMailAntivirusPromo"),v=o.Locale.getTranslate("components.common.ServerMailAntivirusPromo"),f=o.Locale.getTranslate("admin.controllers.server.tools"),h=({isAnchor:e,to:n,children:i})=>e?(0,m.jsx)("a",{href:n,children:i}):(0,m.jsx)(l.default,{to:n,children:i});h.propTypes={isAnchor:r().bool.isRequired,to:r().string.isRequired,children:r().node.isRequired};const k="premium-av",g=({isOnDomainEmailPage:e})=>{const{data:n,loading:i,error:t}=(0,s.useQuery)(d());if(i)return(0,m.jsx)(a.Skeleton,{height:100});if(t)return(0,m.jsx)(a.StatusMessage,{intent:"danger",children:t.message});const{serverMail:{availableAntivirusExtensions:r},os:{isWindows:l}}=n;if(!r.length)return(0,m.jsx)(a.Status,{icon:{size:"24"},intent:"info",children:(0,m.jsx)(v,{content:"noAntivirus"})});const c=r.filter((({isInstalled:e})=>e));if(!c.length)return(0,m.jsxs)(a.Status,{icon:{size:"24"},intent:"info",children:[(0,m.jsx)(v,{content:"noAntivirus"})," ",(0,m.jsx)(v,{content:"warning"}),(0,m.jsx)("br",{}),(0,m.jsx)(v,{content:"promoDescription"}),(0,m.jsx)("ul",{className:"server-mail-antivirus-promo__list",children:r.map((({name:e,isRecommended:n,catalogUrl:i})=>(0,m.jsx)("li",{children:(0,m.jsxs)("a",{href:i,children:[e,n&&` ${u.lmsg("recommended")}`]})},e)))})]});const g=c.find((({code:e})=>e===k))||c[0],p=[{key:"purchase",instruction:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(v,{content:"toEnable"})," ",(0,m.jsx)("a",{href:g.catalogUrl,"data-action":"ServerMailAVPromoPurchase",children:(0,m.jsx)(v,{content:"purchase"})})]}),show:g.code!==k},{key:"enableAVComponent",instruction:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(v,{content:"enableAt"})," ",(0,m.jsx)(h,{to:"/cp/server/components",isAnchor:e,children:(0,m.jsx)(f,{content:"serverComponents"})})]}),show:l},{key:"enableServerMailAV",instruction:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(v,{content:"enableAt"})," ",(0,m.jsx)(h,{to:"/cp/server/mail/antivirus",isAnchor:e,children:o.Locale.getSection("admin.controllers.mail-settings.index").lmsg("title")})]}),show:!l&&e}].filter((({show:e=!0})=>e));return(0,m.jsxs)(a.Status,{icon:{size:"24"},intent:"info",children:[(0,m.jsx)(v,{content:"needActivation",params:{name:g.name}})," ",1===p.length?p[0].instruction:(0,m.jsx)("ul",{className:"server-mail-antivirus-promo__list",children:p.map((({key:e,instruction:n})=>(0,m.jsx)("li",{children:n},e)))})]})};g.propTypes={isOnDomainEmailPage:r().bool},g.defaultProps={isOnDomainEmailPage:!1};const p=g},2161:(e,n,i)=>{"use strict";i.r(n),i.d(n,{default:()=>t.default});var t=i(2162)},2164:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ServerMailAntivirusPromo"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"serverMail"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"availableAntivirusExtensions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isInstalled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isRecommended"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"catalogUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"os"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isWindows"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:261}};n.loc.source={body:"query ServerMailAntivirusPromo {\r\n    serverMail {\r\n        availableAntivirusExtensions {\r\n            name\r\n            isInstalled\r\n            isRecommended\r\n            catalogUrl\r\n            code\r\n        }\r\n    }\r\n    os {\r\n        isWindows\r\n    }\r\n}\r\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);
1else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function r(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n,e.exports.ServerMailAntivirusPromo=function(e,n){var i={kind:e.kind,definitions:[r(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var s=t[n]||new Set,a=new Set,o=new Set;for(s.forEach((function(e){o.add(e)}));o.size>0;){var l=o;o=new Set,l.forEach((function(e){a.has(e)||(a.add(e),(t[e]||new Set).forEach((function(e){o.add(e)})))}))}return a.forEach((function(n){var t=r(e,n);t&&i.definitions.push(t)})),i}(n,"ServerMailAntivirusPromo")},2163:(e,n,i)=>{"use strict";i.r(n)}}]);
2//# sourceMappingURL=ServerMailAntivirusPromo.js.map?d8df02745e28aa45f8ec

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.