{"version":3,"file":"SchemaControl.DIN6Sn3f.mjs","names":[],"sources":["https:/framerusercontent.com/modules/OqgAN8ljwMmY4AogJykD/wqb1Sl0wBRwSshfIID30/SchemaControl.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{ControlType,addPropertyControls}from\"framer\";export default function ReviewSchemaController(props){const{reviewCount=\"0\",reviewRating=\"0\",productName=\"Product\"}=props;const ratingValue=parseFloat(reviewRating);const ratingCount=parseInt(reviewCount);if(isNaN(ratingValue)||isNaN(ratingCount))return /*#__PURE__*/_jsx(\"div\",{});const productSchema={\"@context\":\"https://schema.org/\",\"@type\":\"Product\",name:productName,brand:{\"@type\":\"Brand\",name:\"Biome Secret\"},aggregateRating:{\"@type\":\"AggregateRating\",ratingValue:(Math.round(ratingValue*10)/10).toFixed(1),ratingCount:ratingCount}};return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:JSON.stringify(productSchema)}});}addPropertyControls(ReviewSchemaController,{reviewCount:{title:\"Review Count\",type:ControlType.String,defaultValue:\"0\"},reviewRating:{title:\"Review Rating\",type:ControlType.String,defaultValue:\"0\"},productName:{title:\"Product Name\",type:ControlType.String,defaultValue:\"Product\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ReviewSchemaController\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SchemaControl.map"],"mappings":"iOAA+F,SAAwB,EAAuB,EAAM,CAAC,GAAK,CAAC,cAAY,IAAI,eAAa,IAAI,cAAY,WAAW,EAAY,EAAY,WAAW,EAAa,CAAO,EAAY,SAAS,EAAY,CAAC,GAAG,MAAM,EAAY,EAAE,MAAM,EAAY,CAAC,OAAoB,EAAK,MAAM,EAAE,CAAC,CAAC,IAAM,EAAc,CAAC,WAAW,sBAAsB,QAAQ,UAAU,KAAK,EAAY,MAAM,CAAC,QAAQ,QAAQ,KAAK,eAAe,CAAC,gBAAgB,CAAC,QAAQ,kBAAkB,aAAa,KAAK,MAAM,EAAY,GAAG,CAAC,IAAI,QAAQ,EAAE,CAAa,cAAY,CAAC,CAAC,OAAoB,EAAK,SAAS,CAAC,KAAK,sBAAsB,wBAAwB,CAAC,OAAO,KAAK,UAAU,EAAc,CAAC,CAAC,CAAC,kBAA7sB,IAAoD,CAA2pB,EAAoB,EAAuB,CAAC,YAAY,CAAC,MAAM,eAAe,KAAK,EAAY,OAAO,aAAa,IAAI,CAAC,aAAa,CAAC,MAAM,gBAAgB,KAAK,EAAY,OAAO,aAAa,IAAI,CAAC,YAAY,CAAC,MAAM,eAAe,KAAK,EAAY,OAAO,aAAa,UAAU,CAAC,CAAC"}