{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/GYijN3fXsUlLVMCNmLpj/EJRGsezSFUelMPMwqUOk/FetchPrice.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export function withSubscriptionPrice(Component){return props=>{const[price,setPrice]=useState(null)// Initially null (hidden)\n;useEffect(()=>{const fetchPrice=async()=>{try{const response=await fetch(\"https://teams-service.elevate.io/plansv2?includeLocalPrices=true\");if(!response.ok)throw new Error(\"Failed to fetch data\");const data=await response.json();if(data.length>1&&data[1].subscriptionPrice){// Return raw price exactly as received from API\nconst rawPrice=data[1].subscriptionPrice;setPrice(rawPrice);}}catch(error){// Do nothing on error (keeps text hidden)\n}};fetchPrice();},[]);return /*#__PURE__*/_jsx(Component,{...props,text:price||\"\"})// If price is null, text remains empty\n;};}\nexport const __FramerMetadata__ = {\"exports\":{\"withSubscriptionPrice\":{\"type\":\"reactHoc\",\"name\":\"withSubscriptionPrice\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FetchPrice.map"],
  "mappings": "uDAAwF,SAASA,EAAsBC,EAAU,CAAC,OAAOC,GAAO,CAAC,GAAK,CAACC,EAAMC,CAAQ,EAAEC,EAAS,IAAI,EACnL,OAAAC,EAAU,IAAI,EAAkB,SAAS,CAAC,GAAG,CAAC,IAAMC,EAAS,MAAM,MAAM,kEAAkE,EAAE,GAAG,CAACA,EAAS,GAAG,MAAM,IAAI,MAAM,sBAAsB,EAAE,IAAMC,EAAK,MAAMD,EAAS,KAAK,EAAE,GAAGC,EAAK,OAAO,GAAGA,EAAK,CAAC,EAAE,kBAAkB,CACnR,IAAMC,EAASD,EAAK,CAAC,EAAE,kBAAkBJ,EAASK,CAAQ,CAAE,CAAC,MAAa,CAC1E,CAAC,GAAa,CAAE,EAAE,CAAC,CAAC,EAAsBC,EAAKT,EAAU,CAAC,GAAGC,EAAM,KAAKC,GAAO,EAAE,CAAC,CACjF,CAAE",
  "names": ["withSubscriptionPrice", "Component", "props", "price", "setPrice", "ye", "ue", "response", "data", "rawPrice", "p"]
}
