PageSourceSearch

https://zupdeco.org/wp-content/cache/min/1/wp-content/themes/zupde…/js/zd-forms-base-gate.js?ver=1781145429

js zupdeco.org collected 2026-10-02 06:44:36 UTC 1,272 bytes, 5 lines download raw bytes

1async function zdFetchNonce(intent,ajaxUrl){const safeIntent=String(intent||'').trim();const url=String(ajaxUrl||'').trim();if(!safeIntent)throw new Error('Missing intent');if(!url)throw new Error('Missing ajaxUrl');const fd=new FormData();fd.append('action','zd_get_nonce');fd.append('intent',safeIntent);let res;try{res=await axios.post(url,fd,{withCredentials:!0,headers:{'X-Requested-With':'XMLHttpRequest'},})}catch(err){const msg=err?.response?.data?.data?.message||err?.response?.data?.message||err?.message||'Request failed';throw new Error(msg)}
2const data=res?.data;const nonce=data?.success?data?.data?.nonce:null;if(typeof nonce!=='string'||!nonce){const msg=data?.data?.message||data?.message||'nonce';throw new Error(msg)}
3return nonce}
4async function zdRecaptchaToken(action){const g=window.grecaptcha;const key=typeof window.ZDRC_SITE_KEY==='string'?window.ZDRC_SITE_KEY.trim():'';const act=String(action||'gate');if(!key)throw new Error('Missing site key');if(!g||typeof g.ready!=='function'||typeof g.execute!=='function'){throw new Error('reCAPTCHA is not available')}
5await new Promise((resolve)=>g.ready(resolve));const token=await g.execute(key,{action:act});if(typeof token!=='string'||!token)throw new Error('Invalid reCAPTCHA token');return token}

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.