import{u as j,k as b,r as o,j as e}from"./main-333.js";import{d as S,F as k}from"./bi.636.93.js";import{S as I}from"./bi.563.969.js";import v from"./bi.27.259.js";import{W as y}from"./bi.740.766.js";import{T as c,t as T}from"./bi.318.783.js";import"./bi.429.767.js";function E({formFields:r,setFlow:p,flow:u,allIntegURL:m}){const d=j(),{formID:l}=b(),[s,x]=o.useState(1),[f,n]=o.useState({show:!1}),[g,h]=o.useState(!1),{integratelyLinks:t}=T,[a,i]=o.useState({name:"Integrately Web Hooks",type:"Integrately",method:"POST",url:"",apiConsole:"https://app.integrately.com/"});return e.jsxs("div",{children:[e.jsx(S,{snack:f,setSnackbar:n}),e.jsx("div",{className:"txt-center mt-2",children:e.jsx(I,{step:2,active:s})}),e.jsxs("div",{className:"btcd-stp-page",style:{width:s===1&&1100,height:s===1&&"auto"},children:[(t==null?void 0:t.youTubeLink)&&e.jsx(c,{title:"Integrately",youTubeLink:t==null?void 0:t.youTubeLink}),(t==null?void 0:t.docLink)&&e.jsx(c,{title:"Integrately",docLink:t==null?void 0:t.docLink}),e.jsx(v,{formID:l,formFields:r,webHooks:a,setWebHooks:i,step:s,setStep:x,setSnackbar:n,create:!0})]}),e.jsx("div",{className:"btcd-stp-page",style:{width:s===2&&"100%",height:s===2&&"auto"},children:e.jsx(y,{step:s,saveConfig:()=>k(u,p,m,a,d,"","",h),isLoading:g,dataConf:a,setDataConf:i,formFields:r})})]})}export{E as default};
