{"version":3,"file":"DynamicLogo.B-Fc_GTb.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/UbIuv3bWTlKfOXYrTHjL/vLbh1wHXdHN8aQ4qgGvq/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.fetch.tools/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\":{\"withHideUSLogos\":{\"type\":\"reactHoc\",\"name\":\"withHideUSLogos\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useLocationData\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHideEULogos\":{\"type\":\"reactHoc\",\"name\":\"withHideEULogos\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withVarName\":{\"type\":\"reactHoc\",\"name\":\"withVarName\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DynamicLogo.map"],"mappings":"gIAKA,SAAgB,EAAgB,EAAK,CAAC,GAAK,CAAC,EAAa,GAAiBA,EAAS,CAAC,IAAI,EAAE,CAAC,EACgO,OAD9N,MAAc,EAC0L,SAD5J,CAAC,GAAG,CAC9E,IAAM,EAAK,MAAM,MAA3D,MAAM,kCAAkC,EAAA,CAA4B,KAAK,EAAK,EAAc,SAAS,EAAK,OAAO,EAAG,EAAgB,CAAC,IAAI,IAAI,CAAC,EAAQ,EAAgB,CAAC,IAAI,IAAI,CAAC,CAAG,OAAO,EAAM,CAAC,EAAgB,CAAC,IAAI,IAAI,CAAC,EAAE,QAAQ,MAAM,2BAA2B,CAAK,CAAE,CAAC,EAAE,CAAc,CAAE,EAAE,CAAC,CAAC,EAAS,EAAa,IAAO,EACrV,CAAqJ,SAAgB,EAAgB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAI,EAAgB,KAAK,EAAQ,EAAaC,EAAO,EAAoJ,OAAlJ,MAAc,CAAC,GAAG,EAAa,QAAQ,CAAC,IAAM,EAAO,EAAa,QAAQ,WAAc,GAAQ,GAAK,OAAM,EAAO,MAAM,QAAQ,OAA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