import{h as e}from"./p-8a04cc92.js";import{B as s}from"./p-84fcecb9.js";import"./p-62a6c3f4.js";import{h as i,P as l}from"./p-a6fea01b.js";const a=({slice:s})=>e(l,{richText:s.primary.content,htmlSerializer:i}),r=({slice:s})=>e("div",{class:"prismic-raw-html",innerHTML:s.primary.html_content.map(e=>e.text).join("")}),c=({slice:i})=>e(s,null,e("div",null,e(l,{richText:i.primary.quote})),i.primary.name?e("cite",null,i.primary.name,e("span",null,i.primary.description)):null),t=({slice:s})=>e("figure",null,e("img",{loading:"lazy",src:s.primary.illustration.url,alt:s.primary.illustration.alt})),n=({slice:s})=>e("aside",{class:"prismic-ad"},e("a",{href:s.primary.link.url,target:s.primary.link.target},e(l,{richText:s.primary.text}),e("img",{class:"prismic-ad__image",loading:"lazy",alt:s.primary.image.alt,height:parseInt(s.primary.image.dimensions.height,10)/2,width:parseInt(s.primary.image.dimensions.width,10)/2,src:s.primary.image.url,srcset:`${s.primary.image["1x"].url} 1x, ${s.primary.image.url} 2x`}))),m=({slice:s,key:i})=>{switch(s.slice_type){case"normal_text":return e(a,{slice:s,key:i});case"raw_html":return e(r,{slice:s,key:i});case"quote":return e(c,{slice:s,key:i});case"floating_image":return e(t,{slice:s,key:i});case"ad":return e(n,{slice:s,key:i})}return null},o=({content:s})=>s.map((s,i)=>e(m,{slice:s,key:i}));export{o as P,m as a}