import{f as g,D as m,c as u,q as b,oo as y,hd as z,j as s,B as i,M as A,T as r,I as S,K as n,y as t,ox as Y}from"./index-c910e189.js";import{d as v}from"./Close-8f92bd9f.js";const w=g(m)(({theme:o})=>({"& .MuiDrawer-paper":{borderRadius:"12px 0 0 12px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",backgroundColor:o.palette.background.default,color:o.palette.text.primary}})),T=()=>{var d,h,l,a,j;const o=u(),p=b(),{AssetTransfer:{openView:f,selectedData:e},system:{userAccessList:M,systemPreferences:{preferences:{is_inventory:x}={}}={}}}=y();z();const c=()=>{o(Y(!1))};return s.jsx(s.Fragment,{children:s.jsx(w,{anchor:"right",open:f,onClose:c,children:s.jsxs(i,{sx:{width:650,p:2,bgcolor:p.palette.background.paper},children:[s.jsxs(A,{direction:"row",justifyContent:"space-between",alignItems:"center",mb:2,children:[s.jsx(r,{variant:"h6",fontWeight:600,children:(d=e==null?void 0:e.asset)==null?void 0:d.name}),s.jsx(S,{onClick:c,children:s.jsx(v,{})})]}),s.jsx(i,{sx:{p:1},children:s.jsx(i,{sx:{border:"1px solid #e0e0e0",borderRadius:"5px",padding:3,bgcolor:"white"},children:s.jsxs(n,{container:!0,spacing:2,children:[s.jsxs(n,{size:{xs:12},children:[s.jsx(r,{variant:"subtitle2",color:"text.secondary",sx:{fontSize:"13px",fontWeight:400},children:"Transfer Id:"}),s.jsx(r,{children:s.jsx("strong",{children:(e==null?void 0:e.code)||"N/A"})})]}),s.jsxs(n,{size:{xs:12},children:[s.jsx(r,{variant:"subtitle2",color:"text.secondary",sx:{fontSize:"13px",fontWeight:400},children:"Date:"}),s.jsxs(r,{children:[" ",s.jsx("strong",{children:t(e.created_on).format("DD-MM-YYYY")||"N/A"})]})]}),s.jsxs(n,{size:{xs:12},children:[s.jsx(r,{variant:"subtitle2",color:"text.secondary",sx:{fontSize:"13px",fontWeight:400},children:x?"From Project:":"From Location:"}),s.jsxs(r,{children:[" ",s.jsx("strong",{children:((h=e==null?void 0:e.location)==null?void 0:h.name)||"N/A"})]})]}),s.jsxs(n,{size:{xs:12},children:[s.jsx(r,{variant:"subtitle2",color:"text.secondary",sx:{fontSize:"13px",fontWeight:400},children:x?"To Project:":"To Location:"}),s.jsx(r,{children:s.jsx("strong",{children:((l=e==null?void 0:e.location)==null?void 0:l.name)||"N/A"})})]}),s.jsxs(n,{size:{xs:12},children:[s.jsx(r,{variant:"subtitle2",color:"text.secondary",sx:{fontSize:"13px",fontWeight:400},children:"Created By:"}),s.jsx(r,{children:s.jsx("strong",{children:((a=e==null?void 0:e.created_by)==null?void 0:a.username)||"N/A"})})]}),s.jsxs(n,{size:{xs:12},children:[s.jsx(r,{variant:"subtitle2",color:"text.secondary",sx:{fontSize:"13px",fontWeight:400},children:"Created On:"}),s.jsxs(r,{children:[" ",s.jsx("strong",{children:e!=null&&e.created_on?t(e.created_on).format("DD-MM-YYYY hh:mm A"):"N/A"})]})]}),s.jsxs(n,{size:{xs:12},children:[s.jsx(r,{variant:"subtitle2",color:"text.secondary",sx:{fontSize:"13px",fontWeight:400},children:"Modified By:"}),s.jsx(r,{children:s.jsx("strong",{children:((j=e==null?void 0:e.modified_by)==null?void 0:j.username)||"N/A"})})]}),s.jsxs(n,{size:{xs:12},children:[s.jsx(r,{variant:"subtitle2",color:"text.secondary",sx:{fontSize:"13px",fontWeight:400},children:"Modified On:"}),s.jsxs(r,{children:[" ",s.jsx("strong",{children:e!=null&&e.modified_on?t(e.modified_on).format("DD-MM-YYYY hh:mm A"):"N/A"})]})]}),s.jsxs(n,{size:{xs:12},children:[s.jsx(r,{variant:"subtitle2",color:"text.secondary",sx:{fontSize:"13px",fontWeight:400},children:"Reason:"}),s.jsx(r,{children:s.jsx("strong",{children:(e==null?void 0:e.description)||"N/A"})})]})]})})})]})})})};export{T as V};
