{"version":3,"file":"Image_Grid.B97AdH66.mjs","names":["useRef","useState","useMemo","_Fragment","__esmMin","pe","init_ssg_sandbox_shims","init_npm_react_18_3_1","de","window","init_jsx_runtime","p","ce","_e","useInView","init_framer_motion_DhsWWWsN","init_framer_CcflMUCW","addPropertyControls","ControlType","ImageGrid","props","containerRef","containerWidth","setContainerWidth","imageData","setImageData","resizeObserver","rafId","updateWidth","forceUpdate","imagePromises","images","img","resolve","image","loadedImages","columnWidth","gap","columns","masonryLayout","columnHeights","layout","shortestColumnIndex","finalWidth","finalHeight","aspectRatio","scaleFactor","totalHeight","calculatedHeight","item","hasText","showText","ImageGridItem","index","showOverlay","setShowOverlay","itemRef","isInView","getTextPositionStyles","isTop","textPosition","isBottom","isLeft","isRight","isCenter","styles","textPadding","borderRadius","backgroundColor","animation","scrollAnimation","baseStyles","l","titleFont","titleColor","descriptionFont","descriptionColor","init_Image_Grid"],"sources":["https:/framerusercontent.com/modules/3tsPNSol5IJhx7PWsrhP/9meAnis8i2TyPz9xYr15/Image_Grid.js"],"sourcesContent":["// Componente griglia foto senza spazi bianchi - disposizione masonry/grid compatta con colonne configurabili\n// Made with workshop\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect,useRef,useMemo}from\"react\";import{useInView}from\"framer-motion\";/**\n * Photo Grid - Griglia foto compatta senza spazi bianchi con colonne configurabili\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function ImageGrid(props){const{images=[{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Image 1\",title:\"Titolo 1\",description:\"Descrizione 1\"},{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Image 2\",title:\"Titolo 2\",description:\"Descrizione 2\"},{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Image 3\",title:\"Titolo 3\",description:\"Descrizione 3\"},{src:\"https://framerusercontent.com/images/2uTNEj5aTl2K3NJaEFWMbnrA.jpg\",alt:\"Image 4\",title:\"Titolo 4\",description:\"Descrizione 4\"},{src:\"https://framerusercontent.com/images/f9RiWoNpmlCMqVRIHz8l8wYfeI.jpg\",alt:\"Image 5\",title:\"Titolo 5\",description:\"Descrizione 5\"},{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Image 6\",title:\"Titolo 6\",description:\"Descrizione 6\"}],columns=2,gap=0,borderRadius=0,aspectRatio=\"auto\",objectFit=\"cover\",showText=\"none\",backgroundColor=\"#FFFFFF\",textPosition=\"bottom-center\",textPadding=16,titleFont={fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"},descriptionFont={fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"},titleColor=\"#FFFFFF\",descriptionColor=\"#FFFFFF\",animation=\"none\",scrollAnimation=\"none\"}=props;const containerRef=useRef(null);const[containerWidth,setContainerWidth]=useState(0);const[imageData,setImageData]=useState([]);useEffect(()=>{if(!containerRef.current)return;let resizeObserver=null;let rafId=null;const updateWidth=()=>{if(containerRef.current){setContainerWidth(containerRef.current.offsetWidth);}};updateWidth();if(typeof window!==\"undefined\"&&window.ResizeObserver){resizeObserver=new window.ResizeObserver(()=>{updateWidth();});resizeObserver.observe(containerRef.current);}else if(typeof window!==\"undefined\"){window.addEventListener(\"resize\",updateWidth);}// Force update in preview mode to fix stale width\nif(typeof window!==\"undefined\"&&window.requestAnimationFrame){const forceUpdate=()=>{updateWidth();rafId=window.requestAnimationFrame(forceUpdate);};rafId=window.requestAnimationFrame(forceUpdate);}return()=>{if(rafId&&typeof window!==\"undefined\")window.cancelAnimationFrame(rafId);if(resizeObserver&&containerRef.current){resizeObserver.disconnect();}else if(typeof window!==\"undefined\"){window.removeEventListener(\"resize\",updateWidth);}};},[]);// Load image dimensions\nuseEffect(()=>{const loadImageDimensions=async()=>{const imagePromises=images.map(image=>{return new Promise(resolve=>{const img=new Image;img.onload=()=>{resolve({src:typeof image.src===\"string\"?image.src:image.src?.src||\"\",alt:image.alt,width:img.naturalWidth,height:img.naturalHeight,title:image.title,description:image.description});};img.onerror=()=>{resolve({src:typeof image.src===\"string\"?image.src:image.src?.src||\"\",alt:image.alt,width:300,height:200,title:image.title,description:image.description});};img.src=typeof image.src===\"string\"?image.src:image.src?.src||\"\";});});const loadedImages=await Promise.all(imagePromises);setImageData(loadedImages);};if(typeof window!==\"undefined\"){loadImageDimensions();}},[images]);const columnWidth=useMemo(()=>{if(containerWidth===0)return 0;return(containerWidth-gap*(columns-1))/columns;},[containerWidth,columns,gap]);// Calculate masonry layout\nconst masonryLayout=useMemo(()=>{if(imageData.length===0||columnWidth===0)return[];const columnHeights=new Array(columns).fill(0);const layout=[];imageData.forEach(image=>{// Find shortest column\nconst shortestColumnIndex=columnHeights.indexOf(Math.min(...columnHeights));// Calculate dimensions based on aspect ratio setting\nlet finalWidth=columnWidth;let finalHeight;if(aspectRatio===\"auto\"){// Use original proportions\nconst scaleFactor=columnWidth/image.width;finalHeight=image.height*scaleFactor;}else if(aspectRatio===\"square\"){finalHeight=columnWidth;}else if(aspectRatio===\"portrait\"){finalHeight=columnWidth*1.4;}else if(aspectRatio===\"landscape\"){finalHeight=columnWidth*.7;}else{// fallback to auto\nconst scaleFactor=columnWidth/image.width;finalHeight=image.height*scaleFactor;}layout.push({image,x:shortestColumnIndex*(columnWidth+gap),y:columnHeights[shortestColumnIndex],width:finalWidth,height:finalHeight});// Update column height\ncolumnHeights[shortestColumnIndex]+=finalHeight+gap;});return layout;},[imageData,columnWidth,columns,gap,aspectRatio]);const totalHeight=useMemo(()=>{if(masonryLayout.length===0)return 200// Minimum fallback height\n;const calculatedHeight=Math.max(...masonryLayout.map(item=>item.y+item.height));return Math.max(calculatedHeight,200)// Ensure minimum height of 200px\n;},[masonryLayout]);return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:{width:\"100%\",height:`${totalHeight}px`,minHeight:\"200px\",position:\"relative\",overflow:\"hidden\",...props.style},children:[masonryLayout.map((item,index)=>{const hasText=(item.image.title||item.image.description)&&showText!==\"none\";// Fix: showText hover/always logic for preview\n// Move useState outside of map to avoid React error\n// const [showOverlay, setShowOverlay] = useState(false)\n// Instead, use a single overlay state for hover index\n// We'll use a single hoveredIndex state\nreturn /*#__PURE__*/_jsx(ImageGridItem,{item:item,index:index,hasText:hasText,showText:showText,borderRadius:borderRadius,backgroundColor:backgroundColor,animation:animation,objectFit:objectFit,textPosition:textPosition,textPadding:textPadding,titleFont:titleFont,descriptionFont:descriptionFont,titleColor:titleColor,descriptionColor:descriptionColor,scrollAnimation:scrollAnimation},index);}),/*#__PURE__*/_jsx(\"style\",{children:`\n                .imggrid-text-hover:hover .imggrid-text-hover, .imggrid-text-hover:focus .imggrid-text-hover {\n                    opacity: 1 !important;\n                }\n                .img-anim-zoom img { transform: scale(1); transition: transform 0.3s ease; }\n                .img-anim-zoom:hover img, .img-anim-zoom:focus img { transform: scale(1.07); }\n                .img-anim-scale img { transform: scale(1); transition: transform 0.3s ease; }\n                .img-anim-scale:hover img, .img-anim-scale:focus img { transform: scale(1.1); }\n                .img-anim-rotate img { transform: rotate(0deg); transition: transform 0.3s ease; }\n                .img-anim-rotate:hover img, .img-anim-rotate:focus img { transform: rotate(5deg); }\n                .img-anim-blur img { filter: blur(0px); transition: filter 0.3s ease; }\n                .img-anim-blur:hover img, .img-anim-blur:focus img { filter: blur(2px); }\n            `})]});}function ImageGridItem({item,index,hasText,showText,borderRadius,backgroundColor,animation,objectFit,textPosition,textPadding,titleFont,descriptionFont,titleColor,descriptionColor,scrollAnimation}){const[showOverlay,setShowOverlay]=useState(false);const itemRef=useRef(null);const isInView=useInView(itemRef,{once:true,margin:\"-50px\"});// Calculate text positioning based on the 9-grid system\nconst getTextPositionStyles=()=>{const isTop=textPosition.includes(\"top\");const isBottom=textPosition.includes(\"bottom\");const isLeft=textPosition.includes(\"left\");const isRight=textPosition.includes(\"right\");const isCenter=textPosition===\"center\";const isCenterHorizontal=textPosition.includes(\"center\")&&!isCenter;let styles={position:\"absolute\",display:\"flex\",flexDirection:\"column\",pointerEvents:\"none\",opacity:showText===\"always\"||showText===\"hover\"&&showOverlay?1:0,transition:\"opacity 0.2s\"};// Vertical positioning\nif(isTop){styles.top=textPadding;styles.alignItems=isLeft?\"flex-start\":isRight?\"flex-end\":\"center\";styles.justifyContent=\"flex-start\";}else if(isBottom){styles.bottom=textPadding;styles.alignItems=isLeft?\"flex-start\":isRight?\"flex-end\":\"center\";styles.justifyContent=\"flex-end\";}else if(isCenter){styles.top=0;styles.bottom=0;styles.alignItems=\"center\";styles.justifyContent=\"center\";}else{// center-left or center-right\nstyles.top=0;styles.bottom=0;styles.alignItems=isLeft?\"flex-start\":\"flex-end\";styles.justifyContent=\"center\";}// Horizontal positioning\nif(isLeft){styles.left=textPadding;styles.right=undefined;}else if(isRight){styles.right=textPadding;styles.left=undefined;}else{// center horizontal\nstyles.left=textPadding;styles.right=textPadding;}// Full width/height for center positions\nif(isCenter||!isTop&&!isBottom){styles.width=\"100%\";styles.height=\"100%\";styles.left=0;styles.right=0;}return styles;};// Get scroll animation styles\nconst getScrollAnimationStyles=()=>{if(scrollAnimation===\"none\")return{};const baseStyles={transition:\"transform 0.6s ease-out, opacity 0.6s ease-out\"};if(!isInView){switch(scrollAnimation){case\"slideUp\":return{...baseStyles,transform:\"translateY(50px)\",opacity:0};case\"slideDown\":return{...baseStyles,transform:\"translateY(-50px)\",opacity:0};case\"slideLeft\":return{...baseStyles,transform:\"translateX(50px)\",opacity:0};case\"slideRight\":return{...baseStyles,transform:\"translateX(-50px)\",opacity:0};case\"fadeIn\":return{...baseStyles,opacity:0};case\"zoomIn\":return{...baseStyles,transform:\"scale(0.8)\",opacity:0};case\"rotateIn\":return{...baseStyles,transform:\"rotate(-10deg) scale(0.9)\",opacity:0};default:return baseStyles;}}return{...baseStyles,transform:\"translateY(0px) translateX(0px) scale(1) rotate(0deg)\",opacity:1};};return /*#__PURE__*/_jsx(\"div\",{ref:itemRef,style:{position:\"absolute\",left:`${item.x}px`,top:`${item.y}px`,width:`${item.width}px`,height:`${item.height}px`,overflow:\"hidden\",borderRadius:`${borderRadius}px`,background:backgroundColor,transition:animation!==\"none\"?\"transform 0.3s, opacity 0.3s\":undefined,...getScrollAnimationStyles()},className:animation!==\"none\"?`img-anim-${animation}`:undefined,children:/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",position:\"relative\",cursor:hasText&&showText===\"hover\"?\"pointer\":undefined},tabIndex:hasText&&showText===\"hover\"?0:undefined,onMouseEnter:showText===\"hover\"?()=>setShowOverlay(true):undefined,onMouseLeave:showText===\"hover\"?()=>setShowOverlay(false):undefined,onFocus:showText===\"hover\"?()=>setShowOverlay(true):undefined,onBlur:showText===\"hover\"?()=>setShowOverlay(false):undefined,children:[/*#__PURE__*/_jsx(\"img\",{src:item.image.src,alt:item.image.alt||`Image ${index+1}`,style:{width:\"100%\",height:\"100%\",objectFit:objectFit,borderRadius:`${borderRadius}px`,display:\"block\",transition:animation!==\"none\"?\"transform 0.3s, opacity 0.3s\":undefined},loading:\"lazy\"}),hasText&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",backgroundColor:showText===\"always\"||showText===\"hover\"&&showOverlay?backgroundColor:\"transparent\",borderRadius:`${borderRadius}px`,opacity:showText===\"always\"||showText===\"hover\"&&showOverlay?.8:0,transition:\"opacity 0.2s\",pointerEvents:\"none\"}}),/*#__PURE__*/_jsxs(\"div\",{style:{...getTextPositionStyles(),backgroundColor:\"transparent\",borderRadius:`${borderRadius}px`},children:[item.image.title&&/*#__PURE__*/_jsx(\"span\",{style:{...titleFont,color:titleColor,marginBottom:4},children:item.image.title}),item.image.description&&/*#__PURE__*/_jsx(\"span\",{style:{...descriptionFont,color:descriptionColor},children:item.image.description})]})]})]})});}addPropertyControls(ImageGrid,{images:{type:ControlType.Array,title:\"Images\",control:{type:ControlType.Object,controls:{src:{type:ControlType.ResponsiveImage},alt:{type:ControlType.String,defaultValue:\"\"},title:{type:ControlType.String,defaultValue:\"\"},description:{type:ControlType.String,defaultValue:\"\"}}},defaultValue:[{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Image 1\",title:\"Titolo 1\",description:\"Descrizione 1\"},{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Image 2\",title:\"Titolo 2\",description:\"Descrizione 2\"},{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Image 3\",title:\"Titolo 3\",description:\"Descrizione 3\"},{src:\"https://framerusercontent.com/images/2uTNEj5aTl2K3NJaEFWMbnrA.jpg\",alt:\"Image 4\",title:\"Titolo 4\",description:\"Descrizione 4\"},{src:\"https://framerusercontent.com/images/f9RiWoNpmlCMqVRIHz8l8wYfeI.jpg\",alt:\"Image 5\",title:\"Titolo 5\",description:\"Descrizione 5\"},{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Image 6\",title:\"Titolo 6\",description:\"Descrizione 6\"}]},columns:{type:ControlType.Number,title:\"Columns\",defaultValue:2,min:1,max:6,step:1,displayStepper:true},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:0,min:0,max:20,step:1,unit:\"px\"},aspectRatio:{type:ControlType.Enum,title:\"Aspect Ratio\",options:[\"auto\",\"square\",\"portrait\",\"landscape\"],optionTitles:[\"Auto\",\"Square\",\"Portrait\",\"Landscape\"],defaultValue:\"auto\"},objectFit:{type:ControlType.Enum,title:\"Object Fit\",options:[\"cover\",\"contain\",\"fill\"],optionTitles:[\"Cover\",\"Contain\",\"Fill\"],defaultValue:\"cover\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:0,min:0,max:20,step:1,unit:\"px\"},showText:{type:ControlType.Enum,title:\"Show Text\",options:[\"none\",\"always\",\"hover\"],optionTitles:[\"None\",\"Always\",\"On Hover\"],defaultValue:\"none\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\",hidden:({showText})=>showText===\"none\"},textPosition:{type:ControlType.Enum,title:\"Text Position\",options:[\"top-left\",\"top-center\",\"top-right\",\"center-left\",\"center\",\"center-right\",\"bottom-left\",\"bottom-center\",\"bottom-right\"],optionTitles:[\"Top Left\",\"Top Center\",\"Top Right\",\"Center Left\",\"Center\",\"Center Right\",\"Bottom Left\",\"Bottom Center\",\"Bottom Right\"],defaultValue:\"bottom-center\",hidden:({showText})=>showText===\"none\"},textPadding:{type:ControlType.Number,title:\"Text Padding\",defaultValue:16,min:0,max:64,step:1,unit:\"px\",hidden:({showText})=>showText===\"none\"},titleFont:{type:ControlType.Font,title:\"Title Font\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\",hidden:({showText})=>showText===\"none\"},titleColor:{type:ControlType.Color,title:\"Title Color\",defaultValue:\"#FFFFFF\",hidden:({showText})=>showText===\"none\"},descriptionFont:{type:ControlType.Font,title:\"Description Font\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"},controls:\"extended\",defaultFontType:\"sans-serif\",hidden:({showText})=>showText===\"none\"},descriptionColor:{type:ControlType.Color,title:\"Description Color\",defaultValue:\"#FFFFFF\",hidden:({showText})=>showText===\"none\"},animation:{type:ControlType.Enum,title:\"Animation\",description:\"Hover animation effect for images\",options:[\"none\",\"zoom\"],optionTitles:[\"None\",\"Zoom\"],defaultValue:\"none\"},scrollAnimation:{type:ControlType.Enum,title:\"Scroll Animation\",description:\"Animation when images appear during scrolling\",options:[\"none\",\"slideUp\",\"slideDown\",\"slideLeft\",\"slideRight\",\"fadeIn\",\"zoomIn\",\"rotateIn\"],optionTitles:[\"None\",\"Slide Up\",\"Slide Down\",\"Slide Left\",\"Slide Right\",\"Fade In\",\"Zoom In\",\"Rotate In\"],defaultValue:\"none\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ImageGrid\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Image_Grid.map"],"mappings":"A,4QAOG,SAAwBmB,EAAU,EAAM,CAAC,GAAK,CAAC,SAAO,CAAC,CAAC,IAAI,sEAAsE,IAAI,UAAU,MAAM,WAAW,YAAY,eAAe,EAAE,CAAC,IAAI,oEAAoE,IAAI,UAAU,MAAM,WAAW,YAAY,eAAe,EAAE,CAAC,IAAI,uEAAuE,IAAI,UAAU,MAAM,WAAW,YAAY,eAAe,EAAE,CAAC,IAAI,oEAAoE,IAAI,UAAU,MAAM,WAAW,YAAY,eAAe,EAAE,CAAC,IAAI,sEAAsE,IAAI,UAAU,MAAM,WAAW,YAAY,eAAe,EAAE,CAAC,IAAI,sEAAsE,IAAI,UAAU,MAAM,WAAW,YAAY,eAAe,CAAC,EAAE,UAAQ,EAAE,MAAI,EAAE,eAAa,EAAE,cAAY,OAAO,YAAU,QAAQ,WAAS,OAAO,kBAAgB,UAAU,eAAa,gBAAgB,cAAY,GAAG,YAAU,CAAC,SAAS,OAAO,QAAQ,SAAS,cAAc,UAAU,WAAW,KAAK,EAAE,kBAAgB,CAAC,SAAS,OAAO,QAAQ,SAAS,cAAc,UAAU,WAAW,OAAO,EAAE,aAAW,UAAU,mBAAiB,UAAU,YAAU,OAAO,kBAAgB,QAAQC,EAAYC,EAAarB,EAAO,IAAI,EAAO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