{"version":3,"sources":["webpack://@verndale/toolkit/./src/js/modules/productTourListing/ProductTourCard.tsx","webpack://@verndale/toolkit/./src/js/modules/taggedCardsListing/PressReleaseCard.tsx","webpack://@verndale/toolkit/./src/js/modules/taggedCardsListing/EventCard.tsx","webpack://@verndale/toolkit/./src/js/modules/taggedCardsListing/NewsHeadlineCard.tsx","webpack://@verndale/toolkit/./src/js/modules/taggedCardsListing/BlogCard.tsx","webpack://@verndale/toolkit/./src/js/modules/taggedCardsListing/WebinarCard.tsx","webpack://@verndale/toolkit/./src/js/modules/taggedCardsListing/index.tsx"],"names":["url","heading","tags","description","image","React","tag","date","eventType","label","mastheadSubhead","articleDate","articleAuthor","webinarDate","webinarTime","endpoint","cardListingTag","cardsType","itemsPerPage","maxItems","initialButtonLabel","isFeaturedFirstRow","showFeaturedOnly","page","setPage","showButton","setShowButton","buttonLabel","setButtonLabel","items","setItems","fetchResults","response","data","newItems","item","totalItems","featuredItem","itemsLeft","buttonCount","PressReleaseCard","__spreadValues","NewsHeadlineCard","EventCard","ProductTourCard","BlogCard","WebinarCard"],"mappings":"uJA4CA,QA9BwD,CAAC,CACvD,IAAAA,EACA,QAAAC,EACA,KAAAC,EACA,YAAAC,EACA,MAAAC,CACF,IACEC,gBAAC,KAAE,KAAML,EAAK,UAAU,YAAY,EAClCK,gBAAC,OAAI,UAAU,SAAS,EACtBA,gBAAC,eACCA,gBAAC,UAAO,OAAQD,EAAM,KAAM,KAAK,YAAY,CAAC,EAC9CC,gBAAC,OAAI,IAAKD,EAAM,IAAK,MAAM,MAAM,OAAO,MAAM,IAAKA,EAAM,WAAW,CAAE,CACxE,CACF,EACAC,gBAAC,OAAI,UAAU,qBAAqB,EAClCA,gBAAC,MAAG,UAAU,qBAAqB,EAAEJ,CAAQ,EAC5CC,EAAK,OAAS,GACbG,gBAAC,OAAI,UAAU,kBAAkB,EAC9BH,EAAK,IAAII,GACRD,gBAAC,KAAE,IAAKC,EAAK,UAAU,iBAAiB,EACrCA,CACH,C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,CAEJ,C","file":"scripts/3995.fdb2875735e87306739e.js","sourcesContent":["import * as React from 'react';\n\ntype ProductTourCardProps = {\n  url: string;\n  heading: string;\n  tags: string[];\n  description: string;\n  image: {\n    description: string;\n    png: string;\n    webp: string;\n  };\n};\n\nconst ProductTourCard: React.FC<ProductTourCardProps> = ({\n  url,\n  heading,\n  tags,\n  description,\n  image\n}) => (\n  <a href={url} className=\"image-card\">\n    <div className=\"picture\">\n      <picture>\n        <source srcSet={image.webp} type=\"image/webp\" />\n        <img src={image.png} width=\"528\" height=\"297\" alt={image.description} />\n      </picture>\n    </div>\n    <div className=\"image-card__content\">\n      <h3 className=\"image-card__heading\">{heading}</h3>\n      {tags.length > 0 && (\n        <div className=\"image-card__tags\">\n          {tags.map(tag => (\n            <p key={tag} className=\"image-card__tag\">\n              {tag}\n            </p>\n          ))}\n        </div>\n      )}\n      <p className=\"image-card__description\">{description}</p>\n    </div>\n  </a>\n);\n\nexport default ProductTourCard;\n","import * as React from 'react';\n\ntype PressReleasesCardProps = {\n  url: string;\n  date: string;\n  heading: string;\n  description?: string;\n};\n\nconst PressReleaseCard: React.FC<PressReleasesCardProps> = ({\n  url,\n  date,\n  heading,\n  description\n}) => (\n  <a href={url} className=\"release-card\">\n    <p className=\"release-card__date\">{date}</p>\n    <h3 className=\"release-card__heading\">{heading}</h3>\n    {description && <p className=\"release-card__description\">{description}</p>}\n  </a>\n);\nexport default PressReleaseCard;\n","import * as React from 'react';\n\ntype EventCardProps = {\n  url: string;\n  heading: string;\n  eventType: string;\n  date: string;\n  image: {\n    description: string;\n    png: string;\n    webp: string;\n  };\n};\n\nconst EventCard: React.FC<EventCardProps> = ({\n  url,\n  heading,\n  eventType,\n  date,\n  image\n}) => (\n  <a href={url} className=\"image-card\">\n    <div className=\"picture\">\n      <picture>\n        <source srcSet={image.webp} type=\"image/webp\" />\n        <img src={image.png} width=\"528\" height=\"297\" alt={image.description} />\n      </picture>\n    </div>\n    <div className=\"image-card__content\">\n      <h3 className=\"image-card__heading\">{heading}</h3>\n      <p className=\"image-card__description\">{eventType}</p>\n      <p className=\"image-card__description\">{date}</p>\n    </div>\n  </a>\n);\n\nexport default EventCard;\n","import * as React from 'react';\n\ntype NewsHeadlineCardProps = {\n  url: string;\n  heading: string;\n  label: string;\n};\n\nconst NewsHeadlineCard: React.FC<NewsHeadlineCardProps> = ({\n  url,\n  heading,\n  label\n}) => (\n  <div className=\"news-headline-card\">\n    <a\n      className=\"news-headline-card__link\"\n      href={url}\n      target=\"_blank\"\n      rel=\"noreferrer\"\n    ></a>\n    <span className=\"news-headline-card__border--line\"></span>\n    <p className=\"news-headline-card__headline\">{heading}</p>\n    <p className=\"news-headline-card__label\">{label}</p>\n    <span className=\"news-headline-card__border--line\"></span>\n  </div>\n);\n\nexport default NewsHeadlineCard;\n","import * as React from 'react';\n\ninterface IBlogCard {\n  url: string;\n  image: {\n    description: string;\n    png: string;\n    webp: string;\n  };\n  heading: string;\n  blurb: string;\n  tags: string[];\n  articleDate: string;\n  articleAuthor: string;\n  mastheadSubhead: string;\n}\n\nconst BlogCard: React.FC<IBlogCard> = ({\n  url,\n  image,\n  heading,\n  mastheadSubhead,\n  tags,\n  articleDate,\n  articleAuthor,\n}) => {\n  return (\n    <a href={url} className=\"blog-card taggedListing\">\n      <div className=\"picture\">\n        <picture>\n          <source srcSet={image?.webp} type=\"image/webp\" />\n          <img\n            src={image?.png}\n            width=\"665\"\n            height=\"375\"\n            alt={image?.description}\n          />\n        </picture>\n      </div>\n      <div className=\"blog-card__content\">\n      {tags.length > 0 && (\n            <ul className=\"blog-card__tags\">\n              {tags.map(tag => (\n                <li key={tag} className=\"blog-card__tag\">\n                  {tag}\n                </li>\n              ))}\n            </ul>\n          )}\n        <h3 className=\"blog-card__heading\">{heading}</h3>\n        <div className=\"blog-card__details\">\n          <div className=\"blog-card__info-tags\">\n          <p className=\"blog-card__info-tag\"><a href={url} className=\"\">{articleAuthor}</a></p>\n          <p className=\"blog-card__info-tag\">{articleDate}</p>              \n          </div>\n        </div>\n        <p className=\"blog-card__description\">{mastheadSubhead}</p>\n      </div>\n    </a>\n  );\n};\n\nexport default BlogCard;\n","import * as React from 'react';\n\ntype WebinarCardProps = {\n  url: string;\n  heading: string;\n  description?: string;\n  eventType: string;\n  webinarDate: string;\n  webinarTime: string;\n  image: {\n    description: string;\n    png: string;\n    webp: string;\n  };\n};\n\nconst WebinarCard: React.FC<WebinarCardProps> = ({\n  url,\n  heading,\n  description,\n  eventType,\n  webinarDate,\n  webinarTime,\n  image\n}) => (\n  <a href={url} className=\"image-card\">\n    <div className=\"picture\">\n      <picture>\n        <source srcSet={image.webp} type=\"image/webp\" />\n        <img src={image.png} width=\"528\" height=\"297\" alt={image.description} />\n      </picture>\n    </div>\n    <div className=\"image-card__content\">\n      <h3 className=\"image-card__heading\">{heading}</h3>\n      <p className=\"image-card__subtitle\">{eventType}</p>\n      <div className=\"image-card__webinarInfo\">\n        <div className=\"image-card__webinar-event\">{webinarDate}</div>\n        <div className=\"image-card__webinar-event\">{webinarTime}</div>\n      </div>\n      <p className=\"image-card__description\">{description}</p>\n    </div>\n  </a>\n);\n\nexport default WebinarCard;\n","import * as React from 'react';\nimport PressReleaseCard from './PressReleaseCard';\nimport EventCard from './EventCard';\nimport NewsHeadlineCard from './NewsHeadlineCard';\nimport BlogCard from './BlogCard';\nimport WebinarCard from './WebinarCard';\nimport ProductTourCard from '../productTourListing/ProductTourCard';\n\ntype TaggedCardsContainerProps = {\n  endpoint: string;\n  buttonLabel: string;\n  cardListingTag: string;\n  cardsType: string;\n  itemsPerPage?: string;\n  maxItems?: string;\n  isFeaturedFirstRow?: string;\n  showFeaturedOnly?: string;\n};\n\ntype PressReleaseItem = {\n  id: string;\n  url: string;\n  heading: string;\n  date: string;\n  description?: string;\n  type: string;\n};\n\ntype EventItem = {\n  id: string;\n  url: string;\n  heading: string;\n  eventType: string;\n  date: string;\n  image: {\n    description: string;\n    png: string;\n    webp: string;\n  };\n  type: string;\n};\n\ntype WebinarItem = {\n  id: string;\n  url: string;\n  heading: string;\n  eventType: string;\n  webinarDate: string;\n  webinarTime: string;\n  image: {\n    description: string;\n    png: string;\n    webp: string;\n  };\n  type: string;\n};\n\ntype BlogItem = {\n  id: string;\n  url: string;\n  heading: string;\n  author: string;\n  eventType: string;\n  date: string;\n  image: {\n    description: string;\n    png: string;\n    webp: string;\n  };\n  type: string;\n  contentType: string;\n  mastheadSubhead: string;\n  blurb: string;\n  tags: string[];\n  articleDate: string;\n  articleAuthor: string;\n};\n\ntype ProductTourItem = {\n  id: string;\n  url: string;\n  heading: string;\n  tags: string[];\n  description: string;\n  image: {\n    description: string;\n    png: string;\n    webp: string;\n  };\n  type: string;\n};\n\ntype NewsHeadlineItem = {\n  id: string;\n  url: string;\n  heading: string;\n  label: string;\n  type: string;\n};\n\ntype Item = Array<\n  PressReleaseItem | EventItem | NewsHeadlineItem | ProductTourItem | BlogItem | WebinarItem\n>;\n\ntype EndpointResponse = {\n  totalItems: number;\n  items: Array<\n    PressReleaseItem | EventItem | NewsHeadlineItem | ProductTourItem | BlogItem | WebinarItem\n  >;\n};\n\nconst TaggedCardsListing: React.FC<TaggedCardsContainerProps> = ({\n  endpoint,\n  cardListingTag,\n  cardsType,\n  itemsPerPage = '12',\n  maxItems = '12',\n  buttonLabel: initialButtonLabel,\n  isFeaturedFirstRow = 'false',\n  showFeaturedOnly = 'false'\n}) => {\n  const [page, setPage] = React.useState(1);\n  const [showButton, setShowButton] = React.useState<boolean>(false);\n  const [buttonLabel, setButtonLabel] = React.useState<string>('');\n  const [items, setItems] = React.useState<\n    Array<PressReleaseItem | EventItem | NewsHeadlineItem | ProductTourItem | BlogItem | WebinarItem>\n  >([]);\n\n  const fetchResults = React.useCallback(() => {\n    fetch(\n      `${endpoint}?page=${page}&itemsPerPage=${itemsPerPage}&maxItems=${maxItems}&cardListingTag=${cardListingTag}&cardsType=${cardsType}&isFeaturedFirstRow=${isFeaturedFirstRow}&showFeaturedOnly=${showFeaturedOnly}`\n    )\n      .then(response => response.json())\n      .then((data: EndpointResponse) => {\n        const newItems: Item = data.items\n          .map((item: any) => {\n            if (item.type === 'press-release') {\n              return item as PressReleaseItem;\n            } else if (\n              item.type === 'event' ||\n              item.type === 'article' ||\n              item.type === 'case-study'\n            ) {\n              return item as EventItem;\n            } else if (item.type === 'news-headline') {\n              return item as NewsHeadlineItem;\n            } else if (item.type === 'product-tour') {\n              return item as ProductTourItem;\n            } else if (item.type === 'blog') {\n              return item as BlogItem;\n            } else if (item.type === 'webinar') {\n              return item as WebinarItem;\n            } else return null;\n          })\n          .filter(item => !!item) as (\n          | PressReleaseItem\n          | EventItem\n          | NewsHeadlineItem\n          | ProductTourItem\n          | BlogItem\n          | WebinarItem\n        )[];\n        setItems(items => [...items, ...newItems]);\n\n        const totalItems: number = data.totalItems;\n\n        // If the first row is featured, (itemsPerPage + 1) items are shown on the first load\n        const featuredItem = isFeaturedFirstRow === 'true' ? 1 : 0;\n        const itemsLeft =\n          totalItems - page * parseInt(itemsPerPage, 10) - featuredItem;\n\n        const buttonCount =\n          itemsLeft > parseInt(itemsPerPage, 10) ? itemsPerPage : itemsLeft;\n        setShowButton(itemsLeft > 0);\n\n        setButtonLabel(\n          initialButtonLabel\n            ?.replace('[count]', buttonCount.toString())\n            .replace('[tag]', cardListingTag)\n            .replace('[total]', totalItems.toString())\n        );\n      });\n  }, [endpoint, page]);\n\n  React.useEffect(() => {\n    fetchResults();\n  }, [page]);\n\n  return (\n    <>\n      <div\n        className={`grid grid--33-33-33 tagged-cards-container__cards ${\n          isFeaturedFirstRow === 'true' &&\n          'tagged-cards-container__cards--featured'\n        }`}\n      >\n        {items.map(item => {\n          if (item.type === 'press-release')\n            return (\n              <PressReleaseCard key={item.id} {...(item as PressReleaseItem)} />\n            );\n          else if (item.type === 'news-headline')\n            return (\n              <NewsHeadlineCard key={item.id} {...(item as NewsHeadlineItem)} />\n            );\n          else if (\n            item.type === 'event' ||\n            item.type === 'article' ||\n            item.type === 'case-study'\n          )\n            return <EventCard key={item.id} {...(item as EventItem)} />;\n          else if (item.type === 'product-tour')\n            return (\n              <ProductTourCard key={item.id} {...(item as ProductTourItem)} />\n            );\n          else if (item.type === 'blog')\n            return (\n              <BlogCard key={item.id} {...(item as BlogItem)} />\n            );\n            else if (item.type === 'webinar')\n              return (\n                <WebinarCard key={item.id} {...(item as WebinarItem)} />\n              );\n          else return null;\n        })}\n      </div>\n      {showButton && buttonLabel && (\n        <button\n          type=\"button\"\n          className=\"btn btn--primary tagged-cards-container__btn\"\n          onClick={() => setPage(page + 1)}\n        >\n          <span>{buttonLabel}</span>\n        </button>\n      )}\n    </>\n  );\n};\n\nexport default TaggedCardsListing;\n"],"sourceRoot":""}