1import{r as n,j as t}from"./react-i3XfpDzi.js";import{K as v,L as w,M as C}from"./hydrateServerComponents-Dtc0ZtcN.js";import"./site-B6KXgbd2.js";const b=s=>n.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},n.createElement("path",{d:"M14.0306 8.53074L9.53063 13.0307C9.38973 13.1716 9.19863 13.2508 8.99938 13.2508C8.80012 13.2508 8.60902 13.1716 8.46813 13.0307C8.32723 12.8898 8.24807 12.6987 8.24807 12.4995C8.24807 12.3002 8.32723 12.1091 8.46813 11.9682L11.6875 8.75011H2.5C2.30109 8.75011 2.11032 8.67109 1.96967 8.53044C1.82902 8.38979 1.75 8.19902 1.75 8.00011C1.75 7.8012 1.82902 7.61043 1.96967 7.46978C2.11032 7.32913 2.30109 7.25011 2.5 7.25011H11.6875L8.46937 4.03011C8.32848 3.88921 8.24932 3.69812 8.24932 3.49886C8.24932 3.2996 8.32848 3.10851 8.46937 2.96761C8.61027 2.82671 8.80137 2.74756 9.00062 2.74756C9.19988 2.74756 9.39098 2.82671 9.53187 2.96761L14.0319 7.46761C14.1018 7.53738 14.1573 7.62028 14.1951 7.71155C14.2329 7.80281 14.2523 7.90065 14.2522 7.99943C14.252 8.09822 14.2324 8.19601 14.1944 8.28718C14.1564 8.37836 14.1007 8.46113 14.0306 8.53074Z",fill:"currentColor"})),x=s=>n.createElement("svg",{preserveAspectRatio:"none",overflow:"visible",style:{display:"block"},width:44,height:44,viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},n.createElement("g",{id:"Brands logos"},n.createElement("path",{id:"Path-68-Copy-2",fillRule:"evenodd",clipRule:"evenodd",d:"M36.0487 24.7351L11.2598 41.536C10.6485 41.9504 9.82952 41.8487 9.33527 41.2972C8.84041 40.7333 8.86792 39.8762 9.39792 39.3461C17.9675 30.7
1739 22.2209 26.4077 22.1581 26.2476C22.0931 26.0817 17.1515 25.77 7.33333 25.3125L23.0792 24.4403C23.9057 24.3945 24.6124 25.0354 24.6576 25.8717C24.6644 25.9976 24.6557 26.1239 24.6316 26.2476C24.4112 27.3802 12.535 38.2591 12.966 38.2591C13.2533 38.2591 20.9476 33.7511 36.0487 24.7351Z",fill:"url(#paint0_linear_0_154)"}),n.createElement("path",{id:"Path-68-Copy-2_2",fillRule:"evenodd",clipRule:"evenodd",d:"M7.95135 20.662L32.7402 3.86111C33.3515 3.44679 34.1705 3.54844 34.6647 4.09997C35.1596 4.66383 35.1321 5.52092 34.6021 6.05108C26.0325 14.6233 21.7791 18.9894 21.8419 19.1495C21.9069 19.3154 26.8485 19.6271 36.6667 20.0847L20.9208 20.9569C20.0943 21.0027 19.3876 20.3618 19.3424 19.5255C19.3356 19.3995 19.3443 19.2733 19.3684 19.1495C19.5888 18.0169 31.465 7.13807 31.034 7.13807C30.7467 7.13807 23.0524 11.6461 7.95135 20.662Z",fill:"url(#paint1_linear_0_154)"})),n.createElement("defs",null,n.createElement("linearGradient",{id:"paint0_linear_0_154",x1:28.4474,y1:29.1131,x2:5.22475,y2:25.2306,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:"#B283FF",stopOpacity:0}),n.createElement("stop",{offset:.348958,stopColor:"#9D72FF"}),n.createElement("stop",{offset:.734239,stopColor:"#8660FF"}),n.createElement("stop",{offset:1,stopColor:"#7654FF",stopOpacity:0})),n.createElement("linearGradient",{id:"paint1_linear_0_154",x1:31.7682,y1:20.8363,x2:20.4227,y2:6.63976,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:"#B283FF",stopOpacity:0}),n.createElement("stop",{offset:.348958,stopColor:"#9D72FF"}),n.createElement("stop",{offset:1,stopColor:"#7654FF"})))),y="/wp-content/mu-plugins/optimus/build/images/products-overlay/smartphones-CmcGuYrS.png",E="/wp-content/mu-plugins/optimus/build/images/products-overlay/ordinateur-1jUOpipc.png",j="/wp-content/mu-plugins/optimus/build/images/products-overlay/auto-mobilite-C3HenGN5.png",I="/wp-content/mu-plugins/optimus/build/images/products-overlay/smart-tv-K_3EejgS.png",S="/wp-content/mu-plugins/optimus/build/images/products-overlay/gaming-SYsfXbDn.png",F="/wp-content/mu-plugins/optimus/build/images/products-overlay/photo-video-BSNfHOpr.png",L="/wp-content/mu-plugins/optimus/build/images/products-overlay/audio-BXNjlFsc.png",N="/wp-content/mu-plugins/optimus/build/images/products-overlay/wearables-Bo5sPn5n.png",k="/wp-content/mu-plugins/optimus/build/images/products-overlay/maison-connectee-WQHQ25sM.png",A="panel___F0dM7",O="panelOpen___jYa8K",R="panelClosing___1kBXB",M="view___gVAN-",B="pillRow___H68qJ",G="pill___RZq1V",T="back___wIGAO",D="pillArrow___wZFGo",P="backArrow___gdISD",q="grid___zwgWy",H="subSection___8iBua",V="card___triTV",U="cardThumb___L0nF1",Z="cardImg___yGXsM",$="cardIcon___IoaIf",K="cardLabel___yBvjI",o={panel:A,panelOpen:O,panelClosing:R,view:M,pillRow:B,pill:G,back:T,pillArrow:D,backArrow:P,grid:q,subSection:H,card:V,cardThumb:U,cardImg:Z,cardIcon:$,cardLabel:K},X=["marques","comparateurs"],Y=[{label:"Smartphones",href:"/produits-android/smartphone",img:y},{label:"Ordinateurs",href:"/produits-android/ordinateurs",img:E},{label:"Mobilité électrique",href:"/survoltes",Icon:x},{label:"Smart TV",href:"/produits-android/tv-connectee-produits",img:I},{label:"Gaming",href:"/produits-android/console",img:S},{label:"Photo et Vidéo",href:"/produits-android/photo",img:F},{label:"Audio",href:"/produits-android/audio",img:L},{label:"Wearables",href:"/produits-android/accessoires-objets-connectes",img:N},{label:"Maison connectée",href:"/produits-android/maison-connectee",img:k},{label:"Auto et Mobilité",href:"/survoltes/voitures-electriques",img:j},{label:"IA",href:"/culture-tech/intelligence-artificielle"}];function J({open:s,onClose:l}){const i=n.useRef(null),u=C(),[c,d]=n.useState("root"),[f,m]=n.useState(s);if(n.useEffect(()=>{s&&(m(!0),d("root"))},[s]),n.useEffect(()=>{if(!s)return;const e=p=>{p.key==="Escape"&&l()},g=p=>{var h,_;const a=p.target;(h=i.current)!=null&&h.contains(a)||(_=a.closest)!=null&&_.call(a,".bn-dock")||l()};return document.addEventListener("keydown",e),document.addEventListener("pointerdown",g),()=>{document.removeEventListener("keydown",e),document.removeEventListener("pointerdown",g)}},[s,l]),!f)return null;const r=c==="root"?null:u.find(e=>e.id===c);return t.jsx("div",{ref:i,role:"dialog","aria-label":"Produits",className:`${o.panel} has-default-theme--inverted ${s?o.panelOpen:o.panelClosing}`,onAnimationEnd:e=>{!s&&e.target===i.current&&m(!1)},children:t.jsx("div",{className:o.view,children:r?t.jsxs(t.Fragment,{children:[t.jsxs("button",{type:"button",className:o.back,onClick:()=>d("root"),children:[t.jsx(b,{className:o.backArrow,"aria-hidden":"true"}),t.jsx("span",{children:r.title})]}),r.type==="tiles"?t.jsx("div",{className:`${o.grid} ${o.subSection}`,children:r.items.map(e=>t.jsx(v,{content:e.content,label:e.label,href:e.href},e.id))}):t.jsx("div",{className:o.subSection,children:t.jsx(w,{section:{...r,title:void 0,allLink:void 0},ctx:{onClose:l}})})]}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:o.pillRow,children:u.filter(e=>X.includes(e.id)).map(e=>t.jsxs("button",{type:"button",className:o.pill,onClick:()=>{i.current&&(i.current.style.height=`${i.current.offsetHeight}px`),d(e.id)},children:[t.jsx("span",{children:e.title}),t.jsx(b,{className:o.pillArrow,"aria-hidden":"true"})]},e.id))}),t.jsx("div",{className:o.grid,children:Y.map(e=>t.jsxs("a",{href:e.href,className:o.card,children:[t.jsx("span",{className:o.cardThumb,children:e.Icon?t.jsx(e.Icon,{className:o.cardIcon,"aria-hidden":"true"}):e.img?t.jsx("img",{src:e.img,alt:"",className:o.cardImg}):null}),t.jsx("span",{className:o.cardLabel,children:e.label})]},e.label))})]})},c)})}export{J as default};
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.