{"version":3,"file":"Github_button_small.BGaNrBJS.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/vdZ1ImhIowj5y0G8i3wE/yAh5npYasXX6psOGdZeJ/Github_button_small.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:\"#0031AD\",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__*/_jsxs(\"span\",{style:countStyle,children:[starCount!==null?starCount:\"...\",\" ⭐️\"]})]});}// Styles based on your request\nconst buttonStyle={display:\"flex\",alignItems:\"center\",gap:\"10px\",height:\"42px\",width:\"fit-content\",padding:\"0px 15px 0px 15px\",textDecoration:\"none\",backgroundColor:\"#ffffff\",color:\"#0031AD\",borderRadius:\"100px\",border:\"none\",cursor:\"pointer\"};const iconStyle={color:\"#0031AD\",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\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Github_button\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Github_button_small.map"],"mappings":"gIAA+F,SAAwB,GAAe,CAAC,GAAK,CAAC,EAAU,GAAcA,EAAS,KAAK,CAAC,MAAc,CAClM,MAAM,2DAA2D,CAAC,KAAK,GAAU,EAAS,MAAM,CAAC,CAAC,KAAK,GAAM,CAAI,EAAK,kBAAkB,EAAa,EAAgB,EAAK,iBAAiB,CAAC,EAAI,CAChM,IAAM,EAAO,SAAS,cAAc,SAAS,CAAyH,MAAxH,GAAO,IAAI,uCAAuC,EAAO,MAAM,GAAK,EAAO,MAAM,GAAK,SAAS,KAAK,YAAY,EAAO,KAAW,CAAC,SAAS,KAAK,YAAY,EAAO,GAAK,EAAE,CAAC,CAC1N,SAAS,EAAgB,EAAM,CAAC,OAAO,GAAO,KAAK,EAAM,KAAK,QAAQ,EAA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