PageSourceSearch

https://hopelia.com/assets/GuestShell-CZFlTX0u.js

js hopelia.com collected 2026-09-24 14:45:22 UTC 6,094 bytes, 1 lines download raw bytes

1import{j as e,a0 as o,f as i,T as p,r as j,u as g,t as N,B as v,L as c,aQ as y}from"./index-DveFA38Q.js";import{S as k,a as C,b as w,c as z,d as S}from"./sheet-CrQ25CmC.js";import{d as m,f as G,i as A}from"./nav-structure-BmtPKDM8.js";import{Z as L}from"./zap-vRrWDNIo.js";import{M as $}from"./menu-Ctu5ALvs.js";import{M as P}from"./messages-square-CYgOl3AN.js";import{L as d}from"./lock-BZ0BQIkO.js";import{U as R}from"./user-plus-il8dTlag.js";function b(){const t=g(),r=o({select:s=>s.location.pathname});return()=>N.info("Cette section est réservée aux membres.",{description:"Créez un compte gratuit pour débloquer toute l'app.",action:{label:"Créer un compte",onClick:()=>t({to:"/auth",search:{mode:"signup",...r==="/analyse"?{redirect:"/analyse"}:{}}})}})}function T({item:t,onCta:r}){const s=t.icon,a=o({select:l=>l.location.pathname}),n=y(t.to),x="w-full flex items-center gap-2.5 px-3 py-2 rounded-lg text-sm text-left transition-colors";if(n){const l=a===`/decouvrir/${n.slug}`;return e.jsxs(c,{to:"/decouvrir/$section",params:{section:n.slug},title:`Découvrir ${t.label}`,className:`${x} ${l?"bg-sidebar-accent text-sidebar-accent-foreground":"text-muted-foreground hover:text-foreground"}`,children:[e.jsx(s,{className:"size-4"}),e.jsx("span",{className:"flex-1",children:t.label}),e.jsx(d,{className:"size-3.5"})]})}return e.jsxs("button",{type:"button",onClick:r,title:"Réservé aux membres",className:`${x} text-muted-foreground hover:text-foreground`,children:[e.jsx(s,{className:"size-4"}),e.jsx("span",{className:"flex-1",children:t.label}),e.jsx(d,{className:"size-3.5"})]})}function E({item:t,pathname:r}){const s=t.icon,a=A(t.to,r);return e.jsxs(c,{to:t.to,className:`flex items-center gap-2.5 px-3 py-2 rounded-lg text-sm transition-colors ${a?"bg-sidebar-accent text-sidebar-accent-foreground":"text-muted-foreground hover:text-sidebar-foreground hover:bg-sidebar-accent/50"}`,children:[e.jsx(s,{className:`size-4 ${a?"text-primary":""}`}),e.jsx("span",{className:"flex-1",children:t.label})]})}const u="pt-4 pb-1 px-3 text-[10px] uppercase tracking-wider text-muted-foreground";function h({pathname:t,onCta:r}){return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("div",{className:u,children:m.label}),m.items.map(s=>e.jsx(E,{item:s,pathname:t},s.label))]}),e.jsx("div",{className:"space-y-0.5 pt-1",children:G.map(s=>e.jsx(T,{item:s,onCta:r},s.label))}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("div",{className:u,children:"Communauté"}),e.jsxs("button",{type:"button",onClick:r,title:"Réservé aux membres",className:"w-full flex items-center gap-2.5 px-3 py-2 rounded-lg text-sm text-muted-foreground hover:text-foreground text-left transition-colors",children:[e.jsx(P,{className:"size-4"}),e.jsx("span",{className:"flex-1",children:"Discord"}),e.jsx(d,{className:"size-3.5"})]})]})]})}function f(){const r=o({select:s=>s.location.pathname})==="/analyse"?{redirect:"/analyse"}:{};return e.jsxs("div",{className:"space-y-2",children:[e.jsx(v,{asChild:!0,className:"w-full justify-start gap-2.5 font-semibold",children:e.jsxs(c,{to:"/auth",search:{mode:"signup",...r},children:[e.jsx(R,{className:"size-4"}),"Créer un compte"]})}),e.jsx(c,{to:"/auth",search:r,className:"block px-3 text-xs text-muted-foreground hover:text-foreground transition-colors",children:"J'ai déjà un compte"})]})}function I(){const t=o({select:s=>s.location.pathname}),r=b();return e.jsxs("aside",{className:"hidden md:flex w-60 shrink-0 flex-col bg-sidebar border-r border-sidebar-border h-screen sticky top-0",children:[e.jsxs("div",{className:"px-5 py-5 border-b border-sidebar-border flex items-center justify-between gap-2",children:[e.jsx(i,{}),e.jsx(p,{})]}),e.jsx("nav",{className:"flex-1 px-3 py-4 space-y-0.5 overflow-y-auto",children:e.jsx(h,{pathname:t,onCta:r})}),e.jsx("div",{className:"border-t border-sidebar-border p-3",children:e.jsx(f,{})})]})}function M(){const[t,r]=j.useState(null),s=o({select:n=>n.location.pathname}),a=b();return e.jsxs("div",{className:"md:hidden sticky top-0 z-40 flex h-[var(--nav-mobile-h)] shrink-0 items-center justify-between gap-2 px-4 bg-sidebar border-b border-sidebar-border",children:[e.jsx(i,{}),e.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[e.jsx(p,{}),e.jsxs(k,{open:t===s,onOpenChange:n=>r(n?s:null),children:[e.jsx(C,{asChild:!0,children:e.jsx("button",{type:"button","aria-label":"Ouvrir le menu",className:"inline-flex items-center justify-center rounded-lg border border-border size-10 text-foreground hover:bg-sidebar-accent/50 transition-colors",children:e.jsx($,{className:"size-5"})})}),e.jsxs(w,{side:"left",className:"w-72 bg-sidebar p-0 flex flex-col",children:[e.jsx(z,{className:"px-5 py-4 border-b border-sidebar-border text-left",children:e.jsx(S,{asChild:!0,children:e.jsx("div",{children:e.jsx(i,{})})})}),e.jsx("nav",{className:"flex-1 px-3 py-4 space-y-0.5 overflow-y-auto",children:e.jsx(h,{pathname:s,onCta:a})}),e.jsx("div",{className:"border-t border-sidebar-border p-3",children:e.jsx(f,{})})]})]})]})]})}function Z({title:t,subtitle:r,creditLabel:s,children:a}){return e.jsxs("div",{className:"flex min-h-screen w-full bg-background text-foreground",children:[e.jsx(I,{}),e.jsxs("main",{className:"flex-1 min-w-0",children:[e.jsx(M,{}),e.jsxs("div",{className:"sticky top-[var(--nav-mobile-h)] md:top-0 z-10 flex flex-wrap items-center justify-between gap-2 px-4 sm:px-6 py-3.5 border-b border-border bg-background/80 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"font-display font-bold text-[17px] leading-tight text-foreground truncate",children:t}),e.jsx("div",{className:"text-xs text-muted-foreground",children:r})]}),s?e.jsxs("div",{className:"inline-flex shrink-0 items-center gap-2 rounded-full border border-border bg-surface px-3 py-1.5 text-sm font-semibold text-primary",children:[e.jsx(L,{className:"size-4"}),e.jsx("span",{children:s})]}):null]}),e.jsx("div",{className:"px-4 sm:px-6",children:a})]})]})}export{Z as G};

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.