This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(){if(window.__areaSortCleanerInited)return;window.__areaSortCleanerInited=true;var allowed={'':1,'price:asc':1,'price:desc':1};function cleanSelectElement(sel){try{var cur=sel.value||'';var keep=Array.prototype.filter.call(sel.options||[],function(o){return!!allowed[o.value]});if(keep.length===(sel.options||[]).length){if(!allowed[cur])sel.value='';return}sel.innerHTML='';keep.forEach(function(o){sel.appendChild(o)});if(cur&&Array.prototype.slice.call(sel.options).some(function(o){return o.value===cur}))sel.value=cur;else sel.value='';}catch(e){} }function cleanMobileCustomSelects(container){try{var hidden=container.querySelector('input.js-store-filter-opt[name="sort"], input[name="sort"]');var items=Array.prototype.slice.call(container.querySelectorAll('.js-store-filter-custom-select, .t-store__filter__custom-sel'));items.forEach(function(it){try{var v=it.getAttribute('data-filter-value')||it.dataset.filterValue||'';if(!allowed[v]){it.parentNode&&it.parentNode.removeChild(it)}}catch(e){}});if(hidde |