(()=>{const t=(t,e,n)=>{for(let r=0;r{const n=document.getElementById("review-ratings-container")?.getAttribute("data-product-id");if(!n)return;const r=e[n];(t=>{const e=document.getElementById("mwb-ratings"),n=document.getElementById("mwb-reviews");e&&n&&(e.textContent=t.average_score.toFixed(2),n.textContent=t.total_reviews.toLocaleString())})(r),(e=>{const n=document.createDocumentFragment(),r=Math.floor(e);t(r,"star-full",n);const o=(a=e%1)>=0&&a<.125?"empty":a>=.125&&a<.375?"quarter":a>=.375&&a<.625?"half":a>=.625&&a<.875?"three-quarter":"full";var a;const s="empty"!==o?1:0;t(s,`star-${o}`,n);const c=Math.max(0,5-r-s);t(c,"star-empty",n),document.getElementById("review-ratings-stars")?.appendChild(n)})(r.average_score)})(await(async()=>{try{const t="?v="+time_getVersionDateString(),e=await fetch(window.siteConfig.homeURL+"/wp-json/wp/v2/api/reviews"+t,{method:"GET"});if(!e.ok)throw new Error("Could not retrieve review data");return await e.json()}catch(t){throw console.error("Error fetching review data:",t),t}})())}))})();; !function(t){"use strict";jQuery(document).ready((function(){window.outerWidth>=992&&t(".cards-v2").each(((e,i)=>{!function(e,i){let n=0;t(i,e).each((function(){t(this).height()>n&&(n=t(this).height())})),t(i,e).height(n)}(t(".cards-v2__boxes",i),".btn-container")}))}))}(jQuery);; !function(e){"use strict";e(document).ready((function(){e(document).on("click","body:not(.wp-admin) .faq-item__header",(function(t){e(this).parent().toggleClass("active"),e(this).next(".faq-item__answer").slideToggle()}))}))}(jQuery);;