function PublicPromoRoundel(){this.init()}mindtools="undefined"==typeof mindtools?new function(){}:mindtools,mindtools.public=void 0===mindtools.public?new function(){}:mindtools.public,PublicPromoRoundel.prototype=function(o,n){var t={},i=[];return t.init=function(){n(".js_promo_roundel").length&&(i=n(".js_promo_roundel"),this.requestInfo())},t.requestInfo=function(){var o=this,t=[];Array.from(i).forEach(function(o){t.push(o.getAttribute("data-value"))}),n.ajax({method:"POST",url:"/pages/promoRoundel",data:{promoIds:t}}).done(function(n){o.buildRoundel(n)})},t.buildRoundel=function(o){Array.from(i).forEach(function(n){var t=n.getAttribute("data-value");if(o[t]&&o[t].promo){var i=o[t].promo,u=['<div class="circle" style="top: '+i.roundel_position_y+"%; left: "+i.roundel_position_x+"%; background-color: "+i.roundel_bg_colour+"; color: "+i.roundel_text_colour+'">','<div class="circle-content">'+i.roundel_copy+"</div>","</div>"].join("");n.innerHTML=u}n.removeAttribute("data-value")})},t.dispose=function(){},t}(mindtools.public,jQuery);