1import{_ as q}from"./D5YvX-GU.js";import{d as B,u as F,i as M,q as z,f as N,e as A,g as l,j as D}from"./BnowyiiT.js";import{d as E}from"./Bh1tyPu7.js";import{Z as P,a2 as i,u as y,X as m,a3 as x,C as c,a5 as $,z as d}from"./DGxlnW41.js";import{_ as C}from"./B2YqjWf_.js";import"./BirJEn2g.js";import"./CkMOyL3W.js";import"./_CHoJ0K5.js";import"./CbAtIVSG.js";const V={class:"links-and-text-component row px-1 px-md-0-875 px-xl-2-25 pb-4 pb-md-5 pb-xl-4-5 pt-4 pt-md-5 pt-xl-10"},W=["innerHTML"],X=["innerHTML"],Z={__name:"LinksAndTextComponent",props:{textLinks:{type:[Object,String,Array]},text:{type:[Object,String,Array]},rightText:{type:[Object,String,Array]}},setup(_){const o=(e="")=>String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\"/g,""").replace(/'/g,"'"),p=_,u=d(()=>p.rightText||p.text),g=F(),{webp:b}=P(g),f=e=>Array.isArray(e)&&e.some(n=>n?._type),h=(e,n)=>{const t=n?.markDefs?.find(s=>s?._key===e);if(!t)return null;if(t.href)return{href:t.href,target:t.target||(t.href.startsWith("http")?"_blank":null)};if(t._type==="reference"){const s=C(t);return s?{href:s,target:null}:null}return null},L=(e,n)=>{let t=o(e?.text||"");for(const s of e?.marks||[]){if(s==="strong"){t=`<strong>${t}</strong>`;continue}if(s==="em"){t=`<em>${t}</em>`;continue}if(s==="underline"){t=`<u>${t}</u>`;continue}if(s==="code"){t=`<code>${t}</code>`;continue}const r=h(s,n);if(r?.href){const a=r.target?` target="${o(r.target)}"`:"",k=r.target==="_blank"?' rel="noopener"':"";t=`<a href="${o(r.href)}"${a}${k}>${t}</a>`}}return t},U=e=>{const n=e?.style&&/^h[1-6]$/.test(e.style)?e.style:e?.style==="blockquote"?"blockquote":"p",t=(e?.children||[]).map(s=>L(s,e)).join("");return`<${n}>${t}</${n}>`},j=e=>{const n=N({image:e,transforms:{w:1600,fit:"max"},webpSupported:b.value})||A(e);if(!n)return"";const t=o(l(e,"alt")||l(e,"title")||l(e,"description")||"");return`<figure><img src="${o(n)}" alt="${t}" loading="lazy" decoding="async" /></figure>`},w=e=>{const n=A(e);if(!n)return"";const t=o(l(e,"title")||l(e,"fileName")||"Download");return`<p><a href="${o(n)}" target="_blank" rel="noopener">${t}</a></p>`},S=e=>{const n=C(e);if(!n)return"";const t=o(l(e,"displayTitle")||l(e,"title")||l(e,"fullName")||n);return`<p><a href="${o(n)}">${t}</a></p>`},T=e=>{if(!f(e))return"";const n=[];let t=null;const s=()=>{t&&(n.push(`</${t}>`),t=null)};return e.forEach(r=>{if(r){if(r._type==="block"){if(r.listItem){const a=r.listItem==="number"?"ol":"ul";t!==a&&(s(),t=a,n.push(`<${a}>`));const k=(r.children||[]).map(R=>L(R,r)).join("");n.push(`<li>${k}</li>`);return}s(),n.push(U(r));return}if(s(),r._type==="image"){n.push(j(r));return}if(r._type==="file"){n.push(w(r));return}if(r._type==="reference"||z(r)){n.push(S(r));return}r._type==="break"&&n.push("<hr />")}}),s(),n.join("")},H=d(()=>T(p.textLinks)),v=d(()=>T(u.value)),I=d(()=>f(u.value)),O=d(()=>f(p.textLinks));return(e,n)=>{const t=q,s=M,r=E;return i(),y("div",V,[m(r,{class:"col-lg-5 mb-1 mb-md-1-5 mb-lg-0"},{default:x(({addToTimeline:a})=>[m(s,{onUpdated:a,preset:"fadeUp",class:"col-lg-10 col-xl-11 pr-lg-0-5 pr-xl-0-75 p5 p3-md p2-xl",to:{delay:.1}},{default:x(()=>[c(O)?(i(),y("div",{key:0,class:"rich-text",innerHTML:c(H)},null,8,W)):(i(),$(t,{key:1,text:_.textLinks,innerClass:"rich-text"},null,8,["text"]))]),_:1},8,["onUpdated"])]),_:1}),m(r,{class:"col-lg-7"},{default:x(({addToTimeline:a})=>[m(s,{onUpdated:a,preset:"fadeUp",to:{delay:.2}},{default:x(()=>[c(I)?(i(),y("div",{key:0,class:"content rich-text small-space pr-md-1-25 pr-xl-2-5 p4 p4-md p5-xl",innerHTML:c(v)},null,8,X)):(i(),$(t,{key:1,text:c(u),innerClass:"content rich-text small-space pr-md-1-25 pr-xl-2-5 p4 p4-md p5-xl"},null,8,["text"]))]),_:1},8,["onUpdated"])]),_:1})])}}},G=B(Z,[["__scopeId","data-v-e4a06170"]]),ot={__name:"cms",props:{data:{type:Object}},setup(_){const o=_,{textLinks:p,text:u,rightText:g}=o.data?D(o.data):{};return(b,f)=>{const h=G;return i(),$(h,{textLinks:c(p),text:c(u),rightText:c(g)},null,8,["textLinks","text","rightText"])}}};export{ot 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.