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

const merchantCardDetailLog = window.LogConfig.loggers.merchantCardDetail || window.LogConfig.createLogger('merchantCardDetail');

function merchantLoyaltyCardDetail() {
    return loyaltyCardDetailView({
        apiPrefix: '/merchants/loyalty',
        backUrl: '/merchants/loyalty/cards',
        currentPage: 'cards',
    });
}

if (!window.LogConfig.loggers.merchantCardDetail) {
    window.LogConfig.loggers.merchantCardDetail = window.LogConfig.createLogger('merchantCardDetail');
}
merchantCardDetailLog.info('Merchant loyalty card detail module loaded');
