PageSourceSearch

https://www.persado.com/_next/static/chunks/0ni4hqzmg4wjd.js

js persado.com collected 2026-09-24 09:32:10 UTC 8,929 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,99423,e=>{"use strict";var s=e.i(43476),l=e.i(1616),t=e.i(94342),a=e.i(12617),r=e.i(38077),i=e.i(15993),n=e.i(71645),o=e.i(22016),c=e.i(47400);let d=["teal","red","blue"],h=["Financial Services","Retail & Ecommerce","Generative AI","Personalization","Insurance","Healthcare","Travel & Hospitality"];function b({posts:e,categories:l}){let[t,a]=(0,n.useState)(""),[r,i]=(0,n.useState)("all"),[u,x]=(0,n.useState)(1),[p,m]=(0,n.useState)(new Set),j=(0,n.useRef)(null),g=(0,n.useRef)(null),f=["all",...h.filter(e=>l.includes(e))],_=e.filter(e=>{let s=t.toLowerCase(),l=!t||e.title.toLowerCase().includes(s)||e.excerpt.toLowerCase().includes(s)||e.categories.join(" ").toLowerCase().includes(s),a="all"===r||e.categories.includes(r);return l&&a}),v=_.length,N=Math.ceil(v/12),y=(u-1)*12,k=_.slice(y,y+12),C=0===v?"No results":t||"all"!==r?`${k.length} of ${v} article${1!==v?"s":""}`:`${y+1}\u2013${y+k.length} of ${v} articles`;(0,n.useEffect)(()=>{m(new Set);let e=[];return k.forEach((s,l)=>{let t=setTimeout(()=>{m(e=>{let s=new Set(e);return s.add(l),s})},80*l);e.push(t)}),()=>e.forEach(clearTimeout)},[u,t,r]);let w=(0,n.useCallback)(e=>{if(!(e<1)&&!(e>N)&&(x(e),j.current)){let e=j.current.getBoundingClientRect().top+window.pageYOffset-160;window.scrollTo({top:e,behavior:"smooth"})}},[N]),S=(0,n.useCallback)(()=>{a(""),i("all"),x(1),g.current?.focus()},[]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"bl-search-wrap",children:(0,s.jsxs)("div",{className:"bl-search-inner",children:[(0,s.jsxs)("div",{className:"bl-search-field",children:[(0,s.jsxs)("svg",{className:"bl-search-icon",width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,s.jsx)("path",{d:"m21 21-4.35-4.35"})]}),(0,s.jsx)("input",{ref:g,type:"text",placeholder:"Search articles\\u2026",autoComplete:"off","aria-label":"Search articles",value:t,onChange:e=>{a(e.target.value.trim()),x(1)}}),(0,s.jsx)("button",{className:`bl-search-clear${t.length>0?" visible":""}`,"aria-label":"Clear search",onClick:S,children:"✕"})]}),(0,s.jsxs)("div",{className:"bl-filter-row",children:[(0,s.jsx)("div",{className:"bl-filter-pills",role:"group","aria-label":"Filter by category",children:f.map(e=>(0,s.jsx)("button",{className:`bl-filter-pill${r===e?" active":""}`,"data-cat":e,onClick:()=>{i(e),x(1)},children:"all"===e?"All":e},e))}),(0,s.jsx)("div",{className:"bl-search-count","aria-live":"polite",children:C})]})]})}),(0,s.jsxs)("section",{className:"bl-grid-section",children:[(0,s.jsx)("div",{className:"bl-grid",ref:j,role:"list",children:k.map((e,l)=>{let t=d[(y+l)%3],a=function(e){for(let s=0;s<h.length;s++)if(e.categories.includes(h[s]))return h[s];for(let s=0;s<e.categories.length;s++)if("Story"!==e.categories[s])return e.categories[s];return e.categories[0]||""}(e);return(0,s.jsxs)("article",{className:`bl-card${p.has(l)?" is-visible":""}`,role:"listitem","data-color":t,"data-categories":e.categories.join(","),style:{transitionDelay:`${.08*l}s`},children:[(0,s.jsx)("span",{className:"bl-corner tl"}),(0,s.jsx)("span",{className:"bl-corner tr"}),(0,s.jsx)("span",{className:"bl-corner bl"}),(0,s.jsx)("span",{className:"bl-corner br"}),e.heroImage?(0,s.jsx)("div",{className:"bl-card__image",children:(0,s.jsx)("img",{src:e.heroImage,alt:e.title,loading:"lazy"})}):(0,s.jsx)("div",{className:"bl-card__image bl-card__no-img",children:(0,s.jsx)("div",{style:{color:"var(--muted)",textAlign:"center"},children:(0,s.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.3",children:[(0,s.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,s.jsx)("line",{x1:"8",y1:"10",x2:"16",y2:"10"}),(0,s.jsx)("line",{x1:"8",y1:"14",x2:"14",y2:"14"})]})})}),(0,s.jsxs)("div",{className:"bl-card__body",children:[a&&(0,s.jsx)("div",{className:"bl-card__cat",children:a}),(0,s.jsx)("h3",{className:"bl-card__title",children:e.title}),e.excerpt&&(0,s.jsx)("p",{className:"bl-card__excerpt",children:e.excerpt}),(0,s.jsxs)("div",{className:"bl-card__meta",children:[(0,s.jsx)("span",{className:"bl-card__date",children:(0,c.formatBlogDate)(e.date)}),(0,s.jsxs)(o.default,{href:`/articles/${e.slug}`,className:"bl-card__link",children:["Read Article ",(0,s.jsx)("span",{className:"bl-card__arrow",children:"→"})]})]})]})]},e.slug)})}),(0,s.jsxs)("div",{className:`bl-empty${0===v?" visible":""}`,role:"status",children:[(0,s.jsx)("div",{className:"bl-empty__bracket",children:"[ ]"}),(0,s.jsx)("div",{className:"bl-empty__title",children:"No articles found"}),(0,s.jsxs)("div",{className:"bl-empty__sub",children:["Try a different search or"," ",(0,s.jsx)("button",{onClick:S,style:{background:"none",border:"none",cursor:"pointer",color:"var(--teal)",fontSize:"inherit",fontWeight:600,padding:0},children:"clear filters"}),"."]})]}),N>1&&(0,s.jsxs)("nav",{className:"bl-pagination","aria-label":"Blog pagination",children:[(0,s.jsx)("button",{className:"bl-page-btn bl-prev-next",onClick:()=>w(u-1),disabled:1===u,"aria-label":"Previous page",children:"← Prev"}),Array.from({length:N},(e,s)=>s+1).map(e=>(0,s.jsx)("button",{className:`bl-page-btn${e===u?" active":""}`,onClick:()=>w(e),"aria-label":`Page ${e}`,"aria-current":e===u?"page":void 0,children:e},e)),(0,s.jsx)("button",{className:"bl-page-btn bl-prev-next",onClick:()=>w(u+1),disabled:u===N,"aria-label":"Next page",children:"Next →"})]})]})]})}var u=e.i(85629);let x={section_listing_hero:i.default,section_cta:function({blok:e}={}){let l,t=e?.eyebrow??"Ready to See Results?",a=e?.heading??"See What Persa
1do Can Do\nfor Your Marketing",r=e?.subheading??"Whether you're improving open rates, driving applications, or personalizing at scale — see how Persado delivers measurable lift across the full content lifecycle.",i=e?.button_primary_label??"Get a Demo",o=e?.button_primary_link??"/contact",c=e?.button_secondary_label??"See All Results",d=e?.button_secondary_link??"/results";return(0,s.jsxs)("div",{className:"cta-block",...e?(0,u.storyblokEditable)(e):{},children:[(0,s.jsxs)("svg",{className:"cta-block__bg",viewBox:"0 0 1200 400",preserveAspectRatio:"xMidYMid slice",children:[(0,s.jsx)("defs",{children:(0,s.jsxs)("linearGradient",{id:"blCtaGlow",x1:"0",y1:"0.5",x2:"1",y2:"0.5",children:[(0,s.jsx)("stop",{offset:"0%",stopColor:"#0A8F8F",stopOpacity:"0"}),(0,s.jsx)("stop",{offset:"30%",stopColor:"#0A8F8F",stopOpacity:"0.06"}),(0,s.jsx)("stop",{offset:"70%",stopColor:"#0A8F8F",stopOpacity:"0.06"}),(0,s.jsx)("stop",{offset:"100%",stopColor:"#0A8F8F",stopOpacity:"0"})]})}),(0,s.jsx)("path",{d:"M0,100 C400,240 800,140 1200,280",fill:"none",stroke:"url(#blCtaGlow)",strokeWidth:"120"}),(0,s.jsx)("path",{d:"M0,80 C350,220 750,120 1200,260",fill:"none",stroke:"rgba(10,143,143,0.1)",strokeWidth:"1.5"}),(0,s.jsx)("path",{d:"M0,120 C450,260 850,160 1200,300",fill:"none",stroke:"rgba(10,143,143,0.07)",strokeWidth:"1"}),(0,s.jsx)("path",{d:"M0,60 C300,200 700,100 1200,240",fill:"none",stroke:"rgba(10,143,143,0.05)",strokeWidth:"1"}),(0,s.jsx)("path",{d:"M0,80 C350,220 750,120 1200,260",fill:"none",stroke:"#0A8F8F",strokeWidth:"2",strokeDasharray:"20 1200",opacity:"0.4",children:(0,s.jsx)("animate",{attributeName:"stroke-dashoffset",from:"0",to:"-1220",dur:"7s",repeatCount:"indefinite"})}),(0,s.jsx)("path",{d:"M0,120 C450,260 850,160 1200,300",fill:"none",stroke:"#D92B2B",strokeWidth:"1.5",strokeDasharray:"15 1200",opacity:"0.3",children:(0,s.jsx)("animate",{attributeName:"stroke-dashoffset",from:"0",to:"-1220",dur:"9s",repeatCount:"indefinite"})})]}),t&&(0,s.jsxs)("div",{className:"cta-block__eyebrow",children:[(0,s.jsx)("span",{className:"bracket",children:"["})," ",t," ",(0,s.jsx)("span",{className:"bracket",children:"]"})]}),(0,s.jsx)("div",{className:"cta-block__heading",children:(l=a.split("\n")).map((e,t)=>(0,s.jsxs)(n.Fragment,{children:[e,t<l.length-1&&(0,s.jsx)("br",{})]},t))}),r&&(0,s.jsx)("div",{className:"cta-block__sub",children:r}),(0,s.jsxs)("div",{className:"cta-block__btns",children:[i&&(0,s.jsx)("a",{href:o,className:"btn btn-primary btn-lg",children:i}),c&&(0,s.jsx)("a",{href:d,className:"btn btn-outline",children:c})]})]})}};e.s(["default",0,function({initialStory:e,posts:i,categories:n}){return(0,s.jsx)(l.default,{initialStory:e,children:e=>{let l=e.content.body,o={...a.UNIVERSAL_REGISTRY,...x},c=l.some(e=>!!r.LP_REGISTRY[e.component]&&!x[e.component]),d=[];for(let e of l)d.push((0,t.renderBlok)(e,o)),"section_listing_hero"===e.component&&d.push((0,s.jsx)(b,{posts:i,categories:n},"__grid"));return(0,s.jsxs)(s.Fragment,{children:[c&&(0,s.jsx)("style",{dangerouslySetInnerHTML:{__html:r.LP_CSS}}),d]})}})}],99423)}]);

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.