1(()=>{function e(){var n,r,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.toStringTag||"@@toStringTag";function a(e,o,i,c){var a=o&&o.prototype instanceof s?o:s,u=Object.create(a.prototype);return t(u,"_invoke",function(e,t,o){var i,c,a,s=0,u=o||[],d=!1,f={p:0,n:0,v:n,a:v,f:v.bind(n,4),d:function(e,t){return i=e,c=0,a=n,f.n=t,l}};function v(e,t){for(c=e,a=t,r=0;!d&&s&&!o&&r<u.length;r++){var o,i=u[r],v=f.p,p=i[2];e>3?(o=p===t)&&(a=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=n):i[0]<=v&&((o=e<2&&v<i[1])?(c=0,f.v=t,f.n=i[1]):v<p&&(o=e<3||i[0]>t||t>p)&&(i[4]=e,i[5]=t,f.n=p,c=0))}if(o||e>1)return l;throw d=!0,t}return function(o,u,p){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&v(u,p),c=u,a=p;(r=c<2?n:a)||!d;){i||(c?c<3?(c>1&&(f.n=-1),v(c,a)):f.n=a:f.v=a);try{if(s=2,i){if(c||(o="next"),r=i[o]){if(!(r=r.call(i,a)))throw TypeError("iterator result is not an object");if(!r.done)return r;a=r.value,c<2&&(c=0)}else 1===c&&(r=i.return)&&r.call(i),c<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=n}else if((r=(d=f.n<0)?a:e.call(t,f))!==l)break}catch(e){i=n,c=1,a=e}finally{s=1}}return{value:r,done:d}}}(e,i,c),!0),u}var l={};function s(){}function u(){}function d(){}r=Object.getPrototypeOf;var f=[][i]?r(r([][i]())):(t(r={},i,function(){return this}),r),v=d.prototype=s.prototype=Object.create(f);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,t(e,c,"GeneratorFunction")),e.prototype=Object.create(v),e}return u.prototype=d,t(v,"constructor",d),t(d,"constructor",u),u.displayName="GeneratorFunction",t(d,c,"GeneratorFunction"),t(v),t(v,c,"Generator"),t(v,i,function(){return this}),t(v,"toString",function(){return"[object Generator]"}),(e=function(){return{w:a,m:p}})()}function t(e,n,r,o){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}t=function(e,n,r,o){if(n)i?i(e,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[n]=r;else{var c=function(n,r){t(e,n,function(e){return this._invoke(n,r,e)})};c("next",0),c("throw",1),c("return",2)}},t(e,n,r,o)}function n(e,t,n,r,o,i,c){try{var a=e[i](c),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}document.addEventListener("DOMContentLoaded",function(){var t;document.querySelectorAll(".accordion-header").forEach(function(e){e.addEventListener("click",function(e){var t=this.querySelector(".accordion-toggle");if(t){var n=this.nextElementSibling,r="true"===t.getAttribute("aria-expanded");if(t.setAttribute("aria-expanded",!r),n)if(r){n.style.display="none";var o=t.querySelector(".icon-chevron-up");o&&(o.classList.remove("icon-chevron-up"),o.classList.add("icon-chevron-down"))}else{n.style.display="block";var i=t.querySelector(".icon-chevron-down");i&&(i.classList.remove("icon-chevron-down"),i.classList.add("icon-chevron-up"))}else console.error("Could not find accordion content")}})}),document.querySelectorAll(".accordion-toggle").forEach(function(e){e.addEventListener("click",function(e){e.stopPropagation();var t=this.closest(".accordion-header");if(t){var n=t.nextElementSibling,r="true"===this.getAttribute("aria-expanded");if(this.setAttribute("aria-expanded",!r),n)if(r){n.style.display="none";var o=this.querySelector(".icon-chevron-up");o&&(o.classList.remove("icon-chevron-up"),o.classList.add("icon-chevron-down"))}else{n.style.display="block";var i=this.querySelector(".icon-chevron-down");i&&(i.classList.remove("icon-chevron-down"),i.classList.add("icon-chevron-up"))}}})}),document.querySelectorAll(".filter-group-header").forEach(function(e){e.addEventListener("click",function(e){var t=this.querySelector(".toggle-button");if(t){var n=this.nextElementSibling,r="true"===t.getAttribute("aria-expanded");t.setAttribute("aria-expanded",!r),n&&(r?(n.style.display="none",t.querySelector("span").textContent="+",t.querySelector("span").className="icon-plus"):(n.style.display="block",t.querySelector("span").textContent="â",t.querySelector("span").className="icon-minus"))}})}),document.querySelectorAll(".submenu-toggle").forEach(function(e){e.addEventListener("click",function(e){e.stopPropagation();var t=this.closest(".collection-item-header").nextElementSibling,n="true"===this.getAttribute("aria-expanded");this.setAttribute("aria-expanded",!n),t&&(n?(t.style.display="none",this.querySelector("span").textContent="+",this.querySelector("span").className="icon-plus"):(t.style.display="block",this.querySelector("span").textContent="â",this.querySelector("span").className="icon-minus"))})}),document.querySelectorAll(".collection-item-header").forEach(function(e){e.addEventListener("click",function(e){if("A"!==e.target.tagName&&!e.target.closest(".submenu-toggle")){var t=this.querySelector(".submenu-toggle");t&&t.click()}})}),function(){var e=document.querySelector(".mobile-filters-toggle"),t=document.querySelector(".mobile-filter-drawer"),n=document.querySelector(".mobile-filter-drawer .drawer-overlay"),r=document.querySelector(".mobile-filter-drawer .close-drawer"),o=document.querySelector(".mobile-filter-drawer .apply-filters-button"),i={};function c(e,t){if(!e.classList.contains("size-option")){var n=e.closest(".filter-group"),r="color"===(null==n?void 0:n.dataset.f
1ilterGroup),o=e.querySelector(".icon-circle"),i=e.querySelector(".icon-check");if(t){if(!i&&!r){var c;(i=document.createElementNS("http://www.w3.org/2000/svg","svg")).classList.add("svg-icon","icon-check");var a=document.createElementNS("http://www.w3.org/2000/svg","use");a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#reuse-check"),i.appendChild(a),null===(c=o)||void 0===c||null===(c=c.parentNode)||void 0===c||c.insertBefore(i,o)}i&&!r&&(i.style.display="inline-block"),o&&!r&&(o.style.display="none"),r&&e.querySelector(".icon-circle-color").classList.add("icon-color-selected")}else{if(!o){(o=document.createElementNS("http://www.w3.org/2000/svg","svg")).classList.add("svg-icon","icon-circle"),o.setAttribute("viewBox","0 0 100 100");var l=document.createElementNS("http://www.w3.org/2000/svg","use");l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#reuse-circle"),o.appendChild(l);var s=e.querySelector(".filter-label")||e.firstElementChild;e.insertBefore(o,s)}console.log(o),console.log(i),console.log("isColour"),o&&!r&&(o.style.display="inline-block"),i&&!r&&(i.style.display="none"),r&&e.querySelector(".icon-circle-color").classList.remove("icon-color-selected")}}}function a(){i={};var e=new URL(window.location.href);new URLSearchParams(e.search).forEach(function(e,t){t.startsWith("filter.")&&l(t,e)}),function(){document.querySelectorAll(".mobile-filter-drawer .filter-option-link, .mobile-filter-drawer .size-option").forEach(function(e){e.classList.remove("selected"),c(e,!1)});var e=document.querySelector(".mobile-filter-drawer .stock-checkbox");e&&(e.checked=!1);var t=document.querySelector('.mobile-filter-drawer input[name*="min_price"]'),n=document.querySelector('.mobile-filter-drawer input[name*="max_price"]');t&&(t.value=""),n&&(n.value="")}(),function(){document.querySelectorAll(".mobile-filter-drawer .filter-option-link, .mobile-filter-drawer .size-option").forEach(function(e){var t=e.getAttribute("data-filter-param"),n=e.getAttribute("data-filter-value");t&&n&&u(t,n)&&(e.classList.add("selected"),c(e,!0))});var e=document.querySelector(".mobile-filter-drawer .stock-checkbox");e&&(e.checked=u("filter.v.availability","1"));var t=document.querySelector('.mobile-filter-drawer input[name*="min_price"]'),n=document.querySelector('.mobile-filter-drawer input[name*="max_price"]');t&&i[t.name]&&(t.value=d(t.name)),n&&i[n.name]&&(n.value=d(n.name))}(),f()}function l(e,t){i[e]||(i[e]=[]),i[e].includes(t)||i[e].push(t)}function s(e,t){if(i[e])if(void 0===t)delete i[e];else{var n=i[e].indexOf(t);-1!==n&&(i[e].splice(n,1),0===i[e].length&&delete i[e])}}function u(e,t){return i[e]&&i[e].includes(t)}function d(e){return i[e]&&i[e][0]}function f(){var e=function(){var e=0;for(var t in i)e+=i[t].length;return e}();(function(e){var t=document.querySelector(".mobile-filters-toggle .filter-icon");if(t){var n=t.querySelector(".filter-count-badge");if(n&&n.remove(),e>0){var r=document.createElement("span");r.className="filter-count-badge",r.textContent=e;var o=t.querySelector("svg");o&&o.remove(),t.appendChild(r)}}})(e),function(e){if(o){var t=o.querySelector(".selected-count");t&&(e>0?(t.textContent=e,t.style.display="inline-block"):t.style.display="none")}}(e)}function v(){t.classList.remove("active"),document.body.classList.remove("drawer-open")}e&&t&&(e.addEventListener("click",function(){t.classList.add("active"),document.body.classList.add("drawer-open"),a()}),n&&n.addEventListener("click",function(){v()}),r&&r.addEventListener("click",function(){v()}),o&&o.addEventListener("click",function(){!function(){var e=new URL(window.location.href),t=new URLSearchParams,n=new URLSearchParams(e.search).get("q"),r=new URLSearchParams(e.search).get("type");n&&t.set("q",n),r&&t.set("type",r);var o=function(e){i[e].forEach(function(n){t.append(e,n)})};for(var c in i)o(c);e.search=t.toString(),window.location.href=e.toString()}()}),document.addEventListener("keydown",function(e){"Escape"===e.key&&t.classList.contains("active")&&v()}),function(){document.querySelectorAll(".mobile-filter-drawer .filter-option-link, .mobile-filter-drawer .size-option").forEach(function(e){e.classList.contains("disabled")||e.addEventListener("click",function(e){e.preventDefault();var t=this.getAttribute("data-filter-param"),n=this.getAttribute("data-filter-value");t&&n&&function(e,t,n){var r=e.closest(".filter-group");if(r){var o,a,u=void 0===(a=null==(o=r)?void 0:o.dataset.multiSelect)||"true"===a,d=e.classList.contains("selected");u?d?(e.classList.remove("selected"),c(e,!1),s(t,n)):(e.classList.add("selected"),c(e,!0),l(t,n)):(r.querySelectorAll(".filter-option-link, .size-option").forEach(function(e){e.classList.contains("selected")&&(e.classList.remove("selected"),c(e,!1),s(e.getAttribute("data-filter-param"),e.getAttribute("data-filter-value")))}),d||(e.classList.add("selected"),c(e,!0),function(e,t){i[e]=[t]}(t,n))),f()}}(this,t,n)})});var e=document.querySelector(".mobile-filter-drawer .stock-checkbox");e&&e.addEventListener("change",function(){this.checked?l("filter.v.availability","1"):s("filter.v.availability","1"),f()});var t=document.querySelector(".mobile-filter-drawer .price-range-form");t&&t.addEventListener("submit",function(e){e.preventDefault();var t=this.querySelector('input[name*="min_price"]'),n=this.querySelector('input[name*="max_price"]');t&&(t.value?l(t.name,t.value):s(t.name)),n&&(n.value?l(n.name,n.value):s(n.name)),f()})}())}(),(t=document.querySelectorAll(".price-input input")).length&&t.forEach(function(e){e.addEventListener("input",function(){this.value=this.value.replace(/[^\d]/g,"")}),e.addEventListener("change",function(){var e=parseInt(this.min||0),t=parseInt(this.max||1/0),n=parseInt(this.value||0);n<e&&(n=e),n>t&&(n=t),this.value=n||""})}),document.querySelectorAll(".stock-checkbox").forEach(function(e){e.addEventListener("change",function(){var e=new URL(window.location.href),t=new URLSearchParams(e.search);this.checked?t.set("filter.v.availability","1"):t.delete("filter.v.availability"),e.search=t.toString(),window.location.href=e.toString()})}),function(){var t=document.querySelector('.pagination-container[data-infinite-scroll="true"]');if(t){var r=document.querySelector(".products");if(r){var o=t.querySelector(".next a");if(o){var i=o.href,c=!1,a=!1,l=document.createElement("div");l.className="loading-indicator",l.innerHTML='\n <div class="loading-spinner">\n <div class="spinner"></div>\n </div>\n <p>Loading more products...</p>\n ',l.style.display="none";var s=document.createElement("div");s.className="end-of-results",s.innerHTML="<p>You've reached the end of the results</p>",r.after(l),t.style.display="none",window.addEventListener("scroll",function(){c||a||window.scrollY+window.innerHeight>=document.querySelector(".products").scrollHeight-100&&function(){u.apply(this,arguments)}()})}}}function u(){var t;return t=e().m(function t(){var n,o,u,d,f,v,p,m;return e().w(function(e){for(;;)switch(e.n){case 0:if(i&&!c&&!a){e.n=1;break}return e.a(2);case 1:return c=!0,l.style.display="block",e.p=2,e.n=3,fetch(i);case 3:return n=e.v,e.n=4,n.text();case 4:o=e.v,u=new DOMParser,d=u.parseFromString(o,"text/html"),(f=d.querySelectorAll(".products > li")).length?(f.forEach(function(e){r.appendChild(e.cloneNode(!0))}),v=new CustomEvent("theme:rimg:watch",{bubbles:!0,detail:{}}),r.dispatchEvent(v),(p=d.querySelector(".pagination .next a"))?i=p.href:(i=null,a=!0,l.style.display="none",r.after(s))):(i=null,a=!0,l.style.display="none",r.after(s)),e.n=6;break;case 5:e.p=5,m=e.v,console.error("Error loading more products:",m);case 6:return e.p=6,c=!1,a||(l.style.display="none"),e.f(6);case 7:return e.a(2)}},t,null,[[2,5,6,7]])}),u=function(){var e=this,r=arguments;return new Promise(function(o,i){var c=t.apply(e,r);function a(e){n(c,o,i,a,l,"next",e)}function l(e){n(c,o,i,a,l,"throw",e)}a(void 0)})},u.apply(this,arguments)}}()})})(); 2//# sourceMappingURL=search-filters.js.map
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.