PageSourceSearch

https://www.home-kueppersbusch.com/contact/wp-content/plugins/ajax…/optimized/asp-addons-divi.js?ver=4.28.4

js home-kueppersbusch.com collected 2026-09-30 21:23:11 UTC 3,987 bytes, 109 lines download raw bytes

1/******/ (function() { // webpackBootstrap
2/******/ 	"use strict";
3/******/ 	// The require scope
4/******/ 	var __webpack_require__ = {};
5/******/ 	
6/************************************************************************/
7/******/ 	/* webpack/runtime/define property getters */
8/******/ 	!function() {
9/******/ 		// define getter functions for harmony exports
10/******/ 		__webpack_require__.d = function(exports, definition) {
11/******/ 			for(var key in definition) {
12/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
13/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
14/******/ 				}
15/******/ 			}
16/******/ 		};
17/******/ 	}();
18/******/ 	
19/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
20/******/ 	!function() {
21/******/ 		__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
22/******/ 	}();
23/******/ 	
24/************************************************************************/
25var __webpack_exports__ = {};
26
27// EXPORTS
28__webpack_require__.d(__webpack_exports__, {
29  "default": function() { return /* binding */ asp_addons_divi; }
30});
31
32;// external "AjaxSearchPro"
33var external_AjaxSearchPro_namespaceObject = Object(window.WPD)["AjaxSearchPro"];
34;// ./src/client/addons/divi.js
35
36
37const helpers = external_AjaxSearchPro_namespaceObject.helpers;
38class DiviAddon {
39  name = "Divi Widget Fixes";
40  init() {
41    helpers.Hooks.addFilter("asp/init/etc", this.diviBodyCommerceResultsPage, 10, this);
42    helpers.Hooks.addFilter("asp/live_load/finished", this.diviBlogModuleTriggerInit.bind(this), 10, this);
43    helpers.Hooks.addFilter("asp/live_load/finished", this.divi5PaginationFix.bind(this), 10, this);
44    helpers.Hooks.addFilter("asp/live_load/finished", this.diviQueryBuilderInit.bind(this), 999, this);
45  }
46  diviBodyCommerceResultsPage($this) {
47    if ($this.o.divi.bodycommerce && $this.o.is_results_page) {
48      window.WPD.intervalUntilExecute(function($) {
49        setTimeout(function() {
50          $("#divi_filter_button").trigger("click");
51        }, 50);
52      }, function() {
53        return typeof jQuery !== "undefined" ? jQuery : false;
54      });
55    }
56    return $this;
57  }
58  diviBlogModuleTriggerInit(url, obj, selector, widget) {
59    if (jQuery !== void 0 && (jQuery(widget).hasClass("et_pb_module") || jQuery(widget).find(".et_pb_module").length > 0)) {
60      jQuery(window).trigger("load");
61      window.et_pb_init_modules?.();
62    }
63  }
64  diviQueryBuilderInit(url, obj, selector, widget) {
65    if (widget.classList?.contains?.("ctdqb_query_builder")) {
66      document.dispatchEvent(new Event("DOMContentLoaded"));
67    }
68  }
69  /**
70   * Detects and fixes Divi 5 pagination for loops live search
71   *
72   * @param url
73   * @param obj
74   * @param selector
75   * @param widget
76   * @param dataNode
77   * @returns {*}
78   */
79  divi5PaginationFix(url, obj, selector, widget, dataNode) {
80    if (!selector.includes("asp_es_")) {
81      return url;
82    }
83    const pagination = document.querySelector(selector + " .et_pb_posts_nav");
84    const replacementPagination = dataNode.querySelector(selector + " .et_pb_posts_nav");
85    if (!pagination || !replacementPagination) {
86      return url;
87    }
88    replacementPagination.querySelectorAll("a").forEach((el) => {
89      const url2 = new URL(el.href);
90      url2.searchParams.delete("asp_force_reset_pagination");
91      el.href = url2.href;
92      console.log(el.href);
93    });
94    pagination.parentNode.replaceChild(replacementPagination, pagination);
95    return url;
96  }
97}
98external_AjaxSearchPro_namespaceObject.addons.add(new DiviAddon());
99/* harmony default export */ var divi = ((/* unused pure expression or super */ null && (AjaxSearchPro)));
100
101;// ./src/client/bundle/optimized/asp-addons-divi.js
102
103
104
105/* harmony default export */ var asp_addons_divi = (external_AjaxSearchPro_namespaceObject);
106
107Object(window.WPD).AjaxSearchPro = __webpack_exports__["default"];
108/******/ })()
109;

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.