{"version":3,"file":"ReportCard.DInv2xQx.mjs","names":["React.useId","React.useMemo"],"sources":["https:/framerusercontent.com/modules/uVeQJRkqbZPcENm6qXG7/gOgIpAvs9XRt8gAEduV3/ReportCard.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";const DEFAULT_TITLE=\"Inaugural Report\";const DEFAULT_YEAR=\"2026\";const DEFAULT_EYEBROW=\"EJI\";const DEFAULT_DESCRIPTION=\"Our founding report on the Economic Justice Initiative's community justice worker model, baseline impact, and the path forward.\";const DEFAULT_CTA=\"Read the Report →\";const DEFAULT_LINK=\"https://simplebooklet.com/ejiinauguralreport2026#page=1\";const DISPLAY_FONT='\"LOVELO\", \"Futura PT\", Futura, \"Trebuchet MS\", Arial, sans-serif';const BODY_FONT='\"Futura PT\", Futura, \"Trebuchet MS\", Arial, sans-serif';const DEFAULT_TITLE_FONT={fontFamily:BODY_FONT,fontSize:22,fontWeight:700,letterSpacing:0,lineHeight:1.18};const DEFAULT_DESCRIPTION_FONT={fontFamily:BODY_FONT,fontSize:16,fontWeight:400,letterSpacing:0,lineHeight:1.5};const DEFAULT_CTA_FONT={fontFamily:BODY_FONT,fontSize:15,fontWeight:700,letterSpacing:0,lineHeight:1.2};function getFontStyles(value,fallback){const merged={...fallback,...value};return{fontFamily:merged.fontFamily,fontSize:merged.fontSize,fontWeight:merged.fontWeight,letterSpacing:merged.letterSpacing,lineHeight:merged.lineHeight,textTransform:merged.textTransform,fontStyle:merged.fontStyle};}function sanitizeScope(value){const sanitized=value.replace(/[^a-zA-Z0-9_-]/g,\"\");return sanitized||\"report-card\";}function splitCtaLabel(label){const trimmed=label.trim();if(trimmed.endsWith(\"→\")){return{text:trimmed.slice(0,-1).trimEnd(),arrow:\"→\"};}return{text:label,arrow:\"→\"};}function buildStyles(scope){return`\n.${scope}{box-sizing:border-box;width:100%;color:var(--report-text);font-family:${BODY_FONT}}\n.${scope} *, .${scope} *::before, .${scope} *::after{box-sizing:border-box}\n.${scope}__link{display:flex;width:100%;max-width:900px;min-height:232px;margin:0 auto;overflow:hidden;border-radius:18px;background:var(--report-bg);color:var(--report-text);text-decoration:none;box-shadow:0 4px 20px rgba(0,0,0,.08);transform:translateY(0) scale(1);transition:box-shadow 220ms ease,transform 220ms ease}\n.${scope}__link:hover{box-shadow:0 12px 32px rgba(0,0,0,.16);transform:translateY(-2px) scale(1.02)}\n.${scope}__link:focus{outline:none}\n.${scope}__link:focus-visible{outline:3px solid rgba(173,109,115,.48);outline-offset:5px}\n.${scope}__cover{position:relative;isolation:isolate;flex:0 0 clamp(160px,24%,200px);min-height:232px;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#fff;background:linear-gradient(135deg,var(--report-plum-start) 0%,var(--report-plum-end) 100%)}\n.${scope}__cover::before{content:\"\";position:absolute;inset:18px;border:1px solid rgba(255,255,255,.24);border-radius:14px;z-index:-1}\n.${scope}__cover::after{content:\"\";position:absolute;width:116px;height:116px;right:-42px;bottom:-44px;border-radius:999px;border:1px solid rgba(255,255,255,.22);z-index:-1}\n.${scope}__coverImg{width:100%;height:100%;min-height:232px;display:block;object-fit:cover}\n.${scope}__coverText{width:100%;padding:30px 22px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}\n.${scope}__eyebrow, .${scope}__coverLabel{font-family:${BODY_FONT};font-size:11px;font-weight:700;line-height:1.1;letter-spacing:.18em;text-transform:uppercase;opacity:.9}\n.${scope}__year{font-family:${DISPLAY_FONT};font-size:54px;font-weight:700;line-height:.9;letter-spacing:0}\n.${scope}__spark{position:absolute;top:24px;right:26px;width:18px;height:18px;opacity:.72}\n.${scope}__spark::before, .${scope}__spark::after{content:\"\";position:absolute;inset:0;margin:auto;width:18px;height:2px;border-radius:999px;background:rgba(255,255,255,.82)}\n.${scope}__spark::after{transform:rotate(90deg)}\n.${scope}__content{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:14px;padding:28px 32px}\n.${scope}__title{margin:0;color:var(--report-text)}\n.${scope}__description{margin:0;max-width:58ch;color:var(--report-muted)}\n.${scope}__cta{display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:100%;margin-top:10px;color:var(--report-cta);text-decoration:none}\n.${scope}__ctaText{overflow-wrap:anywhere}\n.${scope}__arrow{display:inline-block;flex:0 0 auto;transform:translateX(0);transition:transform 180ms ease}\n.${scope}__link:hover .${scope}__ctaText{text-decoration:underline;text-underline-offset:4px}\n.${scope}__link:hover .${scope}__arrow{transform:translateX(4px)}\n@media (max-width:809px){.${scope}__link{flex-direction:column;min-height:0;max-width:100%}.${scope}__cover{flex:0 0 120px;width:100%;min-height:120px}.${scope}__coverImg{min-height:120px}.${scope}__coverText{min-height:120px;padding:22px 24px;gap:6px}.${scope}__cover::before{inset:14px;border-radius:12px}.${scope}__year{font-size:48px}.${scope}__spark{top:18px;right:20px}.${scope}__content{padding:24px}}\n@media (prefers-reduced-motion:reduce){.${scope}__link,.${scope}__arrow{transition:none}.${scope}__link:hover{transform:none}.${scope}__link:hover .${scope}__arrow{transform:none}}\n`;}export function ReportCard({title=DEFAULT_TITLE,year=DEFAULT_YEAR,eyebrow=DEFAULT_EYEBROW,description=DEFAULT_DESCRIPTION,ctaLabel=DEFAULT_CTA,link=DEFAULT_LINK,plumStart=\"#4A1C3D\",plumEnd=\"#8C5358\",bgColor=\"#FFFFFF\",textColor=\"#1F1A1F\",mutedColor=\"#5D5458\",ctaColor=\"#AD6D73\",titleFont,descriptionFont,ctaFont,coverImageUrl=\"\",headingLevel=\"h3\",style}){const reactId=React.useId();const scope=React.useMemo(()=>`report-card-${sanitizeScope(reactId)}`,[reactId]);const styles=React.useMemo(()=>buildStyles(scope),[scope]);const HeadingTag=headingLevel;const ctaParts=splitCtaLabel(ctaLabel);const hasCoverImage=coverImageUrl.trim().length>0;const ariaLabel=title.trim()||\"Read the report\";const vars={\"--report-bg\":bgColor,\"--report-text\":textColor,\"--report-muted\":mutedColor,\"--report-cta\":ctaColor,\"--report-plum-start\":plumStart,\"--report-plum-end\":plumEnd};return /*#__PURE__*/_jsxs(\"article\",{className:scope,style:{...style,...vars},children:[/*#__PURE__*/_jsx(\"style\",{children:styles}),/*#__PURE__*/_jsxs(\"a\",{className:`${scope}__link`,href:link,\"aria-label\":ariaLabel,children:[/*#__PURE__*/_jsx(\"div\",{className:`${scope}__cover`,\"aria-hidden\":hasCoverImage?undefined:true,children:hasCoverImage?/*#__PURE__*/_jsx(\"img\",{className:`${scope}__coverImg`,src:coverImageUrl,alt:\"\",loading:\"lazy\",decoding:\"async\"}):/*#__PURE__*/_jsxs(\"div\",{className:`${scope}__coverText`,children:[/*#__PURE__*/_jsx(\"span\",{className:`${scope}__spark`,\"aria-hidden\":\"true\"}),/*#__PURE__*/_jsx(\"span\",{className:`${scope}__eyebrow`,children:eyebrow}),/*#__PURE__*/_jsx(\"span\",{className:`${scope}__year`,children:year}),/*#__PURE__*/_jsx(\"span\",{className:`${scope}__coverLabel`,children:title})]})}),/*#__PURE__*/_jsxs(\"div\",{className:`${scope}__content`,children:[/*#__PURE__*/_jsx(HeadingTag,{className:`${scope}__title`,style:getFontStyles(titleFont,DEFAULT_TITLE_FONT),children:title}),/*#__PURE__*/_jsx(\"p\",{className:`${scope}__description`,style:getFontStyles(descriptionFont,DEFAULT_DESCRIPTION_FONT),children:description}),/*#__PURE__*/_jsxs(\"span\",{className:`${scope}__cta`,style:getFontStyles(ctaFont,DEFAULT_CTA_FONT),children:[/*#__PURE__*/_jsx(\"span\",{className:`${scope}__ctaText`,children:ctaParts.text}),/*#__PURE__*/_jsx(\"span\",{className:`${scope}__arrow`,\"aria-hidden\":\"true\",children:ctaParts.arrow})]})]})]})]});}addPropertyControls(ReportCard,{title:{type:ControlType.String,title:\"Title\",defaultValue:DEFAULT_TITLE},year:{type:ControlType.String,title:\"Year\",defaultValue:DEFAULT_YEAR},eyebrow:{type:ControlType.String,title:\"Eyebrow\",defaultValue:DEFAULT_EYEBROW},description:{type:ControlType.String,title:\"Description\",defaultValue:DEFAULT_DESCRIPTION,displayTextArea:true},ctaLabel:{type:ControlType.String,title:\"CTA\",defaultValue:DEFAULT_CTA},link:{type:ControlType.Link,title:\"Link\",defaultValue:DEFAULT_LINK},plumStart:{type:ControlType.Color,title:\"Plum Start\",defaultValue:\"#4A1C3D\"},plumEnd:{type:ControlType.Color,title:\"Plum End\",defaultValue:\"#8C5358\"},bgColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#1F1A1F\"},mutedColor:{type:ControlType.Color,title:\"Muted\",defaultValue:\"#5D5458\"},ctaColor:{type:ControlType.Color,title:\"CTA Color\",defaultValue:\"#AD6D73\"},titleFont:{type:ControlType.Font,title:\"Title Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"22px\",variant:\"Bold\",letterSpacing:\"0em\",lineHeight:\"1.18em\"}},descriptionFont:{type:ControlType.Font,title:\"Body Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Regular\",letterSpacing:\"0em\",lineHeight:\"1.5em\"}},ctaFont:{type:ControlType.Font,title:\"CTA Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Bold\",letterSpacing:\"0em\",lineHeight:\"1.2em\"}},coverImageUrl:{type:ControlType.Image,title:\"Cover Image\"},headingLevel:{type:ControlType.Enum,title:\"Heading\",defaultValue:\"h3\",options:[\"h2\",\"h3\",\"h4\"],optionTitles:[\"H2\",\"H3\",\"H4\"],displaySegmentedControl:true}});export default ReportCard;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ReportCard\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"ReportCard\":{\"type\":\"reactComponent\",\"name\":\"ReportCard\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"ReportCardProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ReportCard.map"],"mappings":"mLAAu9B,SAAS,EAAc,EAAM,EAAS,CAAC,IAAM,EAAO,CAAC,GAAG,EAAS,GAAG,CAAK,EAAE,MAAM,CAAC,WAAW,EAAO,WAAW,SAAS,EAAO,SAAS,WAAW,EAAO,WAAW,cAAc,EAAO,cAAc,WAAW,EAAO,WAAW,cAAc,EAAO,cAAc,UAAU,EAAO,SAAS,CAAE,CAAC,SAAS,EAAc,EAAM,CAAqD,OAApC,EAAM,QAAQ,kBAAkB,EAAmB,GAAG,aAAc,CAAC,SAAS,EAAc,EAAM,CAAC,IAAM,EAAQ,EAAM,KAAK,EAAkF,OAA7E,EAAQ,SAAS,GAAG,EAAS,CAAC,KAAK,EAAQ,MAAM,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,MAAM,GAAG,EAAS,CAAC,KAAK,EAAM,MAAM,GAAG,CAAE,CAAC,SAAS,EAAY,EAAM,CAAC,MAAM;GACrjD,EAAM,yEAAyE,EAAU;GACzF,EAAM,OAAO,EAAM,eAAe,EAAM;GACxC,EAAM;GACN,EAAM;GACN,EAAM;GACN,EAAM;GACN,EAAM;GACN,EAAM;GACN,EAAM;GACN,EAAM;GACN,EAAM;GACN,EAAM,cAAc,EAAM,2BAA2B,EAAU;GAC/D,EAAM,qBAAqB,EAAa;GACxC,EAAM;GACN,EAAM,oBAAoB,EAAM;GAChC,EAAM;GACN,EAAM;GACN,EAAM;GACN,EAAM;GACN,EAAM;GACN,EAAM;GACN,EAAM;GACN,EAAM,gBAAgB,EAAM;GAC5B,EAAM,gBAAgB,EAAM;4BACH,EAAM,4DAA4D,EAAM,sDAAsD,EAAM,+BAA+B,EAAM,0DAA0D,EAAM,iDAAiD,EAAM,yBAAyB,EAAM,+BAA+B,EAAM;0CACtV,EAAM,UAAU,EAAM,2BAA2B,E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