1"use strict";(globalThis.webpackChunkvaluation_react||=[]).push([[9839],{69839(e,i,l){l.r(i),l.d(i,{default:()=>O});var t=l(9950),n=l(5726),o=l(28429),s=l(8321),r=l(29137),d=l(53011),a=l(74745),c=l(60899),u=l(82053),p=l(53065),x=l(65671),m=l(16129),v=l(56463),h=l(99756),g=l(32214),A=l(93121),y=l(73688),f=l(73445),j=l(55271),b=l(92075),C=l(17746),_=l(59460),D=l(78891),T=l(59051),w=l.n(T),k=l(62815);const F=(0,k.A)({box:{"& h1":{color:"#0A3A67",fontSize:"1rem",fontWeight:"500",marginBottom:".5rem"},"& h2":{color:"rgba(10, 58, 103, 0.60)",fontSize:"14px",fontStyle:"italic",fontWeight:"400"},"@media (max-width:768px)":{margin:"1rem"},border:"1px solid rgba(10, 58, 103, 0.15)",borderRadius:"30px",boxShadow:"2px 2px 16px 0px rgba(10, 58, 103, 0.12)",margin:"1rem 0",padding:"1.5rem"},calenderBox:{"@media (max-width:768px)":{marginTop:"22rem"},"@media (max-width:900px)":{marginTop:"12rem"},backgroundColor:"#FFF",borderRadius:"10px",marginTop:"2rem",maxHeight:"30%",padding:"2rem",position:"absolute",right:"8%",top:"22%"},chip:{background:"rgba(10, 58, 103, 0.05)",border:"1px solid rgba(10, 58, 103, 0.15) !important",padding:"6px 4px !important"},main:{"@media (max-width: 1024px)":{padding:"24px 0"},"@media (min-width: 1440px)":{margin:"0 auto",width:"1123px"},background:"#fff",padding:"24px"},modal:{"@media (max-width:900px)":{bottom:"5%",left:"2%",right:"2%",top:"5%"},display:"flex",justifyContent:"center",position:"relative"},totalClients:{alignItems:"center",display:"flex",gap:"16px",marginBottom:"1rem",marginTop:"2rem"}});var S=l(50495);const I=(0,k.A)({box:{"& h1":{color:"#0A3A67",fontSize:"1rem",fontWeight:"500",marginBottom:".5rem"},"& h2":{color:"rgba(10, 58, 103, 0.60)",fontSize:"14px",fontStyle:"italic",fontWeight:"400"},border:"1px solid rgba(10, 58, 103, 0.15)",borderRadius:"30px",boxShadow:"2px 2px 16px 0px rgba(10, 58, 103, 0.12)",padding:"1.5rem"}});var B=l(25534),M=l(44414);function R(e){let{title:i,percent:l,count:t,todayCount:n,primaryColor:o,premium:s,free:r,handleRedirect:p=()=>{}}=e;const x=I();return(0,M.jsx)(c.Ay,{item:!0,lg:4,md:6,xs:12,children:(0,M.jsxs)(d.A,{className:x.box,sx:{cursor:"pointer"},onClick:p,children:[(0,M.jsxs)(d.A,{sx:{alignItems:"center",display:"flex",justifyContent:"space-between"},children:[(0,M.jsx)(u.A,{sx:{color:o},children:i}),(0,M.jsxs)(d.A,{sx:{alignItems:"center",display:"flex",gap:1},children:[(0,M.jsx)(u.A,{sx:{color:"#589981"},children:l}),l&&(0,M.jsx)(S.A,{sx:{color:"rgba(88, 153, 129, 1)",fontSize:"18px"}})]})]}),(0,M.jsx)(a.A,{sx:{margin:".5rem 0"}}),(0,M.jsxs)(d.A,{sx:{alignItems:"center",display:"flex",gap:2},children:[(0,M.jsx)(u.A,{sx:{color:o,fontSize:"24px",fontWeight:"700"},children:t||0}),(0,M.jsx)(B.A,{count:n||"0"})]}),(0,M.jsxs)(d.A,{sx:{alignItems:"center",display:"flex",gap:5,marginTop:".5rem"},children:[(0,M.jsxs)(d.A,{children:[(0,M.jsx)(u.A,{sx:{color:o},children:"Premium"}),(0,M.jsx)(u.A,{sx:{color:o,fontWeight:"600"},children:s||0})]}),(0,M.jsxs)(d.A,{children:[(0,M.jsx)(u.A,{sx:{color:o},children:"Free"}),(0,M.jsx)(u.A,{sx:{color:o,fontWeight:"600"},children:r||0})]})]})]})})}function P(){var e,i,l,r,a,p,x,v,g,y,j,T,k,S,I;const B=F(),P=(0,n.wA)(),E=(0,o.Zp)(),{filters:N}=(0,n.d4)(e=>e.dashboard),{appDownloads:{fromDate:W=null,toDate:z=null,selectedDateFilter:O="LifeTime",branch:Y=""}={}}=N||{},[L,K]=(0,t.useState)(!1),[U,H]=(0,t.useState)(null),[V,J]=(0,t.useState)(!1),[G,$]=(0,t.useState)([{endDate:null,key:"selection",startDate:new Date}]);(0,t.useEffect)(()=>{Z(W,z,Y)},[W,z,Y]);const Z=async(e,i,l)=>{const t=await P((0,D.od)(e,i,"","","",l));t&&H(t)},X=e=>{P(D.mD.setFilters({...N,appDownloads:{...N.appDownloads,...e}}))},q=(e,i,l)=>X({fromDate:e,selectedDateFilter:l,toDate:i}),Q=e=>X({branch:e}),ee=[{label:"From Date",value:W},{label:"To Date",value:z},{label:"Branch",value:Y}];return(0,M.jsxs)(d.A,{className:B.box,children:[ee.map((e,i)=>(0,M.jsx)(h.A,{label:e.label,value:e.value,onDelete:()=>{"Branch"===e.label?Q(""):q(null,null,"LifeTime")}},i)),(0,M.jsxs)(c.Ay,{container:!0,sx:{alignItems:{lg:"center",xs:"flex-start"},justifyContent:{lg:"space-between",xs:"flex-start"},paddingTop:"8px"},children:[(0,M.jsxs)(c.Ay,{item:!0,lg:7,xs:12,children:[(0,M.jsx)(u.A,{variant:"h1",children:"App downloads"}),(0,M.jsx)(u.A,{variant:"h2",children:"Insights of app downloaded"})]}),(0,M.jsxs)(c.Ay,{item:!0,lg:4,xs:12,children:[(0,M.jsxs)(d.A,{sx:{alignItems:"center",display:"flex",justifyContent:{lg:"flex-end",xs:"flex-start"},marginTop:{lg:0,xs:"1rem"}},children:[(0,M.jsx)(A.A,{label:"Filter",icon:(0,M.jsx)(s.A,{}),onClick:()=>K(!0)}),(0,M.jsx)(b.A,{selectedValue:O,onChange:e=>{const i=f.Mg[e]||f.Mg.Default;q(i.fromDate,i.toDate,e),"Custom"===e&&J(!0)}}),(0,M.jsx)(C.A,{customDates:G,customDateOpen:V,setCustomDateOpen:J,setCustomDates:$,handleSetDates:q})]}),L&&(0,M.jsx)(_.A,{showFilters:L,handleDisplayFilters:()=>K(e=>!e),handleSetBranch:Q,branch:Y,filterByBranchAUM:!0,filterByPRMAUM:!1})]})]}),(0,M.jsxs)(c.Ay,{container:!0,spacing:4,sx:{marginTop:"2rem"},children:[(0,M.jsx)(R,{title:"Total Downloads",percent:"100%",count:null===U||void 0===U||null===(e=U.clients_app_kpi)||void 0===e?void 0:e.total,todayCount:null===U||void 0===U||null===(i=U.clients_app_kpi)||void 0===i?void 0:i.today,primaryColor:"#AB88BF",premium:null===U||void 0===U||null===(l=U.clients_app_kpi)||void 0===l?void 0:l.jarvis_premium,free:null===U||void 0===U||null===(r=U.clients_app_kpi)||void 0===r?void 0:r.jarvis_free,handleRedirect:()=>E("/clients?app_downloads=total")}),(0,M.jsx)(R,{title:"Android Downloads",percent:"",count:null===U||void 0===U||null===(a=U.clients_app_kpi)||void 0===a?void 0:a.android_total,todayCount:null===U||void 0===U||null===(p=U.clients_app_kpi)||void 0===p?void 0:p.android_today,primaryColor:"#988063",premium:null===U||void 0===U||null===(x=U.clients_app_kpi)||void 0===x?void 0:x.android_premium,free:null===U||void 0===U||null===(v=U.clients_app_kpi)||void 0===v?void 0:v.android_free,handleRedirect:()=>E("/clients?app_downloads=android")}),(0,M.jsx)(R,{title:"IOS Downloads",percent:"",count:null===U||void 0===U||null===(g=U.clients_app_kpi)||void 0===g?void 0:g.ios_total,todayCount:null===U||void 0===U||null===(y=U.clients_app_kpi)||void 0===y?void 0:y.ios_today,primaryColor:"#88A47C",premium:null===U||void 0===U||null===(j=U.clients_insights)||void 0===j?void 0:j.ios_premium,free:null===U||void 0===U||null===(T=U.clients_insights)||void 0===T?void 0:T.ios_free,handleRedirect:()=>E("/clients?app_downloads=ios")})]}),(null===U||void 0===U||null===(k=U.clients_app_downloads)||void 0===k?void 0:k.length)>0?(0,M.jsx)(d.A,{sx:{width:"100%"},children:(0,M.jsx)(m.b,{height:450,series:[{data:null===U||void 0===U||null===(S=U.clients_app_downloads)||void 0===S?void 0:S.map(e=>e.count||0)}],xAxis:[{data:null===U||void 0===U||null===(I=U.clients_app_downloads)||void 0===I?void 0:I.map(e=>w()(e.date).format("DD-MM-YYYY")),scaleType:"point"}],sx:{"& .MuiChartsXAxis-tickLabel":{display:"none"},"& .MuiLineElement-root":{stroke:"#B73E3E",strokeWidth:2},"& .MuiMarkElement-root":{display:"none"}}})}):null]})}var E=l(93365);const N=["09:30 am","10:30 am","11:30 am","12:30 pm","01:30 pm","02:30 pm","03:30 pm","04:30 pm","05:30 pm","06:30 pm"],W=[{app:59,doors:57,time:"09:30"},{app:50,doors:52,time:"10:30"},{app:47,doors:53,time:"11:30"},{app:54,doors:56,time:"12:30"},{app:57,doors:69,time:"01:30"},{app:60,doors:63,time:"02:30"},{app:59,doors:60,time:"03:30"},{app:65,doors:60,time:"04:30"},{app:51,doors:51,time:"05:30"},{app:60,doors:65,time:"06:30"}],z=[{jarvis:57,time:"09:30",verified:59},{jarvis:52,time:"10:30",verified:50},{jarvis:53,time:"11:30",verified:47},{jarvis:56,time:"12:30",verified:54},{jarvis:69,time:"01:30",verified:57},{jarvis:63,time:"02:30",verified:60},{jarvis:60,time:"03:30",verified:59},{jarvis:60,time:"04:30",verified:65},{jarvis:51,time:"05:30",verified:51},{jarvis:65,time:"06:30",verified:60}];function O(){var e,i,l,T,w,k,S,I,O,Y,L,K,U,H,V,J,G,$,Z,X,q,Q,ee,ie,le,te,ne,oe,se,re,de,ae,ce,ue;const pe=(0,n.wA)(),xe=(0,o.Zp)(),{pathname:me}=(0,o.zy)(),ve=F(),{filters:he,isLoading:ge}=(0,n.d4)(e=>e.dashboard),{keyPortfolioIndicators:{branch:Ae="",bh:ye="",prm:fe="",rm:je="",fromDate:be=null,toDate:Ce=null,selectedDateFilter:_e="LifeTime"}={}}=he||{},[De,Te]=(0,t.useState)(null),[we,ke]=(0,t.useState)(!1),[Fe,Se]=(0,t.useState)(!1),[Ie,Be]=(0,t.useState)([{endDate:null,key:"selection",startDate:new Date}]);(0,t.useEffect)(()=>{Me(be,Ce,je,fe,ye,Ae)},[be,Ce,je,fe,ye,Ae]);const Me=async()=>{const e=await pe((0,D.od)(be,Ce,je,fe,ye,Ae));e&&Te(e)},Re=e=>{const i={...he,keyPortfolioIndicators:{...he.keyPortfolioIndicators,...e}};pe(D.mD.setFilters(i))},Pe=e=>Re({branch:e}),Ee=e=>Re({bh:e}),Ne=e=>Re({prm:e}),We=e=>Re({rm:e}),ze=(e,i,l)=>Re({fromDate:e,selectedDateFilter:l,toDate:i}),Oe=De?null===De||void 0===De?void 0:De.clients_referral_data:[],Ye=De?null===De||void 0===De?void 0:De.prop_referral_data:[],Le=De?null===De||void 0===De?void 0:De.clients_cp_data:[],Ke=De?null===De||void 0===De?void 0:De.prop_cp_data:[],Ue=De?null===De||void 0===De?void 0:De.clients_country_listing:[],He=De?null===De||void 0===De?void 0:De.clients_branch_listing:[],Ve=De?null===De||void 0===De?void 0:De.prop_kpi_branch_data:[],Je=null===(e=null!==me&&void 0!==me&&me.includes("/total-clients")?Le:Ke)||void 0===e?void 0:e.map((e,i)=>({color:(0,f.rd)(e.cp),id:i,label:e.cp,value:e.count})),Ge=null===(i=null!==me&&void 0!==me&&me.includes("/total-clients")?Oe:Ye)||void 0===i?void 0:i.map((e,i)=>({color:(0,f.ll)(e.referral_type),id:i,label:e.referral_type,value:e.count})),$e=null===Le||void 0===Le?void 0:Le.reduce((e,i)=>e+i.count,0),Ze=null===Ke||void 0===Ke?void 0:Ke.reduce((e,i)=>e+i.count,0),Xe=null===Oe||void 0===Oe?void 0:Oe.reduce((e,i)=>e+i.count,0),qe=null===Ye||void 0===Ye?void 0:Ye.reduce((e,i)=>e+i.count,0),Qe=null===Le||void 0===Le?void 0:Le.reduce((e,i)=>e+i.today,0),ei=null===Ke||void 0===Ke?void 0:Ke.reduce((e,i)=>e+i.today,0),ii=null===Oe||void 0===Oe?void 0:Oe.reduce((e,i)=>e+i.today,0),li=null===Ye||void 0===Ye?void 0:Ye.reduce((e,i)=>e+i.today,0),ti=null===Ue||void 0===Ue?void 0:Ue.reduce((e,i)=>e+i.count,0),ni=null===Ue||void 0===Ue?void 0:Ue.reduce((e,i)=>e+i.today,0),oi=He.reduce((e,i)=>e+i.count,0),si=Ve.reduce((e,i)=>e+i.count,0),ri=He.reduce((e,i)=>e+i.today,0),di=Ve.reduce((e,i)=>e+i.today,0),ai=[{label:"Branch",value:Ae},{label:"Branch Head",value:ye},{label:"RWM",value:fe},{label:"RM",value:je},{label:"From Date",value:be},{label:"To Date",value:Ce}],ci=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Excel-file";const l=j.Wp.json_to_sheet(e),t=j.Wp.book_new();j.Wp.book_append_sheet(t,l,"Sheet1"),j._h(t,`${i}.xlsx`)};return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(d.A,{className:ve.main,children:[(0,M.jsxs)(d.A,{sx:{marginBottom:"2rem"},children:[(0,M.jsx)(g.A,{}),(0,M.jsx)(a.A,{sx:{marginTop:"1rem"}})]}),ai.map((e,i)=>(0,M.jsx)(h.A,{label:e.label,value:e.value,onDelete:()=>{return"Branch"===(i=e.label)&&Pe(""),"Branch Head"===i&&Ee(""),"RWM"===i&&Ne(""),"RM"===i&&We(""),void("From Date"!==i&&"To Date"!==i||ze(null,null,"LifeTime"));var i}},i)),(0,M.jsxs)(d.A,{sx:{"@media (max-width:768px)":{margin:"1rem"},alignItems:"center",display:"flex",gap:2,justifyContent:"flex-end",position:"relative"},children:[(0,M.jsx)(A.A,{label:"Filter",icon:(0,M.jsx)(s.A,{}),onClick:()=>ke(!0)}),(0,M.jsx)(b.A,{selectedValue:_e,onChange:e=>{const i=f.Mg[e]||f.Mg.Default;ze(i.fromDate,i.toDate,e),"Custom"===e&&Se(!0)}}),(0,M.jsx)(C.A,{customDates:Ie,customDateOpen:Fe,setCustomDateOpen:Se,setCustomDates:Be,handleSetDates:ze})]}),we&&(0,M.jsx)(_.A,{showFilters:we,handleDisplayFilters:()=>ke(!we),filterState:he,handleSetBranch:Pe,handleSetBh:Ee,handleSetPRM:Ne,handleSetRM:We,branch:Ae,bh:ye,prm:fe,rm:je}),(0,M.jsxs)(d.A,{className:ve.box,children:[(0,M.jsxs)(c.Ay,{sx:{display:"flex",justifyContent:"space-between"},children:[(0,M.jsxs)(c.Ay,{children:[(0,M.jsx)(u.A,{variant:"h1",children:null!==me&&void 0!==me&&me.includes("/total-clients")?"Clients Through Different Sources":"Properties Through Different Source"}),(0,M.jsx)(u.A,{variant:"h2",children:null!==me&&void 0!==me&&me.includes("/total-clients")?"Insights of Clients onboarded through different sources":"Insights of Properties onboarded through different Sources"})]}),(0,M.jsx)(p.A,{title:"Download Excel File",children:(0,M.jsx)(r.A,{onClick:()=>ci(null!==me&&void 0!==me&&me.includes("/total-clients")?Oe:Ye,null!==me&&void 0!==me&&me.includes("/total-clients")?"Clients Through Different Sources":"Properties Through Different Source")})})]}),(0,M.jsxs)(c.Ay,{container:!0,sx:{justifyContent:"space-between",marginTop:"2rem",minHeight:"400px"},children:[(0,M.jsx)(c.Ay,{item:!0,lg:6.5,xs:12,sx:{maxHeight:"400px",overflow:"scroll"},children:(0,M.jsx)(E.A,{dataArr:null!==me&&void 0!==me&&me.includes("/total-clients")?Oe:Ye,redirectedFrom:"keyPortfolioIndicators",displayIcon:!0})}),(0,M.jsxs)(c.Ay,{item:!0,lg:5,sx:{display:{lg:"block",xs:"none"},position:"relative"},children:[(0,M.jsx)(v.r,{series:[{cx:150,data:Ge,endAngle:360,innerRadius:100,outerRadius:150,startAngle:-90}],legend:!1,sx:{"& .MuiChartsLegend-root":{display:"none"}}}),(0,M.jsxs)(d.A,{sx:{left:{lg:"23%",xs:"32%"},position:"absolute",textAlign:"center",top:{lg:"38%",xs:"35%"}},children:[(0,M.jsx)(u.A,{sx:{color:"#0A3A67"},children:null!==me&&void 0!==me&&me.includes("/total-clients")?"Total Onboards":"Total Properties"}),(0,M.jsx)(u.A,{sx:{color:"#0A3A67",fontSize:"2rem",fontWeight:"700",marginBottom:"4px"},children:null!==me&&void 0!==me&&me.includes("/total-clients")?Xe:qe}),(0,M.jsx)(B.A,{count:null!==me&&void 0!==me&&me.includes("/total-clients")?ii:li})]})]}),(0,M.jsx)(c.Ay,{item:!0,xs:10,sx:{display:{lg:"none",xs:"block"},margin:"1rem auto"},children:(0,M.jsxs)(d.A,{sx:{position:"relative",width:"100%"},children:[(0,M.jsx)(v.r,{height:200,series:[{cx:100,data:Ge,endAngle:360,innerRadius:80,outerRadius:100,startAngle:-90}],legend:!1,sx:{"& .MuiChartsLegend-root":{display:"none"}}}),(0,M.jsxs)(d.A,{sx:{left:"22%",position:"absolute",textAlign:"center",top:"25%"},children:[(0,M.jsx)(u.A,{sx:{color:"#0A3A67"},children:null!==me&&void 0!==me&&me.includes("/total-clients")?"Total Onboards":"Total Properties"}),(0,M.jsx)(u.A,{sx:{color:"#0A3A67",fontSize:"2rem",fontWeight:"700",marginBottom:"4px"},children:null!==me&&void 0!==me&&me.includes("/total-clients")?Xe:qe}),(0,M.jsx)(B.A,{count:null!==me&&void 0!==me&&me.includes("/total-clients")?ii:li})]})]})})]})]}),(0,M.jsxs)(d.A,{className:ve.box,children:[(0,M.jsxs)(c.Ay,{sx:{display:"flex",justifyContent:"space-between"},children:[(0,M.jsxs)(c.Ay,{children:[(0,M.jsx)(u.A,{variant:"h1",children:null!==me&&void 0!==me&&me.includes("/total-clients")?"Clients Through Channel Partners":"Properties Through Channel Partners"}),(0,M.jsx)(u.A,{variant:"h2",children:null!==me&&void 0!==me&&me.includes("/total-clients")?"Insights of Clients onboarded through different Channel Partners":"Insights of Properties added through different Channel Partners"})]}),(0,M.jsx)(p.A,{title:"Download Excel File",children:(0,M.jsx)(r.A,{onClick:()=>ci(null!==me&&void 0!==me&&me.includes("/total-clients")?Le:Ke,null!==me&&void 0!==me&&me.includes("/total-clients")?"Clients Through Channel Partners":"Properties Through Channel Partners")})})]}),(0,M.jsxs)(c.Ay,{container:!0,sx:{justifyContent:"space-between",marginTop:"2rem",minHeight:"400px"},children:[(0,M.jsx)(c.Ay,{item:!0,lg:6.5,xs:12,sx:{maxHeight:"400px",overflow:"scroll"},children:(0,M.jsx)(E.A,{dataArr:null!==me&&void 0!==me&&me.includes("/total-clients")?Le:Ke,displayIcon:!0,redirectedFrom:"keyPortfolioIndicators"})}),(0,M.jsxs)(c.Ay,{item:!0,lg:5,sx:{display:{lg:"block",xs:"none"},position:"relative"},children:[(0,M.jsx)(v.r,{series:[{cx:150,data:Je,endAngle:360,innerRadius:100,outerRadius:150,startAngle:-90}],legend:!1,sx:{"& .MuiChartsLegend-root":{display:"none"}}}),(0,M.jsxs)(d.A,{sx:{left:{lg:"23%",xs:"32%"},position:"absolute",textAlign:"center",top:{lg:"38%",xs:"35%"}},children:[(0,M.jsx)(u.A,{sx:{color:"#0A3A67"},children:null!==me&&void 0!==me&&me.includes("/total-clients")?"Total Onboards":"Total Properties"}),(0,M.jsx)(u.A,{sx:{color:"#0A3A67",fontSize:"2rem",fontWeight:"700",marginBottom:"4px"},children:null!==me&&void 0!==me&&me.includes("/total-clien
1ts")?$e:Ze}),(0,M.jsx)(B.A,{count:null!==me&&void 0!==me&&me.includes("/total-clients")?Qe:ei})]})]}),(0,M.jsx)(c.Ay,{item:!0,xs:10,sx:{display:{lg:"none",xs:"block"},margin:"1rem auto",position:"relative"},children:(0,M.jsxs)(d.A,{sx:{position:"relative",width:"100%"},children:[(0,M.jsx)(v.r,{height:200,series:[{cx:100,data:Je,endAngle:360,innerRadius:80,outerRadius:100,startAngle:-90}],legend:!1,sx:{"& .MuiChartsLegend-root":{display:"none"}}}),(0,M.jsxs)(d.A,{sx:{left:"22%",position:"absolute",textAlign:"center",top:"25%"},children:[(0,M.jsx)(u.A,{sx:{color:"#0A3A67"},children:null!==me&&void 0!==me&&me.includes("/total-clients")?"Total Onboards":"Total Properties"}),(0,M.jsx)(u.A,{sx:{color:"#0A3A67",fontSize:"2rem",fontWeight:"700",marginBottom:"4px"},children:null!==me&&void 0!==me&&me.includes("/total-clients")?$e:Ze}),(0,M.jsx)(B.A,{count:null!==me&&void 0!==me&&me.includes("/total-clients")?Qe:ei})]})]})})]})]}),(0,M.jsxs)(c.Ay,{container:!0,spacing:4,children:[me.includes("/total-clients")&&(0,M.jsx)(c.Ay,{item:!0,lg:6,xs:12,children:(0,M.jsxs)(d.A,{className:ve.box,sx:{maxHeight:"445px",overflow:"scroll"},children:[(0,M.jsxs)(c.Ay,{sx:{display:"flex",justifyContent:"space-between"},children:[(0,M.jsxs)(c.Ay,{children:[(0,M.jsx)(u.A,{variant:"h1",children:"Clients by Country"}),(0,M.jsx)(u.A,{variant:"h2",children:"Insights of Clients onboarded through different Countries"})]}),(0,M.jsx)(p.A,{title:"Download Excel File",children:(0,M.jsx)(r.A,{onClick:()=>ci(Ue,"Clients by Country")})})]}),(0,M.jsxs)(d.A,{className:ve.totalClients,children:[(0,M.jsx)(u.A,{sx:{color:"rgba(10, 58, 103, 0.60)"},children:"Total Clients"}),(0,M.jsx)(u.A,{sx:{color:"#0A3A67",fontSize:"24px",fontWeight:"600"},children:ti}),(0,M.jsx)(B.A,{count:ni})]}),(0,M.jsx)(d.A,{children:(0,M.jsx)(E.A,{dataArr:Ue,displayIcon:!1,redirectedFrom:"keyPortfolioIndicators"})})]})}),(0,M.jsx)(c.Ay,{item:!0,lg:6,xs:12,children:(0,M.jsxs)(d.A,{className:ve.box,sx:{maxHeight:"445px",overflow:"scroll"},children:[(0,M.jsxs)(c.Ay,{sx:{display:"flex",justifyContent:"space-between"},children:[(0,M.jsxs)(c.Ay,{children:[(0,M.jsx)(u.A,{variant:"h1",children:null!==me&&void 0!==me&&me.includes("/total-clients")?"Clients by Branch":"Properties by Branch"}),(0,M.jsx)(u.A,{variant:"h2",children:null!==me&&void 0!==me&&me.includes("/total-clients")?"Insights of Clients onboarded through different branches":"Insights of Properties added through different branches"})]}),(0,M.jsx)(p.A,{title:"Download Excel File",children:(0,M.jsx)(r.A,{onClick:()=>ci(null!==me&&void 0!==me&&me.includes("/total-clients")?He:Ve,null!==me&&void 0!==me&&me.includes("/total-clients")?"Clients by Branch":"Properties by Branch")})})]}),(0,M.jsxs)(d.A,{className:ve.totalClients,children:[(0,M.jsx)(u.A,{sx:{color:"rgba(10, 58, 103, 0.60)"},children:null!==me&&void 0!==me&&me.includes("/total-clients")?"Total Clients":"Total Properties"}),(0,M.jsx)(u.A,{sx:{color:"#0A3A67",fontSize:"24px",fontWeight:"600"},children:null!==me&&void 0!==me&&me.includes("/total-clients")?oi:si}),(0,M.jsx)(B.A,{count:null!==me&&void 0!==me&&me.includes("/total-clients")?ri:di})]}),(0,M.jsx)(d.A,{children:(0,M.jsx)(E.A,{dataArr:null!==me&&void 0!==me&&me.includes("/total-clients")?He:Ve,displayIcon:!1,displayJarvis:!0,redirectedFrom:"keyPortfolioIndicators"})})]})})]}),me.includes("/total-clients")&&(0,M.jsxs)(d.A,{className:ve.box,children:[(0,M.jsxs)(c.Ay,{sx:{display:"flex",justifyContent:"space-between"},children:[(0,M.jsxs)(c.Ay,{children:[(0,M.jsx)(u.A,{variant:"h1",children:"Client Insights"}),(0,M.jsxs)(u.A,{variant:"h2",children:["Insights of verified clients through PM & JARVIS."," "]})]}),(0,M.jsx)(p.A,{title:"Download Excel File",children:(0,M.jsx)(r.A,{onClick:()=>(()=>{var e,i,l,t,n,o,s,r,d,a,c,u,p,x,m,v,h,g,A;const y={total:null===De||void 0===De||null===(e=De.clients_kpi)||void 0===e?void 0:e.total,free:null===De||void 0===De||null===(i=De.clients_kpi)||void 0===i?void 0:i.free,premium:null===De||void 0===De||null===(l=De.clients_kpi)||void 0===l?void 0:l.premium,verified_free:null===De||void 0===De||null===(t=De.clients_insights)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.verified_free,verified_premium:null===De||void 0===De||null===(o=De.clients_insights)||void 0===o||null===(s=o[0])||void 0===s?void 0:s.verified_premium,verified_today:null===De||void 0===De||null===(r=De.clients_insights)||void 0===r||null===(d=r[0])||void 0===d?void 0:d.verified_today,verified_total:null===De||void 0===De||null===(a=De.clients_insights)||void 0===a||null===(c=a[0])||void 0===c?void 0:c.verified_total,jarvis_free:null===De||void 0===De||null===(u=De.clients_insights)||void 0===u||null===(p=u[1])||void 0===p?void 0:p.jarvis_free,jarvis_premium:null===De||void 0===De||null===(x=De.clients_insights)||void 0===x||null===(m=x[1])||void 0===m?void 0:m.jarvis_premium,jarvis_today:null===De||void 0===De||null===(v=De.clients_insights)||void 0===v||null===(h=v[1])||void 0===h?void 0:h.jarvis_today,jarvis_total:null===De||void 0===De||null===(g=De.clients_insights)||void 0===g||null===(A=g[1])||void 0===A?void 0:A.jarvis_total};ci([y],"Client Insights")})()})})]}),(0,M.jsxs)(c.Ay,{container:!0,spacing:4,sx:{marginTop:"2rem"},children:[(0,M.jsx)(R,{title:"Total Clients",percent:"100%",count:null===De||void 0===De||null===(l=De.clients_kpi)||void 0===l?void 0:l.total,todayCount:null===De||void 0===De||null===(T=De.clients_kpi)||void 0===T?void 0:T.today,primaryColor:"#1AACAC",secondayColor:"rgba(26, 172, 172, 0.60)",premium:null===De||void 0===De||null===(w=De.clients_kpi)||void 0===w?void 0:w.premium,free:null===De||void 0===De||null===(k=De.clients_kpi)||void 0===k?void 0:k.free,handleRedirect:()=>xe("/clients?insights=total")}),(0,M.jsx)(R,{title:"Verified Clients",percent:"",count:null===De||void 0===De||null===(S=De.clients_insights)||void 0===S||null===(I=S[0])||void 0===I?void 0:I.verified_total,todayCount:null===De||void 0===De||null===(O=De.clients_insights)||void 0===O||null===(Y=O[0])||void 0===Y?void 0:Y.verified_today,primaryColor:"#7895CB",secondayColor:"rgba(120, 149, 203, 0.60)",premium:null===De||void 0===De||null===(L=De.clients_insights)||void 0===L||null===(K=L[0])||void 0===K?void 0:K.verified_premium,free:null===De||void 0===De||null===(U=De.clients_insights)||void 0===U||null===(H=U[0])||void 0===H?void 0:H.verified_free,handleRedirect:()=>xe("/clients?insights=verified")}),(0,M.jsx)(R,{title:"JARVIS Clients",percent:"",count:null===De||void 0===De||null===(V=De.clients_insights)||void 0===V||null===(J=V[1])||void 0===J?void 0:J.jarvis_total,todayCount:null===De||void 0===De||null===(G=De.clients_insights)||void 0===G||null===($=G[1])||void 0===$?void 0:$.jarvis_today,primaryColor:"#D14D72",secondayColor:"rgba(209, 77, 114, 0.60)",premium:null===De||void 0===De||null===(Z=De.clients_insights)||void 0===Z||null===(X=Z[1])||void 0===X?void 0:X.jarvis_premium,free:null===De||void 0===De||null===(q=De.clients_insights)||void 0===q||null===(Q=q[1])||void 0===Q?void 0:Q.jarvis_free,handleRedirect:()=>xe("/clients?insights=jarvis")})]}),(0,M.jsx)(d.A,{sx:{width:"100%"}
1,children:(0,M.jsx)(x.E,{dataset:z,xAxis:[{barGapRatio:0,categoryGapRatio:.7,dataKey:"time",scaleType:"band"}],series:[{color:"#7895CB",dataKey:"verified"},{color:"#D14D72",dataKey:"jarvis"}],legend:!1,height:400,sx:{width:"100%"}})})]}),me.includes("/total-clients")&&(0,M.jsx)(P,{}),me.includes("/total-clients")&&(0,M.jsxs)(d.A,{className:ve.box,children:[(0,M.jsxs)(c.Ay,{sx:{display:"flex",justifyContent:"space-between"},children:[(0,M.jsxs)(c.Ay,{children:[(0,M.jsx)(u.A,{variant:"h1",children:"EKYCs"}),(0,M.jsx)(u.A,{variant:"h2",children:"Insights of EKYCs done"})]}),(0,M.jsx)(p.A,{title:"Download Excel File",children:(0,M.jsx)(r.A,{onClick:()=>ci([null===De||void 0===De?void 0:De.clients_ekyc_kpi],"EKYCs")})})]}),(0,M.jsxs)(c.Ay,{container:!0,spacing:3,sx:{marginTop:"2rem"},children:[(0,M.jsx)(R,{title:"Total EKYC",percent:"100%",count:null===De||void 0===De||null===(ee=De.clients_ekyc_kpi)||void 0===ee?void 0:ee.total,todayCount:null===De||void 0===De||null===(ie=De.clients_ekyc_kpi)||void 0===ie?void 0:ie.today,free:null===De||void 0===De||null===(le=De.clients_ekyc_kpi)||void 0===le?void 0:le.free,premium:null===De||void 0===De||null===(te=De.clients_ekyc_kpi)||void 0===te?void 0:te.premium,primaryColor:"#AB88BF",secondaryColor:"rgba(171, 136, 191, 0.60)",handleRedirect:()=>xe("/clients?ekyc=total")}),(0,M.jsx)(R,{title:"EKYC through App",percent:"",count:"",todayCount:"",primaryColor:"#9E7676",secondaryColor:"rgba(158, 118, 118, 0.60)",handleRedirect:()=>xe("/clients?ekyc=app")}),(0,M.jsx)(R,{title:"EKYC through DOORS",percent:"",count:"",todayCount:"",primaryColor:"#316B83",secondaryColor:"rgba(49, 107, 131, 0.60)",handleRedirect:()=>xe("/clients?ekyc=doors")})]}),(0,M.jsx)(x.E,{dataset:W,xAxis:[{barGapRatio:0,categoryGapRatio:.8,dataKey:"time",scaleType:"band"}],series:[{color:"rgba(158, 118, 118, 1)",dataKey:"app"},{color:"rgba(49, 107, 131, 1)",dataKey:"doors"}],legend:!1,height:500,sx:{width:"100%"}})]}),me.includes("/total-clients")&&(0,M.jsxs)(d.A,{className:ve.box,children:[(0,M.jsxs)(c.Ay,{sx:{display:"flex",justifyContent:"space-between"},children:[(0,M.jsxs)(c.Ay,{children:[(0,M.jsx)(u.A,{variant:"h1",children:"Deleted Clients"}),(0,M.jsx)(u.A,{variant:"h2",children:"Insights of the Clients who are disabled or deleted from IA."})]}),(0,M.jsx)(p.A,{title:"Download Excel File",children:(0,M.jsx)(r.A,{onClick:()=>ci([null===De||void 0===De?void 0:De.clients_kpi],"Deleted Clients")})})]}),(0,M.jsxs)(c.Ay,{container:!0,sx:{gap:6,marginTop:"2rem"},children:[(0,M.jsx)(R,{title:"Total Clients",percent:"100%",count:null===De||void 0===De||null===(ne=De.clients_kpi)||void 0===ne?void 0:ne.total,todayCount:null===De||void 0===De||null===(oe=De.clients_kpi)||void 0===oe?void 0:oe.today,primaryColor:"#557153",secondayColor:"rgba(85, 113, 83, 0.60)",premium:null===De||void 0===De||null===(se=De.clients_kpi)||void 0===se?void 0:se.premium,free:null===De||void 0===De||null===(re=De.clients_kpi)||void 0===re?void 0:re.free,handleRedirect:()=>xe("/clients?deleted=total")}),(0,M.jsx)(R,{title:"Deleted Clients",percent:"",count:null===De||void 0===De||null===(de=De.clients_deleted)||void 0===de?void 0:de.deleted_total,todayCount:null===De||void 0===De||null===(ae=De.clients_deleted)||void 0===ae?void 0:ae.deleted_today,primaryColor:"#B73E3E",secondayColor:"rgba(183, 62, 62, 0.60)",premium:null===De||void 0===De||null===(ce=De.clients_deleted)||void 0===ce?void 0:ce.deleted_premium,free:null===De||void 0===De||null===(ue=De.clients_deleted)||void 0===ue?void 0:ue.deleted_free,handleRedirect:()=>xe("/clients?deleted=deleted")})]}),(0,M.jsx)(m.b,{height:450,series:[{data:[2,15,4,8,2,13,4,18,2,15]}],xAxis:[{data:N,scaleType:"point"}],sx:{"& .MuiLineElement-root":{stroke:"#B73E3E",strokeWidth:2},"& .MuiMarkElement-root":{display:"none"}}})]})]}),ge&&(0,M.jsx)(y.A,{})]})}},92075(e,i,l){l.d(i,{A:()=>p});l(9950);var t=l(20019),n=l(5022),o=l(25979),s=l(70006),r=l(23266),d=l(14195),a=l(82053),c=l(73445),u=l(44414);const p=e=>{let{selectedValue:i,onChange:l}=e;return(0,u.jsx)(o.A,{sx:{"& .MuiInputBase-root":{borderRadius:"8px"},"& .MuiOutlinedInput-input":{fontSize:"16px !important",fontWeight:"400 !important",padding:"6px .5rem"},"& .MuiOutlinedInput-notchedOutline":{border:"none !important"},background:"#F3F5F7",marginBottom:"0 !important",marginLeft:{lg:"12px",xs:0},maxWidth:"110px"},children:(0,u.jsx)(s.A,{labelId:"date-filter",id:"date-select",value:i,label:"Today",onChange:e=>l(e.target.value,"FilterTotal"),renderValue:e=>e,children:c.s4.map((e,o)=>(0,u.jsxs)(r.A,{value:e.value,sx:{alignItems:"center",color:"#0A3A67",display:"flex"},onClick:()=>l(e.value,"FilterTotal"),children:[(0,u.jsx)(d.A,{children:i===e.value?(0,u.jsx)(t.A,{sx:{color:"#0A3A67"}}):(0,u.jsx)(n.A,{sx:{color:"#0A3A67"}})}),(0,u.jsx)(a.A,{sx:{fontSize:"14px"},children:e.label})]},o))})})}},17746(e,i,l){l.d(i,{A:()=>u});l(9950);var t=l(86835),n=l(29120),o=l(53011),s=l(25333),r=l(59051),d=l.n(r),a=l(20162),c=l(44414);function u(e){let{customDates:i=[],customDateOpen:l=!1,setCustomDateOpen:r=()=>{},setCustomDates:u=()=>{},setFromDate:p=()=>{},setToDate:x=()=>{},handleSetDates:m=()=>{}}=e;return(0,c.jsx)(n.A,{onClose:()=>r(!1),open:l,sx:{alignItems:"center",display:"flex",justifyContent:"center",width:"80%"},children:(0,c.jsxs)(o.A,{sx:{"@media (max-width:768px)":{marginLeft:"1rem",paddingLeft:"1rem",width:"100%"},backgroundColor:"#fff",paddingTop:"40px",position:"relative"},children:[(0,c.jsx)(s.A,{onClick:()=>r(!1),sx:{background:"rgba(255,255,255,0.6)",padding:"4px",position:"absolute",right:8,top:8},children:(0,c.jsx)(t.A,{sx:{color:"maroon",fontSize:"16px"}})}),(0,c.jsx)(a.ad,{editableDateInputs:!0,onChange:e=>{var i,l;u([e.selection]);const t=d()(null===(i=e.selection)||void 0===i?void 0:i.startDate).format("YYYY-MM-DD"),n=d()(null===(l=e.selection)||void 0===l?void 0:l.endDate).format("YYYY-MM-DD");m(t,n,"Custom"),p(t),x(n)},moveRangeOnFirstSelection:!1,ranges:i,style:{width:"100%"}})]})})}},93365(e,i,l){l.d(i,{A:()=>A});l(9950);var t=l(5726),n=l(28429),o=l(35834),s=l(5634),r=l(74616),d=l(46986),a=l(60899),c=l(82053),u=l(45546),p=l(53065),x=l(25534),m=l(52867),v=l(73445);const h=(0,l(62815).A)({summaryBox:{alignItems:"center",display:"flex",justifyContent:"space-between"},title:{alignItems:"center",display:"flex",gap:"1rem",width:"50%"},type:{cursor:"pointer",fontSize:"1rem",fontWeight:"500"}});var g=l(44414);function A(e){let{dataArr:i=[],displayIcon:l="",redirectedFrom:t="",displayJarvis:p=!1}=e;const{pathname:m}=(0,n.zy)(),h=null!==m&&void 0!==m&&m.includes("/total-clients")||null!==m&&void 0!==m&&m.includes("/total-aum")?"Clients":null!==m&&void 0!==m&&m.includes("/total-properties")?"Properties":"";return null===i||void 0===i?void 0:i.map(e=>(0,g.jsxs)(r.A,{sx:{boxShadow:"none"},children:[(0,g.jsx)(d.A,{expandIcon:(0,g.jsx)(o.A,{}),sx:{padding:"0"},children:(0,g.jsxs)(a.Ay,{container:!0,sx:{gap:{lg:2,xs:1},width:l?"95%":"75%"},children:[(0,g.jsxs)(a.Ay,{item:!0,lg:6,xs:12,container:!0,sx:{"@media (max-width:768px)":{justifyContent:"space-between"},gap:{lg:1}},children:[l&&(0,g.jsx)(a.Ay,{item:!0,xs:1,children:(0,g.jsx)(s.A,{sx:{color:null!==e&&void 0!==e&&e.cp?(0,v.rd)(null===e||void 0===e?void 0:e.cp):(0,v.ll)(null===e||void 0===e?void 0:e.referral_type)}})}),(0,g.jsx)(a.Ay,{item:!0,xs:10.5,children:(0,g.jsx)(c.A,{sx:{color:"#122452"},children:e.cp||e.country||e.branch||e.name||e.referral_type||e.aum_branch||e.aum_prm})})]}),l&&(0,g.jsx)(c.A,{xs:2,sx:{color:"rgba(10, 58, 103, 0.60)"},children:e.percent}),(0,g.jsx)(c.A,{xs:2,sx:{color:"#0A3A67"},children:e.count}),(0,g.jsx)(x.A,{xs:2,count:e.today})]})}),(0,g.jsx)(u.A,{sx:{borderTop:"1px solid rgba(10, 58, 103, 0.15)",paddingBottom:"0"},children:(0,g.jsxs)(a.Ay,{container:!0,sx:{gap:{lg:1,xs:0}}
1,children:[(0,g.jsxs)(a.Ay,{item:!0,lg:12,xs:6,container:!0,justifyContent:"space-between",alignItems:"center",sx:{"@media (max-width:768px)":{alignItems:"flex-start",flexDirection:"column",gap:1,justifyContent:"flex-start"}},children:[(0,g.jsx)(y,{item:e,premiumType:"Premium",customerType:"",typeColor:"rgba(10, 58, 103, 0.60)",count:e.premium_count,countColor:"#0A3A67",redirectedFrom:t}),(0,g.jsx)(y,{item:e,premiumType:"Premium",customerType:"Silver",typeColor:"#BCBCBC",count:e.silver,countColor:"#989898",redirectedFrom:t}),(0,g.jsx)(y,{item:e,premiumType:"Premium",customerType:"Gold",typeColor:"#FFD194",count:e.gold,countColor:"#DFA251",redirectedFrom:t}),(0,g.jsx)(y,{item:e,premiumType:"Premium",customerType:"Platinum",typeColor:"#636363",count:e.platinum,countColor:"#2E2D2D",redirectedFrom:t}),(0,g.jsx)(y,{item:e,premiumType:"Premium",customerType:"AC",typeColor:"#CE9FFC",count:e.ac,countColor:"#7367F0",redirectedFrom:t}),p&&"Clients"===h&&(0,g.jsx)(y,{item:e,premiumType:"Premium",customerType:" Jarvis",typeColor:"rgba(198, 61, 47, 0.60)",count:e.jarvis,countColor:"#C63D2F",redirectedFrom:t})]}),(0,g.jsxs)(a.Ay,{item:!0,lg:12,xs:6,container:!0,justifyContent:"space-between",alignItems:"center",sx:{"@media (max-width:768px)":{alignItems:"flex-start",flexDirection:"column",gap:1,justifyContent:"flex-start"}},children:[(0,g.jsx)(y,{item:e,premiumType:"Free",customerType:"",typeColor:"rgba(10, 58, 103, 0.60)",count:e.free_count,countColor:"#0A3A67",redirectedFrom:t}),(0,g.jsx)(y,{item:e,premiumType:"Free",customerType:"Silver",typeColor:"#BCBCBC",count:e.free_silver,countColor:"#989898",redirectedFrom:t}),(0,g.jsx)(y,{item:e,premiumType:"Free",customerType:"Gold",typeColor:"#FFD194",count:e.free_gold,countColor:"#DFA251",redirectedFrom:t}),(0,g.jsx)(y,{item:e,premiumType:"Free",customerType:"Platinum",typeColor:"#636363",count:e.free_platinum,countColor:"#2E2D2D",redirectedFrom:t}),(0,g.jsx)(y,{item:e,premiumType:"Free",customerType:"AC",typeColor:"#CE9FFC",count:e.free_ac,countColor:"#7367F0",redirectedFrom:t}),p&&"Clients"===h&&(0,g.jsx)(y,{item:e,premiumType:"Free",customerType:" Jarvis",typeColor:"rgba(198, 61, 47, 0.60)",count:e.free_jarvis,countColor:"#C63D2F",redirectedFrom:t})]})]})})]},e.cp))}const y=e=>{let{item:i={},redirectedFrom:l="",premiumType:o="",customerType:s="",count:r="",typeColor:d="",countColor:u=""}=e;const x=(0,n.Zp)(),v=h(),{pathname:A}=(0,n.zy)(),{filters:y}=(0,t.d4)(e=>e.dashboard),f=null!==A&&void 0!==A&&A.includes("/total-clients")||null!==A&&void 0!==A&&A.includes("/total-aum")?"Clients":null!==A&&void 0!==A&&A.includes("/total-properties")?"Properties":"";return(0,g.jsxs)(a.Ay,{item:!0,lg:2,className:v.type,onClick:()=>(e=>{var i,t,n,o,s,r;const{appDownloads:d,referralType:a,country:c,cp:u,deleted:p,ekyc:m,premiumType:v,customerType:h,insights:g,type:A,branch:j}=e||{};let b={app_downloads:d,bh:null===y||void 0===y||null===(i=y[l])||void 0===i?void 0:i.bh,branch:j||(null===y||void 0===y||null===(t=y[l])||void 0===t?void 0:t.branch),country:c,cp:u,customer_type:"AC"===h?"Achievers Club":h,deleted:p,ekyc:m,from_date:null===y||void 0===y||null===(n=y[l])||void 0===n?void 0:n.fromDate,insights:g,premium_type:v,referral_type:a,rm:null===y||void 0===y||null===(o=y[l])||void 0===o?void 0:o.rm,rwm:null===y||void 0===y||null===(s=y[l])||void 0===s?void 0:s.prm,to_date:null===y||void 0===y||null===(r=y[l])||void 0===r?void 0:r.toDate,type:A};const C=Object.entries(b).filter(e=>{let[i,l]=e;return void 0!==l&&""!==l&&null!==l}).map(e=>{let[i,l]=e;return`${i}=${l}`}).join("&"),_=C?`?${C}`:"";"Clients"===f&&x("/clients"+_),"Properties"===f&&x("/properties"+_)})({branch:i.branch||i.aum_branch,country:i.country,cp:i.cp,customerType:s,premiumType:o,referralType:i.referral_type,type:"Jarvis"===s?"Jarvis":""}),children:[(0,g.jsx)(c.A,{sx:{color:d,fontSize:"14px"},children:s||o}),null!==A&&void 0!==A&&A.includes("/total-clients")||null!==A&&void 0!==A&&A.includes("/total-properties")?(0,g.jsx)(c.A,{sx:{color:u,fontSize:"14px"},children:r}):(0,g.jsx)(c.A,{sx:{color:u,fontSize:"14px"},children:(0,g.jsx)(p.A,{title:r,placement:"top",children:(0,m.GM)(r)})})]})}},59460(e,i,l){l.d(i,{A:()=>g});var t=l(9950),n=l(5726),o=l(96319),s=l(29120),r=l(53011),d=l(60899),a=l(25979),c=l(29277),u=l(70006),p=l(23266),x=l(1950),m=l(73445);const v=(0,l(62815).A)({box:{"@media (max-width:786px)":{maxWidth:"80%",padding:"1rem"},backgroundColor:"#FFF",borderRadius:"10px",margin:"0 auto",maxWidth:"30%",padding:"2rem"},field:{"& .MuiOutlinedInput-input":{background:"rgba(10, 58, 103, 0.05) !important",borderRadius:"40px !important"},"& .MuiOutlinedInput-notchedOutline":{border:"none",outline:"none !important"}},label:{"& .MuiFormLabel-root":{fontWeight:"400 !important"}},modal:{"@media (max-width:768px)":{height:"100vh",margin:"0 auto"},alignItems:"center",display:"flex",justifyContent:"center"}});var h=l(44414);function g(e){var i,l;let{showFilters:g,handleDisplayFilters:A,handleSetBranch:y,handleSetBh:f,handleSetPRM:j,handleSetRM:b,handleSetCustomerType:C,branch:_,bh:D,prm:T,rm:w,
1customerType:k,filterByBranchAUM:F=!1,filterByPRMAUM:S=!1,title:I}=e;const B=(0,n.wA)(),M=v(),R=(0,n.d4)(e=>{var i;return null===(i=e.auth)||void 0===i?void 0:i.role}),{profileDropdownValues:P,branchHeadDropdownValues:E,paymentDropdownValues:N}=(0,n.d4)(e=>e.dropdown),[W,z]=(0,t.useState)(null),[O,Y]=(0,t.useState)([]);(0,t.useEffect)(()=>{L(),K()},[]);const L=async()=>{const e=await B((0,x.jK)());z(e)},K=async()=>{Y(null===N||void 0===N?void 0:N.employees)};return(0,h.jsx)(s.A,{open:g,onClose:A,className:M.modal,children:(0,h.jsxs)(r.A,{className:M.box,children:[(0,h.jsx)(o.A,{color:"#636b74",onClick:A,sx:{float:"right"}}),(0,h.jsxs)(d.Ay,{container:!0,justifyContent:"space-between",children:[[m.UT.SUPER_ADMIN,m.UT.ADMIN].includes(R)&&!S&&(0,h.jsx)(d.Ay,{item:!0,xs:12,children:(0,h.jsxs)(a.A,{fullWidth:!0,className:M.label,children:[(0,h.jsx)(c.A,{id:"branch-filter",children:"Branch"}),(0,h.jsx)(u.A,{id:"branch-filter",name:"branch-filter",value:_,className:M.field,onChange:e=>{y(e.target.value),A()},children:null===P||void 0===P||null===(i=P.onboarding_branch)||void 0===i?void 0:i.map(e=>(0,h.jsx)(p.A,{value:null===e||void 0===e?void 0:e.onboarding_branch,children:null===e||void 0===e?void 0:e.onboarding_branch},null===e||void 0===e?void 0:e.onboarding_branch_id))})]})}),[m.UT.SUPER_ADMIN,m.UT.ADMIN].includes(R)&&!S&&!F&&(0,h.jsx)(d.Ay,{item:!0,lg:5.8}),[m.UT.SUPER_ADMIN,m.UT.ADMIN].includes(R)&&!S&&!F&&(0,h.jsx)(d.Ay,{item:!0,xs:12,children:(0,h.jsxs)(a.A,{fullWidth:!0,className:M.label,children:[(0,h.jsx)(c.A,{id:"bh-filter",children:"Branch Head"}),(0,h.jsx)(u.A,{id:"bh-filter",name:"bh-filter",value:D,className:M.field,onChange:e=>{f(e.target.value),A()},children:null===E||void 0===E?void 0:E.map(e=>(0,h.jsx)(p.A,{value:null===e||void 0===e?void 0:e.branch_head_name,children:null===e||void 0===e?void 0:e.branch_head_name},null===e||void 0===e?void 0:e.branch_head_id))})]})}),!F&&(0,h.jsx)(d.Ay,{item:!0,xs:12,children:(0,h.jsxs)(a.A,{fullWidth:!0,className:M.label,children:[(0,h.jsx)(c.A,{id:"prm-filter",children:"Team Member (Assign to RWM)"}),(0,h.jsx)(u.A,{id:"prm-filter",name:"prm-filter",value:T,className:M.field,onChange:e=>{j(e.target.value),A()},children:null===W||void 0===W?void 0:W.map(e=>(0,h.jsx)(p.A,{value:null===e||void 0===e?void 0:e.portfolio_manager_name,children:null===e||void 0===e?void 0:e.portfolio_manager_name},null===e||void 0===e?void 0:e.portfolio_manager_id))})]})}),!S&&!F&&(0,h.jsx)(d.Ay,{item:!0,xs:12,children:(0,h.jsxs)(a.A,{fullWidth:!0,className:M.label,children:[(0,h.jsx)(c.A,{id:"prm-filter",children:"Sub-Team Member (Sub-assign to RM)"}),(0,h.jsx)(u.A,{id:"rm-filter",name:"rm-filter",value:w,className:M.field,onChange:e=>{b(e.target.value),A()},children:null===O||void 0===O?void 0:O.map(e=>(0,h.jsx)(p.A,{value:null===e||void 0===e?void 0:e.full_name,children:null===e||void 0===e?void 0:e.full_name},null===e||void 0===e?void 0:e.emp_id))})]})}),"Revenue Insights"!==I||"Total Revenue Booked"!==I&&(0,h.jsx)(d.Ay,{item:!0,xs:12,children:(0,h.jsxs)(a.A,{fullWidth:!0,className:M.label,children:[(0,h.jsx)(c.A,{id:"customer-type-filter",children:"Customer Type"}),(0,h.jsx)(u.A,{id:"customer-type-filter",name:"customer-type-filter",value:k,className:M.field,onChange:e=>{C(e.target.value),A()},children:null===P||void 0===P||null===(l=P.customer_type)||void 0===l?void 0:l.map(e=>(0,h.jsx)(p.A,{value:null===e||void 0===e?void 0:e.customer_type,children:null===e||void 0===e?void 0:e.customer_type},null===e||void 0===e?void 0:e.customer_type))})]})})]})]})})}},25534(e,i,l){l.d(i,{A:()=>r});l(9950);var t=l(53011),n=l(82053);const o=(0,l(62815).A)({today:{color:"#60BD59",fontSize:"12px !important",fontWeight:"400"},todayBox:{alignItems:"center",background:"rgba(96, 189, 89, 0.10)",borderRadius:"50px",display:"flex",gap:"6px",height:"20px",justifyContent:"space-between",padding:"4px 12px"}});var s=l(44414);function r(e){let{count:i}=e;const l=o();return(0,s.jsxs)(t.A,{className:l.todayBox,children:[(0,s.jsx)(n.A,{className:l.today,sx:{fontSize:"18px !important"},children:"+"}),(0,s.jsx)(n.A,{className:l.today,children:i}),(0,s.jsx)(n.A,{className:l.today,children:"Today"})]})}}}]);
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.