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