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