{"version":3,"file":"Card_Flip.DS_5ECwn.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/w6qnHsFKjSv58GjZh56x/4NibTdxR2XAtBSxWjWGS/Card_Flip.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{useState}from\"react\";// Spring animation parameters\nconst spring={type:\"spring\",stiffness:300,damping:40};export function withClick(Component){return props=>{const[isFlipped,setIsFlipped]=useState(false);const handleClick=()=>setIsFlipped(prev=>!prev);return /*#__PURE__*/_jsx(motion.div,{onClick:handleClick,transition:spring,style:{perspective:\"1200px\",width:props.width,height:props.height,cursor:\"pointer\",userSelect:\"none\"},role:\"button\",\"aria-pressed\":isFlipped,children:/*#__PURE__*/_jsxs(motion.div,{// Removed whileHover, mousemove tilt, and springs tied to cursor\ntransition:spring,style:{width:\"100%\",height:\"100%\",position:\"relative\",transformStyle:\"preserve-3d\",willChange:\"transform\"},children:[/*#__PURE__*/_jsx(motion.div,{animate:{rotateY:isFlipped?-180:0},transition:spring,style:{width:\"100%\",height:\"100%\",position:\"absolute\",inset:0,backfaceVisibility:\"hidden\",zIndex:isFlipped?0:1},children:/*#__PURE__*/_jsx(Component,{...props,variant:\"Front\",style:{width:\"100%\",height:\"100%\"}})}),/*#__PURE__*/_jsx(motion.div,{initial:{rotateY:180},animate:{rotateY:isFlipped?0:180},transition:spring,style:{width:\"100%\",height:\"100%\",position:\"absolute\",inset:0,backfaceVisibility:\"hidden\",zIndex:isFlipped?1:0},children:/*#__PURE__*/_jsx(Component,{...props,variant:\"Back\",style:{width:\"100%\",height:\"100%\"}})})]})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withClick\":{\"type\":\"reactHoc\",\"name\":\"withClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Card_Flip.map"],"mappings":"0KACsD,SAAgB,EAAU,EAAU,CAAC,MAAO,IAAO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