{"version":3,"file":"VideoPlayer.DatFpg_T.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/dRdRvKlqXbL5CDVEiIuX/CDGIy15FizvKxe5zbioU/VideoPlayer.js"],"sourcesContent":["// Video component that plays .mov only on Safari, otherwise plays .webm\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect}from\"react\";/**\n * VideoPlayer\n *\n * Plays .mov with transparency on Safari/iOS, otherwise plays .webm\n *\n * @framerIntrinsicWidth 640\n * @framerIntrinsicHeight 360\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function VideoPlayer(props){const{movFile=\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\",webmFile=\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.webm\",autoPlay,loop,muted,controls,poster,style}=props;const[shouldUseMov,setShouldUseMov]=useState(false);useEffect(()=>{// Detect if we should use MOV\nconst ua=navigator.userAgent;// Check for iOS devices\nconst isIOS=/iPad|iPhone|iPod/.test(ua)&&!window.MSStream;// Check for Safari (but not Chrome-based browsers)\nconst isSafari=/^((?!chrome|android).)*safari/i.test(ua);// Also check for macOS Safari specifically\nconst isMacSafari=/Macintosh/.test(ua)&&/Safari/.test(ua)&&!/Chrome/.test(ua);// Additional check: if it's a WebKit browser on Apple device\nconst isWebKit=/AppleWebKit/.test(ua)&&!/Chrome/.test(ua)&&!/Chromium/.test(ua);console.log(\"Browser detection:\",{isIOS,isSafari,isMacSafari,isWebKit,userAgent:ua});const useMov=isIOS||isSafari||isMacSafari||isWebKit;setShouldUseMov(useMov);},[]);// Select the video source based on browser capability\nconst videoSrc=shouldUseMov?movFile:webmFile;const videoType=shouldUseMov?\"video/quicktime\":\"video/webm\";console.log(\"Using video:\",shouldUseMov?\"MOV\":\"WebM\",videoSrc);return /*#__PURE__*/_jsx(\"video\",{src:videoSrc,autoPlay:autoPlay,loop:loop,muted:muted||autoPlay,controls:controls,poster:poster,style:{width:\"100%\",height:\"100%\",display:\"block\",...style},playsInline:true,children:\"Your browser does not support the video tag.\"},videoSrc);}addPropertyControls(VideoPlayer,{movFile:{type:ControlType.File,allowedFileTypes:[\"mov\"],title:\".mov File (Safari/iOS)\"},webmFile:{type:ControlType.File,allowedFileTypes:[\"webm\"],title:\".webm File (Other)\"},poster:{type:ControlType.File,allowedFileTypes:[\"jpg\",\"jpeg\",\"png\",\"webp\"],title:\"Poster Image\"},autoPlay:{type:ControlType.Boolean,title:\"Autoplay\",defaultValue:false},loop:{type:ControlType.Boolean,title:\"Loop\",defaultValue:false},muted:{type:ControlType.Boolean,title:\"Muted\",defaultValue:false},controls:{type:ControlType.Boolean,title:\"Show Controls\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"VideoPlayer\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"640\",\"framerIntrinsicHeight\":\"360\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./VideoPlayer.map"],"mappings":"uMAWG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,UAAQ,uEAAuE,WAAS,wEAAwE,WAAS,OAAK,QAAM,WAAS,SAAO,SAAO,EAAW,CAAC,EAAa,GAAiBA,EAAS,GAAM,CAAC,MAAc,CACvU,IAAM,EAAG,EAAU,UACb,EAAM,mBAAmB,KAAK,EAAG,EAAE,CAAC,EAAO,SAC3C,EAAS,iCAAiC,KAAK,EAAG,CAClD,EAAY,YAAY,KAAK,EAAG,EAAE,SAAS,KAAK,EAAG,EAAE,CAAC,SAAS,KAAK,EAAG,CACvE,EAAS,cAAc,KAAK,EAAG,EAAE,CAAC,SAAS,KAAK,EAAG,EAAE,CAAC,WAA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