{"version":3,"file":"InsightCard.BbbFJptq.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/3qwGYs27JuSVpVCI0tjz/0RhfEsBv3WBw6vuVaPO4/InsightCard.js"],"sourcesContent":["/**\n * InsightCard.tsx — single Insights article preview card.\n * Image / category / title (2-line) / excerpt (3-line) / date · read time.\n * isPlaceholder mode: 80% opacity, dashed image area, [PH] badge.\n * v1.3.1 (critique): meta line → #5C5C5C @14px (was deepGreen@70%/13px, failed AA).\n * v1.4 (2026-07-03): SLUG_IMAGES fallback so the index/Home teaser cards show batch-2\n * photos even when the instance's imageUrl prop is empty (QA-7 — these are hardcoded\n * instances, not bound to the Insights CMS Feature image field). Same pattern as\n * ServicesGrid.tsx / StoryCard.tsx.\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const BRAND={deepGreen:\"#053030\",midGreen:\"#006657\",mint:\"#8AE0CB\",cream:\"#F8F1E4\",metaGrey:\"#5C5C5C\",midGreen10:\"rgba(0, 102, 87, 0.1)\",midGreen40:\"rgba(0, 102, 87, 0.4)\"};const DEFAULT_IMAGE=\"data:image/svg+xml;utf8,\"+encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 220'><rect width='400' height='220' fill='#8AE0CB'/><path d='M0 160 Q100 120 200 160 T400 160 L400 220 L0 220 Z' fill='#006657' opacity='0.35'/><circle cx='320' cy='70' r='32' fill='#F8F1E4' opacity='0.85'/></svg>`);/** slug -> { url, alt }. Batch 2 imagery (2026-07-03). */const SLUG_IMAGES={\"choosing-the-right-ndis-provider\":{url:\"https://framerusercontent.com/images/RVDaALUZ1jcRo5XZbZAoEtRII.jpg\",alt:\"Two people at a kitchen table talking through a handwritten list of questions\"},\"culturally-safe-care-diverse-families\":{url:\"https://framerusercontent.com/images/d3RwAY74JHIRz3C9qyj82i2GxU.jpg\",alt:\"Hands of different ages around a shared table set with food, tea and a printed page\"},\"plan-review-coordinator-brief\":{url:\"https://framerusercontent.com/images/rBmrySo8sBkWEGacotIbB5dy7g.jpg\",alt:\"A desk with an open notebook of handwritten preparation notes, a laptop and a cup\"},\"movement-is-medicine-exercise-physiology\":{url:\"https://framerusercontent.com/images/gMKBcg6wSyZSOsB6aj2B62rdX5k.jpg\",alt:\"An exercise physiologist guiding a participant through a resistance-band exercise on a home verandah\"},\"first-month-with-a-new-provider\":{url:\"https://framerusercontent.com/images/OWz8DGx5Wy21uyAgVtm1DCl8kc.jpg\",alt:\"A support worker and a participant walking together along a suburban footpath, seen from behind\"}};export default function InsightCard(props){const title=props.title??\"Article title goes here\";const category=props.category??\"Category\";const excerpt=props.excerpt??\"A short preview of the article.\";const date=props.date??\"March 2026\";const readTime=props.readTime??\"4 min read\";const imageUrl=props.imageUrl;const slug=props.slug??\"article-slug\";const isPlaceholder=props.isPlaceholder??false;const[hovered,setHovered]=useState(false);const lineClamp=lines=>({display:\"-webkit-box\",WebkitLineClamp:lines,WebkitBoxOrient:\"vertical\",overflow:\"hidden\",textOverflow:\"ellipsis\"});// explicit prop wins; otherwise fall back to the slug map; otherwise the brand default\nconst mapped=SLUG_IMAGES[slug];const resolvedImage=imageUrl&&imageUrl.trim().length>0?imageUrl:mapped?.url??DEFAULT_IMAGE;const resolvedAlt=imageUrl&&imageUrl.trim().length>0?`${title} — illustrative image`:mapped?.alt??\"\";return /*#__PURE__*/_jsxs(\"a\",{href:`/insights/${slug}`,onMouseEnter:()=>setHovered(true),onMouseLeave:()=>setHovered(false),\"aria-label\":`${title} — read article`,style:{display:\"flex\",flexDirection:\"column\",backgroundColor:BRAND.cream,border:`1px solid ${BRAND.midGreen10}`,borderRadius:12,overflow:\"hidden\",textDecoration:\"none\",color:BRAND.deepGreen,transform:hovered?\"translateY(-4px)\":\"translateY(0)\",boxShadow:hovered?\"0 12px 28px rgba(5, 48, 48, 0.10)\":\"0 0 0 rgba(0, 0, 0, 0)\",transition:\"transform 200ms ease, box-shadow 200ms ease, opacity 200ms ease\",cursor:\"pointer\",height:\"100%\",boxSizing:\"border-box\",opacity:isPlaceholder?.85:1},children:[/*#__PURE__*/_jsx(\"div\",{role:!isPlaceholder&&resolvedAlt?\"img\":undefined,\"aria-label\":!isPlaceholder&&resolvedAlt?resolvedAlt:undefined,style:isPlaceholder?{position:\"relative\",width:\"100%\",height:220,backgroundColor:BRAND.cream,border:`1.5px dashed ${BRAND.midGreen40}`,borderTopLeftRadius:12,borderTopRightRadius:12,boxSizing:\"border-box\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"}:{position:\"relative\",width:\"100%\",height:220,backgroundImage:`url(\"${resolvedImage}\")`,backgroundSize:\"cover\",backgroundPosition:\"center\",backgroundColor:BRAND.mint},children:isPlaceholder&&/*#__PURE__*/_jsx(\"span\",{style:{backgroundColor:BRAND.deepGreen,color:BRAND.cream,fontSize:12,fontWeight:700,letterSpacing:\"0.08em\",padding:\"6px 12px\",borderRadius:999,textTransform:\"uppercase\"},children:\"[PH] Placeholder\"})}),/*#__PURE__*/_jsxs(\"div\",{style:{padding:28,display:\"flex\",flexDirection:\"column\",gap:12,flex:1},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:\"Poppins, sans-serif\",fontSize:12,lineHeight:1.4,fontWeight:600,letterSpacing:\"0.12em\",textTransform:\"uppercase\",color:BRAND.midGreen,margin:0},children:category}),/*#__PURE__*/_jsx(\"h3\",{style:{fontFamily:\"Poppins, sans-serif\",fontSize:22,lineHeight:1.25,fontWeight:600,color:BRAND.deepGreen,margin:0,...lineClamp(2)},children:title}),/*#__PURE__*/_jsx(\"p\",{style:{fontFamily:\"Poppins, sans-serif\",fontSize:14,lineHeight:1.55,color:BRAND.deepGreen,margin:0,...lineClamp(3)},children:excerpt}),/*#__PURE__*/_jsxs(\"div\",{style:{fontFamily:\"Poppins, sans-serif\",fontSize:14,lineHeight:1.5,color:BRAND.metaGrey,margin:0,marginTop:\"auto\",paddingTop:8},children:[date,\" \\xb7 \",readTime]})]})]});}addPropertyControls(InsightCard,{title:{type:ControlType.String,title:\"Title\",defaultValue:\"Article title\",displayTextArea:true},category:{type:ControlType.String,title:\"Category\",defaultValue:\"Category\"},excerpt:{type:ControlType.String,title:\"Excerpt\",defaultValue:\"Short preview text.\",displayTextArea:true},date:{type:ControlType.String,title:\"Date\",defaultValue:\"March 2026\"},readTime:{type:ControlType.String,title:\"Read time\",defaultValue:\"4 min read\"},imageUrl:{type:ControlType.String,title:\"Image URL\",defaultValue:\"\",placeholder:\"https://… (optional)\"},slug:{type:ControlType.String,title:\"Slug\",defaultValue:\"article-slug\"},isPlaceholder:{type:ControlType.Boolean,title:\"Draft / PH\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"InsightCard\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./InsightCard.map"],"mappings":"iLASsuD,SAAwB,EAAY,EAAM,CAAC,IAAM,EAAM,EAAM,OAAO,0BAAgC,EAAS,EAAM,UAAU,WAAiB,EAAQ,EAAM,SAAS,kCAAwC,EAAK,EAAM,MAAM,aAAmB,EAAS,EAAM,UAAU,aAAmB,EAAS,EAAM,SAAe,EAAK,EAAM,MAAM,eAAqB,EAAc,EAAM,eAAe,GAAW,CAAC,EAAQ,GAAYA,EAAS,EAAK,EAAQ,EAAU,IAAQ,CAAC,QAAQ,cAAc,gBAAgB,EAAM,gBAAgB,WAAW,SAAS,SAAS,aAAa,UAAU,GAC7xE,EAAO,EAAY,GAAY,EAAc,GAAU,EAAS,KAAK,CAAC,CAAC,OAAO,EAAE,EAAS,GAAQ,KAAK,EAAoB,EAAY,GAAU,EAAS,KAAK,CAAC,CAAC,OAAO,EAAE,GAAG,EAAM,uBAAuB,GAAQ,KAAK,GAAG,OAAoB,EAAM,IAAI,CAAC,KAAK,aAAa,IAAO,iBAAiB,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