{"version":3,"file":"Avis.CsMRTDTL.mjs","names":[],"sources":["https:/framerusercontent.com/modules/gp2DzA9YQM9FWAnLYmgm/iQ4sLVj3s6J2YXdT4V5S/Avis.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// Ton ID Google My Business (CID)\nconst GOOGLE_CID=\"2546865624751678444\";const GOOGLE_URL=`https://maps.google.com/?cid=${GOOGLE_CID}`;export default function GoogleReviews(props){const{rating,count,starColor,textColor,starSize}=props;// Calcul pour l'étoile partielle\nconst renderStars=()=>{const stars=[];for(let i=1;i<=5;i++){let fill=0;if(rating>=i){fill=100// Étoile pleine\n;}else if(rating>i-1){fill=(rating-(i-1))*100// Étoile partielle\n;}stars.push(/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:starSize,height:starSize,marginRight:2},children:[/*#__PURE__*/_jsx(StarIcon,{color:\"rgba(150, 150, 150, 0.3)\",size:starSize}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,width:`${fill}%`,height:\"100%\",overflow:\"hidden\",whiteSpace:\"nowrap\"},children:/*#__PURE__*/_jsx(StarIcon,{color:starColor,size:starSize})})]},i));}return stars;};return /*#__PURE__*/_jsxs(\"a\",{href:GOOGLE_URL,target:\"_blank\",rel:\"noopener noreferrer\",style:{display:\"flex\",alignItems:\"center\",textDecoration:\"none\",cursor:\"pointer\",fontFamily:\"Inter, sans-serif\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",marginRight:12},children:renderStars()}),/*#__PURE__*/_jsxs(\"span\",{style:{color:textColor,fontSize:16,fontWeight:500},children:[\"Not\\xe9 \",rating,\" / 5 par \",count,\" clients\"]})]});}// L'icône (SVG)\nfunction StarIcon({color,size}){return /*#__PURE__*/_jsx(\"svg\",{width:size,height:size,viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{display:\"block\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z\",fill:color})});}addPropertyControls(GoogleReviews,{rating:{type:ControlType.Number,title:\"Note\",defaultValue:4.8,min:0,max:5,step:.1},count:{type:ControlType.String,title:\"Clients\",defaultValue:\"95 547\"},starColor:{type:ControlType.Color,title:\"Couleur \\xc9toile\",defaultValue:\"#EA5E64\"},textColor:{type:ControlType.Color,title:\"Couleur Texte\",defaultValue:\"#EA5E64\"},starSize:{type:ControlType.Number,title:\"Taille\",defaultValue:20}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GoogleReviews\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Avis.map"],"mappings":"mKACqG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,SAAO,QAAM,YAAU,YAAU,YAAU,EAGwO,OAAoB,EAAM,IAAI,CAAC,KAAK,EAAW,OAAO,SAAS,IAAI,sBAAsB,MAAM,CAAC,QAAQ,OAAO,WAAW,SAAS,eAAe,OAAO,OAAO,UAAU,WAAW,oBAAoB,CAAC,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,YAAY,GAAG,CAAC,cAFxqB,CAAC,IAAM,EAAM,EAAE,CAAC,IAAI,IAAI,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,IAAI,EAAK,EAAK,GAAQ,EAAG,EAAK,IAChF,EAAO,EAAE,IAAG,GAAM,GAAQ,EAAE,IAAI,KACxC,EAAM,KAAkB,EAAM,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAS,OAAO,EAAS,YAAY,EAAE,CAAC,SAAS,CAAc,EAAK,EAAS,CAAC,MAAM,2BAA2B,KAAK,EAAS,CAAC,CAAc,EAAK,MAAM,CAAC,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