{"version":3,"file":"Carousel_Overflow_Visible.DaDkykg9.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/VrvhW852JstTacme0Yjw/63tqeWJZTkst6OgnbbEO/Carousel_Overflow_Visible.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useState,useRef}from\"react\";export function withScrollContainer(Component){return props=>{const[padding,setPadding]=useState(`0 calc(50vw - 720px)`);const[containerPadding,setContainerPadding]=useState(\"0 90px\");const prevButtonRef=useRef(null);const nextButtonRef=useRef(null);const scrollContainerRef=useRef(null);const[hasHorizontalScroll,setHasHorizontalScroll]=useState(false);const[edges,setEdges]=useState({back:false,next:false});const itemContainerRef=useRef(null);const checkForHorizontalScroll=()=>{if(scrollContainerRef.current){const hasScroll=scrollContainerRef.current.scrollWidth>scrollContainerRef.current.clientWidth;setHasHorizontalScroll(hasScroll);const el=scrollContainerRef.current;const back=hasScroll&&el.scrollLeft>2;const next=hasScroll&&el.scrollLeft+el.clientWidth<el.scrollWidth-2;setEdges(old=>old.back===back&&old.next===next?old:{back,next});}};useEffect(()=>{const updatePadding=()=>{if(window.innerWidth<=890){setPadding(`0 calc(50vw - 700px)`);setContainerPadding(\"0 20px\");}else{setPadding(`0 calc(50vw - 720px)`);setContainerPadding(\"0 90px\");}checkForHorizontalScroll();};updatePadding();window.addEventListener(\"resize\",updatePadding);const observer=new ResizeObserver(checkForHorizontalScroll);if(scrollContainerRef.current)observer.observe(scrollContainerRef.current);if(itemContainerRef.current)observer.observe(itemContainerRef.current);// Add click event listeners to custom buttons\nif(prevButtonRef.current){prevButtonRef.current.addEventListener(\"click\",handlePrevClick);}if(nextButtonRef.current){nextButtonRef.current.addEventListener(\"click\",handleNextClick);}return()=>{window.removeEventListener(\"resize\",updatePadding);observer.disconnect();if(prevButtonRef.current){prevButtonRef.current.removeEventListener(\"click\",handlePrevClick);}if(nextButtonRef.current){nextButtonRef.current.removeEventListener(\"click\",handleNextClick);}};},[]);const handlePrevClick=()=>{if(scrollContainerRef.current){const scrollAmount=scrollContainerRef.current.offsetWidth;scrollContainerRef.current.scrollBy({left:-scrollAmount,behavior:\"smooth\"});}};const handleNextClick=()=>{if(scrollContainerRef.current){const scrollAmount=scrollContainerRef.current.offsetWidth;scrollContainerRef.current.scrollBy({left:scrollAmount,behavior:\"smooth\"});}};return /*#__PURE__*/_jsxs(\"div\",{className:\"scroll-outer\",style:{display:\"flex\",flexDirection:\"column\"},children:[/*#__PURE__*/_jsxs(\"div\",{ref:scrollContainerRef,className:\"scroll-container\",onScroll:checkForHorizontalScroll,style:{overflow:\"scroll\",padding:containerPadding,scrollbarWidth:\"none\",msOverflowStyle:\"-ms-autohiding-scrollbar\",WebkitOverflowScrolling:\"touch\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n\n.mm-carousel-arrow{box-sizing:border-box!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;flex-shrink:0!important;border:0!important;border-radius:50%!important;padding:0!important;background:rgba(0,0,0,.06)!important;color:rgba(0,0,0,.88)!important;box-shadow:none!important;display:inline-flex;align-items:center!important;justify-content:center!important;cursor:pointer;transition:background-color 180ms,opacity 180ms}\n.mm-carousel-arrow:not(:disabled):not([aria-disabled=\"true\"]):hover{background:rgba(0,0,0,.10)!important}\n.mm-carousel-arrow:disabled,.mm-carousel-arrow[aria-disabled=\"true\"]{opacity:.35!important;cursor:default!important}\n.mm-carousel-arrow:focus-visible{outline:2px solid #007aff;outline-offset:4px}\n.mm-carousel-arrow svg{width:16px!important;height:16px!important;background:none!important;fill:none!important;stroke:currentColor!important;stroke-width:2.25!important;stroke-linecap:round!important;stroke-linejoin:round!important}\n.mm-carousel-arrow svg path{fill:none!important;stroke:currentColor!important;stroke-width:2.25!important;stroke-linecap:round!important;stroke-linejoin:round!important}\n\n                            .scroll-container::-webkit-scrollbar {\n                                display: none;\n                            }\n                            .sticky-element {\n                                list-style-type: none;\n                                padding: 0;\n                                margin: 0;\n                                display: flex;\n                                justify-content: flex-end;\n                                width: 100%;\n                                gap: 8px;\n                            }\n                            .paddlenav-arrow {\n                                background: none;\n                                border: none;\n                                cursor: pointer;\n                                padding: 10px;\n                                color: inherit;\n                            }\n                            .paddlenav-arrow svg {\n                                width: 36px;\n                                height: 36px;\n                                fill: currentColor;\n                            }\n                            .paddlenav-arrow:disabled {\n                                opacity: 0.5;\n                                cursor: not-allowed;\n                            }\n                        `}),/*#__PURE__*/_jsx(\"div\",{className:\"item-container\",ref:itemContainerRef,style:{padding,display:\"grid\",gridTemplateRows:\"repeat(1, auto)\",gridTemplateColumns:\"max-content\",gridAutoFlow:\"column\",gridRowGap:\"0px\",rowGap:\"0px\",width:\"fit-content\"},children:/*#__PURE__*/_jsx(Component,{...props})})]}),/*#__PURE__*/_jsx(\"div\",{className:\"buttons-outer-container\",style:{placeContent:\"center\",marginTop:14,alignItems:\"center\",display:hasHorizontalScroll?\"flex\":\"none\",flex:\"0 0 auto\",flexFlow:\"column\",gap:\"64px\",height:\"min-content\",overflow:\"visible\",padding:\"0px\",position:\"relative\",width:\"100%\"},children:/*#__PURE__*/_jsx(\"div\",{className:\"buttons-container\",style:{placeContent:\"flex-end flex-start\",alignItems:\"flex-end\",display:\"flex\",flex:\"0 0 auto\",flexFlow:\"row\",gap:\"0px\",height:\"min-content\",maxWidth:\"1440px\",overflow:\"hidden\",padding:containerPadding,boxSizing:\"border-box\",position:\"relative\",width:\"100%\"},children:/*#__PURE__*/_jsxs(\"ul\",{className:\"sticky-element\",children:[/*#__PURE__*/_jsx(\"li\",{className:\"left-item\",children:/*#__PURE__*/_jsx(\"button\",{ref:prevButtonRef,\"aria-label\":\"Previous\",className:\"mm-carousel-arrow paddlenav-arrow paddlenav-arrow-previous\",type:\"button\",disabled:!edges.back,children:/*#__PURE__*/_jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2.25\",strokeLinecap:\"round\",strokeLinejoin:\"round\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M14 5l-7 7 7 7\"})})})}),/*#__PURE__*/_jsx(\"li\",{className:\"right-item\",children:/*#__PURE__*/_jsx(\"button\",{ref:nextButtonRef,\"aria-label\":\"Next\",className:\"mm-carousel-arrow paddlenav-arrow paddlenav-arrow-next\",type:\"button\",disabled:!edges.next,children:/*#__PURE__*/_jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2.25\",strokeLinecap:\"round\",strokeLinejoin:\"round\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M10 5l7 7-7 7\"})})})}),/*#__PURE__*/_jsx(\"div\",{className:\"scrim\"})]})})})]});};}// Opt-in 2026 service gutters; original carousel behavior remains unchanged.\nexport function withServiceScrollContainer2026(Component){const ScrollContainer=withScrollContainer(Component);return props=>/*#__PURE__*/_jsxs(\"div\",{className:\"service-carousel-2026\",style:{width:\"100%\",minWidth:0},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .service-carousel-2026 .scroll-outer { width: 100vw; margin-inline: calc((100% - 100vw) / 2); }\n                .service-carousel-2026 .scroll-container { box-sizing: border-box; width: 100%; padding-inline: max(52px, calc((100vw - 1280px) / 2 + 52px)) !important; }\n                .service-carousel-2026 .item-container { padding: 0 !important; }\n                .service-carousel-2026 .buttons-container { max-width: 1280px; padding-inline: 52px; }\n                @media (min-width: 810px) and (max-width: 1199.98px) {\n                    .service-carousel-2026 .scroll-container,\n                    .service-carousel-2026 .buttons-container { padding-inline: 40px !important; }\n                }\n                @media (max-width: 809.98px) {\n                    .service-carousel-2026 .scroll-container,\n                    .service-carousel-2026 .buttons-container { padding-inline: 20px !important; }\n                }\n            `}),/*#__PURE__*/_jsx(ScrollContainer,{...props})]});}// Native CMS stack: only scrollbar styling, no carousel or duplicated items.\nexport function withCmsReviewSlider2026(Component){return props=>/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:'[data-framer-name=\"Reviews slider\"]::-webkit-scrollbar { display: none; width: 0; height: 0; }'}),/*#__PURE__*/_jsx(Component,{...props,tabIndex:0,style:{...props.style,overflowX:\"auto\",overflowY:\"hidden\",scrollbarWidth:\"none\",overscrollBehaviorX:\"contain\",WebkitOverflowScrolling:\"touch\"}})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"withCmsReviewSlider2026\":{\"type\":\"reactHoc\",\"name\":\"withCmsReviewSlider2026\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withScrollContainer\":{\"type\":\"reactHoc\",\"name\":\"withScrollContainer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withServiceScrollContainer2026\":{\"type\":\"reactHoc\",\"name\":\"withServiceScrollContainer2026\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Carousel_Overflow_Visible.map"],"mappings":"qJAA4H,SAAgB,EAAoB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAQ,GAAYA,EAAS,sBAAsB,EAAO,CAAC,EAAiB,GAAqBA,EAAS,QAAQ,EAAQ,EAAcC,EAAO,IAAI,EAAQ,EAAcA,EAAO,IAAI,EAAQ,EAAmBA,EAAO,IAAI,EAAO,CAAC,EAAoB,GAAwBD,EAAS,EAAK,EAAO,CAAC,EAAM,GAAUA,EAAS,CAAC,KAAK,GAAM,KAAK,EAAK,CAAC,EAAQ,EAAiBC,EAAO,IAAI,EAAQ,MAA6B,CAAC,GAAG,EAAmB,QAAQ,CAAC,IAAM,EAAU,EAAmB,QAAQ,YAAY,EAAmB,QAAQ,YAAY,EAAuB,CAAS,EAAE,IAAM,EAAG,EAAmB,QAAc,EAAK,GAAW,EAAG,WAAW,EAAQ,EAAK,GAAW,EAAG,WAAW,EAAG,YAAY,EAAG,YAAY,EAAE,EAAS,GAAK,EAAI,OAAO,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