- 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>
1 line
14 KiB
JavaScript
Executable File
1 line
14 KiB
JavaScript
Executable File
(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{1101:function(t,e,n){"use strict";var r=n(0),o=n(1),a=n(9),i=n.n(a),c=n(3),u=n(337);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 l(){l=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new I(r||[]);return o(i,"_invoke",{value:N(t,n,c)}),i}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var m="suspendedStart",y="executing",d="completed",b={};function g(){}function v(){}function w(){}var O={};f(O,i,(function(){return this}));var j=Object.getPrototypeOf,E=j&&j(j(A([])));E&&E!==n&&r.call(E,i)&&(O=E);var _=w.prototype=g.prototype=Object.create(O);function k(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function n(o,a,i,c){var u=p(t[o],t,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==s(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(f).then((function(t){l.value=t,i(l)}),(function(t){return n("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function N(e,n,r){var o=m;return function(a,i){if(o===y)throw Error("Generator is already running");if(o===d){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var u=x(c,r);if(u){if(u===b)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var s=p(e,n,r);if("normal"===s.type){if(o=r.done?d:"suspendedYield",s.arg===b)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=d,r.method="throw",r.arg=s.arg)}}}function x(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,x(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var a=p(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,b;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function S(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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(s(e)+" is not iterable")}return v.prototype=w,o(_,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:v,configurable:!0}),v.displayName=f(w,u,"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,w):(t.__proto__=w,f(t,u,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},k(L.prototype),f(L.prototype,c,(function(){return this})),e.AsyncIterator=L,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new L(h(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(_),f(_,u,"Generator"),f(_,i,(function(){return this})),f(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=A,I.prototype={constructor:I,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(P),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,b):this.complete(i)},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),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},e}function f(t,e,n,r,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],u=!0,s=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(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 p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}e.a=function(t){var e=t.conversation,n=void 0===e?{}:e,a=n.ID,s=n.mode,p=n.type,m=t.onRequestClose,y=t.isOpen,d=t.contact,b=void 0===d?{}:d,g=h(Object(r.useState)({}),2),v=g[0],w=g[1],O=h(Object(r.useState)(!1),2),j=O[0],E=O[1],_=h(Object(r.useState)(""),2),k=_[0],L=_[1],N=function(){var t,e=(t=l().mark((function t(){var e;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a&&!(!parseInt(a)>0)){t.next=2;break}return t.abrupt("return");case 2:return E(!0),t.prev=3,t.next=6,i()({method:"GET",path:Object(c.A)("/v3/contacts/".concat(b.id,"/engagement/").concat(parseInt(a),"?mode=1"))});case 6:"result"in(e=t.sent)&&w(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?L(t.t0.message):Object(o.__)("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,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){f(a,r,o,i,c,"next",t)}function c(t){f(a,r,o,i,c,"throw",t)}i(void 0)}))});return function(){return e.apply(this,arguments)}}();Object(r.useEffect)((function(){y&&N()}),[y]);return Object(r.createElement)(u.a,{isOpen:y,isLoading:j,onRequestClose:function(){m(),w({}),L("")},error:k,subject:![2,3].includes(parseInt(s))&&v?v.subject:"",body:v&&v.body?v.body:"",sourceType:p,mode:s,contact:t.contact,conversation:t.conversation,template:v})}},1459:function(t,e,n){"use strict";n.r(e);var r=n(0),o=n(179),a=n(77),i=n(146),c=n(1),u=n(3),s=n(5),l=n(1101),f=n(356),h=n(2),p=n(334),m=n(8);function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],u=!0,s=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(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 d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}e.default=function(t){var e=t.contactId,n=y(Object(r.useState)({}),2),d=n[0],b=n[1],g=y(Object(r.useState)(!1),2),v=g[0],w=g[1],O=y(Object(r.useState)({status:!1,contactInfo:{}}),2),j=O[0],E=O[1],_=a.a.getContact,k=a.a.getContactLoading,L=a.a.getPushNotifications,N=a.a.getPushNotificationTotal,x=a.a.getPushNotificationLimit,S=a.a.getPushNotificationOffset,P=a.a.getPushNotificationPage,I=a.a.getPushNotificationLoading,A=_(),C=k(),T=Object(o.a)().fetchPushNotifications,G=L(),F=S(),M=x(),q=I(),R=P(),D=N();Object(r.useEffect)((function(){T(e,0,M)}),[]);var Y=[{key:"notification_name",label:Object(c.__)("Notifications","wp-marketing-automations"),isLeftAligned:!0,required:!0,cellClassName:"bwf-word-break"},{key:"sent_on",label:Object(c.__)("Sent On","wp-marketing-automations"),isLeftAligned:!0,cellClassName:"bwf-word-break"},{key:"clicks",label:Object(c.__)("Clicks","wp-marketing-automations"),isLeftAligned:!0}],J=function(t){return Object(r.createElement)("a",{className:"bwf-a-no-underline bwf_bold",onClick:function(){b(t),w(!0)}},Object(r.createElement)("span",{className:"bwf-mr-5 bwf-limit-word-inside bwf-w-210"},t.message?t.message:"-"))},U=G&&G.length>0?G.map((function(t){return"ID"in t&&parseInt(t.ID)>0&&[{display:J(t),value:t.subject},{display:Object(u.ib)(t.created_at,!1),value:t.created_at},{display:t.click?t.click:0,value:t.click}]})):[],$=Object(r.createElement)(p.a,{data:[{type:"icon",data:{class:"bwf-pb-gap",content:Object(r.createElement)(m.a,{icon:"zero-sales"})}},{type:"content",data:{class:"bwf-heading4-new bwf-pb-10",content:Object(c.__)("This contact has not opted for notification yet.","wp-marketing-automations")}},{type:"content",data:{class:"bwf-heading5-new bwf-pb-gap",content:Object(c.__)("Your notification will appear in the list once contact has opted for notification","wp-marketing-automations")}}]});return Object(r.createElement)("div",{className:"bwf-cs-contact-tab-data"},C||!A||A.hasOwnProperty("push-engage-token")&&!Object(h.isNull)(A["push-engage-token"])&&A["push-engage-token"]?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"bwf-content-header-new"},Object(r.createElement)("div",{className:"bwf-content-header-left"},q||C?Object(r.createElement)("div",{className:"bwf-placeholder-temp bwf-w-150 bwf-h-15"}):Object(r.createElement)("div",{className:"bwf-normal-text"},parseInt(D)>0&&Object(c.sprintf)(Object(c.__)("All Notifications (%d)","wp-marketing-automations"),parseInt(D)))),Object(r.createElement)("div",{className:"bwf-content-header-right"},q||C?Object(r.createElement)("div",{className:"bwf-placeholder-temp bwf-w-60 bwf-h-30"}):Object(r.createElement)(s.Button,{className:"bwf-btn-small is-blue",isPrimary:!0,onClick:function(){E({status:!0,contactInfo:A})}},Object(c.__)("Send Notification","wp-marketing-automations")))),Object(r.createElement)("div",{className:"bwf-c-s-data"},Object(r.createElement)("div",{className:"bwf-c-s-section"},Object(r.createElement)(i.a,{className:"contact-single-table contact-emails",headers:Y,hideHeader:"yes",rows:U,query:{paged:R},totalRows:D,rowsPerPage:M,isLoading:q||C,showMenu:!1,onPageChange:function(t,n){T(e,(t-1)*M,M)},onQueryChange:function(t){return"per_page"===t?function(t){t!==M&&T(e,F,t)}:function(){return{}}},emptyMessage:Object(c.__)("No notification found","wp-marketing-automations")}),Object(r.createElement)(l.a,{onRequestClose:function(){return w(!1)},conversation:d,contact:A,isOpen:v}),j.status&&Object(r.createElement)(f.a,{contact:j.contactInfo,setSendMessageModel:E,onSuccess:function(){T(e,0,M)},messageType:"push-notification"})))):$)}}}]); |