1(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["views/smb/dns-zone/records-list"],{2473(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>v});var t=i(396),s=i(397),a=i(95),r=i(2474),d=i(787),o=i.n(d),l=i(739),c=i(2476),u=i.n(c);const m=a.Locale.getTranslate("smb.components.dns-helper"),p=({id:e,isAlias:n=!1,...i})=>{const[a,d]=(0,t.useState)(!1),{loading:o,data:c,error:p}=(0,l.useQuery)(u(),{variables:{id:btoa(`${n?"DomainAlias":"Domain"}:${e}`)}});return o||p||c.node.isResolvable?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s.StatusMessage,{intent:"warning",children:[(0,t.jsx)(s.Paragraph,{children:(0,t.jsx)(m,{content:"domainUnresolvedMessage"})}),(0,t.jsx)(s.Paragraph,{children:(0,t.jsx)(m,{content:"warningActionMessage",params:{warningActionLink:(0,t.jsx)(s.Text,{bold:!0,children:(0,t.jsx)(s.Link,{onClick:()=>d(!0),children:(0,t.jsx)(m,{content:"warningActionLink"})})})}})}),(0,t.jsx)("br",{}),(0,t.jsx)(s.Text,{italic:!0,children:(0,t.jsx)(m,{content:"changesLagWarning"})})]}),(0,t.jsx)(r.default,{isOpen:a,onClose:()=>d(!1),id:e,isAlias:n,...i})]})};p.propTypes={id:o().number.isRequired,isAlias:o().bool};const v=p},2474(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>v});var t=i(397),s=i(396),a=i(787),r=i.n(a),d=i(95),o=i(739),l=i(663),c=i(2475),u=i.n(c);const m=d.Locale.getTranslate("smb.components.dns-helper"),p=({isOpen:e,onClose:n,id:i,howToVideoUrl:a,isAlias:r=!1})=>{const{loading:d,data:c,error:p}=(0,o.useQuery)(u(),{variables:{id:btoa(`${r?"DomainAlias":"Domain"}:${i}`)},onError:({message:e})=>{(0,l.addToast)({intent:"danger",message:e})}});if(d||p)return null;const{viewer:v,node:{name:k,domain:g,ipAddresses:f,dnsZone:h},dns:{registrars:S,extensions:y},config:{dns:{enableResolveChecking:b}},mode:{isDnsServiceSupported:x}}=c,{ipv4:j,ipv6:D}=(r?g.ipAddresses:f).reduce((e,{publicIpAddress:n,ipAddress:i})=>{const t=n||i;return e[t.includes(":")?"ipv6":"ipv4"]=t,e},{}),N=b&&x;return(0,s.jsxs)(t.Drawer,{title:(0,s.jsx)(m,{content:"drawerTitle",params:{name:k}}),size:"sm",isOpen:e,onClose:n,"data-type":"dns-helper",children:[N?(0,s.jsxs)(s.Fragment,{children:[(()=>{if(!h)return null;const{nsRecords:e,aRecords:n}=h,i=e.map(e=>n.find(n=>n.host===e.value)).filter(e=>!!e);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{children:(0,s.jsx)(m,{content:"pleskResolve"})}),(0,s.jsx)("p",{children:(0,s.jsx)(t.Link,{"data-action":"openHowToVideo",href:a,target:"_blank",children:(0,s.jsx)(m,{content:"howToVideoLink"})})}),(0,s.jsx)("p",{children:(0,s.jsx)(m,{content:"domainSetup0"})}),(0,s.jsxs)("ol",{children:[(0,s.jsx)("li",{children:(0,s.jsx)(m,{content:"domainSetup1"})}),i.length>0&&(0,s.jsxs)("li",{children:[(0,s.jsx)(m,{content:"domainSetup2",params:{glueLink:(0,s.jsx)(t.Link,{"data-action":"glueLink",href:"https://en.wikipedia.org/wiki/Domain_Name_System#Circular_dependencies_and_glue_records",target:"_blank",children:(0,s.jsx)("b",{children:(0,s.jsx)(m,{content:"glueRecords"})})})}}),(0,s.jsx)(t.Alert,{children:i.map(({host:e,value:n})=>(0,s.jsxs)("div",{children:[e," ",n]},e))})]}),(0,s.jsxs)("li",{children:[(0,s.jsx)("p",{children:(0,s.jsx)(m,{content:"domainSetup3"})}),(0,s.jsx)(t.Alert,{children:e.map(({value:e})=>(0,s.jsxs)("div",{children:["NS"," ",e]},e))})]})]})]})})(),(0,s.jsx)("p",{children:(0,s.jsx)(m,{content:"primaryDNS"})}),(0,s.jsx)("p",{children:(0,s.jsx)(m,{content:"forExample"})}),j?(0,s.jsxs)(t.Alert,{children:[`A @ ${j}`,(0,s.jsx)("br",{}),`A www ${j}`]}):null,D?(0,s.jsxs)(t.Alert,{children:[`AAAA @ ${D}`,(0,s.jsx)("br",{}),`AAAA www ${D}`]}):null]}):null,(0,s.jsx)(t.Paragraph,{children:(0,s.jsx)(m,{content:"chooseRegistrar"})}),(0,s.jsx)(t.Text,{italic:!0,bold:!0,children:(0,s.jsx)(t.Link,{"data-action":"chooseRegistrar",href:"https://www.icann.org/resources/pages/who-2013-05-03-en",target:"_blank",children:(0,s.jsx)(m,{content:"chooseRegistrarLink"})})}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)(t.Cuttable,{maxHeight:160,children:(0,s.jsx)(t.ItemList,{minColumnWidth:250,gap:"xs",children:S.map(({name:e,url:n})=>(0,s.jsx)(t.Item,{"data-action":e,icon:(0,s.jsx)(t.Icon,{name:"chevron-right",size:"12"}),title:(0,s.jsx)(t.Link,{href:n,target:"_blank",children:e})},e))})}),"ADMIN"===v.type&&N?(0,s.jsx)(t.Alert,{intent:"default",children:(0,s.jsxs)(t.Status,{intent:"warning",children:[(0,s.jsx)(m,{content:"adminHintTitle"}),(0,s.jsxs)("ol",{children:[(0,s.jsxs)("li",{children:[(0,s.jsx)(m,{content:"addIpOption",params:{useIpLink:(0,s.jsx)(t.Text,{bold:!0,children:(0,s.jsx)(t.Link,{"data-action":"addSecondIpGuide",href:"http://docs.plesk.com/en-US/obsidian/administrator-guide/dns/providing-redundant-dns-servers.74239/#configure-at-least-two-ip-addresses-on-your-plesk-server",target:"_blank",children:(0,s.jsx)(m,{content:"useIpLink"})})})}}),(0,s.jsx)(t.Text,{bold:!0,children:(0,s.jsx)(m,{content:"example"})}),(0,s.jsxs)("ul",{children:[(0,s.jsx)("li",{children:(0,s.jsx)(t.Text,{italic:!0,children:"ns1.example.com 123.123.123.123"})}),(0,s.jsx)("li",{children:(0,s.jsx)(t.Text,{italic:!0,children:"ns2.example.com 124.124.124.124"})})]})]}),(0,s.jsx)("li",{children:(0,s.jsx)(m,{content:"slaveDnsOption",params:{slaveExtensionLink:(0,s.jsx)(t.Text,{bold:!0,children:(0,s.jsx)(t.Link,{"data-action":"slaveDnsExtension",href:"https://www.plesk.com/extensions/slave-dns-manager/",target:"_blank",children:(0,s.jsx)(m,{content:"slaveExtensionLink"})})})}})}),(0,s.jsx)("li",{children:(0,s.jsx)(m,{content:"extensionOption",params:{extensions:(0,s.jsx)(s.Fragment,{children:y.map(({name:e,url:n},i)=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.Link,{href:n,target:"_blank","data-action":e,children:e}),i<y.length-1?", ":""]},e))})}})})]})]})}):null]})};p.propTypes={isOpen:r().bool.isRequired,onClose:r().func.isRequired,id:r().number.isRequired,howToVideoUrl:r().str
1ing.isRequired,isAlias:r().bool};const v=p},2472(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>t.default});var t=i(2473)},1531(e,n,i){"use strict";i.r(n),i.d(n,{SORT_ASC:()=>o,SORT_DESC:()=>l,default:()=>k});var t=i(396),s=i(787),a=i.n(s),r=i(397);const d=i(95).Locale.getSection("components.list"),o="ASC",l="DESC",c="all",u={set(e,n){localStorage.setItem(e,JSON.stringify(n))},get(e){const n=localStorage.getItem(e);return JSON.parse(n)}},m=e=>`list-sort_${e}`,p=e=>`list-page_${e}`,v=({id:e,data:n,columns:i,itemsPerPage:s=25,itemsPerPageOptions:a=[10,25,100,c],sortColumn:l,sortDirection:v=o,searchField:k,locale:g={},emptyView:f,emptyFilteredView:h,toolbar:S,selection:y=[],onSelectionChange:b,searchBarInputProps:x,rowKey:j="key",useStorage:D=!0,...N})=>{const{sortColumn:F,sortDirection:w,setSortState:T}=((e,{sortColumn:n,sortDirection:i})=>{const[{sortColumn:s,sortDirection:a},r]=(0,t.useState)({sortColumn:u.get(m(e))?.sortColumn??n,sortDirection:u.get(m(e))?.sortDirection??i});return{sortColumn:s,sortDirection:a,setSortState:n=>{r(e=>({...e,...n})),u.set(m(e),{...u.get(m(e)),...n})}}})(e,{sortColumn:l??i.find(({sortable:e})=>e)?.key,sortDirection:v}),{page:C,itemsPerPage:R,searchPattern:P,setPageState:A}=((e,{itemsPerPage:n},i=!0)=>{const s=i?{page:u.get(p(e))?.page,itemsPerPage:u.get(p(e))?.itemsPerPage,searchPattern:u.get(p(e))?.searchPattern}:{},[{page:a,itemsPerPage:r,searchPattern:d},o]=(0,t.useState)({page:s.page??1,itemsPerPage:s.itemsPerPage??n,searchPattern:s.searchPattern??""});return{page:a,itemsPerPage:r,searchPattern:d,setPageState:n=>{o(e=>({...e,...n})),i&&u.set(p(e),{...u.get(p(e)),...n})}}})(e,{itemsPerPage:a.includes(s)?s:a[0]},D),O=(0,t.useMemo)(()=>P?h??(0,t.jsx)(r.ListEmptyView,{reason:"filtered","data-testid":"list-empty-view-filtered"}):f??(0,t.jsx)(r.ListEmptyView,{}),[P,f,h]),I=(0,t.useMemo)(()=>i.map(({sortDataField:e,...n})=>n),[i]),V=(0,t.useMemo)(()=>k&&P?n.filter(e=>(Array.isArray(k)?k:[k]).some(n=>e[n]&&String(e[n]).toLowerCase().includes(P.toLowerCase()))):n,[n,P,k]),E=(0,t.useMemo)(()=>{if(!F)return V;const e=i.find(({key:e})=>e===F)?.sortDataField??F,n=i.find(({key:e})=>e===F)?.sort??((n,i)=>n[e]<i[e]?-1:n[e]>i[e]?1:0);return[...V].sort((e,i)=>o===w?n(e,i):n(i,e))},[V,F,w,i]),q=(0,t.useMemo)(()=>{if(R===c)return E;const e=R*(C-1),n=e+R;return E.slice(e,n)},[C,E,R]),L=(0,t.useCallback)(e=>{A({searchPattern:e}),e!==P&&A({page:1})},[P]),B=(0,t.useCallback)(e=>{A({itemsPerPage:e});(e===c?1:Math.ceil(V.length/e))<C&&A({page:1})},[V.length,C]);return(0,t.useEffect)(()=>{if("function"==typeof b&&y.length){const e=V.map(e=>{return n=e,"function"==typeof(i=j)?i(n):n[i];var n,i}).filter(e=>y.includes(e));b(e)}},[V]),(0,t.jsx)(r.List,{pagination:(0,t.jsx)(r.Pagination,{current:C,total:R===c?1:Math.ceil(V.length/R),onSelect:e=>A({page:e}),itemsPerPage:R,itemsPerPageOptions:a,onItemsPerPageChange:B}),toolbar:(S||k)&&(0,t.jsxs)(r.Toolbar,{children:[S,k&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.ToolbarExpander,{}),(0,t.jsx)(r.ToolbarGroup,{title:"",children:(0,t.jsx)(r.SearchBar,{inputProps:{placeholder:d.lmsg("searchPlaceholder"),"data-testid":"list-searchbar",value:P,...x??{}},onTyping:L})})]})]}),totalRows:V.length,sortColumn:F,sortDirection:w,onSortChange:T,columns:I,data:q,filtered:!!P,locale:{totalRows:({totalRows:e})=>d.formatMessage("recordsTotal",{total:e}),...g},emptyView:O,onSelectionChange:b,selection:y,rowKey:j,...N})};v.propTypes={id:a().string.isRequired,data:a().array.isRequired,columns:a().array.isRequired,itemsPerPage:a().number,itemsPerPageOptions:a().array,sortColumn:a().string,sortDirection:a().string,searchField:a().oneOfType([a().string,a().arrayOf(a().string.isRequired)]),locale:a().object,emptyView:a().node,emptyFilteredView:a().node,toolbar:a().node,onSelectionChange:a().func,selection:a().array,rowKey:a().oneOfType([a().string,a().func]),searchBarInputProps:a().object,useStorage:a().bool};const k=v},2471(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>k,useDnsZoneCheckDialog:()=>v});var t=i(396),s=i(787),a=i.n(s),r=i(810),d=i(700),o=i(397),l=i(95);const c=l.Locale.getTranslate("components.dialogs.dns-zone-check"),u=l.Locale.getTranslate("components.buttons"),m=d.gql` 2 mutation CheckDnsZone($id: ID!, $recordId: ID!) { 3 checkDnsZone(id: $id, recordId: $recordId) { 4 output 5 } 6 } 7`,p=({params:e,onClose:n})=>{const[i,{called:s,loading:a,data:{checkDnsZone:d}={},error:l}]=(0,r.useMutation)(m,{errorPolicy:"all"});return(0,t.useLayoutEffect)(()=>{e&&i({variables:{id:btoa(`${"domain"===e.owner.type?"Domain":"DomainAlias"}:${e.owner.id}`),recordId:e.record.id}})},[e,i]),(0,t.jsxs)(o.Dialog,{title:e?(0,t.jsx)(c,{content:"title",params:{zoneName:e.name,nameServer:e.record.ns}}):null,isOpen:Boolean(e),onClose:n,canClose:s&&!a,cancelButton:!1,buttons:!s||a?null:[(0,t.jsx)(o.Button,{intent:"primary",onClick:n,children:(0,t.jsx)(u,{content:"ok"})},"ok")],children:[(0,t.jsx)("p",{children:(0,t.jsx)(c,{content:"description"})}),!s||a?(0,t.jsx)(o.ContentLoader,{loader:{type:"icons",icons:["globe","check-mark-circle"]}}):l?(0,t.jsx)(o.StatusMessage,{intent:"danger",children:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:l.message}})}):d.output.map(e=>(0,t.jsx)(o.ConsoleOutput,{style:{minHeight:0},children:e}))]})};p.propTypes={params:a().shape({owner:a().shape({id:a().string.isRequired,type:a().string.isRequired}).isRequired,name:a().string.isRequired,record:a().shape({id:a().string.isRequired,ns:a().string.isRequired}).isRequired}),onClose:a().func.isRequired};const v=()=>{const[e,n]=(0,t.useState)(),i=(0,t.useCallback)(e=>{n(e)},[]),s=(0,t.useCallback)(()=>{n()},[]);return[(0,t.useMemo)(()=>(0,t.jsx)(p,{params:e,onClose:s}),[e,s]),i]},k=p},1674(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>c});var t=i(787),s=i.n(t),a=i(95),r=i(1675);const d={id:s().string,dataUrl:s().string,operations:s().array,itemActions:s().object,columns:s().array,data:s().shape({data:s().array,state:s().object,pager:s().object,locale:s().object,additional:s().object,pathbar:s().any}
7),searchFilters:s().object,searchOveral:s().string,disabledSelectHint:s().string,isDisabledItem:s().func,onRedraw:s().func,emptyViewMode:s().oneOf(["all","items"]),emptyView:s().any},o={id:void 0,dataUrl:void 0,operations:void 0,itemActions:void 0,columns:void 0,data:void 0,searchFilters:void 0,searchOveral:void 0,disabledSelectHint:void 0,isDisabledItem:void 0,onRedraw:void 0,emptyViewMode:void 0,emptyView:void 0},l=(0,r.default)(a.List,{propsList:Object.keys(d),defaultProps:o});l.displayName="JswList",l.propTypes=d;const c=l},1776(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>c});var t=i(787),s=i.n(t),a=i(397),r=i(95),d=i(832),o=i(396);const l=({items:e})=>e&&e.length>1?(0,o.jsx)(a.Tabs,{active:e.findIndex(({containerCls:e})=>"active"===e)+1,children:e.map(({title:e,href:n},i)=>(0,o.jsx)(a.Tab,{title:e,component:d.default,to:(0,r.prepareUrl)(n)},i))}):null;l.propTypes={items:s().arrayOf(s().shape({title:s().string.isRequired,href:s().string.isRequired,containerCls:s().string}))};const c=l},1675(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>a});var t=i(396),s=i(95);const a=(e,{propsList:n=[],setters:i={},defaultProps:a={}})=>r=>{const d=(0,t.useRef)(),o=(0,t.useRef)(),[l,c]=Object.entries({...a,...r}).reduce((e,[i,t])=>(e[n.includes(i)?0:1][i]=t,e),[{},{}]),u=n.map(e=>{const n=l[e];return i[e]?(o.current?.[i[e]](n),null):n});return(0,t.useLayoutEffect)(()=>(o.current=new e(l),(0,s.render)(d.current,o.current),()=>{o.current.remove(),o.current=null}),[c.key,...u]),(0,t.jsx)("div",{ref:d,...c})}},2470(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>F});var t=i(396),s=i(810),a=i(739),r=i(397),d=i(1531),o=i(832),l=i(801),c=i(95),u=i(2471),m=i(2472),p=i(663),v=i(787),k=i.n(v),g=i(2477),f=i.n(g),h=i(2479),S=i.n(h);i(2480);const y=c.Locale.getTranslate("smb.components.lists.dnsrecords"),b=c.Locale.getSection("smb.components.lists.dnsrecords"),x=c.Locale.getSection("components.buttons"),j=c.Locale.getSection("smb.components.lists.virtualdirectories"),D=({url:e,status:n,children:i=null})=>(0,t.jsxs)(t.Fragment,{children:["old"!==n?(0,t.jsx)(r.Icon,{className:"dns-record-status-icon",name:"exclamation-mark-circle-filled",intent:"warning"}):null,(0,t.jsx)(o.default,{to:e,className:"old"!==n?`list-item-${n}`:void 0,children:i})]});D.propTypes={url:k().string.isRequired,status:k().string.isRequired,children:k().node};const N=({tabs:e,dnsHelper:n=null,name:i,owner:l,urls:v,syncZone:k,isDnssecInstalled:g})=>{const h=`${l.type}:${l.id}`,N=btoa(`${"alias"===l.type?"DomainAlias":"Domain"}:${l.id}`),{data:F,loading:w,error:T,refetch:C}=(0,a.useQuery)(f(),{variables:{id:N}}),R=F?.node?.dnsRecordsView,P=R?.status??"master",A=R?.manageDns??!1,O=R?.isZoneCreated??!1,I=R?.hasChanges??!1,V=(0,t.useMemo)(()=>R?.warnings??[],[R?.warnings]),E=(0,t.useMemo)(()=>R?.records??[],[R?.records]),q=(0,t.useMemo)(()=>R?.customButtons??[],[R?.customButtons]),[L,B]=(0,u.useDnsZoneCheckDialog)(),[M,$]=(0,t.useState)([]),[Z,_]=(0,t.useState)(!1),[z,H]=(0,t.useState)(!1),[U,{loading:G}]=(0,s.useMutation)(S(),{onError({message:e}){(0,p.addToast)({intent:"danger",message:e})},onCompleted(){$([])}}),Q=(0,t.useCallback)(e=>$(e),[]),K=(0,t.useCallback)(()=>{(0,c.redirectPost)(v.update)},[v.update]),J=(0,t.useCallback)(()=>{(0,c.redirectPost)(v.revert)},[v.revert]),Y=(0,t.useCallback)(()=>{(0,c.redirectPost)(v["turn-on"])},[v]),W=(0,t.useCallback)(()=>{(0,c.redirectPost)(v["turn-off"]),_(!1)},[v]),X=(0,t.useCallback)(()=>{(0,c.redirectPost)(v["toggle-type"])},[v]),ee=(0,t.useCallback)(()=>{(0,c.redirectPost)(v["sync-zone"])},[v]),ne=(0,t.useCallback)(async()=>{if(M.length){H(!0);try{await U({variables:{siteId:h,id:N,ids:M}}),await C()}catch(e){(0,p.addToast)({intent:"danger",message:e.message})}finally{H(!1)}}},[U,C,h,N,M]),ie=(0,t.useMemo)(()=>{const n=e.findIndex(e=>"active"===e.containerCls);return n>=0?n+1:1},[e]),te=(0,t.useMemo)(()=>"off"===P?[{key:"ns",title:(0,t.jsx)(y,{content:"nameServer"}),sortable:!0,type:"title",render:({id:e,ns:n,status:i})=>(0,t.jsx)(D,{url:(0,c.prepareUrl)(v["edit-record"].replace("%%id%%",e)),status:i,children:n})},{key:"check",render:e=>(0,t.jsx)(r.Button,{ghost:!0,icon:"list-check-mark",tooltip:b.lmsg("buttonCheckHint"),tooltipAsLabel:!0,onClick:()=>B({name:i,owner:l,record:e}),"data-type":"dns-check-zone"})}]:"slave"===P?[{key:"ip",title:(0,t.jsx)(y,{content:"ipAddress"}),sortable:!0,type:"title",render:({id:e,ip:n,status:i})=>(0,t.jsx)(D,{url:(0,c.prepareUrl)(v["edit-record"].replace("%%id%%",e)),status:i,children:n})}]:[{key:"host",title:(0,t.jsx)(y,{content:"host"}),sortable:!0,type:"title",render:({id:e,host:n,status:i})=>(0,t.jsx)(D,{url:(0,c.prepareUrl)(v["edit-record"].replace("%%id%%",e)),status:i,children:n})},{key:"ttl",title:(0,t.jsx)(y,{content:"ttl"}),sortable:!0},{key:"type",title:(0,t.jsx)(y,{content:"type"}),sortable:!0},{key:"value",title:(0,t.jsx)(y,{content:"value"}
7),sortable:!0,className:"dns-record-value"}],[P,i,l,v,B]),se=(0,t.useMemo)(()=>"off"===P?"ns":"slave"===P?"ip":["host","type","value","ttl"],[P]),ae=(0,t.useMemo)(()=>"off"===P?"ns":"slave"===P?"ip":"host",[P]),re=(0,t.useMemo)(()=>A?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.ToolbarGroup,{title:"",children:(0,t.jsx)(r.Button,{"data-type":"add-dns-record",component:o.default,to:(0,c.prepareUrl)(v["add-record"]),icon:"plus",intent:"primary",children:(0,t.jsx)(y,{content:"addRecord"})})}),(0,t.jsxs)(r.ToolbarGroup,{title:"",children:["off"===P&&O?(0,t.jsx)(r.Button,{"data-type":"dns-turn-on",onClick:Y,children:(0,t.jsx)(y,{content:"turnOn"})}):null,"off"!==P&&O?(0,t.jsx)(r.Button,{"data-type":"dns-turn-off",onClick:()=>_(!0),children:(0,t.jsx)(y,{content:"turnOff"})}):null,"off"===P&&O?(0,t.jsx)(r.Button,{"data-type":"dns-toggle-type",icon:"refresh",disabled:!0,children:(0,t.jsx)(y,{content:"toggleTypeTo"+("master"===P?"Slave":"Master"),params:{name:i}})}):null,"off"!==P&&O?(0,t.jsx)(r.Button,{"data-type":"dns-toggle-type",icon:"refresh",onClick:X,children:(0,t.jsx)(y,{content:"toggleTypeTo"+("master"===P?"Slave":"Master"),params:{name:i}})}):null,"master"===P?(0,t.jsx)(r.Button,{"data-type":"dns-restore-default",icon:"reload",component:o.default,to:(0,c.prepareUrl)(v["restore-default"]),children:(0,t.jsx)(y,{content:"restoreDefault"})}):null,"off"!==P&&k?(0,t.jsx)(r.Button,{"data-type":"dns-sync-zone",onClick:ee,children:(0,t.jsx)(y,{content:"syncZone"})}):null]}),q.length?(0,t.jsx)(r.ToolbarGroup,{title:"",children:q.map(({id:e,title:n,description:i,href:s,target:a})=>(0,t.jsx)(r.Button,{"data-type":"dns-custom-button",component:"a",href:s,target:a||void 0,rel:a&&"_self"!==a?"noopener noreferrer":void 0,tooltip:i||void 0,children:n},e))}):null,(0,t.jsx)(r.ToolbarGroup,{title:"",children:(0,t.jsx)(r.ListOperation,{critical:!0,noSelectionText:j.lmsg("noSelectionText"),confirmationText:()=>b.formatMessage("confirmOnDelete",{host:1===M.length?E.find(e=>e.id===M[0])?.[ae]??"":"",count:M.length}),actionButtonText:x.lmsg("remove"),children:(0,t.jsx)(r.Button,{"data-type":"dns-remove",icon:"recycle",disabled:G||z,state:G||z?"loading":void 0,onClick:ne,children:(0,t.jsx)(y,{content:"remove"})})})})]}):null,[A,P,O,i,v,k,q,M,E,ae,G,z,Y,X,ee,ne]);return w&&!F?(0,t.jsx)(r.ContentLoader,{}):T&&!R?(0,t.jsx)(r.StatusMessage,{intent:"danger","data-type":"dns-zone-error",children:T.message}):R?(0,t.jsxs)(t.Fragment,{children:[I?(0,t.jsxs)(r.StatusMessage,{intent:"warning",children:[(0,t.jsx)(y,{content:"applyChanges"}),(0,t.jsxs)("div",{style:{marginTop:8,display:"flex",gap:8},children:[(0,t.jsx)(r.Button,{"data-type":"dns-apply",intent:"primary",onClick:K,children:(0,t.jsx)(y,{content:"updateButtonTitle"})}),(0,t.jsx)(r.Button,{"data-type":"dns-revert",onClick:J,children:(0,t.jsx)(y,{content:"revertButtonTitle"})})]})]}):null,n?(0,t.jsx)(m.default,{...n}):null,L,V.map(e=>(0,t.jsx)(r.StatusMessage,{intent:"warning",children:e},e)),(0,t.jsx)(r.Tabs,{active:ie,children:e.map((e,n)=>(0,t.jsx)(r.Tab,{title:e.title,component:o.default,to:(0,c.prepareUrl)(e.href)},n))}),(0,t.jsx)(d.default,{id:"dns-zone-records",className:"dns-zone-records-list",sortColumn:"","aria-label":b.lmsg("pageTitle"),rowKey:"id",itemsPerPage:25,searchField:se,searchBarInputProps:{"aria-label":b.lmsg("pageTitle")},selection:A?M:void 0,columns:te,data:E,toolbar:A?re:void 0,onSelectionChange:A?Q:void 0}),(0,t.jsx)(r.Dialog,{size:"sm",isOpen:Z,onClose:()=>_(!1),title:b.lmsg("confirmOnTurnOffTitle"),form:{onSubmit:W,submitButton:{children:x.lmsg("disable"),"data-type":"dns-turn-off-confirm"},cancelButton:{children:x.lmsg("cancel")}},children:(0,t.jsx)(r.Paragraph,{children:b.lmsg("confirmOnTurnOff",{dnssecInstalled:g?b.lmsg("dnssecInstalled"):""})})})]}):(0,t.jsx)(r.StatusMessage,{intent:"warning","data-type":"dns-zone-unavailable",children:(0,t.jsx)(y,{content:"zoneUnavailable"})})};N.propTypes={tabs:k().arrayOf(k().shape({href:k().string.isRequired,title:k().string.isRequired,containerCls:k().string})).isRequired,dnsHelper:k().object,name:k().string.isRequired,owner:k().shape({id:k().oneOfType([k().string,k().number]).isRequired,type:k().string.isRequired}
7).isRequired,urls:k().object.isRequired,syncZone:k().bool.isRequired,isDnssecInstalled:k().bool.isRequired};const F=(0,l.withPageLayout)(N)},2481(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>m});var t=i(787),s=i.n(t),a=i(1776),r=i(801),d=i(2471),o=i(2472),l=i(2482),c=i(396);const u=({tabs:e,dnsHelper:n=null,...i})=>{const[t,s]=(0,d.useDnsZoneCheckDialog)();return(0,c.jsxs)(c.Fragment,{children:[n?(0,c.jsx)(o.default,{...n}):null,t,(0,c.jsx)(a.default,{items:e}),(0,c.jsx)(l.default,{...i,onDnsZoneCheck:s})]})};u.propTypes={tabs:a.default.propTypes.items.isRequired,dnsHelper:s().object};const m=(0,r.withPageLayout)(u)},2482(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>u});var t=i(396),s=i(787),a=i.n(s),r=i(95),d=i(1674);i(2483);const o=r.Locale.getSection("smb.components.lists.dnsrecords"),l=r.Locale.getSection("components.buttons"),c=({name:e,data:n,owner:i,urls:s,applyButton:a,manageDns:c,dnsZoneStatus:u,isZoneCreated:m,syncZone:p,onDnsZoneCheck:v,isDnssecInstalled:k})=>{const g=(0,t.useCallback)(e=>{e&&"success"!==e.status||((0,r.addStatusMessage)("warning",`${o.lmsg("applyChanges")}<br><br><button id='btn-apply' class='btn'></button><button id='btn-revert' class='btn'></button>`,[]),new r.CommandButton({applyTo:"btn-apply",title:o.lmsg("updateButtonTitle"),name:"send",description:o.lmsg("updateButtonDescription"),disabled:!1,handler(){(0,r.redirectPost)(s.update)}}),new r.CommandButton({applyTo:"btn-revert",title:o.lmsg("revertButtonTitle"),name:"cancel",description:o.lmsg("revertButtonDescription"),handler(){(0,r.redirectPost)(s.revert)}}))},[s.revert,s.update]),f=(0,t.useCallback)((e,n)=>{const i=(0,r.prepareUrl)(s["edit-record"].replace("%%id%%",e.id));return"old"===e.status?`<a href=${i}>${(0,r.escapeHtml)(e[n])}</a>`:`<span><a href=${i} class="s-btn sb-dns-records-changed list-item-${e.status}"><i><i><i><span>${(0,r.escapeHtml)(e[n])}</span></i></i></i></a></span>`},[s]);(0,t.useEffect)(()=>{a&&g()},[a]);const h=(0,t.useMemo)(()=>c?[{componentType:r.SmallButton,id:"buttonAddRecord",title:o.lmsg("addRecord"),description:o.lmsg("master"===u?"hintAddRecord":"hintAddPrimaryDns",{name:e}),addCls:"sb-add-new btn-primary",href:s["add-record"]},{componentType:r.bar.Separator},"off"===u&&m?{componentType:r.SmallButton,id:"buttonTurnOn",attrs:{"data-method":"post"},title:o.lmsg("turnOn"),description:o.lmsg("hintTurnOn",{name:e}),addCls:"sb-turn-on",href:s["turn-on"]}:null,"off"===u&&m?{componentType:r.SmallButton,id:"buttonToggleType",attrs:{"data-method":"post"},title:o.lmsg("toggleTypeTo"+("master"===u?"Slave":"Master"),{name:e}),description:o.lmsg("hintToggleTypeDisabled",{name:e}),addCls:"sb-refresh",disabled:!0}:null,"off"!==u&&m?{componentType:r.SmallButton,id:"buttonTurnOff",attrs:{"data-method":"post"},title:o.lmsg("turnOff"),description:o.lmsg("hintTurnOff",{name:e}),addCls:"sb-turn-off",href:null,handler(){r.messageBox.show({subtype:r.messageBox.SUBTYPE_CONFIRM,text:o.lmsg("confirmOnTurnOffTitle"),description:o.lmsg("confirmOnTurnOff",{dnssecInstalled:k?o.lmsg("dnssecInstalled"):""}),buttonTitles:{yes:l.lmsg("disable"),no:l.lmsg("cancel")},onYesClick(){(0,r.redirectPost)(s["turn-off"])}})}}:null,"off"!==u&&m?{componentType:r.SmallButton,id:"buttonToggleType",attrs:{"data-method":"post"},title:o.lmsg("toggleTypeTo"+("master"===u?"Slave":"Master"),{name:e}),description:o.lmsg("hintToggleTypeTo"+("master"===u?"Slave":"Master"),{name:e}),addCls:"sb-refresh",href:s["toggle-type"]}:null,"master"===u?{componentType:r.SmallButton,id:"buttonRestoreDefault",title:o.lmsg("restoreDefault"),description:o.lmsg("hintRestoreDefault",{name:e}),addCls:"sb-restore-defaults",href:s["restore-default"]}:null,"off"!==u&&p?{componentType:r.SmallButton,id:"buttonSyncZone",attrs:{"data-method":"post"},title:o.lmsg("syncZone"),description:o.lmsg("hintSyncZone"),addCls:"sb-dns-zone-sync",href:s["sync-zone"]}:null,{componentType:r.bar.Separator},{componentType:r.SmallButton,id:"buttonRemoveRecord",title:o.lmsg("remove"),description:o.lmsg("hintRemove"),addCls:"sb-remove-selected",handler(e){const n=(0,r.getComponent)("dns-zone-records"),i=n.getSelectedItems(),t="off"!==u?"host":"ns";n.execGroupOperation({url:s.delete,subtype:r.messageBox.SUBTYPE_DELETE,mouseEvent:e,text:o.formatMessage("confirmOnDelete",{host:`<b>${(0,r.escapeHtml)(i[0]?.[t])}</b>`,count:i.length}),onSuccess:g})}}]:[],[g,u,m,c,e,p,s,k]),S=(0,t.useMemo)(()=>[c?r.list.COLUMN_SELECTION:null,"off"===u?{header:o.lmsg("nameServer"),sortable:!0,dataIndex:"ns",renderer:e=>f(e,"ns")}
7:null,"off"===u?{header:"",sortable:!1,cls:"min",renderer:n=>[(0,r.createElement)("span.tooltipData",o.lmsg("buttonCheckHint")),(0,r.createElement)("button.pul-button.pul-button--ghost.pul-button--empty",{type:"button",onclick:()=>{r.Tooltip.hide(),v({name:e,owner:i,record:n})},style:"margin-block: -4px"},(0,r.createElement)("span.pul-button__inner",{style:"align-items: flex-start"},(0,r.createElement)("span.pul-icon.pul-icon--size-16.pul-button__icon",'<svg focusable="false"><use href="/ui-library/images/symbols.svg?qwe#list-check-mark:16" /></svg>'),(0,r.createElement)("span.r-visible",{style:"margin-inline-start: 4px; white-space: normal; text-align: left; font-weight: 400"},o.lmsg("buttonCheckHint"))))]}:null,"master"===u?{header:o.lmsg("host"),sortable:!0,dataIndex:"host",renderer:e=>f(e,"host")}:null,"master"===u?{header:o.lmsg("ttl"),headerParams:{width:100},sortable:!0,dataIndex:"ttl"}:null,"master"===u?{header:o.lmsg("type"),headerParams:{width:100},sortable:!0,dataIndex:"type"}:null,"master"===u?{header:o.lmsg("value"),sortable:!0,dataIndex:"value",cls:"records-list__value-cell"}:null,"slave"===u?{header:o.lmsg("ipAddress"),sortable:!0,dataIndex:"ip",renderer:e=>f(e,"ip")}:null].filter(Boolean),[u,c,e,v,i,f]),y=(0,t.useCallback)(({readOnly:e})=>e,[]);return(0,t.jsx)(d.default,{id:"dns-zone-records",data:n,dataUrl:`/smb/dns-zone/records-list-data/id/${i.id}/type/${i.type}`,isDisabledItem:y,operations:h,columns:S})};c.propTypes={name:a().string.isRequired,data:d.default.propTypes.data.isRequired,owner:a().shape({id:a().string.isRequired,type:a().string.isRequired}).isRequired,urls:a().object.isRequired,applyButton:a().bool.isRequired,manageDns:a().bool.isRequired,dnsZoneStatus:a().string.isRequired,isZoneCreated:a().bool.isRequired,syncZone:a().bool.isRequired,onDnsZoneCheck:a().func.isRequired,isDnssecInstalled:a().bool.isRequired};const u=c},2469(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>d});var t=i(462),s=i(2470),a=i(2481),r=i(396);const d=e=>{const{modernRecordsList:n}=(0,t.usePageData)();return n?(0,r.jsx)(s.default,{...e}):(0,r.jsx)(a.default,{...e})}},2479(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteDnsZoneRecord"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"siteId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{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:"deleteDnsZoneRecord"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"siteId"},value:{kind:"Variable",name:{kind:"Name",value:"siteId"}}},{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:"node"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Domain"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dnsRecordsView"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"DnsRecordsViewFields"},directives:[]}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DomainAlias"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dnsRecordsView"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"DnsRecordsViewFields"},directives:[]}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:579}};t.loc.source={body:'#import "queries/DnsRecordsViewFragment.graphql"\n\nmutation DeleteDnsZoneRecord($siteId: ID!, $id: ID!, $ids: [ID!]!) {\n deleteDnsZoneRecord(input: { siteId: $siteId, ids: $ids }) {\n query {\n node(id: $id) {\n ... on Domain {\n dnsRecordsView {\n ...DnsRecordsViewFields\n }\n }\n ... on DomainAlias {\n dnsRecordsView {\n ...DnsRecordsViewFields\n }\n }\n }\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var s={};function a(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);
7else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){a(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){a(e,n)}),e.definitions&&e.definitions.forEach(function(e){a(e,n)})}t.definitions=t.definitions.concat(i(2478).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!s[n]&&(s[n]=!0,!0)}));var r={};function d(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}t.definitions.forEach(function(e){if(e.name){var n=new Set;a(e,n),r[e.name.value]=n}}),e.exports=t,e.exports.DeleteDnsZoneRecord=function(e,n){var i={kind:e.kind,definitions:[d(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var t=r[n]||new Set,s=new Set,a=new Set;for(t.forEach(function(e){a.add(e)});a.size>0;){var o=a;a=new Set,o.forEach(function(e){s.has(e)||(s.add(e),(r[e]||new Set).forEach(function(e){a.add(e)}))})}return s.forEach(function(n){var t=d(e,n);t&&i.definitions.push(t)}),i}(t,"DeleteDnsZoneRecord")},2476(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"DnsHelper"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Domain"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isResolvable"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DomainAlias"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isResolvable"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:190}};n.loc.source={body:"query DnsHelper($id: ID!) {\n node(id: $id) {\n id\n ... on Domain {\n isResolvable\n }\n ... on DomainAlias {\n isResolvable\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){i(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){i(e,n)}),e.definitions&&e.definitions.forEach(function(e){i(e,n)})}var t={};function s(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}n.definitions.forEach(function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}),e.exports=n,e.exports.DnsHelper=function(e,n){var i={kind:e.kind,definitions:[s(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=t[n]||new Set,r=new Set,d=new Set;for(a.forEach(function(e){d.add(e)});d.size>0;){var o=d;d=new Set,o.forEach(function(e){r.has(e)||(r.add(e),(t[e]||new Set).forEach(function(e){d.add(e)}))})}return r.forEach(function(n){var t=s(e,n);t&&i.definitions.push(t)}),i}(n,"DnsHelper")},2478(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"DnsRecordsViewFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DnsRecordsView"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasChanges"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"manageDns"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isZoneCreated"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"warnings"},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:"host"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ttl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ns"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ip"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"readOnly"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"customButtons"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"href"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"target"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:359}};n.loc.source={body:"fragment DnsRecordsViewFields on DnsRecordsView {\n status\n hasChanges\n manageDns\n isZoneCreated\n warnings\n records {\n id\n host\n type\n value\n ttl\n ns\n ip\n readOnly\n status\n }\n customButtons {\n id\n title\n description\n href\n target\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);
7else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){i(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){i(e,n)}),e.definitions&&e.definitions.forEach(function(e){i(e,n)})}var t={};function s(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}n.definitions.forEach(function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}),e.exports=n,e.exports.DnsRecordsViewFields=function(e,n){var i={kind:e.kind,definitions:[s(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=t[n]||new Set,r=new Set,d=new Set;for(a.forEach(function(e){d.add(e)});d.size>0;){var o=d;d=new Set,o.forEach(function(e){r.has(e)||(r.add(e),(t[e]||new Set).forEach(function(e){d.add(e)}))})}return r.forEach(function(n){var t=s(e,n);t&&i.definitions.push(t)}),i}(n,"DnsRecordsViewFields")},2475(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"DnsSettingsDrawer"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Domain"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[{kind:"Argument",name:{kind:"Name",value:"idn"},value:{kind:"BooleanValue",value:!1}}],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"ipAddressesFields"},directives:[]},{kind:"Field",name:{kind:"Name",value:"dnsZone"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"recordsFields"},directives:[]}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DomainAlias"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[{kind:"Argument",name:{kind:"Name",value:"idn"},value:{kind:"BooleanValue",value:!1}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"domain"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ipAddressesFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"dnsZone"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"recordsFields"},directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"viewer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"config"},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:"enableResolveChecking"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"dns"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"registrars"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"extensions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"mode"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isDnsServiceSupported"},arguments:[],directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ipAddressesFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Domain"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ipAddresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicIpAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ipAddress"},arguments:[],directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"recordsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DnsZone"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"nsRecords"},name:{kind:"Name",value:"records"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"}
7,value:{kind:"ListValue",values:[{kind:"EnumValue",value:"NS"}]}}]}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"value"},value:{kind:"EnumValue",value:"asc"}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"recordFields"},directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"aRecords"},name:{kind:"Name",value:"records"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"ListValue",values:[{kind:"EnumValue",value:"A"}]}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"recordFields"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"recordFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DnsRecord"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"host"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}}],loc:{start:0,end:1159}};n.loc.source={body:"query DnsSettingsDrawer($id: ID!) {\n node(id: $id) {\n id\n ... on Domain {\n name(idn: false)\n ...ipAddressesFields\n dnsZone {\n ...recordsFields\n }\n }\n ... on DomainAlias {\n name(idn: false)\n domain {\n ...ipAddressesFields\n }\n dnsZone {\n ...recordsFields\n }\n }\n }\n viewer {\n login\n type\n }\n config {\n dns {\n enableResolveChecking\n }\n }\n dns {\n registrars {\n name\n url\n }\n extensions {\n name\n url\n }\n }\n mode {\n isDnsServiceSupported\n }\n}\n\nfragment ipAddressesFields on Domain {\n ipAddresses {\n publicIpAddress\n ipAddress\n }\n}\n\nfragment recordsFields on DnsZone {\n nsRecords: records(filter: { type: [NS] }, orderBy: { value: asc }) {\n ...recordFields\n }\n aRecords: records(filter: { type: [A] }) {\n ...recordFields\n }\n}\n\nfragment recordFields on DnsRecord {\n host\n value\n type\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){i(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){i(e,n)}),e.definitions&&e.definitions.forEach(function(e){i(e,n)})}var t={};function s(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}function a(e,n){var i={kind:e.kind,definitions:[s(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=t[n]||new Set,r=new Set,d=new Set;for(a.forEach(function(e){d.add(e)});d.size>0;){var o=d;d=new Set,o.forEach(function(e){r.has(e)||(r.add(e),(t[e]||new Set).forEach(function(e){d.add(e)}))})}return r.forEach(function(n){var t=s(e,n);t&&i.definitions.push(t)}),i}n.definitions.forEach(function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}),e.exports=n,e.exports.DnsSettingsDrawer=a(n,"DnsSettingsDrawer"),e.exports.ipAddressesFields=a(n,"ipAddressesFields"),e.exports.recordsFields=a(n,"recordsFields"),e.exports.recordFields=a(n,"recordFields")},2477(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"DnsZoneRecordsPage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Domain"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dnsRecordsView"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"DnsRecordsViewFields"},directives:[]}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DomainAlias"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dnsRecordsView"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"DnsRecordsViewFields"},directives:[]}]}}]}}]}}]}}],loc:{start:0,end:354}};t.loc.source={body:'#import "queries/DnsRecordsViewFragment.graphql"\n\nquery DnsZoneRecordsPage($id: ID!) {\n node(id: $id) {\n ... on Domain {\n dnsRecordsView {\n ...DnsRecordsViewFields\n }\n }\n ... on DomainAlias {\n dnsRecordsView {\n ...DnsRecordsViewFields\n }\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var s={};function a(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);
7else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){a(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){a(e,n)}),e.definitions&&e.definitions.forEach(function(e){a(e,n)})}t.definitions=t.definitions.concat(i(2478).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!s[n]&&(s[n]=!0,!0)}));var r={};function d(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}t.definitions.forEach(function(e){if(e.name){var n=new Set;a(e,n),r[e.name.value]=n}}),e.exports=t,e.exports.DnsZoneRecordsPage=function(e,n){var i={kind:e.kind,definitions:[d(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var t=r[n]||new Set,s=new Set,a=new Set;for(t.forEach(function(e){a.add(e)});a.size>0;){var o=a;a=new Set,o.forEach(function(e){s.has(e)||(s.add(e),(r[e]||new Set).forEach(function(e){a.add(e)}))})}return s.forEach(function(n){var t=d(e,n);t&&i.definitions.push(t)}),i}(t,"DnsZoneRecordsPage")},2480(e,n,i){"use strict";i.r(n)},2483(e,n,i){"use strict";i.r(n)}}]); 8//# sourceMappingURL=records-list.js.map?d5f221e0a9179846502b
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.