1import{O as l,j as e,f as a,g as c}from"./vendor-DeV7P-Bw.js";import{D as d,a as g,c as x,d as y}from"./dialog-C5MnorCo.js";import{F as p,L as u,D as j,E as v}from"./fieldset-eHQgBk9S.js";import{T as h}from"./textarea-BAy4QD4D.js";import{B as n}from"./app-CwxIMSoo.js";import{d as f}from"./index-Dm57oINB.js";import"./ToastProvider-D8cTivyB.js";/* empty css */const _=({domain:t,open:i,onClose:r})=>{const s=l({name_servers:""}),m=()=>{s.post(f.nameservers.update(t).url,{onSuccess:o=>{r(),s.reset()}})};return e.jsxs(d,{open:i,onClose:r,size:"lg",children:[e.jsx("div",{className:"flex flex-col sm:flex-row sm:justify-between sm:items-center space-y-2 sm:space-y-0 mb-6",children:e.jsx(a,{$as:g,$fileKey:"../resources/js/Pages/Domains/Partials/NameserversChangeModal.tsx",$entryKey:"9/declaration/0/init/body/2/argument/1/1"})}),e.jsx(x,{children:e.jsx("form",{children:e.jsxs(p,{children:[e.jsx(a,{$as:u,$fileKey:"../resources/js/Pages/Domains/Partials/NameserversChangeModal.tsx",$entryKey:"9/declaration/0/init/body/2/argument/3/1/1/1"}),e.jsx(c,{name:"name_servers",rows:3,placeholder:"ns1.example.com, ns2.example.com, ns3.example.com...",value:s.data.name_servers,onChange:o=>s.setData("name_servers",o.target.value),invalid:!!s.errors.name_servers,$attrAs:h,$fileKey:"../resources/js/Pages/Domains/Partials/NameserversChangeModal.tsx",$attributes:{placeholder:"9/declaration/0/init/body/2/argument/3/1/1/3-placeholder"}}),e.jsx(a,{$as:j,$fileKey:"../resources/js/Pages/Domains/Partials/NameserversChangeModal.tsx",$entryKey:"9/declaration/0/init/body/2/argument/3/1/1/5"}),!!s.errors.name_servers&&e.jsx(v,{dangerouslySetInnerHTML:{__html:s.errors.name_servers}})]})})}),e.jsxs(y,{children:[e.jsx(a,{plain:!0,onClick:r,$as:n,$fileKey:"../resources/js/Pages/Domains/Partials/NameserversChangeModal.tsx",$entryKey:"9/declaration/0/init/body/2/argument/5/1"}),e.jsx(a,{color:"red",onClick:m,isLoading:s.processing,$as:n,$fileKey:"../resources/js/Pages/Domains/Partials/NameserversChangeModal.tsx",$entryKey:"9/declaration/0/init/body/2/argument/5/3"})]})]})};export{_ as NameserversChangeModal};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.