(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{1156:function(e,t,a){"use strict";a.r(t);var c=a(0),s=a(2),l=a(798),i=a(76),b=a(5);t.default=function(e){e.contactId;var t=l.a.getContact(),a=(t||{}).affwp,m=(a=void 0===a?{}:a).affiliate_id,n=void 0===m?"-":m,r=a.affiliate_url,o=void 0===r?"-":r,d=a.payment_email,v=void 0===d?"-":d,f=a.status,w=void 0===f?"-":f,O=a.total_earnings,j=void 0===O?"-":O,E=a.total_referrals,N=void 0===E?"0":E,_=a.total_visits,p=void 0===_?"0":_,u=a.unpaid_earnings,g=void 0===u?"-":u,k=a.edit_link,h=void 0===k?"-":k,R=a.registration_date,A=void 0===R?"-":R,T=a.referral_rate,y=void 0===T?"-":T,D=a.promotion_methods,I=void 0===D?"-":D,J=a.affiliate_notes,P=void 0===J?"-":J;return Object(c.createElement)("div",{className:"bwf-c-s-collapsible"},Object(c.createElement)("div",{className:"bwf-c-s-heading"},Object(c.createElement)("div",{className:"bwf-accordion-label-elm"},Object(s.__)("Details","wp-marketing-automations"))),Object(c.createElement)("div",{className:"bwf-c-s-full bwf-c-s-allow-edit bwf-accordion"},Object(c.createElement)("div",{className:"bwf-c-s-list"},Object(c.createElement)("div",{className:"bwf-c-s-label"},Object(s.__)("Affiliate ID","wp-marketing-automations")),Object(c.createElement)("div",{className:"bwf-c-s-po-value"},"-"!==n?Object(c.createElement)("a",{target:"_blank",href:h},n):"-")),Object(c.createElement)("div",{className:"bwf-c-s-list"},Object(c.createElement)("div",{className:"bwf-c-s-label"},Object(s.__)("Affiliate URL","wp-marketing-automations")),Object(c.createElement)("div",{className:"bwf-c-s-po-value"},"-"!==o?Object(c.createElement)("a",{target:"_blank",href:o},o):"-")),Object(c.createElement)("div",{className:"bwf-c-s-list"},Object(c.createElement)("div",{className:"bwf-c-s-label"},Object(s.__)("Registered On","wp-marketing-automations")),Object(c.createElement)("div",{className:"bwf-c-s-po-value"},Object(b.O)(A))),Object(c.createElement)("div",{className:"bwf-c-s-list"},Object(c.createElement)("div",{className:"bwf-c-s-label"},Object(s.__)("Status","wp-marketing-automations")),Object(c.createElement)("div",{className:"bwf-c-s-po-value"},w)),Object(c.createElement)("div",{className:"bwf-c-s-list"},Object(c.createElement)("div",{className:"bwf-c-s-label"},Object(s.__)("Referral Rate","wp-marketing-automations")),Object(c.createElement)("div",{className:"bwf-c-s-po-value"},y)),Object(c.createElement)("div",{className:"bwf-c-s-list"},Object(c.createElement)("div",{className:"bwf-c-s-label"},Object(s.__)("Total Earnings","wp-marketing-automations")),Object(c.createElement)("div",{className:"bwf-c-s-po-value"},Object(i.decodeEntities)(j))),Object(c.createElement)("div",{className:"bwf-c-s-list"},Object(c.createElement)("div",{className:"bwf-c-s-label"},Object(s.__)("Unpaid Earnings","wp-marketing-automations")),Object(c.createElement)("div",{className:"bwf-c-s-po-value"},Object(i.decodeEntities)(g))),Object(c.createElement)("div",{className:"bwf-c-s-list"},Object(c.createElement)("div",{className:"bwf-c-s-label"},Object(s.__)("Total Referrals","wp-marketing-automations")),Object(c.createElement)("div",{className:"bwf-c-s-po-value"},N)),Object(c.createElement)("div",{className:"bwf-c-s-list"},Object(c.createElement)("div",{className:"bwf-c-s-label"},Object(s.__)("Total Visits","wp-marketing-automations")),Object(c.createElement)("div",{className:"bwf-c-s-po-value"},p)),Object(c.createElement)("div",{className:"bwf-c-s-list"},Object(c.createElement)("div",{className:"bwf-c-s-label"},Object(s.__)("Payment Email","wp-marketing-automations")),Object(c.createElement)("div",{className:"bwf-c-s-po-value"},"-"!==v?Object(c.createElement)("a",{target:"_blank",href:"mailto:"+v},v):"-")),Object(c.createElement)("div",{className:"bwf-c-s-list"},Object(c.createElement)("div",{className:"bwf-c-s-label"},Object(s.__)("Promotion Methods","wp-marketing-automations")),Object(c.createElement)("div",{className:"bwf-c-s-po-value"},I)),Object(c.createElement)("div",{className:"bwf-c-s-list"},Object(c.createElement)("div",{className:"bwf-c-s-label"},Object(s.__)("Affiliate Notes","wp-marketing-automations")),Object(c.createElement)("div",{className:"bwf-c-s-po-value"},P))))}}}]);