import{h as e}from"./p-8a04cc92.js";import{B as i}from"./p-84fcecb9.js";import"./p-62a6c3f4.js";import{h as s,P as c}from"./p-d43cecda.js";import{t as r}from"./p-bd8fa0bf.js";const l=({slice:i})=>e(c,{richText:i.primary.content,htmlSerializer:s}),a=({slice:i})=>e("div",{class:"prismic-raw-html",innerHTML:i.primary.html_content.map(e=>e.text).join("")}),t=({slice:s})=>e(i,null,e("div",null,e(c,{richText:s.primary.quote})),s.primary.name?e("cite",null,s.primary.name,e("span",null,s.primary.description)):null),n=({slice:i})=>e("figure",{class:"prismic-floating-image "+i.primary.side.toLowerCase()},e("img",{loading:"lazy",src:i.primary.illustration.url,alt:i.primary.illustration.alt}),0!=i.primary.caption.length?e("figcaption",null,i.primary.caption[0].text):""),o=({slice:i})=>e("aside",{class:"prismic-ad"},e("a",{href:i.primary.link.url,target:i.primary.link.target,onClick:e=>r(`${location.host}${location.pathname}`,e,"Resource Center")},e(c,{richText:i.primary.text}),e("img",{class:"prismic-ad__image",loading:"lazy",alt:i.primary.image.alt,height:parseInt(i.primary.image.dimensions.height,10)/2,width:parseInt(i.primary.image.dimensions.width,10)/2,src:i.primary.image.url,srcset:`${i.primary.image["1x"].url} 1x, ${i.primary.image.url} 2x`}))),m=({slice:i})=>e("div",{class:"prismic-youtube-container"},e("iframe",{src:"https://www.youtube.com/embed/"+i.primary.vid,frameborder:"0",allowFullScreen:!0})),u=({slice:i,key:s})=>{switch(console.log(i),i.slice_type){case"normal_text":return e(l,{slice:i,key:s});case"raw_html":return e(a,{slice:i,key:s});case"quote":return e(t,{slice:i,key:s});case"floating_image":return e(n,{slice:i,key:s});case"ad":return e(o,{slice:i,key:s});case"youtube":return e(m,{slice:i,key:s})}return null},p=({content:i})=>i.map((i,s)=>e(u,{slice:i,key:s}));export{p as P,u as a}