import{u as I,k as S,d as l,h as b,r as a,j as e}from"./main-333.js";import{g as C,$ as _,h as w,d as v,_ as c,i as N,I as y,s as E}from"./bi.636.93.js";import{h as k}from"./bi.118.761.js";import{S as B}from"./bi.701.762.js";import"./bi.535.730.js";import"./bi.286.731.js";function P({allIntegURL:m}){const f=I(),{id:F,formID:p}=S(),[t,n]=l(C),[i,u]=l(_),o=b(w),[r,d]=a.useState(!1),[g,s]=a.useState({show:!1}),[x,h]=a.useState({templateId:"",RedirectionUrl:""});return e.jsxs("div",{style:{width:900},children:[e.jsx(v,{snack:g,setSnackbar:s}),e.jsxs("div",{className:"flx mt-3",children:[e.jsx("b",{className:"wdt-200 d-in-b",children:c("Integration Name:","bit-integrations")}),e.jsx("input",{className:"btcd-paper-inp w-5",onChange:j=>k(j,t,n),name:"name",value:t.name,type:"text",placeholder:c("Integration Name...","bit-integrations")})]}),e.jsx("br",{}),e.jsx(N,{entity:i.triggered_entity,setSnackbar:s}),e.jsx(B,{formID:p,formFields:o,sendinBlueConf:t,setSendinBlueConf:n,isLoading:r,setIsLoading:d,setSnackbar:s,error:x,setError:h}),e.jsx(y,{edit:!0,saveConfig:()=>E({flow:i,setFlow:u,allIntegURL:m,conf:t,navigate:f,edit:1,setIsLoading:d,setSnackbar:s}),disabled:t.listId===""||t.field_map.length<1,isLoading:r,dataConf:t,setDataConf:n,formFields:o}),e.jsx("br",{})]})}export{P as default};
