{"version":3,"file":"Github_button.DOaCTPTC.mjs","names":["Github_button","useState","buttonStyle","textStyle","countStyle","useState"],"sources":["https:/framerusercontent.com/modules/SgqYEqJJBRrnQBoEu471/cXnLSqM1BTKRt0N8rEQA/Github_button_mobile.js","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:\"...\",\" ⭐️\"]})]});}// 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:\"#2060DF\",color:\"#FFFFFF\",borderRadius:\"100px\",border:\"none\",cursor:\"pointer\"};const iconStyle={width:\"20px\",height:\"20px\"};const textStyle={fontSize:\"12px\",fontfamily:\"'Inter', sans-serif\",fontWeight:\"medium\",width:\"fit-content\"};const countStyle={fontfamily:\"'Inter', sans-serif\",fontSize:\"12px\",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_mobile.map","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:\"...\",\" ⭐️\"]})]});}// 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":"0KAA+F,SAAwBA,GAAe,CAAC,GAAK,CAAC,EAAU,EAAa,CAACK,EAAS,MAAM,MAAc,CAClM,MAAM,4DAA4D,KAAK,GAAU,EAAS,QAAQ,KAAK,GAAM,CAAI,EAAK,kBAAkB,EAAa,EAAgB,EAAK,kBAAqB,GAC/L,IAAM,EAAO,SAAS,cAAc,UAAkI,MAAxH,GAAO,IAAI,uCAAuC,EAAO,MAAM,GAAK,EAAO,MAAM,GAAK,SAAS,KAAK,YAAY,OAAkB,CAAC,SAAS,KAAK,YAAY,EAAS,CAAE,EAAC,EAAE,EACzN,SAAS,EAAgB,EAAM,CAAC,OAAO,GAAO,KAAK,EAAM,KAAK,QAAQ,GAAG,QAAQ,KAAK,IAAI,IAAI,CAAO,QAAoB,EAAM,IAAI,CAAC,KAAK,iDAAiD,MAAMH,EAAY,OAAO,SAAS,IAAI,sBAAsB,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,6BAA6B,QAAQ,YAAY,MAAM,KAAK,OAAO,KAAK,KAAK,eAAe,MAAM,CAAC,YAAY,MAAM,CAAC,SAAsB,EAAK,OAAO,CAAC,EAAE,2jBAA2jB,EAAE,EAAe,EAAK,OAAO,CAAC,MAAMC,EAAU,SAAS,sBAAsB,EAAe,EAAM,OAAO,CAAC,MAAMC,EAAW,SAAS,CAAC,IAAY,KAAe,MAAV,EAAgB,MAAM,CAAC,EAAE,CAAC,CAAG,6BAClqCF,EA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