Files
roi-theme/wp-content/plugins/wp-marketing-automations/admin/frontend/dist/54.580360e592cd6ad831d2.js
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

1 line
20 KiB
JavaScript
Executable File

(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{1065:function(t,e,r){"use strict";var n=r(51),a=r(343),i=Object(n.a)(a.b.cartAnalytics).getStateProp,o=Object(n.a)(a.b.contactAnalytics).getStateProp,c=Object(n.a)(a.b.emailAnalytics).getStateProp,l=Object(n.a)(a.b.emailTable).getStateProp,u=Object(n.a)(a.b.engagementAnalytics).getStateProp,s=Object(n.a)(a.b.directEmailTable).getStateProp,f={getCartAnalytics:function(){return i("data")},getCartAnalyticsLoading:function(){return i("isLoading")},getContactAnalytics:function(){return o("data")},getContactAnalyticsLoading:function(){return o("isLoading")},getEmailAnalytics:function(){return c("data")},getEmailAnalyticsLoading:function(){return c("isLoading")},getEmailTableList:function(){return l("data")},getEmailTableTotal:function(){return l("total")},getEmailTableOffset:function(){return l("offset")},getEmailTableLimit:function(){return l("limit")},getEmailTableLoading:function(){return l("isLoading")},getEmailTablePage:function(){return parseInt(l("offset"))/parseInt(l("limit"))+1},getEngagementAnalytics:function(){return u("data")},getEngagementAnalyticsLoading:function(){return u("isLoading")},getDirectEmailTableList:function(){return s("data")},getDirectEmailTableTotal:function(){return s("total")},getDirectEmailTableOffset:function(){return s("offset")},getDirectEmailTableLimit:function(){return s("limit")},getDirectEmailTableLoading:function(){return s("isLoading")},getDirectEmailTablePage:function(){return parseInt(s("offset"))/parseInt(s("limit"))+1}};e.a=f},1092:function(t,e,r){"use strict";var n=r(50),a=r(3),i=r(343),o=r(17),c=function(t){var e=0;return"automation"===t?e=1:"broadcast"===t&&(e=2),e};e.a=function(){var t=Object(n.a)(i.b.cartAnalytics).fetch,e=Object(n.a)(i.b.contactAnalytics),r=e.fetch,l=e.setStateProp,u=Object(n.a)(i.b.emailAnalytics),s=u.fetch,f=u.setStateProp,m=Object(n.a)(i.b.emailTable),b=m.fetch,p=m.setStateProp,y=Object(n.a)(i.b.engagementAnalytics),h=y.fetch,g=y.setStateProp,d=Object(n.a)(i.b.directEmailTable),v=d.fetch,O=d.setStateProp;return{fetchCartAnalytics:function(e,r,n){t("GET",Object(a.A)("/analytics/carts/")+"?"+Object(o.stringify)({after:e,before:r,interval:n}))},fetchContactAnalytics:function(t,e,n){r("GET",Object(a.A)("/analytics/contacts/")+"?"+Object(o.stringify)({after:t,before:e,interval:n}))},fetchEmailAnalytics:function(t,e,r,n,i){var l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;s("GET",Object(a.A)("/analytics/emails/chart/")+"?"+Object(o.stringify)({after:t,before:e,interval:r,oid:n,type:c(i),mode:l}))},fetchEmailTable:function(t,e,r,n,i,l,u){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1;b("GET",Object(a.A)("/analytics/emails/tabular/")+"?"+Object(o.stringify)({after:r,before:n,interval:i,oid:l,type:c(u),limit:t,offset:e,mode:s}))},setEmailTableData:function(t,e){p(t,e)},fetchEngagementData:function(t,e){h("GET",Object(a.A)("/analytics/engagement")+"?"+Object(o.stringify)({after:t,before:e}))},setContactAnalyticsData:function(t,e){l(t,e)},setEmailAnalyticsData:function(t,e){f(t,e)},setEngagementData:function(t,e){g(t,e)},fetchDirectEmailTable:function(t,e,r,n,i){v("GET",Object(a.A)("/analytics/direct-emails/tabular/")+"?"+Object(o.stringify)({after:r,before:n,interval:i,limit:t,offset:e}))},setDirectEmailTableData:function(t,e){O(t,e)}}}},1093:function(t,e,r){"use strict";var n=r(76),a=r(0),i=r(1);e.a=function(t,e,r){var o=bwfcrm_contacts_data&&bwfcrm_contacts_data.header_data?bwfcrm_contacts_data.header_data:{},c=Object(n.a)(),l=c.setActiveMultiple,u=c.resetHeaderMenu,s=c.setL2NavType,f=c.setL2Nav,m=c.setBackLink,b=c.setL2Title,p=c.setPageHeader;return Object(a.useEffect)((function(){u(),!e&&s("menu"),!e&&f(o.reports_nav),l({leftNav:"analytics",rightNav:t+"-analytics"}),e&&m(e),r&&b(r),p(Object(i.__)("Analytics","wp-marketing-automations"))}),[t,r]),!0}},1101:function(t,e,r){"use strict";var n=r(0),a=r(1),i=r(9),o=r.n(i),c=r(3),l=r(337);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(){s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function m(t,e,r,n){var i=e&&e.prototype instanceof d?e:d,o=Object.create(i.prototype),c=new D(n||[]);return a(o,"_invoke",{value:S(t,r,c)}),o}function b(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=m;var p="suspendedStart",y="executing",h="completed",g={};function d(){}function v(){}function O(){}var j={};f(j,o,(function(){return this}));var w=Object.getPrototypeOf,E=w&&w(w(x([])));E&&E!==r&&n.call(E,o)&&(j=E);var L=O.prototype=d.prototype=Object.create(j);function _(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(a,i,o,c){var l=b(t[a],t,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==u(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,o,c)}),(function(t){r("throw",t,o,c)})):e.resolve(f).then((function(t){s.value=t,o(s)}),(function(t){return r("throw",t,o,c)}))}c(l.arg)}var i;a(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,a){r(t,n,e,a)}))}return i=i?i.then(a,a):a()}})}function S(e,r,n){var a=p;return function(i,o){if(a===y)throw Error("Generator is already running");if(a===h){if("throw"===i)throw o;return{value:t,done:!0}}for(n.method=i,n.arg=o;;){var c=n.delegate;if(c){var l=T(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=y;var u=b(e,r,n);if("normal"===u.type){if(a=n.done?h:"suspendedYield",u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=h,n.method="throw",n.arg=u.arg)}}}function T(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,T(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=b(a,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var o=i.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function x(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(u(e)+" is not iterable")}return v.prototype=O,a(L,"constructor",{value:O,configurable:!0}),a(O,"constructor",{value:v,configurable:!0}),v.displayName=f(O,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,f(t,l,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},_(A.prototype),f(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,a,i){void 0===i&&(i=Promise);var o=new A(m(t,r,n,a),i);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},_(L),f(L,l,"Generator"),f(L,o,(function(){return this})),f(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=x,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return c.type="throw",c.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],c=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;k(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:x(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function f(t,e,r,n,a,i,o){try{var c=t[i](o),l=c.value}catch(t){return void r(t)}c.done?e(l):Promise.resolve(l).then(n,a)}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,a,i,o,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,a=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(t,e):void 0}}(t,e)||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 b(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}e.a=function(t){var e=t.conversation,r=void 0===e?{}:e,i=r.ID,u=r.mode,b=r.type,p=t.onRequestClose,y=t.isOpen,h=t.contact,g=void 0===h?{}:h,d=m(Object(n.useState)({}),2),v=d[0],O=d[1],j=m(Object(n.useState)(!1),2),w=j[0],E=j[1],L=m(Object(n.useState)(""),2),_=L[0],A=L[1],S=function(){var t,e=(t=s().mark((function t(){var e;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i&&!(!parseInt(i)>0)){t.next=2;break}return t.abrupt("return");case 2:return E(!0),t.prev=3,t.next=6,o()({method:"GET",path:Object(c.A)("/v3/contacts/".concat(g.id,"/engagement/").concat(parseInt(i),"?mode=1"))});case 6:"result"in(e=t.sent)&&O(e.result),t.next=14;break;case 10:t.prev=10,t.t0=t.catch(3),console.log(t.t0),t.t0&&"message"in t.t0?A(t.t0.message):Object(a.__)("There are some technical difficulties while getting emails. Please contact support.","wp-marketing-automations");case 14:E(!1);case 15:case"end":return t.stop()}}),t,null,[[3,10]])})),function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function o(t){f(i,n,a,o,c,"next",t)}function c(t){f(i,n,a,o,c,"throw",t)}o(void 0)}))});return function(){return e.apply(this,arguments)}}();Object(n.useEffect)((function(){y&&S()}),[y]);return Object(n.createElement)(l.a,{isOpen:y,isLoading:w,onRequestClose:function(){p(),O({}),A("")},error:_,subject:![2,3].includes(parseInt(u))&&v?v.subject:"",body:v&&v.body?v.body:"",sourceType:b,mode:u,contact:t.contact,conversation:t.conversation,template:v})}},1490:function(t,e,r){"use strict";r.r(e);var n=r(0),a=r(1093),i=r(1),o=r(205),c=r(53),l=r(24),u=(r(555),r(12));function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach((function(e){b(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function b(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var p=function(t){var e=t.query;return Object(n.createElement)("div",{className:"bwf-crm-contacts-report-filter"},Object(n.createElement)(c.a,{className:"screen-reader-text"},Object(i.__)("Filters","wp-marketing-automations")),Object(n.createElement)(c.b,{component:"div",className:"bwf-filters"},Object(n.createElement)("div",{className:"bwfcrm-filters-basic-filters"},Object(n.createElement)(o.a,{key:JSON.stringify(e),onRangeSelect:function(t){var r=m(m({},e),t);delete r.compare,Object(u.l)(r,"/",{})},dateQuery:function(t){t.compare="previous_year";var e=Object(l.g)(t),r=e.period,n=e.compare,a=e.before,i=e.after,o=Object(l.e)(t);return{period:r,compare:n,before:a,after:i,primaryDate:o.primary,secondaryDate:o.secondary}}(e),isoDateFormat:l.j,hideCompare:!0}))))},y=(r(340),r(146)),h=r(33),g=r(335),d=r(3),v=r(8),O=r(5),j=r(1092),w=r(1065),E=r(2),L=r(1101);function _(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,a,i,o,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,a=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return A(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(t,e):void 0}}(t,e)||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 A(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var S=function(t){var e=t.query,r=e.period,a=e.compare,o=e.interval,c=e.after,u=e.before,s=e.id,f=e.filter,m=_(Object(n.useState)({}),2),b=m[0],p=m[1],A=_(Object(n.useState)(""),2),S=A[0],T=A[1],P=_(Object(n.useState)(!1),2),k=P[0],D=P[1],x=Object(j.a)(),N=x.fetchDirectEmailTable,I=x.setDirectEmailTableData,C=w.a.getDirectEmailTableList,G=w.a.getDirectEmailTableLimit,M=w.a.getDirectEmailTableLoading,Y=w.a.getDirectEmailTableOffset,F=w.a.getDirectEmailTablePage,q=w.a.getDirectEmailTableTotal,R=function(t){return t.compare="previous_year",Object(l.e)(t).primary};e.hasOwnProperty("period")||(e.period="month");var H=function(t,e){var r=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,a=R(t),i="",o="";a&&(Object(E.isEmpty)(a.after)||(i=a.after.format("YYYY-MM-DD HH:mm:ss")),Object(E.isEmpty)(a.before)||(o=a.before.format("YYYY-MM-DD 23:59:59")),Object(E.isEmpty)(i)||Object(E.isEmpty)(o)||N(r,n,i,o,e))};Object(n.useEffect)((function(){if(Object(d.ac)()){var t=e.hasOwnProperty("interval")?e.interval:"day";H(e,t,!0,z,Q)}}),[r,a,o,c,u,s,f]);var J,B=C(),U=M(),Q=Y(),$=q(),z=G(),K=F(),V=[{key:"contact",label:Object(i.__)("Contact","wp-marketing-automations"),isLeftAligned:!1},{key:"subject",label:Object(i.__)("Subject","wp-marketing-automations"),isLeftAligned:!1},{key:"sentby",label:Object(i.__)("Sent By","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-w-60"}],W=function(t){return Object(n.createElement)(h.a,{href:"admin.php?page=autonami&path=/contact/"+t.cid,type:"bwf-crm",className:"bwf-a-no-underline"},Object(n.createElement)(g.a,{contact:t,dateText:Object(i.__)("Sent","wp-marketing-automations"),date:t.date}))};return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(y.a,{headers:V,rows:(J=[],Object(E.isEmpty)(B)||(J=B.map((function(t){return[{display:W(t),value:""},{display:t.sub?t.sub:"-",value:t.sub},{display:t.author?(a=t.author,i="-",o="",a.hasOwnProperty("name")&&!Object(E.isEmpty)(a.name)&&(i=a.name[0].toUpperCase()+a.name.slice(1,a.name.length)),a.hasOwnProperty("contact")&&!Object(E.isEmpty)(a.contact)&&parseInt(a.contact)>0&&(o=a.contact),o?Object(n.createElement)(h.a,{href:"admin.php?page=autonami&path=/contact/"+o,type:"bwf-crm",className:"bwf-a-no-underline"},i):i):"-",value:t.sub},{display:t.o_interaction?(e=JSON.parse(t.o_interaction),r=e[e.length-1],Object(d.ib)(r)):"-",value:""},{display:parseInt(t.open)>0?parseInt(t.open):"-",value:parseInt(t.open)},{display:parseInt(t.click)>0?parseInt(t.click):"-",value:parseInt(t.click)},{display:Object(n.createElement)(O.Button,{className:"bwf-w-60 bwf-display-flex",onClick:function(){p({ID:t.track_id,mode:1,type:4}),T({id:parseInt(t.cid)}),D(!0)}},Object(n.createElement)(v.a,{icon:"view"})),value:""}];var e,r,a,i,o}))),J),query:{paged:K},totalRows:$,rowsPerPage:z,isLoading:U,showMenu:!1,onPageChange:function(t,r){var n=(t-1)*z;I("offset",n);var a=e.hasOwnProperty("interval")?e.interval:"day";H(e,a,!0,z,n)},onQueryChange:function(t){return"per_page"===t?function(t){if(t!==z){I("limit",t);var r=e.hasOwnProperty("interval")?e.interval:"day";H(e,r,!0,t,Q)}}:function(){return{}}},emptyMessage:Object(i.__)("No emails found","wp-marketing-automations")}),Object(n.createElement)(L.a,{onRequestClose:function(){return D(!1)},conversation:b,contact:S,isOpen:k}))},T=r(70);e.default=function(){Object(a.a)("direct-emails",!1,"");var t=Object(u.i)();return Object(n.useEffect)((function(){Object(d.m)(Object(i.__)("Direct Email Analytics","wp-marketing-automations"))}),[]),Object(n.createElement)(n.Fragment,null,Object(n.createElement)("div",{className:"bwf-content-header-new"},Object(n.createElement)("div",{className:"bwf-content-header-left"},Object(n.createElement)("div",{className:"bwf-content-header-title"},Object(i.__)("Direct Mails","wp-marketing-automations")))),Object(n.createElement)(T.a,null),Object(n.createElement)("div",{className:"bwf-crm-analytics-wrap bwf-crm-emails-report-wrap"},Object(n.createElement)(p,{query:t}),Object(n.createElement)("div",{className:"bwf_clear_10"}),Object(n.createElement)(S,{query:t})))}}}]);