import{j as t}from"./main.2.8.1.js";import{u as v,h as j,d as e}from"./react-router-dom.9mCuUg3q.js";import"./Note.BeM7sN-p.js";import{S}from"./SnackMsg.S8DrwLlT.js";import{S as T}from"./Steps.1hz7v9Vj.js";import{g as k}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{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 q({formFields:m,setFlow:n,flow:p,allIntegURL:c}){const u=v(),{formID:d}=j(),[s,h]=e.useState(1),[l,a]=e.useState({show:!1}),[f,x]=e.useState(!1),{thriveAutomatorLinks:o}=y,[r,g]=e.useState({name:"ThriveAutomator Web Hooks",type:"ThriveAutomator",method:"POST",url:""});return t.jsxs("div",{children:[t.jsx(S,{snack:l,setSnackbar:a}),t.jsx("div",{className:"txt-center mt-2",children:t.jsx(T,{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:"Thrive Automator",youTubeLink:o==null?void 0:o.youTubeLink}),t.jsx(i,{title:"Thrive Automator",docLink:o==null?void 0:o.docLink}),t.jsx(b,{formID:d,formFields:m,webHooks:r,setWebHooks:g,step:s,setStep:h,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:()=>k(p,n,c,r,u,"","",x),isLoading:f})})]})}export{q as default};
