File: /var/www/html/wp-content/plugins/jet-engine/assets/js/admin/dashboard/tab-manager.bundle.js
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);var i={};n.r(i),n.d(i,"title",(function(){return m})),n.d(i,"component",(function(){return h}));var r={};n.r(r),n.d(r,"title",(function(){return j})),n.d(r,"component",(function(){return S}));var a={};n.r(a),n.d(a,"title",(function(){return A})),n.d(a,"component",(function(){return E}));var o={};n.r(o),n.d(o,"title",(function(){return q})),n.d(o,"component",(function(){return D}));var l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("br"),e._v(" "),n("div",{staticClass:"cx-vui-subtitle"},[e._v("\n\t\t"+e._s("Forms Settings")+"\n\t")]),e._v(" "),e._l(e.tabs,(function(t,i){return n("CxVuiCollapseMini",{key:t.component.name,attrs:{desc:t.desc||"",label:t.title}},[n("keep-alive",[n(t.component,{ref:"tabComponents",refInFor:!0,tag:"component",attrs:{incoming:e.getIncoming(t.component.name)}})],1),e._v(" "),n("cx-vui-button",{attrs:{"button-style":"accent",loading:e.loadingTab},on:{click:function(n){return e.onSaveTab(i,t.component.name)}}},[n("span",{attrs:{slot:"label"},slot:"label"},[e._v("Save")])])],1)}))],2)};l._withStripped=!0;var s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"cx-vui-collapse-mini__item":!0,"cx-vui-collapse-mini__item--active":e.isActive}},[n("div",{staticClass:"cx-vui-collapse-mini__header",on:{click:e.collapse}},[n("div",{staticClass:"cx-vui-collapse-mini__header-label"},[n("svg",{attrs:{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M14 13.9999L14 -0.00012207L0 -0.000121458L6.11959e-07 13.9999L14 13.9999Z",fill:"white"}}),e._v(" "),n("path",{attrs:{d:"M5.32911 1L11 7L5.32911 13L4 11.5938L8.34177 7L4 2.40625L5.32911 1Z",fill:"#007CBA"}})]),e._v("\n\t\t\t"+e._s(e.label)+"\n\t\t")]),e._v(" "),e.desc?n("div",{staticClass:"cx-vui-collapse-mini__header-desc"},[e._v("\n\t\t\t"+e._s(e.desc)+"\n\t\t")]):e._e()]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"cx-vui-collapse-mini__content"},[e._t("default",(function(){return[e._v("Collapse content...")]}))],2)])};function c(e,t,n,i,r,a,o,l){var s,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=s):r&&(s=l?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),s)if(c.functional){c._injectStyles=s;var p=c.render;c.render=function(e,t){return s.call(t),p(e,t)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,s):[s]}return{exports:e,options:c}}s._withStripped=!0;var p=c({name:"cx-vui-collapse-mini",props:{initialActive:{type:Boolean,default:!1},label:{type:String,default:"Collapse Mini"},desc:{type:String,default:""}},data:function(){return{isActive:!1}},created:function(){this.isActive=this.initialActive},methods:{collapse:function(){this.isActive=!this.isActive}}},s,[],!1,null,null,null).exports,u=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("cx-vui-input",{attrs:{label:e.label.key,"wrapper-css":["equalwidth"],size:"fullwidth"},model:{value:e.key,callback:function(t){e.key=t},expression:"key"}}),e._v(" "),n("cx-vui-input",{attrs:{label:e.label.secret,"wrapper-css":["equalwidth"],size:"fullwidth"},model:{value:e.secret,callback:function(t){e.secret=t},expression:"secret"}}),e._v(" "),n("p",[e._v(e._s(e.help.apiPref)+" "),n("a",{attrs:{href:e.help.apiLink,target:"_blank"}},[e._v(e._s(e.help.apiLinkLabel))])])],1)};u._withStripped=!0;var f=wp.i18n.__,d={key:f("Site Key","jet-form-builder"),secret:f("Secret Key","jet-form-builder")},_={apiPref:f("Register reCAPTCHA v3 keys"),apiLinkLabel:f("here"),apiLink:"https://www.google.com/recaptcha/admin/create"},v=c({name:"captcha",props:{incoming:{type:Object,default:function(){return{}}}},data:function(){return{label:d,help:_,key:"",secret:""}},created:function(){this.key=this.incoming.key||"",this.secret=this.incoming.secret||""},methods:{getRequestOnSave:function(){return{data:{secret:this.secret,key:this.key}}}}},u,[],!1,null,null,null).exports,m=(0,wp.i18n.__)("Captcha Settings","jet-form-builder"),h=v,b=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("cx-vui-input",{attrs:{label:e.label.api_key,"wrapper-css":["equalwidth"],size:"fullwidth"},model:{value:e.api_key,callback:function(t){e.api_key=t},expression:"api_key"}}),e._v(" "),n("cx-vui-input",{attrs:{label:e.label.api_url,"wrapper-css":["equalwidth"],size:"fullwidth"},model:{value:e.api_url,callback:function(t){e.api_url=t},expression:"api_url"}}),e._v(" "),n("p",{staticClass:"fb-description"},[e._v(e._s(e.help.apiPref)+" "),n("a",{attrs:{href:e.help.apiLink,target:"_blank"}},[e._v(e._s(e.help.apiLinkLabel))])])],1)};b._withStripped=!0;var y=wp.i18n.__,g={api_key:y("API Key","jet-form-builder"),api_url:y("API URL","jet-form-builder")},k={apiPref:y("How to obtain your ActiveCampaign API URL and Key? More info"),apiLinkLabel:y("here"),apiLink:"https://help.activecampaign.com/hc/en-us/articles/207317590-Getting-started-with-the-API"},w=c({name:"active-campaign",props:{incoming:{type:Object,default:{}}},data:function(){return{label:g,help:k,api_key:"",api_url:""}},created:function(){this.api_key=this.incoming.api_key||"",this.api_url=this.incoming.api_url||""},methods:{getRequestOnSave:function(){return{data:{api_key:this.api_key,api_url:this.api_url}}}}},b,[],!1,null,null,null).exports,j=(0,wp.i18n.__)("ActiveCampaign API","jet-form-builder"),S=w,x=function(){var e=this,t=e.$createElement;return(e._self._c||t)("cx-vui-input",{attrs:{label:e.label.api_key,"wrapper-css":["equalwidth"],description:e.help.apiPref+' <a href="'+e.help.apiLink+'" target="_blank">'+e.help.apiLinkLabel+"</a>",size:"fullwidth"},model:{value:e.api_key,callback:function(t){e.api_key=t},expression:"api_key"}})};x._withStripped=!0;var O=wp.i18n.__,C={api_key:O("API Key","jet-form-builder")},P={apiPref:O("How to obtain your MailChimp API Key? More info"),apiLinkLabel:O("here"),apiLink:"https://mailchimp.com/help/about-api-keys/"},L=c({name:"mailchimp",props:{incoming:{type:Object,default:{}}},data:function(){return{label:C,help:P,api_key:""}},created:function(){this.api_key=this.incoming.api_key||""},methods:{getRequestOnSave:function(){return{data:{api_key:this.api_key}}}}},x,[],!1,null,null,null).exports,A=(0,wp.i18n.__)("MailChimp API","jet-form-builder"),E=L,T=function(){var e=this,t=e.$createElement;return(e._self._c||t)("cx-vui-input",{attrs:{label:e.label.api_key,"wrapper-css":["equalwidth"],description:e.help.apiPref+' <a href="'+e.help.apiLink+'" target="_blank">'+e.help.apiLinkLabel+"</a>",size:"fullwidth"},model:{value:e.api_key,callback:function(t){e.api_key=t},expression:"api_key"}})};T._withStripped=!0;var $=wp.i18n.__,I={api_key:$("API Key","jet-form-builder")},R={apiPref:$("How to obtain your GetResponse API Key? More info"),apiLinkLabel:$("here"),apiLink:"https://app.getresponse.com/api"},M=c({name:"get-response",props:{incoming:{type:Object,default:{}}},data:function(){return{label:I,help:R,api_key:""}},created:function(){this.api_key=this.incoming.api_key||""},methods:{getRequestOnSave:function(){return{data:{api_key:this.api_key}}}}},T,[],!1,null,null,null).exports,q=(0,wp.i18n.__)("GetResponse API","jet-form-builder"),D=M;function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==X(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==X(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===X(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X(e){return(X="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)}var z=(0,wp.hooks.applyFilters)("jet.engine.formTabs.register",[i,r,a,o]),V=c({name:"forms",components:{CxVuiCollapseMini:p},data:function(){return{tabs:z,loadingTab:!1}},methods:{onSaveTab:function(e,t){var n=this.$refs.tabComponents[e],i=this,r={};try{r=this.getAjaxObject(n,t)}catch(e){if(!e)return;return"object"===X(e.noticeOptions)?void i.$CXNotice.add(K({message:"Invalid request data.",type:"error",duration:2e3},e.noticeOptions)):void i.$CXNotice.add({message:e,type:"error",duration:2e3})}i.loadingTab=!0,jQuery.ajax(r).done((function(e){"function"==typeof n.onSaveDone?n.onSaveDone(e):e.success?i.$CXNotice.add({message:e.data.message,type:"success",duration:5e3}):i.$CXNotice.add({message:e.data.message,type:"error",duration:1e4}),i.loadingTab=!1})).fail((function(e,t,r){"function"==typeof n.onSaveFail?n.onSaveFail(e,t,r):i.$CXNotice.add({message:r,type:"error",duration:1e4}),i.loadingTab=!1}))},getIncoming:function(e){return window.JetEngineDashboardConfig._config__forms&&window.JetEngineDashboardConfig._config__forms[e]?window.JetEngineDashboardConfig._config__forms[e]:{}},getAjaxObject:function(e,t){var n=K(K({},{url:window.ajaxurl,type:"POST",dataType:"json"}),e.getRequestOnSave());return n.data=K({action:"jet_engine_forms_save_tab__".concat(t),_nonce:window.JetEngineDashboardConfig._nonce},n.data),n}}},l,[],!1,null,null,null).exports;(0,wp.hooks.applyFilters)("jet.engine.tabs.register",[V]).forEach((function(e){Vue.component("jet-engine-tab-".concat(e.name),e)}))}]);
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFiLW1hbmFnZXIuYnVuZGxlLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vL3RhYi1tYW5hZ2VyLmJ1bmRsZS5qcyJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=