PageSourceSearch

https://www.saint-donat.ca/wp-content/plugins/act-wp-plugin-recher…/assets-dist/js/recherche.min.js?ver=0.0.1

js saint-donat.ca collected 2026-10-02 12:52:07 UTC 4,529 bytes, 1 lines download raw bytes

1"use strict";var _excluded=["alt","height","ID","src","width"];function _extends(){_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}return target};return _extends.apply(this,arguments)}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key]}}return target}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};var sourceKeys=Object.keys(source);var key,i;for(i=0;i<sourceKeys.length;i++){key=sourceKeys[i];if(excluded.indexOf(key)>=0)continue;target[key]=source[key]}return target}var $instantSearch=document.getElementById("ep-instant-results");if($instantSearch){var act_recherche_force_lowercase=function act_recherche_force_lowercase(e){if(e.target.classList.contains("ep-search-input")){console.log(e.target.selectionStart,e.target.selectionEnd);console.log(e.type,e.target.selectionStart,e.target.value.toLowerCase(),e.target.value!==e.target.value.toLowerCase());if(e.ctrlKey==true){return}if(e.type!="keydown"){console.log(e)}if(e.key.length==1){e.preventDefault();var nextValue=e.target.value.toLowerCase();var initialPosition=e.target.selectionStart;if(e.target.selectionStart==e.target.selectionEnd){nextValue=[nextValue.slice(0,e.target.selectionStart),e.key.toLowerCase(),nextValue.slice(e.target.selectionStart)].join("")}else{nextValue=[nextValue.slice(0,e.target.selectionStart),e.key.toLowerCase(),nextValue.slice(e.target.selectionEnd)].join("")}var nativeInputValueSetter=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;nativeInputValueSetter.call(e.target,nextValue);e.target.setSelectionRange(initialPosition+1,initialPosition+1);var inputEvent=new Event("input",{bubbles:true});e.target.dispatchEvent(inputEvent);console.log("change 2")}}};$instantSearch.addEventListener("keydown",act_recherche_force_lowercase,true)}if(typeof wp.hooks!=="undefined"){wp.hooks.addFilter("ep.Autosuggest.fetchOptions","act-recherche",function(options){if(options.headers["EP-Search-Term"]){options.headers["EP-Search-Term"]=options.headers["EP-Search-Term"].toLowerCase()}var body=JSON.parse(options["body"]);if(body.suggest){console.log(body);var uppercase=body.suggest.text;var lowercase=body.suggest.text.toLowerCase();body.suggest.text=lowercase;options["body"]=JSON.stringify(body).replaceAll(uppercase,lowercase)}return options});var ActRechercheImage=function ActRechercheImage(_ref){var alt=_ref.alt,height=_ref.height,ID=_ref.ID,src=_ref.src,width=_ref.width,props=_objectWithoutProperties(_ref,_excluded);return React.createElement("img",_extends({alt:alt,src:src,width:width,height:height},props))};var ActRechercheCustomResult=function ActRechercheCustomResult(data){var _data$averageRating=data.averageRating,averageRating=_data$averageRating===void 0?0:_data$averageRating,date=data.date,priceHtml=data.priceHtml,thumbnail=data.thumbnail,title=data.title,type=data.type,url=data.url,words=data.hit._source.post_content_plain;var excerpt=words.split(/\s+/).slice(0,act_recherche_config.excerpt_length).join(" ");return React.createElement("article",{className:"ep-search-result ".concat(thumbnail?"ep-search-result--has-thumbnail":null)},thumbnail&&React.createElement("a",{className:"ep-search-result__thumbnail",href:url},React.createElement(ActRechercheImage,thumbnail)),React.createElement("header",{className:"ep-search-result__header"},type?React.createElement("span",{className:"ep-search-result__type"},type):null,React.createElement("h2",{className:"ep-search-result__title"},React.createElement("a",{href:url,dangerouslySetInnerHTML:{__html:title}})),priceHtml?React.createElement("p",{className:"price",dangerouslySetInnerHTML:{__html:priceHtml}}):null),excerpt.length>0?React.createElement("p",{className:"ep-search-result__description",dangerouslySetInnerHTML:{__html:excerpt}}):null,React.createElement("footer",{className:"ep-search-result__footer"},date))};wp.hooks.addFilter("ep.InstantResults.Result","act-recherche/custom-result",function(){return ActRechercheCustomResult})}

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.