import{F as l,b as u,eh as c,a as f,iC as b,r as m,f as g,i as M,iF as h,j as r}from"./index-43bf7a1c.js";import{S as v}from"./SideMenuDetailLayout-48e12b5d.js";import"./index-4113d4cf.js";import"./index.esm-0548c843.js";import"./index.esm-f9e0a906.js";import"./yup-3b80ed10.js";import"./SelectComponent-84e66b0a.js";import"./objectSpread2-c31b885b.js";import"./floating-ui.dom-e7d69f3b.js";import"./InputLabel-6c7474f0.js";import"./useFormControl-2c5d60c2.js";import"./TextArea-23730be7.js";import"./TextField-4da97115.js";import"./FormControl-8d011aab.js";import"./OutlinedInput-6bcf3cf8.js";import"./List-6fcc4821.js";import"./Select-44fd3147.js";import"./Menu-362130d3.js";import"./Grow-ca573f65.js";import"./useControlled-ab567149.js";import"./createSvgIcon-f118be02.js";import"./AvatarGroup-0dfacdbf.js";import"./Avatar-ec89b895.js";import"./Tooltip-c7371fbe.js";import"./ScrollableList-e19132c3.js";import"./Loader-aabe9ed3.js";import"./CardContent-69a98a60.js";import"./Chip-94eea1f7.js";import"./DialogContent-d5902709.js";import"./DialogTitle-20dc6f66.js";import"./LoadingButton-570cb73d.js";import"./index-913b2dc6.js";import"./useMediaQuery-d6627623.js";import"./composeClasses-b42b2e69.js";import"./useToggle-cac8da91.js";import"./useViewPort-a450f252.js";import"./index-4d9acd7a.js";import"./AntdIcon-634507e8.js";import"./presets-bb9bdfd8.js";import"./FilterFilled-ccc86e02.js";import"./FilterOutlined-908c8e25.js";import"./InfoCircleOutlined-93449dd4.js";import"./SolutionOutlined-2be2f413.js";const dt=()=>{const s=l(),e=u(),{id:t,tab:D}=c(),{leads:{selectedData:p},system:{venderMenuItemsList:i,userAccessList:a}}=f(o=>b(o));return m.useEffect(()=>{e(g({showMobileMenu:!1})),e(M({code:"MENU0010",from:"vendersmenu"}))},[]),m.useEffect(()=>{t&&e(h({id:t||""}))},[t]),r.jsx(r.Fragment,{children:r.jsx(v,{menuCode:"MENU0010",fromScreen:"vendersmenu",data:p,app_label:"LeadManagement",model_name:"lead",goBackUrl:"/leads",assignUserCallback:()=>{},tabsData:i&&[{key:"lead_details",label:"Details",icon:"DashboardOutlined",url:"/",urlParams:{id:t}},...i,...(a==null?void 0:a.indexOf("LeadManagement.view_comment"))!==-1?[{key:"comments",label:"Comments",icon:"DashboardOutlined",url:"/comments",urlParams:{id:t}}]:[]],onTabClick:(o,n,d)=>{s(`/leads/view/${o}/${n}${d}`)}})})};export{dt as default};
