var b=Object.defineProperty;var p=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var c=(e,s,a)=>s in e?b(e,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[s]=a,d=(e,s)=>{for(var a in s||(s={}))C.call(s,a)&&c(e,a,s[a]);if(p)for(var a of p(s))I.call(s,a)&&c(e,a,s[a]);return e};import{v as S,w as N,r as i,j as t,S as w,ds as l}from"./main-40.js";import{b as y}from"./bf-132-75.js";import{I as A}from"./bf-94-335.js";import{h as k}from"./bf-481-382.js";import{A as E}from"./bf-19-383.js";import"./bf-528-128.js";import"./bf-200-122.js";import"./bf-689-131.js";function B({formFields:e,setIntegration:s,integrations:a,allIntegURL:f}){const g=S(),{id:o,formID:x}=N(),[n,r]=i.useState(d({},a[o])),[u,h]=i.useState(!1),[j,m]=i.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(w,{snack:j,setSnackbar:m}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:l("Integration Name:")}),t.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...")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(E,{formID:x,formFields:e,activeCampaingConf:n,setActiveCampaingConf:r,isLoading:u,setisLoading:h,setSnackbar:m}),t.jsx(A,{edit:!0,saveConfig:()=>y(a,s,f,n,g,o,1),disabled:n.field_map.length<1}),t.jsx("br",{})]})}export{B as default};
