PageSourceSearch

https://mejindan.ai/assets/useLeadFormTracker-DGHLmjBl.js

js mejindan.ai collected 2026-10-05 14:24:50 UTC 1,293 bytes, 1 lines download raw bytes

1import{u as p,r as k}from"./chunk-LFPYN7LY-CHWPb9ue.js";import{c as L,t as F,a as g,b as h,d as A,e as I}from"./analytics-YNd3FSc3.js";import"./queryClient-_tqFSqay.js";function b(){let t=!1,r=!1,s=!1,c=!1;const o=new Set;return{markStarted(){return t?!1:(t=!0,!0)},markStep(m){return o.has(m)?!1:(o.add(m),!0)},markAttempted(){return r?!1:(r=!0,!0)},markSucceeded(){return s?!1:(s=!0,!0)},markFailed(){return c?!1:(c=!0,!0)}}}function l(t){if(!(t instanceof HTMLElement))return!1;const r=t.tagName.toLowerCase();return r==="input"||r==="textarea"||r==="select"}function P({form_name:t,form_type:r,page_area:s,page_path:c,service_slug:o,entry_cta:m}){const f=p(),i=k.useRef(null),a=k.useRef(null);i.current||(i.current=L(t)),a.current||(a.current=b());const d=i.current,S=c??`${f.pathname}${f.search}`,u={form_name:t,form_type:r,page_area:s,page_path:S,service_slug:o,entry_cta:m,form_session_id:d},n=()=>{a.current?.markStarted()&&I(u)};return{formSessionId:d,markStart:n,markStep:e=>{n(),a.current?.markStep(e)&&A(u,e)},markAttempt:()=>{n(),a.current?.markAttempted()&&h(u)},markSuccess:e=>{n(),a.current?.markSucceeded()&&g(u,e)},markFailure:e=>{n(),a.current?.markFailed()&&F(u,e)},formBindings:{onInputCapture:e=>{l(e.target)&&n()},onChangeCapture:e=>{l(e.target)&&n()}}}}export{P as u};

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.