@php /** * Reusable map picker (Google Maps or OSM/Leaflet). * * Required params: * - prefix: unique string per instance (e.g. "address", "cartCustomer") * - apiKey: google map api key (string|null) * - provider: "google"|"osm" * - event: Livewire event name to (re)initialize the map with optional {lat,lng} * - mapElementId: DOM id for map container * - searchCardId: DOM id of search-card container (script mounts input+results into it) * - latField, lngField, addressField: Livewire property names to update * * Optional params: * - defaultLat, defaultLng: defaults if event params missing * - countryCodes: e.g. "in" (used for nominatim search) */ @endphp @script @endscript