import{P as u}from"./Page.7007a3b0.js";import{r as s,L as h,a as x,aZ as g,bt as f,y,f as t,j as e,C as b,S as n,T as i,aO as D}from"./index.8aed0a19.js";import{d as v,H as C,N as S}from"./ArrowBackIos.6aae9b97.js";import{G as o}from"./Grid.a085c491.js";import"./jsonToFormData.9dc5ce0d.js";import"./Card.d296fd42.js";function k(){const{localeData:c}=s.exports.useContext(h),l=x(),{themeStretch:d}=g(),[a,m]=s.exports.useState(),{id:p}=f();return s.exports.useEffect(()=>{y.get("/detail-claim-requests/"+p).then(r=>{m(r.data)}).catch(r=>{console.error(r)})},[]),t(u,{title:"Detail",children:e(b,{maxWidth:d?!1:"xl",children:[e(n,{direction:"row",alignItems:"center",sx:{marginBottom:3},children:[t(v,{onClick:()=>l(-1),sx:{cursor:"pointer"}}),t(i,{variant:"h5",sx:{marginLeft:2},children:"Detail"}),a?e(n,{direction:"row",spacing:2,ml:"auto",children:[t(i,{variant:"body2",sx:{color:"#757575"},children:c.txtDialogMember5}),t(i,{variant:"body2",fontWeight:"bold",children:a&&a.data?D(new Date(a.data.status.submission_date),"d MMM yyyy"):""})]}):""]}),a?e(o,{container:!0,spacing:2,children:[t(o,{item:!0,xs:12,md:12,children:t(C,{data:a})}),t(o,{item:!0,xs:12,md:12,children:t(S,{data:a})})]}):""]})})}export{k as default};
