import{F as l,b as u,eh as c,a as f,ip as b,r as m,f as g,i as M,is as h,j as r}from"./index-76d4793e.js";import{S as v}from"./SideMenuDetailLayout-40bcd75f.js";import"./index-65d3234b.js";import"./index.esm-3adfd9f7.js";import"./index.esm-ad8a7c9f.js";import"./yup-688ec4f6.js";import"./SelectComponent-3c1140e6.js";import"./objectSpread2-51b6810f.js";import"./floating-ui.dom-e7d69f3b.js";import"./InputLabel-5ed57f0e.js";import"./useFormControl-c8d490e1.js";import"./TextArea-f4ef1e8b.js";import"./TextField-9c64a4a2.js";import"./FormControl-c671c595.js";import"./OutlinedInput-ac933786.js";import"./List-4c24b3e8.js";import"./Select-338083eb.js";import"./Menu-ed7c6894.js";import"./Grow-84b30c0e.js";import"./useControlled-e03384de.js";import"./createSvgIcon-01ec10fc.js";import"./AvatarGroup-95c17048.js";import"./Avatar-ff1026d1.js";import"./Tooltip-0a59b9eb.js";import"./ScrollableList-4dae3697.js";import"./Loader-9f443a4c.js";import"./CardContent-2f10f9e9.js";import"./Chip-456ce28e.js";import"./DialogContent-7bd8dd8f.js";import"./DialogTitle-71dd5b3a.js";import"./LoadingButton-89ba2db7.js";import"./index-ecea5cfc.js";import"./useMediaQuery-8cb39c65.js";import"./composeClasses-b42b2e69.js";import"./useToggle-025d2f61.js";import"./useViewPort-c21c3885.js";import"./index-f75e50cb.js";import"./AntdIcon-55dc1b5f.js";import"./FilterFilled-aa7d40e4.js";import"./FilterOutlined-91aa15e3.js";import"./InfoCircleOutlined-c8b96a94.js";import"./SolutionOutlined-533d9063.js";const nt=()=>{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{nt as default};
