ultisuite-client/out/_next/static/chunks/app/admin/settings/layout-0cd6a4d3bbe89a06.js
R3D347HR4Y d6d18f911b
Some checks failed
E2E / Playwright e2e (push) Has been cancelled
Lots of stuff and mobile app
2026-06-17 00:13:28 +02:00

1 line
20 KiB
JavaScript

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2669],{6877:(e,t,r)=>{Promise.resolve().then(r.bind(r,48331))},34329:(e,t,r)=>{"use strict";r.d(t,{_:()=>d});var a=r(86227),n=r(93021),o=r(1442);function i(e){let t=e.groups??e.roles;return Array.isArray(t)?t.filter(e=>"string"==typeof e).map(e=>e.trim().toLowerCase()):[]}function s(e){if(!e)return!1;let t=(0,o.K)(e);return!!t&&i(t).some(e=>"admin"===e||"role:admin"===e)}function d(){let e=(0,a.nc)(e=>e.accessToken),{data:t,isFetched:r}=(0,n.i)(),d=function(e){if(!e)return{read:!1,write:!1};if(s(e))return{read:!0,write:!0};let t=i((0,o.K)(e)??{});return{read:t.includes("admin:read")||t.includes("admin:write"),write:t.includes("admin:write")}}(e),l=s(e)||d.read,c=t?.platform_admin===!0;return{isAdmin:l||c,adminReady:l||r}}},44410:(e,t,r)=>{"use strict";r.d(t,{$i:()=>m,$p:()=>R,AO:()=>c,Az:()=>f,Bh:()=>L,Cc:()=>v,DO:()=>G,E1:()=>_,E7:()=>O,Fr:()=>$,G7:()=>W,HU:()=>X,I8:()=>C,IK:()=>T,KZ:()=>u,LQ:()=>U,Mz:()=>A,PG:()=>z,Q5:()=>V,QU:()=>k,R5:()=>ee,RA:()=>g,Sh:()=>s,TN:()=>B,Un:()=>d,Ww:()=>Z,Yh:()=>D,Yj:()=>b,a9:()=>p,c7:()=>h,d9:()=>er,gS:()=>i,h6:()=>j,hf:()=>q,hn:()=>K,hz:()=>n,i1:()=>N,il:()=>w,j7:()=>H,l9:()=>l,lK:()=>M,lQ:()=>Q,l_:()=>x,nr:()=>o,pK:()=>E,sF:()=>Y,th:()=>I,tv:()=>en,uU:()=>y,wC:()=>et,wJ:()=>S,wf:()=>J,wo:()=>ea,yv:()=>F});var a=r(58113);let n=(0,a.cn)("min-w-[220px] rounded-lg border border-border bg-popover p-0 py-1 text-popover-foreground shadow-lg","[&_[data-slot=dropdown-menu-item]]:gap-3 [&_[data-slot=dropdown-menu-item]]:rounded-none","[&_[data-slot=dropdown-menu-item]]:px-3 [&_[data-slot=dropdown-menu-item]]:py-2 [&_[data-slot=dropdown-menu-item]]:text-sm","[&_[data-slot=dropdown-menu-item]]:focus:bg-accent [&_[data-slot=dropdown-menu-item]]:focus:text-accent-foreground","[&_[data-slot=dropdown-menu-sub-trigger]]:gap-3 [&_[data-slot=dropdown-menu-sub-trigger]]:rounded-none","[&_[data-slot=dropdown-menu-sub-trigger]]:px-3 [&_[data-slot=dropdown-menu-sub-trigger]]:py-2","[&_[data-slot=dropdown-menu-sub-trigger]]:text-sm","[&_[data-slot=dropdown-menu-sub-trigger]]:focus:bg-accent","[&_[data-slot=dropdown-menu-sub-trigger]]:data-[state=open]:bg-accent","[&_[data-slot=dropdown-menu-sub-content]]:min-w-[200px]","[&_[data-slot=dropdown-menu-sub-content]]:rounded-lg","[&_[data-slot=dropdown-menu-sub-content]]:border [&_[data-slot=dropdown-menu-sub-content]]:border-border","[&_[data-slot=dropdown-menu-sub-content]]:bg-popover","[&_[data-slot=dropdown-menu-sub-content]]:p-0 [&_[data-slot=dropdown-menu-sub-content]]:py-1","[&_[data-slot=dropdown-menu-sub-content]]:shadow-lg","[&_[data-slot=dropdown-menu-separator]]:mx-0 [&_[data-slot=dropdown-menu-separator]]:my-1","[&_[data-slot=dropdown-menu-separator]]:bg-border","[&_[data-slot=context-menu-item]]:focus:bg-accent [&_[data-slot=context-menu-item]]:focus:text-accent-foreground","[&_[data-slot=context-menu-sub-trigger]]:focus:bg-accent","[&_[data-slot=context-menu-sub-content]]:border-border [&_[data-slot=context-menu-sub-content]]:bg-popover"),o=(0,a.cn)(n,"min-w-[280px]"),i=(0,a.cn)("min-w-[240px] border-border bg-popover p-0 py-1.5 text-popover-foreground shadow-md","[&_[data-slot=dropdown-menu-label]]:text-muted-foreground","[&_[data-slot=dropdown-menu-item]]:text-popover-foreground","[&_[data-slot=dropdown-menu-item]]:focus:bg-accent [&_[data-slot=dropdown-menu-item]]:focus:text-accent-foreground","[&_[data-slot=dropdown-menu-sub-trigger]]:text-popover-foreground","[&_[data-slot=dropdown-menu-sub-trigger]]:focus:bg-accent","[&_[data-slot=dropdown-menu-sub-trigger]]:data-[state=open]:bg-accent","[&_[data-slot=context-menu-label]]:text-muted-foreground","[&_[data-slot=context-menu-item]]:text-popover-foreground","[&_[data-slot=context-menu-item]]:focus:bg-accent [&_[data-slot=context-menu-item]]:focus:text-accent-foreground","[&_[data-slot=context-menu-sub-trigger]]:text-popover-foreground","[&_[data-slot=context-menu-sub-trigger]]:focus:bg-accent","[&_[data-slot=context-menu-sub-trigger]]:data-[state=open]:bg-accent"),s=(0,a.cn)("mx-1 flex cursor-pointer items-center justify-between gap-3 px-3 py-2 text-sm text-popover-foreground","focus:bg-accent focus:text-accent-foreground"),d=(0,a.cn)("mx-1 cursor-pointer rounded-sm px-2 py-2 text-popover-foreground","focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent"),l=(0,a.cn)("mx-1 cursor-pointer px-3 py-2 text-sm text-popover-foreground focus:bg-accent focus:text-accent-foreground"),c="my-1.5 bg-border",u="border-border bg-mail-surface ring-offset-background hover:ring-muted-foreground focus-visible:ring-ring",m=(0,a.cn)("min-w-[180px] border-border bg-popover p-2 text-popover-foreground shadow-md"),g="text-muted-foreground hover:bg-accent hover:text-accent-foreground";(0,a.cn)("border border-border bg-mail-surface-elevated text-foreground shadow-xl"),(0,a.cn)("h-9 w-9 shrink-0 text-muted-foreground hover:bg-accent hover:text-accent-foreground");let p="dark:!text-white",b="min-h-0 flex-1 overflow-y-auto overflow-x-hidden overscroll-y-contain [scrollbar-gutter:stable] outline-none max-sm:pb-16 [scrollbar-color:color-mix(in_srgb,var(--muted-foreground)_55%,transparent)_transparent] [scrollbar-width:auto] [&::-webkit-scrollbar]:w-2.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-muted-foreground/45",f="bg-gradient-to-b from-transparent via-mail-surface/90 to-mail-surface pt-3",x=(0,a.cn)("inline-flex shrink-0 items-center gap-2 whitespace-nowrap rounded-full border border-border","bg-mail-surface px-6 py-2.5 text-sm font-medium text-foreground shadow-sm","transition-shadow hover:bg-accent hover:shadow-md"),h=(0,a.cn)("mx-6 mb-4 rounded-xl border border-border bg-mail-invitation px-4 py-3 shadow-sm"),v="hover:bg-accent/60",w=(0,a.cn)("flex h-10 shrink-0 cursor-pointer items-center rounded-t-lg bg-muted px-3","dark:bg-[#2d2e30]"),y=(0,a.cn)("border-border bg-popover p-3 text-popover-foreground shadow-lg"),_="bg-accent text-accent-foreground",k=(0,a.cn)("flex h-7 w-7 items-center justify-center rounded text-muted-foreground transition-colors","hover:bg-accent hover:text-accent-foreground disabled:opacity-40"),j="bg-accent text-foreground",N="mx-0.5 h-5 w-px bg-border",A=(0,a.cn)("flex h-8 w-8 items-center justify-center rounded-full text-muted-foreground transition-colors","hover:bg-accent hover:text-accent-foreground"),z="bg-accent text-foreground",S=(0,a.cn)("inline-flex h-9 items-center bg-primary text-primary-foreground","hover:bg-primary/90 hover:shadow-md transition-all"),U="ml-3 border-b border-border",C="bg-primary/10",I="hover:bg-accent",q=(0,a.cn)("inline-flex items-center gap-1 rounded-full bg-muted py-0.5 pl-0.5 pr-2 text-sm text-foreground","hover:bg-accent transition-colors"),M=(0,a.cn)("absolute inset-0 z-50 flex items-center justify-center rounded-lg border-2 border-dashed border-primary","bg-primary/5");(0,a.cn)("pointer-events-auto size-9 shrink-0 rounded-full border border-border","bg-mail-surface/80 text-muted-foreground shadow-md backdrop-blur","hover:bg-accent hover:text-accent-foreground");let L="border border-border bg-popover text-popover-foreground shadow-md",R="",O=(0,a.cn)("relative box-border w-full max-w-full overflow-hidden rounded-xl border border-border","bg-mail-surface text-foreground shadow-md ring-1 ring-primary/15"),P=(0,a.cn)("size-4 min-h-4 min-w-4 shrink-0 border-[1.5px] border-mail-row-checkbox-border bg-transparent shadow-none","dark:bg-transparent focus-visible:ring-mail-row-checkbox-border/30","data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground"),$=(0,a.cn)(P,"rounded-full"),E=(0,a.cn)(P,"rounded-[2.5px]"),Q="divide-y divide-mail-list-divider";(0,a.cn)("relative flex min-w-0 flex-1 items-center rounded-full border border-border","bg-mail-surface-elevated shadow-sm transition-shadow focus-within:shadow-md");let T="border-mail-border",H=(0,a.cn)("border-mail-list-chip-border bg-mail-list-chip-muted text-mail-list-chip-text"),K=(0,a.cn)("rounded-md border border-solid !border-mail-border bg-mail-surface-muted text-foreground shadow-none","focus-visible:!border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","dark:!border-mail-border dark:!bg-mail-surface-muted"),W=(0,a.cn)("size-4 border-[1.5px] border-mail-row-checkbox-border bg-mail-surface-muted shadow-none","dark:bg-mail-surface-muted","data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground","data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground"),F=(0,a.cn)("bg-mail-surface-elevated/80 backdrop-blur-xl backdrop-saturate-150","supports-[backdrop-filter]:bg-mail-surface-elevated/65"),D=(0,a.cn)("absolute left-0 right-0 top-full z-50 mt-1 overflow-hidden rounded-lg border text-foreground shadow-lg",T,F),Z=(0,a.cn)("absolute left-0 top-full z-50 mt-1 max-h-[80vh] overflow-y-auto rounded-lg border",T,"bg-mail-surface-elevated text-foreground shadow-lg","data-mail-search-advanced","sm:min-w-[34rem] sm:max-w-[min(42rem,calc(100vw-5rem))]","md:min-w-[38rem]","lg:right-0 lg:min-w-0 lg:max-w-none"),B=(0,a.cn)("z-[101] flex h-[100dvh] max-h-[100dvh] w-full flex-col gap-0 rounded-none border-0","bg-mail-surface text-foreground p-0 shadow-xl","duration-300 ease-out","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom","pb-[env(safe-area-inset-bottom)]","data-mail-mobile-search"),G=(0,a.cn)("max-sm:bg-app-canvas/80 max-sm:backdrop-blur-xl max-sm:backdrop-saturate-150 max-sm:supports-[backdrop-filter]:bg-app-canvas/65","sm:bg-transparent"),J="mail-sidebar-blur-surface",V="mail-sidebar-overlay-panel",Y=(0,a.cn)("flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-full text-muted-foreground","outline-none hover:bg-accent/80 focus-visible:ring-2 focus-visible:ring-ring/50");function X(e){return(0,a.cn)("transition-colors",e.isSelected?"bg-mail-nav-selected text-mail-nav-selected font-medium":e.isOver?"bg-mail-nav-drop text-foreground":e.rowHoverHeld?"bg-mail-nav-hover text-foreground":e.hasUnread?"text-foreground hover:bg-mail-nav-hover":"text-muted-foreground hover:bg-mail-nav-hover",e.extra)}let ee="flex min-h-0 min-w-0 flex-1 flex-col px-1 pb-1 max-sm:px-0 max-sm:pb-0",et="flex min-h-0 flex-1 flex-col overflow-hidden rounded-2xl bg-mail-surface shadow-sm max-sm:rounded-none max-sm:shadow-none",er=(0,a.cn)("flex h-auto w-fit max-w-full flex-wrap gap-1.5","[&_[data-slot=tabs-trigger]]:flex-none"),ea=(0,a.cn)("mail-settings-card rounded-lg border border-mail-border bg-mail-surface shadow-sm","dark:bg-mail-surface-elevated dark:shadow-[0_1px_4px_rgba(0,0,0,0.35)]"),en=(0,a.cn)("mail-settings-masonry-section border-border px-0 py-5","lg:rounded-xl lg:border lg:border-mail-border lg:bg-mail-surface lg:px-5 lg:py-5 lg:shadow-sm","dark:lg:bg-mail-surface-elevated dark:lg:shadow-[0_1px_4px_rgba(0,0,0,0.35)]")},48331:(e,t,r)=>{"use strict";r.d(t,{AdminSettingsLayout:()=>w});var a=r(4208),n=r(35855),o=r.n(n),i=r(19984),s=r(58113),d=r(94149),l=r(44410),c=r(25307);function u({className:e,href:t="/admin/settings",variant:r="full"}){let n=(0,a.jsx)(c.default,{src:"/admin-mark.svg",alt:"Administration",width:"mark"===r?32:160,height:32,className:(0,s.cn)("mark"===r?"h-8 w-8":"h-8 w-auto",e),priority:!0});return null===t?n:(0,a.jsx)(o(),{href:t,className:"inline-flex shrink-0 items-center",children:n})}var m=r(88477),g=r(30273);function p(){return(0,a.jsxs)("header",{"data-admin-settings-chrome-header":!0,className:"flex h-16 w-full shrink-0 items-center gap-0 bg-app-canvas pr-4 sm:gap-2",children:[(0,a.jsxs)("div",{className:(0,s.cn)("hidden h-full w-64 shrink-0 pl-4 md:flex lg:w-72",g.pi),children:[(0,a.jsx)(u,{variant:"mark",className:g.wQ}),(0,a.jsx)("span",{className:g.Su,children:"Administration"})]}),(0,a.jsx)("div",{className:"flex shrink-0 items-center pl-2 md:hidden",children:(0,a.jsx)(u,{variant:"mark",className:g.wQ})}),(0,a.jsx)("div",{className:"flex min-w-0 flex-1 items-center px-1 sm:pl-1 sm:pr-1"}),(0,a.jsx)(m._,{className:"ml-auto shrink-0 pl-2 sm:pl-4",settingsHref:"/admin/settings"})]})}var b=r(91356),f=r(29546),x=r(32826),h=r(37820);function v(){let{data:e}=(0,f.Z3)(),t=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{if(e)try{t.current=!0;let r=(0,x.ZM)(e.policy),a=(0,x.j8)(e);h.U.getState().hydrateFromApi(r,a)}catch(e){console.error("org settings hydrate failed",e)}finally{queueMicrotask(()=>{t.current=!1})}},[e]),null}function w({children:e}){let t=(0,i.usePathname)();return(0,a.jsxs)("div",{"data-admin-settings-app":!0,className:"ultimail-app flex h-dvh max-h-dvh flex-col overflow-hidden bg-app-canvas",children:[(0,a.jsx)(p,{}),(0,a.jsx)(v,{}),(0,a.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col md:flex-row",children:[(0,a.jsx)("aside",{"data-admin-settings-sidebar":!0,className:"hidden w-64 shrink-0 overflow-y-auto bg-app-canvas p-3 md:block lg:w-72",children:(0,a.jsx)("nav",{className:"space-y-1","aria-label":"Sections administration",children:d.mn.map(e=>{let r=(0,d.SA)(t,e),n=e.icon;return(0,a.jsxs)(o(),{href:e.href,"aria-current":r?"page":void 0,className:(0,s.cn)("flex w-full items-start gap-3 rounded-lg px-3 py-2.5 transition-colors",r?"bg-mail-nav-selected":"hover:bg-mail-nav-hover"),children:[(0,a.jsx)(n,{className:(0,s.cn)("mt-0.5 size-4 shrink-0 opacity-70",r?"text-mail-nav-selected":"text-muted-foreground")}),(0,a.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,a.jsx)("span",{className:(0,s.cn)("block text-sm font-medium",r?"text-mail-nav-selected":"text-muted-foreground"),children:e.label}),(0,a.jsx)("span",{className:"block text-xs font-normal text-muted-foreground",children:e.description})]})]},e.id)})})}),(0,a.jsx)("div",{className:l.R5,children:(0,a.jsxs)("div",{"data-admin-settings-main":!0,className:l.wC,children:[(0,a.jsx)("nav",{className:"shrink-0 border-b border-border px-2 py-2 md:hidden","aria-label":"Sections administration",children:(0,a.jsx)("div",{className:"flex gap-1 overflow-x-auto",children:d.mn.map(e=>{let r=(0,d.SA)(t,e),n=e.icon;return(0,a.jsxs)(o(),{href:e.href,"aria-label":e.label,"aria-current":r?"page":void 0,className:(0,s.cn)("flex shrink-0 items-center rounded-lg",r?(0,s.cn)("gap-2 px-3 py-2",(0,l.HU)({isSelected:!0})):(0,s.cn)("size-9 justify-center",(0,l.HU)({isSelected:!1}))),children:[(0,a.jsx)(n,{className:"size-4 shrink-0 opacity-70"}),r?(0,a.jsx)("span",{className:"text-sm font-medium",children:e.label}):null]},e.id)})})}),(0,a.jsx)("main",{className:"min-h-0 flex-1 overflow-y-auto px-4 pt-5 sm:px-8",children:(0,a.jsx)("div",{className:(0,s.cn)("mx-auto flex min-h-full w-full flex-col",!(0,d.zN)(t)&&"max-w-3xl",(0,d.zI)(t)&&"lg:max-w-6xl",(0,d.zN)(t)&&"max-w-none"),children:e})})]})})]})]})}},88477:(e,t,r)=>{"use strict";r.d(t,{_:()=>h});var a=r(4208),n=r(91356),o=r(35855),i=r.n(o),s=r(89032),d=r(84834),l=r(91442),c=r(48843),u=r(10841),m=r(79741),g=r(61554),p=r(6146),b=r(30273),f=r(58113);let x=(0,f.cn)("rounded-full",b.ax,"hover:text-accent-foreground");function h({className:e,settingsHref:t,onSettingsClick:r}){let[o,b]=(0,n.useState)(!1),v=(0,n.useRef)(null),w=(0,p.o)();return(0,n.useEffect)(()=>{"same"===sessionStorage.getItem("ulti_account_notice")&&(sessionStorage.removeItem("ulti_account_notice"),s.oR.message("Vous utilisez d\xe9j\xe0 ce compte Ulti."))},[]),(0,a.jsxs)("div",{className:(0,f.cn)("flex shrink-0 items-center gap-1",e),children:[(0,a.jsx)(g.$,{variant:"ghost",size:"icon",className:(0,f.cn)("hidden sm:inline-flex",x),"aria-label":"Aide",children:(0,a.jsx)(l.A,{className:"size-6 shrink-0","aria-hidden":!0})}),(0,a.jsx)(g.$,{variant:"ghost",size:"icon",className:x,"aria-label":"R\xe9glages",...t?{asChild:!0}:{onClick:r},children:t?(0,a.jsx)(i(),{href:t,children:(0,a.jsx)(d.In,{icon:"mdi:cog-outline",className:"size-6 shrink-0","aria-hidden":!0})}):(0,a.jsx)(d.In,{icon:"mdi:cog-outline",className:"size-6 shrink-0","aria-hidden":!0})}),(0,a.jsx)(m.L,{iconButtonClass:x,onOpen:()=>b(!1)}),(0,a.jsxs)("div",{className:"relative ml-2",ref:v,children:[(0,a.jsx)(g.$,{variant:"ghost",size:"icon-lg",className:"size-11 overflow-hidden rounded-full p-0","aria-label":`Compte : ${w?.email??"Utilisateur"}`,"aria-expanded":o,"aria-haspopup":"dialog",onClick:()=>{b(!o)},children:w?(0,a.jsx)(c.h,{account:{name:w.name,email:w.email,avatarUrl:w.avatarUrl},size:"md"}):(0,a.jsx)("span",{className:"flex size-10 items-center justify-center rounded-full bg-muted text-sm font-medium text-muted-foreground",children:"?"})}),(0,a.jsx)(u.s,{open:o,onOpenChange:b,containerRef:v})]})]})}},94149:(e,t,r)=>{"use strict";r.d(t,{MW:()=>w,SA:()=>v,mn:()=>h,zI:()=>k,zN:()=>j});var a=r(28292),n=r(37042),o=r(20911),i=r(53832),s=r(4433),d=r(96080),l=r(38593),c=r(40230),u=r(30957),m=r(84181),g=r(81231),p=r(62500),b=r(8534),f=r(30426),x=r(42732);let h=[{id:"overview",label:"Vue d'ensemble",description:"Statistiques et activit\xe9 de la plateforme",href:"/admin/settings",icon:n.A},{id:"users",label:"Utilisateurs",description:"Comptes, types d'acc\xe8s, invitations et quotas",href:"/admin/settings/users",icon:o.A},{id:"authentication",label:"Authentification",description:"Authentik, SSO et provisionnement",href:"/admin/settings/authentication",icon:i.A},{id:"security",label:"S\xe9curit\xe9",description:"Politiques 2FA et exigences d'acc\xe8s",href:"/admin/settings/security",icon:s.A},{id:"quotas",label:"Quotas",description:"Stockage, LLM, recherche web et automatisations",href:"/admin/settings/quotas",icon:d.A},{id:"file-policies",label:"Politiques fichiers",description:"Upload, partage et r\xe9tention",href:"/admin/settings/file-policies",icon:l.A},{id:"public-shares",label:"Partages externes",description:"Liens publics Drive et audit d'acc\xe8s",href:"/admin/settings/public-shares",icon:c.A},{id:"search",label:"Moteur de recherche",description:"Index suite et recherche web",href:"/admin/settings/search",icon:u.A},{id:"plugins",label:"Plugins",description:"Nextcloud, modules et int\xe9grations activables",href:"/admin/settings/plugins",icon:m.A},{id:"agenda",label:a.tg,description:"Th\xe8me et visioconf\xe9rence par d\xe9faut",href:"/admin/settings/agenda",icon:g.A},{id:"ultimeet",label:"UltiMeet",description:"Transcription, moteurs STT et actions post-r\xe9union",href:"/admin/settings/ultimeet",icon:p.A},{id:"mail-domains",label:"Mail",description:"Domaines h\xe9berg\xe9s, SMTP et migration",href:"/admin/settings/mail-domains",icon:b.A},{id:"ai-usage",label:"Usage IA",description:"Co\xfbts, consommation et tarifs mod\xe8les",href:"/admin/settings/ai-usage",icon:d.A},{id:"ai-assistant",label:"UltiAI",description:"Assistant IA, fournisseurs LLM et tools suite",href:"/admin/settings/ai-assistant",icon:f.A},{id:"audit",label:"Journal d'audit",description:"Actions administratives et export",href:"/admin/settings/audit",icon:x.A}];function v(e,t){return"/admin/settings"===t.href?"/admin/settings"===e||"/admin/settings/overview"===e:e===t.href||!!e?.startsWith(`${t.href}/`)}function w(e){let t=e?.[0];if("llm"===t)return"ai-assistant";if("nextcloud"===t||"onlyoffice"===t||"richtext"===t)return"plugins";if("mailing"===t)return"mail-domains";if("storage-quotas"===t||"usage-quotas"===t)return"quotas";if("ai-usage"===t)return"ai-usage";let r=h.find(e=>"overview"===e.id?!t||"overview"===t:e.href.endsWith(`/${t}`));return r?.id??"overview"}let y=["overview","audit","ai-assistant","ai-usage","plugins","quotas","search","mail-domains","authentication","security","file-policies"],_=["users","public-shares"];function k(e){return!!e?.startsWith("/admin/settings")&&h.some(t=>y.includes(t.id)&&v(e,t))}function j(e){return!!e?.startsWith("/admin/settings")&&h.some(t=>_.includes(t.id)&&v(e,t))}}},e=>{e.O(0,[1909,2082,3616,9032,8306,5855,5814,5737,4774,563,4927,4498,3660,9096,5669,1614,1506,7358],()=>e(e.s=6877)),_N_E=e.O()}]);