1const c={purchase:["checkout","form"],book_call:["calendar","form"],capture_lead:["form"],apply:["form"],download:["pdf_download","form"]};function u(e){return e?c[e]:["checkout","calendar","form","pdf_download"]}function d(e){const o=["checkout","calendar","form","pdf_download"];for(const r of o)if(e.currentSections.includes(r))return{href:`#${r}`,targetSection:r,targetSlug:e.currentSlug,reason:"on-page"};if(e.nextSlugFallback)return{href:`/lp/${e.nextSlugFallback}`,targetSection:null,targetSlug:e.nextSlugFallback,reason:"next-page"};const a=u(e.goal),t=e.orderedPages.findIndex(r=>r.slug===e.currentSlug);for(const r of a){const n=e.orderedPages.slice(t>=0?t+1:0).find(l=>l.sections.includes(r));if(n)return{href:`/lp/${n.slug}`,targetSection:r,targetSlug:n.slug,reason:"downstream-goal"}}return{href:null,targetSection:null,targetSlug:null,reason:"no-target"}}export{d as resolvePrimaryCtaHref};
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.