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