PageSourceSearch

https://www.ktpconteyor.com/assets/dist/downloadRequest-BcmQ5WiE.js

js ktpconteyor.com collected 2026-10-09 21:47:02 UTC 1,971 bytes, 1 lines download raw bytes

1import{openModalById as u}from"./modals-Cl3_cgYG.js";import{d as i}from"./downloadModal-DfRErEtv.js";import"./nprogress-CeDOxkPw.js";const r="download-modal",m=(a,e,t)=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_submission",form_id:a.id,form_action:a.action,download_product:e,lead_status:t.lead_status,lead_industry:t.lead_industry})},w=(a,e)=>{document.querySelector(".download-toast")?.remove();const t=document.createElement("div");t.className="download-toast",t.setAttribute("role","status");const n=document.createElement("span");n.textContent=(a.dataset.toastText||"").replace("{email}",e);const o=document.createElement("button");o.type="button",o.className="download-toast__not-you",o.textContent=a.dataset.notYouText||"Not you?",o.addEventListener("click",async()=>{t.remove(),a.reset(),await fetch(a.dataset.forgetAction,{method:"POST"})}),t.append(n," ",o),document.body.append(t),setTimeout(()=>t.remove(),8e3)},c=a=>{const e=document.getElementById(r);e&&(i({modal:e,button:a}),u(r))},l=async a=>{const e=document.getElementById("download"),t=a.closest(".single--download");if(!e||!t)return;const n=t.dataset.title||"",o=new FormData(e);o.set("download",t.dataset.download),o.set("product",n),o.set("email",""),o.set("industry",""),o.set("industry_other","");try{const d=await(await fetch(e.action,{method:"POST",body:o})).json();if(!d.success||d.lead_status!=="remembered"){c(a);return}m(e,n,d),w(e,d.lead_email),window.location.href=d.redirect}catch(s){console.error("Download request failed",s),c(a)}},f=()=>{document.querySelectorAll(".single--download a").forEach(o=>{o.addEventListener("click",s=>{s.preventDefault(),l(o)})});const e=new URLSearchParams(location.search).get("download");if(!e)return;const t=new URL(location.href);t.searchParams.delete("download"),history.replaceState({},"",t);const n=document.querySelector(`.single--download[data-download="${CSS.escape(e)}"]`);n&&l(n)};export{f as downloadRequest};

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.