{"version":3,"file":"FormSuccess.CihoFLNQ.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/zJdpj6rmD2Xt7fMoYN1N/4VW6dqOEv6vYyhQScIsM/FormSuccess.js"],"sourcesContent":["// Visual reward animation component for form completion with Spanish message\n// Displays animated success message with confetti and smooth transitions\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion,useAnimation}from\"framer-motion\";import{useEffect,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function FormSuccess(props){const{message,subtitle,backgroundColor,cardColor,accentColor,textColor,subtitleColor,showConfetti,messageFont,subtitleFont}=props;const[confetti,setConfetti]=useState([]);const controls=useAnimation();const isStatic=useIsStaticRenderer();useEffect(()=>{if(isStatic||!showConfetti)return;const colors=[accentColor,\"#FFD700\",\"#FF6B9D\",\"#4ECDC4\",\"#95E1D3\"];const particles=Array.from({length:50},(_,i)=>({id:i,x:Math.random()*100,y:-10,rotation:Math.random()*360,color:colors[Math.floor(Math.random()*colors.length)],size:Math.random()*8+4,delay:Math.random()*.5}));startTransition(()=>setConfetti(particles));controls.start({scale:[.8,1.05,1],opacity:[0,1],transition:{duration:.6,ease:\"easeOut\"}});},[accentColor,controls,isStatic,showConfetti]);if(isStatic){return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",backgroundColor,overflow:\"hidden\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{background:\"linear-gradient(135deg, #E8E8E8 0%, #FFFFFF 25%, #D0D0D0 50%, #FFFFFF 75%, #C0C0C0 100%)\",borderRadius:24,padding:\"48px 40px\",boxShadow:\"0 20px 60px rgba(0,0,0,0.15)\",textAlign:\"center\",maxWidth:\"90%\",position:\"relative\",overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:80,height:80,borderRadius:\"50%\",backgroundColor:accentColor,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",margin:\"0 auto 24px\"},children:/*#__PURE__*/_jsx(\"svg\",{width:\"40\",height:\"40\",viewBox:\"0 0 24 24\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M20 6L9 17L4 12\",stroke:\"white\",strokeWidth:\"3\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})}),/*#__PURE__*/_jsx(\"h1\",{style:{margin:\"0 0 12px 0\",color:textColor,...messageFont},children:message}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:subtitleColor,...subtitleFont},children:subtitle})]})});}return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",backgroundColor,overflow:\"hidden\",position:\"relative\"},children:[showConfetti&&confetti.map(particle=>/*#__PURE__*/_jsx(motion.div,{initial:{x:`${particle.x}%`,y:\"-10%\",rotate:0,opacity:1},animate:{y:\"110%\",rotate:particle.rotation+720,opacity:[1,1,0]},transition:{duration:3+Math.random()*2,delay:particle.delay,ease:\"easeIn\"},style:{position:\"absolute\",width:particle.size,height:particle.size,backgroundColor:particle.color,borderRadius:Math.random()>.5?\"50%\":\"2px\"}},particle.id)),/*#__PURE__*/_jsxs(motion.div,{animate:controls,style:{background:\"linear-gradient(135deg, #E8E8E8 0%, #FFFFFF 25%, #D0D0D0 50%, #FFFFFF 75%, #C0C0C0 100%)\",borderRadius:24,padding:\"48px 40px\",boxShadow:\"0 20px 60px rgba(0,0,0,0.15)\",textAlign:\"center\",maxWidth:\"90%\",position:\"relative\",zIndex:1,overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(motion.div,{animate:{x:[\"-200%\",\"200%\"]},transition:{duration:3,repeat:Infinity,ease:\"linear\",repeatDelay:1},style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",background:\"linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%)\",pointerEvents:\"none\"}}),/*#__PURE__*/_jsx(motion.div,{initial:{scale:0,rotate:-180},animate:{scale:1,rotate:0},transition:{type:\"spring\",stiffness:200,damping:15,delay:.2},style:{width:80,height:80,borderRadius:\"50%\",backgroundColor:accentColor,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",margin:\"0 auto 24px\"},children:/*#__PURE__*/_jsx(motion.svg,{width:\"40\",height:\"40\",viewBox:\"0 0 24 24\",fill:\"none\",initial:{pathLength:0},animate:{pathLength:1},transition:{duration:.5,delay:.5},children:/*#__PURE__*/_jsx(motion.path,{d:\"M20 6L9 17L4 12\",stroke:\"white\",strokeWidth:\"3\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})}),/*#__PURE__*/_jsx(motion.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4,duration:.5},style:{margin:\"0 0 12px 0\",color:textColor,...messageFont},children:message}),/*#__PURE__*/_jsx(motion.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6,duration:.5},style:{margin:0,color:subtitleColor,...subtitleFont},children:subtitle})]})]});}addPropertyControls(FormSuccess,{message:{type:ControlType.String,title:\"Message\",defaultValue:\"\\xa1Gracias!\"},subtitle:{type:ControlType.String,title:\"Subtitle\",defaultValue:\"Recibimos tus datos correctamente.\",displayTextArea:true},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#F5F5F5\"},cardColor:{type:ControlType.Color,title:\"Card Color\",defaultValue:\"#FFFFFF\"},accentColor:{type:ControlType.Color,title:\"Accent Color\",defaultValue:\"#22CC66\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},subtitleColor:{type:ControlType.Color,title:\"Subtitle Color\",defaultValue:\"#666666\"},showConfetti:{type:ControlType.Boolean,title:\"Show Confetti\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},messageFont:{type:ControlType.Font,title:\"Message Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"40px\",variant:\"Bold\",letterSpacing:\"-0.04em\",lineHeight:\"1em\"}},subtitleFont:{type:ControlType.Font,title:\"Subtitle 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\":\"FormSuccess\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormSuccess.map"],"mappings":"+PAKG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,UAAQ,WAAS,kBAAgB,YAAU,cAAY,YAAU,gBAAc,eAAa,cAAY,gBAAc,EAAW,CAAC,EAAS,GAAaA,EAAS,EAAE,CAAC,CAAO,EAAS,GAAc,CAAO,EAAS,GAAqB,CAA0jD,OAAzjD,MAAc,CAAC,GAAG,GAAU,CAAC,EAAa,OAAO,IAAM,EAAO,CAAC,EAAY,UAAU,UAAU,UAAU,UAAU,CAAO,EAAU,MAAM,KAAK,CAAC,OAAO,GAAG,EAAE,EAAE,KAAK,CAAC,GAAG,EAAE,EAAE,KAAK,QAAQ,CAAC,IAAI,EAAE,IAAI,SAAS,KAAK,QAAQ,CAAC,IAAI,MAAM,EAAO,KAAK,MAAM,KAAK,QAAQ,CAAC,EAAO,OAAO,EAAE,KAAK,KAAK,QAAQ,CAAC,EAAE,EAAE,MAAM,KAAK,QAAQ,CAAC,GAAG,EAAE,CAAC,MAAoB,EAAY,EAAU,CAAC,CAAC,EAAS,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,SAAS,GAAG,KAAK,UAAU,CAAC,CAAC,EAAG,CAAC,EAAY,EAAS,E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