{"version":3,"file":"Video.DFMYOObJ.mjs","names":["useRef","useState","HomeFactory","React","defaultEvents","useRef","useCallback","animate","useRef","useMemo","useCallback"],"sources":["https:/framer.com/m/hero-icons/Home.js@0.0.27","https:/framerusercontent.com/modules/hKjtTuWGYB451ckw6eTN/rQJeCcsGr1fSnWO0FT2G/Hero.js","https:/framer.com/m/framer/useAutoMotionValue.js@^0.3.0","https:/framerusercontent.com/modules/lRDHiNWNVWmE0lqtoVHP/0jtlswBvrookcx7EpjBD/Video.js"],"sourcesContent":["let r;var l=e=>{if(!r){const t=({size:o=24,...a},n)=>e.createElement(\"svg\",{viewBox:\"0 0 20 20\",fill:\"currentColor\",width:o,height:o,ref:n,...a},e.createElement(\"path\",{d:\"M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z\"}));r=e.forwardRef(t)}return r};export{l as default};\n","import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{useState,useEffect,useRef}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{motion}from\"framer-motion\";import{NullState}from\"https://framer.com/m/framer/icon-nullstate.js@0.7.0\";import HomeFactory from\"https://framer.com/m/hero-icons/Home.js@0.0.27\";import{defaultEvents,useIconSelection}from\"https://framerusercontent.com/modules/Ma20hU0GGRxLxZphbywl/OSpwWF91FHPVFyQJjMHt/utils.js\";export const iconKeys=[\"AcademicCap\",\"AcademicCapOutline\",\"Adjustments\",\"AdjustmentsOutline\",\"Annotation\",\"AnnotationOutline\",\"Archive\",\"ArchiveOutline\",\"ArrowCircleDown\",\"ArrowCircleLeft\",\"ArrowCircleRight\",\"ArrowCircleUp\",\"ArrowCircleUpOutline\",\"ArrowDown\",\"ArrowDownOutline\",\"ArrowLeft\",\"ArrowLeftOutline\",\"ArrowNarrowDown\",\"ArrowNarrowLeft\",\"ArrowNarrowRight\",\"ArrowNarrowUp\",\"ArrowNarrowUpOutline\",\"ArrowRight\",\"ArrowRightOutline\",\"ArrowUp\",\"ArrowUpOutline\",\"ArrowsExpand\",\"ArrowsExpandOutline\",\"AtSymbol\",\"AtSymbolOutline\",\"Backspace\",\"BackspaceOutline\",\"BadgeCheck\",\"BadgeCheckOutline\",\"Ban\",\"BanOutline\",\"Beaker\",\"BeakerOutline\",\"Bell\",\"BellOutline\",\"BookOpen\",\"BookOpenOutline\",\"Bookmark\",\"BookmarkAlt\",\"BookmarkAltOutline\",\"BookmarkOutline\",\"Briefcase\",\"BriefcaseOutline\",\"Cake\",\"CakeOutline\",\"Calculator\",\"CalculatorOutline\",\"Calendar\",\"CalendarOutline\",\"Camera\",\"CameraOutline\",\"Cash\",\"CashOutline\",\"ChartBar\",\"ChartBarOutline\",\"ChartPie\",\"ChartPieOutline\",\"ChartSquareBar\",\"Chat\",\"ChatAlt\",\"ChatAlt2\",\"ChatAlt2Outline\",\"ChatAltOutline\",\"ChatOutline\",\"Check\",\"CheckCircle\",\"CheckCircleOutline\",\"CheckOutline\",\"ChevronDoubleDown\",\"ChevronDoubleLeft\",\"ChevronDoubleRight\",\"ChevronDoubleUp\",\"ChevronDown\",\"ChevronDownOutline\",\"ChevronLeft\",\"ChevronLeftOutline\",\"ChevronRight\",\"ChevronRightOutline\",\"ChevronUp\",\"ChevronUpOutline\",\"Chip\",\"ChipOutline\",\"Clipboard\",\"ClipboardCheck\",\"ClipboardCopy\",\"ClipboardCopyOutline\",\"ClipboardList\",\"ClipboardListOutline\",\"ClipboardOutline\",\"Clock\",\"ClockOutline\",\"Cloud\",\"CloudDownload\",\"CloudDownloadOutline\",\"CloudOutline\",\"CloudUpload\",\"CloudUploadOutline\",\"Code\",\"CodeOutline\",\"Cog\",\"CogOutline\",\"Collection\",\"CollectionOutline\",\"ColorSwatch\",\"ColorSwatchOutline\",\"CreditCard\",\"CreditCardOutline\",\"Cube\",\"CubeOutline\",\"CubeTransparent\",\"CurrencyBangladeshi\",\"CurrencyDollar\",\"CurrencyEuro\",\"CurrencyEuroOutline\",\"CurrencyPound\",\"CurrencyPoundOutline\",\"CurrencyRupee\",\"CurrencyRupeeOutline\",\"CurrencyYen\",\"CurrencyYenOutline\",\"CursorClick\",\"CursorClickOutline\",\"Database\",\"DatabaseOutline\",\"DesktopComputer\",\"DeviceMobile\",\"DeviceMobileOutline\",\"DeviceTablet\",\"DeviceTabletOutline\",\"Document\",\"DocumentAdd\",\"DocumentAddOutline\",\"DocumentDownload\",\"DocumentDuplicate\",\"DocumentOutline\",\"DocumentRemove\",\"DocumentReport\",\"DocumentSearch\",\"DocumentText\",\"DocumentTextOutline\",\"DotsCircleHorizontal\",\"DotsHorizontal\",\"DotsVertical\",\"DotsVerticalOutline\",\"Download\",\"DownloadOutline\",\"Duplicate\",\"DuplicateOutline\",\"EmojiHappy\",\"EmojiHappyOutline\",\"EmojiSad\",\"EmojiSadOutline\",\"Exclamation\",\"ExclamationCircle\",\"ExclamationOutline\",\"ExternalLink\",\"ExternalLinkOutline\",\"Eye\",\"EyeOff\",\"EyeOffOutline\",\"EyeOutline\",\"FastForward\",\"FastForwardOutline\",\"Film\",\"FilmOutline\",\"Filter\",\"FilterOutline\",\"FingerPrint\",\"FingerPrintOutline\",\"Fire\",\"FireOutline\",\"Flag\",\"FlagOutline\",\"Folder\",\"FolderAdd\",\"FolderAddOutline\",\"FolderDownload\",\"FolderOpen\",\"FolderOpenOutline\",\"FolderOutline\",\"FolderRemove\",\"FolderRemoveOutline\",\"Gift\",\"GiftOutline\",\"Globe\",\"GlobeAlt\",\"GlobeAltOutline\",\"GlobeOutline\",\"Hand\",\"HandOutline\",\"Hashtag\",\"HashtagOutline\",\"Heart\",\"HeartOutline\",\"Home\",\"HomeOutline\",\"Identification\",\"Inbox\",\"InboxIn\",\"InboxInOutline\",\"InboxOutline\",\"InformationCircle\",\"Key\",\"KeyOutline\",\"Library\",\"LibraryOutline\",\"LightBulb\",\"LightBulbOutline\",\"LightningBolt\",\"LightningBoltOutline\",\"Link\",\"LinkOutline\",\"LocationMarker\",\"LockClosed\",\"LockClosedOutline\",\"LockOpen\",\"LockOpenOutline\",\"Login\",\"LoginOutline\",\"Logout\",\"LogoutOutline\",\"Mail\",\"MailOpen\",\"MailOpenOutline\",\"MailOutline\",\"Map\",\"MapOutline\",\"Menu\",\"MenuAlt1\",\"MenuAlt1Outline\",\"MenuAlt2\",\"MenuAlt2Outline\",\"MenuAlt3\",\"MenuAlt3Outline\",\"MenuAlt4\",\"MenuAlt4Outline\",\"MenuOutline\",\"Microphone\",\"MicrophoneOutline\",\"Minus\",\"MinusCircle\",\"MinusCircleOutline\",\"MinusOutline\",\"MinusSm\",\"MinusSmOutline\",\"Moon\",\"MoonOutline\",\"MusicNote\",\"MusicNoteOutline\",\"Newspaper\",\"NewspaperOutline\",\"OfficeBuilding\",\"PaperAirplane\",\"PaperAirplaneOutline\",\"PaperClip\",\"PaperClipOutline\",\"Pause\",\"PauseOutline\",\"Pencil\",\"PencilAlt\",\"PencilAltOutline\",\"PencilOutline\",\"Phone\",\"PhoneIncoming\",\"PhoneIncomingOutline\",\"PhoneMissedCall\",\"PhoneOutgoing\",\"PhoneOutgoingOutline\",\"PhoneOutline\",\"Photograph\",\"PhotographOutline\",\"Play\",\"PlayOutline\",\"Plus\",\"PlusCircle\",\"PlusCircleOutline\",\"PlusOutline\",\"PlusSm\",\"PlusSmOutline\",\"PresentationChartBar\",\"Printer\",\"PrinterOutline\",\"Puzzle\",\"PuzzleOutline\",\"Qrcode\",\"QrcodeOutline\",\"QuestionMarkCircle\",\"ReceiptRefund\",\"ReceiptRefundOutline\",\"ReceiptTax\",\"ReceiptTaxOutline\",\"Refresh\",\"RefreshOutline\",\"Reply\",\"ReplyOutline\",\"Rewind\",\"RewindOutline\",\"Rss\",\"RssOutline\",\"Save\",\"SaveAs\",\"SaveAsOutline\",\"SaveOutline\",\"Scale\",\"ScaleOutline\",\"Scissors\",\"ScissorsOutline\",\"Search\",\"SearchCircle\",\"SearchCircleOutline\",\"SearchOutline\",\"Selector\",\"SelectorOutline\",\"Server\",\"ServerOutline\",\"Share\",\"ShareOutline\",\"ShieldCheck\",\"ShieldCheckOutline\",\"ShieldExclamation\",\"ShoppingBag\",\"ShoppingBagOutline\",\"ShoppingCart\",\"ShoppingCartOutline\",\"SortAscending\",\"SortAscendingOutline\",\"SortDescending\",\"Sparkles\",\"SparklesOutline\",\"Speakerphone\",\"SpeakerphoneOutline\",\"Star\",\"StarOutline\",\"StatusOffline\",\"StatusOfflineOutline\",\"StatusOnline\",\"StatusOnlineOutline\",\"Stop\",\"StopOutline\",\"Sun\",\"SunOutline\",\"Support\",\"SupportOutline\",\"SwitchHorizontal\",\"SwitchVertical\",\"Table\",\"TableOutline\",\"Tag\",\"TagOutline\",\"Template\",\"TemplateOutline\",\"Terminal\",\"TerminalOutline\",\"ThumbDown\",\"ThumbDownOutline\",\"ThumbUp\",\"ThumbUpOutline\",\"Ticket\",\"TicketOutline\",\"Translate\",\"TranslateOutline\",\"Trash\",\"TrashOutline\",\"TrendingDown\",\"TrendingDownOutline\",\"TrendingUp\",\"TrendingUpOutline\",\"Truck\",\"TruckOutline\",\"Upload\",\"UploadOutline\",\"User\",\"UserAdd\",\"UserAddOutline\",\"UserCircle\",\"UserCircleOutline\",\"UserGroup\",\"UserGroupOutline\",\"UserOutline\",\"UserRemove\",\"UserRemoveOutline\",\"Users\",\"UsersOutline\",\"Variable\",\"VariableOutline\",\"VideoCamera\",\"VideoCameraOutline\",\"ViewBoards\",\"ViewBoardsOutline\",\"ViewGrid\",\"ViewGridAdd\",\"ViewGridAddOutline\",\"ViewGridOutline\",\"ViewList\",\"ViewListOutline\",\"VolumeOff\",\"VolumeOffOutline\",\"VolumeUp\",\"VolumeUpOutline\",\"Wifi\",\"WifiOutline\",\"X\",\"XCircle\",\"XCircleOutline\",\"XOutline\",\"ZoomIn\",\"ZoomInOutline\",\"ZoomOut\",\"ZoomOutOutline\",];const moduleBaseUrl=\"https://framer.com/m/hero-icons/\";const lowercaseIconKeyPairs=iconKeys.reduce((res,key)=>{res[key.toLowerCase()]=key;return res;},{});/**\n * HERO\n *\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */ export function Icon(props){const{color,selectByList,iconSearch,iconSelection,onClick,onMouseDown,onMouseUp,onMouseEnter,onMouseLeave,mirrored}=props;const isMounted=useRef(false);const iconKey=useIconSelection(iconKeys,selectByList,iconSearch,iconSelection,lowercaseIconKeyPairs);// Selected Icon Module\nconst[SelectedIcon,setSelectedIcon]=useState(iconKey===\"Home\"?HomeFactory(React):null);// Import the selected module or reset so null state\nasync function importModule(){// Get the selected module\ntry{const iconModuleUrl=`${moduleBaseUrl}${iconKey}.js@0.0.27`;const module=await import(/* webpackIgnore: true */ iconModuleUrl);if(isMounted.current)setSelectedIcon(module.default(React));}catch{if(isMounted.current)setSelectedIcon(null);}}// Import module when new style or icon is selected\nuseEffect(()=>{isMounted.current=true;importModule();return()=>{isMounted.current=false;};},[iconKey]);const isOnCanvas=RenderTarget.current()===RenderTarget.canvas;const emptyState=isOnCanvas?/*#__PURE__*/ _jsx(NullState,{}):null;return /*#__PURE__*/ _jsx(motion.div,{style:{display:\"contents\"},onClick,onMouseEnter,onMouseLeave,onMouseDown,onMouseUp,children:SelectedIcon?/*#__PURE__*/ _jsx(SelectedIcon,{style:{width:\"100%\",height:\"100%\",transform:mirrored?\"scale(-1, 1)\":undefined},color:color}):emptyState});}Icon.displayName=\"Hero\";Icon.defaultProps={width:24,height:24,iconSelection:\"Home\",iconSearch:\"Home\",color:\"#66F\",selectByList:true,mirrored:false};addPropertyControls(Icon,{selectByList:{type:ControlType.Boolean,title:\"Select\",enabledTitle:\"List\",disabledTitle:\"Search\",defaultValue:Icon.defaultProps.selectByList},iconSelection:{type:ControlType.Enum,options:iconKeys,defaultValue:Icon.defaultProps.iconSelection,title:\"Name\",hidden:({selectByList})=>!selectByList,description:\"Find every icon name on the [Hero site](https://heroicons.com/)\"},iconSearch:{type:ControlType.String,title:\"Name\",placeholder:\"Menu, Wifi, Box…\",hidden:({selectByList})=>selectByList},mirrored:{type:ControlType.Boolean,enabledTitle:\"Yes\",disabledTitle:\"No\",defaultValue:Icon.defaultProps.mirrored},color:{type:ControlType.Color,title:\"Color\",defaultValue:Icon.defaultProps.color},...defaultEvents});\nexport const __FramerMetadata__ = {\"exports\":{\"iconKeys\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Icon\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"24\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"24\"}},\"IconProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Hero.map","import{useCallback,useEffect,useRef}from\"react\";import{motionValue,animate,RenderTarget}from\"framer\";import{isMotionValue}from\"https://framerusercontent.com/modules/3mKFSGQqKHV82uOV1eBc/TbXI1XaZFNevVKcgIt7G/isMotionValue.js\";import{useConstant}from\"https://framerusercontent.com/modules/ExNgrA7EJTKUPpH6vIlN/eiOrSJ2Ab5M9jPCvVwUz/useConstant.js\";export function useAutoMotionValue(inputValue,options){// Put options on a local ref\n// Might wanna just memo instead but it works for now\nconst optionsRef=useRef(options);const animation=useRef();const didInitialMount=useRef(false);const isOnCanvas=RenderTarget.current()===RenderTarget.canvas;// in-progress - trying to figure out effect hooks\nconst onChangeDeps=(options===null||options===void 0?void 0:options.onChangeDeps)?options.onChangeDeps:[];// Memoize the onChange handler\nconst onChange=useCallback(options===null||options===void 0?void 0:options.onChange,[...onChangeDeps,]);// Optionally scale the value from props\nconst transformer=useCallback(value=>{var ref;return((ref=optionsRef.current)===null||ref===void 0?void 0:ref.transform)?optionsRef.current.transform(value):value;},[]);// Create new MotionValue from inputValue\nconst value1=useConstant(()=>isMotionValue(inputValue)?inputValue:motionValue(transformer(inputValue)));// Setting value from prop change\nuseEffect(()=>{if(!isMotionValue(inputValue)&&didInitialMount.current){var ref,ref1;const newValue=transformer(inputValue);(ref=animation.current)===null||ref===void 0?void 0:ref.stop();// Call change callback\nif(onChange)onChange(newValue,value1);// Trigger animation to new value\nif(((ref1=optionsRef.current)===null||ref1===void 0?void 0:ref1.animate)&&!isOnCanvas){var ref2;// @ts-ignore\nanimation.current=animate(value1,newValue,(ref2=optionsRef.current)===null||ref2===void 0?void 0:ref2.transition);}else{value1.set(newValue);}}didInitialMount.current=true;},[inputValue,...onChangeDeps]);return value1;}\nexport const __FramerMetadata__ = {\"exports\":{\"useAutoMotionValue\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./useAutoMotionValue.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useMotionValueEvent}from\"framer-motion\";import{useRef,useEffect,useMemo,useCallback,memo}from\"react\";import{ControlType,addPropertyControls,useIsInCurrentNavigationTarget}from\"framer\";import{useOnEnter,useOnExit,defaultEvents,useIsOnCanvas,useIsBrowserSafari,useRadius,borderRadiusControl}from\"https://framer.com/m/framer/default-utils.js@^0.45.0\";import{useAutoMotionValue}from\"https://framer.com/m/framer/useAutoMotionValue.js@^0.3.0\";var ObjectFitType;(function(ObjectFitType){ObjectFitType[\"Fill\"]=\"fill\";ObjectFitType[\"Contain\"]=\"contain\";ObjectFitType[\"Cover\"]=\"cover\";ObjectFitType[\"None\"]=\"none\";ObjectFitType[\"ScaleDown\"]=\"scale-down\";})(ObjectFitType||(ObjectFitType={}));var SrcType;(function(SrcType){SrcType[\"Video\"]=\"Upload\";SrcType[\"Url\"]=\"URL\";})(SrcType||(SrcType={}));// Reduce renders\nfunction getProps(props){const{width,height,topLeft,topRight,bottomRight,bottomLeft,id,children,...rest}=props;return rest;}/**\n * VIDEO\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 112\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */ export function Video(props){const newProps=getProps(props);return /*#__PURE__*/ _jsx(VideoMemo,{...newProps});}/**\n * For the useEffect hook to change progress of the video on state change.\n * It was causing the video to restart on hydration\n */ let isMountedAndReadyForProgressChanges=false;const VideoMemo=/*#__PURE__*/ memo(function VideoInner(props){const{srcType,srcFile,srcUrl,playing,canvasPlay,muted,playsinline,controls,progress,objectFit,backgroundColor,radius,topLeft,topRight,bottomRight,bottomLeft,isMixed,onSeeked,onPause,onPlay,onEnd,onClick,onMouseEnter,onMouseLeave,onMouseDown,onMouseUp,poster,restartOnEnter,posterEnabled,startTime:startTimeProp,volume,loop}=props;const isInCurrentNavigationTarget=useIsInCurrentNavigationTarget();const videoRef=useRef();const isSafari=useIsBrowserSafari();const requestingPlay=useRef(false);const wasPausedOnLeave=useRef(null);const wasEndedOnLeave=useRef(null);const isOnCanvas=useIsOnCanvas();const borderRadius=useRadius(props);// Video elements behave oddly at 100% duration\nconst startTime=useMemo(()=>startTimeProp===100?99.9:startTimeProp,[startTimeProp]);const shouldPlay=!isOnCanvas||canvasPlay;const autoPlay=useMemo(()=>playing,[]);const isMuted=useMemo(()=>isOnCanvas?true:muted,[isOnCanvas,muted]);const setProgress=useCallback(rawProgress=>{if(!videoRef.current)return;const newProgress=(rawProgress===1?.999:rawProgress)*videoRef.current.duration;const isAlreadySet=Math.abs(videoRef.current.currentTime-newProgress)<.1;if(videoRef.current.duration>0&&!isAlreadySet){videoRef.current.currentTime=newProgress;}},[]);const play=useCallback(()=>{const isPlaying=videoRef.current.currentTime>0&&videoRef.current.onplaying&&!videoRef.current.paused&&!videoRef.current.ended&&videoRef.current.readyState>videoRef.current.HAVE_CURRENT_DATA;if(!isPlaying&&videoRef.current&&!requestingPlay.current&&isInCurrentNavigationTarget){requestingPlay.current=true;videoRef.current.play().catch(e=>{}) // It's likely fine, swallow error\n.finally(()=>requestingPlay.current=false);}},[]);const pause=useCallback(()=>{if(!videoRef.current||requestingPlay.current)return;videoRef.current.pause();},[]);// Pause/play via props\nuseEffect(()=>{if(playing&&shouldPlay)play();else pause();},[playing,canvasPlay]);// Change progress via prop\nuseEffect(()=>{if(isMountedAndReadyForProgressChanges)setProgress(startTime*.01);else isMountedAndReadyForProgressChanges=true;},[startTime,srcFile,srcUrl]);const videoProgress=useAutoMotionValue(progress,{transform:value=>value*.01,onChange:newValue=>{setProgress(newValue);}});// Allow scrubbing with MotionValue\nuseMotionValueEvent(videoProgress,\"change\",latest=>{if(!isOnCanvas)setProgress(latest);});// (Prototyping) Checking if we need to play on navigation enter\nuseOnEnter(()=>{if(wasPausedOnLeave.current===null)return;if(videoRef.current){// if (restartOnEnter) setProgress(0)\nif(!wasEndedOnLeave&&loop||!wasPausedOnLeave.current)play();}});// (Prototyping) Pausing & saving playing state on navigation exit\nuseOnExit(()=>{if(videoRef.current){wasEndedOnLeave.current=videoRef.current.ended;wasPausedOnLeave.current=videoRef.current.paused;pause();}});const src=useMemo(()=>{let fragment=\"\";// if (\n//     startTime > 0 &&\n//     videoRef.current &&\n//     !isNaN(videoRef.current.duration) &&\n//     !isOnCanvas\n// ) {\n//     console.log(startTime, videoRef.current.duration)\n//     fragment = `#t=${startTime * videoRef.current.duration}`\n// }\nif(srcType===SrcType.Url)return srcUrl+fragment;if(srcType===SrcType.Video)return srcFile+fragment;},[srcType,srcFile,srcUrl,startTime]);// Autoplay via JS to work in Safari\nuseEffect(()=>{if(isSafari&&videoRef.current&&autoPlay){setTimeout(()=>play(),50);}},[]);// Volume Control\nuseEffect(()=>{if(videoRef.current&&!muted)videoRef.current.volume=volume/100;},[volume]);// When video is ready, set start-time, then autoplay if needed\nconst handleReady=()=>{if(videoRef.current&&videoRef.current.currentTime<.3)setProgress(startTime*.01);if(shouldPlay&&videoRef.current&&autoPlay)play();};return /*#__PURE__*/ _jsx(\"video\",{onClick,onMouseEnter,onMouseLeave,onMouseDown,onMouseUp,src:src,loop:loop,ref:videoRef,onSeeked:e=>{return onSeeked===null||onSeeked===void 0?void 0:onSeeked(e);},onPause:e=>{return onPause===null||onPause===void 0?void 0:onPause(e);},onPlay:e=>{return onPlay===null||onPlay===void 0?void 0:onPlay(e);},onEnded:e=>{return onEnd===null||onEnd===void 0?void 0:onEnd(e);},autoPlay:autoPlay&&shouldPlay,poster:posterEnabled?poster:undefined,onLoadedData:handleReady,controls:controls,muted:isMuted,playsInline:playsinline,style:{cursor:!!onClick?\"pointer\":\"auto\",width:\"100%\",height:\"100%\",borderRadius,display:\"block\",objectFit:objectFit,backgroundColor:backgroundColor,objectPosition:\"50% 50%\"}});});Video.displayName=\"Video\";Video.defaultProps={srcType:SrcType.Url,srcUrl:\"https://assets.mixkit.co/videos/preview/mixkit-ice-cream-glass-of-red-soda-5094-small.mp4\",srcFile:\"\",posterEnabled:false,controls:false,autoPlay:true,canvasPlay:false,loop:true,muted:true,playsinline:true,restartOnEnter:false,objectFit:ObjectFitType.Cover,backgroundColor:\"rgba(0,0,0,0)\",radius:0,volume:25,startTime:0};addPropertyControls(Video,{srcType:{type:ControlType.Enum,displaySegmentedControl:true,title:\"Source\",options:[SrcType.Url,SrcType.Video]},srcUrl:{type:ControlType.String,title:\" \",placeholder:\"../example.mp4\",hidden(props){return props.srcType===SrcType.Video;},description:\"Hosted video file URL. For Youtube, use the Youtube component.\"},srcFile:{type:ControlType.File,title:\" \",allowedFileTypes:[\"mp4\"],hidden(props){return props.srcType===SrcType.Url;}},playing:{type:ControlType.Boolean,title:\"Playing\",enabledTitle:\"Yes\",disabledTitle:\"No\"},posterEnabled:{type:ControlType.Boolean,title:\"Poster\",enabledTitle:\"Yes\",disabledTitle:\"No\"},poster:{type:ControlType.Image,title:\" \",hidden:({posterEnabled})=>!posterEnabled},backgroundColor:{type:ControlType.Color,title:\"Background\"},...borderRadiusControl,startTime:{title:\"Start Time\",type:ControlType.Number,min:0,max:100,step:.1,unit:\"%\"},loop:{type:ControlType.Boolean,title:\"Loop\",enabledTitle:\"Yes\",disabledTitle:\"No\"},objectFit:{type:ControlType.Enum,title:\"Fit\",options:[ObjectFitType.Cover,ObjectFitType.Fill,ObjectFitType.Contain,ObjectFitType.ScaleDown,ObjectFitType.None,]},canvasPlay:{type:ControlType.Boolean,title:\"On Canvas\",enabledTitle:\"Play\",disabledTitle:\"Pause\",hidden(props){return props.autoPlay===false;}},// restartOnEnter: {\n//     type: ControlType.Boolean,\n//     title: \"On ReEnter\",\n//     enabledTitle: \"Restart\",\n//     disabledTitle: \"Resume\",\n// },\ncontrols:{type:ControlType.Boolean,title:\"Controls\",enabledTitle:\"Show\",disabledTitle:\"Hide\"},muted:{type:ControlType.Boolean,title:\"Muted\",enabledTitle:\"Yes\",disabledTitle:\"No\"},volume:{type:ControlType.Number,max:100,min:0,unit:\"%\",hidden:({muted})=>muted},onEnd:{type:ControlType.EventHandler},onSeeked:{type:ControlType.EventHandler},onPause:{type:ControlType.EventHandler},onPlay:{type:ControlType.EventHandler},...defaultEvents});\nexport const __FramerMetadata__ = {\"exports\":{\"VideoProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Video\":{\"type\":\"reactComponent\",\"name\":\"Video\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"200\",\"framerIntrinsicHeight\":\"112\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Video.map"],"mappings":"4kCAAU,EAAE,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,IAAM,GAAG,CAAC,KAAK,EAAE,GAAG,GAAG,EAAE,CAAC,IAAI,EAAE,cAAc,MAAM,CAAC,QAAQ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