import React, { useState, useEffect } from 'react'; import { useNavigate } from 'react-router-dom'; import { Icons } from './landing/constants'; import MapBg from '../assets/images/hyper_intelligence_bg_image.jpg'; import IntelligenceSidePanel from './dashboard/IntelligenceSidePanel'; // Updated with Residential & Commercial mix const hotspots = [ { id: 1, top: '45%', left: '65%', address: 'Preston Royal Village', type: 'Commercial', problem: 'Roof Membrane Uplift', gain: '+$8.5M Value', weather: 'Hail Expected', status: 'Urgent', specs: { built: '1998', maintenance: '5 years since last coating' }, management: { name: 'Sterling Properties', contact: 'Sign in for contact details' }, photos: [ { id: 1, url: '/assets/images/properties/Warehouse_Roof_Aerial.jpg', caption: 'Warehouse Roof Aerial' }, { id: 2, url: '/assets/images/properties/Office_Roof_Top_View.jpg', caption: 'Office Roof Top' } ] }, { id: 2, top: '28%', left: '42%', address: 'Highland Park Place', type: 'Commercial', problem: 'Critical Membrane Failure', gain: '$22.5 Million', weather: 'Clear', status: 'Monitoring', specs: { built: '1982', maintenance: '20 years since last roof replacement permit' }, management: { name: 'Goldman Group', contact: 'Sign in for contact details' }, photos: [ { id: 3, url: '/assets/images/properties/Mall_Rooftop_HVAC_Units.jpg', caption: 'Rooftop HVAC Units' } ] }, { id: 3, top: '55%', left: '25%', address: '4200 Beverly Dr', type: 'Residential', problem: 'Severe Hail Impact', gain: '$1.1M', weather: 'Rain Soon', status: 'Action Required', specs: { roofSize: '62 sq Roof', eventHistory: '8 years since last known hail event' }, owner: { fico: '715', profile: 'Early Adopter / Long-term value' }, photos: [ { id: 4, url: '/assets/images/properties/Hail_Damaged_Shingles.jpg', caption: 'Hail Damage Close-up' }, { id: 5, url: '/assets/images/properties/Broken_Roof_Surface.jpg', caption: 'Broken Surface' } ] }, { id: 4, top: '70%', left: '48%', address: '3505 Lexington Ave', type: 'Residential', problem: 'Asphalt Shingle Loss', gain: '+$950k Home', weather: 'Windy', status: 'Low Priority', specs: { roofSize: '45 sq Roof', eventHistory: 'High Wind Zone' }, owner: { fico: '680', profile: 'First-time Buyer' }, photos: [ { id: 6, url: '/assets/images/properties/Cracked_Asphalt_Shingles.jpg', caption: 'Cracked Shingles' }, { id: 7, url: '/assets/images/properties/Curled_Aging_Shingles.jpg', caption: 'Aging Shingles' } ] }, ]; const IntelligenceMap = () => { const navigate = useNavigate(); const [activeSpot, setActiveSpot] = useState(null); const [showRescheduleDialog, setShowRescheduleDialog] = useState(false); useEffect(() => { // Simulate incoming weather alert const timer = setTimeout(() => { setShowRescheduleDialog(true); }, 2500); return () => clearTimeout(timer); }, []); return (
Live CRM Data Feed

Hyper-Local Sales Intelligence

Our systems overlay live NOAA weather data with property value insights. Maximize revenue by targeting neighborhoods directly in the storm path.

{/* Map Container Frame */}
{/* Map Background - DFW Satellite Style */}
{/* Aerial/Satellite View of a Grid City */} DFW Metroplex Map Overlay {/* Map Grid Overlay */}
{/* Region Indicator - HUD Style */}
Active Region
DFW Zone 2
{/* Weather Overlay Widget */}
Severe Hail Watch
Approaching Tarrant County
ETA: 15 MINS
{/* Interactive Pins */} {hotspots.map((spot) => (
setActiveSpot(spot)} > {/* Radar Ripple Effect */}
{/* Price Tag Pin */}
{spot.gain}
{/* Pin Head */}
{/* Pin Line */}
{/* Ground Shadow */}
))} {/* Reschedule Dialog Overlay */} {showRescheduleDialog && (
!

Schedule Conflict

Heavy rainfall expected in Plano at 2:00 PM.
This conflicts with the inspection at Legacy West.

)} {/* Right Sidebar Panel (Glass Detail View) */} {activeSpot && ( setActiveSpot(null)} /> )}
); }; export default IntelligenceMap;