PageSourceSearch

http://www.theriver-homes.com/app/themes/wakanda/dist/scripts/global_ver-4.8.6.js

js theriver-homes.com collected 2026-10-10 00:39:39 UTC 5,175 bytes, 167 lines download raw bytes

1/******/ (function(modules) { // webpackBootstrap
2/******/ 	// The module cache
3/******/ 	var installedModules = {};
4/******/
5/******/ 	// The require function
6/******/ 	function __webpack_require__(moduleId) {
7/******/
8/******/ 		// Check if module is in cache
9/******/ 		if(installedModules[moduleId]) {
10/******/ 			return installedModules[moduleId].exports;
11/******/ 		}
12/******/ 		// Create a new module (and put it into the cache)
13/******/ 		var module = installedModules[moduleId] = {
14/******/ 			i: moduleId,
15/******/ 			l: false,
16/******/ 			exports: {}
17/******/ 		};
18/******/
19/******/ 		// Execute the module function
20/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21/******/
22/******/ 		// Flag the module as loaded
23/******/ 		module.l = true;
24/******/
25/******/ 		// Return the exports of the module
26/******/ 		return module.exports;
27/******/ 	}
28/******/
29/******/
30/******/ 	// expose the modules object (__webpack_modules__)
31/******/ 	__webpack_require__.m = modules;
32/******/
33/******/ 	// expose the module cache
34/******/ 	__webpack_require__.c = installedModules;
35/******/
36/******/ 	// define getter function for harmony exports
37/******/ 	__webpack_require__.d = function(exports, name, getter) {
38/******/ 		if(!__webpack_require__.o(exports, name)) {
39/******/ 			Object.defineProperty(exports, name, {
40/******/ 				configurable: false,
41/******/ 				enumerable: true,
42/******/ 				get: getter
43/******/ 			});
44/******/ 		}
45/******/ 	};
46/******/
47/******/ 	// getDefaultExport function for compatibility with non-harmony modules
48/******/ 	__webpack_require__.n = function(module) {
49/******/ 		var getter = module && module.__esModule ?
50/******/ 			function getDefault() { return module['default']; } :
51/******/ 			function getModuleExports() { return module; };
52/******/ 		__webpack_require__.d(getter, 'a', getter);
53/******/ 		return getter;
54/******/ 	};
55/******/
56/******/ 	// Object.prototype.hasOwnProperty.call
57/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
58/******/
59/******/ 	// __webpack_public_path__
60/******/ 	__webpack_require__.p = "/wp-content/themes/wakanda/dist/";
61/******/
62/******/ 	// Load entry module and return exports
63/******/ 	return __webpack_require__(__webpack_require__.s = 103);
64/******/ })
65/************************************************************************/
66/******/ ({
67
68/***/ 103:
69/***/ (function(module, exports, __webpack_require__) {
70
71module.exports = __webpack_require__(104);
72
73
74/***/ }),
75
76/***/ 104:
77/***/ (function(module, __webpack_exports__, __webpack_require__) {
78
79"use strict";
80Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
81/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__cookie__ = __webpack_require__(39);
82
83
84// UTM Grabber
85var nndcUtmParams = {
86	'nndc_utm_campaign': 'utm_campaign',
87	'nndc_utm_content': 'utm_content',
88	'nndc_utm_medium': 'utm_medium',
89	'nndc_utm_source': 'utm_source',
90	'nndc_utm_term': 'utm_term',
91	'nndc_gclid': 'gclid',
92	'nndc_fbclid': 'fbclid',
93};
94
95var nndcQueryString = window.location.search;
96
97if ( nndcQueryString.includes('utm') ) {
98	setUtmCookies();
99}
100
101function setUtmCookies() {
102	var urlParams = new URLSearchParams(nndcQueryString);
103
104	Object.entries(nndcUtmParams).forEach(function (entry) {
105		var cname_utm_param = entry[0];
106		var utm_param = entry[1];
107		var utm_value = urlParams.get( utm_param );
108		utm_value = ( utm_value != null ) ? utm_value : '';
109
110		Object(__WEBPACK_IMPORTED_MODULE_0__cookie__["b" /* setCookie */])( cname_utm_param, utm_value, 1, true );
111	});
112}
113
114function fillUtmInLeadsForm() {
115	var wa_form_class = '.whatsapp-form';
116
117	// fill utm into whatsapp form
118	Object.entries(nndcUtmParams).forEach(function (entry) {
119		var cname_utm_param = entry[0];
120		var utm_param = entry[1];
121
122		document.querySelectorAll( wa_form_class + ' [name="' + utm_param + '"]' ).forEach(function (el) {
123			el.value = Object(__WEBPACK_IMPORTED_MODULE_0__cookie__["a" /* getCookie */])( cname_utm_param );
124		});
125	});
126}
127fillUtmInLeadsForm();
128// End of UTM Grabber
129
130
131/***/ }),
132
133/***/ 39:
134/***/ (function(module, __webpack_exports__, __webpack_require__) {
135
136"use strict";
137/* harmony export (immutable) */ __webpack_exports__["b"] = setCookie;
138/* harmony export (immutable) */ __webpack_exports__["a"] = getCookie;
139function setCookie(cname, cvalue, exdays, is_global) {
140    if ( is_global === void 0 ) is_global = false;
141
142    var d = new Date();
143    d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1000);
144    var expires = 'expires=' + d.toUTCString();
145    document.cookie = cname + '=' + cvalue + ';' + expires + (is_global ? ';path=/' : '');
146}
147
148function getCookie(cookiename) {
149    var name = cookiename + '=';
150    var decodedCookie = decodeURIComponent(document.cookie);
151    var ca = decodedCookie.split(';');
152    for (var i = 0; i < ca.length; i++) {
153        var c = ca[i];
154        while (c.charAt(0) == ' ') {
155            c = c.substring(1);
156        }
157        if (c.indexOf(name) == 0) {
158            return c.substring(name.length, c.length);
159        }
160    }
161    return '';
162}
163
164/***/ })
165
166/******/ });
167//# sourceMappingURL=global.js.map

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.