var C=Object.defineProperty;var c=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var p=(t,e,a)=>e in t?C(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,d=(t,e)=>{for(var a in e||(e={}))b.call(e,a)&&p(t,a,e[a]);if(c)for(var a of c(e))I.call(e,a)&&p(t,a,e[a]);return t};import{G as S,g as N,r as i,j as s,S as w,ce as l}from"./main-343.js";import{a7 as y}from"./bf-659-81.js";import{I as A}from"./bf-58-184.js";import{h as k,A as E}from"./bf-624-215.js";import"./bf-974-82.js";import"./bf-649-79.js";import"./bf-594-113.js";function q({formFields:t,setIntegration:e,integrations:a,allIntegURL:g}){const x=S(),{id:o,formID:f}=N(),[n,r]=i.useState(d({},a[o])),[u,h]=i.useState(!1),[j,m]=i.useState({show:!1});return s.jsxs("div",{style:{width:900},children:[s.jsx(w,{snack:j,setSnackbar:m}),s.jsxs("div",{className:"flx mt-3",children:[s.jsx("b",{className:"wdt-200 d-in-b",children:l("Integration Name:")}),s.jsx("input",{className:"btcd-paper-inp w-5",onChange:v=>k(v,n,r),name:"name",value:n.name,type:"text",placeholder:l("Integration Name...")})]}),s.jsx("br",{}),s.jsx("br",{}),s.jsx(E,{formID:f,formFields:t,activeCampaingConf:n,setActiveCampaingConf:r,isLoading:u,setisLoading:h,setSnackbar:m}),s.jsx(A,{edit:!0,saveConfig:()=>y(a,e,g,n,x,o,1),disabled:n.field_map.length<1}),s.jsx("br",{})]})}export{q as default};
