1import{d as M,b as U,c as n,l,h as r,q as m,_ as h,p as y,v as $,g as i,F as b,r as k,k as w,B as C,n as q,t as x,f as P,i as f,e as d,ab as V,a2 as F,j as o,Q as R}from"./CiKtckVa.js";import{P as S}from"./DTBhDwS9.js";import{u as H}from"./Drx3cB6G.js";import{u as O}from"./DK-JFgNd.js";import{a as Q}from"./Ge_A5udU.js";import"./D0FtttWC.js";import"./CPiWm1qT.js";import"./5DDz-OcZ.js";import"./CDxoUKFv.js";import"./yw1ultGR.js";import"./BFX4lM9_.js";import"./BpabZW1Q.js";import"./CLrGTnih.js";import"./kyA1SXwn.js";const G={class:"p-4 space-y-4"},J={class:"flex items-center space-x-2 mb-6"},K={class:"flex items-center justify-between gap-4"},W={class:"space-y-4"},X={key:0,class:"relative"},Y=["onClick"],Z={class:"flex-grow text-left"},I={key:0,class:"ml-2 px-2 py-0.5 text-xs bg-green-100 text-green-800 rounded-full"},ee={key:0,class:"pl-4 mt-2 space-y-2"},te={key:0,class:"ml-2 px-2 py-0.5 text-xs bg-green-100 text-green-800 rounded-full"},oe={key:1,class:"ml-2 px-2 py-0.5 text-xs bg-indigo-100 text-indigo-700 rounded-full"},se={key:2,class:"ml-auto inline-flex items-center justify-center w-5 h-5 text-xs font-bold text-white bg-red-500 rounded-full"},ne={key:0,class:"ml-2 px-2 py-0.5 text-xs bg-green-100 text-green-800 rounded-full"},le={key:1,class:"ml-2 px-2 py-0.5 text-xs bg-indigo-100 text-indigo-700 rounded-full"},ae={key:2,class:"ml-2 inline-flex items-center justify-center w-5 h-5 text-xs font-bold text-white bg-red-500 rounded-full"},re=M({__name:"index",setup(ie){U({title:"Paramètres du club"});const{hasPermission:D}=H(),N=w(()=>D("club.is_premium")),g=C(!1);function B(){q("/app/admin/premium")}const{openAutoLoginTab:E,isVpdive4Link:u}=O(),_=h,v=(a,s)=>{a?.external||u(a?.to)&&(s.preventDefault(),E(a.to))},p=C([]),L=a=>{const s=p.value.indexOf(a);s===-1?p.value.push(a):p.value.splice(s,1)},T=Q(),j=w(()=>T.map(a=>a.items?.length===1?a.items[0]:a));return(a,s)=>{const c=$,z=h;return o(),n("div",G,[l("div",J,[r(z,{to:"/app",class:"text-gray-600","aria-label":"Retour à l'accueil"},{default:m(()=>[r(c,{name:"material-symbols:arrow-back",class:"w-6 h-6"}),s[2]||(s[2]=l("span",{class:"sr-only"},"Retour à l'accueil",-1))]),_:1}),s[3]||(s[3]=l("h2",{class:"text-2xl font-bold"},"Paramètres du club",-1))]),N.value?i("",!0):(o(),n("button",{key:0,type:"button",onClick:s[0]||(s[0]=e=>g.value=!0),class:"w-full text-left bg-gray-900 text-white p-4 rounded-lg mb-6 hover:bg-gray-800 transition-colors"},[l("div",K,[s[4]||(s[4]=l("div",null,[l("h3",{class:"text-lg font-semibold"},"Débloquez tout le potentiel de VPDive pour votre club et vos adhérents"),l("p",{class:"text-sm text-gray-300 mt-1"},[y("Passez à "),l("span",{class:"font-bold text-green-500"},"VPDIVE+"),y(" pour accéder à toutes les fonctionnalités avancées. ")])],-1)),r(c,{name:"material-symbols:chevron-right",class:"w-6 h-6 flex-shrink-0 text-green-500"})])])),l("div",W,[(o(!0),n(b,null,k(j.value,e=>(o(),n("div",{key:e.label,class:"bg-white rounded-lg shadow"},[e.items?(o(),n("div",X,[l("button",{onClick:t=>L(e.label),class:"w-full flex items-center p-4 text-sm text-gray-600 hover:text-primary transition-colors"},[r(c,{name:e.icon,class:"w-6 h-6 mr-3"},null,8,["name"]),l("span",Z,x(e.label),1),e.isPremium?(o(),n("span",I," VPDIVE+ ")):i("",!0),r(c,{name:p.value.includes(e.label)?"material-symbols:expand-less":"material-symbols:expand-more",class:"w-4 h-4 ml-2"},null,8,["name"])],8,Y),r(F,{name:"slide"},{default:m(()=>[p.value.includes(e.label)?(o(),n("div",ee,[(o(!0),n(b,null,k(e.items,t=>(o(),P(V(t.external?"a":d(u)(t.to)?"div":d(_)),{key:t.to,to:t.external||d(u)(t.to)?void 0:t.to,href:t.external?t.to:void 0,target:t.external?"_blank":void 0,rel:t.external?"noopener noreferrer":void 0,onClick:A=>v(t,A),class:"flex items-center p-4 text-sm text-gray-600 hover:text-primary transition-colors cursor-pointer"},{default:m(()=>[r(c,{name:t.icon,class:f(["w-5 h-5 mr-3",t.iconColor])},null,8,["name","class"]),l("span",{class:f(["flex-grow",t.labelColor])},x(t.label),3),t.isPremium?(o(),n("span",te," VPDIVE+ ")):i("",!0),t.isNew?(o(),n("span",oe," Nouveau ")):i("",!0),t.badgeCount&&t.badgeCount>0?(o(),n("span",se,x(t.badgeCount),1)):i("",!0)]),_:2},1032,["to","href","target","rel","onClick"]))),128))])):i("",!0)]),_:2},1024)])):(o(),P(V(e.external?"a":d(u)(e.to)?"div":d(_)),{key:1,to:e.external||d(u)(e.to)?void 0:e.to,href:e.external?e.to:void 0,target:e.external?"_blank":void 0,rel:e.external?"noopener noreferrer":void 0,onClick:t=>v(e,t),class:"flex items-center p-4 text-sm text-gray-600 hover:text-primary transition-colors cursor-pointer"},{default:m(()=>[r(c,{name:e.icon,class:f(["w-6 h-6 mr-3",e.iconColor])},null,8,["name","class"]),l("span",{class:f(["flex-grow",e.labelColor])},x(e.label),3),e.isPremium?(o(),n("span",ne," VPDIVE+ ")):i("",!0),e.isNew?(o(),n("span",le," Nouveau ")):i("",!0),e.badgeCount&&e.badgeCount>0?(o(),n("span",ae,x(e.badgeCount),1)):i("",!0),r(c,{name:"material-symbols:chevron-right",class:"w-5 h-5 ml-2"})]),_:2},1032,["to","href","target","rel","onClick"]))]))),128))]),r(S,{modelValue:g.value,"onUpdate:modelValue":s[1]||(s[1]=e=>g.value=e),onUpgrade:B},null,8,["modelValue"])])}}}),we=R(re,[["__scopeId","data-v-1ad571fa"]]);export{we 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.