"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/admin/dns/external-dns-edit"],{1155:(e,s,t)=>{t.r(s),t.d(s,{default:()=>u});var n=t(287),i=t.n(n),r=t(286),l=t(89),a=t(645),d=t(285);const o=({items:e})=>e&&e.length>1?(0,d.jsx)(r.Tabs,{active:e.findIndex((({containerCls:e})=>"active"===e))+1,children:e.map((({title:e,href:s},t)=>(0,d.jsx)(r.Tab,{title:e,component:a.default,to:(0,l.prepareUrl)(s)},t)))}):null;o.propTypes={items:i().arrayOf(i().shape({title:i().string.isRequired,href:i().string.isRequired,containerCls:i().string}))};const u=o},1899:(e,s,t)=>{t.r(s),t.d(s,{default:()=>p});var n=t(1155),i=t(602),r=t(286),l=t(89),a=t(287),d=t.n(a),o=t(285);const u=l.Locale.getSection("admin.controllers.dns.external-dns"),c=()=>{document.getElementById("form-external-dns").submit()},m=({tabs:e,title:s,subform:t,isUseExtension:i,cancelUrl:a})=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.default,{items:e}),(0,o.jsx)(r.Heading,{level:2,children:s}),(0,o.jsxs)(r.Form,{id:"form-external-dns",method:"post",applyButton:!1,submitButton:{id:"btn-send"},cancelButton:{onClick:()=>{(0,l.redirect)(a)}},values:{useExtension:i},onSubmit:c,children:[(0,o.jsx)(r.FormFieldCheckbox,{name:"useExtension",label:u.lmsg("useExtension")}),(0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:t}})]})]});m.propTypes={tabs:n.default.propTypes.items.isRequired,title:d().string.isRequired,subform:d().string.isRequired,isUseExtension:d().bool.isRequired,cancelUrl:d().string.isRequired};const p=(0,i.withPageLayout)(m)},1898:(e,s,t)=>{t.r(s),t.d(s,{default:()=>n.default});var n=t(1899)}}]);
//# sourceMappingURL=external-dns-edit.js.map?f60347c954f5edb98b89