{"version":3,"file":"CarouselBlockquote.BA5WblPv.mjs","names":["React.useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/lXxNyh9g42T6ebeA2qS3/lhd89TZROHzb3CU78c1M/CarouselBlockquote.js"],"sourcesContent":["// Get Started: https://www.framer.com/developers\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function CarouselBlockquote({testimonials,showButton,buttonText,buttonLink,backgroundColor,backgroundImage,maxWidth,containerPadding}){const[index,setIndex]=React.useState(0);const hasTestimonials=testimonials&&testimonials.length>0;if(!hasTestimonials){return /*#__PURE__*/_jsx(\"div\",{style:{maxWidth:`${maxWidth}px`,margin:\"0 auto\",padding:\"40px\",textAlign:\"center\",color:\"#999\"},children:\"No testimonials available.\"});}const handleDotClick=i=>setIndex(i);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .testimonial-container {\n                    display: flex;\n                    flex-direction: row;\n                    align-items: center;\n                    justify-content: center;\n                    background-size: cover;\n                    background-repeat: no-repeat;\n                    border-radius: 12px;\n                    padding: 40px 24px;\n                    min-height: 300px;\n                    box-sizing: border-box;\n                    text-align: left;\n                    gap: 40px;\n                }\n                .testimonial-content {\n                    flex: 1;\n                    max-width: 600px;\n                }\n                .testimonial-image {\n                    width: 180px;\n                    height: 180px;\n                    border-radius: 12px;\n                    object-fit: cover;\n                }\n                .testimonial-author {\n                    font-size: 20px;\n                    font-weight: 600;\n                    color: #1f2937;\n                    margin: 0 0 4px 0;\n                }\n                .testimonial-subtitle {\n                    font-size: 16px;\n                    color: #3b82f6;\n                    margin-bottom: 12px;\n                }\n                .testimonial-quote {\n                    font-size: 16px;\n                    line-height: 1.6;\n                    color: #6b7280;\n                }\n                .pagination-dots {\n                    display: flex;\n                    justify-content: center;\n                    margin-top: 16px;\n                    gap: 8px;\n                }\n                .pagination-dot {\n                    width: 10px;\n                    height: 10px;\n                    border-radius: 50%;\n                    background: rgba(0,0,0,0.3);\n                    cursor: pointer;\n                    transition: background 0.3s;\n                }\n                .pagination-dot.active {\n                    background: rgba(0,0,0,0.8);\n                }\n                @media (max-width: 768px) {\n                    .testimonial-container {\n                        flex-direction: column;\n                        text-align: center;\n                        padding: 24px 16px;\n                    }\n                    .testimonial-image {\n                        width: 120px;\n                        height: 120px;\n                        margin-bottom: 16px;\n                    }\n                    .testimonial-content {\n                        max-width: 100%;\n                    }\n                }\n            `}),/*#__PURE__*/_jsxs(\"div\",{style:{maxWidth:`${maxWidth}px`,margin:\"0 auto\",padding:`0 ${containerPadding}px`,width:\"100%\"},children:[/*#__PURE__*/_jsxs(\"div\",{className:\"testimonial-container\",style:{background:backgroundColor,backgroundImage:backgroundImage?`url(${backgroundImage})`:undefined},children:[testimonials[index].photo&&/*#__PURE__*/_jsx(\"img\",{src:testimonials[index].photo,alt:testimonials[index].alt||testimonials[index].author,className:\"testimonial-image\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"testimonial-content\",children:[/*#__PURE__*/_jsx(\"h5\",{className:\"testimonial-author\",children:testimonials[index].author}),/*#__PURE__*/_jsx(\"div\",{className:\"testimonial-subtitle\",children:testimonials[index].subtitle}),/*#__PURE__*/_jsx(\"div\",{className:\"testimonial-quote\",dangerouslySetInnerHTML:{__html:formatMarkdown(testimonials[index].quote)}})]})]}),/*#__PURE__*/_jsx(\"div\",{className:\"pagination-dots\",children:testimonials.map((_,i)=>/*#__PURE__*/_jsx(\"div\",{className:`pagination-dot ${i===index?\"active\":\"\"}`,onClick:()=>handleDotClick(i)},i))}),showButton&&/*#__PURE__*/_jsx(\"a\",{href:buttonLink,style:{marginTop:\"24px\",padding:\"10px 16px\",borderRadius:\"8px\",border:\"1px solid rgba(0,0,0,0.2)\",color:\"#111\",background:\"transparent\",textDecoration:\"none\",display:\"inline-block\"},children:buttonText})]})]});}function formatMarkdown(text){if(!text)return\"\";let formatted=text.replace(/\\n\\n/g,\"</p><p>\").replace(/\\n/g,\"<br />\");formatted=`<p>${formatted}</p>`;formatted=formatted.replace(/\\*\\*(.*?)\\*\\*/g,\"<strong>$1</strong>\");formatted=formatted.replace(RegExp(\"(?<!\\\\*)\\\\*(?!\\\\*)(.*?)(?<!\\\\*)\\\\*(?!\\\\*)\",\"g\"),\"<em>$1</em>\");return formatted;}addPropertyControls(CarouselBlockquote,{testimonials:{type:ControlType.Array,title:\"Testimonials\",propertyControl:{type:ControlType.Object,controls:{author:{type:ControlType.String,title:\"Author\",defaultValue:\"John Doe\"},subtitle:{type:ControlType.String,title:\"Subtitle\",defaultValue:\"Director of Performance\"},quote:{type:ControlType.String,title:\"Quote\",defaultValue:\"This is an amazing product that has transformed our training program.\",displayTextArea:true},photo:{type:ControlType.Image,title:\"Photo\"},alt:{type:ControlType.String,title:\"Alt Text\",defaultValue:\"\"}}},defaultValue:[{author:\"John Doe\",subtitle:\"Director of Performance\",quote:\"This is an amazing product that has transformed our training program.\",photo:\"\",alt:\"John Doe Portrait\"},{author:\"Jane Smith\",subtitle:\"Head Coach\",quote:\"Our team’s efficiency skyrocketed after using this tool.\",photo:\"\",alt:\"Jane Smith Portrait\"},{author:\"Michael Brown\",subtitle:\"Athlete\",quote:\"I love how easy it is to track my progress every week!\",photo:\"\",alt:\"Michael Brown Portrait\"}]},showButton:{type:ControlType.Boolean,title:\"Show Button\",defaultValue:false},buttonText:{type:ControlType.String,title:\"Button Text\",defaultValue:\"View all\",hidden:props=>!props.showButton},buttonLink:{type:ControlType.String,title:\"Button Link\",defaultValue:\"/testimonials/\",hidden:props=>!props.showButton},backgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"rgba(243,244,246,1)\"},backgroundImage:{type:ControlType.Image,title:\"Background Image\",defaultValue:\"\"},maxWidth:{type:ControlType.Number,title:\"Max Width\",min:400,max:1400,step:10,defaultValue:1200},containerPadding:{type:ControlType.Number,title:\"Container Padding\",min:0,max:100,step:4,defaultValue:24}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CarouselBlockquote\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CarouselBlockquote.map"],"mappings":"gRAC+J,SAAwB,EAAmB,CAAC,eAAa,aAAW,aAAW,aAAW,kBAAgB,kBAAgB,WAAS,oBAAkB,CAAC,GAAK,CAAC,EAAM,GAAUA,EAAe,EAAE,CAA2D,GAAG,EAAvC,GAAc,EAAa,OAAO,GAAuB,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,GAAG,EAAS,IAAI,OAAO,SAAS,QAAQ,OAAO,UAAU,SAAS,MAAM,OAAO,CAAC,SAAS,6BAA6B,CAAC,CAAE,IAAM,EAAe,GAAG,EAAS,EAAE,CAAC,OAAoB,EAAMC,EAAU,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyE9rB,CAAC,CAAc,EAAM,MAAM,CAAC,MAAM,CAAC,SAAS,GAAG,EAAS,IAAI,OAAO,SAAS,QAAQ,KAAK,EAAiB,IAAI,MAAM,OAAO,CAAC,SAAS,CAAc,EAAM,MAAM,CAAC,UAAU,wBAAwB,MAAM,CAAC,WAAW,EAAgB,gBAAgB,EAAgB,OAAO,EAAgB,GAAG,IAAA,GAAU,CAAC,SAAS,CAAC,EAAa,GAAO,OAAoB,EAAK,MAAM,CAAC,IAAI,EAAa,GAAO,MAAM,IAAI,EAAa,GAAO,KAAK,EAAa,GAAO,OAAO,UAAU,oBAAoB,CAAC,CAAc,EAAM,MAAM,CAAC,UAAU,sBAAsB,SAAS,CAAc,EAAK,KAAK,CAAC,UAAU,qBAAqB,SAAS,EAAa,GAAO,OAAO,CAAC,CAAc,EAAK,MAAM,CAAC,UAAU,uBAAuB,SAAS,EAAa,GA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