{"version":3,"file":"Examples.DcilJABX.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/uCN9yT01DO8b3RZJPODm/cJoKCNgjbiH93ayslBBm/Examples.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{forwardRef,useRef,useEffect}from\"react\";// Learn more: https://www.framer.com/developers/overrides/\nexport function withFullscreenOnPlay(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const videoRef=useRef();// Adiciona e remove os listeners ao longo do ciclo de vida do componente\nuseEffect(()=>{const handleFullscreenChange=()=>{const el=videoRef?.current;if(el&&!document.fullscreenElement){// Pausa o vídeo\nel.pause();}// Lógica Específica para Safari/IE (fallback para o caso de document.fullscreenElement não ser confiável)\nconst isWebkitExiting=document.webkitIsFullScreen===false;const isMSExiting=document.msFullscreenElement===null;if(el&&(isWebkitExiting||isMSExiting)){el.pause();}};// Adiciona o listener para capturar a saída de Fullscreen\ndocument.addEventListener(\"fullscreenchange\",handleFullscreenChange);document.addEventListener(\"webkitfullscreenchange\",handleFullscreenChange);document.addEventListener(\"msfullscreenchange\",handleFullscreenChange)// Para IE/Edge Legado\n;// Função de Cleanup: Remove os listeners quando o componente é desmontado\nreturn()=>{document.removeEventListener(\"fullscreenchange\",handleFullscreenChange);document.removeEventListener(\"webkitfullscreenchange\",handleFullscreenChange);document.removeEventListener(\"msfullscreenchange\",handleFullscreenChange);};},[]);const handlePlay=e=>{const el=ref?.current||(e?.target);if(!el)return;videoRef.current=e?.target;try{// iOS Safari (webkitEnterFullscreen é o único confiável no mobile)\nconst anyEl=el;if(typeof anyEl.webkitEnterFullscreen===\"function\"){anyEl.webkitEnterFullscreen();return;}// Padrão moderno\nif(typeof el.requestFullscreen===\"function\"){el.requestFullscreen().catch(()=>{});return;}// IE / Edge legado\nif(typeof el.msRequestFullscreen===\"function\"){el.msRequestFullscreen();return;}}catch(err){console.warn(\"Falha ao entrar em fullscreen:\",err);}// Se houver callback do usuário\nif(typeof props?.onPlay===\"function\"){props.onPlay(e);}};return /*#__PURE__*/_jsx(Component,{...props,ref:videoRef,onClick:ev=>{debugger;const el=videoRef?.current;const isWebkitExiting=document.webkitIsFullScreen===true;if(el&&(document.fullscreenElement||isWebkitExiting)){return;}handlePlay(ev);},onPlay:handlePlay});});}export function withBorderAnimatedGradient(Component){return props=>{const borderRadius=props.style?.borderRadius||24;return /*#__PURE__*/_jsxs(motion.div,{style:{position:\"relative\",borderRadius:borderRadius,display:\"flex\",overflow:\"hidden\",// O gradiente repetido para criar um loop infinito suave\nbackground:`linear-gradient(89.91deg, \n                        #D8A762 0%, \n                        #BA86C7 25%, \n                        #7291D9 50%, \n                        #BA86C7 75%, \n                        #D8A762 100%)`,backgroundSize:\"200% 100%\",width:props.style?.width||\"100%\",...props.style?.height?{height:props.style?.height}:{}},animate:{backgroundPosition:[\"0% 0%\",\"200% 0%\"]},transition:{duration:6,ease:\"linear\",repeat:Infinity},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",width:\"100%\",height:\"100%\",maxWidth:\"calc(100% - 4px)\",maxHeight:\"calc(100% - 4px)\",top:\"2px\",left:\"2px\",zIndex:1,backgroundColor:props.style?.backgroundColor,borderRadius:borderRadius-2}}),/*#__PURE__*/_jsx(Component,{...props,style:{...props.style,position:\"relative\",backgroundColor:\"none\",border:\"none\",zIndex:2}})]});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withBorderAnimatedGradient\":{\"type\":\"reactHoc\",\"name\":\"withBorderAnimatedGradient\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFullscreenOnPlay\":{\"type\":\"reactHoc\",\"name\":\"withFullscreenOnPlay\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],"mappings":"mLACA,SAAgB,EAAqB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,IAAM,EAASA,GAAQ,CACpH,MA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