import { r as registerInstance, h, a as getElement } from './index-0861cb0b.js';
import './common-d52c7ecc.js';
import './Blockquote-43e585d2.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 { P as Paragraph } from './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 } from './PrismicResponsiveImage-fb13f85b.js';
import { s as slugify } from './slugify-803a926a.js';
import { a as trackView } from './tracking-service-bdb1e857.js';
import { P as PrismicContent } from './PrismicContent-ea5d8e1c.js';
import { a as prismicResourceToToc } from './prismic-330a0e03.js';

const resourceCaseStudyCss = ".sc-resource-case-study-h{padding-bottom:76px}.heading-group.sc-resource-case-study img.sc-resource-case-study{max-width:100%;margin-block-end:var(--space-11)}.heading-group.sc-resource-case-study .ui-heading-1.sc-resource-case-study{margin-block-start:var(--space-10);margin-block-end:var(--space-5)}.heading-group.sc-resource-case-study .ui-paragraph.sc-resource-case-study{color:#73849A;margin-block-end:var(--space-6)}resource-toc.sc-resource-case-study{margin-block-start:var(--space-10)}resource-author-item.sc-resource-case-study{margin-block-start:var(--space-3);margin-block-end:var(--space-3)}resource-author-item.sc-resource-case-study:last-of-type{margin-block-end:73px}article.sc-resource-case-study .ui-heading-2.sc-resource-case-study{margin-block-start:var(--space-9);margin-block-end:var(--space-3)}article.sc-resource-case-study .ui-heading-3.sc-resource-case-study{margin-block-start:var(--space-8);margin-block-end:var(--space-3)}article.sc-resource-case-study .ui-heading-4.sc-resource-case-study{margin-block-start:var(--space-3);margin-block-end:var(--space-2)}article.sc-resource-case-study .ui-heading.sc-resource-case-study:first-child{margin-block-start:0}article.sc-resource-case-study p.sc-resource-case-study{font-size:16px;letter-spacing:-0.011em;line-height:1.75em;margin-bottom:1.8em;color:var(--c-indigo-80)}article.sc-resource-case-study ul.sc-resource-case-study li.sc-resource-case-study{list-style-type:none}article.sc-resource-case-study ul.sc-resource-case-study li.sc-resource-case-study::before{content:\"\";display:inline-block;width:6px;height:6px;background:#b2becd;position:absolute;top:12px;left:0;border-radius:8px}article.sc-resource-case-study ol.sc-resource-case-study li.sc-resource-case-study{list-style-type:counter-style}article.sc-resource-case-study ul.sc-resource-case-study,article.sc-resource-case-study ol.sc-resource-case-study{font-size:16px;letter-spacing:-0.011em;line-height:1.75em;margin-bottom:1.8em;color:var(--c-indigo-80)}article.sc-resource-case-study li.sc-resource-case-study{position:relative;padding-left:18px}article.sc-resource-case-study table.sc-resource-case-study{overflow-x:auto;margin-right:-15px;padding-right:15px;box-sizing:content-box;font-size:13px}article.sc-resource-case-study table.sc-resource-case-study td.sc-resource-case-study,article.sc-resource-case-study table.sc-resource-case-study th.sc-resource-case-study{min-width:120px;padding-right:12px}article.sc-resource-case-study table.sc-resource-case-study tbody.sc-resource-case-study tr.sc-resource-case-study td.sc-resource-case-study{border-top-color:#DEE3EA}article.sc-resource-case-study table.sc-resource-case-study>thead.sc-resource-case-study>tr.sc-resource-case-study>th.sc-resource-case-study{border-bottom-color:#E9EDF3;font-weight:600}";

const ResourceCaseStudy = 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() {
    const resource = this.prismicData;
    return [
      // <ResourcesSubNav resourceItem={resource} />,
      h("div", { class: "resource-article resource-case-study" }, h(ThemeProvider, { type: "editorial" }, h(ResponsiveContainer, null, h(Grid, null, h(Col, { md: 3, sm: 3 }, h("resource-toc", { titleNames: prismicResourceToToc(this.prismicData) })), h(Col, { md: 9, sm: 9, xs: 12, cols: 12 }, h("div", { class: "resource-article-content" }, h("div", { class: "heading-group" }, h(Heading, { level: 1, id: slugify(resource.title) }, resource.title), h(Paragraph, { level: 2 }, resource.description), h(PrismicResponsiveImage, { image: resource.doc.data.hero_image, width: "800", height: "420" })), h("article", null, h(PrismicContent, { content: resource.doc.data.body })))))))),
    ];
  }
  get el() { return getElement(this); }
};
ResourceCaseStudy.style = resourceCaseStudyCss;

export { ResourceCaseStudy as resource_case_study };
