import{j as t}from"./main.2.8.1.js";import{u as j,h as k,d as o}from"./react-router-dom.9mCuUg3q.js";import"./Note.BeM7sN-p.js";import{S}from"./SnackMsg.S8DrwLlT.js";import{S as b}from"./Steps.1hz7v9Vj.js";import{g as v}from"./Integrations.D2bgBas2.js";import{W}from"./WebHooksStepTwo.CLsJIPcj.js";import H from"./WebHooksIntegration.B7pcODxw.js";import{t as T}from"./tutorialLinks.kMkIDzcD.js";import{T as r}from"./TutorialLink.BAFX--T3.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";import"./BackIcn._kGL_vVw.js";function A({formFields:m,setFlow:n,flow:p,allIntegURL:c}){const u=j(),{formID:d}=k(),[s,l]=o.useState(1),[f,a]=o.useState({show:!1}),[x,g]=o.useState(!1),{webHooksLinks:e}=T,[i,h]=o.useState({name:"Web Hooks",type:"Web Hooks",method:"POST",url:""});return t.jsxs("div",{children:[t.jsx(S,{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&&900,height:s===1&&"auto"},children:[t.jsx(r,{title:"Web Hooks",youTubeLink:e==null?void 0:e.youTubeLink}),t.jsx(r,{title:"Web Hooks",docLink:e==null?void 0:e.docLink}),t.jsx(H,{formID:d,formFields:m,webHooks:i,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(W,{step:s,saveConfig:()=>v(p,n,c,i,u,"","",g),isLoading:x})})]})}export{A as default};
