| 1 |
import{r as s,G as x,F as k,g,j as t,S as j}from"./main-294.js";import"./bf-176-80.js";import{t as o}from"./bf-582-82.js";import{S as b}from"./bf-619-257.js";import{a5 as f,ae as v,a7 as S}from"./bf-813-81.js";import"./bf-158-107.js";const w=s.lazy(()=>x(()=>import("./bf-737-116.js"),["./bf-737-116.js","./main-294.js","./main-294.css","./bf-176-80.js","./bf-293-475.css"],import.meta.url));function I({formFields:r,setIntegration:p,integrations:n,allIntegURL:c}){const m=k(),{formID:l}=g(),[e,d]=s.useState(1),[u,a]=s.useState({show:!1}),[i,h]=s.useState({name:"Zapier Web Hooks",type:"Zapier",method:"POST",url:"",apiConsole:"https://zapier.com/app/dashboard"});return t.jsxs("div",{children:[t.jsx(j,{snack:u,setSnackbar:a}),t.jsx("div",{className:"txt-center w-9 mt-2 cal-width",children:t.jsx(b,{step:2,active:e})}),t.jsx(f,{title:o.zapier.title,youTubeLink:o.zapier.link}),t.jsx("div",{className:"btcd-stp-page",style:{width:e===1&&900,height:e===1&&"100%"},children:t.jsx(w,{formID:l,formFields:r,webHooks:i,setWebHooks:h,step:e,setstep:d,setSnackbar:a,create:!0})}),t.jsx("div",{className:"btcd-stp-page",style:{width:e===2&&900,minHeight:e===2&&"900px"},children:t.jsx(v,{step:e,saveConfig:()=>S(n,p,c,i,m)})})]})}export{I as default}; |