(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{1161:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a(248),i=a(2),l=a(5),o=a(4),c=a(92),s=a(265),u=a(53),m=a.n(u);function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var a=[],n=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(n=(l=o.next()).done)&&(a.push(l.value),!t||a.length!==t);n=!0);}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return d(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}t.default=function(){var e=b(Object(n.useState)(!1),2),t=e[0],a=e[1],u=b(Object(n.useState)(!1),2),d=u[0],p=u[1],f=[{key:"subject",label:Object(i.__)("Subject","wp-marketing-automations"),isLeftAligned:!1},{key:"sent_time",label:Object(i.__)("Sent On","wp-marketing-automations"),isLeftAligned:!0},{key:"last_activity",label:Object(i.__)("Last Activity","wp-marketing-automations"),isLeftAligned:!0},{key:"opens",label:Object(i.__)("Opens","wp-marketing-automations"),isLeftAligned:!0},{key:"clicks",label:Object(i.__)("Clicks","wp-marketing-automations"),isLeftAligned:!0},{key:"view",label:"",isLeftAligned:!0,cellClassName:"bwf-col-action"}],y=[[{display:"Test Subject",value:""},{display:Object(l.O)("2021-02-01 12:00:00"),value:""},{display:Object(l.O)("2021-02-05 00:00:00"),value:""},{display:1,value:""},{display:1,value:""},{display:Object(n.createElement)(o.Button,{icon:"visibility",onClick:function(e){e.preventDefault(),p(!0)}}),value:null}]],O=m()(),j={};return j[O.format("YYYY-MM-DD")+" 10:23:00"]="Opened",j[O.format("YYYY-MM-DD")+" 12:11:00"]="Clicked",Object(n.createElement)(n.Fragment,null,Object(n.createElement)("div",{className:"bwf_clear_10"}),Object(n.createElement)("div",{className:"bwf-c-s-data"},Object(n.createElement)("div",{className:"bwf-c-s-section"},Object(n.createElement)(r.a,{className:"contact-single-table contact-emails",headers:f,rows:y,query:{paged:1},totalRows:1,rowsPerPage:1,isLoading:!1,showMenu:!1,emptyMessage:Object(i.__)("No direct emails found","wp-marketing-automations")})),Object(n.createElement)(c.a,{isOpen:t,onRequestClose:function(){return a(!1)}}),Object(n.createElement)(s.a,{isOpen:d,isLoading:!1,onRequestClose:p,subject:"Dummy Subject",body:Object(n.createElement)("div",{dangerouslySetInnerHTML:{__html:"<p>Hi John,</p> <p> this is test mail.</p><p>thanks</p>"}}),sourceType:2,mode:1,contact:{},conversation:{c_status:"2",created_at:O.subtract(1,"days").format(),mode:"1",source:{type:"1",name:"FunnelKit Automations",updated_at:O.format()},updated_at:O.format()},template:{timeline:j}})))}}}]);