D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
local
/
psa
/
admin
/
cp
/
public
/
javascript
/
views
/
dns
/
Filename :
records.js
back
Copy
(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/dns/records"],{1411:(e,n,t)=>{"use strict";t.r(n),t.d(n,{SORT_ASC:()=>c,SORT_DESC:()=>m,default:()=>g});var i=t(285),a=t(596),s=t.n(a),o=t(286),r=t(89);const d=r.Locale.getTranslate("components.list"),l=r.Locale.getSection("components.list"),c="ASC",m="DESC",u="all",f={set(e,n){localStorage.setItem(e,JSON.stringify(n))},get(e){const n=localStorage.getItem(e);return JSON.parse(n)}},p=e=>`list-sort_${e}`,v=e=>`list-page_${e}`,k=({id:e,data:n,columns:t,itemsPerPage:a=25,itemsPerPageOptions:s=[10,25,100,u],sortColumn:r,sortDirection:m=c,searchField:k,locale:g={},emptyView:S,emptyFilteredView:h,toolbar:y,selection:b=[],onSelectionChange:N,searchBarInputProps:x,rowKey:D="key",useStorage:j=!0,...F})=>{const{sortColumn:T,sortDirection:w,setSortState:P}=((e,{sortColumn:n,sortDirection:t})=>{const[{sortColumn:a,sortDirection:s},o]=(0,i.useState)({sortColumn:f.get(p(e))?.sortColumn??n,sortDirection:f.get(p(e))?.sortDirection??t});return{sortColumn:a,sortDirection:s,setSortState:n=>{o((e=>({...e,...n}))),f.set(p(e),{...f.get(p(e)),...n})}}})(e,{sortColumn:r??t.find((({sortable:e})=>e))?.key,sortDirection:m}),{page:E,itemsPerPage:C,searchPattern:O,setPageState:V}=((e,{itemsPerPage:n},t=!0)=>{const a=t?{page:f.get(v(e))?.page,itemsPerPage:f.get(v(e))?.itemsPerPage,searchPattern:f.get(v(e))?.searchPattern}:{},[{page:s,itemsPerPage:o,searchPattern:r},d]=(0,i.useState)({page:a.page??1,itemsPerPage:a.itemsPerPage??n,searchPattern:a.searchPattern??""});return{page:s,itemsPerPage:o,searchPattern:r,setPageState:n=>{d((e=>({...e,...n}))),t&&f.set(v(e),{...f.get(v(e)),...n})}}})(e,{itemsPerPage:s.includes(a)?a:s[0]},j),z=(0,i.useMemo)((()=>O?h??(0,i.jsx)(o.ListEmptyView,{reason:"filtered",title:(0,i.jsx)(d,{content:"emptyViewFilteredTitle"}),description:(0,i.jsx)(d,{content:"emptyViewFilteredDescription"}),"data-testid":"list-empty-view-filtered"}):S??(0,i.jsx)(o.ListEmptyView,{title:(0,i.jsx)(d,{content:"emptyViewTitle"})})),[O,S,h]),L=(0,i.useMemo)((()=>t.map((({sortDataField:e,...n})=>n))),[t]),M=(0,i.useMemo)((()=>k&&O?n.filter((e=>(Array.isArray(k)?k:[k]).some((n=>e[n]&&String(e[n]).toLowerCase().includes(O.toLowerCase()))))):n),[n,O,k]),R=(0,i.useMemo)((()=>{if(!T)return M;const e=t.find((({key:e})=>e===T))?.sortDataField??T,n=t.find((({key:e})=>e===T))?.sort??((n,t)=>n[e]<t[e]?-1:n[e]>t[e]?1:0);return[...M].sort(((e,t)=>c===w?n(e,t):n(t,e)))}),[M,T,w,t]),q=(0,i.useMemo)((()=>{if(C===u)return R;const e=C*(E-1),n=e+C;return R.slice(e,n)}),[E,R,C]),H=(0,i.useCallback)((e=>{V({searchPattern:e}),e!==O&&V({page:1})}),[O]),B=(0,i.useCallback)((e=>{V({itemsPerPage:e});(e===u?1:Math.ceil(M.length/e))<E&&V({page:1})}),[M.length,E]);return(0,i.useEffect)((()=>{if("function"==typeof N&&b.length){const e=M.map((e=>{return n=e,"function"==typeof(t=D)?t(n):n[t];var n,t})).filter((e=>b.includes(e)));N(e)}}),[M]),(0,i.jsx)(o.List,{pagination:(0,i.jsx)(o.Pagination,{current:E,total:C===u?1:Math.ceil(M.length/C),onSelect:e=>V({page:e}),itemsPerPage:C,itemsPerPageOptions:s,onItemsPerPageChange:B}),toolbar:(y||k)&&(0,i.jsxs)(o.Toolbar,{children:[y,k&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.ToolbarExpander,{}),(0,i.jsx)(o.ToolbarGroup,{title:"",children:(0,i.jsx)(o.SearchBar,{inputProps:{placeholder:l.lmsg("searchPlaceholder"),"data-testid":"list-searchbar",value:O,...x??{}},onTyping:H})})]})]}),totalRows:M.length,sortColumn:T,sortDirection:w,onSortChange:P,columns:L,data:q,filtered:!!O,locale:{totalRows:({totalRows:e})=>l.formatMessage("recordsTotal",{total:e}),...g},emptyView:z,onSelectionChange:N,selection:b,rowKey:D,...F})};k.propTypes={id:s().string.isRequired,data:s().array.isRequired,columns:s().array.isRequired,itemsPerPage:s().number,itemsPerPageOptions:s().array,sortColumn:s().string,sortDirection:s().string,searchField:s().oneOfType([s().string,s().arrayOf(s().string.isRequired)]),locale:s().object,emptyView:s().node,emptyFilteredView:s().node,toolbar:s().node,onSelectionChange:s().func,selection:s().array,rowKey:s().oneOfType([s().string,s().func]),searchBarInputProps:s().object,useStorage:s().bool};const g=k},2268:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>P});var i=t(285),a=t(586),s=t(628),o=t(286),r=t(580),d=t(1411),l=t(603),c=t(89),m=t(2269),u=t(2271),f=t(536),p=t(646),v=t(1232),k=t.n(v),g=t(2272),S=t.n(g),h=t(2273),y=t.n(h),b=t(2274),N=t.n(b),x=t(2275),D=t.n(x),j=t(2276),F=t(335);const T=c.Locale.getTranslate("smb.components.lists.dnsrecords"),w=c.Locale.getSection("smb.components.lists.dnsrecords"),P=(0,l.withPageLayout)((()=>{const{data:{os:{isUnix:e},dns:{template:{templateNotSynchronized:n,soaTemplateNotSynchronized:t,isExternalDnsEnabled:l,isEnabled:c,records:v}={}}}}=(0,a.useQuery)(k()),[g,{loading:h}]=(0,s.useMutation)(y(),{onError({message:e}){(0,f.addToast)({intent:"danger",message:e})}}),[b,{loading:x}]=(0,s.useMutation)(S()),[F,{loading:P}]=(0,s.useMutation)(N()),[E,{loading:C}]=(0,s.useMutation)(D()),[O,V]=(0,i.useState)([]),z=(0,i.useCallback)((()=>{b({variables:{enable:!0}})}),[b]),L=(0,i.useCallback)((()=>{b({variables:{enable:!1}})}),[b]),M=(0,i.useCallback)(((e=!1)=>{e?E():F()}),[F,E]),R=(0,i.useCallback)((()=>{g({variables:{ids:O}})}),[g,O]),q=(0,i.useMemo)((()=>(0,i.jsx)(o.ToolbarGroup,{title:"",children:(0,i.jsx)(o.Button,{"data-type":"add-dns-record",component:p.default,to:"/cp/dns/records/add",icon:"plus",intent:"primary",children:(0,i.jsx)(T,{content:"addRecord"})})})),[]),H=(0,i.useMemo)((()=>(0,i.jsxs)(i.Fragment,{children:[q,(0,i.jsxs)(o.ToolbarGroup,{title:w.lmsg("moreActions"),children:[c?(0,i.jsx)(o.Button,{"data-type":"dns-disable",state:x?"loading":void 0,onClick:L,children:(0,i.jsx)(T,{content:"turnOff"})}):(0,i.jsx)(o.Button,{"data-type":"dns-enable",state:x?"loading":void 0,onClick:z,children:(0,i.jsx)(T,{content:"turnOn"})}),(0,i.jsx)(o.Button,{component:p.default,to:"/cp/dns/records/dns-restore","data-type":"dns-restore-default",disabled:!c,children:(0,i.jsx)(T,{content:"restoreDefault"})}),e?(0,i.jsx)(o.Button,{component:p.default,to:"/cp/dns/records/dns-zone-sync","data-type":"dns-zone-sync",children:(0,i.jsx)(T,{content:"syncZoneFrom"})}):null]}),(0,i.jsx)(o.ToolbarGroup,{title:"",children:(0,i.jsx)(o.ListOperation,{critical:!0,confirmationText:e=>e.selectedRowTitle?(0,i.jsx)(T,{content:"removeRecord",params:e}):(0,i.jsx)(T,{content:"removeRecords",params:e}),actionButtonText:w.lmsg("remove"),children:(0,i.jsx)(o.Button,{"data-type":"dns-remove",disabled:!O.length,state:h?"loading":void 0,onClick:R,children:(0,i.jsx)(T,{content:"remove"})})})})]})),[q,c,x,L,z,e,O.length,h,R]),B=(0,i.useMemo)((()=>c?[{key:"displayHost",title:(0,i.jsx)(T,{content:"host"}),sortable:!0,type:"title",render:({displayHost:e,id:n})=>(0,i.jsx)(p.default,{to:`/cp/dns/records/${n}/edit`,children:e})},{key:"ttl",title:(0,i.jsx)(T,{content:"ttl"}),sortable:!0},{key:"type",title:(0,i.jsx)(T,{content:"type"}),sortable:!0,render:({type:e,opt:n})=>{switch(e){case"MX":return`${e} (${n})`;case"CAA":return`${e} (${n.split(" ").at(-1)})`;default:return e}}},{key:"displayVal",title:(0,i.jsx)(T,{content:"value"}),sortable:!0}]:[{key:"displayVal",type:"title",title:(0,i.jsx)(T,{content:"nameServer"}),render:({displayVal:e,id:n})=>(0,i.jsx)(p.default,{to:`${n}/edit`,children:e})}]),[c]),Z=(0,i.useMemo)((()=>c?["displayVal","displayHost","ttl","type"]:"displayVal"),[c]);return(0,i.jsxs)(i.Fragment,{children:[n&&!P?(0,i.jsx)(o.StatusMessage,{intent:"warning",onClose:()=>M(),children:(0,i.jsx)(T,{content:"templateNotSynchronized",params:{link:(0,i.jsx)(p.default,{to:"/cp/dns/records/dns-zone-sync",children:(0,i.jsx)(T,{content:"templateNotSynchronizedLinkText"})})}})}):null,t&&!C?(0,i.jsx)(o.StatusMessage,{intent:"warning",onClose:()=>M(!0),children:(0,i.jsx)(T,{content:"soaTemplateNotSynchronized",params:{link:(0,i.jsx)(p.default,{to:"/cp/dns/records/dns-soa-zone-sync",children:(0,i.jsx)(T,{content:"templateNotSynchronizedLinkText"})})}})}):null,(0,i.jsx)(j.default,{dnsEnabled:c,isExternalDnsEnabled:l}),!v.length&&(0,i.jsx)(o.Toolbar,{children:q}),(0,i.jsx)(d.default,{id:"dns-records-list",rowKey:"id",itemsPerPage:25,searchField:Z,searchBarInputProps:{placeholder:w.lmsg("search")},selection:O,columns:B,data:v,toolbar:H,onSelectionChange:e=>V(e)}),(0,i.jsx)(m.default,{}),(0,i.jsx)(u.default,{}),(0,i.jsx)(r.Outlet,{})]})}),(e=>{const{showFrames:n,pageHeader:t,pageSidebar:i}=(0,F.default)();return{...e,showFrames:n,pageHeader:{...t,helpMenu:{...t.helpMenu,helpContext:"dns.records"}},pageSidebar:i,pageContentHeader:{breadcrumbs:[i.isPowerUserPanel?null:{title:c.Locale.getSection("components.pages.home").lmsg("title"),href:"/admin/home/"},{title:c.Locale.getSection("admin.controllers.server.tools").lmsg("title"),href:"/admin/server/tools/"},{title:c.Locale.getSection("components.pages.dns").lmsg("title"),href:"/cp/dns/"},{title:c.Locale.getSection("components.pages.dns-records").lmsg("title"),href:"/cp/dns/records/"}].filter(Boolean),tabs:[],tabsHasRootPage:!0}}}))},2271:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var i=t(1120),a=t(628),s=t(580),o=t(286),r=t(89),d=t(285);const l=r.Locale.getTranslate("admin.controllers.dns.soa-sync"),c=i.gql` mutation SyncDnsSoaZone { syncDnsSoaZone { task { id } query { dns { template { soaTemplateNotSynchronized } } } } } `,m=()=>{const e=(0,s.useNavigate)(),n=(0,s.useMatch)("/cp/dns/records/dns-soa-zone-sync"),[t,{loading:i}]=(0,a.useMutation)(c),r=()=>e("..");return(0,d.jsx)(o.Dialog,{dataType:"dns-zone-soa-sync",size:"sm",isOpen:n,onClose:r,title:(0,d.jsx)(l,{content:"title"}),form:{applyButton:!1,onSubmit:async()=>{await t(),r()},onSuccess:r,submitButton:{state:i?"loading":void 0,"data-type":"dns-zone-soa-apply"}},children:(0,d.jsx)(o.Paragraph,{children:(0,d.jsx)(l,{content:"title"})})})}},2269:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var i=t(286),a=t(89),s=t(628),o=t(580),r=t(2270),d=t.n(r),l=t(285);const c=a.Locale.getTranslate("admin.controllers.dns.restore-default"),m=()=>{const e=(0,o.useNavigate)(),n=(0,o.useMatch)("/cp/dns/records/dns-restore"),[t,{loading:a}]=(0,s.useMutation)(d());return(0,l.jsx)(i.Dialog,{size:"sm",isOpen:n,onClose:()=>e(".."),title:(0,l.jsx)(c,{content:"title"}),form:{onSubmit:async()=>{await t(),e("..")},submitButton:{state:a?"loading":void 0,"data-type":"dns-restore-submit"}},children:(0,l.jsx)(i.Paragraph,{children:(0,l.jsx)(c,{content:"text"})})})}},2267:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(2268)},2276:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var i=t(286),a=t(285),s=t(596),o=t.n(s),r=t(646),d=t(89),l=t(580);const c=d.Locale.getTranslate("admin.controllers.dns"),m=({dnsEnabled:e,isExternalDnsEnabled:n=!1})=>{const t=(0,l.useLocation)(),s=(0,a.useMemo)((()=>[{title:(0,a.jsx)(c,{content:"records.title"}),to:"/cp/dns/records"},e?{title:(0,a.jsx)(c,{content:"soa-record.title"}),to:"/cp/dns/soa-record"}:null,{title:(0,a.jsx)(c,{content:"acl-records.title"}),to:"/admin/dns/acl-records"},{title:(0,a.jsx)(c,{content:"settings.title"}),to:"/admin/dns/settings"},n?{title:(0,a.jsx)(c,{content:"external-dns.title"}),to:"/admin/dns/external-dns"}:null].filter((e=>e))),[e,n]),o=(0,a.useMemo)((()=>s.findIndex((({to:e})=>t.pathname===e))+1),[t.pathname,s]);return(0,a.jsx)(i.Tabs,{active:o,children:s.map(((e,n)=>(0,a.jsx)(i.Tab,{title:e.title,component:r.default,to:e.to},n)))})};m.propTypes={dnsEnabled:o().bool.isRequired,isExternalDnsEnabled:o().bool};const u=m},2273:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteDnsTemplateRecord"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ids"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteDnsTemplateRecord"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"ids"},value:{kind:"Variable",name:{kind:"Name",value:"ids"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"query"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dns"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"template"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"records"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"host"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"val"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ttl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayHost"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayVal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"domainName"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:511}};n.loc.source={body:"mutation DeleteDnsTemplateRecord($ids: [ID!]!) {\n deleteDnsTemplateRecord(input: { ids: $ids }) {\n query {\n dns {\n template {\n records {\n id\n type\n host\n val\n ttl\n displayHost\n displayVal\n domainName\n }\n }\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){t(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){t(e,n)})),e.definitions&&e.definitions.forEach((function(e){t(e,n)}))}var i={};function a(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}n.definitions.forEach((function(e){if(e.name){var n=new Set;t(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.DeleteDnsTemplateRecord=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var s=i[n]||new Set,o=new Set,r=new Set;for(s.forEach((function(e){r.add(e)}));r.size>0;){var d=r;r=new Set,d.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(n){var i=a(e,n);i&&t.definitions.push(i)})),t}(n,"DeleteDnsTemplateRecord")},2275:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"HideDnsSyncSoaWarning"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hideDnsSoaTemplateWarning"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"query"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dns"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"template"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"soaTemplateNotSynchronized"},arguments:[],directives:[]}]}}]}}]}}]}}]}}],loc:{start:0,end:223}};n.loc.source={body:"mutation HideDnsSyncSoaWarning {\n hideDnsSoaTemplateWarning {\n query {\n dns {\n template {\n soaTemplateNotSynchronized\n }\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){t(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){t(e,n)})),e.definitions&&e.definitions.forEach((function(e){t(e,n)}))}var i={};function a(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}n.definitions.forEach((function(e){if(e.name){var n=new Set;t(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.HideDnsSyncSoaWarning=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var s=i[n]||new Set,o=new Set,r=new Set;for(s.forEach((function(e){r.add(e)}));r.size>0;){var d=r;r=new Set,d.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(n){var i=a(e,n);i&&t.definitions.push(i)})),t}(n,"HideDnsSyncSoaWarning")},2274:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"HideDnsSyncWarning"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hideDnsTemplateWarning"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"query"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dns"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"template"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"templateNotSynchronized"},arguments:[],directives:[]}]}}]}}]}}]}}]}}],loc:{start:0,end:214}};n.loc.source={body:"mutation HideDnsSyncWarning {\n hideDnsTemplateWarning {\n query {\n dns {\n template {\n templateNotSynchronized\n }\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){t(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){t(e,n)})),e.definitions&&e.definitions.forEach((function(e){t(e,n)}))}var i={};function a(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}n.definitions.forEach((function(e){if(e.name){var n=new Set;t(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.HideDnsSyncWarning=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var s=i[n]||new Set,o=new Set,r=new Set;for(s.forEach((function(e){r.add(e)}));r.size>0;){var d=r;r=new Set,d.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(n){var i=a(e,n);i&&t.definitions.push(i)})),t}(n,"HideDnsSyncWarning")},2270:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RestoreDnsTemplateZone"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"restoreDnsTemplateZone"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"query"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dns"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"template"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"records"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"host"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"val"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ttl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayHost"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayVal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"domainName"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:473}};n.loc.source={body:"mutation RestoreDnsTemplateZone {\n restoreDnsTemplateZone {\n query {\n dns {\n template {\n records {\n id\n type\n host\n val\n ttl\n displayHost\n displayVal\n domainName\n }\n }\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){t(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){t(e,n)})),e.definitions&&e.definitions.forEach((function(e){t(e,n)}))}var i={};function a(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}n.definitions.forEach((function(e){if(e.name){var n=new Set;t(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.RestoreDnsTemplateZone=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var s=i[n]||new Set,o=new Set,r=new Set;for(s.forEach((function(e){r.add(e)}));r.size>0;){var d=r;r=new Set,d.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(n){var i=a(e,n);i&&t.definitions.push(i)})),t}(n,"RestoreDnsTemplateZone")},2272:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ToggleDnsZone"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"enable"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"toggleDnsTemplateZone"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"enable"},value:{kind:"Variable",name:{kind:"Name",value:"enable"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"query"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dns"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"template"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"templateNotSynchronized"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"soaTemplateNotSynchronized"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"records"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"host"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"val"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ttl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayHost"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayVal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"domainName"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:632}};n.loc.source={body:"mutation ToggleDnsZone($enable: Boolean!) {\n toggleDnsTemplateZone(input: { enable: $enable }) {\n query {\n dns {\n template {\n templateNotSynchronized\n soaTemplateNotSynchronized\n isEnabled\n records {\n id\n type\n host\n val\n ttl\n displayHost\n displayVal\n domainName\n }\n }\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){t(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){t(e,n)})),e.definitions&&e.definitions.forEach((function(e){t(e,n)}))}var i={};function a(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}n.definitions.forEach((function(e){if(e.name){var n=new Set;t(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.ToggleDnsZone=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var s=i[n]||new Set,o=new Set,r=new Set;for(s.forEach((function(e){r.add(e)}));r.size>0;){var d=r;r=new Set,d.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(n){var i=a(e,n);i&&t.definitions.push(i)})),t}(n,"ToggleDnsZone")}}]); //# sourceMappingURL=records.js.map?b918a105c4b5890e80d8