{"version":3,"file":"Testimonials_Carousel.BBLCJsMO.mjs","names":["useState","__esmMin","init_npm_react_18_3_1","_e","p","c","init_jsx_runtime","init_framer_DKtAEkcX","ControlType","addPropertyControls","TestimonialCarousel","props","total","testimonials","index","setIndex","visible","setVisible","isFirst","isLast","goTo","direction","prev","style","mutedColor","item","quoteMinHeight","textColor","quoteFont","clientFont","projectFont","ArrowVisual","leftArrowImage","counterColor","counterFont","rightArrowImage","image","color","init_Testimonials_Carousel"],"sources":["https:/framerusercontent.com/modules/BSH1ZTjdm4bOmuPTsq0r/NxzSbJwXxDytAwyIVtI6/Testimonials_Carousel.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";export function TestimonialCarousel(props){const{testimonials,textColor,mutedColor,counterColor,quoteFont,clientFont,projectFont,counterFont,leftArrowImage,rightArrowImage,quoteMinHeight,style}=props;const total=testimonials.length;const[index,setIndex]=useState(0);const[visible,setVisible]=useState(true);const isFirst=index===0;const isLast=index===total-1;function goTo(direction){if(direction===\"next\"&&isLast)return;if(direction===\"prev\"&&isFirst)return;setVisible(false);setTimeout(()=>{setIndex(prev=>direction===\"next\"?prev+1:prev-1);setVisible(true);},220);}if(total===0){return /*#__PURE__*/_jsx(\"div\",{style:{...style,padding:40,textAlign:\"center\",color:mutedColor},children:\"Add testimonials from the panel →\"});}const item=testimonials[index];return /*#__PURE__*/_jsxs(\"div\",{style:{...style,display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"flex-start\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",textAlign:\"center\",maxWidth:670,width:\"100%\",opacity:visible?1:0,transition:\"opacity 0.35s ease\"},children:[item.image&&/*#__PURE__*/_jsx(\"img\",{src:item.image.src,alt:item.client,style:{width:97,height:97,objectFit:\"cover\",borderRadius:5,marginBottom:24,flexShrink:0}}),/*#__PURE__*/_jsx(\"div\",{style:{height:quoteMinHeight,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",overflow:\"hidden\",width:\"100%\"},children:/*#__PURE__*/_jsxs(\"p\",{style:{margin:0,color:textColor,...quoteFont},children:[\"“\",item.quote,\"”\"]})}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:8,marginTop:60,flexShrink:0},children:[/*#__PURE__*/_jsx(\"span\",{style:{color:textColor,...clientFont},children:item.client}),/*#__PURE__*/_jsx(\"span\",{style:{color:mutedColor,textTransform:\"uppercase\",...projectFont},children:item.project})]})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:16,marginTop:40},children:[/*#__PURE__*/_jsx(\"button\",{onClick:()=>goTo(\"prev\"),disabled:isFirst,style:{background:\"none\",border:\"none\",cursor:isFirst?\"default\":\"pointer\",opacity:isFirst?.3:1,padding:\"24px 8\",display:\"flex\"},children:/*#__PURE__*/_jsx(ArrowVisual,{direction:\"left\",color:textColor,image:leftArrowImage})}),/*#__PURE__*/_jsxs(\"span\",{style:{color:counterColor,// minWidth: 40,\ntextAlign:\"center\",...counterFont},children:[index+1,\"/\",total]}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>goTo(\"next\"),disabled:isLast,style:{background:\"none\",border:\"none\",cursor:isLast?\"default\":\"pointer\",opacity:isLast?.3:1,padding:\"24px 8\",display:\"flex\"},children:/*#__PURE__*/_jsx(ArrowVisual,{direction:\"right\",color:textColor,image:rightArrowImage})})]})]});}function ArrowVisual({direction,color,image}){if(image){return /*#__PURE__*/_jsx(\"img\",{src:image.src,alt:direction===\"left\"?\"Previous\":\"Next\",style:{width:16,height:16,objectFit:\"contain\"}});}const points=direction===\"left\"?\"15,4 7,12 15,20\":\"9,4 17,12 9,20\";return /*#__PURE__*/_jsx(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",children:/*#__PURE__*/_jsx(\"polyline\",{points:points,stroke:color,strokeWidth:\"1.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});}addPropertyControls(TestimonialCarousel,{testimonials:{type:ControlType.Array,title:\"Testimonials\",control:{type:ControlType.Object,controls:{quote:{type:ControlType.String,title:\"Quote\",displayTextArea:true,defaultValue:\"Lindsay has a natural eye that makes your brand stand out from the rest.\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"},client:{type:ControlType.String,title:\"Client\",defaultValue:\"Jenzel Velo\"},project:{type:ControlType.String,title:\"Project\",defaultValue:\"Photographer, Jenzel Velo Photography\"}}},defaultValue:[{quote:\"Lindsay has a natural eye that makes your brand stand out from the rest.\",client:\"Jenzel Velo\",project:\"Photographer, Jenzel Velo Photography\"},{quote:\"Lindsay's attention to vision was outstanding, a visually stunning result.\",client:\"Hayden Korte-Moore\",project:\"The Peach Club\"}]},quoteMinHeight:{type:ControlType.Number,title:\"Quote Box Height\",defaultValue:400,min:100,max:800,step:10,unit:\"px\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#0A0A0A\"},mutedColor:{type:ControlType.Color,title:\"Muted Color\",defaultValue:\"#A59A92\"},counterColor:{type:ControlType.Color,title:\"Counter Color\",defaultValue:\"#A59A92\"},quoteFont:{type:ControlType.Font,title:\"Quote Typography\",defaultValue:{fontSize:22,variant:\"Regular\"},defaultFontType:\"serif\",controls:\"extended\"},clientFont:{type:ControlType.Font,title:\"Client Typography\",defaultValue:{fontSize:14,variant:\"Semibold\"},defaultFontType:\"sans-serif\",controls:\"extended\"},projectFont:{type:ControlType.Font,title:\"Project Typography\",defaultValue:{fontSize:11,letterSpacing:.08,variant:\"Regular\"},defaultFontType:\"sans-serif\",controls:\"extended\"},counterFont:{type:ControlType.Font,title:\"Counter Typography\",defaultValue:{fontSize:14,letterSpacing:.05,variant:\"Regular\"},defaultFontType:\"sans-serif\",controls:\"extended\"},leftArrowImage:{type:ControlType.ResponsiveImage,title:\"Left Arrow\"},rightArrowImage:{type:ControlType.ResponsiveImage,title:\"Right Arrow\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"TestimonialCarousel\":{\"type\":\"reactComponent\",\"name\":\"TestimonialCarousel\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Testimonials_Carousel.map"],"mappings":"A,iLAAyI,SAAgBU,EAAoB,EAAM,CAAC,GAAK,CAAC,eAAa,YAAU,aAAW,eAAa,YAAU,aAAW,cAAY,cAAY,iBAAe,kBAAgB,iBAAe,SAAOC,EAAYC,EAAMC,EAAa,OAAY,CAACC,EAAMC,GAAUf,EAAS,CAAC,EAAO,CAACgB,EAAQC,GAAYjB,EAAS,EAAI,EAAQkB,EAAQJ,IAAQ,EAAQK,EAAOL,IAAQF,EAAM,EAAE,SAASQ,EAAK,EAAU,CAAIC,IAAY,QAAQF,GAAiBE,IAAY,QAAQH,IAAeD,EAAW,EAAK,EAAE,eAAe,CAACF,EAAS,GAAMM,IAAY,OAAOC,EAAK,EAAEA,EAAK,CAAC,EAAEL,EAAW,EAAI,CAAE,EAAE,GAAG,EAAE,CAAC,GAAGL,IAAQ,EAAG,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,GAAGW,EAAM,QAAQ,GAAG,UAAU,SAAS,MAAMC,CAAU,EAAE,SAAS,mCAAmC,CAAC,EAAG,IAAMC,EAAKZ,EAAaC,GAAO,MAAoB,gBAAM,MAAM,CAAC,MAAM,CAAC,GAAGS,EAAM,QAAQ,OAAO,cAAc,SAAS,WAAW,SAAS,eAAe,YAAY,EAAE,SAAS,CAAc,gBAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,cAAc,SAAS,WAAW,SAAS,UAAU,SAAS,SAAS,IAAI,MAAM,OAAO,QAAQ,KAAY,WAAW,oBAAoB,EAAE,SAAS,CAACE,EAAK,OAAoB,gBAAK,MAAM,CAAC,IAAIA,EAAK,MAAM,IAAI,IAAIA,EAAK,OAAO,MAAM,CAA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