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{v as y,w as C,r as l,j as a,_ as c,d as _}from"./main-40.js";import{b as w}from"./bf-132-75.js";import{I as G}from"./bf-94-335.js";import{h as f,G as E,c as L}from"./bf-500-371.js";import"./bf-528-128.js";/* empty css          */import"./bf-200-122.js";import"./bf-689-131.js";function z({formFields:s,setIntegration:e,integrations:t,allIntegURL:g}){const u=y(),{id:o,formID:x}=C(),[i,n]=l.useState(p({},t[o])),[h,j]=l.useState(!1),I=()=>{if(!L(i)){_.error("Please map mandatory fields");return}w(t,e,g,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=>f(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=>f(r,i,n),getgistConf:i,setGetgistConf:n,isLoading:h,setIsLoading:j}),a.jsx(G,{edit:!0,saveConfig:I,disabled:i.field_map.length<1}),a.jsx("br",{})]})}export{z as default};
