(window.webpackJsonp=window.webpackJsonp||[]).push([[78],{1132:function(e,t,a){"use strict";a.r(t);var n=a(0),c=a(2),i=a(262),l=a(260),r=a(796),o=a(68),s=a(5),b=a(8),m=a(259);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.Y)()).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.yb)()&&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}))}}}]);