import{j as t}from"./main.2.9.0.js";import{u as h,e as S,b as e}from"./react-router.DMwpH23k.js";import"./CopyIcn.CEA_lFLo.js";import{S as g}from"./SnackMsg.DYSD96P4.js";import{S as j}from"./Steps.BYe8zHkm.js";import{s as A}from"./Integrations.DL8wqGct.js";import k from"./WebHooksIntegration.CesI9y9U.js";import{W as v}from"./WebHooksStepTwo.C9DaqOtP.js";import{T as b}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 O({formFields:p,setFlow:i,flow:r,allIntegURL:n}){const m=h(),{formID:c}=S(),[s,d]=e.useState(1),[f,o]=e.useState({show:!1}),[l,u]=e.useState(!1),[a,x]=e.useState({name:"Ants & Apps",type:"Ant Apps",method:"POST",url:"",apiConsole:"https://my.antsandapps.com/"});return t.jsxs("div",{children:[t.jsx(g,{snack:f,setSnackbar:o}),t.jsx("div",{className:"txt-center mt-2",children:t.jsx(j,{step:2,active:s})}),t.jsxs("div",{className:"btcd-stp-page",style:{width:s===1&&1100,height:s===1&&"auto"},children:[t.jsx(b,{linkKey:"antsAndApps"}),t.jsx(k,{formID:c,formFields:p,webHooks:a,setWebHooks:x,step:s,setStep:d,setSnackbar:o,create:!0})]}),t.jsx("div",{className:"btcd-stp-page",style:{width:s===2&&900,height:s===2&&"auto"},children:t.jsx(v,{step:s,saveConfig:()=>A({flow:r,setFlow:i,allIntegURL:n,conf:a,navigate:m,setIsLoading:u,setSnackbar:o}),isLoading:l})})]})}export{O as default};
