{"version":3,"file":"Skeleton._DpP9_o4.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/VjiFxIJfZqxmyRYOY5aD/mVl4kVRqHgIzY63eJT96/Skeleton.js"],"sourcesContent":["// Animated skeleton component with customizable appearance and animation\nimport{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function Skeleton(props){const{variant,backgroundColor,highlightColor,animationType,animationSpeed,borderRadius,style}=props;const getVariantStyles=()=>{switch(variant){case\"circular\":return{borderRadius:\"50%\",width:\"100%\",height:\"100%\",aspectRatio:\"1\"};case\"text\":return{borderRadius:4,width:\"100%\",height:\"100%\"};case\"rectangular\":default:return{borderRadius:borderRadius,width:\"100%\",height:\"100%\"};}};const variantStyles=getVariantStyles();const getAnimationContent=()=>{switch(animationType){case\"pulse\":return /*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",top:0,left:0,right:0,bottom:0,backgroundColor:highlightColor},animate:{opacity:[0,.5,0]},transition:{duration:animationSpeed,repeat:Infinity,ease:\"easeInOut\"}});case\"wave\":return /*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",top:0,left:0,right:0,bottom:0,background:`linear-gradient(90deg, ${backgroundColor}, ${highlightColor}, ${backgroundColor})`,transform:\"translateX(-100%)\"},animate:{transform:[\"translateX(-100%)\",\"translateX(100%)\"]},transition:{duration:animationSpeed,repeat:Infinity,ease:[.4,0,.2,1]}})});case\"fade\":return /*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",top:0,left:0,right:0,bottom:0,backgroundColor:highlightColor},animate:{opacity:[.3,.8,.3]},transition:{duration:animationSpeed,repeat:Infinity,ease:\"easeInOut\"}});case\"shimmer\":default:return /*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",top:0,left:0,right:0,bottom:0,background:`linear-gradient(90deg, transparent, ${highlightColor}, transparent)`,transform:\"translateX(-100%)\"},animate:{transform:[\"translateX(-100%)\",\"translateX(100%)\"]},transition:{duration:animationSpeed,repeat:Infinity,ease:\"linear\"}});}};return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",overflow:\"hidden\",backgroundColor,...variantStyles},children:getAnimationContent()});}addPropertyControls(Skeleton,{variant:{type:ControlType.Enum,title:\"Variant\",options:[\"text\",\"circular\",\"rectangular\"],optionTitles:[\"Text\",\"Circular\",\"Rectangular\"],defaultValue:\"rectangular\"},animationType:{type:ControlType.Enum,title:\"Animation\",options:[\"shimmer\",\"pulse\",\"wave\",\"fade\"],optionTitles:[\"Shimmer\",\"Pulse\",\"Wave\",\"Fade\"],defaultValue:\"shimmer\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#111111\"},highlightColor:{type:ControlType.Color,title:\"Highlight\",defaultValue:\"#333333\"},animationSpeed:{type:ControlType.Number,title:\"Speed\",defaultValue:1.5,min:.5,max:5,step:.1,unit:\"s\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:50,step:1,unit:\"px\",hidden:({variant})=>variant===\"circular\"||variant===\"text\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Skeleton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Skeleton.map"],"mappings":"qNAIG,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,UAAQ,kBAAgB,iBAAe,gBAAc,iBAAe,eAAa,SAAO,EAAoS,OAAnQ,CAAC,OAAO,EAAP,CAAgB,IAAI,WAAW,MAAM,CAAC,aAAa,MAAM,MAAM,OAAO,OAAO,OAAO,YAAY,GAAG,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