(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/smb/email-address/index"],{901:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>d});var i=t(218),n=t.n(i),a=t(217),r=t(96),l=t(502),c=t(216);const o=({items:e})=>e&&e.length>1?(0,c.jsx)(a.Tabs,{active:e.findIndex((({containerCls:e})=>"active"===e))+1,children:e.map((({title:e,href:s},t)=>(0,c.jsx)(a.Tab,{title:e,component:l.default,to:(0,r.prepareUrl)(s)},t)))}):null;o.propTypes={items:n().arrayOf(n().shape({title:n().string.isRequired,href:n().string.isRequired,containerCls:n().string}))},o.defaultProps={items:void 0};const d=o},1085:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>p});var i=t(218),n=t.n(i),a=t(217),r=t(96),l=t(901),c=t(765),o=t(216);const d=r.Locale.getTranslate("smb.controllers.email-address.index"),m=({tabs:e,webmailUrl:s,mailId:i,mailName:n})=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.default,{items:e}),(0,o.jsx)("p",{children:(0,o.jsx)(d,{content:"buttonsAreaDescription"})}),(0,o.jsxs)(a.ItemList,{minColumnWidth:280,gap:"md",children:[s?(0,o.jsx)(a.Item,{component:"a",icon:(0,o.jsx)(a.Icon,{src:t(1086)}),title:(0,o.jsx)(d,{content:"buttonWebmail"}),description:(0,o.jsx)(d,{content:"hintWebmail"}),href:s,target:"_blank"}):null,(0,o.jsx)(a.Item,{component:"a",icon:(0,o.jsx)(a.Icon,{src:t(1012)}),title:(0,o.jsx)(d,{content:"buttonEmailAddressSettings"}),description:(0,o.jsx)(d,{content:"hintEmailAddressSettings"}),href:`/smb/email-address/edit/id/${i}/`}),(0,o.jsx)(a.Item,{icon:(0,o.jsx)(a.Icon,{src:t(1011)}),title:(0,o.jsx)(d,{content:"buttonConfigureMailApplication"}),description:(0,o.jsx)(d,{content:"hintConfigureMailApplication"}),onClick:()=>{Plesk.require("app/email-address/configure-client",(e=>{e({mailName:n,mailId:i,getConfigurationUrl:"/smb/email-address/configuration"})}))}})]})]});m.propTypes={tabs:l.default.propTypes.items,webmailUrl:n().string.isRequired,mailId:n().string.isRequired,mailName:n().string.isRequired},m.defaultProps={tabs:[]};const p=(0,c.withPageLayout)(m)},1084:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>i.default});var i=t(1085)},1011:e=>{e.exports=Jsw.skinUrl+"/icons/32/plesk/manage.png?9fce3fccefdab269fb4a897f91509b5d"},1012:e=>{e.exports=Jsw.skinUrl+"/icons/32/plesk/preferences.png?3e21b876f5b895bcb4c400b77821ca53"},1086:e=>{e.exports=Jsw.skinUrl+"/icons/32/plesk/web-mail.png?95c60e9a85dec6cabd3a404f9cb02f14"}}]);
//# sourceMappingURL=index.js.map?6ba310f48734d6e95708