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-60a3c753.js";import{S as v}from"./SideMenuDetailLayout-c5886ad6.js";import"./index-f98ad8ec.js";import"./index.esm-c494934a.js";import"./index.esm-62d6b2f7.js";import"./yup-92678dde.js";import"./SelectComponent-e431868e.js";import"./objectSpread2-85813881.js";import"./floating-ui.dom-e7d69f3b.js";import"./InputLabel-71dfc9d4.js";import"./useFormControl-e13b5747.js";import"./TextArea-b2d5bcf9.js";import"./TextField-32b29087.js";import"./FormControl-d13d2693.js";import"./OutlinedInput-3a884178.js";import"./List-f567f8e4.js";import"./Select-99fc0d84.js";import"./Menu-d1b7e1c3.js";import"./Grow-68442588.js";import"./useControlled-194ef007.js";import"./createSvgIcon-de433e5f.js";import"./AvatarGroup-2ca54025.js";import"./Avatar-a21f41a5.js";import"./Tooltip-88e63512.js";import"./ScrollableList-1962b023.js";import"./Loader-466ccb5e.js";import"./CardContent-faee3650.js";import"./Chip-cc311899.js";import"./DialogContent-89e21f2e.js";import"./DialogTitle-fe69da5c.js";import"./LoadingButton-3975ddf9.js";import"./index-900fa817.js";import"./useMediaQuery-dba48e3b.js";import"./composeClasses-b42b2e69.js";import"./useToggle-593ec652.js";import"./useViewPort-a06269d3.js";import"./index-3ddab5e6.js";import"./AntdIcon-bed41c21.js";import"./presets-06d13753.js";import"./FilterFilled-cdde02db.js";import"./FilterOutlined-c131dc67.js";import"./InfoCircleOutlined-351fb70a.js";import"./SolutionOutlined-614dece1.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};
