{"version":3,"file":"ShinyEffect.m_2Who6u.mjs","names":[],"sources":["https:/framerusercontent.com/modules/xK2Y2luI2L7FoRiSnKhK/OV7BkPHh9Mb7RYmDKmUE/ShinyEffect.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";ShinyEffect.displayName=\"Shiny Effect\";const emptyStateContent={title:\"Set Up the Component\",description:\"Connect a frame to the component.\"};/**\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth any-prefer-auto\n * @framerIntrinsicWidth 600\n * @framerSupportedLayoutHeight any-prefer-auto\n * @framerIntrinsicHeight 300\n */export default function ShinyEffect(props){const{glowColor,duration,interval,size,blur,shineRotation,cornerRadius,shadowOptions:{showShadow,shadowColor,shadowX,shadowY,shadowBlur,shadowSpread},style,children,fillOptions:{withFill,widthFill,heightFill}}=props;// Handle empty state - check for various empty conditions\nif(!children||React.Children.count(children)===0||/*#__PURE__*/React.isValidElement(children)&&!children.props){return /*#__PURE__*/_jsxs(\"div\",{style:{padding:\"48px 24px\",background:\"rgba(123, 97, 255, 0.2)\",borderRadius:\"24px\",border:\"1.6px solid #7B61FF\",minWidth:\"200px\",minHeight:\"150px\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:\"12px\",color:\"#7B61FF\",textAlign:\"center\",width:withFill&&widthFill===\"fill\"?\"100%\":\"auto\",height:withFill&&heightFill===\"fill\"?\"100%\":\"auto\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"24px\",marginBottom:\"8px\"},children:\"✨\"}),/*#__PURE__*/_jsx(\"h3\",{style:{margin:0,fontSize:\"20px\",fontWeight:\"500\",color:\"#7B61FF\"},children:emptyStateContent.title}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:\"16px\",color:\"rgba(123, 97, 255, 0.8)\",fontWeight:\"400\"},children:emptyStateContent.description})]});}// Create style object for fill options\nconst fillStyle={width:withFill&&widthFill===\"fill\"?\"100%\":\"auto\",height:withFill&&heightFill===\"fill\"?\"100%\":\"auto\"};// Clone children with combined styles\nconst clonedChildren=React.Children.map(children,child=>{if(!/*#__PURE__*/React.isValidElement(child))return child;return /*#__PURE__*/React.cloneElement(child,{style:{...child.props.style,...fillStyle}});});const shine={x:[\"-100%\",\"100%\"],transition:{duration,repeat:Infinity,repeatDelay:interval,ease:\"easeInOut\"}};const boxShadow=showShadow?`${shadowX}px ${shadowY}px ${shadowBlur}px ${shadowSpread}px ${shadowColor}`:\"none\";return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",borderRadius:cornerRadius,boxShadow,...fillStyle},children:/*#__PURE__*/_jsxs(motion.div,{style:{...style,position:\"relative\",overflow:\"hidden\",borderRadius:cornerRadius,WebkitTapHighlightColor:\"transparent\",width:\"100%\",height:\"100%\"},children:[clonedChildren,/*#__PURE__*/_jsx(motion.div,{animate:shine,style:{position:\"absolute\",top:0,left:0,right:0,bottom:0,background:`linear-gradient(${shineRotation}deg, \n                            transparent 0%, \n                            transparent 40%, \n                            ${glowColor} 50%, \n                            transparent 60%, \n                            transparent 100%)`,width:`${size}%`,filter:`blur(${blur}px)`,borderRadius:cornerRadius,pointerEvents:\"none\"}})]})});}// Keep the same defaultProps and propertyControls\nShinyEffect.defaultProps={glowColor:\"rgba(255, 255, 255, 0.8)\",duration:1.5,interval:.5,size:200,blur:8,shineRotation:90,cornerRadius:8,shadowOptions:{showShadow:false,shadowColor:\"rgba(0,0,0,0.2)\",shadowX:0,shadowY:4,shadowBlur:8,shadowSpread:0},fillOptions:{withFill:false,widthFill:\"auto\",heightFill:\"auto\"}};addPropertyControls(ShinyEffect,{children:{type:ControlType.ComponentInstance,title:\"Target\"},glowColor:{type:ControlType.Color,title:\"Glow Color\"},duration:{type:ControlType.Number,title:\"Duration\",min:.1,max:10,step:.1,displayStepper:true},interval:{type:ControlType.Number,title:\"Interval\",min:0,max:10,step:.1,displayStepper:true},size:{type:ControlType.Number,title:\"Size\",min:100,max:300,step:10,displayStepper:true},blur:{type:ControlType.Number,title:\"Blur\",min:0,max:50,step:1,displayStepper:true},shineRotation:{type:ControlType.Number,title:\"Shine Rotation\",min:0,max:360,step:15,displayStepper:true},cornerRadius:{type:ControlType.Number,title:\"Corner Radius\",min:0,max:100,step:1,displayStepper:true},shadowOptions:{type:ControlType.Object,title:\"Shadow\",controls:{showShadow:{title:\"Enable\",type:ControlType.Boolean,defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"},shadowColor:{type:ControlType.Color,title:\"Color\",hidden:({showShadow})=>!showShadow},shadowX:{type:ControlType.Number,title:\"X\",min:-50,max:50,step:1,displayStepper:true,hidden:({showShadow})=>!showShadow},shadowY:{type:ControlType.Number,title:\"Y\",min:-50,max:50,step:1,displayStepper:true,hidden:({showShadow})=>!showShadow},shadowBlur:{type:ControlType.Number,title:\"Blur\",min:0,max:100,step:1,displayStepper:true,hidden:({showShadow})=>!showShadow},shadowSpread:{type:ControlType.Number,title:\"Spread\",min:-50,max:50,step:1,displayStepper:true,hidden:({showShadow})=>!showShadow}}},fillOptions:{type:ControlType.Object,title:\"Fill\",description:\"Responsive Fill Options \\n\\nBy [Andr\\xe9s Marciales](https://www.x.com/aamarciales)\",controls:{withFill:{title:\"Enable\",type:ControlType.Boolean,defaultValue:false},widthFill:{type:ControlType.Enum,title:\"Width\",options:[\"auto\",\"fill\"],defaultValue:\"auto\",hidden:props=>!props.withFill},heightFill:{type:ControlType.Enum,title:\"Height\",options:[\"auto\",\"fill\"],defaultValue:\"auto\",hidden:props=>!props.withFill}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ShinyEffect\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"600\",\"framerSupportedLayoutHeight\":\"any-prefer-auto\",\"framerIntrinsicHeight\":\"300\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"* @framerSupportedLayoutWidth any-prefer-auto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