{"version":3,"file":"StyleInjector.CZPMmTuQ.mjs","names":["useRef","useMemo","Children"],"sources":["https:/framerusercontent.com/modules/gnlMXHtZUIi9gngJ5CVB/JAB8WIidlWxxsw3VEZgg/LoopingScrollWrapper.js","https:/framerusercontent.com/modules/liIGDtTGx646fxcgQdrY/yDmnLzw4skEkzK24KDWb/StyleInjector.js"],"sourcesContent":["// LoopingScrollWrapper - A container that enables seamless infinite scrolling in horizontal or vertical directions\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{Children,cloneElement,isValidElement,useMemo,useRef,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 300\n * \n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function LoopingScrollWrapper(props){const{children,direction=\"horizontal\",threshold=100,loop=true}=props;const containerRef=useRef(null);const isResettingRef=useRef(false);const rafRef=useRef();const isHorizontal=direction===\"horizontal\";const repeatCount=loop?5:1;const normalizedVerticalChildren=useMemo(()=>{if(isHorizontal)return children;return Children.map(children,(child,index)=>{if(index!==0)return child;if(!/*#__PURE__*/isValidElement(child))return child;const existingStyle=child.props.style;return /*#__PURE__*/cloneElement(child,{style:{...existingStyle,position:\"relative\",left:\"auto\",top:\"auto\",right:\"auto\",bottom:\"auto\",transform:\"none\",width:\"100%\",maxWidth:\"100%\",minWidth:0}});});},[children,isHorizontal]);useEffect(()=>{const container=containerRef.current;if(!container||!loop)return;const handleScroll=()=>{if(isResettingRef.current)return;const scrollPos=isHorizontal?container.scrollLeft:container.scrollTop;const scrollSize=isHorizontal?container.scrollWidth:container.scrollHeight;const clientSize=isHorizontal?container.clientWidth:container.clientHeight;// Calculate single item size\nconst singleItemSize=scrollSize/repeatCount;// If content is smaller than container, no need to loop\nif(singleItemSize<=clientSize)return;const maxScroll=scrollSize-clientSize;// Reset when approaching boundaries\nif(scrollPos>=maxScroll-threshold){// Near end - jump to beginning + current offset within item\nisResettingRef.current=true;const offsetWithinItem=scrollPos%singleItemSize;const newPosition=singleItemSize+offsetWithinItem;if(isHorizontal){container.scrollLeft=newPosition;}else{container.scrollTop=newPosition;}requestAnimationFrame(()=>{isResettingRef.current=false;});}else if(scrollPos<=threshold){// Near beginning - jump to end - current offset\nisResettingRef.current=true;const offsetWithinItem=scrollPos%singleItemSize;const newPosition=maxScroll-singleItemSize+offsetWithinItem;if(isHorizontal){container.scrollLeft=newPosition;}else{container.scrollTop=newPosition;}requestAnimationFrame(()=>{isResettingRef.current=false;});}};container.addEventListener(\"scroll\",handleScroll,{passive:true});// Set initial position to middle\nconst setInitialPosition=()=>{const scrollSize=isHorizontal?container.scrollWidth:container.scrollHeight;const clientSize=isHorizontal?container.clientWidth:container.clientHeight;const singleItemSize=scrollSize/repeatCount;if(singleItemSize>clientSize){const middlePosition=singleItemSize*2;if(isHorizontal){container.scrollLeft=middlePosition;}else{container.scrollTop=middlePosition;}}};// Set initial position after render\nsetTimeout(setInitialPosition,50);return()=>{container.removeEventListener(\"scroll\",handleScroll);if(rafRef.current){cancelAnimationFrame(rafRef.current);}};},[direction,threshold,isHorizontal,children,loop]);// Create repeated children\nconst repeatedChildren=Array.from({length:repeatCount},(_,index)=>/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:isHorizontal?\"row\":\"column\",flexShrink:0,width:isHorizontal?\"auto\":\"100%\",minWidth:isHorizontal?undefined:0,maxWidth:isHorizontal?undefined:\"100%\"},children:isHorizontal?children:/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",minWidth:0,maxWidth:\"100%\",position:\"relative\",left:\"auto\",top:\"auto\",right:\"auto\",bottom:\"auto\",transform:\"none\"},children:normalizedVerticalChildren})},index));return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{...props.style,position:\"relative\",width:\"100%\",height:\"100%\",overflowX:isHorizontal?\"auto\":\"hidden\",overflowY:\"auto\",WebkitOverflowScrolling:\"touch\",scrollBehavior:\"auto\"},children:/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:isHorizontal?\"row\":\"column\",width:isHorizontal?\"max-content\":\"100%\",height:isHorizontal?\"100%\":\"max-content\",alignItems:isHorizontal?props.alignItems:\"stretch\",justifyContent:props.justifyContent},children:repeatedChildren})});}addPropertyControls(LoopingScrollWrapper,{children:{type:ControlType.Slot,title:\"Content\"},loop:{type:ControlType.Boolean,title:\"Loop\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},direction:{type:ControlType.Enum,title:\"Direction\",options:[\"horizontal\",\"vertical\"],optionTitles:[\"Horizontal\",\"Vertical\"],defaultValue:\"horizontal\"},alignItems:{type:ControlType.Enum,title:\"Align\",options:[\"flex-start\",\"center\",\"flex-end\",\"stretch\"],optionTitles:[\"Start\",\"Center\",\"End\",\"Stretch\"],defaultValue:\"center\"},justifyContent:{type:ControlType.Enum,title:\"Justify\",options:[\"flex-start\",\"center\",\"flex-end\",\"space-between\",\"space-around\",\"space-evenly\"],optionTitles:[\"Start\",\"Center\",\"End\",\"Between\",\"Around\",\"Evenly\"],defaultValue:\"flex-start\"},threshold:{type:ControlType.Number,title:\"Threshold\",defaultValue:100,min:10,max:500,step:10,unit:\"px\",hidden:({loop})=>!loop}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LoopingScrollWrapper\",\"slots\":[\"children\"],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicWidth\":\"400\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"300\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LoopingScrollWrapper.map","// Component that hides scrollbars across all browsers when mounted\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Scrollbar Hider\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function ScrollbarHider(props){const{enabled=true,hideOverscroll=true}=props;const cssCode=`/* Hide scrollbars in all major browsers while keeping scroll functional */\n\n/* Chrome, Safari, Edge, Opera */\nhtml::-webkit-scrollbar,\nbody::-webkit-scrollbar,\n*::-webkit-scrollbar {\n  display: none !important;\n  width: 0 !important;\n  height: 0 !important;\n  background: transparent !important;\n}\n\n/* Firefox */\nhtml, body, * {\n  scrollbar-width: none !important; /* hides scrollbar but allows scrolling */\n  -ms-overflow-style: none !important; /* IE/Edge */\n}\n\n${hideOverscroll?`/* Optional: disable overscroll glow/bounce (on touch devices) */\nhtml, body {\n  overscroll-behavior: none !important;\n}`:\"\"}`;useEffect(()=>{if(typeof window===\"undefined\"||!enabled||!cssCode.trim()){return;}// Create style element\nconst styleElement=document.createElement(\"style\");styleElement.type=\"text/css\";styleElement.textContent=cssCode;styleElement.setAttribute(\"data-framer-scrollbar-hider\",\"true\");// Inject into head\ndocument.head.appendChild(styleElement);// Cleanup function\nreturn()=>{if(document.head.contains(styleElement)){document.head.removeChild(styleElement);}};},[cssCode,enabled]);return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,display:\"none\",position:\"absolute\",pointerEvents:\"none\"}});}addPropertyControls(ScrollbarHider,{enabled:{type:ControlType.Boolean,title:\"Hide Scrollbars\",defaultValue:true,enabledTitle:\"Enabled\",disabledTitle:\"Disabled\"},hideOverscroll:{type:ControlType.Boolean,title:\"Hide Overscroll\",defaultValue:true,enabledTitle:\"Hide\",disabledTitle:\"Show\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollbarHider\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StyleInjector.map"],"mappings":"2NAOG,SAAwB,EAAqB,EAAM,CAAC,GAAK,CAAC,WAAS,Y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