PageSourceSearch

https://woom.com/_nuxt/COlhOYGl.js

js woom.com collected 2026-09-25 20:51:54 UTC 2,850 bytes, 3 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Bt3oNiK7.js","./DxWSqd2v.js","./entry.BH82Mtom.css"])))=>i.map(i=>d[i]);
2import{aA as D,cY as I,cE as k,cQ as T,cv as W,bA as L,d3 as N,cj as r,ap as _,d7 as v,bm as P,aq as f,bo as m,bN as d,bF as w,ao as g,ax as z,d8 as G,d0 as M,U as V,az as p,Z as b,$}from"./DxWSqd2v.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"92.1-production"};var i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="4d9a4a3a-4b30-454f-914d-c7d9e438b6e0",e._sentryDebugIdIdentifier="sentry-dbid-4d9a4a3a-4b30-454f-914d-c7d9e438b6e0")}catch{}})();const O=p(()=>b(()=>import("./Bt3oNiK7.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>e.default||e)),S=p(()=>b(()=>import("./DxWSqd2v.js").then(e=>e.g),__vite__mapDeps([1,2]),import.meta.url).then(e=>e.default||e)),U={class:"relative lg:min-h-96"},j=D({__name:"ReviewsUGCWidget",props:{data:{},componentIndex:{}},setup(e){const i=e,{data:o,cmsComponentProps:y}=I(i),{language:h}=k(),R=T(),a=d(null),s=d(!0),c=d(Date.now()),l=d(!1);W(()=>({script:[{src:"https://widget.reviews.io/modern-widgets/ugc.js",key:`reviews-ugc-script-${c.value}`,async:!0,onload:()=>{const t=()=>{a.value?.querySelector(".MediaGalleryWidget .MediaGalleryWidget__inner")&&(s.value=!1,n&&n.disconnect())},n=new MutationObserver(()=>{t()});a.value&&(n.observe(a.value,{childList:!0,subtree:!0}),t()),setTimeout(()=>{s.value=!1,n&&n.disconnect()},5e3)},onerror:t=>{console.error(`Failed to load ugc script: ${t}`),s.value=!1}}]}));const u=async()=>{if(!l.value){l.value=!0;try{if(!o.reviews_widget_id){s.value=!1;return}if(await m(),!a.value){s.value=!1;return}a.value.innerHTML="";const t=document.createElement("div");t.className="reviews-io-ugc-widget",t.setAttribute("widget-id",`${o.reviews_widget_id}`),t.setAttribute("data-store-name","woom.com"),t.setAttribute("lang",`${h.value}`),a.value.appendChild(t),c.value=Date.now()}finally{l.value=!1}}},x=async()=>{let t=10;for(;!a.value&&t>0;)await m(),await new Promise(n=>setTimeout(n,100)),t--;a.value?u():console.warn("widgetRef never became available.")};return L(()=>{x()}),N([()=>R.path,()=>a.value],()=>{o.reviews_widget_id&&(s.value=!0,u())}),(t,n)=>{const C=O,E=V,A=S;return r(o).reviews_widget_id?(w(),_(A,P({key:0,class:"cms-reviews-ugc-widget mb-10 md:mb-12"},r(y)),{default:v(()=>[g("div",U,[r(s)?(w(),_(C,{key:0,"aria-busy":"true",class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"})):f("",!0),z(E,null,{default:v(()=>[G(g("div",{ref_key:"widgetRef",ref:a},null,512),[[M,!r(s)]])]),_:1})])]),_:1},16)):f("",!0)}}}),F=Object.assign($(j,[["__scopeId","data-v-ef5114be"]]),{__name:"CmsReviewsUGCWidget"});export{F as default};
3//# sourceMappingURL=COlhOYGl.js.map

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.