Edit file File name : jp-search.js Content :(()=>{var e,t,r,a={7479:(e,t,r)=>{"use strict";r.d(t,{$J:()=>m,$K:()=>n,Az:()=>w,Hs:()=>_,Md:()=>l,O5:()=>o,QB:()=>k,Ri:()=>d,SK:()=>v,UM:()=>h,Wq:()=>b,ZJ:()=>c,m2:()=>p,s6:()=>f,tr:()=>s,w4:()=>i,x6:()=>g,yj:()=>u});var a=r(7723);const __=a.__,n="__NO_GROUP__",o="JetpackInstantSearchOptions",i="jetpack-instant-search__overlay",s="jetpack-instant-search__search-results",c=70,l="jetpack-instant-search__box-input",p="jetpack-instant-search__overlay-focus-anchor",d="ASC",u="expanded",h="minimal",f="product",w=6e4,g="relevance",m=1e3,_=["newest","oldest",g,"price_asc","price_desc","rating_desc"],v=[u,h,f],k=new Map([[g,__("Relevance","jetpack-search-pkg")],["newest",__("Newest","jetpack-search-pkg")],["oldest",__("Oldest","jetpack-search-pkg")]]),b=new Map([["price_asc",__("Price: low to high","jetpack-search-pkg")],["price_desc",__("Price: high to low","jetpack-search-pkg")],["rating_desc",__("Rating","jetpack-search-pkg")]])},1017:(e,t,r)=>{"use strict";r.d(t,{Tx:()=>i,UC:()=>s,XH:()=>o});var a=r(7479);const n=new Map([["jetpack_search_color_theme","colorTheme"],["jetpack_search_enable_sort","enableSort"],["jetpack_search_highlight_color","highlightColor"],["jetpack_search_inf_scroll","enableInfScroll"],["jetpack_search_filtering_opens_overlay","enableFilteringOpensOverlay"],["jetpack_search_show_post_date","enablePostDate"],["jetpack_search_overlay_trigger","overlayTrigger"],["jetpack_search_show_powered_by","showPoweredBy"],["jetpack_search_result_format","resultFormat"]]);function o(){return"function"==typeof window?.wp?.customize}function i(e){o()&&window.addEventListener("message",(t=>{t.data&&t.target===window&&"jetpackSearchSectionOpen"===t.data?.key&&"expanded"in t.data&&e(t.data.expanded)}))}function s(e){o()&&n.forEach(((t,r)=>{window.wp.customize(r,(r=>{r.bind((function(r){const n={[t]:r};window[a.O5].showResults=!0,window[a.O5].overlayOptions={...window[a.O5].overlayOptions,...n},e&&e(n)}))}))}))}},7778:(e,t,r)=>{r.p=window.JetpackInstantSearchOptions.webpackPublicPath},7723:e=>{"use strict";e.exports=window.wp.i18n},4252:e=>{"use strict";e.exports=window.wp.jpI18nLoader},3832:e=>{"use strict";e.exports=window.wp.url}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return a[e].call(r.exports,r,r.exports,o),r.exports}o.m=a,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,r)=>(o.f[r](e,t),t)),[])),o.u=e=>({106:"jp-search.chunk-main-payload",344:"jp-search.defaultVendors"}[e]+".js?minify=false&ver="+{106:"0f41dd5f8c16fb9fab1e",344:"de2ca6483f4333240053"}[e]),o.miniCssF=e=>"jp-search.chunk-main-payload.css?minify=false&ver=9d1725f327b1ce30525f",(()=>{if(!o.miniCssF)throw new Error("MiniCSSWithRTLPlugin was loaded before MiniCSSExtractPlugin");var e;o.miniCssF=(e=o.miniCssF,t=>{var r="rtl"===document.dir,a=e(t);return r?a.replace(/\.css(?:$|\?)/,".rtl$&"):a})})(),o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="jetpack-search:",o.l=(r,a,n,i)=>{if(e[r])e[r].push(a);else{var s,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),p=0;p<l.length;p++){var d=l[p];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+n){s=d;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+n),s.src=r),e[r]=[a];var u=(t,a)=>{s.onerror=s.onload=null,clearTimeout(h);var n=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach((e=>e(a))),t)return t(a)},h=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),c&&document.head.appendChild(s)}},r={106:0},o.f.wpI18n=(e,t)=>{r[e]?t.push(r[e]):0===r[e]&&t.push(r[e]=(e=>{var t=o(4252);return t&&t.downloadI18n?t.downloadI18n("build/instant-search/"+o.u(e),"jetpack-search-pkg","plugin"):Promise.reject(new Error("I18n loader is not available. Check that WordPress is exporting wp.jpI18nLoader."))})(e).then((()=>{r[e]=!1}),(t=>{r[e]=0,console.error("Failed to fetch i18n data: ",t)})))},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var a=r.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=r[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{if("undefined"!=typeof document){var e=e=>new Promise(((t,r)=>{var a=o.miniCssF(e),n=o.p+a;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),a=0;a<r.length;a++){var n=(i=r[a]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(n===e||n===t))return i}var o=document.getElementsByTagName("style");for(a=0;a<o.length;a++){var i;if((n=(i=o[a]).getAttribute("data-href"))===e||n===t)return i}})(a,n))return t();((e,t,r,a,n)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",o.nc&&(i.nonce=o.nc),i.onerror=i.onload=r=>{if(i.onerror=i.onload=null,"load"===r.type)a();else{var o=r&&r.type,s=r&&r.target&&r.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+o+": "+s+")");c.name="ChunkLoadError",c.code="CSS_CHUNK_LOAD_FAILED",c.type=o,c.request=s,i.parentNode&&i.parentNode.removeChild(i),n(c)}},i.href=t,r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i)})(e,n,null,t,r)})),t={498:0};o.f.miniCss=(r,a)=>{t[r]?a.push(t[r]):0!==t[r]&&{106:1}[r]&&a.push(t[r]=e(r).then((()=>{t[r]=0}),(e=>{throw delete t[r],e})))}}})(),(()=>{var e={498:0};o.f.j=(t,r)=>{var a=o.o(e,t)?e[t]:void 0;if(0!==a)if(a)r.push(a[2]);else{var n=new Promise(((r,n)=>a=e[t]=[r,n]));r.push(a[2]=n);var i=o.p+o.u(t),s=new Error;o.l(i,(r=>{if(o.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var n=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+n+": "+i+")",s.name="ChunkLoadError",s.type=n,s.request=i,a[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var a,n,i=r[0],s=r[1],c=r[2],l=0;if(i.some((t=>0!==e[t]))){for(a in s)o.o(s,a)&&(o.m[a]=s[a]);if(c)c(o)}for(t&&t(r);l<i.length;l++)n=i[l],o.o(e,n)&&e[n]&&e[n][0](),e[n]=0},r=self.webpackChunkjetpack_search=self.webpackChunkjetpack_search||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";o(7778);var e=o(7479),t=o(1017);function r(){Promise.all([o.e(344),o.e(106)]).then(o.bind(o,9470)).then((e=>e.initialize()))}window[e.O5]&&(0,t.UC)(),"loading"!==document.readyState?r():document.addEventListener("DOMContentLoaded",r)})()})(); Save