import{j as t}from"./main.2.8.1.js";import{u as S,h as g,d as o}from"./react-router-dom.9mCuUg3q.js";import"./Note.BeM7sN-p.js";import{S as j}from"./SnackMsg.S8DrwLlT.js";import{S as k}from"./Steps.1hz7v9Vj.js";import{s as v}from"./Integrations.D2bgBas2.js";import b from"./WebHooksIntegration.B7pcODxw.js";import{W as w}from"./WebHooksStepTwo.CLsJIPcj.js";import{t as y}from"./tutorialLinks.kMkIDzcD.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";import"./BackIcn._kGL_vVw.js";function R({formFields:r,setFlow:n,flow:p,allIntegURL:m}){const c=S(),{formID:u}=g(),[s,d]=o.useState(1),[f,a]=o.useState({show:!1}),[l,h]=o.useState(!1),{antsAndApps:e}=y,[i,x]=o.useState({name:"Ants & Apps",type:"Ant Apps",method:"POST",url:"",apiConsole:"https://my.antsandapps.com/"});return t.jsxs("div",{children:[t.jsx(j,{snack:f,setSnackbar:a}),t.jsx("div",{className:"txt-center mt-2",children:t.jsx(k,{step:2,active:s})}),t.jsxs("div",{className:"btcd-stp-page",style:{width:s===1&&1100,height:s===1&&"auto"},children:[e==null?void 0:e.youTubeLink,e==null?void 0:e.docLink,t.jsx(b,{formID:u,formFields:r,webHooks:i,setWebHooks:x,step:s,setStep:d,setSnackbar:a,create:!0})]}),t.jsx("div",{className:"btcd-stp-page",style:{width:s===2&&900,height:s===2&&"auto"},children:t.jsx(w,{step:s,saveConfig:()=>v({flow:p,setFlow:n,allIntegURL:m,conf:i,navigate:c,setIsLoading:h,setSnackbar:a}),isLoading:l})})]})}export{R as default};
