File manager - Edit - /home/palg2351/public_html/wp-content/plugins/bit-integrations/assets/bi.539.372.js
Back
var F=Object.defineProperty;var j=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var I=(a,e,s)=>e in a?F(a,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[e]=s,S=(a,e)=>{for(var s in e||(e={}))w.call(e,s)&&I(a,s,e[s]);if(j)for(var s of j(e))E.call(e,s)&&I(a,s,e[s]);return a};import{u as T,r as n,j as i}from"./main-312.js";import{_ as l,V as d}from"./bi.245.0.js";import"./bi.106.452.js";import{S as L}from"./bi.513.13.js";import{S as R}from"./bi.689.1005.js";import{I as q,g as C}from"./bi.403.3.js";import M from"./bi.607.226.js";import{h as P,c as V}from"./bi.512.869.js";import{G as z}from"./bi.230.870.js";import"./bi.83.9.js";import"./bi.85.11.js";import"./bi.820.14.js";import"./bi.239.788.js";import"./bi.857.744.js";import"./bi.574.745.js";import"./bi.650.746.js";function at({formFields:a,setFlow:e,flow:s,allIntegURL:g}){const u=T(),[k,f]=n.useState(!1),[h,b]=n.useState({list:!1,field:!1,auth:!1,tags:!1,customFields:!1}),[o,x]=n.useState(1),[y,p]=n.useState({show:!1}),G=[{key:"email",label:l("Email","bit-integrations"),required:!0},{key:"name",label:l("Name","bit-integrations"),required:!1}],[t,r]=n.useState({name:"GetResponse",type:"GetResponse",auth_token:"",field_map:[{formField:"",getResponseFormField:""}],contactsFields:G,campaignId:"",getResponseFields:[],campaigns:[],tags:[],selectedTags:[],actions:{}}),N=()=>{f(!0),C(s,e,g,t,u,"","",f).then(m=>{var v;m.success?(d.success((v=m.data)==null?void 0:v.msg),u(g)):d.error(m.data||m)})},_=c=>{if(setTimeout(()=>{document.getElementById("btcd-settings-wrp").scrollTop=0},300),!V(t)){d.error(l("Please map mandatory fields","bit-integrations"));return}t.field_map.length>0&&x(c)};return i.jsxs("div",{children:[i.jsx(L,{snack:y,setSnackbar:p}),i.jsx("div",{className:"txt-center mt-2",children:i.jsx(R,{step:3,active:o})}),i.jsx(M,{getResponseConf:t,setGetResponseConf:r,step:o,setstep:x,loading:h,setLoading:b,setSnackbar:p}),i.jsxs("div",{className:"btcd-stp-page",style:S({},o===2&&{width:900,height:"auto",overflow:"visible"}),children:[i.jsx(z,{formFields:a,handleInput:c=>P(c,t,r),getResponseConf:t,setGetResponseConf:r,loading:h,setLoading:b,setSnackbar:p}),(t==null?void 0:t.campaignId)&&i.jsxs("button",{onClick:()=>_(3),disabled:!(t!=null&&t.campaignId),className:"btn f-right btcd-btn-lg purple sh-sm flx",type:"button",children:[l("Next","bit-integrations")," ",i.jsx("div",{className:"btcd-icn icn-arrow_back rev-icn d-in-b"})]})]}),(t==null?void 0:t.campaignId)&&i.jsx(q,{step:o,saveConfig:()=>N(),isLoading:k,dataConf:t,setDataConf:r,formFields:a})]})}export{at as default};
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.2 |
proxy
|
phpinfo
|
Settings