{"version":3,"file":"AvatarStack.D4wI5oIs.mjs","names":[],"sources":["https:/framerusercontent.com/modules/ZZtsQq16qdjtJ9ES9Psk/sfhUhXRAI33ggJYzwsAU/AvatarStack.js"],"sourcesContent":["// @ts-nocheck\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerIntrinsicWidth 420\n * @framerIntrinsicHeight 90\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function AvatarStack(props){const{avatars,size,overlap,ring,ringColor,showStars,starColor,label,labelColor,strongColor,align,count,font}=props;const list=avatars&&avatars.length?avatars:[];const justify=align===\"center\"?\"center\":align===\"right\"?\"flex-end\":\"flex-start\";return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:justify,gap:14,...font},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\"},children:list.map((a,i)=>/*#__PURE__*/_jsx(\"img\",{src:a.src,alt:\"\",draggable:false,style:{width:size,height:size,borderRadius:\"50%\",objectFit:\"cover\",border:`${ring}px solid ${ringColor}`,marginLeft:i===0?0:-overlap,position:\"relative\",zIndex:list.length-i}},i))}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:2},children:[showStars?/*#__PURE__*/_jsx(\"div\",{style:{color:starColor,fontSize:\"0.95em\",letterSpacing:1},children:\"★★★★★\"}):null,/*#__PURE__*/_jsxs(\"div\",{style:{fontSize:\"0.9em\",fontWeight:500,color:labelColor},children:[/*#__PURE__*/_jsx(\"span\",{style:{color:strongColor,fontWeight:700},children:count}),\" \",label]})]})]});}const A=src=>({src});addPropertyControls(AvatarStack,{avatars:{type:ControlType.Array,title:\"Avatars\",control:{type:ControlType.Object,controls:{src:{type:ControlType.String,title:\"Image URL\",defaultValue:\"\"}}},defaultValue:[A(\"https://i.pravatar.cc/100?img=1\"),A(\"https://i.pravatar.cc/100?img=5\"),A(\"https://i.pravatar.cc/100?img=12\"),A(\"https://i.pravatar.cc/100?img=20\"),A(\"https://i.pravatar.cc/100?img=32\")]},count:{type:ControlType.String,title:\"Count\",defaultValue:\"12,000+\"},label:{type:ControlType.String,title:\"Label\",defaultValue:\"happy customers\"},size:{type:ControlType.Number,title:\"Size\",min:24,max:80,step:2,defaultValue:44,unit:\"px\"},overlap:{type:ControlType.Number,title:\"Overlap\",min:0,max:40,step:1,defaultValue:14,unit:\"px\"},ring:{type:ControlType.Number,title:\"Ring\",min:0,max:6,step:1,defaultValue:2,unit:\"px\"},ringColor:{type:ControlType.Color,title:\"Ring Color\",defaultValue:\"#FFFFFF\"},showStars:{type:ControlType.Boolean,title:\"Stars\",enabledTitle:\"On\",disabledTitle:\"Off\",defaultValue:true},starColor:{type:ControlType.Color,title:\"Star\",defaultValue:\"#FFB020\"},labelColor:{type:ControlType.Color,title:\"Label\",defaultValue:\"#6B7280\"},strongColor:{type:ControlType.Color,title:\"Count Color\",defaultValue:\"#0B0B0F\"},align:{type:ControlType.Enum,title:\"Align\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"left\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Regular\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AvatarStack\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"90\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"420\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AvatarStack.map"],"mappings":"mKAMG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,UAAQ,OAAK,UAAQ,OAAK,YAAU,YA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