1import{d as q,r as p,j as e,B as P,h as I,F as V,I as z,s as v,C as K,b as B,u as $}from"./index-BoFVPuOd.js";import{a as G}from"./MainLayout-gBNgWXVy.js";import{L}from"./label-BboA7h2Z.js";import{C as W}from"./calendar-B0pSNupN.js";import{P as J,a as Q,b as X}from"./popover-DjL1G5-0.js";import{B as Y}from"./badge-D3W3qvfC.js";import{S as O}from"./square-pen-D32ZlsYN.js";import{C as A}from"./calendar-DDO6mnXP.js";import{P as E}from"./phone-BT5maXl2.js";import{U as Z}from"./users-DbKLMPFp.js";import{U as ee}from"./user-check-DKab49rF.js";import{A as T}from"./award-DZgqoScb.js";import{U as F}from"./user-plus-BToe1_iT.js";import{D as se}from"./handshake--vgvFCsc.js";import{M as te}from"./minus-DxCBWvtm.js";import{P as R}from"./plus-CjyXsGHX.js";import{f as y,a as D}from"./format-CdqAu88-.js";import{f as k}from"./fr-C3Y9AeGl.js";import{T as ae,a as re,b as H,c as _,d as ne,e as w}from"./table-CfXaqAVn.js";import{A as ie,b as oe,c as le,d as ce,e as de,f as me,g as ue,h as pe}from"./alert-dialog-CKmG3EhB.js";import{T as xe}from"./trash-2-2pIv2yrG.js";import{D as he,a as fe,b as be,c as ge}from"./dialog-BB2ym9HW.js";import{A as je}from"./arrow-left-Co9f9v29.js";import{C as U}from"./clipboard-list-DYWIuU44.js";import{H as ve}from"./history-2WKst1ie.js";import"./separator-D6S64BVN.js";import"./sheet-l2ka7kMK.js";import"./index-DCX7V34G.js";import"./index-BTrAQRF-.js";import"./skeleton-CfGy_qNX.js";import"./cf-icon-CEM9NPdw.js";import"./collapsible-D3BurnuB.js";import"./useQuery-BABFfo6s.js";import"./chevron-down-DJXWNMXM.js";import"./house-DkgcuR6V.js";import"./chart-column-B0JD3Nnr.js";import"./trending-up-d9o-2LNK.js";import"./receipt-DrjEe41K.js";import"./shield-check-DZ02axz7.js";import"./file-check-C8dkl53p.js";import"./brain-Q4dDRr3T.js";import"./gift-BxZk8HXm.js";import"./message-circle-DCfUAv4b.js";import"./calculator-BzlrFGwR.js";import"./briefcase-DZMSzvAR.js";import"./heart-Bg9rHoC6.js";import"./shield-plus-DaEIZ97c.js";import"./globe-Bpy2vP5B.js";import"./wallet-Brr_E7LG.js";import"./heart-handshake-L8Bbhh_q.js";import"./building-2-DUGlc0qn.js";import"./calendar-clock-CzHfSyM5.js";import"./folder-open-BLISKIxx.js";import"./target-MMOivYD_.js";import"./trophy-D7Hjo0-8.js";import"./bell-Y00fW2u2.js";import"./book-open-BVstjtnh.js";import"./settings-COomVANW.js";import"./upload-xB_FMAQ8.js";import"./arrow-right-BiHmjM8X.js";import"./cake-BO-lO6KK.js";import"./zap-DEWKu702.js";import"./flame-DFnEMCIG.js";import"./star-BEl9zg0K.js";import"./zap-off-e2BeaQ7X.js";import"./textarea-ovHWhnPy.js";import"./send-Bnvn-L1S.js";import"./TypewriterText-CEm97WOL.js";import"./isSameDay-D0A1K3bm.js";import"./subDays-BKHkimYW.js";import"./addDays-Bou5VxlY.js";import"./en-US-BfEk7t4x.js";import"./addMonths-Bnm9tCji.js";import"./differenceInCalendarMonths-UX0c6y7x.js";import"./startOfMonth-M7g5KiWH.js";import"./endOfWeek-rVubT9Vb.js";import"./addYears-fmGEX0F0.js";import"./endOfMonth-DL4wU5gQ.js";import"./chevron-left-K-BbFJbc.js";import"./chevron-right-B9TtHnSB.js";const N=({value:r,onChange:o,label:x,icon:m,iconColor:j="text-accent",min:f=0,max:h,step:l=1,quickAdd:d})=>{const s=i=>{let t=Math.max(f,i);return h!==void 0&&(t=Math.min(h,t)),t},n=i=>{if(i.shiftKey&&(i.key==="ArrowUp"||i.key==="ArrowDown")){i.preventDefault();const t=i.key==="ArrowUp"?10:-10;o(s(r+t))}};return e.jsxs("div",{className:"p-4 rounded-2xl bg-white/5 backdrop-blur-sm border border-white/10 hover:border-accent/30 transition-all space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[m&&e.jsx(m,{className:I("w-5 h-5 shrink-0",j)}),e.jsx("span",{className:"text-sm font-medium text-foreground/90 truncate",children:x})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{type:"button",tabIndex:-1,onClick:()=>o(s(r-l)),className:"w-8 h-8 rounded-full bg-white/10 hover:bg-white/20 flex items-center justify-center transition-colors",children:e.jsx(te,{className:"w-4 h-4"})}),e.jsx("input",{type:"number",inputMode:"numeric",min:f,max:h,step:l,value:r===0?"":r,placeholder:"0",onF
1ocus:i=>i.target.select(),onKeyDown:n,onChange:i=>{const t=i.target.value;if(t==="")return o(0);const c=parseInt(t,10);isNaN(c)||o(s(c))},className:"w-16 text-center font-semibold text-lg tabular-nums bg-transparent border border-white/10 focus:border-accent/60 focus:outline-none rounded-lg h-9 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"}),e.jsx("button",{type:"button",tabIndex:-1,onClick:()=>o(s(r+l)),className:"w-8 h-8 rounded-full bg-accent/20 hover:bg-accent/30 text-accent flex items-center justify-center transition-colors",children:e.jsx(R,{className:"w-4 h-4"})})]})]}),d&&d.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 pl-8",children:d.map(i=>e.jsxs("button",{type:"button",tabIndex:-1,onClick:()=>o(s(r+i)),className:"px-3 py-1 text-xs font-medium rounded-full bg-accent/10 hover:bg-accent/20 text-accent border border-accent/20 transition-colors",children:["+",i]},i))})]})},S=({title:r,icon:o,iconColor:x="text-accent",children:m})=>e.jsxs("div",{className:"p-5 rounded-3xl bg-white/10 backdrop-blur-xl border border-white/20 shadow-lg",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"p-2 rounded-xl bg-white/10",children:e.jsx(o,{className:I("w-5 h-5",x)})}),e.jsx("h4",{className:"font-semibold text-lg",children:r})]}),m]}),M=({id:r,label:o,value:x,onChange:m})=>e.jsxs("div",{className:"space-y-2",children:[e.jsx(L,{htmlFor:r,className:"text-sm text-foreground/70",children:o}),e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-muted-foreground font-medium",children:"CHF"}),e.jsx(z,{id:r,type:"number",step:"0.01",min:"0",value:x||"",onChange:j=>m(parseFloat(j.target.value)||0),className:"pl-14 bg-white/5 border-white/10 focus:border-accent/50 rounded-xl h-12"})]})]}),_e=({editingWeek:r,onKPIUpdated:o})=>{const{toast:x}=q(),[m,j]=p.useState(!1),[f,h]=p.useState(!1),[l,d]=p.useState(r),[s,n]=p.useState({appels_passes:0,rdv_poses:0,rdv_tenus:0,dossiers_transmis:0,signatures:0,nb_recommandations_obtenues:0,montant_3e_pilier:0,montant_libre_passage:0,montant_lamal:0}),i=s.rdv_poses>0?Math.round(s.rdv_tenus/s.rdv_poses*100):0,t=s.rdv_tenus>0?Math.round(s.signatures/s.rdv_tenus*100):0,c=s.montant_3e_pilier+s.montant_libre_passage+s.montant_lamal;p.useEffect(()=>{(async()=>{if(!l){h(!1);return}const{data:{user:b}}=await v.auth.getUser();if(!b)return;const C=D(l,{weekStartsOn:1}),{data:g}=await v.from("weekly_kpis").select("*").eq("user_id",b.id).eq("week_start",y(C,"yyyy-MM-dd")).maybeSingle();g?(n({appels_passes:g.appels_passes||0,rdv_poses:g.rdv_poses||0,rdv_tenus:g.rdv_tenus||0,dossiers_transmis:g.dossiers_transmis||0,signatures:g.signatures||0,nb_recommandations_obtenues:g.nb_recommandations_obtenues||0,montant_3e_pilier:g.montant_3e_pilier||0,montant_libre_passage:g.montant_libre_passage||0,montant_lamal:g.montant_lamal||0}),h(!0)):(n({appels_passes:0,rdv_poses:0,rdv_tenus:0,dossiers_transmis:0,signatures:0,nb_recommandations_obtenues:0,montant_3e_pilier:0,montant_libre_passage:0,montant_lamal:0}),h(!1))})()},[l]),p.useEffect(()=>{r&&d(r)},[r]);const u=async a=>{if(a.preventDefault(),!l){x({title:"Erreur",description:"Veuillez sélectionner une semaine",variant:"destructive"});return}j(!0);try{const{data:{user:b}}=await v.auth.getUser();if(!b)throw new Error("Non authentifié");const C=D(l,{weekStartsOn:1}),{error:g}=await v.from("weekly_kpis").upsert({user_id:b.id,week_start:y(C,"yyyy-MM-dd"),appels_passes:s.appels_passes,rdv_poses:s.rdv_poses,rdv_tenus:s.rdv_tenus,dossiers_transmis:s.dossiers_transmis,signatures:s.signatures,nb_recommandations_obtenues:s.nb_recommandations_obtenues,montant_3e_pilier:s.montant_3e_pilier,montant_libre_passage:s.montant_libre_passage,montant_lamal:s.montant_lamal});if(g)throw g;x({title:f?"â
KPIs mis à jour":"â
KPIs enregistrés",description:f?"Vos indicateurs ont été mis à jour avec succès":"Vos indicateurs ont été sauvegardés avec succès"}),f||(n({appels_passes:0,rdv_poses:0,rdv_tenus:0,dossiers_transmis:0,signatures:0,nb_recommandations_obtenues:0,montant_3e_pilier:0,montant_libre_passage:0,montant_lamal:0}),d(void 0)),o?.()}catch(b){x({title:"Erreur",description:b.message,variant:"destructive"})}finally{j(!1)}};return e.jsxs("form",{onSubmit:u,className:"space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h3",{className:"text-xl font-semibold",children:f?"Modifier mes KPIs":"Saisir mes KPIs"}),f&&e.jsxs(Y,{variant:"secondary",className:"gap-1",children:[e.jsx(O,{className:"w-3 h-3"}),"Modification"]})]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:f?`âï¸ Vous modifiez les KPIs de la semaine du ${l?y(D(l,{weekStartsOn:1}
1),"dd MMMM yyyy",{locale:k}):""}`:"ð Renseignez vos indicateurs pour la semaine sélectionnée"})]}),e.jsxs("div",{className:"p-5 rounded-3xl bg-white/10 backdrop-blur-xl border border-white/20 shadow-lg",children:[e.jsxs(L,{htmlFor:"week",className:"flex items-center gap-2 text-foreground/80 mb-3",children:[e.jsx(A,{className:"w-5 h-5 text-accent"}),"Semaine du"]}),e.jsxs(J,{children:[e.jsx(Q,{asChild:!0,children:e.jsxs(P,{variant:"outline",className:I("w-full justify-start text-left font-normal bg-white/5 border-white/10 rounded-xl h-12",!l&&"text-muted-foreground"),children:[e.jsx(A,{className:"mr-2 h-4 w-4"}),l?`Semaine du ${y(D(l,{weekStartsOn:1}),"d MMMM yyyy",{locale:k})}`:"Choisir une semaine"]})}),e.jsx(X,{className:"w-auto p-0",align:"start",children:e.jsx(W,{mode:"single",selected:l,onSelect:a=>{if(a){const b=D(a,{weekStartsOn:1});d(b)}else d(void 0)},locale:k,disabled:a=>a>new Date,className:"pointer-events-auto"})})]})]}),e.jsxs(S,{title:"Activité",icon:E,iconColor:"text-blue-500",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx(N,{value:s.appels_passes,onChange:a=>n({...s,appels_passes:a}),label:"Appels effectués",icon:E,iconColor:"text-blue-400",quickAdd:[5,10,25]}),e.jsx(N,{value:s.rdv_poses,onChange:a=>n({...s,rdv_poses:a}),label:"RDV fixés",icon:Z,iconColor:"text-blue-400",quickAdd:[1,5]}),e.jsx(N,{value:s.rdv_tenus,onChange:a=>n({...s,rdv_tenus:a}),label:"RDV tenus",icon:ee,iconColor:"text-green-400",max:s.rdv_poses||void 0}),e.jsx(N,{value:s.dossiers_transmis,onChange:a=>n({...s,dossiers_transmis:a}),label:"Dossiers transmis",icon:V,iconColor:"text-cyan-400"})]}),s.rdv_poses>0&&e.jsx("div",{className:"mt-4 p-3 rounded-xl bg-accent/10 border border-accent/20",children:e.jsxs("p",{className:"text-sm font-medium text-accent",children:["Taux de présence : ",e.jsxs("span",{className:"text-lg",children:[i,"%"]})]})})]}),e.jsxs(S,{title:"Performance",icon:T,iconColor:"text-accent",children:[e.jsx("div",{className:"space-y-3",children:e.jsx(N,{value:s.signatures,onChange:a=>n({...s,signatures:a}),label:"Clients signés",icon:T,iconColor:"text-accent"})}),s.rdv_tenus>0&&e.jsx("div",{className:"mt-4 p-3 rounded-xl bg-primary/10 border border-primary/20",children:e.jsxs("p",{className:"text-sm font-medium text-primary",children:["Taux de conversion : ",e.jsxs("span",{className:"text-lg",children:[t,"%"]})]})})]}),e.jsx(S,{title:"Parrainage",icon:F,iconColor:"text-emerald-500",children:e.jsx("div",{className:"space-y-3",children:e.jsx(N,{value:s.nb_recommandations_obtenues,onChange:a=>n({...s,nb_recommandations_obtenues:a}),label:"Filleuls obtenus",icon:F,iconColor:"text-emerald-400"})})}),e.jsxs(S,{title:"Production (CHF)",icon:se,iconColor:"text-green-500",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsx(M,{id:"montant-3p",label:"3e Pilier",value:s.montant_3e_pilier,onChange:a=>n({...s,montant_3e_pilier:a})}),e.jsx(M,{id:"montant-lp",label:"Libre Passage",value:s.montant_libre_passage,onChange:a=>n({...s,montant_libre_passage:a})}),e.jsx(M,{id:"montant-lamal",label:"Assurance Maladie",value:s.montant_lamal,onChange:a=>n({...s,montant_lamal:a})})]}),c>0&&e.jsx("div",{className:"mt-4 p-3 rounded-xl bg-green-500/10 border border-green-500/20",children:e.jsxs("p",{className:"text-sm font-medium text-green-400",children:["Production totale : ",e.jsxs("span",{className:"text-lg",children:[c.toLocaleString("fr-CH")," CHF"]})]})})]}),e.jsx(P,{type:"submit",className:"w-full h-12 rounded-xl bg-gradient-to-r from-accent to-accent/80 hover:opacity-90 font-semibold",disabled:m,children:m?"Enregistrement...":f?"Mettre à jour":"Enregistrer"})]})},we=({onEdit:r,onDeleted:o})=>{const{toast:x}=q(),[m,j]=p.useState([]),[f,h]=p.useState(!0),[l,d]=p.useState(!1),[s,n]=p.useState(null);p.useEffect(()=>{(async()=>{try{const{data:{user:c}}=await v.auth.getUser();if(!c)return;const{data:u}=await v.from("weekly_kpis").select("week_start, appels_passes, rdv_poses, rdv_tenus, dossiers_transmis").eq("user_id",c.id).order("week_start",{ascending:!1}).limit(10);j(u||[])}catch(c){console.error("Erreur lors du chargement de l'historique:",c)}finally{h(!1)}})()},[]);const i=async()=>
1{if(s)try{const{data:{user:t}}=await v.auth.getUser();if(!t)return;const{error:c}=await v.from("weekly_kpis").delete().eq("user_id",t.id).eq("week_start",s);if(c)throw c;x({title:"ðï¸ KPIs supprimés",description:"Les KPIs de cette semaine ont été supprimés avec succès"}),j(m.filter(u=>u.week_start!==s)),o&&o()}catch(t){x({title:"Erreur",description:t.message,variant:"destructive"})}finally{d(!1),n(null)}};return f?e.jsx(K,{className:"p-6",children:e.jsx("div",{className:"flex items-center justify-center h-40",children:e.jsx("div",{className:"w-8 h-8 border-4 border-accent border-t-transparent rounded-full animate-spin"})})}):e.jsxs(K,{className:"p-6",children:[e.jsx("h3",{className:"text-xl font-semibold mb-4",children:"Historique des 10 dernières semaines"}),m.length===0?e.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"Aucune donnée disponible"}):e.jsx("div",{className:"overflow-x-auto",children:e.jsxs(ae,{children:[e.jsx(re,{children:e.jsxs(H,{children:[e.jsx(_,{children:"Semaine"}),e.jsx(_,{className:"text-right",children:"Appels"}),e.jsx(_,{className:"text-right",children:"RDV Fixés"}),e.jsx(_,{className:"text-right",children:"RDV Tenus"}),e.jsx(_,{className:"text-right",children:"Taux"}),e.jsx(_,{className:"text-right",children:"Dossiers"}),e.jsx(_,{className:"text-right",children:"Actions"})]})}),e.jsx(ne,{children:m.map(t=>{const c=t.rdv_poses>0?Math.round(t.rdv_tenus/t.rdv_poses*100):0;return e.jsxs(H,{children:[e.jsx(w,{className:"font-medium",children:y(new Date(t.week_start),"dd MMM yyyy",{locale:k})}),e.jsx(w,{className:"text-right",children:t.appels_passes}),e.jsx(w,{className:"text-right",children:t.rdv_poses}),e.jsx(w,{className:"text-right",children:t.rdv_tenus}),e.jsx(w,{className:"text-right",children:e.jsxs("span",{className:c>=70?"text-green-400":c>=50?"text-yellow-400":"text-red-400",children:[c,"%"]})}),e.jsx(w,{className:"text-right",children:t.dossiers_transmis}),e.jsx(w,{className:"text-right",children:e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(P,{variant:"ghost",size:"sm",onClick:()=>r?.(t.week_start),className:"h-8 w-8 p-0",children:e.jsx(O,{className:"h-4 w-4"})}),e.jsx(P,{variant:"ghost",size:"sm",onClick:()=>{n(t.week_start),d(!0)},className:"h-8 w-8 p-0 text-destructive hover:text-destructive",children:e.jsx(xe,{className:"h-4 w-4"})})]})})]},t.week_start)})})]})}),e.jsx(ie,{open:l,onOpenChange:d,children:e.jsxs(oe,{children:[e.jsxs(le,{children:[e.jsx(ce,{children:"Confirmer la suppression"}),e.jsxs(de,{children:["Ãtes-vous sûr de vouloir supprimer les KPIs de la semaine du"," ",s?y(new Date(s),"dd MMMM yyyy",{locale:k}):""," ? Cette action est irréversible."]})]}),e.jsxs(me,{children:[e.jsx(ue,{onClick:()=>n(null),children:"Annuler"}),e.jsx(pe,{onClick:i,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Supprimer"})]})]})})]})},Js=()=>{const r=B(),[o,x]=$(),[m,j]=p.useState(!0),[f,h]=p.useState(!1),[l,d]=p.useState(),[s,n]=p.useState(0);p.useEffect(()=>{(async()=>{const{data:{session:u}}=await v.auth.getSession();if(!u){r("/auth");return}const{data:a}=await v.from("user_roles").select("role").eq("user_id",u.user.id),b=a?.map(C=>C.role)||[];if(!b.includes("assistante")&&!b.includes("admin")&&!b.includes("manager")){r("/dashboard");return}j(!1)})()},[r]),p.useEffect(()=>{!m&&o.get("nouveau")==="1"&&(d(void 0),h(!0),o.delete("nouveau"),x(o,{replace:!0}))},[m,o,x]);const i=u=>{d(new Date(u)),h(!0)},t=()=>{n(u=>u+1),d(void 0),h(!1)},c=()=>{d(void 0),h(!0)};return m?e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-[#0D0D14]",children:e.jsx("div",{className:"w-12 h-12 border-4 border-blue-500 border-t-transparent rounded-full animate-spin"})}):e.jsx(G,{children:e.jsxs("div",{className:"min-h-screen bg-[#0D0D14] text-white",children:[e.jsxs("div",{className:"pointer-events-none fixed inset-0 overflow-hidden",children:[e.jsx("div",{className:"absolute -top-40 -left-40 w-[500px] h-[500px] rounded-full bg-blue-500/10 blur-3xl"}),e.jsx("div",{className:"absolute top-1/3 -right-40 w-[500px] h-[500px] rounded-full bg-purple-500/10 blur-3xl"}),e.jsx("div",{className:"absolute -bottom-40 left-1/3 w-[500px] h-[500px] rounded-full bg-pink-500/10 blur-3xl"})]}),e.jsxs("div",{className:"relative container mx-auto p-4 md:p-8 space-y-6",children:[e.jsxs("div",{className:"flex flex-col md:flex-row md:items-end md:justify-between gap-4",children:[e.jsxs("div",{children:[e.jsxs("button",{onClick:()=>
1r("/assistante/dashboard"),className:"flex items-center gap-1.5 text-xs uppercase tracking-[0.2em] text-white/40 hover:text-white/70 transition mb-2",children:[e.jsx(je,{className:"w-3.5 h-3.5"}),"Retour au dashboard"]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-11 h-11 rounded-2xl bg-gradient-to-br from-[hsl(var(--century-blue))] via-[hsl(var(--century-purple))] to-[hsl(var(--century-pink))] flex items-center justify-center shadow-lg shadow-purple-500/30",children:e.jsx(U,{className:"w-5 h-5 text-white"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold tracking-tight",children:"Mes KPIs"}),e.jsx("p",{className:"text-white/50 text-sm mt-0.5",children:"Historique et saisie de vos indicateurs hebdomadaires"})]})]})]}),e.jsxs(P,{onClick:c,className:"bg-gradient-to-r from-[hsl(var(--century-blue))] via-[hsl(var(--century-purple))] to-[hsl(var(--century-pink))] text-white hover:opacity-90 shadow-lg shadow-purple-500/30",children:[e.jsx(R,{className:"w-4 h-4 mr-2"}),"Saisir un KPI"]})]}),e.jsxs("div",{className:"p-6 rounded-2xl bg-white/5 backdrop-blur-xl border border-white/10",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[e.jsx("div",{className:"w-1 h-6 rounded-full bg-gradient-to-b from-[hsl(var(--century-blue))] to-[hsl(var(--century-pink))]"}),e.jsx(ve,{className:"w-5 h-5 text-white/70"}),e.jsx("h2",{className:"text-lg font-semibold",children:"Historique de mes KPIs"})]}),e.jsx(we,{onEdit:i,onDeleted:()=>n(u=>u+1)},`hist-${s}`)]})]}),e.jsx(he,{open:f,onOpenChange:u=>{h(u),u||d(void 0)},children:e.jsxs(fe,{className:"max-w-3xl max-h-[90vh] overflow-y-auto bg-[#0D0D14] border-white/10 text-white",children:[e.jsx(be,{children:e.jsxs(ge,{className:"flex items-center gap-2",children:[e.jsx(U,{className:"w-5 h-5"}),l?"Modifier un KPI":"Saisir un nouveau KPI"]})}),e.jsx("div",{className:"mt-4",children:e.jsx(_e,{editingWeek:l,onKPIUpdated:t})})]})})]})})};export{Js 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.