1import{c as C,j as e,l as w}from"./index-PXpjhCaY.js";import{r as n,a as S}from"./vendor-react-SfNqDmFq.js";import{I,m as h,o as R,G as T,c as i,L as B,M as L,C as A,B as M}from"./coffre-Ck_T6ey1.js";const t=w,o=[];function G({isOpen:r,onClose:a,eyebrow:m,title:g,subtitle:p,accent:y=T,maxWidth:b=520,zIndex:v=60,children:E}){const[k,f]=n.useState(r),[d,x]=n.useState(!1);n.useEffect(()=>{if(r){f(!0);const l=requestAnimationFrame(()=>x(!0));return()=>cancelAnimationFrame(l)}x(!1);const s=setTimeout(()=>f(!1),260);return()=>clearTimeout(s)},[r]);const u=n.useRef(a);u.current=a,n.useEffect(()=>{if(r)return C(()=>u.current())},[r]);const j=n.useRef(Symbol("coffre-sheet"));return n.useEffect(()=>{if(!r)return;const s=j.current;o.push(s);const l=c=>{c.key==="Escape"&&o[o.length-1]===s&&u.current()};return document.addEventListener("keydown",l),()=>{const c=o.indexOf(s);c>=0&&o.splice(c,1),document.removeEventListener("keydown",l)}},[r]),k?S.createPortal(e.jsxs("div",{style:{position:"fixed",inset:0,zIndex:v},children:[e.jsx("div",{onClick:a,style:{position:"absolute",inset:0,background:"rgba(6,4,5,.74)",backdropFilter:"blur(2px)",opacity:d?1:0,transition:"opacity .26s ease"}}),e.jsx("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:t?"flex-end":"center",justifyContent:"center",padding:t?0:20,pointerEvents:"none"},children:e.jsxs("div",{role:"dialog","aria-modal":"true",style:{pointerEvents:"auto",width:"100%",maxWidth:t?"100%":b,maxHeight:t?"92vh":"88vh",display:"flex",flexDirection:"column",background:R,border:h,borderBottom:t?"none":h,borderRadius:t?"20px 20px 0 0":18,boxShadow:`${I}, 0 -20px 60px -30px rgba(0,0,0,.9)`,overflow:"hidden",transform:d?"none":t?"translateY(14px)":"scale(.97)",opacity:d?1:0,transition:"transform .26s cubic-bezier(.16,1,.3,1), opacity .2s ease"},children:[e.jsx("span",{"aria-hidden":!0,style:{height:2,background:`linear-gradient(90deg, ${y}, rgba(231,197,120,.10) 72%, transparent)`,flexShrink:0}}),e.jsx("span",{"aria-hidden":!0,style:{position:"absolute",inset:0,pointerEvents:"none",opacity:.045,backgroundImage:`url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")`}}),t&&e.jsx("div",{style:{display:"flex",justifyContent:"center",paddingTop:8,flexShrink:0},children:e.jsx("span",{style:{width:34,height:4,borderRadius:2,background:i(.16)}})}),e.jsxs("div",{style:{position:"relative",display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:12,padding:t?"12px 18px 14px":"18px 22px 16px",flexShrink:0},children:[e.jsxs("div",{style:{minWidth:0},children:[e.jsx("div",{style:{font:`500 9.5px ${L}`,letterSpacing:B,color:i(.44)},children:m}),e.jsx("div",{style:{marginTop:6,font:`700 20px/1.1 ${M}`,letterSpacing:"-.02em",color:A},children:g}),p&&e.jsx("div",{style:{marginTop:5,font:"400 11.5px Inter,sans-serif",color:i(.5)},children:p})]}),e.jsx("button",{onClick:a,"aria-label":"Fermer",style:{flexShrink:0,width:32,height:32,borderRadius:999,display:"flex",alignItems:"center",justifyContent:"center",background:i(.06),border:`1px solid ${i(.1)}`,color:i(.66),font:"400 15px Inter,sans-serif",lineHeight:1,cursor:"pointer",touchAction:"manipulation",WebkitTapHighlightColor:"transparent"},children:"â"})]}),e.jsx("div",{style:{position:"relative",flex:1,overflowY:"auto",overscrollBehavior:"contain",WebkitOverflowScrolling:"touch",padding:t?"0 18px":"0 22px",paddingBottom:t?"max(20px, env(safe-area-inset-bottom))":22},children:E})]})})]}),document.body):null}export{G as C};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.