{"version":3,"file":"SlideshowGallery.DsplAd9H.mjs","names":["useState","useMemo","startTransition"],"sources":["https:/framerusercontent.com/modules/I790wvt4jttFopHPgg5a/NcpkY9LBOD5kXwBBbQUI/SlideshowGallery.js"],"sourcesContent":["// Slideshow gallery with large image and clickable thumbnails\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,startTransition,useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Slideshow Gallery\n *\n * @framerIntrinsicWidth 600\n * @framerIntrinsicHeight 400\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function SlideshowGallery(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\"},{src:\"https://framerusercontent.com/images/2uTNEj5aTl2K3NJaEFWMbnrA.jpg\",alt:\"Gradient 4 - Yellow\"},{src:\"https://framerusercontent.com/images/f9RiWoNpmlCMqVRIHz8l8wYfeI.jpg\",alt:\"Gradient 5 - Green\"}],background=\"#fff\",borderRadius=12,thumbnailSize=64,gap=16,activeBorder=\"#0099FF\",style}=props;const[active,setActive]=useState(0);// Defensive: filter out undefined/null images\nconst safeImages=useMemo(()=>Array.isArray(images)?images.filter(img=>img&&img.src):[],[images]);const activeImage=useMemo(()=>safeImages[active]||safeImages[0]||{src:\"\",alt:\"\"},[safeImages,active]);return /*#__PURE__*/_jsxs(\"div\",{style:{...style,background,borderRadius,padding:gap,boxSizing:\"border-box\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap,width:\"100%\",height:\"100%\",overflow:\"hidden\",position:\"relative\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",flex:1,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",borderRadius,overflow:\"hidden\",background:\"#f5f5f5\"},children:/*#__PURE__*/_jsx(\"img\",{src:activeImage.src,alt:activeImage.alt,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",borderRadius,transition:\"opacity 0.2s\",display:\"block\"}})}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"row\",gap,marginTop:gap/2,width:\"100%\",justifyContent:\"center\"},\"aria-label\":\"Thumbnails\",children:safeImages.map((img,i)=>/*#__PURE__*/_jsx(\"button\",{onClick:()=>startTransition(()=>setActive(i)),\"aria-label\":`Show image ${i+1}`,style:{border:i===active?`2px solid ${activeBorder}`:\"2px solid transparent\",borderRadius:borderRadius/2,padding:0,background:\"none\",cursor:\"pointer\",outline:\"none\",width:thumbnailSize,height:thumbnailSize,overflow:\"hidden\",boxShadow:i===active?\"0 2px 8px rgba(0,0,0,0.08)\":\"none\",transition:\"border 0.2s, box-shadow 0.2s\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:/*#__PURE__*/_jsx(\"img\",{src:img.src,alt:img.alt,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",borderRadius:borderRadius/2,opacity:i===active?1:.7,transition:\"opacity 0.2s\",display:\"block\"}})},img.src||i))})]});}addPropertyControls(SlideshowGallery,{images:{type:ControlType.Array,title:\"Images\",control:{type:ControlType.ResponsiveImage},maxCount:8,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\"}]},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#fff\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:12,min:0,max:32},thumbnailSize:{type:ControlType.Number,title:\"Thumb Size\",defaultValue:64,min:32,max:128,unit:\"px\"},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:16,min:4,max:48,unit:\"px\"},activeBorder:{type:ControlType.Color,title:\"Active Border\",defaultValue:\"#0099FF\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SlideshowGallery\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"600\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"400\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SlideshowGallery.map"],"mappings":"+LASG,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,SAAO,CAAC,CAAC,IAAI,sEAAsE,IAAI,oBAAoB,CAAC,CAAC,IAAI,oEAAoE,IAAI,sBAAsB,CAAC,CAAC,IAAI,uEAAuE,IAAI,sBAAsB,CAAC,CAAC,IAAI,oEAAoE,IAAI,sBAAsB,CAAC,CAAC,IAAI,sEAAsE,IAAI,qBAAqB,CAAC,CAAC,aAAW,OAAO,eAAa,GAAG,gBAAc,GAAG,MAAI,GAAG,eAAa,UAAU,SAAO,EAAW,CAAC,EAAO,GAAWA,EAAS,EAAE,CACrrB,EAAWC,MAAY,MAAM,QAAQ,EAAO,CAAC,EAAO,OAAO,GAAK,GAAK,EAAI,IAAI,CAAC,EAAE,CAAC,CAAC,EAAO,CAAC,CAAO,EAAYA,MAAY,EAAW,IAAS,EAAW,IAAI,CAAC,IAAI,GAAG,IAAI,GAAG,CAAC,CAAC,EAAW,EAAO,CAAC,CAAC,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,aAAW,eAAa,QAAQ,EAAI,UAAU,aAAa,QAAQ,OAAO,cAAc,SAAS,WAAW,SAA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