{"version":3,"file":"StatusIndicator.HB702zRL.mjs","names":[],"sources":["https:/framerusercontent.com/modules/cNx9lcwLrWeJvV8ge5pV/2zLfHo2c5rJbX6NyqTRN/StatusIndicator.js"],"sourcesContent":["// Green pulsing status indicator with customizable appearance and animation\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion}from\"framer-motion\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function StatusIndicator(props){const{size=12,color=\"#22CC66\",pulseSpeed=2,showLabel=true,label=\"Online\",labelFont,labelColor=\"#000000\",responsiveScaling=true}=props;const isStatic=useIsStaticRenderer();// Calculate responsive sizes\nconst getResponsiveSize=()=>{if(!responsiveScaling)return size;// Base size with responsive scaling\nreturn`clamp(${Math.max(6,size*.7)}px, ${size}px, ${size*1.3}px)`;};const getResponsiveFontSize=()=>{if(!responsiveScaling||!labelFont?.fontSize)return labelFont?.fontSize||\"14px\";const baseFontSize=parseInt(labelFont.fontSize)||14;return`clamp(${Math.max(10,baseFontSize*.8)}px, ${baseFontSize}px, ${baseFontSize*1.2}px)`;};const getResponsiveGap=()=>{if(!responsiveScaling)return showLabel?8:0;return showLabel?\"clamp(4px, 8px, 12px)\":0;};return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:getResponsiveGap(),width:\"max-content\",position:\"relative\",// Ensure proper scaling on different orientations\nflexWrap:\"nowrap\",minWidth:0},children:[/*#__PURE__*/_jsx(motion.div,{animate:isStatic?{}:{opacity:[1,0,1]},transition:isStatic?{}:{duration:pulseSpeed,repeat:Infinity,ease:\"easeInOut\"},style:{width:getResponsiveSize(),height:getResponsiveSize(),borderRadius:\"50%\",backgroundColor:color,flexShrink:0}}),showLabel&&/*#__PURE__*/_jsx(\"span\",{style:{color:labelColor,...labelFont,fontSize:getResponsiveFontSize(),whiteSpace:\"nowrap\",textAlign:\"center\",// Responsive text handling for very small screens\noverflow:\"hidden\",textOverflow:\"ellipsis\",maxWidth:responsiveScaling?\"clamp(80px, 200px, 300px)\":\"none\",// Better text rendering on different screen densities\nWebkitFontSmoothing:\"antialiased\",MozOsxFontSmoothing:\"grayscale\"},children:label})]});}addPropertyControls(StatusIndicator,{size:{type:ControlType.Number,title:\"Size\",defaultValue:12,min:6,max:48,step:1,unit:\"px\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#22CC66\"},pulseSpeed:{type:ControlType.Number,title:\"Pulse Speed\",defaultValue:2,min:.5,max:5,step:.1,unit:\"s\"},responsiveScaling:{type:ControlType.Boolean,title:\"Responsive Scaling\",defaultValue:true,enabledTitle:\"Enabled\",disabledTitle:\"Disabled\"},showLabel:{type:ControlType.Boolean,title:\"Show Label\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},label:{type:ControlType.String,title:\"Label\",defaultValue:\"Online\",hidden:({showLabel})=>!showLabel},labelFont:{type:ControlType.Font,title:\"Label Font\",defaultValue:{fontSize:\"14px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\",hidden:({showLabel})=>!showLabel},labelColor:{type:ControlType.Color,title:\"Label Color\",defaultValue:\"#000000\",hidden:({showLabel})=>!showLabel}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StatusIndicator\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StatusIndicator.map"],"mappings":"iVAIG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,OAAK,GAAG,QAAM,UAAU,aAAW,EAAE,YAAU,GAAK,QAAM,SAAS,YAAU,aAAW,UAAU,oBAAkB,IAAM,EAAY,EAAS,GAAqB,CACtN,MAA2B,EAC3B,SAA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