{"version":3,"file":"Examples.B0bTPH0q.mjs","names":["useState","useMemo","useCallback","useStore","useState"],"sources":["https:/framerusercontent.com/modules/6Gxe4yNWid6o2Cydqb44/h3M2CPvm2p6ijBFFLFTD/Threedimagebentogallery.js","https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/28rXvpPsrum7FH6cMELS/1jCAazZw1EGHjrG5Nu5D/Utils.js","https:/framer.com/m/framer/utils.js@^0.9.0","https:/framerusercontent.com/modules/cUW8wBgJNcuqDveYXrZn/ymDx8hdqYgPmqDW5W3PQ/Examples.js"],"sourcesContent":["// 3D Image Bento Gallery component with customizable grid layout, spanning cells, lightbox, and overlay options\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,startTransition,useMemo,useEffect,useCallback}from\"react\";/**\n *\n * @framerDisableUnlink\n *\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 400\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ThreeDImageBentoGallery(props){const{mediaItems=[{sourceType:\"upload\",imageFile:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Image 1\"},image:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Image 1\"}},{sourceType:\"upload\",imageFile:{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Image 2\"},image:{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Image 2\"}},{sourceType:\"upload\",imageFile:{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Image 3\"},image:{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Image 3\"}},{sourceType:\"upload\",imageFile:{src:\"https://framerusercontent.com/images/2uTNEj5aTl2K3NJaEFWMbnrA.jpg\",alt:\"Image 4\"},image:{src:\"https://framerusercontent.com/images/2uTNEj5aTl2K3NJaEFWMbnrA.jpg\",alt:\"Image 4\"}}],columns=3,rows=5,spacing=8,cornerRadius=24,strokeWidth=0,strokeColor=\"#000000\",canvasColor=\"#FFFFFF\",mediaOpacity=1,enablePopup=false,scaleupTransitionSpeed=.3,popupBackground=\"#000000\",popupBackdropOpacity=.9,layoutMode=\"auto\",layoutPreset=\"masonry\",customCells=[],hoverDesaturate=false,enableHoverScale=true,closeButton={size:48,color:\"#000000\",background:\"rgba(255, 255, 255, 0.95)\",position:\"top-right\",radius:50},style}=props;// State for lightbox\nconst[lightboxOpen,setLightboxOpen]=useState(false);const[lightboxMedia,setLightboxMedia]=useState(null);const[lightboxMediaIndex,setLightboxMediaIndex]=useState(0);// Fallback media items\nconst fallbackMedia=useMemo(()=>[{image:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Image 1\"}},{image:{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Image 2\"}},{image:{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Image 3\"}},{image:{src:\"https://framerusercontent.com/images/2uTNEj5aTl2K3NJaEFWMbnrA.jpg\",alt:\"Image 4\"}}],[]);// Generate layout configuration based on mode\nconst layoutConfig=useMemo(()=>{if(layoutMode===\"auto\"){return[];}if(layoutMode===\"preset\"){switch(layoutPreset){case\"masonry\":return[{itemIndex:0,columnSpan:2,rowSpan:1},{itemIndex:2,columnSpan:1,rowSpan:2}];case\"hero-left\":return[{itemIndex:0,columnSpan:1,rowSpan:2}];case\"hero-right\":return[{itemIndex:1,columnSpan:1,rowSpan:2,gridColumn:columns,gridRow:1}];case\"hero-top\":return[{itemIndex:0,columnSpan:2,rowSpan:1}];case\"hero-bottom\":return[{itemIndex:2,columnSpan:2,rowSpan:1,gridColumn:1,gridRow:rows}];case\"spotlight\":return[{itemIndex:0,columnSpan:2,rowSpan:2}];default:return[];}}if(layoutMode===\"custom\"){return customCells.map(cell=>({cellPosition:cell.position,columnSpan:cell.width,rowSpan:cell.height}));}return[];},[layoutMode,layoutPreset,customCells,columns,rows]);// Calculate grid layout with spanning\nconst gridLayout=useMemo(()=>{if(layoutMode===\"auto\"){const totalCells=columns*rows;return Array.from({length:totalCells},(_,index)=>({mediaIndex:mediaItems.length>0?index%mediaItems.length:index%4,colSpan:1,rowSpan:1,gridColumn:index%columns+1,gridRow:Math.floor(index/columns)+1,cellIndex:index}));}const grid=Array(rows).fill(null).map(()=>Array(columns).fill(false));const layout=[];let currentMediaIndex=0;// For custom mode, we need to handle cell positions differently\nif(layoutMode===\"custom\"){// Create a map of cell positions to their span configurations\nconst customCellMap=new Map;layoutConfig.forEach(config=>{if(config.cellPosition!==undefined){customCellMap.set(config.cellPosition,{columnSpan:config.columnSpan,rowSpan:config.rowSpan});}});// Fill grid cell by cell\nlet cellIndex=0;for(let row=0;row<rows;row++){for(let col=0;col<columns;col++){if(!grid[row][col]){const customConfig=customCellMap.get(cellIndex);if(customConfig){// This is a custom cell with spanning\nconst{columnSpan,rowSpan}=customConfig;// Check if we can place it\nlet canPlace=true;if(col+columnSpan>columns||row+rowSpan>rows){canPlace=false;}else{for(let r=row;r<row+rowSpan;r++){for(let c=col;c<col+columnSpan;c++){if(grid[r][c]){canPlace=false;break;}}if(!canPlace)break;}}if(canPlace){// Mark grid cells as occupied\nfor(let r=row;r<row+rowSpan;r++){for(let c=col;c<col+columnSpan;c++){grid[r][c]=true;}}layout.push({mediaIndex:currentMediaIndex<mediaItems.length?currentMediaIndex:null,colSpan:columnSpan,rowSpan:rowSpan,gridColumn:col+1,gridRow:row+1,cellIndex:layout.length});if(currentMediaIndex<mediaItems.length){currentMediaIndex++;}}else{// Can't place custom cell, treat as regular\ngrid[row][col]=true;layout.push({mediaIndex:currentMediaIndex<mediaItems.length?currentMediaIndex:null,colSpan:1,rowSpan:1,gridColumn:col+1,gridRow:row+1,cellIndex:layout.length});if(currentMediaIndex<mediaItems.length){currentMediaIndex++;}}}else{// Regular cell\ngrid[row][col]=true;layout.push({mediaIndex:currentMediaIndex<mediaItems.length?currentMediaIndex:null,colSpan:1,rowSpan:1,gridColumn:col+1,gridRow:row+1,cellIndex:layout.length});if(currentMediaIndex<mediaItems.length){currentMediaIndex++;}}cellIndex++;}}}return layout;}// Preset mode logic\nconst usedMedia=new Set;// Place spanning items first\nlayoutConfig.forEach(span=>{if(span.itemIndex!==undefined&&span.itemIndex<mediaItems.length&&!usedMedia.has(span.itemIndex)){// If explicit grid position is provided, use it\nif(span.gridColumn!==undefined&&span.gridRow!==undefined){const col=span.gridColumn-1;const row=span.gridRow-1;// Check if the position is valid and available\nif(col>=0&&row>=0&&col+span.columnSpan<=columns&&row+span.rowSpan<=rows){let canPlace=true;for(let r=row;r<row+span.rowSpan;r++){for(let c=col;c<col+span.columnSpan;c++){if(grid[r][c]){canPlace=false;break;}}if(!canPlace)break;}if(canPlace){for(let r=row;r<row+span.rowSpan;r++){for(let c=col;c<col+span.columnSpan;c++){grid[r][c]=true;}}layout.push({mediaIndex:span.itemIndex,colSpan:span.columnSpan,rowSpan:span.rowSpan,gridColumn:col+1,gridRow:row+1,cellIndex:layout.length});usedMedia.add(span.itemIndex);return;}}}// Otherwise, find first available position\nfor(let row=0;row<=rows-span.rowSpan;row++){for(let col=0;col<=columns-span.columnSpan;col++){let canPlace=true;for(let r=row;r<row+span.rowSpan;r++){for(let c=col;c<col+span.columnSpan;c++){if(grid[r][c]){canPlace=false;break;}}if(!canPlace)break;}if(canPlace){for(let r=row;r<row+span.rowSpan;r++){for(let c=col;c<col+span.columnSpan;c++){grid[r][c]=true;}}layout.push({mediaIndex:span.itemIndex,colSpan:span.columnSpan,rowSpan:span.rowSpan,gridColumn:col+1,gridRow:row+1,cellIndex:layout.length});usedMedia.add(span.itemIndex);return;}}}}});// Fill remaining cells\ncurrentMediaIndex=0;for(let row=0;row<rows;row++){for(let col=0;col<columns;col++){if(!grid[row][col]){while(currentMediaIndex<mediaItems.length&&usedMedia.has(currentMediaIndex)){currentMediaIndex++;}const mediaIndex=currentMediaIndex<mediaItems.length?currentMediaIndex:null;layout.push({mediaIndex,colSpan:1,rowSpan:1,gridColumn:col+1,gridRow:row+1,cellIndex:layout.length});if(mediaIndex!==null){usedMedia.add(mediaIndex);currentMediaIndex++;}}}}return layout;},[layoutMode,layoutConfig,columns,rows,mediaItems.length]);// Get media item safely\nconst getMediaItem=useCallback(index=>{const item=mediaItems[index]||fallbackMedia[index%fallbackMedia.length];// Determine the image source based on sourceType\nlet imageSrc=item?.image?.src||fallbackMedia[0].image?.src;let imageSrcSet=item?.image?.srcSet;let imageAlt=item?.image?.alt||`Image ${index+1}`;if(item?.sourceType===\"upload\"&&item?.imageFile){imageSrc=item.imageFile.src;imageSrcSet=item.imageFile.srcSet;imageAlt=item.imageFile.alt||imageAlt;}else if(item?.sourceType===\"url\"&&item?.imageUrl){imageSrc=item.imageUrl;}return{...item,image:{src:imageSrc,srcSet:imageSrcSet,alt:imageAlt}};},[mediaItems,fallbackMedia]);// Handle card clicks\nconst handleCardClick=useCallback(clickedIndex=>{if(!enablePopup)return;const mediaIndex=layoutMode!==\"auto\"?gridLayout[clickedIndex].mediaIndex:clickedIndex;if(mediaIndex===null)return;const media=getMediaItem(mediaIndex);startTransition(()=>{setLightboxMedia(media);setLightboxMediaIndex(mediaIndex);setLightboxOpen(true);});},[enablePopup,layoutMode,gridLayout,getMediaItem]);// Navigate to next media\nconst navigateToNextImage=useCallback(()=>{const nextIndex=(lightboxMediaIndex+1)%mediaItems.length;const media=getMediaItem(nextIndex);startTransition(()=>{setLightboxMedia(media);setLightboxMediaIndex(nextIndex);});},[lightboxMediaIndex,mediaItems.length,getMediaItem]);// Navigate to previous media\nconst navigateToPreviousImage=useCallback(()=>{const prevIndex=lightboxMediaIndex===0?mediaItems.length-1:lightboxMediaIndex-1;const media=getMediaItem(prevIndex);startTransition(()=>{setLightboxMedia(media);setLightboxMediaIndex(prevIndex);});},[lightboxMediaIndex,mediaItems.length,getMediaItem]);// Close lightbox\nconst closeLightbox=useCallback(()=>{startTransition(()=>{setLightboxOpen(false);setLightboxMedia(null);setLightboxMediaIndex(0);});},[]);// Calculate close button position\nconst getCloseButtonPosition=()=>{const offset=32;switch(closeButton.position){case\"top-left\":return{top:`${offset}px`,left:`${offset}px`};case\"top-right\":return{top:`${offset}px`,right:`${offset}px`};case\"bottom-left\":return{bottom:`${offset}px`,left:`${offset}px`};case\"bottom-right\":return{bottom:`${offset}px`,right:`${offset}px`};default:return{top:`${offset}px`,right:`${offset}px`};}};// Keyboard navigation\nuseEffect(()=>{if(!lightboxOpen)return;const handleKeyDown=event=>{switch(event.key){case\"ArrowRight\":case\"ArrowDown\":event.preventDefault();navigateToNextImage();break;case\"ArrowLeft\":case\"ArrowUp\":event.preventDefault();navigateToPreviousImage();break;case\"Escape\":event.preventDefault();closeLightbox();break;}};if(typeof window!==\"undefined\"){window.addEventListener(\"keydown\",handleKeyDown);}return()=>{if(typeof window!==\"undefined\"){window.removeEventListener(\"keydown\",handleKeyDown);}};},[lightboxOpen,navigateToNextImage,navigateToPreviousImage,closeLightbox]);return /*#__PURE__*/_jsxs(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",borderRadius:cornerRadius,backgroundColor:canvasColor},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",display:\"grid\",gridTemplateColumns:`repeat(${columns}, 1fr)`,gridTemplateRows:`repeat(${rows}, 1fr)`,gap:`${spacing}px`,padding:`${spacing}px`,zIndex:2},children:gridLayout.map((layoutItem,index)=>{if(layoutItem.mediaIndex===null)return null;const media=getMediaItem(layoutItem.mediaIndex);return /*#__PURE__*/_jsx(\"div\",{onClick:()=>handleCardClick(index),style:{width:\"100%\",height:\"100%\",border:strokeWidth>0?`${strokeWidth}px solid ${strokeColor}`:\"none\",borderRadius:`${cornerRadius}px`,backgroundColor:\"transparent\",overflow:\"hidden\",position:\"relative\",cursor:enablePopup?\"pointer\":\"default\",transition:`all ${scaleupTransitionSpeed}s ease-in-out`,transform:\"scale(1)\",gridColumn:layoutMode!==\"auto\"?`${layoutItem.gridColumn} / span ${layoutItem.colSpan}`:\"auto\",gridRow:layoutMode!==\"auto\"?`${layoutItem.gridRow} / span ${layoutItem.rowSpan}`:\"auto\"},children:/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",transition:`transform ${scaleupTransitionSpeed}s ease-in-out`,transform:\"scale(1)\",overflow:\"hidden\",borderRadius:`${Math.max(0,cornerRadius-strokeWidth)}px`},onMouseEnter:e=>{if(enableHoverScale){e.currentTarget.style.transform=\"scale(1.03)\";}if(hoverDesaturate){const mediaEl=e.currentTarget.querySelector(\"img\");if(mediaEl){mediaEl.style.filter=\"grayscale(100%)\";}}},onMouseLeave:e=>{e.currentTarget.style.transform=\"scale(1)\";if(hoverDesaturate){const mediaEl=e.currentTarget.querySelector(\"img\");if(mediaEl){mediaEl.style.filter=\"grayscale(0%)\";}}},children:/*#__PURE__*/_jsx(\"img\",{src:media.image?.src,srcSet:media.image?.srcSet,alt:media.image?.alt,style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",objectFit:\"cover\",objectPosition:\"center\",opacity:mediaOpacity,transition:`filter ${scaleupTransitionSpeed}s ease-in-out`}})})},index);})}),lightboxOpen&&lightboxMedia&&/*#__PURE__*/_jsxs(\"div\",{style:{position:\"fixed\",top:0,left:0,width:\"100vw\",height:\"100vh\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",zIndex:1e3},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",backgroundColor:popupBackground,opacity:popupBackdropOpacity,cursor:\"pointer\",animation:`fadeIn ${scaleupTransitionSpeed}s ease-in-out`},onClick:closeLightbox}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",zIndex:1,animation:`scaleIn ${scaleupTransitionSpeed}s ease-in-out`},children:/*#__PURE__*/_jsx(\"img\",{src:lightboxMedia.image?.src,srcSet:lightboxMedia.image?.srcSet,alt:lightboxMedia.image?.alt,style:{width:\"60vh\",height:\"80vh\",objectFit:\"cover\",borderRadius:cornerRadius,boxShadow:\"0 20px 60px rgba(0, 0, 0, 0.5)\"},onClick:e=>e.stopPropagation(),className:\"lightbox-media\"})}),/*#__PURE__*/_jsx(\"button\",{onClick:closeLightbox,\"aria-label\":\"Close lightbox\",style:{position:\"absolute\",...getCloseButtonPosition(),width:`${closeButton.size}px`,height:`${closeButton.size}px`,borderRadius:`${closeButton.radius}%`,border:\"none\",background:closeButton.background,backdropFilter:\"blur(10px)\",WebkitBackdropFilter:\"blur(10px)\",color:closeButton.color,fontSize:\"20px\",cursor:\"pointer\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",transition:`all ${scaleupTransitionSpeed}s cubic-bezier(0.4, 0, 0.2, 1)`,padding:0,zIndex:2,transform:\"scale(1) rotate(0deg)\"},onMouseEnter:e=>{e.currentTarget.style.transform=\"scale(1.1) rotate(90deg)\";},onMouseLeave:e=>{e.currentTarget.style.transform=\"scale(1) rotate(0deg)\";},onMouseDown:e=>{e.currentTarget.style.transform=\"scale(0.95) rotate(90deg)\";},onMouseUp:e=>{e.currentTarget.style.transform=\"scale(1.1) rotate(90deg)\";},children:/*#__PURE__*/_jsxs(\"svg\",{width:closeButton.size*.45,height:closeButton.size*.45,viewBox:\"0 0 22 22\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{display:\"block\"},children:[/*#__PURE__*/_jsx(\"line\",{x1:\"5\",y1:\"5\",x2:\"17\",y2:\"17\",stroke:closeButton.color,strokeWidth:\"2.5\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"17\",y1:\"5\",x2:\"5\",y2:\"17\",stroke:closeButton.color,strokeWidth:\"2.5\",strokeLinecap:\"round\"})]})})]}),/*#__PURE__*/_jsx(\"style\",{children:`\n                @keyframes fadeIn {\n                    from {\n                        opacity: 0;\n                    }\n                    to {\n                        opacity: ${popupBackdropOpacity};\n                    }\n                }\n\n                @keyframes scaleIn {\n                    from {\n                        opacity: 0;\n                        transform: scale(0.8);\n                    }\n                    to {\n                        opacity: 1;\n                        transform: scale(1);\n                    }\n                }\n\n                @media (max-width: 768px) {\n                    .lightbox-media {\n                        width: calc(100vw - 40px) !important;\n                        height: auto !important;\n                        max-height: calc(100vh - 80px) !important;\n                    }\n                }\n            `})]});}addPropertyControls(ThreeDImageBentoGallery,{mediaItems:{type:ControlType.Array,title:\"Images\",description:\"Add images to display in the bento grid.\",control:{type:ControlType.Object,controls:{sourceType:{type:ControlType.Enum,title:\"Source Type\",description:\"Choose between uploading an image file or providing a URL.\",options:[\"upload\",\"url\"],optionTitles:[\"Upload\",\"URL\"],defaultValue:\"upload\",displaySegmentedControl:true},imageFile:{type:ControlType.ResponsiveImage,title:\"Image File\",description:\"Upload an image file from your computer.\",hidden:({sourceType})=>sourceType!==\"upload\"},imageUrl:{type:ControlType.String,title:\"Image URL\",description:\"Enter the URL of an image hosted online.\",placeholder:\"https://example.com/image.jpg\",hidden:({sourceType})=>sourceType!==\"url\"},cmsLink:{type:ControlType.Link,title:\"CMS Link\",description:\"Link to the CMS entry for this image.\"},image:{type:ControlType.ResponsiveImage,title:\"Image\",description:\"Select an image for this grid item.\",hidden:()=>true}}},defaultValue:[{sourceType:\"upload\",imageFile:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Image 1\"},image:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Image 1\"}},{sourceType:\"upload\",imageFile:{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Image 2\"},image:{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Image 2\"}},{sourceType:\"upload\",imageFile:{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Image 3\"},image:{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Image 3\"}},{sourceType:\"upload\",imageFile:{src:\"https://framerusercontent.com/images/2uTNEj5aTl2K3NJaEFWMbnrA.jpg\",alt:\"Image 4\"},image:{src:\"https://framerusercontent.com/images/2uTNEj5aTl2K3NJaEFWMbnrA.jpg\",alt:\"Image 4\"}},{sourceType:\"upload\",imageFile:{src:\"https://framerusercontent.com/images/f9RiWoNpmlCMqVRIHz8l8wYfeI.jpg\",alt:\"Image 5\"},image:{src:\"https://framerusercontent.com/images/f9RiWoNpmlCMqVRIHz8l8wYfeI.jpg\",alt:\"Image 5\"}}],maxCount:20},columns:{type:ControlType.Number,title:\"Columns\",description:\"Number of columns in the grid layout. Adjust to create wider or narrower grids.\",defaultValue:3,min:1,max:10,step:1,displayStepper:true},rows:{type:ControlType.Number,title:\"Rows\",description:\"Number of rows in the grid layout. Adjust to create taller or shorter grids.\",defaultValue:5,min:1,max:10,step:1,displayStepper:true},spacing:{type:ControlType.Number,title:\"Spacing\",description:\"Gap between grid items in pixels. Increase for more breathing room, decrease for a tighter layout.\",defaultValue:8,min:0,max:50,step:1,unit:\"px\"},cornerRadius:{type:ControlType.Number,title:\"Corner Radius\",description:\"Roundness of the outer container and grid items. Higher values create more rounded corners.\",defaultValue:24,min:0,max:100,step:1,unit:\"px\"},strokeWidth:{type:ControlType.Number,title:\"Stroke Width\",description:\"Thickness of the border around each grid item. Set to 0 to remove borders.\",defaultValue:0,min:0,max:10,step:1,unit:\"px\"},strokeColor:{type:ControlType.Color,title:\"Stroke Color\",description:\"Color of the border around each grid item.\",defaultValue:\"#000000\",hidden:({strokeWidth})=>strokeWidth===0},canvasColor:{type:ControlType.Color,title:\"Canvas Color\",description:\"Background color of the entire bento grid container.\",defaultValue:\"#FFFFFF\"},mediaOpacity:{type:ControlType.Number,title:\"Media Opacity\",description:\"Transparency level of all images. 1 is fully opaque, 0 is fully transparent.\",defaultValue:1,min:0,max:1,step:.1},hoverDesaturate:{type:ControlType.Boolean,title:\"Hover Desaturate\",description:\"When enabled, images turn grayscale on hover for a stylish interactive effect.\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},enableHoverScale:{type:ControlType.Boolean,title:\"Hover Scale\",description:\"When enabled, images slightly scale up on hover to create a zoom effect.\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},enablePopup:{type:ControlType.Boolean,title:\"Enable Popup\",description:\"When enabled, clicking on a grid item opens it in a fullscreen lightbox popup view.\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},popupBackground:{type:ControlType.Color,title:\"Popup Background\",description:\"Background color of the lightbox popup overlay.\",defaultValue:\"#000000\",hidden:({enablePopup})=>!enablePopup},popupBackdropOpacity:{type:ControlType.Number,title:\"Popup Backdrop Opacity\",description:\"Transparency of the popup background overlay. Higher values create a darker backdrop.\",defaultValue:.9,min:0,max:1,step:.1,hidden:({enablePopup})=>!enablePopup},scaleupTransitionSpeed:{type:ControlType.Number,title:\"Scaleup Transition Speed\",description:\"Duration of hover scale and popup animations in seconds. Lower values create faster animations.\",defaultValue:.3,min:.1,max:2,step:.1,unit:\"s\"},closeButton:{type:ControlType.Object,title:\"Close Button\",description:\"Customize the appearance and position of the popup close button.\",controls:{size:{type:ControlType.Number,title:\"Size\",description:\"Diameter of the close button in pixels.\",defaultValue:48,min:24,max:80,step:1,unit:\"px\"},color:{type:ControlType.Color,title:\"Color\",description:\"Color of the X icon inside the close button.\",defaultValue:\"#000000\"},background:{type:ControlType.Color,title:\"Background\",description:\"Background color of the close button. Supports transparency.\",defaultValue:\"rgba(255, 255, 255, 0.95)\"},position:{type:ControlType.Enum,title:\"Position\",description:\"Corner position of the close button in the popup.\",options:[\"top-left\",\"top-right\",\"bottom-left\",\"bottom-right\"],optionTitles:[\"Top Left\",\"Top Right\",\"Bottom Left\",\"Bottom Right\"],defaultValue:\"top-right\"},radius:{type:ControlType.Number,title:\"Radius\",description:\"Roundness of the close button. 50% creates a perfect circle.\",defaultValue:50,min:0,max:50,step:1,unit:\"%\"}},hidden:({enablePopup})=>!enablePopup},layoutMode:{type:ControlType.Enum,title:\"Layout Mode\",description:\"Choose how grid items are arranged: Auto (equal sizes), Preset (predefined layouts), or Custom (manual configuration).\",options:[\"auto\",\"preset\",\"custom\"],optionTitles:[\"Auto\",\"Preset\",\"Custom\"],defaultValue:\"auto\"},layoutPreset:{type:ControlType.Enum,title:\"Layout Preset\",description:\"Select a predefined layout pattern with varying cell sizes for visual interest.\",options:[\"masonry\",\"hero-left\",\"hero-right\",\"hero-top\",\"hero-bottom\",\"spotlight\"],optionTitles:[\"Masonry\",\"Hero Left\",\"Hero Right\",\"Hero Top\",\"Hero Bottom\",\"Spotlight\"],defaultValue:\"masonry\",hidden:({layoutMode})=>layoutMode!==\"preset\"},customCells:{type:ControlType.Array,title:\"Custom Cells\",description:\"Manually define which images span multiple columns or rows. Position refers to the image index (starting at 0).\",control:{type:ControlType.Object,controls:{position:{type:ControlType.Number,title:\"Position\",description:\"Index of the image to span (0 = first item, 1 = second item, etc.).\",defaultValue:0,min:0,max:10,step:1,displayStepper:true},width:{type:ControlType.Number,title:\"Width\",description:\"Number of columns this item should span across.\",defaultValue:1,min:1,max:10,step:1,displayStepper:true},height:{type:ControlType.Number,title:\"Height\",description:\"Number of rows this item should span down.\",defaultValue:1,min:1,max:10,step:1,displayStepper:true}}},defaultValue:[],hidden:({layoutMode})=>layoutMode!==\"custom\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ThreeDImageBentoGallery\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"400\",\"framerDisableUnlink\":\"*\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"400\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Threedimagebentogallery.map","import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map","/*\n * createStore (framer/store@1.0.1)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js\"\n","export const centerContent = {\n    display: \"flex\",\n    justifyContent: \"center\",\n    alignItems: \"center\"\n};\nexport const autoSizingText = {\n    width: \"max-content\",\n    wordBreak: \"break-word\",\n    overflowWrap: \"break-word\",\n    overflow: \"hidden\",\n    whiteSpace: \"pre-wrap\",\n    flexShrink: 0\n};\nexport const defaultContainerStyles = {\n    ...centerContent,\n    overflow: \"hidden\"\n};\nexport const containerStyles = defaultContainerStyles;\nexport const randomColor = ()=>\"#\" + Math.floor(Math.random() * 16777215).toString(16)\n;\n\nexport const __FramerMetadata__ = {\"exports\":{\"centerContent\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"autoSizingText\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultContainerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"randomColor\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./Utils.map","/*\n * Utils (framer/utils@0.9.0)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/28rXvpPsrum7FH6cMELS/1jCAazZw1EGHjrG5Nu5D/Utils.js\"\n","import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{randomColor}from\"https://framer.com/m/framer/utils.js@^0.9.0\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({background:\"#0099FF\"});export function withRotate(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{rotate:90},transition:{duration:2}});});}export function withHover(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,whileHover:{scale:1.05}});});}export function withRandomColor(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],"mappings":"iPAUG,SAAwB,EAAwB,EAAM,CAAC,GAAK,CAAC,aAAW,CAAC,CAAC,WAAW,SAAS,UAAU,CAAC,IAAI,sEAAsE,IAAI,UAAU,CAAC,MAAM,CAAC,IAAI,sEAAsE,IAAI,UAAU,CAAC,CAAC,CAAC,WAAW,SAAS,UAAU,CAAC,IAAI,oEAAoE,IAAI,UAAU,CAAC,MAAM,CAAC,IAAI,oEAAoE,IAAI,UAAU,CAAC,CAAC,CAAC,WAAW,SAAS,UAAU,CAAC,IAAI,uEAAuE,IAAI,UAAU,CAAC,MAAM,CAAC,IAAI,uEAAuE,IAAI,UAAU,CAAC,CAAC,CAAC,WAAW,SAAS,UAAU,CAAC,IAAI,oEAAoE,IAAI,UAAU,CAAC,MAAM,CAAC,IAAI,oEAAoE,IAAI,UAAU,CAAC,CAAC,CAAC,UAAQ,EAAE,OAAK,EAAE,UAAQ,EAAE,eAAa,GAAG,cAAY,EAAE,cAAY,UAAU,cAAY,UAAU,eAAa,EAAE,cAAY,GAAM,yBAAuB,GAAG,kBAAgB,UAAU,uBAAqB,GAAG,aAAW,OAAO,eAAa,UAAU,cAAY,EAAE,CAAC,kBAAgB,GAAM,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