'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-55138a85.js');
require('./_commonjsHelpers-72d386ba.js');
const PrismicResponsiveImage = require('./PrismicResponsiveImage-6555bf06.js');
const Button = require('./Button-3b11a649.js');

const SliceNormalText = ({ slice }) => (index.h(PrismicResponsiveImage.PrismicRichText, { richText: slice.primary.content, htmlSerializer: PrismicResponsiveImage.htmlSerializer }));
const SliceRawHtml = ({ slice }) => (index.h("div", { class: "prismic-raw-html", innerHTML: slice.primary.html_content.map((c) => c.text).join('') }));
const SliceQuote = ({ slice }) => (index.h(PrismicResponsiveImage.Blockquote, null,
    index.h("div", null,
        index.h(PrismicResponsiveImage.PrismicRichText, { richText: slice.primary.quote })),
    slice.primary.name ? (index.h("cite", null,
        slice.primary.name,
        index.h("span", null, slice.primary.description))) : null));
const SliceFloatingImage = ({ slice }) => (index.h("figure", null,
    index.h("img", { loading: 'lazy', src: slice.primary.illustration.url, alt: slice.primary.illustration.alt })));
const SliceAd = ({ slice }) => (index.h("aside", null,
    index.h("a", { href: slice.primary.link.url, target: slice.primary.link.target }, slice.primary.text[0].text)));
const PrismicBodySlice = ({ slice, key }) => {
    switch (slice.slice_type) {
        case 'normal_text':
            return index.h(SliceNormalText, { slice: slice, key: key });
        case 'raw_html':
            return index.h(SliceRawHtml, { slice: slice, key: key });
        case 'quote':
            return index.h(SliceQuote, { slice: slice, key: key });
        case 'floating_image':
            return index.h(SliceFloatingImage, { slice: slice, key: key });
        case 'ad':
            return index.h(SliceAd, { slice: slice, key: key });
    }
    return null;
};

const PrismicContent = ({ content }) => content.map((c, i) => index.h(PrismicBodySlice, { slice: c, key: i }));

exports.AnchorButton = PrismicResponsiveImage.AnchorButton;
exports.Blockquote = PrismicResponsiveImage.Blockquote;
exports.Breadcrumbs = PrismicResponsiveImage.Breadcrumbs;
exports.Breakpoint = PrismicResponsiveImage.Breakpoint;
exports.Card = PrismicResponsiveImage.Card;
exports.CardContent = PrismicResponsiveImage.CardContent;
exports.Col = PrismicResponsiveImage.Col;
exports.DateTime = PrismicResponsiveImage.DateTime;
exports.Grid = PrismicResponsiveImage.Grid;
exports.Heading = PrismicResponsiveImage.Heading;
exports.IntersectionHelper = PrismicResponsiveImage.IntersectionHelper;
exports.Paragraph = PrismicResponsiveImage.Paragraph;
exports.PrismicResponsiveImage = PrismicResponsiveImage.PrismicResponsiveImage;
exports.PrismicRichText = PrismicResponsiveImage.PrismicRichText;
exports.ResponsiveContainer = PrismicResponsiveImage.ResponsiveContainer;
exports.Skeleton = PrismicResponsiveImage.Skeleton;
exports.Text = PrismicResponsiveImage.Text;
exports.ThemeProvider = PrismicResponsiveImage.ThemeProvider;
exports.asText = PrismicResponsiveImage.asText;
exports.htmlSerializer = PrismicResponsiveImage.htmlSerializer;
exports.Button = Button.Button;
exports.PrismicBodySlice = PrismicBodySlice;
exports.PrismicContent = PrismicContent;
