{"version":3,"file":"shared-lib.BfHexbro.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/GHgmH0GDB8D4OGMvIHvj/m6Yxmc2NnSaYHTi69BdN/FondPointsBords.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Fond « grille de points qui s'efface vers les bords » : petits points gris clair en grille,\n * avec un masque radial (centre visible, bords invisibles). Le champ de points est collé à\n * l'écran (position sticky dans une couche absolue de pleine hauteur) : le fondu radial reste\n * centré quel que soit le défilement, sans couture entre sections. Statique.\n * Plus discret sous 810 px. Décoratif : aria-hidden, aucun clic, aucun effet sur la mise en page.\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function FondPointsBords(props){const{couleur,pas,taille,opacite,opaciteMobile}=props;const[mobile,setMobile]=React.useState(false);React.useEffect(()=>{const f=()=>setMobile(window.innerWidth<810);f();window.addEventListener(\"resize\",f);return()=>window.removeEventListener(\"resize\",f);},[]);const p=mobile?Math.round(pas*1.25):pas;const mask=\"radial-gradient(ellipse 62% 58% at 50% 46%, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%)\";return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",inset:0,pointerEvents:\"none\",overflow:\"clip\"},children:/*#__PURE__*/_jsx(\"div\",{style:{position:\"sticky\",top:0,height:\"100vh\",width:\"100%\",opacity:mobile?opaciteMobile:opacite,backgroundImage:`radial-gradient(circle, ${couleur} ${taille}px, transparent ${taille+.4}px)`,backgroundSize:`${p}px ${p}px`,backgroundPosition:\"center center\",WebkitMaskImage:mask,maskImage:mask}})});}FondPointsBords.defaultProps={couleur:\"rgba(17, 24, 39, 0.16)\",pas:20,taille:1,opacite:.7,opaciteMobile:.45,width:1200,height:800};addPropertyControls(FondPointsBords,{couleur:{type:ControlType.Color,title:\"Points\",defaultValue:\"rgba(17, 24, 39, 0.16)\"},pas:{type:ControlType.Number,title:\"\\xc9cart\",defaultValue:20,min:10,max:40,step:1},taille:{type:ControlType.Number,title:\"Rayon\",defaultValue:1,min:.5,max:2,step:.1},opacite:{type:ControlType.Number,title:\"Opacit\\xe9\",defaultValue:.7,min:0,max:1,step:.05},opaciteMobile:{type:ControlType.Number,title:\"Opacit\\xe9 mobile\",defaultValue:.45,min:0,max:1,step:.05}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FondPointsBords\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FondPointsBords.map"],"mappings":"+LAQG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,UAAQ,MAAI,SAAO,UAAQ,iBAAe,EAAW,CAAC,EAAO,GAAWA,EAAe,EAAK,EAAE,MAAoB,CAAC,IAAM,MAAM,EAAU,EAAO,WAAW,GAAG,EAA0C,OAAxC,EAAE,EAAE,EAAO,iBAAiB,SAAS,CAAC,MAAY,EAAO,oBAAoB,SAAS,CAAC,CAAE,EAAE,CAAC,CAAC,EAAE,IAAM,EAAE,EAAO,KAAK,MAAM,EAAI,IAAI,EAAE,EAAU,EAAK,8FAA8F,OAAoB,EAAK,MAAM,CAAC,cAAc,OAAO,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,cAAc,OAAO,SAAS,MAAM,EAAE,SAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,SAAS,IAAI,EAAE,OAAO,QAAQ,MAAM,OAAO,QAAQ,EAAO,EAAc,EAAQ,gBAAgB,2BAA2B,EAAQ,GAAG,EAAO,kBAAkB,EAAO,GAAG,KAAK,eAAe,GAAG,EAAE,KAAK,EAAE,IAAI,mBAAmB,gBAAgB,gBAAgB,EAAK,UAAU,CAAI,CAAC,CAAC,CAAC,CAAC,CAAE,qBARv2B,IAA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