import{b as m,h as j,$ as I,k as b,i as C,j as t,_ as l}from"./main.2.8.1.js";import{u as _,h as w,d as a}from"./react-router-dom.9mCuUg3q.js";import{S as v}from"./SnackMsg.S8DrwLlT.js";import"./Note.BeM7sN-p.js";import{S as N,I as y,s as E}from"./Integrations.D2bgBas2.js";import{h as k}from"./SendinBlueCommonFunc.DKY2QbR0.js";import{S as B}from"./SendinBlueIntegLayout.B8tucTvT.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";import"./TagifyInput.Cu0YIRbG.js";import"./tagify.YxUZd8Ix.js";function H({allIntegURL:c}){const p=_(),{id:F,formID:f}=w(),[e,n]=m(j),[i,u]=m(I),o=b(C),[r,d]=a.useState(!1),[x,s]=a.useState({show:!1}),[g,h]=a.useState({templateId:"",RedirectionUrl:""});return t.jsxs("div",{style:{width:900},children:[t.jsx(v,{snack:x,setSnackbar:s}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:l("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:S=>k(S,e,n),name:"name",value:e.name,type:"text",placeholder:l("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(N,{entity:i.triggered_entity,setSnackbar:s}),t.jsx(B,{formID:f,formFields:o,sendinBlueConf:e,setSendinBlueConf:n,isLoading:r,setIsLoading:d,setSnackbar:s,error:g,setError:h}),t.jsx(y,{edit:!0,saveConfig:()=>E({flow:i,setFlow:u,allIntegURL:c,conf:e,navigate:p,edit:1,setIsLoading:d,setSnackbar:s}),disabled:e.listId===""||e.field_map.length<1,isLoading:r,dataConf:e,setDataConf:n,formFields:o}),t.jsx("br",{})]})}export{H as default};
