import{b as m,h,$ as j,k as b,i as C,j as t,_ as l}from"./main.2.8.1.js";import{u as I,h as _,d}from"./react-router-dom.9mCuUg3q.js";import{S as w}from"./SnackMsg.S8DrwLlT.js";import{S,I as v,s as L}from"./Integrations.D2bgBas2.js";import{h as N}from"./LemlistCommonFunc.xDxHOpMN.js";import{L as y}from"./LemlistIntegLayout.DlAdCiuU.js";import"./Note.BeM7sN-p.js";import"./Table.DAL7rcPQ.js";import"./CopyIcn.3gZpHton.js";import"./index.wO-AxluA.js";function z({allIntegURL:c}){const f=I(),{id:k,formID:p}=_(),[s,a]=m(h),[n,x]=m(j),i=b(C),[o,r]=d.useState(!1),[g,e]=d.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(w,{snack:g,setSnackbar:e}),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:u=>N(u,s,a),name:"name",value:s.name,type:"text",placeholder:l("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(S,{entity:n.triggered_entity,setSnackbar:e}),t.jsx(y,{formID:p,formFields:i,lemlistConf:s,setLemlistConf:a,isLoading:o,setIsLoading:r,setSnackbar:e}),t.jsx(v,{edit:!0,saveConfig:()=>L({flow:n,setFlow:x,allIntegURL:c,navigate:f,conf:s,edit:1,setIsLoading:r,setSnackbar:e}),disabled:s.field_map.length<1,isLoading:o,dataConf:s,setDataConf:a,formFields:i}),t.jsx("br",{})]})}export{z as default};
