import{h as d,g as j,$ as I,k as b,i as C,j as t,_ as l}from"./main.2.8.10.js";import{u as _,e as w,b as a}from"./react-router.DMwpH23k.js";import{S as v}from"./SnackMsg.7BjcJK1j.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.js";import{S as N,I as y,s as E}from"./Integrations.BFhED4ck.js";import{h as k}from"./SendinBlueCommonFunc.B6q5JU1k.js";import{S as B}from"./SendinBlueIntegLayout.D2PPjFCj.js";import"./react-vendor.P7K3d6op.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";import"./TagifyInput.C4ilRm4k.js";import"./lodash.DCvQBX3r.js";function J({allIntegURL:c}){const p=_(),{id:F,formID:f}=w(),[e,n]=d(j),[i,u]=d(I),o=b(C),[r,m]=a.useState(!1),[g,s]=a.useState({show:!1}),[x,S]=a.useState({templateId:"",RedirectionUrl:""});return t.jsxs("div",{style:{width:900},children:[t.jsx(v,{snack:g,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:h=>k(h,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:m,setSnackbar:s,error:x,setError:S}),t.jsx(y,{edit:!0,saveConfig:()=>E({flow:i,setFlow:u,allIntegURL:c,conf:e,navigate:p,edit:1,setIsLoading:m,setSnackbar:s}),disabled:e.listId===""||e.field_map.length<1,isLoading:r,dataConf:e,setDataConf:n,formFields:o}),t.jsx("br",{})]})}export{J as default};
