{"version":3,"file":"responsive-table.js","sources":["../../assets/rollup/responsive-table.js"],"sourcesContent":["let $tables;\nconst $ = jQuery;\n\nconst build_responsive_grid_table = (selector) => {\n $tables = $(selector);\n\n if ($tables.length < 1) return;\n\n $tables.each(function () {\n const $table = $(this);\n\n if (!$table.hasClass('table--responsive')) {\n $table.addClass('table--responsive');\n\n const headers = $table.find('thead th').map((i, v) => {\n return v.innerText;\n });\n\n $table.find('tbody tr').each(function (i, v) {\n $(this).find('th,td').each(function (p, q) {\n const $cell = $(this);\n if ($cell.is('td') && headers.length > 0) {\n $cell.prepend('