PageSourceSearch

https://www.toast.pl/wp-content/plugins/parcel-selector/map/classic/js/countries.js?ver=3.3.13

js toast.pl collected 2026-10-09 21:29:25 UTC 7,242 bytes, 176 lines download raw bytes

1/**
2 * ===================================================================================
3 * IPS COUNTRIES CONFIGURATION
4 * ===================================================================================
5 * Wyodrębniony z intro-popup.js — czysta konfiguracja krajów.
6 * Każdy kraj zawiera: nazwę (ojczystą), flagę, center mapy, zoom, API URL, kolor, instrukcje.
7 *
8 * UŻYCIE: window.IPS_COUNTRIES jest odczytywany przez intro-popup.js jako COUNTRIES.
9 *
10 * API: Wszystkie kraje wskazują na parcelselector.com/api/points/{cc}
11 * NAZWY: W języku ojczystym (Polska, Italia, France, España...)
12 *
13 * @version 1.0.0
14 * @since 2026-03-03 Wyodrębniony z intro-popup.js
15 * ===================================================================================
16 */
17window.IPS_COUNTRIES = {
18    pl: {
19        name: 'Polska',
20        flag: '🇵🇱',
21        flagCode: 'PL',
22        flagSvg: 'pl.png',
23        center: [52.0, 19.0],
24        zoom: 6,
25        api: 'https://parcelselector.com/api/points/pl',
26        color: '#FF6600',
27        apiType: 'remote',
28        instructions: 'Jak znaleźć swój Paczkomat? • Wpisz w wyszukiwarce nazwę miasta lub kod pocztowy • Użyj scrolla myszy lub gestów dwoma palcami (zoom in/out) • Kliknij pinezkę aby wybrać'
29    },
30    it: {
31        name: 'Italia',
32        flag: '🇮🇹',
33        flagCode: 'IT',
34        flagSvg: 'it.png',
35        center: [42.8, 12.8],
36        zoom: 6,
37        api: 'https://parcelselector.com/api/points/it',
38        color: '#009246',
39        apiType: 'remote',
40        instructions: 'Come trovare il tuo Locker? • Inserisci il nome della città o il codice postale • Usa la rotella del mouse o gesti con due dita (zoom in/out) • Clicca sulla puntina per selezionare'
41    },
42    fr: {
43        name: 'France',
44        flag: '🇫🇷',
45        flagCode: 'FR',
46        flagSvg: 'fr.png',
47        center: [46.603354, 1.888334],
48        zoom: 6,
49        api: 'https://parcelselector.com/api/points/fr',
50        color: '#0055A4',
51        apiType: 'remote',
52        instructions: 'Comment trouver votre Consigne? • Entrez le nom de la ville ou le code postal • Utilisez la molette de la souris ou les gestes à deux doigts (zoom in/out) • Cliquez sur l\'épingle pour sélectionner'
53    },
54    es: {
55        name: 'España',
56        flag: '🇪🇸',
57        flagCode: 'ES',
58        flagSvg: 'es.png',
59        center: [40.4, -3.7],
60        zoom: 6,
61        api: 'https://parcelselector.com/api/points/es',
62        color: '#AA151B',
63        apiType: 'remote',
64        instructions: '¿Cómo encontrar su Taquilla? • Ingrese el nombre de la ciudad o el código postal • Use la rueda del mouse o gestos con dos dedos (zoom in/out) • Haga clic en el pin para seleccionar'
65    },
66    uk: {
67        name: 'United Kingdom',
68        flag: '🇬🇧',
69        flagCode: 'GB',
70        flagSvg: 'gb.png',
71        center: [54.0, -2.0],
72        zoom: 6,
73        api: 'https://parcelselector.com/api/points/uk',
74        color: '#012169',
75        apiType: 'remote',
76        instructions: 'How to find your Locker? • Enter city name or postal code • Use mouse wheel or two-finger gestures (zoom in/out) • Click the pin to select'
77    },
78    de: {
79        name: 'Deutschland',
80        flag: '🇩🇪',
81        flagCode: 'DE',
82        flagSvg: 'de.png',
83        center: [51.0, 10.0],
84        zoom: 6,
85        api: 'https://parcelselector.com/api/points/de',
86        color: '#000000',
87        apiType: 'remote',
88        instructions: 'Wie finde ich Ihren Schließfach? • Geben Sie Stadtnamen oder Postleitzahl ein • Verwenden Sie das Mausrad oder Zwei-Finger-Gesten (Zoom in/out) • Klicken Sie auf die Nadel zum Auswählen'
89    },
90    be: {
91        name: 'België',
92        flag: '🇧🇪',
93        flagCode: 'BE',
94        flagSvg: 'be.png',
95        center: [50.5, 4.5],
96        zoom: 7,
97        api: 'https://parcelselector.com/api/points/be',
98        color: '#FDDA24',
99        apiType: 'remote',
100        instructions: 'Hoe vind je je Locker? • Voer stadsnaam of postcode in • Gebruik muiswiel of twee-vinger gebaren (zoom in/out) • Klik op de pin om te selecteren'
101    },
102    nl: {
103        name: 'Nederland',
104        flag: '🇳🇱',
105        flagCode: 'NL',
106        flagSvg: 'nl.png',
107        center: [52.3, 5.5],
108        zoom: 7,
109        api: 'https://parcelselector.com/api/points/nl',
110        color: '#FF4F00',
111        apiType: 'remote',
112        instructions: 'Hoe vind je je Locker? • Voer stadsnaam of postcode in • Gebruik muiswiel of twee-vinger gebaren (zoom in/out) • Klik op de pin om te selecteren'
113    },
114    lu: {
115        name: 'Luxembourg',
116        flag: '🇱🇺',
117        flagCode: 'LU',
118        flagSvg: 'lu.png',
119        center: [49.8153, 6.1296],
120        zoom: 8,
121        api: 'https://parcelselector.com/api/points/lu',
122        color: '#0072CE',
123        apiType: 'remote',
124        instructions: 'Comment trouver votre consigne au Luxembourg ? • Entrez le nom de la ville ou le code postal • Utilisez la molette de la souris ou les gestes à deux doigts (zoom in/out) • Cliquez sur l\'épingle pour sélectionner'
125    },
126    pt: {
127        name: 'Portugal',
128        flag: '🇵🇹',
129        flagCode: 'PT',
130        flagSvg: 'pt.png',
131        center: [39.5, -8.0],
132        zoom: 7,
133        api: 'https://parcelselector.com/api/points/pt',
134        color: '#FF0000',
135        apiType: 'remote',
136        instructions: 'Como encontrar o seu Cacifo? • Digite o nome da cidade ou código postal • Use a roda do mouse ou gestos com dois dedos (zoom in/out) • Clique no alfinete para selecionar'
137    },
138    at: {
139        name: 'Österreich',
140        flag: '🇦🇹',
141        flagCode: 'AT',
142        flagSvg: 'at.png',
143        center: [47.5, 14.5],
144        zoom: 7,
145        api: 'https://parcelselector.com/api/points/at',
146        color: '#ED2939',
147        apiType: 'remote',
148        instructions: 'Wie finde ich Ihren Schließfach? • Geben Sie Stadtnamen oder Postleitzahl ein • Verwenden Sie das Mausrad oder Zwei-Finger-Gesten (Zoom in/out) • Klicken Sie auf die Nadel zum Auswählen'
149    },
150    hu: {
151        name: 'Magyarország',
152        flag: '🇭🇺',
153        flagCode: 'HU',
154        flagSvg: 'hu.png',
155        center: [47.1625, 19.5033],
156        zoom: 7,
157        api: 'https://parcelselector.com/api/points/hu',
158        color: '#CD2A3E',
159        apiType: 'remote',
160        instructions: 'Hogyan találja meg a Csomagautomatát? • Írja be a város nevét vagy az irányítószámot • Használja az egér kerekét vagy két ujjal történő gesztusokat (nagyítás/kicsinyítés) • Kattintson a gombostűre a kiválasztáshoz'
161    }
162};
163
164// ===================================================================================
165// DYNAMIC OVERRIDE: WordPress AJAX Proxy
166// ===================================================================================
167(function() {
168    if (window.psClassicConfig && window.psClassicConfig.apiBase) {
169        var base = window.psClassicConfig.apiBase;
170        Object.keys(window.IPS_COUNTRIES).forEach(function(cc) {
171            if (window.IPS_COUNTRIES[cc]) {
172                window.IPS_COUNTRIES[cc].api = base + cc;
173            }
174        });
175    }
176})();

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.