PageSourceSearch

https://portageturf.com/_astro/submitLead.CtZ3QrzJ.js

js portageturf.com collected 2026-10-04 20:46:28 UTC 823 bytes, 1 lines download raw bytes

1import{LEAD_ENDPOINT as p,LEAD_DOMAIN as m,LEAD_API_KEY as u}from"./leadConfig.DSBz6jNx.js";import{e as c,g as f}from"./utmInit.DguqbRTG.js";import{getHubSpotTrackingContext as l}from"./hubspotContext.JZSZa2pr.js";import{p as d}from"./dataLayer.CpYjfjQr.js";async function b({leadData:e,source:a,formType:r,formId:n}){c();const i=f(),s=l(),t=await fetch(p,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKey:u,domain:m,leadData:{...e,source:a,timestamp:new Date().toISOString(),...i,...s},legal:{contactConsent:!0}})});let o={};try{o=await t.json()}catch{}return t.ok?(d({event:"form_submission",form_type:r,form_id:n,page_path:window.location.pathname,page_title:document.title,page_url:window.location.href}),{ok:!0}):{ok:!1,error:o.error||"Submission failed"}}export{b as submitLead};

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.