{"version":3,"file":"Testimonials.BPieajgP.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/NfVWKYDCYQ01CvnXMb6L/AgjtTz5V3AjcEXMdSmLE/Testimonials.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export function TestimonialWidget(){// Set default initialCount to 20\nconst[initialCount,setInitialCount]=useState(12);useEffect(()=>{// Check the window width and update the testimonial count accordingly\nif(window.innerWidth<768){setInitialCount(6);}},[]);useEffect(()=>{// Dynamically load the iFrameResizer library\nconst script=document.createElement(\"script\");script.src=\"https://testimonial.to/js/iframeResizer.min.js\";script.async=true;script.onload=()=>{if(window.iFrameResize){window.iFrameResize({log:false,checkOrigin:false},\"#testimonialto-uniti-ai-tag-all-light\");}};document.body.appendChild(script);// Clean up the script when the component unmounts\nreturn()=>{document.body.removeChild(script);};},[]);// Build the src URL dynamically based on the initialCount state\nconst srcUrl=`https://embed-v2.testimonial.to/w/uniti-ai?theme=light&card=base&loadMore=on&initialCount=${initialCount}&tag=all&cc=off`;return /*#__PURE__*/_jsx(\"iframe\",{id:\"testimonialto-uniti-ai-tag-all-light\",src:srcUrl,frameBorder:\"0\",scrolling:\"no\",width:\"100%\",style:{minHeight:\"500px\",border:\"none\"}});}\nexport const __FramerMetadata__ = {\"exports\":{\"TestimonialWidget\":{\"type\":\"reactComponent\",\"name\":\"TestimonialWidget\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Testimonials.map"],"mappings":"2MAAiF,SAAgB,GAAmB,CACpH,GAAK,CAAC,EAAa,EAAgB,CAACA,EAAS,IAAI,MAAc,CAC5D,EAAO,WAAW,KAAK,EAAgB,EAAK,EAAC,EAAE,EAAE,MAAc,CAClE,IAAM,EAAO,SAAS,cAAc,UACpC,MAD8C,GAAO,IAAI,iDAAiD,EAAO,MAAM,GAAK,EAAO,WAAW,CAAI,EAAO,cAAc,EAAO,aAAa,CAAC,IAAI,GAAM,YAAY,GAAM,CAAC,wCAA2C,EAAC,SAAS,KAAK,YAAY,OACrR,CAAC,SAAS,KAAK,YAAY,EAAS,CAAE,EAAC,EAAE,EACnD,IAAM,EAAO,6FAA6F,EAAa,iBAAiB,OAAoB,EAAK,SAAS,CAAC,GAAG,uCAAuC,IAAI,EAAO,YAAY,IAAI,UAAU,KAAK,MAAM,OAAO,MAAM,CAAC,UAAU,QAAQ,OAAO,OAAO,CAAC,CAAG"}