PageSourceSearch

https://avua.com/assets/BlogDetails-CCOyeiwG.js

js avua.com collected 2026-09-24 12:53:54 UTC 16,062 bytes, 3 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-B9q78oLf.js","assets/index-DVfIgBUP.css"])))=>i.map(i=>d[i]);
2import{u as K,a as z,c as i,j as e,bW as J,H as V,bI as B,_ as Q}from"./index-B9q78oLf.js";import{b as C,c as D,g as G}from"./staticBlogs-KCyFrq4s.js";import X from"./ContactForm-BWv4Rm4j.js";import"./PhoneNumberInput-CP1XkZ61.js";import"./react-country-flag.esm-CBTvU6qH.js";import"./countryPhoneCodes-CKP6OwhM.js";const Z=i.lazy(()=>Q(()=>import("./index-B9q78oLf.js").then(r=>r.lV),__vite__mapDeps([0,1]))),q={title:"Cut a week out of hiring",desc:"avua does the first-pass screening for you, so day one looks like week two"},E={heading:"One platform for every hire.",desc:"Find, screen, and onboard talent for full-time, contract, or global roles in one place."};function ee(r){if(!r)return{first:"",second:""};const n=Math.floor(r.length/2),l=r.indexOf("</p>",n);return l===-1?{first:r,second:""}:{first:r.slice(0,l+4),second:r.slice(l+4)}}function R(r){return String(r||"").trim().toLowerCase().replace(/<[^>]*>/g,"").replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").slice(0,60)}function F(r){if(!r||typeof window>"u")return 2;const n=document.createElement("div");n.innerHTML=r;const h=(n.textContent||n.innerText||"").trim().split(/\s+/).filter(Boolean).length;return Math.max(2,Math.ceil(h/200))}function te(r,n,l){const h=(r||"").trim();if(h)return h;if(!n||typeof window>"u")return l||"";const t=document.createElement("div");t.innerHTML=n;const g=(t.querySelector("p")?.textContent||t.textContent||"").trim();return g?g.length>220?`${g.slice(0,217)}…`:g:l||""}function ae(r){if(!r)return"";const n=String(r).match(/<img[^>]+src=["']([^"']+)["']/i);return n?n[1]:""}function se(r){if(!r||typeof window>"u")return{html:r||"",items:[]};const n=document.createElement("div");n.innerHTML=r;const l=n.querySelectorAll("h2, h3");if(!l.length)return{html:r,items:[]};const h=[],t=new Set;return l.forEach((p,g)=>{const _=(p.textContent||"").trim();if(!_)return;let u=p.getAttribute("id")||R(_)||`section-${g+1}`;for(;t.has(u);)u=`${u}-${g+1}`;t.add(u),p.setAttribute("id",u),h.push({id:u,text:_,level:p.tagName.toLowerCase()==="h3"?3:2})}),{html:n.innerHTML,items:h}}function de(){const r=K(),{id:n}=z(),l=i.useRef(null),h=i.useRef(null),[t,p]=i.useState({coverImg:"",title:"",body:"",categoryName:"",metaTitle:"",metaDescription:"",metaKeywords:"",canonicalUrl:"",created_at:""}),[g,_]=i.useState([]),[u,I]=i.useState(""),[O,k]=i.useState(!1),H=8,f=n,A=C(f)?.data,[a,U]=i.useState(()=>A?D(f):null);i.useEffect(()=>{P(),l.current&&l.current.scrollIntoView({behavior:"smooth"})},[n]);const P=async()=>{const s=C(f),o=s?.data?.content?.split("&&&")||[],c=s?.data?.category?.id;p({coverImg:o[2]||"",title:s?.data?.title||"",body:o[3]||"",categoryName:s?.data?.category?.name||"",metaTitle:o[4]||"",metaDescription:o[5]||"",metaKeywords:o[6]||"",canonicalUrl:o[7]||"",created_at:s?.data?.created_at||""}),U(D(f)),$(0,"",c)},$=async(s=0,o="",c)=>{const j=G(s,H,o,c?String(c):"");_(j?.data?.data||[])},d=i.useMemo(()=>(t.title?.split("&&&")?.[0]||"").trim(),[t.title]),{html:S,items:y}=i.useMemo(()=>se(t.body),[t.body]),W=i.useMemo(()=>F(t.body),[t.body]),x=i.useMemo(()=>te(t.metaDescription,t.body,d),[t.metaDescription,t.body,d]),m=i.useMemo(()=>ae(t.coverImg),[t.coverImg]),T=i.useMemo(()=>R(t.categoryName),[t.categoryName]),b=typeof window<"u"?window.location.href:t.canonicalUrl;i.useEffect(()=>{if(!y.length||typeof window>"u")return;const s=y.map(c=>document.getElementById(c.id)).filter(Boolean);if(!s.length)return;const o=new IntersectionObserver(c=>{c.forEach(j=>{j.isIntersecting&&I(j.target.id)})},{rootMargin:"-20% 0px -70% 0px",threshold:0});return s.forEach(c=>o.observe(c)),()=>o.disconnect()},[y,S]);const L=(s,o)=>{s.preventDefault();const c=document.getElementById(o);c&&(c.scrollIntoView({behavior:"smooth",block:"start"}),I(o))};if(!A)return e.jsx(J,{to:"/page-not-found",replace:!0});const M=g.filter(s=>String(s.id)!==String(f)).slice(0,3),Y=s=>{r(`/blogs/${s.id}`)},v=i.useMemo(()=>
2d?{"@context":"https://schema.org","@type":"Article",headline:d,description:x,image:m?{"@type":"ImageObject",url:m,width:a.ogImageWidth,height:a.ogImageHeight,caption:a.ogImageAlt}:void 0,author:{"@type":"Organization",name:a.author.name,url:"https://avua.com/"},publisher:{"@type":"Organization",name:"Avua",logo:{"@type":"ImageObject",url:"https://avua.com/apple-touch-icon.png"}},datePublished:t.created_at||void 0,dateModified:a.modifiedAt||t.created_at||void 0,mainEntityOfPage:{"@type":"WebPage","@id":t.canonicalUrl||b},keywords:a.metaKeywords,articleSection:a.articleSection,inLanguage:"en-US"}:null,[d,x,m,t.created_at,t.canonicalUrl,b,a]),N=i.useMemo(()=>a.faq?.length?{"@context":"https://schema.org","@type":"FAQPage",mainEntity:a.faq.map(s=>({"@type":"Question",name:s.q,acceptedAnswer:{"@type":"Answer",text:s.a}}))}:null,[a.faq]),w=i.useMemo(()=>d?{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://avua.com/"},{"@type":"ListItem",position:2,name:"Blog",item:"https://avua.com/blogs"},{"@type":"ListItem",position:3,name:t.categoryName||"Article",item:`https://avua.com/blogs?category=${T}`},{"@type":"ListItem",position:4,name:d,item:t.canonicalUrl||b}]}:null,[d,t.categoryName,T,t.canonicalUrl,b]);return i.useEffect(()=>{t.title&&(console.groupCollapsed(`[SEO] BlogDetails /blogs/${a.slug}`),console.table({title:t.metaTitle,description:t.metaDescription,keywords:t.metaKeywords,canonical:t.canonicalUrl,"og:type":"article","og:site_name":a.ogSiteName,"og:locale":a.ogLocale,"og:image":m,"og:image:alt":a.ogImageAlt,"og:image:width":a.ogImageWidth,"og:image:height":a.ogImageHeight,"article:published_time":a.publishedAt,"article:modified_time":a.modifiedAt,"article:section":a.articleSection,"twitter:card":"summary_large_image","theme-color":a.themeColor,robots:"index, follow",author:a.author.name}),console.log("article:tag values →",a.articleTags),console.log("Article JSON-LD →",v),console.log("Breadcrumb JSON-LD →",w),console.log("FAQ JSON-LD →",N),console.groupEnd())},[t.title,t.metaTitle,t.metaDescription,t.metaKeywords,t.canonicalUrl,m,v,w,N,a]),e.jsxs(e.Fragment,{children:[e.jsxs(V,{children:[e.jsx("title",{children:t.metaTitle||`${d} | Avua Blog`}),e.jsx("meta",{name:"description",content:t.metaDescription}),e.jsx("meta",{name:"keywords",content:t.metaKeywords}),t.canonicalUrl&&e.jsx("link",{rel:"canonical",href:t.canonicalUrl}),e.jsx("meta",{name:"robots",content:"index, follow"}),e.jsx("meta",{name:"author",content:a.author.name}),e.jsx("meta",{name:"theme-color",content:a.themeColor}),e.jsx("meta",{property:"og:type",content:"article"}),e.jsx("meta",{property:"og:site_name",content:a.ogSiteName}),e.jsx("meta",{property:"og:locale",content:a.ogLocale}),e.jsx("meta",{property:"og:title",content:t.metaTitle||d}),e.jsx("meta",{property:"og:description",content:x}),e.jsx("meta",{property:"og:url",content:t.canonicalUrl||b}),m&&e.jsx("meta",{property:"og:image",content:m}),m&&e.jsx("meta",{property:"og:image:alt",content:a.ogImageAlt}),m&&e.jsx("meta",{property:"og:image:width",content:String(a.ogImageWidth)}),m&&e.jsx("meta",{property:"og:image:height",content:String(a.ogImageHeight)}),e.jsx("meta",{property:"article:published_time",content:a.publishedAt}),e.jsx("meta",{property:"article:modified_time",content:a.modifiedAt}),e.jsx("meta",{property:"article:section",content:a.articleSection}),a.articleTags.map(s=>e.jsx("meta",{property:"article:tag",content:s},s)),e.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),e.jsx("meta",{name:"twitter:title",content:t.metaTitle||d}),e.jsx("meta",{name:"twitter:description",content:x}),m&&e.jsx("meta",{name:"twitter:image",content:m}),m&&e.jsx("meta",{name:"twitter:image:alt",content:a.ogImageAlt}),v&&e.jsx("script",{type:"application/ld+json",children:JSON.stringify(v)}),w&&e.jsx("script",{type:"application/ld+json",children:JSON.stringify(w)}),N&&e.jsx("script",{type:"application/ld+json",children:JSON.stringify(N)})]}),e.jsx("div",{ref:l}),e.jsxs("div",{className:"blog-detail",children:[e.jsx("section",{className:"hero",children:e.jsxs("div",{className:"hero__inner",children:[e.jsxs("nav",{className:"breadcrumbs","aria-label":"Breadcrumb",children:[e.jsx("a",{href:"/",className:"breadcrumbs__home","aria-label":"Home",onClick:s=>{s.preventDefault(),r("/")},children:e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}),e.jsx("polyline",{points:"9 22 9 12 15 12 15 22"})]})}),e.jsx("span",{className:"breadcrumbs__sep",children:"›"}),e.jsx("a",{href:"/blogs",onClick:s=>{s.preventDefault(),r("/blogs")},children:"Blog"}),t.categoryName&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"breadcrumbs__sep",children:"›"}),e.jsx("a",{href:"/blogs",onClick:s=>{s.preventDefault(),r("/blogs")},children:t.categoryName})]}),e.jsx("span",{className:"breadcrumbs__sep",children:"›"}
2),e.jsx("span",{className:"breadcrumbs__current",title:d,children:d})]}),t.categoryName&&e.jsx("div",{className:"hero__eyebrow",children:t.categoryName}),e.jsx("h1",{className:"hero__title",children:d}),x&&e.jsx("p",{className:"hero__excerpt",children:x}),e.jsxs("div",{className:"hero__meta",children:[e.jsx("div",{className:"hero__avatar","aria-hidden":"true",children:e.jsx("img",{src:a.authorAvatar,alt:a.author.name,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"inherit",display:"block"}})}),e.jsxs("div",{className:"hero__meta-text",children:[e.jsxs("div",{className:"hero__author",children:["Written by ",e.jsx("a",{href:"/blogs",children:a.author.name})]}),e.jsx("div",{className:"hero__role",children:a.author.role}),e.jsxs("div",{className:"hero__dates",children:[t.created_at&&e.jsxs(e.Fragment,{children:["Published:"," ",e.jsx("strong",{children:B(t.created_at?.split(" ")[0]).format("DD/MM/YYYY")})]}),a.modifiedAt&&a.modifiedAt!==a.publishedAt&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"hero__dates-sep",children:"•"}),"Updated:"," ",e.jsx("strong",{children:B(a.modifiedAt).format("DD/MM/YYYY")})]}),e.jsxs("span",{className:"hero__read-time",children:[W," min read"]})]})]})]})]})}),t.coverImg&&e.jsx("div",{className:"cover",children:e.jsx("div",{className:"cover__inner",dangerouslySetInnerHTML:{__html:t.coverImg}})}),e.jsxs("div",{className:"post-layout",children:[e.jsxs("aside",{className:"toc","aria-label":"Table of contents",ref:h,children:[y.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"toc__heading",children:"On this page"}),e.jsxs("ul",{className:"toc__list",children:[y.map(s=>e.jsx("li",{children:e.jsx("a",{href:`#${s.id}`,className:`${s.level===3?"is-sub":""} ${u===s.id?"is-active":""}`.trim(),onClick:o=>L(o,s.id),children:e.jsx("h2",{className:"toc__link-text",children:s.text})})},s.id)),a.faq?.length>0&&e.jsx("li",{children:e.jsx("a",{href:"#faq",className:u==="faq"?"is-active":"",onClick:s=>L(s,"faq"),children:e.jsx("h2",{className:"toc__link-text",children:"FAQs"})})})]})]}),e.jsxs("div",{className:"toc-cta",children:[e.jsx("p",{className:"toc-cta__title",children:q.title}),e.jsx("p",{className:"toc-cta__desc",children:q.desc}),e.jsx("a",{href:"/signup",className:"toc-cta__btn",href:"https://avua.com/employer-login",children:"Build my Shortlist"})]})]}),e.jsxs("article",{className:"article",children:[a.takeaways?.length>0&&(()=>{const s=a.takeawaysHeadingLevel||"h3";return e.jsxs("aside",{className:"callout callout--takeaways",children:[e.jsxs("header",{className:"callout__header",children:[e.jsx("span",{className:"callout__icon","aria-hidden":"true",children:e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M9 11l3 3L22 4"}),e.jsx("path",{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"})]})}),e.jsx(s,{className:"callout__title",children:"Key takeaways"})]}),e.jsx("ul",{className:"callout__list",children:a.takeaways.map((o,c)=>e.jsx("li",{children:o},c))})]})})(),S&&(()=>{const{first:s,second:o}=ee(S);return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"article-body",dangerouslySetInnerHTML:{__html:s}}),e.jsxs("div",{className:"blog-mid-cta",children:[e.jsxs("div",{className:"blog-mid-cta__left",children:[e.jsxs("div",{className:"blog-mid-cta__badge",children:[e.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("polygon",{points:"12 2 2 7 12 12 22 7 12 2"}),e.jsx("polyline",{points:"2 17 12 22 22 17"}),e.jsx("polyline",{points:"2 12 12 17 22 12"})]}),"AI Resume Builder"]}),e.jsxs("div",{className:"blog-mid-cta__headline",children:["Your Resume ",e.jsx("em",{children:"Isn't"})," Getting Read.",e.jsx("br",{}),"Let's Get That ",e.jsx("em",{children:"Fixed!"})]}),e.jsxs("div",{className:"blog-mid-cta__stat",children:["92% ATS Pass Rate",e.jsx("small",{children:"Powered by avua"})]})]}),e.jsxs("div",{className:"blog-mid-cta__right",children:[e.jsxs("p",{className:"blog-mid-cta__body",children:[e.jsx("strong",{children:"75% of resumes get auto-rejected."})," avua's AI Resume Builder optimizes formatting, keywords, and scoring in under 3 minutes, so you land in the “yes” pile."]}),e.jsx("a",{href:"/applicant/resume-builder",className:"blog-mid-cta__btn",target:"_blank",rel:"noopener noreferrer",children:"→ Fix It In 60 Seconds"})]})]}),o&&e.jsx("div",{className:"article-body",dangerouslySetInnerHTML:{__html:o}})]})})(),a.faq?.length>0&&e.jsxs("section",{className:"faq",id:"faq",children:[e.jsx("h2",{className:"faq__heading",children:"Frequently Asked Questions"}),a.faq.map((s,o)=>e.jsx("div",{className:"faq__item",children:e.jsxs("details",{children:[e.jsx("summary",{children:e.jsx("h3",{className:"faq__question",children:s.q})}),e.jsx("p",{className:"faq__answer",children:s.a})]})},o))]}),e.jsxs("aside",{className:"author-bio",children:[e.jsx("div",{className:"author-bio__avatar","aria-hidden":"true",children:e.jsx("img",{src:a.authorAvatar,alt:a.author.name,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"inherit",display:"block"}})}),e.jsxs("div",{children:[e.jsx("div",{className:"author-bio__label",children:"About the author"}),e.jsx("div",{className:"author-bio__name",children:a.author.name}),e.jsx("p",{className:"author-bio__desc",children:a.author.bio}),e.jsx("a",{href:"/blogs",className:"author-bio__link",onClick:s=>{s.preventDefault(),r("/blogs")},children:"View all posts →"})]})]}),e.jsxs("aside",{className:"cta",children:[e.jsx("h3",{className:"cta__heading",children:E.heading}),e.jsx("p",{className:"cta__desc",children:E.desc}),e.jsxs("div",{className:"cta__buttons",children:[e.jsx("a",{href:"https://avua.com/employer-login",className:"cta__btn cta__btn--primary",children:"Get your Shortlist"}),e.jsx("button",{className:"cta__btn cta__btn--ghost",onClick:()=>k(!0),children:"Book a Demo"})]})]})]})]}),M.length>0&&e.jsxs("section",{className:"related",children:[e.jsx("h2",{className:"related__heading",children:t.categoryName?`More from ${t.categoryName}`:"Related articles"}),e.jsx("div",{className:"related__grid",children:M.map(s=>{const o=(s?.title?.split("&&&")?.[0]||"").trim(),c=s?.category?.name||t.categoryName||"Article",j=F(s?.content?.split("&&&")?.[3]||s?.content||"");return e.jsxs("button",{type:"button",className:"related__card",onClick:()=>Y(s),children:[e.jsx("div",{className:"related__card-eyebrow",children:c}),e.jsx("h3",{className:"related__card-title",children:o}),e.jsxs("div",{className:"related__card-meta",children:[a.author.name," · ",j," min read"]})]},s.id)})})]})]}),e.jsx(i.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(Z,{})}),O&&e.jsx(X,{setIsOpenModel:k,setShowDoneMessage:()=>{}})]})}export{de as default};
3//# sourceMappingURL=BlogDetails-CCOyeiwG.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.