| 1 |
var I=Object.defineProperty;var l=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var d=(a,s,e)=>s in a?I(a,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[s]=e,c=(a,s)=>{for(var e in s||(s={}))v.call(s,e)&&d(a,e,s[e]);if(l)for(var e of l(s))S.call(s,e)&&d(a,e,s[e]);return a};import{v as N,t as w,r as i,j as t,S as F,_ as p}from"./main-162.js";import{b as _}from"./bf-230-72.js";import{I as k}from"./bf-283-330.js";import{h as y,F as E,c as L}from"./bf-968-381.js";import"./bf-582-127.js";import"./bf-361-122.js";import"./bf-527-130.js";function B({formFields:a,setIntegration:s,integrations:e,allIntegURL:u}){const f=N(),{id:o,formID:x}=w(),[n,m]=i.useState(c({},e[o])),[h,g]=i.useState(!1),[j,r]=i.useState({show:!1}),b=()=>{if(!L(n)){r({show:!0,msg:"Please map all required fields to continue."});return}_(e,s,u,n,f,o,1)};return t.jsxs("div",{style:{width:900},children:[t.jsx(F,{snack:j,setSnackbar:r}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:p("Integration Name:")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:C=>y(C,n,m),name:"name",value:n.name,type:"text",placeholder:p("Integration Name...")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(E,{formID:x,formFields:a,fluentCrmConf:n,setFluentCrmConf:m,isLoading:h,step:2,setisLoading:g,setSnackbar:r}),t.jsx(k,{edit:!0,saveConfig:b,disabled:n.list_id===""||n.field_map.length<1}),t.jsx("br",{})]})}export{B as default}; |