{"version":3,"file":"BrowserAwareVideo.DXnZXOR8.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/Lw9sq3HKlNJd2491i61L/74JoXRgWnpKjw0h78zl8/BrowserAwareVideo.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Video with browser-specific sources\n * \n * Uses different video sources for Safari vs other browsers.\n * Useful for serving different formats (HLS for Safari, MP4 for others).\n *\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 225\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function BrowserAwareVideo(props){const{safariSource=\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\",otherSource=\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\",poster=\"\",autoplay=false,loop=false,muted=false,controls=true,playsInline=true}=props;const[isSafari,setIsSafari]=useState(false);const[isLoaded,setIsLoaded]=useState(false);const videoRef=useRef(null);useEffect(()=>{if(typeof window!==\"undefined\"){const ua=window.navigator.userAgent.toLowerCase();const isSafariBrowser=ua.includes(\"safari\")&&!ua.includes(\"chrome\")&&!ua.includes(\"chromium\")&&!ua.includes(\"edg\");setIsSafari(isSafariBrowser);setIsLoaded(true);}},[]);const videoSource=isSafari?safariSource:otherSource;if(!isLoaded){return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,position:\"relative\",width:\"100%\",height:\"100%\",backgroundColor:\"#000\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:/*#__PURE__*/_jsx(\"div\",{style:{color:\"#666\",fontSize:14},children:\"Loading...\"})});}return /*#__PURE__*/_jsx(\"video\",{ref:videoRef,src:videoSource,poster:poster||undefined,autoPlay:autoplay,loop:loop,muted:muted,controls:controls,playsInline:playsInline,style:{...props.style,position:\"relative\",width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\"}});}addPropertyControls(BrowserAwareVideo,{safariSource:{type:ControlType.String,title:\"Safari Source (CDN)\",placeholder:\"https://...\",defaultValue:\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\"},otherSource:{type:ControlType.String,title:\"Other Browsers (CDN)\",placeholder:\"https://...\",defaultValue:\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\"},poster:{type:ControlType.ResponsiveImage,title:\"Poster Image\"},autoplay:{type:ControlType.Boolean,title:\"Autoplay\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},loop:{type:ControlType.Boolean,title:\"Loop\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},muted:{type:ControlType.Boolean,title:\"Muted\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},controls:{type:ControlType.Boolean,title:\"Controls\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},playsInline:{type:ControlType.Boolean,title:\"Plays Inline\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BrowserAwareVideo\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"225\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"400\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BrowserAwareVideo.map"],"mappings":"uMAWG,SAAwB,EAAkB,EAAM,CAAC,GAAK,CAAC,eAAa,uEAAuE,cAAY,uEAAuE,SAAO,GAAG,WAAS,GAAM,OAAK,GAAM,QAAM,GAAM,WAAS,GAAK,cAAY,IAAM,EAAW,CAAC,EAAS,GAAaA,EAAS,GAAM,CAAM,CAAC,EAAS,GAAaA,EAAS,GAAM,CAAO,EAASC,EAAO,KAA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