{"version":3,"file":"RotatingText.BiLDC3ZS.mjs","names":[],"sources":["https:/framerusercontent.com/modules/mSvRnSmITw7KcOAEh4GE/hXHaA5cgcy0xmzTuN8Cf/RotatingText.js"],"sourcesContent":["// Rotating circle text with customizable message, emoji, font, and colors\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * RotatingText\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */function RotatingText(props){const{text,emoji,font,textColor,circleSize,duration,style}=props;const isStatic=useIsStaticRenderer();const svgSize=300;const radius=100;const viewBox=`0 0 ${svgSize} ${svgSize}`;return /*#__PURE__*/_jsxs(\"div\",{style:{...style,position:\"relative\",width:circleSize,height:circleSize,display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:[/*#__PURE__*/_jsxs(motion.svg,{viewBox:viewBox,width:circleSize,height:circleSize,animate:isStatic?undefined:{rotate:360},transition:isStatic?undefined:{repeat:Infinity,duration,ease:\"linear\"},style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\"},children:[/*#__PURE__*/_jsx(\"defs\",{children:/*#__PURE__*/_jsx(\"path\",{id:\"circlePath\",d:`M ${svgSize/2}, ${svgSize/2} m -${radius}, 0 a ${radius},${radius} 0 1,1 ${radius*2},0 a ${radius},${radius} 0 1,1 -${radius*2},0`})}),/*#__PURE__*/_jsx(\"text\",{fill:textColor,fontSize:font.fontSize,fontWeight:font.variant,letterSpacing:font.letterSpacing,style:{fontFamily:font.fontFamily,lineHeight:font.lineHeight},children:/*#__PURE__*/_jsx(\"textPath\",{href:\"#circlePath\",startOffset:\"0\",textAnchor:\"middle\",children:text})})]}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:40,zIndex:1,position:\"absolute\",left:\"50%\",top:\"50%\",transform:\"translate(-50%, -50%)\"},children:emoji})]});}addPropertyControls(RotatingText,{text:{type:ControlType.String,defaultValue:\"✨ EXPLORE WORK • BEST WORK • EXPLORE WORK • BEST WORK • \",displayTextArea:false,title:\"Circle Text\"},emoji:{type:ControlType.String,title:\"Center Emoji\",defaultValue:\"🌟\",placeholder:\"Emoji\"},font:{type:ControlType.Font,defaultFontType:\"sans-serif\",controls:\"extended\",defaultValue:{fontSize:\"20px\",letterSpacing:\"5px\",lineHeight:\"1em\",variant:\"Bold\"},title:\"Text Font\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#C7A4FF\"},circleSize:{type:ControlType.Number,title:\"Size\",defaultValue:192,min:100,max:480,step:4,unit:\"px\"},duration:{type:ControlType.Number,title:\"Speed (s per loop)\",defaultValue:10,min:2,max:60,step:1}});export default RotatingText;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"RotatingText\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RotatingText.map"],"mappings":"4NAMG,SAAS,EAAa,EAAM,CAAC,GAAK,CAAC,OAAK,QAAM,OAAK,YAAU,aAAW,WAAS,SAAO,EAAY,EAAS,GAAqB,CAA8E,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,SAAS,WAAW,MAAM,EAAW,OAAO,EAAW,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,CAAC,SAAS,CAAc,EAAM,EAAO,IAAI,CAAS,sBAAQ,MAAM,EAAW,OAAO,EAAW,QAAQ,EAAS,IAAA,GAAU,CAAC,OAAO,IAAI,CAAC,WAAW,EAAS,IAAA,GAAU,CAAC,OAAO,IAAS,WAAS,KAAK,SAAS,CAAC,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,KAAK,EAAE,MAAM,OAAO,OAAO,OAAO,CAAC,SAAS,CAAc,EAAK,OAAO,CAAC,SAAsB,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