function renderFaqsSnippet(e){var t=new XMLHttpRequest;t.onreadystatechange=function(){if(4==t.readyState&&200==t.status&&t.responseText.length>0){var e;e=document.createElement("script"),e.setAttribute("id","reviewsWidgetFaqsSnippets"),e.setAttribute("type","application/ld+json"),e.appendChild(document.createTextNode(t.responseText)),document.getElementsByTagName("head")[0].appendChild(e)}};var n="https://api.reviews.io/json-ld/faqs/snippet?store="+encodeURIComponent(e.store)+"&url="+encodeURIComponent(document.location.href)+"&grouping_hash="+encodeURIComponent(e.group);t.open("GET",n),t.send()}function fetchWidgetContents(e,t,n,o,i,a){i=void 0===i?[]:i,a=void 0===a?"":a;var s=new XMLHttpRequest;s.onreadystatechange=function(){4==s.readyState&&200==s.status&&s.responseText.length>0&&(e.innerHTML=s.responseText,setupWidget(e,t,n,i)),window.setTimeout(stopLoading,1e3)};var d="https://widget.reviews.io/questions-answers/widget?store="+encodeURIComponent(t)+"&grouping_hash="+encodeURIComponent(n)+"&page="+encodeURIComponent(o)+"&search="+encodeURIComponent(a);d+=buildQueryString(i),s.open("GET",d),s.send()}function buildQueryString(e){for(var t="",n=0;n-1&&o.push({key:i,value:t[i]});var a=void 0===t.group||null===t.group?window.location.href:t.group,s=document.getElementById("qa_search"),d=s?s.value:"";fetchWidgetContents(n,t.store,a,1,o,d);var r=null;onSearch=function(){clearTimeout(r),r=setTimeout(function(){var e=document.getElementById("qa_search"),i=e?e.value:"";fetchWidgetContents(n,t.store,a,1,o,i)},500)}},productQuestionsWidget=function(e,t){t.group=t.sku,delete t.sku,questionsWidget(e,t)};var ruk_qa_loading=!0;