# bit-form/3.3.1/assets/bf-220-150.js

Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator &amp; Custom Form Builder, version 3.3.1. 2 lines.

- Page: https://pluginprobe.com/plugins/bit-form/3.3.1/code/assets/bf-220-150.js
- Raw: https://pluginprobe.com/plugins/bit-form/3.3.1/raw/assets/bf-220-150.js
- Modified: 2026-09-16T12:36:52+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/bit-form/3.3.1/code/assets/bf-220-150.js#L10-L20`.

```javascript
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};

```
