{"version":3,"file":"ScrollText_1.DK4U000x.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\"}},\"__F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