"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),y=require("../../../../utils/formatDate.cjs.js"),p=require("../../../../types/analytics/analytics.cjs.js"),a=require("../../../../src/modules/ResearchStudies/components/StudyCard/studyCard.module.css"),g=require("../../../../components/Label/Label.cjs.js"),t=require("../../../../components/Typography/Typography.cjs.js");function j({title:r,link:o,image:c,date:d,label:s,readTime:i,trackingEvent:l,trackingLocation:u}){const h=()=>{var n;if(l){const m={event:l,location:u||"",type:p.EAnalyticsEventType.interaction,payload:{articleTitle:r}};(n=window.eventBus)==null||n.emit("analytics",m)}};return e.jsx("a",{href:o,className:a.root,onClick:h,children:e.jsxs("div",{className:a.content,children:[e.jsx("div",{className:a.imagePart,style:{backgroundImage:`url(${c})`},children:s&&e.jsx(g.Label,{color:"white",size:"lg",children:s})}),e.jsxs("div",{className:a.dataPart,children:[e.jsxs("div",{className:a.info,children:[e.jsx(t.Typography,{defaultVariant:"labelSm",emphasis:!0,weight:"medium",color:"color-neutral-500",children:y.formatDate(d)}),!!i&&e.jsxs(e.Fragment,{children:[e.jsx(t.Typography,{defaultVariant:"labelSm",emphasis:!0,weight:"medium",color:"color-neutral-500",children:"•"}),e.jsxs(t.Typography,{defaultVariant:"labelSm",emphasis:!0,weight:"medium",color:"color-neutral-500",children:[i," MIN READ"]})]})]}),e.jsx(t.Typography,{className:a.title,defaultVariant:"headingXs",children:r})]}),e.jsx("div",{className:a.borderLeft,"data-line":"left"}),e.jsx("div",{className:a.borderRight,"data-line":"right"})]})})}exports.StudyCard=j;
