{"version":3,"file":"DynamicLogo.NsKaJyP9.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/UbIuv3bWTlKfOXYrTHjL/TR6j2xFBZ7uhtn5TdBKi/DynamicLogo.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";const euroCountries=[// EU Countries\n\"AT\",\"BE\",\"BG\",\"HR\",\"CY\",\"CZ\",\"DK\",\"EE\",\"FI\",\"FR\",\"DE\",\"GR\",\"HU\",\"IE\",\"IT\",\"LV\",\"LT\",\"LU\",\"MT\",\"NL\",\"PL\",\"PT\",\"RO\",\"SK\",\"SI\",\"ES\",\"SE\",// Schengen non-EU\n\"IS\",\"LI\",\"NO\",\"CH\",// Non-Schengen & Non-EU but geographically Europe\n\"AL\",\"AD\",\"AM\",\"AZ\",\"BA\",\"BY\",\"GE\",\"XK\",\"MD\",\"MC\",\"ME\",\"MK\",\"RU\",\"SM\",\"RS\",\"TR\",\"UA\",\"VA\",// United Kingdom\n\"GB\",\"UK\"];// Custom hook to fetch location data\nexport function useLocationData(type){const[locationData,setLocationData]=useState({var:\"\"});useEffect(()=>{const fetchLocation=async()=>{try{// setLocationData({ var: \"US\" })\nconst response=await fetch(\"https://api.framer.wtf/location\");const data=await response.json();if(euroCountries.includes(data.country)){setLocationData({var:\"EU\"});}else{setLocationData({var:\"US\"});}}catch(error){setLocationData({var:\"US\"});console.error(\"Error fetching location:\",error);}};fetchLocation();},[]);return locationData[type]||\"\"// Return specific data based on type (country or city)\n;}export function withVarName(Component){return props=>{const city=useLocationData(\"var\");return /*#__PURE__*/_jsx(Component,{...props,text:city});};}export function withHideEULogos(Component){return props=>{const loc=useLocationData(\"var\");const componentRef=useRef();useEffect(()=>{if(componentRef.current){const parent=componentRef.current.parentNode;if(parent&&loc==\"US\"){parent.style.display=\"none\";}}},[loc]);return /*#__PURE__*/_jsx(Component,{...props,ref:componentRef});};}export function withHideUSLogos(Component){return props=>{const loc=useLocationData(\"var\");const componentRef=useRef();useEffect(()=>{if(componentRef.current){const parent=componentRef.current.parentNode;if(parent&&loc==\"EU\"){parent.style.display=\"none\";}}},[loc]);return /*#__PURE__*/_jsx(Component,{...props,ref:componentRef});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withHideEULogos\":{\"type\":\"reactHoc\",\"name\":\"withHideEULogos\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useLocationData\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withVarName\":{\"type\":\"reactHoc\",\"name\":\"withVarName\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHideUSLogos\":{\"type\":\"reactHoc\",\"name\":\"withHideUSLogos\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DynamicLogo.map"],"mappings":"2KAKA,SAAgB,EAAgB,EAAK,CAAC,GAAK,CAAC,EAAa,EAAgB,CAACA,EAAS,CAAC,IAAI,GAAG,EAC+N,OAD7N,MAAc,CAAC,IAAM,EAAc,SAAS,CAAC,GAAG,CAC7I,IAAM,EAAS,MAAM,MAAM,mCAAyC,EAAK,MAAM,EAAS,OAAU,EAAc,SAAS,EAAK,SAAU,EAAgB,CAAC,IAAI,KAAK,EAAQ,EAAgB,CAAC,IAAI,KAAK,CAAI,OAAM,EAAM,CAAC,EAAgB,CAAC,IAAI,KAAK,EAAE,QAAQ,MAAM,2BAA2B,EAAQ,CAAC,EAAC,GAAiB,EAAC,EAAE,EAAS,EAAa,IAAO,EACnV,CAAoJ,SAAgB,EAAgB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAI,EAAgB,OAAa,EAAaC,IAA2J,OAAlJ,MAAc,CAAC,GAAG,EAAa,QAAQ,CAAC,IAAM,EAAO,EAAa,QAAQ,WAAc,GAAQ,GAAK,OAAM,EAAO,MAAM,QAAQ,OAAS,CAAC,EAAC,CAAC,EAAI,EAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,IAAI,EAAa,CAAG,CAAE,UAAgB,EAAgB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAI,EAAgB,OAAa,EAAaA,IAA2J,OAAlJ,MAAc,CAAC,GAAG,EAAa,QAAQ,CAAC,IAAM,EAAO,EAAa,QAAQ,WAAc,GAAQ,GAAK,OAAM,EAAO,MAAM,QAAQ,OAAS,CAAC,EAAC,CAAC,EAAI,EAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,IAAI,EAAa,CAAG,CAAE,yBAPhtB,EAAc"}