import{h as d,g as j,$ as I,k as b,i as C,j as t,_ as l}from"./main.2.9.0.js";import{u as _,e as w,b as a}from"./react-router.DMwpH23k.js";import{S as v}from"./SnackMsg.DYSD96P4.js";import"./Note.NSUdvR3c.js";import"./CopyIcn.CEA_lFLo.js";import{S as N,I as y,s as E}from"./Integrations.DL8wqGct.js";import{h as k}from"./SendinBlueCommonFunc.EZGAW48O.js";import{S as B}from"./SendinBlueIntegLayout.D7uoleyI.js";import"./react-vendor.P7K3d6op.js";import"./Table.BfF8RYFZ.js";import"./index.DpWdl9V1.js";import"./TagifyInput.KPPRQJ1B.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};
