{"version":3,"file":"Slideshow_video.D0nAFm3w.mjs","names":["useState","useCallback","_Fragment"],"sources":["https:/framerusercontent.com/modules/Oomn89nMGlEvh3cuVHU3/tR7OWS0Wax671h1G9pLH/Slideshow_video.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useEffect,useCallback}from\"react\";import{addPropertyControls,ControlType}from\"framer\";// Phosphor Star (Fill) SVG\nfunction StarFill(){return /*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"24\",height:\"24\",viewBox:\"0 0 256 256\",fill:\"#1BA8E8\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M234.29,114.85l-45,38.83L203,211.75a16.4,16.4,0,0,1-24.5,17.82L128,198.49,77.47,229.57A16.4,16.4,0,0,1,53,211.75l13.76-58.07-45-38.83A16.46,16.46,0,0,1,31.08,92l59.46-5.15,23.21-55.36a16.4,16.4,0,0,1,30.5,0l23.21,55.36L226.92,92a16.46,16.46,0,0,1,7.37,22.85Z\"})});}export default function TestimonialCarousel({video1,quote1=`\"Mike makes sure I understand where we were and what we were talking about so that it wasn't totally foreign…There's a real trust factor that we have with Ark Royal.\"`,name1=\"Franklin & Martha\",vimeoId1=\"\",video2,quote2=`\"Second testimonial quote.\"`,name2=\"Client Name 2\",vimeoId2=\"\",video3,quote3=`\"Third testimonial quote.\"`,name3=\"Client Name 3\",vimeoId3=\"\"}){const testimonials=[{video:video1,quote:quote1,name:name1,vimeoId:vimeoId1},{video:video2,quote:quote2,name:name2,vimeoId:vimeoId2},{video:video3,quote:quote3,name:name3,vimeoId:vimeoId3}];const[activeIndex,setActiveIndex]=useState(0);const[showVideo,setShowVideo]=useState(false);const[fadeState,setFadeState]=useState(\"in\");const current=testimonials[activeIndex];const goTo=useCallback(newIndex=>{if(newIndex===activeIndex)return;setFadeState(\"out\");setTimeout(()=>{setActiveIndex(newIndex);setFadeState(\"in\");},300);},[activeIndex]);const goPrev=useCallback(()=>{goTo((activeIndex-1+testimonials.length)%testimonials.length);},[activeIndex,goTo]);const goNext=useCallback(()=>{goTo((activeIndex+1)%testimonials.length);},[activeIndex,goTo]);useEffect(()=>{if(showVideo){document.body.style.overflow=\"hidden\";}else{document.body.style.overflow=\"\";}return()=>{document.body.style.overflow=\"\";};},[showVideo]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                @import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=DM+Sans:wght@400;500;600;700&display=swap');\n\n                .tc-wrapper {\n                    width: 100%;\n                    max-width: 1440px;\n                    margin: 0 auto;\n                    padding: 0 0px;\n                    font-family: 'DM Sans', sans-serif;\n                    box-sizing: border-box;\n                }\n\n                .tc-slide {\n                    display: flex;\n                    gap: 48px;\n                    align-items: left;\n                    opacity: ${fadeState===\"in\"?1:0};\n                    transition: opacity 0.3s ease;\n                }\n\n                .tc-image-col {\n                    flex: 0 0 50%;\n                    max-width: 50%;\n                }\n\n                .tc-image {\n                    width: 100%;\n                    aspect-ratio: 560 / 380;\n                    object-fit: cover;\n                    border-radius: 12px;\n                    display: block;\n                    background: #1a2744;\n                }\n\n                .tc-content-col {\n                    flex: 1;\n                    display: flex;\n                    flex-direction: column;\n                    justify-content: center;\n                }\n\n                .tc-stars {\n                    display: flex;\n                    gap: 4px;\n                    margin-bottom: 20px;\n                }\n\n                .tc-quote {\n                    font-family: 'DM Serif Display', serif;\n                    font-size: 33px;\n                    line-height: 1.4;\n                    color: #160959;\n                    font-weight: 400;\n                    margin: 0 0 16px 0;\n                }\n\n                .tc-name {\n                    font-family: 'DM Sans', sans-serif;\n                    font-size: 16px;\n                    color: #5a6478;\n                    font-weight: 500;\n                    margin: 0 0 28px 0;\n                }\n\n                .tc-play-btn {\n                    display: inline-flex;\n                    align-items: center;\n                    gap: 10px;\n                    background: #0D94D4;\n                    color: white;\n                    border: none;\n                    padding: 14px 28px;\n                    border-radius: 6px;\n                    font-size: 20px;\n                    font-weight: 600;\n                    font-family: 'DM Sans', sans-serif;\n                    cursor: pointer;\n                    transition: background 0.2s ease, transform 0.15s ease;\n                    width: fit-content;\n                }\n\n                .tc-play-btn:hover {\n                    background: #0b7eb5;\n                    transform: translateY(-1px);\n                }\n\n                .tc-play-btn:active {\n                    transform: translateY(0);\n                }\n\n                .tc-play-icon {\n                    width: 0;\n                    height: 0;\n                    border-style: solid;\n                    border-width: 7px 0 7px 12px;\n                    border-color: transparent transparent transparent white;\n                }\n\n                .tc-arrows {\n                    display: flex;\n                    gap: 12px;\n                    margin-top: 32px;\n                }\n\n                .tc-arrow {\n                    width: 48px;\n                    height: 48px;\n                    border-radius: 50%;\n                    border: 2px solid #0D94D4;\n                    background: transparent;\n                    cursor: pointer;\n                    display: flex;\n                    align-items: center;\n                    justify-content: center;\n                    padding: 0;\n                    transition: background 0.2s ease, transform 0.15s ease;\n                }\n\n                .tc-arrow:hover {\n                    background: #0D94D4;\n                }\n\n                .tc-arrow:hover svg {\n                    stroke: white;\n                }\n\n                .tc-arrow:active {\n                    transform: scale(0.95);\n                }\n\n                .tc-arrow svg {\n                    width: 20px;\n                    height: 20px;\n                    stroke: #0D94D4;\n                    stroke-width: 2.5;\n                    fill: none;\n                    stroke-linecap: round;\n                    stroke-linejoin: round;\n                    transition: stroke 0.2s ease;\n                }\n\n                .tc-overlay {\n                    position: fixed;\n                    top: 0;\n                    left: 0;\n                    width: 100vw;\n                    height: 100vh;\n                    background: rgba(0, 0, 0, 0.88);\n                    display: flex;\n                    align-items: center;\n                    justify-content: center;\n                    z-index: 99999;\n                    animation: tc-fadeIn 0.25s ease;\n                }\n\n                @keyframes tc-fadeIn {\n                    from { opacity: 0; }\n                    to { opacity: 1; }\n                }\n\n                .tc-overlay-close {\n                    position: absolute;\n                    top: 24px;\n                    right: 32px;\n                    background: none;\n                    border: none;\n                    color: white;\n                    font-size: 36px;\n                    cursor: pointer;\n                    font-family: 'DM Sans', sans-serif;\n                    line-height: 1;\n                    padding: 8px;\n                    opacity: 0.8;\n                    transition: opacity 0.2s;\n                }\n\n                .tc-overlay-close:hover {\n                    opacity: 1;\n                }\n\n                .tc-video-container {\n                    width: 85%;\n                    max-width: 960px;\n                    aspect-ratio: 16 / 9;\n                    border-radius: 12px;\n                    overflow: hidden;\n                    box-shadow: 0 20px 60px rgba(0,0,0,0.5);\n                }\n\n                .tc-video-container iframe {\n                    width: 100%;\n                    height: 100%;\n                    border: none;\n                }\n\n                /* Tablet */\n                @media (max-width: 1024px) {\n                    .tc-quote {\n                        font-size: 26px;\n                    }\n                    .tc-play-btn {\n                        font-size: 18px;\n                    }\n                }\n\n                /* Mobile */\n                @media (max-width: 768px) {\n                    .tc-slide {\n                        flex-direction: column;\n                        gap: 28px;\n                    }\n                    .tc-image-col {\n                        flex: none;\n                        max-width: 100%;\n                        width: 100%;\n                    }\n                    .tc-quote {\n                        font-size: 21px;\n                    }\n                    .tc-play-btn {\n                        font-size: 16px;\n                        padding: 12px 24px;\n                    }\n                    .tc-video-container {\n                        width: 95%;\n                    }\n                }\n            `}),/*#__PURE__*/_jsxs(\"div\",{className:\"tc-wrapper\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"tc-slide\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"tc-image-col\",children:current.video?/*#__PURE__*/_jsx(\"video\",{className:\"tc-image\",src:current.video,autoPlay:true,loop:true,muted:true,playsInline:true}):/*#__PURE__*/_jsx(\"div\",{className:\"tc-image\",style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:\"#fff\",fontSize:\"14px\"},children:\"Add video in properties panel →\"})}),/*#__PURE__*/_jsxs(\"div\",{className:\"tc-content-col\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"tc-stars\",children:[...Array(5)].map((_,i)=>/*#__PURE__*/_jsx(StarFill,{},i))}),/*#__PURE__*/_jsx(\"p\",{className:\"tc-quote\",children:current.quote}),/*#__PURE__*/_jsx(\"p\",{className:\"tc-name\",children:current.name}),/*#__PURE__*/_jsxs(\"button\",{className:\"tc-play-btn\",onClick:()=>setShowVideo(true),children:[\"Watch Video\",/*#__PURE__*/_jsx(\"span\",{className:\"tc-play-icon\"})]})]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"tc-arrows\",children:[/*#__PURE__*/_jsx(\"button\",{className:\"tc-arrow\",onClick:goPrev,\"aria-label\":\"Previous testimonial\",children:/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"polyline\",{points:\"15 18 9 12 15 6\"})})}),/*#__PURE__*/_jsx(\"button\",{className:\"tc-arrow\",onClick:goNext,\"aria-label\":\"Next testimonial\",children:/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"polyline\",{points:\"9 6 15 12 9 18\"})})})]})]}),showVideo&&current.vimeoId&&/*#__PURE__*/_jsxs(\"div\",{className:\"tc-overlay\",onClick:()=>setShowVideo(false),children:[/*#__PURE__*/_jsx(\"button\",{className:\"tc-overlay-close\",onClick:()=>setShowVideo(false),children:\"✕\"}),/*#__PURE__*/_jsx(\"div\",{className:\"tc-video-container\",onClick:e=>e.stopPropagation(),children:/*#__PURE__*/_jsx(\"iframe\",{src:`https://player.vimeo.com/video/${current.vimeoId}?autoplay=1`,allow:\"autoplay; fullscreen; picture-in-picture\",allowFullScreen:true,title:`${current.name} testimonial`})})]})]});}addPropertyControls(TestimonialCarousel,{video1:{type:ControlType.File,title:\"Video 1\",allowedFileTypes:[\"mp4\",\"webm\"]},quote1:{type:ControlType.String,title:\"Quote 1\",defaultValue:`\"Mike makes sure I understand where we were and what we were talking about so that it wasn't totally foreign…There's a real trust factor that we have with Ark Royal.\"`,displayTextArea:true},name1:{type:ControlType.String,title:\"Name 1\",defaultValue:\"Franklin & Martha\"},vimeoId1:{type:ControlType.String,title:\"Vimeo ID 1\",defaultValue:\"\",placeholder:\"e.g. 123456789\"},video2:{type:ControlType.File,title:\"Video 2\",allowedFileTypes:[\"mp4\",\"webm\"]},quote2:{type:ControlType.String,title:\"Quote 2\",defaultValue:`\"Second testimonial quote.\"`,displayTextArea:true},name2:{type:ControlType.String,title:\"Name 2\",defaultValue:\"Client Name 2\"},vimeoId2:{type:ControlType.String,title:\"Vimeo ID 2\",defaultValue:\"\",placeholder:\"e.g. 123456789\"},video3:{type:ControlType.File,title:\"Video 3\",allowedFileTypes:[\"mp4\",\"webm\"]},quote3:{type:ControlType.String,title:\"Quote 3\",defaultValue:`\"Third testimonial quote.\"`,displayTextArea:true},name3:{type:ControlType.String,title:\"Name 3\",defaultValue:\"Client Name 3\"},vimeoId3:{type:ControlType.String,title:\"Vimeo ID 3\",defaultValue:\"\",placeholder:\"e.g. 123456789\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TestimonialCarousel\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Slideshow_video.map"],"mappings":"iMACA,SAAS,GAAU,CAAC,OAAoB,EAAK,MAAM,CAAC,MAAM,6BAA6B,MAAM,KAAK,OAAO,KAAK,QAAQ,cAAc,KAAK,UAAU,SAAsB,EAAK,OAAO,CAAC,EAAE,oQAAoQ,CAAC,CAAC,CAAC,CAAE,CAAC,SAAwB,EAAoB,CAAC,SAAO,SAAO,yKAAyK,QAAM,oBAAoB,WAAS,GAAG,SAAO,SAAO,8BAA8B,QAAM,gBAAgB,WAAS,GAAG,SAAO,SAAO,6BAA6B,QAAM,gBAAgB,WAAS,IAAI,CAAC,IAAM,EAAa,CAAC,CAAC,MAAM,EAAO,MAAM,EAAO,KAAK,EAAM,QAAQ,CAAQ,EAAE,CAAC,MAAM,EAAO,MAAM,EAAO,KAAK,EAAM,QAAQ,CAAQ,EAAE,CAAC,MAAM,EAAO,MAAM,EAAO,KAAK,EAAM,QAAQ,CAAQ,CAAC,EAAO,CAAC,EAAY,GAAgBA,EAA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