<script th:if="${theme.config.plugins.swiper}">
    window.addEventListener('DOMContentLoaded', (event) => {
        const swiper_api = document.getElementById('swiper-api');
        if (swiper_api != undefined) {
            utils.css('[(@{/assets/libs/swiper/swiper-bundle.min.css?v=10.3.1})]');
            utils.js('[(@{/assets/libs/swiper/swiper-bundle.min.js?v=10.3.1})]', { defer: true }).then(function () {
                const effect = swiper_api.getAttribute('effect') || '';
                var swipe