var C=Object.defineProperty;var p=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var c=(s,t,a)=>t in s?C(s,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[t]=a,d=(s,t)=>{for(var a in t||(t={}))b.call(t,a)&&c(s,a,t[a]);if(p)for(var a of p(t))I.call(t,a)&&c(s,a,t[a]);return s};import{D as S,g as N,r as i,j as e,S as w,cj as l}from"./main-634.js";import{a7 as y}from"./bf-746-82.js";import{I as A}from"./bf-942-184.js";import{h as k,A as E}from"./bf-92-215.js";import"./bf-275-83.js";import"./bf-822-108.js";import"./bf-25-81.js";import"./bf-438-114.js";function B({formFields:s,setIntegration:t,integrations:a,allIntegURL:g}){const x=S(),{id:o,formID:f}=N(),[n,r]=i.useState(d({},a[o])),[u,j]=i.useState(!1),[h,m]=i.useState({show:!1});return e.jsxs("div",{style:{width:900},children:[e.jsx(w,{snack:h,setSnackbar:m}),e.jsxs("div",{className:"flx mt-3",children:[e.jsx("b",{className:"wdt-200 d-in-b",children:l("Integration Name:")}),e.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...")})]}),e.jsx("br",{}),e.jsx("br",{}),e.jsx(E,{formID:f,formFields:s,activeCampaingConf:n,setActiveCampaingConf:r,isLoading:u,setisLoading:j,setSnackbar:m}),e.jsx(A,{edit:!0,saveConfig:()=>y(a,t,g,n,x,o,1),disabled:n.field_map.length<1}),e.jsx("br",{})]})}export{B as default};
