1(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["views/dns/records"],{1531(e,n,t){"use strict";t.r(n),t.d(n,{SORT_ASC:()=>l,SORT_DESC:()=>d,default:()=>v});var i=t(396),a=t(787),s=t.n(a),o=t(397);const r=t(95).Locale.getSection("components.list"),l="ASC",d="DESC",c="all",m={set(e,n){localStorage.setItem(e,JSON.stringify(n))},get(e){const n=localStorage.getItem(e);return JSON.parse(n)}},u=e=>`list-sort_${e}`,p=e=>`list-page_${e}`,f=({id:e,data:n,columns:t,itemsPerPage:a=25,itemsPerPageOptions:s=[10,25,100,c],sortColumn:d,sortDirection:f=l,searchField:v,locale:k={},emptyView:g,emptyFilteredView:S,toolbar:h,selection:y=[],onSelectionChange:b,searchBarInputProps:N,rowKey:D="key",useStorage:x=!0,...j})=>{const{sortColumn:F,sortDirection:T,setSortState:w}=((e,{sortColumn:n,sortDirection:t})=>{const[{sortColumn:a,sortDirection:s},o]=(0,i.useState)({sortColumn:m.get(u(e))?.sortColumn??n,sortDirection:m.get(u(e))?.sortDirection??t});return{sortColumn:a,sortDirection:s,setSortState:n=>{o(e=>({...e,...n})),m.set(u(e),{...m.get(u(e)),...n})}}})(e,{sortColumn:d??t.find(({sortable:e})=>e)?.key,sortDirection:f}),{page:P,itemsPerPage:E,searchPattern:C,setPageState:O}=((e,{itemsPerPage:n},t=!0)=>{const a=t?{page:m.get(p(e))?.page,itemsPerPage:m.get(p(e))?.itemsPerPage,searchPattern:m.get(p(e))?.searchPattern}:{},[{page:s,itemsPerPage:o,searchPattern:r},l]=(0,i.useState)({page:a.page??1,itemsPerPage:a.itemsPerPage??n,searchPattern:a.searchPattern??""});return{page:s,itemsPerPage:o,searchPattern:r,setPageState:n=>{l(e=>({...e,...n})),t&&m.set(p(e),{...m.get(p(e)),...n})}}})(e,{itemsPerPage:s.includes(a)?a:s[0]},x),V=(0,i.useMemo)(()=>C?S??(0,i.jsx)(o.ListEmptyView,{reason:"filtered","data-testid":"list-empty-view-filtered"}):g??(0,i.jsx)(o.ListEmptyView,{}),[C,g,S]),L=(0,i.useMemo)(()=>t.map(({sortDataField:e,...n})=>n),[t]),z=(0,i.useMemo)(()=>v&&C?n.filter(e=>(Array.isArray(v)?v:[v]).some(n=>e[n]&&String(e[n]).toLowerCase().includes(C.toLowerCase()))):n,[n,C,v]),M=(0,i.useMemo)(()=>{if(!F)return z;const e=t.find(({key:e})=>e===F)?.sortDataField??F,n=t.find(({key:e})=>e===F)?.sort??((n,t)=>n[e]<t[e]?-1:n[e]>t[e]?1:0);return[...z].sort((e,t)=>l===T?n(e,t):n(t,e))},[z,F,T,t]),R=(0,i.useMemo)(()=>{if(E===c)return M;const e=E*(P-1),n=e+E;return M.slice(e,n)},[P,M,E]),q=(0,i.useCallback)(e=>{O({searchPattern:e}),e!==C&&O({page:1})},[C]),H=(0,i.useCallback)(e=>{O({itemsPerPage:e});(e===c?1:Math.ceil(z.length/e))<P&&O({page:1})},[z.length,P]);return(0,i.useEffect)(()=>{if("function"==typeof b&&y.length){const e=z.map(e=>{return n=e,"function"==typeof(t=D)?t(n):n[t];var n,t}).filter(e=>y.includes(e));b(e)}},[z]),(0,i.jsx)(o.List,{pagination:(0,i.jsx)(o.Pagination,{current:P,total:E===c?1:Math.ceil(z.length/E),onSelect:e=>O({page:e}),itemsPerPage:E,itemsPerPageOptions:s,onItemsPerPageChange:H}),toolbar:(h||v)&&(0,i.jsxs)(o.Toolbar,{children:[h,v&&(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:r.lmsg("searchPlaceholder"),"data-testid":"list-searchbar",value:C,...N??{}},onTyping:q})})]})]}),totalRows:z.length,sortColumn:F,sortDirection:T,onSortChange:w,columns:L,data:R,filtered:!!C,locale:{totalRows:({totalRows:e})=>r.formatMessage("recordsTotal",{total:e}),...k},emptyView:V,onSelectionChange:b,selection:y,rowKey:D,...j})};f.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 v=f},2440(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>P});var i=t(396),a=t(810),s=t(739),o=t(397),r=t(715),l=t(1531),d=t(801),c=t(95),m=t(2441),u=t(2443),p=t(663),f=t(832),v=t(727),k=t.n(v),g=t(2444),S=t.n(g),h=t(2445),y=t.n(h),b=t(2446),N=t.n(b),D=t(2447),x=t.n(D),j=t(2448),F=t(462);const T=c.Locale.getTranslate("smb.components.lists.dnsrecords"),w=c.Locale.getSection("smb.components.lists.dnsrecords"),P=(0,d.withPageLayout)(()=>{const{data:{os:{isUnix:e},dns:{template:{templateNotSynchronized:n,soaTemplateNotSynchronized:t,isExternalDnsEnabled:d,isEnabled:c,records:v}={}}}}=(0,s.useQuery)(k()),[g,{loading:h}]=(0,a.useMutation)(y(),{onError({message:e}){(0,p.addToast)({intent:"danger",message:e})}}),[b,{loading:D}]=(0,a.useMutation)(S()),[F,{loading:P}]=(0,a.useMutation)(N()),[E,{loading:C}]=(0,a.useMutation)(x()),[O,V]=(0,i.useState)([]),L=(0,i.useCallback)(()=>{b({variables:{enable:!0}})},[b]),z=(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:f.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:D?"loading":void 0,onClick:z,children:(0,i.jsx)(T,{content:"turnOff"})}):(0,i.jsx)(o.Button,{"data-type":"dns-enable",state:D?"loading":void 0,onClick:L,children:(0,i.jsx)(T,{content:"turnOn"})}),(0,i.jsx)(o.Button,{component:f.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:f.default,to:"/cp/dns/records/dns-zone-sync","data-type":"dns-zone-sync",children:(0,i.jsx)(T,{content:"syncZ
1oneFrom"})}):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,D,z,L,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)(f.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)(f.default,{to:`${n}/edit`,children:e})}],[c]),Z=(0,i.useMemo)(()=>c?["displayVal","displayHost","ttl","type"]:"displayVal",[c]);return(0,i.jsxs)("section",{"aria-label":w.lmsg("pageTitle"),children:[n&&!P?(0,i.jsx)(o.StatusMessage,{intent:"warning",onClose:()=>M(),role:"alert","aria-live":"polite",children:(0,i.jsx)(T,{content:"templateNotSynchronized",params:{link:(0,i.jsx)(f.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),role:"alert","aria-live":"polite",children:(0,i.jsx)(T,{content:"soaTemplateNotSynchronized",params:{link:(0,i.jsx)(f.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:d}),!v.length&&(0,i.jsx)(o.Toolbar,{children:q}),(0,i.jsx)(l.default,{id:"dns-records-list","aria-label":w.lmsg("listLabel"),rowKey:"id",itemsPerPage:25,searchField:Z,searchBarInputProps:{placeholder:w.lmsg("search"),"aria-label":w.lmsg("searchAriaLabel")},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}}})},2443(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>m});var i=t(810),a=t(700),s=t(715),o=t(397),r=t(95),l=t(396);const d=r.Locale.getTranslate("admin.controllers.dns.soa-sync"),c=a.gql` 2 mutation SyncDnsSoaZone { 3 syncDnsSoaZone { 4 task { 5 id 6 } 7 query { 8 dns { 9 template { 10 soaTemplateNotSynchronized 11 } 12 } 13 } 14 } 15 } 16`,m=()=>{const e=(0,s.useNavigate)(),n=(0,s.useMatch)("/cp/dns/records/dns-soa-zone-sync"),[t,{loading:a}]=(0,i.useMutation)(c),r=()=>e("..");return(0,l.jsx)(o.Dialog,{dataType:"dns-zone-soa-sync",size:"sm",isOpen:n,onClose:r,title:(0,l.jsx)(d,{content:"title"}),"aria-describedby":"dns-soa-sync-dialog-description",form:{applyButton:!1,onSubmit:async()=>{await t(),r()},onSuccess:r,submitButton:{state:a?"loading":void 0,"data-type":"dns-zone-soa-apply"}},children:(0,l.jsx)(o.Paragraph,{id:"dns-soa-sync-dialog-description",children:(0,l.jsx)(d,{content:"title"})})})}},2441(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>m});
16var i=t(397),a=t(95),s=t(810),o=t(715),r=t(2442),l=t.n(r),d=t(396);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)(l());return(0,d.jsx)(i.Dialog,{size:"sm",isOpen:n,onClose:()=>e(".."),title:(0,d.jsx)(c,{content:"title"}),"aria-describedby":"dns-restore-dialog-description",form:{onSubmit:async()=>{await t(),e("..")},submitButton:{state:a?"loading":void 0,"data-type":"dns-restore-submit"}},children:(0,d.jsx)(i.Paragraph,{id:"dns-restore-dialog-description",children:(0,d.jsx)(c,{content:"text"})})})}},2439(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(2440)},2448(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>u});var i=t(397),a=t(396),s=t(787),o=t.n(s),r=t(832),l=t(95),d=t(715);const c=l.Locale.getTranslate("admin.controllers.dns"),m=({dnsEnabled:e,isExternalDnsEnabled:n=!1})=>{const t=(0,d.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,"aria-label":l.Locale.getSection("admin.controllers.dns").lmsg("tabsAriaLabel"),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},2445(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);
16else 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 l=r;r=new Set,l.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")},2447(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 l=r;r=new Set,l.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")},2446(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);
16else 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 l=r;r=new Set,l.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")},2442(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 l=r;r=new Set,l.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")},2444(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ToggleDnsZone"}
16,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 l=r;r=new Set,l.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")}}]); 17//# sourceMappingURL=records.js.map?2fb39afab50c324bb401
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.