import{E as l,b as u,ek as c,a as f,is as b,r as m,f as g,h as M,ix as h,j as r}from"./index-d2b25495.js";import{S as v}from"./SideMenuDetailLayout-a14964d2.js";import"./index-b3c5bebe.js";import"./index.esm-ce3c2c20.js";import"./index.esm-3043d6d4.js";import"./yup-267e586f.js";import"./SelectComponent-d286bfef.js";import"./objectSpread2-b41ee31b.js";import"./InputLabel-bb6ab40e.js";import"./useFormControl-2b068664.js";import"./TextArea-7e39a6e1.js";import"./TextField-e155d2be.js";import"./FormControl-73683015.js";import"./OutlinedInput-86f3ec98.js";import"./Select-ef36a2b2.js";import"./Menu-337a466b.js";import"./Grow-8719411b.js";import"./List-863f013e.js";import"./useControlled-8d737f13.js";import"./createSvgIcon-e39ae511.js";import"./AvatarGroup-31138314.js";import"./Avatar-9337c33f.js";import"./Tooltip-82372cdb.js";import"./popper-f3391c26.js";import"./ScrollableList-fc1de312.js";import"./Loader-1b927baf.js";import"./CardContent-be810fe0.js";import"./Chip-75fd9653.js";import"./DialogContent-cded694d.js";import"./DialogTitle-a145b392.js";import"./LoadingButton-c8e88148.js";import"./index-38f860bc.js";import"./useMediaQuery-b1fbc166.js";import"./composeClasses-b42b2e69.js";import"./useToggle-4d859601.js";import"./useViewPort-1fe27edd.js";import"./index-19cd9110.js";import"./AntdIcon-8449be55.js";import"./index-709861af.js";import"./FilterFilled-4dfce120.js";import"./FilterOutlined-653b7cb0.js";import"./InfoCircleOutlined-a1ed1ad6.js";import"./SolutionOutlined-bb59aa7b.js";const dt=()=>{const s=l(),e=u(),{id:t,tab:x}=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};
