| 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{v as w,t as y,r,j as s,S as B,_ as c}from"./main-162.js";import{I as E}from"./bf-283-330.js";import{s as _}from"./bf-720-360.js";import{h as k}from"./bf-238-374.js";import{S as L}from"./bf-100-375.js";import"./bf-582-127.js";import"./bf-230-72.js";import"./bf-361-122.js";import"./bf-527-130.js";function G({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{G as default}; |