{"version":3,"file":"ScrollText_1.CC8uvdTA.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/Akoao763oVP2woesjaBf/gtRwIvsi9XnQDZwaKP6m/ScrollText_1.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export default function RotateOverlay(props){const[show,setShow]=useState(false);useEffect(()=>{let timeout;const check=()=>{const isMobile=window.innerWidth<=props.mobileBreakpoint;const width=document.documentElement.clientWidth||window.innerWidth;const height=document.documentElement.clientHeight||window.innerHeight;const isLandscape=width>height;setShow(isMobile&&isLandscape);};const delayedCheck=()=>{clearTimeout(timeout);timeout=setTimeout(check,150);};// initial\ncheck();// events multiples + fallback iOS\nwindow.addEventListener(\"resize\",delayedCheck);window.addEventListener(\"orientationchange\",delayedCheck);// fallback interval (IMPORTANT pour iOS Safari)\nconst interval=setInterval(check,500);return()=>{clearTimeout(timeout);clearInterval(interval);window.removeEventListener(\"resize\",delayedCheck);window.removeEventListener(\"orientationchange\",delayedCheck);};},[props.mobileBreakpoint]);if(!show)return null;return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"fixed\",inset:0,zIndex:999999,background:props.background,display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",alignItems:\"center\",textAlign:\"center\",padding:24,color:props.textColor},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:64,marginBottom:16},children:\"📱\"}),/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,fontSize:26,fontWeight:700},children:\"Tournez votre t\\xe9l\\xe9phone\"}),/*#__PURE__*/_jsx(\"p\",{style:{marginTop:10,opacity:.8,maxWidth:320},children:\"Ce site est optimis\\xe9 pour le mode portrait.\"})]});}RotateOverlay.defaultProps={background:\"#000\",textColor:\"#fff\",mobileBreakpoint:1024};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"RotateOverlay\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"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