"),$("Any<\/option>").appendTo(r),i=0;i=2&&(n=parseFloat(n).toFixed(2))),$(""+n+"<\/option>").appendTo(r);r.appendTo(o)}}$("#productMatrix thead tr th select").on("change",function(){let n=$(this).closest("th").data("column-head-index");filters[n]=$(this).val();filterMatrix()});for(let n in filters){let t=filters[n];$("#productMatrix thead tr th[data-column-head-index='"+n+"'] select").val(t)}}function clearFilter(){$("#productMatrix thead tr th select").each(function(){$(this).val("")});showAllBeforeFiltering();filters={};createFilters()}function filterMatrix(){showAllBeforeFiltering();let n=[];for(let t in filters){let i=filters[t],r=parseInt(t);i!==""&&$("#productMatrix tbody tr").each(function(){let t=$(this);t.css("display")!=="none"&&$(this.children[r]).data("specification-attribute-id").toString()!==i&&n.push(this)})}$(n).hide();stripeTheMatrix();createFilters()}function showAllBeforeFiltering(){$("#productMatrix tbody tr").show()}function stripeTheMatrix(){$("tr:visible").each(function(n){$(this).toggleClass("stripe",!!(n&1))})}function comparer(n){return function(t,i){var r=getCellValue(t,n),u=getCellValue(i,n);return $.isNumeric(r)&&$.isNumeric(u)?r-u:Number.isNaN(Number(r))&&Number.isNaN(Number(u))?r.toString().localeCompare(u):Number.isNaN(Number(r))?1:-1}}function getCellValue(n,t){return $(n).children("td").eq(t).text()}$(document).ready(function(){var n=$("#productMatrix tbody tr").get();n.sort(function(n,t){var i=$(n).children("td").first().text(),r=$(t).children("td").first().text(),u=i.match(/([a-zA-Z]+)(\d+)/),f=r.match(/([a-zA-Z]+)(\d+)/),e;return u&&f?u[1]f[1]?1:(e=parseInt(u[2])-parseInt(f[2]),e!=0)?e:i.length-r.length:ir?1:0});$.each(n,function(n,t){$("#productMatrix tbody").append(t)});createFilters();stripeTheMatrix()});var filters={};$("#productMatrix thead th").first().click(function(){var i=$(this).parents("table").eq(0),n=i.find("tr:gt(0)").toArray().sort(comparer($(this).index())),t;for(this.asc=!this.asc,this.asc||(n=n.reverse()),t=0;t