{"version":3,"file":"Loader.cccBeBwi.mjs","names":[],"sources":["https:/framerusercontent.com/modules/DDxi3LpUruSqeb3UhTDp/8cpJT2RCAx6w3F2v39Hm/Loader.js"],"sourcesContent":["// Small circular loader for AI agent/process status with color and animation controls\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function Loader(props){const{color=\"#0099FF\",backgroundColor=\"#F5F5F5\",strokeWidth=2,speed=1,offset=0,style}=props;const isStatic=useIsStaticRenderer();// Check if component should match container size\nconst isFixedWidth=style?.width===\"100%\";const isFixedHeight=style?.height===\"100%\";const shouldMatchContainer=isFixedWidth||isFixedHeight;// Use container dimensions or fallback to default size\nconst fallbackSize=16;const actualSize=shouldMatchContainer?fallbackSize:fallbackSize;const radius=(actualSize-strokeWidth)/2;const circumference=2*Math.PI*radius;if(isStatic){return /*#__PURE__*/_jsx(\"div\",{style:{width:shouldMatchContainer?\"100%\":actualSize,height:shouldMatchContainer?\"100%\":actualSize,borderRadius:\"50%\",border:`${strokeWidth}px solid ${backgroundColor}`,borderTopColor:color,position:\"relative\",...style}});}return /*#__PURE__*/_jsx(\"div\",{style:{width:shouldMatchContainer?\"100%\":actualSize,height:shouldMatchContainer?\"100%\":actualSize,position:\"relative\",display:\"inline-block\",...style},children:/*#__PURE__*/_jsxs(\"svg\",{width:\"100%\",height:\"100%\",viewBox:`0 0 ${actualSize} ${actualSize}`,style:{transform:`rotate(${offset}deg)`},children:[/*#__PURE__*/_jsx(\"circle\",{cx:actualSize/2,cy:actualSize/2,r:radius,stroke:backgroundColor,strokeWidth:strokeWidth,fill:\"none\"}),/*#__PURE__*/_jsx(motion.circle,{cx:actualSize/2,cy:actualSize/2,r:radius,stroke:color,strokeWidth:strokeWidth,fill:\"none\",strokeLinecap:\"round\",strokeDasharray:circumference,strokeDashoffset:circumference*.75,animate:{rotate:360},transition:{duration:1/speed,repeat:Infinity,ease:\"linear\"},style:{transformOrigin:\"center\"}})]})});}addPropertyControls(Loader,{color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#0099FF\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#F5F5F5\"},strokeWidth:{type:ControlType.Number,title:\"Stroke Width\",defaultValue:2,min:1,max:8,step:.5,unit:\"px\"},speed:{type:ControlType.Number,title:\"Speed\",defaultValue:1,min:.1,max:5,step:.1,unit:\"x\"},offset:{type:ControlType.Number,title:\"Offset\",defaultValue:0,min:0,max:360,step:15,unit:\"deg\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Loader\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Loader.map"],"mappings":"4NAIG,SAAwB,EAAO,EAAM,CAAC,GAAK,CAAC,QAAM,UAAU,kBAAgB,UAAU,cAAY,EAAE,QAAM,EAAE,SAAO,EAAE,SAAO,EAAY,EAAS,GAAqB,CACnK,EAAa,GAAO,QAAQ,OAAa,EAAc,GAAO,SAAS,OAAa,EAAqB,GAAc,EACjC,GAAQ,GAAW,GAAa,EAAQ,EAAc,EAAE,KAAK,GAAG,EAAkR,OAAxQ,EAA8B,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAqB,OAAO,GAAW,OAAO,EAAqB,OAAO,GAAW,aAAa,MAAM,OAAO,GAAG,EAAY,WAAW,IAAkB,eAAe,EAAM,SAAS,WAAW,GAAG,EAAM,CAAC,CAAC,CAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAqB,OAAO,GAAW,OAAO,EAAqB,OAAO,GAAW,SAAS,WAAW,QAAQ,eAAe,GAAG,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