PageSourceSearch

https://vpdive.com/_nuxt/BqKq8M6o.js

js vpdive.com collected 2026-10-01 15:38:37 UTC 4,853 bytes, 1 lines download raw bytes

1import{b as I,o as M,C as P,c as n,l as s,h as d,v as j,f as A,F as p,r as b,t as u,i as g,g as i,B as k,n as B,k as L,au as q,j as o}from"./CO-mOBGH.js";import{V as z}from"./5_SeVuGY.js";import{u as D}from"./C1crRDqT.js";import{a as T}from"./bkOMnob5.js";import"./CDxoUKFv.js";import"./BSFV989u.js";import"./Bb4xKwA9.js";import"./wneedS0W.js";import"./DSdO2G-L.js";import"./VOE__KuV.js";import"./BZgCY5IF.js";const E={class:"p-6 md:p-8"},F={class:"mb-8 max-w-md mx-auto"},S={class:"absolute inset-y-0 right-0 flex items-center pr-4"},$={class:"space-y-8"},W={class:"flex items-center gap-2 mb-4"},G={class:"text-lg font-semibold text-[#1b2441]"},H={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3"},R=["onClick"],U={class:"flex items-center gap-3"},J={class:"bg-gray-100 rounded-lg p-2.5 flex-shrink-0 flex items-center justify-center"},K={key:0,class:"flex gap-1.5 mt-1"},O={key:0,class:"px-2 py-0.5 text-xs font-medium bg-primary-100 text-primary-700 rounded-full"},Q={key:1,class:"px-2 py-0.5 text-xs font-medium bg-indigo-100 text-indigo-700 rounded-full"},X={key:2,class:"w-5 h-5 text-xs font-bold text-white bg-red-500 rounded-full inline-flex items-center justify-center"},Y=["onClick"],Z={class:"bg-gray-100 rounded-lg p-2.5 flex-shrink-0 flex items-center justify-center"},ee={class:"font-medium text-gray-800 group-hover:text-primary transition-colors"},te={key:0,class:"px-2 py-0.5 text-xs font-medium bg-primary-100 text-primary-700 rounded-full"},se={key:1,class:"px-2 py-0.5 text-xs font-medium bg-indigo-100 text-indigo-700 rounded-full"},oe={key:0,class:"text-center py-12"},ne={class:"text-sm text-gray-500"},ye={__name:"selector-app",emits:["close"],setup(re,{emit:w}){I({title:"Centre de contrôle"});const C=w,x=q("closeAdminMode",null),{openAutoLoginTab:V,isVpdive4Link:N}=D(),h=(l,a=!1)=>{if(x?x():C("close"),a){window.open(l,"_blank","noopener");return}if(N(l)){V(l);return}B(l)},y=T(),c=k(""),f=k(null);M(async()=>{await P(),f.value?.querySelector("input")?.focus()});const m=l=>(l||"").toString().toLowerCase().normalize("NFD").replace(/[̀-ͯ]/g,""),_=L(()=>{const l=m(c.value).trim();return l?y.reduce((a,r)=>{const t=m(r.label).includes(l);if(r.items?.length){const e=t?r.items:r.items.filter(v=>m(v.label).includes(l));e.length&&a.push({...r,items:e})}else t&&a.push(r);return a},[]):y});return(l,a)=>{const r=j;return o(),n("div",E,[a[2]||(a[2]=s("div",{class:"mb-8 text-center"},[s("h1",{class:"text-2xl font-bold text-[#1b2441]"},"Centre de contrôle"),s("p",{class:"text-sm text-gray-500 mt-1"},"Gérez votre club en quelques clics")],-1)),s("div",F,[s("div",{class:"relative",ref_key:"searchWrapper",ref:f},[d(z,{modelValue:c.value,"onUpdate:modelValue":a[0]||(a[0]=t=>c.value=t),type:"text",placeholder:"Rechercher une fonctionnalité...","hide-icon":!0,"bg-class":"bg-white border border-gray-100 shadow-sm rounded-lg"},null,8,["modelValue"]),s("div",S,[c.value?(o(),n("button",{key:0,type:"button",onClick:a[1]||(a[1]=t=>c.value=""),class:"text-gray-400 hover:text-gray-600"},[d(r,{name:"heroicons:x-mark",class:"w-5 h-5"})])):(o(),A(r,{key:1,name:"heroicons:magnifying-glass",class:"w-5 h-5 text-gray-400"}))])],512)]),s("div",$,[(o(!0),n(p,null,b(_.value,t=>(o(),n("div",{key:t.label},[t.items?.length?(o(),n(p,{key:0},[s("div",W,[d(r,{name:t.icon,class:"w-5 h-5 text-gray-600"},null,8,["name"]),s("h2",G,u(t.label),1)]),s("div",H,[(o(!0),n(p,null,b(t.items,e=>(o(),n("div",{key:e.label,onClick:v=>h(e.to,e.external),class:"bg-white rounded-lg shadow-sm border border-gray-100 hover:shadow-md transition-all duration-200 p-4 cursor-pointer group"},[s("div",U,[s("div",J,[d(r,{name:e.icon,class:g(["w-5 h-5",e.iconColor||"text-gray-600"])},null,8,["name","class"])]),s("div",null,[s("span",{class:g(["font-medium text-sm group-hover:text-primary transition-colors",e.labelColor||"text-gray-800"])},u(e.label),3),e.isPremium||e.isNew||e.badgeCount&&e.badgeCount>0?(o(),n("div",K,[e.isPremium?(o(),n("span",O," VPDIVE+ ")):i("",!0),e.isNew?(o(),n("span",Q," Nouveau ")):i("",!0),e.badgeCount&&e.badgeCount>0?(o(),n("span",X,u(e.badgeCount),1)):i("",!0)])):i("",!0)])])],8,R))),128))])],64)):(o(),n("div",{key:1,onClick:e=>h(t.to,t.external),class:"bg-white rounded-lg shadow-sm border border-gray-100 hover:shadow-md transition-all duration-200 p-4 cursor-pointer group inline-flex items-center gap-3"}
1,[s("div",Z,[d(r,{name:t.icon,class:g(["w-5 h-5",t.iconColor||"text-gray-600"])},null,8,["name","class"])]),s("span",ee,u(t.label),1),t.isPremium?(o(),n("span",te," VPDIVE+ ")):i("",!0),t.isNew?(o(),n("span",se," Nouveau ")):i("",!0)],8,Y))]))),128)),_.value.length?i("",!0):(o(),n("div",oe,[d(r,{name:"material-symbols:search-off",class:"w-10 h-10 text-gray-300 mx-auto mb-3"}),s("p",ne,"Aucune fonctionnalité ne correspond à « "+u(c.value)+" »",1)]))])])}}};export{ye 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.