1(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["views/dns/soa-record"],{2456(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>u});var t=i(397),a=i(95),l=i(787),s=i.n(l),d=i(396);const r=a.Locale.getSection("smb.components.forms.dns-zone.soa-record"),o=2147483647,m=e=>e>o?o:e,c=({enumUnits:e=!1,warning:n=null,...i})=>(0,d.jsx)(t.FormField,{...i,children:({getId:i,getName:a,getValue:l,setValue:s,isDisabled:o})=>{const{value:c,unit:u}=l(),v=n?.(l());return(0,d.jsxs)("div",{role:"group","aria-labelledby":`${i()}-label`,children:[(0,d.jsx)(t.Input,{id:i(),name:`${a()}[value]`,value:c,type:"number",min:"1",maxLength:"10",onChange:({target:{value:e}})=>s({value:m(+e),unit:u}),disabled:o(),size:"md","aria-label":r.lmsg("valueField")})," ",(0,d.jsxs)(t.Select,{id:`${i()}Unit`,name:`${a()}[unit]`,value:u,disabled:o(),onChange:e=>s({value:c,unit:e}),size:"sm","aria-label":r.lmsg("unitField"),children:[(0,d.jsx)(t.SelectOption,{value:e?"SECONDS":1,children:r.lmsg("unitSeconds")}),(0,d.jsx)(t.SelectOption,{value:e?"MINUTES":60,children:r.lmsg("unitMinutes")}),(0,d.jsx)(t.SelectOption,{value:e?"HOURS":3600,children:r.lmsg("unitHours")}),(0,d.jsx)(t.SelectOption,{value:e?"DAYS":86400,children:r.lmsg("unitDays")}),(0,d.jsx)(t.SelectOption,{value:e?"WEEKS":604800,children:r.lmsg("unitWeeks")})]}),v?(0,d.jsx)("div",{children:(0,d.jsx)(t.Hint,{children:v})}):null]})}});c.propTypes={enumUnits:s().bool,warning:s().func};const u=c},2455(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>S});var t=i(396),a=i(787),l=i.n(a),s=i(397),d=i(95),r=i(1371),o=i(832),m=i(2456);const c=d.Locale.getSection("smb.components.forms.dns-zone.soa-record"),u=d.Locale.getTranslate("smb.components.forms.dns-zone.soa-record"),v={SECONDS:1,MINUTES:60,HOURS:3600,DAYS:86400,WEEKS:604800},k=({readonly:e=!1,rnameVisible:n,rnameEnforce:i=!1,nameServers:a,onDefault:l,cancelUrl:d=null,enumUnits:k=!1,...S})=>{const p=(0,t.useCallback)(({value:e,unit:n})=>e*(k?v[n]:n)<v.HOURS?(0,t.jsx)(s.Text,{intent:"warning",children:(0,t.jsx)(u,{content:"refreshValueIsSmallWarning"})}):null,[k]),f=(0,t.useCallback)(({value:e,unit:n})=>e*(k?v[n]:n)>10800?(0,t.jsx)(s.Text,{intent:"warning",children:(0,t.jsx)(u,{content:"minimumValueIsBigWarning"})}):null,[k]),[g,b]=(0,t.useState)(null),x=(0,t.useCallback)(async()=>{b("loading"),await l(),b(null)},[l]);return(0,t.jsxs)(r.default,{submitButton:!e&&{id:"btn-send"},applyButton:!e&&{id:"btn-apply"},cancelButton:d?{id:"btn-cancel",component:o.default,to:d}:null,additionalButtons:e?void 0:[(0,t.jsx)(s.Button,{id:"btn-default",onClick:x,state:g,children:(0,t.jsx)(u,{content:"restoreDefaultButton"})},"default")],...S,children:[(0,t.jsx)(s.Section,{title:(0,t.jsx)(u,{content:"soaMnameSection"}),children:(0,t.jsxs)(s.FormFieldSelect,{name:"mname",label:(0,t.jsx)(u,{content:"soaMname"}),disabled:e,children:[(0,t.jsx)(s.SelectOption,{value:"",children:c.lmsg("soaMnameAutoselect")}),a.map(e=>(0,t.jsx)(s.SelectOption,{value:e,children:e},e))]})}),(0,t.jsx)(s.Section,{title:(0,t.jsx)(u,{content:"zoneDefaultsSection"}),children:(0,t.jsx)(m.default,{name:"ttl",enumUnits:k,label:(0,t.jsx)(u,{content:"ttl"}),required:!0,disabled:e})}),(0,t.jsxs)(s.Section,{title:(0,t.jsx)(u,{content:"soaRecordSection"}),children:[(0,t.jsx)(m.default,{name:"refresh",enumUnits:k,label:(0,t.jsx)(u,{content:"refresh"}),required:!0,disabled:e,warning:p}),(0,t.jsx)(m.default,{name:"retry",enumUnits:k,label:(0,t.jsx)(u,{content:"retry"}),required:!0,disabled:e}),(0,t.jsx)(m.default,{name:"expire",enumUnits:k,label:(0,t.jsx)(u,{content:"expire"}),required:!0,disabled:e}),(0,t.jsx)(m.default,{name:"minimum",enumUnits:k,label:(0,t.jsx)(u,{content:"minimum"}),required:!0,disabled:e,warning:f}),n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.FormFieldRadioButtons,{label:(0,t.jsx)(u,{content:"rnameType"}),name:"rnameType",description:(0,t.jsx)(u,{content:"rnameTypeHint"}),disabled:e,options:[{value:k?"OWNER":"owner",label:(0,t.jsx)(u,{content:"rnameTypeOwner"})},{value:k?"DOMAIN":"domain",label:(0,t.jsx)(u,{content:"rnameTypeDomain"}),indentFields:[(0,t.jsx)(s.FormFieldText,{name:"rnameDomain",label:null,description:(0,t.jsx)(u,{content:"rnameTypeDomainHint"})},"domain")]},{value:k?"EXTERNAL":"external",label:(0,t.jsx)(u,{content:"rnameTypeExternal"}),indentFields:[(0,t.jsx)(s.FormFieldText,{name:"rnameExternal",label:null},"external")]}]}),!!i&&(0,t.jsx)(s.FormFieldCheckbox,{style:{marginTop:"20px",marginLeft:"220px"},label:(0,t.jsx)(u,{content:"rnameEnforceEmail"}),name:"rnameEnforce"})]}):null]}),(0,t.jsx)(s.Section,{title:(0,t.jsx)(u,{content:"advancedSection"}),children:(0,t.jsx)(s.FormFieldCheckbox,{name:"serialNumberFormat",label:(0,t.jsx)(u,{content:"serialNumberFormat"}),description:(0,t.jsx)(u,{content:"serialNumberFormatHint"}),checkedValue:"YYYYMMDDNN",uncheckedValue:"UNIXTIMESTAMP",disabled:e})})]})};k.propTypes={readonly:l().bool,rnameVisible:l().bool.isRequired,rnameEnforce:l().bool,nameServers:l().arrayOf(l().string).isRequired,onDefault:l().func.isRequired,cancelUrl:l().string,enumUnits:l().bool};const S=k},2454(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>N});var t=i(396),a=i(810),l=i(739),s=i(801),d=i(663),r=i(715),o=i(2455),m=i(2448),c=i(95),u=i(730),v=i.n(u),k=i(2457),S=i.n(k),p=i(2458),f=i.n(p),g=i(462);const b=c.Locale.getTranslate("smb.components.forms.dns-zone.soa-record"),x=e=>"object"==typeof e?Object.fromEntries(Object.entries(e).filter(([e])=>"__typename"!==e).map(([e,n])=>[e,x(n)])):e,N=(0,s.withPageLayout)(()=>{const e=(0,r.useNavigate)(),{data:{dns:{template:{isExternalDnsEnabled:n,isEnabled:i,records:s,soaRecord:u}={}}}}=(0,l.useQuery)(v()),[k]=(0,a.useMutation)(S()),[p]=(0,a.useMutation)(f(),{onCompleted(){(0,d.addToast)({intent:"success",message:(0,t.jsx)(b,{content:"restoreDefaultSuccess"})})}}),g=(0,t.useCallback)(e=>x(e),[]),N=(0,t.useCallback)((n,i)=>{i?(0,d.addToast)({intent:"success",message:(0,t.jsx)(b,{content:"success"})}):e("/cp/dns/records/")},[e]),h=(0,t.useMemo)(()=>s.map(({displayVal:e})=>e),[s]);return(0,t.jsxs)("section",{"aria-label":c.Locale.getSection("components.pages.dns-soa-record").lmsg("pageAriaLabel"),children:[(0,t.jsx)(m.default,{dnsEnabled:i,isExternalDnsEnabled:n}),(0,t.jsx)(o.default,{enumUnits:!0,rnameEnforce:!0,rnameVisible:!0,mutation:k,nameServers:h,values:u,onSubmit:g,onDefault:p,onSuccess:N})]})},e=>{const{showFrames:n,pageHeader:i,pageSidebar:t}=(0,g.default)();return{...e,showFrames:n,pageHeader:{...i,helpMenu:{...i.helpMenu,helpContext:"dns_t_soa"}},pageSidebar:t,pageContentHeader:{breadcrumbs:[t.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-soa-record").lmsg("title"),href:"/cp/dns/soa-record/"}
1].filter(Boolean),tabs:[],tabsHasRootPage:!0}}})},2448(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>u});var t=i(397),a=i(396),l=i(787),s=i.n(l),d=i(832),r=i(95),o=i(715);const m=r.Locale.getTranslate("admin.controllers.dns"),c=({dnsEnabled:e,isExternalDnsEnabled:n=!1})=>{const i=(0,o.useLocation)(),l=(0,a.useMemo)(()=>[{title:(0,a.jsx)(m,{content:"records.title"}),to:"/cp/dns/records"},e?{title:(0,a.jsx)(m,{content:"soa-record.title"}),to:"/cp/dns/soa-record"}:null,{title:(0,a.jsx)(m,{content:"acl-records.title"}),to:"/admin/dns/acl-records"},{title:(0,a.jsx)(m,{content:"settings.title"}),to:"/admin/dns/settings"},n?{title:(0,a.jsx)(m,{content:"external-dns.title"}),to:"/admin/dns/external-dns"}:null].filter(e=>e),[e,n]),s=(0,a.useMemo)(()=>l.findIndex(({to:e})=>i.pathname===e)+1,[i.pathname,l]);return(0,a.jsx)(t.Tabs,{active:s,"aria-label":r.Locale.getSection("admin.controllers.dns").lmsg("tabsAriaLabel"),children:l.map((e,n)=>(0,a.jsx)(t.Tab,{title:e.title,component:d.default,to:e.to},n))})};c.propTypes={dnsEnabled:s().bool.isRequired,isExternalDnsEnabled:s().bool};const u=c},2458(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RestoreDnsSoaRecordTemplate"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"restoreDnsSoaTemplate"},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:[]},{kind:"Field",name:{kind:"Name",value:"soaRecord"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ttl"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"unit"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"refresh"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"unit"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"retry"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"unit"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"expire"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"unit"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"minimum"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"unit"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"serialNumberFormat"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rnameDomain"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rnameExternal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rnameType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rnameEnforce"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:1125}};n.loc.source={body:"mutation RestoreDnsSoaRecordTemplate {\n restoreDnsSoaTemplate {\n query {\n dns {\n template {\n soaTemplateNotSynchronized\n soaRecord {\n mname\n ttl {\n value\n unit\n }\n refresh {\n value\n unit\n }\n retry {\n value\n unit\n }\n expire {\n value\n unit\n }\n minimum {\n value\n unit\n }\n serialNumberFormat\n rnameDomain\n rnameExternal\n rnameType\n rnameEnforce\n }\n }\n }\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);
1else 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 a(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.RestoreDnsSoaRecordTemplate=function(e,n){var i={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var l=t[n]||new Set,s=new Set,d=new Set;for(l.forEach(function(e){d.add(e)});d.size>0;){var r=d;d=new Set,r.forEach(function(e){s.has(e)||(s.add(e),(t[e]||new Set).forEach(function(e){d.add(e)}))})}return s.forEach(function(n){var t=a(e,n);t&&i.definitions.push(t)}),i}(n,"RestoreDnsSoaRecordTemplate")},2457(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateDnsSoaRecordTemplate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateDnsTemplateSoaRecordInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateDnsSoaTemplate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],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:[]},{kind:"Field",name:{kind:"Name",value:"soaRecord"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ttl"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"unit"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"refresh"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"unit"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"retry"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"unit"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"expire"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"unit"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"minimum"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"unit"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"serialNumberFormat"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rnameDomain"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rnameExternal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rnameType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rnameEnforce"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:1180}};n.loc.source={body:"mutation UpdateDnsSoaRecordTemplate($input: UpdateDnsTemplateSoaRecordInput!) {\n updateDnsSoaTemplate(input: $input) {\n query {\n dns {\n template {\n soaTemplateNotSynchronized\n soaRecord {\n mname\n ttl {\n value\n unit\n }\n refresh {\n value\n unit\n }\n retry {\n value\n unit\n }\n expire {\n value\n unit\n }\n minimum {\n value\n unit\n }\n serialNumberFormat\n rnameDomain\n rnameExternal\n rnameType\n rnameEnforce\n }\n }\n }\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);
1else 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 a(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.UpdateDnsSoaRecordTemplate=function(e,n){var i={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var l=t[n]||new Set,s=new Set,d=new Set;for(l.forEach(function(e){d.add(e)});d.size>0;){var r=d;d=new Set,r.forEach(function(e){s.has(e)||(s.add(e),(t[e]||new Set).forEach(function(e){d.add(e)}))})}return s.forEach(function(n){var t=a(e,n);t&&i.definitions.push(t)}),i}(n,"UpdateDnsSoaRecordTemplate")}}]); 2//# sourceMappingURL=soa-record.js.map?4de5afb4553da8649d80
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.