rySelector('.bk-shape-input'); if (firstShapeInput && !document.querySelector('.bk-shape-input:checked')) firstShapeInput.checked = true; })(); (function () { // Render bk-shape-model chips from data attributes (avoids nested CMS loops). document.querySelectorAll('[data-shape-chips]').forEach(function (el) { var chips = (el.getAttribute('data-shape-chips') || '').split(',').map(function (s) ).filter(Boolean); var pluginChip = (el.getAttribute('data-shape-plugin-chip') || '').trim(); var html = chips.map(function (c) ).join(''); if (pluginChip) html += '' + pluginChip + ''; el.innerHTML = html; }); })();