{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/4eDCndZd2BNFFuaPqlgy/F8K3iajjLvoSzhlCSTSj/ExpandingGallery.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion,LayoutGroup}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";import{cloneElement}from\"react\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */ export default function ExpandingGallery(props){const horizontal=props.direction==\"horizontal\";let sections=[];for(let i=0;i<props.layers.length;i++){var ref;const hoverFrameStyle={position:\"absolute\",inset:0};if(i!=0){hoverFrameStyle[horizontal?\"left\":\"top\"]=-props.gap/2;}if(i!=props.layers.length-1){hoverFrameStyle[horizontal?\"right\":\"bottom\"]=-props.gap/2;}sections.push(/*#__PURE__*/ _jsxs(motion.div,{layout:true,style:{flexGrow:100,[horizontal?\"height\":\"width\"]:\"100%\",position:\"relative\"},whileHover:{flexGrow:props.ratio*100},transition:props.transition,children:[/*#__PURE__*/ _jsx(motion.div,{style:hoverFrameStyle}),/*#__PURE__*/ cloneElement(props.layers[i],{style:{...(ref=props.layers[i].props)===null||ref===void 0?void 0:ref.style,width:\"100%\",height:\"100%\"}})]}));}return /*#__PURE__*/ _jsx(motion.div,{style:{width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:horizontal?\"row\":\"column\",gap:props.gap},children:/*#__PURE__*/ _jsx(LayoutGroup,{children:sections})});};ExpandingGallery.displayName=\"Expanding Gallery\";addPropertyControls(ExpandingGallery,{layers:{type:ControlType.Array,control:{type:ControlType.ComponentInstance}},mode:{type:ControlType.Enum,defaultValue:\"hover\",options:[\"press\",\"hover\"],optionTitles:[\"Press\",\"Hover\"],displaySegmentedControl:true,hidden(props){return true;}},direction:{type:ControlType.Enum,defaultValue:\"horizontal\",options:[\"horizontal\",\"vertical\"],displaySegmentedControl:true},ratio:{type:ControlType.Number,defaultValue:5,min:.1,step:.1,description:\"Size ratio of the hovered layer.\"},gap:{type:ControlType.Number,defaultValue:10,min:0,step:1},transition:{type:ControlType.Transition}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ExpandingGallery\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ExpandingGallery.map"],
  "mappings": "8HAAAA,IAGmB,SAARC,EAAkCC,EAAM,CAAC,IAAMC,EAAWD,EAAM,WAAW,aAAiBE,EAAS,CAAC,EAAE,QAAQC,EAAE,EAAEA,EAAEH,EAAM,OAAO,OAAOG,IAAI,CAAC,IAAIC,EAAI,IAAMC,EAAgB,CAAC,SAAS,WAAW,MAAM,CAAC,EAAKF,GAAG,IAAGE,EAAgBJ,EAAW,OAAO,KAAK,EAAE,CAACD,EAAM,IAAI,GAAMG,GAAGH,EAAM,OAAO,OAAO,IAAGK,EAAgBJ,EAAW,QAAQ,QAAQ,EAAE,CAACD,EAAM,IAAI,GAAGE,EAAS,KAAmB,EAAMI,EAAO,IAAI,CAAC,OAAO,GAAK,MAAM,CAAC,SAAS,IAAI,CAACL,EAAW,SAAS,OAAO,EAAE,OAAO,SAAS,UAAU,EAAE,WAAW,CAAC,SAASD,EAAM,MAAM,GAAG,EAAE,WAAWA,EAAM,WAAW,SAAS,CAAeO,EAAKD,EAAO,IAAI,CAAC,MAAMD,CAAe,CAAC,EAAgBG,EAAaR,EAAM,OAAOG,CAAC,EAAE,CAAC,MAAM,CAAC,IAAIC,EAAIJ,EAAM,OAAOG,CAAC,EAAE,SAAS,MAAMC,IAAM,OAAO,OAAOA,EAAI,MAAM,MAAM,OAAO,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,OAAqBG,EAAKD,EAAO,IAAI,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OA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