import { r as registerInstance, h } from './index-0861cb0b.js';
import './common-d52c7ecc.js';
import { C as Col } from './Col-7b7aab4b.js';
import { G as Grid } from './Grid-2fa1d546.js';
import './IntersectionHelper-215713b2.js';
import { H as Heading } from './Heading-1dc7d8ed.js';
import './Paragraph-47cc160b.js';
import { R as ResponsiveContainer } from './ResponsiveContainer-150e98cd.js';
import { T as ThemeProvider } from './ThemeProvider-54dc105d.js';
import './_commonjsHelpers-84ca41fa.js';
import { b as PrismicResponsiveImage, P as PrismicRichText } from './PrismicResponsiveImage-fb13f85b.js';
import './slugify-803a926a.js';
import { a as trackView } from './tracking-service-bdb1e857.js';

const resourceWhitepaperCss = "@charset \"UTF-8\";.resource-whitepaper__cta.sc-resource-whitepaper{background:linear-gradient(to bottom, #fff, #f6f8fc);border-bottom:1px solid #e5e7eb;margin-top:-78px;padding-top:78px}.resource-whitepaper__hgroup.sc-resource-whitepaper{margin:auto;display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:var(--space-9);padding-bottom:var(--space-9);max-width:840px;text-align:center}.resource-whitepaper__hgroup.sc-resource-whitepaper .ui-heading-6.sc-resource-whitepaper{margin-bottom:var(--space-2)}.resource-whitepaper__tagline.sc-resource-whitepaper{max-width:800px;color:var(--c-carbon-60);letter-spacing:-0.02em;font-weight:600;line-height:32px;font-size:18px}.resource-whitepaper__content.sc-resource-whitepaper{padding-top:96px}.resource-whitepaper__content.sc-resource-whitepaper img.sc-resource-whitepaper{max-width:100%;height:auto}.resource-whitepaper__description.sc-resource-whitepaper p.sc-resource-whitepaper:first-child{color:#6e7f99;font-size:18px;line-height:28px}.resource-whitepaper__description.sc-resource-whitepaper ul.sc-resource-whitepaper{list-style-type:none;padding:0;margin:16px 0 32px;line-height:20px}.resource-whitepaper__description.sc-resource-whitepaper li.sc-resource-whitepaper{padding-left:20px;position:relative}.resource-whitepaper__description.sc-resource-whitepaper li.sc-resource-whitepaper:before{content:\"•\";margin-right:10px;opacity:0.8;position:absolute;left:0}";

const ResourceWhitepaper = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
  }
  checkForAds(prismicData) {
    var _a;
    const slices = ((_a = prismicData === null || prismicData === void 0 ? void 0 : prismicData.doc.data) === null || _a === void 0 ? void 0 : _a.body) || [];
    slices.forEach((slice) => {
      if (slice.slice_type === 'ad') {
        trackView(`${location.host}${location.pathname}`, 'Resource Center');
      }
    });
  }
  componentWillLoad() {
    this.checkForAds(this.prismicData);
  }
  render() {
    if (!this.prismicData)
      return;
    const resource = this.prismicData;
    return [
      h(ThemeProvider, { type: "editorial" }, h("div", { class: "resource-whitepaper" }, h("div", { class: "resource-whitepaper__cta" }, h(ResponsiveContainer, null, h("hgroup", { class: "resource-whitepaper__hgroup" }, h(Heading, { level: 6 }, "Whitepaper"), h(Heading, { level: 1 }, resource.title), h("p", { class: "resource-whitepaper__tagline" }, resource.doc.data.tagline)))), h(ResponsiveContainer, null, h(Grid, { class: "resource-whitepaper__content" }, h(Col, { cols: 12, xs: 12, sm: 6, md: 6 }, h(PrismicResponsiveImage, { image: resource.doc.data.cover_image, class: "resource-whitepaper__illustration" }), h(PrismicRichText, { richText: resource.doc.data.description, class: "resource-whitepaper__description" })), h(Col, { cols: 12, xs: 12, sm: 6, md: 6 }, h("hubspot-form", { formId: resource.doc.data.hubspot_form_id }))))))
    ];
  }
};
ResourceWhitepaper.style = resourceWhitepaperCss;

export { ResourceWhitepaper as resource_whitepaper };
