1import{_ as X}from"./BRHpWdv3.js";import{N as G}from"./BYDFMv8N.js";import{h as Q,i as W,z as f,r as Y,I as q,d as a,b as n,k as r,t as k,l as $,f as m,m as J,u as t,a as y,w as K,c as _,F as w,e as R,g as O,x as M}from"./DMrrjmsP.js";import{_ as ee}from"./M86b3K4O.js";import{u as te}from"./DO0f7sGL.js";import{u as oe}from"./CgDv98eV.js";import{u as re}from"./D-DHu0rs.js";import"./BDejD7Y0.js";import"./Dy-6uP2u.js";import"./CsarkFRQ.js";import"./ByTRN3G3.js";const se={class:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between"},ne={class:"font-inter text-base font-semibold leading-[150%] text-grey-600"},ie={class:"flex flex-wrap items-center gap-1"},ae={key:0,class:"size-5 shrink-0 transition-colors duration-200",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},le={__name:"CaseStudySocialShare",props:{shareTitle:{type:String,default:""},heading:{type:String,default:"Share this case study"}},setup(S){const C=S,v=Q(),{public:{appBaseUrl:H}}=W(),g=f(()=>`${H}${v.path}`),o=f(()=>{const l=new URLSearchParams,e=(C.shareTitle??"").trim();return e&&l.set("text",e),l.set("url",g.value),l.set("via","whatagraph"),`https://x.com/intent/tweet?${l.toString()}`}),L=f(()=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(g.value)}`),V=f(()=>`https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(g.value)}&source=Whatagraph`),p=Y(!1);let b;async function T(){try{await navigator.clipboard.writeText(g.value),p.value=!0,clearTimeout(b),b=setTimeout(()=>{p.value=!1},2500)}catch(l){console.error(l)}}return q(()=>{clearTimeout(b)}),(l,e)=>{const s=G;return n(),a("div",se,[r("h3",ne,k(S.heading),1),r("div",ie,[r("button",{type:"button",class:"group inline-flex items-center justify-center gap-1 rounded-lg border border-grey-300 bg-base-light px-[14px] py-[10px] text-sm font-semibold leading-5 text-grey-600 shadow-[0px_1px_2px_rgba(16,24,40,0.05)] transition-[color,background-color,border-color,box-shadow,transform] duration-200 hover:-translate-y-px hover:border-grey-400 hover:bg-white hover:text-grey-800 hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-grey-400 focus-visible:ring-offset-2",onClick:T},[t(p)?m("",!0):(n(),a("svg",ae,e[0]||(e[0]=[r("path",{d:"M4.1665 12.4998C3.38993 12.4998 3.00165 12.4998 2.69536 12.373C2.28698 12.2038 1.96253 11.8794 1.79337 11.471C1.6665 11.1647 1.6665 10.7764 1.6665 9.99984V4.33317C1.6665 3.39975 1.6665 2.93304 1.84816 2.57652C2.00795 2.26292 2.26292 2.00795 2.57652 1.84816C2.93304 1.666
15 3.39975 1.6665 4.33317 1.6665H9.99984C10.7764 1.6665 11.1647 1.6665 11.471 1.79337C11.8794 1.96253 12.2038 2.28698 12.373 2.69536C12.4998 3.00165 12.4998 3.38993 12.4998 4.1665M10.1665 18.3332H15.6665C16.5999 18.3332 17.0666 18.3332 17.4232 18.1515C17.7368 17.9917 17.9917 17.7368 18.1515 17.4232C18.3332 17.0666 18.3332 16.5999 18.3332 15.6665V10.1665C18.3332 9.23308 18.3332 8.76637 18.1515 8.40985C17.9917 8.09625 17.7368 7.84128 17.4232 7.68149C17.0666 7.49984 16.5999 7.49984 15.6665 7.49984H10.1665C9.23308 7.49984 8.76637 7.49984 8.40985 7.68149C8.09625 7.84128 7.84128 8.09625 7.68149 8.40985C7.49984 8.76637 7.49984 9.23308 7.49984 10.1665V15.6665C7.49984 16.5999 7.49984 17.0666 7.68149 17.4232C7.84128 17.7368 8.09625 17.9917 8.40985 18.1515C8.76637 18.3332 9.23308 18.3332 10.1665 18.3332Z",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))),J(" "+k(t(p)?"Copied":"Copy link"),1)]),$(s,{to:t(o),target:"_blank",rel:"noopener noreferrer",class:"group flex size-10 items-center justify-center rounded-lg border border-grey-300 bg-base-light text-grey-400 shadow-[0px_1px_2px_rgba(16,24,40,0.05)] transition-[color,background-color,border-color,box-shadow,transform] duration-200 hover:-translate-y-px hover:border-grey-400 hover:bg-white hover:text-grey-800 hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-grey-400 focus-visible:ring-offset-2",title:"X","aria-label":"Share on X"},{default:y(()=>e[1]||(e[1]=[r("svg",{class:"size-5 shrink-0 transition-colors duration-200",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},[r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.2879 19.1668L8.66337 12.5752L2.87405 19.1668H0.424805L7.57674 11.0261L0.424805 0.833496H6.71309L11.0717 7.04601L16.5327 0.833496H18.982L12.1619 8.59723L19.5762 19.1668H13.2879ZM16.0154 17.3085H14.3665L3.93176 2.69183H5.58092L9.7601 8.54446L10.4828 9.56005L16.0154 17.3085Z",fill:"currentColor"})],-1)])),_:1},8,["to"]),$(s,{to:t(L),target:"_blank",rel:"noopener noreferrer",class:"group flex size-10 items-center justify-center rounded-lg border border-grey-300 bg-base-light text-grey-400 shadow-[0px_1px_2px_rgba(16,24,40,0.05)] transition-[color,background-color,border-color,box-shadow,transform] duration-200 hover:-translate-y-px hover:border-grey-400 hover:bg-white hover:text-grey-800 hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-grey-400 focus-visible:ring-offset-2",title:"Facebook","aria-label":"Share on Facebook"},{default:y(()=>e[2]||(e[2]=[r("svg",{class:"size-5 shrink-0 transition-colors duration-200",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},[r("path",{d:"M20 10C20 4.47715 15.5229 0 10 0C4.47715 0 0 4.47715 0 10C0 14.9912 3.65684 19.1283 8.4375 19.8785V12.8906H5.89844V10H8.4375V7.79688C8.4375 5.29063 9.93047 3.90625 12.2146 3.90625C13.3084 3.90625 14.4531 4.10156 14.4531 4.10156V6.5625H13.1922C11.95 6.5625 11.5625 7.3334 11.5625 8.125V10H14.3359L13.8926 12.8906H11.5625V19.8785C16.3432 19.1283 20 14.9912 20 10Z",fill:"currentColor"})],-1)])),_:1},8,["to"]),$(s,{to:t(V),target:"_blank",rel:"noopener noreferrer",class:"group flex size-10 items-center justify-center rounded-lg border border-grey-300 bg-base-light text-grey-400 shadow-[0px_1px_2px_rgba(16,24,40,0.05)] transition-[color,background-color,border-color,box-shadow,transform] duration-200 hover:-translate-y-px hover:border-grey-400 hover:bg-white hover:text-grey-800 hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-grey-400 focus-visible:ring-offset-2",title:"LinkedIn","aria-label":"Share on LinkedIn"},{default:y(()=>e[3]||(e[3]=[r("svg",{class:"size-5 shrink-0 transition-colors duration-200",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},[r("path",{d:"M18.5195 0H1.47656C0.660156 0 0 0.644531 0 1.44141V18.5547C0 19.3516 0.660156 20 1.47656 20H18.5195C19.3359 20 20 19.3516 20 18.5586V1.44141C20 0.644531 19.3359 0 18.5195 0ZM5.93359 17.043H2.96484V7.49609H5.93359V17.043ZM4.44922 6.19531C3.49609 6.19531 2.72656 5.42578 2.72656 4.47656C2.72656 3.52734 3.49609 2.75781 4.44922 2.75781C5.39844 2.75781 6.16797 3.52734 6.16797 4.47656C6.16797 5.42187 5.39844 6.19531 4.44922 6.19531ZM17.043 17.043H14.0781V12.4023C14.0781 11.2969 14.0586 9.87109 12.5352 9.87109C10.9922 9.87109 10.7578 11.0781 10.7578 12.3242V17.043H7.79688V7.49609H10.6406V8.80078H10.6797C11.0742 8.05078 12.043 7.25781 13.4844 7.25781C16.4883 7.25781 17.043 9.23438 17.043 11.8047V17.043V17.043Z",fill:"currentColor"})],-1)])),_:1},8,["to"])])])}}},ue={key:1,class:"w-full px-6 sm:px-4 md:px-10 xl:px-20"},de={class:"mx-auto mb-20 mt-9 flex max-w-screen-xl flex-col gap-10 lg:mt-16 lg:flex-row lg:gap-11"},ce={class:"w-full shrink-0 md:basis-[224px]"},he=["innerHTML"],ge={key:2,class:"sticky top-24 mt-8 rounded-2xl text-grey-500"},pe={class:"block text-[40px] font-medium leading-10 text-grey-800"},me={class:"block text-sm/[150%]"},fe=["innerHTML"],be={class:"flex min-w-0 flex-1 flex-col gap-6"},Te={__name:"index",async setup(S){var l;let C,v;const H=new Set(["CaseStudiesQuote","RichTextContentComponent","CaseStudiesInsightCards"]);function g(e){return!!(e!=null&&e.component&&H.has(e.component))}const{page:o,sections:L,seoTags:V,fetchData:p}=te({contentName:"case-studies",params:"populate=deep,4",isCollection:!0}
1),b=f(()=>{var s,d,c,h,u;const e=(c=(d=(s=o.value)==null?void 0:s.seo)==null?void 0:d.metaTitle)==null?void 0:c.trim();return e||(((u=(h=o.value)==null?void 0:h.brand_name)==null?void 0:u.trim())??"")}),T=f(()=>{const e=L.value??[],s=[];let d=[],c=[];const h=()=>{d.length&&(s.push({type:"full",sections:[...d]}),d=[])},u=()=>{c.length&&(s.push({type:"twoColumn",sections:[...c]}),c=[])};for(const x of e)g(x)?(h(),c.push(x)):(u(),d.push(x));return u(),h(),s});return[C,v]=K(()=>p()),await C,v(),oe({...V.value,...re({url:`/case-studies/${(l=o.value)==null?void 0:l.slug}`,data:o.value})}),(e,s)=>{const d=X,c=le,h=ee;return n(),_(h,null,{default:y(()=>[(n(!0),a(w,null,R(t(T),(u,x)=>{var B,N,I,z,Z,U,j,D,F,A,E,P;return n(),a("div",{key:`block-${x}-${((B=u.sections[0])==null?void 0:B.anchor)??""}`},[u.type==="full"?(n(!0),a(w,{key:0},R(u.sections,i=>(n(),a("div",{key:i.anchor},[(n(),_(O(i.component),{id:i.anchor,section:i,content:i,source:"case-studies"},null,8,["id","section","content"]))]))),128)):(n(),a("div",ue,[r("div",de,[r("div",ce,[(N=t(o).brand_logo)!=null&&N.url?(n(),_(d,{key:0,class:"max-w-[156px]",width:((I=t(o).brand_logo)==null?void 0:I.width)||200,height:((z=t(o).brand_logo)==null?void 0:z.height)||0,alt:(Z=t(o).brand_logo)==null?void 0:Z.alternativeText,"desktop-src":`${("useCdn"in e?e.useCdn:t(M))((U=t(o).brand_logo)==null?void 0:U.url)}?height=60`,"tablet-src":`${("useCdn"in e?e.useCdn:t(M))((j=t(o).brand_logo)==null?void 0:j.url)}?height=50`,"mobile-src":`${("useCdn"in e?e.useCdn:t(M))((D=t(o).brand_logo)==null?void 0:D.url)}?height=30`},null,8,["width","height","alt","desktop-src","tablet-src","mobile-src"])):m("",!0),t(o).brand_description?(n(),a("div",{key:1,class:"mt-5 text-sm/[150%] text-grey-500 [&_h2]:mb-1 [&_h2]:mt-4 [&_h2]:text-base [&_h2]:font-medium [&_h2]:text-grey-700 [&_p]:mb-1 [&_span]:!text-grey-500",innerHTML:t(o).brand_description},null,8,he)):m("",!0),t(o).highlights?(n(),a("div",ge,[s[0]||(s[0]=r("span",{class:"mb-3 block font-wg text-25 font-normal leading-8 text-base-dark md:text-38 md:leading-13"}," Highlights ",-1)),s[1]||(s[1]=r("span",{class:"mt-3 block text-base font-medium text-grey-600"}," Result: ",-1)),r("span",pe,k((F=t(o).highlights)==null?void 0:F.result_number),1),r("span",me,k((A=t(o).highlights)==null?void 0:A.result_description),1),s[2]||(s[2]=r("span",{class:"mb-1 mt-3 block text-base font-medium text-grey-600"}," Solution: ",-1)),(E=t(o).highlights)!=null&&E.solution_description?(n(),a("span",{key:0,class:"block text-sm/[150%] [&_span]:!text-grey-500 [&_ul]:ml-[20px] [&_ul]:list-disc",innerHTML:(P=t(o).highlights)==null?void 0:P.solution_description},null,8,fe)):m("",!0)])):m("",!0)]),r("div",be,[(n(!0),a(w,null,R(u.sections,i=>(n(),a(w,{key:i.anchor},[(n(),_(O(i.component),{id:i.anchor,section:i,content:i,source:"case-studies"},null,8,["id","section","content"])),i.component==="RichTextContentComponent"?(n(),_(c,{key:0,"share-title":t(b)},null,8,["share-title"])):m("",!0)],64))),128))])])]))])}),128))]),_:1})}}};export{Te 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.