')})}var model=JSON.parse('{"IsAuthenticated":false,"SqlData":[],"VariantTableModels":[]}'),dynamicVariableForFilter={},industryQuery=JSON.parse('""'),searchQuery=JSON.parse('""');$(document).ready(function(){var n=$("#variantsTable").DataTable({paging:!1,responsive:!0,info:!1,order:[[0,"desc"]],columnDefs:[{responsivePriority:1,targets:[0]}],language:{search:"Išči:",info:"Prikazujem _START_ do _END_ od _TOTAL_ zapisov"},initComplete:function(){$(".variantsTableLoader").hide();$("#variantsTable").show();CheckFor3dModels()}}),t;n.on("responsive-resize responsive-display",function(){setTimeout(function(){CheckFor3dModels()},300)});$.fn.dataTable.ext.search.push(function(t,i,r){var o=n.row(r).node(),u,f,e;console.log(o);for(key in dynamicVariableForFilter)if(dynamicVariableForFilter.hasOwnProperty(key)&&(u=dynamicVariableForFilter[key].replace(/\s\s+/g," "),u!="-1"))if(f=$(o).attr("data-spec"+key),f){if(e=f.split(","),console.log(e),!e.includes(u.toString()))return!1}else return!1;return!0});industryQuery.length>0&&($("#specificationfilter6").val(industryQuery),dynamicVariableForFilter[6]=industryQuery,n.draw(),CheckFor3dModels());searchQuery.length>0&&(t=$("#variantsTable").find("[data-sku$='"+searchQuery+"']"),t.css("background-color","#ecf6fc"));$("select[id^='specificationfilter']").change(function(){var r=$(this),t=$(this).attr("data-specid"),i=this.value;dynamicVariableForFilter[parseInt(t)]=i;n.draw()});$(".tehnicnaskicaData").on("click",function(){});$(document).on("click","body .3dmodelvarianttable",function(){var t=$(this).attr("data-variantid"),n=$("