{"version":3,"file":"TeamCard.DAJsu_Yb.mjs","names":["useState","startTransition"],"sources":["https:/framerusercontent.com/modules/AsTMIMsYEKd0NjmnNKjZ/x3Ot2tQ1cCLyFOSM9wSZ/TeamCard.js"],"sourcesContent":["// Team card component with info inset into the image\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,startTransition}from\"react\";/**\n * House component that reveals structure on hover\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function House(props){const{houseImage={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"House exterior\"},structureImage={src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"House structure\"},borderRadius,revealShape=\"circle\",customSVG=\"\",animationDuration=.3,animationEasing=\"ease\",structureScale=1,brightness=1,structureBrightness=1,style}=props;const[hovered,setHovered]=useState(false);// Track mouse position\nconst[mouse,setMouse]=useState({x:0,y:0});// Compute mask style\nlet maskImage=\"none\";// Spotlight size and shape controls\nconst spotlightSize=props.spotlightSize||80;const spotlightShape=props.spotlightShape||\"circle\";if(hovered){if(revealShape===\"circle\"||spotlightShape===\"circle\"){maskImage=`radial-gradient(circle ${spotlightSize}px at ${mouse.x}px ${mouse.y}px, white ${spotlightSize}px, transparent ${spotlightSize*1.5}px)`;}else if(revealShape===\"square\"||spotlightShape===\"square\"){const side=spotlightSize*2;maskImage=`url('data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='${side}' height='${side}'><rect x='${mouse.x-spotlightSize}' y='${mouse.y-spotlightSize}' width='${side}' height='${side}' fill='white'/></svg>')`;}else if((revealShape===\"custom\"||spotlightShape===\"custom\")&&customSVG){// Insert the custom SVG, centered at mouse\nconst encoded=encodeURIComponent(customSVG.replace(/__X__/g,String(mouse.x)).replace(/__Y__/g,String(mouse.y)).replace(/__SIZE__/g,String(spotlightSize)));maskImage=`url('data:image/svg+xml;utf8,${encoded}')`;}}return /*#__PURE__*/_jsxs(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",borderRadius,overflow:\"hidden\",cursor:\"pointer\"},onMouseEnter:()=>startTransition(()=>setHovered(true)),onMouseLeave:()=>startTransition(()=>setHovered(false)),onMouseMove:e=>{const rect=e.currentTarget.getBoundingClientRect();const x=e.clientX-rect.left;const y=e.clientY-rect.top;startTransition(()=>setMouse({x,y}));},children:[/*#__PURE__*/_jsx(\"img\",{src:houseImage.src,alt:houseImage.alt,loading:\"lazy\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\",borderRadius,transition:`filter ${animationDuration}s ${animationEasing}, opacity ${animationDuration}s ${animationEasing}`,filter:`brightness(${props.brightness})`,opacity:1,position:\"absolute\",top:0,left:0}}),/*#__PURE__*/_jsx(\"img\",{src:structureImage.src,alt:structureImage.alt,loading:\"lazy\",style:{width:`${100*structureScale}%`,height:`${100*structureScale}%`,objectFit:\"cover\",display:\"block\",borderRadius,transition:`opacity ${animationDuration}s ${animationEasing}`,opacity:hovered?1:0,position:\"absolute\",top:structureScale===1?0:`calc(50% - ${50*structureScale}%)`,left:structureScale===1?0:`calc(50% - ${50*structureScale}%)`,pointerEvents:\"none\",WebkitMaskImage:maskImage,maskImage:maskImage,filter:`brightness(${structureBrightness})`}})]});}addPropertyControls(House,{houseImage:{type:ControlType.ResponsiveImage,title:\"House Image\"},structureImage:{type:ControlType.ResponsiveImage,title:\"Structure Image\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:12,min:0,max:32},revealShape:{type:ControlType.Enum,title:\"Reveal Shape\",options:[\"circle\",\"square\",\"custom\"],optionTitles:[\"Circle\",\"Square\",\"Custom SVG\"],defaultValue:\"circle\"},customSVG:{type:ControlType.String,title:\"Custom SVG\",defaultValue:\"<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><ellipse cx='__X__' cy='__Y__' rx='80' ry='40' fill='white'/></svg>\",placeholder:\"SVG markup, use __X__ and __Y__ for mouse position\",hidden:({revealShape})=>revealShape!==\"custom\"},animationDuration:{type:ControlType.Number,title:\"Anim Duration\",defaultValue:.3,min:0,max:2,step:.05,unit:\"s\"},animationEasing:{type:ControlType.Enum,title:\"Anim Easing\",options:[\"ease\",\"linear\",\"ease-in\",\"ease-out\",\"ease-in-out\"],optionTitles:[\"Ease\",\"Linear\",\"Ease In\",\"Ease Out\",\"Ease In Out\"],defaultValue:\"ease\"},structureScale:{type:ControlType.Number,title:\"Structure Scale\",defaultValue:1,min:.5,max:2,step:.01},strength:{type:ControlType.Number,title:\"Strength\",defaultValue:.8,min:0,max:1,step:.01},hardness:{type:ControlType.Number,title:\"Hardness\",defaultValue:.7,min:0,max:1,step:.01},tail:{type:ControlType.Number,title:\"Tail\",defaultValue:.8,min:0,max:1,step:.01},fluidity:{type:ControlType.Number,title:\"Fluidity\",defaultValue:.7,min:0,max:1,step:.01},dissipation:{type:ControlType.Number,title:\"Dissipation\",defaultValue:.5,min:0,max:1,step:.01},chromaticAbb:{type:ControlType.Number,title:\"Chromatic Abb\",defaultValue:0,min:0,max:1,step:.01},momentum:{type:ControlType.Number,title:\"Momentum\",defaultValue:.5,min:0,max:1,step:.01},brightness:{type:ControlType.Number,title:\"Brightness\",defaultValue:1,min:.2,max:2,step:.01},structureBrightness:{type:ControlType.Number,title:\"Structure Brightness\",defaultValue:1,min:.2,max:2,step:.01},spotlightSize:{type:ControlType.Number,title:\"Spotlight Size\",defaultValue:80,min:20,max:300,step:1},spotlightShape:{type:ControlType.Enum,title:\"Spotlight Shape\",options:[\"circle\",\"square\",\"custom\"],optionTitles:[\"Circle\",\"Square\",\"Custom SVG\"],defaultValue:\"circle\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"House\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayout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