{"version":3,"file":"StackedStatsBar.LSfaFK6K.mjs","names":[],"sources":["https:/framerusercontent.com/modules/7vvZWco2zBjPf8WG7kMJ/IYt4e5hpMqQw1quHZlzc/StackedStatsBar.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const iconPaths={lightning:\"M13 2L3 14h9l-1 8 10-12h-9l1-8z\",chat:\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10z\",rocket:\"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09zM12 15l-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z\",calendar:\"M16 2v4M8 2v4M3 8h18M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01M16 18h.01\",users:\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2M9 7a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75\",clock:\"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10zM12 6v6l4 2\",trending:\"M23 6l-9.5 9.5-5-5L1 18M17 6h6v6\",shield:\"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z\"};function Icon({name,color}){const path=iconPaths[name]||iconPaths.lightning;return /*#__PURE__*/_jsx(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:color,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:path})});}/**\n * Stacked Stats Bar - Dashboard Style\n * \n * A 2x2 interlinked grid stats layout with icons, large stat values, and descriptions.\n * \n * @framerIntrinsicWidth 600\n * @framerIntrinsicHeight 280\n * \n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function StackedStatsBar(props){const{stats=[{icon:\"lightning\",statValue:\"2 days\",description:\"Top performing finance teams close month-end in under 2 days\"},{icon:\"chat\",statValue:\"10min\",description:\"UK-based Customer Support team with first response within 10min on average\"},{icon:\"rocket\",statValue:\"8 years\",description:\"Built for scale with you. Our customers stay with Aqilla for 8 years on average\"},{icon:\"calendar\",statValue:\"6-12 weeks\",description:\"Fast go-live in 6-12 weeks on average\"}],backgroundColor=\"#E8F0FE\",cardBackground=\"#FFFFFF\",accentColor=\"#2563EB\",textColor=\"#1F2937\",borderColor=\"#E5E7EB\",outerBorderColor=\"#D1D5DB\",cardBorderRadius=12,cardPadding=24,statFont,descriptionFont,layout=\"grid\",style}=props;const stacked=layout===\"stacked\";const containerStyle={display:\"grid\",gridTemplateColumns:stacked?\"1fr\":\"repeat(5, 1fr)\",gridTemplateRows:stacked?\"auto\":\"1fr 1fr\",backgroundColor,borderRadius:`${cardBorderRadius}px`,border:`1px solid ${outerBorderColor}`,width:\"100%\",overflow:\"hidden\",...style};const getCardStyle=index=>{if(stacked){return{backgroundColor:cardBackground,padding:`${cardPadding}px`,display:\"flex\",flexDirection:\"column\",gap:\"8px\",gridColumn:\"1 / -1\",borderBottom:index<stats.length-1?`1px solid ${borderColor}`:\"none\"};}const isTopRow=index<2;const isLeftCol=index%2===0;// Card 0 (top left): spans 2 columns\n// Card 1 (top right): spans 3 columns  \n// Card 2 (bottom left): spans 3 columns\n// Card 3 (bottom right): spans 2 columns\nconst gridColumn=index===0?\"1 / 3\":index===1?\"3 / 6\":index===2?\"1 / 4\":\"4 / 6\";return{backgroundColor:cardBackground,padding:`${cardPadding}px`,display:\"flex\",flexDirection:\"column\",gap:\"8px\",gridColumn,borderRight:index===0||index===2?`1px solid ${borderColor}`:\"none\",borderBottom:isTopRow?`1px solid ${borderColor}`:\"none\"};};const statValueStyle={color:accentColor,margin:0,...statFont};const descriptionStyle={color:textColor,margin:0,opacity:.85,...descriptionFont};return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:stats.map((stat,index)=>/*#__PURE__*/_jsxs(\"div\",{style:getCardStyle(index),children:[/*#__PURE__*/_jsx(Icon,{name:stat.icon,color:accentColor}),/*#__PURE__*/_jsx(\"p\",{style:statValueStyle,children:stat.statValue}),/*#__PURE__*/_jsx(\"p\",{style:descriptionStyle,children:stat.description})]},index))});}addPropertyControls(StackedStatsBar,{layout:{type:ControlType.Enum,title:\"Layout\",options:[\"grid\",\"stacked\"],optionTitles:[\"Grid\",\"Stacked\"],defaultValue:\"grid\",displaySegmentedControl:true},stats:{type:ControlType.Array,title:\"Stats\",control:{type:ControlType.Object,controls:{icon:{type:ControlType.Enum,title:\"Icon\",options:[\"lightning\",\"chat\",\"rocket\",\"calendar\",\"users\",\"clock\",\"trending\",\"shield\"],optionTitles:[\"Lightning\",\"Chat\",\"Rocket\",\"Calendar\",\"Users\",\"Clock\",\"Trending\",\"Shield\"],defaultValue:\"lightning\"},statValue:{type:ControlType.String,title:\"Stat Value\",defaultValue:\"2 days\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"Description text here\",displayTextArea:true}}},defaultValue:[{icon:\"lightning\",statValue:\"2 days\",description:\"Top performing finance teams close month-end in under 2 days\"},{icon:\"chat\",statValue:\"10min\",description:\"UK-based Customer Support team with first response within 10min on average\"},{icon:\"rocket\",statValue:\"8 years\",description:\"Built for scale with you. Our customers stay with Aqilla for 8 years on average\"},{icon:\"calendar\",statValue:\"6-12 weeks\",description:\"Fast go-live in 6-12 weeks on average\"}]},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#E8F0FE\"},cardBackground:{type:ControlType.Color,title:\"Card Background\",defaultValue:\"#FFFFFF\"},accentColor:{type:ControlType.Color,title:\"Accent Color\",defaultValue:\"#2563EB\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#1F2937\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#E5E7EB\"},cardBorderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:12,min:0,max:32,unit:\"px\"},cardPadding:{type:ControlType.Number,title:\"Padding\",defaultValue:24,min:8,max:48,unit:\"px\"},statFont:{type:ControlType.Font,title:\"Stat Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"28px\",variant:\"Bold\",letterSpacing:\"-0.02em\",lineHeight:\"1.1em\"}},descriptionFont:{type:ControlType.Font,title:\"Description Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"13px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.4em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StackedStatsBar\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"280\",\"framerIntrinsicWidth\":\"600\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StackedStatsBar.map"],"mappings":"oKAAm1B,SAAS,EAAK,CAAC,OAAK,SAAO,CAAiD,OAAoB,EAAK,MAAM,CAAC,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OAAO,OAAO,EAAM,YAAY,IAAI,cAAc,QAAQ,eAAe,QAAQ,SAAsB,EAAK,OAAO,CAAC,EAAzO,EAAU,IAAO,EAAU,SAAoN,CAAC,CAAC,CAAC,CAAE,CAU3mC,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,CAAC,KAAK,YAAY,UAAU,SAAS,YAAY,8DAA8D,EAAE,CAAC,KAAK,OAAO,UAAU,QAAQ,YAAY,4EAA4E,EAAE,CAAC,KAAK,SAAS,UAAU,UAAU,YAAY,iFAAiF,EAAE,CAAC,KAAK,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