{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/GXka57fG1JSgm6QJ5b94/07mo6HsI1Er4zTZULvQS/IconWheel.js"],
  "sourcesContent": ["// Rotating icon wheel with up to 10 configurable images, central heading and text, responsive to heading size, no shadow, adjustable font colors and rotation speed\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * Rotating Icon Wheel (Responsive)\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function IconWheel(props){const{images=Array(10).fill({src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Icon\"}),heading=\"Heading\",text=\"Description text goes here.\",headingFont,textFont,headingColor,textColor,background,iconSize,wheelRadius,rotateSpeed,style}=props;const isStatic=useIsStaticRenderer();const[angle,setAngle]=useState(0);const icons=images.filter(img=>img&&img.src);const iconCount=icons.length>0?icons.length:1;// Responsive: measure center box\nconst centerRef=useRef(null);const[centerBox,setCenterBox]=useState({width:0,height:0});useEffect(()=>{if(!centerRef.current)return;const box=centerRef.current.getBoundingClientRect();startTransition(()=>setCenterBox({width:box.width,height:box.height}));},[heading,text,headingFont,textFont]);// Responsive wheel radius: fit icons around the center box\nconst minMargin=32;const dynamicRadius=Math.max(wheelRadius,Math.max(centerBox.width,centerBox.height)/2+iconSize/2+minMargin);const wheelDiameter=dynamicRadius*2+iconSize;useEffect(()=>{if(isStatic)return;let frame;function animate(){startTransition(()=>setAngle(a=>(a+rotateSpeed)%360));frame=requestAnimationFrame(animate);}frame=requestAnimationFrame(animate);return()=>cancelAnimationFrame(frame);},[isStatic,rotateSpeed]);return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"110vh\",minHeight:0,minWidth:0,position:\"relative\",background,overflow:\"hidden\",...style},children:[/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",left:\"50%\",top:\"50%\",width:wheelDiameter,height:wheelDiameter,transform:\"translate(-50%, -50%)\",pointerEvents:\"none\"},children:[/*#__PURE__*/_jsx(\"svg\",{width:wheelDiameter,height:wheelDiameter,style:{position:\"absolute\",left:0,top:0,pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"circle\",{cx:wheelDiameter/2,cy:wheelDiameter/2,r:dynamicRadius,fill:\"none\",stroke:\"#EEEEEE\",strokeWidth:4})}),icons.map((img,i)=>{const theta=(360/iconCount*i+angle)*(Math.PI/180);const x=dynamicRadius*Math.cos(theta)+wheelDiameter/2-iconSize/2;const y=dynamicRadius*Math.sin(theta)+wheelDiameter/2-iconSize/2;return /*#__PURE__*/_jsx(\"img\",{src:img.src,alt:img.alt||`Icon ${i+1}`,style:{position:\"absolute\",left:x,top:y,width:iconSize,height:iconSize,borderRadius:\"50%\",background:\"#fff\",objectFit:\"cover\",pointerEvents:\"auto\"}},i);})]}),/*#__PURE__*/_jsxs(\"div\",{ref:centerRef,style:{position:\"absolute\",left:\"50%\",top:\"50%\",transform:\"translate(-50%, -50%)\",zIndex:2,display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",borderRadius:24,padding:32,minWidth:120,boxShadow:\"none\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{...headingFont,color:headingColor,textAlign:\"center\",marginBottom:12},children:heading}),/*#__PURE__*/_jsx(\"span\",{style:{...textFont,color:textColor,textAlign:\"center\"},children:text})]})]});}addPropertyControls(IconWheel,{images:{type:ControlType.Array,title:\"Icons\",control:{type:ControlType.ResponsiveImage},maxCount:10,defaultValue:[{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Icon 1\"},{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Icon 2\"},{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Icon 3\"},{src:\"https://framerusercontent.com/images/2uTNEj5aTl2K3NJaEFWMbnrA.jpg\",alt:\"Icon 4\"},{src:\"https://framerusercontent.com/images/f9RiWoNpmlCMqVRIHz8l8wYfeI.jpg\",alt:\"Icon 5\"},{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Icon 6\"},{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Icon 7\"},{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Icon 8\"},{src:\"https://framerusercontent.com/images/2uTNEj5aTl2K3NJaEFWMbnrA.jpg\",alt:\"Icon 9\"},{src:\"https://framerusercontent.com/images/f9RiWoNpmlCMqVRIHz8l8wYfeI.jpg\",alt:\"Icon 10\"}]},heading:{type:ControlType.String,title:\"Heading\",defaultValue:\"Heading\"},text:{type:ControlType.String,title:\"Text\",defaultValue:\"Description text goes here.\",displayTextArea:true},headingFont:{type:ControlType.Font,title:\"Heading Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"40px\",variant:\"Bold\",letterSpacing:\"-0.04em\",lineHeight:\"1em\"}},headingColor:{type:ControlType.Color,title:\"Heading Color\",defaultValue:\"#000000\"},textFont:{type:ControlType.Font,title:\"Text Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},iconSize:{type:ControlType.Number,title:\"Icon Size\",defaultValue:80,min:24,max:200,unit:\"px\"},wheelRadius:{type:ControlType.Number,title:\"Wheel Radius\",defaultValue:260,min:80,max:600,unit:\"px\"},rotateSpeed:{type:ControlType.Number,title:\"Rotate Speed\",defaultValue:.3,min:.01,max:5,step:.01}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"IconWheel\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./IconWheel.map"],
  "mappings": "mIAMkB,SAARA,EAA2BC,EAAM,CAAC,GAAK,CAAC,OAAAC,EAAO,MAAM,EAAE,EAAE,KAAK,CAAC,IAAI,sEAAsE,IAAI,MAAM,CAAC,EAAE,QAAAC,EAAQ,UAAU,KAAAC,EAAK,8BAA8B,YAAAC,EAAY,SAAAC,EAAS,aAAAC,EAAa,UAAAC,EAAU,WAAAC,EAAW,SAAAC,EAAS,YAAAC,EAAY,YAAAC,EAAY,MAAAC,CAAK,EAAEZ,EAAYa,EAASC,EAAoB,EAAO,CAACC,EAAMC,CAAQ,EAAEC,EAAS,CAAC,EAAQC,EAAMjB,EAAO,OAAOkB,GAAKA,GAAKA,EAAI,GAAG,EAAQC,EAAUF,EAAM,OAAO,EAAEA,EAAM,OAAO,EACpdG,EAAUC,EAAO,IAAI,EAAO,CAACC,EAAUC,CAAY,EAAEP,EAAS,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAEQ,EAAU,IAAI,CAAC,GAAG,CAACJ,EAAU,QAAQ,OAAO,IAAMK,EAAIL,EAAU,QAAQ,sBAAsB,EAAEM,EAAgB,IAAIH,EAAa,CAAC,MAAME,EAAI,MAAM,OAAOA,EAAI,MAAM,CAAC,CAAC,CAAE,EAAE,CAACxB,EAAQC,EAAKC,EAAYC,CAAQ,CAAC,EACjR,IAAMuB,EAAc,KAAK,IAAIlB,EAAY,KAAK,IAAIa,EAAU,MAAMA,EAAU,MAAM,EAAE,EAAEd,EAAS,EAAlG,EAA6G,EAAQoB,EAAcD,EAAc,EAAEnB,EAAS,OAAAgB,EAAU,IAAI,CAAC,GAAGZ,EAAS,OAAO,IAAIiB,EAA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KAAK,MAAM,eAAe,SAAS,WAAW,gBAAgB,aAAa,aAAa,CAAC,SAAS,OAAO,QAAQ,OAAO,cAAc,UAAU,WAAW,KAAK,CAAC,EAAE,aAAa,CAAC,KAAKA,EAAY,MAAM,MAAM,gBAAgB,aAAa,SAAS,EAAE,SAAS,CAAC,KAAKA,EAAY,KAAK,MAAM,YAAY,SAAS,WAAW,gBAAgB,aAAa,aAAa,CAAC,SAAS,OAAO,QAAQ,SAAS,cAAc,UAAU,WAAW,OAAO,CAAC,EAAE,UAAU,CAAC,KAAKA,EAAY,MAAM,MAAM,aAAa,aAAa,SAAS,EAAE,WAAW,CAAC,KAAKA,EAAY,MAAM,MAAM,aAAa,aAAa,SAAS,EAAE,SAAS,CAAC,KAAKA,EAAY,OAAO,MAAM,YAAY,aAAa,GAAG,IAAI,GAAG,IAAI,IAAI,KAAK,IAAI,EAAE,YAAY,CAAC,KAAKA,EAAY,OAAO,MAAM,eAAe,aAAa,IAAI,IAAI,GAAG,IAAI,IAAI,KAAK,IAAI,EAAE,YAAY,CAAC,KAAKA,EAAY,OAAO,MAAM,eAAe,aAAa,GAAG,IAAI,IAAI,IAAI,EAAE,KAAK,GAAG,CAAC,CAAC",
  "names": ["IconWheel", "props", "images", "heading", "text", "headingFont", "textFont", "headingColor", "textColor", "background", "iconSize", "wheelRadius", "rotateSpeed", "style", "isStatic", "useIsStaticRenderer", "angle", "setAngle", "ye", "icons", "img", "iconCount", "centerRef", "pe", "centerBox", "setCenterBox", "ue", "box", "Z", "dynamicRadius", "wheelDiameter", "frame", "animate", "a", "u", "p", "i", "theta", "x", "y", "addPropertyControls", "ControlType"]
}
