"),$("Any<\/option>").appendTo(i),t=0;t"+r[t].value+"<\/option>").appendTo(i);let u=$("#productMatrix thead tr th[data-column-head-index='"+n+"']");i.appendTo(u)}}$("#productMatrix thead tr th select").on("change",function(){let n=$(this).closest("th").data("column-head-index");filterMatrix()})}function clearFilter(){$("#productMatrix thead tr th select").each(function(){$(this).val("")});filterMatrix()}function filterMatrix(){showAllBeforeFiltering();$("#productMatrix thead tr th select").each(function(){let n=$(this),t=n.val(),i=parseInt(n.closest("th").data("column-head-index"));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()}function showAllBeforeFiltering(){$("#productMatrix tbody tr").show()}function stripeTheMatrix(){$("tr:visible").each(function(n){$(this).toggleClass("stripe",!!(n&1))})}$(document).ready(function(){createFilters();stripeTheMatrix()})