| 1 |
var v=Object.defineProperty;var d=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var l=(a,t,e)=>t in a?v(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e,p=(a,t)=>{for(var e in t||(t={}))N.call(t,e)&&l(a,e,t[e]);if(d)for(var e of d(t))C.call(t,e)&&l(a,e,t[e]);return a};import{F as w,g as y,r,j as s,S as B,_ as c}from"./main-294.js";import{I as E}from"./bf-906-183.js";import{s as _}from"./bf-349-201.js";import{h as k}from"./bf-426-173.js";import{S as L}from"./bf-594-212.js";import"./bf-176-80.js";import"./bf-813-81.js";import"./bf-582-82.js";import"./bf-158-107.js";import"./bf-867-113.js";function H({formFields:a,setIntegration:t,integrations:e,allIntegURL:u}){const f=w(),{id:i,formID:x}=y(),[n,o]=r.useState(p({},e[i])),[g,h]=r.useState(!1),[j,m]=r.useState({show:!1}),[S,I]=r.useState({templateId:"",RedirectionUrl:""});return s.jsxs("div",{style:{width:900},children:[s.jsx(B,{snack:j,setSnackbar:m}),s.jsxs("div",{className:"flx mt-3",children:[s.jsx("b",{className:"wdt-200 d-in-b",children:c("Integration Name:")}),s.jsx("input",{className:"btcd-paper-inp w-6",onChange:b=>k(b,n,o),name:"name",value:n.name,type:"text",placeholder:c("Integration Name...")})]}),s.jsx("br",{}),s.jsx("br",{}),s.jsx(L,{formID:x,formFields:a,sendinBlueConf:n,setSendinBlueConf:o,isLoading:g,setisLoading:h,setSnackbar:m,error:S,setError:I}),s.jsx(E,{edit:!0,saveConfig:()=>_(e,t,u,n,f,i,1),disabled:n.listId===""||n.field_map.length<1}),s.jsx("br",{})]})}export{H as default}; |