{"version":3,"file":"TallyScoreDisplay.DgoBA_He.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/i3NB1pmMm91Ui5zPo8Tz/aG84B4DbOvIspX1Rwe4z/TallyScoreDisplay.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export function TallyScoreDisplay({fontColor,fontSize,totalScore}){const[score,setScore]=useState(null);useEffect(()=>{const urlParams=new URLSearchParams(window.location.search);const scoreValue=urlParams.get(\"score\");if(scoreValue){setScore(scoreValue);}},[]);if(!score){return null;}return /*#__PURE__*/_jsxs(\"div\",{style:{fontFamily:\"Hanken Grotesk, sans-serif\",color:fontColor,fontSize:fontSize},children:[\"Your score is \",/*#__PURE__*/_jsx(\"span\",{style:{fontWeight:\"800\"},children:score}),\" out of \",/*#__PURE__*/_jsx(\"span\",{style:{fontWeight:\"800\"},children:totalScore})]});}addPropertyControls(TallyScoreDisplay,{fontColor:{type:ControlType.Color,title:\"Font Color\",defaultValue:\"#000000\"},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:20},totalScore:{type:ControlType.Number,title:\"Total Possible Score\",defaultValue:54}});\nexport const __FramerMetadata__ = {\"exports\":{\"TallyScoreDisplay\":{\"type\":\"reactComponent\",\"name\":\"TallyScoreDisplay\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TallyScoreDisplay.map"],"mappings":"yTAAmJ,SAAgB,EAAkB,CAAC,YAAU,WAAS,cAAY,CAAC,GAAK,CAAC,EAAM,GAAUA,EAAS,KAAK,CAAuL,OAAtL,MAAc,CAA6D,IAAM,EAAlD,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAA4B,IAAI,QAAQ,CAAI,GAAY,EAAS,EAAW,EAAI,EAAE,CAAC,CAAK,EAAwC,EAAM,MAAM,CAAC,MAAM,CAAC,WAAW,6BAA6B,MAAM,EAAmB,WAAS,CAAC,SAAS,CAAC,iBAA8B,EAAK,OAAO,CAAC,MAAM,CAAC,WAAW,MAAM,CAAC,SAAS,EAAM,CAAC,CAAC,WAAwB,EAAK,OAAO,CAAC,MAAM,CAAC,WAAW,MAAM,CAAC,SAAS,EAAW,CAAC,CAAC,CAAC,CAAC,CAA9S,0BAAlX,IAAsC,IAAoD,CAAwkB,EAAoB,EAAkB,CAAC,UAAU,CAAC,KAAK,EAAY,MAAM,MAAM,aAAa,aAAa,UAAU,CAAC,SAAS,CAAC,KAAK,EAAY,OAAO,MAAM,YAAY,aAAa,GAAG,CAAC,WAAW,CAAC,KAAK,EAAY,OAAO,MAAM,uBAAuB,aAAa,GAAG,CAAC,CAAC"}