"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[40],{197:(e,t,n)=>{var o=n(1),s=(n(2),n(4));const r={rootMargin:"500px",threshold:0};const{wrapper:c}={};(0,n(7).createEntrypoint)("yotpoHomeUgc",(({instanceId:e})=>{const{rootRef:t}=function(e){const[t,n]=(0,s.useState)(!0),o=(0,s.useCallback)((e=>{const[t]=e;if(t&&t.isIntersecting&&"undefined"!=typeof document){const e=document.createElement("script");e.src="https://cdn-widgetsrepository.yotpo.com/v1/loader/n7EantIJT2ZAXIHwowEMdBpgHm2B9xd45jHVqHUY?languageCode=en",e.async=!0,document.body.appendChild(e),n(!1)}}),[]),{rootRef:r}=function({options:e,conditionToObserve:t,callback:n}){const o=(0,s.useRef)(null);return(0,s.useEffect)((()=>{if(!t)return;const s=new IntersectionObserver(n,Object.assign(Object.assign({},e),{root:null}));return o.current&&s.observe(o.current),()=>{o.current&&s.unobserve(o.current)}}),[t]),{rootRef:o}}({options:e,callback:o,conditionToObserve:t});return{rootRef:r}}(r);return(0,o.jsx)("div",Object.assign({className:c,ref:t},{children:(0,o.jsx)("div",{class:"yotpo-widget-instance","data-yotpo-instance-id":e})}))}))()}},e=>{e.O(0,[1,2],(()=>(197,e(e.s=197)))),e.O()}]);