PageSourceSearch

https://www.feedspace.io/assets/main-LJhmD_Et.js

js feedspace.io collected 2026-09-24 18:52:21 UTC 19,153 bytes, 27 lines download raw bytes

1import{l as ee}from"./load-external-script-B_gdGlhk.js";const te="modulepreload",oe=function(e){return"/"+e},R={},re=function(t,r,a){let f=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),o=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));f=Promise.allSettled(r.map(n=>{if(n=oe(n),n in R)return;R[n]=!0;const i=n.endsWith(".css"),d=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${d}`))return;const s=document.createElement("link");if(s.rel=i?"stylesheet":te,i||(s.as="script"),s.crossOrigin="",s.href=n,o&&s.setAttribute("nonce",o),document.head.appendChild(s),i)return new Promise((u,h)=>{s.addEventListener("load",u),s.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${n}`)))})}))}function c(l){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=l,window.dispatchEvent(o),!o.defaultPrevented)throw l}return f.then(l=>{for(const o of l||[])o.status==="rejected"&&c(o.reason);return t().catch(c)})},ne={IN:{dataId:"mxYnWf",dataType:"social"},SA:{dataId:"Iv3isK",dataType:"video"},PK:{dataId:"7KIFgU",dataType:"social"},AU:{dataId:"cbhWOT",dataType:"social"},CA:{dataId:"9G6gAH",dataType:"social"},US:{dataId:"RIdPx0",dataType:"social"},DE:{dataId:"gt5SZI",dataType:"video"},ZA:{dataId:"HThOjH",dataType:"video"},SG:{dataId:"zvu5uF",dataType:"video"}},x={dataId:"AaSdI8",dataType:"video"},D="https://js.feedspace.io/v1/embed/review-embed.min.js",L="feedspace_detected_country",T="feedspace_country_cache_timestamp",ie=24*60*60*1e3;async function se(){const t=new URLSearchParams(window.location.search).get("testCountry");if(t)return t.toUpperCase();const r=localStorage.getItem("testCountry");if(r)return r.toUpperCase();const a=localStorage.getItem(L),f=localStorage.getItem(T);if(a&&f){if(Date.now()-parseInt(f,10)<ie)return a;localStorage.removeItem(L),localStorage.removeItem(T)}try{const c=await fetch("https://ipapi.co/json/",{method:"GET",headers:{Accept:"application/json"}});if(!c.ok){if(c.status===429)return console.warn("[Country Detection] Rate limit exceeded (429). Using cached country or fallback."),a||"";throw new Error(`HTTP error! status: ${c.status}`)}const o=(await c.json()).country_code;if(o)return localStorage.setItem(L,o),localStorage.setItem(T,Date.now().toString()),o;throw new Error("Country code not found in response")}catch(c){return console.error("[Country Detection] Error detecting country:",c),""}}function ae(e){if(!e)return x;const t=ne[e.toUpperCase()];return t||x}const J=24;function q(e,t=0){const r=e.querySelector(".feedspace-review-embed");if(!r){t<J&&setTimeout(()=>q(e,t+1),500);return}const a=()=>{const o=r.querySelector("video"),n=r.querySelector("iframe"),i=r.firstElementChild;let d=!1;if(o)if(o.videoWidth>0&&o.videoHeight>0)d=o.videoWidth/o.videoHeight<1,c(e,d,o);else{o.addEventListener("loadedmetadata",()=>{d=o.videoWidth/o.videoHeight<1,c(e,d,o)},{once:!0});return}else if(n){const s=n.offsetWidth||n.clientWidth,u=n.offsetHeight||n.clientHeight;s>0&&u>0&&(d=s/u<1)}else if(i){const s=i.offsetWidth||i.clientWidth,u=i.offsetHeight||i.clientHeight;s>0&&u>0&&(d=s/u<1)}(!o||o.videoWidth===0&&o.videoHeight===0)&&c(e,d)};function f(o,n){var b;if(n.querySelector(".video-blur-bg-video"))return;const d=o.src||((b=o.querySelector("source"))==null?void 0:b.src)||"";if(!d)return;const s=document.createElement("div");s.className="video-blur-bg video-blur-bg-video pointer-events-none",s.style.display="block";const u=document.createElement("video");u.muted=!0,u.playsInline=!0,u.preload="metadata",u.oncontextmenu=()=>!1,u.pause(),u.addEventListener("play",E=>{E.preventDefault(),u.pause()});const h=document.createElement("source");h.src=d,h.type="video/mp4",u.appendChild(h),s.appendChild(u),s.id="country-video-blur-bg-video",n.appendChild(s),s.__feedspaceBlurBg=!0,u.addEventListener("loadeddata",()=>{u.currentTime=0,u.pause()},{once:!0}),new MutationObserver(E=>{E.forEach(S=>{S.type==="childList"&&S.removedNodes.forEach(w=>{var C;(w===s||(C=w==null?void 0:w.contains)!=null&&C.call(w,s))&&(n.contains(s)||n.appendChild(s))}),S.type==="attributes"&&S.attributeName==="style"&&window.getComputedStyle(s).display==="none"&&(s.style.display="block")})}).observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]})}function c(o,n,i){if(n){if(o.classList.add("vertical-video"),o.style.position=o.style.position||"relative",o.style.height=o.style.height||"",o.style.width=o.style.width||"",i){f(i,o);const d=i.play.bind(i);i.play=function(){return o.style.position=o.style.position||"relative",o.style.height=o.style.height||"",d()}}}else o.classList.remove("vertical-video")}let l=!1;a(),l=!0,setTimeout(()=>{l||(a(),l=!0)},1e3)}function _(e,t=0){const r=e.querySelector(".feedspace-review-embed");if(!r){t<J&&setTimeout(()=>_(e,t+1),500);return}let a=!1;const f=()=>{if(a)return;const c=r.querySelector("video"),l=r.querySelector("iframe"),o=r.firstElementChild;let n=0;if(c)if(c.videoHeight>0)if(c.videoWidth/c.videoHeight<1){e.style.height="",a=!0;return}else{const d=e.offsetWidth-40,s=c.videoWidth/c.videoHeight;n=d/s}else{c.addEventListener("loadedmetadata",()=>{if(a)return;if(c.videoWidth/c.videoHeight<1){e.style.height="",a=!0;return}const d=e.offsetWidth-40,s=c.videoWidth/c.videoHeight,u=d/s;e.style.height=`${u+40}px`,a=!0},{once:!0});return}else if(l){l.addEventListener("load",()=>{if(a)return;const d=l.offsetHeight||l.clientHeight||0;d>0&&(e.style.height=`${d+40}px`,a=!0)},{once:!0});const i=l.offsetHeight||l.clientHeight||0;i>0&&!a&&(e.style.height=`${i+40}
1px`,a=!0);return}else if(o){const i=o.offsetHeight||o.scrollHeight||0;i>0&&(n=i)}n>0&&!a&&(e.style.height=`${n+40}px`,a=!0)};f(),setTimeout(()=>{a||f()},1e3)}function ce(e){const t=`
2    .feedspace-element-feed-box,
3    .feedspace-single-review-card,
4    .feedspace-element-feed-box-inner,
5    .feedspace-element-feed-video-with-text-box,
6    .feedspace-video-and-header-wrap,
7    .feedspace-element-play-feed,
8    .feedspace-media-box {
9      height: 100% !important;
10      min-height: 100% !important;
11      box-sizing: border-box !important;
12    }
13    .feedspace-video-review-header {
14      position: absolute !important;
15    }
16    .feedspace-branding-footer,
17    .feedspace-video-review-body {
18      display: none !important;
19      position: absolute !important;
20      height: 0 !important;
21      width: 0 !important;
22      overflow: hidden !important;
23      padding: 0 !important;
24      margin: 0 !important;
25      pointer-events: none !important;
26    }
27  `,r=c=>{if(c.querySelector("#fs-pricing-hide"))return;const l=document.createElement("style");l.id="fs-pricing-hide",l.textContent=t,c.appendChild(l);const o=d=>{const s=d.style.zoom||"";try{Object.defineProperty(d.style,"zoom",{get:()=>s,set:()=>{},configurable:!0})}catch{}},n=()=>{c.querySelectorAll(".feedspace-single-review-root, .feedspace-element-container").forEach(d=>{d.style.zoom&&o(d)})};new MutationObserver(n).observe(c,{subtree:!0,attributes:!0,attributeFilter:["style"],childList:!0}),n()},a=c=>{const l=c.shadowRoot;l&&r(l)};e.querySelectorAll("*").forEach(a);const f=new MutationObserver(c=>{c.forEach(l=>{l.addedNodes.forEach(o=>{if(o.nodeType!==Node.ELEMENT_NODE)return;const n=o;a(n),n.querySelectorAll("*").forEach(a)})})});f.observe(e,{childList:!0,subtree:!0}),setTimeout(()=>f.disconnect(),15e3)}function P(e,t){const r=!!e.closest("#country-embed-wrapper.pricing-embed-vi
27deo");e.innerHTML="",e.style.height="",e.style.position="";const a={position:e.style.position||"",height:e.style.height||"",width:e.style.width||""},f=document.createElement("div");f.className="feedspace-review-embed",f.setAttribute("data-id",t.dataId),f.setAttribute("data-type",t.dataType),e.appendChild(f),r&&ce(e),new MutationObserver(o=>{o.forEach(n=>{if(n.type==="attributes"&&n.attributeName==="style"){const i=n.target.style;if(r){i.height&&i.height!==""&&i.height!=="auto"&&(i.height="");return}e.classList.contains("vertical-video")&&(i.height&&i.height!==""&&i.height!=="auto"&&(i.height=a.height||""),i.position&&i.position!==a.position&&(i.position=a.position||"relative"))}})}).observe(e,{attributes:!0,attributeFilter:["style"]}),document.querySelector(`script[src="${D}"]`)?(q(e),r||_(e)):ee(D).then(()=>{q(e),r||_(e)}).catch(o=>{console.error("[Embed Load] Failed to load embed script:",o)})}async function le(e){const t=document.querySelector(e);if(!t){console.error(`[Country Embed] Container not found: ${e}`);return}try{const r=await se(),a=ae(r);P(t,a)}catch(r){console.error("[Country Embed] Error loading country-based embed:",r),P(t,x)}}function de(e){localStorage.setItem("testCountry",e.toUpperCase())}function ue(){localStorage.removeItem("testCountry")}function fe(){localStorage.removeItem(L),localStorage.removeItem(T)}typeof window<"u"&&(window.setTestCountry=de,window.clearTestCountry=ue,window.clearCountryCache=fe);const he=4e3,I=48,M=["bg-[#D0DEF1]","text-gray-800","dark:bg-blue-900/40","dark:text-neutral-200"],W=["bg-gray-100","text-gray-600","opacity-80","dark:bg-neutral-800","dark:text-neutral-400"];function F(){const e=document.getElementById("product-tabs");if(!e)return;const t=e.querySelector("[data-product-tabs]"),r=Array.from(e.querySelectorAll("[data-product-tab]")),a=Array.from(e.querySelectorAll("[data-product-panel]")),f=e.querySelector('[data-product-fade="left"]'),c=e.querySelector('[data-product-fade="right"]');if(!t||r.length===0||r.length!==a.length)return;const l=window.matchMedia("(prefers-reduced-motion: reduce)").matches;let o=0,n=null,i=!1,d=!1,s=!1,u=window.matchMedia("(max-width: 1023.98px)").matches;function h(){const p=!s&&!l&&i&&!d;p&&n===null?n=window.setInterval(()=>b((o+1)%r.length),he):!p&&n!==null&&(window.clearInterval(n),n=null)}function g(p){for(const m of[p,p+1]){if(u&&m!==p)continue;const v=a[m];if(!v)continue;v.querySelectorAll("source[data-srcset]").forEach(A=>{A.srcset=A.dataset.srcset,A.removeAttribute("data-srcset")});const y=v.querySelector("img[data-src]");y&&(y.src=y.dataset.src,y.removeAttribute("data-src"))}}function b(p){g(p),r.forEach((m,v)=>{const y=v===p;m.classList.remove(...y?W:M),m.classList.add(...y?M:W),m.setAttribute("aria-selected",y?"true":"false"),m.tabIndex=y?0:-1}),a.forEach((m,v)=>{const y=v===p;m.classList.toggle("opacity-100",y),m.classList.toggle("opacity-0",!y),m.classList.toggle("pointer-events-none",!y)}),o=p,w(r[p])}let E=null;function S(){return t?(E===null&&(E=t.scrollWidth>t.clientWidth),E):!1}function w(p){if(!t||!S())return;const m=p.offsetLeft,v=m+p.offsetWidth,y=t.scrollLeft,A=y+t.clientWidth,k=l?"auto":"smooth";m-I<y?t.scrollTo({left:Math.max(0,m-I),behavior:k}):v+I>A&&t.scrollTo({left:v+I-t.clientWidth,behavior:k})}function C(){if(!t)return;if(!S()){f&&f.classList.add("opacity-0"),c&&c.classList.add("opacity-0");return}const p=t.scrollWidth-t.clientWidth,m=t.scrollLeft;f&&f.classList.toggle("opacity-0",m<=1),c&&c.classList.toggle("opacity-0",m>=p-1)}function O(p){s=!0,b(p),h()}r.forEach((p,m)=>{p.addEventListener("click",()=>O(m)),p.addEventListener("keydown",v=>{let y=null;v.key==="ArrowRight"?y=(m+1)%r.length:v.key==="ArrowLeft"?y=(m-1+r.length)%r.length:v.key==="Home"?y=0:v.key==="End"&&(y=r.length-1),y!==null&&(v.preventDefault(),O(y),r[y].focus())})}),t.addEventListener("mouseenter",()=>{d=!0,h()}),t.addEventListener("mouseleave",()=>{d=!1,h()}),t.addEventListener("focusin",()=>{d=!0,h()}),t.addEventListener("focusout",()=>{d=!1,h()}),t.addEventListener("scroll",C,{passive:!0});let H=!1;if(window.addEventListener("resize",()=>{E=null,!H&&(H=!0,requestAnimationFrame(()=>{H=!1,C()}))}),"IntersectionObserver"in window?new IntersectionObserver(m=>{i=m[0].isIntersecting,h()},{threshold:.1}).observe(e):i=!0,b(0),C(),h(),u){const p=a[0].querySelector("img"),m=()=>{u&&(u=!1,g(o))};!p||p.complete?m():(p.addEventListener("load",m,{once:!0}),p.addEventListener("error",m,{once:!0}))}}const pe=24,N=new WeakMap;function U(e){var c;const t=N.get(e);if(t)return t;if(e.dataset.typedSplit==="1")return Array.from(e.querySelectorAll(".inline-block > span"));const r=[],a=[],f=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);for(let l=f.nextNode();l;l=f.nextNode())a.push(l);for(const l of a){const o=l.textContent??"";if(o.trim()==="")continue;const n=document.createDocumentFragment();for(const i of o.split(/(\s+)/)){if(i==="")continue;if(/^\s+$/.test(i)){n.appendChild(document.createTextNode(i));continue}const d=document.createElement("span");d.className="inline-block whitespace-nowrap";for(const s of Array.from(i)){const u=document.createElement("span");u.className="invisible",u.textContent=s,d.appendChild(u),r.push(u)}n.appendChild(d)}(c=l.parentNode)==null||c.replaceChild(n,l)}return e.dataset.typedSplit="1",N.set(e,r),r}function B(){const e=Array.from(document.querySelectorAll('[id^="showcase-panel-"]'));if(e.length===0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let t=null;function r(o){const n=o.querySelector("h3");if(!n)return;const i=U(n);if(i.length===0)return;t!==null&&(cancelAnimationFrame(t),t=null);for(const h of i)h.classList.add("invisible");let d=0,s=null;const u=h=>{s===null&&(s=h);const g=Math.min(i.length,Math.floor((h-s)/pe)+1);for(;d<g;d++)i[d].classList.remove("invisible");t=d<i.length?requestAnimationFrame(u):null};t=requestAnimationFrame(u)}const a=new MutationObserver(o=>{for(const n of o){const i=n.target;i.classList.contains("hidden")||r(i)}});for(const o of e)a.observe(o,{attributes:!0,attributeFilter:["class"]});const f=e.find(o=>!o.classList.contains("hidden")),c=f==null?void 0:f.querySelector("h3");if(!f||!c)return;for(const o of U(c))o.classList.add("invisible");const l=new IntersectionObserver(o=>{for(const n of o)n.isIntersecting&&(l.disconnect(),r(f))},{threshold:.25}
27);l.observe(f)}const me="(min-width: 1024px)",V=.55,ge=.15,ye=.325;function $(){document.querySelectorAll("[data-scroll-story]").forEach(ve)}function ve(e){const t=Array.from(e.querySelectorAll("[data-hs-tab]")),r=Array.from(e.querySelectorAll("[data-scroll-story-panel]"));if(t.length===0||t.length!==r.length)return;const a=window.matchMedia(me),f=window.matchMedia("(prefers-reduced-motion: reduce)");let c=-1,l=!1,o=!1;function n(s){s!==c&&(c=s,t.forEach((u,h)=>{const g=h===s;u.classList.toggle("active",g),u.setAttribute("aria-expanded",String(g))}))}function i(){if(l=!1,!a.matches){r.forEach(g=>g.style.opacity="");return}const s=window.innerHeight,u=r.map(g=>(g.querySelector("img")??g).getBoundingClientRect().top);let h=0;u.forEach((g,b)=>{g<=s*ye&&(h=b)}),r.forEach((g,b)=>{if(f.matches||b===r.length-1){g.style.opacity="";return}const S=(g.querySelector("img")??g).getBoundingClientRect().bottom,w=(s*V-S)/(s*(V-ge));g.style.opacity=w<=0?"":String(Math.max(0,1-w))}),n(h)}function d(){l||!o||(l=!0,window.requestAnimationFrame(i))}t.forEach((s,u)=>{s.addEventListener("click",()=>{a.matches&&r[u].scrollIntoView({behavior:f.matches?"auto":"smooth",block:"center"})}),s.addEventListener("keydown",h=>{const g=h.key==="ArrowDown"||h.key==="ArrowRight"?1:h.key==="ArrowUp"||h.key==="ArrowLeft"?-1:0;if(!g)return;h.preventDefault();const b=t[(u+g+t.length)%t.length];b.focus(),b.click()})}),new IntersectionObserver(s=>{o=s[0].isIntersecting,d()},{rootMargin:"100px 0px"}).observe(e),window.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",d),a.addEventListener("change",()=>{a.matches||n(Math.max(c,0)),o=!0,d()}),n(0)}const be=25,we=92,Ee="(max-width: 767.98px)";function z(){const e=window.matchMedia(Ee),t=()=>Se();e.matches?t():e.addEventListener?e.addEventListener("change",t,{once:!0}):e.addListener&&e.addListener(t)}function Se(){const e=Array.from(document.querySelectorAll("[data-integrations-row]"));e.forEach((t,r)=>{if(t.dataset.marqueeReady)return;const a=Array.from(t.children);a.length!==0&&(a.forEach(f=>{const c=f.cloneNode(!0);c.setAttribute("aria-hidden","true"),c.classList.add("md:hidden"),c.querySelectorAll("img").forEach(l=>{l.alt="",l.removeAttribute("title")}),t.appendChild(c)}),t.style.setProperty("--integrations-duration",`${Math.round(a.length*we/be)}s`),t.classList.add("integrations-marquee"),r%2===1&&t.classList.add("integrations-marquee--reverse"),t.dataset.marqueeReady="true")}),Ce(e)}const j="![animation-play-state:paused]";function Ce(e){if(!("IntersectionObserver"in window))return;const t=new IntersectionObserver(r=>{r.forEach(a=>a.target.classList.toggle(j,!a.isIntersecting))});e.forEach(r=>{r.dataset.marqueeObserved||(r.dataset.marqueeObserved="true",r.classList.add(j),t.observe(r))})}const Y={type:"object",properties:{}};async function G(e,t){const r=await fetch(e,{headers:{Accept:"text/plain"}});if(!r.ok)throw new Error(`${t} is unavailable (HTTP ${r.status})`);return{content:[{type:"text",text:await r.text()}]}}const Ae=[{name:"getFeedspacePricing",description:"Get Feedspace plans, prices, billing options and per-plan limits. Use this when the user asks what Feedspace costs, which plan suits them, or what a plan includes.",inputSchema:Y,execute:()=>G("/pricing.md","Feedspace pricing")},{name:"getFeedspaceFeatures",description:"Get the list of Feedspace features for collecting, importing, managing and displaying reviews and testimonials. Use this when the user asks what Feedspace can do, or whether it supports a particular capability.",inputSchema:Y,execute:()=>G("/features.md","Feedspace features")}];function Ie(){try{const e=document.modelContext;if(e&&typeof e.registerTool=="function")return e;const t=navigator.modelContext;if(t&&typeof t.registerTool=="function")return t}catch{}return null}function K(){const e=Ie();if(e)for(const t of Ae)try{e.registerTool(t)}catch{}}window.$hsOverlayCollection=window.$hsOverlayCollection||[];const Z=async()=>{const{HSAccordion:e,HSCollapse:t,HSDropdown:r,HSTabs:a,HSOverlay:f,HSTooltip:c,HSToggleCount:l,HSCarousel:o}=await re(async()=>{const{HSAccordion:n,HSCollapse:i,HSDropdown:d,HSTabs:s,HSOverlay:u,HSTooltip:h,HSToggleCount:g,HSCarousel:b}=await import("./preline-DmH4PY3x.js");return{HSAccordion:n,HSCollapse:i,HSDropdown:d,HSTabs:s,HSOverlay:u,HSTooltip:h,HSToggleCount:g,HSCarousel:b}},[]);e.autoInit(),t.autoInit(),r.autoInit(),a.autoInit(),f.autoInit(),c.autoInit(),l.autoInit(),o.autoInit()};"requestIdleCallback"in window?window.requestIdleCallback(Z,{timeout:2e3}):setTimeout(Z,300);function Q(){const e=new Date().getFullYear(),t=document.querySelectorAll(".current-year");t?t.forEach(function(r){r.textContent=e.toString()}):console.log("Current year element not found")}function X(){const e=document.getElementById("country-based-review-embed");if(!e)return;let t=!1;const r=()=>{t||(t=!0,le("#country-based-review-embed"))};if("IntersectionObserver"in window){const a=new IntersectionObserver(f=>{f[0].isIntersecting&&(a.disconnect(),r())},{rootMargin:"0px 0px 200px 0px"});a.observe(e)}e.offsetParent!==null&&("requestIdleCallback"in window?window.requestIdleCallback(r,{timeout:3e3}):setTimeout(r,2500))}
27document.readyState==="complete"||document.readyState==="interactive"?(Q(),X(),F(),B(),$(),z(),K()):document.addEventListener("DOMContentLoaded",()=>{Q(),X(),F(),B(),$(),z(),K()});

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.