import{j as t}from"./main.2.9.0.js";import{u as x,e as h,b as s}from"./react-router.DMwpH23k.js";import"./CopyIcn.CEA_lFLo.js";import{S}from"./SnackMsg.DYSD96P4.js";import{S as j}from"./Steps.BYe8zHkm.js";import{g as k}from"./Integrations.DL8wqGct.js";import y from"./WebHooksIntegration.CesI9y9U.js";import{W as b}from"./WebHooksStepTwo.C9DaqOtP.js";import{T as v}from"./TutorialLink.CFG7bS5c.js";import"./react-vendor.P7K3d6op.js";import"./Note.NSUdvR3c.js";import"./Table.BfF8RYFZ.js";import"./index.DpWdl9V1.js";import"./BackIcn._8Wofmn2.js";function R({formFields:o,setFlow:n,flow:m,allIntegURL:p}){const c=x(),{formID:l}=h(),[e,g]=s.useState(1),[d,r]=s.useState({show:!1}),[f,u]=s.useState(!1),[a,i]=s.useState({name:"Integrately Web Hooks",type:"Integrately",method:"POST",url:"",apiConsole:"https://app.integrately.com/"});return t.jsxs("div",{children:[t.jsx(S,{snack:d,setSnackbar:r}),t.jsx("div",{className:"txt-center mt-2",children:t.jsx(j,{step:2,active:e})}),t.jsxs("div",{className:"btcd-stp-page",style:{width:e===1&&1100,height:e===1&&"auto"},children:[t.jsx(v,{linkKey:"integratelyLinks"}),t.jsx(y,{formID:l,formFields:o,webHooks:a,setWebHooks:i,step:e,setStep:g,setSnackbar:r,create:!0})]}),t.jsx("div",{className:"btcd-stp-page",style:{width:e===2&&"100%",height:e===2&&"auto"},children:t.jsx(b,{step:e,saveConfig:()=>k(m,n,p,a,c,"","",u),isLoading:f,dataConf:a,setDataConf:i,formFields:o})})]})}export{R as default};
