PageSourceSearch

https://cakhiaxzzk.cc/cp/javascript/views/dns/soa-record.js?69356db09c7182909546

js cakhiaxzzk.cc collected 2026-10-10 01:30:17 UTC 18,572 bytes, 2 lines download raw bytes

1(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["views/dns/soa-record"],{2322:(e,n,i)=>{"use strict";i.r(n),i.d(n,{default:()=>u});var t=i(297),a=i(296),r=i(668),s=i.n(r),l=i(718),d=i(90),o=i(599);const m=d.Locale.getTranslate("admin.controllers.dns"),c=({dnsEnabled:e,isExternalDnsEnabled:n=!1})=>{const i=(0,o.useLocation)(),r=(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)(()=>r.findIndex(({to:e})=>i.pathname===e)+1,[i.pathname,r]);return(0,a.jsx)(t.Tabs,{active:s,children:r.map((e,n)=>(0,a.jsx)(t.Tab,{title:e.title,component:l.default,to:e.to},n))})};c.propTypes={dnsEnabled:s().bool.isRequired,isExternalDnsEnabled:s().bool};const u=c},2328:(e,n,i)=>{"use strict";i.r(n),i.d(n,{default:()=>N});var t=i(296),a=i(696),r=i(620),s=i(675),l=i(546),d=i(599),o=i(2329),m=i(2322),c=i(90),u=i(612),v=i.n(u),k=i(2331),S=i.n(k),p=i(2332),f=i.n(p),g=i(346);const x=c.Locale.getTranslate("smb.components.forms.dns-zone.soa-record"),b=e=>"object"==typeof e?Object.fromEntries(Object.entries(e).filter(([e])=>"__typename"!==e).map(([e,n])=>[e,b(n)])):e,N=(0,s.withPageLayout)(()=>{const e=(0,d.useNavigate)(),{data:{dns:{template:{isExternalDnsEnabled:n,isEnabled:i,records:s,soaRecord:c}={}}}}=(0,r.useQuery)(v()),[u]=(0,a.useMutation)(S()),[k]=(0,a.useMutation)(f(),{onCompleted(){(0,l.addToast)({intent:"success",message:(0,t.jsx)(x,{content:"restoreDefaultSuccess"})})}}),p=(0,t.useCallback)(e=>b(e),[]),g=(0,t.useCallback)((n,i)=>{i?(0,l.addToast)({intent:"success",message:(0,t.jsx)(x,{content:"success"})}):e("/cp/dns/records/")},[e]),N=(0,t.useMemo)(()=>s.map(({displayVal:e})=>e),[s]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.default,{dnsEnabled:i,isExternalDnsEnabled:n}),(0,t.jsx)(o.default,{enumUnits:!0,rnameEnforce:!0,rnameVisible:!0,mutation:u,nameServers:N,values:c,onSubmit:p,onDefault:k,onSuccess:g})]})},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/"}].filter(Boolean),tabs:[],tabsHasRootPage:!0}}})},2329:(e,n,i)=>{"use strict";i.r(n),i.d(n,{default:()=>S});var t=i(296),a=i(668),r=i.n(a),s=i(297),l=i(90),d=i(1305),o=i(718),m=i(2330);const c=l.Locale.getSection("smb.components.forms.dns-zone.soa-record"),u=l.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:r,cancelUrl:l=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,x]=(0,t.useState)(null),b=(0,t.useCallback)(async()=>{x("loading"),await r(),x(null)},[r]);return(0,t.jsxs)(d.default,{submitButton:!e&&{id:"btn-send"},applyButton:!e&&{id:"btn-apply"},cancelButton:l?{id:"btn-cancel",component:o.default,to:l}:null,additionalButtons:e?void 0:[(0,t.jsx)(s.Button,{id:"btn-default",onClick:b,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:r().bool,rnameVisible:r().bool.isRequired,rnameEnforce:r().bool,nameServers:r().arrayOf(r().str
1ing).isRequired,onDefault:r().func.isRequired,cancelUrl:r().string,enumUnits:r().bool};const S=k},2330:(e,n,i)=>{"use strict";i.r(n),i.d(n,{default:()=>u});var t=i(297),a=i(90),r=i(668),s=i.n(r),l=i(296);const d=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,l.jsx)(t.FormField,{...i,children:({getId:i,getName:a,getValue:r,setValue:s,isDisabled:o})=>{const{value:c,unit:u}=r(),v=n?.(r());return(0,l.jsxs)(l.Fragment,{children:[(0,l.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"})," ",(0,l.jsxs)(t.Select,{id:`${i()}Unit`,name:`${a()}[unit]`,value:u,disabled:o(),onChange:e=>s({value:c,unit:e}),size:"sm",children:[(0,l.jsx)(t.SelectOption,{value:e?"SECONDS":1,children:d.lmsg("unitSeconds")}),(0,l.jsx)(t.SelectOption,{value:e?"MINUTES":60,children:d.lmsg("unitMinutes")}),(0,l.jsx)(t.SelectOption,{value:e?"HOURS":3600,children:d.lmsg("unitHours")}),(0,l.jsx)(t.SelectOption,{value:e?"DAYS":86400,children:d.lmsg("unitDays")}),(0,l.jsx)(t.SelectOption,{value:e?"WEEKS":604800,children:d.lmsg("unitWeeks")})]}),v?(0,l.jsx)("div",{children:(0,l.jsx)(t.Hint,{children:v})}):null]})}});c.propTypes={enumUnits:s().bool,warning:s().func};const u=c},2331: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:1219}};n.loc.source={body:"mutation UpdateDnsSoaRecordTemplate($input: UpdateDnsTemplateSoaRecordInput!) {\r\n    updateDnsSoaTemplate(input: $input) {\r\n        query {\r\n            dns {\r\n                template {\r\n                    soaTemplateNotSynchronized\r\n                    soaRecord {\r\n                        mname\r\n                        ttl {\r\n                            value\r\n                            unit\r\n                        }\r\n                        refresh {\r\n                            value\r\n                            unit\r\n                        }\r\n                        retry {\r\n                            value\r\n                            unit\r\n                        }\r\n                        expire {\r\n                            value\r\n                            unit\r\n                        }\r\n                        minimum {\r\n                            value\r\n                            unit\r\n                        }\r\n                        serialNumberFormat\r\n                        rnameDomain\r\n                        rnameExternal\r\n                        rnameType\r\n                        rnameEnforce\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    }\r\n}\r\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 r=t[n]||new Set,s=new Set,l=new Set;for(r.forEach(function(e){l.add(e)});l.size>0;){var d=l;l=new Set,d.forEach(function(e){s.has(e)||(s.add(e),(t[e]||new Set).forEach(function(e){l.add(e)}))})}return s.forEach(function(n){var t=a(e,n);t&&i.definitions.push(t)}),i}(n,"UpdateDnsSoaRecordTemplate")},2332: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:1164}};n.loc.source={body:"mutation RestoreDnsSoaRecordTemplate {\r\n    restoreDnsSoaTemplate {\r\n        query {\r\n            dns {\r\n                template {\r\n                    soaTemplateNotSynchronized\r\n                    soaRecord {\r\n                        mname\r\n                        ttl {\r\n                            value\r\n                            unit\r\n                        }\r\n                        refresh {\r\n                            value\r\n                            unit\r\n                        }\r\n                        retry {\r\n                            value\r\n                            unit\r\n                        }\r\n                        expire {\r\n                            value\r\n                            unit\r\n                        }\r\n                        minimum {\r\n                            value\r\n                            unit\r\n                        }\r\n                        serialNumberFormat\r\n                        rnameDomain\r\n                        rnameExternal\r\n                        rnameType\r\n                        rnameEnforce\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    }\r\n}\r\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 r=t[n]||new Set,s=new Set,l=new Set;for(r.forEach(function(e){l.add(e)});l.size>0;){var d=l;l=new Set,d.forEach(function(e){s.has(e)||(s.add(e),(t[e]||new Set).forEach(function(e){l.add(e)}))})}return s.forEach(function(n){var t=a(e,n);t&&i.definitions.push(t)}),i}(n,"RestoreDnsSoaRecordTemplate")}}]);
2//# sourceMappingURL=soa-record.js.map?69356db09c7182909546

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.