{"version":3,"file":"Blogcard.BLROOhoR.mjs","names":["_Fragment","__esmMin","init_jsx_runtime","c","p","init_framer_DDfsYcI0","addPropertyControls","BlogCard","props","base","slug","link","image","avatar","contents","l","title","editorialProps","accent","CSS","newTab","inner","titleLines","buttonLabel","cardProps","init_Blogcard","ControlType"],"sources":["https:/framerusercontent.com/modules/VJze9wCIzgD3n59JTTnz/cIWyKK7ROtbVGEI0SbGx/Blogcard.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const CSS=`\n.bc-editorial{display:flex;flex-direction:column;width:100%;min-width:0;height:100%;box-sizing:border-box;background:#fff;border:1px solid #e5e5ea;border-radius:20px;padding:10px;text-decoration:none;color:#14141a;font-family:'Inter',sans-serif;box-shadow:0 2px 4px rgba(20,20,26,.04);overflow:hidden;transition:box-shadow .2s ease}\n.bc-editorial:hover{box-shadow:0 8px 24px rgba(20,20,26,.1)}\n.bc-editorial:focus-visible{outline:2px solid var(--bc-accent);outline-offset:3px}\n.bc-editorial *{box-sizing:border-box}\n.bc-cover{display:block;width:100%;aspect-ratio:1.94;object-fit:cover;border-radius:12px}\n.bc-editorial-content{padding:20px 12px 12px;display:flex;flex-direction:column;gap:12px;flex:1;min-width:0}\n.bc-editorial h3{font-family:'Switzer','Inter',sans-serif;font-size:22px;line-height:1.25;letter-spacing:-.025em;font-weight:600;margin:0}\n.bc-summary{font-size:16px;line-height:1.5;color:#71717a;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}\n.bc-editorial-footer{margin-top:auto;padding-top:18px;display:flex;flex-direction:column;gap:16px}\n.bc-author{border-top:1px solid #e5e5ea;padding-top:18px;display:flex;align-items:center;gap:10px}\n.bc-avatar{width:36px;height:36px;object-fit:cover;border-radius:50%}\n.bc-author-name{font-size:14px;font-weight:500;line-height:1.5}\n.bc-author-role{font-size:13px;line-height:1.5;color:#71717a}\n.bc-meta{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:12px;color:#71717a}\n.bc-category{border:1px solid #e5e5ea;border-radius:5px;padding:3px 7px;line-height:1.4;color:#52525b}\n.bc-meta-divider{width:1px;height:16px;background:#e5e5ea}\n\n@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap\");\n@import url(\"https://api.fontshare.com/v2/css?f%5B%5D=switzer@400,500,600&display=swap\");\n\n.bc-card{\n  --bc-ink:#14141a; --bc-muted:#5a5a66; --bc-line:#e5e5ea; --bc-soft:#f7f7fa;\n  box-sizing:border-box; display:flex; flex-direction:column; gap:16px;\n  width:100%; min-width:0; height:100%; min-height:180px;\n  background:#fff; border:1px solid var(--bc-line); border-radius:20px;\n  padding:24px; text-decoration:none; color:var(--bc-ink);\n  font-family:'Inter',sans-serif;\n  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;\n  -webkit-tap-highlight-color:transparent;\n}\n.bc-card *,.bc-card *::before,.bc-card *::after{box-sizing:border-box}\n.bc-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(20,20,26,.08)}\n\n.bc-title{\n  margin:0; flex:1 0 auto;\n  font-family:'Switzer','Inter',sans-serif; font-weight:500; font-size:19px;\n  line-height:1.35; letter-spacing:-0.01em; color:var(--bc-ink);\n  word-break:break-word;\n}\n.bc-foot{\n  display:flex; align-items:center; justify-content:space-between; gap:12px;\n  padding-top:16px; border-top:1px solid var(--bc-line);\n}\n.bc-btn{\n  display:inline-flex; align-items:center; gap:8px;\n  font-family:'Inter',sans-serif; font-weight:600; font-size:14px;\n  color:var(--bc-accent);\n}\n.bc-arrow{\n  display:inline-flex; align-items:center; justify-content:center;\n  width:32px; height:32px; border-radius:50%;\n  background:var(--bc-soft); color:var(--bc-accent);\n  transition:background .2s ease,color .2s ease,transform .2s ease;\n}\n.bc-card:hover .bc-arrow{background:var(--bc-accent);color:#fff;transform:translateX(2px)}\n\n@media (max-width:639px){\n  .bc-card{padding:20px;border-radius:18px;gap:14px;min-height:0}\n  .bc-title{font-size:18px}\n}\n`;export default function BlogCard(props){const{title,buttonLabel,newTab,accent,titleLines}=props;// Link priority: 1) CMS Slug + Base path  2) manual Link control\nconst base=(props.basePath||\"/\").replace(/\\/?$/,\"/\");const slug=(props.slug||\"\").replace(/^\\/+/,\"\");const link=slug?base+slug:props.link;if(props.appearance===\"editorial\"){const image=typeof props.image===\"string\"?props.image:props.image?.src;const avatar=typeof props.avatar===\"string\"?props.avatar:props.avatar?.src;const contents=/*#__PURE__*/_jsxs(_Fragment,{children:[image&&/*#__PURE__*/_jsx(\"img\",{className:\"bc-cover\",src:image,alt:\"\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"bc-editorial-content\",children:[/*#__PURE__*/_jsx(\"h3\",{children:title}),props.description&&/*#__PURE__*/_jsx(\"p\",{className:\"bc-summary\",children:props.description}),/*#__PURE__*/_jsxs(\"div\",{className:\"bc-editorial-footer\",children:[props.author&&/*#__PURE__*/_jsxs(\"div\",{className:\"bc-author\",children:[avatar&&/*#__PURE__*/_jsx(\"img\",{className:\"bc-avatar\",src:avatar,alt:\"\"}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"div\",{className:\"bc-author-name\",children:props.author}),props.authorRole&&/*#__PURE__*/_jsx(\"div\",{className:\"bc-author-role\",children:props.authorRole})]})]}),(props.dateText||props.category)&&/*#__PURE__*/_jsxs(\"div\",{className:\"bc-meta\",children:[props.dateText&&/*#__PURE__*/_jsx(\"span\",{children:props.dateText}),props.dateText&&props.category&&/*#__PURE__*/_jsx(\"span\",{className:\"bc-meta-divider\"}),props.category&&/*#__PURE__*/_jsx(\"span\",{className:\"bc-category\",children:props.category})]})]})]})]});const editorialProps={className:\"bc-editorial\",style:{[\"--bc-accent\"]:accent}};return /*#__PURE__*/_jsxs(\"div\",{style:{...props.style,width:\"100%\",height:\"100%\",minWidth:0,display:\"flex\"},children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),link?/*#__PURE__*/_jsx(\"a\",{...editorialProps,href:link,target:newTab?\"_blank\":undefined,rel:newTab?\"noopener noreferrer\":undefined,children:contents}):/*#__PURE__*/_jsx(\"div\",{...editorialProps,children:contents})]});}const inner=/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"h3\",{className:\"bc-title\",style:titleLines>0?{display:\"-webkit-box\",WebkitBoxOrient:\"vertical\",WebkitLineClamp:titleLines,overflow:\"hidden\"}:undefined,children:title}),/*#__PURE__*/_jsxs(\"div\",{className:\"bc-foot\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"bc-btn\",children:buttonLabel}),/*#__PURE__*/_jsx(\"span\",{className:\"bc-arrow\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M3 8h10M9 4l4 4-4 4\",stroke:\"currentColor\",strokeWidth:\"1.6\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})})]})]});const cardProps={className:\"bc-card\",style:{[\"--bc-accent\"]:accent}};return /*#__PURE__*/_jsxs(\"div\",{style:{...props.style,width:\"100%\",height:\"100%\",minWidth:0,display:\"flex\",boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),link?/*#__PURE__*/_jsx(\"a\",{...cardProps,href:link,target:newTab?\"_blank\":undefined,rel:newTab?\"noopener noreferrer\":undefined,children:inner}):/*#__PURE__*/_jsx(\"div\",{...cardProps,children:inner})]});}BlogCard.defaultProps={appearance:\"classic\",image:\"\",description:\"\",author:\"\",authorRole:\"\",avatar:\"\",dateText:\"\",category:\"\",title:\"How AI shopping assistants decide which products to recommend\",buttonLabel:\"Read more\",link:\"\",slug:\"\",basePath:\"/blog/\",newTab:false,accent:\"#4f46e5\",titleLines:3};addPropertyControls(BlogCard,{appearance:{type:ControlType.Enum,title:\"Appearance\",options:[\"classic\",\"editorial\"],optionTitles:[\"Classic\",\"Editorial\"],defaultValue:\"classic\"},image:{type:ControlType.Image,title:\"Cover Image\"},description:{type:ControlType.String,title:\"Summary\",displayTextArea:true,defaultValue:\"\"},author:{type:ControlType.String,title:\"Author\",defaultValue:\"\"},authorRole:{type:ControlType.String,title:\"Author Role\",defaultValue:\"\"},avatar:{type:ControlType.Image,title:\"Author Avatar\"},dateText:{type:ControlType.String,title:\"Date\",defaultValue:\"\"},category:{type:ControlType.String,title:\"Category\",defaultValue:\"\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Blog title\",displayTextArea:true},buttonLabel:{type:ControlType.String,title:\"Button\",defaultValue:\"Read more\"},slug:{type:ControlType.String,title:\"Slug (CMS)\",defaultValue:\"\"},basePath:{type:ControlType.String,title:\"Base Path\",defaultValue:\"/blog/\"},link:{type:ControlType.Link,title:\"Link (manual)\"},newTab:{type:ControlType.Boolean,title:\"New Tab\",defaultValue:false},titleLines:{type:ControlType.Number,title:\"Title Max Lines\",defaultValue:3,min:0,max:6,step:1,displayStepper:true},accent:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#4f46e5\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BlogCard\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Blogcard.map"],"mappings":"A,qKA6DE,SAAwBO,EAAS,EAAM,CAAC,GAAK,CAAC,QAAM,cAAY,SAAO,SAAO,cAAYC,EACtFC,GAAMD,EAAM,UAAU,IAAA,CAAK,QAAQ,OAAO,GAAG,EAAQE,GAAMF,EAAM,MAAM,GAAA,CAAI,QAAQ,OAAO,EAAE,EAAQG,EAAKD,EAAKD,EAAKC,EAAKF,EAAM,KAAK,GAAGA,EAAM,aAAa,YAAY,CAAC,IAAMI,EAAM,OAAOJ,EAAM,OAAQ,SAASA,EAAM,MAAMA,EAAM,OAAO,IAAUK,EAAO,O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