PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / V3.3.2
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder vV3.3.2
V3.3.2 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 All 139 releases
bit-form / assets / bf-800-156.js

bf-800-156.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder V3.3.2, at assets/bf-800-156.js

2 lines 3.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 var S=Object.defineProperty;var j=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var N=(s,a,t)=>a in s?S(s,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[a]=t,x=(s,a)=>{for(var t in a||(a={}))v.call(a,t)&&N(s,t,a[t]);if(j)for(var t of j(a))q.call(a,t)&&N(s,t,a[t]);return s};import{r as l,j as e,_ as r,F as w,g as F,u as z,$ as M,a as G,S as E}from"./main-96.js";/* empty css */import{A as P}from"./bf-490-110.js";import{b as C}from"./bf-100-160.js";import"./bf-331-47.js";import"./bf-781-46.js";import"./bf-798-54.js";import"./bf-425-69.js";function T({formID:s,groundhoggConf:a,setGroundhoggConf:t,step:f,setstep:g,isLoading:b,setIsLoading:h,setSnackbar:_,isInfo:i,authorizedAction:y}){const[d,k]=l.useState(!1),[n,m]=l.useState({token:"",public_key:"",domainName:""}),o=c=>{const u=x({},a),p=x({},n);p[c.target.name]="",u[c.target.name]=c.target.value,m(p),t(u)};return l.useEffect(()=>{d&&y()},[d]),e.jsxs("div",{className:"btcd-stp-page",style:{width:900,height:"auto"},children:[e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:r("Account Name:")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:o,name:"name",value:a.name,type:"text",placeholder:r("e.g. Marketing — work account"),disabled:i}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:r("Your Domain Name:")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:o,name:"domainName",value:a.domainName,type:"text",placeholder:r("e.g. Marketing — work account"),disabled:i}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:r("Public Key:")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:o,name:"public_key",value:a.public_key,type:"text",placeholder:r("Public Key..."),disabled:i}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:r("Token:")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:o,name:"token",value:a.token,type:"text",placeholder:r("Token..."),disabled:i}),e.jsx("div",{style:{color:"red",fontSize:"15px"},children:n.api_key}),e.jsx("div",{style:{color:"red",fontSize:"15px"},children:n.clientSecret}),!i&&e.jsxs(e.Fragment,{children:[e.jsx(P,{isAuthorized:d,isLoading:b,handleAuthorize:()=>C(a,t,m,k,h)}),e.jsx("br",{})]})]})}function V({formFields:s,setIntegration:a,integrations:t,allIntegURL:f}){const g=w(),{formID:b}=F(),h=z(M);G();const[_,i]=l.useState(!1),[y,d]=l.useState(1),[k,n]=l.useState({show:!1}),m=[{key:"email",label:"Email",required:!0},{key:"first_name",label:"First Name",required:!1},{key:"last_name",label:"Last Name",required:!1},{key:"user_id",label:"User Id",required:!1},{key:"owner_id",label:"Owner Id",required:!1},{key:"optin_status",label:"Optin Status",required:!1}],o=[{key:"primary_phone",label:"Primary Phone",required:!1},{key:"street_address_1",label:"Street Address 1",required:!1},{key:"street_address_2",label:"Street Address 2",required:!1},{key:"postal_zip",label:"Postal Zip",required:!1},{key:"city",label:"City",required:!1},{key:"country",label:"Country",required:!1}],c=[{key:"1",label:"Create Contact"},{key:"2",label:"Add tag to user"}],[u,p]=l.useState({name:"Groundhogg",type:"Groundhogg",token:"",public_key:"",secret_key:"cf9a0967829abed1d465b1a407d7f45a",id:"",mainAction:"",addTagToUser:"",emailAddress:"",domainName:h.siteURL,showMeta:!1,field_map:[{formField:"",GroundhoggMapField:""}],field_map_meta:[{formField:"",GroundhoggMetaMapField:""}],contactsFields:m,contactMetaFields:o,allActions:c,address_field:[],actions:{}}),A=()=>{setTimeout(()=>{g(f)},1e3)};return e.jsxs("div",{children:[e.jsx(E,{snack:k,setSnackbar:n}),e.jsx(T,{formID:b,groundhoggConf:u,setGroundhoggConf:p,step:y,setstep:d,isLoading:_,setIsLoading:i,setSnackbar:n,authorizedAction:A})]})}export{V as default};
2