PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 3.3.1
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v3.3.1
3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 All 138 releases
bit-form / assets / bf-220-150.js

bf-220-150.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder 3.3.1, at assets/bf-220-150.js

2 lines 3.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 var L=Object.defineProperty;var k=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var z=(i,t,s)=>t in i?L(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s,f=(i,t)=>{for(var s in t||(t={}))T.call(t,s)&&z(i,s,t[s]);if(k)for(var s of k(t))F.call(t,s)&&z(i,s,t[s]);return i};import{u as M,$ as _,F as R,r,j as e,_ as a,C as w,g as P,a as U,S as $}from"./main-762.js";/* empty css */import{t as I}from"./bf-281-48.js";import{T as D}from"./bf-525-114.js";import{A as G}from"./bf-704-110.js";import{d as O,s as V}from"./bf-802-105.js";import"./bf-142-115.js";import"./bf-145-47.js";import"./bf-685-46.js";import"./bf-213-54.js";import"./bf-249-69.js";function B({formID:i,sheetConf:t,setSheetConf:s,step:c,setstep:v,isLoading:m,setisLoading:o,setSnackbar:d,redirectLocation:p,isInfo:l,allIntegURL:A,authorizedAction:n}){const h=M(_);R();const{siteURL:u,oAuthRedirectURL:x}=h,[j,E]=r.useState(!1),[C,N]=r.useState({dataCenter:"",clientId:"",clientSecret:""}),g=b=>{const S=f({},t),y=f({},C);y[b.target.name]="",S[b.target.name]=b.target.value,N(y),s(S)};return r.useEffect(()=>{j&&n()},[j]),e.jsxs(e.Fragment,{children:[e.jsx(D,{title:I.mailChimp.title,youTubeLink:I.mailChimp.link}),e.jsxs("div",{className:"btcd-stp-page",style:{width:900,height:"100%"},children:[e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:a("Authorize App Name:")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:g,name:"name",value:t.name,type:"text",placeholder:a("Authorize App Name..."),disabled:l}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:a("Homepage URL:")})}),e.jsx(w,{value:u,className:"field-key-cpy w-6 ml-0",readOnly:l}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:a("Authorized Redirect URIs:")})}),e.jsx(w,{value:p||`${x}`,className:"field-key-cpy w-6 ml-0",readOnly:l}),e.jsxs("small",{className:"d-blk mt-5",children:[a("To get Client ID and SECRET , Please Visit")," ",e.jsx("a",{className:"btcd-link",href:"https://us7.admin.mailchimp.com/account/oauth2/",target:"_blank",rel:"noreferrer",children:a("Mail Chimp API Console")})]}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:a("Client id:")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:g,name:"clientId",value:t.clientId,type:"text",placeholder:a("Client id..."),disabled:l}),e.jsx("div",{style:{color:"red",fontSize:"15px"},children:C.clientId}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:a("Client secret:")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:g,name:"clientSecret",value:t.clientSecret,type:"text",placeholder:a("Client secret..."),disabled:l}),e.jsx("div",{style:{color:"red",fontSize:"15px"},children:C.clientSecret}),!l&&e.jsxs(e.Fragment,{children:[e.jsx(G,{isAuthorized:j,isLoading:m,handleAuthorize:()=>O("mailChimp","mChimp",t,s,N,E,o,d)}),e.jsx("br",{})]})]})]})}function ae({formFields:i,setIntegration:t,integrations:s,allIntegURL:c}){const v=R(),{formID:m}=P(),[o,d]=r.useState(!1),[p,l]=r.useState(1),[A,n]=r.useState({show:!1});U();const[h,u]=r.useState({name:"Mail Chimp API",type:"Mail Chimp",clientId:"",clientSecret:"",listId:"",listName:"",tags:"",field_map:[{formField:"",mailChimpField:""}],address_field:[],actions:{}}),x=()=>{setTimeout(()=>{v(c)},1e3)};return r.useEffect(()=>{window.opener&&V("mailChimp")},[]),e.jsxs("div",{children:[e.jsx($,{snack:A,setSnackbar:n}),e.jsx(B,{formID:m,sheetConf:h,setSheetConf:u,step:p,setstep:l,isLoading:o,setisLoading:d,setSnackbar:n,allIntegURL:c,authorizedAction:x})]})}export{ae as default};
2