import{G as d,g as v,r as t,j as a,S as l}from"./main-343.js";import"./bf-649-79.js";import C from"./bf-714-114.js";import"./bf-974-82.js";import"./bf-659-81.js";function _({formFields:A,setIntegration:x,integrations:S,allIntegURL:e}){const i=d(),{formID:o}=v(),[n,r]=t.useState(!1),[c,m]=t.useState(1),[p,s]=t.useState({show:!1}),[g,u]=t.useState({name:"Active Campaign API",type:"ActiveCampaign",api_url:"",api_key:"",field_map:[{formField:"",activeCampaignField:""}],actions:{}}),f=()=>{setTimeout(()=>{i(e)},1e3)};return a.jsxs("div",{children:[a.jsx(l,{snack:p,setSnackbar:s}),a.jsx(C,{formID:o,activeCampaingConf:g,setActiveCampaingConf:u,step:c,setstep:m,isLoading:n,setIsLoading:r,setSnackbar:s,allIntegURL:e,authorizedAction:f})]})}export{_ as default};
