{"version":3,"file":"script.js","mappings":"AAoBGA,OAnBDC,SAASC,iBAAiB,oBAAoB,KAC5C,MAAMC,EAAYF,SAASG,iBAAiB,oCAEvCD,EAAUE,SAIfJ,SAASK,cAAc,iBAAiBC,UAAUC,IAAI,uBAEtDL,EAAUM,SAAQC,IAChB,MAAMC,EAAcD,EAAQJ,cAAc,SAErCK,GAILA,EAAYC,MAAMC,YAAY,mBAAoBF,EAAYG,aAAe,KAAK,IAClF","sources":["webpack://customtheme/./custom-blocks/related-course-list/scripts/src/script.js"],"sourcesContent":["(function ($) {\n document.addEventListener('DOMContentLoaded', () => {\n const ctaSingle = document.querySelectorAll('.courses-workshops-list__element');\n\n if (!ctaSingle.length) {\n return;\n }\n\n document.querySelector('#main-content').classList.add('has-related-courses');\n\n ctaSingle.forEach(element => {\n const description = element.querySelector('.desc');\n \n if (!description) {\n return;\n }\n\n description.style.setProperty('--element-height', description.scrollHeight + 'px');\n });\n });\n})(jQuery);"],"names":["jQuery","document","addEventListener","ctaSingle","querySelectorAll","length","querySelector","classList","add","forEach","element","description","style","setProperty","scrollHeight"],"sourceRoot":""}