PageSourceSearch

https://perlib.fr/_next/static/chunks/5878.7d08c1f888ac74e4.js

js perlib.fr collected 2026-10-09 18:22:30 UTC 3,568 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5878],{65878:(e,t,r)=>{r.r(t),r.d(t,{AxisTick:()=>y,default:()=>b});var a=r(95155),l=r(12758),s=r(2821),n=r(26265),i=r(73850),o=r(68425),d=r(47734),c=r(73697),u=r(10232),x=r(78928),h=r(14724),m=r(79917);let f=e=>{let{active:t,payload:r}=e;if(t&&r&&r.length){let{value:e}=r[0].payload;return(0,a.jsx)("div",{className:"bg-brand-primary-bleu font-body text-sm text-white p-1 rounded",children:new Intl.NumberFormat("fr-FR",{style:"currency",currency:"EUR",maximumFractionDigits:0}).format(e)})}return null},y=e=>{let{x:t,y:r,payload:l}=e;return(0,a.jsx)("g",{transform:"translate(".concat(t,",").concat(r,")"),children:(0,a.jsx)("text",{className:"font-body fill-brand-secondary-bleu-3 text-xs",dy:12,textAnchor:"middle",children:null==l?void 0:l.value})})};function b(e){let{className:t,data:r,minChart:l,maxChart:b,options:p=[],chartOptions:j={}}=e;if(!(null==r?void 0:r.length))return(0,a.jsx)(a.Fragment,{});let g=r.map(e=>e.value),v=l||Math.min(...g),k=b||Math.max(...g),w=null==p?void 0:p.includes("Montrer les valeurs"),N=null==p?void 0:p.includes("Tooltip au survol");return(0,a.jsx)("div",{className:(0,s.A)(t,"w-full h-full"),children:(0,a.jsx)(n.u,{className:"w-full -mt-10 mb-0 !h-52 md:!h-[calc(100%+40px)]",children:(0,a.jsxs)(i.Q,{data:r,margin:{top:36,right:15,left:15,bottom:-12},children:[(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"colorGradient",x1:"0",y1:"0",x2:"1",y2:"0",children:[(0,a.jsx)("stop",{offset:"20%",stopColor:"rgba(255, 163, 111, 1)"}),(0,a.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 163, 111, 0)"})]})}),(0,a.jsx)(o.d,{className:"stroke-brand-secondary-bleu-3/50",...j.cartesianGrid}),(0,a.jsx)(d.W,{className:"font-body text-xs fill-brand-secondary-bleu-3",interval:"preserveStartEnd",dataKey:"key",stroke:"",minTickGap:8,height:32,padding:{left:4,right:4},...j.xAxis,tick:(0,a.jsx)(y,{})}),(0,a.jsx)(c.h,{className:"font-body text-xs fill-brand-secondary-bleu-3 text-brand-secondary-bleu-3",interval:"equidistantPreserveStart",domain:[v,k],stroke:"",hide:!0}),N&&(0,a.jsx)(u.m,{content:(0,a.jsx)(f,{})}),(0,a.jsx)(x.Gk,{type:"linear",dataKey:"value",stroke:"#FFA36F",strokeWidth:2,fill:"url(#colorGradient)",dot:{className:"fill-brand-secondary-bleu-2",fillOpacity:100,stroke:"white",strokeWidth:2,r:4,...j.areaDot},...j.area,children:w&&(0,a.jsx)(h.Ze,{dataKey:"value",content:(0,a.jsx)(m.G,{length:r.length,...j.labelList})})})]})})})}b.propTypes={data:l.array,options:l.oneOf(["Montrer les valeurs","Tooltip au survol"])}},79917:(e,t,r)=>{r.d(t,{G:()=>s});var a=r(95155),l=r(12115);let s=e=>{let{index:t,x:r,y:s,value:n,length:i,strokeSize:o=2,onlyOdd:d=!1}=e,c=new Intl.NumberFormat("fr-FR",{style:"currency",currency:"EUR",maximumFractionDigits:0}).format(n),u=(0,l.useRef)(null),[x,h]=(0,l.useState)({width:0,height:0}),[m,f]=(0,l.useState)(r),[y,b]=(0,l.useState)(s-20),[p,j]=(0,l.useState)(r);return((0,l.useEffect)(()=>{if(u.current){let e,a=u.current.getBBox();h(a),0===t?j((e=r-8+o/2)+8):t>=i-1?j((e=r-a.width+8+o/2)+a.width-8):j((e=r-a.width/2+o/2)+a.width/2-1),f(e)}},[c]),d&&t%2==0)?(0,a.jsx)(a.Fragment,{}):(0,a.jsxs)("g",{children:[(0,a.jsx)("rect",{className:"fill-brand-primary-bleu",x:m-6,y:y-x.height,width:x.width+12,height:x.height+6,rx:"5",ry:"5"}),(0,a.jsx)("polygon",{className:"fill-brand-primary-bleu",points:"".concat(p-7,",").concat(y+4," ").concat(p,",").concat(y+12," ").concat(p+7,",").concat(y+4)}),(0,a.jsx)("text",{className:"fill-brand-primary-perle font-body text-xs",x:m,y:y,ref:u,children:c})]})}}}]);

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.