1(function(){'use strict';function applyHoneypotRefill(form,honeypotData){if(!form||!honeypotData||typeof honeypotData!=='object'){return;} 2Object.keys(honeypotData).forEach(function(fieldName){const token=honeypotData[fieldName];if(!token||!token.random_hash||!token.field_name){return;} 3const wrapper=form.querySelector('[data-cf7apps-honeypot="'+fieldName+'"]')||form.querySelector('.wpcf7-form-control-wrap.'+fieldName+'-wrap');if(!wrapper){return;} 4const hashInput=form.querySelector('input[name="'+fieldName+'-random-hash"]');if(hashInput){hashInput.value=token.random_hash;} 5const honeypotInput=wrapper.querySelector('input.wpcf7-form-control[type="text"]');if(honeypotInput){honeypotInput.setAttribute('name',token.field_name);honeypotInput.value='';}});} 6function syncHoneypotInputValues(form){if(!form){return;} 7form.querySelectorAll('[data-cf7apps-honeypot]').forEach(function(wrapper){const honeypotInput=wrapper.querySelector('input.wpcf7-form-control[type="text"]');if(!honeypotInput){return;} 8const attributeValue=honeypotInput.getAttribute('value');if(attributeValue&&!honeypotInput.value){honeypotInput.value=attributeValue;}});} 9function bindHoneypotRefillEvents(form){if(!form||form.dataset.cf7appsHoneypotBound){return;} 10if(!form.querySelector('[data-cf7apps-honeypot]')){return;} 11form.dataset.cf7appsHoneypotBound='1';form.addEventListener('submit',function(){syncHoneypotInputValues(form);},true);form.addEventListener('wpcf7reset',function(event){if(event.detail&&event.detail.apiResponse&&event.detail.apiResponse.honeypot){applyHoneypotRefill(form,event.detail.apiResponse.honeypot);}});form.addEventListener('wpcf7submit',function(event){if(event.detail&&event.detail.apiResponse&&event.detail.apiResponse.honeypot){applyHoneypotRefill(form,event.detail.apiResponse.honeypot);}});} 12function initHoneypotRefill(){if(typeof wpcf7==='undefined'){return;} 13if(typeof wpcf7.submit==='function'&&!wpcf7.__cf7appsHoneypotSubmitWrapped){const originalSubmit=wpcf7.submit;wpcf7.submit=function(form,options){if(form instanceof HTMLFormElement){syncHoneypotInputValues(form);} 14return originalSubmit.call(this,form,options);};wpcf7.__cf7appsHoneypotSubmitWrapped=true;} 15const forms=document.querySelectorAll('.wpcf7 > form');forms.forEach(function(form){bindHoneypotRefillEvents(form);if(!form.querySelector('[data-cf7apps-honeypot]')){return;} 16const forceRefill=(typeof wpcf7!=='undefined'&&wpcf7.cached)||(typeof cf7appsHoneypotRefill!=='undefined'&&cf7appsHoneypotRefill.forceRefillOnInit);if(forceRefill&&typeof wpcf7.reset==='function'){wpcf7.reset(form);}});} 17if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',initHoneypotRefill);}else{initHoneypotRefill();}})();
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.