(function () {
    'use strict';

    document.addEventListener('click', function (event) {
        var button = event.target.closest('[data-apd-print-worksheet]');
        if (!button) {
            return;
        }

        event.preventDefault();
        window.print();
    });
}());
