{"version":3,"file":"FeaturedCaseStudyCompactCard.D7cOSEo6.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/DNPRcSn78el3mohfyyaq/YHsbbkdgwmTNHkiXom7j/FeaturedCaseStudyCompactCard.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";function hasText(value){return value!==undefined&&value!==null&&String(value).trim()!==\"\";}function validStat(value,description){if(!hasText(value)||!hasText(description))return false;if(Number(value)===0)return/lost time/i.test(String(description));return true;}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function FeaturedCaseStudyCompactCard(props){const imageSource=typeof props.image===\"string\"?props.image:props.image&&props.image.src;const stats=[{value:props.stat1Value,suffix:props.stat1Suffix,description:props.stat1Description},{value:props.stat2Value,suffix:props.stat2Suffix,description:props.stat2Description}].filter(stat=>validStat(stat.value,stat.description));if(!hasText(props.caseStudyName))return null;const card=/*#__PURE__*/_jsxs(\"article\",{className:\"tb-case-compact\",children:[imageSource?/*#__PURE__*/_jsx(\"div\",{className:\"tb-case-media\",children:/*#__PURE__*/_jsx(\"img\",{src:imageSource,alt:props.caseStudyName})}):null,/*#__PURE__*/_jsxs(\"div\",{className:\"tb-case-body\",children:[hasText(props.industry)?/*#__PURE__*/_jsx(\"div\",{className:\"tb-case-eyebrow\",children:props.industry}):null,/*#__PURE__*/_jsx(\"h3\",{children:props.caseStudyName}),hasText(props.summary)?/*#__PURE__*/_jsx(\"p\",{children:props.summary}):null,stats.length>0?/*#__PURE__*/_jsx(\"div\",{className:`tb-case-stats tb-case-stats-${stats.length}`,children:stats.map((stat,index)=>/*#__PURE__*/_jsxs(\"div\",{className:\"tb-case-stat\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"tb-case-stat-value\",children:[stat.value,hasText(stat.suffix)?stat.suffix:\"\"]}),/*#__PURE__*/_jsx(\"div\",{className:\"tb-case-stat-description\",children:stat.description})]},index))}):null,hasText(props.ctaLabel)&&hasText(props.caseStudyLink)?/*#__PURE__*/_jsxs(\"div\",{className:\"tb-case-cta\",children:[props.ctaLabel,/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",children:\" →\"})]}):null]})]});return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .tb-case-link { display:block; width:100%; color:inherit; text-decoration:none; }\n                .tb-case-compact { width:100%; min-width:0; box-sizing:border-box; overflow:hidden; border:1px solid #DCE5EA; border-radius:22px; background:#FFFFFF; color:#06425C; }\n                .tb-case-media { width:100%; aspect-ratio:16/9; overflow:hidden; background:#F3F6F8; }\n                .tb-case-media img { display:block; width:100%; height:100%; object-fit:cover; }\n                .tb-case-body { padding:26px; box-sizing:border-box; }\n                .tb-case-eyebrow { margin-bottom:12px; color:#F28705; font-family:\"Zalando Sans Expanded\", \"Arial Narrow\", Arial, sans-serif; font-size:11px; font-weight:600; line-height:1.2; letter-spacing:.12em; text-transform:uppercase; }\n                .tb-case-compact h3 { margin:0; color:#06425C; font-family:\"Zalando Sans Expanded\", \"Arial Narrow\", Arial, sans-serif; font-size:30px; font-weight:600; line-height:1.02; letter-spacing:-.035em; text-transform:uppercase; }\n                .tb-case-compact p { margin:14px 0 0; color:#7890A4; font-family:\"Zalando Sans\", Arial, sans-serif; font-size:15px; font-weight:400; line-height:1.5; }\n                .tb-case-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:24px; border:1px solid #DCE5EA; }\n                .tb-case-stats-1 { grid-template-columns:minmax(0,1fr); }\n                .tb-case-stat { min-width:0; padding:16px; box-sizing:border-box; }\n                .tb-case-stat + .tb-case-stat { border-left:1px solid #DCE5EA; }\n                .tb-case-stat-value { color:#06425C; font-family:\"Zalando Sans Expanded\", \"Arial Narrow\", Arial, sans-serif; font-size:24px; font-weight:600; line-height:1; }\n                .tb-case-stat-description { margin-top:7px; color:#7890A4; font-family:\"Zalando Sans\", Arial, sans-serif; font-size:12px; line-height:1.35; }\n                .tb-case-cta { display:inline-flex; margin-top:22px; padding-bottom:4px; border-bottom:1px solid #F28705; color:#06425C; font-family:\"Zalando Sans Expanded\", \"Arial Narrow\", Arial, sans-serif; font-size:11px; font-weight:600; line-height:1.2; letter-spacing:.04em; text-transform:uppercase; }\n                @media (max-width:809px) { .tb-case-body { padding:22px; } .tb-case-compact h3 { font-size:clamp(19px,6.1538vw,24px);line-height:1.1;word-break:normal;overflow-wrap:normal; } .tb-case-compact p { font-size:15px; } .tb-case-cta {min-height:44px;align-items:center;line-height:1.4;} }\n                @media (max-width:420px) { .tb-case-stats { grid-template-columns:minmax(0,1fr); } .tb-case-stat + .tb-case-stat { border-left:0; border-top:1px solid #DCE5EA; } }\n            `}),hasText(props.caseStudyLink)?/*#__PURE__*/_jsx(\"a\",{className:\"tb-case-link\",href:props.caseStudyLink,children:card}):card]});}FeaturedCaseStudyCompactCard.defaultProps={caseStudyName:\"CASE STUDY\",industry:\"INDUSTRY / SECTOR\",summary:\"Project summary\",ctaLabel:\"VIEW CASE STUDY\"};addPropertyControls(FeaturedCaseStudyCompactCard,{caseStudyName:{type:ControlType.String,title:\"Project Name\"},industry:{type:ControlType.String,title:\"Industry\"},summary:{type:ControlType.String,title:\"Summary\",displayTextArea:true},image:{type:ControlType.ResponsiveImage,title:\"Image\"},caseStudyLink:{type:ControlType.Link,title:\"Case Study Link\"},stat1Value:{type:ControlType.Number,title:\"Stat 1 Value\",defaultValue:0},stat1Suffix:{type:ControlType.String,title:\"Stat 1 Suffix\"},stat1Description:{type:ControlType.String,title:\"Stat 1 Description\"},stat2Value:{type:ControlType.Number,title:\"Stat 2 Value\",defaultValue:0},stat2Suffix:{type:ControlType.String,title:\"Stat 2 Suffix\"},stat2Description:{type:ControlType.String,title:\"Stat 2 Description\"},ctaLabel:{type:ControlType.String,title:\"CTA Label\",defaultValue:\"VIEW CASE STUDY\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FeaturedCaseStudyCompactCard\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FeaturedCaseStudyCompactCard.map"],"mappings":"0KAAmI,SAAS,EAAQ,EAAM,CAAC,OAAO,GAA2B,MAAM,OAAO,CAAK,CAAC,CAAC,KAAK,IAAI,EAAG,CAAC,SAAS,EAAU,EAAM,EAAY,CAA0H,MAAtH,CAAC,EAAQ,CAAK,GAAG,CAAC,EAAQ,CAAW,EAAS,GAAS,OAAO,CAAK,IAAI,GAAQ,aAAa,KAAK,OAAO,CAAW,CAAC,CAAc,CAGtY,SAAwB,EAA6B,EAAM,CAAC,IAAM,EAAY,OAAO,EAAM,OAAQ,SAAS,EAAM,MAAM,EAAM,OAAO,EAAM,MAAM,IAAU,EAAM,CAAC,CAAC,MAAM,EAAM,WAAW,OAAO,EAAM,YAAY,YAAY,EAAM,gBAAgB,EAAE,CAAC,MAAM,EAAM,WAAW,OAAO,EAAM,YAAY,YAAY,EAAM,gBAAgB,CAAC,CAAC,CAAC,OAAO,GAAM,EAAU,EAAK,MAAM,EAAK,WAAW,CAAC,EAAE,GAAG,CAAC,EAAQ,EAAM,aAAa,EAAE,OAAO,KAAK,IAAM,EAAkB,EAAM,UAAU,CAAC,UAAU,kBAAkB,SAAS,CAAC,EAAyB,EAAK,MAAM,CAAC,UAAU,gBAAgB,SAAsB,EAAK,MAAM,CAAC,IAAI,EAAY,IAAI,EAAM,aAAa,CAAC,CAAC,CAAC,EAAE,KAAkB,EAAM,MAAM,CAAC,UAAU,eAAe,SAAS,CAAC,EAAQ,EAAM,QAAQ,EAAe,EAAK,MAAM,CAAC,UAAU,kBAAkB,SAAS,EAAM,QAAQ,CAAC,EAAE,KAAkB,EAAK,KAAK,CAAC,SAAS,EAAM,aAAa,CAAC,EAAE,EAAQ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