`;
}).join("");
gridWrap.querySelectorAll(".patch-gallery-card").forEach((btn) => {
btn.addEventListener("click", async () => {
const pName = btn.dataset.patchCard;
await this.loadPresetPatch(pName, true);
this.root.scrollIntoView({ behavior: "smooth", block: "start" });
});
});
};
tabsWrap.innerHTML = this.manifest.categories.map((c) => {
const cnt = this.manifest.patches.filter((p) => p.category === c.id).length;
return `