import{r as s,aH as x,v as h,t as y,j as t,S as k}from"./main-248.js";/* empty css */import{t as i}from"./bf-905-196.js";import{S as j,T as v,W as b}from"./bf-316-135.js";import{b as f}from"./bf-289-72.js";import"./bf-90-77.js";import"./bf-852-73.js";const S=s.lazy(()=>x(()=>import("./bf-418-200.js"),["./bf-418-200.js","./main-248.js","./main-248.css","./bf-912-127.js","./bf-254-69.js","./bf-852-73.js","./bf-501-413.css","./bf-157-412.css","./bf-367-126.js","./bf-773-418.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(v,{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(S,{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(b,{step:e,saveConfig:()=>f(l,n,p,o,c)})})]})}export{L as default};