// app/modules/loyalty/static/merchant/js/loyalty-cards.js
// noqa: js-006 - async init pattern is safe, loadData has try/catch

const merchantCardsLog = window.LogConfig.loggers.merchantCards || window.LogConfig.createLogger('merchantCards');

function merchantLoyaltyCards() {
    return loyaltyCardsList({
        apiPrefix: '/merchants/loyalty',
        baseUrl: '/merchants/loyalty/cards',
        showStoreFilter: true,
        currentPage: 'cards',
    });
}

if (!window.LogConfig.loggers.merchantCards) {
    window.LogConfig.loggers.merchantCards = window.LogConfig.createLogger('merchantCards');
}
merchantCardsLog.info('Merchant loyalty cards module loaded');
