PageSourceSearch

https://www.idealhome.co.uk/vite/assets/index-DQXxj_Yu.js

js idealhome.co.uk collected 2026-09-24 17:13:43 UTC 1,939 bytes, 1 lines download raw bytes

1class t{constructor(t){this.siteUUID=t,this.apiBaseUrl=`https://livecomments.viafoura.co/v4/livecomments/${this.siteUUID}`}async getUserProfileStats(t){const e=await fetch(`${this.apiBaseUrl}/${t}/profile`,{method:"GET",headers:{accept:"application/json"}}).catch((t=>{throw new Error(`Failed to fetch Viafoura user profile stats: ${t.message}`)}));if(!e.ok){const t=await e.text();throw new Error(`Viafoura API request failed with status ${e.status}: ${t}`)}return await e.json()}async getTrendingContent(t){const e=new URL(`${this.apiBaseUrl}/trending`);e.searchParams.set("limit",String((null==t?void 0:t.limit)??3)),e.searchParams.set("sorted_by",(null==t?void 0:t.sortedBy)??"total_visible_contents"),e.searchParams.set("content_window_hours",String((null==t?void 0:t.contentWindowHours)??48));const a=await fetch(e.toString()).catch((t=>{throw new Error(`Failed to fetch Viafoura trending content: ${t.message}`)}));if(!a.ok){const t=await a.text();throw new Error(`Viafoura API request failed with status ${a.status}: ${t}`)}return await a.json()}}class e{constructor(t,e){this.vanillaSiteName=t,this.apiBaseUrl=e}setApiBaseUrl(t){this.apiBaseUrl=t}async getUserProfileStats(t){const e=await fetch(`${this.apiBaseUrl}/user-stats/kiosq/${this.vanillaSiteName}/${t}`,{method:"GET",headers:{accept:"application/json"}}).catch((t=>{throw new Error(`Failed to fetch Kwizly user profile stats: ${t.message}`)}));if(!e.ok){const t=await e.text();throw new Error(`Kwizly API request failed with status ${e.status}: ${t}`)}const a=await e.json();if(null==a?void 0:a.error)throw new Error(`Kwizly API request failed: ${null==a?void 0:a.error}`);return a}}function a(e=window.vanilla.featureFlags.viafouraComments.siteUUID){return new t(e)}const s="https://kwizly.com/api";function i(t=window.ffte.siteName,a=s){return new e(t,a)}function r(){return{viafoura:{commentsApiService:a()},kwizly:{quizApiService:i()}}}export{i as a,r as i,a as m};

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.