| 1 |
/** |
| 2 |
* Facet Search widget behavior. |
| 3 |
* |
| 4 |
* This widget is rendered by the faceted filters system. The UI behavior is |
| 5 |
* handled by the global faceted filters script; we keep an Elementor hook here |
| 6 |
* to ensure correct initialization in the editor. |
| 7 |
*/ |
| 8 |
(function ($) { |
| 9 |
"use strict"; |
| 10 |
|
| 11 |
/** |
| 12 |
* Initialize widget instance. |
| 13 |
* |
| 14 |
* @param {Object} $scope Elementor scope. |
| 15 |
* @returns {void} |
| 16 |
*/ |
| 17 |
const initFacetSearch = ($scope) => { |
| 18 |
// Intentionally empty: behavior is handled globally. |
| 19 |
void $scope; |
| 20 |
}; |
| 21 |
|
| 22 |
$(window).on("elementor/frontend/init", function () { |
| 23 |
elementorFrontend.hooks.addAction( |
| 24 |
"frontend/element_ready/king-addons-facet-search.default", |
| 25 |
function ($scope) { |
| 26 |
initFacetSearch($scope); |
| 27 |
} |
| 28 |
); |
| 29 |
}); |
| 30 |
})(jQuery); |
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|