{"version":3,"file":"API_Users_Companies_Count.B0tbDuwv.mjs","names":["p","o","e"],"sources":["https:/framerusercontent.com/modules/uCvx9bdAExvTmWbec7FS/34jo3H0i8rVF5WSSj5YG/API_Users_Companies_Count.js"],"sourcesContent":["import{jsx as e}from\"react/jsx-runtime\";import{useState as o,useEffect as s}from\"react\";// Learn more: https://www.framer.com/docs/guides/overrides/\n// Parse data from Strapi into Framer text (including CMS text)\nexport function withStrapiNumbers(r){return t=>{let[c,p]=o(\"\")//this can be used to all language except jp and kr\n,[i,_]=o(\"\"),[a,m]=o(\"\")//only used for en\n,[u,l]=o(\"\"),[f,h]=o(\"\"),[j,d]=o(\"\"),[k,g]=o(\"\");s(()=>{fetch(\"https://lottiefiles.com/api/settings\").then(e=>e.json()).then(e=>{console.log(e);let o=e.users_count.replace(/ million\\+/g,\"\");p(o),m(e.companies_count),_(e.users_count_jp_kr),l(e.companies_count_jp_kr),h(e.companies_count_de_es),d(e.companies_count_fr),g(e.companies_count_pt);}).catch(e=>console.error(e));},[]),console.log(t);let x=t.children.props.children.props.children,b=t.text,v={\"{users}\":c,\"{users_jp_kr}\":i,\"{companies}\":a,\"{companies_jp_kr}\":u,\"{companies_de_es}\":f,\"{companies_fr}\":j,\"{companies_pt}\":k},w=void 0===b?n(x,v):n(b,v);return /*#__PURE__*/e(r,{...t,text:w});};}function n(e,o){return e.replace(/{(users|users_jp_kr|companies|companies_jp_kr|companies_de_es|companies_fr|companies_pt)}/g,e=>o[e]);}// MyComponent.defaultProps = {\n//     text: \"Hello World!\",\n// }\n// export function MyComponent(props) {\n//     return (\n//         <div>\n//             {props.title} — {props.body}\n//         </div>\n//     )\n// }\n// addPropertyControls(MyComponent, {\n//     title: {\n//         type: ControlType.String,\n//         defaultValue: \"Framer\",\n//         placeholder: \"Type something…\",\n//     },\n//     body: {\n//         type: ControlType.String,\n//         defaultValue: \"Lorem ipsum dolor sit amet.\",\n//         placeholder: \"Type something…\",\n//         displayTextArea: true,\n//     },\n// })\n\nexport const __FramerMetadata__ = {\"exports\":{\"withStrapiNumbers\":{\"type\":\"reactHoc\",\"name\":\"withStrapiNumbers\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./API_Users_Companies_Count.map"],"mappings":"yHAEA,SAAgB,EAAkB,EAAE,CAAC,MAAO,IAAG,CAAC,GAAG,CAAC,EAAEA,GAAGC,EAAE,GAAG,CAC7D,CAAC,EAAE,GAAGA,EAAE,GAAG,CAAC,CAAC,EAAE,GAAGA,EAAE,GAAG,CACvB,CAAC,EAAE,GAAGA,EAAE,GAAG,CAAC,CAAC,EAAE,GAAGA,EAAE,GAAG,CAAC,CAAC,EAAE,GAAGA,EAAE,GAAG,CAAC,CAAC,EAAE,GAAGA,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,uCAAuC,CAAC,KAAK,GAAG,EAAE,MAAM,CAAC,CAAC,KAAK,GAAG,CAAC,QAAQ,IAAI,EAAE,CAA+C,EAAxC,EAAE,YAAY,QAAQ,cAAc,GAAG,CAAK,CAAC,EAAE,EAAE,gBAAgB,CAAC,EAAE,EAAE,kBAAkB,CAAC,EAAE,EAAE,sBAAsB,CAAC,EAAE,EAAE,sBAAsB,CAAC,EAAE,EAAE,mBAAmB,CAAC,EAAE,EAAE,mBAAmB,EAAG,CAAC,MAAM,GAAG,QAAQ,MAAM,EAAE,CAAC,EAAG,EAAE,CAAC,CAAC,QAAQ,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,SAAS,MAAM,SAAS,MAAM,SAAS,EAAE,EAAE,KAAyI,EAAa,EAAF,IAAT,IAAK,GAAQ,EAAO,EAAxJ,CAAC,UAAU,EAAE,gBAAgB,EAAE,cAAc,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,CAA2B,CAAC,OAAoB,EAAE,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC,EAAI,SAAS,EAAE,EAAE,EAAE,CAAC,OAAO,EAAE,QAAQ,6FAA6F,GAAG,EAAEC,GAAG,kBAJvuB,IAAgD"}