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