PageSourceSearch

https://kalpintelligence.com/_next/static/chunks/2907.f38b2b6cefaa71af.js

js kalpintelligence.com collected 2026-10-09 22:50:23 UTC 16,627 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2907],{42907:(e,t,r)=>{r.r(t),r.d(t,{default:()=>eW});var n=r(95155),a=r(26265),i=r(12115),l=r(33308),o=r(1953),s=["axis"],u=(0,i.forwardRef)((e,t)=>i.createElement(o.P,{chartName:"ComposedChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:s,tooltipPayloadSearcher:l.uN,categoricalChartProps:e,ref:t})),c=r(68425),d=r(47734),p=r(73697),f=r(33420),y=r(37665),m=r(2821),h=r(87095),v=r(96083),x=r(49580),g=r(36164),b=r(90167),E=r(89094),O=r(81024),A=r(35185),P=r(35704),j=r(22858),k=r(55730),I=r(85224),w=r(37808),S=r(30732),N=r(92377);class D{map(e,t){var r,n,{position:a}=t;return{x:null!=(r=this.xAxisScale.map(e.x,{position:a}))?r:0,y:null!=(n=this.yAxisScale.map(e.y,{position:a}))?n:0}}mapWithFallback(e,t){var r,n,a,i,{position:l,fallback:o}=t;return a="rangeMin"===o?this.yAxisScale.rangeMin():"rangeMax"===o?this.yAxisScale.rangeMax():0,i="rangeMin"===o?this.xAxisScale.rangeMin():"rangeMax"===o?this.xAxisScale.rangeMax():0,{x:null!=(r=this.xAxisScale.map(e.x,{position:l}))?r:i,y:null!=(n=this.yAxisScale.map(e.y,{position:l}))?n:a}}isInRange(e){var{x:t,y:r}=e,n=null==t||this.xAxisScale.isInRange(t),a=null==r||this.yAxisScale.isInRange(r);return n&&a}constructor(e){var{x:t,y:r}=e;this.xAxisScale=t,this.yAxisScale=r}}function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach(function(t){var n,a,i;n=e,a=t,i=r[t],(a=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(a))in n?Object.defineProperty(n,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[a]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function W(){return(W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function z(e){var t=(0,O.j)();return(0,i.useEffect)(()=>(t((0,E.cG)(e)),()=>{t((0,E.hj)(e))})),null}function C(e){var{xAxisId:t,yAxisId:r,shape:n,className:a,ifOverflow:l}=e,o=(0,P.r)(),s=(0,j.Y)(),u=(0,O.G)(e=>(0,A.Rl)(e,t)),c=(0,O.G)(e=>(0,A.sf)(e,r)),d=(0,O.G)(e=>(0,A.iV)(e,"xAxis",t,o)),p=(0,O.G)(e=>(0,A.iV)(e,"yAxis",r,o)),f=(0,b.sk)();if(!s||!f||null==u||null==c||null==d||null==p)return null;var y=((e,t,r,n,a,i,l)=>{var o,s,u,c,d,{x:p,y:f,segment:y,ifOverflow:m}=l,h=(0,x.vh)(p);return(0,x.vh)(f)?((e,t,r,n,a,i)=>{var{x:l,width:o}=i,s=a.map(e,{position:r});if(!(0,N.H)(s)||"discard"===t&&!a.isInRange(s))return null;var u=[{x:l+o,y:s},{x:l,y:s}];return"left"===n?u.reverse():u})(f,m,n,i,t,r):h?((e,t,r,n,a,i)=>{var{y:l,height:o}=i,s=a.map(e,{position:r});if(!(0,N.H)(s)||"discard"===t&&!a.isInRange(s))return null;var u=[{x:s,y:l+o},{x:s,y:l}];return"top"===n?u.reverse():u})(p,m,n,a,e,r):null!=y&&2===y.length?(o=y,s=m,u=n,d=[(c=new D({x:e,y:t})).mapWithFallback(o[0],{position:u,fallback:"rangeMin"}),c.mapWithFallback(o[1],{position:u,fallback:"rangeMax"})],"discard"===s&&d.some(e=>!c.isInRange(e))?null:d):null})(d,p,f,e.position,u.orientation,c.orientation,e);if(!y)return null;var E=y[0],I=y[1];if(null==E||null==I)return null;var{x:S,y:R}=E,{x:z,y:C}=I,F=M(M({clipPath:"hidden"===l?"url(#".concat(s,")"):void 0},(0,k.a)(e)),{},{x1:S,y1:R,x2:z,y2:C}),T=(0,g.vh)({x1:S,y1:R,x2:z,y2:C});return i.createElement(w.g,{zIndex:e.zIndex},i.createElement(h.W,{className:(0,m.$)("recharts-reference-line",a)},((e,t)=>{var r;if(i.isValidElement(e))r=i.cloneElement(e,t);else if("function"==typeof e)r=e(t);else{if(!(0,N.H)(t.x1)||!(0,N.H)(t.y1)||!(0,N.H)(t.x2)||!(0,N.H)(t.y2))return null;r=i.createElement("line",W({},t,{className:"recharts-reference-line-line"}))}return r})(n,F),i.createElement(v.zJ,W({},T,{lowerWidth:T.width,upperWidth:T.width}),i.createElement(v._I,{label:e.label}),e.children)))}var F={ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",label:!1,stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle",zIndex:S.I.line};function T(e){var t=(0,I.e)(e,F);return i.createElement(i.Fragment,null,i.createElement(z,{yAxisId:t.yAxisId,xAxisId:t.xAxisId,ifOverflow:t.ifOverflow,x:t.x,y:t.y,segment:t.segment}),i.createElement(C,t))}
1T.displayName="ReferenceLine";var G=r(14989),K=r(14724),L=r(45530),H=r(70543),V=r(51023),B=r(97255),_=r(87176),J=r(64148),$=r(29552),Q=r(76069),Y=r(90135),q=(e,t,r,n)=>(0,A.Gx)(e,"xAxis",t,n),X=(e,t,r,n)=>(0,A.CR)(e,"xAxis",t,n),Z=(e,t,r,n)=>(0,A.Gx)(e,"yAxis",r,n),U=(e,t,r,n)=>(0,A.CR)(e,"yAxis",r,n),ee=(0,Q.Mz)([b.fz,q,Z,X,U],(e,t,r,n,a)=>(0,V._L)(e,"xAxis")?(0,V.Hj)(t,n,!1):(0,V.Hj)(r,a,!1));function et(e){return"line"===e.type}var er=(0,Q.Mz)([A.ld,(e,t,r,n,a)=>a],(e,t)=>e.filter(et).find(e=>e.id===t)),en=(0,Q.Mz)([b.fz,q,Z,X,U,er,ee,Y.k$],(e,t,r,n,a,i,l,o)=>{var s,{chartData:u,dataStartIndex:c,dataEndIndex:d}=o;if(null!=i&&null!=t&&null!=r&&null!=n&&null!=a&&0!==n.length&&0!==a.length&&null!=l&&("horizontal"===e||"vertical"===e)){var{dataKey:p,data:f}=i;if(null!=(s=null!=f&&f.length>0?f:null==u?void 0:u.slice(c,d+1)))return function(e){var{layout:t,xAxis:r,yAxis:n,xAxisTicks:a,yAxisTicks:i,dataKey:l,bandSize:o,displayedData:s}=e;return s.map((e,s)=>{var u=(0,V.kr)(e,l);if("horizontal"===t){var c=(0,V.nb)({axis:r,ticks:a,bandSize:o,entry:e,index:s}),d=(0,x.uy)(u)?null:n.scale.map(u);return{x:c,y:null!=d?d:null,value:u,payload:e}}var p=(0,x.uy)(u)?null:r.scale.map(u),f=(0,V.nb)({axis:n,ticks:i,bandSize:o,entry:e,index:s});return null==p||null==f?null:{x:p,y:f,value:u,payload:e}}).filter(Boolean)}({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:a,dataKey:p,bandSize:l,displayedData:s})}}),ea=r(68997),ei=r(94913),el=r(70806),eo=r(48971),es=r(3838),eu=r(4264),ec=r(12520),ed=r(88431),ep=r(53002),ef=r(46669),ey=["id"],em=["type","layout","connectNulls","needClip","shape"],eh=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function ev(){return(ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function ex(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ex(Object(r),!0).forEach(function(t){var n,a,i;n=e,a=t,i=r[t],(a=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(a))in n?Object.defineProperty(n,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[a]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ex(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function eb(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var eE=i.memo(e=>{var{dataKey:t,data:r,stroke:n,strokeWidth:a,fill:l,name:o,hide:s,unit:u,tooltipType:c,id:d}=e,p={dataDefinedOnItem:r,getPosition:x.lQ,settings:{stroke:n,strokeWidth:a,fill:l,dataKey:t,nameKey:void 0,name:(0,V.uM)(o,t),hide:s,type:c,color:n,unit:u,graphicalItemId:d}};return i.createElement(_.r,{tooltipEntrySettings:p})}),eO=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function eA(e){var{clipPathId:t,points:r,props:n}=e,{dot:a,dataKey:l,needClip:o}=n,{id:s}=n,u=eb(n,ey),c=(0,eu.uZ)(u);return i.createElement(L.n,{points:r,dot:a,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:l,baseProps:c,needClip:o,clipPathId:t})}function eP(e){var{showLabels:t,children:r,points:n}=e,a=(0,i.useMemo)(()=>null==n?void 0:n.map(e=>{var t,r,n={x:null!=(t=e.x)?t:0,y:null!=(r=e.y)?r:0,width:0,lowerWidth:0,upperWidth:0,height:0};return eg(eg({},n),{},{value:e.value,payload:e.payload,viewBox:n,parentViewBox:void 0,fill:void 0})}),[n]);return i.createElement(K.h8,{value:t?a:void 0},r)}function ej(e){var{clipPathId:t,pathRef:r,points:n,strokeDasharray:a,props:l}=e,{type:o,layout:s,connectNulls:u,needClip:c,shape:d}=l,p=eb(l,em),f=eg(eg({},(0,k.a)(p)),{},{fill:"none",className:"recharts-line-curve",clipPath:c?"url(#clipPath-".concat(t,")"):void 0,points:n,type:o,layout:s,connectNulls:u,strokeDasharray:null!=a?a:l.strokeDasharray});return i.createElement(i.Fragment,null,(null==n?void 0:n.length)>1&&i.createElement(ep.y,ev({shapeType:"curve",option:d},f,{pathRef:r})),i.createElement(eA,{points:n,clipPathId:t,props:l}))}function ek(e){var{clipPathId:t,props:r,pathRef:n,previousPointsRef:a,longestAnimatedLengthRef:l}=e,{points:o,strokeDasharray:s,isAnimationActive:u,animationBegin:c,animationDuration:d,animationEasing:p,animateNewValues:f,width:y,height:m,onAnimationEnd:h,onAnimationStart:v}=r,g=a.current,b=(0,ei.n)(o,"recharts-line-"),E=(0,i.useRef)(b),[O,A]=(0,i.useState)(!1),P=(0,i.useCallback)(()=>{"function"==typeof h&&h(),A(!1)}
1,[h]),j=(0,i.useCallback)(()=>{"function"==typeof v&&v(),A(!0)},[v]),k=function(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}(n.current),I=(0,i.useRef)(0);E.current!==b&&(I.current=l.current,E.current=b);var w=I.current;return i.createElement(eP,{points:o,showLabels:!O},r.children,i.createElement(ec.J,{animationId:b,begin:c,duration:d,isActive:u,easing:p,onAnimationEnd:P,onAnimationStart:j,key:b},e=>{var c,d=Math.min((0,x.GW)(w,k+w,e),k);if(c=u?s?((e,t,r)=>{var n=r.reduce((e,t)=>e+t);if(!n)return eO(t,e);for(var a=Math.floor(e/n),i=e%n,l=t-e,o=[],s=0,u=0;s<r.length;u+=null!=(c=r[s])?c:0,++s){var c,d=r[s];if(null!=d&&u+d>i){o=[...r.slice(0,s),i-u];break}}var p=o.length%2==0?[0,l]:[l];return[...function(e,t){for(var r=e.length%2!=0?[...e,0]:e,n=[],a=0;a<t;++a)n=[...n,...r];return n}(r,a),...o,...p].map(e=>"".concat(e,"px")).join(", ")})(d,k,"".concat(s).split(/[,\s]+/gim).map(e=>parseFloat(e))):eO(k,d):null==s?void 0:String(s),e>0&&k>0&&(a.current=o,l.current=Math.max(l.current,d)),g){var p=g.length/o.length,h=1===e?o:o.map((t,r)=>{var n=Math.floor(r*p);if(g[n]){var a=g[n];return eg(eg({},t),{},{x:(0,x.GW)(a.x,t.x,e),y:(0,x.GW)(a.y,t.y,e)})}return f?eg(eg({},t),{},{x:(0,x.GW)(2*y,t.x,e),y:(0,x.GW)(m/2,t.y,e)}):eg(eg({},t),{},{x:t.x,y:t.y})});return a.current=h,i.createElement(ej,{props:r,points:h,clipPathId:t,pathRef:n,strokeDasharray:c})}return i.createElement(ej,{props:r,points:o,clipPathId:t,pathRef:n,strokeDasharray:c})}),i.createElement(K.qY,{label:r.label}))}function eI(e){var{clipPathId:t,props:r}=e,n=(0,i.useRef)(null),a=(0,i.useRef)(0),l=(0,i.useRef)(null);return i.createElement(ek,{props:r,clipPathId:t,previousPointsRef:n,longestAnimatedLengthRef:a,pathRef:l})}var ew=(e,t)=>{var r,n;return{x:null!=(r=e.x)?r:void 0,y:null!=(n=e.y)?n:void 0,value:e.value,errorVal:(0,V.kr)(e.payload,t)}};class eS extends i.Component{render(){var{hide:e,dot:t,points:r,className:n,xAxisId:a,yAxisId:l,top:o,left:s,width:u,height:c,id:d,needClip:p,zIndex:f}=this.props;if(e)return null;var y=(0,m.$)("recharts-line",n),{r:v,strokeWidth:x}=(0,ed.x)(t),g=(0,H.y$)(t),b=2*v+x,E=p?"url(#clipPath-".concat(g?"":"dots-").concat(d,")"):void 0;return i.createElement(w.g,{zIndex:f},i.createElement(h.W,{className:y},p&&i.createElement("defs",null,i.createElement($.Q,{clipPathId:d,xAxisId:a,yAxisId:l}),!g&&i.createElement("clipPath",{id:"clipPath-dots-".concat(d)},i.createElement("rect",{x:s-b/2,y:o-b/2,width:u+b,height:c+b}))),i.createElement(J.zk,{xAxisId:a,yAxisId:l,data:r,dataPointFormatter:ew,errorBarOffset:0},i.createElement(eI,{props:this.props,clipPathId:d}))),i.createElement(B.W,{activeDot:this.props.activeDot,points:r,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:E}))}}var eN={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:S.I.line,type:"linear"};function eD(e){var t=(0,I.e)(e,eN),{activeDot:r,animateNewValues:n,animationBegin:a,animationDuration:l,animationEasing:o,connectNulls:s,dot:u,hide:c,isAnimationActive:d,label:p,legendType:f,xAxisId:y,yAxisId:m,id:h}=t,v=eb(t,eh),{needClip:x}=(0,$.l)(y,m),g=(0,el.oM)(),E=(0,b.WX)(),A=(0,P.r)(),j=(0,O.G)(e=>en(e,y,m,A,h));if("horizontal"!==E&&"vertical"!==E||null==j||null==g)return null;var{height:k,width:w,x:S,y:N}=g;return i.createElement(eS,ev({},v,{id:h,connectNulls:s,dot:u,activeDot:r,animateNewValues:n,animationBegin:a,animationDuration:l,animationEasing:o,isAnimationActive:d,hide:c,label:p,legendType:f,xAxisId:y,yAxisId:m,points:j,layout:E,height:k,width:w,left:S,top:N,needClip:x}))}var eR=i.memo(function(e){var t=(0,I.e)(e,eN),r=(0,P.r)();return i.createElement(eo.x,{id:t.id,type:"line"},e=>i.createElement(i.Fragment,null,i.createElement(ea.A,{legendPayload:(e=>{var{dataKey:t,name:r,stroke:n,legendType:a,hide:i}=e;return[{inactive:i,dataKey:t,type:a,color:n,value:(0,V.uM)(r,t),payload:e}]})(t)}),i.createElement(eE,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),i.createElement(es.p,{type:"line",id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),i.createElement(eD,ev({},t,{id:e}))))},ef.P);eR.displayName="Line";let eM=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function eW(e){let{monthlyRevenue:t,monthlyPayroll:r,totalMonthlyExpense:i}=e,l=Math.round(r+i),o=eM.map((e,r)=>{var n;let a=null!=(n=t[r])?n:0,i=a-l;return{name:e,revenue:a,out:l,net:i}});return(0,n.jsx)(a.u,{width:"100%",height:320,children:(0,n.jsxs)(u,{data:o,margin:{top:10,right:10,left:0,bottom:0},children:[(0,n.jsx)(c.d,{strokeDasharray:"3 3",vertical:!1,stroke:"hsl(var(--muted-foreground) / 0.1)"}),(0,n.jsx)(d.W,{dataKey:"name",stroke:"hsl(var(--muted-foreground))",fontSize:11,tickLine:!1,axisLine
1:!1,tick:{fill:"hsl(var(--muted-foreground))"},dy:10}),(0,n.jsx)(p.h,{stroke:"hsl(var(--muted-foreground))",fontSize:11,tickLine:!1,axisLine:!1,tickFormatter:e=>Math.abs(e)>=1e5?"₹".concat((e/1e5).toFixed(1),"L"):"₹".concat(e),tick:{fill:"hsl(var(--muted-foreground))"}}),(0,n.jsx)(f.m,{contentStyle:{backgroundColor:"hsl(var(--background))",borderRadius:"12px",border:"1px solid hsl(var(--border))",boxShadow:"0 10px 15px -3px rgb(0 0 0 / 0.1)"},labelStyle:{fontWeight:"bold",marginBottom:"4px"},formatter:(e,t)=>{let r;return[(r=Number(null!=e?e:0),new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",maximumFractionDigits:0}).format(r)),"revenue"===t?"Revenue (in)":"out"===t?"Salary + Expense (out)":"Net (profit / loss)"]},labelFormatter:e=>"".concat(e)}),(0,n.jsx)(y.s,{wrapperStyle:{fontSize:"11px"},formatter:e=>(0,n.jsxs)("span",{style:{color:"hsl(var(--muted-foreground))"},children:["revenue"===e&&"Revenue (in)","out"===e&&"Salary + Expense (out)","net"===e&&"Net (profit / loss)"]})}),(0,n.jsx)(T,{y:0,stroke:"hsl(var(--border))",strokeDasharray:"2 2"}),(0,n.jsx)(G.yP,{dataKey:"revenue",name:"revenue",fill:"hsl(142 76% 36%)",fillOpacity:.85,radius:[4,4,0,0],barSize:24}),(0,n.jsx)(G.yP,{dataKey:"out",name:"out",fill:"hsl(25 95% 53%)",fillOpacity:.85,radius:[4,4,0,0],barSize:24}),(0,n.jsx)(eR,{type:"monotone",dataKey:"net",name:"net",stroke:"hsl(var(--primary))",strokeWidth:3,dot:{r:4,fill:"hsl(var(--primary))"},strokeDasharray:0})]})})}}}]);

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.