(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/server/logo"],{1123:(e,t,l)=>{"use strict";l.r(t);var a=l(154),n=l(261),o=l.n(n),c=l(155);const i=(e,{locale:t})=>{const[l,n]=(0,a.useState)(e.customTitle),[o,i]=(0,a.useState)(""===e.customTitle),[r,m]=(0,a.useState)(e.logoLink),[u,s]=(0,a.useState)(""!==e.logoLink),d=({target:e})=>{const t="true"===e.value;s(t),t&&document.getElementById("fid-logo_link").focus()};return window.update_oC=e=>!u||""!==r&&chk_url(r)?(e.cmd.value="update",lsubmit(e),!1):(alert(t.lmsg("linkUrlIsInvalid")),e.logo_link.focus(),!1),window.def_logo_oC=e=>(e.cmd.value="def_logo",lsubmit(e),!1),(0,a.createElement)(a.Fragment,null,(0,a.createElement)(c.Paragraph,null,(0,a.createElement)(c.Translate,{content:"description"})),(0,a.createElement)(c.Section,{title:(0,a.createElement)(c.Translate,{content:"customTitleLegend"})},(0,a.createElement)(c.SectionItem,{title:(0,a.createElement)("label",{htmlFor:"fid-custom_title"},(0,a.createElement)(c.Translate,{content:"customTitleText"}))},(0,a.createElement)("input",{name:"custom_title",id:"fid-custom_title",type:"text",size:"40",maxLength:"255",disabled:o,value:l,onChange:({target:e})=>{n(e.value)}})," ",(0,a.createElement)("input",{type:"checkbox",className:"checkbox",name:"custom_title_default",id:"fid-custom_title_default",value:"true",checked:o,onChange:({target:e})=>{i(e.checked),e.checked||document.getElementById("fid-custom_title").focus()}})," ",(0,a.createElement)("label",{htmlFor:"fid-custom_title_default"},(0,a.createElement)(c.Translate,{content:"customTitleDefaultText"})))),(0,a.createElement)(c.Section,{title:(0,a.createElement)(c.Translate,{content:"logoLegend"})},(0,a.createElement)(c.SectionItem,{title:(0,a.createElement)("label",{htmlFor:"fid-logo_file"},(0,a.createElement)(c.Translate,{content:"fileText"}))},(0,a.createElement)("input",{name:"logo_file",id:"fid-logo_file",type:"file",size:"25"})),(0,a.createElement)(c.SectionItem,{title:(0,a.createElement)(c.Translate,{content:"urlText"})},(0,a.createElement)("div",{className:"option"},(0,a.createElement)("input",{name:"url_enabled",id:"fid-url_enabled-true",type:"radio",className:"radiobox",value:"false",checked:!u,onChange:d})," ",(0,a.createElement)("label",{htmlFor:"fid-url_enabled-true"},(0,a.createElement)(c.Translate,{content:"urlDisabledText"}))),(0,a.createElement)("div",{className:"option"},(0,a.createElement)("input",{name:"url_enabled",id:"fid-url_enabled-false",type:"radio",className:"radiobox",value:"true",checked:u,onChange:d})," ",(0,a.createElement)("label",{htmlFor:"fid-url_enabled-false"},(0,a.createElement)(c.Translate,{content:"urlEnabledText"}))," ",(0,a.createElement)("input",{name:"logo_link",id:"fid-logo_link",type:"text",size:"25",maxLength:"245",value:r,onChange:({target:e})=>{m(e.value)},disabled:!u})))))};i.propTypes={customTitle:o().string.isRequired,logoLink:o().string.isRequired},i.contextTypes={locale:o().object},t.default=i}}]);
//# sourceMappingURL=logo.js.map?067f0b95fd586ac82680