{"version":3,"sources":["assets/src/modules/ElcaBlogRelatedArticles/js/ElcaBlogRelatedArticles.js"],"names":["showResults","articleUrl","queryString","$","val","AsyncRequestManager","renderAsyncRequest","document","ready","window","location","pathname","split","pop","length"],"mappings":"AASA,SAASA,YAAYC,GACbC,EAAc,eAAiBD,EAAa,mBAAqBE,EAAE,iCAAiCC,OACnF,IAAIC,qBACVC,mBAAmB,6CAA8CJ,EAAa,2CAA2C,GAZ5IC,EAAEI,UAAUC,MAAM,WACd,IAAIP,EAAaQ,OAAOC,SAASC,SAASC,MAAM,KAAKC,MAEH,GAA9CV,EAAE,kCAAkCW,QACpCd,YAAYC","file":"ElcaBlogRelatedArticles.js","sourcesContent":["$(document).ready(function () {\r\n var articleUrl = window.location.pathname.split(\"/\").pop();\r\n\r\n if ($(\"#mi-blog-related-articles-list\").length == 0) {\r\n showResults(articleUrl);\r\n }\r\n\r\n});\r\n\r\nfunction showResults(articleUrl) {\r\n var queryString = \"?articleUrl=\" + articleUrl + \"&selectedItemId=\" + $('#mi-corpo-blog-selectedItemId').val();\r\n var requestManager = new AsyncRequestManager();\r\n requestManager.renderAsyncRequest('/blogrelatedarticles/searchrelatedarticles', queryString, '[data-widget=\"elcablogrelatedarticles\"]', true);\r\n}\t"]}