{"version":3,"file":"AgentCard.DNfTbfSW.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/GVYT7vwY1j3fOzxCnDSd/WPYHLBgiscsfv3FiIgz9/AgentCard.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Atrium agent card, matched to the approved prototype.\n *\n * A 3:4 arched portrait that zooms in slightly on hover, then the\n * agent's name and role.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 302\n */export default function AgentCard(props){const{image,name,role,link,newTab,cursorLabel,titleFont,labelFont,ink,muted,photoBg}=props;const[hover,setHover]=useState(false);const[calm,setCalm]=useState(false);useEffect(()=>{const mq=window.matchMedia(\"(prefers-reduced-motion: reduce)\");const sync=()=>setCalm(mq.matches);sync();mq.addEventListener(\"change\",sync);return()=>mq.removeEventListener(\"change\",sync);},[]);// Without a link it is a plain block, so search engines don't meet a dead link\nconst Card=link?\"a\":\"div\";return /*#__PURE__*/_jsxs(Card,{href:link||undefined,\"data-cursor\":link&&cursorLabel?cursorLabel:undefined,target:newTab?\"_blank\":undefined,rel:newTab?\"noopener\":undefined,onPointerEnter:()=>setHover(true),onPointerLeave:()=>setHover(false),style:{display:\"block\",width:\"100%\",color:ink,textDecoration:\"none\",cursor:link?\"pointer\":\"default\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",aspectRatio:\"3 / 4\",borderRadius:\"999px 999px 6px 6px\",overflow:\"hidden\",background:photoBg,// Safari: keep the rounded clip while the photo scales\nWebkitMaskImage:\"-webkit-radial-gradient(white, black)\"},children:image?.src&&/*#__PURE__*/_jsx(\"img\",{src:image.src,srcSet:image.srcSet,// Four portraits across on Desktop and Tablet, two on Phone\nsizes:\"(max-width: 809.98px) 50vw, (max-width: 1199.98px) 25vw, 310px\",alt:image.alt||(name?`Portrait of ${name}`:\"\"),loading:\"lazy\",style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",maxWidth:\"none\",objectFit:\"cover\",display:\"block\",transform:hover?\"scale(1.05)\":\"scale(1)\",transition:calm?\"none\":\"transform 1s cubic-bezier(.22, 1, .36, 1)\"}})}),/*#__PURE__*/_jsx(\"p\",{style:{margin:\"16px 0 0\",fontFamily:family(titleFont,`\"Instrument Serif\", \"Times New Roman\", serif`),fontWeight:titleFont?.fontWeight||400,fontStyle:titleFont?.fontStyle||\"normal\",fontSize:28,lineHeight:1.1,color:ink},children:name}),role&&/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontFamily:family(labelFont,`\"IBM Plex Mono\", ui-monospace, Menlo, monospace`),fontSize:12,lineHeight:1.6,letterSpacing:\"0.06em\",textTransform:\"uppercase\",color:muted},children:role})]});}// A font picked in the panel goes first, with Atrium's own font behind it while it loads\nfunction family(font,fallback){return font?.fontFamily?`${font.fontFamily}, ${fallback}`:fallback;}AgentCard.defaultProps={name:\"Daniel Reyes\",role:\"Founding partner \\xb7 Westgate\",newTab:false,cursorLabel:\"Profile\",ink:\"#1B1A17\",muted:\"#5F5B54\",photoBg:\"#E3DDD3\"};addPropertyControls(AgentCard,{image:{type:ControlType.ResponsiveImage,title:\"Photo\"},name:{type:ControlType.String,title:\"Name\"},role:{type:ControlType.String,title:\"Role\"},link:{type:ControlType.Link,title:\"Link\"},newTab:{type:ControlType.Boolean,title:\"New Tab\"},cursorLabel:{type:ControlType.String,title:\"Cursor\",description:\"Shown in the arch cursor over this card. Empty keeps the normal cursor.\"},titleFont:{type:ControlType.Font,title:\"Name Font\",controls:\"basic\",defaultFontType:\"serif\"},labelFont:{type:ControlType.Font,title:\"Role Font\",controls:\"basic\",defaultFontType:\"monospace\"},ink:{type:ControlType.Color,title:\"Ink\"},muted:{type:ControlType.Color,title:\"Muted\"},photoBg:{type:ControlType.Color,title:\"Photo BG\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AgentCard\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"302\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AgentCard.map"],"mappings":"sMASG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,QAAM,OAAK,OAAK,OAAK,SAAO,cAAY,YAAU,YAAU,MAAI,QAAM,WAAS,EAAW,CAAC,EAAM,GAAUA,EAAS,EAAK,EAAO,CAAC,EAAK,GAASA,EAAS,EAAK,EACrL,OADuL,MAAc,CAAC,IAAM,EAAG,EAAO,WAAW,kCAAkC,EAAQ,MAAS,EAAQ,EAAG,OAAO,EAA4C,OAA1C,EAAK,EAAE,EAAG,iBAAiB,SAAS,CAAI,MAAY,EAAG,oBAAoB,SAAS,CAAI,CAAE,EAAE,CAAC,CAAC,EAClX,EAAnC,EAAK,IAAI,MAAqC,CAAC,KAAK,GAAM,IAAA,GAAU,cAAc,GAAM,EAAY,EAAY,IAAA,GAAU,OAAO,EAAO,SAAS,IAAA,GAAU,IAAI,EAAO,WAAW,IAAA,GAAU,mBAAmB,EAAS,EAAI,EAAE,mBAAmB,EAAS,EAAK,EAAE,MAAM,CAAC,QAAQ,QAAQ,MAAM,OAAO,MAAM,EAAI,eAAe,OAAO,OAAO,EAAK,UAAU,SAAS,EAAE,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,YAAY,QAAQ,aAAa,sBAAsB,SAAS,SAAS,WAAW,EAC/gB,gBAAgB,uCAAuC,EAAE,SAAS,GAAO,KAAkB,EAAK,MAAM,CAAC,IAAI,EAAM,IAAI,OAAO,EAAM,OAClI,MAAM,iEAAiE,IAAI,EAAM,MAAM,EAAK,eAAe,IAAO,IAAI,QAAQ,OAAO,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,M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