{"version":3,"file":"RotatingTextArc.CSyrmipM.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/4NPoFPQEhSNg2OoiApwj/ob6f5zVw0r8uyASOMKVq/KF85dqOX0.js","https:/framerusercontent.com/modules/vA6hPiE8ctLUwvc9RVq4/0w0lDwfqsARGtWv1KZhD/RotatingTextArc.js"],"sourcesContent":["// Generated by Framer (6ca5d98)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,useSVGTemplate,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask=\"var(--framer-icon-mask)\";const Base=/*#__PURE__*/forwardRef(function(props,ref){return /*#__PURE__*/_jsx(\"svg\",{...props,ref:ref,children:props.children});});const MotionSVG=motion.create(Base);const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(MotionSVG,{...rest,layoutId:layoutId,ref:ref,children:children}):/*#__PURE__*/_jsx(\"svg\",{...rest,ref:ref,children:children});});const svg='<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 0 4.875 C 0 2.183 2.183 0 4.875 0 C 7.567 0 9.75 2.183 9.75 4.875 C 9.75 7.567 7.567 9.75 4.875 9.75 C 2.183 9.75 0 7.567 0 4.875 Z\" fill-opacity=\"var(--1m6trwb, 0)\" fill=\"var(--21h8s6, rgb(0, 0, 0))\" height=\"9.75px\" id=\"tjlKcqq_S\" transform=\"translate(3 5.25)\" width=\"9.75px\"/><path d=\"M 0 3.752 C 1.522 1.412 4.124 0 6.916 0 C 9.708 0 12.31 1.412 13.832 3.752\" fill=\"transparent\" height=\"3.751966152184508px\" id=\"Y_D97Q52v\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--pgex8v, 1.5)\" stroke=\"var(--21h8s6, rgb(0, 0, 0))\" transform=\"translate(0.959 14.998)\" width=\"13.831875px\"/><path d=\"M 0 0 C 2.792 -0.002 5.394 1.41 6.916 3.75\" fill=\"transparent\" height=\"3.750001425001699px\" id=\"wf06kpyW8\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--pgex8v, 1.5)\" stroke=\"var(--21h8s6, rgb(0, 0, 0))\" transform=\"translate(16.125 15)\" width=\"6.915937499999984px\"/><path d=\"M 0 4.875 C 0 2.183 2.183 0 4.875 0 C 7.567 0 9.75 2.183 9.75 4.875 C 9.75 7.567 7.567 9.75 4.875 9.75 C 2.183 9.75 0 7.567 0 4.875 Z\" fill=\"transparent\" height=\"9.75px\" id=\"Wx0EkSCiK\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--pgex8v, 1.5)\" stroke=\"var(--21h8s6, rgb(0, 0, 0))\" transform=\"translate(3 5.25)\" width=\"9.75px\"/><path d=\"M 0 0.347 C 1.824 -0.38 3.906 0.057 5.282 1.457 C 6.659 2.858 7.061 4.947 6.303 6.758 C 5.545 8.569 3.774 9.748 1.81 9.75\" fill=\"transparent\" height=\"9.750149315941101px\" id=\"Eesqcmrby\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--pgex8v, 1.5)\" stroke=\"var(--21h8s6, rgb(0, 0, 0))\" transform=\"translate(14.315 5.25)\" width=\"6.681148882469131px\"/></svg>';const getProps=({alpha,color,height,id,width,width1,...props})=>{return{...props,ezTt3ayMo:color??props.ezTt3ayMo??\"rgb(0, 0, 0)\",lschgej4H:width1??props.lschgej4H??1.5,qxTvv_EBh:alpha??props.qxTvv_EBh};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,ezTt3ayMo,lschgej4H,qxTvv_EBh,...restProps}=getProps(props);const href=useSVGTemplate(\"2109778876\",svg);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-5yi3D\",className),layoutId:layoutId,ref:ref,role:\"presentation\",style:{\"--1m6trwb\":qxTvv_EBh,\"--21h8s6\":ezTt3ayMo,\"--pgex8v\":lschgej4H,...style},viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"use\",{href:href})});});const css=[`.framer-5yi3D { -webkit-mask: ${mask}; aspect-ratio: 1; display: block; mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"ezTt3ayMo\":\"color\",\"lschgej4H\":\"width1\",\"qxTvv_EBh\":\"alpha\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Users\",\"color\":{\"type\":\"variable\",\"value\":\"21h8s6\"},\"set\":{\"localId\":\"vectorSet/NGVKdicsm\",\"id\":\"NGVKdicsm\",\"moduleId\":\"omX0gWFPqDwhaiWwf6ab\"}}\n * @framerDisableUnlink true\n */const Icon=withCSS(Component,css,\"framer-5yi3D\");Icon.displayName=\"Users\";export default Icon;addPropertyControls(Icon,{ezTt3ayMo:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Color\",type:ControlType.Color},lschgej4H:{defaultValue:1.5,displayStepper:true,hidden:false,max:6,min:0,step:.5,title:\"Width\",type:ControlType.Number},qxTvv_EBh:{defaultValue:0,displayStepper:true,hidden:false,max:1,min:0,step:.1,title:\"Alpha\",type:ControlType.Number}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerVector\":\"{\\\"name\\\":\\\"Users\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"21h8s6\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/NGVKdicsm\\\",\\\"id\\\":\\\"NGVKdicsm\\\",\\\"moduleId\\\":\\\"omX0gWFPqDwhaiWwf6ab\\\"}}\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"24\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerImmutableVariables\":\"true\",\"framerIntrinsicWidth\":\"24\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerDisableUnlink\":\"true\",\"framerVariables\":\"{\\\"ezTt3ayMo\\\":\\\"color\\\",\\\"lschgej4H\\\":\\\"width1\\\",\\\"qxTvv_EBh\\\":\\\"alpha\\\"}\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Rotating text arc component with customizable text, rotation, radius, and styling options\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useRef,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion,useAnimationFrame}from\"framer-motion\";/**\n * Rotating Text Arc\n *\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 400\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function RotatingTextArc(props){const{text=\"ROTATING TEXT ARC • FRAMER COMPONENT • \",radius=150,fontSize=20,letterSpacing=0,rotationSpeed=20,direction=\"clockwise\",startAngle=0,textColor=\"#000000\",backgroundColor=\"#FFFFFF\",showCircle=true,circleColor=\"#EEEEEE\",circleWidth=2,font,style}=props;const[rotation,setRotation]=useState(startAngle);const isStatic=useIsStaticRenderer();const containerRef=useRef(null);useAnimationFrame((time,delta)=>{if(isStatic||rotationSpeed===0)return;const speed=direction===\"clockwise\"?rotationSpeed:-rotationSpeed;const increment=speed*delta/1e3;startTransition(()=>{setRotation(prev=>(prev+increment)%360);});});const characters=text.split(\"\");const angleStep=360/characters.length;const adjustedRadius=radius-fontSize/2;return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",backgroundColor,overflow:\"hidden\"},children:[showCircle&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",width:radius*2,height:radius*2,borderRadius:\"50%\",border:`${circleWidth}px solid ${circleColor}`,pointerEvents:\"none\"}}),/*#__PURE__*/_jsx(motion.div,{style:{position:\"relative\",width:radius*2,height:radius*2,rotate:rotation},children:characters.map((char,index)=>{const angle=angleStep*index;const radian=angle*Math.PI/180;const x=adjustedRadius*Math.cos(radian);const y=adjustedRadius*Math.sin(radian);return /*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",left:\"50%\",top:\"50%\",transform:`translate(-50%, -50%) translate(${x}px, ${y}px) rotate(${angle+90}deg)`,color:textColor,fontSize:`${fontSize}px`,letterSpacing:`${letterSpacing}px`,transformOrigin:\"center\",whiteSpace:\"nowrap\",userSelect:\"none\",...font},children:char},index);})})]});}addPropertyControls(RotatingTextArc,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"ROTATING TEXT ARC • FRAMER COMPONENT • \"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:150,min:50,max:500,step:10,unit:\"px\"},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:20,min:8,max:72,step:1,unit:\"px\"},letterSpacing:{type:ControlType.Number,title:\"Letter Spacing\",defaultValue:0,min:-5,max:20,step:.5,unit:\"px\"},rotationSpeed:{type:ControlType.Number,title:\"Speed\",defaultValue:20,min:0,max:100,step:1,unit:\"\\xb0/s\"},direction:{type:ControlType.Enum,title:\"Direction\",options:[\"clockwise\",\"counterclockwise\"],optionTitles:[\"Clockwise\",\"Counter-clockwise\"],defaultValue:\"clockwise\",displaySegmentedControl:true},startAngle:{type:ControlType.Number,title:\"Start Angle\",defaultValue:0,min:0,max:360,step:1,unit:\"\\xb0\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},showCircle:{type:ControlType.Boolean,title:\"Show Circle\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},circleColor:{type:ControlType.Color,title:\"Circle Color\",defaultValue:\"#EEEEEE\",hidden:({showCircle})=>!showCircle},circleWidth:{type:ControlType.Number,title:\"Circle Width\",defaultValue:2,min:1,max:10,step:1,unit:\"px\",hidden:({showCircle})=>!showCircle},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{variant:\"Semibold\",fontSize:\"20px\",letterSpacing:\"0px\",lineHeight:\"1em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"RotatingTextArc\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicWidth\":\"400\",\"framerIntrinsicHeight\":\"400\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RotatingTextArc.map"],"mappings":"0TAC2C,IAAqF,IAA4B,CAAoC,EAAK,0BAAgC,EAAkB,EAAW,SAAS,EAAM,EAAI,CAAC,OAAoB,EAAK,MAAM,CAAC,GAAG,EAAU,MAAI,SAAS,EAAM,SAAS,CAAC,EAAG,CAAO,EAAU,EAAO,OAAO,EAAK,CAAO,EAAiB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAG,GAAM,EAAM,OAAO,EAAsB,EAAK,EAAU,CAAC,GAAG,EAAc,WAAa,MAAa,WAAS,CAAC,CAAc,EAAK,MAAM,CAAC,GAAG,EAAS,MAAa,WAAS,CAAC,EAAG,CAAO,EAAI,oyDAA0yD,GAAU,CAAC,QAAM,QAAM,SAAO,KAAG,QAAM,SAAO,GAAG,MAAgB,CAAC,GAAG,EAAM,UAAU,GAAO,EAAM,WAAW,eAAe,UAAU,GAAQ,EAAM,WAAW,IAAI,UAAU,GAAO,EAAM,UAAU,EAU1nF,EAAK,EAVqpF,EAAiB,SAAS,EAAM,EAAI,CAAC,GAAK,CAAC,QAAM,YAAU,W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