"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),p=require("../../../../utils/formatDate.cjs.js"),u=require("../../../../types/analytics/analytics.cjs.js"),t=require("../../../../src/modules/ResearchFeatured/components/FeaturedArticle/featuredArticle.module.css"),i=require("../../../../components/Typography/Typography.cjs.js"),h=({image:l,date:n,readTime:a,title:c,link:o,trackingEvent:s,trackingLocation:d})=>{const m=()=>{var r;if(s){const y={event:s,location:d||"",type:u.EAnalyticsEventType.interaction,payload:{articleTitle:document.title}};(r=window.eventBus)==null||r.emit("analytics",y)}};return e.jsxs("a",{href:o,className:t.root,onClick:m,children:[e.jsx("img",{src:l,alt:"article image",className:t.image}),e.jsxs("div",{className:t.content,children:[e.jsxs(i.Typography,{as:"p",defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"medium",color:"color-neutral-500",className:t.info,children:[e.jsx("span",{children:p.formatDate(n)}),!!a&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"•"}),e.jsxs("span",{children:[a," MIN READ"]})]})]}),e.jsx(i.Typography,{defaultVariant:"bodySm",className:t.title,children:c})]}),e.jsx("div",{className:t.borderLeft}),e.jsx("div",{className:t.borderRight})]})};exports.FeaturedArticle=h;
