{"version":3,"file":"TestimonialCard.DkkZ4M-R.mjs","names":[],"sources":["https:/framerusercontent.com/modules/3YVsLYYU9dX5LwfWz5DH/XmO7gLJs4r7FR64ZFMqW/TestimonialCard.js"],"sourcesContent":["// TestimonialCard component with customizable star rating, colors, description and name\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function TestimonialCard(props){const{rating,starColor,emptyStarColor,description,name,backgroundColor,textColor,nameColor,descriptionFont,nameFont,padding,borderRadius,textAlign}=props;const renderStars=()=>{const stars=[];for(let i=1;i<=5;i++){stars.push(/*#__PURE__*/_jsx(\"span\",{style:{color:i<=rating?starColor:emptyStarColor,fontSize:\"20px\",marginRight:\"2px\"},children:\"★\"},i));}return stars;};const isFixedWidth=props?.style&&props.style.width===\"100%\";return /*#__PURE__*/_jsxs(\"div\",{style:{...props.style,...isFixedWidth?{...props?.style}:{minWidth:\"max-content\"},backgroundColor,padding,borderRadius,display:\"flex\",flexDirection:\"column\",gap:\"16px\",position:\"relative\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:\"2px\",justifyContent:textAlign===\"center\"?\"center\":textAlign===\"right\"?\"flex-end\":\"flex-start\"},children:renderStars()}),/*#__PURE__*/_jsx(\"div\",{style:{color:textColor,...descriptionFont,lineHeight:descriptionFont.lineHeight||\"1.5\",textAlign},children:description}),/*#__PURE__*/_jsx(\"div\",{style:{color:nameColor,...nameFont,lineHeight:nameFont.lineHeight||\"1.2\",textAlign},children:name})]});}addPropertyControls(TestimonialCard,{rating:{type:ControlType.Number,title:\"Star Rating\",defaultValue:5,min:0,max:5,step:1,displayStepper:true},starColor:{type:ControlType.Color,title:\"Star Color\",defaultValue:\"#FFD700\"},emptyStarColor:{type:ControlType.Color,title:\"Empty Star Color\",defaultValue:\"#CCCCCC\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"This product exceeded my expectations. The quality is outstanding and the customer service was exceptional. I would definitely recommend it to anyone looking for a reliable solution.\",displayTextArea:true},name:{type:ControlType.String,title:\"Name\",defaultValue:\"Sarah Johnson\"},backgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#FFFFFF\"},textColor:{type:ControlType.Color,title:\"Description Color\",defaultValue:\"#000000\"},nameColor:{type:ControlType.Color,title:\"Name Color\",defaultValue:\"#000000\"},descriptionFont:{type:ControlType.Font,title:\"Description Font\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.5em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},nameFont:{type:ControlType.Font,title:\"Name Font\",defaultValue:{fontSize:\"15px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:24,min:0,max:50,step:1,unit:\"px\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:8,min:0,max:32,step:1,unit:\"px\"},textAlign:{type:ControlType.Enum,title:\"Text Alignment\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"left\",displaySegmentedControl:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TestimonialCard\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TestimonialCard.map"],"mappings":"oKAIG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,SAAO,YAAU,iBAAe,cAAY,OAAK,kBAAgB,YAAU,YAAU,kBAAgB,WAAS,UAAQ,eAAa,aAAW,EAAY,MAAgB,CAAC,IAAM,EAAM,EAAE,C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