import{F as c,b as u,eh as d,a as l,jT as f,r as a,f as j,i as b,j_ as k,j as i}from"./index-76d4793e.js";import{S as _}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 cr=()=>{const m=c(),o=u(),{id:r,tab:g,tenderId:M}=d(),{workOrder:{selectedData:e},system:{projectsMenuItemsList:p,userAccessList:h}}=l(t=>f(t));return a.useEffect(()=>{o(j({showMobileMenu:!1})),o(b({code:"MENU0011",from:"projectsmenu"}))},[]),a.useEffect(()=>{r&&o(k({id:r||""}))},[r]),i.jsx(i.Fragment,{children:i.jsx(_,{menuCode:"MENU0011",fromScreen:"projectsmenu",data:e,app_label:"ProjectManagement",model_name:"project",goBackUrl:"/work_order",assignUserCallback:()=>{},tabsData:p&&[{key:"project_details",label:"Details",icon:"DashboardOutlined",url:"/",urlParams:{id:r}},...p.filter(t=>!(!(e!=null&&e.is_performace_bank_guarantee)&&t.url==="/project/performance_bank_guarantee"))],onTabClick:(t,s,n)=>{m(`/work_order/view/${t}/${s}${n}`)}})})};export{cr as default};
