PluginProbe
ElasticPress / 5.3.5
ElasticPress v5.3.5
5.3.5 5.3.4 3.6.5 3.6.6 4.0.0 4.0.1 4.1.0 4.2.0 4.2.1 4.2.2 4.3.0 4.3.1 4.4.0 4.4.1 4.5.0 4.5.1 4.5.2 4.6.0 4.6.1 4.7.0 4.7.1 4.7.2 5.0.0 5.0.1 5.0.2 All 108 releases
← All changes | dist/js/facets-script.js +1 -1 4.5.05.3.5 View file →
@@ -1 +1 @@
1 -!function(){"use strict";window.wp.hooks;const e=(e,t)=>{let r=null;return function(...c){const o=this;window.clearTimeout(r),r=window.setTimeout((()=>{e.apply(o,c)}),t)}};document.querySelectorAll(".widget_ep-facet, .wp-block-elasticpress-facet").forEach((t=>{if(!t.querySelector(".facet-search"))return;const r=t.querySelector(".terms");t.querySelector(".facet-search").addEventListener("keyup",e((e=>{13!==e.keyCode&&((e,t)=>{const{target:r}=e,c=r.value.toLowerCase();t.querySelectorAll(".term").forEach((e=>{const t=e.getAttribute("data-term-slug");e.getAttribute("data-term-name").includes(c)||t.includes(c)?e.classList.remove("hide"):e.classList.add("hide")}))})(e,r)}),200))}))}();
1 +!function(){"use strict";var t={9306:function(t,n,r){var e=r(4901),o=r(6823),i=TypeError;t.exports=function(t){if(e(t))return t;throw new i(o(t)+" is not a function")}},6469:function(t,n,r){var e=r(8227),o=r(2360),i=r(4913).f,u=e("unscopables"),c=Array.prototype;void 0===c[u]&&i(c,u,{configurable:!0,value:o(null)}),t.exports=function(t){c[u][t]=!0}},8551:function(t,n,r){var e=r(34),o=String,i=TypeError;t.exports=function(t){if(e(t))return t;throw new i(o(t)+" is not an object")}},9617:function(t,n,r){var e=r(5397),o=r(5610),i=r(6198),u=function(t){return function(n,r,u){var c=e(n),f=i(c);if(0===f)return!t&&-1;var a,s=o(u,f);if(t&&r!==r){for(;f>s;)if((a=c[s++])!==a)return!0}else for(;f>s;s++)if((t||s in c)&&c[s]===r)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},2195:function(t,n,r){var e=r(9504),o=e({}.toString),i=e("".slice);t.exports=function(t){return i(o(t),8,-1)}},7740:function(t,n,r){var e=r(9297),o=r(5031),i=r(7347),u=r(4913);t.exports=function(t,n,r){for(var c=o(n),f=u.f,a=i.f,s=0;s<c.length;s++){var p=c[s];e(t,p)||r&&e(r,p)||f(t,p,a(n,p))}}},6699:function(t,n,r){var e=r(3724),o=r(4913),i=r(6980);t.exports=e?function(t,n,r){return o.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},6980:function(t){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},6840:function(t,n,r){var e=r(4901),o=r(4913),i=r(283),u=r(9433);t.exports=function(t,n,r,c){c||(c={});var f=c.enumerable,a=void 0!==c.name?c.name:n;if(e(r)&&i(r,a,c),c.global)f?t[n]=r:u(n,r);else{try{c.unsafe?t[n]&&(f=!0):delete t[n]}catch(t){}f?t[n]=r:o.f(t,n,{value:r,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return t}},9433:function(t,n,r){var e=r(4576),o=Object.defineProperty;t.exports=function(t,n){try{o(e,t,{value:n,configurable:!0,writable:!0})}catch(r){e[t]=n}return n}},3724:function(t,n,r){var e=r(9039);t.exports=!e((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:function(t,n,r){var e=r(4576),o=r(34),i=e.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},8727:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839:function(t,n,r){var e=r(4576).navigator,o=e&&e.userAgent;t.exports=o?String(o):""},9519:function(t,n,r){var e,o,i=r(4576),u=r(2839),c=i.process,f=i.Deno,a=c&&c.versions||f&&f.version,s=a&&a.v8;s&&(o=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!o&&u&&(!(e=u.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=u.match(/Chrome\/(\d+)/))&&(o=+e[1]),t.exports=o},6518:function(t,n,r){var e=r(4576),o=r(7347).f,i=r(6699),u=r(6840),c=r(9433),f=r(7740),a=r(2796);t.exports=function(t,n){var r,s,p,l,v,y=t.target,b=t.global,d=t.stat;if(r=b?e:d?e[y]||c(y,{}):e[y]&&e[y].prototype)for(s in n){if(l=n[s],p=t.dontCallGetSet?(v=o(r,s))&&v.value:r[s],!a(b?s:y+(d?".":"#")+s,t.forced)&&void 0!==p){if(typeof l==typeof p)continue;f(l,p)}(t.sham||p&&p.sham)&&i(l,"sham",!0),u(r,s,l,t)}}},9039:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},616:function(t,n,r){var e=r(9039);t.exports=!e((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9565:function(t,n,r){var e=r(616),o=Function.prototype.call;t.exports=e?o.bind(o):function(){return o.apply(o,arguments)}},350:function(t,n,r){var e=r(3724),o=r(9297),i=Function.prototype,u=e&&Object.getOwnPropertyDescriptor,c=o(i,"name"),f=c&&"something"===function(){}.name,a=c&&(!e||e&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:f,CONFIGURABLE:a}},9504:function(t,n,r){var e=r(616),o=Function.prototype,i=o.call,u=e&&o.bind.bind(i,i);t.exports=e?u:function(t){return function(){return i.apply(t,arguments)}}},7751:function(t,n,r){var e=r(4576),o=r(4901);t.exports=function(t,n){return arguments.length<2?(r=e[t],o(r)?r:void 0):e[t]&&e[t][n];var r}},5966:function(t,n,r){var e=r(9306),o=r(4117);t.exports=function(t,n){var r=t[n];return o(r)?void 0:e(r)}},4576:function(t,n,r){var e=function(t){return t&&t.Math===Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof r.g&&r.g)||e("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,n,r){var e=r(9504),o=r(8981),i=e({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,n){return i(o(t),n)}},421:function(t){t.exports={}},397:function(t,n,r){var e=r(7751);t.exports=e("document","documentElement")},5917:function(t,n,r){var e=r(3724),o=r(9039),i=r(4055);t.exports=!e&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7055:function(t,n,r){var e=r(9504),o=r(9039),i=r(2195),u=Object,c=e("".split);t.exports=o((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?c(t,""):u(t)}:u},3706:function(t,n,r){var e=r(9504),o=r(4901),i=r(7629),u=e(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},1181:function(t,n,r){var e,o,i,u=r(8622),c=r(4576),f=r(34),a=r(6699),s=r(9297),p=r(7629),l=r(6119),v=r(421),y="Object already initialized",b=c.TypeError,d=c.WeakMap;if(u||p.state){var h=p.state||(p.state=new d);h.get=h.get,h.has=h.has,h.set=h.set,e=function(t,n){if(h.has(t))throw new b(y);return n.facade=t,h.set(t,n),n},o=function(t){return h.get(t)||{}},i=function(t){return h.has(t)}}else{var g=l("state");v[g]=!0,e=function(t,n){if(s(t,g))throw new b(y);return n.facade=t,a(t,g,n),n},o=function(t){return s(t,g)?t[g]:{}},i=function(t){return s(t,g)}}t.exports={set:e,get:o,has:i,enforce:function(t){return i(t)?o(t):e(t,{})},getterFor:function(t){return function(n){var r;if(!f(n)||(r=o(n)).type!==t)throw new b("Incompatible receiver, "+t+" required");return r}}}},4901:function(t){var n="object"==typeof document&&document.all;t.exports="undefined"==typeof n&&void 0!==n?function(t){return"function"==typeof t||t===n}:function(t){return"function"==typeof t}},2796:function(t,n,r){var e=r(9039),o=r(4901),i=/#|\.prototype\./,u=function(t,n){var r=f[c(t)];return r===s||r!==a&&(o(n)?e(n):!!n)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},f=u.data={},a=u.NATIVE="N",s=u.POLYFILL="P";t.exports=u},4117:function(t){t.exports=function(t){return null===t||void 0===t}},34:function(t,n,r){var e=r(4901);t.exports=function(t){return"object"==typeof t?null!==t:e(t)}},6395:function(t){t.exports=!1},757:function(t,n,r){var e=r(7751),o=r(4901),i=r(1625),u=r(7040),c=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var n=e("Symbol");return o(n)&&i(n.prototype,c(t))}},6198:function(t,n,r){var e=r(8014);t.exports=function(t){return e(t.length)}},283:function(t,n,r){var e=r(9504),o=r(9039),i=r(4901),u=r(9297),c=r(3724),f=r(350).CONFIGURABLE,a=r(3706),s=r(1181),p=s.enforce,l=s.get,v=String,y=Object.defineProperty,b=e("".slice),d=e("".replace),h=e([].join),g=c&&!o((function(){return 8!==y((function(){}),"length",{value:8}).length})),m=String(String).split("String"),x=t.exports=function(t,n,r){"Symbol("===b(v(n),0,7)&&(n="["+d(v(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(n="get "+n),r&&r.setter&&(n="set "+n),(!u(t,"name")||f&&t.name!==n)&&(c?y(t,"name",{value:n,configurable:!0}):t.name=n),g&&r&&u(r,"arity")&&t.length!==r.arity&&y(t,"length",{value:r.arity});try{r&&u(r,"constructor")&&r.constructor?c&&y(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var e=p(t);return u(e,"source")||(e.source=h(m,"string"==typeof n?n:"")),t};Function.prototype.toString=x((function(){return i(this)&&l(this).source||a(this)}),"toString")},741:function(t){var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:n)(e)}},2360:function(t,n,r){var e,o=r(8551),i=r(6801),u=r(8727),c=r(421),f=r(397),a=r(4055),s=r(6119),p="prototype",l="script",v=s("IE_PROTO"),y=function(){},b=function(t){return"<"+l+">"+t+"</"+l+">"},d=function(t){t.write(b("")),t.close();var n=t.parentWindow.Object;return t=null,n},h=function(){try{e=new ActiveXObject("htmlfile")}catch(t){}h="undefined"!=typeof document?document.domain&&e?d(e):function(){var t,n=a("iframe"),r="java"+l+":";return n.style.display="none",f.appendChild(n),n.src=String(r),(t=n.contentWindow.document).open(),t.write(b("document.F=Object")),t.close(),t.F}():d(e);for(var t=u.length;t--;)delete h[p][u[t]];return h()};c[v]=!0,t.exports=Object.create||function(t,n){var r;return null!==t?(y[p]=o(t),r=new y,y[p]=null,r[v]=t):r=h(),void 0===n?r:i.f(r,n)}},6801:function(t,n,r){var e=r(3724),o=r(8686),i=r(4913),u=r(8551),c=r(5397),f=r(1072);n.f=e&&!o?Object.defineProperties:function(t,n){u(t);for(var r,e=c(n),o=f(n),a=o.length,s=0;a>s;)i.f(t,r=o[s++],e[r]);return t}},4913:function(t,n,r){var e=r(3724),o=r(5917),i=r(8686),u=r(8551),c=r(6969),f=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",v="writable";n.f=e?i?function(t,n,r){if(u(t),n=c(n),u(r),"function"===typeof t&&"prototype"===n&&"value"in r&&v in r&&!r[v]){var e=s(t,n);e&&e[v]&&(t[n]=r.value,r={configurable:l in r?r[l]:e[l],enumerable:p in r?r[p]:e[p],writable:!1})}return a(t,n,r)}:a:function(t,n,r){if(u(t),n=c(n),u(r),o)try{return a(t,n,r)}catch(t){}if("get"in r||"set"in r)throw new f("Accessors not supported");return"value"in r&&(t[n]=r.value),t}},7347:function(t,n,r){var e=r(3724),o=r(9565),i=r(8773),u=r(6980),c=r(5397),f=r(6969),a=r(9297),s=r(5917),p=Object.getOwnPropertyDescriptor;n.f=e?p:function(t,n){if(t=c(t),n=f(n),s)try{return p(t,n)}catch(t){}if(a(t,n))return u(!o(i.f,t,n),t[n])}},8480:function(t,n,r){var e=r(1828),o=r(8727).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},3717:function(t,n){n.f=Object.getOwnPropertySymbols},1625:function(t,n,r){var e=r(9504);t.exports=e({}.isPrototypeOf)},1828:function(t,n,r){var e=r(9504),o=r(9297),i=r(5397),u=r(9617).indexOf,c=r(421),f=e([].push);t.exports=function(t,n){var r,e=i(t),a=0,s=[];for(r in e)!o(c,r)&&o(e,r)&&f(s,r);for(;n.length>a;)o(e,r=n[a++])&&(~u(s,r)||f(s,r));return s}},1072:function(t,n,r){var e=r(1828),o=r(8727);t.exports=Object.keys||function(t){return e(t,o)}},8773:function(t,n){var r={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,o=e&&!r.call({1:2},1);n.f=o?function(t){var n=e(this,t);return!!n&&n.enumerable}:r},4270:function(t,n,r){var e=r(9565),o=r(4901),i=r(34),u=TypeError;t.exports=function(t,n){var r,c;if("string"===n&&o(r=t.toString)&&!i(c=e(r,t)))return c;if(o(r=t.valueOf)&&!i(c=e(r,t)))return c;if("string"!==n&&o(r=t.toString)&&!i(c=e(r,t)))return c;throw new u("Can't convert object to primitive value")}},5031:function(t,n,r){var e=r(7751),o=r(9504),i=r(8480),u=r(3717),c=r(8551),f=o([].concat);t.exports=e("Reflect","ownKeys")||function(t){var n=i.f(c(t)),r=u.f;return r?f(n,r(t)):n}},7750:function(t,n,r){var e=r(4117),o=TypeError;t.exports=function(t){if(e(t))throw new o("Can't call method on "+t);return t}},6119:function(t,n,r){var e=r(5745),o=r(3392),i=e("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},7629:function(t,n,r){var e=r(6395),o=r(4576),i=r(9433),u="__core-js_shared__",c=t.exports=o[u]||i(u,{});(c.versions||(c.versions=[])).push({version:"3.39.0",mode:e?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(t,n,r){var e=r(7629);t.exports=function(t,n){return e[t]||(e[t]=n||{})}},4495:function(t,n,r){var e=r(9519),o=r(9039),i=r(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))},5610:function(t,n,r){var e=r(1291),o=Math.max,i=Math.min;t.exports=function(t,n){var r=e(t);return r<0?o(r+n,0):i(r,n)}},5397:function(t,n,r){var e=r(7055),o=r(7750);t.exports=function(t){return e(o(t))}},1291:function(t,n,r){var e=r(741);t.exports=function(t){var n=+t;return n!==n||0===n?0:e(n)}},8014:function(t,n,r){var e=r(1291),o=Math.min;t.exports=function(t){var n=e(t);return n>0?o(n,9007199254740991):0}},8981:function(t,n,r){var e=r(7750),o=Object;t.exports=function(t){return o(e(t))}},2777:function(t,n,r){var e=r(9565),o=r(34),i=r(757),u=r(5966),c=r(4270),f=r(8227),a=TypeError,s=f("toPrimitive");t.exports=function(t,n){if(!o(t)||i(t))return t;var r,f=u(t,s);if(f){if(void 0===n&&(n="default"),r=e(f,t,n),!o(r)||i(r))return r;throw new a("Can't convert object to primitive value")}return void 0===n&&(n="number"),c(t,n)}},6969:function(t,n,r){var e=r(2777),o=r(757);t.exports=function(t){var n=e(t,"string");return o(n)?n:n+""}},6823:function(t){var n=String;t.exports=function(t){try{return n(t)}catch(t){return"Object"}}},3392:function(t,n,r){var e=r(9504),o=0,i=Math.random(),u=e(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},7040:function(t,n,r){var e=r(4495);t.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(t,n,r){var e=r(3724),o=r(9039);t.exports=e&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8622:function(t,n,r){var e=r(4576),o=r(4901),i=e.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},8227:function(t,n,r){var e=r(4576),o=r(5745),i=r(9297),u=r(3392),c=r(4495),f=r(7040),a=e.Symbol,s=o("wks"),p=f?a.for||a:a&&a.withoutSetter||u;t.exports=function(t){return i(s,t)||(s[t]=c&&i(a,t)?a[t]:p("Symbol."+t)),s[t]}},4423:function(t,n,r){var e=r(6518),o=r(9617).includes,i=r(9039),u=r(6469);e({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),u("includes")}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e].call(i.exports,i,i.exports,r),i.exports}r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}();r(4423),window.wp.hooks;const e=(t,n)=>{let r=null;return function(...e){const o=this;window.clearTimeout(r),r=window.setTimeout((()=>{t.apply(o,e)}),n)}};document.querySelectorAll(".widget_ep-facet, .wp-block-elasticpress-facet, .elementor-widget-wp-widget-ep-facet").forEach((t=>{if(!t.querySelector(".facet-search"))return;const n=t.querySelector(".terms");t.querySelector(".facet-search").addEventListener("keyup",e((t=>{13!==t.keyCode&&((t,n)=>{const{target:r}=t,e=r.value.toLowerCase();n.querySelectorAll(".term").forEach((t=>{const n=t.getAttribute("data-term-slug");t.getAttribute("data-term-name").includes(e)||n.includes(e)?t.classList.remove("hide"):t.classList.add("hide")}))})(t,n)}),200))}))}();