{"version":3,"file":"SLIDESHOW.DbQg7Sfl.mjs","names":[],"sources":["https:/framerusercontent.com/modules/jRlARVoo685Pzw8mHcxI/vuLTxlbbnPUgErs51bS1/SLIDESHOW.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion,useScroll,useTransform,useSpring}from\"framer-motion\";// --- Styling ---\nconst containerStyle={width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",position:\"relative\",overflow:\"hidden\",backgroundColor:\"transparent\"};const trackStyle={display:\"flex\",flexDirection:\"row\",willChange:\"transform\"};export default function ScrollInfiniteGallery(props){const{images,itemWidth,itemHeight,scrollSpeed}=props;// Safety check: if no images, don't crash\nif(!images||images.length===0)return /*#__PURE__*/_jsx(\"div\",{style:containerStyle});// We repeat the images multiple times to fill a massive \"virtual\" runway.\n// This prevents the \"white screen\" effect when scrolling fast.\nconst repetitions=20;const loopedImages=Array(repetitions).fill(images).flat();const singleSetWidth=images.length*itemWidth;const totalTrackWidth=singleSetWidth*repetitions;const{scrollYProgress}=useScroll();// We calculate a repeating X offset using a modulo-like approach.\n// No matter how high the sensitivity, we stay within the \"virtual\" track.\nconst xRange=useTransform(scrollYProgress,[0,1],[0,-(singleSetWidth*scrollSpeed)]);// useSpring adds that premium \"momentum\" feel and smooths out jumps.\nconst x=useSpring(xRange,{stiffness:400,damping:90});return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:/*#__PURE__*/_jsx(motion.div,{style:{...trackStyle,x:x,width:totalTrackWidth},children:loopedImages.map((img,index)=>/*#__PURE__*/_jsx(\"div\",{style:{flexShrink:0,width:itemWidth,height:itemHeight,marginRight:0,borderRadius:0,overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"img\",{src:img,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\"},alt:`Gallery item ${index}`})},index))})});}// --- Property Controls ---\nScrollInfiniteGallery.defaultProps={images:[],itemWidth:600,itemHeight:400,scrollSpeed:2};addPropertyControls(ScrollInfiniteGallery,{images:{type:ControlType.Array,control:{type:ControlType.Image},title:\"Images\"},itemWidth:{type:ControlType.Number,title:\"Item Width\",min:100,max:2e3},itemHeight:{type:ControlType.Number,title:\"Item Height\",min:100,max:2e3},scrollSpeed:{type:ControlType.Number,title:\"Scroll Sensitivity\",min:.1,max:20,step:.1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollInfiniteGallery\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SLIDESHOW.map"],"mappings":"kOACsO,SAAwB,EAAsB,EAAM,CAAC,GAAK,CAAC,SAAO,YAAU,aAAW,eAAa,EAC1U,GAAG,CAAC,GAAQ,EAAO,SAAS,EAAE,OAAoB,EAAK,MAAM,CAAC,MAAM,EAAe,CAAC,CAEpF,IAA2B,EAAa,MAAM,GAAY,CAAC,KAAK,EAAO,CAAC,MAAM,CAAO,EAAe,EAAO,OAAO,EAAgB,EAAgB,EAAe,GAAiB,CAAC,mBAAiB,GAAW,CAGzM,EAAE,EADK,EAAa,EAAgB,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAe,GAAa,CAAC,CACzD,CAAC,UAAU,IAAI,QAAQ,GAAG,CAAC,CAAC,OAAoB,EAAK,MAAM,CAAC,MAAM,EAAe,SAAsB,EAAK,EAAO,IAAI,CAAC,MAAM,CAAC,GAAG,EAAa,IAAE,MAAM,EAAgB,CAAC,SAAS,EAAa,KAAK,EAAI,IAAqB,EAAK,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,EAAU,OAAO,EAAW,YAAY,EAAE,aAAa,EAAE,SAAS,SAAS,CAAC,SAAsB,EAAK,MAAM,CAAC,IAAI,EAAI,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,QAAQ,QAAQ,QAAQ,CAAC,IAAI,gBAAgB,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