PageSourceSearch

https://runalphaloops.com/assets/GuideDetail-C_eWBhs6.js

js runalphaloops.com collected 2026-09-24 12:07:42 UTC 12,098 bytes, 1 lines download raw bytes

1import{a as c,j as e}from"./vendor-query-Ced1gGr8.js";import{S as $}from"./SEOHead-RHzyIUxd.js";import{a as f,F as L}from"./footer-DWz2QPa8.js";import{B as E,i as A}from"./index-BkYLe9CP.js";import{B as I}from"./BlogRichText-CCjW8exE.js";import{L as g,d as P}from"./vendor-react-e7KWTrIa.js";import{G as q}from"./GuideCta-DFE4TiFY.js";import"./button-LP6Dpvov.js";import"./collapsible-D0iM3YmE.js";const w={"carrier-verification":"Carrier Verification","fraud-detection":"Fraud Detection",compliance:"Compliance",prospecting:"Prospecting"};function D(s){return new Date(s).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}function F({headings:s,guide:t,relatedGuides:a=[]}){var m;const[r,n]=c.useState(((m=s[0])==null?void 0:m.id)||"");c.useEffect(()=>{const o=new IntersectionObserver(b=>{for(const d of b)d.isIntersecting&&n(d.target.id)},{rootMargin:"-20% 0px -70% 0px"});for(const b of s){const d=document.getElementById(b.id);d&&o.observe(d)}return()=>o.disconnect()},[s]);const x=()=>{navigator.clipboard.writeText(window.location.href).catch(()=>{})};return e.jsxs("aside",{className:"hidden md:flex sticky top-20 flex-col gap-5",children:[s.length>0&&e.jsxs("div",{className:"rounded-xl p-5 bg-blog-surface border border-blog-border",children:[e.jsx("div",{className:"text-xs text-blog-text-muted mb-4",children:"On this page"}),e.jsx("ul",{className:"flex flex-col gap-1",children:s.map(o=>e.jsx("li",{children:e.jsx("a",{href:`#${o.id}`,className:`block text-sm px-2.5 py-1.5 rounded-md border-l-2 transition-all leading-snug no-underline ${r===o.id?"text-blog-primary bg-blog-primary-bg border-l-blog-primary":"text-blog-text-secondary border-l-transparent hover:text-blog-text-primary hover:bg-blog-surface-alt hover:border-l-blog-primary"}`,children:o.text})},o.id))})]}),e.jsxs("div",{className:"rounded-xl p-5 bg-blog-surface border border-blog-border",children:[e.jsx("div",{className:"text-xs text-blog-text-muted mb-4",children:"Guide Info"}),e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsxs("div",{className:"flex justify-between items-center text-xs",children:[e.jsx("span",{className:"text-blog-text-muted",children:"Published"}),e.jsx("span",{className:"text-blog-text-secondary",children:D(t.content.published_date||t.first_published_at)})]}),e.jsxs("div",{className:"flex justify-between items-center text-xs",children:[e.jsx("span",{className:"text-blog-text-muted",children:"Category"}),e.jsx("span",{className:"text-blog-text-secondary",children:w[t.content.category]||"Guide"})]}),t.content.read_time&&e.jsxs("div",{className:"flex justify-between items-center text-xs",children:[e.jsx("span",{className:"text-blog-text-muted",children:"Read time"}),e.jsx("span",{className:"text-blog-text-secondary",children:t.content.read_time})]})]})]}),e.jsxs("div",{className:"rounded-xl p-5 bg-blog-surface border border-blog-border",children:[e.jsx("div",{className:"text-xs text-blog-text-muted mb-4",children:"Share"}),e.jsx("div",{className:"flex gap-2",children:["Twitter","LinkedIn","Copy"].map(o=>e.jsx("button",{onClick:o==="Copy"?x:void 0,className:"flex-1 text-xs py-2 rounded-md border border-blog-border bg-transparent text-blog-text-secondary transition-all hover:border-blog-primary hover:text-blog-primary",children:o},o))})]}),a.length>0&&e.jsxs("div",{className:"rounded-xl p-5 bg-blog-surface border border-blog-border",children:[e.jsx("div",{className:"text-xs text-blog-text-muted mb-4",children:"Related Guides"}),e.jsx("div",{className:"flex flex-col gap-3",children:a.map(o=>e.jsxs(g,{to:`/guides/${o.slug}`,className:"flex flex-col gap-1 p-3 rounded-lg border border-blog-border no-underline transition-all hover:border-blog-border-light hover:bg-blog-surface-alt",children:[e.jsx("span",{className:"text-xs text-blog-primary",children:w[o.content.category]||"Guide"}),e.jsx("span",{className:"text-sm font-semibold leading-tight text-blog-text-secondary hover:text-blog-text-primary transition-colors",children:o.content.title})]},o.slug))})]})]})}function G({prev:s,next:t}){return!s&&!t?null:e.jsxs("div",{className:`max-w-[1100px] mx-auto px-4 sm:px-10 pb-20 grid gap-4 pt-10 border-t border-blog-border ${s&&t?"grid-cols-1 sm:grid-cols-2":"grid-cols-1"}`,children:[s&&e.jsxs(g,{to:`/guides/${s.slug}`,className:"rounded-xl p-5 border border-blog-border bg-blog-surface transition-all duration-200 hover:border-blog-border-light hover:-translate-y-0.5 flex flex-col gap-1.5 no-underline",children:[e.jsx("span",{className:"text-xs text-blog-text-muted",children:"← Previous guide"}),e.jsx("span",{className:"text-sm font-bold leading-tight text-blog-text-secondary hover:text-blog-text-primary transition-colors",children:s.content.title})]}),t&&e.jsxs(g,{to:`/guides/${t.slug}`,className:`rounded-xl p-5 border border-blog-border bg-blog-surface transition-all duration-200 hover:border-blog-border-light hover:-translate-y-0.5 flex flex-col gap-1.5 no-underline text-right ${s?"":"col-span-full"}`,children:[e.jsx("span",{className:"text-xs text-blog-text-muted",children:"Next guide →"}),e.jsx("span",{className:"text-sm font-bold leading-tight text-blog-text-secondary hover:text-blog-text-primary transition-colors",children:t.content.title})]})]})}function T(s){const t=[...s];for(let a=t.length-1;a>0;a--){const r=Math.floor(Math.random()*(a+1));[t[a],t[r]]=[t[r],t[a]]}return t}function H({resources:s,allGuides:t,currentSlug:a}){const r=c.useMemo(()=>s&&s.length>0?s:T((t??[]).filter(n=>n.slug!==a).map(n=>
1({title:n.content.title,description:n.content.lede,url:`/guides/${n.slug}`}))).slice(0,4),[s,t,a]);return r.length===0?null:e.jsxs("section",{className:"max-w-[1100px] mx-auto px-4 sm:px-10 pb-16",children:[e.jsx("h2",{className:"text-2xl font-bold text-blog-text-primary mb-8",children:"Related Resources"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:r.map(n=>{const x=n.url.startsWith("http"),m=x?"a":g,o=x?{href:n.url}:{to:n.url};return e.jsxs(m,{...o,className:"rounded-xl p-6 border border-blog-border bg-white transition-all duration-200 hover:-translate-y-0.5 hover:shadow-md hover:border-blog-border-light no-underline group",children:[e.jsx("h3",{className:"text-base font-bold text-blog-primary mb-2 group-hover:text-blog-primary/80 transition-colors",children:n.title}),e.jsx("p",{className:"text-sm text-blog-text-secondary leading-relaxed line-clamp-2",children:n.description})]},n.url)})})]})}const j={"carrier-verification":{label:"Carrier Verification",tagClass:"bg-blog-primary-bg text-blog-primary"},"fraud-detection":{label:"Fraud Detection",tagClass:"bg-red-50 text-red-600"},compliance:{label:"Compliance",tagClass:"bg-blog-positive-bg text-blog-positive"},prospecting:{label:"Prospecting",tagClass:"bg-blog-amber-bg text-blog-amber"}};function R(s){return new Date(s).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}function k(){const s=document.querySelectorAll(".blog-body h2");return Array.from(s).map((t,a)=>{const r=t.id||`section-${a}`;return t.id||(t.id=r),{id:r,text:t.textContent||""}})}function K(){var N;const{slug:s}=P(),{data:t,isLoading:a}=E(s||""),{data:r}=A(),[n,x]=c.useState(0),[m,o]=c.useState([]);c.useEffect(()=>{const l=()=>{const i=document.documentElement,h=i.scrollTop||document.body.scrollTop,p=i.scrollHeight-i.clientHeight;x(p>0?h/p*100:0)};return window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)},[]),c.useEffect(()=>{if(t){const l=setTimeout(()=>o(k()),100);return()=>clearTimeout(l)}},[t]);const{prev:b,next:d,related:_}=c.useMemo(()=>{if(!(r!=null&&r.stories)||!t)return{prev:void 0,next:void 0,related:[]};const l=r.stories,i=l.findIndex(u=>u.slug===t.slug),h=i>0?l[i-1]:void 0,p=i<l.length-1?l[i+1]:void 0,S=l.filter(u=>u.slug!==t.slug&&u.content.category===t.content.category).slice(0,3);return{prev:h,next:p,related:S}},[r==null?void 0:r.stories,t]),y=t&&j[t.content.category]||j["carrier-verification"];if(a)return e.jsxs("div",{className:"min-h-screen flex items-center justify-center bg-white",children:[e.jsx(f,{}),e.jsx("p",{className:"text-sm text-blog-text-muted",children:"Loading..."})]});if(!t)return e.jsxs("div",{className:"min-h-screen flex items-center justify-center bg-white",children:[e.jsx(f,{}),e.jsx("p",{className:"text-sm text-blog-text-muted",children:"Guide not found."})]});const C={"@context":"https://schema.org","@type":"Article",headline:t.content.title,description:t.content.seo_description||t.content.lede,url:`https://runalphaloops.com/guides/${t.slug}`,datePublished:t.content.published_date||t.first_published_at,publisher:{"@type":"Organization",name:"AlphaLoops",url:"https://runalphaloops.com"}},v=t.content.faqs&&t.content.faqs.length>0?{"@context":"https://schema.org","@type":"FAQPage",mainEntity:t.content.faqs.map(l=>({"@type":"Question",name:l.question,acceptedAnswer:{"@type":"Answer",text:l.answer}}))}:null;return e.jsxs(e.Fragment,{children:[e.jsx($,{title:`${t.content.seo_title||t.content.title} | AlphaLoops`,description:t.content.seo_description||t.content.lede,canonical:`/guides/${t.slug}`,schemaJson:C}),v&&e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(v)}}),e.jsx(f,{}),e.jsxs("main",{className:"min-h-screen bg-white",children:[e.jsx("div",{className:"fixed top-0 left-0 h-0.5 z-[200] transition-all duration-100 bg-blog-primary",style:{width:`${n}%`}}),e.jsxs("div",{className:"max-w-[1100px] mx-auto px-4 sm:px-10 pt-24 md:pt-28 flex items-center gap-2 text-xs text-blog-text-muted",children:[e.jsx(g,{to:"/",className:"text-blog-text-muted no-underline transition-colors hover:text-blog-primary",children:"Home"}),e.jsx("span",{children:"/"}),e.jsx(g,{to:"/guides",className:"text-blog-text-muted no-underline transition-colors hover:text-blog-primary",children:"Guides"}),e.jsx("span",{children:"/"}),e.jsx("span",{className:"text-blog-text-secondary",children:t.content.title})]}),e.jsxs("div",{className:"max-w-[1100px] mx-auto px-4 sm:px-10 pt-10",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6 flex-wrap",children:[e.jsx("span",{className:`text-xs font-medium px-2.5 py-1 rounded ${y.tagClass}`,children:y.label}),e.jsx("span",{className:"text-xs text-blog-text-muted",children:R(t.content.published_date||t.first_published_at)}),t.content.read_time&&e.jsx("span",{className:"text-xs text-blog-text-muted",children:t.content.read_time})]}),e.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-blog-text-primary leading-tight mb-5 max-w-[760px] animate-fade-in-up",children:t.content.title}),e.jsx("p",{className:"text-lg text-blog-text-secondary max-w-[640px] mb-10 leading-relaxed animate-fade-in-up",children:t.content.lede}),((N=t.content.hero_image)==null?void 0:N.filename)&&e.jsx("div",{className:"w-full h-[380px] rounded-xl border border-blog-border overflow-hidden animate-fade-in-up",children:e.jsx("img",{src:`${t.content.hero_image.filename}/m/1200x600/smart`,alt:t.content.hero_image.alt||t.content.title,className:"w-full h-full object-cover"})})]}),e.jsxs("div",{className:"max-w-[1100px] mx-auto px-4 sm:px-10 pt-14 pb-14 grid grid-cols-1 md:grid-cols-[1fr_280px] items-start gap-12 md:gap-16",children:[e.jsx(I,{content:t.content.body}),e.jsx(F,{headings:m,guide:t,relatedGuides:_})]}),t.content.faqs&&t.content.faqs.length>0&&e.jsxs("section",{className:"max-w-[1100px] mx-auto px-4 sm:px-10 pb-16",children:[e.jsx("h2",{className:"text-2xl font-bold text-blog-text-primary mb-8",children:"Frequently Asked Questions"}),e.jsx("div",{className:"grid gap-4",children:t.content.faqs.map((l,i)=>e.jsxs("div",{className:"p-5 rounded-xl bg-blog-surface border border-blog-border",children:[e.jsx("h3",{className:"text-base font-semibold text-blog-text-primary mb-2",children:l.question}),e.jsx("p",{className:"text-sm text-blog-text-secondary leading-relaxed",children:l.answer})]},i))})]}),e.jsx(H,{resources:t.content.related_resources,allGuides:r==null?void 0:r.stories,currentSlug:t.slug}),e.jsx(q,{variant:t.content.cta_variant}),e.jsx(G,{prev:b,next:d})]}),e.jsx(L,{})]})}
1export{K as default};

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.