"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["views/smb/dns-zone/external-dns-edit"],{1722(e,s,t){t.r(s),t.d(s,{default:()=>u});var n=t(786),i=t.n(n),r=t(397),l=t(95),a=t(831),o=t(396);const d=({items:e})=>e&&e.length>1?(0,o.jsx)(r.Tabs,{active:e.findIndex(({containerCls:e})=>"active"===e)+1,children:e.map(({title:e,href:s},t)=>(0,o.jsx)(r.Tab,{title:e,component:a.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}))};const u=d},2439(e,s,t){t.r(s),t.d(s,{default:()=>p});var n=t(1722),i=t(800),r=t(397),l=t(95),a=t(786),o=t.n(a),d=t(396);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:a})=>(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)(a)}},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:o().string.isRequired,subform:o().string.isRequired,isUseExtension:o().bool.isRequired,cancelUrl:o().string.isRequired};const p=(0,i.withPageLayout)(m)},2438(e,s,t){t.r(s),t.d(s,{default:()=>n.default});var n=t(2439)}}]);
//# sourceMappingURL=external-dns-edit.js.map?2584ac3ea46966b17d4b