{"version":3,"file":"PropertyCard.CqL1nrQP.mjs","names":["_Fragment","p"],"sources":["https:/framerusercontent.com/modules/nF6w82iWrYpBknFXFnDY/s6rL8fyFCMhVR6Y5Nldq/PropertyCard.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{readable}from\"https://framerusercontent.com/modules/Ng45YrpyAOriq23Rp3Gd/Rhl7BCZJ2aOqb2ZcHvNC/PageScale.js\";const STAT_GAP=64// between NRA, Acquired and Status\n;/** Digits set in Times against Cormorant letters, per the site's taste. */function MixedName(props){return /*#__PURE__*/_jsx(_Fragment,{children:props.text.split(/([0-9]+)/).map((part,i)=>/^[0-9]+$/.test(part)?/*#__PURE__*/_jsx(\"span\",{style:{fontFamily:\"'Times New Roman', Times, serif\",fontSize:\"0.95em\",fontWeight:300},children:part},i):/*#__PURE__*/_jsx(\"span\",{children:part},i))});}function alphaHex(color,a){const c=(color||\"\").trim();const hex=/^#([0-9a-f]{6})$/i.exec(c);if(hex){const n=parseInt(hex[1],16);return`rgba(${n>>16&255}, ${n>>8&255}, ${n&255}, ${a})`;}const rgb=c.match(/[\\d.]+/g);return rgb&&rgb.length>=3?`rgba(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, ${a})`:color;}export default function PropertyCard(props){const{p,photoHeight=380}=props;const{panelColor,lightText,mutedColor,accentColor,greenColor}=props.colors;// Occupancy band: healthy above 80, watch 40-80, trouble below 40.\nconst barColor=p.occ>80?greenColor:p.occ>=40?\"#E6D28E\":\"#E2A69B\";// the panel colour at a strength, for the photograph's fade into the panel\nconst fade=a=>alphaHex(panelColor,a);const label=t=>/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:\"'Bai Jamjuree', Poppins, sans-serif\",fontSize:10,fontWeight:600,letterSpacing:\"0.24em\",textTransform:\"uppercase\",color:readable(mutedColor,panelColor)},children:t});return /*#__PURE__*/_jsxs(\"div\",{style:{...props.style,display:\"flex\",flexDirection:\"column\",flex:1},children:[/*#__PURE__*/_jsxs(\"div\",{style:{height:photoHeight,position:\"relative\",flexShrink:0},children:[p.img?/*#__PURE__*/_jsx(\"img\",{src:p.img,alt:p.name,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\"}}):/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",background:\"rgba(252, 252, 250, 0.06)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontFamily:\"Aboreto, 'Cormorant Garamond', serif\",fontSize:44,color:\"rgba(194, 146, 28, 0.55)\"},children:p.name.split(\" \")[0]}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:14,right:14,padding:\"7px 12px\",background:\"rgba(30, 41, 52, 0.88)\",fontFamily:\"'Bai Jamjuree', Poppins, sans-serif\",fontSize:9,fontWeight:600,letterSpacing:\"0.22em\",textTransform:\"uppercase\",color:accentColor},children:p.type}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:0,right:0,bottom:0,// a tall, eased fade (Henry 2026-09-19: \"the gradient is too stark, make the fade in more natural\"): it was a\n// straight ramp over the bottom third, which read as a dark band across the photograph\nheight:\"72%\",pointerEvents:\"none\",background:`linear-gradient(to top, ${panelColor} 0%, ${fade(.86)} 14%, ${fade(.62)} 30%, ${fade(.36)} 48%, ${fade(.16)} 66%, ${fade(.05)} 84%, ${fade(0)} 100%)`}}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",left:30,right:30,bottom:12},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:'\"Cormorant Garamond\", Georgia, serif',fontSize:31,fontWeight:500,lineHeight:\"1.1em\",color:lightText},children:/*#__PURE__*/_jsx(MixedName,{text:p.name})}),/*#__PURE__*/_jsxs(\"div\",{style:{marginTop:8,fontFamily:\"Poppins, Inter, sans-serif\",fontSize:10,letterSpacing:\"0.2em\",textTransform:\"uppercase\",color:\"rgba(252, 252, 250, 0.7)\"},children:[p.city,\", \",p.state]})]})]}),/*#__PURE__*/_jsxs(\"div\",{style:{padding:\"16px 30px 24px 30px\",display:\"flex\",flexDirection:\"column\",flex:1},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",columnGap:STAT_GAP/2,flexWrap:\"wrap\",rowGap:14},children:[/*#__PURE__*/_jsxs(\"div\",{children:[label(\"NRA (SF)\"),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:5,fontFamily:\"Poppins, Inter, sans-serif\",fontSize:12,fontWeight:500,letterSpacing:\"0.4em\",textTransform:\"uppercase\",color:lightText},children:p.nra.toLocaleString()})]}),/*#__PURE__*/_jsxs(\"div\",{style:{textAlign:\"center\"},children:[label(\"Acquired\"),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:5,fontFamily:\"Poppins, Inter, sans-serif\",fontSize:12,fontWeight:500,letterSpacing:\"0.4em\",textTransform:\"uppercase\",color:lightText,whiteSpace:\"nowrap\"},children:p.purchased})]}),/*#__PURE__*/_jsxs(\"div\",{style:{textAlign:\"right\",marginRight:\"-0.4em\"},children:[label(\"Status\"),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:5,fontFamily:\"Poppins, Inter, sans-serif\",fontSize:12,fontWeight:500,letterSpacing:\"0.4em\",textTransform:\"uppercase\",color:lightText},children:p.status})]})]}),/*#__PURE__*/_jsx(\"div\",{style:{height:1,background:\"rgba(252, 252, 250, 0.15)\",margin:\"16px 0 12px 0\"}}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"baseline\"},children:[label(\"Occupancy\"),/*#__PURE__*/_jsxs(\"div\",{style:{fontFamily:\"Aboreto, 'Cormorant Garamond', serif\",fontSize:17,color:barColor},children:[p.occ,\"%\"]})]}),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:8,height:3,background:\"rgba(252, 252, 250, 0.15)\",position:\"relative\"},children:/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:0,top:0,bottom:0,width:`${p.occ}%`,background:barColor,transition:\"width 0.6s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s ease\"}})})]})]})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"CardColors\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CardProperty\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"PropertyCard\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PropertyCard.map"],"mappings":"iKAC4E,SAAS,EAAU,EAAM,CAAC,OAAoB,EAAKA,EAAU,CAAC,SAAS,EAAM,KAAK,MAAM,UAAU,CAAC,CAAC,KAAK,EAAK,IAAI,WAAW,KAAK,CAAI,EAAe,EAAK,OAAO,CAAC,MAAM,CAAC,WAAW,kCAAkC,SAAS,SAAS,WAAW,GAAG,EAAE,SAAS,CAAI,EAAE,CAAC,EAAe,EAAK,OAAO,CAAC,SAAS,CAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,SAAS,EAAS,EAAM,EAAE,CAAC,IAAM,GAAG,GAAO,GAAA,CAAI,KAAK,EAAQ,EAAI,oBAAoB,KAAK,CAAC,EAAE,GAAG,EAAI,CAAC,IAAM,EAAE,SAAS,EAAI,GAAG,EAAE,EAAE,MAAM,QAAQ,GAAG,GAAG,IAAI,IAAI,GAAG,EAAE,IAAI,IAAI,EAAE,IAAI,IAAI,EAAE,EAAG,CAAC,IAAM,EAAI,EAAE,MAAM,SAAS,EAAE,OAAO,GAAK,EAAI,QAAQ,EAAE,QAAQ,EAAI,GAAG,IAAI,EAAI,GAAG,IAAI,EAAI,GAAG,IAAI,EAAE,GAAG,CAAM,CAAC,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,EAAA,EAAE,cAAY,KAAK,EAAW,CAAC,aAAW,YAAU,aAAW,cAA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