{"version":3,"file":"CardGrid.rhW5eUD5.mjs","names":["p","React.useMemo","c"],"sources":["https:/framerusercontent.com/modules/NnDCSMhf5spD1OvMx6nz/x6gzI4MSvI0xsCSlE11e/CardGrid.js"],"sourcesContent":["// HomeSight flexible section: eyebrow, H2, intro, then a responsive grid of cards. Mobile-first.\n// CARDS FORMAT (one card per block, blank line between cards):\n//   Line 1 = card title. Start it with \"* \" to highlight the card.\n//   \"# Text\" = small badge.  \"> Link label | /url\" = link (whole card becomes clickable).\n//   \"! https://image-url\" = photo at the top of the card.  Other lines = body text.\n// Styles: \"card\" (boxed), \"plain\", \"numbered\" (01, 02...), \"check\" (check-mark list).\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";function parseCards(src){return(src||\"\").replace(/\\r/g,\"\").split(/\\n\\s*\\n/).map(block=>{const lines=block.split(\"\\n\").map(l=>l.trim()).filter(Boolean);if(!lines.length)return null;let title=lines[0];let highlight=false;if(title.startsWith(\"* \")){highlight=true;title=title.slice(2);}let badge=\"\";let linkLabel=\"\";let link=\"\";let image=\"\";const text=[];lines.slice(1).forEach(l=>{if(l.startsWith(\"# \"))badge=l.slice(2);else if(l.startsWith(\"! \"))image=l.slice(2).trim();else if(l.startsWith(\"> \")){const parts=l.slice(2).split(\"|\");linkLabel=(parts[0]||\"\").trim();link=(parts[1]||\"\").trim();}else text.push(l);});return{title,text:text.join(\" \"),badge,linkLabel,link,highlight,image};}).filter(Boolean);}const CSS=`\n.hs-cg{position:relative;width:100%;box-sizing:border-box;font-family:\"DM Sans\",sans-serif;padding:56px 20px;color:#3A3026}\n.hs-cg *{box-sizing:border-box}\n.hs-cg.cream{background:#FDFCF7}.hs-cg.sand{background:#EBDDC7}.hs-cg.white{background:#FFFFFF}.hs-cg.teal{background:#2C4C3B;color:#EBDDC7}\n.hs-ci{max-width:1120px;margin:0 auto}\n.hs-ce{font-size:13px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:#BF8B59;margin:0 0 12px}\n.hs-cg h2{font-family:\"Big Shoulders\",\"Big Shoulders Display\",sans-serif;font-weight:800;text-transform:uppercase;line-height:1;color:#2C4C3B;margin:0 0 14px;font-size:34px;max-width:820px;text-wrap:balance}\n.hs-cg.teal h2{color:#FDFCF7}\n.hs-cint{font-size:17px;line-height:1.6;margin:0 0 32px;max-width:680px}\n.hs-grid{display:grid;grid-template-columns:1fr;gap:16px}\n.hs-card{position:relative;display:flex;flex-direction:column;gap:8px;padding:22px;border-radius:10px;background:#FFFFFF;border:1px solid rgba(58,48,38,.12);overflow:hidden}\n.hs-card.lk:hover{border-color:#2C4C3B}\n.hs-cg.white .hs-card{background:#FDFCF7}\n.hs-cg.teal .hs-card{background:rgba(253,252,247,.06);border-color:rgba(235,221,199,.2)}\n.hs-card.hl{border:2px solid #BF8B59}\n.hs-cimg{margin:-22px -22px 10px;aspect-ratio:4/3;background:#EBDDC7}\n.hs-cimg img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 25%}\n.hs-plain .hs-card{background:transparent;border:0;padding:0 0 0 16px;border-left:3px solid #9DB198;border-radius:0}\n.hs-num{font-family:\"Big Shoulders\",\"Big Shoulders Display\",sans-serif;font-weight:800;font-size:30px;line-height:1;color:#BF8B59}\n.hs-chk{width:26px;height:26px;border-radius:50%;background:#2C4C3B;display:flex;align-items:center;justify-content:center;flex-shrink:0}\n.hs-check .hs-card{flex-direction:row;align-items:flex-start;gap:14px;padding:16px 18px}\n.hs-badge{align-self:flex-start;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;background:#BF8B59;color:#3A3026;padding:5px 10px;border-radius:6px}\n.hs-card h3{font-size:19px;line-height:1.3;font-weight:700;color:#3A3026;margin:0}\n.hs-cg.teal .hs-card h3{color:#FDFCF7}\n.hs-card p{font-size:16px;line-height:1.6;margin:0}\n.hs-cl{margin-top:auto;padding-top:8px;font-weight:700;font-size:15px;color:#2C4C3B;text-decoration:none}\n.hs-cl:after{content:\"\";position:absolute;inset:0;border-radius:10px}\n.hs-card.lk:hover .hs-cl{text-decoration:underline;text-underline-offset:4px}\n.hs-cg.teal .hs-cl{color:#EBDDC7}\n.hs-foot{margin:28px 0 0;font-size:15px}\n.hs-foot a{color:#2C4C3B;font-weight:700}\n.hs-cg.teal .hs-foot a{color:#EBDDC7}\n@media (min-width:640px){.hs-grid.c2,.hs-grid.c3,.hs-grid.c4{grid-template-columns:1fr 1fr}.hs-cg h2{font-size:42px}}\n@media (min-width:768px){.hs-cg{padding:80px 32px}}\n@media (min-width:1024px){.hs-grid.c3{grid-template-columns:repeat(3,1fr)}.hs-grid.c4{grid-template-columns:repeat(4,1fr)}.hs-grid{gap:20px}.hs-cg h2{font-size:50px}}\n`;const Check=()=>/*#__PURE__*/_jsx(\"span\",{className:\"hs-chk\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 12.5l4.5 4.5L19 7.5\",stroke:\"#FDFCF7\",strokeWidth:\"3\",fill:\"none\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})});/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 1200\n */export default function CardGrid(props){const p=props;const cards=React.useMemo(()=>parseCards(p.cards),[p.cards]);const cols=Math.min(4,Math.max(1,p.columns||3));return /*#__PURE__*/_jsxs(\"section\",{id:p.anchor||undefined,className:\"hs-cg \"+p.tone,style:{...p.style,position:\"relative\"},children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),/*#__PURE__*/_jsxs(\"div\",{className:\"hs-ci\",children:[p.eyebrow?/*#__PURE__*/_jsx(\"p\",{className:\"hs-ce\",children:p.eyebrow}):null,p.heading?/*#__PURE__*/_jsx(\"h2\",{children:p.heading}):null,p.intro?/*#__PURE__*/_jsx(\"p\",{className:\"hs-cint\",children:p.intro}):null,/*#__PURE__*/_jsx(\"div\",{className:\"hs-\"+p.cardStyle,children:/*#__PURE__*/_jsx(\"div\",{className:\"hs-grid c\"+cols,children:cards.map((c,i)=>/*#__PURE__*/_jsxs(\"div\",{className:\"hs-card\"+(c.highlight?\" hl\":\"\")+(c.link?\" lk\":\"\"),children:[c.image&&p.cardStyle===\"card\"?/*#__PURE__*/_jsx(\"div\",{className:\"hs-cimg\",children:/*#__PURE__*/_jsx(\"img\",{src:c.image,alt:c.title,loading:\"lazy\"})}):null,p.cardStyle===\"numbered\"?/*#__PURE__*/_jsx(\"span\",{className:\"hs-num\",children:String(i+1).padStart(2,\"0\")}):null,p.cardStyle===\"check\"?/*#__PURE__*/_jsx(Check,{}):null,/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:8,flex:1},children:[c.badge?/*#__PURE__*/_jsx(\"span\",{className:\"hs-badge\",children:c.badge}):null,c.title?/*#__PURE__*/_jsx(\"h3\",{children:c.title}):null,c.text?/*#__PURE__*/_jsx(\"p\",{children:c.text}):null,c.link&&c.linkLabel?/*#__PURE__*/_jsxs(\"a\",{className:\"hs-cl\",href:c.link,children:[c.linkLabel,\" →\"]}):null]})]},i))})}),p.footnote||p.footLinkLabel?/*#__PURE__*/_jsxs(\"p\",{className:\"hs-foot\",children:[p.footnote,\" \",p.footLinkLabel?/*#__PURE__*/_jsx(\"a\",{href:p.footLink,children:p.footLinkLabel}):null]}):null]})]});}CardGrid.defaultProps={anchor:\"\",eyebrow:\"\",heading:\"Section heading\",intro:\"\",cards:\"\",columns:3,cardStyle:\"card\",tone:\"cream\",footnote:\"\",footLinkLabel:\"\",footLink:\"\"};addPropertyControls(CardGrid,{anchor:{type:ControlType.String,title:\"Anchor ID\"},eyebrow:{type:ControlType.String,title:\"Eyebrow\"},heading:{type:ControlType.String,title:\"Heading (H2)\",displayTextArea:true},intro:{type:ControlType.String,title:\"Intro\",displayTextArea:true},cards:{type:ControlType.String,title:\"Cards\",displayTextArea:true,description:\"Blank line between cards. Line 1 = title (* = highlight). # = badge. ! url = photo. > Label | /url = link.\"},columns:{type:ControlType.Number,title:\"Columns\",min:1,max:4,step:1,displayStepper:true},cardStyle:{type:ControlType.Enum,title:\"Style\",options:[\"card\",\"plain\",\"numbered\",\"check\"],optionTitles:[\"Card\",\"Plain\",\"Numbered\",\"Checklist\"]},tone:{type:ControlType.Enum,title:\"Background\",options:[\"cream\",\"sand\",\"white\",\"teal\"],optionTitles:[\"Cream\",\"Sand\",\"White\",\"Teal\"]},footnote:{type:ControlType.String,title:\"Footnote\",displayTextArea:true},footLinkLabel:{type:ControlType.String,title:\"Footnote link\"},footLink:{type:ControlType.String,title:\"Footnote URL\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CardGrid\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"1200\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CardGrid.map"],"mappings":"iLAMyI,SAAS,EAAW,EAAI,CAAC,OAAO,GAAK,GAAA,CAAI,QAAQ,MAAM,EAAE,CAAC,CAAC,MAAM,SAAS,CAAC,CAAC,IAAI,GAAO,CAAC,IAAM,EAAM,EAAM,MAAM;CAAI,CAAC,CAAC,IAAI,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,OAAO,EAAE,GAAG,CAAC,EAAM,OAAO,OAAO,KAAK,IAAI,EAAM,EAAM,GAAO,EAAU,GAAS,EAAM,WAAW,IAAI,IAAG,EAAU,GAAK,EAAM,EAAM,MAAM,CAAC,GAAG,IAAI,EAAM,GAAO,EAAU,GAAO,EAAK,GAAO,EAAM,GAAS,EAAK,CAAC,EAAsQ,OAApQ,EAAM,MAAM,CAAC,CAAC,CAAC,QAAQ,GAAG,CAAC,GAAG,EAAE,WAAW,IAAI,EAAE,EAAM,EAAE,M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