# elasticpress/4.5.0/dist/js/weighting-script.js

ElasticPress, version 4.5.0. 1 lines.

- Page: https://pluginprobe.com/plugins/elasticpress/4.5.0/code/dist/js/weighting-script.js
- Raw: https://pluginprobe.com/plugins/elasticpress/4.5.0/raw/dist/js/weighting-script.js
- Modified: 2022-11-29T18:22:08+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/elasticpress/4.5.0/code/dist/js/weighting-script.js#L10-L20`.

```javascript
!function(){"use strict";var e={n:function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t=window.wp.domReady;e.n(t)()((()=>{const e=e=>{e.labels[0].querySelector(".weighting-value").textContent=e.disabled?"0":e.value},t=t=>{e(t.currentTarget)},n=t=>{const n=t.currentTarget.closest("fieldset").querySelector('input[type="range"]');n.disabled=!t.currentTarget.checked,e(n)},r=document.querySelectorAll(".weighting-settings input[type=range]");for(const e of r)e.addEventListener("input",t);const o=document.querySelectorAll(".weighting-settings .searchable input[type=checkbox]");for(const e of o)e.addEventListener("change",n)}))}();
```
