PageSourceSearch

https://mundadafinserve.com/_next/static/chunks/8673.a142ec1919fbfd25.js

js mundadafinserve.com collected 2026-10-02 01:39:05 UTC 31,521 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8673],{88673:(e,t,a)=>{a.r(t),a.d(t,{default:()=>E});var s=a(95155),r=a(15330),l=a(12115),n=a(79894),d=a(76002),i=a(51443),c=a(42058),o=a(36496),m=a(70225),u=a(74768),v=a(52912),x=a(57307),h=a(90492),g=a(60399),b=a(87778),j=a(24164),p=a(63106);let N={amount:{label:"Remaining Invested Amount",color:"var(--rv-chart-invested, var(--rv-primary))"},currentvalue:{label:"Remaining Fund Value",color:"var(--rv-chart-growth, var(--rv-secondary))"}};function f(e){let{piedata:t,startDate:a,endDate:r,title:n,withdrawal:d}=e,[i,c]=l.useState([]);return l.useEffect(()=>{var e,a;c((a=null==t||null==(e=t.withdrawlingScheme)?void 0:e.resData)&&Array.isArray(a)?a.map(e=>({date:e.navDate||new Date().toISOString(),amount:e.netAmount||0,currentvalue:e.currentValue||0})):[])},[t]),(0,s.jsxs)(j.Zp,{className:"bg-[var(--rv-bg-surface)] text-[var(--rv-text)] shadow-md border-[var(--rv-border)]",children:[(0,s.jsxs)(j.aR,{children:[(0,s.jsx)(j.ZB,{className:"text-[var(--rv-text)]",children:n}),(0,s.jsxs)(j.BT,{className:"text-[var(--rv-text-muted)]",children:[a," to ",r," (Current Value As on ",r,")"]})]}),(0,s.jsx)(j.Wu,{children:(0,s.jsx)(p.at,{config:N,className:"h-56 w-full",children:(0,s.jsxs)(v.Q,{accessibilityLayer:!0,data:i,margin:{left:12,right:12},children:[(0,s.jsx)(x.d,{vertical:!1,strokeDasharray:"3 3",stroke:"var(--rv-border)"}),(0,s.jsx)(h.W,{dataKey:"date",tickLine:!1,axisLine:!1,tickMargin:8,tick:{fill:"var(--rv-text-muted)"},tickFormatter:e=>new Date(e).toLocaleDateString("en-US",{month:"short",year:"numeric"})}),(0,s.jsx)(g.h,{tickLine:!1,axisLine:!1,tickMargin:8,tickCount:7,tick:{fill:"var(--rv-text-muted)"}}),(0,s.jsx)(p.II,{cursor:!1,content:(0,s.jsx)(p.Nt,{className:"bg-[var(--rv-bg-surface)] text-[var(--rv-text)] border-[var(--rv-border)]"})}),(0,s.jsxs)("defs",{children:[(0,s.jsxs)("linearGradient",{id:"fillAmount",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,s.jsx)("stop",{offset:"5%",stopColor:"var(--rv-chart-invested, var(--rv-primary))",stopOpacity:.55}),(0,s.jsx)("stop",{offset:"95%",stopColor:"var(--rv-chart-invested, var(--rv-primary))",stopOpacity:.08})]}),(0,s.jsxs)("linearGradient",{id:"fillCurrentvalue",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,s.jsx)("stop",{offset:"5%",stopColor:"var(--rv-chart-growth, var(--rv-secondary))",stopOpacity:.55}),(0,s.jsx)("stop",{offset:"95%",stopColor:"var(--rv-chart-growth, var(--rv-secondary))",stopOpacity:.08})]})]}),(0,s.jsx)(b.G,{dataKey:"amount",type:"natural",fill:"url(#fillAmount)",fillOpacity:.7,stroke:"var(--rv-chart-invested, var(--rv-primary))",stackId:"a"}),(0,s.jsx)(b.G,{dataKey:"currentvalue",type:"natural",fill:"url(#fillCurrentvalue)",fillOpacity:.7,stroke:"var(--rv-chart-growth, var(--rv-secondary))",stackId:"a"})]})})}),(0,s.jsx)(j.wL,{children:(0,s.jsx)("div",{className:"flex w-full items-start gap-2 text-sm",children:(0,s.jsxs)("div",{className:"grid gap-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 font-medium leading-none",children:["Trending up by ",null==t?void 0:t.xirrRate,"%",(0,s.jsx)(u.A,{className:"h-4 w-4"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 leading-none text-[var(--rv-text)]",children:[a," - ",r]})]})})})]})}var y=a(78805),w=a(50147),S=a(898),C=a(30130);a(15239);var k=a(75081);let A=e=>{var t,a;let r=e.data.investedScheme.sipData,[d,i]=l.useState(!1),[c,o]=l.useState([]),[m,u]=l.useState([]),[v,x]=l.useState({}),[h,g]=l.useState({}),b=[{accessorKey:"navDate",header:e=>{let{column:t}=e;return(0,s.jsxs)(n.$,{variant:"ghost",onClick:()=>t.toggleSorting("asc"===t.getIsSorted()),children:["Date",(0,s.jsx)(k.TBE,{className:"ml-2 h-4 w-4"})]})},cell:e=>{let{row:t}=e;return(0,s.jsx)("div",{children:t.getValue("navDate")})}},{accessorKey:"cashFlow",header:e=>{let{column:t}=e;return(0,s.jsxs)(n.$,{variant:"ghost",onClick:()=>t.toggleSorting("asc"===t.getIsSorted()),children:["Cash Flow",(0,s.jsx)(k.TBE,{className:"ml-2 h-4 w-4"})]})},cell:e=>{let{row:t}=e;return(0,s.jsx)("div",{children:t.getValue("cashFlow")})}},{accessorKey:"nav",header:e=>{let{column:t}=e;return(0,s.jsxs)(n.$,{variant:"ghost",onClick:()=>t.toggleSorting("asc"===t.getIsSorted()),children:["Nav",(0,s.jsx)(k.TBE,{className:"ml-2 h-4 w-4"})]})},cell:e=>{let{row:t}=e;return(0,s.jsx)("div",{children:t.getValue("nav")})}},{accessorKey:"units",header:e=>{let{column:t}=e;return(0,s.jsxs)(n.$,{variant:"ghost",onClick:()=>t.toggleSorting("asc"===t.getIsSorted()),children:["Units",(0,s.jsx)(k.TBE,{className:"ml-2 h-4 w-4"})]})},cell:e=>{let{row:t}=e;return(0,s.jsx)("div",{className:"capitalize",children:t.getValue("units")})}},{accessorKey:"cumulitiveUnits",header:e=>{let{column:t}=e;return(0,s.jsxs)(n.$,{variant:"ghost",onClick:()=>t.toggleSorting("asc"===t.getIsSorted()),children:["Cumulative Unit",(0,s.jsx)(k.TBE,{className:"ml-2 h-4 w-4"})]})},cell:e=>{let{row:t}=e;return(0,s.jsx)("div",{className:"capitalize",children:t.getValue("cumulitiveUnits")})}},{accessorKey:"amount",header:e=>{let{column:t}=e;return(0,s.jsxs)(n.$,{variant:"ghost",onClick:()=>t.toggleSorting("asc"===t.getIsSorted()),children:["Amount",(0,s.jsx)(k.TBE,{className:"ml-2 h-4 w-4"})]})},cell:e=>{let{row:t}=e;return(0,s.jsx)("div",{className:"capitalize",children:t.getValue("amount")})}},{accessorKey:"currentValue",header:e=>{let{column:t}=e;return(0,s.jsxs)(n.$,{variant:"ghost",onClick:()=>t.toggleSorting("asc"===t.getIsSorted()),children:["Valuation",(0,s.jsx)(k.TBE,{className:"ml-2 h-4 w-4"})]})},cell:e=>{let{row:t}=e;return(0,s.jsx)("div",{className:"capitalize",children:t.getValue("currentValue")})}}
1],j=(0,y.N4)({data:r||[],columns:b,getCoreRowModel:(0,w.HT)(),getPaginationRowModel:(0,w.kW)(),getSortedRowModel:(0,w.h5)(),getFilteredRowModel:(0,w.hM)(),onSortingChange:o,onColumnFiltersChange:u,onColumnVisibilityChange:x,onRowSelectionChange:g,state:{sorting:c,columnFilters:m,columnVisibility:v,rowSelection:h}});return(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsx)("div",{className:"flex items-center py-4",children:(0,s.jsx)(S.p,{placeholder:"Filter by title...",value:null!=(a=null==(t=j.getColumn("navDate"))?void 0:t.getFilterValue())?a:"",onChange:e=>{var t;return null==(t=j.getColumn("navDate"))?void 0:t.setFilterValue(e.target.value)},className:"max-w-sm"})}),(0,s.jsx)("div",{className:"rounded-md border",children:(0,s.jsxs)(C.XI,{children:[(0,s.jsx)(C.A0,{children:j.getHeaderGroups().map(e=>(0,s.jsx)(C.Hj,{children:e.headers.map(e=>(0,s.jsx)(C.nd,{children:e.isPlaceholder?null:(0,y.Kv)(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),(0,s.jsx)(C.BF,{children:r.length?j.getRowModel().rows.map(e=>(0,s.jsx)(C.Hj,{"data-state":e.getIsSelected()&&"selected",children:e.getVisibleCells().map(e=>(0,s.jsx)(C.nA,{children:(0,y.Kv)(e.column.columnDef.cell,e.getContext())},e.id))},e.id)):(0,s.jsx)(C.Hj,{children:(0,s.jsx)(C.nA,{colSpan:b.length,className:"h-24 text-center",children:"No results."})})})]})}),(0,s.jsxs)("div",{className:"flex items-center justify-end space-x-2 py-4",children:[(0,s.jsx)(n.$,{variant:"outline",size:"sm",onClick:()=>j.previousPage(),disabled:!j.getCanPreviousPage(),children:"Previous"}),(0,s.jsx)(n.$,{variant:"outline",size:"sm",onClick:()=>j.nextPage(),disabled:!j.getCanNextPage(),children:"Next"})]})]})})},F=e=>{var t,a;let r=e.data.withdrawlingScheme.resData,[d,i]=l.useState(!1),[c,o]=l.useState([]),[m,u]=l.useState([]),[v,x]=l.useState({}),[h,g]=l.useState({}),b=[{accessorKey:"navDate",header:e=>{let{column:t}=e;return(0,s.jsxs)(n.$,{variant:"ghost",onClick:()=>t.toggleSorting("asc"===t.getIsSorted()),children:["Date",(0,s.jsx)(k.TBE,{className:"ml-2 h-4 w-4"})]})},cell:e=>{let{row:t}=e;return(0,s.jsx)("div",{children:t.getValue("navDate")})}},{accessorKey:"cashFlow",header:e=>{let{column:t}=e;return(0,s.jsxs)(n.$,{variant:"ghost",onClick:()=>t.toggleSorting("asc"===t.getIsSorted()),children:["Cash Flow",(0,s.jsx)(k.TBE,{className:"ml-2 h-4 w-4"})]})},cell:e=>{let{row:t}=e;return(0,s.jsx)("div",{children:t.getValue("cashFlow")})}},{accessorKey:"nav",header:e=>{let{column:t}=e;return(0,s.jsxs)(n.$,{variant:"ghost",onClick:()=>t.toggleSorting("asc"===t.getIsSorted()),children:["Nav",(0,s.jsx)(k.TBE,{className:"ml-2 h-4 w-4"})]})},cell:e=>{let{row:t}=e;return(0,s.jsx)("div",{children:t.getValue("nav")})}},{accessorKey:"units",header:e=>{let{column:t}=e;return(0,s.jsxs)(n.$,{variant:"ghost",onClick:()=>t.toggleSorting("asc"===t.getIsSorted()),children:["Units",(0,s.jsx)(k.TBE,{className:"ml-2 h-4 w-4"})]})},cell:e=>{let{row:t}=e;return(0,s.jsx)("div",{className:"capitalize",children:t.getValue("units")})}},{accessorKey:"cumulativeUnits",header:e=>{let{column:t}=e;return(0,s.jsxs)(n.$,{variant:"ghost",onClick:()=>t.toggleSorting("asc"===t.getIsSorted()),children:["Cumulative Unit",(0,s.jsx)(k.TBE,{className:"ml-2 h-4 w-4"})]})},cell:e=>{let{row:t}=e;return(0,s.jsx)("div",{className:"capitalize",children:t.getValue("cumulativeUnits")})}},{accessorKey:"netAmount",header:e=>{let{column:t}=e;return(0,s.jsxs)(n.$,{variant:"ghost",onClick:()=>t.toggleSorting("asc"===t.getIsSorted()),children:["Amount",(0,s.jsx)(k.TBE,{className:"ml-2 h-4 w-4"})]})},cell:e=>{let{row:t}=e;return(0,s.jsx)("div",{className:"capitalize",children:t.getValue("netAmount")})}},{accessorKey:"currentValue",header:e=>{let{column:t}=e;return(0,s.jsxs)(n.$,{variant:"ghost",onClick:()=>t.toggleSorting("asc"===t.getIsSorted()),children:["Valuation",(0,s.jsx)(k.TBE,{className:"ml-2 h-4 w-4"})]})},cell:e=>{let{row:t}=e;return(0,s.jsx)("div",{className:"capitalize",children:t.getValue("currentValue")})}}],j=(0,y.N4)({data:r||[],columns:b,getCoreRowModel:(0,w.HT)(),getPaginationRowModel:(0,w.kW)(),getSortedRowModel:(0,w.h5)(),getFilteredRowModel:(0,w.hM)(),onSortingChange:o,onColumnFiltersChange:u,onColumnVisibilityChange:x,onRowSelectionChange:g,state:{sorting:c,columnFilters:m,columnVisibility:v,rowSelection:h}});return(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsx)("div",{className:"flex items-center py-4",children:(0,s.jsx)(S.p,{placeholder:"Filter by title...",value:null!=(a=null==(t=j.getColumn("navDate"))?void 0:t.getFilterValue())?a:"",onCh
1ange:e=>{var t;return null==(t=j.getColumn("navDate"))?void 0:t.setFilterValue(e.target.value)},className:"max-w-sm"})}),(0,s.jsx)("div",{className:"rounded-md border",children:(0,s.jsxs)(C.XI,{children:[(0,s.jsx)(C.A0,{children:j.getHeaderGroups().map(e=>(0,s.jsx)(C.Hj,{children:e.headers.map(e=>(0,s.jsx)(C.nd,{children:e.isPlaceholder?null:(0,y.Kv)(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),(0,s.jsx)(C.BF,{children:r.length?j.getRowModel().rows.map(e=>(0,s.jsx)(C.Hj,{"data-state":e.getIsSelected()&&"selected",children:e.getVisibleCells().map(e=>(0,s.jsx)(C.nA,{children:(0,y.Kv)(e.column.columnDef.cell,e.getContext())},e.id))},e.id)):(0,s.jsx)(C.Hj,{children:(0,s.jsx)(C.nA,{colSpan:b.length,className:"h-24 text-center",children:"No results."})})})]})}),(0,s.jsxs)("div",{className:"flex items-center justify-end space-x-2 py-4",children:[(0,s.jsx)(n.$,{variant:"outline",size:"sm",onClick:()=>j.previousPage(),disabled:!j.getCanPreviousPage(),children:"Previous"}),(0,s.jsx)(n.$,{variant:"outline",size:"sm",onClick:()=>j.nextPage(),disabled:!j.getCanNextPage(),children:"Next"})]})]})})};var D=a(34416);function E(){var e,t,a,u,v,x,h,g,b,j,p,N,y,w,S,C,k,E,T;function I(){let e=new Date,t=e.getFullYear(),a=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(a,"-").concat(s)}let[V,R]=(0,l.useState)([]),[M,O]=(0,l.useState)(null),[P,$]=(0,l.useState)(!0),[K,B]=(0,l.useState)([]),[L,U]=(0,l.useState)([]),[_,H]=(0,l.useState)([]),[z,G]=(0,l.useState)("2021-10-14"),[q,W]=(0,l.useState)(I()),[X,Y]=(0,l.useState)("2020-10-14"),[Q,Z]=(0,l.useState)(1e5),[J,ee]=(0,l.useState)(1e3),[et,ea]=(0,l.useState)(""),[es,er]=(0,l.useState)(""),[el,en]=(0,l.useState)(""),[ed,ei]=(0,l.useState)(""),[ec,eo]=(0,l.useState)("graph"),[em,eu]=(0,l.useState)([]),[ev,ex]=(0,l.useState)(new Set),[eh,eg]=(0,l.useState)(!1),[eb,ej]=(0,l.useState)(!1),[ep,eN]=(0,l.useState)(null),[ef,ey]=(0,l.useState)(null),[ew,eS]=(0,l.useState)("");(0,l.useEffect)(()=>{let e=localStorage.getItem("formSubmitted"),t=localStorage.getItem("submissionTimestamp");"true"===e&&t&&(Date.now()-t>1296e6?(localStorage.removeItem("formSubmitted"),localStorage.removeItem("submissionTimestamp"),eg(!1)):eg(!0))},[]);let eC=async()=>{try{let e=await r.A.get("".concat("https://shared.redvisionassets.com","/api/open-apis/all-amc"));B(e.data)}catch(e){console.error("Error fetching AMC data:",e)}},ek=async()=>{try{let e=await r.A.get("".concat("https://shared.redvisionassets.com","/api/open-apis/get-assets"));eu(e.data)}catch(e){console.error("Error fetching AMC data:",e)}};(0,l.useEffect)(()=>{eD()},[L]),l.useEffect(()=>{eC(),ek()},[]);let eA=e=>{let t=null==e?void 0:e.assets_class;t?ex(e=>{let a=new Set(e);return a.has(t)?a.delete(t):a.add(t),a}):console.warn("No valid assets_class found in selectedAcm")};(0,l.useEffect)(()=>{let e=Array.from(ev).filter(e=>void 0!==e);e.length>0&&eF(e)},[ev]);let eF=async e=>{try{let t=await r.A.get("".concat("https://shared.redvisionassets.com","/api/open-apis/get-sub-assets?subAssetClass=").concat(e));R(t)}catch(e){console.error("Error fetching schemes data:",e)}},eD=async e=>{(null==_?void 0:_.includes(null==e?void 0:e.fund))||H(t=>[...t,null==e?void 0:e.fund]);try{let e=await r.A.get("".concat("https://shared.redvisionassets.com","/api/open-apis/all-scheme?fund=").concat(_));R(e)}catch(e){console.error("Error fetching schemes data:",e)}},eE=async()=>{if(0===L.length||0===es.length||0===et.length)(0,d.oR)({variant:"destructive",title:"Please select scheme"}),ej(!1);else try{var e,t,a,s;let l=await r.A.post("".concat("https://shared.redvisionassets.com","/api/research-calculator/stp-performance"),{startDate:z,endDate:q,fromFundPcode:et,toFundPcode:es,lumpsumInvestedDate:X,initialAmount:Number(Q),transferAmount:Number(J)});null==l.data.data||0===Object.keys(null==l||null==(t=l.data)||null==(e=t.data)?void 0:e.investedScheme).length||0===Object.keys(null==l||null==(s=l.data)||null==(a=s.data)?void 0:a.withdrawlingScheme).length?(ej(!1),ey(l.data)):(ej(!0),O(l.data.data),ey(null))}catch(e){console.error("Error fetching schemes data:",e)}};(0,l.useEffect)(()=>{(async()=>{try{let a=await r.A.get("".concat(m.Q,"/api/admin/site-settings"));if(200===a.status){var e,t;let s=null!=(t=null==(e=a.data)?void 0:e.data)?t:a.data;eN(Array.isArray(s)?s[0]:s)}}catch(e){console.error("Failed to fetch site settings",e)}})()},[]);let eT=async(e,t,a,s,r)=>
1{await (0,o.nK)(e,t,(null==e?void 0:e.inputs)||[],a,s,r,"graphId",ep)};return(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:"main-section",children:(0,s.jsxs)("div",{className:"max-w-screen-xl mx-auto px-4",children:[(0,s.jsx)(D.default,{title:"STP Performance",activeCalculator:"STP Performance"}),(0,s.jsx)(i.l,{}),(0,s.jsxs)("div",{className:"mt-5",children:[(0,s.jsx)("div",{className:"col-span-1 border border-[var(--rv-primary)] rounded-2xl bg-[var(--rv-bg-page)] text-[var(--rv-text)] p-2 mb-3",children:(0,s.jsxs)("div",{className:"sip-calculator container mx-auto p-3 sticky top-0 z-10",children:[(0,s.jsxs)("div",{className:"flex space-x-4 mb-8",children:[(0,s.jsx)(n.$,{onClick:()=>($(!0),R([]),ej(!1),U([])),className:"text-sm rounded-full hover:bg-[var(--rv-primary)] hover:text-white text-[var(--rv-white)] \n                                        ".concat(P?"bg-[var(--rv-primary)]":"bg-[var(--rv-bg-primary)] border-[var(--rv-bg-primary)]"),children:"Fund House"}),(0,s.jsx)(n.$,{onClick:()=>($(!1),R([]),ej(!1),ex(new Set)),className:"text-sm rounded-full hover:bg-[var(--rv-primary)] hover:text-white text-[var(--rv-white)] \n                                        ".concat(P?"bg-[var(--rv-bg-primary)] border-[var(--rv-bg-primary)]":"bg-[var(--rv-primary)]"),children:"Asset Category"})]}),(0,s.jsx)("div",{className:"input-fields mt-5 mb-5",children:P?(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsx)("h4",{className:"font-semibold text-[var(--rv-text)]",children:"Select AMC"}),(0,s.jsxs)("div",{className:"max-w-full mt-2 border border-gray-300 p-3 rounded h-60 overflow-y-auto",children:[(0,s.jsx)("input",{type:"text",placeholder:"Search Scheme",className:"w-full px-3 py-2 border rounded mb-1 bg-[var(--rv-bg-page)] text-[var(--rv-text)]",value:ew,onChange:e=>eS(e.target.value.toLowerCase())}),null==K?void 0:K.filter(e=>{var t;return null==e||null==(t=e.funddes)?void 0:t.toLowerCase().includes(ew)}).map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center mb-1",children:[(0,s.jsx)("input",{type:"checkbox",id:"acm-".concat(t),checked:L.includes(e),onChange:()=>{L.includes(e)?U(L.filter(t=>t!==e)):(U([...L,e]),eD(e))},className:"mr-2"}),(0,s.jsx)("label",{htmlFor:"acm-".concat(t),className:"text-[var(--rv-text)] text-sm",children:null==e?void 0:e.funddes})]},t))]})]}):(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-x-4 gap-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"font-semibold text-[var(--rv-text)]",children:"Select Equity Funds"}),(0,s.jsx)("div",{className:"mt-2 border border-gray-300 p-3 rounded h-60 overflow-y-auto",children:null==em?void 0:em.filter(e=>"Equity"===e.nav_c2).map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center mb-1",children:[(0,s.jsx)("input",{type:"checkbox",id:"asset-equity-".concat(t),checked:ev.has(e.assets_class),onChange:()=>eA(e),className:"mr-2"}),(0,s.jsxs)("label",{htmlFor:"asset-equity-".concat(t),className:"text-[var(--rv-text)] text-sm",children:["Equity - ",null==e?void 0:e.assets_class]})]},t))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"font-semibold text-[var(--rv-text)]",children:"Select Debt Funds"}),(0,s.jsx)("div",{className:"mt-2 border border-gray-300 p-3 rounded h-60 overflow-y-auto",children:null==em?void 0:em.filter(e=>"Debt"===e.nav_c2).map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center mb-1",children:[(0,s.jsx)("input",{type:"checkbox",id:"asset-debt-".concat(t),checked:ev.has(e.assets_class),onChange:()=>eA(e),className:"mr-2"}),(0,s.jsxs)("label",{htmlFor:"asset-debt-".concat(t),className:"text-[var(--rv-text)] text-sm",children:["Debt - ",null==e?void 0:e.assets_class]})]},t))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"font-semibold text-[var(--rv-text)]",children:"Select Hybrid Funds"}),(0,s.jsx)("div",{className:"mt-2 border border-gray-300 p-3 rounded h-60 overflow-y-auto",children:null==em?void 0:em.filter(e=>"Hybrid"===e.nav_c2).map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center mb-1",children:[(0,s.jsx)("input",{type:"checkbox",id:"asset-hybrid-".concat(t),checked:ev.has(e.assets_class),onChange:()=>eA(e),className:"mr-2"}),(0,s.jsxs)("label",{htmlFor:"asset-hybrid-".concat(t),className:"text-[var(--rv-text)] text-sm",children:["Hybrid - ",null==e?void 0:e.assets_class]})]},t))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"font-semibold text-[var(--rv-text)]",children:"Select Commodity Funds/ Others"}),(0,s.jsx)("div",{className:"mt-2 border border-gray-300 p-3 rounded h-60 overflow-y-auto",children:null==em?void 0:em.filter(e=>"Other "===e.nav_c2||"Others"===e.nav_c2||"Sol Oriented"===e.nav_c2).map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center mb-1",children:[(0,s.jsx)("input",{type:"checkbox",id:"asset-other
1-".concat(t),checked:ev.has(e.assets_class),onChange:()=>eA(e),className:"mr-2"}),(0,s.jsxs)("label",{htmlFor:"asset-other-".concat(t),className:"text-[var(--rv-text)] text-sm",children:["Other - ",null==e?void 0:e.assets_class]})]},t))})]})]})}),(0,s.jsx)("hr",{}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2",children:[(0,s.jsx)("div",{className:"mt-2 overflow-y-auto p-2",children:(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)("label",{htmlFor:"schemeSelect",className:"text-sm block font-semibold text-[var(--rv-text)] mb-1",children:"Transfer From Scheme"}),(0,s.jsxs)("select",{id:"schemeSelect",className:"bg-[var(--rv-bg-page)] border border-[var(--rv-primary)] text-[var(--rv-text)] text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",onChange:e=>{let t=null==V?void 0:V.data.find(t=>t.funddes===e.target.value);ea(null==t?void 0:t.pcode),en(null==t?void 0:t.funddes)},children:[(0,s.jsx)("option",{value:"",selected:!0,children:"Choose a scheme"}),P?L&&L.length>0&&(null==V?void 0:V.data)?V.data.filter(e=>L.some(t=>t.fund===e.fund)).map((e,t)=>(0,s.jsx)("option",{value:e.funddes,children:e.funddes},t)):(0,s.jsx)("option",{disabled:!0,children:"Select..."}):V?V&&(null==V||null==(e=V.data)?void 0:e.map((e,t)=>(0,s.jsx)("option",{value:null==e?void 0:e.funddes,children:null==e?void 0:e.funddes},t))):"Loading..."]})]})}),(0,s.jsx)("div",{className:"mt-2 overflow-y-auto p-2",children:(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)("label",{htmlFor:"schemeSelect",className:"text-sm block font-semibold text-[var(--rv-text)] mb-1",children:"Transfer To Scheme"}),(0,s.jsxs)("select",{id:"schemeSelect",className:"bg-[var(--rv-bg-page)] border border-[var(--rv-primary)] text-[var(--rv-text)] text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",onChange:e=>{let t=null==V?void 0:V.data.find(t=>t.funddes===e.target.value);er(null==t?void 0:t.pcode),ei(null==t?void 0:t.funddes)},children:[(0,s.jsx)("option",{value:"",selected:!0,children:"Choose a scheme"}),P?L&&L.length>0&&(null==V?void 0:V.data)?V.data.filter(e=>L.some(t=>t.fund===e.fund)).map((e,t)=>(0,s.jsx)("option",{value:e.funddes,children:e.funddes},t)):(0,s.jsx)("option",{disabled:!0,children:"Select..."}):V?V&&(null==V||null==(t=V.data)?void 0:t.map((e,t)=>(0,s.jsx)("option",{value:null==e?void 0:e.funddes,children:null==e?void 0:e.funddes},t))):"Loading..."]})]})})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-5",children:[(0,s.jsx)("div",{className:"col-span-1 mt-2 overflow-y-auto p-2",children:(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)("label",{htmlFor:"schemeName",className:"text-sm block font-semibold text-[var(--rv-text)] mb-1",children:"Initial Amount"}),(0,s.jsx)("input",{type:"number",id:"schemeName",placeholder:"Enter scheme name",className:"bg-[var(--rv-bg-page)] border border-[var(--rv-primary)] text-[var(--rv-text)] text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",value:Q,onChange:e=>Z(e.target.value)})]})}),(0,s.jsx)("div",{className:"col-span-1 mt-2 overflow-y-auto p-2",children:(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)("label",{htmlFor:"schemeName",className:"text-sm block font-semibold text-[var(--rv-text)] mb-1",children:"Transfer Amount"}),(0,s.jsx)("input",{type:"number",id:"schemeName",placeholder:"Enter scheme name",className:"bg-[var(--rv-bg-page)] border border-[var(--rv-primary)] text-[var(--rv-text)] text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",value:J,onChange:e=>ee(e.target.value)})]})}),(0,s.jsx)("div",{className:"col-span-1 mt-2 overflow-y-auto p-2",children:(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)("label",{htmlFor:"schemeDate",className:"text-sm block font-semibold text-[var(--rv-text)] mb-1",children:"Investment Date"}),(0,s.jsx)("input",{type:"date",id:"schemeDate",className:"bg-[var(--rv-bg-page)] border border-[var(--rv-primary)] text-[var(--rv-text)] text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",min:z,max:I(),value:X,onChange:e=>Y(e.target.value)})]})}),(0,s.jsx)("div",{className:"col-span-1 mt-2 overflow-y-auto p-2",children:(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)("label",{htmlFor:"schemeDate",className:"text-sm block font-semibold text-[var(--rv-text)] mb-1",children:"Start Date"}),(0,s.jsx)("input",{type:"date",id:"schemeDate",className:"bg-[var(--rv-bg-page)] border border-[var(--rv-primary)] text-[var(--rv-text)] text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",value:z,onChange:e=>G(e.target.value)})]})}),(0,s.jsx)("div",{className:"col-span-1 mt-2 overflow-y-auto p-2",children:(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)("label",{htmlFor:"schemeDate",className:"text-sm block font-semibold text-[var(--rv-text)] mb-1",children:"End Date"}),(0,s.jsx)("input",{type:"date",id:"schemeDate",className:"bg-[var(--rv-bg-page)] border border-[var(--rv-primary)] text-[var(--rv-text)] text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",min:z,value:q,onChange:e=>W(e.target.value)})]})})]}),(0,s.jsx)(n.$,{className:"bg-[var(--rv-primary)] text-[var(--rv-text)] hover:text-[var(--rv-text)] disabled:opacity-50 hover:bg-[var(--rv-secondary)]",onClick:()=>eE(),children:"Show"})]})}),(0,s.jsxs)("div",{className:"col-span-1",children:[eb&&(0,s.jsxs)("div",{className:"mb-5 flex justify-between",children:[(0,s.jsxs)("div",{className:"space-x-2",children:[(0,s.jsx)(n.$,{variant:"outline",className:"border-2 ".concat("graph"===ec?"border-blue-600":"border-gray-600"," uppercase font-semibold text-[var(--rv-text)]"),onClick:()=>eo("graph"),children:"Graph"}),(0,s.jsx)(n.$,{variant:"outline",className:"border-2 ".concat("table"===ec?"border-blue-600":"border-gray-600"," uppercase font-semibold text-[var(--rv-text)]"),onClick:()=>eo("table"),children:"Table"})]}),(0,s.jsx)("div",{className:"cursor-pointer",onClick:()=>
1eT(M,el,ed,z,q),children:(0,s.jsx)("h1",{className:"text-2xl",children:"graph"===ec&&(0,s.jsx)(c.kl1,{})})})]}),eb&&(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-center text-[var(--rv-text)]",children:"Source Fund"}),(0,s.jsx)("h4",{className:"text-center font-semibold text-[var(--rv-text)] mb-3",children:el}),(0,s.jsxs)("div",{className:"grid lg:grid-cols-6 md:grid-cols-3 mb-7 gap-4",children:[(0,s.jsxs)("div",{className:"py-2 px-3 border border-stone-600 shadow shadow-emerald-100 rounded-sm text-center",children:[(0,s.jsx)("h3",{className:"font-semibold text-[var(--rv-text)] text-sm",children:"Amount Invested"}),(0,s.jsx)("h4",{className:"font-medium text-[var(--rv-text)] text-sm",children:null==M||null==(a=M.withdrawlingScheme)?void 0:a.initialAmount})]}),(0,s.jsxs)("div",{className:"py-2 px-3 border border-stone-600 shadow shadow-emerald-100 rounded-sm text-center",children:[(0,s.jsx)("h1",{className:"font-semibold text-[var(--rv-text)] text-sm",children:"MONTHLY TRANSFER"}),(0,s.jsx)("h1",{className:"font-medium text-[var(--rv-text)] text-sm",children:J})]}),(0,s.jsxs)("div",{className:"py-2 px-3 border border-stone-600 shadow shadow-emerald-100 rounded-sm text-center",children:[(0,s.jsx)("h1",{className:"font-semibold text-[var(--rv-text)] text-sm",children:"TOTAL TRANSFER"}),(0,s.jsx)("h1",{className:"font-medium text-[var(--rv-text)] text-sm",children:null==M||null==(u=M.withdrawlingScheme)?void 0:u.totalWithdrawlAmount})]}),(0,s.jsxs)("div",{className:"py-2 px-3 border border-stone-600 shadow shadow-emerald-100 rounded-sm text-center",children:[(0,s.jsx)("h1",{className:"font-semibold text-[var(--rv-text)] text-sm",children:"SOURCE FUND BALANCE"}),(0,s.jsx)("h1",{className:"font-medium text-[var(--rv-text)] text-sm",children:null==M||null==(v=M.withdrawlingScheme)?void 0:v.fundRemaining})]}),(0,s.jsxs)("div",{className:"py-2 px-3 border border-stone-600 shadow shadow-emerald-100 rounded-sm text-center",children:[(0,s.jsx)("h1",{className:"font-semibold text-[var(--rv-text)] text-sm",children:"TRANSFERRED AMOUNT + BALANCE VALUE"}),(0,s.jsx)("h1",{className:"font-medium text-[var(--rv-text)] text-sm",children:null==M||null==(x=M.withdrawlingScheme)?void 0:x.portFolioValue})]}),(0,s.jsxs)("div",{className:"py-2 px-3 border border-stone-600 shadow shadow-emerald-100 rounded-sm text-center",children:[(0,s.jsx)("h1",{className:"font-semibold text-[var(--rv-text)] text-sm",children:"XIRR (%)"}),(0,s.jsx)("h1",{className:"font-medium text-[var(--rv-text)] text-sm",children:null==M||null==(h=M.withdrawlingScheme)?void 0:h.xirrRate})]})]}),(0,s.jsx)("h3",{className:"text-center text-[var(--rv-text)]",children:"Destination Fund"}),(0,s.jsx)("h4",{className:"text-center font-semibold text-[var(--rv-text)] mb-3",children:ed}),(0,s.jsxs)("div",{className:"grid lg:grid-cols-6 md:grid-cols-3 mb-7 gap-4",children:[(0,s.jsxs)("div",{className:"py-2 px-3 border border-stone-600 shadow shadow-emerald-100 rounded-sm text-center",children:[(0,s.jsx)("h1",{className:"font-semibold text-[var(--rv-text)] text-sm",children:"INSTALLMENT AMOUNT"}),(0,s.jsx)("h1",{className:"font-medium text-[var(--rv-text)] text-sm",children:null==M||null==(b=M.investedScheme)||null==(g=b.DestinationFundValuation)?void 0:g.installmentAmount})]}),(0,s.jsxs)("div",{className:"py-2 px-3 border border-stone-600 shadow shadow-emerald-100 rounded-sm text-center",children:[(0,s.jsx)("h1",{className:"font-semibold text-[var(--rv-text)] text-sm",children:"AMOUNT TRANSFERRED FOR MONTH"}),(0,s.jsx)("h1",{className:"font-medium text-[var(--rv-text)] text-sm",children:null==M||null==(p=M.investedScheme)||null==(j=p.DestinationFundValuation)?void 0:j.amountTransferFormonth})]}),(0,s.jsxs)("div",{className:"py-2 px-3 border border-stone-600 shadow shadow-emerald-100 rounded-sm text-center",children:[(0,s.jsx)("h1",{className:"font-semibold text-[var(--rv-text)] text-sm",children:"AMOUNT INVESTED"}),(0,s.jsx)("h1",{className:"font-medium text-[var(--rv-text)] text-sm",children:null==M||null==(y=M.investedScheme)||null==(N=y.DestinationFundValuation)?void 0:N.amountInvested})]}),(0,s.jsxs)("div",{className:"py-2 px-3 border border-stone-600 shadow shadow-emerald-100 rounded-sm text-center",children:[(0,s.jsx)("h1",{className:"font-semibold text-[var(--rv-text)] text-sm",children:"VALUATION ON MATURITY"}),(0,s.jsx)("h1",{className:"font-medium text-[var(--rv-text)] text-sm",children:null==M||null==(S=M.investedScheme)||null==(w=S.DestinationFundValuation)?void 0:w.valuationAsOnMaturity})]}),(0,s.jsxs)("div",{className:"py-2 px-3 border border-stone-600 shadow shadow-emerald-100 rounded-sm text-center",children:[(0,s.jsx)("h1",{className:"font-semibold text-[var(--rv-text)] text-sm",children:"ABSOLUTE RETURN (%)"}),(0,s.jsx)("h1",{className:"font-medium text-[var(--rv-text)] text-sm",children:null==M||null==(k=M.investedScheme)||null==(C=k.DestinationFundValuation)?void 0:C.absoluteReturns})]}),(0,s.jsxs)("div",{className:"py-2 px-3 border border-stone-600 shadow shadow-emerald-100 rounded-sm text-center",children:[(0,s.jsx)("h1",{className:"font-semibold text-[var(--rv-text)] text-sm",children:"XIR
1R (%)"}),(0,s.jsx)("h1",{className:"font-medium text-[var(--rv-text)] text-sm",children:null==M||null==(T=M.investedScheme)||null==(E=T.DestinationFundValuation)?void 0:E.xirrRate})]})]})]}),M&&("graph"===ec?(0,s.jsx)("div",{id:"graphId",children:eb&&(0,s.jsx)(f,{piedata:M,startDate:z,endDate:q,title:ed,withdrawal:J})}):(0,s.jsxs)("div",{className:"border border-gray-200 rounded-2xl p-5",children:[(0,s.jsx)("h3",{className:"text-center text-[var(--rv-text)]",children:"Source Fund"}),(0,s.jsx)("h4",{className:"text-center font-semibold text-[var(--rv-text)] mb-3",children:el}),eb&&(0,s.jsx)(A,{data:M,title:el}),(0,s.jsx)("h3",{className:"text-center text-[var(--rv-text)]",children:"Destination Fund"}),(0,s.jsx)("h4",{className:"text-center font-semibold text-[var(--rv-text)] mb-3",children:ed}),eb&&(0,s.jsx)(F,{data:M,title:el})]})),ef&&(0,s.jsx)("div",{children:"No Data Found"})]})]})]})})})}}}]);

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.