import{D as p,r as e,j as a,S as b}from"./main-634.js";import"./bf-25-81.js";import k from"./bf-990-118.js";import"./bf-746-82.js";import"./bf-275-83.js";import"./bf-822-108.js";import"./bf-184-172.js";function v({formFields:y,setIntegration:q,integrations:c,allIntegURL:t}){const i=p(),[l,s]=e.useState(!1),[d,f]=e.useState(1),[o,r]=e.useState({show:!1}),n=[{key:"email",label:"Email",required:!0},{key:"firstname",label:"First name",required:!1},{key:"lastname",label:"Last name",required:!1},{key:"gender",label:"Gender",required:!1},{key:"title",label:"Title",required:!1},{key:"zip",label:"Zip",required:!1},{key:"birthdate",label:"Birthdate",required:!1},{key:"extra1",label:"Extra field 1",required:!1},{key:"extra2",label:"Extra field 2",required:!1},{key:"extra3",label:"Extra field 3",required:!1},{key:"extra4",label:"Extra field 4",required:!1},{key:"extra5",label:"Extra field 5",required:!1},{key:"extra6",label:"Extra field 6",required:!1},{key:"extra7",label:"Extra field 7",required:!1},{key:"extra8",label:"Extra field 8",required:!1},{key:"extra9",label:"Extra field 9",required:!1},{key:"extra10",label:"Extra field 10",required:!1}],[u,m]=e.useState({name:"Rapidmail",type:"Rapidmail",username:"",password:"",field_map:[{formField:"",rapidmailFormField:""}],recipientsFields:n,actions:{}}),x=()=>{setTimeout(()=>{i(t)},1e3)};return a.jsxs("div",{children:[a.jsx(b,{snack:o,setSnackbar:r}),a.jsx(k,{rapidmailConf:u,setRapidmailConf:m,step:d,setstep:f,isLoading:l,setIsLoading:s,setSnackbar:r,authorizedAction:x})]})}export{v as default};
