Files
roi-theme/wp-content/plugins/wp-marketing-automations/admin/frontend/dist/78.ed7cc56e47dbcaf70b21.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
17 KiB
JavaScript
Executable File

(window.webpackJsonp=window.webpackJsonp||[]).push([[78],{1452:function(e,t,n){"use strict";n.r(t);var r=n(0),a=n(1109),o=n(70),i=n(3),c=n(1),u=n(334),s=n(55),l=n(5),f=n(8),m=n(26),d=n(2),b=n(201),p=n(12),h=n(9),g=n.n(h),y=n(11);function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(){v=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),c=new P(r||[]);return a(i,"_invoke",{value:L(e,n,c)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var m="suspendedStart",d="executing",b="completed",p={};function h(){}function g(){}function y(){}var j={};s(j,i,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(A([])));_&&_!==n&&r.call(_,i)&&(j=_);var E=y.prototype=h.prototype=Object.create(j);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,c){var u=f(e[a],e,o);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==O(l)&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,i,c)}),(function(e){n("throw",e,i,c)})):t.resolve(l).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function L(t,n,r){var a=m;return function(o,i){if(a===d)throw Error("Generator is already running");if(a===b){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var u=S(c,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===m)throw a=b,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=d;var s=f(t,n,r);if("normal"===s.type){if(a=r.done?b:"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=b,r.method="throw",r.arg=s.arg)}}}function S(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=f(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(O(t)+" is not iterable")}return g.prototype=y,a(E,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:g,configurable:!0}),g.displayName=s(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,u,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},k(x.prototype),s(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(l(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(E),s(E,u,"Generator"),s(E,i,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=A,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return c.type="throw",c.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("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 a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;N(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=O(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=O(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==O(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t,n,r,a,o,i){try{var c=e[o](i),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,a)}var k=function(e){var t=Object(p.i)(),n=e.filter,a=e.config,o=e.audienceDetail,u=e.modalData,s=e.setModal,l=e.setOpen,m=e.reloadList,b=e.title,h=void 0===b?"":b,O=e.desc,j=e.setError,_=e.setOpenProModal,k=Object(r.useContext)(i.h),x=function(){var e,r=(e=v().mark((function e(){var r,f;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(i.ac)()){e.next=3;break}return _(!0),e.abrupt("return");case 3:if(j(!1),""!==h){e.next=7;break}return j(Object(c.__)("Name is required","wp-marketing-automations")),e.abrupt("return");case 7:if(r=Object(p.j)(n,t,a.filters),!Object(d.isEmpty)(r)){e.next=12;break}j(Object(c.__)("Please fill the filter","wp-marketing-automations")),e.next=23;break;case 12:return s({loading:!0}),f=o?Object(i.A)("/audience/".concat(o.ID)):Object(i.A)("/audience"),e.prev=14,e.next=17,g()({path:f,method:"POST",data:{name:h,data:{desc:O||"",filters:r}}}).then((function(e){if(200!==e.code)throw Error(Object(i.u)(null==e?void 0:e.message));Object(i.W)()||(bwfcrm_contacts_data.first_audience_id=1),k(e.message),Object(i.Lb)(k,3e3),m(),s({loading:!1,success:!1,error:!1,message:""}),l(!1)})).catch((function(e){throw Error(Object(i.u)(null==e?void 0:e.message))}));case 17:e.next=23;break;case 19:e.prev=19,e.t0=e.catch(14),j(e.t0.message),s(w(w({},u),{},{loading:!1}));case 23:case"end":return e.stop()}}),e,null,[[14,19]])})),function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){E(o,r,a,i,c,"next",e)}function c(e){E(o,r,a,i,c,"throw",e)}i(void 0)}))});return function(){return r.apply(this,arguments)}}();return Object(r.createElement)(y.a,{isPrimary:!0,onClick:function(){return x()},disabled:u.loading,isBusy:u.loading},Object(r.createElement)("span",{className:"bwf-display-flex"},!Object(i.ac)()&&Object(r.createElement)(f.a,{icon:"king",size:16,color:"#fff"}),o?Object(c.__)("Save","wp-marketing-automations"):Object(c.__)("Add","wp-marketing-automations")))},x=n(1086),L=n(1170),S=n(1171),C=n(346),N=n(40);function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(e){s=!0,a=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(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)?A(e,t):void 0}}(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 A(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}t.default=function(){Object(i.m)(Object(c.__)("Audiences","wp-marketing-automations"));var e=Object(x.a)(!1,!0),t=Object(p.i)(),n=P(Object(r.useState)(!1),2),h=n[0],g=n[1],y=P(Object(r.useState)({loading:!1,status:!1}),2),O=y[0],v=y[1],j=P(Object(r.useState)({loading:!1,error:!1,success:!1,message:""}),2),w=j[0],_=j[1],E=P(Object(r.useState)(!1),2),A=E[0],D=E[1],T=Object(L.a)().fetch,M=Object(S.a)(),F=M.getOffset,G=(0,M.getPerPageCount)(),I=F(),B=t.s,q=function(){Object(i.ac)()&&(T(G,I,B||""),D(!1))},U=P(Object(r.useState)(!1),2),R=U[0],z=U[1],J=P(Object(r.useState)(""),2),Y=J[0],W=J[1],$=P(Object(r.useState)(!1),2),H=$[0],K=$[1],Q=P(Object(r.useState)(""),2),V=Q[0],X=Q[1],Z=P(Object(r.useState)(!1),2),ee=Z[0],te=Z[1],ne=[{type:"heading",data:{title:Object(c.__)("Create Audiences & Send Personalised Messaging","wp-marketing-automations"),desc:Object(c.__)("Get started Segment your contacts based on various filters and send them targeted campaigns","wp-marketing-automations")}},{type:"image-desc",data:[{img:Object(i.t)()+"audience/audience1.png",title:Object(c.__)("Create dynamic audiences","wp-marketing-automations"),desc:Object(c.__)("Pick from over 60+ conditions to create audiences that auto-update based on activity","wp-marketing-automations")},{img:Object(i.t)()+"audience/audience2.png",title:Object(c.__)("Send targeted campaigns","wp-marketing-automations"),desc:Object(c.__)("Use dynamic audiences and reach them with targeted campaigns","wp-marketing-automations")}]},{type:"buttons",data:{buttons:[{text:Object(c.__)("Create Audiences","wp-marketing-automations"),proCheck:!0,onClick:function(){Object(i.ac)()?(K(!0),W(""),z(!1),X("")):g(!0)}}]}},{type:"link-wth-text",data:{text:Object(c.__)("Curious about audiences?","wp-marketing-automations"),link:"https://funnelkit.com/docs/autonami-2/contacts/audiences/",linkText:Object(c.__)("Learn More","wp-marketing-automations")}}],re=Object(r.createElement)(l.Button,{isPrimary:!0,key:"add",className:"bwf-display-flex",onClick:function(){Object(i.ac)()?(K(!0),W(""),z(!1),X("")):g(!0)}},!Object(i.ac)()&&Object(r.createElement)(f.a,{icon:"king",size:"16",color:"#fff"}),Object(c.__)("Create Audience","wp-marketing-automations"));Object(C.a)("manage_audiences","",Object(c.__)("ALL AUDIENCE","wp-marketing-automations"),re);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(o.a,null),0!==i.p?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(a.b,{setModelData:v,setDescription:X,setTitle:W,setAudienceData:z,setOpen:K,setPreview:g,contactCountLoad:A,setContactCountLoad:D,menuButtons:re,pitchData:ne}),Object(r.createElement)(s.a,{deleteEntityName:O.deleteEntityName,confirmButtonText:O.buttonConfirm,cancelButtonText:O.buttonCancel,onConfirm:O.onConfirm,isLoading:O.loading,successMessage:O.success,errorMessage:O.error,onRequestClose:function(){return v({status:!1})},isOpen:O.status,modalTitle:Object(c.__)("Delete Audience","wp-marketing-automations"),isDelete:!0})):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"bwf-content-header-new"},Object(r.createElement)("div",{className:"bwf-content-header-left"},Object(r.createElement)("div",{className:"bwf-content-header-title"},Object(c.__)("Audiences","wp-marketing-automations")),!Object(i.ac)()&&i.e)),Object(r.createElement)(u.a,{data:ne})),!Object(i.ac)()&&Object(r.createElement)(N.b,{isOpen:h,onRequestClose:function(){return g(!1)},modalContent:{isFeature:!0,featureTitle:Object(c.__)("Audiences","wp-marketing-automations"),proLink:Object(i.fb)("upgrade",{utm_medium:"Audiences+Upgrade+Modal"}),image:Object(i.sb)("audience.png"),benefit:Object(c.__)("Unlock Audiences and other awesome features.","wp-marketing-automations")}}),H&&Object(r.createElement)(l.Modal,{shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,className:"bwf-admin-modal bwf-admin-modal-fullscreen bwf-audience-modal-update"},Object(r.createElement)("div",{className:"bwf-modal-header bwf-display-flex bwf-space-between"},Object(r.createElement)("div",{className:"bwf-modal-heading"},R?Object(c.__)("Edit Audience","wp-marketing-automations"):Object(c.__)("Add Audience","wp-marketing-automations")),Object(r.createElement)("span",{onClick:function(){return K(!1)},className:"bwf-modal-close bwf-cursor-pointer"},Object(r.createElement)(f.a,{icon:"close",color:"#353030"}))),Object(r.createElement)("div",{className:"bwf-audience-modal-content"},Object(r.createElement)("div",{className:"bwf-audience-content-wrap"},Object(r.createElement)("div",{className:"bwf_clear_30"}),ee&&Object(r.createElement)(m.a,{status:"error",onRemove:function(){return te(!1)}},ee),Object(r.createElement)(l.TextControl,{type:"text",value:Y,autoFocus:!0,placeholder:Object(c.__)("Enter Name","wp-marketing-automations"),label:Object(c.__)("Name","wp-marketing-automations"),onChange:function(e){W(e),Object(d.isEmpty)(e)?te(Object(c.__)("Name is required","wp-marketing-automations")):te(!1)},disabled:w&&w.loading}),Object(r.createElement)(l.TextareaControl,{placeholder:Object(c.__)("Enter description","wp-marketing-automations"),label:Object(c.__)("Description","wp-marketing-automations"),value:V,onChange:function(e){return X(e)},disabled:w&&w.loading}),Object(r.createElement)("div",{className:"bwf-normal-text bwf-n-b"},Object(c.__)("Filters","wp-marketing-automations")),Object(r.createElement)(b.a,{siteLocale:"en-US",currency:Object(i.qc)()?bwfcrm_contacts_data.currency:{},config:{title:Object(c.__)("Select Rules","wp-marketing-automations"),filters:e,enableGrouping:!0,hideAdvanceControl:!0,footerComponent:function(e){return Object(r.createElement)("div",{style:{marginBottom:"-24px"},className:"bwf-display-flex"},Object(r.createElement)(l.Button,{className:"bwf-cancel-btn",onClick:function(){return K(!1)}},Object(c.__)("Cancel","wp-marketing-automations")),Object(r.createElement)(k,{filter:e.data,config:e.config,audienceDetail:R,setModal:_,modalData:w,setOpen:K,title:Y,desc:V,error:ee,setError:te,reloadList:q,setOpenProModal:g}))}},disabled:w&&w.loading,path:"/manage/audience",query:R?R.data.filters:{}})))))}}}]);