PageSourceSearch

https://venbest.ua/wp-content/themes/venbest/custom-blocks/map-offices/map-offices.js?ver=1.2.6

js venbest.ua collected 2026-09-24 12:30:29 UTC 1,377 bytes, 42 lines download raw bytes

1document.addEventListener("DOMContentLoaded", function () {
2	(function ($) {
3		let $mapOfficeBlock = $(".map-offices");
4		if ($mapOfficeBlock[0]) {
5			const swiperOpt = {
6				slidesPerView: 1,
7				watchOverflow: !0,
8				autoHeight: !0,
9				pagination: { el: ".map-offices__pagination", clickable: !0 },
10			};
11			const officeInfoSlider = new Swiper(".map-offices__slider", swiperOpt);
12			officeInfoSlider.on("slideChange", function () {
13				officeInfoSlider.pagination.render();
14				officeInfoSlider.pagination.update();
15			});
16			$.ajax({
17				url: my_ajax_object.ajax_url,
18				type: "POST",
19				data: { action: "get_offices", language: currentLanguagePll },
20				success: function (response) {
21					let citiesResponse = typeof response === "string" ? JSON.parse(response) : response,
22						cities = {};
23					citiesResponse.forEach((city) => {
24						cities[city.english_region_name] = [];
25						city.offices.forEach((office) => {
26							cities[city.english_region_name].push({
27								title: office.title,
28								location: office.location.title,
29								locationLink: office.location.url,
30								locationTarget: office.location.target,
31								number: office.phone_number,
32								schedule: office.schedule,
33								scheduleWeekend: office.schedule_weekend,
34							});
35						});
36					});
37					regionsMap(cities, officeInfoSlider, swiperOpt);
38				},
39			});
40		}
41	})(jQuery);
42});

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.