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