{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/RO5KFMp5PxQPrqED8yAW/9PYIAWHvhFwf256035Ap/Github_button.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export default function Github_button(){const[starCount,setStarCount]=useState(null);useEffect(()=>{// Fetch the GitHub star count\nfetch(\"https://api.github.com/repos/raga-ai-hub/RagaAI-Catalyst\").then(response=>response.json()).then(data=>{if(data.stargazers_count){setStarCount(formatStarCount(data.stargazers_count));}});// Load GitHub buttons script\nconst script=document.createElement(\"script\");script.src=\"https://buttons.github.io/buttons.js\";script.async=true;script.defer=true;document.body.appendChild(script);return()=>{document.body.removeChild(script);};},[]);// Function to format star count (9.6K instead of 9604)\nfunction formatStarCount(count){return count>=1e3?(count/1e3).toFixed(1).replace(\".0\",\"\")+\"K\":count;}return /*#__PURE__*/_jsxs(\"a\",{href:\"https://github.com/raga-ai-hub/RagaAI-Catalyst\",style:buttonStyle,target:\"_blank\",rel:\"noopener noreferrer\",children:[/*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 16 16\",width:\"20\",height:\"20\",fill:\"currentColor\",style:{marginRight:\"5px\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.58.82-2.14-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.14 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0016 8c0-4.42-3.58-8-8-8z\"})}),/*#__PURE__*/_jsx(\"span\",{style:textStyle,children:\"We are Open Source!\"}),/*#__PURE__*/_jsxs(\"span\",{style:countStyle,children:[starCount!==null?starCount:\"...\",\" \u2B50\uFE0F\"]})]});}// Styles based on your request\nconst buttonStyle={display:\"flex\",alignItems:\"center\",gap:\"10px\",height:\"48px\",width:\"fit-content\",padding:\"0px 24px 0px 24px\",textDecoration:\"none\",backgroundColor:\"#0031AD\",color:\"#FFFFFF\",borderRadius:\"100px\",border:\"none\",cursor:\"pointer\"};const iconStyle={width:\"24px\",height:\"24px\"};const textStyle={fontSize:\"14px\",fontfamily:\"'Inter', sans-serif\",fontWeight:\"medium\",width:\"fit-content\"};const countStyle={fontfamily:\"'Inter', sans-serif\",fontSize:\"14px\",fontWeight:\"bold\",width:\"fit-content\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Github_button\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Github_button.map"],
  "mappings": "8DAA8G,SAARA,GAAgC,CAAC,GAAK,CAACC,EAAUC,CAAY,EAAEC,EAAS,IAAI,EAAEC,EAAU,IAAI,CAClM,MAAM,0DAA0D,EAAE,KAAKC,GAAUA,EAAS,KAAK,CAAC,EAAE,KAAKC,GAAM,CAAIA,EAAK,kBAAkBJ,EAAaK,EAAgBD,EAAK,gBAAgB,CAAC,CAAG,CAAC,EAC/L,IAAME,EAAO,SAAS,cAAc,QAAQ,EAAE,OAAAA,EAAO,IAAI,uCAAuCA,EAAO,MAAM,GAAKA,EAAO,MAAM,GAAK,SAAS,KAAK,YAAYA,CAAM,EAAQ,IAAI,CAAC,SAAS,KAAK,YAAYA,CAAM,CAAE,CAAE,EAAE,CAAC,CAAC,EACzN,SAASD,EAAgBE,EAAM,CAAC,OAAOA,GAAO,KAAKA,EAAM,KAAK,QAAQ,CAAC,EAAE,QAAQ,KAAK,EAAE,EAAE,IAAIA,CAAM,CAAC,OAAoBC,EAAM,IAAI,CAAC,KAAK,iDAAiD,MAAMC,EAAY,OAAO,SAAS,IAAI,sBAAsB,SAAS,CAAcC,EAAK,MAAM,CAAC,MAAM,6BAA6B,QAAQ,YAAY,MAAM,KAAK,OAAO,KAAK,KAAK,eAAe,MAAM,CAAC,YAAY,KAAK,EAAE,SAAsBA,EAAK,OAAO,CAAC,EAAE,0jBAA0jB,CAAC,CAAC,CAAC,EAAeA,EAAK,OAAO,CAAC,MAAMC,EAAU,SAAS,qBAAqB,CAAC,EAAeH,EAAM,OAAO,CAAC,MAAMI,EAAW,SAAS,CAACb,IAAY,KAAKA,EAAU,MAAM,eAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CACvqC,IAAMU,EAAY,CAAC,QAAQ,OAAO,WAAW,SAAS,IAAI,OAAO,OAAO,OAAO,MAAM,cAAc,QAAQ,oBAAoB,eAAe,OAAO,gBAAgB,UAAU,MAAM,UAAU,aAAa,QAAQ,OAAO,OAAO,OAAO,SAAS,EAA+C,IAAMI,EAAU,CAAC,SAAS,OAAO,WAAW,sBAAsB,WAAW,SAAS,MAAM,aAAa,EAAQC,EAAW,CAAC,WAAW,sBAAsB,SAAS,OAAO,WAAW,OAAO,MAAM,aAAa",
  "names": ["Github_button", "starCount", "setStarCount", "ye", "ue", "response", "data", "formatStarCount", "script", "count", "u", "buttonStyle", "p", "textStyle", "countStyle", "textStyle", "countStyle"]
}
