"use strict";(self.webpackChunkautonami=self.webpackChunkautonami||[]).push([[3827],{23827(e,t,n){n.r(t),n.d(t,{default:()=>m});var r=n(86087),a=n(27723),i=n(95731),o=n(28614),u=n(83583),s=n(80820);function c(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const m=function(){var e=i.A.getCampaignData(),t=i.A.getLoading(),n=e&&e.type?parseInt(e.type):1,l=(0,o.A)((0,u.r)()).formatAmount,m=[{key:"sent",title:(0,a.__)("Sent","wp-marketing-automations"),icon:"sent",value:e.sent}].concat(c(1===n?[{key:"openRate",title:(0,a.__)("Open Rate","wp-marketing-automations"),icon:"open-rate",value:e.open_rate+" %"}]:[]),[{key:"clickRate",title:(0,a.__)("Click Rate","wp-marketing-automations"),icon:"click-rate",value:e.click_rate+" %"}],c((0,u.Nj)()?[{key:"conversion",title:(0,a.__)("Conversion","wp-marketing-automations"),icon:"conversion-activity",value:e.conversions?e.conversions:0},{key:"revenue",title:(0,a.__)("Revenue","wp-marketing-automations"),icon:"revenue-new",value:e.revenue?l(parseInt(e.revenue)):l(0)}]:[]),[{key:"unsubscribe",title:(0,a.__)("Unsubscribe","wp-marketing-automations"),icon:"unsubscribes",value:e.unsubs}]);return(0,r.createElement)(s.A,{items:m,title:(0,a.__)("Overview","wp-marketing-automations"),isLoading:t,rowTileCount:4})}}}]);