var b=Object.defineProperty;var m=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var d=(s,e,t)=>e in s?b(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,p=(s,e)=>{for(var t in e||(e={}))v.call(e,t)&&d(s,t,e[t]);if(m)for(var t of m(e))N.call(e,t)&&d(s,t,e[t]);return s};import{D as y,g as C,r as l,j as a,_ as c,V as G}from"./main-634.js";import{a7 as _}from"./bf-746-82.js";import{I as w}from"./bf-942-184.js";import{h as g,G as E,c as L}from"./bf-843-206.js";import"./bf-275-83.js";import"./bf-822-108.js";import"./bf-25-81.js";import"./bf-438-114.js";function q({formFields:s,setIntegration:e,integrations:t,allIntegURL:f}){const u=y(),{id:o,formID:x}=C(),[i,n]=l.useState(p({},t[o])),[h,j]=l.useState(!1),I=()=>{if(!L(i)){G.error("Please map mandatory fields");return}_(t,e,f,i,u,o,1)};return a.jsxs("div",{style:{width:900},children:[a.jsxs("div",{className:"flx mt-3",children:[a.jsx("b",{className:"wdt-200 d-in-b",children:c("Integration Name:")}),a.jsx("input",{className:"btcd-paper-inp w-5",onChange:r=>g(r,i,n),name:"name",value:i.name,type:"text",placeholder:c("Integration Name...")})]}),a.jsx("br",{}),a.jsx(E,{formID:x,formFields:s,handleInput:r=>g(r,i,n),getgistConf:i,setGetgistConf:n,isLoading:h,setIsLoading:j}),a.jsx(w,{edit:!0,saveConfig:I,disabled:i.field_map.length<1}),a.jsx("br",{})]})}export{q as default};
