(window.webpackJsonpPlesk=window.webpackJsonpPlesk||[]).push([["app/server/logo"],{1087:function(e,t,l){"use strict";l.r(t);var a=l(155),n=l(276),c=l.n(n),o=l(156);const i=(e,{locale:t})=>{const[l,n]=Object(a.useState)(e.customTitle),[c,i]=Object(a.useState)(""===e.customTitle),[r,m]=Object(a.useState)(e.logoLink),[s,u]=Object(a.useState)(""!==e.logoLink),d=({target:e})=>{const t="true"===e.value;u(t),t&&document.getElementById("fid-logo_link").focus()};return window.update_oC=e=>!s||""!==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),Object(a.createElement)(a.Fragment,null,Object(a.createElement)(o.Paragraph,null,Object(a.createElement)(o.Translate,{content:"description"})),Object(a.createElement)(o.Section,{title:Object(a.createElement)(o.Translate,{content:"customTitleLegend"})},Object(a.createElement)(o.SectionItem,{title:Object(a.createElement)("label",{htmlFor:"fid-custom_title"},Object(a.createElement)(o.Translate,{content:"customTitleText"}))},Object(a.createElement)("input",{name:"custom_title",id:"fid-custom_title",type:"text",size:"40",maxLength:"255",disabled:c,value:l,onChange:({target:e})=>{n(e.value)}})," ",Object(a.createElement)("input",{type:"checkbox",className:"checkbox",name:"custom_title_default",id:"fid-custom_title_default",value:"true",checked:c,onChange:({target:e})=>{i(e.checked),e.checked||document.getElementById("fid-custom_title").focus()}})," ",Object(a.createElement)("label",{htmlFor:"fid-custom_title_default"},Object(a.createElement)(o.Translate,{content:"customTitleDefaultText"})))),Object(a.createElement)(o.Section,{title:Object(a.createElement)(o.Translate,{content:"logoLegend"})},Object(a.createElement)(o.SectionItem,{title:Object(a.createElement)("label",{htmlFor:"fid-logo_file"},Object(a.createElement)(o.Translate,{content:"fileText"}))},Object(a.createElement)("input",{name:"logo_file",id:"fid-logo_file",type:"file",size:"25"})),Object(a.createElement)(o.SectionItem,{title:Object(a.createElement)(o.Translate,{content:"urlText"})},Object(a.createElement)("div",{className:"option"},Object(a.createElement)("input",{name:"url_enabled",id:"fid-url_enabled-true",type:"radio",className:"radiobox",value:"false",checked:!s,onChange:d})," ",Object(a.createElement)("label",{htmlFor:"fid-url_enabled-true"},Object(a.createElement)(o.Translate,{content:"urlDisabledText"}))),Object(a.createElement)("div",{className:"option"},Object(a.createElement)("input",{name:"url_enabled",id:"fid-url_enabled-false",type:"radio",className:"radiobox",value:"true",checked:s,onChange:d})," ",Object(a.createElement)("label",{htmlFor:"fid-url_enabled-false"},Object(a.createElement)(o.Translate,{content:"urlEnabledText"}))," ",Object(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:!s})))))};i.propTypes={customTitle:c.a.string.isRequired,logoLink:c.a.string.isRequired},i.contextTypes={locale:c.a.object},t.default=i}}]);
//# sourceMappingURL=logo.js.map?6e1282bcc8a82bbf30e2