{"version":3,"sources":["assets/src/modules/ElcaProductListing/js/ProductListingResultController.js"],"names":["removeTags","element","selectorToBeRemoved","ProductListing","removeTag","$","remove","document","ready","hover","this","id","children","toggleClass","on","showResults","val"],"mappings":"AAkBA,SAASA,WAAWC,GAEZC,GADiB,IAAIC,gBACgBC,UAAUH,GAInD,OADAI,EAAEH,GAAqBI,UAChB,EAxBXD,EAAEE,UAAUC,MAAM,WAEdH,EAAE,qCAAqCI,MAAM,WACzCJ,EAAE,IAAMK,KAAKC,IAAIC,SAAS,0CAA0CC,YAAY,iDAGpFR,EAAE,wCAAwCS,GAAG,QAAS,WAClDd,WAAWU,OAEX,IAAIP,gBAAiBY,aAAY,GAAO,KAG5CV,EAAE,yCAAyCS,GAAG,QAAS,YACnD,IAAIX,gBAAiBY,aAAY,GAAO,EAAOV,EAAEK,MAAMM","file":"ProductListingResultController.js","sourcesContent":["$(document).ready(function () {\r\n\r\n $(\".mi-corpo-product-listing-product\").hover(function () {\r\n $('#' + this.id).children('.mi-corpo-product-listing-product-link').toggleClass('mi-corpo-product-listing-product-link-hover');\r\n });\r\n\r\n $(\".mi-corpo-product-listing-remove-tag\").on('click', function () {\r\n removeTags(this);\r\n\r\n new ProductListing().showResults(false, false);\r\n });\r\n\r\n $(\".mi-corpo-product-listing-page-button\").on('click', function () {\r\n new ProductListing().showResults(false, false, $(this).val());\r\n });\r\n\r\n});\r\n\r\nfunction removeTags(element) {\r\n var productListing = new ProductListing();\r\n var selectorToBeRemoved = productListing.removeTag(element);\r\n\r\n // productListing.showResults();\r\n $(selectorToBeRemoved).remove();\r\n return false;\r\n}"]}