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