!function(n){const o=function(){n(document).on("click",".dlp-download-link",this.handleDownloadClick),n(document).on("dlp_multi_download",this.handleMultiDownloadClick)};o.prototype.handleDownloadClick=function(o){const a=n(this).data("download-id");n.ajax({url:dlp_count_params.ajax_url,type:"POST",data:{download_id:a,action:dlp_count_params.ajax_action,_ajax_nonce:dlp_count_params.ajax_nonce},xhrFields:{withCredentials:!0}}).done((function(n){console.log(n)}))},o.prototype.handleMultiDownloadClick=function(o,a){n.ajax({url:dlp_count_params.ajax_url,type:"POST",data:{download_ids:a.downloadIds,action:dlp_count_params.ajax_action,_ajax_nonce:dlp_count_params.ajax_nonce},xhrFields:{withCredentials:!0}}).done((function(n){console.log(n)}))},new o}(jQuery,window);