var v=Object.defineProperty;var d=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var l=(a,s,e)=>s in a?v(a,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[s]=e,p=(a,s)=>{for(var e in s||(s={}))N.call(s,e)&&l(a,e,s[e]);if(d)for(var e of d(s))C.call(s,e)&&l(a,e,s[e]);return a};import{G as w,g as y,r,j as t,S as B,_ as c}from"./main-343.js";import{I as E}from"./bf-58-184.js";import{s as _}from"./bf-745-202.js";import{h as k}from"./bf-252-174.js";import{S as L}from"./bf-397-213.js";import"./bf-649-79.js";import"./bf-659-81.js";import"./bf-974-82.js";import"./bf-594-113.js";function F({formFields:a,setIntegration:s,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 t.jsxs("div",{style:{width:900},children:[t.jsx(B,{snack:j,setSnackbar:m}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:c("Integration Name:")}),t.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...")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(L,{formID:x,formFields:a,sendinBlueConf:n,setSendinBlueConf:o,isLoading:g,setisLoading:h,setSnackbar:m,error:S,setError:I}),t.jsx(E,{edit:!0,saveConfig:()=>_(e,s,u,n,f,i,1),disabled:n.listId===""||n.field_map.length<1}),t.jsx("br",{})]})}export{F as default};
