import{j as t}from"./main.2.8.1.js";import{u as j,h as S,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 y}from"./Integrations.D2bgBas2.js";import I from"./WebHooksIntegration.B7pcODxw.js";import{W as v}from"./WebHooksStepTwo.CLsJIPcj.js";import{t as T}from"./tutorialLinks.kMkIDzcD.js";import{T as m}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:r,setFlow:p,flow:c,allIntegURL:l}){const u=j(),{formID:d}=S(),[e,g]=o.useState(1),[f,i]=o.useState({show:!1}),[x,h]=o.useState(!1),{integratelyLinks:s}=T,[a,n]=o.useState({name:"Integrately Web Hooks",type:"Integrately",method:"POST",url:"",apiConsole:"https://app.integrately.com/"});return t.jsxs("div",{children:[t.jsx(k,{snack:f,setSnackbar:i}),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(m,{title:"Integrately",youTubeLink:s==null?void 0:s.youTubeLink}),t.jsx(m,{title:"Integrately",docLink:s==null?void 0:s.docLink}),t.jsx(I,{formID:d,formFields:r,webHooks:a,setWebHooks:n,step:e,setStep:g,setSnackbar:i,create:!0})]}),t.jsx("div",{className:"btcd-stp-page",style:{width:e===2&&"100%",height:e===2&&"auto"},children:t.jsx(v,{step:e,saveConfig:()=>y(c,p,l,a,u,"","",h),isLoading:x,dataConf:a,setDataConf:n,formFields:r})})]})}export{A as default};
