1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e92fc5aa-5ce2-5d6d-a026-93711bb08061")}catch(e){}}(); 3(self.webpackChunkaigency_landing=self.webpackChunkaigency_landing||[]).push([[484],{5484:(e,s,l)=>{l.r(s),l.d(s,{BlogIndexPage:()=>P,BlogPostPage:()=>_,PostCard:()=>K,PostMeta:()=>I});var t=l(9379),a=l(5043),c=l(8288),n=l(9997),r=l(786),i=l(1149),o=l(43),h=l(1889),d=l(4550);var x=l(5552),p=l(3562);function m(e){return e.toLowerCase().split(/\s+/).map((e=>e.replace(/[^a-z0-9]/g,""))).filter(Boolean)}function u(e,s){return s.some((s=>s.startsWith(e)))}function b(e,s){const l=function(e){return e.toLowerCase().split(/\s+/).map((e=>e.replace(/[^a-z0-9]/g,""))).filter(Boolean)}(s);if(0===l.length)return[];const t=[];for(const a of e){const e=m(a.title),s=m(a.tag),c=m(a.excerpt),n=m(a.content);let r=0,i=!0;for(const t of l){const l=u(t,e),a=u(t,s),o=u(t,c),h=u(t,n);if(!l&&!a&&!o&&!h){i=!1;break}l&&(r+=5),a&&(r+=3),o&&(r+=2),h&&(r+=1)}i&&t.push({post:a,score:r})}return t.sort(((e,s)=>s.score!==e.score?s.score-e.score:e.post.date===s.post.date?0:e.post.date<s.post.date?1:-1)),t.map((e=>e.post))}const v=16/9,g=[480,960],j="blog/thumb";function f(e,s){return"/".concat(j,"/").concat(e,"-").concat(s,".webp")}function N(e){if("string"!==typeof(s=e.heroImage)||!/^\/blog\/[^/]+\.(png|jpe?g|webp|gif)$/i.test(s))return null;var s;const[l]=g;return{src:f(e.slug,l),srcSet:g.map((s=>"".concat(f(e.slug,s)," ").concat(s,"w"))).join(", "),width:l,height:(t=l,Math.round(t/v))};var t}const y="(max-width: 720px) calc(100vw - 104px), 450px",k="(max-width: 860px) calc(100vw - 104px), 420px";var w=l(5599),C=(l(6088),l(579));function I(e){let{post:s,byline:l=!0,linkTag:t=!1}=e;const a=t&&""!==(0,p.Os)(s.tag),c=(0,p.m$)(s.tag);return(0,C.jsxs)("p",{className:"lvb-meta",children:[a?(0,C.jsx)("a",{className:"lvb-tag ".concat(c),href:(0,p.cp)(s.tag),children:s.tag}):(0,C.jsx)("span",{className:"lvb-tag ".concat(c),children:s.tag}),(0,C.jsx)("time",{dateTime:s.date,children:(0,h.Wy)(s.date)}),(0,C.jsx)("span",{"aria-hidden":"true",children:"\xb7"}),(0,C.jsxs)("span",{children:[s.readMinutes," min read"]}),l&&(0,C.jsx)("span",{className:"lvb-meta-author",children:(0,x.DZ)((0,x.Br)(s))})]})}const S=/reviewed by|edited by/;function B(e){let{post:s}=e;return(0,C.jsx)("p",{className:"lvb-byline",children:(0,x.Iv)((0,x.Br)(s)).map(((e,s)=>"text"===e.kind?S.test(e.text)?(0,C.jsx)("span",{className:"lvb-byline-role",children:e.text},s):(0,C.jsx)(a.Fragment,{children:e.text},s):e.slug?(0,C.jsx)("a",{href:(0,x.r5)(e.slug),children:e.name},"".concat(e.slug,"-").concat(s)):(0,C.jsx)(a.Fragment,{children:e.name},s)))})}function T(e){let{post:s}=e;const[l,t]=a.useState(!1),{canonical:c,linkedin:n,x:r}=function(e){const s="".concat(d.W6,"/blog/").concat(e.slug);return{canonical:s,linkedin:"https://www.linkedin.com/feed/?shareActive=true&text=".concat(encodeURIComponent("".concat(e.title,"\n\n").concat(s))),x:"https://twitter.com/intent/tweet?url=".concat(encodeURIComponent(s),"&text=").concat(encodeURIComponent(e.title))}}(s),i=e=>(0,w.$)(w.U.POST_SHARED,{network:e,slug:s.slug});return(0,C.jsxs)("div",{className:"lvb-share",children:[(0,C.jsx)("span",{className:"lvb-share-label",children:"Share"}),(0,C.jsx)("a",{href:n,target:"_blank",rel:"noreferrer",onClick:()=>i("linkedin"),children:"LinkedIn"}),(0,C.jsx)("span",{"aria-hidden":"true",children:"\xb7"}),(0,C.jsx)("a",{href:r,target:"_blank",rel:"noreferrer",onClick:()=>i("x"),children:"X"}),(0,C.jsx)("span",{"aria-hidden":"true",children:"\xb7"}),(0,C.jsx)("button",{type:"button",className:"lvb-share-copy",onClick:async()=>{try{await navigator.clipboard.writeText(c),i("copy"),t(!0),window.setTimeout((()=>t(!1)),2e3)}catch(e){}},"aria-live":"polite",children:l?"Copied":"Copy link"})]})}function z(e){let{thumb:s,sizes:l,priority:a=!1}=e;return(0,C.jsx)("img",(0,t.A)({className:"lvb-thumb",src:s.src,srcSet:s.srcSet,sizes:l,width:s.width,height:s.height,alt:"",loading:a?"eager":"lazy",decoding:a?"auto":"async"},a?{fetchPriority:"high"}:{}))}function K(e){let{post:s}=e;const l=N(s);return(0,C.jsxs)("a",{className:"lvb-card",href:"/blog/".concat(s.slug),children:[l&&(0,C.jsx)(z,{thumb:l,sizes:y}),(0,C.jsx)(I,{post:s}),(0,C.jsx)("h3",{className:"lvb-card-title",children:s.title}),(0,C.jsx)("p",{className:"lvb-card-excerpt",children:s.excerpt}),(0,C.jsx)("span",{className:"lvb-readmore",children:"Read story \u2192"})]})}function P(){const e=(0,h.zX)(),[s,...l]=e,t=s?N(s):null,[c,n]=a.useState(""),r=a.useMemo((()=>b(e,c)),[e,c]),i=c.trim().length>0,x=a.useMemo((()=>(0,p.Jw)(e)),[e]);return(0,C.jsxs)(o.qK,{children:[(0,C.jsx)("section",{className:"lvx lvp-hero",children:(0,C.jsxs)("div",{className:"lvx-in lvb-hero",children:[(0,C.jsx)("h1",{className:"lvp-h1",children:"The Aigency blog"}),(0,C.jsx)("p",{className:"lvp-lead",children:d.td}),(0,C.jsxs)("div",{className:"lvb-search",children:[(0,C.jsx)("label",{className:"lvb-search-label",htmlFor:"lvb-q",children:"Search posts"}),(0,C.jsxs)("div",{className:"lvb-search-box",children:[(0,C.jsxs)("svg",{className:"lvb-search-icon","aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[(0,C.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,C.jsx)("line",{x1:"16.5",y1:"16.5",x2:"21",y2:"21"})]}),(0,C.jsx)("input",{id:"lvb-q",className:"lvb-search-input",type:"search",value:c,onChange:e=>n(e.target.value),placeholder:"Search by title, tag or topic"})]})]}),x.length>0&&(0,C.jsx)("ul",{className:"lvb-tag-chips",children:x.map((e=>e.slug?(0,C.jsx)("li",{children:(0,C.jsx)("a",{className:"lvb-tag ".concat((0,p.m$)(e.label)),href:(0,p.cp)(e.label),onClick:s=>{s.metaKey||s.ctrlKey||s.shiftKey||s.altKey||(s.preventDefault(),n(e.label))},children:e.label})},e.slug):(0,C.jsx)("li",{children:(0,C.jsx)("span",{className:"lvb-tag ".concat((0,p.m$)(e.label)),children:e.label})},e.label)))})]})}),(0,C.jsx)("section",{className:"lvx lvp-body",children:(0,C.jsx)("div",{className:"lvx-in",children:i?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("p",{className:"lvb-search-count",children:[0===r.length?'No posts match "'.concat(c,'".'):"".concat(r.length," post").concat(1===r.length?" matches":"s match",' "').concat(c,'".'),(0,C.jsx)("button",{type:"button",className:"lvb-search-clear",onClick:()=>n(""),children:"Clear"})]}),r.length>0&&(0,C.jsx)("div",{className:"lvb-grid",children:r.map((e=>(0,C.jsx)(K,{post:e},e.slug)))})]}):0===e.length?(0,C.jsx)("p",{className:"lvb-empty",children:"No posts yet. Check back soon."}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("a",{className:"lvb-featured".concat(t?" lvb-featured--media":""),href:"/blog/".concat(s.slug),children:[t&&(0,C.jsx)("div",{className:"lvb-featured-media",children:(0,C.jsx)(z,{thumb:t,sizes:k,priority:!0})}),(0,C.jsxs)("div",{className:"lvb-featured-body",children:[(0,C.jsx)(I,{post:s}),(0,C.jsx)("h2",{className:"lvb-featured-title",children:s.title}),(0,C.jsx)("p",{className:"lvb-featured-excerpt",children:s.excerpt}),(0,C.jsx)("span",{className:"lvb-readmore",children:"Read story \u2192"})]})]}),l.length>0&&(0,C.jsx)("div",{className:"lvb-grid",children:l.map((e=>(0,C.jsx)(K,{post:e},e.slug)))})]})})})]})}function _(e){let{slug:s}=e;const l=(0,h.N7)(s),t=a.useMemo((()=>l?(0,n.Vr)(l.content):""),[l]),d=(0,r.i)(t);if(!l)return(0,C.jsx)(o.qK,{children:(0,C.jsx)("section",{className:"lvx lvp-hero",children:(0,C.jsxs)("div",{className:"lvx-in",children:[(0,C.jsx)("p",{className:"lvp-eyebrow",children:"Blog"}),(0,C.jsx)("h1",{className:"lvp-h1",children:"Post not found."}),(0,C.jsx)("p",{className:"lvp-lead",children:"That story doesn\u2019t exist or has moved. Head back to the blog to find it."}),(0,C.jsx)("div",{className:"lvp-ctas",children:(0,C.jsx)("a",{className:"lvp-cta lvp-cta--primary",href:"/blog",children:"Back to the blog"})})]})})});const x=function(e,s){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3;const t=(0,p.Os)(s.tag),a=e.filter((e=>e.slug!==s.slug)),c=e=>""!==t&&(0,p.Os)(e.tag)===t,n=a.filter(c),r=a.filter((e=>!c(e))),i=new Set,o=[];for(const h of[...n,...r]){if(o.length>=l)break;i.has(h.slug)||(i.add(h.slug),o.push(h))}return o}((0,h.zX)(),l,3);return(0,C.jsxs)(o.qK,{article:!0,children:[(0,C.jsx)("article",{className:"lvx lvp-hero",children:(0,C.jsxs)("div",{className:"lvx-in lvb-article",children:[(0,C.jsx)("a",{className:"lvb-back",href:"/blog",children:"\u2190 All posts"}),(0,C.jsx)(I,{post:l,byline:!1,linkTag:!0}),(0,C.jsx)("h1",{className:"lvp-h1 lvb-article-title",children:l.title}),(0,C.jsx)(B,{post:l}),l.heroImage&&(0,C.jsx)("img",{className:"lvb-article-hero",src:l.heroImage,alt:"",fetchPriority:"high"}),(0,C.jsx)("div",{className:"lvb-body",ref:d,dangerouslySetInnerHTML:{__html:t}}),(0,C.jsx)(T,{post:l})]})}),x.length>0&&(0,C.jsx)("section",{className:"lvx lvb-related","aria-labelledby":"lvb-related-h",children:(0,C.jsxs)("div",{className:"lvx-in",children:[(0,C.jsx)("h2",{className:"lvb-related-title",id:"lvb-related-h",children:"Keep reading"}),(0,C.jsx)("div",{className:"lvb-related-grid",children:x.map((e=>(0,C.jsx)(K,{post:e},e.slug)))})]})}),(0,C.jsx)(i.I3,{source:c.k.LINK_VISIBILITY_BLOG,sub:"Own where the AI answer lands. Drop your email and we'll be in touch to book a demo."})]})}}}]); 4//# sourceMappingURL=484.6f197361.chunk.js.map 5//# debugId=e92fc5aa-5ce2-5d6d-a026-93711bb08061
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.