import{D as k,g as _,u as h,a as q,r as e,j as a,S,$ as A}from"./main-634.js";import"./bf-25-81.js";import F from"./bf-402-124.js";import"./bf-746-82.js";import"./bf-275-83.js";import"./bf-822-108.js";import"./bf-935-178.js";function v({formFields:G,setIntegration:x,integrations:C,allIntegURL:t}){const r=k(),{formID:o}=_(),i=h(A);q();const[l,d]=e.useState(!1),[n,u]=e.useState(1),[m,s]=e.useState({show:!1}),c=[{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}],f=[{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}],g=[{key:"1",label:"Create Contact"},{key:"2",label:"Add tag to user"}],[p,y]=e.useState({name:"Groundhogg",type:"Groundhogg",token:"",public_key:"",secret_key:"cf9a0967829abed1d465b1a407d7f45a",id:"",mainAction:"",addTagToUser:"",emailAddress:"",domainName:i.siteURL,showMeta:!1,field_map:[{formField:"",GroundhoggMapField:""}],field_map_meta:[{formField:"",GroundhoggMetaMapField:""}],contactsFields:c,contactMetaFields:f,allActions:g,address_field:[],actions:{}}),b=()=>{setTimeout(()=>{r(t)},1e3)};return a.jsxs("div",{children:[a.jsx(S,{snack:m,setSnackbar:s}),a.jsx(F,{formID:o,groundhoggConf:p,setGroundhoggConf:y,step:n,setstep:u,isLoading:l,setIsLoading:d,setSnackbar:s,authorizedAction:b})]})}export{v as default};
