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