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

const storePinsLog = window.LogConfig.loggers.storePins || window.LogConfig.createLogger('storePins');

function storeLoyaltyPins() {
    return loyaltyPinsList({
        apiPrefix: '/store/loyalty',
        staffApiPrefix: '/store',
        showStoreFilter: false,
        showCrud: true,
        currentPage: 'pins',
    });
}

if (!window.LogConfig.loggers.storePins) {
    window.LogConfig.loggers.storePins = window.LogConfig.createLogger('storePins');
}
storePinsLog.info('Store loyalty pins module loaded');
