PageSourceSearch

https://scpad2a.onhercules.app/assets/page-CiLMFd8u.js

js scpad2a.onhercules.app collected 2026-10-03 05:06:48 UTC 30,819 bytes, 1 lines download raw bytes

1import{z as ae,u as w,a as S,b as O,r as n,j as e,Y as H,_ as R,$ as G,a0 as $,a1 as Q,B as f,t as g,ag as Y,D as E,C as N,n as I,f as T,U as le,o as B,d as b,v as te,A as re,x as ce,am as ie,P as K,af as W,g as de}from"./index-CUCg6Zxa.js";import{i as ne}from"./role-utils-DAsB97pR.js";import{q as M,r as J,e as oe}from"./employee-labels-Bh18CJkP.js";import{L as j}from"./label-Bkx2rHip.js";import{S as F,a as V,b as q,c as U,d as A}from"./select-Dg4yzCDt.js";import{I as P}from"./input-DVOpVeNL.js";import{T as Z}from"./textarea-BuzAFgHC.js";import{C as ue}from"./circle-plus-_peTRZr8.js";import{E as X}from"./external-link-BCVqwS5i.js";import{T as he}from"./trash-m-fvGco0.js";import"./index-DeTWvO78.js";const pe=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],me=ae("grid-3x3",pe);function ge({open:D,onOpenChange:i}){const h=w(S.skills.getAllSkills,{}),x=O(S.skills.addEmployeeSkill),[t,p]=n.useState(""),[r,c]=n.useState(""),[u,v]=n.useState(""),[C,y]=n.useState(""),[d,k]=n.useState(""),[_,z]=n.useState(!1),[l,o]=n.useState("all"),a=async s=>{if(s.preventDefault(),!t||!r){g.error("Veuillez sélectionner une compétence et un niveau");return}z(!0);try{await x({skillId:t,proficiencyLevel:r,acquiredDate:u||void 0,certificationUrl:C||void 0,notes:d||void 0}),g.success("Compétence ajoutée avec succès"),i(!1),p(""),c(""),v(""),y(""),k(""),o("all")}catch(m){if(m instanceof Y){const{message:L}=m.data;g.error(L)}else g.error("Erreur lors de l'ajout de la compétence")}finally{z(!1)}},ee=h?.filter(s=>l==="all"||s.category===l),se=h?.reduce((s,m)=>(s[m.category]||(s[m.category]=[]),s[m.category].push(m),s),{});return e.jsx(H,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:96:4","data-hercules-name":"Dialog",open:D,onOpenChange:i,children:e.jsxs(R,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:97:6","data-hercules-name":"DialogContent",className:"max-h-[90vh] overflow-y-auto sm:max-w-[600px]",children:[e.jsxs(G,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:98:8","data-hercules-name":"DialogHeader",children:[e.jsx($,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:99:10","data-hercules-name":"DialogTitle",children:"Ajouter une compétence"}),e.jsx(Q,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:100:10","data-hercules-name":"DialogDescription",children:"Sélectionnez une compétence existante et définissez votre niveau de maîtrise"})]}),e.jsxs("form",{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:104:8","data-hercules-name":"form",onSubmit:a,className:"space-y-4",children:[e.jsxs("div",{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:106:10","data-hercules-name":"div",className:"space-y-2",children:[e.jsx(j,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:107:12","data-hercules-name":"Label",htmlFor:"category-filter",children:"Filtrer par catégorie"}),e.jsxs(F,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:108:12","data-hercules-name":"Select",value:l,onValueChange:o,children:[e.jsx(V,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:109:14","data-hercules-name":"SelectTrigger",id:"category-filter",children:e.jsx(q,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:110:16","data-hercules-name":"SelectValue"})}),e.jsxs(U,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:112:14","data-hercules-name":"SelectContent",children:[e.jsx(A,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:113:16","data-hercules-name":"SelectItem",value:"all",children:"Toutes les catégories"}),Object.keys(M).map(s=>e.jsx(A,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:115:18","data-hercules-name":"SelectItem",value:s,children:M[s]},s))]})]})]}),e.jsxs("div",{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:124:10","data-hercules-name":"div",className:"space-y-2",children:[e.jsx(j,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:125:12","data-hercules-name":"Label",htmlFor:"skill",children:"Compétence *"}),e.jsxs(F,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:126:12","data-hercules-name":"Select",value:t,onValueChange:p,children:[e.jsx(V,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:127:14","data-hercules-name":"SelectTrigger",id:"skill",children:e.jsx(q,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:128:16","data-hercules-name":"SelectValue",placeholder:"Sélectionnez une compétence"})}),e.jsx(U,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:130:14","data-hercules-name":"SelectContent",children:l==="all"?Object.entries(se||{}).map(([s,m])=>e.jsxs("div",{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:133:20","data-hercules-name":"div",children:[e.jsx("div",{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:134:22","data-hercules-name":"div",className:"px-2 py-1.5 text-sm font-semibold text-muted-foreground",children:M[s]}),m.map(L=>e.jsx(A,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:138:24","data-hercules-name":"SelectItem",value:L._id,children:L.name},L._id))]},s)):ee?.map(s=>e.jsxs(A,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:146:20","data-hercules-name":"SelectItem",value:s._id,children:[s.name,s.description&&e.jsxs("span",{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:149:24","data-hercules-name":"span",className:"text-xs text-muted-foreground",children:[" - ",s.description]})]},s._id))})]})]}),e.jsxs("div",{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:159:10","data-hercules-name":"div",className:"space-y-2",children:[e.jsx(j,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:160:12","data-hercules-name":"Label",htmlFor:"proficiency",children:"Niveau de maîtrise *"}),e.jsxs(F,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:161:12","data-hercules-name":"Select",value:r,onValueChange:c,children:[e.jsx(V,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:162:14","data-hercules-name":"SelectTrigger",id:"proficiency",children:e.jsx(q,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:163:16","data-hercules-name":"SelectValue",placeholder:"Sélectionnez un niveau"})}),e.jsx(U,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:165:14","data-hercules-name":"SelectContent",children:Object.entries(J).map(([s,m])=>e.jsx(A,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:167:18","data-hercules-name":"SelectItem",value:s,children:m},s))})]})]}),e.jsxs("div",{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:176:10","data-hercules-name":"div",className:"space-y-2",children:[e.jsx(j,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:177:12","data-hercules-name":"Label",htmlFor:"acquired-date",children:"Date d'acquisition"}),e.jsx(P,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:178:12","data-hercules-name":"Input",id:"acquired-date",type:"date",value:u,onChange:s=>v(s.target.value)})]}),e.jsxs("div",{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:187:10","data-hercules-name":"div",className:"space-y-2",children:[e.jsx(j,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:188:12","data-hercules-name":"Label",htmlFor:"certification-url",children:"Lien vers certification"}),e.jsx(P,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:189:12","data-hercules-name":"Input",id:"certification-url",type:"url",placeholder:"https://exemple.com/certification",value:C,onChange:s=>y(s.target.value)})]}),e.jsxs("div",{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:199:10","data-hercules-name":"div",className:"space-y-2",children:[e.jsx(j,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:200:12","data-hercules-name":"Label",htmlFor:"notes",children:"Notes"}),e.jsx(Z,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:201:12","data-hercules-name":"Textarea",id:"notes",placeholder:"Commentaires ou détails supplémentaires...",value:d,onChange:s=>k(s.target.value),rows:3})]}),e.jsxs("div",{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:210:10","data-hercules-name":"div",className:"flex justify-end gap-2",children:[e.jsx(f,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:211:12","data-hercules-name":"Button",type:"button",variant:"outline",onClick:()=>i(!1),children:"Annuler"}),e.jsx(f,{"data-hercules-id":"src/pages/skills/_components/AddSkillDialog.tsx:214:12","data-hercules-name":"Button",type:"submit",disabled:_,children:_?"Ajout...":"Ajouter"})]})]})]})})}function xe({open:D,onOpenChange:i}
1){const h=O(S.skills.createSkill),[x,t]=n.useState(""),[p,r]=n.useState(""),[c,u]=n.useState(""),[v,C]=n.useState(!1),y=async d=>{if(d.preventDefault(),!x||!c){g.error("Veuillez remplir tous les champs obligatoires");return}C(!0);try{await h({name:x,description:p||void 0,category:c}),g.success("Compétence créée avec succès"),i(!1),t(""),r(""),u("")}catch(k){if(k instanceof Y){const{message:_}=k.data;g.error(_)}else g.error("Erreur lors de la création de la compétence")}finally{C(!1)}};return e.jsx(H,{"data-hercules-id":"src/pages/skills/_components/CreateSkillDialog.tsx:73:4","data-hercules-name":"Dialog",open:D,onOpenChange:i,children:e.jsxs(R,{"data-hercules-id":"src/pages/skills/_components/CreateSkillDialog.tsx:74:6","data-hercules-name":"DialogContent",className:"sm:max-w-[500px]",children:[e.jsxs(G,{"data-hercules-id":"src/pages/skills/_components/CreateSkillDialog.tsx:75:8","data-hercules-name":"DialogHeader",children:[e.jsx($,{"data-hercules-id":"src/pages/skills/_components/CreateSkillDialog.tsx:76:10","data-hercules-name":"DialogTitle",children:"Créer une nouvelle compétence"}),e.jsx(Q,{"data-hercules-id":"src/pages/skills/_components/CreateSkillDialog.tsx:77:10","data-hercules-name":"DialogDescription",children:"Ajoutez une compétence au référentiel de l'entreprise"})]}),e.jsxs("form",{"data-hercules-id":"src/pages/skills/_components/CreateSkillDialog.tsx:81:8","data-hercules-name":"form",onSubmit:y,className:"space-y-4",children:[e.jsxs("div",{"data-hercules-id":"src/pages/skills/_components/CreateSkillDialog.tsx:83:10","data-hercules-name":"div",className:"space-y-2",children:[e.jsx(j,{"data-hercules-id":"src/pages/skills/_components/CreateSkillDialog.tsx:84:12","data-hercules-name":"Label",htmlFor:"name",children:"Nom de la compétence *"}),e.jsx(P,{"data-hercules-id":"src/pages/skills/_components/CreateSkillDialog.tsx:85:12","data-hercules-name":"Input",id:"name",placeholder:"Ex: Droit des contrats",value:x,onChange:d=>t(d.target.value),required:!0})]}),e.jsxs("div",{"data-hercules-id":"src/pages/skills/_components/CreateSkillDialog.tsx:95:10","data-hercules-name":"div",className:"space-y-2",children:[e.jsx(j,{"data-hercules-id":"src/pages/skills/_components/CreateSkillDialog.tsx:96:12","data-hercules-name":"Label",htmlFor:"category",children:"Catégorie *"}),e.jsxs(F,{"data-hercules-id":"src/pages/skills/_components/CreateSkillDialog.tsx:97:12","data-hercules-name":"Select",value:c,onValueChange:u,children:[e.jsx(V,{"data-hercules-id":"src/pages/skills/_components/CreateSkillDialog.tsx:98:14","data-hercules-name":"SelectTrigger",id:"category",children:e.jsx(q,{"data-hercules-id":"src/pages/skills/_components/CreateSkillDialog.tsx:99:16","data-hercules-name":"SelectValue",placeholder:"Sélectionnez une catégorie"})}),e.jsx(U,{"data-hercules-id":"src/pages/skills/_components/CreateSkillDialog.tsx:101:14","data-hercules-name":"SelectContent",children:Object.entries(M).map(([d,k])=>e.jsx(A,{"data-hercules-id":"src/pages/skills/_components/CreateSkillDialog.tsx:103:18","data-hercules-name":"SelectItem",value:d,children:k},d))})]})]}),e.jsxs("div",{"data-hercules-id":"src/pages/skills/_components/CreateSkillDialog.tsx:112:10","data-hercules-name":"div",className:"space-y-2",children:[e.jsx(j,{"data-hercules-id":"src/pages/skills/_components/CreateSkillDialog.tsx:113:12","data-hercules-name":"Label",htmlFor:"description",children:"Description"}),e.jsx(Z,{"data-hercules-id":"src/pages/skills/_components/CreateSkillDialog.tsx:114:12","data-hercules-name":"Textarea",id:"description",placeholder:"Décrivez cette compétence...",value:p,onChange:d=>r(d.target.value),rows:4})]}),e.jsxs("div",{"data-hercules-id":"src/pages/skills/_components/CreateSkillDialog.tsx:123:10","data-hercules-name":"div",className:"flex justify-end gap-2",children:[e.jsx(f,{"data-hercules-id":"src/pages/skills/_components/CreateSkillDialog.tsx:124:12","data-hercules-name":"Button",type:"button",variant:"outline",onClick:()=>i(!1),children:"Annuler"}),e.jsx(f,{"data-hercules-id":"src/pages/skills/_components/CreateSkillDialog.tsx:127:12","data-hercules-name":"Button",type:"submit",disabled:v,children:v?"Création...":"Créer"})]})]})]})})}function ke({open:D,onOpenChange:i}){const h=w(S.skills.getSkillsMatrix,D?{}:"skip"),x=t=>{switch(t){case"beginner":return"bg-gray-500";case"intermediate":return"bg-blue-500";case"advanced":return"bg-teal-500";case"expert":return"bg-green-500";default:return"bg-gray-500"}};return e.jsx(H,{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:45:4","data-hercules-name":"Dialog",open:D,onOpenChange:i,children:e.jsxs(R,{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:46:6","data-hercules-name":"DialogContent",className:"max-h-[90vh] max-w-[90vw] overflow-y-auto lg:max-w-6xl",children:[e.jsxs(G,{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:47:8","data-hercules-name":"DialogHeader",children:[e.jsx($,{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:48:10","data-hercules-name":"DialogTitle",children:"Matrice des compétences de l'équipe"}),e.jsx(Q,{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:49:10","data-hercules-name":"DialogDescription",children:"Vue d'ensemble des compétences de tous les employés"})]}),h?h.length===0?e.jsx("div",{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:60:10","data-hercules-name":"div",className:"py-12 text-center text-muted-foreground",children:"Aucune compétence enregistrée pour le moment"}):e.jsx("div",{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:64:10","data-hercules-name":"div",className:"space-y-4",children:h.map(t=>{const p=t.skills.reduce((r,c)=>(r[c.category]||(r[c.category]=[]),r[c.category].push(c),r),{});return e.jsxs(N,{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:76:16","data-hercules-name":"Card",children:[e.jsx(I,{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:77:18","data-hercules-name":"CardHeader",className:"pb-3",children:e.jsxs(T,{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:78:20","data-hercules-name":"CardTitle",className:"flex flex-wrap items-center gap-2 text-lg",children:[e.jsx(le,{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:79:22","data-hercules-name":"UserIcon",className:"h-4 w-4"}),t.employee.userName||"Nom non disponible",e.jsx(B,{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:81:22","data-hercules-name":"Badge",variant:"secondary",children:oe[t.employee.employeeType]}),e.jsxs("span",{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:84:22","data-hercules-name":"span",className:"text-sm font-normal text-muted-foreground",children:[t.skills.length," compétence(s)"]})]})}),e.jsx(b,{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:89:18","data-hercules-name":"CardContent",children:t.skills.length===0?e.jsx("p",{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:91:22","data-hercules-name":"p",className:"text-sm text-muted-foreground",children:"Aucune compétence enregistrée"}):e.jsx("div",{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:95:22","data-hercules-name":"div",className:"space-y-3",children:Object.entries(p).map(([r,c])=>e.jsxs("div",{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:97:26","data-hercules-name":"div",className:"rounded-lg border bg-muted/30 p-3",children:[e.jsx("div",{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:98:28","data-hercules-name":"div",className:"mb-2 font-medium text-sm",children:M[r]||r}),e.jsx("div",{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:101:28","data-hercules-name":"div",className:"flex flex-wrap gap-2",children:c.map(u=>e.jsxs(B,{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:103:32","data-hercules-name":"Badge",className:`${x(u.proficiencyLevel)} gap-1.5`,children:[e.jsx("span",{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:107:34","data-hercules-name":"span",children:u.name}),e.jsx("span",{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:108:34","data-hercules-name":"span",className:"text-xs opacity-90",children:J[u.proficiencyLevel]})]},u._id))})]},r))})})]},t.employee._id)})}):e.jsxs("div",{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:55:10","data-hercules-name":"div",className:"space-y-4",children:[e.jsx(E,{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:56:12","data-hercules-name":"Skeleton",className:"h-32 w-full"}),e.jsx(E,{"data-hercules-id":"src/pages/skills/_components/SkillsMatrixDialog.tsx:57:12","data-hercules-name":"Skeleton",className:"h-32 w-full"})]})]})})}function je(){const{user:D}=ie(),i=w(S.skills.getEmployeeSkills,{}),h=w(S.skills.getAllSkills,{}),x=O(S.skills.removeEmployeeSkill),[t,p]=n.useState(!1),[r,c]=n.useState(!1),[u,v]=n.useState(!1),C=w(S.employees.getCurrentEmployee,{}),y=w(S.users.getCurrentUser,{}),d=ne(y?.role),k=async l=>{try{await x({employeeSkillId:l}),g.success("Compétence retirée avec succès")}catch(o){if(o instanceof Y){const{message:a}=o.data;g.error(a)}else g.error("Erreur lors du retrait de la compétence")}},_=i?.reduce((l,o)=>{const a=o.skill.category;return l[a]||(l[a]=[]),l[a].push(o),l},{}),z=l=>{switch(l){case"beginner":return"bg-gray-500";case"intermediate":return"bg-blue-500";case"advanced":return"bg-teal-500";case"expert":return"bg-green-500";default:return"bg-gray-500"}};return!i||!h||!C?e.jsx("div",{"data-hercules-id":"src/pages/skills/page.tsx:84:6","data-hercules-name":"div",className:"flex-1 bg-background",children:e.jsx("div",{"data-hercules-id":"src/pages/skills/page.tsx:85:8","data-hercules-name":"div",className:"mx-auto max-w-7xl px-4 py-8",children:e.jsxs("div",{"data-hercules-id":"src/pages/skills/page.tsx:86:10","data-hercules-name":"div",className:"space-y-4",children:[e.jsx(E,{"data-hercules-id":"src/pages/skills/page.tsx:87:12","data-hercules-name":"Skeleton",className:"h-32 w-full"}),e.jsx(E,{"data-hercules-id":"src/pages/skills/page.tsx:88:12","data-hercules-name":"Skeleton",className:"h-64 w-full"})]})})}):e.jsxs("div",{"data-hercules-id":"src/pages/skills/page.tsx:96:4","data-hercules-name":"div",className:"flex-1 bg-background",children:[e.jsxs("div",{"data-hercules-id":"src/pages/skills/page.tsx:98:6","data-hercules-name":"div",className:"mx-auto max-w-7xl px-4 py-8",children:[e.jsxs("div",{"data-hercules-id":"src/pages/skills/page.tsx:100:8","data-hercules-name":"div",className:"mb-8 flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{"data-hercules-id":"src/pages/skills/page.tsx:101:10","data-hercules-name":"div",className:"flex items-center gap-3",children:[e.jsx("div",{"data-hercules-id":"src/pages/skills/page.tsx:102:12","data-hercules-name":"div",className:"flex h-12 w-12 items-center justify-center rounded-xl bg-primary/10",children:e.jsx(K,{"data-hercules-id":"src/pages/skills/page.tsx:103:14","data-hercules-name":"BrainIcon",className:"h-6 w-6 text-primary"})}),e.jsxs("div",{"data-hercules-id":"src/pages/skills/page.tsx:105:12","data-hercules-name":"div",children:[e.jsx("h1",{"data-hercules-id":"src/pages/skills/page.tsx:106:14","data-hercules-name":"h1",className:"text-3xl font-bold",children:"Mes compétences"}),e.jsx("p",{"data-hercules-id":"src/pages/skills/page.tsx:107:14","data-hercules-name":"p",className:"text-muted-foreground",children:"Gérez et développez vos compétences professionnelles"})]})]}),e.jsxs("div",{"data-hercules-id":"src/pages/skills/page.tsx:110:10","data-hercules-name":"div",className:"flex flex-wrap gap-2",children:[e.jsxs(f,{"data-hercules-id":"src/pages/skills/page.tsx:111:12","data-hercules-name":"Button",onClick:()=>p(!0),children:[e.jsx(W,{"data-hercules-id":"src/pages/skills/page.tsx:112:14","data-hercules-name":"PlusIcon",className:"mr-2 h-4 w-4"}),"Ajouter une compétence"]}),d&&e.jsxs(e.Fragment,{children:[e.jsxs(f,{"data-hercules-id":"src/pages/skills/page.tsx:117:16","data-hercules-name":"Button",variant:"outline",onClick:()=>c(!0),children:[e.jsx(ue,{"data-hercules-id":"src/pages/skills/page.tsx:118:18","data-hercules-name":"PlusCircleIcon",className:"mr-2 h-4 w-4"}),"Créer compétence"]}),e.jsxs(f,{"data-hercules-id":"src/pages/skills/page.tsx:121:16","data-hercules-name":"Button",variant:"outline",onClick:()=>v(!0),children:[e.jsx(me,{"data-hercules-id":"src/pages/skills/page.tsx:122:18","data-hercules-name":"GridIcon",className:"mr-2 h-4 w-4"}),"Matrice des compétences"]})]})]})]}),e.jsxs("div",{"data-hercules-id":"src/pages/skills/page.tsx:131:8","data-hercules-name":"div",className:"mb-8 grid gap-4 md:grid-cols-3",children:[e.jsxs(N,{"data-hercules-id":"src/pages/skills/page.tsx:132:10","data-hercules-name":"Card",children:[e.jsx(I,{"data-hercules-id":"src/pages/skills/page.tsx:133:12","data-hercules-name":"CardHeader",className:"pb-3",children:e.jsx(T,{"data-hercules-id":"src/pages/skills/page.tsx:134:14","data-hercules-name":"CardTitle",className:"text-sm font-medium text-muted-foreground",children:"Total des compétences"})}),e.jsx(b,{"data-hercules-id":"src/pages/skills/page.tsx:136:12","data-hercules-name":"CardContent",children:e.jsx("div",{"data-hercules-id":"src/pages/skills/page.tsx:137:14","data-hercules-name":"div",className:"text-3xl font-bold",children:i.length})})]}),e.jsxs(N,{"data-hercules-id":"src/pages/skills/page.tsx:140:10","data-hercules-name":"Card",children:[e.jsx(I,{"data-hercules-id":"src/pages/skills/page.tsx:141:12","data-hercules-name":"CardHeader",className:"pb-3",children:e.jsx(T,{"data-hercules-id":"src/pages/skills/page.tsx:142:14","data-hercules-name":"CardTitle",className:"text-sm font-medium text-muted-foreground",children:"Compétences expertes"})}),e.jsx(b,{"data-hercules-id":"src/pages/skills/page.tsx:144:12","data-hercules-name":"CardContent",children:e.jsx("div",{"data-hercules-id":"src/pages/skills/page.tsx:145:14","data-hercules-name":"div",className:"text-3xl font-bold",children:i.filter(l=>l.proficiencyLevel==="expert").length})})]}),e.jsxs(N,{"data-hercules-id":"src/pages/skills/page.tsx:150:10","data-hercules-name":"Card",children:[e.jsx(I,{"data-hercules-id":"src/pages/skills/page.tsx:151:12","data-hercules-name":"CardHeader",className:"pb-3",children:e.jsx(T,{"data-hercules-id":"src/pages/skills/page.tsx:152:14","data-hercules-name":"CardTitle",className:"text-sm font-medium text-muted-foreground",children:"Compétences disponibles"})}),e.jsx(b,{"data-hercules-id":"src/pages/skills/page.tsx:154:12","data-hercules-name":"CardContent",children:e.jsx("div",{"data-hercules-id":"src/pages/skills/page.tsx:155:14","data-hercules-name":"div",className:"text-3xl font-bold",children:h.length})})]})]}),i.length===0?e.jsx(N,{"data-hercules-id":"src/pages/skills/page.tsx:162:10","data-hercules-name":"Card",children:e.jsxs(b,{"data-hercules-id":"src/pages/skills/page.tsx:163:12","data-hercules-name":"CardContent",className:"flex flex-col items-center justify-center py-16",children:[e.jsx(K,{"data-hercules-id":"src/pages/skills/page.tsx:164:14","data-hercules-name":"BrainIcon",className:"mb-4 h-12 w-12 text-muted-foreground"}),e.jsx("h3",{"data-hercules-id":"src/pages/skills/page.tsx:165:14","data-hercules-name":"h3",className:"mb-2 text-lg font-semibold",children:"Aucune compétence enregistrée"}),e.jsx("p",{"data-hercules-id":"src/pages/skills/page.tsx:166:14","data-hercules-name":"p",className:"mb-4 text-center text-muted-foreground",children:"Commencez à construire votre profil de compétences"}),e.jsxs(f,{"data-hercules-id":"src/pages/skills/page.tsx:169:14","data-hercules-name":"Button",onClick:()=>p(!0),children:[e.jsx(W,{"data-hercules-id":"src/pages/skills/page.tsx:170:16","data-hercules-name":"PlusIcon",className:"mr-2 h-4 w-4"}),"Ajouter votre première compétence"]})]})}):e.jsx("div",{"data-hercules-id":"src/pages/skills/page.tsx:176:10","data-hercules-name":"div",className:"space-y-6",children:Object.entries(_||{}).map(([l,o])=>e.jsxs(N,{"data-hercules-id":"src/pages/skills/page.tsx:178:14","data-hercules-name":"Card",children:[e.jsxs(I,
1{"data-hercules-id":"src/pages/skills/page.tsx:179:16","data-hercules-name":"CardHeader",children:[e.jsxs(T,{"data-hercules-id":"src/pages/skills/page.tsx:180:18","data-hercules-name":"CardTitle",className:"flex items-center gap-2",children:[M[l]||l,e.jsx(B,{"data-hercules-id":"src/pages/skills/page.tsx:182:20","data-hercules-name":"Badge",variant:"secondary",children:o.length})]}),e.jsxs(de,{"data-hercules-id":"src/pages/skills/page.tsx:184:18","data-hercules-name":"CardDescription",children:[o.filter(a=>a.proficiencyLevel==="expert").length," expert(s) ·"," ",o.filter(a=>a.proficiencyLevel==="advanced").length," avancé(s)"]})]}),e.jsx(b,{"data-hercules-id":"src/pages/skills/page.tsx:189:16","data-hercules-name":"CardContent",children:e.jsx("div",{"data-hercules-id":"src/pages/skills/page.tsx:190:18","data-hercules-name":"div",className:"space-y-3",children:o.map(a=>e.jsxs("div",{"data-hercules-id":"src/pages/skills/page.tsx:192:22","data-hercules-name":"div",className:"flex flex-col gap-3 rounded-lg border bg-card p-4 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{"data-hercules-id":"src/pages/skills/page.tsx:196:24","data-hercules-name":"div",className:"flex-1",children:[e.jsxs("div",{"data-hercules-id":"src/pages/skills/page.tsx:197:26","data-hercules-name":"div",className:"mb-2 flex flex-wrap items-center gap-2",children:[e.jsx("h4",{"data-hercules-id":"src/pages/skills/page.tsx:198:28","data-hercules-name":"h4",className:"font-semibold",children:a.skill.name}),e.jsx(B,{"data-hercules-id":"src/pages/skills/page.tsx:199:28","data-hercules-name":"Badge",className:z(a.proficiencyLevel),children:J[a.proficiencyLevel]}),a.certificationUrl&&e.jsxs(B,{"data-hercules-id":"src/pages/skills/page.tsx:203:30","data-hercules-name":"Badge",variant:"outline",className:"gap-1",children:[e.jsx(X,{"data-hercules-id":"src/pages/skills/page.tsx:204:32","data-hercules-name":"ExternalLinkIcon",className:"h-3 w-3"}),"Certifié"]})]}),a.skill.description&&e.jsx("p",{"data-hercules-id":"src/pages/skills/page.tsx:210:28","data-hercules-name":"p",className:"mb-2 text-sm text-muted-foreground",children:a.skill.description}),e.jsxs("div",{"data-hercules-id":"src/pages/skills/page.tsx:214:26","data-hercules-name":"div",className:"flex flex-wrap gap-4 text-xs text-muted-foreground",children:[a.acquiredDate&&e.jsxs("span",{"data-hercules-id":"src/pages/skills/page.tsx:216:30","data-hercules-name":"span",children:["Acquis: ",new Date(a.acquiredDate).toLocaleDateString("fr-FR")]}),a.lastAssessedDate&&e.jsxs("span",{"data-hercules-id":"src/pages/skills/page.tsx:219:30","data-hercules-name":"span",children:["Évalué: ",new Date(a.lastAssessedDate).toLocaleDateString("fr-FR")]})]}),a.notes&&e.jsx("p",{"data-hercules-id":"src/pages/skills/page.tsx:223:28","data-hercules-name":"p",className:"mt-2 text-sm text-muted-foreground italic",children:a.notes}),a.certificationUrl&&e.jsxs("a",{"data-hercules-id":"src/pages/skills/page.tsx:228:28","data-hercules-name":"a",href:a.certificationUrl,target:"_blank",rel:"noopener noreferrer",className:"mt-2 inline-flex items-center gap-1 text-sm text-primary hover:underline",children:["Voir la certification",e.jsx(X,{"data-hercules-id":"src/pages/skills/page.tsx:235:30","data-hercules-name":"ExternalLinkIcon",className:"h-3 w-3"})]})]}),e.jsx(f,{"data-hercules-id":"src/pages/skills/page.tsx:239:24","data-hercules-name":"Button",variant:"ghost",size:"sm",onClick:()=>k(a._id),children:e.jsx(he,{"data-hercules-id":"src/pages/skills/page.tsx:244:26","data-hercules-name":"TrashIcon",className:"h-4 w-4"})})]},a._id))})})]},l))})]}),e.jsx(ge,{"data-hercules-id":"src/pages/skills/page.tsx:257:6","data-hercules-name":"AddSkillDialog",open:t,onOpenChange:p}),d&&e.jsxs(e.Fragment,{children:[e.jsx(xe,{"data-hercules-id":"src/pages/skills/page.tsx:260:10","data-hercules-name":"CreateSkillDialog",open:r,onOpenChange:c}),e.jsx(ke,{"data-hercules-id":"src/pages/skills/page.tsx:261:10","data-hercules-name":"SkillsMatrixDialog",open:u,onOpenChange:v})]})]})}function Me(){return e.jsxs(e.Fragment,{children:[e.jsx(te,{"data-hercules-id":"src/pages/skills/page.tsx:271:6","data-hercules-name":"Unauthenticated",children:e.jsx("div",{"data-hercules-id":"src/pages/skills/page.tsx:272:8","data-hercules-name":"div",className:"flex min-h-screen items-center justify-center",children:e.jsx("p",{"data-hercules-id":"src/pages/skills/page.tsx:273:10","data-hercules-name":"p",className:"text-muted-foreground",children:"Veuillez vous connecter pour accéder à cette page"})})}),e.jsx(re,{"data-hercules-id":"src/pages/skills/page.tsx:276:6","data-hercules-name":"AuthLoading",children:e.jsx("div",{"data-hercules-id":"src/pages/skills/page.tsx:277:8","data-hercules-name":"div",className:"flex-1 bg-background",children:e.jsx("div",{"data-hercules-id":"src/pages/skills/page.tsx:278:10","data-hercules-name":"div",className:"mx-auto max-w-7xl px-4 py-8",children:e.jsx(E,{"data-hercules-id":"src/pages/skills/page.tsx:279:12","data-hercules-name":"Skeleton",className:"h-64 w-full"})})})}),e.jsx(ce,{"data-hercules-id":"src/pages/skills/page.tsx:283:6","data-hercules-name":"Authenticated",children:e.jsx(je,{"data-hercules-id":"src/pages/skills/page.tsx:284:8","data-hercules-name":"SkillsPageInner"})})]})}export{Me 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.