!function(e){var t="advads_procfp",a="advanced_ads_ad_clicks",d=null,n=null;function o(e){try{return JSON.parse(e)}catch(e){return null}}e(document).on("advads-passive-cb-conditions",(function(e,t){t.conditions.ad_clicks="check_ad_clicks",t.check_ad_clicks=function(e,t){if(advads.cookie_exists(a+"_"+t.id)){var d=advads.get_cookie(a+"_"+t.id);d=o(d)}if(d){var n=parseInt((new Date).getTime()/1e3);for(var i in d)if("_"+e.expiration==i&&d[i].ttl>=n&&d[i].count>=parseInt(e.limit))return!1}return!0}}));var i=function(){this.$elements={},this.currentIFrame=!1,this.focusLost=!1,this.wrappers=[".google-auto-placed"],this.attributes={"data-anchor-status":"displayed","data-vignette-loaded":"true"},this.lastClick=0,this.init()};i.prototype={constructor:i,init:function(){const t=this;let a;e(document).on("click","a[data-cfpa]",(function(){t.onClick(parseInt(e(this).attr("data-cfpa")))})),e(window).on("blur",(function(e){setTimeout((function(){if(!t.currentIFrame)for(let e=document.activeElement;e&&e!==this&&e!==document&&(t.currentIFrame=t.checkWrappers(e),!t.currentIFrame);e=e.parentNode);t.currentIFrame&&(t.onClick(t.currentIFrame),t.focusLost=!0,top.focus())}),0)})),e(document).on("mouseenter","div[data-cfpa]",(function(){var a=parseInt(e(this).attr("data-cfpa"));t.addElement(a)})),document.addEventListener("touchmove",(function(){a=!0}),!1),document.addEventListener("touchstart",(function(){a=!1}),!1),["click","touchend"].forEach((function(e){document.addEventListener(e,(function(e){if(a||t.getTimestamp()-t.lastClick<1)return;let d=null;for(let a=e.target;a&&a!==this&&a!==document;a=a.parentNode){if(d=t.checkWrappers(a),d){t.onClick(d);break}if(a.hasAttribute("data-cfpa")&&a.hasAttribute("data-cfptl")){d=parseInt(a.getAttribute("data-cfpa"),10),t.onClick(d);break}}}))}))},getTimestamp:function(){return Math.floor(Date.now()/1e3)},checkWrappers:function(e){for(let t=0,a=this.wrappers.length,d=null;t=e&&c[f].count>=parseInt(t[f],10)&&(o.forEach((function(e){e.remove()})),r.removeEmptyWrappers()));var u=new Date,p=new Date(c.exp),v=parseInt((p.getTime()-u.getTime())/1e3);advads.set_cookie_sec(a+"_"+i,JSON.stringify(c,"false",!1),v,d,n)}else{var _={},l=0,m=new Date;u=new Date;for(var f in t)f=f.substring(1),parseFloat(f)>l&&(l=parseFloat(f)),_["_"+f]={count:1,ttl:parseInt(u.getTime()/1e3+3600*parseFloat(f),10)};m.setTime(m.getTime()+60*l*60*1e3);var w="expires="+m.toUTCString();v=parseInt((m.getTime()-u.getTime())/1e3);_.exp=w,advads.set_cookie_sec(a+"_"+i,JSON.stringify(_,"false",!1),v,d,n)}}if(advads.cookie_exists(t+"_"+i)&&(s=o(advads.get_cookie(t+"_"+i))),s){s.count=parseInt(s.count,10)+1;u=new Date,v=((p=new Date(s.exp)).getTime()-u.getTime())/1e3;advads.set_cookie_sec(t+"_"+i,JSON.stringify(s,"false",!1),v,d,n),advadsCfpInfo.cfpClickLimit<=s.count&&void 0!==advadsCfpInfo.cfpBan&&r._banVisitor()}else{m=new Date,u=new Date;m.setTime(m.getTime()+60*advadsCfpInfo.cfpExpHours*60*1e3);w="expires="+m.toUTCString(),v=(m.getTime()-u.getTime())/1e3;advads.set_cookie_sec(t+"_"+i,'{"count":1,"exp":"'+w+'"}',v,d,n),1===advadsCfpInfo.cfpClickLimit&&void 0!==advadsCfpInfo.cfpBan&&r._banVisitor()}}},e((function(){for(var t in window.advadsProCfp=new i,e(document).on("mouseenter","iframe[data-cfpa]",(function(t){var a=parseInt(e(this).attr("data-cfpa"));advadsProCfp.currentIFrame=a})).on("mouseenter",".google-auto-placed",(function(e){advadsProCfp.currentIFrame="google-auto-placed"})).on("mouseleave mouseout","[data-cfpa], .google-auto-placed",(function(){advadsProCfp.currentIFrame=!1,advadsProCfp.focusLost&&(advadsProCfp.focusLost=!1,e(window).trigger("focus"))})),advadsCfpQueue)advadsCfpQueue.hasOwnProperty(t)&&advadsProCfp.addElement(advadsCfpQueue[t]);advadsCfpQueue=[],void 0!==window.advadsCfpInfo.cfpPath&&(""!=advadsCfpInfo.cfpPath&&(d=advadsCfpInfo.cfpPath),""!=advadsCfpInfo.cfpDomain&&(n=advadsCfpInfo.cfpDomain))}))}(window.jQuery);var advanced_ads_resizetimeout=1e3,advanced_ads_cookieexpires=30,advanced_ads_browser_width=advanced_ads_get_browser_width();if(void 0!==window.advads){var cookieValue=advads.get_cookie("advanced_ads_visitor"),info=cookieValue?JSON.parse(cookieValue):{};info.browser_width&&info.browser_width===advanced_ads_browser_width||advanced_ads_save_width(advanced_ads_browser_width)}function advanced_ads_resize_window(){advads_resize_delay((function(){if(advanced_ads_browser_width!==(advanced_ads_browser_width=advanced_ads_get_browser_width())){advanced_ads_save_width(advanced_ads_browser_width);var e=window.advanced_ads_responsive||{};window.jQuery&&parseInt(e.reload_on_resize,10)&&jQuery(document).triggerHandler("advanced-ads-resize-window")}}),advanced_ads_resizetimeout)}function advanced_ads_save_width(e){if(window.advanced_ads_responsive&&void 0!==window.advads){var t=advads.get_cookie("advanced_ads_visitor"),a=t?JSON.parse(t):{};a.browser_width=e,advads.set_cookie("advanced_ads_visitor",JSON.stringify(a),advanced_ads_cookieexpires,advanced_ads_cookies.cookie_path,advanced_ads_cookies.cookie_domain)}}window.addEventListener?window.addEventListener("resize",advanced_ads_resize_window,!1):window.attachEvent&&window.attachEvent("onresize",advanced_ads_resize_window);var advads_resize_delay=function(){var e=0;return function(t,a){clearTimeout(e),e=setTimeout(t,a)}}();function advanced_ads_get_browser_width(){if(window.jQuery)return jQuery(window).width();var e=0;return"number"==typeof window.innerWidth?e=window.innerWidth:document.documentElement&&document.documentElement.clientWidth?e=document.documentElement.clientWidth:document.body&&document.body.clientWidth&&(e=document.body.clientWidth),e};
;(function($, window, document) {
"use strict";
// dependencies
if (typeof $ === "undefined")
throw "Missing dependency: jQuery" + "\n" + "https://code.jquery.com/";
/**
* Initialize Accordion
*
* @param {Object} element HTML node
* @param {Object} options see Accordion.prototype._defaults
* @return {Void}
*/
var Accordion = function(element, options) {
if (!(this instanceof Accordion))
throw "Accordion: Accordion is a constructor.";
this._element = element;
this._options = options;
this._init();
}
/**
* Accordion prototype
*
* @type {Object}
*/
$.extend(Accordion.prototype, {
/**
* Default options
*
* @type {Object}
*/
_defaults: {
parent: null,
questionClass: '.question',
answerClass: '.answer',
itemClass: '.item',
closeOthers: true,
animationDuration: 200,
},
/**
* Constructor
*
* @return {Void}
*/
_init: function() {
this._element = $(this._element)
.addClass("jquery-accordion")
.data("jquery-accordion", this)
.get(0);
// extend options
this._options = $.extend(true, {}, this._defaults, this._options);
for (var key in this._options) {
if (!(key in this._defaults))
delete this._options[key];
}
// bind events
$(this._element)
// .find(this._options.questionClass)
.on("click.jqueryaccordion", this._options.questionClass, this._handleQuestionClick.bind(this));
$(this._element).trigger("jqueryaccordioninit");
},
/**
* Question click event handler
*
* @param {Event} e
*/
_handleQuestionClick: function(e) {
var $target = $(e.currentTarget);
this.toggle($target);
},
/**
* Open/Close question
*
* @param {Object} element
*/
toggle: function(element) {
$(this._element).trigger("jqueryaccordiontoggle");
var $answer = element
.parent()
.find(this._options.answerClass);
var item = element.closest(this._options.itemClass);
if (this._options.closeOthers)
item
.siblings()
.removeClass("jquery-accordion-active")
.find(this._options.answerClass)
.slideUp(this._options.animationDuration);
item.toggleClass("jquery-accordion-active")
$answer.slideToggle(this._options.animationDuration);
$(this._element).trigger("jqueryaccordiontoggled");
},
/**
* Destructor
*
* @return {Void}
*/
destroy: function() {
$(this._element)
.removeClass("jquery-accordion")
.removeData("jquery-accordion")
.trigger("jqueryaccordiondestroy");
this._element = null;
this._options = null;
},
/**
* Get/Set lib option
*
* @param {String} key
* @param {Mixed} value
* @return {Mixed}
*/
options: function(key, value) {
if (!(key in this._options))
throw "Accordion: invalid options key '" + key + "'";
// get
if (typeof value === "undefined")
return this._options[key];
// set
this._options[key] = value
},
});
// jQuery plugin
$.fn.accordion = function(options) {
var $this = $(this);
var args = Array.prototype.slice.call(arguments, 1);
// iterate all
$this.each(function() {
// is init
var lib = $(this).data("jquery-accordion");
// create new instance
if (!lib)
lib = new Accordion(this, typeof options === "object" ? options : {});
// global methods
if (typeof options === "string") {
if (options.substr(0,1) !== "_" && options in lib && typeof lib[options] === "function") {
// execute
var result = lib[options].apply(lib, args);
// result, exit loop
if (typeof result !== "undefined") {
$this = result;
return false;
}
}
else
throw "Accordion: no method named '" + options + "'";
}
});
// ...finally
return $this;
}
})(window.jQuery, window, document);;
jQuery(document).ready(function ($) {
const pymntsResultsOutputEl = document.querySelector("#results-output .row");
let archiveCurrentPageNumber = 1;
let archiveCurrentFilterType = "category";
let archiveCurrentFilterItems = [];
let initApplyFiltersTimer = null;
let updateUrlParams = false;
let keepCurrentPage = false;
const url = new URL(window.location.href);
if (url.searchParams.get("page")) {
keepCurrentPage = true;
archiveCurrentPageNumber = url.searchParams.get("page");
}
const clearFilters = () => {
[...document.getElementsByClassName("pymnts-filter")].forEach(
(checkbox) => {
if (checkbox.checked) {
checkbox.click();
}
}
);
};
const getReportHTML = (data) => {
let ctaHTML = "";
let contentTypeIcon = "";
let sponsor = "";
let imageHTML = "";
let aboutHTML = "";
let reportDetailsHTML = "";
if (data?.pymnts_custom?.other_editions) {
const otherEditions = data.pymnts_custom.other_editions.filter(
(edition) => edition.month
);
if (otherEditions.length) {
ctaHTML = /* html */ `
${data.pymnts_custom.sponsor}
`;
} else {
imageHTML = /* html */ `
`;
}
if (data?.pymnts_custom?.url) {
reportDetailsHTML = /* html */ `