var S=Object.defineProperty;var l=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var u=(s,e,t)=>e in s?S(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,f=(s,e)=>{for(var t in e||(e={}))N.call(e,t)&&u(s,t,e[t]);if(l)for(var t of l(e))C.call(e,t)&&u(s,t,e[t]);return s};import{g as k,D as w,r as m,j as a,S as y,_ as h}from"./main-634.js";import{a7 as E}from"./bf-746-82.js";import{I as L}from"./bf-942-184.js";import{h as x,c as P}from"./bf-936-98.js";import{Z as R}from"./bf-968-194.js";import"./bf-275-83.js";import"./bf-822-108.js";import"./bf-25-81.js";import"./bf-297-103.js";import"./bf-438-114.js";function H({formFields:s,setIntegration:e,integrations:t,allIntegURL:j}){const{id:c,formID:p}=k(),g=w(),[o,n]=m.useState(f({},t[c])),[I,d]=m.useState(!1),[b,r]=m.useState({show:!1}),v=()=>{P(o,r)&&E(t,e,j,o,g,c,1)};return a.jsxs("div",{style:{width:900},children:[a.jsx(y,{snack:b,setSnackbar:r}),a.jsxs("div",{className:"flx mt-3",children:[a.jsx("b",{className:"wdt-150 d-in-b",children:h("Integration Name:")}),a.jsx("input",{className:"btcd-paper-inp w-7",onChange:i=>x(i,o,n),name:"name",value:o.name,type:"text",placeholder:h("Integration Name...")})]}),a.jsx("br",{}),a.jsx("br",{}),a.jsx(R,{formID:p,formFields:s,handleInput:i=>x(i,o,n,p,d,r),projectsConf:o,setProjectsConf:n,isLoading:I,setisLoading:d,setSnackbar:r}),a.jsx(L,{edit:!0,saveConfig:v,disabled:o.portalId===""||o.event===""})]})}export{H as default};
