# Third-party components

Dealer Map uses the following third-party components or their generated data:

- `Freemius WordPress SDK` 2.13.4 — GPL-3.0. Optional opt-in analytics, account management, upgrades, licensing, and updates.
- `country-region-data` 4.1.0 — MIT License. Bundled country and administrative-region data.
- `Tom Select` 2.6.2 — Apache License 2.0. Bundled smart-select interface.
- `world-atlas` 2.0.2 — ISC License. Build-time world geometry derived from Natural Earth data.
- `d3-geo` 3.1.1 — ISC License. Build-time geographic projection.
- `topojson-client` 3.1.0 — ISC License. Build-time TopoJSON conversion.
- `i18n-iso-countries` 7.14.0 — MIT License. Build-time ISO code conversion.
- `country-state-city` 3.2.1 — GPL-3.0 License. Build-time administrative-region center coordinates.

The generated map assets are shipped with the WordPress plugin. Build-time packages are not loaded on WordPress sites.

## Source locations

- Freemius SDK 2.13.4: https://github.com/Freemius/wordpress-sdk/tree/2.13.4 (GPL-3.0).
- Tom Select 2.6.2: https://github.com/orchidjs/tom-select/tree/v2.6.2 (Apache-2.0). Follow that tag's contribution/build instructions to produce the bundled complete JS and default CSS.
- country-region-data 4.1.0: https://github.com/country-regions/country-region-data (MIT); the shipped JSON is the country/region dataset.
- world-atlas 2.0.2: https://github.com/topojson/world-atlas (ISC), using Natural Earth public-domain geometry: https://www.naturalearthdata.com/about/terms-of-use/
- d3-geo 3.1.1: https://github.com/d3/d3-geo (ISC).
- topojson-client 3.1.0: https://github.com/topojson/topojson-client (ISC).
- i18n-iso-countries 7.14.0: https://github.com/michaelwittig/node-i18n-iso-countries (MIT).
- country-state-city 3.2.1: https://github.com/harpreetkhalsagtbit/country-state-city (GPL-3.0).

The combined plugin packages are distributed under GPL-3.0-or-later.
Individual dependencies retain their license notices.

## Rebuilding the bundled map

The Free ZIP includes `source/package.json`, `source/package-lock.json` and
`source/scripts/build-world-map.mjs`. With Node.js and npm installed, run
`npm ci --ignore-scripts` inside `source/`, then
`node scripts/build-world-map.mjs`. This regenerates `assets/maps/` in
the unpacked plugin. Build dependencies are fetched only when a developer
runs this command; WordPress never runs Node or downloads map data.

Application PHP, JavaScript and CSS are shipped in readable form. The private
project repository is not needed to inspect, modify, or rebuild these assets.
