(window.webpackJsonp=window.webpackJsonp||[]).push([[73],{1122:function(e,t,a){"use strict";a.r(t);var n=a(0),c=a(2),i=a(254),l=a(252),r=a(786),o=a(65),s=a(5),b=a(8),m=a(251);t.default=function(){var e=r.a.getCampaignData(),t=r.a.getLoading(),a=e&&e.type?parseInt(e.type):1,u=Object(o.a)(Object(s.V)()).formatAmount;return Object(n.createElement)(i.a,null,(function(){if(t)return Object(n.createElement)(m.a,{numberOfItems:4,hideDelta:!0});var i=[Object(n.createElement)(l.a,{key:1,value:e.sent,label:Object(c.__)("Sent","wp-marketing-automations"),tileIcon:Object(n.createElement)("div",{className:"bwf-tile-icon-wrap"},Object(n.createElement)(b.a,{icon:"sent",size:30}))})];return 1===a&&i.push(Object(n.createElement)(l.a,{key:2,value:e.open_rate+" %",label:Object(c.__)("Open Rate","wp-marketing-automations"),tileIcon:Object(n.createElement)("div",{className:"bwf-tile-icon-wrap"},Object(n.createElement)(b.a,{icon:"open-in-popup",size:30}))})),i.push(Object(n.createElement)(l.a,{key:3,value:e.click_rate+" %",label:Object(c.__)("Click Rate","wp-marketing-automations"),tileIcon:Object(n.createElement)("div",{className:"bwf-tile-icon-wrap"},Object(n.createElement)(b.a,{icon:"cursor",size:30}))})),Object(s.ub)()&&i.push(Object(n.createElement)(l.a,{key:4,value:e.conversions?e.conversions:0,label:Object(c.__)("Conversion","wp-marketing-automations"),tileIcon:Object(n.createElement)("div",{className:"bwf-tile-icon-wrap"},Object(n.createElement)(b.a,{icon:"conversion",size:30}))}),Object(n.createElement)(l.a,{key:5,value:e.revenue?u(parseInt(e.revenue)):u(0),label:Object(c.__)("Revenue","wp-marketing-automations"),tileIcon:Object(n.createElement)("div",{className:"bwf-tile-icon-wrap"},Object(n.createElement)(b.a,{icon:"revenue",size:30}))})),i.push(Object(n.createElement)(l.a,{key:6,value:e.unsubs,label:Object(c.__)("Unsubscribe","wp-marketing-automations"),tileIcon:Object(n.createElement)("div",{className:"bwf-tile-icon-wrap"},Object(n.createElement)(b.a,{icon:"unsubscribe",size:30,color:"#0073aa"}))})),i}))}}}]);