import{d as y,o as s,j as h,b as l,a as c,e as m,k as I,w as a,c as t,f as n,t as o,F as B,ad as b,ae as p,af as k,a2 as P}from"./index.29cf2edd.js";/* empty css              */import"./Members.1fe5d3d5.js";import{f as d}from"./filters.69c883c5.js";import{_ as C}from"./Status.120e28ab.js";import{_ as N}from"./Type.ec60a9ee.js";const T={style:{position:"relative"}},S=y({__name:"OrderInfo",props:{order:{type:Object,required:!0},showEdit:Boolean},setup(e){const f=new Date;return(g,i)=>{const u=P,r=b,x=p("router-link"),D=k;return s(),h(B,null,[e.order&&l(d).formatDate2(l(f))>l(d).formatDate2(e.order.expirytime)?(s(),c(u,{key:0,style:{"margin-top":"12px","margin-bottom":"12px"},message:"Warning",description:"The certificate is expired",type:"error","show-icon":""})):m("",!0),I("div",T,[e.order?(s(),c(D,{key:0,title:"Order Info"},{default:a(()=>[t(r,{label:"Order ID"},{default:a(()=>[n(o(e.order.id),1)]),_:1}),t(r,{label:"Certificate No."},{default:a(()=>[n(o(e.order.no),1)]),_:1}),t(r,{label:"Date of Placed"},{default:a(()=>[n(o(l(d).formatDate(e.order.createdtime)),1)]),_:1}),t(r,{label:"Buy Type"},{default:a(()=>[t(N,{type:e.order.type},null,8,["type"])]),_:1}),t(r,{label:"Buy Mode"},{default:a(()=>{var _;return[n(o((_=e.order.buy_mode)!=null?_:"N/A"),1)]}),_:1}),t(r,{label:"Status"},{default:a(()=>[t(C,{status:e.order.status},null,8,["status"])]),_:1}),t(r,{label:"Customer"},{default:a(()=>[t(x,{to:`/customer/view/${e.order.user_id}`},{default:a(()=>[n(o(e.order.user.firstname)+" "+o(e.order.user.lastname),1)]),_:1},8,["to"])]),_:1}),t(r,{label:"Phone"},{default:a(()=>[n(o(e.order.user.phone),1)]),_:1}),t(r,{label:"Email"},{default:a(()=>[n(o(e.order.user.email),1)]),_:1}),t(r,{label:"VISA Type"},{default:a(()=>[n(o(e.order.user&&e.order.user.visa_type?e.order.user.visa_type.name:"-"),1)]),_:1}),t(r,{label:"Passport Number"},{default:a(()=>[n(o(e.order.user.passport),1)]),_:1}),t(r,{label:"Order Placed By"},{default:a(()=>[n(o(e.order.placed_by?"Staff":"Customer"),1)]),_:1}),t(r,{label:"Placed At"}),t(r,{label:"Total Amount"},{default:a(()=>[n(o(l(d).formatMoney(e.order.amount)),1)]),_:1}),t(r,{label:"Expiry Date"},{default:a(()=>[n(o(l(d).formatDob(e.order.expirytime)),1)]),_:1})]),_:1})):m("",!0)])],64)}}}),$=y({__name:"InsurancePackageInfo",props:{order:{type:Object,required:!0}},setup(e){return(f,g)=>{const i=p("router-link"),u=b,r=k;return e.order?(s(),c(r,{key:0,title:"Insurance Type & Package"},{default:a(()=>[t(u,{label:"Insurance Type"},{default:a(()=>[t(i,{to:""},{default:a(()=>[n(o(e.order.insurancetype.name),1)]),_:1})]),_:1}),t(u,{label:"Package"},{default:a(()=>[t(i,{to:""},{default:a(()=>[n(o(e.order.insurancepackage.name),1)]),_:1})]),_:1}),t(u,{label:"Amount"},{default:a(()=>[n(o(l(d).formatMoney(e.order.insurancepackage.price)),1)]),_:1})]),_:1})):m("",!0)}}});export{S as _,$ as a};
