import{r as s,F as x,D as h,g as y,j as t,S as k}from"./main-634.js";import"./bf-25-81.js";import{t as i}from"./bf-275-83.js";import{S as j}from"./bf-54-258.js";import{a5 as f,ae as v,a7 as S}from"./bf-746-82.js";import"./bf-822-108.js";const b=s.lazy(()=>x(()=>import("./bf-363-117.js"),["./bf-363-117.js","./main-634.js","./main-634.css","./bf-25-81.js","./bf-831-476.css"],import.meta.url));function L({formFields:r,setIntegration:n,integrations:l,allIntegURL:p}){const c=h(),{formID:m}=y(),[e,g]=s.useState(1),[d,a]=s.useState({show:!1}),[o,u]=s.useState({name:"Integrately WebHooks",type:"Integrately",method:"POST",url:"",apiConsole:"https://app.integrately.com/"});return t.jsxs("div",{children:[t.jsx(k,{snack:d,setSnackbar:a}),t.jsx("div",{className:"txt-center w-9 mt-2 cal-width",children:t.jsx(j,{step:2,active:e})}),t.jsx(f,{title:i.integrately.title,youTubeLink:i.integrately.link}),t.jsx("div",{className:"btcd-stp-page",style:{width:e===1&&900,height:e===1&&"100%"},children:t.jsx(b,{formID:m,formFields:r,webHooks:o,setWebHooks:u,step:e,setstep:g,setSnackbar:a,create:!0})}),t.jsx("div",{className:"btcd-stp-page",style:{width:e===2&&900,minHeight:e===2&&"900px"},children:t.jsx(v,{step:e,saveConfig:()=>S(l,n,p,o,c)})})]})}export{L as default};
