PageSourceSearch

https://realestateabroad.com/_next/static/chunks/app/layout-afc6aa000e08df90.js

js realestateabroad.com collected 2026-09-30 14:22:10 UTC 37,803 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{9739:function(e,t,s){Promise.resolve().then(s.t.bind(s,91654,23)),Promise.resolve().then(s.bind(s,3284)),Promise.resolve().then(s.bind(s,52196)),Promise.resolve().then(s.bind(s,46868)),Promise.resolve().then(s.bind(s,31383)),Promise.resolve().then(s.bind(s,24652)),Promise.resolve().then(s.bind(s,38951)),Promise.resolve().then(s.t.bind(s,75968,23)),Promise.resolve().then(s.t.bind(s,68881,23))},3284:function(e,t,s){"use strict";s.d(t,{AnalyticsProvider:function(){return l}});var r=s(75068),a=s(52142),i=s(60232);function l(){return(0,r.jsxs)(r.Fragment,{children:[i.J.dataFastWebsiteId&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.default,{id:"datafast-init",strategy:"beforeInteractive",children:"\n              window.datafast = window.datafast || function() {\n                window.datafast.q = window.datafast.q || [];\n                window.datafast.q.push(arguments);\n              };\n            "}),(0,r.jsx)(a.default,{defer:!0,"data-website-id":i.J.dataFastWebsiteId,"data-domain":i.J.dataFastDomain,src:"https://datafa.st/js/script.js",strategy:"afterInteractive"})]}),i.J.metaPixelId&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.default,{id:"meta-pixel",strategy:"afterInteractive",children:"\n              !function(f,b,e,v,n,t,s)\n              {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n              n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n              if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n              n.queue=[];t=b.createElement(e);t.async=!0;\n              t.src=v;s=b.getElementsByTagName(e)[0];\n              s.parentNode.insertBefore(t,s)}(window, document,'script',\n              'https://connect.facebook.net/en_US/fbevents.js');\n              fbq('init', '".concat(i.J.metaPixelId,"');\n              fbq('track', 'PageView');\n            ")}),(0,r.jsx)("noscript",{children:(0,r.jsx)("img",{height:"1",width:"1",style:{display:"none"},src:"https://www.facebook.com/tr?id=".concat(i.J.metaPixelId,"&ev=PageView&noscript=1"),alt:""})})]}),i.J.googleAdsId&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.default,{src:"https://www.googletagmanager.com/gtag/js?id=".concat(i.J.googleAdsId),strategy:"afterInteractive"}),(0,r.jsx)(a.default,{id:"google-ads",strategy:"afterInteractive",children:"\n              window.dataLayer = window.dataLayer || [];\n              function gtag(){dataLayer.push(arguments);}\n              gtag('js', new Date());\n              gtag('config', '".concat(i.J.googleAdsId,"');\n            ")})]})]})}},52196:function(e,t,s){"use strict";s.d(t,{ConditionalFooter:function(){return g}});
1var r=s(75068),a=s(3438),i=s(15307),l=s(65541),n=s(48621),o=s(27401),c=s(34116),d=s(20970),m=s(67683),u=s(54857);s(89179);var h=s(4573);(0,h.$)("359c38aaf9f758b015fabfd2569794406a2852ab"),(0,h.$)("fee1cdd8c113f5d0762053f6bb4c9da386987464");var x=(0,h.$)("8af2dced271b42a23dc9882a147bd946360542fa");function f(){let{toast:e}=(0,u.p)(),[t,s]=(0,i.useState)(""),[a,l]=(0,i.useState)(!1),[n,o]=(0,i.useState)(""),c=(0,i.useRef)(null),h=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e=()=>{if(h.current||!c.current)return;let t=window.turnstile;if(!t){setTimeout(e,100);return}try{let e=t.render(c.current,{sitekey:"0x4AAAAAACTQZKiMMriaQk34",callback:e=>{o(e)}});h.current=e}catch(e){}};return e(),()=>{if(h.current&&window.turnstile){try{window.turnstile.remove(h.current)}catch(e){}h.current=null}}},[]);let f=async r=>{if(r.preventDefault(),!n){e({title:"Verification Required",description:"Please complete the CAPTCHA verification.",variant:"destructive"});return}l(!0);try{let r=await x({email:t,turnstileToken:n});r.success?(e({title:"Subscribed!",description:"You've been subscribed to our newsletter."}),s("")):e({title:"Error",description:r.error||"Failed to subscribe. Please try again.",variant:"destructive"}),window.turnstile&&(window.turnstile.reset(),o(""))}catch(t){e({title:"Error",description:"An unexpected error occurred. Please try again.",variant:"destructive"}),window.turnstile&&(window.turnstile.reset(),o(""))}finally{l(!1)}};return(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Get Weekly Deal Flow Reports"}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mb-4",children:"Join 12,000+ investors getting Golden Visa updates, high-yield markets, and exclusive listings."}),(0,r.jsxs)("form",{onSubmit:f,className:"space-y-3",children:[(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(m.I,{type:"email",placeholder:"Your email address",value:t,onChange:e=>s(e.target.value),required:!0,className:"flex-1"}),(0,r.jsx)(d.z,{type:"submit",disabled:a||!n,children:a?"Subscribing...":"Subscribe"})]}),(0,r.jsx)("div",{ref:c,className:"flex justify-center"})]})]})}function p(e){let{countries:t=[],cities:s=[]}=e,[a,d]=(0,i.useState)(!1),m=t.slice(0,50).map(e=>({name:e.name,href:"/".concat(e.slug),count:e.count.toLocaleString()})),u=s.slice(0,50).map(e=>({name:e.name,country:e.countryName,href:"/".concat(e.countrySlug,"/").concat(e.slug)})),h=a?u:u.slice(0,12);return(0,r.jsx)("footer",{className:"bg-gray-900 text-white",children:(0,r.jsxs)("div",{className:"container mx-auto px-4 py-12",children:[(0,r.jsxs)("div",{className:"mb-12 pb-12 border-b border-gray-800",children:[(0,r.jsx)("h3",{className:"text-2xl font-bold mb-8",children:"Popular Destinations"}),(0,r.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6 gap-5",children:m.map(e=>(0,r.jsxs)(l.default,{href:e.href,className:"group hover:bg-gray-800 p-4 rounded-lg transition-all border border-transparent hover:border-gray-700 hover:shadow-lg",children:[(0,r.jsx)("div",{className:"text-sm font-semibold text-white group-hover:text-primary transition-colors",children:e.name}),(0,r.jsxs)("div",{className:"text-sm text-gray-300 mt-1.5",children:[e.count," properties"]})]},e.href))}),(0,r.jsx)("div",{className:"mt-8",children:(0,r.jsxs)(l.default,{href:"/countries",className:"inline-flex items-center text-sm font-medium text-primary hover:underline",children:["View All ",t.length," Countries →"]})})]}),(0,r.jsxs)("div",{className:"mb-12 pb-12 border-b border-gray-800",children:[(0,r.jsx)("h3",{className:"text-2xl font-bold mb-6",children:"Popular Cities"}),(0,r.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-x-8 gap-y-3",children:h.map(e=>(0,r.jsxs)(l.default,{href:e.href,className:"group block",children:[(0,r.jsx)("div",{className:"text-sm font-medium text-white group-hover:text-primary transition-colors",children:e.name}),(0,r.jsx)("div",{className:"text-xs text-gray-400 mt-0.5",children:e.country})]},e.href))}),(0,r.jsxs)("div",{className:"mt-6 flex items-center gap-4",children:[(0,r.jsx)("button",{onClick:()=>d(!a),className:"inline-flex items-center gap-2 text-sm font-medium text-primary hover:underline transition-colors",children:a?(0,r.jsxs)(r.Fragment,{children:["Show Less Cities",(0,r.jsx)(o.Z,{className:"h-4 w-4"})]}):(0,r.jsxs)(r.Fragment,{children:["Show More Cities (",u.length-12," more)",(0,r.jsx)(c.Z,{className:"h-4 w-4"})]})}),(0,r.jsx)("span",{className:"text-gray-600",children:"\xb7"}),(0,r.jsx)(l.default,{href:"/cities",className:"inline-flex items-center text-sm font-medium text-primary hover:underline",children:"View All Cities →"})]})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(l.default,{href:"/",className:"flex items-center mb-4",children:(0,r.jsx)(n.default,{src:"/real-estate-abroad-logo-white.webp",alt:"RealEstate Abroad",width:200,height:40,className:"h-10 w-auto"})}),(0,r.jsx)("p",{className:"text-gray-400 mb-4",children:"Your premier destination for international property investments."}),(0,r.jsxs)("div",{className:"flex space-x-4",children:[(0,r.jsx)("a",{href:"#","aria-label":"Facebook",children:(0,r.jsx)("svg",{className:"h-6 w-6 text-gray-400 hover:text-white",f
1ill:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z"})})}),(0,r.jsx)("a",{href:"#","aria-label":"Instagram",children:(0,r.jsx)("svg",{className:"h-6 w-6 text-gray-400 hover:text-white",fill:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M12.315 2c2.43 0 2.784.013 3.808.06 1.064.049 1.791.218 2.427.465a4.902 4.902 0 011.772 1.153 4.902 4.902 0 011.153 1.772c.247.636.416 1.363.465 2.427.048 1.067.06 1.407.06 4.123v.08c0 2.643-.012 2.987-.06 4.043-.049 1.064-.218 1.791-.465 2.427a4.902 4.902 0 01-1.153 1.772 4.902 4.902 0 01-1.772 1.153c-.636.247-1.363.416-2.427.465-1.067.048-1.407.06-4.123.06h-.08c-2.643 0-2.987-.012-4.043-.06-1.064-.049-1.791-.218-2.427-.465a4.902 4.902 0 01-1.772-1.153 4.902 4.902 0 01-1.153-1.772c-.247-.636-.416-1.363-.465-2.427-.047-1.024-.06-1.379-.06-3.808v-.63c0-2.43.013-2.784.06-3.808.049-1.064.218-1.791.465-2.427a4.902 4.902 0 011.153-1.772A4.902 4.902 0 015.45 2.525c.636-.247 1.363-.416 2.427-.465C8.901 2.013 9.256 2 11.685 2h.63zm-.081 1.802h-.468c-2.456 0-2.784.011-3.807.058-.975.045-1.504.207-1.857.344-.467.182-.8.398-1.15.748-.35.35-.566.683-.748 1.15-.137.353-.3.882-.344 1.857-.047 1.023-.058 1.351-.058 3.807v.468c0 2.456.011 2.784.058 3.807.045.975.207 1.504.344 1.857.182.466.399.8.748 1.15.35.35.683.566 1.15.748.353.137.882.3 1.857.344 1.054.048 1.37.058 4.041.058h.08c2.597 0 2.917-.01 3.96-.058.976-.045 1.505-.207 1.858-.344.466-.182.8-.398 1.15-.748.35-.35.566-.683.748-1.15.137-.353.3-.882.344-1.857.048-1.055.058-1.37.058-4.041v-.08c0-2.597-.01-2.917-.058-3.96-.045-.976-.207-1.505-.344-1.858a3.097 3.097 0 00-.748-1.15 3.098 3.098 0 00-1.15-.748c-.353-.137-.882-.3-1.857-.344-1.023-.047-1.351-.058-3.807-.058zM12 6.865a5.135 5.135 0 110 10.27 5.135 5.135 0 010-10.27zm0 1.802a3.333 3.333 0 100 6.666 3.333 3.333 0 000-6.666zm5.338-3.205a1.2 1.2 0 110 2.4 1.2 1.2 0 010-2.4z"})})}),(0,r.jsx)("a",{href:"#","aria-label":"Twitter",children:(0,r.jsx)("svg",{className:"h-6 w-6 text-gray-400 hover:text-white",fill:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84"})})}),(0,r.jsx)("a",{href:"#","aria-label":"LinkedIn",children:(0,r.jsx)("svg",{className:"h-6 w-6 text-gray-400 hover:text-white",fill:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"})})})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-lg font-semibold mb-4",children:"Quick Links"}),(0,r.jsxs)("ul",{className:"space-y-2",children:[(0,r.jsx)("li",{children:(0,r.jsx)(l.default,{href:"/countries",className:"text-gray-400 hover:text-white",children:"Countries"})}),(0,r.jsx)("li",{children:(0,r.jsx)(l.default,{href:"/cities",className:"text-gray-400 hover:text-white",children:"Cities"})}),(0,r.jsx)("li",{children:(0,r.jsx)(l.default,{href:"/blog",className:"text-gray-400 hover:text-white",children:"Blog"})})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-lg font-semibold mb-4",children:"Resources"}),(0,r.jsxs)("ul",{className:"space-y-2",children:[(0,r.jsx)("li",{children:(0,r.jsx)(l.default,{href:"/tools/mortgage-calculator",className:"text-gray-400 hover:text-white",children:"Mortgage Calculator"})}),(0,r.jsx)("li",{children:(0,r.jsx)(l.default,{href:"/tools/roi-calculator",className:"text-gray-400 hover:text-white",children:"ROI Calculator"})}),(0,r.jsx)("li",{children:(0,r.jsx)(l.default,{href:"/tools/legal-considerations",className:"text-gray-400 hover:text-white",children:"Legal Considerations"})}),(0,r.jsx)("li",{children:(0,r.jsx)(l.default,{href:"/financing",className:"text-gray-400 hover:text-white",children:"Financing Options"})}),(0,r.jsx)("li",{children:(0,r.jsx)(l.default,{href:"/consultation",className:"text-gray-400 hover:text-white",children:"Free Consultation"})}),(0,r.jsx)("li",{children:(0,r.jsx)(l.default,{href:"/premium-listing",className:"text-gray-400 hover:text-white",children:"Premium Listing"})})]})]}),(0,r.jsx)("div",{children:(0,r.jsx)(f,{})})]}),(0,r.jsxs)("div",{className:"border-t border-gray-800 mt-8 pt-8 text-center text-gray-400",children:[(0,r.jsxs)("p",{children:["\xa9 ",new Date().getFullYear()," RealEstateAbroad.com. All rights reserved."]}),(0,r.jsxs)("div",{className:"mt-2 flex flex-wrap justify-center gap-4",children:[(0,r.jsx)(l.default,{href:"/privacy-policy",className:"hover:text-white",children:"Privacy Policy"}),(0,r.jsx)(l.default,{href:"/terms-of-service",className:"hover:text-white",children:"Terms of Service"}),(0,r.jsx)(l.default,{href:"/cookie-policy",className:"hover:text-white",children:"Cookie Policy"}),(0,r.jsx)(l.default,{href:"/gdpr-compliance",className:"hover:text-white",children:"GDPR Compliance"}),(0,r.jsx)(l.default,{href:"/disclaimer",className:"hover:text-white",children:"Disclaimer"}),(0,r.jsx)(l.default,{href:"/accessibility",className:"hover:text-white",children:"Accessibility"}),(0,r.jsx)(l.default,{href:"/contact",className:"hover:text-white",children:"Contact Us"})]})]})]})})}
1function g(e){let{countries:t,cities:s}=e;return"/get-started"===(0,a.usePathname)()?null:(0,r.jsx)(p,{countries:t,cities:s})}},46868:function(e,t,s){"use strict";s.d(t,{ErrorBoundary:function(){return c}});var r=s(75068),a=s(15307),i=s(20970),l=s(64267),n=s(27839),o=s(49270);class c extends a.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.logErrorToService(e,t),this.setState({hasError:!0,error:e,errorInfo:t})}render(){if(this.state.hasError){if(this.props.fallback){let e=this.props.fallback;return(0,r.jsx)(e,{error:this.state.error,resetError:this.resetError})}return(0,r.jsx)("div",{className:"min-h-screen flex items-center justify-center p-4 bg-gray-50",children:(0,r.jsxs)(l.Zb,{className:"w-full max-w-md",children:[(0,r.jsxs)(l.Ol,{className:"text-center",children:[(0,r.jsx)("div",{className:"mx-auto w-12 h-12 bg-red-100 rounded-full flex items-center justify-center mb-4",children:(0,r.jsx)(n.Z,{className:"w-6 h-6 text-red-600"})}),(0,r.jsx)(l.ll,{className:"text-xl font-semibold text-gray-900",children:"Something went wrong"})]}),(0,r.jsxs)(l.aY,{className:"text-center space-y-4",children:[(0,r.jsx)("p",{className:"text-gray-600",children:"We're sorry, but something unexpected happened. Please try refreshing the page."}),!1,(0,r.jsxs)("div",{className:"flex gap-2 justify-center",children:[(0,r.jsxs)(i.z,{onClick:this.resetError,variant:"outline",children:[(0,r.jsx)(o.Z,{className:"w-4 h-4 mr-2"}),"Try Again"]}),(0,r.jsx)(i.z,{onClick:()=>window.location.reload(),children:"Refresh Page"})]})]})]})})}return this.props.children}constructor(e){super(e),this.logErrorToService=async(e,t)=>{},this.resetError=()=>{this.setState({hasError:!1,error:void 0,errorInfo:void 0})},this.state={hasError:!1}}}},31383:function(e,t,s){"use strict";s.d(t,{default:function(){return E}});var r=s(75068),a=s(15307),i=s(65541),l=s(48621),n=s(3438),o=s(20970),c=s(34116),d=s(72834),m=s(8724),u=s(32508),h=s(88866),x=s(95616),f=s(14281),p=s(21356),g=s(69053),v=s(49257);let b=x.fC,y=x.xz;x.ZA,x.Uv,x.Tr,x.Ee,a.forwardRef((e,t)=>{let{className:s,inset:a,children:i,...l}=e;return(0,r.jsxs)(x.fF,{ref:t,className:(0,v.cn)("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",a&&"pl-8",s),...l,children:[i,(0,r.jsx)(f.Z,{className:"ml-auto"})]})}).displayName=x.fF.displayName,a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(x.tu,{ref:t,className:(0,v.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...a})}).displayName=x.tu.displayName;let j=a.forwardRef((e,t)=>{let{className:s,sideOffset:a=4,...i}=e;return(0,r.jsx)(x.Uv,{children:(0,r.jsx)(x.VY,{ref:t,sideOffset:a,className:(0,v.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...i})})});j.displayName=x.VY.displayName;let N=a.forwardRef((e,t)=>{let{className:s,inset:a,...i}=e;return(0,r.jsx)(x.ck,{ref:t,className:(0,v.cn)("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",a&&"pl-8",s),...i})});N.displayName=x.ck.displayName,a.forwardRef((e,t)=>
1{let{className:s,children:a,checked:i,...l}=e;return(0,r.jsxs)(x.oC,{ref:t,className:(0,v.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),checked:i,...l,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(x.wU,{children:(0,r.jsx)(p.Z,{className:"h-4 w-4"})})}),a]})}).displayName=x.oC.displayName,a.forwardRef((e,t)=>{let{className:s,children:a,...i}=e;return(0,r.jsxs)(x.Rk,{ref:t,className:(0,v.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...i,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(x.wU,{children:(0,r.jsx)(g.Z,{className:"h-2 w-2 fill-current"})})}),a]})}).displayName=x.Rk.displayName;let w=a.forwardRef((e,t)=>{let{className:s,inset:a,...i}=e;return(0,r.jsx)(x.__,{ref:t,className:(0,v.cn)("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",s),...i})});w.displayName=x.__.displayName;let C=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(x.Z0,{ref:t,className:(0,v.cn)("-mx-1 my-1 h-px bg-muted",s),...a})});C.displayName=x.Z0.displayName;var k=s(43810);let A=[{title:"Home",href:"/"},{title:"Buy Properties",href:"#",megaMenu:!0,submenu:[{title:"Countries",href:"/countries"},{title:"Cities",href:"/cities"}]},{title:"Blog",href:"/blog"},{title:"News",href:"/news"},{title:"Tools",href:"#",submenu:[{title:"Mortgage Calculator",href:"/tools/mortgage-calculator"},{title:"ROI Calculator",href:"/tools/roi-calculator"},{title:"Legal Considerations",href:"/tools/legal-considerations"},{title:"Property Valuation",href:"/tools/property-valuation"},{title:"Cost of Living",href:"/tools/cost-of-living"}]},{title:"Resources",href:"#",submenu:[{title:"Financing",href:"/financing"},{title:"Market Analysis",href:"/analyze"},{title:"Consultation",href:"/consultation"}]}];function E(e){let{countries:t=[],cities:s=[],totalProperties:x=21e4}=e,[f,p]=(0,a.useState)(!1),[g,v]=(0,a.useState)(null),[E,S]=(0,a.useState)(!1),[T,_]=(0,a.useState)(null),[I,P]=(0,a.useState)(!0),D=(0,k.createClientComponentClient)();(0,n.useRouter)(),(0,n.usePathname)();let R=t.slice(0,10).map(e=>({title:e.name,href:"/".concat(e.slug),count:e.count.toLocaleString()})),z=s.slice(0,50).map(e=>({title:e.name,href:"/".concat(e.countrySlug,"/").concat(e.slug),country:e.countryName})),L=x>=1e3?"".concat(Math.floor(x/1e3),"k+"):x.toLocaleString();(0,a.useEffect)(()=>{let e=()=>{window.scrollY>10?S(!0):S(!1)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,a.useEffect)(()=>{(async()=>{P(!0);try{let{data:{session:e}}=await D.auth.getSession();(null==e?void 0:e.user)&&_(e.user)}catch(e){}finally{P(!1)}})();let{data:{subscription:e}}=D.auth.onAuthStateChange((e,t)=>{_((null==t?void 0:t.user)||null)});return()=>{e.unsubscribe()}},[D]);let M=e=>{v(g===e?null:e)},O=async()=>{try{await D.auth.signOut(),_(null),window.location.href="/"}catch(e){}},F=(e,t)=>{"/analyze"===t&&(e.preventDefault(),D.auth.getSession().then(e=>{let{data:{session:s}}=e;s?window.location.href=t:window.location.href="/sign-in?redirect=".concat(encodeURIComponent(t))}))},B=e=>e.map((e,t)=>e.isHeader?(0,r.jsx)("div",{className:"px-4 py-2 text-xs font-bold text-gray-500 uppercase tracking-wide",children:e.title},"".concat(e.title,"-").concat(t)):e.isDivider?(0,r.jsx)("div",{className:"my-1 border-t border-gray-200"},"divider-".concat(t)):(0,r.jsx)(i.default,{href:e.href,className:"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-primary transition-colors",onClick:t=>{F(t,e.href),p(!1)},children:e.title},e.title));return(0,r.jsxs)("header",{className:"sticky top-0 z-50 bg-white border-b border-gray-200 ".concat(E?"shadow-sm":""),children:[(0,r.jsxs)("div",{className:"container mx-auto px-4 flex justify-between items-center h-16",children:[(0,r.jsx)(i.default,{href:"/",className:"flex items-center",children:(0,r.jsx)("div",{className:"relative h-10 w-auto",children:(0,r.jsx)(l.default,{src:"/real-estate-abroad-logo-black.webp",alt:"RealEstate Abroad",width:200,height:40,className:"h-10 w-auto"})})}),(0,r.jsx)("nav",{className:"hidden md:flex items-center space-x-6",children:A.map(e=>(0,r.jsxs)("div",{className:"relative group",children:[e.submenu?(0,r.jsxs)("button",{className:"flex items-center text-gray-700 hover:text-primary font-medium transition-colors",onClick:()=>M(e.title),children:[e.title,(0,r.jsx)(c.Z,{className:"ml-1 h-4 w-4 transition-transform group-hover:rotate-180"})]}):(0,r.jsx)(i.default,{href:e.href,className:"text-gray-700 hover:text-primary font-medium transition-colors",onClick:t=>F(t,e.href),children:e.title}),e.megaMenu&&e.submenu&&(0,r.jsx)("div",{className:"absolute left-0 mt-2 w-[750px] bg-white shadow-xl rounded-lg overflow-hidden z-20 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-300 transform origin-top scale-95 group-hover:scale-100 border border-gray-100",children:(0,r.jsxs)("div",{className:"p-6 grid grid-cols-3 gap-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-sm font-bold text-gray-900 mb-3 uppercase tracking-wide",children:"Top Countries"}),(0,r.jsxs)("div",{className:"space-y-2",children:[R.map(e=>(0,r.jsxs)(i.default,{href:e.href,className:"block group/item p-1.5 rounded-md hover:bg-gray-50 transition-all",onClick:()=>p(!1),children:[(0,r.jsx)("div",{className:"text-sm font-semibold text-gray-800 group-hover/item:text-primary transition-colors",children:e.title}),(0,r.jsxs)("div",{className:"text-xs text-gray-600 mt-0.5",children:[e.count," properties"]})]},e.href)),(0,r.jsx)(i.default,{href:"/countries",className:"block text-sm font-medium text-primary hover:underline mt-3 ml-1.5",children:"View All Countries →"})]})]}),(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("h3",{className:"text-sm font-bold text-gray-900 mb-3 uppercase tracking-wide",children:"Popular Cities"}),(0,r.jsx)("div",{className:"max-h-[400px] overflow-y-auto pr-2 scrollbar-thin",children:(0,r.jsx)("div",{className:"grid grid-cols-2 gap-x-4 gap-y-2",children:z.map(e=>(0,r.jsxs)(i.default,{href:e.href,className:"block group/item p-1.5 rounded-md hover:bg-gray-50 transition-all",onClick:()=>p(!1),children:[(0,r.jsx)("div",{className:"text-sm font-semibold text-gray-800 group-hover/item:text-primary transition-colors",children:e.title}),(0,r.jsx)("div",{className:"text-xs text-gray-600 mt-0.5",children:e.country})]},e.href))})}),(0,r.jsx)(i.default,{href:"/cities",className:"block text-sm font-medium text-primary hover:underline mt-3 ml-1.5",children:"View All Cities →"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-sm font-bold text-gray-900 mb-3 uppercase tracking-wide",children:"Browse"}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(i.default,{href:"/for-sale",className:"block text-sm font-semibold text-gray-700 hover:text-primary transition-colors p-1.5 rounded-md hover:bg-gray-50",children:"All Properties"}),(0,r.jsx)(i.default,{href:"/countries",className:"block text-sm font-semibold text-gray-700 hover:text-primary transition-colors p-1.5 rounded-md hover:bg-gray-50",children:"By Country"}),(0,r.jsx)(i.default,{href:"/cities",className:"block text-sm font-semibold text-gray-700 hover:text-primary transition-colors p-1.5 rounded-md hover:bg-gray-50",children:"By City"})]}),(0,r.jsxs)("div",{className:"mt-4 p-3 bg-gradient-to-br from-primary/10 via-blue-50 to-primary/5 rounded-lg border border-primary/20",children:[(0,r.jsxs)("p",{className:"text-sm font-bold text-gray-900 mb-1",children:[L," Properties"]}),(0,r.jsxs)("p",{className:"text-xs text-gray-600 leading-relaxed",children:["Across ",t.length,"+ countries w
1orldwide"]})]})]})]})}),!e.megaMenu&&e.submenu&&(0,r.jsx)("div",{className:"absolute left-0 mt-2 w-48 bg-white shadow-lg rounded-md overflow-hidden z-20 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-300 transform origin-top scale-95 group-hover:scale-100",children:(0,r.jsx)("div",{className:"py-2",children:B(e.submenu)})})]},e.title))}),(0,r.jsx)("div",{className:"hidden md:flex items-center space-x-4",children:I?(0,r.jsx)("div",{className:"h-10 w-10 animate-pulse bg-gray-200 rounded-full"}):T?(0,r.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,r.jsx)("a",{href:"tel:+14697514182",className:"flex items-center text-sm text-gray-600 hover:text-primary",children:"\uD83D\uDCDE +1 (469) 751-4182"}),(0,r.jsx)(o.z,{variant:"outline",size:"sm",className:"text-gray-700 bg-transparent",onClick:e=>{e.preventDefault(),window.location.href="/analyze"},children:"Analyze"}),(0,r.jsxs)(b,{children:[(0,r.jsx)(y,{asChild:!0,children:(0,r.jsx)(o.z,{variant:"ghost",size:"icon",className:"rounded-full",children:(0,r.jsx)(d.Z,{className:"h-5 w-5"})})}),(0,r.jsxs)(j,{align:"end",className:"w-56",children:[(0,r.jsx)(w,{children:(0,r.jsx)("div",{className:"flex flex-col",children:(0,r.jsx)("span",{className:"text-xs text-gray-500",children:T.email})})}),(0,r.jsx)(C,{}),(0,r.jsxs)(N,{onClick:O,className:"cursor-pointer text-red-600",children:[(0,r.jsx)(m.Z,{className:"h-4 w-4 mr-2"}),"Sign out"]})]})]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("a",{href:"tel:+14697514182",className:"hidden md:flex items-center text-sm text-gray-600 hover:text-primary",children:"\uD83D\uDCDE +1 (469) 751-4182"}),(0,r.jsx)(i.default,{href:"/sign-in",children:(0,r.jsx)(o.z,{variant:"outline",className:"border-gray-300 text-gray-700 hover:border-primary hover:text-primary bg-transparent",children:"Sign In"})}),(0,r.jsx)(i.default,{href:"/submit-property",children:(0,r.jsx)(o.z,{className:"bg-blue-700 hover:bg-blue-800",children:"Submit Property"})})]})}),(0,r.jsx)("button",{className:"md:hidden",onClick:()=>
1p(!f),children:f?(0,r.jsx)(u.Z,{className:"h-6 w-6"}):(0,r.jsx)(h.Z,{className:"h-6 w-6"})})]}),f&&(0,r.jsx)("div",{className:"md:hidden bg-white border-t border-gray-200",children:(0,r.jsxs)("div",{className:"container mx-auto px-4 py-4",children:[(0,r.jsx)("nav",{className:"space-y-4",children:A.map(e=>(0,r.jsx)("div",{className:"py-2",children:e.submenu?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("button",{className:"flex items-center justify-between w-full text-left text-gray-700 font-medium",onClick:()=>M(e.title),children:[e.title,(0,r.jsx)(c.Z,{className:"h-4 w-4 transition-transform ".concat(g===e.title?"rotate-180":"")})]}),g===e.title&&(0,r.jsx)("div",{className:"mt-2 ml-4 space-y-3",children:e.megaMenu?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-xs font-bold text-gray-500 uppercase mb-2",children:"Top Countries"}),(0,r.jsx)("div",{className:"space-y-2",children:R.slice(0,4).map(e=>(0,r.jsxs)(i.default,{href:e.href,className:"block py-1",onClick:()=>p(!1),children:[(0,r.jsx)("div",{className:"text-sm font-medium text-gray-700",children:e.title}),(0,r.jsxs)("div",{className:"text-xs text-gray-500",children:[e.count," properties"]})]},e.href))})]}),(0,r.jsxs)("div",{className:"pt-2 border-t border-gray-100",children:[(0,r.jsx)("p",{className:"text-xs font-bold text-gray-500 uppercase mb-2",children:"Popular Cities"}),(0,r.jsx)("div",{className:"space-y-2",children:z.slice(0,6).map(e=>(0,r.jsxs)(i.default,{href:e.href,className:"block py-1",onClick:()=>p(!1),children:[(0,r.jsx)("div",{className:"text-sm font-medium text-gray-700",children:e.title}),(0,r.jsx)("div",{className:"text-xs text-gray-500",children:e.country})]},e.href))})]}),(0,r.jsxs)("div",{className:"pt-2 border-t border-gray-100 space-y-2",children:[(0,r.jsx)(i.default,{href:"/countries",className:"block py-2 text-sm font-medium text-primary hover:underline",onClick:()=>p(!1),children:"View All Countries →"}),(0,r.jsx)(i.default,{href:"/cities",className:"block py-2 text-sm font-medium text-primary hover:underline",onClick:()=>p(!1),children:"View All Cities →"})]})]}):e.submenu.map((e,t)=>e.isHeader?(0,r.jsx)("div",{className:"py-2 text-xs font-bold text-gray-500 uppercase tracking-wide",children:e.title},"".concat(e.title,"-").concat(t)):e.isDivider?(0,r.jsx)("div",{className:"my-2 border-t border-gray-200"},"divider-".concat(t)):(0,r.jsx)(i.default,{href:e.href,className:"block py-2 text-gray-600 hover:text-primary transition-colors",onClick:t=>{F(t,e.href),p(!1)},children:e.title},e.title))})]}):(0,r.jsx)(i.default,{href:e.href,className:"block text-gray-700 font-medium hover:text-primary transition-colors",onClick:t=>{F(t,e.href),p(!1)},children:e.title})},e.title))}),(0,r.jsxs)("div",{className:"mt-6 space-y-4",children:[(0,r.jsx)("a",{href:"tel:+14697514182",className:"flex items-center gap-2 text-sm text-gray-600",children:"\uD83D\uDCDE +1 (469) 751-4182"}),T?(0,r.jsx)(o.z,{onClick:O,variant:"outline",className:"w-full bg-transparent",children:"Sign Out"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.default,{href:"/sign-in",className:"block",children:(0,r.jsx)(o.z,{variant:"outline",className:"w-full bg-transparent",children:"Sign In"})}),(0,r.jsx)(i.default,{href:"/sign-up",className:"block",children:(0,r.jsx)(o.z,{variant:"outline",className:"w-full bg-transparent",children:"Sign Up"})}),(0,r.jsx)(i.default,{href:"/submit-property",className:"block",children:(0,r.jsx)(o.z,{className:"w-full bg-blue-700 hover:bg-blue-800",children:"Submit Property"})})]})]})]})})]})}},24652:function(e,t,s){"use strict";s.d(t,{Toaster:function(){return g}});var r=s(75068),a=s(15307),i=s(40899),l=s(65253),n=s(32508),o=s(49257);let c=i.zt,d=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(i.l_,{ref:t,className:(0,o.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",s),...a})});d.displayName=i.l_.displayName;let m=(0,l.j)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),u=a.forwardRef((e,t)=>
1{let{className:s,variant:a,...l}=e;return(0,r.jsx)(i.fC,{ref:t,className:(0,o.cn)(m({variant:a}),s),...l})});u.displayName=i.fC.displayName,a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(i.aU,{ref:t,className:(0,o.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",s),...a})}).displayName=i.aU.displayName;let h=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(i.x8,{ref:t,className:(0,o.cn)("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",s),"toast-close":"",...a,children:(0,r.jsx)(n.Z,{className:"h-4 w-4"})})});h.displayName=i.x8.displayName;let x=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(i.Dx,{ref:t,className:(0,o.cn)("text-sm font-semibold",s),...a})});x.displayName=i.Dx.displayName;let f=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(i.dk,{ref:t,className:(0,o.cn)("text-sm opacity-90",s),...a})});f.displayName=i.dk.displayName;var p=s(54857);function g(){let{toasts:e}=(0,p.p)();return(0,r.jsxs)(c,{children:[e.map(e=>{let{id:t,title:s,description:a,action:i,...l}=e;return(0,r.jsxs)(u,{...l,children:[(0,r.jsxs)("div",{className:"grid gap-1",children:[s&&(0,r.jsx)(x,{children:s}),a&&(0,r.jsx)(f,{children:a})]}),i,(0,r.jsx)(h,{})]},t)}),(0,r.jsx)(d,{})]})}},54857:function(e,t,s){"use strict";s.d(t,{p:function(){return n}});var r=s(15307);let a=0,i=new Map,l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,5)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=t;if(s)i.has(s)&&(clearTimeout(i.get(s)),i.delete(s));else for(let[e,t]of Array.from(i.entries()))clearTimeout(t),i.delete(e);return{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}};function n(){let[e,t]=(0,r.useState)({toasts:[]}),s=(0,r.useCallback)(e=>{t(t=>l(t,e))},[]),n=(0,r.useCallback)(e=>{let{...t}=e,r=(a=(a+1)%Number.MAX_VALUE).toString(),i=()=>s({type:"DISMISS_TOAST",toastId:r});return s({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||i()}}}),{id:r,dismiss:i,update:e=>s({type:"UPDATE_TOAST",toast:{...e,id:r}})}},[s]),o=(0,r.useCallback)(e=>{s({type:"DISMISS_TOAST",toastId:e})},[s]);return(0,r.useEffect)(()=>{let t=e=>{if(e.open){let t=setTimeout(()=>{s({type:"DISMISS_TOAST",toastId:e.id})},5e3);i.set(e.id,t)}};return e.toasts.forEach(e=>{t(e)}),()=>{for(let[,e]of Array.from(i.entries()))clearTimeout(e);i.clear()}},[e.toasts,s]),{...e,toast:n,dismiss:o}}},60232:function(e,t,s){"use strict";s.d(t,{J:function(){return a}});var r=s(28070);let a={name:r.env.NEXT_PUBLIC_SITE_NAME||"Real Estate Abroad",domain:r.env.NEXT_PUBLIC_DOMAIN||"realestateabroad.com",url:"https://realestateabroad.com",email:r.env.NEXT_PUBLIC_CONTACT_EMAIL||"[email protected]",phone:r.env.NEXT_PUBLIC_CONTACT_PHONE||"+1 (469) 751-4182",description:r.env.NEXT_PUBLIC_SITE_DESCRIPTION||"Find your dream property abroad: 210,000+ verified international listings in 20+ countries. Luxury villas, investment apartments, beachfront homes. Expert consultation, market analytics & financing solutions available.",dataFastWebsiteId:"dfid_xq1jgHY5uvIipvCXaLzlI",dataFastDomain:"realestateabroad.com",metaPixelId:"890682317146970",googleAdsId:"AW-17834011070",googleAdsBeginCheckoutLabel:"IEKjCOjFi_wbEL7T9bdC",googleAdsPurchaseLabel:"x7x5CNnai_
1wbEL7T9bdC",googleAdsContactFormLabel:"CcSdCMqcyKMcEL7T9bdC",turnstileSiteKey:"0x4AAAAAACTQZKiMMriaQk34"};r.env.STRIPE_SECRET_KEY,r.env.STRIPE_WEBHOOK_SECRET,r.env.RESEND_API_KEY,r.env.DATAFAST_API_KEY,r.env.META_CONVERSIONS_API_TOKEN,r.env.META_PIXEL_ID,r.env.TURNSTILE_SECRET_KEY,r.env.SLACK_WEBHOOK_URL},91654:function(){}},function(e){e.O(0,[5843,303,743,382,4762,283,5152,4786,8724,5968,2773,8280,9217,5303,1488,1744],function(){return e(e.s=9739)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.