1const m=t=>{const e=`; ${document.cookie}`.split(`; ${t}=`);if(e.length===2)return e.pop().split(";").shift()},f=(t,o,e)=>{const r=new Date;r.setTime(r.getTime()+e*24*60*60*1e3);const n=`expires=${r.toUTCString()}`;document.cookie=`${t}=${o};${n};path=/`},d=()=>{const t=m("oncarrot_forms");if(!t)return{};try{return JSON.parse(decodeURIComponent(t))}catch(o){return console.error(o),{}}},s=t=>{f("oncarrot_forms",encodeURIComponent(JSON.stringify(t)),30)},a=window,g=t=>{a.dataLayer=a.dataLayer||[],a.dataLayer.push({event:"oc_lead_form",...t});const o={formSubmitId:t.formSubmitId,formSubmitPage:t.formSubmitPage,formSubmitTitle:t.formSubmitTitle,formSubmitNumOfFields:t.formSubmitNumOfFields,formSubmitLocation:t.formSubmitLocation},e=()=>typeof a.gtag=="function"?(a.gtag("event","oc_lead_form",o),!0):!1;e()||window.addEventListener("load",e,{once:!0})},l=()=>{const t=d(),o=Object.values(t).filter(e=>(e==null?void 0:e.eventposted)===0);o.length!==0&&(o.forEach(e=>{g({formSubmitId:e.id,formSubmitPage:e.page,formSubmitTitle:e.title,formSubmitNumOfFields:e.numOfFields,formSubmitLocation:e.formlocation,formSubmitSiteId:e.siteid}),e.eventposted=1}),s(t))},u=["body.page .main .gform_wrapper","body.page .entry-content .gform_wrapper","body.single-post .entry-content .gform_wrapper","body.single-lead .main .gform_wrapper","body.single-lead .sidebar .gform_wrapper","body.single-location .entry-content .gform_wrapper","body.single-property .main .gform_wrapper","body.single-property .entry-content .gform_wrapper"].join(", "),p=()=>{const t=d();document.querySelectorAll(u).forEach(o=>{var i;if(o.closest("#carrot-lead-generation-banner, .gday-bar, .modal")||!o.querySelector('input[name="gform_return_access"]'))return;const e=o.getElementsByTagName("form")[0],r=e==null?void 0:e.getAttribute("id");if(!r)return;const n=parseInt(r.replace("gform_",""));((i=t[n])==null?void 0:i.id)==n&&(window.location.href=t[n].returnurl)})},c=()=>{l(),p()};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",c,{once:!0}):c(); 2//# sourceMappingURL=formLeadEventReplay-B4zSVwvz.js.map
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.