"),$("Any<\/option>").appendTo(r),i=0;i=2&&(n=parseFloat(n).toFixed(2))),$(""+n+"<\/option>").appendTo(r);r.appendTo(e)}}$("#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();for(let n in filters){let t=filters[n],i=parseInt(n);t!==""&&$("#productMatrix tbody tr").each(function(){let n=$(this);n.css("display")!=="none"&&$(this.children[i]).data("specification-attribute-id").toString()!==t&&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 u=$(n).children("td").first().text(),f=$(t).children("td").first().text(),i=u.match(/(\D+)(\d+(\.\d+)?)-(\d+)/),r=f.match(/(\D+)(\d+(\.\d+)?)-(\d+)/);return i&&r?i[1]r[1]?1:parseFloat(i[2])parseFloat(r[2])?1:parseInt(i[3])-parseInt(r[3]):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