{"version":3,"file":"VerticalImageSlider.pCFDSnmd.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/evM8qxpVhPzAAbS1Jka3/ssKFqcVs6BKzOnpbwjGn/VerticalImageSlider.js"],"sourcesContent":["// Vertical image slider component that scrolls vertically on mobile and horizontally on desktop\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useRef}from\"react\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function VerticalImageSlider(props){const{images=[{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Gradient 1 - Blue\"},{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Gradient 2 - Purple\"},{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Gradient 3 - Orange\"}],gap,borderRadius,showDots,dotColor,activeDotColor,autoScroll,autoScrollInterval,children}=props;const scrollContainerRef=useRef(null);// Use children if provided, otherwise use images\nconst items=children&&children.length>0?children:images;const itemCount=Array.isArray(items)?items.length:0;return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"div\",{ref:scrollContainerRef,style:{width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:\"row\",gap:`${gap}px`,overflowX:\"auto\",overflowY:\"hidden\",scrollbarWidth:\"none\",msOverflowStyle:\"none\",WebkitOverflowScrolling:\"touch\"},children:children&&children.length>0?children.map((child,index)=>/*#__PURE__*/_jsx(\"div\",{style:{flexShrink:0,width:\"auto\",height:\"100%\",borderRadius:`${borderRadius}px`,overflow:\"hidden\"},children:child},index)):images.map((image,index)=>/*#__PURE__*/_jsx(\"div\",{style:{flexShrink:0,width:\"auto\",height:\"100%\",borderRadius:`${borderRadius}px`,overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"img\",{src:image.src,alt:image.alt,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\"}})},index))})});}addPropertyControls(VerticalImageSlider,{children:{type:ControlType.Array,title:\"Components\",control:{type:ControlType.ComponentInstance},maxCount:10},images:{type:ControlType.Array,title:\"Images\",control:{type:ControlType.Object,controls:{src:{type:ControlType.ResponsiveImage,title:\"Image\"},alt:{type:ControlType.String,title:\"Alt Text\",defaultValue:\"Image\"}}},defaultValue:[{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Gradient 1 - Blue\"},{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Gradient 2 - Purple\"},{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Gradient 3 - Orange\"}],hidden:({children})=>children&&children.length>0},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:0,min:0,max:50,step:1,unit:\"px\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:0,min:0,max:50,step:1,unit:\"px\"},showDots:{type:ControlType.Boolean,title:\"Show Dots\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},dotColor:{type:ControlType.Color,title:\"Dot Color\",defaultValue:\"#CCCCCC\",hidden:({showDots})=>!showDots},activeDotColor:{type:ControlType.Color,title:\"Active Dot\",defaultValue:\"#000000\",hidden:({showDots})=>!showDots},autoScroll:{type:ControlType.Boolean,title:\"Auto Scroll\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},autoScrollInterval:{type:ControlType.Number,title:\"Interval\",defaultValue:3,min:1,max:10,step:.5,unit:\"s\",hidden:({autoScroll})=>!autoScroll}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"VerticalImageSlider\",\"slots\":[\"children\"],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSup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