var v=Object.defineProperty;var d=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var l=(a,t,e)=>t in a?v(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e,p=(a,t)=>{for(var e in t||(t={}))N.call(t,e)&&l(a,e,t[e]);if(d)for(var e of d(t))C.call(t,e)&&l(a,e,t[e]);return a};import{D as w,g as y,r,j as s,S as B,_ as c}from"./main-634.js";import{I as E}from"./bf-942-184.js";import{s as _}from"./bf-186-202.js";import{h as k}from"./bf-34-174.js";import{S as L}from"./bf-5-213.js";import"./bf-25-81.js";import"./bf-746-82.js";import"./bf-275-83.js";import"./bf-822-108.js";import"./bf-438-114.js";function H({formFields:a,setIntegration:t,integrations:e,allIntegURL:u}){const f=w(),{id:i,formID:x}=y(),[n,o]=r.useState(p({},e[i])),[g,h]=r.useState(!1),[j,m]=r.useState({show:!1}),[S,I]=r.useState({templateId:"",RedirectionUrl:""});return s.jsxs("div",{style:{width:900},children:[s.jsx(B,{snack:j,setSnackbar:m}),s.jsxs("div",{className:"flx mt-3",children:[s.jsx("b",{className:"wdt-200 d-in-b",children:c("Integration Name:")}),s.jsx("input",{className:"btcd-paper-inp w-6",onChange:b=>k(b,n,o),name:"name",value:n.name,type:"text",placeholder:c("Integration Name...")})]}),s.jsx("br",{}),s.jsx("br",{}),s.jsx(L,{formID:x,formFields:a,sendinBlueConf:n,setSendinBlueConf:o,isLoading:g,setisLoading:h,setSnackbar:m,error:S,setError:I}),s.jsx(E,{edit:!0,saveConfig:()=>_(e,t,u,n,f,i,1),disabled:n.listId===""||n.field_map.length<1}),s.jsx("br",{})]})}export{H as default};
