{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/yJZdgHJ36yyIny8HmQ2A/eFwIVOI0TZ1l2k9uP0NS/Current_location.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{fontControls}from\"https://framer.com/m/framer/default-utils.js@^0.45.0\";export function CityLocation(props){const{font,color,alignment}=props;const[location,setLocation]=React.useState(null);React.useEffect(()=>{async function fetchCityLocation(){try{const response=await fetch(\"https://ipinfo.io/json\");const data=await response.json();if(data.city){setLocation(data.city);}else{console.error(\"Unable to fetch city location.\");}}catch(error){console.error(\"Error fetching city location:\",error);}}fetchCityLocation();},[]);const textStyle={...font,color,textAlign:alignment};return /*#__PURE__*/_jsx(\"div\",{style:textStyle,children:location?location:\"...\"});}CityLocation.defaultProps={font:fontControls.defaultProps,color:\"#000\",alignment:\"left\"};addPropertyControls(CityLocation,{...fontControls.propertyControls,color:{title:\"Color\",type:ControlType.Color,defaultValue:CityLocation.defaultProps.color},font:{// @ts-expect-error \u2013\u00A0Internal\ntype:ControlType.Font,controls:\"extended\"},alignment:{title:\"Alignment\",type:ControlType.Enum,options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:CityLocation.defaultProps.alignment}});\nexport const __FramerMetadata__ = {\"exports\":{\"CityLocation\":{\"type\":\"reactComponent\",\"name\":\"CityLocation\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Current_location.map"],
  "mappings": "8GAAiN,SAASA,EAAaC,EAAM,CAAC,GAAK,CAAC,KAAAC,EAAK,MAAAC,EAAM,UAAAC,CAAS,EAAEH,EAAW,CAACI,EAASC,CAAW,EAAQC,EAAS,IAAI,EAAQC,EAAU,IAAI,CAAC,eAAeC,GAAmB,CAAC,GAAG,CAAsD,IAAMC,EAAK,MAAjD,MAAM,MAAM,wBAAwB,GAA4B,KAAK,EAAKA,EAAK,KAAMJ,EAAYI,EAAK,IAAI,EAAQ,QAAQ,MAAM,gCAAgC,CAAG,OAAOC,EAAM,CAAC,QAAQ,MAAM,gCAAgCA,CAAK,CAAE,CAAC,CAACF,EAAkB,CAAE,EAAE,CAAC,CAAC,EAAE,IAAMG,EAAU,CAAC,GAAGV,EAAK,MAAAC,EAAM,UAAUC,CAAS,EAAE,OAAoBS,EAAK,MAAM,CAAC,MAAMD,EAAU,SAASP,GAAkB,KAAK,CAAC,CAAE,CAACL,EAAa,aAAa,CAAC,KAAKc,EAAa,aAAa,MAAM,OAAO,UAAU,MAAM,EAAEC,EAAoBf,EAAa,CAAC,GAAGc,EAAa,iBAAiB,MAAM,CAAC,MAAM,QAAQ,KAAKE,EAAY,MAAM,aAAahB,EAAa,aAAa,KAAK,EAAE,KAAK,CACjhC,KAAKgB,EAAY,KAAK,SAAS,UAAU,EAAE,UAAU,CAAC,MAAM,YAAY,KAAKA,EAAY,KAAK,QAAQ,CAAC,OAAO,SAAS,OAAO,EAAE,aAAa,CAAC,OAAO,SAAS,OAAO,EAAE,aAAahB,EAAa,aAAa,SAAS,CAAC,CAAC",
  "names": ["CityLocation", "props", "font", "color", "alignment", "location", "setLocation", "ye", "ue", "fetchCityLocation", "data", "error", "textStyle", "p", "fontControls", "addPropertyControls", "ControlType"]
}
