{"version":3,"file":"ProblemSolverCard.DLcJ3VTZ.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/Pw2bywv6ufeud1dtVajP/3pGH5szChhzUq8l1ttCr/ProblemSolverCard.js"],"sourcesContent":["// Card with animated entrance for 4–6 Weeks\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer,RenderTarget}from\"framer\";import{motion,useAnimation,useInView}from\"framer-motion\";/**\n * Animated Card: 4–6 Weeks\n *\n * @framerIntrinsicWidth 360\n * @framerIntrinsicHeight 220\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ProblemSolverCard(props){const{label,headline,description,background,textColor,accentColor,borderRadius,shadow,headingFont,labelFont,descriptionFont,descriptionColor,showBorder,borderColor,borderWidth,style}=props;const ref=useRef(null);const isStatic=useIsStaticRenderer();const isInView=useInView(ref,{once:true,margin:\"-20% 0px\"});const controls=useAnimation();const[hasAnimated,setHasAnimated]=useState(false);useEffect(()=>{if(isStatic||RenderTarget.current()===RenderTarget.thumbnail)return;if(isInView&&!hasAnimated){controls.start(\"visible\");startTransition(()=>setHasAnimated(true));}},[isInView,isStatic,hasAnimated,controls]);const cardVariants={hidden:{opacity:0,y:40,scale:.98},visible:{opacity:1,y:0,scale:1,transition:{type:\"spring\",stiffness:60,damping:16,duration:.7}}};const accentVariants={hidden:{width:0},visible:{width:48,transition:{delay:.2,duration:.5,type:\"tween\"}}};const headingVariants={hidden:{opacity:0,x:24},visible:{opacity:1,x:0,transition:{delay:.3,duration:.5}}};const descVariants={hidden:{opacity:0,y:16},visible:{opacity:1,y:0,transition:{delay:.5,duration:.5}}};const staticPreview=/*#__PURE__*/_jsxs(\"div\",{style:{...style,background,color:textColor,borderRadius,boxShadow:shadow?\"0 4px 24px rgba(0,0,0,0.10)\":\"none\",padding:32,minWidth:260,minHeight:180,display:\"flex\",flexDirection:\"column\",gap:18,position:\"relative\",overflow:\"hidden\",border:showBorder?`${borderWidth}px solid ${borderColor}`:\"none\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:12},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:48,height:6,borderRadius:3,background:accentColor}}),/*#__PURE__*/_jsx(\"span\",{style:{...labelFont,color:accentColor},children:label})]}),/*#__PURE__*/_jsx(\"div\",{style:{...headingFont,color:textColor},children:headline}),/*#__PURE__*/_jsx(\"div\",{style:{...descriptionFont,color:descriptionColor},children:description})]});if(isStatic||RenderTarget.current()===RenderTarget.thumbnail)return staticPreview;return /*#__PURE__*/_jsxs(motion.div,{ref:ref,style:{...style,background,color:textColor,borderRadius,boxShadow:shadow?\"0 4px 24px rgba(0,0,0,0.10)\":\"none\",padding:32,minWidth:260,minHeight:180,display:\"flex\",flexDirection:\"column\",gap:18,position:\"relative\",overflow:\"hidden\",border:showBorder?`${borderWidth}px solid ${borderColor}`:\"none\"},initial:\"hidden\",animate:controls,variants:cardVariants,\"aria-label\":\"Card\",children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:12},children:[/*#__PURE__*/_jsx(motion.div,{variants:accentVariants,initial:\"hidden\",animate:controls,style:{height:6,borderRadius:3,background:accentColor}}),/*#__PURE__*/_jsx(\"span\",{style:{...labelFont,color:accentColor},children:label})]}),/*#__PURE__*/_jsx(motion.div,{variants:headingVariants,initial:\"hidden\",animate:controls,style:{...headingFont,color:textColor},children:headline}),/*#__PURE__*/_jsx(motion.div,{variants:descVariants,initial:\"hidden\",animate:controls,style:{...descriptionFont,color:descriptionColor},children:description})]});}addPropertyControls(ProblemSolverCard,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"4–6 Weeks\"},headline:{type:ControlType.String,title:\"Headline\",defaultValue:\"Fast. Focused. Final.\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"Solve one high-impact problem in under 45 days.\",displayTextArea:true},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},descriptionColor:{type:ControlType.Color,title:\"Description Color\",defaultValue:\"#555555\"},accentColor:{type:ControlType.Color,title:\"Accent Color\",defaultValue:\"#0099FF\"},showBorder:{type:ControlType.Boolean,title:\"Border\",defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#DDDDDD\",hidden:({showBorder})=>!showBorder},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:1,min:1,max:10,step:1,hidden:({showBorder})=>!showBorder},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:16,min:0,max:48},shadow:{type:ControlType.Boolean,title:\"Shadow\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},labelFont:{type:ControlType.Font,title:\"Label Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Semibold\",letterSpacing:\"0.01em\",lineHeight:\"1em\"}},headingFont:{type:ControlType.Font,title:\"Heading Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"32px\",variant:\"Bold\",letterSpacing:\"-0.03em\",lineHeight:\"1em\"}},descriptionFont:{type:ControlType.Font,title:\"Description Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProblemSolverCard\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"220\",\"framerIntrinsicWidth\":\"360\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}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