1import{_ as X}from"./C3r_iOYb.js";import{_ as h,s,D as A,c,g as o,d as p,u as t,q as B,t as a,b as e,A as Z,i as _,a0 as tt,r as $,o as et,w as k,E as T,e as l,F as nt,p as st,f as ot}from"#entry";import{u as at,_ as rt}from"./C-vBwsdQ.js";import{_ as it}from"./BGvMQz2C.js";import{h as ct,f as L,a as lt}from"./CNDzp-Ff.js";import{u as dt}from"./MIIno4-a.js";const ut={__name:"PaymentMethodBadge",props:{type:{type:String,default:"bank"}},setup(r){const m=r,u=s(()=>{let i="";switch(m.type.toLowerCase()){case"bank":i="fa-solid fa-building-columns";break;case"credit card":i="fa-regular fa-credit-card";break}return i});return(i,g)=>{const I=A("FontAwesomeIcon");return o(),c("span",{class:B(["payment-method",r.type])},[p(I,{class:"icon",icon:t(u)},null,8,["icon"])],2)}}},_t=h(ut,[["__scopeId","data-v-2b67665a"]]),pt={__name:"PaymentTypeBadge",props:{type:{type:String,required:!0}},setup(r){const m=r,u=s(()=>{let i="";switch(m.type){case"Payment":i="";break;case"Refund":i="";break;case"Withdrawal":i="";break}return i});return(i,g)=>(o(),c("span",{class:B(["payment-type",r.type])},a(t(u))+" "+a(r.type),3))}},mt=h(pt,[["__scopeId","data-v-fe61f0eb"]]),ft={},yt={class:"more-info"},gt={class:"tooltip"};function vt(r,m){const u=A("FontAwesomeIcon");return o(),c("span",yt,[p(u,{icon:"fa-solid fa-circle-info"}),e("div",gt,[Z(r.$slots,"default",{},void 0,!0)])])}const ht=Object.assign(h(ft,[["render",vt],["__scopeId","data-v-b5c2b09f"]]),{__name:"ToolTip"}),bt={class:"date"},kt={key:0},Tt={__name:"TimelineCard",props:{status:{type:String,required:!0},date:{type:String,required:!0},detail:{type:String,default:""}},setup(r){return(m,u)=>(o(),c("div",{class:B(["time-card",{failed:r.status==="Failed"}])},[e("strong",null,a(r.status),1),e("p",bt,a(r.date),1),r.detail?(o(),c("p",kt,a(r.detail),1)):_("",!0)],2))}},It=h(Tt,[["__scopeId","data-v-9ea064a3"]]),wt={class:"page transaction-details-page"},xt={key:0,class:"error"},$t={class:"row-block"},At={class:"section-container"},Bt={class:"inner-container margin-bonus"},Nt={class:"flexible"},St={class:"pad-this"},Ct={key:0,class:"refund-info"},Ft={key:0},Pt={key:1},Lt={class:"inner-container"},Dt={class:"padded"},Mt={class:"padded"},Rt={key:0},Vt={key:1,class:"invoice-details"},qt={key:2},D="Your purchase has been partially refunded by the seller. If you think this in error, please contact the seller.",Et={__name:"[transactionId]",setup(r){const m=tt(),u=parseInt(m.params.transactionId);dt(`Details for Transaction ${u}`);const i=$(""),g=$(!0),I=$("Payment"),d=at();et(()=>{u?d.getTransactionDetails(u).then(()=>{g.value=!1}).catch(y=>{i.value=ct(y),g.value=!1}):i.value="Unable to find transaction, please go back and try again."});const b=s(()=>d.singleTransaction.details.amount),M=s(()=>b.value?`$${L(b.value)}`:"$0.00"),N=s(()=>d.singleTransaction.details.order),R=s(()=>d.singleTransaction.statusHistory),V=s(()=>d.singleTransaction.details.formattedCreatedAt),f=s(()=>null),q=s(()=>d.transactionBackLinkRouteInfo.path),S=s(()=>d.singleTransaction.status),w=s(()=>S.value.toLowerCase()),E=s(()=>{const{companyName:y,invoiceBusinessName:n}=d.singleTransaction.details;return n||y}),H=s(()=>{let y=!1;switch(w.value){case"refund initiated":case"refund pending":case"refund success":y=!0;break}return y}),v=s(()=>d.singleTransaction.details.refundAmount),C=s(()=>v.value?`$${L(v.value)}`:null),O=s(()=>d.singleTransaction.details.invoiceId),F=s(()=>d.singleTransaction.details.invoiceNumber),U=s(()=>lt(F.value));return(y,n)=>{const W=X,j=_t,z=mt,Y=rt,P=ht,G=It,J=A("FontAwesomeIcon"),K=ot,Q=it;return o(),c("div",wt,[t(i)?(o(),c("p",xt,a(t(i)),1)):_("",!0),n[11]||(n[11]=e("h1",null,"Transaction Details",-1)),e("section",$t,[e("div",At,[p(Q,{loading:t(g)},{default:k(()=>[e("div",Bt,[p(W,{to:t(q)},null,8,["to"]),e("div",Nt,[t(f)?(o(),T(j,{key:0,type:t(f).type},null,8,["type"])):_("",!0),p(z,{type:t(I),paymentMethod:t(f)?t(f).type:"Bank"},null,8,["type","paymentMethod"])]),e("h2",null,[l(a(t(M))+" ",1),n[0]||(n[0]=e("span",null,"USD",-1)),n[1]||(n[1]=l("  ",-1)),p(Y,{status:t(S)},null,8,["status"])]),e("div",St,[e("span",null,a(t(V)),1)]),t(H)&&t(v)?(o(),c("div",Ct,[t(w)==="refund initiated"||t(w)==="refund pending"?(o(),c("p",Ft,[l(" A refund has been started for this payment in the amount of "+a(t(C))+" ",1),t(b)>t(v)?(o(),T(P,{key:0},{default:k(()=>[l(a(D))]),_:1})):_("",!0)])):(o(),c("p",Pt,[l(" A refund for the amount of "+a(t(C))+" has been sent to your bank account ",1),t(b)>t(v)?(o(),T(P,{key:0},{default:k(()=>[l(a(D))]),_:1})):_("",!0)]))])):_("",!0)]),e("div",Lt,[e("div",Dt,[n[2]||(n[2]=e("h3",null,"Timeline",-1)),(o(!0),c(nt,null,st(t(R),x=>(o(),T(G,{key:x.statusId,status:x.status,date:x.formattedDate},null,8,["status","date"]))),128))]),e("div",Mt,[n[10]||(n[10]=e("h3",null,"Additional Details",-1)),e("div",null,[e("p",null,[n[3]||(n[3]=e("strong",null,"Transaction with:",-1)),l(" "+a(t(E)),1)]),t(N)?(o(),c("p",Rt,[n[4]||(n[4]=e("strong",null,"Order number:",-1)),l(" "+a(t(N)),1)])):_("",!0),t(F)?(o(),c("section",Vt,[e("p",null,[p(J,{icon:"fa-solid fa-circle-info"}),n[5]||(n[5]=l(" This payment is for an invoice ",-1))]),e("p",null,[n[6]||(n[6]=e("strong",null,"Invoice number:",-1)),l(" "+a(t(U)),1)]),p(K,{to:`/invoice/${t(O)}`,target:"_blank"},{default:k(()=>[...n[7]||(n[7]=[l("View Invoice",-1)])]),_:1},8,["to"])])):_("",!0),t(f)?(o(),c("section",qt,[e("p",null,[n[8]||(n[8]=e("strong",null,"Payed with:",-1)),l(" "+a(t(f).name),1)]),e("p",null,[n[9]||(n[9]=e("strong",null,"Account: ",-1)),l("â¢â¢â¢â¢ "+a(t(f).accountLastFour),1)])])):_("",!0)])])])]),_:1},8,["loading"])])])])}}},Yt=h(Et,[["__scopeId","data-v-570502ca"]]);export{Yt as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.