{"version":3,"file":"TestimonialsColumn.D9kYAcZx.mjs","names":["React","useMemo"],"sources":["https:/framerusercontent.com/modules/rQyM6iGI9uhR70ATNxNl/zcKzKI2YzX1H5MiM3MCn/TestimonialsColumn.js"],"sourcesContent":["// Flowing Testimonials: Animated vertical testimonials column for Framer\n// Duplicates testimonials for infinite scroll, supports duration, images, and text customization\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion}from\"framer-motion\";import{useMemo}from\"react\";import React from\"react\";/**\n * Flowing Testimonials\n *\n * @framerIntrinsicWidth 340\n * @framerIntrinsicHeight 600\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */function FlowingTestimonials(props){const{testimonials,duration,backgroundColor,cardColor,cardBorderColor,cardShadow,textColor,nameColor,roleColor,font,nameFont,roleFont,imageBorderRadius,cardBorderRadius,style,orientation=\"vertical\",fetchFromApi=false,apiUrl=\"\"}=props;// Fetch testimonials from API if enabled\nconst[fetchedTestimonials,setFetchedTestimonials]=React.useState(null);const[loading,setLoading]=React.useState(false);React.useEffect(()=>{if(fetchFromApi&&apiUrl){setLoading(true);fetch(apiUrl).then(res=>res.json()).then(data=>{// Accepts array or {testimonials: array}\nconst arr=Array.isArray(data)?data:data.testimonials;setFetchedTestimonials(Array.isArray(arr)?arr:[]);setLoading(false);}).catch(()=>{setFetchedTestimonials([]);setLoading(false);});}},[fetchFromApi,apiUrl]);// Show loading state if fetching from API and data not loaded yet\nif(fetchFromApi&&(loading||!fetchedTestimonials)){return /*#__PURE__*/_jsx(\"div\",{style:{...style,width:\"100%\",height:\"100%\",background:backgroundColor,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",position:\"relative\"},children:/*#__PURE__*/_jsx(\"span\",{style:{color:textColor,...font},children:\"Loading testimonials…\"})});}const usedTestimonials=fetchFromApi&&fetchedTestimonials?fetchedTestimonials:testimonials;// Duplicate testimonials for infinite scroll\nconst items=useMemo(()=>{return[0,1].flatMap(()=>usedTestimonials.map((t,i)=>({...t,key:`${t.name}-${i}-${Math.random()}`})));},[usedTestimonials]);const isStatic=useIsStaticRenderer();return /*#__PURE__*/_jsx(\"div\",{style:{...style,width:\"100%\",height:\"100%\",background:backgroundColor,display:\"flex\",flexDirection:orientation===\"vertical\"?\"column\":\"row\",alignItems:\"center\",justifyContent:\"flex-start\",overflow:\"hidden\",position:\"relative\"},children:isStatic?/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:orientation===\"vertical\"?\"column\":\"row\",gap:24,paddingBottom:24,minHeight:orientation===\"vertical\"?\"200%\":undefined,minWidth:orientation===\"horizontal\"?\"200%\":undefined,background:\"transparent\"},children:items.map(({text,image,name,role,key,avatar})=>/*#__PURE__*/_jsxs(\"div\",{style:{background:cardColor,border:`1px solid ${cardBorderColor}`,boxShadow:cardShadow?\"0 4px 24px 0 rgba(0,0,0,0.08)\":\"none\",borderRadius:cardBorderRadius,maxWidth:320,width:\"100%\",padding:32,display:\"flex\",flexDirection:\"column\",gap:0},children:[/*#__PURE__*/_jsx(\"div\",{style:{color:textColor,...font},children:text}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:12,marginTop:20},children:[/*#__PURE__*/_jsx(\"img\",{src:avatar?.src||image,alt:avatar?.alt||name,width:40,height:40,style:{width:40,height:40,borderRadius:imageBorderRadius,objectFit:\"cover\"}}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{color:nameColor,...nameFont},children:name}),/*#__PURE__*/_jsx(\"div\",{style:{color:roleColor,opacity:.6,...roleFont},children:role})]})]})]},key))}):/*#__PURE__*/_jsx(motion.div,{animate:orientation===\"vertical\"?{translateY:\"-50%\"}:{translateX:\"-50%\"},transition:{duration:duration||10,repeat:Infinity,ease:props.easing||\"linear\",repeatType:\"loop\"},style:{display:\"flex\",flexDirection:orientation===\"vertical\"?\"column\":\"row\",gap:24,paddingBottom:24,minHeight:orientation===\"vertical\"?\"200%\":undefined,minWidth:orientation===\"horizontal\"?\"200%\":undefined,background:\"transparent\"},children:items.map(({text,image,name,role,key,avatar})=>/*#__PURE__*/_jsxs(\"div\",{style:{background:cardColor,border:`1px solid ${cardBorderColor}`,boxShadow:cardShadow?\"0 4px 24px 0 rgba(0,0,0,0.08)\":\"none\",borderRadius:cardBorderRadius,maxWidth:320,width:\"100%\",padding:32,display:\"flex\",flexDirection:\"column\",gap:0},children:[/*#__PURE__*/_jsx(\"div\",{style:{color:textColor,...font},children:text}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:12,marginTop:20},children:[/*#__PURE__*/_jsx(\"img\",{src:avatar?.src||image,alt:avatar?.alt||name,width:40,height:40,style:{width:40,height:40,borderRadius:imageBorderRadius,objectFit:\"cover\"}}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{color:nameColor,...nameFont},children:name}),/*#__PURE__*/_jsx(\"div\",{style:{color:roleColor,opacity:.6,...roleFont},children:role})]})]})]},key))})});}addPropertyControls(FlowingTestimonials,{testimonials:{type:ControlType.Array,title:\"Testimonials\",control:{type:ControlType.Object,controls:{text:{type:ControlType.String,title:\"Text\",defaultValue:\"This ERP revolutionized our operations, streamlining finance and inventory. The cloud-based platform keeps us productive, even remotely.\"},image:{type:ControlType.String,title:\"Image URL\",defaultValue:\"https://randomuser.me/api/portraits/women/1.jpg\"},name:{type:ControlType.String,title:\"Name\",defaultValue:\"Briana Patton\"},role:{type:ControlType.String,title:\"Role\",defaultValue:\"Operations Manager\"},avatar:{type:ControlType.ResponsiveImage,title:\"Avatar\"}}},defaultValue:[{text:\"This ERP revolutionized our operations, streamlining finance and inventory. The cloud-based platform keeps us productive, even remotely.\",image:\"https://randomuser.me/api/portraits/women/1.jpg\",name:\"Briana Patton\",role:\"Operations Manager\",avatar:{src:\"https://randomuser.me/api/portraits/women/1.jpg\",alt:\"Briana Patton\"}},{text:\"Implementing this ERP was smooth and quick. The customizable, user-friendly interface made team training effortless.\",image:\"https://randomuser.me/api/portraits/men/2.jpg\",name:\"Bilal Ahmed\",role:\"IT Manager\",avatar:{src:\"https://randomuser.me/api/portraits/men/2.jpg\",alt:\"Bilal Ahmed\"}},{text:\"The support team is exceptional, guiding us through setup and providing ongoing assistance, ensuring our satisfaction.\",image:\"https://randomuser.me/api/portraits/women/3.jpg\",name:\"Saman Malik\",role:\"Customer Support Lead\",avatar:{src:\"https://randomuser.me/api/portraits/women/3.jpg\",alt:\"Saman Malik\"}}]},duration:{type:ControlType.Number,title:\"Scroll Duration\",defaultValue:10,min:5,max:60,unit:\"s\",step:1},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},cardColor:{type:ControlType.Color,title:\"Card Color\",defaultValue:\"#FFFFFF\"},cardBorderColor:{type:ControlType.Color,title:\"Card Border\",defaultValue:\"#EEEEEE\"},cardShadow:{type:ControlType.Boolean,title:\"Card Shadow\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},cardBorderRadius:{type:ControlType.Number,title:\"Card Radius\",defaultValue:24,min:0,max:40},imageBorderRadius:{type:ControlType.Number,title:\"Image Radius\",defaultValue:20,min:0,max:40},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#222222\"},nameColor:{type:ControlType.Color,title:\"Name Color\",defaultValue:\"#000000\"},roleColor:{type:ControlType.Color,title:\"Role Color\",defaultValue:\"#666666\"},font:{type:ControlType.Font,title:\"Text Font\",defaultValue:{fontSize:\"16px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.4em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},nameFont:{type:ControlType.Font,title:\"Name Font\",defaultValue:{fontSize:\"15px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},roleFont:{type:ControlType.Font,title:\"Role Font\",defaultValue:{fontSize:\"13px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},orientation:{type:ControlType.Enum,title:\"Orientation\",options:[\"vertical\",\"horizontal\"],optionTitles:[\"Vertical\",\"Horizontal\"],defaultValue:\"vertical\",displaySegmentedControl:true},easing:{type:ControlType.Enum,title:\"Easing\",options:[\"linear\",\"easeIn\",\"easeOut\",\"easeInOut\",\"circIn\",\"circOut\",\"circInOut\",\"backIn\",\"backOut\",\"backInOut\",\"anticipate\",\"easeInCubic\",\"easeOutCubic\",\"easeInOutCubic\"],optionTitles:[\"Linear\",\"Ease In\",\"Ease Out\",\"Ease In Out\",\"Circ In\",\"Circ Out\",\"Circ In Out\",\"Back In\",\"Back Out\",\"Back In Out\",\"Anticipate\",\"Ease In Cubic\",\"Ease Out Cubic\",\"Ease In Out Cubic\"],defaultValue:\"linear\"}});export default FlowingTestimonials;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FlowingTestimonials\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"600\",\"framerIntrinsicWidth\":\"340\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TestimonialsColumn.map"],"mappings":"iPAUG,SAAS,EAAoB,EAAM,CAAC,GAAK,CAAC,eAAa,WAAS,kBAAgB,YAAU,kBAAgB,aAAW,YAAU,YAAU,YAAU,OAAK,WAAS,WAAS,oBAAkB,mBAAiB,QAAM,cAAY,WAAW,eAAa,GAAM,SAAO,IAAI,EACtQ,CAAC,EAAoB,GAAwBA,EAAM,SAAS,KAAK,CAAM,CAAC,EAAQ,GAAYA,EAAM,SAAS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