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