PageSourceSearch

https://precoro.com/build/js/sections.promo-banner.BU9SESeu.js

js precoro.com collected 2026-09-24 08:55:16 UTC 874 bytes, 2 lines download raw bytes

1const m="hsFormCallback",f=r=>{if(r.dataset.promoBannerReady)return;r.dataset.promoBannerReady="true";const o=r.querySelector("[data-hs-form]"),i=r.querySelector("[data-hs-form-block]")||o,d=r.querySelector("[data-hs-form-thanks]");if(!o)return;let t=null;const s=()=>{const n=o.querySelector("form.hs-form");if(!n)return;const[,e]=n.id.match(/^hsForm_([\w-]+)/)||[];e&&(t=e)},c=()=>{d&&(i.hidden=!0,d.hidden=!1)},a=new MutationObserver(()=>{s(),t&&a.disconnect()});a.observe(o,{childList:!0,subtree:!0}),s(),t&&a.disconnect(),window.addEventListener("message",n=>{const e=n.data;if(!e||e.type!==m)return;if(e.eventName==="onFormReady"){s();return}if(e.eventName!=="onFormSubmitted")return;(t?e.id===t:document.querySelectorAll('[data-section="promo-banner"] [data-hs-form]').length===1)&&c()})};export{f as init};
2//# sourceMappingURL=sections.promo-banner.BU9SESeu.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.