{"version":3,"file":"HeaderImage.CCSW_4Ko.mjs","names":[],"sources":["https:/framerusercontent.com/modules/vTF4hFHcu8pgO1gmdMfX/WgCMdlX030LCEHUhr4Vc/HeaderImage.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{motion}from\"framer-motion\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function HeaderImage(props){const startWidth=\"100%\";const endWidth=\"calc(50% - 16px)\";const initialWidth=RenderTarget.current()===RenderTarget.canvas?endWidth:startWidth;return /*#__PURE__*/_jsx(motion.div,{style:{height:\"100vh\",overflow:\"hidden\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",...props.style},initial:{width:props.shouldAnimate?initialWidth:startWidth},animate:{width:props.shouldAnimate?endWidth:startWidth},transition:props.transition,children:props.mediaType&&props.video?/*#__PURE__*/_jsx(\"video\",{src:props.video,autoPlay:true,muted:true,loop:true,playsInline:true,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\"}}):/*#__PURE__*/_jsx(\"img\",{src:props.image?.src,alt:props.image?.alt||\"\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\"}})});}addPropertyControls(HeaderImage,{shouldAnimate:{type:ControlType.Boolean,title:\"Animate Visual\",enabledTitle:\"True\",disabledTitle:\"False\"},mediaType:{type:ControlType.Boolean,title:\"File\",enabledTitle:\"Video\",disabledTitle:\"Image\"},video:{type:ControlType.File,allowedFileTypes:[\"mp4\",\"mov\",\"webm\"],title:\"Video\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"},transition:{type:ControlType.Transition,title:\"Transition\",defaultValue:{type:\"spring\",stiffness:800,damping:60}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HeaderImage\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\"}},\"__F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