1const h=o=>({minReviewCount:0,...o,loaded:!1,showReviews:!1,init(){const t=this.$root.querySelector(".yotpo-widget-instance");if(!t)return;if(this.$root.querySelector("#yotpo-app"))setTimeout(()=>{this.checkMinReviewCount()},300);else{let i=null;new MutationObserver((s,r)=>{s.forEach(n=>{n.type=="childList"&&(i&&clearTimeout(i),i=setTimeout(()=>{r.disconnect(),this.checkMinReviewCount()},500))})}).observe(t,{childList:!0})}},checkMinReviewCount(){const t=this.$root.querySelector("#yotpo-reviews-container .yotpo-reviews-list-wrapper");if(!t){this.showReviews=!1,this.loaded=!0;return}if(t&&t.children.length<this.minReviewCount){this.showReviews=!1;const e=this.$root.querySelector(".yotpo-new-review-btn-wrapper");e&&(e.classList.add("!w-fit","mx-auto","mt-6"),e.firstElementChild?.removeAttribute("id"),e.firstElementChild?.classList.add("btn","btn-primary","!w-fit","mx-auto"),e.firstElementChild.style.borderRadius="0",this.$root.querySelector("#yotpo-not-enough-reviews")?.appendChild(e))}else this.showReviews=!0;this.loaded=!0}});export{h as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.