PageSourceSearch

https://innfun.com.tw/cp/javascript/views/dns/records/dns-zone-sync.js?f84d522090e1472cec9f

js innfun.com.tw collected 2026-10-08 23:19:33 UTC 1,949 bytes, 10 lines download raw bytes

1"use strict";(globalThis.webpackChunkPlesk||=[]).push([["views/dns/records/dns-zone-sync"],{1604(e,n,t){t.r(n),t.d(n,{default:()=>r});var s=t(341),o=t(772),c=t(342);const r=({onClose:e,isOpen:n=!0,closeOnFormSuccess:t=!0,closeUrl:r="..",form:l,...u})=>{const a=(0,o.useNavigate)(),[i,d]=(0,s.useState)(n),f=(0,s.useRef)(null),p=(0,s.useCallback)((...n)=>{const t=e??(()=>a(r,{preventScrollReset:!0}));d(!1),f.current=setTimeout(()=>{t(...n),f.current=null},300)},[r,a,e]);(0,s.useEffect)(()=>()=>{f.current&&clearTimeout(f.current)},[]),(0,s.useEffect)(()=>{n?f.current&&clearTimeout(f.current):d(n)},[n]);const m=(0,s.useMemo)(()=>{if(l&&t){if((0,s.isValidElement)(l))return(0,s.cloneElement)(l,{onSuccess:(...e)=>{l.props.onSuccess?.(...e),p()}});if("object"==typeof l)return{...l,onSuccess:(...e)=>{l.onSuccess?.(...e),p()}}}return l},[t,p,l]);return(0,s.jsx)(c.Drawer,{...u,form:m,onClose:p,isOpen:i})}},2527(e,n,t){t.r(n),t.d(n,{default:()=>p});var s=t(755),o=t(811),c=t(342),r=t(813),l=t(1604),u=t(798),a=t(95),i=t(341);const d=a.Locale.getTranslate("admin.controllers.dns.sync"),f=s.gql`
2    mutation SyncDnsZone($input: SyncDnsZoneInput!) {
3        syncDnsZone(input: $input) {
4            task {
5                id
6            }
7        }
8    }
9`,p=()=>{const[e]=(0,o.useMutation)(f);return(0,i.jsx)(l.default,{component:r.default,dataType:"dns-zone-sync",isOpen:!0,title:(0,i.jsx)(d,{content:"title"}),"aria-label":a.Locale.getSection("admin.controllers.dns.sync").lmsg("drawerAriaLabel"),form:(0,i.jsx)(u.default,{applyButton:!1,mutation:e,onSubmit:({sync:e})=>({forced:"forced"===e}),submitButton:{"data-type":"dns-sync-apply"},values:{sync:"safe"},children:(0,i.jsx)(c.FormFieldRadioButtons,{label:(0,i.jsx)(d,{content:"type-option"}),name:"sync",options:[{value:"safe",label:(0,i.jsx)(d,{content:"safe"})},{value:"forced",label:(0,i.jsx)(d,{content:"force"})}]})})})}}}]);
10//# sourceMappingURL=dns-zone-sync.js.map?f84d522090e1472cec9f

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.