1import{_ as q}from"./Dczh5TN4.js";import{_ as F}from"./C3C-A3Zu.js";import{e as A,u as V,g as y,f as Q,h as H,d as B,i as J,j as X,_ as Z}from"./BnowyiiT.js";import{i as ee,d as te,u as se,a as ne,b as oe,c as re,_ as ae}from"./Bh1tyPu7.js";import{a2 as m,u as g,C as u,z as I,ag as ce,l as n,a5 as R,a8 as L,a3 as N,a6 as T,ah as C,W as v,ai as O,a7 as U,X as D,ab as ie}from"./DGxlnW41.js";import{_ as le}from"./B2YqjWf_.js";import{k as pe}from"./Cr3bua69.js";import{_ as _e}from"./BtFBBXiL.js";import{_ as de}from"./C8w-KsDs.js";import{u as ue}from"./Cb368SBu.js";import"./Cj1uASeN.js";import"./SxxlrK1N.js";import"./pggHmpmL.js";import"./nLQdF57q.js";import"./CwpJWcVn.js";import"./_CHoJ0K5.js";import"./CbAtIVSG.js";import"./BirJEn2g.js";import"./CkMOyL3W.js";import"./Dmq4J0nM.js";const me=["src","alt"],Ee={__name:"ACmsImage",props:{field:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},setup(t){const e=t;A(e.field);const s=I(()=>y(e.field,"file")||{}),{$webp:i}=V(),_=I(()=>ee(e.options)?null:e.options),l=I(()=>{const o=Q({image:e.field,transforms:_.value||{w:1600,fit:"max"},webpSupported:i});if(o)return o;const c=A(e.field)||s.value?.url;return c?c.startsWith("http")?c:`https:${c}`:null}),r=I(()=>y(e.field,"description")||"");return(o,c)=>(m(),g("img",{src:u(l),alt:u(r),loading:"lazy",decoding:"async",class:"cms-image"},null,8,me))}},a={PARAGRAPH:"paragraph",HEADING_1:"heading-1",HEADING_2:"heading-2",HEADING_3:"heading-3",HEADING_4:"heading-4",HEADING_5:"heading-5",HEADING_6:"heading-6",OL_LIST:"ordered-list",UL_LIST:"unordered-list",LIST_ITEM:"list-item",HR:"hr",QUOTE:"blockquote",EMBEDDED_ENTRY:"embedded-entry-block",EMBEDDED_ASSET:"embedded-asset-block",EMBEDDED_RESOURCE:"embedded-resource-block",TABLE:"table",TABLE_ROW:"table-row",TABLE_CELL:"table-cell",TABLE_HEADER_CELL:"table-header-cell"},d={ASSET_HYPERLINK:"asset-hyperlink",EMBEDDED_ENTRY:"embedded-entry-inline",EMBEDDED_RESOURCE:"embedded-resource-inline",ENTRY_HYPERLINK:"entry-hyperlink",HYPERLINK:"hyperlink",RESOURCE_HYPERLINK:"resource-hyperlink"},h={BOLD:"bold",ITALIC:"italic",UNDERLINE:"underline",CODE:"code",SUPERSCRIPT:"superscript",SUBSCRIPT:"subscript",STRIKETHROUGH:"strikethrough"},fe={isText(t){return t?.nodeType==="text"}},k=t=>t?.data?.target?.sys?.id||t?.data?.target?._id||t?.data?.target?._ref||"unknown",b=(t,e)=>{const s=k(e);return n("span",{key:s},`type: ${e.nodeType} id: ${s}`)},M=(t,e)=>{const s=e?.data?.target?.sys?.urn||k(e);return n("span",{key:s},`type: ${e?.nodeType||t} urn: ${s}`)},he={[a.PARAGRAPH]:(t,e,s)=>n("p",{key:e},s(t.content,e,s)),[a.HEADING_1]:(t,e,s)=>n("h1",{key:e},s(t.content,e,s)),[a.HEADING_2]:(t,e,s)=>n("h2",{key:e},s(t.content,e,s)),[a.HEADING_3]:(t,e,s)=>n("h3",{key:e},s(t.content,e,s)),[a.HEADING_4]:(t,e,s)=>n("h4",{key:e},s(t.content,e,s)),[a.HEADING_5]:(t,e,s)=>n("h5",{key:e},s(t.content,e,s)),[a.HEADING_6]:(t,e,s)=>n("h6",{key:e},s(t.content,e,s)),[a.EMBEDDED_ENTRY]:(t,e,s)=>n("div",{key:e},s(t.content,e,s)),[a.EMBEDDED_RESOURCE]:(t,e,s)=>n("div",{key:e},s(t.content,e,s)),[a.UL_LIST]:(t,e,s)=>n("ul",{key:e},s(t.content,e,s)),[a.OL_LIST]:(t,e,s)=>n("ol",{key:e},s(t.content,e,s)),[a.LIST_ITEM]:(t,e,s)=>n("li",{key:e},s(t.content,e,s)),[a.QUOTE]:(t,e,s)=>n("blockquote",{key:e},s(t.content,e,s)),[a.HR]:(t,e)=>n("hr",{key:e}),[a.TABLE]:(t,e,s)=>n("table",{key:e},s(t.content,e,s)),[a.TABLE_ROW]:(t,e,s)=>n("tr",{key:e},s(t.content,e,s)),[a.TABLE_HEADER_CELL]:(t,e,s)=>n("th",{key:e},s(t.content,e,s)),[a.TABLE_CELL]:(t,e,s)=>n("td",{key:e},s(t.content,e,s)),[d.ASSET_HYPERLINK]:(t,e)=>b(d.ASSET_HYPERLINK,t),[d.ENTRY_HYPERLINK]:(t,e)=>b(d.ENTRY_HYPERLINK,t),[d.RESOURCE_HYPERLINK]:(t,e)=>M(d.RESOURCE_HYPERLINK,t),[d.EMBEDDED_ENTRY]:(t,e)=>b(d.EMBEDDED_ENTRY,t),[d.EMBEDDED_RESOURCE]:(t,e)=>M(d.EMBEDDED_RESOURCE,t),[d.HYPERLINK]:(t,e,s)=>n("a",{key:e,href:t.data.uri},s(t.content,e,s))},Re={[h.BOLD]:(t,e)=>n("b",{key:e},t),[h.ITALIC]:(t,e)=>n("i",{key:e},t),[h.UNDERLINE]:(t,e)=>n("u",{key:e},t),[h.CODE]:(t,e)=>n("code",{key:e},t),[h.SUPERSCRIPT]:(t,e)=>n("sup",{key:e},t),[h.SUBSCRIPT]:(t,e)=>n("sub",{key:e},t),[h.STRIKETHROUGH]:(t,e)=>n("s",{key:e},t)},P=(t,e,s)=>({default:()=>t.map((i,_)=>De(i,`${e}-${_}
1`,s))}),De=(t,e,s)=>{const{renderNode:i,renderMark:_,preserveWhitespace:l}=s;if(fe.isText(t)){let r=t.value;if(l){r=r.replace(/ {2,}/g,p=>"Â ".repeat(p.length));const o=r.split(` 2`),c=[];o.forEach((p,E)=>{c.push(p),E!==o.length-1&&c.push(n("br"))}),r=c}return t.marks&&t.marks.length>0?t.marks.reduce((o,c,p)=>_[c.type]?_[c.type](o,`${e}-${p}`):o,r):r}else{const r=o=>P(o,e,s);return i[t.nodeType]?i[t.nodeType](t,e,r):""}},ge={name:"CmsRichText",props:{document:{type:Object,required:!0},options:{type:Object,default:()=>({})}},setup(t){const{document:e,options:s}=ce(t);return()=>{if(!e.value||!e.value.content)return null;const i={renderNode:{...he,...s.value.renderNode||{}},renderMark:{...Re,...s.value.renderMark||{}},preserveWhitespace:s.value.preserveWhitespace};return n("div",{class:"richtext"},P(e.value.content,"rt-",i))}}},Ie={__name:"ARichText",props:{field:{type:Object},options:{type:Object,default:()=>({})}},setup(t){const e=t,s=(l,r,o)=>{const c=l.nodeType.replace("heading-",""),p=pe(l?.content[0]?.value)||"";return n(`h${c}`,{key:r,"data-id":p,id:p},o(l.content,r,o))},_={renderNode:{...{[a.HEADING_1]:s,[a.HEADING_2]:s,[a.HEADING_2]:s,[a.HEADING_3]:s,[a.HEADING_4]:s,[a.HEADING_5]:s,[a.HEADING_6]:s,[a.EMBEDDED_ASSET]:(l,r,o)=>{const c=l.data.target;return n(Ee,{key:r,field:c,class:"mx-auto"},o(l.content,r,o))},[d.ENTRY_HYPERLINK]:(l,r,o)=>{const c=l.data.target,p=le(c);return n(H,{key:r,to:p},o(l.content,r,o))},[d.HYPERLINK]:(l,r,o)=>{const c=l.data.uri,p={key:r,href:c};return c.startsWith("http")&&(p.target="_blank"),n(H,p,o(l.content,r,o))}},...e.options?.renderNode},renderMark:{...e.options?.renderMark},preserveWhitespace:!0};return(l,r)=>{const o=ge;return t.field?(m(),R(o,{key:0,document:t.field,options:_,class:""},null,8,["document"])):L("",!0)}}},Ne={class:"col-md-7 col-xl-8 mb-1 mb-md-0 row justify-content-between justify-content-md-start image-wrapper"},Te={class:"p7 p7-md p8-xl"},Le=["innerHTML"],be=["innerHTML"],ye={__name:"CaseStudyInfo",props:{images:{type:[Object,Array]},caseStudyDetails:{type:Object},description:{type:[Object]}},setup(t){const e=t,s=I(()=>(e.caseStudyDetails||[]).map(i=>typeof i=="string"?{key:"",value:i}:i&&typeof i=="object"?{key:i.key||"",value:i.value||i.detail||""}:{key:"",value:""}).filter(i=>i.key||i.value));return(i,_)=>{const l=F,r=J,o=Ie,c=te;return m(),R(c,{tag:"section",class:"case-study-info row px-md-0-875 px-0-5 px-xl-2-25 pt-1 pt-md-0-875 pt-xl-2-25 pb-3 pb-md-3-5 pb-xl-6"},{default:N(({addToTimeline:p})=>[T("div",Ne,[_[0]||(C(-1,!0),(_[0]=(m(!0),g(v,null,O(t.images,(E,f)=>(m(),R(r,{onUpdated:p,preset:"fadeUp",to:{delay:.1+f/10},key:f,class:U(["px-0-5 px-sm-0-4375 px-xl-1-125 image col-6 col-xl-4",{"mb-1 mb-sm-0-875 mb-xl-2-25":f>=1}])},{default:N(()=>[D(l,{proportion:{xs:1.336,md:1.338,xl:1.3335},image:E,imageSizes:{0:{h:Math.round(450*1.336),w:450,q:80,fit:"fill"},768:{h:Math.round(450*1.336),w:450,q:80,fit:"fill"},1200:{h:Math.round(550*1.338),w:550,q:80,fit:"fill"},1920:{h:Math.round(640*1.3335),w:640,q:80,fit:"fill"}},align:"top",class:"w-100"},null,8,["image","imageSizes"])]),_:2},1032,["onUpdated","to","class"]))),128))).cacheIndex=0,C(1),_[0])]),D(r,{onUpdated:p,preset:"fadeUp",to:{delay:.3},class:"col-md h-100 row pl-0-5 pl-sm-0 pl-md-0-875 pl-xl-2-25 px-sm-0-4375"},{default:N(()=>[D(o,{field:t.description,class:"p5 p5-md p2-xl mb-1 mb-xl-2"},null,8,["field"]),(m(!0),g(v,null,O(u(s),(E,f)=>(m(),g("div",{class:U(["col-6 mb-1",{"pl-sm-0-625":f%2}]),key:f},[T("div",Te,[E.key?(m(),g("p",{key:0,innerHTML:E.key},null,8,Le)):L("",!0),T("p",{class:"detail",innerHTML:E.value},null,8,be)])],2))),128))]),_:1},8,["onUpdated"])]),_:1})}}},Se=B(ye,[["__scopeId","data-v-d994610c"]]),Ae={class:"case-study"},He={__name:"CaseStudy",async setup(t){let e,s;const{slug:i,contentType:_}=se(),{page:l}=([e,s]=ie(()=>re(i,_)),e=await e,s(),e),{title:r,caseStudyDetails:o,description:c,images:p,components:E,color:f,relatedArticles:S,sector:x}=X(l),$=y(x,"color");return ne(!1),oe(l),ue(),(G,Ce)=>{const Y=q,w=Se,K=_e,j=de,W=ae,z=Z;return m(),R(z,{isMobile:!G.$device.isDesktop},{default:N(()=>[T("div",Ae,[D(Y,{color:u($),title:u(r)},null,8,["color","title"]),u(o)?(m(),R(w,{key:0,caseStudyDetails:u(o),description:u(c),images:u(p)},null,8,["caseStudyDetails","description","images"])):L("",!0),D(K,{page:u(l)},null,8,["page"]),u(S)?(m(),R(j,{key:1,items:u(S),title:"Related Posts",class:"pt-xl-4"},null,8,["items"])):L("",!0)]),D(W)]),_:1},8,["isMobile"])}}},Je=B(He,[["__scopeId","data-v-755c4df2"]]);export{Je 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.