PageSourceSearch

https://n01zet.com/_next/static/chunks/3911.1e842dc0df310706.js

js n01zet.com collected 2026-10-02 00:53:45 UTC 35,712 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3911],{3911:(e,t,a)=>{a.d(t,{NaoThemeGrid:()=>V});var s=a(95155),l=a(12115),i=a(83209),n=a(97003),r=a(67812),o=a(52987),c=a(7e3);function d(e){let{theme:t,title:a,description:l,kpis:d,icon:m,buttonText:u,onButtonClick:x,isActive:p=!1}=e;return(0,s.jsxs)(i.Zp,{className:"transition-all duration-300 hover:shadow-lg ".concat(p?"ring-2 ring-primary bg-primary/5":""),children:[(0,s.jsx)(i.aR,{className:"pb-4",children:(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"p-2 bg-primary/10 rounded-lg",children:m}),(0,s.jsxs)("div",{children:[(0,s.jsx)(i.ZB,{className:"text-lg font-semibold",children:a}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:l})]})]}),p&&(0,s.jsx)(r.E,{variant:"secondary",className:"bg-primary/10 text-primary",children:"Actif"})]})}),(0,s.jsxs)(i.Wu,{className:"space-y-4",children:[(0,s.jsx)("div",{className:"grid grid-cols-3 gap-2 text-center",children:d.map((e,t)=>(0,s.jsxs)("div",{className:"p-2 bg-muted/50 rounded-lg",children:[(0,s.jsx)("div",{className:"text-sm font-semibold",children:"eur"===e.format?c.Sc.eur(Number(e.value)):"pct"===e.format?c.Sc.pct(Number(e.value)):c.Sc.raw(e.value)}),(0,s.jsx)("div",{className:"text-xs text-muted-foreground",children:e.label})]},t))}),(0,s.jsxs)(n.$,{className:"w-full",onClick:x,children:[u,(0,s.jsx)(o.A,{className:"w-4 h-4 ml-2"})]})]})]})}var m=a(54679),u=a(90235),x=a(33789),p=a(87060),v=a(17982),h=a(47507),g=a(80647),j=a(1524),b=a(83834);function N(e){let{theme:t,isOpen:a,onClose:r}=e,{addProposition:c}=(0,b.z)(),[d,N]=(0,l.useState)({}),[y,f]=(0,l.useState)(null),C=e=>({remu:"Augmentation g\xe9n\xe9rale des salaires",avantages:"Optimisation du panier d'avantages",gpec:"Plan de formation et d\xe9veloppement",contrats:"Am\xe9lioration des conditions contractuelles",conditions:"Flexibilit\xe9 et conditions de travail",climat:"Programme de r\xe9tention et engagement"})[e]||"Proposition NAO";return(0,s.jsx)(m.lG,{open:a,onOpenChange:r,children:(0,s.jsxs)(m.Cf,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[(0,s.jsx)(m.c7,{children:(0,s.jsxs)(m.L3,{className:"flex items-center gap-2",children:[(0,s.jsx)(g.A,{className:"w-5 h-5"}),"Simulation ",C(t)]})}),(0,s.jsxs)("div",{className:"space-y-6",children:[(()=>{switch(t){case"remu":return(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)(u.J,{children:"Type d'augmentation"}),(0,s.jsxs)(v.z,{value:d.type||"general",onValueChange:e=>N({...d,type:e}),children:[(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(v.C,{value:"general",id:"general"}),(0,s.jsx)(u.J,{htmlFor:"general",children:"Augmentation g\xe9n\xe9rale"})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(v.C,{value:"targeted",id:"targeted"}),(0,s.jsx)(u.J,{htmlFor:"targeted",children:"Augmentation cibl\xe9e par m\xe9tier"})]})]})]}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)(u.J,{children:"Pourcentage d'augmentation"}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(p.A,{value:[d.increasePct||2],onValueChange:e=>{let[t]=e;return N({...d,increasePct:t})},min:0,max:10,step:.5,className:"w-full"}),(0,s.jsxs)("div",{className:"text-center text-sm text-gray-600",children:[d.increasePct||2,"%"]})]})]}),"targeted"===d.type&&(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)(u.J,{children:"M\xe9tiers cibl\xe9s"}),(0,s.jsxs)(h.l6,{value:d.targetRoles||"",onValueChange:e=>N({...d,targetRoles:e}),children:[(0,s.jsx)(h.bq,{children:(0,s.jsx)(h.yv,{placeholder:"S\xe9lectionner les m\xe9tiers"})}),(0,s.jsxs)(h.gC,{children:[(0,s.jsx)(h.eb,{value:"tech",children:"\xc9quipes techniques"}),(0,s.jsx)(h.eb,{value:"sales",children:"\xc9quipes commerciales"}),(0,s.jsx)(h.eb,{value:"support",children:"\xc9quipes support"}),(0,s.jsx)(h.eb,{value:"management",children:"Encadrement"})]})]})]})]});case"avantages":return(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)(u.J,{children:"Configuration du panier"}),(0,s.jsxs)(v.z,{value:d.basketConfig||"realiste",onValueChange:e=>N({...d,basketConfig:e}),children:[(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(v.C,{value:"conservateur",id:"c
1onservateur"}),(0,s.jsx)(u.J,{htmlFor:"conservateur",children:"Panier conservateur"})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(v.C,{value:"realiste",id:"realiste"}),(0,s.jsx)(u.J,{htmlFor:"realiste",children:"Panier r\xe9aliste"})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(v.C,{value:"ambitieux",id:"ambitieux"}),(0,s.jsx)(u.J,{htmlFor:"ambitieux",children:"Panier ambitieux"})]})]})]}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)(u.J,{children:"Co\xfbt actuel du panier (€/an/salari\xe9)"}),(0,s.jsx)(x.p,{type:"number",value:d.currentBasketCost||1200,onChange:e=>N({...d,currentBasketCost:Number(e.target.value)}),placeholder:"1200"})]})]});case"contrats":return(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)(u.J,{children:"Jours de t\xe9l\xe9travail par semaine"}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(p.A,{value:[d.remoteDays||2],onValueChange:e=>{let[t]=e;return N({...d,remoteDays:t})},min:0,max:5,step:1,className:"w-full"}),(0,s.jsxs)("div",{className:"text-center text-sm text-gray-600",children:[d.remoteDays||2," jour",(d.remoteDays||2)>1?"s":""]})]})]}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)(u.J,{children:"Flexibilit\xe9 horaire"}),(0,s.jsxs)(v.z,{value:d.flexibleHours||"none",onValueChange:e=>N({...d,flexibleHours:e}),children:[(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(v.C,{value:"none",id:"none"}),(0,s.jsx)(u.J,{htmlFor:"none",children:"Aucune flexibilit\xe9"})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(v.C,{value:"basic",id:"basic"}),(0,s.jsx)(u.J,{htmlFor:"basic",children:"Horaires d\xe9cal\xe9s (\xb11h)"})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(v.C,{value:"advanced",id:"advanced"}),(0,s.jsx)(u.J,{htmlFor:"advanced",children:"Horaires libres"})]})]})]}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)(u.J,{children:"Cong\xe9s suppl\xe9mentaires (jours/an)"}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(p.A,{value:[d.additionalLeave||0],onValueChange:e=>{let[t]=e;return N({...d,additionalLeave:t})},min:0,max:10,step:1,className:"w-full"}),(0,s.jsxs)("div",{className:"text-center text-sm text-gray-600",children:[d.additionalLeave||0," jour",(d.additionalLeave||0)>1?"s":""]})]})]}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)(u.J,{children:"Autoriser le temps partiel"}),(0,s.jsxs)(v.z,{value:d.partTimeAllowed||"no",onValueChange:e=>N({...d,partTimeAllowed:e}),children:[(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(v.C,{value:"no",id:"no"}),(0,s.jsx)(u.J,{htmlFor:"no",children:"Non"})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(v.C,{value:"yes",id:"yes"}),(0,s.jsx)(u.J,{htmlFor:"yes",children:"Oui"})]})]})]})]});case"conditions":return(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)(u.J,{children:"Type d'am\xe9lioration"}),(0,s.jsxs)(v.z,{value:d.improvementType||"equipment",onValueChange:e=>N({...d,improvementType:e}),children:[(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(v.C,{value:"equipment",id:"equipment"}),(0,s.jsx)(u.J,{htmlFor:"equipment",children:"\xc9quipements de travail"})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(v.C,{value:"space",id:"space"}),(0,s.jsx)(u.J,{htmlFor:"space",children:"Am\xe9nagement des espaces"})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(v.C,{value:"wellness",id:"wellness"}),(0,s.jsx)(u.J,{htmlFor:"wellness",children:"Programme bien-\xeatre"})]})]})]}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)(u.J,{children:"Budget par salari\xe9 (€/an)"}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(p.A,{value:[d.budgetPerEmployee||500],onValueChange:e=>{let[t]=e;return N({...d,budgetPerEmployee:t})},min:100,max:2e3,step:50,className:"w-full"}),(0,s.jsxs)("div",{className:"text-center text-sm text-gray-600",children:["€",d.budgetPerEmployee||500]})]})]})]});default:return(0,s.jsx)("div",{className:"text-center py-8",children:(0,s.jsx)("p",{className:"text-gray-500",children:"Configuration en cours de d\xe9veloppement..."})})}})(),(0,s.jsxs)("div",{className:"flex gap-3",children:[(0,s.jsxs)(n.$,{onClick:()=>{let e;switch(t){case"remu":e=function(e){let{basePayroll:t,increasePct:a,employees:s,socialContribRate:l}=e,i=t*a/100,n=i*s,r=n*(1+l/100),o=.78*i;return{employerCost:r,netEmployeeGain:o,purchasingPowerGain:.85*o,roi:(.3*n+.2*n)/r*100}}({basePayroll:d.basePayroll||5e4,increasePct:d.increasePct||2,employees:d.employees||100,socialContribRate:d.socialContribRate||45});break;case"avantages":e=function(e){let{employees:t,basketConfig:a,currentBasketCost:s}=e,l={conservateur:.7,realiste:.85,ambitieux:.95}
1[a],i=s*({conservateur:1.1,realiste:1.3,ambitieux:1.6})[a]-s,n=i*t*l;return{employerCost:n,adoptionRate:l,purchasingPowerGain:.8*i,roi:(.4*n+.25*n)/n*100}}({employees:d.employees||100,basketConfig:d.basketConfig||"realiste",currentBasketCost:d.currentBasketCost||1200});break;case"contrats":let a=d.employees||100,s=d.avgSalary||5e4,l=d.remoteDays||2,i=d.additionalLeave||0,n="basic"===d.flexibleHours?s*a*.03:"advanced"===d.flexibleHours?s*a*.05:0,r="yes"===d.partTimeAllowed?s*a*.02:0,o=i*a*(s/22)*12,c=a*l*1196+n+r,m=c-o;e={employerCost:o,purchasingPower:c,roi:o>0?m/o*100:0};break;case"conditions":e=function(e){let{employees:t,daysRemoteDelta:a,transportPctDelta:s,avgSalary:l}=e,i=l*s/100/12*t+(200*t+a*t*50),n=.05*l*(a/5)*t,r=.02*l*t;return{employerCost:i,productivityGain:n,wellBeingGain:r,roi:(n+r)/i*100}}({employees:d.employees||100,daysRemoteDelta:d.daysRemoteDelta||1,transportPctDelta:d.transportPctDelta||10,avgSalary:d.avgSalary||5e4});break;default:e={employerCost:0,purchasingPower:0,roi:0}}f(e)},className:"flex-1",children:[(0,s.jsx)(j.A,{className:"w-4 h-4 mr-2"}),"Calculer l'impact"]}),(0,s.jsx)(n.$,{variant:"outline",onClick:()=>f(null),children:"R\xe9initialiser"})]}),y&&(0,s.jsx)(i.Zp,{className:"bg-green-50 border-green-200",children:(0,s.jsxs)(i.Wu,{className:"p-4",children:[(0,s.jsx)("h4",{className:"font-semibold text-green-800 mb-3",children:"R\xe9sultats de la simulation"}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsxs)("div",{className:"text-2xl font-bold text-green-600",children:["€",Math.round(y.employerCost||y.employerNet||0).toLocaleString()]}),(0,s.jsx)("div",{className:"text-sm text-green-700",children:"Co\xfbt employeur"})]}),(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsxs)("div",{className:"text-2xl font-bold text-blue-600",children:["€",Math.round(y.purchasingPowerGain||y.purchasingPower||0).toLocaleString()]}),(0,s.jsx)("div",{className:"text-sm text-blue-700",children:"Gain pouvoir d'achat"})]}),(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsxs)("div",{className:"text-2xl font-bold text-purple-600",children:[Math.round(y.roi||0),"%"]}),(0,s.jsx)("div",{className:"text-sm text-purple-700",children:"ROI social"})]})]}),(0,s.jsxs)("div",{className:"mt-4 flex gap-2",children:[(0,s.jsxs)(n.$,{onClick:()=>{y&&(console.log("➕ ADD PROPOSITION",{theme:t,impacts:{employerNet:y.employerCost||y.employerNet||0,purchasingPower:y.purchasingPowerGain||y.purchasingPower||0,roi:y.roi||0},params:d}),c({theme:t,title:C(t),params:d,impacts:{employerNet:y.employerCost||y.employerNet||0,purchasingPower:y.purchasingPowerGain||y.purchasingPower||0,roi:y.roi||0}}),r())},className:"flex-1 bg-green-600 hover:bg-green-700",children:[(0,s.jsx)(o.A,{className:"w-4 h-4 mr-2"}),"Ajouter au dossier NAO"]}),(0,s.jsx)(n.$,{variant:"outline",size:"sm",children:"Comparer les sc\xe9narios"})]})]})}),(0,s.jsx)("div",{className:"p-3 bg-blue-50 border border-blue-200 rounded-lg",children:(0,s.jsxs)("div",{className:"text-sm text-blue-800",children:[(0,s.jsx)("strong",{children:"M\xe9thodologie :"})," Les co\xfbts incluent charges patronales. Les gains de r\xe9tention et de productivit\xe9 sont estim\xe9s sur base de benchmarks et de vos donn\xe9es r\xe9elles."]})})]})]})})}var y=a(83161),f=a(49498);function C(e){let{...t}=e;return(0,s.jsx)(y._s.Root,{"data-slot":"drawer",...t})}function w(e){let{...t}=e;return(0,s.jsx)(y._s.Portal,{"data-slot":"drawer-portal",...t})}function P(e){let{className:t,...a}=e;return(0,s.jsx)(y._s.Overlay,{"data-slot":"drawer-overlay",className:(0,f.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function S(e){let{className:t,children:a,...l}=e;return(0,s.jsxs)(w,{"data-slot":"drawer-portal",children:[(0,s.jsx)(P,{}),(0,s.jsxs)(y._s.Content,{"data-slot":"drawer-content",className:(0,f.cn)("group/drawer-content bg-background fixed z-50 flex h-auto flex-col","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",t),...l,children:[(0,s.jsx)("div",{className:"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),a]})]})}function A(e){let{className:t,...a}=e;return(0,s.jsx)("div",{"data-slot":"drawer-header",className:(0,f.cn)("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left",t),...a})}function k(e){let{className:t,...a}=e;return(0,s.jsx)("div",{"data-slot":"drawer-footer",className:(0,f.cn)("mt-auto flex flex-col gap-2 p-4",t),...a})}function G(e){let{className:t,...a}=e;return(0,s.jsx)(y._s.Title,{"data-slot":"drawer-title",className:(0,f.cn)("text-foreground font-semibold",t),...a})}function F(e){let{className:t,...a}=e;return(0,s.jsx)(y._s.Description,{"data-slot":"drawer-description",className:(0,f.cn)("text-muted-foreground text-sm",t),...a})}function _(e){let{label:t,value:a,onChange:l,min:i,max:n,step:r=1,suffix:o}=e;return(0,s.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,s.jsx)("span",{className:"text-sm text-gray-600",children:t}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("input",{type:"number",className:"w-full rounded-md border px-3 py-2",value:Number.isFinite(a)?a:0,min:i,max:n,step:r,onChange:e=>l(parseFloat(e.target.value||"0"))}),o&&(0,s.jsx)("span",{className:"text-sm text-gray-500",children:o})]})]})}function M(e){let{open:t,onClose:a,employees:i,avgGrossMonthly:r,baselineTurnoverPct:o,onAdd:d}=e,[m,u]=(0,l.useState)(42),[x,p]=(0,l.useState)(18),[v,h]=(0,l.useState)(70),[g,j]=(0,l.useState)(100),[b,N]=(0,l.useState)(3.5),[y,f]=(0,l.useState)(.12),w=(0,l.useMemo)(()=>
1{let e=(m||0)/100*(i||0),t=(x||0)*(v||0)*e-e*(g||0),a=(o||0)/100*e*(y||0),s=(r||0)*(b||0),l=a*s,n=l-t;return{formationBudget:isNaN(t)?0:t,avoidedLeavers:isNaN(a)?0:a,replacementCostPer:isNaN(s)?0:s,retentionGains:isNaN(l)?0:l,employerNet:isNaN(n)?0:n}},[i,m,x,v,g,o,y,r,b]);return(0,s.jsx)(C,{open:t,onOpenChange:a,children:(0,s.jsxs)(S,{className:"max-w-2xl mx-auto",children:[(0,s.jsxs)(A,{children:[(0,s.jsx)(G,{children:"Simulation — GPEC / Comp\xe9tences"}),(0,s.jsx)(F,{children:"Prioriser la mont\xe9e en comp\xe9tences et estimer l'impact net (co\xfbt vs r\xe9tention)."})]}),(0,s.jsxs)("div",{className:"p-6 grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,s.jsx)(_,{label:"% de salari\xe9s cibl\xe9s",value:m,onChange:u,min:0,max:100,step:1,suffix:"%"}),(0,s.jsx)(_,{label:"Heures de formation / salari\xe9 / an",value:x,onChange:p,min:0,max:200,step:1,suffix:"h"}),(0,s.jsx)(_,{label:"Co\xfbt de formation (€/h)",value:v,onChange:h,min:0,max:500,step:5,suffix:"€/h"}),(0,s.jsx)(_,{label:"Abondement CPF (€/salari\xe9/an)",value:g,onChange:j,min:0,max:2e3,step:25,suffix:"€"}),(0,s.jsx)(_,{label:"Mois de salaire pour remplacer",value:b,onChange:N,min:0,max:12,step:.5,suffix:"mois"}),(0,s.jsx)(_,{label:"Coeff. r\xe9tention (0–1)",value:y,onChange:f,min:0,max:1,step:.01})]}),(0,s.jsxs)("div",{className:"px-6 pb-2 text-sm text-gray-600",children:[(0,s.jsxs)("div",{children:["Budget formation (net CPF) : ",(0,s.jsx)("b",{children:(0,c.Fb)(w.formationBudget)})]}),(0,s.jsxs)("div",{children:["Leavers \xe9vit\xe9s (est.) : ",(0,s.jsx)("b",{children:w.avoidedLeavers.toFixed(1)})]}),(0,s.jsxs)("div",{children:["Co\xfbt remplacement / d\xe9part : ",(0,s.jsx)("b",{children:(0,c.Fb)(w.replacementCostPer)})]}),(0,s.jsxs)("div",{children:["Gains de r\xe9tention : ",(0,s.jsx)("b",{className:"text-green-700",children:(0,c.Fb)(w.retentionGains)})]}),(0,s.jsxs)("div",{children:["Impact net employeur : ",(0,s.jsx)("b",{className:w.employerNet>=0?"text-green-700":"text-red-600",children:(0,c.Fb)(w.employerNet)})]})]}),(0,s.jsxs)(k,{className:"gap-2",children:[(0,s.jsx)(n.$,{variant:"outline",onClick:a,children:"Annuler"}),(0,s.jsx)(n.$,{className:"bg-blue-600 text-white",onClick:()=>{console.log("➕ ADD GPEC PROPOSITION",{theme:"gpec",impacts:{employerNet:w.employerNet,savings:w.retentionGains,cost:w.formationBudget},params:{targetPct:m,hoursPerEmp:x,costPerHour:v,cpfTopUp:g,replaceMonths:b,retentionCoeff:y}}),d({id:"gpec_".concat(Date.now()),theme:"gpec",title:"Plan GPEC (3 ans) – mont\xe9e en comp\xe9tences cibl\xe9e",params:{targetPct:m,hoursPerEmp:x,costPerHour:v,cpfTopUp:g,replaceMonths:b,retentionCoeff:y},impacts:{employerNet:w.employerNet,savings:w.retentionGains,cost:w.formationBudget,note:"Mod\xe8le: gains r\xe9tention (\xe9vit\xe9s) – budget formation net d'abondement CPF."}}),a()},children:"Ajouter au dossier NAO"})]})]})})}function O(e){let{open:t,onClose:a,employees:i,avgGrossMonthly:r,baselineTurnoverPct:o,onAdd:d}=e,[m,u]=(0,l.useState)(2),[x,p]=(0,l.useState)(3),[v,h]=(0,l.useState)(120),g=(0,l.useMemo)(()=>{let e=m/100*i,t=isNaN(e)?0:e,a=r*x,s=e*a,l=i*v,n=l>0?(s-l)/l*100:100*(s>0);return{avoided:t,costPerDeparture:isNaN(a)?0:a,savings:isNaN(s)?0:s,employerCost:isNaN(l)?0:l,employeeGain:isNaN(s)?0:s,roiSocialPct:isNaN(n)?0:n}},[i,r,m,x,v]);return(0,s.jsx)(C,{open:t,onOpenChange:a,children:(0,s.jsxs)(S,{className:"max-w-3xl mx-auto",children:[(0,s.jsxs)(A,{children:[(0,s.jsx)(G,{children:"Simulation Programme de r\xe9tention et engagement"}),(0,s.jsx)(F,{children:"Impact d'une baisse de X points de turnover."})]}),(0,s.jsxs)("div",{className:"p-6 grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,s.jsx)(_,{label:"Turnover de base (info)",value:o,onChange:()=>{},suffix:"%"}),(0,s.jsx)(_,{label:"R\xe9duction vis\xe9e (points)",value:m,onChange:u,min:0,max:20,step:.5,suffix:"pts"}),(0,s.jsx)(_,{label:"Mois de salaire pour remplacer",value:x,onChange:p,min:0,max:12,step:.5,suffix:"mois"}),(0,s.jsx)(_,{label:"Co\xfbt du programme (€/employ\xe9/an)",value:v,onChange:h,min:0,step:10})]}),(0,s.jsxs)("div",{className:"px-6 pb-2 grid grid-cols-1 md:grid-cols-3 gap-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-sm text-muted-foreground",children:"Co\xfbt employeur"}),(0,s.jsx)("div",{className:"text-2xl font-semibold text-green-700",children:(0,c.Fb)(g.employerCost)})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-sm text-muted-foreground",children:"Gain pouvoir d'achat"}),(0,s.jsx)("div",{className:"text-2xl font-semibold text-blue-700",children:(0,c.Fb)(g.employeeGain)})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-sm text-muted-foreground",children:"ROI social"}),(0,s.jsxs)("div",{className:"text-2xl font-semibold text-purple-700",children:[g.roiSocialPct.toFixed(1),"%"]})]})]}),(0,s.jsxs)(k,{className:"gap-2",children:[(0,s.jsx)(n.$,{variant:"outline",onClick:a,children:"Annuler"}),(0,s.jsx)(n.$,{className:"bg-blue-600 text-white",onClick:()=>{d({id:"climat_turn_".concat(Date.now()),theme:"climat_turnover",title:"Programme de r\xe9tention – r\xe9duction du turnover",params:{baselineTurnoverPct:o,reductionPts:m,replaceMonths:x,measuresCostPerEmp:v},impacts:{employerCost:g.employerCost,employeeGain:g.employeeGain,roiSocialPct:g.roiSocialPct,note:"\xc9conomies = d\xe9parts \xe9vit\xe9s \xd7 (mois salaire) ; Co\xfbt = programme de r\xe9tention."}}),a()},children:"Ajouter au dossier NAO"})]})]})})}function R(e){let{open:t,onClose:a,employees:i,avgGrossMonthly:r,onAdd:o}=e,[d,m]=(0,l.useState)(220),[u,x]=(0,l.useState)(4.5),[p,v]=(0,l.useState)(.8),[h,g]=(0,l.useState)(1),[j,b]=(0,l.useState)(8),[N,y]=(0,l.useState)(.0012),[f,w]=(0,l.useState)(60),P=(0,l.useMemo)(()=>{let e=i*r*12,t=12*r/d*h,a=Math.max(i*d*(u/100)-i*d*Math.max((u-p)/100,0),0),s=a*t,l=j*N*e,n=i*f,o=s+l,c=n>0?(o-n)/n*100:100*(o>0);return{daysAvoided:isNaN(a)?0:a,dailyCost:isNaN(t)?0:t,savingsAbs:isNaN(s)?0:s,productivityGain:isNaN(l)?0:l,employerCost:isNaN(n)?0:n,employeeGain:isNaN(o)?0:o,roiSocialPct:isNaN(c)?0:c}},[i,r,d,h,u,p,j,N,f]);return(0,s.jsx)(C,{open:t,onOpenChange:a,children:(0,s.jsxs)(S,{className:"max-w-3xl mx-auto",children:[(0,s.jsxs)(A,{children:[(0,s.jsx)(G,{children:"Simulation Programme de r\xe9tention et engagement"}),(0,s.jsx)(F,{children:"Absent\xe9isme & eNPS — gains de productivit\xe9 et \xe9conomies indirectes."})]}),(0,s.jsxs)("div",{className:"p-6 grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,s.jsx)(_,{label:"Jours ouvr\xe9s/an",value:d,onChange:m,min:180,max:230,step:1}),(0,s.jsx)(_,{label:"Absent\xe9isme de base (%)",value:u,onChange:x,min:0,max:30,step:.1,suffix:"%"}),(0,s.jsx)(_,{label:"R\xe9duction vis\xe9e (points)",value:p,onChange:v,min:0,max:10,step:.1,suffix:"pts"}),(0,s.jsx)(_,{label:"Facteur co\xfbt jour (1=salaire charg\xe9)",value:h,onChange:g,min:.5,max:2,step:.1}),(0,s.jsx)(_,{label:"Gain eNPS (points)",value:j,onChange:b,min:0,max:30,step:1}),(0,s.jsx)(_,{label:"% payroll / point eNPS",value:N,onChange:y,min:0,max:.01,step:1e-4}),(0,s.jsx)(_,{label:"Co\xfbt programme (€/employ\xe9/an)",value:f,onChange:w,min:0,step:10}
1)]}),(0,s.jsxs)("div",{className:"px-6 pb-2 grid grid-cols-1 md:grid-cols-3 gap-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-sm text-muted-foreground",children:"Co\xfbt employeur"}),(0,s.jsx)("div",{className:"text-2xl font-semibold text-green-700",children:(0,c.Fb)(P.employerCost)})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-sm text-muted-foreground",children:"Gain pouvoir d'achat"}),(0,s.jsx)("div",{className:"text-2xl font-semibold text-blue-700",children:(0,c.Fb)(P.employeeGain)})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-sm text-muted-foreground",children:"ROI social"}),(0,s.jsxs)("div",{className:"text-2xl font-semibold text-purple-700",children:[P.roiSocialPct.toFixed(1),"%"]})]})]}),(0,s.jsxs)(k,{className:"gap-2",children:[(0,s.jsx)(n.$,{variant:"outline",onClick:a,children:"Annuler"}),(0,s.jsx)(n.$,{className:"bg-blue-600 text-white",onClick:()=>{o({id:"climat_abs_".concat(Date.now()),theme:"climat_abs",title:"Programme QVT — absent\xe9isme ↓ & eNPS ↑",params:{workDays:d,absBaselinePct:u,absReductionPts:p,dailyProdFactor:h,eNpsGainPts:j,prodPerENpsPt:N,programCostPerEmp:f},impacts:{employerCost:P.employerCost,employeeGain:P.employeeGain,roiSocialPct:P.roiSocialPct,note:"Gains = jours \xe9vit\xe9s \xd7 co\xfbt_jour (proxy) + % payroll via eNPS ; Co\xfbt = programme QVT."}}),a()},children:"Ajouter au dossier NAO"})]})]})})}function B(e){let{open:t,onClose:a,employees:i,avgGrossMonthly:r,onAdd:o}=e,[d,m]=(0,l.useState)(150),[u,x]=(0,l.useState)(80),[p,v]=(0,l.useState)(60),[h,g]=(0,l.useState)(40),[j,b]=(0,l.useState)(.003),[N,y]=(0,l.useState)(.15),f=(0,l.useMemo)(()=>{let e=i*r*12,t=i*d,a=i*u,s=i*p,l=i*h,n=t+a+s+l,o=n*j/1e5*e,c=.12*i*N,m=3*r*c,x=o+m;return{employerCost:n,employeeGain:x,roiSocialPct:n>0?(x-n)/n*100:0,details:{costOffice:t,costEquipment:a,costWellness:s,costErgonomic:l,productivityGainAmount:o,retentionGains:m,avoidedDepartures:c}}},[i,r,d,u,p,h,j,N]);return(0,s.jsx)(C,{open:t,onOpenChange:a,children:(0,s.jsxs)(S,{className:"max-w-3xl mx-auto",children:[(0,s.jsxs)(A,{children:[(0,s.jsx)(G,{children:"Simulation Am\xe9lioration des conditions de travail"}),(0,s.jsx)(F,{children:"Environnement, \xe9quipements, bien-\xeatre — impact sur productivit\xe9 et r\xe9tention."})]}),(0,s.jsxs)("div",{className:"p-6 grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,s.jsx)(_,{label:"Investissement locaux (€/employ\xe9/an)",value:d,onChange:m,min:0,step:10}),(0,s.jsx)(_,{label:"\xc9quipements (€/employ\xe9/an)",value:u,onChange:x,min:0,step:10}),(0,s.jsx)(_,{label:"Programme bien-\xeatre (€/employ\xe9/an)",value:p,onChange:v,min:0,step:5}),(0,s.jsx)(_,{label:"Am\xe9liorations ergonomiques (€/employ\xe9/an)",value:h,onChange:g,min:0,step:5}),(0,s.jsx)(_,{label:"Gain productivit\xe9 (% payroll / € investi)",value:j,onChange:b,min:0,max:.01,step:1e-4}),(0,s.jsx)(_,{label:"Impact r\xe9tention (% r\xe9duction turnover)",value:N,onChange:y,min:0,max:1,step:.01})]}),(0,s.jsxs)("div",{className:"px-6 pb-2 grid grid-cols-1 md:grid-cols-3 gap-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-sm text-muted-foreground",children:"Co\xfbt employeur"}),(0,s.jsx)("div",{className:"text-2xl font-semibold text-green-700",children:(0,c.Fb)(f.employerCost)})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-sm text-muted-foreground",children:"Gain pouvoir d'achat"}),(0,s.jsx)("div",{className:"text-2xl font-semibold text-blue-700",children:(0,c.Fb)(f.employeeGain)})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-sm text-muted-foreground",children:"ROI social"}),(0,s.jsxs)("div",{className:"text-2xl font-semibold text-purple-700",children:[f.roiSocialPct.toFixed(1),"%"]})]})]}),(0,s.jsxs)("div",{className:"px-6 pb-2 text-sm text-gray-600",children:[(0,s.jsxs)("div",{children:["D\xe9parts \xe9vit\xe9s (est.) : ",(0,s.jsx)("b",{children:f.details.avoidedDepartures.toFixed(1)})]}),(0,s.jsxs)("div",{children:["Gain productivit\xe9 : ",(0,s.jsx)("b",{className:"text-green-700",children:(0,c.Fb)(f.details.productivityGainAmount)})]}),(0,s.jsxs)("div",{children:["Gains r\xe9tention : ",(0,s.jsx)("b",{className:"text-green-700",children:(0,c.Fb)(f.details.retentionGains)})]})]}),(0,s.jsxs)(k,{className:"gap-2",children:[(0,s.jsx)(n.$,{variant:"outline",onClick:a,children:"Annuler"}),(0,s.jsx)(n.$,{className:"bg-blue-600 text-white",onClick:()=>
1{o({id:"conditions_work_".concat(Date.now()),theme:"conditions",title:"Am\xe9lioration des conditions de travail",params:{officeInvestment:d,equipmentCost:u,wellnessProgram:p,ergonomicImprovements:h,productivityGain:j,retentionImpact:N},impacts:{employerCost:f.employerCost,employeeGain:f.employeeGain,roiSocialPct:f.roiSocialPct,note:"Gains = productivit\xe9 + r\xe9tention ; Co\xfbts = locaux + \xe9quipements + bien-\xeatre."}}),a()},children:"Ajouter au dossier NAO"})]})]})})}var J=a(6368);let T=function(e){for(var t=arguments.length,a=Array(t>1?t-1:0),s=1;s<t;s++)a[s-1]=arguments[s];return e.filter(e=>a.includes(e.theme)).reduce((e,t)=>(e.cost+=t.impacts.employerCost||0,e.gain+=t.impacts.employeeGain||0,e),{cost:0,gain:0})},I=(e,t)=>t>0?e/t*100:0;var D=a(17910),E=a(91169),q=a(26983),L=a(83457),$=a(30814);function V(){var e,t,a,i,n,r,o,c,m,u,x,p,v,h,g,y,f,C,w,P,S,A,k,G,F,_,V,z,H,Z,K,Q,W,X,U,Y;let{themesChecked:ee,addProposition:et,propositions:ea}=(0,b.z)(),{inputs:es}=(0,J.i)(),[el,ei]=(0,l.useState)(null),en=e=>ei(e),er=()=>ei(null),eo=e=>et(e),ec=(0,l.useMemo)(()=>{let e={remu:"remu",avantages:"avantages",gpec:"gpec",contrats:"contrats",conditions:"conditions",conditions_work:"conditions",climat:"climat_turnover",climat_turnover:"climat_turnover",climat_abs:"climat_abs"};return(null!=ea?ea:[]).map(t=>{var a,s,l,i,n,r,o,c,d,m,u,x,p,v,h,g,j,b;return{theme:null!=(d=e[null==t?void 0:t.theme])?d:null==t?void 0:t.theme,impacts:{employerCost:null!=(x=null!=(u=null!=(m=null==t||null==(a=t.impacts)?void 0:a.employerCost)?m:null==t||null==(s=t.impacts)?void 0:s.employerNet)?u:null==t||null==(l=t.impacts)?void 0:l.cost)?x:0,employeeGain:null!=(h=null!=(v=null!=(p=null==t||null==(i=t.impacts)?void 0:i.employeeGain)?p:null==t||null==(n=t.impacts)?void 0:n.purchasingPower)?v:null==t||null==(r=t.impacts)?void 0:r.gain)?h:0,roiSocialPct:null!=(j=null!=(g=null==t||null==(o=t.impacts)?void 0:o.roiSocialPct)?g:null==t||null==(c=t.impacts)?void 0:c.roi)?j:0},meta:null!=(b=null==t?void 0:t.params)?b:{}}})},[ea]),ed=(0,l.useMemo)(()=>{var e,t,a;return{turnoverPct:null!=(e=null==es?void 0:es.turnoverRate)?e:0,employees:null!=(t=null==es?void 0:es.employees)?t:0,avgGrossMonthly:null!=(a=null==es?void 0:es.grossSalary)?a:0}},[null==es?void 0:es.turnoverRate,null==es?void 0:es.employees,null==es?void 0:es.grossSalary]),em=(0,l.useMemo)(()=>{console.log("\uD83D\uDD04 KPIs recomputing with propositions:",ec.length),console.log("\uD83D\uDCCA Converted propositions:",ec),console.log("\uD83E\uDDEE Base:",ed);let e=function(e,t){var a;let s=T(e,"remu"),l=T(e,"avantages"),i=T(e,"gpec"),n=T(e,"contrats"),r=T(e,"conditions"),o=T(e,"climat_turnover"),c=T(e,"climat_abs");return{remu:{budget:s.cost,impactEmployer:Math.max(s.cost-s.gain,0),powerPct:I(s.gain,Math.max(s.cost,1))},avantages:{costTotal:l.cost,taxSavings:.2*l.cost,powerPct:I(l.gain,Math.max(l.cost,1))},gpec:{budget:i.cost,impactPct:I(i.gain,Math.max(i.cost,1)),roiPct:I(i.gain-i.cost,Math.max(i.cost,1))},contrats:{budget:n.cost,employerImpact:Math.max(n.cost-n.gain,0),powerPct:I(n.gain,Math.max(n.cost,1))},conditions:{budget:r.cost,powerPct:I(r.gain,Math.max(r.cost,1))},climat:{turnoverPct:null!=(a=t.turnoverPct)?a:0,retentionBudget:o.cost,retentionRoiPct:I(o.gain-o.cost,Math.max(o.cost,1)),wellbeingImpactPct:I(c.gain,Math.max(r.cost+n.cost+l.cost,1)),conditionsBudget:r.cost+n.cost}}}(ec,ed);return console.log("\uD83D\uDCC8 Calculated KPIs:",e),e},[ec,ed]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-8",children:[(0,s.jsx)(d,{theme:"remu",title:"R\xe9mun\xe9ration",description:"Augmentations g\xe9n\xe9rales, primes, int\xe9ressement",kpis:[{label:"Budget augmentation",value:null!=(w=null==(e=em.remu)?void 0:e.budget)?w:0,format:"eur"},{label:"Impact net employeur",value:null!=(P=null==(t=em.remu)?void 0:t.impactEmployer)?P:0,format:"eur"},{label:"Pouvoir d'achat",value:null!=(S=null==(a=em.remu)?void 0:a.powerPct)?S:0,format:"pct"}],icon:(0,s.jsx)(j.A,{className:"w-5 h-5"}),buttonText:"Simuler les sc\xe9narios",onButtonClick:()=>en("remu"),isActive:ee.includes("remu")}),(0,s.jsx)(d,{theme:"avantages",title:"Avantages sociaux",description:"Mutuelle, pr\xe9voyance, tickets restaurant",kpis:[{label:"Co\xfbt total avantages",value:null!=(A=null==(i=em.avantages)?void 0:i.costTotal)?A:0,format:"eur"},{label:"\xc9conomies fiscales",value:null!=(k=null==(n=em.avantages)?void 0:n.taxSavings)?k:0,format:"eur"},{label:"Pouvoir d'achat",value:null!=(G=null==(r=em.avantages)?void 0:r.powerPct)?G:0,format:"pct"}],icon:(0,s.jsx)(D.A,{className:"w-5 h-5"}),buttonText:"Simuler les sc\xe9narios",onButtonClick:()=>en("avantages"),isActive:ee.includes("avantages")}),(0,s.jsx)(d,{theme:"gpec",title:"GPEC/Comp\xe9tences",description:"Formation, d\xe9veloppement, mobilit\xe9 interne",kpis:[{label:"Budget formation",value:null!=(F=null==(o=em.gpec)?void 0:o.budget)?F:0,format:"eur"},{label:"Impact comp\xe9tences",value:null!=(_=null==(c=em.gpec)?void 0:c.impactPct)?_:0,format:"pct"},{label:"ROI formation",value:null!=(V=null==(m=em.gpec)?void 0:m.roiPct)?V:0,format:"pct"}],icon:(0,s.jsx)(E.A,{className:"w-5 h-5"}),buttonText:"Simuler les sc\xe9narios",onButtonClick:()=>en("gpec"),isActive:ee.includes("gpec")}
1),(0,s.jsx)(d,{theme:"contrats",title:"Contrats & Temps de travail",description:"Horaires, t\xe9l\xe9travail, cong\xe9s, temps partiel",kpis:[{label:"Budget contrats",value:null!=(z=null==(u=em.contrats)?void 0:u.budget)?z:0,format:"eur"},{label:"Impact employeur",value:null!=(H=null==(x=em.contrats)?void 0:x.employerImpact)?H:0,format:"eur"},{label:"Pouvoir d'achat",value:null!=(Z=null==(p=em.contrats)?void 0:p.powerPct)?Z:0,format:"pct"}],icon:(0,s.jsx)(q.A,{className:"w-5 h-5"}),buttonText:"Simuler les sc\xe9narios",onButtonClick:()=>en("contrats"),isActive:ee.includes("contrats")}),(0,s.jsx)(d,{theme:"conditions",title:"Conditions de travail",description:"Environnement, \xe9quipements, bien-\xeatre",kpis:[{label:"Turnover",value:null!=(K=null==(v=em.climat)?void 0:v.turnoverPct)?K:0,format:"pct"},{label:"Budget conditions",value:null!=(Q=null==(h=em.conditions)?void 0:h.budget)?Q:0,format:"eur"},{label:"Impact bien-\xeatre",value:null!=(W=null==(g=em.conditions)?void 0:g.powerPct)?W:0,format:"pct"}],icon:(0,s.jsx)(L.A,{className:"w-5 h-5"}),buttonText:"Simuler les sc\xe9narios",onButtonClick:()=>en("conditions_work"),isActive:ee.includes("conditions")}),(0,s.jsx)(d,{theme:"climat_turnover",title:"Climat social & R\xe9tention",description:"Engagement, reconnaissance, dialogue social",kpis:[{label:"Budget r\xe9tention",value:null!=(X=null==(y=em.climat)?void 0:y.retentionBudget)?X:0,format:"eur"},{label:"Impact satisfaction",value:null!=(U=null==(f=em.climat)?void 0:f.wellbeingImpactPct)?U:0,format:"pct"},{label:"ROI r\xe9tention",value:null!=(Y=null==(C=em.climat)?void 0:C.retentionRoiPct)?Y:0,format:"pct"}],icon:(0,s.jsx)($.A,{className:"w-5 h-5"}),buttonText:"Simuler les sc\xe9narios",onButtonClick:()=>en("climat_turnover"),isActive:ee.includes("climat_turnover")})]}),(0,s.jsx)(N,{isOpen:"remu"===el,onClose:er,theme:"remu"}),(0,s.jsx)(N,{isOpen:"avantages"===el,onClose:er,theme:"avantages"}),(0,s.jsx)(M,{open:"gpec"===el,onClose:er,employees:es.employees,avgGrossMonthly:es.grossSalary,baselineTurnoverPct:es.turnoverRate,onAdd:eo}),(0,s.jsx)(N,{isOpen:"contrats"===el,onClose:er,theme:"contrats"}),(0,s.jsx)(B,{open:"conditions_work"===el,onClose:er,employees:es.employees,avgGrossMonthly:es.grossSalary,onAdd:eo}),(0,s.jsx)(O,{open:"climat_turnover"===el,onClose:er,employees:es.employees,avgGrossMonthly:es.grossSalary,baselineTurnoverPct:es.turnoverRate,onAdd:eo}),(0,s.jsx)(R,{open:"climat_abs"===el,onClose:er,employees:es.employees,avgGrossMonthly:es.grossSalary,onAdd:eo})]})}}}]);

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.