import{G as p,r as e,j as a,S as b}from"./main-343.js";import"./bf-649-79.js";import k from"./bf-751-117.js";import"./bf-659-81.js";import"./bf-974-82.js";import"./bf-746-172.js";function j({formFields:y,setIntegration:q,integrations:c,allIntegURL:l}){const t=p(),[i,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(()=>{t(l)},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:i,setIsLoading:s,setSnackbar:r,authorizedAction:x})]})}export{j as default};
