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-def636a4.js";import{S as v}from"./SideMenuDetailLayout-6e1ae0e7.js";import"./index-accbca3c.js";import"./index.esm-7d9d1491.js";import"./index.esm-eec4f448.js";import"./yup-c8535458.js";import"./SelectComponent-cea9b89b.js";import"./objectSpread2-a4d0f5f6.js";import"./floating-ui.dom-e7d69f3b.js";import"./InputLabel-e2e73b27.js";import"./useFormControl-880b2f7b.js";import"./TextArea-6c103c50.js";import"./TextField-2ba95a45.js";import"./FormControl-1f811046.js";import"./OutlinedInput-ddb8bb3f.js";import"./List-17cd485b.js";import"./Select-2cfb5afd.js";import"./Menu-af49d134.js";import"./Grow-85576dd3.js";import"./useControlled-bd643819.js";import"./createSvgIcon-ff487f53.js";import"./AvatarGroup-862fb05d.js";import"./Avatar-03680000.js";import"./Tooltip-762a58b6.js";import"./ScrollableList-a550bc32.js";import"./Loader-16c57fae.js";import"./CardContent-c8b2d0af.js";import"./Chip-81b6c661.js";import"./DialogContent-0cb684b3.js";import"./DialogTitle-e2e75924.js";import"./LoadingButton-621a0e8f.js";import"./index-f48c8aa0.js";import"./useMediaQuery-4304fb25.js";import"./composeClasses-b42b2e69.js";import"./useToggle-2b3cfa4d.js";import"./useViewPort-4849ab19.js";import"./index-02faff3d.js";import"./AntdIcon-34324527.js";import"./presets-dbb0f3bf.js";import"./FilterFilled-08c5b5a7.js";import"./FilterOutlined-03ee9578.js";import"./InfoCircleOutlined-3c134b7f.js";import"./SolutionOutlined-a1ba47eb.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};
