<%
let introLine;
if (ob.closerName) {
introLine = ob.polyT('orderDetail.summaryTab.disputeAcceptance.userAcceptedPayout', {
name: ob.closerName,
});
} else {
introLine = ob.acceptedByBuyer ?
ob.polyT('orderDetail.summaryTab.disputeAcceptance.genericBuyerAcceptedPayout') :
ob.polyT('orderDetail.summaryTab.disputeAcceptance.genericVendorAcceptedPayout');
}
let subText = '';
if (!ob.vendorProcessingError) {
// Since the text indicates the order will be complete after leaving a review and you
// can't leave a review if the vendor has an error processing the order, we'll omit the
// text in that case.
let subText = ob.buyerViewing ?
ob.polyT('orderDetail.summaryTab.disputeAcceptance.orderCompleteWhenYouReview') :
ob.polyT('orderDetail.summaryTab.disputeAcceptance.orderCompleteWhenBuyerReviews');
}
%>
<%= introLine %>
<%= subText %>