{"version":3,"file":"BrowserAwareVideo.LedRZzuT.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":"kMAWG,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,EAAK,EAAO,CAAC,EAAS,GAAaA,EAAS,EAAK,EAAQ,EAASC,EAAO,IAA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