{"version":3,"file":"Testimonials.BZ2AD6Xe.mjs","names":[],"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,CAAC,EAAS,GAAG,CACI,AADH,EAAU,IAAI,CAC/D,AAAG,EAAO,WAAW,KAAK,EAAgB,EAAE,AAAG,EAAC,CAAE,EAAC,CAAC,EAAU,IAAI,CAClE,IAAM,EAAO,SAAS,cAAc,SAAS,CAC7C,OAD8C,EAAO,IAAI,iDAAiD,EAAO,OAAM,EAAK,EAAO,OAAO,IAAI,CAAC,AAAG,EAAO,cAAc,EAAO,aAAa,CAAC,KAAI,EAAM,aAAY,CAAM,EAAC,wCAAwC,AAAG,EAAC,SAAS,KAAK,YAAY,EAAO,CAChS,IAAI,CAAC,SAAS,KAAK,YAAY,EAAO,AAAE,CAAE,EAAC,CAAE,EAAC,CACpD,IAAM,GAAQ,4FAA4F,EAAa,iBAAiB,MAAoB,GAAK,SAAS,CAAC,GAAG,uCAAuC,IAAI,EAAO,YAAY,IAAI,UAAU,KAAK,MAAM,OAAO,MAAM,CAAC,UAAU,QAAQ,OAAO,MAAO,CAAC,EAAC,AAAE,kBALvT,GAA2C,IAAsC"}