PageSourceSearch

https://www.showpad.com/_next/static/chunks/4391ef5b24aad1cf.js?dpl=dpl_7CFgNocWPEUZJzTidDJ9C2bndQL5

js showpad.com collected 2026-09-24 08:32:32 UTC 29,238 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,19145,e=>{"use strict";var t=e.i(65773);let s=(0,t.createContext)(null);function r(){let e=(0,t.useContext)(s);if(void 0===e)throw Error("useResourceContext must be used within a ResourceProvider");return e}e.s(["default",0,s,"useResourceContext",()=>r])},25925,e=>{"use strict";var t=e.i(65773);function s({id:e}){return(0,t.useEffect)(()=>{if(!e)return;let t=`id-${e}`;return document.body.classList.add(t),()=>{document.body.classList.remove(t)}},[e]),null}e.s(["default",()=>s])},58209,(e,t,s)=>{t.exports={trailingSlash:!1}},56681,e=>{"use strict";var t=e.i(73891);let s=new WeakMap,r=new WeakMap,l=new FinalizationRegistry(({signalWeakRef:e,weakReference:t})=>{let s=e.deref();if(!s)return;let l=r.get(s);l&&(l.throttleds.delete(t),0===l.throttleds.size&&(s.removeEventListener("abort",l.listener),r.delete(s)))});function a(e){return e.endsWith("/")?e.slice(0,-1):e}let i=function(e,t,s){if(!t||!s||t===s)return e;let r=a(t),l=a(s),i=e=>{if("string"==typeof e)return e.includes(r)?e.split(r).join(l):e;if(Array.isArray(e))return e.map(i);if(e&&"object"==typeof e){let t={};for(let[s,r]of Object.entries(e))t[s]=i(r);return t}return e};return i(e)};function n(e){if(null==e)return[];if(Array.isArray(e))return e;if("object"!=typeof e)return[];let t=Object.keys(e);return 0===t.length?[]:(t.every(e=>/^\d+$/.test(e))?[...t].sort((e,t)=>Number(e)-Number(t)):[...t].sort()).map(t=>e[t]).filter(e=>null!=e)}var o=e.i(58209);let c=function({limit:e,interval:t,strict:a,signal:i,onDelay:n,weight:o}){if(!Number.isFinite(e))throw TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(t))throw TypeError("Expected `interval` to be a finite number");if(e<0)throw TypeError("Expected `limit` to be >= 0");if(t<0)throw TypeError("Expected `interval` to be >= 0");if(void 0!==o&&"function"!=typeof o)throw TypeError("Expected `weight` to be a function");if(o&&0===t)throw TypeError("The `weight` option cannot be used with `interval` of 0");let c={queue:new Map,strictTicks:[],currentTick:0,activeWeight:0},u=Math.max(e,1),d=e=>{if(0===c.strictTicks.length||e.time>=c.strictTicks.at(-1).time)c.strictTicks.push(e);else{let t=c.strictTicks.findIndex(t=>t.time>e.time);c.strictTicks.splice(t,0,e)}},h=a?function(s){let r=Date.now();if(c.strictTicks.length>0&&r-c.strictTicks.at(-1).time>t&&(c.strictTicks.length=0),o){for(;c.strictTicks.length>0&&r-c.strictTicks[0].time>=t;)c.strictTicks.shift();let l=e=>{let s=0;for(let r of c.strictTicks)r.time<=e&&e-r.time<t&&(s+=r.weight);return s};if(l(r)+s<=e)return d({time:r,weight:s}),{delay:0};let a=r;for(;l(a)+s>e;){let e=c.strictTicks.find(e=>e.time<=a&&a-e.time<t);if(!e)break;a=e.time+t}let i={time:a,weight:s};return d(i),{delay:Math.max(0,a-r),tickRecord:i}}if(c.strictTicks.length<u)return c.strictTicks.push({time:r,weight:s}),{delay:0};let l=c.strictTicks[0].time,a=c.strictTicks.at(-1).time,i=l+t,n=t>0?Math.ceil(t/u):0,h=i<=a?a+n:i;c.strictTicks.shift();let p={time:h,weight:s};return c.strictTicks.push(p),{delay:Math.max(0,h-r),tickRecord:p}}:function(s){let r=Date.now();return r-c.currentTick>t?(c.activeWeight=s,c.currentTick=r,0):(c.activeWeight+s<=e?c.activeWeight+=s:(c.currentTick+=t,c.activeWeight=s),c.currentTick-r)};return t=>{let u=function(...s){let r;return u.isEnabled?new Promise((l,i)=>{let u=1;if(o){try{u=o(...s)}catch(e){i(e);return}if(!Number.isFinite(u)||u<0)return void i(TypeError("Expected `weight` to be a finite non-negative number"));if(u>e)return void i(TypeError(`Expected \`weight\` (${u}) to be <= \`limit\` (${e})`))}let p=h(u),f=a?p.delay:p,m=a?p.tickRecord:void 0,x=()=>{if(m){let e=Date.now();if(o&&m.time!==e){m.time=e;let t=c.strictTicks.indexOf(m);c.strictTicks.splice(t,1),d(m)}else m.time=e}try{l(t.apply(this,s))}catch(e){i(e)}c.queue.delete(r)};if(f>0){r=setTimeout(x,f),c.queue.set(r,i);try{n?.(...s)}catch{}}else x()}):(async()=>t.apply(this,s))()};if(i?.throwIfAborted(),i){let e=r.get(i);e||((e={throttleds:new Set,listener:null}).listener=()=>{for(let t of e.throttleds){let e=t.deref();if(!e)continue;let r=s.get(e);if(r){for(let e of r.queue.keys())clearTimeout(e),r.queue.get(e)(i.reason);r.queue.clear(),r.strictTicks.length=0,r.currentTick=0,r.activeWeight=0}}r.delete(i)},r.set(i,e),i.addEventListener("abort",e.listener,{once:!0}));let t=new WeakRef(u);e.throttleds.add(t),l.register(u,{signalWeakRef:new WeakRef(i),weakReference:t})}return u.isEnabled=!0,Object.defineProperty(u,"queueSize",{get:()=>c.queue.size}),s.set(u,c),u}}({limit:5,interval:2e3,strict:!0});function u(e){return e?.post_type!=="page"?e:{...e,sections:n(e.sections),flexible_content:n(e.flexible_content)}}class d{static instance;cache;baseUrl;assetOrigin;throttledFetch;constructor(){this.baseUrl="https://showpadcms.wpenginepowered.com",this.assetOrigin="https://www.showpad.com",this.cache={},this.throttledFetch=c((e,t)=>this.executeFetch(e,t))}static getInstance(){return d.instance||(d.instance=new d),d.instance}async executeFetch(e,t){let s=`${this.baseUrl}/${function(e=""){let t=new Date,s=`${t.getMonth()}-${t.getDay()}-${t.getHours()}-${+(30>=t.getMinutes())}`;return e.length?`${e}${e.includes("?")?`&v=${s}`:`?v=${s}`}`:s}(e)}`,r={next:{revalidate:600},...t},l=0;for(;;)try{let t=await fetch(s,r);if(429===t.status||t.status>=500){l++;let s=Math.min(2e3*l,6e4);console.warn(`[CMS] ${t.status} on ${e} — waiting ${s/1e3}s before retry (attempt ${l})`),await new Promise(e=>setTimeout(e,s));continue}if(!t.ok)return console.warn(`[CMS] ${t.status} ${t.statusText} on ${e}`),null;let a=await t.json();return i(a,this.baseUrl,this.assetOrigin)}catch(s){if(s.message?.startsWith("[CMS]"))throw s;let t=Math.min(2e3*++l,6e4);console.warn(`[CMS] Network error on ${e} — waiting ${t/1e3}s before retry (attempt ${l})`),await new Promise(e=>setTimeout(e,t))}}async fetchFromWp(e,t){return this.throttledFetch(e,t)}async fetchAndCache(e,t){if(this.cache[e]&&this.cache[e].length>0)return this.cache[e];let s=await t();return this.cache[e]=s,s}async paths({limited:e=!1}={}){var s;let r,l,a,i=await this.fetchAndCache("pathsnew",async()=>Array.from(new Set(await this.fetchFromWp("/wp-json/together/paths"))).map(e=>{var t;return(t=e)?(t.startsWith("https://www.showpad.com")&&(t=t.replace("https://www.showpad.com","")),t.startsWith("https://showpadcms.wpenginepowered.com")&&(t=t.replace("https://showpadcms.wpenginepowered.com","")),/^https?:\/\//.test(t)||(t.startsWith("/")||(t=`/${t}`),o.trailingSlash?t.endsWith("/")||(t+="/"):t.endsWith("/")&&t.length>
11&&(t=t.slice(0,-1))),t):""}).filter(e=>{if(e.startsWith("/resources/")){let t=e.split("/").filter(Boolean);if(t.length>=2&&"category"!==t[1])return!1}return!e.startsWith("/blog/people/")}));return e?(s="production"===t.default.env.VERCEL_ENV?100:20,r=new Set,l=new Map,i.forEach(e=>{let t=e.split("/").filter(Boolean);if(t.length<=1)return void r.add(e);let s=t[0],a=l.get(s)??[];a.push(e),l.set(s,a)}),a=[...l.entries()].flatMap(([,e])=>[...e].sort((e,t)=>e.localeCompare(t)).slice(0,s)),[...[...r].sort((e,t)=>e.localeCompare(t)),...a]):i}async page(e){return u(await this.fetchFromWp(`/wp-json/together/post?slug=${e.split("/").map(e=>encodeURIComponent(e)).join("/")}`))}async options(){return this.fetchAndCache("options",async()=>this.fetchFromWp("/wp-json/together/options"))}async preview(e){return u(await this.fetchFromWp(`/wp-json/together/preview?post_id=${e}&cache=${Date.now()}`,{next:{revalidate:0},cache:"no-cache"}))}async robots(){return this.fetchAndCache("robots",async()=>this.fetchFromWp("/wp-json/together/robots"))}async get(e,t){return await this.fetchFromWp(e,t)}async post(e,t){return await this.get(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async search({query:e="",postType:t="post",perPage:s=20}){let r=`search_${e}_${t}_${s}`;return this.fetchAndCache(r,async()=>this.fetchFromWp(`/wp-json/together/search?q=${e}&post_type=${t}&per_page=${s}`))}async redirects(){return this.fetchAndCache("redirects",async()=>{try{return await this.fetchFromWp("/wp-json/together/redirects-301")}catch(e){return[]}})}async handleRedirectOrPageNotFound(e){let t=await this.redirects();if(t){let s=t.filter(({source:t})=>t===e||t===`${e}/`).pop();if(s?.destination)return{redirect:{destination:s?.destination,permanent:!0}}}return{notFound:!0}}}let h=d.getInstance();e.s(["default",0,h],56681)},62684,e=>{"use strict";var t=e.i(76809),s=e.i(65773),r=e.i(97444),l=e.i(51506);let a=function(e){let{post_title:s,featured_image:a,permalink:i,heading:n,preview_image:o}=e;if(!i)return null;let c=o?.url||a?.src;return(0,t.jsxs)(l.default,{href:i,className:"group flex flex-col gap-6",children:[(0,t.jsx)("div",{className:"relative aspect-310/194 w-full overflow-hidden rounded-lg bg-cream",children:c&&(0,t.jsx)(r.default,{src:c,alt:o?.alt||a.alt||s,fill:!0,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[s&&(0,t.jsx)("p",{className:"text-eyebrow-mono opacity-75",dangerouslySetInnerHTML:{__html:s}}),n&&(0,t.jsx)("p",{className:"text-18px-body text-black",dangerouslySetInnerHTML:{__html:n}})]})]})},i=function(e){let{post_title:s,featured_image:a,permalink:i,heading:n,event_type:o,categories:c,acf:u,post_type:d,postType:h,hideCategory:p,"report-category":f}=e;if(!i)return null;let m=!!a?.src,x="reports"===h||"reports"===d,g=x?f?.[0]?.name||"Report":"events"===d?u?.layout==="webinar"?"Webinar":"Event":u?.layout||(o?.[0]??c?.find(e=>"Article"===e.name)??c?.[0])?.name,y=u?.override_eyebrow&&u?.eyebrow_text?u.eyebrow_text:g;return(0,t.jsxs)(l.default,{href:i,className:"group flex flex-col gap-6",children:[(0,t.jsx)("div",{className:`relative w-full overflow-hidden rounded-lg bg-cream ${x?"aspect-square md:aspect-312/390":"aspect-310/194"}`,children:m&&(0,t.jsx)(r.default,{src:a.src,alt:a.alt||s,fill:!0,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[!p&&y&&(0,t.jsx)("p",{className:"text-eyebrow-mono opacity-75 capitalize",dangerouslySetInnerHTML:{__html:y}}),(s||n)&&(0,t.jsx)("p",{className:"text-18px-body-medium opacity-80 group-hover:opacity-100 transtion-opacity duration-300",dangerouslySetInnerHTML:{__html:s||n}})]})]})};var n=e.i(7284),o=e.i(56139);let c=function(e){let s,{post_title:a,heading:i,permalink:c,featured_image:u,source:d,post_date:h,"press-category":p,boldHeading:f,addTextLink:m}=e;if(!c)return null;let x=!(!(s=u?.src)||/\/wp-includes\/images\/media\/default\.svg$/.test(s)),g=p?.[0]?.name,y=!g||/^press[\s-]?releases?$/i.test(g)?"Press Release":g,b=function(e){if(!e)return null;let t=new Date(e.replace(" ","T"));return Number.isNaN(t.getTime())?null:t.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}(h);return(0,t.jsxs)(l.default,{href:c,className:"group flex flex-col gap-6",children:[(0,t.jsx)("div",{className:"relative w-full overflow-hidden rounded-lg bg-cream aspect-310/194",children:x?(0,t.jsx)(r.default,{src:u.src,alt:u?.alt||a||"",fill:!0,className:"object-cover transition-transform duration-700 group-hover:scale-105"}):(0,t.jsx)(r.default,{src:"/images/press-placeholder.avif",alt:"Press placeholder",fill:!0,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)("p",{className:"flex flex-wrap items-center gap-5 text-13px-mono",children:[(0,t.jsx)("span",{className:"font-medium! capitalize",children:y}),b&&(0,t.jsx)("span",{className:"font-normal opacity-80",children:b})]}),(a||i)&&(0,t.jsx)("p",{className:(0,n.clsx)(" ",f?"text-18px-body-medium":"text-18px-body opacity-80 group-hover:opacity-100 transition-opacity duration-300"),dangerouslySetInnerHTML:{__html:a||i||""}}),m&&(0,t.jsx)(o.default,{className:"mt-1 md:mt-2 max-w-max",children:"Read more"})]})]})};function u({posts:e,postType:r,hideCategory:l}){return e&&0!==e.length?(0,t.jsx)("div",{className:"grid grid-cols-1 gap-y-12 sm:grid-cols-2 sm:gap-x-6 lg:grid-cols-3",children:e.map(e=>"customers"===r?(0,s.createElement)(a,{...e,key:`post-${e.ID}`}):"press"===r?(0,s.createElement)(c,{...e,key:`post-${e.ID}`}):(0,s.createElement)(i,{...e,postType:r,hideCategory:l,key:`post-${e.ID}`}))}):(0,t.jsx)("div",{className:"text-h5 font-heading pb-8 md:pb-[110px]",children:"No stories found"})}e.s(["default",()=>u],62684)},84980,e=>{"use strict";var t=e.i(76809),s=e.i(5686),r=e.i(19145);let l={numbered:(0,s.default)(()=>
1e.A(19348),{loadableGenerated:{modules:[49699]}}),load_more:(0,s.default)(()=>e.A(37863),{loadableGenerated:{modules:[38618]}})};e.s(["default",0,function(){let{listingContext:e,searchTerm:s}=(0,r.useResourceContext)();if(!e?.pagination_type||""!==s)return null;let a=l[e.pagination_type];return(0,t.jsx)(a,{})}])},36265,e=>{"use strict";var t=e.i(76809),s=e.i(7284),r=e.i(51506),l=e.i(55280),a=e.i(65773),i=e.i(56681),n=e.i(84980),o=e.i(62684),c=e.i(19145);function u({label:e,allLabel:l,terms:a,activeTaxonomySlug:i,theme:n}){return(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("p",{className:"text-14px-body-medium font-medium text-black leading-[1.7]",dangerouslySetInnerHTML:{__html:e}}),(0,t.jsx)("ul",{className:"flex flex-col gap-2.5",children:a.map(e=>{let a="all"===e.slug?!i:e.slug===i;return(0,t.jsx)("li",{className:"group",children:(0,t.jsxs)(r.default,{href:e.url,className:(0,s.default)("flex items-center gap-2 text-[1rem] leading-[1.45] transition-colors",a?"font-medium text-black":"text-black/80 hover:text-black"),children:[(0,t.jsx)("span",{className:(0,s.default)("inline-block size-2.5 shrink-0 rotate-45 rounded-[2px] transition-[scale,opacity] duration-[250ms]","purple"===n?"bg-[#8C40CB]":"bg-terra-dark",a?"scale-100 opacity-100":"scale-50 opacity-0 group-hover:scale-100 group-hover:opacity-100"),"aria-hidden":"true"}),(0,t.jsx)("span",{className:(0,s.default)("transition-[opacity,translate] duration-200",a?"translate-x-0":"-translate-x-5 group-hover:translate-x-0"),dangerouslySetInnerHTML:{__html:"all"===e.slug?l:e.name}})]})},e.slug||"all")})})]})}function d({terms:e,activeUrl:s,onChange:r}){return(0,t.jsxs)("div",{className:"group relative",children:[(0,t.jsx)("select",{value:s,onChange:r,className:"w-full appearance-none rounded-lg border border-black/20 bg-transparent pl-4 pr-12 py-2.5 text-16px-body text-black focus:outline-none focus:ring-1 focus:ring-black/30",children:e.map(e=>(0,t.jsx)("option",{value:e.url,children:e.name},e.slug||"all"))}),(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",className:"pointer-events-none absolute right-4 top-1/2 h-4 w-4 -translate-y-1/2 text-black/50 transition-colors group-focus-within:text-black/70",children:(0,t.jsx)("path",{d:"M5.75 7.75L10 12l4.25-4.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]})}function h({listingContext:e,children:s}){let r=(0,l.useRouter)(),{posts:h=[],post_type:p,taxonomyTerms:f,taxonomies:m,base_path:x}=e||{},[g,y]=(0,a.useState)(h),[b,v]=(0,a.useState)(""),[j,w]=(0,a.useState)([]),[k,N]=(0,a.useState)(""),T=(0,a.useDeferredValue)(k),C=(0,a.useRef)(null);(0,a.useEffect)(()=>{y(h)},[h]),(0,a.useEffect)(()=>{if(!T.trim()){w([]),v("");return}i.default.search({query:T,postType:p}).then(e=>{w([...e]),v(T)})},[T,p]);let $=""!==b,S=g.length!==h.length,_=e?.selectedTaxonomies??[],M=(e,t)=>e.map(e=>"all"===e.slug?{...e,url:`${x}#posts`}:{...e,url:`${x}${_.find(e=>e.taxonomy_name===t)?.url??t}/${e.slug}/#posts`}),L=M(f?.industry??[],"industry"),W=M(f?.["use-case"]??[],"use-case"),E=m?.industry??null,A=m?.["use-case"]??null,R=L.find(e=>e.slug===E)?.url??x,F=W.find(e=>e.slug===A)?.url??x,I=(E?R:A?F:x).replace(/#posts$/,""),P=(0,a.useMemo)(()=>({listingContext:e,resourcePath:I,postsToShow:g,setPostsToShow:y,searchTerm:b,setSearchTerm:v,searchResults:j,setSearchResults:w,hideCategories:!0}),[e,I,g,b,j]),D=e=>{r.push(e.target.value)},U=e=>{let t=e.target.value;t?N(t):(N(""),w([]),v(""))},q=$?j:S?g:null,O=L.length>0||W.length>0;return(0,t.jsx)(c.default.Provider,{value:P,children:(0,t.jsxs)("section",{id:"posts",className:"container pb-24 pt-16 md:pt-20",children:[(0,t.jsx)("h2",{className:"text-40px",children:"All customer stories"}),O&&(0,t.jsxs)("div",{className:"mt-6 flex flex-col gap-3 md:hidden",children:[(0,t.jsxs)("div",{className:"flex h-11 items-center gap-2.5 overflow-hidden rounded-full border border-black/20 px-4",children:[(0,t.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",className:"shrink-0 opacity-50",children:[(0,t.jsx)("circle",{cx:"8.5",cy:"8.5",r:"5.5",stroke:"currentColor",strokeWidth:"1.5"}),(0,t.jsx)("path",{d:"M13 13L17 17",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),(0,t.jsx)("input",{ref:C,type:"search",placeholder:"Search",onChange:U,className:"min-w-0 flex-1 bg-transparent font-mono text-[15px] text-black/50 placeholder:text-black/50 focus:text-black focus:outline-none"})]}),L.length>0&&(0,t.jsx)(d,{terms:L,activeUrl:R,onChange:D}),W.length>0&&(0,t.jsx)(d,{terms:W,activeUrl:F,onChange:D})]}),(0,t.jsxs)("div",{id:"all-posts",className:"hidden items-start justify-between gap-10 pt-20 md:flex lg:gap-x-[57px]",children:[O&&(0,t.jsxs)("aside",{className:"sticky top-8 flex w-[280px] shrink-0 flex-col gap-8",children:[(0,t.jsxs)("div",{className:"flex h-11 items-center gap-2.5 overflow-hidden rounded-full border border-black/20 px-4",children:[(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",className:"shrink-0 opacity-50",children:(0,t.jsx)("path",{d:"M9.16602 1.66663C13.306 1.66663 16.666 5.02663 16.666 9.16663C16.666 13.3066 13.306 16.6666 9.16602 16.6666C5.02602 16.6666 1.66602 13.3066 1.66602 9.16663C1.66602 5.02663 5.02602 1.66663 9.16602 1.66663ZM9.16602 15C12.3889 15 14.9993 12.3895 14.9993 9.16663C14.9993 5.94371 12.3889 3.33329 9.16602 3.33329C5.9431 3.33329 3.33268 5.94371 3.33268 9.16663C3.33268 12.3895 5.9431 15 9.16602 15ZM16.2371 15.0592L18.5941 17.4162L17.4156 18.5947L15.0586 16.2377L16.2371 15.0592Z",fill:"#181719"})}),(0,t.jsx)("input",{type:"search",placeholder:"Search",onChange:U,className:"min-w-0 flex-1 bg-transparent font-mono text-[15px] text-black/50 placeholder:text-black/50 focus:text-black focus:outline-none"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-10",children:[L.length>0&&(0,t.jsx)(u,{label:"Industry",allLabel:"All Industries",theme:"purple",terms:L,activeTaxonomySlug:E}),W.length>0&&(0,t.jsx)(u,{label:"Use case",allLabel:"All Use Cases",theme:"terra",terms:W,activeTaxonomySlug:A})]})]}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-14",children:[$&&0===j.length?(0,t.jsxs)("p",{className:"text-h5 font-heading pb-8 md:pb-[110px]",children:["No stories found for “",b,"”."]}):q?(0,t.jsx)(o.default,{posts:q,postType:p}
1):s,(0,t.jsx)(n.default,{})]})]}),(0,t.jsxs)("div",{className:"mt-10 flex flex-col gap-10 md:hidden",children:[$&&0===j.length?(0,t.jsxs)("p",{className:"text-h5 font-heading pb-8",children:["No stories found for “",b,"”."]}):q?(0,t.jsx)(o.default,{posts:q,postType:p}):s,(0,t.jsx)(n.default,{})]})]})})}e.s(["default",()=>h])},89054,e=>{"use strict";var t=e.i(76809),s=e.i(65773),r=e.i(7284),l=e.i(51506),a=e.i(55280);let i=function({items:e,activeValue:s,onChange:r,placeholder:l}){return(0,t.jsxs)("select",{value:s,onChange:r,className:"mb-10 w-full border-x-0 border-t-0 border-b border-black bg-transparent bg-white pr-3 pl-0 text-[0.875rem] font-medium focus:border-black focus:ring-0 active:border-black sm:border-0",children:[l&&(0,t.jsx)("option",{value:"",disabled:!0,children:l}),e.map(e=>(0,t.jsx)("option",{value:e?.value,children:e?.name},`${e.value}-select`))]})};var n=e.i(19145);let o=function(){let e=(0,a.useRouter)(),{listingContext:s}=(0,n.useResourceContext)(),{taxonomyTerms:o,taxonomies:c}=s??{},u=o?.category??[],d=c?.category??"all";return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"md:hidden",children:(0,t.jsx)(i,{items:u.map(e=>({value:e.url,name:e.name})),activeValue:d,onChange:t=>{e.push(t.target.value)}})}),(0,t.jsx)("div",{className:"hidden md:flex md:gap-x-1.5",children:u.map(e=>(0,t.jsxs)(l.default,{href:e.url,className:(0,r.default)("relative isolate overflow-hidden rounded-xl px-6 py-3 text-[1rem]",e.slug===d?"text-white":"text-black"),children:[e.slug===d&&(0,t.jsx)("div",{className:"absolute inset-0 -z-10 bg-black"}),e.name]},e.slug))})]})};var c=e.i(84980),u=e.i(62684),d=e.i(56681);let h=function({id:e="",type:s="text",placeholder:r="",handleOnChange:l}){return(0,t.jsx)("input",{id:e,name:e,type:s,placeholder:r,onChange:l,className:"block w-full rounded-md bg-white px-3 py-1.5 text-base text-gray-900 outline outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-600 sm:text-sm/6"})},p=function({id:e="",label:s="",className:l=""}){return(0,t.jsx)("label",{htmlFor:e,className:(0,r.default)("block text-sm font-medium text-gray-900",l),children:s})},f=function(){let[e,r]=(0,s.useState)(""),l=(0,s.useDeferredValue)(e),{setSearchResults:a,setSearchTerm:i}=(0,n.useResourceContext)();return(0,s.useEffect)(()=>{l.trim()&&(async()=>{a([...await d.default.search({query:l})]),i(l)})()},[l,a,i]),(0,t.jsxs)("div",{children:[(0,t.jsx)(p,{label:"Search",id:"search"}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(h,{id:"search",type:"text",placeholder:"Search",handleOnChange:e=>{let t=e.target.value;if(""===t){a([]),i("");return}r(t)}})})]})};function m({listingContext:e,resourcePath:r,children:l}){let{posts:a=[],post_type:i}=e||{}
1,[d,h]=(0,s.useState)(a),[p,m]=(0,s.useState)(""),[x,g]=(0,s.useState)([]),y=e?.post_type==="customer";(0,s.useEffect)(()=>{h(a)},[a]);let b=""!==p,v=d.length!==a.length,j=(0,s.useMemo)(()=>({listingContext:e,resourcePath:r,postsToShow:d,setPostsToShow:h,searchTerm:p,setSearchTerm:m,searchResults:x,setSearchResults:g,hideCategories:y}),[e,r,d,p,x,y]);return(0,t.jsx)(n.default.Provider,{value:j,children:(0,t.jsxs)("div",{className:"container space-y-24 py-10",children:[!y&&(0,t.jsx)(o,{}),(0,t.jsx)(f,{}),b?0===x.length?(0,t.jsxs)("div",{className:"text-h5 font-heading pb-8 md:pb-[110px]",children:["No stories found for ",p,"."]}):(0,t.jsx)(u.default,{posts:x,postType:i}):v?(0,t.jsx)(u.default,{posts:d,postType:i}):l,(0,t.jsx)(c.default,{})]})})}e.s(["default",()=>m],89054)},96736,e=>{"use strict";var t=e.i(76809),s=e.i(7284),r=e.i(51506),l=e.i(55280),a=e.i(65773),i=e.i(56681),n=e.i(84980),o=e.i(62684),c=e.i(19145);function u({label:e,allLabel:l,terms:a,activeTaxonomySlug:i}){return(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[e&&(0,t.jsx)("p",{className:"text-14px-body-medium font-medium text-black leading-[1.7]",dangerouslySetInnerHTML:{__html:e}}),(0,t.jsx)("ul",{className:"flex flex-col gap-2.5",children:a.map(e=>{let a="all"===e.slug?!i:e.slug===i;return(0,t.jsx)("li",{className:"group",children:(0,t.jsxs)(r.default,{href:e.url,className:(0,s.default)("flex items-center gap-2 text-[1rem] leading-[1.45] transition-colors",a?"font-medium text-black":"text-black/80 hover:text-black"),children:[(0,t.jsx)("span",{className:(0,s.default)("inline-block size-2.5 shrink-0 rotate-45 rounded-[2px] bg-[#8C40CB] transition-[scale,opacity] duration-[250ms]",a?"scale-100 opacity-100":"scale-50 opacity-0 group-hover:scale-100 group-hover:opacity-100"),"aria-hidden":"true"}),(0,t.jsx)("span",{className:(0,s.default)("transition-[opacity,translate] duration-200",a?"translate-x-0":"-translate-x-5 group-hover:translate-x-0"),dangerouslySetInnerHTML:{__html:"all"===e.slug?l:e.name}})]})},e.slug||"all")})})]})}function d({terms:e,activeUrl:s,onChange:r}){return(0,t.jsxs)("div",{className:"group relative",children:[(0,t.jsx)("select",{value:s,onChange:r,className:"w-full appearance-none rounded-lg border border-black/20 bg-transparent pl-4 pr-12 py-2.5 text-16px-body text-black focus:outline-none focus:ring-1 focus:ring-black/30",children:e.map(e=>(0,t.jsx)("option",{value:e.url,children:e.name},e.slug||"all"))}),(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",className:"pointer-events-none absolute right-4 top-1/2 h-4 w-4 -translate-y-1/2 text-black/50 transition-colors group-focus-within:text-black/70",children:(0,t.jsx)("path",{d:"M5.75 7.75L10 12l4.25-4.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]})}function h({isSearching:e,searchTerm:s,displayPosts:r,post_type:l,children:a}){return e&&!r?.length?(0,t.jsxs)("p",{className:"text-h5 font-heading pb-8 md:pb-[110px]",children:["No results found for “",s,"”."]}):r?(0,t.jsx)(o.default,{posts:r,postType:l}):(0,t.jsx)(t.Fragment,{children:a})}function p(e){return e.replace(/-/g," ").replace(/(&\w+;)|(\b\w)/g,(e,t,s)=>t||s.toUpperCase())}function f({listingContext:e,children:s}){let r,o,f,m=(0,l.useRouter)(),{posts:x=[],post_type:g,post_title:y,taxonomyTerms:b,taxonomies:v,base_path:j}=e||{},[w,k]=(0,a.useState)(x),[N,T]=(0,a.useState)(""),[C,$]=(0,a.useState)([]),[S,_]=(0,a.useState)(""),M=(0,a.useDeferredValue)(S),L=(0,a.useRef)(null);(0,a.useEffect)(()=>{k(x)},[x]),(0,a.useEffect)(()=>{if(!M.trim()){$([]),T("");return}i.default.search({query:M}).then(e=>{$([...e]),T(M)})},[M]);let W=""!==N,E=w.length!==x.length,A=e?.selectedTaxonomies??[],R="post"===g,F=R?"category":A[0]?.taxonomy_name??null;if(R)r=(b?.category??[]).filter(e=>"article"!==e.slug).map(e=>"all"===e.slug?{...e,url:`${j}#all-posts`}:{...e,url:`${j}category/${e.slug}/#all-posts`});else if(F){let e,t=b?.[F]??[];e="event-type"===F?t.filter(e=>"webinars"!==e.slug):t,r=e.map(e=>"all"===e.slug?{...e,url:`${j}#all-posts`}:{...e,url:`${j}${A.find(e=>e.taxonomy_name===F)?.url??F}/${e.slug}/#all-posts`})}else r=[];let I=F?v?.[F]??null:null,P=r.find(e=>e.slug===I)?.url??j,D=P.replace(/#all-posts$/,""),U=(0,a.useMemo)(()=>({listingContext:e,resourcePath:D,postsToShow:w,setPostsToShow:k,searchTerm:N,setSearchTerm:T,searchResults:C,setSearchResults:$,hideCategories:!0}),[e,D,w,N,C]);o=R?"Category":"press"===g?"":F?p(F):"Filter";let q=r.find(e=>e.slug===I)?.name??I,O=q?p(q):null,B="press"===g?"All Showpad news":y??p(j?.replace(/\//g,"")||g);f=R?"All Categories":"press"===g?"All":`All ${B}`.trim();let H=e=>{let t=e.target.value;t?_(t):(_(""),$([]),T(""))},z=null;W?z=C:E&&(z=w);let V=r.length>0;return(0,t.jsx)(c.default.Provider,{value:U,children:(0,t.jsxs)("section",{id:"posts",className:"container pb-24 pt-16 md:pt-20",children:[(B??g)&&(0,t.jsx)("h1",{className:"text-40px",dangerouslySetInnerHTML:{__html:O&&"press"!==g?`${B} - ${O}`:B}}),V&&(0,t.jsxs)("div",{className:"mt-6 flex flex-col gap-3 md:hidden",children:[(0,t.jsxs)("div",{className:"flex h-11 items-center gap-2.5 overflow-hidden rounded-full border border-black/20 px-4",children:[(0,t.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",className:"shrink-0 opacity-50",children:[(0,t.jsx)("circle",{cx:"8.5",cy:"8.5",r:"5.5",stroke:"currentColor",strokeWidth:"1.5"}),(0,t.jsx)("path",{d:"M13 13L17 17",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}
1),(0,t.jsx)("input",{ref:L,type:"search",placeholder:"Search",onChange:H,className:"min-w-0 flex-1 bg-transparent font-mono text-[15px] text-black/50 placeholder:text-black/50 focus:text-black focus:outline-none"})]}),r.length>0&&(0,t.jsx)(d,{terms:r,activeUrl:P,onChange:e=>{m.push(e.target.value)}})]}),(0,t.jsxs)("div",{className:"flex items-start justify-between gap-10 pt-10 md:pt-20 lg:gap-x-[57px]",children:[V&&(0,t.jsxs)("aside",{className:"sticky top-8 hidden w-[280px] shrink-0 flex-col gap-8 md:flex",children:[(0,t.jsxs)("div",{className:"flex h-11 items-center gap-2.5 overflow-hidden rounded-full border border-black/20 px-4",children:[(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",className:"shrink-0 opacity-50",children:(0,t.jsx)("path",{d:"M9.16602 1.66663C13.306 1.66663 16.666 5.02663 16.666 9.16663C16.666 13.3066 13.306 16.6666 9.16602 16.6666C5.02602 16.6666 1.66602 13.3066 1.66602 9.16663C1.66602 5.02663 5.02602 1.66663 9.16602 1.66663ZM9.16602 15C12.3889 15 14.9993 12.3895 14.9993 9.16663C14.9993 5.94371 12.3889 3.33329 9.16602 3.33329C5.9431 3.33329 3.33268 5.94371 3.33268 9.16663C3.33268 12.3895 5.9431 15 9.16602 15ZM16.2371 15.0592L18.5941 17.4162L17.4156 18.5947L15.0586 16.2377L16.2371 15.0592Z",fill:"#181719"})}),(0,t.jsx)("input",{type:"search",placeholder:"Search",onChange:H,className:"min-w-0 flex-1 bg-transparent font-mono text-[15px] text-black/50 placeholder:text-black/50 focus:text-black focus:outline-none"})]}),(0,t.jsx)("div",{className:"flex flex-col gap-10",children:r.length>0&&(0,t.jsx)(u,{label:o,allLabel:f,terms:r,activeTaxonomySlug:I})})]}),(0,t.jsxs)("div",{id:"all-posts",className:"flex min-w-0 flex-1 flex-col gap-14 scroll-mt-32",children:[(0,t.jsx)(h,{isSearching:W,searchTerm:N,displayPosts:z,post_type:g,children:s}),(0,t.jsx)(n.default,{})]})]})]})})}e.s(["default",()=>f])}]);

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.